vendor: 10,154 bytes, lines 1-10
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-CU67Zn6k.js","assets/html-GMplVEZG.js","assets/javascript-wDzz0qaB.js","assets/css-DPfMkruS.js","assets/angular-ts-BwZT4LLn.js","assets/scss-OYdSNvt2.js","assets/apl-dKokRX4l.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-CbQHKStN.js","assets/typescript-BPQ3VLAy.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-DVc8C-J4.js","assets/html-derivative-BFtXZ54Q.js","assets/sql-BLtJtn59.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-nwyudZeR.js","assets/coffee-Ch7k5sss.js","assets/cpp-CofmeUqb.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-tKQVLTB8.js","assets/shellscript-Yzrsuije.js","assets/edge-BkV0erSs.js","assets/elixir-CDX3lj18.js","assets/elm-DbKCFpqz.js","assets/erb-BOJIQeun.js","assets/ruby-BvKwtOVI.js","assets/haml-B8DHNrY2.js","assets/graphql-ChdNCCLP.js","assets/jsx-g9-lgVsj.js","assets/lua-BbnMAYS6.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-BZjJHVRy.js","assets/fortran-free-form-D22FLkUw.js","assets/fsharp-CXgrBDvD.js","assets/gdresource-B7Tvp0Sc.js","assets/gdshader-DkwncUOv.js","assets/gdscript-DTMYz4Jt.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-Rg0-pVw9.js","assets/glimmer-ts-U6CK756n.js","assets/hack-CaT9iCJl.js","assets/handlebars-BL8al0AC.js","assets/http-jrhK8wxY.js","assets/hurl-irOxFIW8.js","assets/csv-fuZLfV_i.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-4LBKfQ-Z.js","assets/jison-wvAkD_A8.js","assets/julia-C8NyazO9.js","assets/r-DiinP2Uv.js","assets/latex-BUKiar2Z.js","assets/tex-Cppo0RY3.js","assets/liquid-DYVedYrR.js","assets/marko-CPi9NSCl.js","assets/less-B1dDrJ26.js","assets/mdc-DUICxH0z.js","assets/nginx-DknmC5AR.js","assets/nim-CVrawwO9.js","assets/perl-C0TMdlhV.js","assets/php-CDn_0X-4.js","assets/pug-CGlum2m_.js","assets/qml-3beO22l8.js","assets/razor-WgofotgN.js","assets/csharp-CX12Zw3r.js","assets/rst-B0xPkSld.js","assets/cmake-D1j8_8rp.js","assets/sas-cz2c8ADy.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-Brmx7dQM.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-BH5u7GGu.js","assets/svelte-3Dk4HxPD.js","assets/templ-W15q3VgB.js","assets/go-Dn2_MT6a.js","assets/ts-tags-zn1MmPIZ.js","assets/twig-CO9l9SDP.js","assets/vue-CCoi5OLL.js","assets/vue-html-DAAvJJDi.js","assets/vue-vine-_Ih-lPRR.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js"])))=>i.map(i=>d[i]); 2function FK(e,t){for(var n=0;n<t.length;n++){const a=t[n];if(typeof a!="string"&&!Array.isArray(a)){for(const r in a)if(r!=="default"&&!(r in e)){const i=Object.getOwnPropertyDescriptor(a,r);i&&Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:()=>a[r]})}}}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 r of document.querySelectorAll('link[rel="modulepreload"]'))a(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function a(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();var VDe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function v4(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nT={exports:{}},y1={};/** 3 * @license React 4 * react-jsx-runtime.production.js 5 * 6 * Copyright (c) Meta Platforms, Inc. and affiliates. 7 * 8 * This source code is licensed under the MIT license found in the 9 * LICENSE file in the root directory of this source tree. 10 */var o_;function UK(){if(o_)return y1;o_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(a,r,i){var o=null;if(i!==void 0&&(o=""+i),r.key!==void 0&&(o=""+r.key),"key"in r){i={};for(var c in r)c!=="key"&&(i[c]=r[c])}else i=r;return r=i.ref,{$$typeof:e,type:a,key:o,ref:r!==void 0?r:null,props:i}}return y1.Fragment=t,y1.jsx=n,y1.jsxs=n,y1}var c_;function HK(){return c_||(c_=1,nT.exports=UK()),nT.exports}var s=HK(),G0=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(){}},VK=class extends G0{#t;#e;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Nj=new VK,zK={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},$K=class{#t=zK;#e=!1;setTimeoutProvider(e){this.#t=e}setTimeout(e,t){return this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}},y0=new $K;function qK(e){setTimeout(e,0)}var GK=typeof window>"u"||"Deno"in globalThis;function bo(){}function JK(e,t){return typeof e=="function"?e(t):e}function W8(e){return typeof e=="number"&&e>=0&&e!==1/0}function jB(e,t){return Math.max(e+(t||0)-Date.now(),0)}function eh(e,t){return typeof e=="function"?e(t):e}function qc(e,t){return typeof e=="function"?e(t):e}function l_(e,t){const{type:n="all",exact:a,fetchStatus:r,predicate:i,queryKey:o,stale:c}=e;if(o){if(a){if(t.queryHash!==kj(o,t.options))return!1}else if(!Ub(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||r&&r!==t.state.fetchStatus||i&&!i(t))}function u_(e,t){const{exact:n,status:a,predicate:r,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(ah(t.options.mutationKey)!==ah(i))return!1}else if(!Ub(t.options.mutationKey,i))return!1}return!(a&&t.state.status!==a||r&&!r(t))}function kj(e,t){return(t?.queryKeyHashFn||ah)(e)}function ah(e){return JSON.stringify(e,(t,n)=>Y8(n)?Object.keys(n).sort().reduce((a,r)=>(a[r]=n[r],a),{}):n)}function Ub(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ub(e[n],t[n])):!1}var WK=Object.prototype.hasOwnProperty;function jj(e,t,n=0){if(e===t)return e;if(n>500)return t;const a=d_(e)&&d_(t);if(!a&&!(Y8(e)&&Y8(t)))return t;const i=(a?e:Object.keys(e)).length,o=a?t:Object.keys(t),c=o.length,l=a?new Array(c):{};let d=0;for(let m=0;m<c;m++){const h=a?m:o[m],x=e[h],f=t[h];if(x===f){l[h]=x,(a?m<i:WK.call(e,h))&&d++;continue}if(x===null||f===null||typeof x!="object"||typeof f!="object"){l[h]=f;continue}const b=jj(x,f,n+1);l[h]=b,b===x&&d++}return i===c&&d===i?e:l}function Hb(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function d_(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Y8(e){if(!m_(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!m_(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function m_(e){return Object.prototype.toString.call(e)==="[object Object]"}function YK(e){return new Promise(t=>{y0.setTimeout(t,e)})}function X8(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?jj(e,t):t}function XK(e,t,n=0){const a=[...e,t];return n&&a.length>n?a.slice(1):a}function QK(e,t,n=0){const a=[t,...e];return n&&a.length>n?a.slice(0,-1):a}var Wc=Symbol();function AB(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Wc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Aj(e,t){return typeof e=="function"?e(...t):!!e}function KK(e,t,n){let a=!1,r;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(r??=t(),a||(a=!0,r.aborted?n():r.addEventListener("abort",n,{once:!0})),r)}),e}var Vb=(()=>{let e=()=>GK;return{isServer(){return e()},setIsServer(t){e=t}}})();function Q8(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});n.status="pending",n.catch(()=>{});function a(r){Object.assign(n,r),delete n.resolve,delete n.reject}return n.resolve=r=>{a({status:"fulfilled",value:r}),e(r)},n.reject=r=>{a({status:"rejected",reason:r}),t(r)},n}var ZK=qK;function eZ(){let e=[],t=0,n=c=>{c()},a=c=>{c()},r=ZK;const i=c=>{t?e.push(c):r(()=>{n(c)})},o=()=>{const c=e;e=[],c.length&&r(()=>{a(()=>{c.forEach(l=>{n(l)})})})};return{batch:c=>{let l;t++;try{l=c()}finally{t--,t||o()}return l},batchCalls:c=>(...l)=>{i(()=>{c(...l)})},schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{a=c},setScheduler:c=>{r=c}}}var Br=eZ(),tZ=class extends G0{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n
10)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#t}},u3=new tZ;function nZ(e){return Math.min(1e3*2**e,3e4)}function EB(e){return(e??"online")==="online"?u3.isOnline():!0}var K8=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function CB(e){let t=!1,n=0,a;const r=Q8(),i=()=>r.status!=="pending",o=y=>{if(!i()){const w=new K8(y);x(w),e.onCancel?.(w)}},c=()=>{t=!0},l=()=>{t=!1},d=()=>Nj.isFocused()&&(e.networkMode==="always"||u3.isOnline())&&e.canRun(),m=()=>EB(e.networkMode)&&e.canRun(),h=y=>{i()||(a?.(),r.resolve(y))},x=y=>{i()||(a?.(),r.reject(y))},f=()=>new Promise(y=>{a=w=>{(i()||d())&&y(w)},e.onPause?.()}).then(()=>{a=void 0,i()||e.onContinue?.()}),b=()=>{if(i())return;let y;const w=n===0?e.initialPromise:void 0;try{y=w??e.fn()}catch(T){y=Promise.reject(T)}Promise.resolve(y).then(h).catch(T=>{if(i())return;const A=e.retry??(Vb.isServer()?0:3),E=e.retryDelay??nZ,D=typeof E=="function"?E(n,T):E,S=A===!0||typeof A=="number"&&n<A||typeof A=="function"&&A(n,T);if(t||!S){x(T);return}n++,e.onFail?.(n,T),YK(D).then(()=>d()?void 0:f()).then(()=>{t?x(T):b()})})};return{promise:r,status:()=>r.status,cancel:o,continue:()=>(a?.(),r),cancelRetry:c,continueRetry:l,canStart:m,start:()=>(m()?b():f().then(b),r)}}var SB=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),W8(this.gcTime)&&(this.#t=y0.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Vb.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#t!==void 0&&(y0.clearTimeout(this.#t),this.#t=void 0)}};function aZ(e){return{onFetch:(t,n)=>{const a=t.options,r=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],o=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},l=0;const d=async()=>{let m=!1;const h=b=>{KK(b,()=>t.signal,()=>m=!0)},x=AB(t.options,t.fetchOptions),f=async(b,y,w)=>{if(m)return Promise.reject(t.signal.reason);if(y==null&&b.pages.length)return Promise.resolve(b);const A=(()=>{const R={client:t.client,queryKey:t.queryKey,pageParam:y,direction:w?"backward":"forward",meta:t.options.meta};return h(R),R})(),E=await x(A),{maxPages:D}=t.options,S=w?QK:XK;return{pages:S(b.pages,E,D),pageParams:S(b.pageParams,y,D)}};if(r&&i.length){const b=r==="backward",y=b?_B:Z8,w={pages:i,pageParams:o},T=y(a,w);c=await f(w,T,b)}else{const b=e??i.length;do{const y=l===0?o[0]??a.initialPageParam:Z8(a,c);if(l>0&&y==null)break;c=await f(c,y),l++}while(l<b)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=d}}}function Z8(e,{pages:t,pageParams:n}){const a=t.length-1;return t.length>0?e.getNextPageParam(t[a],t,n[a],n):void 0}function _B(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function sZ(e,t){return t?Z8(e,t)!=null:!1}function rZ(e,t){return!t||!e.getPreviousPageParam?!1:_B(e,t)!=null}var iZ=class extends SB{#t;#e;#n;#a;#s;#r;#o;#i;constructor(e){super(),this.#i=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#a=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=h_(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#t}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#t=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=h_(this.options);t.data!==void 0&&(this.setState(p_(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#a.remove(this)}setData(e,t){const n=X8(this.state.data,e,this.options);return this.#c({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#c({type:"setState",state:e})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(bo).catch(bo):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>qc(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Wc||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
vendor: 17,272 bytes, line 10
10Count>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>eh(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!jB(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#i||this.#u()?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#u(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#c({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const l=this.observers.find(d=>d.options.queryFn);l&&this.setOptions(l.options)}const n=new AbortController,a=l=>{Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(this.#i=!0,n.signal)})},r=()=>{const l=AB(this.options,t),m=(()=>{const h={client:this.#s,queryKey:this.queryKey,meta:this.meta};return a(h),h})();return this.#i=!1,this.options.persister?this.options.persister(l,m,this):l(m)},o=(()=>{const l={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:r};return a(l),l})();(this.#t==="infinite"?aZ(this.options.pages):this.options.behavior)?.onFetch(o,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#c({type:"fetch",meta:o.fetchOptions?.meta}),this.#r=CB({initialPromise:t?.initialPromise,fn:o.fetchFn,onCancel:l=>{l instanceof K8&&l.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(l,d)=>{this.#c({type:"failed",failureCount:l,error:d})},onPause:()=>{this.#c({type:"pause"})},onContinue:()=>{this.#c({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{const l=await this.#r.start();if(l===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(l),this.#a.config.onSuccess?.(l,this),this.#a.config.onSettled?.(l,this.state.error,this),l}catch(l){if(l instanceof K8){if(l.silent)return this.#r.promise;if(l.revert){if(this.state.data===void 0)throw l;return this.state.data}}throw this.#c({type:"error",error:l}),this.#a.config.onError?.(l,this),this.#a.config.onSettled?.(this.state.data,l,this),l}finally{this.scheduleGc()}}#c(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...PB(n.data,this.options),fetchMeta:e.meta??null};case"success":const a={...n,...p_(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?a:void 0,a;case"error":const r=e.error;return{...n,error:r,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Br.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:e})})}};function PB(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:EB(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function p_(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function h_(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,a=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var C2=class extends G0{constructor(e,t){super(),this.options=t,this.#t=e,this.#i=null,this.#o=Q8(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#a=void 0;#s;#r;#o;#i;#u;#c;#p;#d;#h;#l;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),f_(this.#e,this.options)?this.#m():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ek(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ek(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#y(),this.#w(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,n=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof qc(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#T(),this.#e.setOptions(this.options),t._defaulted&&!Hb(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const a=this.hasListeners();a&&g_(this.#e,n,this.options,t)&&this.#m(),this.updateResult(),a&&(this.#e!==n||qc(this.options.enabled,this.#e)!==qc(t.enabled,this.#e)||eh(this.options.staleTime,this.#e)!==eh(t.staleTime,this.#e))&&this.#g();const r=this.#x();a&&(this.#e!==n||qc(this.options.enabled,this.#e)!==qc(t.enabled,this.#e)||r!==this.#l)&&this.#b(r)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return cZ(this,n)&&(this.#a=n,this.#r=this.options,this.#s=this.#e.state),n}getCurrentResult(){return this.#a}trackResult(e,t){return new Proxy(e,{get:(n,a)=>(this.trackProp(a),t?.(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,a))})}trackProp(e){this.#f.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),n=this.#t.getQueryCache().build(this.#t,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#m(e){this.#T();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(bo)),t}#g(){this.#y();const e=eh(this.options.staleTime,this.#e);if(Vb.isServer()||this.#a.isStale||!W8(e))return;const n=jB(this.#a.dataUpdatedAt,e)+1;this.#d=y0.setTimeout(()=>{this.#a.isStale||this.updateResult()},n)}#x(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#b(e){this.#w(),this.#l=e,!(Vb.isServer()||qc(this.options.enabled,this.#e)===!1||!W8(this.#l)||this.#l===0)&&(this.#h=y0.setInterval(()=>{(this.options.refetchIntervalInBackground||Nj.isFocused())&&this.#m()},this.#l))}#v(){this.#g(),this.#b(this.#x())}#y(){this.#d!==void 0&&(y0.clearTimeout(this.#d),this.#d=void 0)}#w(){this.#h!==void 0&&(y0.clearInterval(this.#h),this.#h=void 0)}createResult(e,t){const n=this.#e,a=this.options,r=this.#a,i=this.#s,o=this.#r,l=e!==n?e.state:this.#n,{state:d}=e;let m={...d},h=!1,x;if(t._optimisticResults){const I=this.hasListeners(),F=!I&&f_(e,t),_=I&&g_(e,n,t,a);(F||_)&&(m={...m,...PB(d.data,e.options)}),t._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:f,errorUpdatedAt:b,status:y}=m;x=m.data;let w=!1;if(t.placeholderData!==void 0&&x===void 0&&y==="pending"){let I;r?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(I=r.data,w=!0):I=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,I!==void 0&&(y="success",x=X8(r?.data,I,t),h=!0)}if(t.select&&x!==void 0&&!w)if(r&&x===i?.data&&t.select===this.#u)x=this.#c;else try{this.#u=t.select,x=t.select(x),x=X8(r?.data,x,t),this.#c=x,this.#i=null}catch(I){this.#i=I}this.#i&&(f=this.#i,x=this.#c,b=Date.now(),y="error");const T=m.fetchStatus==="fetching",A=y==="pending",E=y==="error",D=A&&T,S=x!==void 0,L={status:y,fetchStatus:m.fetchStatus,isPending:A,isSuccess:y==="success",isError:E,isInitialLoading:D,isLoading:D,data:x,dataUpdatedAt:m.dataUpdatedAt,error:f,errorUpdatedAt:b,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:m.dataUpdateCount>l.dataUpdateCount||m.errorUpdateCount>l.errorUpdateCount,isFetching:T,isRefetching:T&&!A,isLoadingError:E&&!S,isPaused:m.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:E&&S,isStale:Ej(e,t),refetch:this.refetch,promise:this.#o,isEnabled:qc(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const I=L.data!==void 0,F=L.status==="error"&&!I,_=W=>{F?W.reject(L.error):I&&W.resolve(L.data)},U=()=>{const W=this.#o=L.promise=Q8();_(W)},O=this.#o;switch(O.status){case"pending":e.queryHash===n.queryHash&&_(O);break;case"fulfilled":(F||L.data!==O.value)&&U();break;case"rejected":(!F||L.error!==O.reason)&&U();break}}return L}updateResult(){const e=this.#a,t=this.createResult(this.#e,this.options);if(this.#s=this.#e.state,this.#r=this.options,this.#s.data!==void 0&&(this.#p=this.#e),Hb(t,e))return;this.#a=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:a}=this.options,r=typeof a=="function"?a():a;if(r==="all"||!r&&!this.#f.size)return!0;const i=new Set(r??this.#f);return this.options.throwOnError&&i.add("error"),Object.keys(this.#a).some(o=>{const c=o;return this.#a[c]!==e[c]&&i.has(c)})};this.#N({listeners:n()})}#T(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#N(e){Br.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function oZ(e,t){return qc(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&qc(t.retryOnMount,e)===!1)}function f_(e,t){return oZ(e,t)||e.state.data!==void 0&&ek(e,t,t.refetchOnMount)}function ek(e,t,n){if(qc(t.enabled,e)!==!1&&eh(t.staleTime,e)!=="static"){const a=typeof n=="function"?n(e):n;return a==="always"||a!==!1&&Ej(e,t)}return!1}function g_(e,t,n,a){return(e!==t||qc(a.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Ej(e,n)}function Ej(e,t){return qc(t.enabled,e)!==!1&&e.isStaleByTime(eh(t.staleTime,e))}function cZ(e,t){return!Hb(e.getCurrentResult(),t)}var DB=class extends C2{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:n}=e,a=super.createResult(e,t),{isFetching:r,isRefetching:i,isError:o,isRefetchError:c}=a,l=n.fetchMeta?.fetchMore?.direction,d=o&&l==="forward",m=r&&l==="forward",h=o&&l==="backward",x=r&&l==="backward";return{...a,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:sZ(t,n.data),hasPreviousPage:rZ(t,n.data),isFetchNextPageError:d,isFetchingNextPage:m,isFetchPreviousPageError:h,isFetchingPreviousPage:x,isRefetchError:c&&!d&&!h,isRefetching:i&&!m&&!x}}},lZ=class extends SB{#t;#e;#n;#a;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#e=[],this.state=e.state||RB(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#s({type:"continue"})},n={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=CB({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(i,o)=>{this.#s({type:"failed",failureCount:i,error:o})},onPause:()=>{this.#s({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const a=this.state.status==="pending",r=!this.#a.canStart();try{if(a)t();else{this.#s({type:"pending",variables:e,isPaused:r}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);const o=await this.options.onMutate?.(e,n);o!==this.state.context&&this.#s({type:"pending",context:o,variables:e,isPaused:r})}const i=await this.#a.start();return await this.#n.config.onSuccess?.(i,e,this.state.context,this,n),await this.options.onSuccess?.(i,e,this.state.context,n),await this.#n.config.onSettled?.(i,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(i,null,e,this.state.context,n),this.#s({type:"success",data:i}),i}catch(i){try{await this.#n.config.onError?.(i,e,this.state.context,this,n)}catch(o){Promise.reject(o)}try{await this.options.onError?.(i,e,this.state.context,n)}catch(o){Promise.reject(o)}try{await this.#n.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,n)}catch(o){Promise.reject(o)}try{await this.options.onSettled?.(void 0,i,e,this.state.context,n)}catch(o){Promise.reject(o)}throw this.#s({type:"error",error:i}),i}finally{this.#n.runNext(this)}}#s(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Br.batch(()=>{this.#e.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function RB(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var uZ=class extends G0{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,n){const a=new lZ({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(a),a}add(e){this.#t.add(e);const t=ay(e);if(typeof t=="string"){const n=this.#e.get(t);n?n.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=ay(e);if(typeof t=="string"){const n=this.#e.get(t);if(n)if(n.length>1){const a=n.indexOf(e);a!==-1&&n.splice(a,1)}else n[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=ay(e);if(typeof t=="string"){const a=this.#e.get(t)?.find(r=>r.state.status==="pending");return!a||a===e}else return!0}runNext(e){const t=ay(e);return typeof t=="string"?this.#e.get(t)?.find(a=>a!==e&&a.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Br.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>u_(t,n))}findAll(e={}){return this.getAll().filter(t=>u_(e,t))}notify(e){Br.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>
10t.state.isPaused);return Br.batch(()=>Promise.all(e.map(t=>t.continue().catch(bo))))}};function ay(e){return e.options.scope?.id}var dZ=class extends G0{#t;#e=void 0;#n;#a;constructor(t,n){super(),this.#t=t,this.setOptions(n),this.bindMethods(),this.#s()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#t.defaultMutationOptions(t),Hb(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&ah(n.mutationKey)!==ah(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#s(),this.#r(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#s(),this.#r()}mutate(t,n){return this.#a=n,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#s(){const t=this.#n?.state??RB();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#r(t){Br.batch(()=>{if(this.#a&&this.hasListeners()){const n=this.#e.variables,a=this.#e.context,r={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#a.onSuccess?.(t.data,n,a,r)}catch(i){Promise.reject(i)}
10try{this.#a.onSettled?.(t.data,null,n,a,r)}catch(i){Promise.reject(i)}}else if(t?.type==="error"){try{this.#a.onError?.(t.error,n,a,r)}catch(i){Promise.reject(i)}try{this.#a.onSettled?.(void 0,t.error,n,a,r)}catch(i){Promise.reject(i)}}}this.listeners.forEach(n=>{n(this.#e)})})}};function x_(e,t){const n=new Set(t);return e.filter(a=>!n.has(a))}function mZ(e,t,n){const a=e.slice(0);return a[t]=n,a}var pZ=class extends G0{#t;#e;#n;#a;#s;#r;#o;#i;#u;#c=[];constructor(e,t,n){super(),this.#t=e,this.#a=n,this.#n=[],this.#s=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#s.forEach(e=>{e.subscribe(t=>{this.#f(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#a=t,Br.batch(()=>{const n=this.#s,a=this.#l(this.#n);a.forEach(m=>m.observer.setOptions(m.defaultedQueryOptions));const r=a.map(m=>m.observer),i=r.map(m=>m.getCurrentResult()),o=n.length!==r.length,c=r.some((m,h)=>m!==n[h]),l=o||c,d=l?!0:i.some((m,h)=>{const x=this.#e[h];return!x||!Hb(m,x)});!l&&!d||(l&&(this.#c=a,this.#s=r),this.#e=i,this.hasListeners()&&(l&&(x_(n,r).forEach(m=>{m.destroy()}),x_(r,n).forEach(m=>{m.subscribe(h=>{this.#f(m,h)})})),this.#m()))})}getCurrentResult(){return this.#e}getQueries(){return this.#s.map(e=>e.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(e,t){const n=this.#l(e),a=n.map(i=>i.observer.getOptimisticResult(i.defaultedQueryOptions)),r=n.map(i=>i.defaultedQueryOptions.queryHash);return[a,i=>this.#d(i??a,t,r),()=>this.#p(a,n)]}#p(e,t){return t.map((n,a)=>{const r=e[a];return n.defaultedQueryOptions.notifyOnChangeProps?r:n.observer.trackResult(r,i=>{t.forEach(o=>{o.observer.trackProp(i)})})})}#d(e,t,n){if(t){const a=this.#u,r=n!==void 0&&a!==void 0&&(a.length!==n.length||n.some((i,o)=>i!==a[o]));return(!this.#r||this.#e!==this.#i||r||t!==this.#o)&&(this.#o=t,this.#i=this.#e,n!==void 0&&(this.#u=n),this.#r=jj(this.#r,t(e))),this.#r}return e}#h(){return this.#a?.combine!==void 0&&this.#s.some((e,t)=>e.options.suspense&&this.#e[t]?.data===void 0)}#l(e){const t=new Map;this.#s.forEach(a=>{const r=a.options.queryHash;if(!r)return;const i=t.get(r);i?i.push(a):t.set(r,[a])});const n=[];return e.forEach(a=>{const r=this.#t.defaultQueryOptions(a),o=t.get(r.queryHash)?.shift()??new C2(this.#t,r);n.push({defaultedQueryOptions:r,observer:o})}),n}#f(e,t){const n=this.#s.indexOf(e);n!==-1&&(this.#e=mZ(this.#e,n,t),this.#m())}#m(){if(this.hasListeners()){const e=this.#p(this.#e,this.#c),t=this.#h(),n=this.#r,a=t?n:this.#d(e,this.#a?.combine);(t||n!==a)&&Br.batch(()=>{this.listeners.forEach(r=>{r(this.#e)})})}}},hZ=class extends G0{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const a=t.queryKey,r=t.queryHash??kj(a,t);let i=this.get(r);return i||(i=new iZ({client:e,queryKey:a,queryHash:r,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(i)),i}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Br.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>l_(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>l_(e,n)):t}notify(e){Br.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Br.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Br.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},fZ=class{#t;#e;#n;#a;#s;#r;#o;#i;constructor(e={}){this.#t=e.queryCache||new hZ,this.#e=e.mutationCache||new uZ,this.#n=e.defaultOptions||{},this.#a=new Map,this.#s=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#o=Nj.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=u3.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#o?.(),this.#o=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#t.build(this,t),a=n.state.data;return a===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(eh(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(a))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:n})=>{const a=n.data;return[t,a]})}setQueryData(e,t,n){const a=this.defaultQueryOptions({queryKey:e}),i=this.#t.get(a.queryHash)?.state.data,o=JK(t,i);if(o!==void 0)return this.#t.build(this,a).setData(o,{...n,manual:!0})}
vendor: 11,351 bytes, lines 10-18
10setQueriesData(e,t,n){return Br.batch(()=>this.#t.findAll(e).map(({queryKey:a})=>[a,this.setQueryData(a,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;Br.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return Br.batch(()=>(n.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},a=Br.batch(()=>this.#t.findAll(e).map(r=>r.cancel(n)));return Promise.all(a).then(bo).catch(bo)}invalidateQueries(e,t={}){return Br.batch(()=>(this.#t.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},a=Br.batch(()=>this.#t.findAll(e).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let i=r.fetch(void 0,n);return n.throwOnError||(i=i.catch(bo)),r.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(a).then(bo)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(eh(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(bo).catch(bo)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(bo).catch(bo)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return u3.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#a.set(ah(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#a.values()],n={};return t.forEach(a=>{Ub(e,a.queryKey)&&Object.assign(n,a.defaultOptions)}),n}setMutationDefaults(e,t){this.#s.set(ah(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#s.values()],n={};return t.forEach(a=>{Ub(e,a.mutationKey)&&Object.assign(n,a.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=kj(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===Wc&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},aT={exports:{}},na={};/** 11 * @license React 12 * react.production.js 13 * 14 * Copyright (c) Meta Platforms, Inc. and affiliates. 15 * 16 * This source code is licensed under the MIT license found in the 17 * LICENSE file in the root directory of this source tree. 18 */var b_;function gZ(){if(b_)return na;b_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),o=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),x=Symbol.iterator;function f(Y){return Y===null||typeof Y!="object"?null:(Y=x&&Y[x]||Y["@@iterator"],typeof Y=="function"?Y:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,w={};function T(Y,z,H){this.props=Y,this.context=z,this.refs=w,this.updater=H||b}T.prototype.isReactComponent={},T.prototype.setState=function(Y,z){if(typeof Y!="object"&&typeof Y!="function"&&Y!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Y,z,"setState")},T.prototype.forceUpdate=function(Y){this.updater.enqueueForceUpdate(this,Y,"forceUpdate")};function A(){}A.prototype=T.prototype;function E(Y,z,H){this.props=Y,this.context=z,this.refs=w,this.updater=H||b}var D=E.prototype=new A;D.constructor=E,y(D,T.prototype),D.isPureReactComponent=!0;var S=Array.isArray;function R(){}var L={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function F(Y,z,H){var ne=H.ref;return{$$typeof:e,type:Y,key:z,ref:ne!==void 0?ne:null,props:H}}function _(Y,z){return F(Y.type,z,Y.props)}function U(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===e}function O(Y){var z={"=":"=0",":":"=2"};return"$"+Y.replace(/[=:]/g,function(H){return z[H]})}var W=/\/+/g;function J(Y,z){return typeof Y=="object"&&Y!==null&&Y.key!=null?O(""+Y.key):z.toString(36)}function oe(Y){switch(Y.status){case"fulfilled":return Y.value;case"rejected":throw Y.reason;default:switch(typeof Y.status=="string"?Y.then(R,R):(Y.status="pending",Y.then(function(z){Y.status==="pending"&&(Y.status="fulfilled",Y.value=z)},function(z){Y.status==="pending"&&(Y.status="rejected",Y.reason=z)})),Y.status){case"fulfilled":return Y.value;case"rejected":throw Y.reason}}throw Y}function G(Y,z,H,ne,te){var me=typeof Y;(me==="undefined"||me==="boolean")&&(Y=null);var fe=!1;if(Y===null)fe=!0;else switch(me){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(Y.$$typeof){case e:case t:fe=!0;break;case m:return fe=Y._init,G(fe(Y._payload),z,H,ne,te)}}if(fe)return te=te(Y),fe=ne===""?"."+J(Y,0):ne,S(te)?(H="",fe!=null&&(H=fe.replace(W,"$&/")+"/"),G(te,z,H,"",function(ae){return ae})):te!=null&&(U(te)&&(te=_(te,H+(te.key==null||Y&&Y.key===te.key?"":(""+te.key).replace(W,"$&/")+"/")+fe)),z.push(te)),1;fe=0;var Ae=ne===""?".":ne+":";if(S(Y))for(var xe=0;xe<Y.length;xe++)ne=Y[xe],me=Ae+J(ne,xe),fe+=G(ne,z,H,me,te);else if(xe=f(Y),typeof xe=="function")for(Y=xe.call(Y),xe=0;!(ne=Y.next()).done;)ne=ne.value,me=Ae+J(ne,xe++),fe+=G(ne,z,H,me,te);else if(me==="object"){if(typeof Y.then=="function")return G(oe(Y),z,H,ne,te);throw z=String(Y),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(Y).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.")}return fe}function K(Y,z,H){if(Y==null)return Y;var ne=[],te=0;return G(Y,ne,"","",function(me){return z.call(H,me,te++)}),ne}function ee(Y){if(Y._status===-1){var z=Y._result;z=z(),z.then(function(H){(Y._status===0||Y._status===-1)&&(Y._status=1,Y._result=H)},function(H){(Y._status===0||Y._status===-1)&&(Y._status=2,Y._result=H)}),Y._status===-1&&(Y._status=0,Y._result=z)}if(Y._status===1)return Y._result.default;throw Y._result}var pe=typeof reportError=="function"?reportError:function(Y){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof Y=="object"&&Y!==null&&typeof Y.message=="string"?String(Y.message):String(Y),error:Y});if(!window.dispatchEvent(z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",Y);return}console.error(Y)},V={map:K,forEach:function(Y,z,H){K(Y,function(){z.apply(this,arguments)},H)},count:function(Y){var z=0;return K(Y,function(){z++}),z},toArray:function(Y){return K(Y,function(z){return z})||[]},only:function(Y){if(!U(Y))throw Error("React.Children.only expected to receive a single React element child.");return Y}};return na.Activity=h,na.Children=V,na.Component=T,na.Fragment=n,na.Profiler=r,na.PureComponent=E,na.StrictMode=a,na.Suspense=l,na.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,na.__COMPILER_RUNTIME={__proto__:null,c:function(Y){return L.H.useMemoCache(Y)}},na.cache=function(Y){return function(){return Y.apply(null,arguments)}},na.cacheSignal=function(){return null},na.cloneElement=function(Y,z,H){if(Y==null)throw Error("The argument must be a React element, but you passed "+Y+".");var ne=y({},Y.props),te=Y.key;if(z!=null)for(me in z.key!==void 0&&(te=""+z.key),z)!I.call(z,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&z.ref===void 0||(ne[me]=z[me]);var me=arguments.length-2;if(me===1)ne.children=H;else if(1<me){for(var fe=Array(me),Ae=0;Ae<me;Ae++)fe[Ae]=arguments[Ae+2];ne.children=fe}return F(Y.type,te,ne)},na.createContext=function(Y){return Y={$$typeof:o,_currentValue:Y,_currentValue2:Y,_threadCount:0,Provider:null,Consumer:null},Y.Provider=Y,Y.Consumer={$$typeof:i,_context:Y},Y},na.createElement=function(Y,z,H){var ne,te={},me=null;if(z!=null)for(ne in z.key!==void 0&&(me=""+z.key),z)I.call(z,ne)&&ne!=="key"&&ne!=="__self"&&ne!=="__source"&&(te[ne]=z[ne]);var fe=arguments.length-2;if(fe===1)te.children=H;else if(1<fe){for(var Ae=Array(fe),xe=0;xe<fe;xe++)Ae[xe]=arguments[xe+2];te.children=Ae}if(Y&&Y.defaultProps)for(ne in fe=Y.defaultProps,fe)te[ne]===void 0&&(te[ne]=fe[ne]);return F(Y,me,te)},na.createRef=function(){return{current:null}},na.forwardRef=function(Y){return{$$typeof:c,render:Y}},na.isValidElement=U,na.lazy=function(Y){return{$$typeof:m,_payload:{_status:-1,_result:Y},_init:ee}},na.memo=function(Y,z){return{$$typeof:d,type:Y,compare:z===void 0?null:z}},na.startTransition=function(Y){var z=L.T,H={};L.T=H;try{var ne=Y(),te=L.S;te!==null&&te(H,ne),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"&&ne.then(R,pe)}catch(me){pe(me)}finally{z!==null&&H.types!==null&&(z.types=H.types),L.T=z}},na.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},na.use=function(Y){return L.H.use(Y)},na.useActionState=function(Y,z,H){return L.H.useActionState(Y,z,H)},na.useCallback=function(Y,z){return L.H.useCallback(Y,z)},na.useContext=function(Y){return L.H.useContext(Y)},na.useDebugValue=function(){},na.useDeferredValue=function(Y,z){return L.H.useDeferredValue(Y,z)},na.useEffect=function(Y,z){return L.H.useEffect(Y,z)},na.useEffectEvent=function(Y){return L.H.useEffectEvent(Y)},na.useId=function(){return L.H.useId()},na.useImperativeHandle=function(Y,z,H){return L.H.useImperativeHandle(Y,z,H)},na.useInsertionEffect=function(Y,z){return L.H.useInsertionEffect(Y,z)},na.useLayoutEffect=function(Y,z){return L.H.useLayoutEffect(Y,z)},na.useMemo=function(Y,z){return L.H.useMemo(Y,z)},na.useOptimistic=function(Y,z){return L.H.useOptimistic(Y,z)},na.useReducer=function(Y,z,H){return L.H.useReducer(Y,z,H)},na.useRef=function(Y){return L.H.useRef(Y)},na.useState=function(Y){return L.H.useState(Y)},na.useSyncExternalStore=function(Y,z,H){return L.H.useSyncExternalStore(Y,z,H)},na.useTransition=function(){return L.H.useTransition()},na.version="19.2.1",na}var v_;function y4(){return v_||(v_=1,aT.exports=gZ()),aT.exports}var k=y4();const Lt=v4(k),w4=FK({__proto__:null,default:Lt},[k]);var IB=k.createContext(void 0),S2=e=>{const t=k.useContext(IB);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},xZ=({client:e,children:t})=>(k.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),s.jsx(IB.Provider,{value:e,children:t})),MB=k.createContext(!1),LB=()=>k.useContext(MB);MB.Provider;function bZ(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
18var vZ=k.createContext(bZ()),OB=()=>k.useContext(vZ),BB=(e,t,n)=>{const a=n?.state.error&&typeof e.throwOnError=="function"?Aj(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||a)&&(t.isReset()||(e.retryOnMount=!1))},FB=e=>{k.useEffect(()=>{e.clearReset()},[e])},UB=({result:e,errorResetBoundary:t,throwOnError:n,query:a,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&a&&(r&&e.data===void 0||Aj(n,[e.error,a])),Cj=(e,t)=>t.state.data===void 0,HB=e=>{if(e.suspense){const n=r=>r==="static"?r:Math.max(r??1e3,1e3),a=e.staleTime;e.staleTime=typeof a=="function"?(...r)=>n(a(...r)):n(a),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},yZ=(e,t)=>e.isLoading&&e.isFetching&&!t,tk=(e,t)=>e?.suspense&&t.isPending,nk=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function VB({queries:e,...t},n){const a=S2(n),r=LB(),i=OB(),o=k.useMemo(()=>e.map(y=>{const w=a.defaultQueryOptions(y);return w._optimisticResults=r?"isRestoring":"optimistic",w}),[e,a,r]);o.forEach(y=>{HB(y);const w=a.getQueryCache().get(y.queryHash);BB(y,i,w)}),FB(i);const[c]=k.useState(()=>new pZ(a,o,t)),[l,d,m]=c.getOptimisticResult(o,t.combine),h=!r&&t.subscribed!==!1;
18k.useSyncExternalStore(k.useCallback(y=>h?c.subscribe(Br.batchCalls(y)):bo,[c,h]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),k.useEffect(()=>{c.setQueries(o,t)},[o,t,c]);const f=l.some((y,w)=>tk(o[w],y))?l.flatMap((y,w)=>{const T=o[w];if(T&&tk(T,y)){const A=new C2(a,T);return nk(T,A,i)}return[]}):[];if(f.length>0)throw Promise.all(f);const b=l.find((y,w)=>{const T=o[w];return T&&UB({result:y,errorResetBoundary:i,throwOnError:T.throwOnError,query:a.getQueryCache().get(T.queryHash),suspense:T.suspense})});if(b?.error)throw b.error;return d(m())}function T4(e,t,n){const a=LB(),r=OB(),i=S2(n),o=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(o);const c=i.getQueryCache().get(o.queryHash),l=e.subscribed!==!1;o._optimisticResults=a?"isRestoring":l?"optimistic":void 0,HB(o),BB(o,r,c),FB(r);const d=!i.getQueryCache().get(o.queryHash),[m]=k.useState(()=>new t(i,o)),h=m.getOptimisticResult(o),x=!a&&l;if(k.useSyncExternalStore(k.useCallback(f=>{const b=x?m.subscribe(Br.batchCalls(f)):bo;return m.updateResult(),b},[m,x]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),k.useEffect(()=>{m.setOptions(o)},[o,m]),tk(o,h))throw nk(o,m,r);if(UB({result:h,errorResetBoundary:r,throwOnError:o.throwOnError,query:c,suspense:o.suspense}))throw h.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(o,h),o.experimental_prefetchInRender&&!Vb.isServer()&&yZ(h,a)&&(d?nk(o,m,r):c?.promise)?.catch(bo).finally(()=>{m.updateResult()}),o.notifyOnChangeProps?h:m.trackResult(h)}function wZ(e,t){return T4(e,C2,t)}function TZ(e,t){return T4({...e,enabled:!0,suspense:!0,throwOnError:Cj,placeholderData:void 0},C2,t)}function NZ(e,t){return T4({...e,enabled:!0,suspense:!0,throwOnError:Cj},DB,t)}function kZ(e,t){return VB({...e,queries:e.queries.map(n=>({...n,suspense:!0,throwOnError:Cj,enabled:!0,placeholderData:void 0}))},t)}function jZ(e,t){const n=S2(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function AZ(e,t){const n=S2(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}function EZ(e,t){const n=S2(t),[a]=k.useState(()=>new dZ(n,e));k.useEffect(()=>{a.setOptions(e)},[a,e]);const r=k.useSyncExternalStore(k.useCallback(o=>a.subscribe(Br.batchCalls(o)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),i=k.useCallback((o,c)=>{a.mutate(o,c).catch(bo)},[a]);if(r.error&&Aj(a.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:i,mutateAsync:r.mutate}}function CZ(e,t){return T4(e,DB,t)}function _0(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}function SZ(){return Object.create(null)}const _Z=typeof Symbol=="function"&&!!Symbol.asyncIterator;function zB(e){return _Z&&_0(e)&&Symbol.asyncIterator in e}var PZ=Object.create,$B=Object.defineProperty,DZ=Object.getOwnPropertyDescriptor,qB=Object.getOwnPropertyNames,RZ=Object.getPrototypeOf,IZ=Object.prototype.hasOwnProperty,_2=(e,t)=>function(){return t||(0,e[qB(e)[0]])((t={exports:{}}).exports,t),t.exports},MZ=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(var r=qB(t),i=0,o=r.length,c;i<o;i++)c=r[i],!IZ.call(e,c)&&c!==n&&$B(e,c,{get:(l=>t[l]).bind(null,c),enumerable:!(a=DZ(t,c))||a.enumerable});return e},N4=(e,t,n)=>(n=e!=null?PZ(RZ(e)):{},MZ($B(n,"default",{value:e,enumerable:!0}),e));const GB=()=>{},y_=e=>{Object.freeze&&Object.freeze(e)};function JB(e,t,n){var a;const r=t.join(".");return(a=n[r])!==null&&a!==void 0||(n[r]=new Proxy(GB,{get(i,o){if(!(typeof o!="string"||o==="then"))return JB(e,[...t,o],n)},apply(i,o,c){const l=t[t.length-1];if(l==="valueOf"||l==="toString"||l==="toJSON")return`tRPC.proxy(${t.slice(0,-1).join(".")})`;let d={args:c,path:t};return l==="call"?d={args:c.length>=2?[c[1]]:[],path:t.slice(0,-1)}:l==="apply"&&(d={args:c.length>=2?c[1]:[],path:t.slice(0,-1)}),y_(d.args),y_(d.path),e(d)}})),n[r]}const k4=e=>JB(e,[],SZ()),Sj=e=>new Proxy(GB,{get(t,n){if(n!=="then")return e(n)}});var WB=_2({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(a){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r}
18,t.exports.__esModule=!0,t.exports.default=t.exports,n(a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),LZ=_2({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=WB().default;function a(r,i){if(n(r)!="object"||!r)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var c=o.call(r,i||"default");if(n(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),OZ=_2({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=WB().default,a=LZ();function r(i){var o=a(i,"string");return n(o)=="symbol"?o:o+""}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),YB=_2({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=OZ();function a(r,i,o){return(i=n(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),_j=_2({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=YB();function a(i,o){var c=Object.keys(i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);o&&(l=l.filter(function(d){return Object.getOwnPropertyDescriptor(i,d).enumerable})),c.push.apply(c,l)}return c}function r(i){for(var o=1;o<arguments.length;o++){var c=arguments[o]!=null?arguments[o]:{};o%2?a(Object(c),!0).forEach(function(l){n(i,l,c[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(c)):a(Object(c)).forEach(function(l){Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(c,l))})}return i}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});N4(_j());N4(YB());var sy=N4(_j());function BZ(e,t){if("error"in e){const a=t.deserialize(e.error);return{ok:!1,error:(0,sy.default)((0,sy.default)({},e),{},{error:a})}}return{ok:!0,result:(0,sy.default)((0,sy.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var sT=class extends Error{constructor(){super("Unable to transform response from server")}};function XB(e,t){let n;try{n=BZ(e,t)}catch{throw new sT}if(!n.ok&&(!_0(n.error.error)||typeof n.error.error.code!="number"))throw new sT;if(n.ok&&!_0(n.result))throw new sT;return n}N4(_j());function px(e){const t={subscribe(n){let a=null,r=!1,i=!1,o=!1;function c(){if(a===null){o=!0;return}i||(i=!0,typeof a=="function"?a():a&&a.unsubscribe())}return a=e({next(l){var d;r||(d=n.next)===null||d===void 0||d.call(n,l)},error(l){var d;r||(r=!0,(d=n.error)===null||d===void 0||d.call(n,l),c())},complete(){var l;r||(r=!0,(l=n.complete)===null||l===void 0||l.call(n),c())}}),o&&c(),{unsubscribe:c}},pipe(...n){return n.reduce(FZ,t)}};return t}function FZ(e,t){return t(e)}function UZ(e){const t=new AbortController;return new Promise((a,r)=>{let i=!1;function o(){i||(i=!0,c.unsubscribe())}t.signal.addEventListener("abort",()=>{r(t.signal.reason)});const c=e.subscribe({next(l){i=!0,a(l),o()},error(l){r(l)},complete(){t.abort(),o()}})})}var HZ=Object.create,QB=Object.defineProperty,VZ=Object.getOwnPropertyDescriptor,KB=Object.getOwnPropertyNames,zZ=Object.getPrototypeOf,$Z=Object.prototype.hasOwnProperty,bh=(e,t)=>function(){return t||(0,e[KB(e)[0]])((t={exports:{}}).exports,t),t.exports},qZ=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(var r=KB(t),i=0,o=r.length,c;i<o;i++)c=r[i],!$Z.call(e,c)&&c!==n&&QB(e,c,{get:(l=>t[l]).bind(null,c),enumerable:!(a=VZ(t,c))||a.enumerable});return e},J0=(e,t,n)=>(n=e!=null?HZ(zZ(e)):{},qZ(t||!e||!e.__esModule?QB(n,"default",{value:e,enumerable:!0}):n,e)),GZ=bh({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function n(a,r){if(a==null)return{};var i={};for(var o in a)if({}.hasOwnProperty.call(a,o)){if(r.includes(o))continue;i[o]=a[o]}return i}
18t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),JZ=bh({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=GZ();function a(r,i){if(r==null)return{};var o,c,l=n(r,i);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(r);for(c=0;c<d.length;c++)o=d[c],i.includes(o)||{}.propertyIsEnumerable.call(r,o)&&(l[o]=r[o])}return l}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),ZB=bh({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(a){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},t.exports.__esModule=!0,t.exports.default=t.exports,n(a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),WZ=bh({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=ZB().default;function a(r,i){if(n(r)!="object"||!r)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var c=o.call(r,i||"default");if(n(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),YZ=bh({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=ZB().default,a=WZ();function r(i){var o=a(i,"string");return n(o)=="symbol"?o:o+""}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),XZ=bh({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=YZ();function a(r,i,o){return(i=n(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),P2=bh({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=XZ();function a(i,o){var c=Object.keys(i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);o&&(l=l.filter(function(d){return Object.getOwnPropertyDescriptor(i,d).enumerable})),c.push.apply(c,l)}return c}function r(i){for(var o=1;o<arguments.length;o++){var c=arguments[o]!=null?arguments[o]:{};o%2?a(Object(c),!0).forEach(function(l){n(i,l,c[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(c)):a(Object(c)).forEach(function(l){Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(c,l))})}return i}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),QZ=J0(JZ(),1),w_=J0(P2(),1);const KZ=["cursor","direction"];function dd(e,t,n){const a=e.flatMap(r=>r.split("."));if(!t&&(!n||n==="any"))return a.length?[a]:[];if(n==="infinite"&&_0(t)&&("direction"in t||"cursor"in t)){const{cursor:r,direction:i}=t,o=(0,QZ.default)(t,KZ);return[a,{input:o,type:"infinite"}]}return[a,(0,w_.default)((0,w_.default)({},typeof t<"u"&&t!==Wc&&{input:t}),n&&n!=="any"&&{type:n})]}function I5(e){return dd(e,void 0,"any")}var ZZ=Object.create,eF=Object.defineProperty,eee=Object.getOwnPropertyDescriptor,tF=Object.getOwnPropertyNames,tee=Object.getPrototypeOf,nee=Object.prototype.hasOwnProperty,Id=(e,t)=>function(){return t||(0,e[tF(e)[0]])((t={exports:{}}).exports,t),t.exports},aee=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(var r=tF(t),i=0,o=r.length,c;i<o;i++)c=r[i],!nee.call(e,c)&&c!==n&&eF(e,c,{get:(l=>t[l]).bind(null,c),enumerable:!(a=eee(t,c))||a.enumerable});return e},ti=(e,t,n)=>(n=e!=null?ZZ(tee(e)):{},aee(eF(n,"default",{value:e,enumerable:!0}),e)),nF=Id({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(a){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r}
18,t.exports.__esModule=!0,t.exports.default=t.exports,n(a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),see=Id({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=nF().default;function a(r,i){if(n(r)!="object"||!r)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var c=o.call(r,i||"default");if(n(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),ree=Id({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=nF().default,a=see();function r(i){var o=a(i,"string");return n(o)=="symbol"?o:o+""}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),W0=Id({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=ree();function a(r,i,o){return(i=n(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),ju=Id({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=W0();function a(i,o){var c=Object.keys(i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);o&&(l=l.filter(function(d){return Object.getOwnPropertyDescriptor(i,d).enumerable})),c.push.apply(c,l)}return c}function r(i){for(var o=1;o<arguments.length;o++){var c=arguments[o]!=null?arguments[o]:{};o%2?a(Object(c),!0).forEach(function(l){n(i,l,c[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(c)):a(Object(c)).forEach(function(l){Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(c,l))})}return i}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});function iee(e){return t=>{let n=0,a=null;const r=[];function i(){a||(a=t.subscribe({next(c){for(const d of r){var l;(l=d.next)===null||l===void 0||l.call(d,c)}},error(c){for(const d of r){var l;(l=d.error)===null||l===void 0||l.call(d,c)}},complete(){for(const l of r){var c;(c=l.complete)===null||c===void 0||c.call(l)}}}))}function o(){if(n===0&&a){const c=a;a=null,c.unsubscribe()}}return px(c=>(n++,r.push(c),i(),{unsubscribe(){n--,o();const l=r.findIndex(d=>d===c);l>-1&&r.splice(l,1)}}))}}function oee(e){let t=e;const n=[],a=o=>{t!==void 0&&o.next(t),n.push(o)},r=o=>{n.splice(n.indexOf(o),1)},i=px(o=>(a(o),()=>{r(o)}));return i.next=o=>{if(t!==o){t=o;for(const c of n)c.next(o)}},i.get=()=>t,i}function aF(e){return px(t=>{function n(r=0,i=e.op){const o=e.links[r];if(!o)throw new Error("No more links to execute - did you forget to add an ending link?");return o({op:i,next(l){return n(r+1,l)}})}return n().subscribe(t)})}function T_(e){return Array.isArray(e)?e:[e]}function cee(e){return t=>{const n=T_(e.true).map(r=>r(t)),a=T_(e.false).map(r=>r(t));return r=>px(i=>{const o=e.condition(r.op)?n:a;return aF({op:r.op,links:o}).subscribe(i)})}}var ry=ti(W0()),Zf=ti(ju());function lee(e){return e instanceof P0}function uee(e){return _0(e)&&_0(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function dee(e,t){return typeof e=="string"?e:_0(e)&&typeof e.message=="string"?e.message:t}var P0=class M5 extends Error{constructor(t,n){var a,r;const i=n?.cause;super(t,{cause:i}),(0,ry.default)(this,"cause",void 0),(0,ry.default)(this,"shape",void 0),(0,ry.default)(this,"data",void 0),(0,ry.default)(this,"meta",void 0),this.meta=n?.meta,this.cause=i,this.shape=n==null||(a=n.result)===null||a===void 0?void 0:a.error,this.data=n==null||(r=n.result)===null||r===void 0?void 0:r.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,M5.prototype)}static from(t,n={}){const a=t;return lee(a)?(n.meta&&(a.meta=(0,Zf.default)((0,Zf.default)({},a.meta),n.meta)),a):uee(a)?new M5(a.error.message,(0,Zf.default)((0,Zf.default)({},n),{},{result:a,cause:n.cause})):new M5(dee(a,"Unknown error"),(0,Zf.default)((0,Zf.default)({},n),{},{cause:a}))}};function mee(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:n=>n,deserialize:n=>n}
18,output:{serialize:n=>n,deserialize:n=>n}}}const N_=e=>typeof e=="function";function pee(e){if(e)return e;if(typeof window<"u"&&N_(window.fetch))return window.fetch;if(typeof globalThis<"u"&&N_(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var pb=ti(ju());function sF(e){return{url:e.url.toString(),fetch:e.fetch,transformer:mee(e.transformer),methodOverride:e.methodOverride}}function hee(e){const t={};for(let n=0;n<e.length;n++){const a=e[n];t[n]=a}return t}const fee={query:"GET",mutation:"POST",subscription:"PATCH"};function rF(e){return"input"in e?e.transformer.input.serialize(e.input):hee(e.inputs.map(t=>e.transformer.input.serialize(t)))}const d3=e=>{const t=e.url.split("?");let a=t[0].replace(/\/$/,"")+"/"+e.path;const r=[];if(t[1]&&r.push(t[1]),"inputs"in e&&r.push("batch=1"),e.type==="query"||e.type==="subscription"){const i=rF(e);i!==void 0&&e.methodOverride!=="POST"&&r.push(`input=${encodeURIComponent(JSON.stringify(i))}`)}return r.length&&(a+="?"+r.join("&")),a},gee=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=rF(e);return t!==void 0?JSON.stringify(t):void 0},iF=e=>ak((0,pb.default)((0,pb.default)({},e),{},{contentTypeHeader:"application/json",getUrl:d3,getBody:gee}));var xee=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const bee=e=>{var t;if(e?.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new xee};async function vee(e){var t,n;bee(e.signal);const a=e.getUrl(e),r=e.getBody(e),i=(t=e.methodOverride)!==null&&t!==void 0?t:fee[e.type],o=await(async()=>{const l=await e.headers();return Symbol.iterator in l?Object.fromEntries(l):l})(),c=(0,pb.default)((0,pb.default)((0,pb.default)({},e.contentTypeHeader&&i!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{[(n=e.trpcAcceptHeaderKey)!==null&&n!==void 0?n:"trpc-accept"]:e.trpcAcceptHeader}:void 0),o);return pee(e.fetch)(a,{method:i,signal:e.signal,body:r,headers:c})}async function ak(e){const t={},n=await vee(e);t.response=n;const a=await n.json();return t.responseJSON=a,{json:a,meta:t}}function yee(e){return e instanceof Uint8Array||e instanceof Blob}function wee(e){return e instanceof FormData}var _g=ti(ju());const Tee=e=>{if("input"in e){const{input:t}=e;if(wee(t)){if(e.type!=="mutation"&&e.methodOverride!=="POST")throw new Error("FormData is only supported for mutations");return ak((0,_g.default)((0,_g.default)({},e),{},{contentTypeHeader:void 0,getUrl:d3,getBody:()=>t}))}if(yee(t)){if(e.type!=="mutation"&&e.methodOverride!=="POST")throw new Error("Octet type input is only supported for mutations");return ak((0,_g.default)((0,_g.default)({},e),{},{contentTypeHeader:"application/octet-stream",getUrl:d3,getBody:()=>t}))}}return iF(e)};function Nee(e){const t=sF(e);return()=>n=>{const{op:a}=n;return px(r=>{const{path:i,input:o,type:c}=a;/* istanbul ignore if -- @preserve */if(c==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const l=Tee((0,_g.default)((0,_g.default)({},t),{},{type:c,path:i,input:o,signal:a.signal,headers(){return e.headers?typeof e.headers=="function"?e.headers({op:a}):e.headers:{}}}));let d;return l.then(m=>{d=m.meta;const h=XB(m.json,t.transformer.output);if(!h.ok){r.error(P0.from(h.error,{meta:d}));return}r.next({context:m.meta,result:h.result}),r.complete()}).catch(m=>{r.error(P0.from(m,{meta:d}))}),()=>{}})}}const k_=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function j_(e){let t=null,n=null;const a=()=>{clearTimeout(n),n=null,t=null};function r(c){const l=[[]];let d=0;for(;;){const x=c[d];if(!x)break;const f=l[l.length-1];if(x.aborted){var m;(m=x.reject)===null||m===void 0||m.call(x,new Error("Aborted")),d++;continue}if(e.validate(f.concat(x).map(y=>y.key))){f.push(x),d++;continue}if(f.length===0){var h;(h=x.reject)===null||h===void 0||h.call(x,new Error("Input is too big for a single dispatch")),d++;continue}l.push([])}return l}function i(){const c=r(t);a();for(const l of c){if(!l.length)continue;const d={items:l};for(const h of l)h.batch=d;e.fetch(d.items.map(h=>h.key)).then(async h=>{await Promise.all(h.map(async(f,b)=>{const y=d.items[b];try{var w;const A=await Promise.resolve(f);(w=y.resolve)===null||w===void 0||w.call(y,A)}catch(A){var T;(T=y.reject)===null||T===void 0||T.call(y,A)}y.batch=null,y.reject=null,y.resolve=null}));for(const f of d.items){var x;(x=f.reject)===null||x===void 0||x.call(f,new Error("Missing result")),f.batch=null}}).catch(h=>{for(const f of d.items){var x;(x=f.reject)===null||x===void 0||x.call(f,h),f.batch=null}})}}function o(c){var l;const d={aborted:!1,key:c,batch:null,resolve:k_,reject:k_},m=new Promise((h,x)=>{var f;d.reject=x,d.resolve=h,(f=t)!==null&&f!==void 0||(t=[]),t.push(d)});return(l=n)!==null&&l!==void 0||(n=setTimeout(i)),m}return{load:o}}function kee(...e){const t=new AbortController,n=e.length;let a=0;const r=()=>{++a===n&&t.abort()};for(const i of e)i?.aborted?r():i?.addEventListener("abort",r,{once:!0});return t.signal}var iy=ti(ju());function jee(e){var t,n;const a=sF(e),r=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,i=(n=e.maxItems)!==null&&n!==void 0?n:1/0;return()=>{const o=m=>
18({validate(h){if(r===1/0&&i===1/0)return!0;if(h.length>i)return!1;const x=h.map(y=>y.path).join(","),f=h.map(y=>y.input);return d3((0,iy.default)((0,iy.default)({},a),{},{type:m,path:x,inputs:f,signal:null})).length<=r},async fetch(h){const x=h.map(A=>A.path).join(","),f=h.map(A=>A.input),b=kee(...h.map(A=>A.signal)),y=await iF((0,iy.default)((0,iy.default)({},a),{},{path:x,inputs:f,type:m,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:h}):e.headers:{}},signal:b}));return(Array.isArray(y.json)?y.json:h.map(()=>y.json)).map(A=>({meta:y.meta,json:A}))}}),c=j_(o("query")),l=j_(o("mutation")),d={query:c,mutation:l};return({op:m})=>px(h=>{/* istanbul ignore if -- @preserve */if(m.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const f=d[m.type].load(m);let b;return f.then(y=>{b=y;const w=XB(y.json,a.transformer.output);if(!w.ok){h.error(P0.from(w.error,{meta:y.meta}));return}h.next({context:y.meta,result:w.result}),h.complete()}).catch(y=>{h.error(P0.from(y,{meta:b?.meta}))}),()=>{}})}}ti(ju());const oF=(e,...t)=>typeof e=="function"?e(...t):e;ti(W0());function Aee(){let e,t;return{promise:new Promise((a,r)=>{e=a,t=r}),resolve:e,reject:t}}async function Eee(e){const t=await oF(e.url);if(!e.connectionParams)return t;const a=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+a}async function Cee(e,t){const n={method:"connectionParams",data:await oF(e)};return t.encode(n)}ti(W0());var Fp=ti(W0());function See(e){const{promise:t,resolve:n,reject:a}=Aee();return e.addEventListener("open",()=>{e.removeEventListener("error",a),n()}),e.addEventListener("error",a),t}function _ee(e,{intervalMs:t,pongTimeoutMs:n}){let a,r;function i(){a=setTimeout(()=>{e.send("PING"),r=setTimeout(()=>{e.close()},n)},t)}function o(){clearTimeout(a),i()}function c(){clearTimeout(r),o()}e.addEventListener("open",i),e.addEventListener("message",({data:l})=>{clearTimeout(a),i(),l==="PONG"&&c()}),e.addEventListener("close",()=>{clearTimeout(a),clearTimeout(r)})}var Pee=class sk{constructor(t){var n;if((0,Fp.default)(this,"id",++sk.connectCount),(0,Fp.default)(this,"WebSocketPonyfill",void 0),(0,Fp.default)(this,"urlOptions",void 0),(0,Fp.default)(this,"keepAliveOpts",void 0),(0,Fp.default)(this,"encoder",void 0),(0,Fp.default)(this,"wsObservable",oee(null)),(0,Fp.default)(this,"openPromise",null),this.WebSocketPonyfill=(n=t.WebSocketPonyfill)!==null&&n!==void 0?n:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive,this.encoder=t.encoder}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++sk.connectCount;const n=Eee(t.urlOptions).then(a=>new t.WebSocketPonyfill(a));t.openPromise=n.then(async a=>{t.ws=a,a.binaryType="arraybuffer",a.addEventListener("message",function({data:r}){r==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&_ee(a,t.keepAliveOpts),a.addEventListener("close",()=>{t.ws===a&&(t.ws=null)}),await See(a),t.urlOptions.connectionParams&&a.send(await Cee(t.urlOptions.connectionParams,t.encoder))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var n;(n=t.ws)===null||n===void 0||n.close()}}};(0,Fp.default)(Pee,"connectCount",0);ti(W0());ti(ju());var rT=ti(W0()),A_=ti(ju()),j4=class{constructor(e){(0,rT.default)(this,"links",void 0),(0,rT.default)(this,"runtime",void 0),(0,rT.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return aF({links:this.links,op:(0,A_.default)((0,A_.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(iee())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await UZ(n)).result.data}catch(n){throw P0.from(n)}}query(e,t,n){return this.requestAsPromise({type:"query",path:e,input:t,context:n?.context,signal:n?.signal})}mutation(e,t,n){return this.requestAsPromise({type:"mutation",path:e,input:t,context:n?.context,signal:n?.signal})}subscription(e,t,n){return this.$request({type:"subscription",path:e,input:t,context:n.context,signal:n.signal}).subscribe({next(r){switch(r.result.type){case"state":{var i;(i=n.onConnectionStateChange)===null||i===void 0||i.call(n,r.result);break}case"started":{var o;(o=n.onStarted)===null||o===void 0||o.call(n,{context:r.context});break}case"stopped":{var c;
18(c=n.onStopped)===null||c===void 0||c.call(n);break}case"data":case void 0:{var l;(l=n.onData)===null||l===void 0||l.call(n,r.result.data);break}}},error(r){var i;(i=n.onError)===null||i===void 0||i.call(n,r)},complete(){var r;(r=n.onComplete)===null||r===void 0||r.call(n)}})}};const cF=Symbol.for("trpc_untypedClient"),Dee={query:"query",mutate:"mutation",subscribe:"subscription"},Ree=e=>Dee[e];function lF(e){const t=k4(({path:n,args:a})=>{const r=[...n],i=Ree(r.pop()),o=r.join(".");return e[i](o,...a)});return Sj(n=>n===cF?e:t[n])}function Iee(e){const t=new j4(e);return lF(t)}function Pj(e){return e[cF]}ti(ju());ti(ju());var Mee=Id({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(r){var i,o,c,l=2;for(typeof Symbol<"u"&&(o=Symbol.asyncIterator,c=Symbol.iterator);l--;){if(o&&(i=r[o])!=null)return i.call(r);if(c&&(i=r[c])!=null)return new a(i.call(r));o="@@asyncIterator",c="@@iterator"}throw new TypeError("Object is not async iterable")}function a(r){function i(o){if(Object(o)!==o)return Promise.reject(new TypeError(o+" is not an object."));var c=o.done;return Promise.resolve(o.value).then(function(l){return{value:l,done:c}})}return a=function(c){this.s=c,this.n=c.next},a.prototype={s:null,n:null,next:function(){return i(this.n.apply(this.s,arguments))},return:function(c){var l=this.s.return;return l===void 0?Promise.resolve({value:c,done:!0}):i(l.apply(this.s,arguments))},throw:function(c){var l=this.s.return;return l===void 0?Promise.reject(c):i(l.apply(this.s,arguments))}},new a(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});ti(Mee());ti(ju());var Lee=Id({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function n(){var a=typeof SuppressedError=="function"?SuppressedError:function(c,l){var d=Error();return d.name="SuppressedError",d.error=c,d.suppressed=l,d},r={},i=[];function o(c,l){if(l!=null){if(Object(l)!==l)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(c)var d=l[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(d===void 0&&(d=l[Symbol.dispose||Symbol.for("Symbol.dispose")],c))var m=d;if(typeof d!="function")throw new TypeError("Object is not disposable.");m&&(d=function(){try{m.call(l)}catch(x){return Promise.reject(x)}}),i.push({v:l,d,a:c})}else c&&i.push({d:l,a:c});return l}return{e:r,u:o.bind(null,!1),a:o.bind(null,!0),d:function(){var l,d=this.e,m=0;function h(){for(;l=i.pop();)try{if(!l.a&&m===1)return m=0,i.push(l),Promise.resolve().then(h);if(l.d){var f=l.d.call(l.v);if(l.a)return m|=2,Promise.resolve(f).then(h,x)}else m|=1}catch(b){return x(b)}if(m===1)return d!==r?Promise.reject(d):Promise.resolve();if(d!==r)throw d}function x(f){return d=d!==r?new a(f,d):f,h()}return h()}}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),uF=Id({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function n(a,r){this.v=a,this.k=r}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Oee=Id({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=uF();function a(r){return new n(r,0)}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),Bee=Id({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=uF();function a(i){return function(){return new r(i.apply(this,arguments))}}function r(i){var o,c;function l(m,h){try{var x=i[m](h),f=x.value,b=f instanceof n;Promise.resolve(b?f.v:f).then(function(y){if(b){var w=m==="return"?"return":"next";if(!f.k||y.done)return l(w,y);y=i[w](y).value}d(x.done?"return":"normal",y)},function(y){l("throw",y)})}catch(y){d("throw",y)}}function d(m,h){switch(m){case"return":o.resolve({value:h,done:!0});break;case"throw":o.reject(h);break;default:o.resolve({value:h,done:!1})}(o=o.next)?l(o.key,o.arg):c=null}this._invoke=function(m,h){return new Promise(function(x,f){var b={key:m,arg:h,resolve:x,reject:f,next:null};c?c=c.next=b:(o=c=b,l(m,h))})},typeof i.return!="function"&&(this.return=void 0)}r.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},r.prototype.next=function(i){return this._invoke("next",i)},r.prototype.throw=function(i){return this._invoke("throw",i)},r.prototype.return=function(i){return this._invoke("return",i)}
18,t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});ti(Lee());ti(Oee());ti(Bee());ti(ju());function Fee(e){return k4(({path:t,args:n})=>{var a;const r=[...t],i=r.pop();if(i==="useMutation")return e[i](r,...n);if(i==="_def")return{path:r};const[o,...c]=n,l=(a=c[0])!==null&&a!==void 0?a:{};return e[i](r,o,l)})}var iT;const Uee=["client","ssrContext","ssrState","abortOnUnmount"],Hee=(iT=k.createContext)===null||iT===void 0?void 0:iT.call(w4,null),Vee=e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function zee(e){return k4(t=>{const n=[...t.path],a=n.pop(),r=[...t.args],i=r.shift(),o=Vee(a),c=dd(n,i,o);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(n,c,r[0]),queryOptions:()=>e.queryOptions(n,c,...r),fetch:()=>e.fetchQuery(c,...r),fetchInfinite:()=>e.fetchInfiniteQuery(c,r[0]),prefetch:()=>e.prefetchQuery(c,...r),prefetchInfinite:()=>e.prefetchInfiniteQuery(c,r[0]),ensureData:()=>e.ensureQueryData(c,...r),invalidate:()=>e.invalidateQueries(c,...r),reset:()=>e.resetQueries(c,...r),refetch:()=>e.refetchQueries(c,...r),cancel:()=>e.cancelQuery(c,...r),setData:()=>{e.setQueryData(c,r[0],r[1])},setQueriesData:()=>e.setQueriesData(c,r[0],r[1],r[2]),setInfiniteData:()=>{e.setInfiniteQueryData(c,r[0],r[1])},getData:()=>e.getQueryData(c),getInfiniteData:()=>e.getInfiniteQueryData(c),setMutationDefaults:()=>e.setMutationDefaults(I5(n),i),getMutationDefaults:()=>e.getMutationDefaults(I5(n)),isMutating:()=>e.isMutating({mutationKey:I5(n)})}[a]()})}function $ee(e){const t=lF(e.client),n=zee(e);return Sj(a=>{const r=a;return r==="client"?t:Uee.includes(r)?e[r]:n[a]})}var qee=J0(P2(),1);function E_(e){const t=e instanceof j4?e:Pj(e);return k4(n=>{const a=n.path,r=a.join("."),[i,o]=n.args;return(0,qee.default)({queryKey:dd(a,i,"query"),queryFn:()=>t.query(r,i,o?.trpc)},o)})}var oT=J0(P2(),1);function Mo(e,t,n){var a;const r=e[0];let i=(a=e[1])===null||a===void 0?void 0:a.input;if(n){var o;i=(0,oT.default)((0,oT.default)((0,oT.default)({},(o=i)!==null&&o!==void 0?o:{}),n.pageParam?{cursor:n.pageParam}:{}),{},{direction:n.direction})}return[r.join("."),i,t?.trpc]}var Gee=bh({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(r){var i,o,c,l=2;for(typeof Symbol<"u"&&(o=Symbol.asyncIterator,c=Symbol.iterator);l--;){if(o&&(i=r[o])!=null)return i.call(r);if(c&&(i=r[c])!=null)return new a(i.call(r));o="@@asyncIterator",c="@@iterator"}throw new TypeError("Object is not async iterable")}function a(r){function i(o){if(Object(o)!==o)return Promise.reject(new TypeError(o+" is not an object."));var c=o.done;return Promise.resolve(o.value).then(function(l){return{value:l,done:c}})}return a=function(c){this.s=c,this.n=c.next},a.prototype={s:null,n:null,next:function(){return i(this.n.apply(this.s,arguments))},return:function(c){var l=this.s.return;return l===void 0?Promise.resolve({value:c,done:!0}):i(l.apply(this.s,arguments))},throw:function(c){var l=this.s.return;return l===void 0?Promise.reject(c):i(l.apply(this.s,arguments))}},new a(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Jee=J0(Gee(),1);function rk(e){return{path:e.path.join(".")}}function w1(e){const t=rk(e);return k.useMemo(()=>t,[t])}async function dF(e,t,n){const r=t.getQueryCache().build(t,{queryKey:n});r.setState({data:[],status:"success"});const i=[];var o=!1,c=!1,l;try{for(var d=(0,Jee.default)(e),m;o=!(m=await d.next()).done;o=!1){const h=m.value;i.push(h),r.setState({data:[...i]})}}catch(h){c=!0,l=h}finally{try{o&&d.return!=null&&await d.return()}finally{if(c)throw l}}return i}var Ja=J0(P2(),1);function Wee(e){const{client:t,queryClient:n}=e,a=t instanceof j4?t:Pj(t);return{infiniteQueryOptions:(r,i,o)=>{var c,l;const d=((c=i[1])===null||c===void 0?void 0:c.input)===Wc,m=async h=>{var x;const f=(0,Ja.default)((0,Ja.default)({},o),{},{trpc:(0,Ja.default)((0,Ja.default)({},o?.trpc),!(o==null||(x=o.trpc)===null||x===void 0)&&x.abortOnUnmount?{signal:h.signal}:{signal:null})});return await a.query(...Mo(i,f,{direction:h.direction,pageParam:h.pageParam}))};return Object.assign((0,Ja.default)((0,Ja.default)({},o),{},{initialData:o?.initialData,queryKey:i,queryFn:d?Wc:m,initialPageParam:(l=o?.initialCursor)!==null&&l!==void 0?l:null}),{trpc:rk({path:r})})},queryOptions:(r,i,o)=>{var c;const l=((c=i[1])===null||c===void 0?void 0:c.input)===Wc,d=async m=>{var h;const x=(0,Ja.default)((0,Ja.default)({},o),{},{trpc:(0,Ja.default)((0,Ja.default)({},o?.trpc),!(o==null||(h=o.trpc)===null||h===void 0)&&h.abortOnUnmount?{signal:m.signal}:{signal:null})}),f=await a.query(...Mo(i,x));return zB(f)?dF(f,n,i):f};return Object.assign((0,Ja.default)((0,Ja.default)({},o),{},{initialData:o?.initialData,queryKey:i,queryFn:l?Wc:d}),{trpc:rk({path:r})})},fetchQuery:(r,i)=>n.fetchQuery((0,Ja.default)((0,Ja.default)({},i),{},{queryKey:r,queryFn:()=>a.query(...Mo(r,i))}
18)),fetchInfiniteQuery:(r,i)=>{var o;return n.fetchInfiniteQuery((0,Ja.default)((0,Ja.default)({},i),{},{queryKey:r,queryFn:({pageParam:c,direction:l})=>a.query(...Mo(r,i,{pageParam:c,direction:l})),initialPageParam:(o=i?.initialCursor)!==null&&o!==void 0?o:null}))},prefetchQuery:(r,i)=>n.prefetchQuery((0,Ja.default)((0,Ja.default)({},i),{},{queryKey:r,queryFn:()=>a.query(...Mo(r,i))})),prefetchInfiniteQuery:(r,i)=>{var o;return n.prefetchInfiniteQuery((0,Ja.default)((0,Ja.default)({},i),{},{queryKey:r,queryFn:({pageParam:c,direction:l})=>a.query(...Mo(r,i,{pageParam:c,direction:l})),initialPageParam:(o=i?.initialCursor)!==null&&o!==void 0?o:null}))},ensureQueryData:(r,i)=>n.ensureQueryData((0,Ja.default)((0,Ja.default)({},i),{},{queryKey:r,queryFn:()=>a.query(...Mo(r,i))})),invalidateQueries:(r,i,o)=>n.invalidateQueries((0,Ja.default)((0,Ja.default)({},i),{},{queryKey:r}),o),resetQueries:(r,i,o)=>n.resetQueries((0,Ja.default)((0,Ja.default)({},i),{},{queryKey:r}),o),refetchQueries:(r,i,o)=>n.refetchQueries((0,Ja.default)((0,Ja.default)({},i),{},{queryKey:r}),o),cancelQuery:(r,i)=>n.cancelQueries({queryKey:r},i),setQueryData:(r,i,o)=>n.setQueryData(r,i,o),setQueriesData:(r,i,o,c)=>n.setQueriesData((0,Ja.default)((0,Ja.default)({},i),{},{queryKey:r}),o,c),getQueryData:r=>n.getQueryData(r),setInfiniteQueryData:(r,i,o)=>n.setQueryData(r,i,o),getInfiniteQueryData:r=>n.getQueryData(r),setMutationDefaults:(r,i)=>{const o=r[0],c=l=>a.mutation(...Mo([o,{input:l}],e));return n.setMutationDefaults(r,typeof i=="function"?i({canonicalMutationFn:c}):i)},getMutationDefaults:r=>n.getMutationDefaults(r),isMutating:r=>n.isMutating((0,Ja.default)((0,Ja.default)({},r),{},{exact:!0}))}}var Zt=J0(P2());const C_=(e,t)=>new Proxy(e,{get(a,r){return t(r),a[r]}});function Yee(e){var t,n;const a=(t=void 0)!==null&&t!==void 0?t:S=>S.originalFn(),r=(n=void 0)!==null&&n!==void 0?n:Hee,i=Iee,o=S=>{var R;const{abortOnUnmount:L=!1,queryClient:I,ssrContext:F}=S,[_,U]=k.useState((R=S.ssrState)!==null&&R!==void 0?R:!1),O=S.client instanceof j4?S.client:Pj(S.client),W=k.useMemo(()=>Wee({client:O,queryClient:I}),[O,I]),J=k.useMemo(()=>(0,Zt.default)({abortOnUnmount:L,queryClient:I,client:O,ssrContext:F??null,ssrState:_},W),[L,O,W,I,F,_]);return k.useEffect(()=>{U(oe=>oe?"mounted":!1)},[]),s.jsx(r.Provider,{value:J,children:S.children})};function c(){const S=k.useContext(r);if(!S)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return S}function l(S,R){var L;const{queryClient:I,ssrState:F}=c();return F&&F!=="mounted"&&((L=I.getQueryCache().find({queryKey:S}))===null||L===void 0?void 0:L.state.status)==="error"?(0,Zt.default)({retryOnMount:!1},R):R}function d(S,R,L){var I,F,_,U,O;const W=c(),{abortOnUnmount:J,client:oe,ssrState:G,queryClient:K,prefetchQuery:ee}=W,pe=dd(S,R,"query"),V=K.getQueryDefaults(pe),Y=R===Wc;typeof window>"u"&&G==="prepass"&&(L==null||(I=L.trpc)===null||I===void 0?void 0:I.ssr)!==!1&&((F=L?.enabled)!==null&&F!==void 0?F:V?.enabled)!==!1&&!Y&&!K.getQueryCache().find({queryKey:pe})&&ee(pe,L);const z=l(pe,(0,Zt.default)((0,Zt.default)({},V),L)),H=(_=(U=L==null||(O=L.trpc)===null||O===void 0?void 0:O.abortOnUnmount)!==null&&U!==void 0?U:void 0)!==null&&_!==void 0?_:J,ne=wZ((0,Zt.default)((0,Zt.default)({},z),{},{queryKey:pe,queryFn:Y?R:async te=>{const me=(0,Zt.default)((0,Zt.default)({},z),{},{trpc:(0,Zt.default)((0,Zt.default)({},z?.trpc),H?{signal:te.signal}:{signal:null})}),fe=await oe.query(...Mo(pe,me));return zB(fe)?dF(fe,K,pe):fe}}),K);return ne.trpc=w1({path:S}),ne}function m(S,R,L){var I,F,_;const U=c(),O=dd(S,R,"query"),W=R===Wc,J=(I=(F=L==null||(_=L.trpc)===null||_===void 0?void 0:_.abortOnUnmount)!==null&&F!==void 0?F:void 0)!==null&&I!==void 0?I:U.abortOnUnmount;jZ((0,Zt.default)((0,Zt.default)({},L),{},{queryKey:O,queryFn:W?R:oe=>{const G={trpc:(0,Zt.default)((0,Zt.default)({},L?.trpc),J?{signal:oe.signal}:{})};return U.client.query(...Mo(O,G))}}))}function h(S,R,L){var I,F,_;const U=c(),O=dd(S,R,"query"),W=(I=(F=L==null||(_=L.trpc)===null||_===void 0?void 0:_.abortOnUnmount)!==null&&F!==void 0?F:void 0)!==null&&I!==void 0?I:U.abortOnUnmount,J=TZ((0,Zt.default)((0,Zt.default)({},L),{},{queryKey:O,queryFn:oe=>{const G=(0,Zt.default)((0,Zt.default)({},L),{},{trpc:(0,Zt.default)((0,Zt.default)({},L?.trpc),W?{signal:oe.signal}:{signal:null})});return U.client.query(...Mo(O,G))}}),U.queryClient);return J.trpc=w1({path:S}),[J.data,J]}function x(S,R){const{client:L,queryClient:I}=c(),F=I5(S),_=I.defaultMutationOptions(I.getMutationDefaults(F)),U=EZ((0,Zt.default)((0,Zt.default)({},R),{},{mutationKey:F,mutationFn:O=>L.mutation(...Mo([S,{input:O}],R)),onSuccess(...O){var W,J;return a({originalFn:()=>{var G,K,ee;return(G=R==null||(K=R.onSuccess)===null||K===void 0?void 0:K.call(R,...O))!==null&&G!==void 0?G:_==null||(ee=_.onSuccess)===null||ee===void 0?void 0:ee.call(_,...O)},queryClient:I,meta:(W=(J=R?.meta)!==null&&J!==void 0?J:_?.meta)!==null&&W!==void 0?W:{}})}}),I);return U.trpc=w1({path:S}),U}const f={data:void 0,error:null,status:"idle"},b={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function y(S,R,L){var I;const F=(I=L?.enabled)!==null&&I!==void 0?I:R!==Wc,_=ah(dd(S,R,"any")),{client:U}=c(),O=k.useRef(L);k.useEffect(()=>{O.current=L});const[W]=k.useState(new Set([])),J=k.useCallback(Y=>{W.add(Y)},[W]),oe=k.useRef(null),G=k.useCallback(Y=>{const z=ee.current,H=ee.current=Y(z);let ne=!1;for(const te of W)if(z[te]!==H[te]){ne=!0;break}ne&&V(C_(H,J))},[J,W]),K=k.useCallback(()=>{var Y;if((Y=oe.current)===null||Y===void 0||Y.unsubscribe(),!F){G(()=>(0,Zt.default)((0,Zt.default)({},f),{},{reset:K}));return}G(()=>(0,Zt.default)((0,Zt.default)({},b),{},{reset:K}));const z=U.subscription(S.join("."),R??void 0,{onStarted:()=>{var H,ne;(H=(ne=O.current).onStarted)===null||H===void 0||H.call(ne),G(te=>(0,Zt.default)((0,Zt.default)({},te),{},{status:"pending",error:null}))},onData:H=>{var ne,te;(ne=(te=O.current).onData)===null||ne===void 0||ne.call(te,H),G(me=>(0,Zt.default)((0,Zt.default)({},me),{},{status:"pending",data:H,error:null}))},onError:H=>{var ne,te;(ne=(te=O.current).onError)===null||ne===void 0||ne.call(te,H),G(me=>(0,Zt.default)((0,Zt.default)({},me),{},{status:"error",error:H}))},onConnectionStateChange:H=>{G(ne=>{switch(H.state){case"idle":return(0,Zt.default)((0,Zt.default)({},ne),{},{status:H.state,error:null,data:void 0});case"connecting":return(0,Zt.default)((0,Zt.default)({},ne),{},{error:H.error,status:H.state});
18case"pending":return ne}})},onComplete:()=>{var H,ne;(H=(ne=O.current).onComplete)===null||H===void 0||H.call(ne),G(te=>(0,Zt.default)((0,Zt.default)({},te),{},{status:"idle",error:null,data:void 0}))}});oe.current=z},[U,_,F,G]);k.useEffect(()=>(K(),()=>{var Y;(Y=oe.current)===null||Y===void 0||Y.unsubscribe()}),[K]);const ee=k.useRef(F?(0,Zt.default)((0,Zt.default)({},b),{},{reset:K}):(0,Zt.default)((0,Zt.default)({},f),{},{reset:K})),[pe,V]=k.useState(C_(ee.current,J));return pe}function w(S,R,L){var I,F,_,U,O;const{client:W,ssrState:J,prefetchInfiniteQuery:oe,queryClient:G,abortOnUnmount:K}=c(),ee=dd(S,R,"infinite"),pe=G.getQueryDefaults(ee),V=R===Wc;typeof window>"u"&&J==="prepass"&&(L==null||(I=L.trpc)===null||I===void 0?void 0:I.ssr)!==!1&&((F=L?.enabled)!==null&&F!==void 0?F:pe?.enabled)!==!1&&!V&&!G.getQueryCache().find({queryKey:ee})&&oe(ee,(0,Zt.default)((0,Zt.default)({},pe),L));const Y=l(ee,(0,Zt.default)((0,Zt.default)({},pe),L)),z=(_=L==null||(U=L.trpc)===null||U===void 0?void 0:U.abortOnUnmount)!==null&&_!==void 0?_:K,H=CZ((0,Zt.default)((0,Zt.default)({},Y),{},{initialPageParam:(O=L.initialCursor)!==null&&O!==void 0?O:null,persister:L.persister,queryKey:ee,queryFn:V?R:ne=>{var te;const me=(0,Zt.default)((0,Zt.default)({},Y),{},{trpc:(0,Zt.default)((0,Zt.default)({},Y?.trpc),z?{signal:ne.signal}:{signal:null})});return W.query(...Mo(ee,me,{pageParam:(te=ne.pageParam)!==null&&te!==void 0?te:L.initialCursor,direction:ne.direction}))}}),G);return H.trpc=w1({path:S}),H}function T(S,R,L){var I,F,_;const U=c(),O=dd(S,R,"infinite"),W=U.queryClient.getQueryDefaults(O),J=R===Wc,oe=l(O,(0,Zt.default)((0,Zt.default)({},W),L)),G=(I=L==null||(F=L.trpc)===null||F===void 0?void 0:F.abortOnUnmount)!==null&&I!==void 0?I:U.abortOnUnmount;AZ((0,Zt.default)((0,Zt.default)({},L),{},{initialPageParam:(_=L.initialCursor)!==null&&_!==void 0?_:null,queryKey:O,queryFn:J?R:K=>{var ee;const pe=(0,Zt.default)((0,Zt.default)({},oe),{},{trpc:(0,Zt.default)((0,Zt.default)({},oe?.trpc),G?{signal:K.signal}:{})});return U.client.query(...Mo(O,pe,{pageParam:(ee=K.pageParam)!==null&&ee!==void 0?ee:L.initialCursor,direction:K.direction}))}}))}function A(S,R,L){var I,F,_;const U=c(),O=dd(S,R,"infinite"),W=U.queryClient.getQueryDefaults(O),J=l(O,(0,Zt.default)((0,Zt.default)({},W),L)),oe=(I=L==null||(F=L.trpc)===null||F===void 0?void 0:F.abortOnUnmount)!==null&&I!==void 0?I:U.abortOnUnmount,G=NZ((0,Zt.default)((0,Zt.default)({},L),{},{initialPageParam:(_=L.initialCursor)!==null&&_!==void 0?_:null,queryKey:O,queryFn:K=>{var ee;const pe=(0,Zt.default)((0,Zt.default)({},J),{},{trpc:(0,Zt.default)((0,Zt.default)({},J?.trpc),oe?{signal:K.signal}:{})});return U.client.query(...Mo(O,pe,{pageParam:(ee=K.pageParam)!==null&&ee!==void 0?ee:L.initialCursor,direction:K.direction}))}}),U.queryClient);return G.trpc=w1({path:S}),[G.data,G]}return{Provider:o,createClient:i,useContext:c,useUtils:c,useQuery:d,usePrefetchQuery:m,useSuspenseQuery:h,useQueries:(S,R)=>{const{ssrState:L,queryClient:I,prefetchQuery:F,client:_}=c(),U=E_(_),O=S(U);if(typeof window>"u"&&L==="prepass")for(const J of O){var W;const oe=J;((W=oe.trpc)===null||W===void 0?void 0:W.ssr)!==!1&&!I.getQueryCache().find({queryKey:oe.queryKey})&&F(oe.queryKey,oe)}return VB({queries:O.map(J=>(0,Zt.default)((0,Zt.default)({},J),{},{queryKey:J.queryKey})),combine:R?.combine},I)},useSuspenseQueries:S=>{const{queryClient:R,client:L}=c(),I=E_(L),F=S(I),_=kZ({queries:F.map(U=>(0,Zt.default)((0,Zt.default)({},U),{},{queryFn:U.queryFn,queryKey:U.queryKey}))},R);return[_.map(U=>U.data),_]},useMutation:x,useSubscription:y,useInfiniteQuery:w,usePrefetchInfiniteQuery:T,useSuspenseInfiniteQuery:A}}function Xee(e){const t=Fee(e);return Sj(n=>n==="useContext"||n==="useUtils"?()=>{const a=e.useUtils();return k.useMemo(()=>$ee(a),[a])}:e.hasOwnProperty(n)?e[n]:t[n])}function Qee(e){const t=Yee();return Xee(t)}const Pe=Qee(),Kee="Please login (10001)";var cT={exports:{}},T1={},lT={exports:{}},uT={};/** 19 * @license React 20 * scheduler.production.js 21 * 22 * Copyright (c) Meta Platforms, Inc. and affiliates. 23 * 24 * This source code is licensed under the MIT license found in the 25 * LICENSE file in the root directory of this source tree. 26 */var S_;function Zee(){return S_||(S_=1,(function(e){function t(G,K){var ee=G.length;G.push(K);e:for(;0<ee;){var pe=ee-1>>>1,V=G[pe];if(0<r(V,K))G[pe]=K,G[ee]=V,ee=pe;else break e}}function n(G){return G.length===0?null:G[0]}function a(G){if(G.length===0)return null;var K=G[0],ee=G.pop();if(ee!==K){G[0]=ee;e:for(var pe=0,V=G.length,Y=V>>>1;pe<Y;){var z=2*(pe+1)-1,H=G[z],ne=z+1,te=G[ne];if(0>r(H,ee))ne<V&&0>r(te,H)?(G[pe]=te,G[ne]=ee,pe=ne):(G[pe]=H,G[z]=ee,pe=z);else if(ne<V&&0>r(te,ee))G[pe]=te,G[ne]=ee,pe=ne;else break e}}return K}function r(G,K){var ee=G.sortIndex-K.sortIndex;return ee!==0?ee:G.id-K.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,c=o.now();e.unstable_now=function(){return o.now()-c}}var l=[],d=[],m=1,h=null,x=3,f=!1,b=!1,y=!1,w=!1,T=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function D(G){for(var K=n(d);K!==null;){if(K.callback===null)a(d);else if(K.startTime<=G)a(d),K.sortIndex=K.expirationTime,t(l,K);else break;K=n(d)}}function S(G){if(y=!1,D(G),!b)if(n(l)!==null)b=!0,R||(R=!0,O());else{var K=n(d);K!==null&&oe(S,K.startTime-G)}}var R=!1,L=-1,I=5,F=-1;function _(){return w?!0:!(e.unstable_now()-F<I)}function U(){if(w=!1,R){var G=e.unstable_now();F=G;var K=!0;try{e:{b=!1,y&&(y=!1,A(L),L=-1),f=!0;var ee=x;try{t:{for(D(G),h=n(l);h!==null&&!(h.expirationTime>G&&_());){var pe=h.callback;
vendor: 7,459 bytes, lines 26-42
26if(typeof pe=="function"){h.callback=null,x=h.priorityLevel;var V=pe(h.expirationTime<=G);if(G=e.unstable_now(),typeof V=="function"){h.callback=V,D(G),K=!0;break t}h===n(l)&&a(l),D(G)}else a(l);h=n(l)}if(h!==null)K=!0;else{var Y=n(d);Y!==null&&oe(S,Y.startTime-G),K=!1}}break e}finally{h=null,x=ee,f=!1}K=void 0}}finally{K?O():R=!1}}}var O;if(typeof E=="function")O=function(){E(U)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,J=W.port2;W.port1.onmessage=U,O=function(){J.postMessage(null)}}else O=function(){T(U,0)};function oe(G,K){L=T(function(){G(e.unstable_now())},K)}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(G){G.callback=null},e.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<G?Math.floor(1e3/G):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_next=function(G){switch(x){case 1:case 2:case 3:var K=3;break;default:K=x}var ee=x;x=K;try{return G()}finally{x=ee}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(G,K){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var ee=x;x=G;try{return K()}finally{x=ee}},e.unstable_scheduleCallback=function(G,K,ee){var pe=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?pe+ee:pe):ee=pe,G){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=ee+V,G={id:m++,callback:K,priorityLevel:G,startTime:ee,expirationTime:V,sortIndex:-1},ee>pe?(G.sortIndex=ee,t(d,G),n(l)===null&&G===n(d)&&(y?(A(L),L=-1):y=!0,oe(S,ee-pe))):(G.sortIndex=V,t(l,G),b||f||(b=!0,R||(R=!0,O()))),G},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(G){var K=x;return function(){var ee=x;x=K;try{return G.apply(this,arguments)}finally{x=ee}}}})(uT)),uT}var __;function ete(){return __||(__=1,lT.exports=Zee()),lT.exports}var dT={exports:{}},uo={};/** 27 * @license React 28 * react-dom.production.js 29 * 30 * Copyright (c) Meta Platforms, Inc. and affiliates. 31 * 32 * This source code is licensed under the MIT license found in the 33 * LICENSE file in the root directory of this source tree. 34 */var P_;function tte(){if(P_)return uo;P_=1;var e=y4();function t(l){var d="https://react.dev/errors/"+l;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)d+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+l+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var a={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},r=Symbol.for("react.portal");function i(l,d,m){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:h==null?null:""+h,children:l,containerInfo:d,implementation:m}}var o=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(l,d){if(l==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return uo.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,uo.createPortal=function(l,d){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return i(l,d,null,m)},uo.flushSync=function(l){var d=o.T,m=a.p;try{if(o.T=null,a.p=2,l)return l()}finally{o.T=d,a.p=m,a.d.f()}},uo.preconnect=function(l,d){typeof l=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,a.d.C(l,d))},uo.prefetchDNS=function(l){typeof l=="string"&&a.d.D(l)},uo.preinit=function(l,d){if(typeof l=="string"&&d&&typeof d.as=="string"){var m=d.as,h=c(m,d.crossOrigin),x=typeof d.integrity=="string"?d.integrity:void 0,f=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;m==="style"?a.d.S(l,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:h,integrity:x,fetchPriority:f}):m==="script"&&a.d.X(l,{crossOrigin:h,integrity:x,fetchPriority:f,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},uo.preinitModule=function(l,d){if(typeof l=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var m=c(d.as,d.crossOrigin);a.d.M(l,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&a.d.M(l)},uo.preload=function(l,d){if(typeof l=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var m=d.as,h=c(m,d.crossOrigin);a.d.L(l,m,{crossOrigin:h,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},uo.preloadModule=function(l,d){if(typeof l=="string")if(d){var m=c(d.as,d.crossOrigin);a.d.m(l,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else a.d.m(l)},uo.requestFormReset=function(l){a.d.r(l)},uo.unstable_batchedUpdates=function(l,d){return l(d)},uo.useFormState=function(l,d,m){return o.H.useFormState(l,d,m)},uo.useFormStatus=function(){return o.H.useHostTransitionStatus()},uo.version="19.2.1",uo}var D_;function mF(){if(D_)return dT.exports;D_=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),dT.exports=tte(),dT.exports}/** 35 * @license React 36 * react-dom-client.production.js 37 * 38 * Copyright (c) Meta Platforms, Inc. and affiliates. 39 * 40 * This source code is licensed under the MIT license found in the 41 * LICENSE file in the root directory of this source tree. 42 */var R_;function nte(){if(R_)return T1;R_=1;var e=ete(),t=y4(),n=mF();function a(u){var p="https://react.dev/errors/"+u;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+u+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(u){return!(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)}function i(u){var p=u,g=u;if(u.alternate)for(;p.return;)p=p.return;else{u=p;do p=u,(p.flags&4098)!==0&&(g=p.return),u=p.return;while(u)}return p.tag===3?g:null}function o(u){if(u.tag===13){var p=u.memoizedState;if(p===null&&(u=u.alternate,u!==null&&(p=u.memoizedState)),p!==null)return p.dehydrated}return null}function c(u){if(u.tag===31){var p=u.memoizedState;if(p===null&&(u=u.alternate,u!==null&&(p=u.memoizedState)),p!==null)return p.dehydrated}return null}function l(u){if(i(u)!==u)throw Error(a(188))}function d(u){var p=u.alternate;if(!p){if(p=i(u),p===null)throw Error(a(188));return p!==u?null:u}for(var g=u,v=p;;){var j=g.return;if(j===null)break;var P=j.alternate;if(P===null){if(v=j.return,v!==null){g=v;
vendor: 10,277 bytes, lines 42-49
42continue}break}if(j.child===P.child){for(P=j.child;P;){if(P===g)return l(j),u;if(P===v)return l(j),p;P=P.sibling}throw Error(a(188))}if(g.return!==v.return)g=j,v=P;else{for(var Z=!1,de=j.child;de;){if(de===g){Z=!0,g=j,v=P;break}if(de===v){Z=!0,v=j,g=P;break}de=de.sibling}if(!Z){for(de=P.child;de;){if(de===g){Z=!0,g=P,v=j;break}if(de===v){Z=!0,v=P,g=j;break}de=de.sibling}if(!Z)throw Error(a(189))}}if(g.alternate!==v)throw Error(a(190))}if(g.tag!==3)throw Error(a(188));return g.stateNode.current===g?u:p}function m(u){var p=u.tag;if(p===5||p===26||p===27||p===6)return u;for(u=u.child;u!==null;){if(p=m(u),p!==null)return p;u=u.sibling}return null}var h=Object.assign,x=Symbol.for("react.element"),f=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),E=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),_=Symbol.for("react.memo_cache_sentinel"),U=Symbol.iterator;function O(u){return u===null||typeof u!="object"?null:(u=U&&u[U]||u["@@iterator"],typeof u=="function"?u:null)}var W=Symbol.for("react.client.reference");function J(u){if(u==null)return null;if(typeof u=="function")return u.$$typeof===W?null:u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case y:return"Fragment";case T:return"Profiler";case w:return"StrictMode";case S:return"Suspense";case R:return"SuspenseList";case F:return"Activity"}if(typeof u=="object")switch(u.$$typeof){case b:return"Portal";case E:return u.displayName||"Context";case A:return(u._context.displayName||"Context")+".Consumer";case D:var p=u.render;return u=u.displayName,u||(u=p.displayName||p.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case L:return p=u.displayName||null,p!==null?p:J(u.type)||"Memo";case I:p=u._payload,u=u._init;try{return J(u(p))}catch{}}return null}var oe=Array.isArray,G=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},pe=[],V=-1;function Y(u){return{current:u}}function z(u){0>V||(u.current=pe[V],pe[V]=null,V--)}function H(u,p){V++,pe[V]=u.current,u.current=p}var ne=Y(null),te=Y(null),me=Y(null),fe=Y(null);function Ae(u,p){switch(H(me,p),H(te,u),H(ne,null),p.nodeType){case 9:case 11:u=(u=p.documentElement)&&(u=u.namespaceURI)?_S(u):0;break;default:if(u=p.tagName,p=p.namespaceURI)p=_S(p),u=PS(p,u);else switch(u){case"svg":u=1;break;case"math":u=2;break;default:u=0}}z(ne),H(ne,u)}function xe(){z(ne),z(te),z(me)}function ae(u){u.memoizedState!==null&&H(fe,u);var p=ne.current,g=PS(p,u.type);p!==g&&(H(te,u),H(ne,g))}function le(u){te.current===u&&(z(ne),z(te)),fe.current===u&&(z(fe),g1._currentValue=ee)}var ze,pt;function xt(u){if(ze===void 0)try{throw Error()}catch(g){var p=g.stack.trim().match(/\n( *(at )?)/);ze=p&&p[1]||"",pt=-1<g.stack.indexOf(` 43 at`)?" (<anonymous>)":-1<g.stack.indexOf("@")?"@unknown:0:0":""}return` 44`+ze+u+pt}var be=!1;function Tt(u,p){if(!u||be)return"";be=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var v={DetermineComponentFrameRoot:function(){try{if(p){var bt=function(){throw Error()};if(Object.defineProperty(bt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(bt,[])}catch(st){var et=st}Reflect.construct(u,[],bt)}else{try{bt.call()}catch(st){et=st}u.call(bt.prototype)}}else{try{throw Error()}catch(st){et=st}(bt=u())&&typeof bt.catch=="function"&&bt.catch(function(){})}}catch(st){if(st&&et&&typeof st.stack=="string")return[st.stack,et.stack]}return[null,null]}};v.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var j=Object.getOwnPropertyDescriptor(v.DetermineComponentFrameRoot,"name");j&&j.configurable&&Object.defineProperty(v.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var P=v.DetermineComponentFrameRoot(),Z=P[0],de=P[1];if(Z&&de){var De=Z.split(` 45`),Ze=de.split(` 46`);for(j=v=0;v<De.length&&!De[v].includes("DetermineComponentFrameRoot");)v++;for(;j<Ze.length&&!Ze[j].includes("DetermineComponentFrameRoot");)j++;if(v===De.length||j===Ze.length)for(v=De.length-1,j=Ze.length-1;1<=v&&0<=j&&De[v]!==Ze[j];)j--;for(;1<=v&&0<=j;v--,j--)if(De[v]!==Ze[j]){if(v!==1||j!==1)do if(v--,j--,0>j||De[v]!==Ze[j]){var mt=` 47`+De[v].replace(" at new "," at ");return u.displayName&&mt.includes("<anonymous>")&&(mt=mt.replace("<anonymous>",u.displayName)),mt}while(1<=v&&0<=j);break}}}finally{be=!1,Error.prepareStackTrace=g}return(g=u?u.displayName||u.name:"")?xt(g):""}function Xt(u,p){switch(u.tag){case 26:case 27:case 5:return xt(u.type);case 16:return xt("Lazy");case 13:return u.child!==p&&p!==null?xt("Suspense Fallback"):xt("Suspense");case 19:return xt("SuspenseList");case 0:case 15:return Tt(u.type,!1);case 11:return Tt(u.type.render,!1);case 1:return Tt(u.type,!0);case 31:return xt("Activity");default:return""}}function Jt(u){try{var p="",g=null;do p+=Xt(u,g),g=u,u=u.return;while(u);return p}catch(v){return` 48Error generating stack: `+v.message+` 49`+v.stack}}var it=Object.prototype.hasOwnProperty,at=e.unstable_scheduleCallback,ct=e.unstable_cancelCallback,Ct=e.unstable_shouldYield,Ht=e.unstable_requestPaint,wn=e.unstable_now,Hn=e.unstable_getCurrentPriorityLevel,qe=e.unstable_ImmediatePriority,dt=e.unstable_UserBlockingPriority,Dt=e.unstable_NormalPriority,yt=e.unstable_LowPriority,Mt=e.unstable_IdlePriority,zt=e.log,ca=e.unstable_setDisableYieldValue,jn=null,Qt=null;function xn(u){if(typeof zt=="function"&&ca(u),Qt&&typeof Qt.setStrictMode=="function")try{Qt.setStrictMode(jn,u)}catch{}}var bn=Math.clz32?Math.clz32:tt,rn=Math.log,He=Math.LN2;function tt(u){return u>>>=0,u===0?32:31-(rn(u)/He|0)|0}var Ot=256,Zn=262144,Tn=4194304;function qt(u){var p=u&42;if(p!==0)return p;switch(u&-u){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return u&261888;case 262144:case 524288:case 1048576:case 2097152:return u&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return u&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return u}}function Vt(u,p,g){var v=u.pendingLanes;if(v===0)return 0;var j=0,P=u.suspendedLanes,Z=u.pingedLanes;u=u.warmLanes;var de=v&134217727;return de!==0?(v=de&~P,v!==0?j=qt(v):(Z&=de,Z!==0?j=qt(Z):g||(g=de&~u,g!==0&&(j=qt(g))))):(de=v&~P,de!==0?j=qt(de):Z!==0?j=qt(Z):g||(g=v&~u,g!==0&&(j=qt(g)))),j===0?0:p!==0&&p!==j&&(p&P)===0&&(P=j&-j,g=p&-p,P>=g||P===32&&(g&4194048)!==0)?p:j}function Ra(u,p){return(u.pendingLanes&~(u.suspendedLanes&~u.pingedLanes)&p)===0}function Pa(u,p){switch(u){case 1:case 2:case 4:case 8:case 64:return p+250;case 16:case 32: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 p+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Os(){var u=Tn;return Tn<<=1,(Tn&62914560)===0&&(Tn=4194304),u}function mi(u){for(var p=[],g=0;31>g;g++)p.push(u);return p}function Wt(u,p){u.pendingLanes|=p,p!==268435456&&(u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0)}function tr(u,p,g,v,j,P){var Z=u.pendingLanes;u.pendingLanes=g,u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0,u.expiredLanes&=g,u.entangledLanes&=g,u.errorRecoveryDisabledLanes&=g,u.shellSuspendCounter=0;var de=u.entanglements,De=u.expirationTimes,Ze=u.hiddenUpdates;for(g=Z&~g;0<g;){var mt=31-bn(g),bt=1<<mt;de[mt]=0,De[mt]=-1;var et=Ze[mt];if(et!==null)for(Ze[mt]=null,mt=0;mt<et.length;mt++){var st=et[mt];st!==null&&(st.lane&=-536870913)}g&=~bt}v!==0&&Wi(u,v,0),P!==0&&j===0&&u.tag!==0&&(u.suspendedLanes|=P&~(Z&~p))}function Wi(u,p,g){u.pendingLanes|=p,u.suspendedLanes&=~p;var v=31-bn(p);u.entangledLanes|=p,u.entanglements[v]=u.entanglements[v]|1073741824|g&261930}function js(u,p){var g=u.entangledLanes|=p;for(u=u.entanglements;g;){var v=31-bn(g),j=1<<v;j&p|u[v]&p&&(u[v]|=p),g&=~j}}function As(u,p){var g=p&-p;return g=(g&42)!==0?1:ds(g),(g&(u.suspendedLanes|p))!==0?0:g}function ds(u){switch(u){case 2:u=1;break;case 8:u=4;break;case 32:u=16;break;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:u=128;break;case 268435456:u=134217728;break;default:u=0}return u}function ss(u){return u&=-u,2<u?8<u?(u&134217727)!==0?32:268435456:8:2}function Ur(){var u=K.p;return u!==0?u:(u=window.event,u===void 0?32:e_(u.type))}function _u(u,p){var g=K.p;try{return K.p=u,p()}finally{K.p=g}}var Yi=Math.random().toString(36).slice(2),ms="__reactFiber$"+Yi,$s="__reactProps$"+Yi,Ci="__reactContainer$"+Yi,jo="__reactEvents$"+Yi,zo="__reactListeners$"+Yi,zd="__reactHandles$"+Yi,Tc="__reactResources$"+Yi,Nc="__reactMarker$"+Yi;function Pu(u){delete u[ms],delete u[$s],delete u[jo],delete u[zo],delete u[zd]}function kc(u){var p=u[ms];if(p)return p;for(var g=u.parentNode;g;){if(p=g[Ci]||g[ms]){if(g=p.alternate,p.child!==null||g!==null&&g.child!==null)for(u=BS(u);u!==null;){if(g=u[ms])return g;u=BS(u)}return p}u=g,g=u.parentNode}return null}function jc(u){if(u=u[ms]||u[Ci]){var p=u.tag;if(p===5||p===6||p===13||p===31||p===26||p===27||p===3)return u}return null}function $d(u){var p=u.tag;if(p===5||p===26||p===27||p===6)return u.stateNode;throw Error(a(33))}function nl(u){var p=u[Tc];return p||(p=u[Tc]={hoistableStyles:new Map,hoistableScripts:new Map}),p}function fr(u){u[Nc]=!0}var jh=new Set,Ao={};function Ac(u,p){Fl(u,p),Fl(u+"Capture",p)}function Fl(u,p){for(Ao[u]=p,u=0;u<p.length;u++)jh.add(p[u])}var Ah=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
vendor: 6,774 bytes, line 49
49037D\\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]*$"),Eh={},Ch={};function mf(u){return it.call(Ch,u)?!0:it.call(Eh,u)?!1:Ah.test(u)?Ch[u]=!0:(Eh[u]=!0,!1)}function Eo(u,p,g){if(mf(p))if(g===null)u.removeAttribute(p);else{switch(typeof g){case"undefined":case"function":case"symbol":u.removeAttribute(p);return;case"boolean":var v=p.toLowerCase().slice(0,5);if(v!=="data-"&&v!=="aria-"){u.removeAttribute(p);return}}u.setAttribute(p,""+g)}}function Ul(u,p,g){if(g===null)u.removeAttribute(p);else{switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":u.removeAttribute(p);return}u.setAttribute(p,""+g)}}function Ec(u,p,g,v){if(v===null)u.removeAttribute(g);else{switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":u.removeAttribute(g);return}u.setAttributeNS(p,g,""+v)}}function Ha(u){switch(typeof u){case"bigint":case"boolean":case"number":case"string":case"undefined":return u;case"object":return u;default:return""}}function Sh(u){var p=u.type;return(u=u.nodeName)&&u.toLowerCase()==="input"&&(p==="checkbox"||p==="radio")}function al(u,p,g){var v=Object.getOwnPropertyDescriptor(u.constructor.prototype,p);if(!u.hasOwnProperty(p)&&typeof v<"u"&&typeof v.get=="function"&&typeof v.set=="function"){var j=v.get,P=v.set;return Object.defineProperty(u,p,{configurable:!0,get:function(){return j.call(this)},set:function(Z){g=""+Z,P.call(this,Z)}}),Object.defineProperty(u,p,{enumerable:v.enumerable}),{getValue:function(){return g},setValue:function(Z){g=""+Z},stopTracking:function(){u._valueTracker=null,delete u[p]}}}}function Du(u){if(!u._valueTracker){var p=Sh(u)?"checked":"value";u._valueTracker=al(u,p,""+u[p])}}function Ym(u){if(!u)return!1;var p=u._valueTracker;if(!p)return!0;var g=p.getValue(),v="";return u&&(v=Sh(u)?u.checked?"true":"false":u.value),u=v,u!==g?(p.setValue(u),!0):!1}function Si(u){if(u=u||(typeof document<"u"?document:void 0),typeof u>"u")return null;try{return u.activeElement||u.body}catch{return u.body}}var Xm=/[\n"\\]/g;function kr(u){return u.replace(Xm,function(p){return"\\"+p.charCodeAt(0).toString(16)+" "})}function Hr(u,p,g,v,j,P,Z,de){u.name="",Z!=null&&typeof Z!="function"&&typeof Z!="symbol"&&typeof Z!="boolean"?u.type=Z:u.removeAttribute("type"),p!=null?Z==="number"?(p===0&&u.value===""||u.value!=p)&&(u.value=""+Ha(p)):u.value!==""+Ha(p)&&(u.value=""+Ha(p)):Z!=="submit"&&Z!=="reset"||u.removeAttribute("value"),p!=null?Ph(u,Z,Ha(p)):g!=null?Ph(u,Z,Ha(g)):v!=null&&u.removeAttribute("value"),j==null&&P!=null&&(u.defaultChecked=!!P),j!=null&&(u.checked=j&&typeof j!="function"&&typeof j!="symbol"),de!=null&&typeof de!="function"&&typeof de!="symbol"&&typeof de!="boolean"?u.name=""+Ha(de):u.removeAttribute("name")}function _h(u,p,g,v,j,P,Z,de){if(P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"&&(u.type=P),p!=null||g!=null){if(!(P!=="submit"&&P!=="reset"||p!=null)){Du(u);return}g=g!=null?""+Ha(g):"",p=p!=null?""+Ha(p):g,de||p===u.value||(u.value=p),u.defaultValue=p}v=v??j,v=typeof v!="function"&&typeof v!="symbol"&&!!v,u.checked=de?u.checked:!!v,u.defaultChecked=!!v,Z!=null&&typeof Z!="function"&&typeof Z!="symbol"&&typeof Z!="boolean"&&(u.name=Z),Du(u)}function Ph(u,p,g){p==="number"&&Si(u.ownerDocument)===u||u.defaultValue===""+g||(u.defaultValue=""+g)}function Ru(u,p,g,v){if(u=u.options,p){p={};for(var j=0;j<g.length;j++)p["$"+g[j]]=!0;for(g=0;g<u.length;g++)j=p.hasOwnProperty("$"+u[g].value),u[g].selected!==j&&(u[g].selected=j),j&&v&&(u[g].defaultSelected=!0)}else{for(g=""+Ha(g),p=null,j=0;j<u.length;j++){if(u[j].value===g){u[j].selected=!0,v&&(u[j].defaultSelected=!0);return}p!==null||u[j].disabled||(p=u[j])}p!==null&&(p.selected=!0)}}function pf(u,p,g){if(p!=null&&(p=""+Ha(p),p!==u.value&&(u.value=p),g==null)){u.defaultValue!==p&&(u.defaultValue=p);return}u.defaultValue=g!=null?""+Ha(g):""}function Cc(u,p,g,v){if(p==null){if(v!=null){if(g!=null)throw Error(a(92));if(oe(v)){if(1<v.length)throw Error(a(93));v=v[0]}g=v}g==null&&(g=""),p=g}g=Ha(p),u.defaultValue=g,v=u.textContent,v===g&&v!==""&&v!==null&&(u.value=v),Du(u)}function Hl(u,p){if(p){var g=u.firstChild;if(g&&g===u.lastChild&&g.nodeType===3){g.nodeValue=p;return}}u.textContent=p}var Qm=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function qd(u,p,g){var v=p.indexOf("--")===0;g==null||typeof g=="boolean"||g===""?v?u.setProperty(p,""):p==="float"?u.cssFloat="":u[p]="":v?u.setProperty(p,g):typeof g!="number"||g===0||Qm.has(p)?p==="float"?u.cssFloat=g:u[p]=(""+g).trim():u[p]=g+"px"}function Km(u,p,g){if(p!=null&&typeof p!="object")throw Error(a(62));if(u=u.style,g!=null){for(var v in g)!g.hasOwnProperty(v)||p!=null&&p.hasOwnProperty(v)||(v.indexOf("--")===0?u.setProperty(v,""):v==="float"?u.cssFloat="":u[v]="");for(var j in p)v=p[j],p.hasOwnProperty(j)&&g[j]!==v&&qd(u,j,v)}else for(var P in p)p.hasOwnProperty(P)&&qd(u,P,p[P])}function Dh(u){if(u.indexOf("-")===-1)return!1;switch(u){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 Ox=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
49dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Bx=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Sc(u){return Bx.test(""+u)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":u}function $o(){}var sl=null;function Rh(u){return u=u.target||u.srcElement||window,u.correspondingUseElement&&(u=u.correspondingUseElement),u.nodeType===3?u.parentNode:u}var qo=null,Dn=null;function hf(u){var p=jc(u);if(p&&(u=p.stateNode)){var g=u[$s]||null;e:switch(u=p.stateNode,p.type){case"input":if(Hr(u,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name),p=g.name,g.type==="radio"&&p!=null){for(g=u;g.parentNode;)g=g.parentNode;for(g=g.querySelectorAll('input[name="'+kr(""+p)+'"][type="radio"]'),p=0;p<g.length;p++){var v=g[p];if(v!==u&&v.form===u.form){var j=v[$s]||null;if(!j)throw Error(a(90));Hr(v,j.value,j.defaultValue,j.defaultValue,j.checked,j.defaultChecked,j.type,j.name)}}for(p=0;p<g.length;p++)v=g[p],v.form===u.form&&Ym(v)}break e;case"textarea":pf(u,g.value,g.defaultValue);break e;case"select":p=g.value,p!=null&&Ru(u,!!g.multiple,p,!1)}}}var Ih=!1;function ff(u,p,g){if(Ih)return u(p,g);Ih=!0;try{var v=u(p);return v}finally{if(Ih=!1,(qo!==null||Dn!==null)&&(Mv(),qo&&(p=qo,u=Dn,Dn=qo=null,hf(p),u)))for(p=0;p<u.length;p++)hf(u[p])}}function Gd(u,p){var g=u.stateNode;if(g===null)return null;var v=g[$s]||null;if(v===null)return null;g=v[p];e:switch(p){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(v=!v.disabled)||(u=u.type,v=!(u==="button"||u==="input"||u==="select"||u==="textarea")),u=!v;break e;default:u=!1}if(u)return null;if(g&&typeof g!="function")throw Error(a(231,p,typeof g));return g}var _c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pc=!1;if(_c)try{var Co={};Object.defineProperty(Co,"passive",{get:function(){Pc=!0}}),window.addEventListener("test",Co,Co),window.removeEventListener("test",Co,Co)}catch{Pc=!1}var rl=null,Mh=null,Vl=null;function Zm(){if(Vl)return Vl;var u,p=Mh,g=p.length,v,j="value"in rl?rl.value:rl.textContent,P=j.length;for(u=0;
vendor: 11,643 bytes, line 49
49u<g&&p[u]===j[u];u++);var Z=g-u;for(v=1;v<=Z&&p[g-v]===j[P-v];v++);return Vl=j.slice(u,1<v?1-v:void 0)}function So(u){var p=u.keyCode;return"charCode"in u?(u=u.charCode,u===0&&p===13&&(u=13)):u=p,u===10&&(u=13),32<=u||u===13?u:0}function ep(){return!0}function Jd(){return!1}function _i(u){function p(g,v,j,P,Z){this._reactName=g,this._targetInst=j,this.type=v,this.nativeEvent=P,this.target=Z,this.currentTarget=null;for(var de in u)u.hasOwnProperty(de)&&(g=u[de],this[de]=g?g(P):P[de]);return this.isDefaultPrevented=(P.defaultPrevented!=null?P.defaultPrevented:P.returnValue===!1)?ep:Jd,this.isPropagationStopped=Jd,this}return h(p.prototype,{preventDefault:function(){this.defaultPrevented=!0;var g=this.nativeEvent;g&&(g.preventDefault?g.preventDefault():typeof g.returnValue!="unknown"&&(g.returnValue=!1),this.isDefaultPrevented=ep)},stopPropagation:function(){var g=this.nativeEvent;g&&(g.stopPropagation?g.stopPropagation():typeof g.cancelBubble!="unknown"&&(g.cancelBubble=!0),this.isPropagationStopped=ep)},persist:function(){},isPersistent:ep}),p}var Dc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(u){return u.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rc=_i(Dc),zl=h({},Dc,{view:0,detail:0}),Wd=_i(zl),Yd,Iu,$l,ql=h({},zl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cn,button:0,buttons:0,relatedTarget:function(u){return u.relatedTarget===void 0?u.fromElement===u.srcElement?u.toElement:u.fromElement:u.relatedTarget},movementX:function(u){return"movementX"in u?u.movementX:(u!==$l&&($l&&u.type==="mousemove"?(Yd=u.screenX-$l.screenX,Iu=u.screenY-$l.screenY):Iu=Yd=0,$l=u),Yd)},movementY:function(u){return"movementY"in u?u.movementY:Iu}}),Lh=_i(ql),Gl=h({},ql,{dataTransfer:0}),Jl=_i(Gl),gf=h({},zl,{relatedTarget:0}),tp=_i(gf),xf=h({},Dc,{animationName:0,elapsedTime:0,pseudoElement:0}),Xd=_i(xf),bf=h({},Dc,{clipboardData:function(u){return"clipboardData"in u?u.clipboardData:window.clipboardData}}),B=_i(bf),se=h({},Dc,{data:0}),Te=_i(se),Re={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ve={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"},ut={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wt(u){var p=this.nativeEvent;return p.getModifierState?p.getModifierState(u):(u=ut[u])?!!p[u]:!1}function cn(){return wt}var dn=h({},zl,{key:function(u){if(u.key){var p=Re[u.key]||u.key;if(p!=="Unidentified")return p}return u.type==="keypress"?(u=So(u),u===13?"Enter":String.fromCharCode(u)):u.type==="keydown"||u.type==="keyup"?Ve[u.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cn,charCode:function(u){return u.type==="keypress"?So(u):0},keyCode:function(u){return u.type==="keydown"||u.type==="keyup"?u.keyCode:0},which:function(u){return u.type==="keypress"?So(u):u.type==="keydown"||u.type==="keyup"?u.keyCode:0}}),Yn=_i(dn),ea=h({},ql,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wa=_i(ea),jr=h({},zl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cn}),ps=_i(jr),rs=h({},Dc,{propertyName:0,elapsedTime:0,pseudoElement:0}),Es=_i(rs),qs=h({},ql,{deltaX:function(u){return"deltaX"in u?u.deltaX:"wheelDeltaX"in u?-u.wheelDeltaX:0},deltaY:function(u){return"deltaY"in u?u.deltaY:"wheelDeltaY"in u?-u.wheelDeltaY:"wheelDelta"in u?-u.wheelDelta:0},deltaZ:0,deltaMode:0}),Gs=_i(qs),Pi=h({},Dc,{newState:0,oldState:0}),Wl=_i(Pi),Oh=[9,13,27,32],Yl=_c&&"CompositionEvent"in window,Ic=null;_c&&"documentMode"in document&&(Ic=document.documentMode);var Mu=_c&&"TextEvent"in window&&!Ic,Lu=_c&&(!Yl||Ic&&8<Ic&&11>=Ic),Qd=" ",Kd=!1;function pi(u,p){switch(u){case"keyup":return Oh.indexOf(p.keyCode)!==-1;case"keydown":return p.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ou(u){return u=u.detail,typeof u=="object"&&"data"in u?u.data:null}var Go=!1;function Bh(u,p){switch(u){case"compositionend":return Ou(p);case"keypress":return p.which!==32?null:(Kd=!0,Qd);case"textInput":return u=p.data,u===Qd&&Kd?null:u;default:return null}}function il(u,p){if(Go)return u==="compositionend"||!Yl&&pi(u,p)?(u=Zm(),Vl=Mh=rl=null,Go=!1,u):null;switch(u){case"paste":return null;case"keypress":if(!(p.ctrlKey||p.altKey||p.metaKey)||p.ctrlKey&&p.altKey){if(p.char&&1<p.char.length)return p.char;if(p.which)return String.fromCharCode(p.which)}return null;case"compositionend":return Lu&&p.locale!=="ko"?null:p.data;default:return null}}var Xi={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 Fh(u){var p=u&&u.nodeName&&u.nodeName.toLowerCase();return p==="input"?!!Xi[u.type]:p==="textarea"}function Zd(u,p,g,v){qo?Dn?Dn.push(v):Dn=[v]:qo=v,p=Vv(p,"onChange"),0<p.length&&(g=new Rc("onChange","change",null,g,v),u.push({event:g,listeners:p}))}var Bu=null,Di=null;function em(u){kS(u,0)}function Fu(u){var p=$d(u);if(Ym(p))return u}function tm(u,p){if(u==="change")return p}var Uu=!1;if(_c){var nm;if(_c){var hi="oninput"in document;if(!hi){var Qi=document.createElement("div");Qi.setAttribute("oninput","return;"),hi=typeof Qi.oninput=="function"}nm=hi}else nm=!1;Uu=nm&&(!document.documentMode||9<document.documentMode)}function am(){Bu&&(Bu.detachEvent("onpropertychange",Xl),Di=Bu=null)}function Xl(u){if(u.propertyName==="value"&&Fu(Di)){var p=[];Zd(p,Di,u,Rh(u)),ff(em,p)}}function Hu(u,p,g){u==="focusin"?(am(),Bu=p,Di=g,Bu.attachEvent("onpropertychange",Xl)):u==="focusout"&&am()}function np(u){if(u==="selectionchange"||u==="keyup"||u==="keydown")return Fu(Di)}function sm(u,p){if(u==="click")return Fu(p)}function Ar(u,p){if(u==="input"||u==="change")return Fu(p)}function Fx(u,p){return u===p&&(u!==0||1/u===1/p)||u!==u&&p!==p}var nr=typeof Object.is=="function"?Object.is:Fx;function Ki(u,p){if(nr(u,p))return!0;if(typeof u!="object"||u===null||typeof p!="object"||p===null)return!1;var g=Object.keys(u),v=Object.keys(p);if(g.length!==v.length)return!1;for(v=0;v<g.length;v++){var j=g[v];if(!it.call(p,j)||!nr(u[j],p[j]))return!1}return!0}function Vu(u){for(;u&&u.firstChild;)u=u.firstChild;return u}function ap(u,p){var g=Vu(u);u=0;for(var v;g;){if(g.nodeType===3){if(v=u+g.textContent.length,u<=p&&v>=p)return{node:g,offset:p-u};u=v}e:{for(;g;){if(g.nextSibling){g=g.nextSibling;break e}g=g.parentNode}g=void 0}g=Vu(g)}}function sp(u,p){return u&&p?u===p?!0:u&&u.nodeType===3?!1:p&&p.nodeType===3?sp(u,p.parentNode):"contains"in u?u.contains(p):u.compareDocumentPosition?!!(u.compareDocumentPosition(p)&16):!1:!1}function rm(u){u=u!=null&&u.ownerDocument!=null&&u.ownerDocument.defaultView!=null?u.ownerDocument.defaultView:window;for(var p=Si(u.document);p instanceof u.HTMLIFrameElement;){try{var g=typeof p.contentWindow.location.href=="string"}catch{g=!1}if(g)u=p.contentWindow;else break;p=Si(u.document)}return p}function Ql(u){var p=u&&u.nodeName&&u.nodeName.toLowerCase();return p&&(p==="input"&&(u.type==="text"||u.type==="search"||u.type==="tel"||u.type==="url"||u.type==="password")||p==="textarea"||u.contentEditable==="true")}var im=_c&&"documentMode"in document&&11>=document.documentMode,_o=null,Mc=null,Jo=null,zu=!1;function fi(u,p,g){var v=g.window===g?g.document:g.nodeType===9?g:g.ownerDocument;zu||_o==null||_o!==Si(v)||(v=_o,"selectionStart"in v&&Ql(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),Jo&&Ki(Jo,v)||(Jo=v,v=Vv(Mc,"onSelect"),0<v.length&&(p=new Rc("onSelect","select",null,p,g),u.push({event:p,listeners:v}),p.target=_o)))}function Ri(u,p){var g={};return g[u.toLowerCase()]=p.toLowerCase(),g["Webkit"+u]="webkit"+p,g["Moz"+u]="moz"+p,g}var Va={animationend:Ri("Animation","AnimationEnd"),animationiteration:Ri("Animation","AnimationIteration"),animationstart:Ri("Animation","AnimationStart"),transitionrun:Ri("Transition","TransitionRun"),transitionstart:Ri("Transition","TransitionStart"),transitioncancel:Ri("Transition","TransitionCancel"),transitionend:Ri("Transition","TransitionEnd")},is={},ar={};_c&&(ar=document.createElement("div").style,"AnimationEvent"in window||(delete Va.animationend.animation,delete Va.animationiteration.animation,delete Va.animationstart.animation),"TransitionEvent"in window||delete Va.transitionend.transition);function Cs(u){if(is[u])return is[u];if(!Va[u])return u;var p=Va[u],g;for(g in p)if(p.hasOwnProperty(g)&&g in ar)return is[u]=p[g];return u}var ol=Cs("animationend"),rp=Cs("animationiteration"),om=Cs("animationstart"),vf=Cs("transitionrun"),mv=Cs("transitionstart"),pv=Cs("transitioncancel"),Ux=Cs("transitionend"),Hx=new Map,cm="abort auxClick beforeToggle 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(" ");cm.push("scrollEnd");function Wo(u,p){Hx.set(u,p),Ac(p,[u])}var Uh=typeof reportError=="function"?reportError:function(u){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var p=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof u=="object"&&u!==null&&typeof u.message=="string"?String(u.message):String(u),error:u});if(!window.dispatchEvent(p))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",u);return}console.error(u)},Po=[],lm=0,yf=0;function Hh(){for(var u=lm,p=yf=lm=0;p<u;){var g=Po[p];Po[p++]=null;var v=Po[p];Po[p++]=null;var j=Po[p];Po[p++]=null;var P=Po[p];if(Po[p++]=null,v!==null&&j!==null){var Z=v.pending;Z===null?j.next=j:(j.next=Z.next,Z.next=j),v.pending=j}P!==0&&zh(g,j,P)}}function Vh(u,p,g,v){Po[lm++]=u,Po[lm++]=p,Po[lm++]=g,Po[lm++]=v,yf|=v,u.lanes|=v,u=u.alternate,u!==null&&(u.lanes|=v)}function wf(u,p,g,v){return Vh(u,p,g,v),Ii(u)}function Kl(u,p){return Vh(u,null,null,p),Ii(u)}function zh(u,p,g){u.lanes|=g;var v=u.alternate;v!==null&&(v.lanes|=g);for(var j=!1,P=u.return;P!==null;)P.childLanes|=g,v=P.alternate,v!==null&&(v.childLanes|=g),P.tag===22&&(u=P.stateNode,u===null||u._visibility&1||(j=!0)),u=P,P=P.return;return u.tag===3?(P=u.stateNode,j&&p!==null&&(j=31-bn(g),u=P.hiddenUpdates,v=u[j],v===null?u[j]=[p]:v.push(p),p.lane=g|536870912),P):null}function Ii(u){if(50<l1)throw l1=0,Aw=null,Error(a(185));for(var p=u.return;p!==null;)u=p,p=u.return;return u.tag===3?u.stateNode:null}var gi={};function Tf(u,p,g,v){this.tag=u,this.key=g,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 18,068 bytes, line 49
49ype=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=p,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mi(u,p,g,v){return new Tf(u,p,g,v)}function Nf(u){return u=u.prototype,!(!u||!u.isReactComponent)}function Yo(u,p){var g=u.alternate;return g===null?(g=Mi(u.tag,p,u.key,u.mode),g.elementType=u.elementType,g.type=u.type,g.stateNode=u.stateNode,g.alternate=u,u.alternate=g):(g.pendingProps=p,g.type=u.type,g.flags=0,g.subtreeFlags=0,g.deletions=null),g.flags=u.flags&65011712,g.childLanes=u.childLanes,g.lanes=u.lanes,g.child=u.child,g.memoizedProps=u.memoizedProps,g.memoizedState=u.memoizedState,g.updateQueue=u.updateQueue,p=u.dependencies,g.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext},g.sibling=u.sibling,g.index=u.index,g.ref=u.ref,g.refCleanup=u.refCleanup,g}function $h(u,p){u.flags&=65011714;var g=u.alternate;return g===null?(u.childLanes=0,u.lanes=p,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=g.childLanes,u.lanes=g.lanes,u.child=g.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=g.memoizedProps,u.memoizedState=g.memoizedState,u.updateQueue=g.updateQueue,u.type=g.type,p=g.dependencies,u.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext}),u}function ip(u,p,g,v,j,P){var Z=0;if(v=u,typeof u=="function")Nf(u)&&(Z=1);else if(typeof u=="string")Z=EK(u,g,ne.current)?26:u==="html"||u==="head"||u==="body"?27:5;else e:switch(u){case F:return u=Mi(31,g,p,j),u.elementType=F,u.lanes=P,u;case y:return $u(g.children,j,P,p);case w:Z=8,j|=24;break;case T:return u=Mi(12,g,p,j|2),u.elementType=T,u.lanes=P,u;case S:return u=Mi(13,g,p,j),u.elementType=S,u.lanes=P,u;case R:return u=Mi(19,g,p,j),u.elementType=R,u.lanes=P,u;default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case E:Z=10;break e;case A:Z=9;break e;case D:Z=11;break e;case L:Z=14;break e;case I:Z=16,v=null;break e}Z=29,g=Error(a(130,u===null?"null":typeof u,"")),v=null}return p=Mi(Z,g,p,j),p.elementType=u,p.type=v,p.lanes=P,p}function $u(u,p,g,v){return u=Mi(7,u,v,p),u.lanes=g,u}function qh(u,p,g){return u=Mi(6,u,null,p),u.lanes=g,u}function kf(u){var p=Mi(18,null,null,0);return p.stateNode=u,p}function op(u,p,g){return p=Mi(4,u.children!==null?u.children:[],u.key,p),p.lanes=g,p.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},p}var jf=new WeakMap;function Xo(u,p){if(typeof u=="object"&&u!==null){var g=jf.get(u);return g!==void 0?g:(p={value:u,source:p,stack:Jt(p)},jf.set(u,p),p)}return{value:u,source:p,stack:Jt(p)}}var cp=[],um=0,Af=null,Gh=0,Qo=[],Ko=0,qu=null,Zo=1,ec="";function Do(u,p){cp[um++]=Gh,cp[um++]=Af,Af=u,Gh=p}function hv(u,p,g){Qo[Ko++]=Zo,Qo[Ko++]=ec,Qo[Ko++]=qu,qu=u;var v=Zo;u=ec;var j=32-bn(v)-1;v&=~(1<<j),g+=1;var P=32-bn(p)+j;if(30<P){var Z=j-j%5;P=(v&(1<<Z)-1).toString(32),v>>=Z,j-=Z,Zo=1<<32-bn(p)+j|g<<j|v,ec=P+u}else Zo=1<<P|g<<j|v,ec=u}function Vx(u){u.return!==null&&(Do(u,1),hv(u,1,0))}function Ef(u){for(;u===Af;)Af=cp[--um],cp[um]=null,Gh=cp[--um],cp[um]=null;for(;u===qu;)qu=Qo[--Ko],Qo[Ko]=null,ec=Qo[--Ko],Qo[Ko]=null,Zo=Qo[--Ko],Qo[Ko]=null}function fv(u,p){Qo[Ko++]=Zo,Qo[Ko++]=ec,Qo[Ko++]=qu,Zo=p.id,ec=p.overflow,qu=u}var xi=null,Ss=null,Ta=!1,Zi=null,sr=!1,Lc=Error(a(519));function Gu(u){var p=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw lp(Xo(p,u)),Lc}function zx(u){var p=u.stateNode,g=u.type,v=u.memoizedProps;switch(p[ms]=u,p[$s]=v,g){case"dialog":ka("cancel",p),ka("close",p);break;case"iframe":case"object":case"embed":ka("load",p);break;case"video":case"audio":for(g=0;g<d1.length;g++)ka(d1[g],p);break;case"source":ka("error",p);break;case"img":case"image":case"link":ka("error",p),ka("load",p);break;case"details":ka("toggle",p);break;case"input":ka("invalid",p),_h(p,v.value,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name,!0);break;case"select":ka("invalid",p);break;case"textarea":ka("invalid",p),Cc(p,v.value,v.defaultValue,v.children)}g=v.children,typeof g!="string"&&typeof g!="number"&&typeof g!="bigint"||p.textContent===""+g||v.suppressHydrationWarning===!0||CS(p.textContent,g)?(v.popover!=null&&(ka("beforetoggle",p),ka("toggle",p)),v.onScroll!=null&&ka("scroll",p),v.onScrollEnd!=null&&ka("scrollend",p),v.onClick!=null&&(p.onclick=$o),p=!0):p=!1,p||Gu(u,!0)}function Zl(u){for(xi=u.return;xi;)switch(xi.tag){case 5:case 31:case 13:sr=!1;return;case 27:case 3:sr=!0;return;default:xi=xi.return}}function bi(u){if(u!==xi)return!1;if(!Ta)return Zl(u),Ta=!0,!1;var p=u.tag,g;if((g=p!==3&&p!==27)&&((g=p===5)&&(g=u.type,g=!(g!=="form"&&g!=="button")||Hw(u.type,u.memoizedProps)),g=!g),g&&Ss&&Gu(u),Zl(u),p===13){if(u=u.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(a(317));Ss=OS(u)}else if(p===31){if(u=u.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(a(317));Ss=OS(u)}else p===27?(p=Ss,Np(u.type)?(u=Gw,Gw=null,Ss=u):Ss=p):Ss=xi?dl(u.stateNode.nextSibling):null;return!0}function dm(){Ss=xi=null,Ta=!1}function $x(){var u=Zi;return u!==null&&(ic===null?ic=u:ic.push.apply(ic,u),Zi=null),u}function lp(u){Zi===null?Zi=[u]:Zi.push(u)}var Cf=Y(null),Ju=null,cl=null;function Wu(u,p,g){H(Cf,p._currentValue),p._currentValue=g}function tc(u){u._currentValue=Cf.current,z(Cf)}function up(u,p,g){for(;u!==null;){var v=u.alternate;if((u.childLanes&p)!==p?(u.childLanes|=p,v!==null&&(v.childLanes|=p)):v!==null&&(v.childLanes&p)!==p&&(v.childLanes|=p),u===g)break;u=u.return}}function mm(u,p,g,v){var j=u.child;for(j!==null&&(j.return=u);j!==null;){var P=j.dependencies;if(P!==null){var Z=j.child;P=P.firstContext;e:for(;P!==null;){var de=P;P=j;for(var De=0;De<p.length;De++)if(de.context===p[De]){P.lanes|=g,de=P.alternate,de!==null&&(de.lanes|=g),up(P.return,g,u),v||(Z=null);break e}P=de.next}}else if(j.tag===18){if(Z=j.return,Z===null)throw Error(a(341));Z.lanes|=g,P=Z.alternate,P!==null&&(P.lanes|=g),up(Z,g,u),Z=null}else Z=j.child;if(Z!==null)Z.return=j;else for(Z=j;Z!==null;){if(Z===u){Z=null;break}if(j=Z.sibling,j!==null){j.return=Z.return,Z=j;break}Z=Z.return}j=Z}}function Yu(u,p,g,v){u=null;for(var j=p,P=!1;j!==null;){if(!P){if((j.flags&524288)!==0)P=!0;else if((j.flags&262144)!==0)break}if(j.tag===10){var Z=j.alternate;if(Z===null)throw Error(a(387));if(Z=Z.memoizedProps,Z!==null){var de=j.type;nr(j.pendingProps.value,Z.value)||(u!==null?u.push(de):u=[de])}}else if(j===fe.current){if(Z=j.alternate,Z===null)throw Error(a(387));Z.memoizedState.memoizedState!==j.memoizedState.memoizedState&&(u!==null?u.push(g1):u=[g1])}j=j.return}u!==null&&mm(p,u,g,v),p.flags|=262144}function Sf(u){for(u=u.firstContext;u!==null;){if(!nr(u.context._currentValue,u.memoizedValue))return!0;u=u.next}return!1}function Xu(u){Ju=u,cl=null,u=u.dependencies,u!==null&&(u.firstContext=null)}function vi(u){return gv(Ju,u)}function _f(u,p){return Ju===null&&Xu(u),gv(u,p)}function gv(u,p){var g=p._currentValue;if(p={context:p,memoizedValue:g,next:null},cl===null){if(u===null)throw Error(a(308));cl=p,u.dependencies={lanes:0,firstContext:p},u.flags|=524288}else cl=cl.next=p;return g}var q6=typeof AbortController<"u"?AbortController:function(){var u=[],p=this.signal={aborted:!1,addEventListener:function(g,v){u.push(v)}};this.abort=function(){p.aborted=!0,u.forEach(function(g){return g()})}},G6=e.unstable_scheduleCallback,J6=e.unstable_NormalPriority,gr={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function dp(){return{controller:new q6,data:new Map,refCount:0}}function Jh(u){u.refCount--,u.refCount===0&&G6(J6,function(){u.controller.abort()})}var Wh=null,Pf=0,N=0,C=null;function $(u,p){if(Wh===null){var g=Wh=[];Pf=0,N=Dw(),C={status:"pending",value:void 0,then:function(v){g.push(v)}}}return Pf++,p.then(Q,Q),p}function Q(){if(--Pf===0&&Wh!==null){C!==null&&(C.status="fulfilled");var u=Wh;Wh=null,N=0,C=null;for(var p=0;p<u.length;p++)(0,u[p])()}}function re(u,p){var g=[],v={status:"pending",value:null,reason:null,then:function(j){g.push(j)}};return u.then(function(){v.status="fulfilled",v.value=p;for(var j=0;j<g.length;j++)(0,g[j])(p)},function(j){for(v.status="rejected",v.reason=j,j=0;j<g.length;j++)(0,g[j])(void 0)}),v}var ce=G.S;G.S=function(u,p){KC=wn(),typeof p=="object"&&p!==null&&typeof p.then=="function"&&$(u,p),ce!==null&&ce(u,p)};var ue=Y(null);function ge(){var u=ue.current;return u!==null?u:Ps.pooledCache}function ve(u,p){p===null?H(ue,ue.current):H(ue,p.pool)}function ke(){var u=ge();return u===null?null:{parent:gr._currentValue,pool:u}}var Me=Error(a(460)),Xe=Error(a(474)),Ne=Error(a(542)),Ue={then:function(){}};function Ge(u){return u=u.status,u==="fulfilled"||u==="rejected"}function lt(u,p,g){switch(g=u[g],g===void 0?u.push(p):g!==p&&(p.then($o,$o),p=g),p.status){case"fulfilled":return p.value;case"rejected":throw u=p.reason,Et(u),u;default:if(typeof p.status=="string")p.then($o,$o);else{if(u=Ps,u!==null&&100<u.shellSuspendCounter)throw Error(a(482));u=p,u.status="pending",u.then(function(v){if(p.status==="pending"){var j=p;j.status="fulfilled",j.value=v}},function(v){if(p.status==="pending"){var j=p;j.status="rejected",j.reason=v}})}switch(p.status){case"fulfilled":return p.value;case"rejected":throw u=p.reason,Et(u),u}throw ot=p,Me}}function Je(u){try{var p=u._init;return p(u._payload)}catch(g){throw g!==null&&typeof g=="object"&&typeof g.then=="function"?(ot=g,Me):g}}var ot=null;function ht(){if(ot===null)throw Error(a(459));var u=ot;return ot=null,u}function Et(u){if(u===Me||u===Ne)throw Error(a(483))}var vt=null,pn=0;function en(u){var p=pn;return pn+=1,vt===null&&(vt=[]),lt(vt,u,p)}function Xn(u,p){p=p.props.ref,u.ref=p!==void 0?p:null}function ln(u,p){throw p.$$typeof===x?Error(a(525)):(u=Object.prototype.toString.call(p),Error(a(31,u==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":u)))}function ga(u){function p($e,Oe){if(u){var Qe=$e.deletions;Qe===null?($e.deletions=[Oe],$e.flags|=16):Qe.push(Oe)}}function g($e,Oe){if(!u)return null;for(;Oe!==null;)p($e,Oe),Oe=Oe.sibling;return null}function v($e){for(var Oe=new Map;$e!==null;)$e.key!==null?Oe.set($e.key,$e):Oe.set($e.index,$e),$e=$e.sibling;return Oe}function j($e,Oe){return $e=Yo($e,Oe),$e.index=0,$e.sibling=null,$e}function P($e,Oe,Qe){return $e.index=Qe,u?(Qe=$e.alternate,Qe!==null?(Qe=Qe.index,Qe<Oe?($e.flags|=67108866,Oe):Qe):($e.flags|=67108866,Oe)):($e.flags|=1048576,Oe)}function Z($e){return u&&$e.alternate===null&&($e.flags|=67108866),$e}function de($e,Oe,Qe,gt){return Oe===null||Oe.tag!==6?(Oe=qh(Qe,$e.mode,gt),Oe.return=$e,Oe):(Oe=j(Oe,Qe),Oe.return=$e,Oe)}function De($e,Oe,Qe,gt){var _n=Qe.type;return _n===y?mt($e,Oe,Qe.props.children,gt,Qe.key):Oe!==null&&(Oe.elementType===_n||typeof _n=="object"&&_n!==null&&_n.$$typeof===I&&Je(_n)===Oe.type)?(Oe=j(Oe,Qe.props),Xn(Oe,Qe),Oe.return=$e,Oe):(Oe=ip(Qe.type,Qe.key,Qe.props,null,$e.mode,gt),Xn(Oe,Qe),Oe.return=$e,Oe)}function Ze($e,Oe,Qe,gt){return Oe===null||Oe.tag!==4||Oe.stateNode.containerInfo!==Qe.containerInfo||Oe.stateNode.implementation!==Qe.implementation?(Oe=op(Qe,$e.mode,gt),Oe.return=$e,Oe):(Oe=j(Oe,Qe.children||[]),Oe.return=$e,Oe)}function mt($e,Oe,Qe,gt,_n){return Oe===null||Oe.tag!==7?(Oe=$u(Qe,$e.mode,gt,_n),Oe.return=$e,Oe):(Oe=j(Oe,Qe),Oe.return=$e,Oe)}function bt($e,Oe,Qe){if(typeof Oe=="string"&&Oe!==""||typeof Oe=="number"||typeof Oe=="bigint")return Oe=qh(""+Oe,$e.mode,Qe),Oe.return=$e,Oe;if(typeof Oe=="object"&&Oe!==null){switch(Oe.$$typeof){case f:return Qe=ip(Oe.type,Oe.key,Oe.props,null,$e.mode,Qe),Xn(Qe,Oe),Qe.return=$e,Qe;case b:return Oe=op(Oe,$e.mode,Qe),Oe.return=$e,Oe;case I:return Oe=Je(Oe),bt($e,Oe,Qe)}if(oe(Oe)||O(Oe))return Oe=$u(Oe,$e.mode,Qe,null),Oe.return=$e,Oe;if(typeof Oe.then=="function")return bt($e,en(Oe),Qe);if(Oe.$$typeof===E)return bt($e,_f($e,Oe),Qe);ln($e,Oe)}return null}function et($e,Oe,Qe,gt){var _n=Oe!==null?Oe.key:null;if(typeof Qe=="string"&&Qe!==""||typeof Qe=="number"||typeof Qe=="bigint")return _n!==null?null:de($e,Oe,""+Qe,gt);if(typeof Qe=="object"&&Qe!==null){switch(Qe.$$typeof){case f:return Qe.key===_n?De($e,Oe,Qe,gt):null;case b:return Qe.key===_n?Ze($e,Oe,Qe,gt):null;case I:return Qe=Je(Qe),et($e,Oe,Qe,gt)}if(oe(Qe)||O(Qe))return _n!==null?null:mt($e,Oe,Qe,gt,null);if(typeof Qe.then=="function")return et($e,Oe,en(Qe),gt);if(Qe.$$typeof===E)return et($e,Oe,_f($e,Qe),gt);ln($e,Qe)}return null}function st($e,Oe,Qe,gt,_n){if(typeof gt=="string"&>!==""||typeof gt=="number"||typeof gt=="bigint")return $e=$e.get(Qe)||null,de(Oe,$e,""+gt,_n);if(typeof gt=="object"&>!==null){switch(gt.$$typeof){case f:return $e=$e.get(gt.key===null?Qe:gt.key)||null,De(Oe,$e,gt,_n);case b:return $e=$e.get(gt.key===null?Qe:gt.key)||null,Ze(Oe,$e,gt,_n);case I:return gt=Je(gt),st($e,Oe,Qe,gt,_n)}if(oe(gt)||O(gt))return $e=$e.get(Qe)||null,mt(Oe,$e,gt,_n,null);if(typeof gt.then=="function")return st($e,Oe,Qe,en(gt),_n);if(gt.$$typeof===E)return st($e,Oe,Qe,_f(Oe,gt),_n);ln(Oe,gt)}return null}function mn($e,Oe,Qe,gt){for(var _n=null,qa=null,vn=Oe,ua=Oe=0,Sa=null;vn!==null&&ua<Qe.length;ua++){vn.index>ua?(Sa=vn,vn=null):Sa=vn.sibling;var Ga=et($e,vn,Qe[ua],gt);if(Ga===null){vn===null&&(vn=Sa);break}u&&vn&&Ga.alternate===null&&p($e,vn),Oe=P(Ga,Oe,ua),qa===null?_n=Ga:qa.sibling=Ga,qa=Ga,vn=Sa}if(ua===Qe.length)return g($e,vn),Ta&&Do($e,ua),_n;if(vn===null){for(;ua<Qe.length;ua++)vn=bt($e,Qe[ua],gt),vn!==null&&(Oe=P(vn,Oe,ua),qa===null?_n=vn:qa.sibling=vn,qa=vn);return Ta&&Do($e,ua),_n}for(vn=v(vn);ua<Qe.length;ua++)Sa=st(vn,$e,ua,Qe[ua],gt),Sa!==null&&(u&&Sa.alternate!==null&&vn.delete(Sa.key===null?ua:Sa.key),Oe=P(Sa,Oe,ua),qa===null?_n=Sa:qa.sibling=Sa,qa=Sa);return u&&vn.forEach(function(Cp){return p($e,Cp)}),Ta&&Do($e,ua),_n}function Bn($e,Oe,Qe,gt){if(Qe==null)throw Error(a(151));for(var _n=null,qa=null,vn=Oe,ua=Oe=0,Sa=null,Ga=Qe.next();vn!==null&&!Ga.done;ua++,Ga=Qe.next()){vn.index>ua?(Sa=vn,vn=null):Sa=vn.sibling;var Cp=et($e,vn,Ga.value,gt);if(Cp===null){vn===null&&(vn=Sa);break}u&&vn&&Cp.alternate===null&&p($e,vn),Oe=P(Cp,Oe,ua),qa===null?_n=Cp:qa.sibling=Cp,qa=Cp,vn=Sa}if(Ga.done)return g($e,vn),Ta&&Do($e,ua),_n;if(vn===null){for(;!Ga.done;ua++,Ga=Qe.next())Ga=bt($e,Ga.value,gt),Ga!==null&&(Oe=P(Ga,Oe,ua),qa===null?_n=Ga:qa.sibling=Ga,qa=Ga);return Ta&&Do($e,ua),_n}for(vn=v(vn);!Ga.done;ua++,Ga=Qe.next())Ga=st(vn,$e,ua,Ga.value,gt),Ga!==null&&(u&&Ga.alternate!==null&&vn.delete(Ga.key===null?ua:Ga.key),Oe=P(Ga,Oe,ua),qa===null?_n=Ga:qa.sibling=Ga,qa=Ga);return u&&vn.forEach(function(BK){return p($e,BK)}),Ta&&Do($e,ua),_n}function ws($e,Oe,Qe,gt){if(typeof Qe=="object"&&Qe!==null&&Qe.type===y&&Qe.key===null&&(Qe=Qe.props.children),typeof Qe=="object"&&Qe!==null){switch(Qe.$$typeof){case f:e:{for(var _n=Qe.key;Oe!==null;){if(Oe.key===_n){if(_n=Qe.type,_n===y){if(Oe.tag===7){g($e,Oe.sibling),gt=j(Oe,Qe.props.children),gt.return=$e,$e=gt;break e}}else if(Oe.elementType===_n||typeof _n=="object"&&_n!==null&&_n.$$typeof===I&&Je(_n)===Oe.type){g($e,Oe.sibling),gt=j(Oe,Qe.props),Xn(gt,Qe),gt.return=$e,$e=gt;break e}g($e,Oe);break}else p($e,Oe);Oe=Oe.sibling}Qe.type===y?(gt=$u(Qe.props.children,$e.mode,gt,Qe.key),gt.return=$e,$e=gt):(gt=ip(Qe.type,Qe.key,Qe.props,null,$e.mode,gt),Xn(gt,Qe),gt.return=$e,$e=gt)}return Z($e);case b:e:{for(_n=Qe.key;Oe!==null;){if(Oe.key===_n)if(Oe.tag===4&&Oe.stateNode.containerInfo===Qe.containerInfo&&Oe.stateNode.implementation===Qe.implementation){g($e,Oe.sibling),gt=j(Oe,Qe.children||[]),gt.return=$e,$e=gt;break e}else{g($e,Oe);break}else p($e,Oe);Oe=Oe.sibling}gt=op(Qe,$e.mode,gt),gt.return=$e,$e=gt}return Z($e);case I:return Qe=Je(Qe),ws($e,Oe,Qe,gt)}if(oe(Qe))return mn($e,Oe,Qe,gt);if(O(Qe)){if(_n=O(Qe),typeof _n!="function")throw Error(a(150));return Qe=_n.call(Qe),Bn($e,Oe,Qe,gt)}if(typeof Qe.then=="function")return ws($e,Oe,en(Qe),gt);if(Qe.$$typeof===E)return ws($e,Oe,_f($e,Qe),gt);ln($e,Qe)}return typeof Qe=="string"&&Qe!==""||typeof Qe=="number"||typeof Qe=="bigint"?(Qe=""+Qe,Oe!==null&&Oe.tag===6?(g($e,Oe.sibling),gt=j(Oe,Qe),gt.return=$e,$e=gt):(g($e,Oe),gt=qh(Qe,$e.mode,gt),gt.return=$e,$e=gt),Z($e)):g($e,Oe)}return function($e,Oe,Qe,gt){try{pn=0;var _n=ws($e,Oe,Qe,gt);return vt=null,_n}catch(vn){if(vn===Me||vn===Ne)throw vn;var qa=Mi(29,vn,null,$e.mode);return qa.lanes=gt,qa.return=$e,qa}finally{}}}var _s=ga(!0),ta=ga(!1),tn=!1;function Ft(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Js(u,p){u=u.updateQueue,p.updateQueue===u&&(p.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,callbacks:null})}function In(u){return{lane:u,tag:0,payload:null,callback:null,next:null}}function ra(u,p,g){var v=u.updateQueue;if(v===null)return null;if(v=v.shared,(Za&2)!==0){var j=v.pending;return j===null?p.next=p:(p.next=j.next,j.next=p),v.pending=p,p=Ii(u),zh(u,null,g),p}return Vh(u,v,p,g),Ii(u)}function Qa(u,p,g){if(p=p.updateQueue,p!==null&&(p=p.shared,(g&4194048)!==0)){var v=p.lanes;v&=u.pendingLanes,g|=v,p.lanes=g,js(u,g)}}function Vr(u,p){var g=u.updateQueue,v=u.alternate;if(v!==null&&(v=v.updateQueue,g===v)){var j=null,P=null;if(g=g.firstBaseUpdate,g!==null){do{var Z={lane:g.lane,tag:g.tag,payload:g.payload,callback:null,next:null};P===null?j=P=Z:P=P.next=Z,g=g.next}while(g!==null);P===null?j=P=p:P=P.next=p}else j=P=p;g={baseState:v.baseState,firstBaseUpdate:j,lastBaseUpdate:P,shared:v.shared,callbacks:v.callbacks},u.updateQueue=g;return}u=g.lastBaseUpdate,u===null?g.firstBaseUpdate=p:u.next=p,g.lastBaseUpdate=p}var yi=!1;function bs(){if(yi){var u=C;if(u!==null)throw u}}function Er(u,p,g,v){yi=!1;var j=u.updateQueue;tn=!1;var P=j.firstBaseUpdate,Z=j.lastBaseUpdate,de=j.shared.pending;if(de!==null){j.shared.pending=null;var De=de,Ze=De.next;De.next=null,Z===null?P=Ze:Z.next=Ze,Z=De;var mt=u.alternate;
vendor: 4,420 bytes, line 49
49mt!==null&&(mt=mt.updateQueue,de=mt.lastBaseUpdate,de!==Z&&(de===null?mt.firstBaseUpdate=Ze:de.next=Ze,mt.lastBaseUpdate=De))}if(P!==null){var bt=j.baseState;Z=0,mt=Ze=De=null,de=P;do{var et=de.lane&-536870913,st=et!==de.lane;if(st?(Ca&et)===et:(v&et)===et){et!==0&&et===N&&(yi=!0),mt!==null&&(mt=mt.next={lane:0,tag:de.tag,payload:de.payload,callback:null,next:null});e:{var mn=u,Bn=de;et=p;var ws=g;switch(Bn.tag){case 1:if(mn=Bn.payload,typeof mn=="function"){bt=mn.call(ws,bt,et);break e}bt=mn;break e;case 3:mn.flags=mn.flags&-65537|128;case 0:if(mn=Bn.payload,et=typeof mn=="function"?mn.call(ws,bt,et):mn,et==null)break e;bt=h({},bt,et);break e;case 2:tn=!0}}et=de.callback,et!==null&&(u.flags|=64,st&&(u.flags|=8192),st=j.callbacks,st===null?j.callbacks=[et]:st.push(et))}else st={lane:et,tag:de.tag,payload:de.payload,callback:de.callback,next:null},mt===null?(Ze=mt=st,De=bt):mt=mt.next=st,Z|=et;if(de=de.next,de===null){if(de=j.shared.pending,de===null)break;st=de,de=st.next,st.next=null,j.lastBaseUpdate=st,j.shared.pending=null}}while(!0);mt===null&&(De=bt),j.baseState=De,j.firstBaseUpdate=Ze,j.lastBaseUpdate=mt,P===null&&(j.shared.lanes=0),bp|=Z,u.lanes=Z,u.memoizedState=bt}}function Li(u,p){if(typeof u!="function")throw Error(a(191,u));u.call(p)}function Cr(u,p){var g=u.callbacks;if(g!==null)for(u.callbacks=null,u=0;u<g.length;u++)Li(g[u],p)}var pa=Y(null),Ia=Y(0);function Ws(u,p){u=Tm,H(Ia,u),H(pa,p),Tm=u|p.baseLanes}function za(){H(Ia,Tm),H(pa,pa.current)}function zr(){Tm=Ia.current,z(pa),z(Ia)}var Ys=Y(null),Ma=null;function xr(u){var p=u.alternate;H(Da,Da.current&1),H(Ys,u),Ma===null&&(p===null||pa.current!==null||p.memoizedState!==null)&&(Ma=u)}function Ka(u){H(Da,Da.current),H(Ys,u),Ma===null&&(Ma=u)}function Sr(u){u.tag===22?(H(Da,Da.current),H(Ys,u),Ma===null&&(Ma=u)):_r()}function _r(){H(Da,Da.current),H(Ys,Ys.current)}function hs(u){z(Ys),Ma===u&&(Ma=null),z(Da)}var Da=Y(0);function Oi(u){for(var p=u;p!==null;){if(p.tag===13){var g=p.memoizedState;if(g!==null&&(g=g.dehydrated,g===null||$w(g)||qw(g)))return p}else if(p.tag===19&&(p.memoizedProps.revealOrder==="forwards"||p.memoizedProps.revealOrder==="backwards"||p.memoizedProps.revealOrder==="unstable_legacy-backwards"||p.memoizedProps.revealOrder==="together")){if((p.flags&128)!==0)return p}else if(p.child!==null){p.child.return=p,p=p.child;continue}if(p===u)break;for(;p.sibling===null;){if(p.return===null||p.return===u)return null;p=p.return}p.sibling.return=p.return,p=p.sibling}return null}var rr=0,Cn=null,Sn=null,La=null,lo=!1,nc=!1,eo=!1,Pr=0,Qu=0,Ku=null,Df=0;function vs(){throw Error(a(321))}function qx(u,p){if(p===null)return!1;for(var g=0;g<p.length&&g<u.length;g++)if(!nr(u[g],p[g]))return!1;return!0}function Gx(u,p,g,v,j,P){return rr=P,Cn=p,p.memoizedState=null,p.updateQueue=null,p.lanes=0,G.H=u===null||u.memoizedState===null?lC:tw,eo=!1,P=g(v,j),eo=!1,nc&&(P=eu(p,g,v,j)),Rf(u),P}function Rf(u){G.H=e1;var p=Sn!==null&&Sn.next!==null;if(rr=0,La=Sn=Cn=null,lo=!1,Qu=0,Ku=null,p)throw Error(a(300));u===null||ai||(u=u.dependencies,u!==null&&Sf(u)&&(ai=!0))}function eu(u,p,g,v){Cn=u;var j=0;do{if(nc&&(Ku=null),Qu=0,nc=!1,25<=j)throw Error(a(301));if(j+=1,La=Sn=null,u.updateQueue!=null){var P=u.updateQueue;P.lastEffect=null,P.events=null,P.stores=null,P.memoCache!=null&&(P.memoCache.index=0)}G.H=uC,P=p(g,v)}while(nc);return P}function W6(){var u=G.H,p=u.useState()[0];return p=typeof p.then=="function"?Zu(p):p,u=u.useState()[0],(Sn!==null?Sn.memoizedState:null)!==u&&(Cn.flags|=1024),p}function Jx(){var u=Pr!==0;return Pr=0,u}function Wx(u,p,g){p.updateQueue=u.updateQueue,p.flags&=-2053,u.lanes&=~g}function If(u){if(lo){for(u=u.memoizedState;u!==null;){var p=u.queue;p!==null&&(p.pending=null),u=u.next}lo=!1}rr=0,La=Sn=Cn=null,nc=!1,Qu=Pr=0,Ku=null}function ni(){var u={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return La===null?Cn.memoizedState=La=u:La=La.next=u,La}function ir(){if(Sn===null){var u=Cn.alternate;u=u!==null?u.memoizedState:null}else u=Sn.next;var p=La===null?Cn.memoizedState:La.next;if(p!==null)La=p,Sn=u;else{if(u===null)throw Cn.alternate===null?Error(a(467)):Error(a(310));Sn=u,u={memoizedState:Sn.memoizedState,baseState:Sn.baseState,baseQueue:Sn.baseQueue,queue:Sn.queue,next:null},La===null?Cn.memoizedState=La=u:La=La.next=u}return La}function Yh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Zu(u){var p=Qu;
vendor: 16,091 bytes, line 49
49return Qu+=1,Ku===null&&(Ku=[]),u=lt(Ku,u,p),p=Cn,(La===null?p.memoizedState:La.next)===null&&(p=p.alternate,G.H=p===null||p.memoizedState===null?lC:tw),u}function mp(u){if(u!==null&&typeof u=="object"){if(typeof u.then=="function")return Zu(u);if(u.$$typeof===E)return vi(u)}throw Error(a(438,String(u)))}function pm(u){var p=null,g=Cn.updateQueue;if(g!==null&&(p=g.memoCache),p==null){var v=Cn.alternate;v!==null&&(v=v.updateQueue,v!==null&&(v=v.memoCache,v!=null&&(p={data:v.data.map(function(j){return j.slice()}),index:0})))}if(p==null&&(p={data:[],index:0}),g===null&&(g=Yh(),Cn.updateQueue=g),g.memoCache=p,g=p.data[p.index],g===void 0)for(g=p.data[p.index]=Array(u),v=0;v<u;v++)g[v]=_;return p.index++,g}function ll(u,p){return typeof p=="function"?p(u):p}function Mf(u){var p=ir();return pp(p,Sn,u)}function pp(u,p,g){var v=u.queue;if(v===null)throw Error(a(311));v.lastRenderedReducer=g;var j=u.baseQueue,P=v.pending;if(P!==null){if(j!==null){var Z=j.next;j.next=P.next,P.next=Z}p.baseQueue=j=P,v.pending=null}if(P=u.baseState,j===null)u.memoizedState=P;else{p=j.next;var de=Z=null,De=null,Ze=p,mt=!1;do{var bt=Ze.lane&-536870913;if(bt!==Ze.lane?(Ca&bt)===bt:(rr&bt)===bt){var et=Ze.revertLane;if(et===0)De!==null&&(De=De.next={lane:0,revertLane:0,gesture:null,action:Ze.action,hasEagerState:Ze.hasEagerState,eagerState:Ze.eagerState,next:null}),bt===N&&(mt=!0);else if((rr&et)===et){Ze=Ze.next,et===N&&(mt=!0);continue}else bt={lane:0,revertLane:Ze.revertLane,gesture:null,action:Ze.action,hasEagerState:Ze.hasEagerState,eagerState:Ze.eagerState,next:null},De===null?(de=De=bt,Z=P):De=De.next=bt,Cn.lanes|=et,bp|=et;bt=Ze.action,eo&&g(P,bt),P=Ze.hasEagerState?Ze.eagerState:g(P,bt)}else et={lane:bt,revertLane:Ze.revertLane,gesture:Ze.gesture,action:Ze.action,hasEagerState:Ze.hasEagerState,eagerState:Ze.eagerState,next:null},De===null?(de=De=et,Z=P):De=De.next=et,Cn.lanes|=bt,bp|=bt;Ze=Ze.next}while(Ze!==null&&Ze!==p);if(De===null?Z=P:De.next=de,!nr(P,u.memoizedState)&&(ai=!0,mt&&(g=C,g!==null)))throw g;u.memoizedState=P,u.baseState=Z,u.baseQueue=De,v.lastRenderedState=P}return j===null&&(v.lanes=0),[u.memoizedState,v.dispatch]}function Lf(u){var p=ir(),g=p.queue;if(g===null)throw Error(a(311));g.lastRenderedReducer=u;var v=g.dispatch,j=g.pending,P=p.memoizedState;if(j!==null){g.pending=null;var Z=j=j.next;do P=u(P,Z.action),Z=Z.next;while(Z!==j);nr(P,p.memoizedState)||(ai=!0),p.memoizedState=P,p.baseQueue===null&&(p.baseState=P),g.lastRenderedState=P}return[P,v]}function Of(u,p,g){var v=Cn,j=ir(),P=Ta;if(P){if(g===void 0)throw Error(a(407));g=g()}else g=p();var Z=!nr((Sn||j).memoizedState,g);if(Z&&(j.memoizedState=g,ai=!0),j=j.queue,Y6(Xx.bind(null,v,j,u),[u]),j.getSnapshot!==p||Z||La!==null&&La.memoizedState.tag&1){if(v.flags|=2048,fm(9,{destroy:void 0},Yx.bind(null,v,j,g,p),null),Ps===null)throw Error(a(349));P||(rr&127)!==0||tu(v,p,g)}return g}function tu(u,p,g){u.flags|=16384,u={getSnapshot:p,value:g},p=Cn.updateQueue,p===null?(p=Yh(),Cn.updateQueue=p,p.stores=[u]):(g=p.stores,g===null?p.stores=[u]:g.push(u))}function Yx(u,p,g,v){p.value=g,p.getSnapshot=v,xv(p)&&Qx(u)}function Xx(u,p,g){return g(function(){xv(p)&&Qx(u)})}function xv(u){var p=u.getSnapshot;u=u.value;try{var g=p();return!nr(u,g)}catch{return!0}}function Qx(u){var p=Kl(u,2);p!==null&&oc(p,u,2)}function ed(u){var p=ni();if(typeof u=="function"){var g=u;if(u=g(),eo){xn(!0);try{g()}finally{xn(!1)}}}return p.memoizedState=p.baseState=u,p.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:u},p}function bv(u,p,g,v){return u.baseState=g,pp(u,Sn,typeof v=="function"?v:ll)}function vv(u,p,g,v,j){if(Nv(u))throw Error(a(485));if(u=p.action,u!==null){var P={payload:j,action:u,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(Z){P.listeners.push(Z)}};G.T!==null?g(!0):P.isTransition=!1,v(P),g=p.pending,g===null?(P.next=p.pending=P,yv(p,P)):(P.next=g.next,p.pending=g.next=P)}}function yv(u,p){var g=p.action,v=p.payload,j=u.state;if(p.isTransition){var P=G.T,Z={};G.T=Z;try{var de=g(j,v),De=G.S;De!==null&&De(Z,de),Kx(u,p,de)}catch(Ze){hm(u,p,Ze)}finally{P!==null&&Z.types!==null&&(P.types=Z.types),G.T=P}}else try{P=g(j,v),Kx(u,p,P)}catch(Ze){hm(u,p,Ze)}}function Kx(u,p,g){g!==null&&typeof g=="object"&&typeof g.then=="function"?g.then(function(v){wv(u,p,v)},function(v){return hm(u,p,v)}):wv(u,p,g)}function wv(u,p,g){p.status="fulfilled",p.value=g,Bf(p),u.state=g,p=u.pending,p!==null&&(g=p.next,g===p?u.pending=null:(g=g.next,p.next=g,yv(u,g)))}function hm(u,p,g){var v=u.pending;if(u.pending=null,v!==null){v=v.next;do p.status="rejected",p.reason=g,Bf(p),p=p.next;while(p!==v)}u.action=null}function Bf(u){u=u.listeners;for(var p=0;p<u.length;p++)(0,u[p])()}function Xh(u,p){return p}function ul(u,p){if(Ta){var g=Ps.formState;if(g!==null){e:{var v=Cn;if(Ta){if(Ss){t:{for(var j=Ss,P=sr;j.nodeType!==8;){if(!P){j=null;break t}if(j=dl(j.nextSibling),j===null){j=null;break t}}P=j.data,j=P==="F!"||P==="F"?j:null}if(j){Ss=dl(j.nextSibling),v=j.data==="F!";break e}}Gu(v)}v=!1}v&&(p=g[0])}}return g=ni(),g.memoizedState=g.baseState=p,v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xh,lastRenderedState:p},g.queue=v,g=iC.bind(null,Cn,v),v.dispatch=g,v=ed(!1),P=ew.bind(null,Cn,!1,v.queue),v=ni(),j={state:p,dispatch:null,action:u,pending:null},v.queue=j,g=vv.bind(null,Cn,j,P,g),j.dispatch=g,v.memoizedState=u,[p,g,!1]}function nu(u){var p=ir();return au(p,Sn,u)}function au(u,p,g){if(p=pp(u,p,Xh)[0],u=Mf(ll)[0],typeof p=="object"&&p!==null&&typeof p.then=="function")try{var v=Zu(p)}catch(Z){throw Z===Me?Ne:Z}else v=p;p=ir();var j=p.queue,P=j.dispatch;return g!==p.memoizedState&&(Cn.flags|=2048,fm(9,{destroy:void 0},Ff.bind(null,j,g),null)),[v,P,u]}function Ff(u,p){u.action=p}function Uf(u){var p=ir(),g=Sn;if(g!==null)return au(p,g,u);ir(),p=p.memoizedState,g=ir();var v=g.queue.dispatch;return g.memoizedState=u,[p,v,!1]}function fm(u,p,g,v){return u={tag:u,create:g,deps:v,inst:p,next:null},p=Cn.updateQueue,p===null&&(p=Yh(),Cn.updateQueue=p),g=p.lastEffect,g===null?p.lastEffect=u.next=u:(v=g.next,g.next=u,u.next=v,p.lastEffect=u),u}function Tv(){return ir().memoizedState}function hp(u,p,g,v){var j=ni();Cn.flags|=u,j.memoizedState=fm(1|p,{destroy:void 0},g,v===void 0?null:v)}function fp(u,p,g,v){var j=ir();v=v===void 0?null:v;var P=j.memoizedState.inst;Sn!==null&&v!==null&&qx(v,Sn.memoizedState.deps)?j.memoizedState=fm(p,P,g,v):(Cn.flags|=u,j.memoizedState=fm(1|p,P,g,v))}function GE(u,p){hp(8390656,8,u,p)}function Y6(u,p){fp(2048,8,u,p)}function DQ(u){Cn.flags|=4;var p=Cn.updateQueue;if(p===null)p=Yh(),Cn.updateQueue=p,p.events=[u];else{var g=p.events;g===null?p.events=[u]:g.push(u)}}function JE(u){var p=ir().memoizedState;return DQ({ref:p,nextImpl:u}),function(){if((Za&2)!==0)throw Error(a(440));return p.impl.apply(void 0,arguments)}}function WE(u,p){return fp(4,2,u,p)}function YE(u,p){return fp(4,4,u,p)}function XE(u,p){if(typeof p=="function"){u=u();var g=p(u);return function(){typeof g=="function"?g():p(null)}}if(p!=null)return u=u(),p.current=u,function(){p.current=null}}function QE(u,p,g){g=g!=null?g.concat([u]):null,fp(4,4,XE.bind(null,p,u),g)}function X6(){}function KE(u,p){var g=ir();p=p===void 0?null:p;var v=g.memoizedState;return p!==null&&qx(p,v[1])?v[0]:(g.memoizedState=[u,p],u)}function ZE(u,p){var g=ir();p=p===void 0?null:p;var v=g.memoizedState;if(p!==null&&qx(p,v[1]))return v[0];if(v=u(),eo){xn(!0);try{u()}finally{xn(!1)}}return g.memoizedState=[v,p],v}function Q6(u,p,g){return g===void 0||(rr&1073741824)!==0&&(Ca&261930)===0?u.memoizedState=p:(u.memoizedState=g,u=eS(),Cn.lanes|=u,bp|=u,g)}function eC(u,p,g,v){return nr(g,p)?g:pa.current!==null?(u=Q6(u,g,v),nr(u,p)||(ai=!0),u):(rr&42)===0||(rr&1073741824)!==0&&(Ca&261930)===0?(ai=!0,u.memoizedState=g):(u=eS(),Cn.lanes|=u,bp|=u,p)}function tC(u,p,g,v,j){var P=K.p;K.p=P!==0&&8>P?P:8;var Z=G.T,de={};G.T=de,ew(u,!1,p,g);try{var De=j(),Ze=G.S;if(Ze!==null&&Ze(de,De),De!==null&&typeof De=="object"&&typeof De.then=="function"){var mt=re(De,v);Zx(u,p,mt,Fc(u))}else Zx(u,p,v,Fc(u))}catch(bt){Zx(u,p,{then:function(){},status:"rejected",reason:bt},Fc())}finally{K.p=P,Z!==null&&de.types!==null&&(Z.types=de.types),G.T=Z}}function RQ(){}function K6(u,p,g,v){if(u.tag!==5)throw Error(a(476));var j=nC(u).queue;tC(u,j,p,ee,g===null?RQ:function(){return aC(u),g(v)})}function nC(u){var p=u.memoizedState;if(p!==null)return p;p={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:ee},next:null};var g={};return p.next={memoizedState:g,baseState:g,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:g},next:null},u.memoizedState=p,u=u.alternate,u!==null&&(u.memoizedState=p),p}function aC(u){var p=nC(u);p.next===null&&(p=u.alternate.memoizedState),Zx(u,p.next.queue,{},Fc())}function Z6(){return vi(g1)}function sC(){return ir().memoizedState}function rC(){return ir().memoizedState}function IQ(u){for(var p=u.return;p!==null;){switch(p.tag){case 24:case 3:var g=Fc();u=In(g);var v=ra(p,u,g);v!==null&&(oc(v,p,g),Qa(v,p,g)),p={cache:dp()},u.payload=p;return}p=p.return}}function MQ(u,p,g){var v=Fc();g={lane:v,revertLane:0,gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null},Nv(u)?oC(p,g):(g=wf(u,p,g,v),g!==null&&(oc(g,u,v),cC(g,p,v)))}function iC(u,p,g){var v=Fc();Zx(u,p,g,v)}function Zx(u,p,g,v){var j={lane:v,revertLane:0,gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null};if(Nv(u))oC(p,j);else{var P=u.alternate;if(u.lanes===0&&(P===null||P.lanes===0)&&(P=p.lastRenderedReducer,P!==null))try{var Z=p.lastRenderedState,de=P(Z,g);if(j.hasEagerState=!0,j.eagerState=de,nr(de,Z))return Vh(u,p,j,0),Ps===null&&Hh(),!1}catch{}finally{}if(g=wf(u,p,j,v),g!==null)return oc(g,u,v),cC(g,p,v),!0}return!1}function ew(u,p,g,v){if(v={lane:2,revertLane:Dw(),gesture:null,action:v,hasEagerState:!1,eagerState:null,next:null},Nv(u)){if(p)throw Error(a(479))}else p=wf(u,g,v,2),p!==null&&oc(p,u,2)}function Nv(u){var p=u.alternate;return u===Cn||p!==null&&p===Cn}function oC(u,p){nc=lo=!0;var g=u.pending;g===null?p.next=p:(p.next=g.next,g.next=p),u.pending=p}function cC(u,p,g){if((g&4194048)!==0){var v=p.lanes;v&=u.pendingLanes,g|=v,p.lanes=g,js(u,g)}}var e1={readContext:vi,use:mp,useCallback:vs,useContext:vs,useEffect:vs,useImperativeHandle:vs,useLayoutEffect:vs,useInsertionEffect:vs,useMemo:vs,useReducer:vs,useRef:vs,useState:vs,useDebugValue:vs,useDeferredValue:vs,useTransition:vs,useSyncExternalStore:vs,useId:vs,useHostTransitionStatus:vs,useFormState:vs,useActionState:vs,useOptimistic:vs,useMemoCache:vs,useCacheRefresh:vs};e1.useEffectEvent=vs;var lC={readContext:vi,use:mp,useCallback:function(u,p){return ni().memoizedState=[u,p===void 0?null:p],u},useContext:vi,useEffect:GE,useImperativeHandle:function(u,p,g){g=g!=null?g.concat([u]):null,hp(4194308,4,XE.bind(null,p,u),g)},useLayoutEffect:function(u,p){return hp(4194308,4,u,p)},useInsertionEffect:function(u,p){hp(4,2,u,p)},useMemo:function(u,p){var g=ni();p=p===void 0?null:p;var v=u();if(eo){xn(!0);try{u()}finally{xn(!1)}}return g.memoizedState=[v,p],v},useReducer:function(u,p,g){var v=ni();if(g!==void 0){var j=g(p);if(eo){xn(!0);try{g(p)}finally{xn(!1)}}}else j=p;return v.memoizedState=v.baseState=j,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:j},v.queue=u,u=u.dispatch=MQ.bind(null,Cn,u),[v.memoizedState,u]},useRef:function(u){var p=ni();return u={current:u},p.memoizedState=u},useState:function(u){u=ed(u);var p=u.queue,g=iC.bind(null,Cn,p);return p.dispatch=g,[u.memoizedState,g]},useDebugValue:X6,useDeferredValue:function(u,p){var g=ni();return Q6(g,u,p)},useTransition:function(){var u=ed(!1);return u=tC.bind(null,Cn,u.queue,!0,!1),ni().memoizedState=u,[!1,u]},useSyncExternalStore:function(u,p,g){var v=Cn,j=ni();if(Ta){if(g===void 0)throw Error(a(407));g=g()}else{if(g=p(),Ps===null)throw Error(a(349));(Ca&127)!==0||tu(v,p,g)}j.memoizedState=g;var P={value:g,getSnapshot:p};return j.queue=P,GE(Xx.bind(null,v,P,u),[u]),v.flags|=2048,fm(9,{destroy:void 0},Yx.bind(null,v,P,g,p),null),g},useId:function(){var u=ni(),p=Ps.identifierPrefix;if(Ta){var g=ec,v=Zo;g=(v&~(1<<32-bn(v)-1)).toString(32)+g,p="_"+p+"R_"+g,g=Pr++,0<g&&(p+="H"+g.toString(32)),p+="_"}else g=Df++,p="_"+p+"r_"+g.toString(32)+"_";return u.memoizedState=p},useHostTransitionStatus:Z6,useFormState:ul,useActionState:ul,useOptimistic:function(u){var p=ni();p.memoizedState=p.baseState=u;var g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return p.queue=g,p=ew.bind(null,Cn,!0,g),g.dispatch=p,[u,p]},useMemoCache:pm,useCacheRefresh:function(){return ni().memoizedState=IQ.bind(null,Cn)},useEffectEvent:function(u){var p=ni(),g={impl:u};return p.memoizedState=g,function(){if((Za&2)!==0)throw Error(a(440));return g.impl.apply(void 0,arguments)}}},tw={readContext:vi,use:mp,useCallback:KE,useContext:vi,useEffect:Y6,useImperativeHandle:QE,useInsertionEffect:WE,useLayoutEffect:YE,useMemo:ZE,useReducer:Mf,useRef:Tv,useState:function(){return Mf(ll)},useDebugValue:X6,useDeferredValue:function(u,p){var g=ir();return eC(g,Sn.memoizedState,u,p)},useTransition:function(){var u=Mf(ll)[0],p=ir().memoizedState;return[typeof u=="boolean"?u:Zu(u),p]},useSyncExternalStore:Of,useId:sC,useHostTransitionStatus:Z6,useFormState:nu,useActionState:nu,useOptimistic:function(u,p){var g=ir();return bv(g,Sn,u,p)},useMemoCache:pm,useCacheRefresh:rC};tw.useEffectEvent=JE;var uC={readContext:vi,use:mp,useCallback:KE,useContext:vi,useEffect:Y6,useImperativeHandle:QE,useInsertionEffect:WE,useLayoutEffect:YE,useMemo:ZE,useReducer:Lf,useRef:Tv,useState:function(){return Lf(ll)},useDebugValue:X6,useDeferredValue:function(u,p){var g=ir();return Sn===null?Q6(g,u,p):eC(g,Sn.memoizedState,u,p)},useTransition:function(){var u=Lf(ll)[0],p=ir().memoizedState;return[typeof u=="boolean"?u:Zu(u),p]},useSyncExternalStore:Of,useId:sC,useHostTransitionStatus:Z6,useFormState:Uf,useActionState:Uf,useOptimistic:function(u,p){var g=ir();return Sn!==null?bv(g,Sn,u,p):(g.baseState=u,[u,g.queue.dispatch])},useMemoCache:pm,useCacheRefresh:rC};uC.useEffectEvent=JE;function nw(u,p,g,v){p=u.memoizedState,g=g(v,p),g=g==null?p:h({},p,g),u.memoizedState=g,u.lanes===0&&(u.updateQueue.baseState=g)}var aw={enqueueSetState:function(u,p,g){u=u._reactInternals;var v=Fc(),j=In(v);j.payload=p,g!=null&&(j.callback=g),p=ra(u,j,v),p!==null&&(oc(p,u,v),Qa(p,u,v))},enqueueReplaceState:function(u,p,g){u=u._reactInternals;var v=Fc(),j=In(v);j.tag=1,j.payload=p,g!=null&&(j.callback=g),p=ra(u,j,v),p!==null&&(oc(p,u,v),Qa(p,u,v))},enqueueForceUpdate:function(u,p){u=u._reactInternals;var g=Fc(),v=In(g);v.tag=2,p!=null&&(v.callback=p),p=ra(u,v,g),p!==null&&(oc(p,u,g),Qa(p,u,g))}};function dC(u,p,g,v,j,P,Z){return u=u.stateNode,typeof u.shouldComponentUpdate=="function"?u.shouldComponentUpdate(v,P,Z):p.prototype&&p.prototype.isPureReactComponent?!Ki(g,v)||!Ki(j,P):!0}function mC(u,p,g,v){u=p.state,typeof p.componentWillReceiveProps=="function"&&p.componentWillReceiveProps(g,v),typeof p.UNSAFE_componentWillReceiveProps=="function"&&p.UNSAFE_componentWillReceiveProps(g,v),p.state!==u&&aw.enqueueReplaceState(p,p.state,null)}function Qh(u,p){var g=p;if("ref"in p){g={};for(var v in p)v!=="ref"&&(g[v]=p[v])}if(u=u.defaultProps){g===p&&(g=h({},g));for(var j in u)g[j]===void 0&&(g[j]=u[j])}return g}function pC(u){Uh(u)}function hC(u){console.error(u)}function fC(u){Uh(u)}function kv(u,p){try{var g=u.onUncaughtError;g(p.value,{componentStack:p.stack})}catch(v){setTimeout(function(){throw v})}}function gC(u,p,g){try{var v=u.onCaughtError;v(g.value,{componentStack:g.stack,errorBoundary:p.tag===1?p.stateNode:null})}catch(j){setTimeout(function(){throw j})}}function sw(u,p,g){return g=In(g),g.tag=3,g.payload={element:null},g.callback=function(){kv(u,p)},g}function xC(u){return u=In(u),u.tag=3,u}function bC(u,p,g,v){var j=g.type.getDerivedStateFromError;if(typeof j=="function"){var P=v.value;u.payload=function(){return j(P)},u.callback=function(){gC(p,g,v)}
vendor: 14,212 bytes, line 49
49}var Z=g.stateNode;Z!==null&&typeof Z.componentDidCatch=="function"&&(u.callback=function(){gC(p,g,v),typeof j!="function"&&(vp===null?vp=new Set([this]):vp.add(this));var de=v.stack;this.componentDidCatch(v.value,{componentStack:de!==null?de:""})})}function LQ(u,p,g,v,j){if(g.flags|=32768,v!==null&&typeof v=="object"&&typeof v.then=="function"){if(p=g.alternate,p!==null&&Yu(p,g,j,!0),g=Ys.current,g!==null){switch(g.tag){case 31:case 13:return Ma===null?Lv():g.alternate===null&&Dr===0&&(Dr=3),g.flags&=-257,g.flags|=65536,g.lanes=j,v===Ue?g.flags|=16384:(p=g.updateQueue,p===null?g.updateQueue=new Set([v]):p.add(v),Sw(u,v,j)),!1;case 22:return g.flags|=65536,v===Ue?g.flags|=16384:(p=g.updateQueue,p===null?(p={transitions:null,markerInstances:null,retryQueue:new Set([v])},g.updateQueue=p):(g=p.retryQueue,g===null?p.retryQueue=new Set([v]):g.add(v)),Sw(u,v,j)),!1}throw Error(a(435,g.tag))}return Sw(u,v,j),Lv(),!1}if(Ta)return p=Ys.current,p!==null?((p.flags&65536)===0&&(p.flags|=256),p.flags|=65536,p.lanes=j,v!==Lc&&(u=Error(a(422),{cause:v}),lp(Xo(u,g)))):(v!==Lc&&(p=Error(a(423),{cause:v}),lp(Xo(p,g))),u=u.current.alternate,u.flags|=65536,j&=-j,u.lanes|=j,v=Xo(v,g),j=sw(u.stateNode,v,j),Vr(u,j),Dr!==4&&(Dr=2)),!1;var P=Error(a(520),{cause:v});if(P=Xo(P,g),c1===null?c1=[P]:c1.push(P),Dr!==4&&(Dr=2),p===null)return!0;v=Xo(v,g),g=p;do{switch(g.tag){case 3:return g.flags|=65536,u=j&-j,g.lanes|=u,u=sw(g.stateNode,v,u),Vr(g,u),!1;case 1:if(p=g.type,P=g.stateNode,(g.flags&128)===0&&(typeof p.getDerivedStateFromError=="function"||P!==null&&typeof P.componentDidCatch=="function"&&(vp===null||!vp.has(P))))return g.flags|=65536,j&=-j,g.lanes|=j,j=xC(j),bC(j,u,g,v),Vr(g,j),!1}g=g.return}while(g!==null);return!1}var rw=Error(a(461)),ai=!1;function to(u,p,g,v){p.child=u===null?ta(p,null,g,v):_s(p,u.child,g,v)}function vC(u,p,g,v,j){g=g.render;var P=p.ref;if("ref"in v){var Z={};for(var de in v)de!=="ref"&&(Z[de]=v[de])}else Z=v;return Xu(p),v=Gx(u,p,g,Z,P,j),de=Jx(),u!==null&&!ai?(Wx(u,p,j),gm(u,p,j)):(Ta&&de&&Vx(p),p.flags|=1,to(u,p,v,j),p.child)}function yC(u,p,g,v,j){if(u===null){var P=g.type;return typeof P=="function"&&!Nf(P)&&P.defaultProps===void 0&&g.compare===null?(p.tag=15,p.type=P,wC(u,p,P,v,j)):(u=ip(g.type,null,v,p,p.mode,j),u.ref=p.ref,u.return=p,p.child=u)}if(P=u.child,!pw(u,j)){var Z=P.memoizedProps;if(g=g.compare,g=g!==null?g:Ki,g(Z,v)&&u.ref===p.ref)return gm(u,p,j)}return p.flags|=1,u=Yo(P,v),u.ref=p.ref,u.return=p,p.child=u}function wC(u,p,g,v,j){if(u!==null){var P=u.memoizedProps;if(Ki(P,v)&&u.ref===p.ref)if(ai=!1,p.pendingProps=v=P,pw(u,j))(u.flags&131072)!==0&&(ai=!0);else return p.lanes=u.lanes,gm(u,p,j)}return iw(u,p,g,v,j)}function TC(u,p,g,v){var j=v.children,P=u!==null?u.memoizedState:null;if(u===null&&p.stateNode===null&&(p.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),v.mode==="hidden"){if((p.flags&128)!==0){if(P=P!==null?P.baseLanes|g:g,u!==null){for(v=p.child=u.child,j=0;v!==null;)j=j|v.lanes|v.childLanes,v=v.sibling;v=j&~P}else v=0,p.child=null;return NC(u,p,P,g,v)}if((g&536870912)!==0)p.memoizedState={baseLanes:0,cachePool:null},u!==null&&ve(p,P!==null?P.cachePool:null),P!==null?Ws(p,P):za(),Sr(p);else return v=p.lanes=536870912,NC(u,p,P!==null?P.baseLanes|g:g,g,v)}else P!==null?(ve(p,P.cachePool),Ws(p,P),_r(),p.memoizedState=null):(u!==null&&ve(p,null),za(),_r());return to(u,p,j,g),p.child}function t1(u,p){return u!==null&&u.tag===22||p.stateNode!==null||(p.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.sibling}function NC(u,p,g,v,j){var P=ge();return P=P===null?null:{parent:gr._currentValue,pool:P},p.memoizedState={baseLanes:g,cachePool:P},u!==null&&ve(p,null),za(),Sr(p),u!==null&&Yu(u,p,v,!0),p.childLanes=j,null}function jv(u,p){return p=Ev({mode:p.mode,children:p.children},u.mode),p.ref=u.ref,u.child=p,p.return=u,p}function kC(u,p,g){return _s(p,u.child,null,g),u=jv(p,p.pendingProps),u.flags|=2,hs(p),p.memoizedState=null,u}function OQ(u,p,g){var v=p.pendingProps,j=(p.flags&128)!==0;if(p.flags&=-129,u===null){if(Ta){if(v.mode==="hidden")return u=jv(p,v),p.lanes=536870912,t1(null,u);if(Ka(p),(u=Ss)?(u=LS(u,sr),u=u!==null&&u.data==="&"?u:null,u!==null&&(p.memoizedState={dehydrated:u,treeContext:qu!==null?{id:Zo,overflow:ec}:null,retryLane:536870912,hydrationErrors:null},g=kf(u),g.return=p,p.child=g,xi=p,Ss=null)):u=null,u===null)throw Gu(p);return p.lanes=536870912,null}return jv(p,v)}var P=u.memoizedState;if(P!==null){var Z=P.dehydrated;if(Ka(p),j)if(p.flags&256)p.flags&=-257,p=kC(u,p,g);else if(p.memoizedState!==null)p.child=u.child,p.flags|=128,p=null;else throw Error(a(558));else if(ai||Yu(u,p,g,!1),j=(g&u.childLanes)!==0,ai||j){if(v=Ps,v!==null&&(Z=As(v,g),Z!==0&&Z!==P.retryLane))throw P.retryLane=Z,Kl(u,Z),oc(v,u,Z),rw;Lv(),p=kC(u,p,g)}else u=P.treeContext,Ss=dl(Z.nextSibling),xi=p,Ta=!0,Zi=null,sr=!1,u!==null&&fv(p,u),p=jv(p,v),p.flags|=4096;return p}return u=Yo(u.child,{mode:v.mode,children:v.children}),u.ref=p.ref,p.child=u,u.return=p,u}function Av(u,p){var g=p.ref;if(g===null)u!==null&&u.ref!==null&&(p.flags|=4194816);else{if(typeof g!="function"&&typeof g!="object")throw Error(a(284));(u===null||u.ref!==g)&&(p.flags|=4194816)}}function iw(u,p,g,v,j){return Xu(p),g=Gx(u,p,g,v,void 0,j),v=Jx(),u!==null&&!ai?(Wx(u,p,j),gm(u,p,j)):(Ta&&v&&Vx(p),p.flags|=1,to(u,p,g,j),p.child)}function jC(u,p,g,v,j,P){return Xu(p),p.updateQueue=null,g=eu(p,v,g,j),Rf(u),v=Jx(),u!==null&&!ai?(Wx(u,p,P),gm(u,p,P)):(Ta&&v&&Vx(p),p.flags|=1,to(u,p,g,P),p.child)}function AC(u,p,g,v,j){if(Xu(p),p.stateNode===null){var P=gi,Z=g.contextType;typeof Z=="object"&&Z!==null&&(P=vi(Z)),P=new g(v,P),p.memoizedState=P.state!==null&&P.state!==void 0?P.state:null,P.updater=aw,p.stateNode=P,P._reactInternals=p,P=p.stateNode,P.props=v,P.state=p.memoizedState,P.refs={},Ft(p),Z=g.contextType,P.context=typeof Z=="object"&&Z!==null?vi(Z):gi,P.state=p.memoizedState,Z=g.getDerivedStateFromProps,typeof Z=="function"&&(nw(p,g,Z,v),P.state=p.memoizedState),typeof g.getDerivedStateFromProps=="function"||typeof P.getSnapshotBeforeUpdate=="function"||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(Z=P.state,typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount(),Z!==P.state&&aw.enqueueReplaceState(P,P.state,null),Er(p,v,P,j),bs(),P.state=p.memoizedState),typeof P.componentDidMount=="function"&&(p.flags|=4194308),v=!0}else if(u===null){P=p.stateNode;var de=p.memoizedProps,De=Qh(g,de);P.props=De;var Ze=P.context,mt=g.contextType;Z=gi,typeof mt=="object"&&mt!==null&&(Z=vi(mt));var bt=g.getDerivedStateFromProps;mt=typeof bt=="function"||typeof P.getSnapshotBeforeUpdate=="function",de=p.pendingProps!==de,mt||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(de||Ze!==Z)&&mC(p,P,v,Z),tn=!1;var et=p.memoizedState;P.state=et,Er(p,v,P,j),bs(),Ze=p.memoizedState,de||et!==Ze||tn?(typeof bt=="function"&&(nw(p,g,bt,v),Ze=p.memoizedState),(De=tn||dC(p,g,De,v,et,Ze,Z))?(mt||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount()),typeof P.componentDidMount=="function"&&(p.flags|=4194308)):(typeof P.componentDidMount=="function"&&(p.flags|=4194308),p.memoizedProps=v,p.memoizedState=Ze),P.props=v,P.state=Ze,P.context=Z,v=De):(typeof P.componentDidMount=="function"&&(p.flags|=4194308),v=!1)}else{P=p.stateNode,Js(u,p),Z=p.memoizedProps,mt=Qh(g,Z),P.props=mt,bt=p.pendingProps,et=P.context,Ze=g.contextType,De=gi,typeof Ze=="object"&&Ze!==null&&(De=vi(Ze)),de=g.getDerivedStateFromProps,(Ze=typeof de=="function"||typeof P.getSnapshotBeforeUpdate=="function")||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(Z!==bt||et!==De)&&mC(p,P,v,De),tn=!1,et=p.memoizedState,P.state=et,Er(p,v,P,j),bs();var st=p.memoizedState;Z!==bt||et!==st||tn||u!==null&&u.dependencies!==null&&Sf(u.dependencies)?(typeof de=="function"&&(nw(p,g,de,v),st=p.memoizedState),(mt=tn||dC(p,g,mt,v,et,st,De)||u!==null&&u.dependencies!==null&&Sf(u.dependencies))?(Ze||typeof P.UNSAFE_componentWillUpdate!="function"&&typeof P.componentWillUpdate!="function"||(typeof P.componentWillUpdate=="function"&&P.componentWillUpdate(v,st,De),typeof P.UNSAFE_componentWillUpdate=="function"&&P.UNSAFE_componentWillUpdate(v,st,De)),typeof P.componentDidUpdate=="function"&&(p.flags|=4),typeof P.getSnapshotBeforeUpdate=="function"&&(p.flags|=1024)):(typeof P.componentDidUpdate!="function"||Z===u.memoizedProps&&et===u.memoizedState||(p.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||Z===u.memoizedProps&&et===u.memoizedState||(p.flags|=1024),p.memoizedProps=v,p.memoizedState=st),P.props=v,P.state=st,P.context=De,v=mt):(typeof P.componentDidUpdate!="function"||Z===u.memoizedProps&&et===u.memoizedState||(p.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||Z===u.memoizedProps&&et===u.memoizedState||(p.flags|=1024),v=!1)}return P=v,Av(u,p),v=(p.flags&128)!==0,P||v?(P=p.stateNode,g=v&&typeof g.getDerivedStateFromError!="function"?null:P.render(),p.flags|=1,u!==null&&v?(p.child=_s(p,u.child,null,j),p.child=_s(p,null,g,j)):to(u,p,g,j),p.memoizedState=P.state,u=p.child):u=gm(u,p,j),u}function EC(u,p,g,v){return dm(),p.flags|=256,to(u,p,g,v),p.child}var ow={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function cw(u){return{baseLanes:u,cachePool:ke()}}function lw(u,p,g){return u=u!==null?u.childLanes&~g:0,p&&(u|=Bc),u}function CC(u,p,g){var v=p.pendingProps,j=!1,P=(p.flags&128)!==0,Z;if((Z=P)||(Z=u!==null&&u.memoizedState===null?!1:(Da.current&2)!==0),Z&&(j=!0,p.flags&=-129),Z=(p.flags&32)!==0,p.flags&=-33,u===null){if(Ta){if(j?xr(p):_r(),(u=Ss)?(u=LS(u,sr),u=u!==null&&u.data!=="&"?u:null,u!==null&&(p.memoizedState={dehydrated:u,treeContext:qu!==null?{id:Zo,overflow:ec}:null,retryLane:536870912,hydrationErrors:null},g=kf(u),g.return=p,p.child=g,xi=p,Ss=null)):u=null,u===null)throw Gu(p);return qw(u)?p.lanes=32:p.lanes=536870912,null}var de=v.children;return v=v.fallback,j?(_r(),j=p.mode,de=Ev({mode:"hidden",children:de},j),v=$u(v,j,g,null),de.return=p,v.return=p,de.sibling=v,p.child=de,v=p.child,v.memoizedState=cw(g),v.childLanes=lw(u,Z,g),p.memoizedState=ow,t1(null,v)):(xr(p),uw(p,de))}var De=u.memoizedState;if(De!==null&&(de=De.dehydrated,de!==null)){if(P)p.flags&256?(xr(p),p.flags&=-257,p=dw(u,p,g)):p.memoizedState!==null?(_r(),p.child=u.child,p.flags|=128,p=null):(_r(),de=v.fallback,j=p.mode,v=Ev({mode:"visible",children:v.children},j),de=$u(de,j,g,null),de.flags|=2,v.return=p,de.return=p,v.sibling=de,p.child=v,_s(p,u.child,null,g),v=p.child,v.memoizedState=cw(g),v.childLanes=lw(u,Z,g),p.memoizedState=ow,p=t1(null,v));else if(xr(p),qw(de)){if(Z=de.nextSibling&&de.nextSibling.dataset,Z)var Ze=Z.dgst;Z=Ze,v=Error(a(419)),v.stack="",v.digest=Z,lp({value:v,source:null,stack:null}),p=dw(u,p,g)}else if(ai||Yu(u,p,g,!1),Z=(g&u.childLanes)!==0,ai||Z){if(Z=Ps,Z!==null&&(v=As(Z,g),v!==0&&v!==De.retryLane))throw De.retryLane=v,Kl(u,v),oc(Z,u,v),rw;$w(de)||Lv(),p=dw(u,p,g)}else $w(de)?(p.flags|=192,p.child=u.child,p=null):(u=De.treeContext,Ss=dl(de.nextSibling),xi=p,Ta=!0,Zi=null,sr=!1,u!==null&&fv(p,u),p=uw(p,v.children),p.flags|=4096);return p}return j?(_r(),de=v.fallback,j=p.mode,De=u.child,Ze=De.sibling,v=Yo(De,{mode:"hidden",children:v.children}),v.subtreeFlags=De.subtreeFlags&65011712,Ze!==null?de=Yo(Ze,de):(de=$u(de,j,g,null),de.flags|=2),de.return=p,v.return=p,v.sibling=de,p.child=v,t1(null,v),v=p.child,de=u.child.memoizedState,de===null?de=cw(g):(j=de.cachePool,j!==null?(De=gr._currentValue,j=j.parent!==De?{parent:De,pool:De}:j):j=ke(),de={baseLanes:de.baseLanes|g,cachePool:j}),v.memoizedState=de,v.childLanes=lw(u,Z,g),p.memoizedState=ow,t1(u.child,v)):(xr(p),g=u.child,u=g.sibling,g=Yo(g,{mode:"visible",children:v.children}),g.return=p,g.sibling=null,u!==null&&(Z=p.deletions,Z===null?(p.deletions=[u],p.flags|=16):Z.push(u)),p.child=g,p.memoizedState=null,g)}function uw(u,p){return p=Ev({mode:"visible",children:p},u.mode),p.return=u,u.child=p}function Ev(u,p){return u=Mi(22,u,null,p),u.lanes=0,u}function dw(u,p,g){return _s(p,u.child,null,g),u=uw(p,p.pendingProps.children),u.flags|=2,p.memoizedState=null,u}function SC(u,p,g){u.lanes|=p;var v=u.alternate;v!==null&&(v.lanes|=p),up(u.return,p,g)}function mw(u,p,g,v,j,P){var Z=u.memoizedState;Z===null?u.memoizedState={isBackwards:p,rendering:null,renderingStartTime:0,last:v,tail:g,tailMode:j,treeForkCount:P}:(Z.isBackwards=p,Z.rendering=null,Z.renderingStartTime=0,Z.last=v,Z.tail=g,Z.tailMode=j,Z.treeForkCount=P)}function _C(u,p,g){var v=p.pendingProps,j=v.revealOrder,P=v.tail;v=v.children;var Z=Da.current,de=(Z&2)!==0;if(de?(Z=Z&1|2,p.flags|=128):Z&=1,H(Da,Z),to(u,p,v,g),v=Ta?Gh:0,!de&&u!==null&&(u.flags&128)!==0)e:for(u=p.child;u!==null;){if(u.tag===13)u.memoizedState!==null&&SC(u,g,p);else if(u.tag===19)SC(u,g,p);else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===p)break e;for(;u.sibling===null;){if(u.return===null||u.return===p)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}switch(j){case"forwards":for(g=p.child,j=null;g!==null;)u=g.alternate,u!==null&&Oi(u)===null&&(j=g),g=g.sibling;g=j,g===null?(j=p.child,p.child=null):(j=g.sibling,g.sibling=null),mw(p,!1,j,g,P,v);break;case"backwards":case"unstable_legacy-backwards":for(g=null,j=p.child,p.child=null;j!==null;){if(u=j.alternate,u!==null&&Oi(u)===null){p.child=j;break}u=j.sibling,j.sibling=g,g=j,j=u}mw(p,!0,g,null,P,v);break;case"together":mw(p,!1,null,null,void 0,v);break;default:p.memoizedState=null}return p.child}function gm(u,p,g){if(u!==null&&(p.dependencies=u.dependencies),bp|=p.lanes,(g&p.childLanes)===0)if(u!==null){if(Yu(u,p,g,!1),(g&p.childLanes)===0)return null}else return null;if(u!==null&&p.child!==u.child)throw Error(a(153));if(p.child!==null){for(u=p.child,g=Yo(u,u.pendingProps),p.child=g,g.return=p;u.sibling!==null;)u=u.sibling,g=g.sibling=Yo(u,u.pendingProps),g.return=p;g.sibling=null}return p.child}
vendor: 3,615 bytes, line 49
49function pw(u,p){return(u.lanes&p)!==0?!0:(u=u.dependencies,!!(u!==null&&Sf(u)))}function BQ(u,p,g){switch(p.tag){case 3:Ae(p,p.stateNode.containerInfo),Wu(p,gr,u.memoizedState.cache),dm();break;case 27:case 5:ae(p);break;case 4:Ae(p,p.stateNode.containerInfo);break;case 10:Wu(p,p.type,p.memoizedProps.value);break;case 31:if(p.memoizedState!==null)return p.flags|=128,Ka(p),null;break;case 13:var v=p.memoizedState;if(v!==null)return v.dehydrated!==null?(xr(p),p.flags|=128,null):(g&p.child.childLanes)!==0?CC(u,p,g):(xr(p),u=gm(u,p,g),u!==null?u.sibling:null);xr(p);break;case 19:var j=(u.flags&128)!==0;if(v=(g&p.childLanes)!==0,v||(Yu(u,p,g,!1),v=(g&p.childLanes)!==0),j){if(v)return _C(u,p,g);p.flags|=128}if(j=p.memoizedState,j!==null&&(j.rendering=null,j.tail=null,j.lastEffect=null),H(Da,Da.current),v)break;return null;case 22:return p.lanes=0,TC(u,p,g,p.pendingProps);case 24:Wu(p,gr,u.memoizedState.cache)}return gm(u,p,g)}function PC(u,p,g){if(u!==null)if(u.memoizedProps!==p.pendingProps)ai=!0;else{if(!pw(u,g)&&(p.flags&128)===0)return ai=!1,BQ(u,p,g);ai=(u.flags&131072)!==0}else ai=!1,Ta&&(p.flags&1048576)!==0&&hv(p,Gh,p.index);switch(p.lanes=0,p.tag){case 16:e:{var v=p.pendingProps;if(u=Je(p.elementType),p.type=u,typeof u=="function")Nf(u)?(v=Qh(u,v),p.tag=1,p=AC(null,p,u,v,g)):(p.tag=0,p=iw(null,p,u,v,g));else{if(u!=null){var j=u.$$typeof;if(j===D){p.tag=11,p=vC(null,p,u,v,g);break e}else if(j===L){p.tag=14,p=yC(null,p,u,v,g);break e}}throw p=J(u)||u,Error(a(306,p,""))}}return p;case 0:return iw(u,p,p.type,p.pendingProps,g);case 1:return v=p.type,j=Qh(v,p.pendingProps),AC(u,p,v,j,g);case 3:e:{if(Ae(p,p.stateNode.containerInfo),u===null)throw Error(a(387));v=p.pendingProps;var P=p.memoizedState;j=P.element,Js(u,p),Er(p,v,null,g);var Z=p.memoizedState;if(v=Z.cache,Wu(p,gr,v),v!==P.cache&&mm(p,[gr],g,!0),bs(),v=Z.element,P.isDehydrated)if(P={element:v,isDehydrated:!1,cache:Z.cache},p.updateQueue.baseState=P,p.memoizedState=P,p.flags&256){p=EC(u,p,v,g);break e}else if(v!==j){j=Xo(Error(a(424)),p),lp(j),p=EC(u,p,v,g);break e}else{switch(u=p.stateNode.containerInfo,u.nodeType){case 9:u=u.body;break;default:u=u.nodeName==="HTML"?u.ownerDocument.body:u}for(Ss=dl(u.firstChild),xi=p,Ta=!0,Zi=null,sr=!0,g=ta(p,null,v,g),p.child=g;g;)g.flags=g.flags&-3|4096,g=g.sibling}else{if(dm(),v===j){p=gm(u,p,g);break e}to(u,p,v,g)}p=p.child}return p;case 26:return Av(u,p),u===null?(g=VS(p.type,null,p.pendingProps,null))?p.memoizedState=g:Ta||(g=p.type,u=p.pendingProps,v=zv(me.current).createElement(g),v[ms]=p,v[$s]=u,no(v,g,u),fr(v),p.stateNode=v):p.memoizedState=VS(p.type,u.memoizedProps,p.pendingProps,u.memoizedState),null;case 27:return ae(p),u===null&&Ta&&(v=p.stateNode=FS(p.type,p.pendingProps,me.current),xi=p,sr=!0,j=Ss,Np(p.type)?(Gw=j,Ss=dl(v.firstChild)):Ss=j),to(u,p,p.pendingProps.children,g),Av(u,p),u===null&&(p.flags|=4194304),p.child;case 5:return u===null&&Ta&&((j=v=Ss)&&(v=hK(v,p.type,p.pendingProps,sr),v!==null?(p.stateNode=v,xi=p,Ss=dl(v.firstChild),sr=!1,j=!0):j=!1),j||Gu(p)),ae(p),j=p.type,P=p.pendingProps,Z=u!==null?u.memoizedProps:null,v=P.children,Hw(j,P)?v=null:Z!==null&&Hw(j,Z)&&(p.flags|=32),p.memoizedState!==null&&(j=Gx(u,p,W6,null,null,g),g1._currentValue=j),Av(u,p),to(u,p,v,g),p.child;case 6:return u===null&&Ta&&((u=g=Ss)&&(g=fK(g,p.pendingProps,sr),g!==null?(p.stateNode=g,xi=p,Ss=null,u=!0):u=!1),u||Gu(p)),null;case 13:return CC(u,p,g);case 4:return Ae(p,p.stateNode.containerInfo),v=p.pendingProps,u===null?p.child=_s(p,null,v,g):to(u,p,v,g),p.child;case 11:return vC(u,p,p.type,p.pendingProps,g);case 7:return to(u,p,p.pendingProps,g),p.child;
vendor: 9,512 bytes, line 49
49case 8:return to(u,p,p.pendingProps.children,g),p.child;case 12:return to(u,p,p.pendingProps.children,g),p.child;case 10:return v=p.pendingProps,Wu(p,p.type,v.value),to(u,p,v.children,g),p.child;case 9:return j=p.type._context,v=p.pendingProps.children,Xu(p),j=vi(j),v=v(j),p.flags|=1,to(u,p,v,g),p.child;case 14:return yC(u,p,p.type,p.pendingProps,g);case 15:return wC(u,p,p.type,p.pendingProps,g);case 19:return _C(u,p,g);case 31:return OQ(u,p,g);case 22:return TC(u,p,g,p.pendingProps);case 24:return Xu(p),v=vi(gr),u===null?(j=ge(),j===null&&(j=Ps,P=dp(),j.pooledCache=P,P.refCount++,P!==null&&(j.pooledCacheLanes|=g),j=P),p.memoizedState={parent:v,cache:j},Ft(p),Wu(p,gr,j)):((u.lanes&g)!==0&&(Js(u,p),Er(p,null,null,g),bs()),j=u.memoizedState,P=p.memoizedState,j.parent!==v?(j={parent:v,cache:v},p.memoizedState=j,p.lanes===0&&(p.memoizedState=p.updateQueue.baseState=j),Wu(p,gr,v)):(v=P.cache,Wu(p,gr,v),v!==j.cache&&mm(p,[gr],g,!0))),to(u,p,p.pendingProps.children,g),p.child;case 29:throw p.pendingProps}throw Error(a(156,p.tag))}function xm(u){u.flags|=4}function hw(u,p,g,v,j){if((p=(u.mode&32)!==0)&&(p=!1),p){if(u.flags|=16777216,(j&335544128)===j)if(u.stateNode.complete)u.flags|=8192;else if(sS())u.flags|=8192;else throw ot=Ue,Xe}else u.flags&=-16777217}function DC(u,p){if(p.type!=="stylesheet"||(p.state.loading&4)!==0)u.flags&=-16777217;else if(u.flags|=16777216,!JS(p))if(sS())u.flags|=8192;else throw ot=Ue,Xe}function Cv(u,p){p!==null&&(u.flags|=4),u.flags&16384&&(p=u.tag!==22?Os():536870912,u.lanes|=p,$f|=p)}function n1(u,p){if(!Ta)switch(u.tailMode){case"hidden":p=u.tail;for(var g=null;p!==null;)p.alternate!==null&&(g=p),p=p.sibling;g===null?u.tail=null:g.sibling=null;break;case"collapsed":g=u.tail;for(var v=null;g!==null;)g.alternate!==null&&(v=g),g=g.sibling;v===null?p||u.tail===null?u.tail=null:u.tail.sibling=null:v.sibling=null}}function Xs(u){var p=u.alternate!==null&&u.alternate.child===u.child,g=0,v=0;if(p)for(var j=u.child;j!==null;)g|=j.lanes|j.childLanes,v|=j.subtreeFlags&65011712,v|=j.flags&65011712,j.return=u,j=j.sibling;else for(j=u.child;j!==null;)g|=j.lanes|j.childLanes,v|=j.subtreeFlags,v|=j.flags,j.return=u,j=j.sibling;return u.subtreeFlags|=v,u.childLanes=g,p}function FQ(u,p,g){var v=p.pendingProps;switch(Ef(p),p.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xs(p),null;case 1:return Xs(p),null;case 3:return g=p.stateNode,v=null,u!==null&&(v=u.memoizedState.cache),p.memoizedState.cache!==v&&(p.flags|=2048),tc(gr),xe(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),(u===null||u.child===null)&&(bi(p)?xm(p):u===null||u.memoizedState.isDehydrated&&(p.flags&256)===0||(p.flags|=1024,$x())),Xs(p),null;case 26:var j=p.type,P=p.memoizedState;return u===null?(xm(p),P!==null?(Xs(p),DC(p,P)):(Xs(p),hw(p,j,null,v,g))):P?P!==u.memoizedState?(xm(p),Xs(p),DC(p,P)):(Xs(p),p.flags&=-16777217):(u=u.memoizedProps,u!==v&&xm(p),Xs(p),hw(p,j,u,v,g)),null;case 27:if(le(p),g=me.current,j=p.type,u!==null&&p.stateNode!=null)u.memoizedProps!==v&&xm(p);else{if(!v){if(p.stateNode===null)throw Error(a(166));return Xs(p),null}u=ne.current,bi(p)?zx(p):(u=FS(j,v,g),p.stateNode=u,xm(p))}return Xs(p),null;case 5:if(le(p),j=p.type,u!==null&&p.stateNode!=null)u.memoizedProps!==v&&xm(p);else{if(!v){if(p.stateNode===null)throw Error(a(166));return Xs(p),null}if(P=ne.current,bi(p))zx(p);else{var Z=zv(me.current);switch(P){case 1:P=Z.createElementNS("http://www.w3.org/2000/svg",j);break;case 2:P=Z.createElementNS("http://www.w3.org/1998/Math/MathML",j);break;default:switch(j){case"svg":P=Z.createElementNS("http://www.w3.org/2000/svg",j);break;case"math":P=Z.createElementNS("http://www.w3.org/1998/Math/MathML",j);break;case"script":P=Z.createElement("div"),P.innerHTML="<script><\/script>",P=P.removeChild(P.firstChild);break;case"select":P=typeof v.is=="string"?Z.createElement("select",{is:v.is}):Z.createElement("select"),v.multiple?P.multiple=!0:v.size&&(P.size=v.size);break;default:P=typeof v.is=="string"?Z.createElement(j,{is:v.is}):Z.createElement(j)}}P[ms]=p,P[$s]=v;e:for(Z=p.child;Z!==null;){if(Z.tag===5||Z.tag===6)P.appendChild(Z.stateNode);else if(Z.tag!==4&&Z.tag!==27&&Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===p)break e;for(;Z.sibling===null;){if(Z.return===null||Z.return===p)break e;Z=Z.return}Z.sibling.return=Z.return,Z=Z.sibling}p.stateNode=P;e:switch(no(P,j,v),j){case"button":case"input":case"select":case"textarea":v=!!v.autoFocus;break e;case"img":v=!0;break e;default:v=!1}v&&xm(p)}}return Xs(p),hw(p,p.type,u===null?null:u.memoizedProps,p.pendingProps,g),null;case 6:if(u&&p.stateNode!=null)u.memoizedProps!==v&&xm(p);else{if(typeof v!="string"&&p.stateNode===null)throw Error(a(166));if(u=me.current,bi(p)){if(u=p.stateNode,g=p.memoizedProps,v=null,j=xi,j!==null)switch(j.tag){case 27:case 5:v=j.memoizedProps}u[ms]=p,u=!!(u.nodeValue===g||v!==null&&v.suppressHydrationWarning===!0||CS(u.nodeValue,g)),u||Gu(p,!0)}else u=zv(u).createTextNode(v),u[ms]=p,p.stateNode=u}return Xs(p),null;case 31:if(g=p.memoizedState,u===null||u.memoizedState!==null){if(v=bi(p),g!==null){if(u===null){if(!v)throw Error(a(318));if(u=p.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(a(557));u[ms]=p}else dm(),(p.flags&128)===0&&(p.memoizedState=null),p.flags|=4;Xs(p),u=!1}else g=$x(),u!==null&&u.memoizedState!==null&&(u.memoizedState.hydrationErrors=g),u=!0;if(!u)return p.flags&256?(hs(p),p):(hs(p),null);if((p.flags&128)!==0)throw Error(a(558))}return Xs(p),null;case 13:if(v=p.memoizedState,u===null||u.memoizedState!==null&&u.memoizedState.dehydrated!==null){if(j=bi(p),v!==null&&v.dehydrated!==null){if(u===null){if(!j)throw Error(a(318));if(j=p.memoizedState,j=j!==null?j.dehydrated:null,!j)throw Error(a(317));j[ms]=p}else dm(),(p.flags&128)===0&&(p.memoizedState=null),p.flags|=4;Xs(p),j=!1}else j=$x(),u!==null&&u.memoizedState!==null&&(u.memoizedState.hydrationErrors=j),j=!0;if(!j)return p.flags&256?(hs(p),p):(hs(p),null)}return hs(p),(p.flags&128)!==0?(p.lanes=g,p):(g=v!==null,u=u!==null&&u.memoizedState!==null,g&&(v=p.child,j=null,v.alternate!==null&&v.alternate.memoizedState!==null&&v.alternate.memoizedState.cachePool!==null&&(j=v.alternate.memoizedState.cachePool.pool),P=null,v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(P=v.memoizedState.cachePool.pool),P!==j&&(v.flags|=2048)),g!==u&&g&&(p.child.flags|=8192),Cv(p,p.updateQueue),Xs(p),null);case 4:return xe(),u===null&&Lw(p.stateNode.containerInfo),Xs(p),null;case 10:return tc(p.type),Xs(p),null;case 19:if(z(Da),v=p.memoizedState,v===null)return Xs(p),null;if(j=(p.flags&128)!==0,P=v.rendering,P===null)if(j)n1(v,!1);else{if(Dr!==0||u!==null&&(u.flags&128)!==0)for(u=p.child;u!==null;){if(P=Oi(u),P!==null){for(p.flags|=128,n1(v,!1),u=P.updateQueue,p.updateQueue=u,Cv(p,u),p.subtreeFlags=0,u=g,g=p.child;g!==null;)$h(g,u),g=g.sibling;return H(Da,Da.current&1|2),Ta&&Do(p,v.treeForkCount),p.child}u=u.sibling}v.tail!==null&&wn()>Rv&&(p.flags|=128,j=!0,n1(v,!1),p.lanes=4194304)}else{if(!j)if(u=Oi(P),u!==null){if(p.flags|=128,j=!0,u=u.updateQueue,p.updateQueue=u,Cv(p,u),n1(v,!0),v.tail===null&&v.tailMode==="hidden"&&!P.alternate&&!Ta)return Xs(p),null}else 2*wn()-v.renderingStartTime>Rv&&g!==536870912&&(p.flags|=128,j=!0,n1(v,!1),p.lanes=4194304);v.isBackwards?(P.sibling=p.child,p.child=P):(u=v.last,u!==null?u.sibling=P:p.child=P,v.last=P)}return v.tail!==null?(u=v.tail,v.rendering=u,v.tail=u.sibling,v.renderingStartTime=wn(),u.sibling=null,g=Da.current,H(Da,j?g&1|2:g&1),Ta&&Do(p,v.treeForkCount),u):(Xs(p),null);case 22:case 23:return hs(p),zr(),v=p.memoizedState!==null,u!==null?u.memoizedState!==null!==v&&(p.flags|=8192):v&&(p.flags|=8192),v?(g&536870912)!==0&&(p.flags&128)===0&&(Xs(p),p.subtreeFlags&6&&(p.flags|=8192)):Xs(p),g=p.updateQueue,g!==null&&Cv(p,g.retryQueue),g=null,u!==null&&u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(g=u.memoizedState.cachePool.pool),v=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(v=p.memoizedState.cachePool.pool),v!==g&&(p.flags|=2048),u!==null&&z(ue),null;case 24:return g=null,u!==null&&(g=u.memoizedState.cache),p.memoizedState.cache!==g&&(p.flags|=2048),tc(gr),Xs(p),null;case 25:return null;case 30:return null}throw Error(a(156,p.tag))}function UQ(u,p){switch(Ef(p),p.tag){case 1:return u=p.flags,u&65536?(p.flags=u&-65537|128,p):null;case 3:return tc(gr),xe(),u=p.flags,(u&65536)!==0&&(u&128)===0?(p.flags=u&-65537|128,p):null;case 26:case 27:case 5:return le(p),null;case 31:if(p.memoizedState!==null){if(hs(p),p.alternate===null)throw Error(a(340));dm()}return u=p.flags,u&65536?(p.flags=u&-65537|128,p):null;case 13:if(hs(p),u=p.memoizedState,u!==null&&u.dehydrated!==null){if(p.alternate===null)throw Error(a(340));dm()}return u=p.flags,u&65536?(p.flags=u&-65537|128,p):null;case 19:return z(Da),null;case 4:return xe(),null;case 10:return tc(p.type),null;case 22:case 23:return hs(p),zr(),u!==null&&z(ue),u=p.flags,u&65536?(p.flags=u&-65537|128,p):null;case 24:return tc(gr),null;case 25:return null;default:return null}}function RC(u,p){switch(Ef(p),p.tag){case 3:tc(gr),xe();break;case 26:case 27:case 5:le(p);break;case 4:xe();break;case 31:p.memoizedState!==null&&hs(p);break;case 13:hs(p);break;case 19:z(Da);break;case 10:tc(p.type);break;case 22:case 23:hs(p),zr(),u!==null&&z(ue);break;case 24:tc(gr)}}function a1(u,p){try{var g=p.updateQueue,v=g!==null?g.lastEffect:null;if(v!==null){var j=v.next;g=j;do{if((g.tag&u)===u){v=void 0;var P=g.create,Z=g.inst;v=P(),Z.destroy=v}g=g.next}
vendor: 10,881 bytes, line 49
49while(g!==j)}}catch(de){gs(p,p.return,de)}}function gp(u,p,g){try{var v=p.updateQueue,j=v!==null?v.lastEffect:null;if(j!==null){var P=j.next;v=P;do{if((v.tag&u)===u){var Z=v.inst,de=Z.destroy;if(de!==void 0){Z.destroy=void 0,j=p;var De=g,Ze=de;try{Ze()}catch(mt){gs(j,De,mt)}}}v=v.next}while(v!==P)}}catch(mt){gs(p,p.return,mt)}}function IC(u){var p=u.updateQueue;if(p!==null){var g=u.stateNode;try{Cr(p,g)}catch(v){gs(u,u.return,v)}}}function MC(u,p,g){g.props=Qh(u.type,u.memoizedProps),g.state=u.memoizedState;try{g.componentWillUnmount()}catch(v){gs(u,p,v)}}function s1(u,p){try{var g=u.ref;if(g!==null){switch(u.tag){case 26:case 27:case 5:var v=u.stateNode;break;case 30:v=u.stateNode;break;default:v=u.stateNode}typeof g=="function"?u.refCleanup=g(v):g.current=v}}catch(j){gs(u,p,j)}}function td(u,p){var g=u.ref,v=u.refCleanup;if(g!==null)if(typeof v=="function")try{v()}catch(j){gs(u,p,j)}finally{u.refCleanup=null,u=u.alternate,u!=null&&(u.refCleanup=null)}else if(typeof g=="function")try{g(null)}catch(j){gs(u,p,j)}else g.current=null}function LC(u){var p=u.type,g=u.memoizedProps,v=u.stateNode;try{e:switch(p){case"button":case"input":case"select":case"textarea":g.autoFocus&&v.focus();break e;case"img":g.src?v.src=g.src:g.srcSet&&(v.srcset=g.srcSet)}}catch(j){gs(u,u.return,j)}}function fw(u,p,g){try{var v=u.stateNode;cK(v,u.type,g,p),v[$s]=p}catch(j){gs(u,u.return,j)}}function OC(u){return u.tag===5||u.tag===3||u.tag===26||u.tag===27&&Np(u.type)||u.tag===4}function gw(u){e:for(;;){for(;u.sibling===null;){if(u.return===null||OC(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.tag===27&&Np(u.type)||u.flags&2||u.child===null||u.tag===4)continue e;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function xw(u,p,g){var v=u.tag;if(v===5||v===6)u=u.stateNode,p?(g.nodeType===9?g.body:g.nodeName==="HTML"?g.ownerDocument.body:g).insertBefore(u,p):(p=g.nodeType===9?g.body:g.nodeName==="HTML"?g.ownerDocument.body:g,p.appendChild(u),g=g._reactRootContainer,g!=null||p.onclick!==null||(p.onclick=$o));else if(v!==4&&(v===27&&Np(u.type)&&(g=u.stateNode,p=null),u=u.child,u!==null))for(xw(u,p,g),u=u.sibling;u!==null;)xw(u,p,g),u=u.sibling}function Sv(u,p,g){var v=u.tag;if(v===5||v===6)u=u.stateNode,p?g.insertBefore(u,p):g.appendChild(u);else if(v!==4&&(v===27&&Np(u.type)&&(g=u.stateNode),u=u.child,u!==null))for(Sv(u,p,g),u=u.sibling;u!==null;)Sv(u,p,g),u=u.sibling}function BC(u){var p=u.stateNode,g=u.memoizedProps;try{for(var v=u.type,j=p.attributes;j.length;)p.removeAttributeNode(j[0]);no(p,v,g),p[ms]=u,p[$s]=g}catch(P){gs(u,u.return,P)}}var bm=!1,si=!1,bw=!1,FC=typeof WeakSet=="function"?WeakSet:Set,Bi=null;function HQ(u,p){if(u=u.containerInfo,Fw=Xv,u=rm(u),Ql(u)){if("selectionStart"in u)var g={start:u.selectionStart,end:u.selectionEnd};else e:{g=(g=u.ownerDocument)&&g.defaultView||window;var v=g.getSelection&&g.getSelection();if(v&&v.rangeCount!==0){g=v.anchorNode;var j=v.anchorOffset,P=v.focusNode;v=v.focusOffset;try{g.nodeType,P.nodeType}catch{g=null;break e}var Z=0,de=-1,De=-1,Ze=0,mt=0,bt=u,et=null;t:for(;;){for(var st;bt!==g||j!==0&&bt.nodeType!==3||(de=Z+j),bt!==P||v!==0&&bt.nodeType!==3||(De=Z+v),bt.nodeType===3&&(Z+=bt.nodeValue.length),(st=bt.firstChild)!==null;)et=bt,bt=st;for(;;){if(bt===u)break t;if(et===g&&++Ze===j&&(de=Z),et===P&&++mt===v&&(De=Z),(st=bt.nextSibling)!==null)break;bt=et,et=bt.parentNode}bt=st}g=de===-1||De===-1?null:{start:de,end:De}}else g=null}g=g||{start:0,end:0}}else g=null;for(Uw={focusedElem:u,selectionRange:g},Xv=!1,Bi=p;Bi!==null;)if(p=Bi,u=p.child,(p.subtreeFlags&1028)!==0&&u!==null)u.return=p,Bi=u;else for(;Bi!==null;){switch(p=Bi,P=p.alternate,u=p.flags,p.tag){case 0:if((u&4)!==0&&(u=p.updateQueue,u=u!==null?u.events:null,u!==null))for(g=0;g<u.length;g++)j=u[g],j.ref.impl=j.nextImpl;break;case 11:case 15:break;case 1:if((u&1024)!==0&&P!==null){u=void 0,g=p,j=P.memoizedProps,P=P.memoizedState,v=g.stateNode;try{var mn=Qh(g.type,j);u=v.getSnapshotBeforeUpdate(mn,P),v.__reactInternalSnapshotBeforeUpdate=u}catch(Bn){gs(g,g.return,Bn)}}break;case 3:if((u&1024)!==0){if(u=p.stateNode.containerInfo,g=u.nodeType,g===9)zw(u);else if(g===1)switch(u.nodeName){case"HEAD":case"HTML":case"BODY":zw(u);break;default:u.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((u&1024)!==0)throw Error(a(163))}if(u=p.sibling,u!==null){u.return=p.return,Bi=u;break}Bi=p.return}}function UC(u,p,g){var v=g.flags;switch(g.tag){case 0:case 11:case 15:ym(u,g),v&4&&a1(5,g);break;case 1:if(ym(u,g),v&4)if(u=g.stateNode,p===null)try{u.componentDidMount()}catch(Z){gs(g,g.return,Z)}else{var j=Qh(g.type,p.memoizedProps);p=p.memoizedState;try{u.componentDidUpdate(j,p,u.__reactInternalSnapshotBeforeUpdate)}catch(Z){gs(g,g.return,Z)}}v&64&&IC(g),v&512&&s1(g,g.return);break;case 3:if(ym(u,g),v&64&&(u=g.updateQueue,u!==null)){if(p=null,g.child!==null)switch(g.child.tag){case 27:case 5:p=g.child.stateNode;break;case 1:p=g.child.stateNode}try{Cr(u,p)}catch(Z){gs(g,g.return,Z)}}break;case 27:p===null&&v&4&&BC(g);case 26:case 5:ym(u,g),p===null&&v&4&&LC(g),v&512&&s1(g,g.return);break;case 12:ym(u,g);break;case 31:ym(u,g),v&4&&zC(u,g);break;case 13:ym(u,g),v&4&&$C(u,g),v&64&&(u=g.memoizedState,u!==null&&(u=u.dehydrated,u!==null&&(g=XQ.bind(null,g),gK(u,g))));break;case 22:if(v=g.memoizedState!==null||bm,!v){p=p!==null&&p.memoizedState!==null||si,j=bm;var P=si;bm=v,(si=p)&&!P?wm(u,g,(g.subtreeFlags&8772)!==0):ym(u,g),bm=j,si=P}break;case 30:break;default:ym(u,g)}}function HC(u){var p=u.alternate;p!==null&&(u.alternate=null,HC(p)),u.child=null,u.deletions=null,u.sibling=null,u.tag===5&&(p=u.stateNode,p!==null&&Pu(p)),u.stateNode=null,u.return=null,u.dependencies=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.stateNode=null,u.updateQueue=null}var or=null,ac=!1;function vm(u,p,g){for(g=g.child;g!==null;)VC(u,p,g),g=g.sibling}function VC(u,p,g){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(jn,g)}catch{}switch(g.tag){case 26:si||td(g,p),vm(u,p,g),g.memoizedState?g.memoizedState.count--:g.stateNode&&(g=g.stateNode,g.parentNode.removeChild(g));break;case 27:si||td(g,p);var v=or,j=ac;Np(g.type)&&(or=g.stateNode,ac=!1),vm(u,p,g),p1(g.stateNode),or=v,ac=j;break;case 5:si||td(g,p);case 6:if(v=or,j=ac,or=null,vm(u,p,g),or=v,ac=j,or!==null)if(ac)try{(or.nodeType===9?or.body:or.nodeName==="HTML"?or.ownerDocument.body:or).removeChild(g.stateNode)}catch(P){gs(g,p,P)}else try{or.removeChild(g.stateNode)}catch(P){gs(g,p,P)}break;case 18:or!==null&&(ac?(u=or,IS(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,g.stateNode),Kf(u)):IS(or,g.stateNode));break;case 4:v=or,j=ac,or=g.stateNode.containerInfo,ac=!0,vm(u,p,g),or=v,ac=j;break;case 0:case 11:case 14:case 15:gp(2,g,p),si||gp(4,g,p),vm(u,p,g);break;case 1:si||(td(g,p),v=g.stateNode,typeof v.componentWillUnmount=="function"&&MC(g,p,v)),vm(u,p,g);break;case 21:vm(u,p,g);break;case 22:si=(v=si)||g.memoizedState!==null,vm(u,p,g),si=v;break;default:vm(u,p,g)}}function zC(u,p){if(p.memoizedState===null&&(u=p.alternate,u!==null&&(u=u.memoizedState,u!==null))){u=u.dehydrated;try{Kf(u)}catch(g){gs(p,p.return,g)}}}function $C(u,p){if(p.memoizedState===null&&(u=p.alternate,u!==null&&(u=u.memoizedState,u!==null&&(u=u.dehydrated,u!==null))))try{Kf(u)}catch(g){gs(p,p.return,g)}}function VQ(u){switch(u.tag){case 31:case 13:case 19:var p=u.stateNode;return p===null&&(p=u.stateNode=new FC),p;case 22:return u=u.stateNode,p=u._retryCache,p===null&&(p=u._retryCache=new FC),p;default:throw Error(a(435,u.tag))}}function _v(u,p){var g=VQ(u);p.forEach(function(v){if(!g.has(v)){g.add(v);var j=QQ.bind(null,u,v);v.then(j,j)}})}function sc(u,p){var g=p.deletions;if(g!==null)for(var v=0;v<g.length;v++){var j=g[v],P=u,Z=p,de=Z;e:for(;de!==null;){switch(de.tag){case 27:if(Np(de.type)){or=de.stateNode,ac=!1;break e}break;case 5:or=de.stateNode,ac=!1;break e;case 3:case 4:or=de.stateNode.containerInfo,ac=!0;break e}de=de.return}if(or===null)throw Error(a(160));VC(P,Z,j),or=null,ac=!1,P=j.alternate,P!==null&&(P.return=null),j.return=null}if(p.subtreeFlags&13886)for(p=p.child;p!==null;)qC(p,u),p=p.sibling}var su=null;function qC(u,p){var g=u.alternate,v=u.flags;switch(u.tag){case 0:case 11:case 14:case 15:sc(p,u),rc(u),v&4&&(gp(3,u,u.return),a1(3,u),gp(5,u,u.return));break;case 1:sc(p,u),rc(u),v&512&&(si||g===null||td(g,g.return)),v&64&&bm&&(u=u.updateQueue,u!==null&&(v=u.callbacks,v!==null&&(g=u.shared.hiddenCallbacks,u.shared.hiddenCallbacks=g===null?v:g.concat(v))));break;case 26:var j=su;if(sc(p,u),rc(u),v&512&&(si||g===null||td(g,g.return)),v&4){var P=g!==null?g.memoizedState:null;if(v=u.memoizedState,g===null)if(v===null)if(u.stateNode===null){e:{v=u.type,g=u.memoizedProps,j=j.ownerDocument||j;t:switch(v){case"title":P=j.getElementsByTagName("title")[0],(!P||P[Nc]||P[ms]||P.namespaceURI==="http://www.w3.org/2000/svg"||P.hasAttribute("itemprop"))&&(P=j.createElement(v),j.head.insertBefore(P,j.querySelector("head > title"))),no(P,v,g),P[ms]=u,fr(P),v=P;break e;case"link":var Z=qS("link","href",j).get(v+(g.href||""));if(Z){for(var de=0;de<Z.length;de++)if(P=Z[de],P.getAttribute("href")===(g.href==null||g.href===""?null:g.href)&&P.getAttribute("rel")===(g.rel==null?null:g.rel)&&P.getAttribute("title")===(g.title==null?null:g.title)&&P.getAttribute("crossorigin")===(g.crossOrigin==null?null:g.crossOrigin)){Z.splice(de,1);break t}}P=j.createElement(v),no(P,v,g),j.head.appendChild(P);break;case"meta":if(Z=qS("meta","content",j).get(v+(g.content||""))){for(de=0;de<Z.length;de++)if(P=Z[de],P.getAttribute("content")===(g.content==null?null:""+g.content)&&P.getAttribute("name")===(g.name==null?null:g.name)&&P.getAttribute("property")===(g.property==null?null:g.property)&&P.getAttribute("http-equiv")===(g.httpEquiv==null?null:g.httpEquiv)&&P.getAttribute("charset")===(g.charSet==null?null:g.charSet)){Z.splice(de,1);break t}}P=j.createElement(v),no(P,v,g),j.head.appendChild(P);break;default:throw Error(a(468,v))}P[ms]=u,fr(P),v=P}u.stateNode=v}else GS(j,u.type,u.stateNode);else u.stateNode=$S(j,v,u.memoizedProps);else P!==v?(P===null?g.stateNode!==null&&(g=g.stateNode,g.parentNode.removeChild(g)):P.count--,v===null?GS(j,u.type,u.stateNode):$S(j,v,u.memoizedProps)):v===null&&u.stateNode!==null&&fw(u,u.memoizedProps,g.memoizedProps)}break;case 27:sc(p,u),rc(u),v&512&&(si||g===null||td(g,g.return)),g!==null&&v&4&&fw(u,u.memoizedProps,g.memoizedProps);break;case 5:if(sc(p,u),rc(u),v&512&&(si||g===null||td(g,g.return)),u.flags&32){j=u.stateNode;try{Hl(j,"")}catch(mn){gs(u,u.return,mn)}}v&4&&u.stateNode!=null&&(j=u.memoizedProps,fw(u,j,g!==null?g.memoizedProps:j)),v&1024&&(bw=!0);break;case 6:if(sc(p,u),rc(u),v&4){if(u.stateNode===null)throw Error(a(162));v=u.memoizedProps,g=u.stateNode;try{g.nodeValue=v}catch(mn){gs(u,u.return,mn)}}break;
vendor: 12,057 bytes, line 49
49case 3:if(Gv=null,j=su,su=$v(p.containerInfo),sc(p,u),su=j,rc(u),v&4&&g!==null&&g.memoizedState.isDehydrated)try{Kf(p.containerInfo)}catch(mn){gs(u,u.return,mn)}bw&&(bw=!1,GC(u));break;case 4:v=su,su=$v(u.stateNode.containerInfo),sc(p,u),rc(u),su=v;break;case 12:sc(p,u),rc(u);break;case 31:sc(p,u),rc(u),v&4&&(v=u.updateQueue,v!==null&&(u.updateQueue=null,_v(u,v)));break;case 13:sc(p,u),rc(u),u.child.flags&8192&&u.memoizedState!==null!=(g!==null&&g.memoizedState!==null)&&(Dv=wn()),v&4&&(v=u.updateQueue,v!==null&&(u.updateQueue=null,_v(u,v)));break;case 22:j=u.memoizedState!==null;var De=g!==null&&g.memoizedState!==null,Ze=bm,mt=si;if(bm=Ze||j,si=mt||De,sc(p,u),si=mt,bm=Ze,rc(u),v&8192)e:for(p=u.stateNode,p._visibility=j?p._visibility&-2:p._visibility|1,j&&(g===null||De||bm||si||Kh(u)),g=null,p=u;;){if(p.tag===5||p.tag===26){if(g===null){De=g=p;try{if(P=De.stateNode,j)Z=P.style,typeof Z.setProperty=="function"?Z.setProperty("display","none","important"):Z.display="none";else{de=De.stateNode;var bt=De.memoizedProps.style,et=bt!=null&&bt.hasOwnProperty("display")?bt.display:null;de.style.display=et==null||typeof et=="boolean"?"":(""+et).trim()}}catch(mn){gs(De,De.return,mn)}}}else if(p.tag===6){if(g===null){De=p;try{De.stateNode.nodeValue=j?"":De.memoizedProps}catch(mn){gs(De,De.return,mn)}}}else if(p.tag===18){if(g===null){De=p;try{var st=De.stateNode;j?MS(st,!0):MS(De.stateNode,!1)}catch(mn){gs(De,De.return,mn)}}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===u)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===u)break e;for(;p.sibling===null;){if(p.return===null||p.return===u)break e;g===p&&(g=null),p=p.return}g===p&&(g=null),p.sibling.return=p.return,p=p.sibling}v&4&&(v=u.updateQueue,v!==null&&(g=v.retryQueue,g!==null&&(v.retryQueue=null,_v(u,g))));break;case 19:sc(p,u),rc(u),v&4&&(v=u.updateQueue,v!==null&&(u.updateQueue=null,_v(u,v)));break;case 30:break;case 21:break;default:sc(p,u),rc(u)}}function rc(u){var p=u.flags;if(p&2){try{for(var g,v=u.return;v!==null;){if(OC(v)){g=v;break}v=v.return}if(g==null)throw Error(a(160));switch(g.tag){case 27:var j=g.stateNode,P=gw(u);Sv(u,P,j);break;case 5:var Z=g.stateNode;g.flags&32&&(Hl(Z,""),g.flags&=-33);var de=gw(u);Sv(u,de,Z);break;case 3:case 4:var De=g.stateNode.containerInfo,Ze=gw(u);xw(u,Ze,De);break;default:throw Error(a(161))}}catch(mt){gs(u,u.return,mt)}u.flags&=-3}p&4096&&(u.flags&=-4097)}function GC(u){if(u.subtreeFlags&1024)for(u=u.child;u!==null;){var p=u;GC(p),p.tag===5&&p.flags&1024&&p.stateNode.reset(),u=u.sibling}}function ym(u,p){if(p.subtreeFlags&8772)for(p=p.child;p!==null;)UC(u,p.alternate,p),p=p.sibling}function Kh(u){for(u=u.child;u!==null;){var p=u;switch(p.tag){case 0:case 11:case 14:case 15:gp(4,p,p.return),Kh(p);break;case 1:td(p,p.return);var g=p.stateNode;typeof g.componentWillUnmount=="function"&&MC(p,p.return,g),Kh(p);break;case 27:p1(p.stateNode);case 26:case 5:td(p,p.return),Kh(p);break;case 22:p.memoizedState===null&&Kh(p);break;case 30:Kh(p);break;default:Kh(p)}u=u.sibling}}function wm(u,p,g){for(g=g&&(p.subtreeFlags&8772)!==0,p=p.child;p!==null;){var v=p.alternate,j=u,P=p,Z=P.flags;switch(P.tag){case 0:case 11:case 15:wm(j,P,g),a1(4,P);break;case 1:if(wm(j,P,g),v=P,j=v.stateNode,typeof j.componentDidMount=="function")try{j.componentDidMount()}catch(Ze){gs(v,v.return,Ze)}if(v=P,j=v.updateQueue,j!==null){var de=v.stateNode;try{var De=j.shared.hiddenCallbacks;if(De!==null)for(j.shared.hiddenCallbacks=null,j=0;j<De.length;j++)Li(De[j],de)}catch(Ze){gs(v,v.return,Ze)}}g&&Z&64&&IC(P),s1(P,P.return);break;case 27:BC(P);case 26:case 5:wm(j,P,g),g&&v===null&&Z&4&&LC(P),s1(P,P.return);break;case 12:wm(j,P,g);break;case 31:wm(j,P,g),g&&Z&4&&zC(j,P);break;case 13:wm(j,P,g),g&&Z&4&&$C(j,P);break;case 22:P.memoizedState===null&&wm(j,P,g),s1(P,P.return);break;case 30:break;default:wm(j,P,g)}p=p.sibling}}function vw(u,p){var g=null;u!==null&&u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(g=u.memoizedState.cachePool.pool),u=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(u=p.memoizedState.cachePool.pool),u!==g&&(u!=null&&u.refCount++,g!=null&&Jh(g))}function yw(u,p){u=null,p.alternate!==null&&(u=p.alternate.memoizedState.cache),p=p.memoizedState.cache,p!==u&&(p.refCount++,u!=null&&Jh(u))}function ru(u,p,g,v){if(p.subtreeFlags&10256)for(p=p.child;p!==null;)JC(u,p,g,v),p=p.sibling}function JC(u,p,g,v){var j=p.flags;switch(p.tag){case 0:case 11:case 15:ru(u,p,g,v),j&2048&&a1(9,p);break;case 1:ru(u,p,g,v);break;case 3:ru(u,p,g,v),j&2048&&(u=null,p.alternate!==null&&(u=p.alternate.memoizedState.cache),p=p.memoizedState.cache,p!==u&&(p.refCount++,u!=null&&Jh(u)));break;case 12:if(j&2048){ru(u,p,g,v),u=p.stateNode;try{var P=p.memoizedProps,Z=P.id,de=P.onPostCommit;typeof de=="function"&&de(Z,p.alternate===null?"mount":"update",u.passiveEffectDuration,-0)}catch(De){gs(p,p.return,De)}}else ru(u,p,g,v);break;case 31:ru(u,p,g,v);break;case 13:ru(u,p,g,v);break;case 23:break;case 22:P=p.stateNode,Z=p.alternate,p.memoizedState!==null?P._visibility&2?ru(u,p,g,v):r1(u,p):P._visibility&2?ru(u,p,g,v):(P._visibility|=2,Hf(u,p,g,v,(p.subtreeFlags&10256)!==0||!1)),j&2048&&vw(Z,p);break;case 24:ru(u,p,g,v),j&2048&&yw(p.alternate,p);break;default:ru(u,p,g,v)}}function Hf(u,p,g,v,j){for(j=j&&((p.subtreeFlags&10256)!==0||!1),p=p.child;p!==null;){var P=u,Z=p,de=g,De=v,Ze=Z.flags;switch(Z.tag){case 0:case 11:case 15:Hf(P,Z,de,De,j),a1(8,Z);break;case 23:break;case 22:var mt=Z.stateNode;Z.memoizedState!==null?mt._visibility&2?Hf(P,Z,de,De,j):r1(P,Z):(mt._visibility|=2,Hf(P,Z,de,De,j)),j&&Ze&2048&&vw(Z.alternate,Z);break;case 24:Hf(P,Z,de,De,j),j&&Ze&2048&&yw(Z.alternate,Z);break;default:Hf(P,Z,de,De,j)}p=p.sibling}}function r1(u,p){if(p.subtreeFlags&10256)for(p=p.child;p!==null;){var g=u,v=p,j=v.flags;switch(v.tag){case 22:r1(g,v),j&2048&&vw(v.alternate,v);break;case 24:r1(g,v),j&2048&&yw(v.alternate,v);break;default:r1(g,v)}p=p.sibling}}var i1=8192;function Vf(u,p,g){if(u.subtreeFlags&i1)for(u=u.child;u!==null;)WC(u,p,g),u=u.sibling}function WC(u,p,g){switch(u.tag){case 26:Vf(u,p,g),u.flags&i1&&u.memoizedState!==null&&CK(g,su,u.memoizedState,u.memoizedProps);break;case 5:Vf(u,p,g);break;case 3:case 4:var v=su;su=$v(u.stateNode.containerInfo),Vf(u,p,g),su=v;break;case 22:u.memoizedState===null&&(v=u.alternate,v!==null&&v.memoizedState!==null?(v=i1,i1=16777216,Vf(u,p,g),i1=v):Vf(u,p,g));break;default:Vf(u,p,g)}}function YC(u){var p=u.alternate;if(p!==null&&(u=p.child,u!==null)){p.child=null;do p=u.sibling,u.sibling=null,u=p;while(u!==null)}}function o1(u){var p=u.deletions;if((u.flags&16)!==0){if(p!==null)for(var g=0;g<p.length;g++){var v=p[g];Bi=v,QC(v,u)}YC(u)}if(u.subtreeFlags&10256)for(u=u.child;u!==null;)XC(u),u=u.sibling}function XC(u){switch(u.tag){case 0:case 11:case 15:o1(u),u.flags&2048&&gp(9,u,u.return);break;case 3:o1(u);break;case 12:o1(u);break;case 22:var p=u.stateNode;u.memoizedState!==null&&p._visibility&2&&(u.return===null||u.return.tag!==13)?(p._visibility&=-3,Pv(u)):o1(u);break;default:o1(u)}}function Pv(u){var p=u.deletions;if((u.flags&16)!==0){if(p!==null)for(var g=0;g<p.length;g++){var v=p[g];Bi=v,QC(v,u)}YC(u)}for(u=u.child;u!==null;){switch(p=u,p.tag){case 0:case 11:case 15:gp(8,p,p.return),Pv(p);break;case 22:g=p.stateNode,g._visibility&2&&(g._visibility&=-3,Pv(p));break;default:Pv(p)}u=u.sibling}}function QC(u,p){for(;Bi!==null;){var g=Bi;switch(g.tag){case 0:case 11:case 15:gp(8,g,p);break;case 23:case 22:if(g.memoizedState!==null&&g.memoizedState.cachePool!==null){var v=g.memoizedState.cachePool.pool;v!=null&&v.refCount++}break;case 24:Jh(g.memoizedState.cache)}if(v=g.child,v!==null)v.return=g,Bi=v;else e:for(g=u;Bi!==null;){v=Bi;var j=v.sibling,P=v.return;if(HC(v),v===g){Bi=null;break e}if(j!==null){j.return=P,Bi=j;break e}Bi=P}}}var zQ={getCacheForType:function(u){var p=vi(gr),g=p.data.get(u);return g===void 0&&(g=u(),p.data.set(u,g)),g},cacheSignal:function(){return vi(gr).controller.signal}},$Q=typeof WeakMap=="function"?WeakMap:Map,Za=0,Ps=null,Na=null,Ca=0,fs=0,Oc=null,xp=!1,zf=!1,ww=!1,Tm=0,Dr=0,bp=0,Zh=0,Tw=0,Bc=0,$f=0,c1=null,ic=null,Nw=!1,Dv=0,KC=0,Rv=1/0,Iv=null,vp=null,wi=0,yp=null,qf=null,Nm=0,kw=0,jw=null,ZC=null,l1=0,Aw=null;function Fc(){return(Za&2)!==0&&Ca!==0?Ca&-Ca:G.T!==null?Dw():Ur()}function eS(){if(Bc===0)if((Ca&536870912)===0||Ta){var u=Zn;Zn<<=1,(Zn&3932160)===0&&(Zn=262144),Bc=u}else Bc=536870912;return u=Ys.current,u!==null&&(u.flags|=32),Bc}function oc(u,p,g){(u===Ps&&(fs===2||fs===9)||u.cancelPendingCommit!==null)&&(Gf(u,0),wp(u,Ca,Bc,!1)),Wt(u,g),((Za&2)===0||u!==Ps)&&(u===Ps&&((Za&2)===0&&(Zh|=g),Dr===4&&wp(u,Ca,Bc,!1)),nd(u))}function tS(u,p,g){if((Za&6)!==0)throw Error(a(327));var v=!g&&(p&127)===0&&(p&u.expiredLanes)===0||Ra(u,p),j=v?JQ(u,p):Cw(u,p,!0),P=v;do{if(j===0){zf&&!v&&wp(u,p,0,!1);break}else{if(g=u.current.alternate,P&&!qQ(g)){j=Cw(u,p,!1),P=!1;continue}if(j===2){if(P=p,u.errorRecoveryDisabledLanes&P)var Z=0;else Z=u.pendingLanes&-536870913,Z=Z!==0?Z:Z&536870912?536870912:0;if(Z!==0){p=Z;e:{var de=u;j=c1;var De=de.current.memoizedState.isDehydrated;if(De&&(Gf(de,Z).flags|=256),Z=Cw(de,Z,!1),Z!==2){if(ww&&!De){de.errorRecoveryDisabledLanes|=P,Zh|=P,j=4;break e}P=ic,ic=j,P!==null&&(ic===null?ic=P:ic.push.apply(ic,P))}j=Z}if(P=!1,j!==2)continue}}if(j===1){Gf(u,0),wp(u,p,0,!0);break}e:{switch(v=u,P=j,P){case 0:case 1:throw Error(a(345));case 4:if((p&4194048)!==p)break;case 6:wp(v,p,Bc,!xp);break e;case 2:ic=null;break;case 3:case 5:break;default:throw Error(a(329))}if((p&62914560)===p&&(j=Dv+300-wn(),10<j)){if(wp(v,p,Bc,!xp),Vt(v,0,!0)!==0)break e;Nm=p,v.timeoutHandle=DS(nS.bind(null,v,g,ic,Iv,Nw,p,Bc,Zh,$f,xp,P,"Throttled",-0,0),j);break e}nS(v,g,ic,Iv,Nw,p,Bc,Zh,$f,xp,P,null,-0,0)}}break}while(!0);nd(u)}function nS(u,p,g,v,j,P,Z,de,De,Ze,mt,bt,et,st){if(u.timeoutHandle=-1,bt=p.subtreeFlags,bt&8192||(bt&16785408)===16785408){bt={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$o},WC(p,P,bt);var mn=(P&62914560)===P?Dv-wn():(P&4194048)===P?KC-wn():0;if(mn=SK(bt,mn),mn!==null){Nm=P,u.cancelPendingCommit=mn(uS.bind(null,u,p,P,g,v,j,Z,de,De,mt,bt,null,et,st)),wp(u,P,Z,!Ze);return}}uS(u,p,P,g,v,j,Z,de,De)}function qQ(u){for(var p=u;;){var g=p.tag;if((g===0||g===11||g===15)&&p.flags&16384&&(g=p.updateQueue,g!==null&&(g=g.stores,g!==null)))for(var v=0;v<g.length;v++){var j=g[v],P=j.getSnapshot;j=j.value;try{if(!nr(P(),j))return!1}catch{return!1}}if(g=p.child,p.subtreeFlags&16384&&g!==null)g.return=p,p=g;else{if(p===u)break;for(;p.sibling===null;){if(p.return===null||p.return===u)return!0;p=p.return}p.sibling.return=p.return,p=p.sibling}}return!0}function wp(u,p,g,v){p&=~Tw,p&=~Zh,u.suspendedLanes|=p,u.pingedLanes&=~p,v&&(u.warmLanes|=p),v=u.expirationTimes;for(var j=p;0<j;){var P=31-bn(j),Z=1<<P;v[P]=-1,j&=~Z}g!==0&&Wi(u,g,p)}function Mv(){return(Za&6)===0?(u1(0),!1):!0}function Ew(){if(Na!==null){if(fs===0)var u=Na.return;else u=Na,cl=Ju=null,If(u),vt=null,pn=0,u=Na;for(;u!==null;)RC(u.alternate,u),u=u.return;Na=null}}function Gf(u,p){var g=u.timeoutHandle;g!==-1&&(u.timeoutHandle=-1,dK(g)),g=u.cancelPendingCommit,g!==null&&(u.cancelPendingCommit=null,g()),Nm=0,Ew(),Ps=u,Na=g=Yo(u.current,null),Ca=p,fs=0,Oc=null,xp=!1,zf=Ra(u,p),ww=!1,$f=Bc=Tw=Zh=bp=Dr=0,ic=c1=null,Nw=!1,(p&8)!==0&&(p|=p&32);var v=u.entangledLanes;if(v!==0)for(u=u.entanglements,v&=p;0<v;){var j=31-bn(v),P=1<<j;p|=u[j],v&=~P}return Tm=p,Hh(),g}function aS(u,p){Cn=null,G.H=e1,p===Me||p===Ne?(p=ht(),fs=3):p===Xe?(p=ht(),fs=4):fs=p===rw?8:p!==null&&typeof p=="object"&&typeof p.then=="function"?6:1,Oc=p,Na===null&&(Dr=1,kv(u,Xo(p,u.current)))}function sS(){var u=Ys.current;return u===null?!0:(Ca&4194048)===Ca?Ma===null:(Ca&62914560)===Ca||(Ca&536870912)!==0?u===Ma:!1}function rS(){var u=G.H;return G.H=e1,u===null?e1:u}function iS(){var u=G.A;return G.A=zQ,u}function Lv(){Dr=4,xp||(Ca&4194048)!==Ca&&Ys.current!==null||(zf=!0),(bp&134217727)===0&&(Zh&134217727)===0||Ps===null||wp(Ps,Ca,Bc,!1)}function Cw(u,p,g){var v=Za;Za|=2;var j=rS(),P=iS();
vendor: 4,702 bytes, line 49
49(Ps!==u||Ca!==p)&&(Iv=null,Gf(u,p)),p=!1;var Z=Dr;e:do try{if(fs!==0&&Na!==null){var de=Na,De=Oc;switch(fs){case 8:Ew(),Z=6;break e;case 3:case 2:case 9:case 6:Ys.current===null&&(p=!0);var Ze=fs;if(fs=0,Oc=null,Jf(u,de,De,Ze),g&&zf){Z=0;break e}break;default:Ze=fs,fs=0,Oc=null,Jf(u,de,De,Ze)}}GQ(),Z=Dr;break}catch(mt){aS(u,mt)}while(!0);return p&&u.shellSuspendCounter++,cl=Ju=null,Za=v,G.H=j,G.A=P,Na===null&&(Ps=null,Ca=0,Hh()),Z}function GQ(){for(;Na!==null;)oS(Na)}function JQ(u,p){var g=Za;Za|=2;var v=rS(),j=iS();Ps!==u||Ca!==p?(Iv=null,Rv=wn()+500,Gf(u,p)):zf=Ra(u,p);e:do try{if(fs!==0&&Na!==null){p=Na;var P=Oc;t:switch(fs){case 1:fs=0,Oc=null,Jf(u,p,P,1);break;case 2:case 9:if(Ge(P)){fs=0,Oc=null,cS(p);break}p=function(){fs!==2&&fs!==9||Ps!==u||(fs=7),nd(u)},P.then(p,p);break e;case 3:fs=7;break e;case 4:fs=5;break e;case 7:Ge(P)?(fs=0,Oc=null,cS(p)):(fs=0,Oc=null,Jf(u,p,P,7));break;case 5:var Z=null;switch(Na.tag){case 26:Z=Na.memoizedState;case 5:case 27:var de=Na;if(Z?JS(Z):de.stateNode.complete){fs=0,Oc=null;var De=de.sibling;if(De!==null)Na=De;else{var Ze=de.return;Ze!==null?(Na=Ze,Ov(Ze)):Na=null}break t}}fs=0,Oc=null,Jf(u,p,P,5);break;case 6:fs=0,Oc=null,Jf(u,p,P,6);break;case 8:Ew(),Dr=6;break e;default:throw Error(a(462))}}WQ();break}catch(mt){aS(u,mt)}while(!0);return cl=Ju=null,G.H=v,G.A=j,Za=g,Na!==null?0:(Ps=null,Ca=0,Hh(),Dr)}function WQ(){for(;Na!==null&&!Ct();)oS(Na)}function oS(u){var p=PC(u.alternate,u,Tm);u.memoizedProps=u.pendingProps,p===null?Ov(u):Na=p}function cS(u){var p=u,g=p.alternate;switch(p.tag){case 15:case 0:p=jC(g,p,p.pendingProps,p.type,void 0,Ca);break;case 11:p=jC(g,p,p.pendingProps,p.type.render,p.ref,Ca);break;case 5:If(p);default:RC(g,p),p=Na=$h(p,Tm),p=PC(g,p,Tm)}u.memoizedProps=u.pendingProps,p===null?Ov(u):Na=p}function Jf(u,p,g,v){cl=Ju=null,If(p),vt=null,pn=0;var j=p.return;try{if(LQ(u,j,p,g,Ca)){Dr=1,kv(u,Xo(g,u.current)),Na=null;return}}catch(P){if(j!==null)throw Na=j,P;Dr=1,kv(u,Xo(g,u.current)),Na=null;return}p.flags&32768?(Ta||v===1?u=!0:zf||(Ca&536870912)!==0?u=!1:(xp=u=!0,(v===2||v===9||v===3||v===6)&&(v=Ys.current,v!==null&&v.tag===13&&(v.flags|=16384))),lS(p,u)):Ov(p)}function Ov(u){var p=u;do{if((p.flags&32768)!==0){lS(p,xp);return}u=p.return;var g=FQ(p.alternate,p,Tm);if(g!==null){Na=g;return}if(p=p.sibling,p!==null){Na=p;return}Na=p=u}while(p!==null);Dr===0&&(Dr=5)}function lS(u,p){do{var g=UQ(u.alternate,u);if(g!==null){g.flags&=32767,Na=g;return}if(g=u.return,g!==null&&(g.flags|=32768,g.subtreeFlags=0,g.deletions=null),!p&&(u=u.sibling,u!==null)){Na=u;return}Na=u=g}while(u!==null);Dr=6,Na=null}function uS(u,p,g,v,j,P,Z,de,De){u.cancelPendingCommit=null;do Bv();while(wi!==0);if((Za&6)!==0)throw Error(a(327));if(p!==null){if(p===u.current)throw Error(a(177));if(P=p.lanes|p.childLanes,P|=yf,tr(u,g,P,Z,de,De),u===Ps&&(Na=Ps=null,Ca=0),qf=p,yp=u,Nm=g,kw=P,jw=j,ZC=v,(p.subtreeFlags&10256)!==0||(p.flags&10256)!==0?(u.callbackNode=null,u.callbackPriority=0,KQ(Dt,function(){return fS(),null})):(u.callbackNode=null,u.callbackPriority=0),v=(p.flags&13878)!==0,(p.subtreeFlags&13878)!==0||v){v=G.T,G.T=null,j=K.p,K.p=2,Z=Za,Za|=4;try{HQ(u,p,g)}finally{Za=Z,K.p=j,G.T=v}}wi=1,dS(),mS(),pS()}}function dS(){if(wi===1){wi=0;var u=yp,p=qf,g=(p.flags&13878)!==0;if((p.subtreeFlags&13878)!==0||g){g=G.T,G.T=null;var v=K.p;K.p=2;var j=Za;Za|=4;try{qC(p,u);var P=Uw,Z=rm(u.containerInfo),de=P.focusedElem,De=P.selectionRange;if(Z!==de&&de&&de.ownerDocument&&sp(de.ownerDocument.documentElement,de)){if(De!==null&&Ql(de)){var Ze=De.start,mt=De.end;if(mt===void 0&&(mt=Ze),"selectionStart"in de)de.selectionStart=Ze,de.selectionEnd=Math.min(mt,de.value.length);else{var bt=de.ownerDocument||document,et=bt&&bt.defaultView||window;if(et.getSelection){var st=et.getSelection(),mn=de.textContent.length,Bn=Math.min(De.start,mn),ws=De.end===void 0?Bn:Math.min(De.end,mn);!st.extend&&Bn>ws&&(Z=ws,ws=Bn,Bn=Z);var $e=ap(de,Bn),Oe=ap(de,ws);if($e&&Oe&&(st.rangeCount!==1||st.anchorNode!==$e.node||st.anchorOffset!==$e.offset||st.focusNode!==Oe.node||st.focusOffset!==Oe.offset)){var Qe=bt.createRange();Qe.setStart($e.node,$e.offset),st.removeAllRanges(),Bn>ws?(st.addRange(Qe),st.extend(Oe.node,Oe.offset)):(Qe.setEnd(Oe.node,Oe.offset),st.addRange(Qe))}}}}for(bt=[],st=de;st=st.parentNode;)st.nodeType===1&&bt.push({element:st,left:st.scrollLeft,top:st.scrollTop});for(typeof de.focus=="function"&&de.focus(),de=0;de<bt.length;de++){var gt=bt[de];gt.element.scrollLeft=gt.left,gt.element.scrollTop=gt.top}}Xv=!!Fw,Uw=Fw=null}finally{Za=j,K.p=v,G.T=g}}u.current=p,wi=2}}function mS(){if(wi===2){wi=0;var u=yp,p=qf,g=(p.flags&8772)!==0;if((p.subtreeFlags&8772)!==0||g){g=G.T,G.T=null;var v=K.p;K.p=2;var j=Za;Za|=4;
vendor: 6,210 bytes, line 49
49try{UC(u,p.alternate,p)}finally{Za=j,K.p=v,G.T=g}}wi=3}}function pS(){if(wi===4||wi===3){wi=0,Ht();var u=yp,p=qf,g=Nm,v=ZC;(p.subtreeFlags&10256)!==0||(p.flags&10256)!==0?wi=5:(wi=0,qf=yp=null,hS(u,u.pendingLanes));var j=u.pendingLanes;if(j===0&&(vp=null),ss(g),p=p.stateNode,Qt&&typeof Qt.onCommitFiberRoot=="function")try{Qt.onCommitFiberRoot(jn,p,void 0,(p.current.flags&128)===128)}catch{}if(v!==null){p=G.T,j=K.p,K.p=2,G.T=null;try{for(var P=u.onRecoverableError,Z=0;Z<v.length;Z++){var de=v[Z];P(de.value,{componentStack:de.stack})}}finally{G.T=p,K.p=j}}(Nm&3)!==0&&Bv(),nd(u),j=u.pendingLanes,(g&261930)!==0&&(j&42)!==0?u===Aw?l1++:(l1=0,Aw=u):l1=0,u1(0)}}function hS(u,p){(u.pooledCacheLanes&=p)===0&&(p=u.pooledCache,p!=null&&(u.pooledCache=null,Jh(p)))}function Bv(){return dS(),mS(),pS(),fS()}function fS(){if(wi!==5)return!1;var u=yp,p=kw;kw=0;var g=ss(Nm),v=G.T,j=K.p;try{K.p=32>g?32:g,G.T=null,g=jw,jw=null;var P=yp,Z=Nm;if(wi=0,qf=yp=null,Nm=0,(Za&6)!==0)throw Error(a(331));var de=Za;if(Za|=4,XC(P.current),JC(P,P.current,Z,g),Za=de,u1(0,!1),Qt&&typeof Qt.onPostCommitFiberRoot=="function")try{Qt.onPostCommitFiberRoot(jn,P)}catch{}return!0}finally{K.p=j,G.T=v,hS(u,p)}}function gS(u,p,g){p=Xo(g,p),p=sw(u.stateNode,p,2),u=ra(u,p,2),u!==null&&(Wt(u,2),nd(u))}function gs(u,p,g){if(u.tag===3)gS(u,u,g);else for(;p!==null;){if(p.tag===3){gS(p,u,g);break}else if(p.tag===1){var v=p.stateNode;if(typeof p.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(vp===null||!vp.has(v))){u=Xo(g,u),g=xC(2),v=ra(p,g,2),v!==null&&(bC(g,v,p,u),Wt(v,2),nd(v));break}}p=p.return}}function Sw(u,p,g){var v=u.pingCache;if(v===null){v=u.pingCache=new $Q;var j=new Set;v.set(p,j)}else j=v.get(p),j===void 0&&(j=new Set,v.set(p,j));j.has(g)||(ww=!0,j.add(g),u=YQ.bind(null,u,p,g),p.then(u,u))}function YQ(u,p,g){var v=u.pingCache;v!==null&&v.delete(p),u.pingedLanes|=u.suspendedLanes&g,u.warmLanes&=~g,Ps===u&&(Ca&g)===g&&(Dr===4||Dr===3&&(Ca&62914560)===Ca&&300>wn()-Dv?(Za&2)===0&&Gf(u,0):Tw|=g,$f===Ca&&($f=0)),nd(u)}function xS(u,p){p===0&&(p=Os()),u=Kl(u,p),u!==null&&(Wt(u,p),nd(u))}function XQ(u){var p=u.memoizedState,g=0;p!==null&&(g=p.retryLane),xS(u,g)}function QQ(u,p){var g=0;switch(u.tag){case 31:case 13:var v=u.stateNode,j=u.memoizedState;j!==null&&(g=j.retryLane);break;case 19:v=u.stateNode;break;case 22:v=u.stateNode._retryCache;break;default:throw Error(a(314))}v!==null&&v.delete(p),xS(u,g)}function KQ(u,p){return at(u,p)}var Fv=null,Wf=null,_w=!1,Uv=!1,Pw=!1,Tp=0;function nd(u){u!==Wf&&u.next===null&&(Wf===null?Fv=Wf=u:Wf=Wf.next=u),Uv=!0,_w||(_w=!0,eK())}function u1(u,p){if(!Pw&&Uv){Pw=!0;do for(var g=!1,v=Fv;v!==null;){if(u!==0){var j=v.pendingLanes;if(j===0)var P=0;else{var Z=v.suspendedLanes,de=v.pingedLanes;P=(1<<31-bn(42|u)+1)-1,P&=j&~(Z&~de),P=P&201326741?P&201326741|1:P?P|2:0}P!==0&&(g=!0,wS(v,P))}else P=Ca,P=Vt(v,v===Ps?P:0,v.cancelPendingCommit!==null||v.timeoutHandle!==-1),(P&3)===0||Ra(v,P)||(g=!0,wS(v,P));v=v.next}while(g);Pw=!1}}function ZQ(){bS()}function bS(){Uv=_w=!1;var u=0;Tp!==0&&uK()&&(u=Tp);for(var p=wn(),g=null,v=Fv;v!==null;){var j=v.next,P=vS(v,p);P===0?(v.next=null,g===null?Fv=j:g.next=j,j===null&&(Wf=g)):(g=v,(u!==0||(P&3)!==0)&&(Uv=!0)),v=j}wi!==0&&wi!==5||u1(u),Tp!==0&&(Tp=0)}function vS(u,p){for(var g=u.suspendedLanes,v=u.pingedLanes,j=u.expirationTimes,P=u.pendingLanes&-62914561;0<P;){var Z=31-bn(P),de=1<<Z,De=j[Z];De===-1?((de&g)===0||(de&v)!==0)&&(j[Z]=Pa(de,p)):De<=p&&(u.expiredLanes|=de),P&=~de}if(p=Ps,g=Ca,g=Vt(u,u===p?g:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),v=u.callbackNode,g===0||u===p&&(fs===2||fs===9)||u.cancelPendingCommit!==null)return v!==null&&v!==null&&ct(v),u.callbackNode=null,u.callbackPriority=0;if((g&3)===0||Ra(u,g)){if(p=g&-g,p===u.callbackPriority)return p;switch(v!==null&&ct(v),ss(g)){case 2:case 8:g=dt;break;case 32:g=Dt;break;case 268435456:g=Mt;break;default:g=Dt}return v=yS.bind(null,u),g=at(g,v),u.callbackPriority=p,u.callbackNode=g,p}return v!==null&&v!==null&&ct(v),u.callbackPriority=2,u.callbackNode=null,2}function yS(u,p){if(wi!==0&&wi!==5)return u.callbackNode=null,u.callbackPriority=0,null;var g=u.callbackNode;if(Bv()&&u.callbackNode!==g)return null;var v=Ca;return v=Vt(u,u===Ps?v:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),v===0?null:(tS(u,v,p),vS(u,wn()),u.callbackNode!=null&&u.callbackNode===g?yS.bind(null,u):null)}function wS(u,p){if(Bv())return null;tS(u,p,!0)}function eK(){mK(function(){(Za&6)!==0?at(qe,ZQ):bS()})}function Dw(){if(Tp===0){var u=N;u===0&&(u=Ot,Ot<<=1,(Ot&261888)===0&&(Ot=256)),Tp=u}return Tp}function TS(u){return u==null||typeof u=="symbol"||typeof u=="boolean"?null:typeof u=="function"?u:Sc(""+u)}function NS(u,p){var g=p.ownerDocument.createElement("input");return g.name=p.name,g.value=p.value,u.id&&g.setAttribute("form",u.id),p.parentNode.insertBefore(g,p),u=new FormData(u),g.parentNode.removeChild(g),u}function tK(u,p,g,v,j){if(p==="submit"&&g&&g.stateNode===j){var P=TS((j[$s]||null).action),Z=v.submitter;Z&&(p=(p=Z[$s]||null)?TS(p.formAction):Z.getAttribute("formAction"),p!==null&&(P=p,Z=null));var de=new Rc("action","action",null,v,j);u.push({event:de,listeners:[{instance:null,listener:function(){if(v.defaultPrevented){if(Tp!==0){var De=Z?NS(j,Z):new FormData(j);K6(g,{pending:!0,data:De,method:j.method,action:P},null,De)}}else typeof P=="function"&&(de.preventDefault(),De=Z?NS(j,Z):new FormData(j),K6(g,{pending:!0,data:De,method:j.method,action:P},P,De))},currentTarget:j}]})}}for(var Rw=0;Rw<cm.length;Rw++){var Iw=cm[Rw],nK=Iw.toLowerCase(),aK=Iw[0].toUpperCase()+Iw.slice(1);Wo(nK,"on"+aK)}Wo(ol,"onAnimationEnd"),Wo(rp,"onAnimationIteration"),Wo(om,"onAnimationStart"),Wo("dblclick","onDoubleClick"),Wo("focusin","onFocus"),Wo("focusout","onBlur"),Wo(vf,"onTransitionRun"),Wo(mv,"onTransitionStart"),Wo(pv,"onTransitionCancel"),Wo(Ux,"onTransitionEnd"),Fl("onMouseEnter",["mouseout","mouseover"]),Fl("onMouseLeave",["mouseout","mouseover"]),Fl("onPointerEnter",["pointerout","pointerover"]),Fl("onPointerLeave",["pointerout","pointerover"]),Ac("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ac("onSelect","focusout contextmenu dragend focu
49sin keydown keyup mousedown mouseup selectionchange".split(" ")),Ac("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ac("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ac("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ac("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var d1="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(" "),sK=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(d1));function kS(u,p){p=(p&4)!==0;for(var g=0;g<u.length;g++){var v=u[g],j=v.event;v=v.listeners;e:{var P=void 0;if(p)for(var Z=v.length-1;0<=Z;Z--){var de=v[Z],De=de.instance,Ze=de.currentTarget;if(de=de.listener,De!==P&&j.isPropagationStopped())break e;P=de,j.currentTarget=Ze;try{P(j)}catch(mt){Uh(mt)}j.currentTarget=null,P=De}else for(Z=0;Z<v.length;Z++){if(de=v[Z],De=de.instance,Ze=de.currentTarget,de=de.listener,De!==P&&j.isPropagationStopped())break e;P=de,j.currentTarget=Ze;try{P(j)}catch(mt){Uh(mt)}j.currentTarget=null,P=De}}}}function ka(u,p){var g=p[jo];g===void 0&&(g=p[jo]=new Set);var v=u+"__bubble";g.has(v)||(jS(p,u,2,!1),g.add(v))}function Mw(u,p,g){var v=0;p&&(v|=4),jS(g,u,v,p)}var Hv="_reactListening"+Math.random().toString(36).slice(2);function Lw(u){if(!u[Hv]){u[Hv]=!0,jh.forEach(function(g){g!=="selectionchange"&&(sK.has(g)||Mw(g,!1,u),Mw(g,!0,u))});var p=u.nodeType===9?u:u.ownerDocument;p===null||p[Hv]||(p[Hv]=!0,Mw("selectionchange",!1,p))}}function jS(u,p,g,v){switch(e_(p)){case 2:var j=DK;break;case 8:j=RK;break;default:j=Qw}g=j.bind(null,p,g,u),j=void 0,!Pc||p!=="touchstart"&&p!=="touchmove"&&p!=="wheel"||(j=!0),v?j!==void 0?u.addEventListener(p,g,{capture:!0,passive:j}):u.addEventListener(p,g,!0):j!==void 0?u.addEventListener(p,g,{passive:j}):u.addEventListener(p,g,!1)}function Ow(u,p,g,v,j){var P=v;if((p&1)===0&&(p&2)===0&&v!==null)e:for(;;){if(v===null)return;var Z=v.tag;if(Z===3||Z===4){var de=v.stateNode.containerInfo;if(de===j)break;if(Z===4)for(Z=v.return;Z!==null;){var De=Z.tag;if((De===3||De===4)&&Z.stateNode.containerInfo===j)return;Z=Z.return}for(;de!==null;){if(Z=kc(de),Z===null)return;if(De=Z.tag,De===5||De===6||De===26||De===27){v=P=Z;continue e}de=de.parentNode}}v=v.return}ff(function(){var Ze=P,mt=Rh(g),bt=[];e:{var et=Hx.get(u);if(et!==void 0){var st=Rc,mn=u;switch(u){case"keypress":if(So(g)===0)break e;case"keydown":case"keyup":st=Yn;break;case"focusin":mn="focus",st=tp;break;case"focusout":mn="blur",st=tp;break;case"beforeblur":case"afterblur":st=tp;break;case"click":if(g.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":st=Lh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":st=Jl;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":st=ps;break;case ol:case rp:case om:st=Xd;break;case Ux:st=Es;break;case"scroll":case"scrollend":st=Wd;break;case"wheel":st=Gs;break;case"copy":case"cut":case"paste":st=B;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":st=wa;break;case"toggle":case"beforetoggle":st=Wl}var Bn=(p&4)!==0,ws=!Bn&&(u==="scroll"||u==="scrollend"),$e=Bn?et!==null?et+"Capture":null:et;Bn=[];for(var Oe=Ze,Qe;Oe!==null;){var gt=Oe;if(Qe=gt.stateNode,gt=gt.tag,gt!==5&>!==26&>!==27||Qe===null||$e===null||(gt=Gd(Oe,$e),gt!=null&&Bn.push(m1(Oe,gt,Qe))),ws)break;Oe=Oe.return}0<Bn.length&&(et=new st(et,mn,null,g,mt),bt.push({event:et,listeners:Bn}))}}if((p&7)===0){e:{if(et=u==="mouseover"||u==="pointerover",st=u==="mouseout"||u==="pointerout",et&&g!==sl&&(mn=g.relatedTarget||g.fromElement)&&(kc(mn)||mn[Ci]))break e;if((st||et)&&(et=mt.window===mt?mt:(et=mt.ownerDocument)?et.defaultView||et.parentWindow:window,st?(mn=g.relatedTarget||g.toElement,st=Ze,mn=mn?kc(mn):null,mn!==null&&(ws=i(mn),Bn=mn.tag,mn!==ws||Bn!==5&&Bn!==27&&Bn!==6)&&(mn=null)):(st=null,mn=Ze),st!==mn)){if(Bn=Lh,gt="onMouseLeave",$e="onMouseEnter",Oe="mouse",(u==="pointerout"||u==="pointerover")&&(Bn=wa,gt="onPointerLeave",$e="onPointerEnter",Oe="pointer"),ws=st==null?et:$d(st),Qe=mn==null?et:$d(mn),et=new Bn(gt,Oe+"leave",st,g,mt),et.target=ws,et.relatedTarget=Qe,gt=null,kc(mt)===Ze&&(Bn=new Bn($e,Oe+"enter",mn,g,mt),Bn.target=Qe,Bn.relatedTarget=ws,gt=Bn),ws=gt,st&&mn)t:{for(Bn=rK,$e=st,Oe=mn,Qe=0,gt=$e;gt;gt=Bn(gt))Qe++;gt=0;for(var _n=Oe;_n;_n=Bn(_n))gt++;for(;
vendor: 5,492 bytes, lines 49-50
490<Qe-gt;)$e=Bn($e),Qe--;for(;0<gt-Qe;)Oe=Bn(Oe),gt--;for(;Qe--;){if($e===Oe||Oe!==null&&$e===Oe.alternate){Bn=$e;break t}$e=Bn($e),Oe=Bn(Oe)}Bn=null}else Bn=null;st!==null&&AS(bt,et,st,Bn,!1),mn!==null&&ws!==null&&AS(bt,ws,mn,Bn,!0)}}e:{if(et=Ze?$d(Ze):window,st=et.nodeName&&et.nodeName.toLowerCase(),st==="select"||st==="input"&&et.type==="file")var qa=tm;else if(Fh(et))if(Uu)qa=Ar;else{qa=np;var vn=Hu}else st=et.nodeName,!st||st.toLowerCase()!=="input"||et.type!=="checkbox"&&et.type!=="radio"?Ze&&Dh(Ze.elementType)&&(qa=tm):qa=sm;if(qa&&(qa=qa(u,Ze))){Zd(bt,qa,g,mt);break e}vn&&vn(u,et,Ze),u==="focusout"&&Ze&&et.type==="number"&&Ze.memoizedProps.value!=null&&Ph(et,"number",et.value)}switch(vn=Ze?$d(Ze):window,u){case"focusin":(Fh(vn)||vn.contentEditable==="true")&&(_o=vn,Mc=Ze,Jo=null);break;case"focusout":Jo=Mc=_o=null;break;case"mousedown":zu=!0;break;case"contextmenu":case"mouseup":case"dragend":zu=!1,fi(bt,g,mt);break;case"selectionchange":if(im)break;case"keydown":case"keyup":fi(bt,g,mt)}var ua;if(Yl)e:{switch(u){case"compositionstart":var Sa="onCompositionStart";break e;case"compositionend":Sa="onCompositionEnd";break e;case"compositionupdate":Sa="onCompositionUpdate";break e}Sa=void 0}else Go?pi(u,g)&&(Sa="onCompositionEnd"):u==="keydown"&&g.keyCode===229&&(Sa="onCompositionStart");Sa&&(Lu&&g.locale!=="ko"&&(Go||Sa!=="onCompositionStart"?Sa==="onCompositionEnd"&&Go&&(ua=Zm()):(rl=mt,Mh="value"in rl?rl.value:rl.textContent,Go=!0)),vn=Vv(Ze,Sa),0<vn.length&&(Sa=new Te(Sa,u,null,g,mt),bt.push({event:Sa,listeners:vn}),ua?Sa.data=ua:(ua=Ou(g),ua!==null&&(Sa.data=ua)))),(ua=Mu?Bh(u,g):il(u,g))&&(Sa=Vv(Ze,"onBeforeInput"),0<Sa.length&&(vn=new Te("onBeforeInput","beforeinput",null,g,mt),bt.push({event:vn,listeners:Sa}),vn.data=ua)),tK(bt,u,Ze,g,mt)}kS(bt,p)})}function m1(u,p,g){return{instance:u,listener:p,currentTarget:g}}function Vv(u,p){for(var g=p+"Capture",v=[];u!==null;){var j=u,P=j.stateNode;if(j=j.tag,j!==5&&j!==26&&j!==27||P===null||(j=Gd(u,g),j!=null&&v.unshift(m1(u,j,P)),j=Gd(u,p),j!=null&&v.push(m1(u,j,P))),u.tag===3)return v;u=u.return}return[]}function rK(u){if(u===null)return null;do u=u.return;while(u&&u.tag!==5&&u.tag!==27);return u||null}function AS(u,p,g,v,j){for(var P=p._reactName,Z=[];g!==null&&g!==v;){var de=g,De=de.alternate,Ze=de.stateNode;if(de=de.tag,De!==null&&De===v)break;de!==5&&de!==26&&de!==27||Ze===null||(De=Ze,j?(Ze=Gd(g,P),Ze!=null&&Z.unshift(m1(g,Ze,De))):j||(Ze=Gd(g,P),Ze!=null&&Z.push(m1(g,Ze,De)))),g=g.return}Z.length!==0&&u.push({event:p,listeners:Z})}var iK=/\r\n?/g,oK=/\u0000|\uFFFD/g;function ES(u){return(typeof u=="string"?u:""+u).replace(iK,` 50`).replace(oK,"")}function CS(u,p){return p=ES(p),ES(u)===p}function ys(u,p,g,v,j,P){switch(g){case"children":typeof v=="string"?p==="body"||p==="textarea"&&v===""||Hl(u,v):(typeof v=="number"||typeof v=="bigint")&&p!=="body"&&Hl(u,""+v);break;case"className":Ul(u,"class",v);break;case"tabIndex":Ul(u,"tabindex",v);break;case"dir":case"role":case"viewBox":case"width":case"height":Ul(u,g,v);break;case"style":Km(u,v,P);break;case"data":if(p!=="object"){Ul(u,"data",v);break}case"src":case"href":if(v===""&&(p!=="a"||g!=="href")){u.removeAttribute(g);break}if(v==null||typeof v=="function"||typeof v=="symbol"||typeof v=="boolean"){u.removeAttribute(g);break}v=Sc(""+v),u.setAttribute(g,v);break;case"action":case"formAction":if(typeof v=="function"){u.setAttribute(g,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof P=="function"&&(g==="formAction"?(p!=="input"&&ys(u,p,"name",j.name,j,null),ys(u,p,"formEncType",j.formEncType,j,null),ys(u,p,"formMethod",j.formMethod,j,null),ys(u,p,"formTarget",j.formTarget,j,null)):(ys(u,p,"encType",j.encType,j,null),ys(u,p,"method",j.method,j,null),ys(u,p,"target",j.target,j,null)));if(v==null||typeof v=="symbol"||typeof v=="boolean"){u.removeAttribute(g);break}v=Sc(""+v),u.setAttribute(g,v);break;case"onClick":v!=null&&(u.onclick=$o);break;case"onScroll":v!=null&&ka("scroll",u);break;case"onScrollEnd":v!=null&&ka("scrollend",u);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(a(61));if(g=v.__html,g!=null){if(j.children!=null)throw Error(a(60));u.innerHTML=g}}break;case"multiple":u.multiple=v&&typeof v!="function"&&typeof v!="symbol";break;case"muted":u.muted=v&&typeof v!="function"&&typeof v!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(v==null||typeof v=="function"||typeof v=="boolean"||typeof v=="symbol"){u.removeAttribute("xlink:href");break}g=Sc(""+v),u.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",g);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":v!=null&&typeof v!="function"&&typeof v!="symbol"?u.setAttribute(g,""+v):u.removeAttribute(g);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
50ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":v&&typeof v!="function"&&typeof v!="symbol"?u.setAttribute(g,""):u.removeAttribute(g);break;case"capture":case"download":v===!0?u.setAttribute(g,""):v!==!1&&v!=null&&typeof v!="function"&&typeof v!="symbol"?u.setAttribute(g,v):u.removeAttribute(g);break;case"cols":case"rows":case"size":case"span":v!=null&&typeof v!="function"&&typeof v!="symbol"&&!isNaN(v)&&1<=v?u.setAttribute(g,v):u.removeAttribute(g);break;case"rowSpan":case"start":v==null||typeof v=="function"||typeof v=="symbol"||isNaN(v)?u.removeAttribute(g):u.setAttribute(g,v);break;case"popover":ka("beforetoggle",u),ka("toggle",u),Eo(u,"popover",v);break;case"xlinkActuate":Ec(u,"http://www.w3.org/1999/xlink","xlink:actuate",v);break;case"xlinkArcrole":Ec(u,"http://www.w3.org/1999/xlink","xlink:arcrole",v);break;case"xlinkRole":Ec(u,"http://www.w3.org/1999/xlink","xlink:role",v);break;case"xlinkShow":Ec(u,"http://www.w3.org/1999/xlink","xlink:show",v);break;case"xlinkTitle":Ec(u,"http://www.w3.org/1999/xlink","xlink:title",v);break;case"xlinkType":Ec(u,"http://www.w3.org/1999/xlink","xlink:type",v);break;case"xmlBase":Ec(u,"http://www.w3.org/XML/1998/namespace","xml:base",v);break;case"xmlLang":Ec(u,"http://www.w3.org/XML/1998/namespace","xml:lang",v);break;case"xmlSpace":Ec(u,"http://www.w3.org/XML/1998/namespace","xml:space",v);break;case"is":Eo(u,"is",v);break;case"innerText":case"textContent":break;default:(!(2<g.length)||g[0]!=="o"&&g[0]!=="O"||g[1]!=="n"&&g[1]!=="N")&&(g=Ox.get(g)||g,Eo(u,g,v))}}function Bw(u,p,g,v,j,P){switch(g){case"style":Km(u,v,P);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(a(61));if(g=v.__html,g!=null){if(j.children!=null)throw Error(a(60));u.innerHTML=g}}break;case"children":typeof v=="string"?Hl(u,v):(typeof v=="number"||typeof v=="bigint")&&Hl(u,""+v);break;case"onScroll":v!=null&&ka("scroll",u);break;case"onScrollEnd":v!=null&&ka("scrollend",u);break;case"onClick":v!=null&&(u.onclick=$o);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ao.hasOwnProperty(g))e:{if(g[0]==="o"&&g[1]==="n"&&(j=g.endsWith("Capture"),p=g.slice(2,j?g.length-7:void 0),P=u[$s]||null,P=P!=null?P[g]:null,typeof P=="function"&&u.removeEventListener(p,P,j),typeof v=="function")){typeof P!="function"&&P!==null&&(g in u?u[g]=null:u.hasAttribute(g)&&u.removeAttribute(g)),u.addEventListener(p,v,j);break e}g in u?u[g]=v:v===!0?u.setAttribute(g,""):Eo(u,g,v)}}}function no(u,p,g){switch(p){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ka("error",u),ka("load",u);var v=!1,j=!1,P;for(P in g)if(g.hasOwnProperty(P)){var Z=g[P];if(Z!=null)switch(P){case"src":v=!0;break;case"srcSet":j=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,p));default:ys(u,p,P,Z,g,null)}}j&&ys(u,p,"srcSet",g.srcSet,g,null),v&&ys(u,p,"src",g.src,g,null);return;case"input":ka("invalid",u);var de=P=Z=j=null,De=null,Ze=null;for(v in g)if(g.hasOwnProperty(v)){var mt=g[v];if(mt!=null)switch(v){case"name":j=mt;break;case"type":Z=mt;break;case"checked":De=mt;break;case"defaultChecked":Ze=mt;break;case"value":P=mt;break;case"defaultValue":de=mt;break;case"children":case"dangerouslySetInnerHTML":if(mt!=null)throw Error(a(137,p));break;default:ys(u,p,v,mt,g,null)}}_h(u,P,de,De,Ze,Z,j,!1);return;case"select":ka("invalid",u),v=Z=P=null;for(j in g)if(g.hasOwnProperty(j)&&(de=g[j],de!=null))switch(j){case"value":P=de;break;case"defaultValue":Z=de;break;case"multiple":v=de;default:ys(u,p,j,de,g,null)}p=P,g=Z,u.multiple=!!v,p!=null?Ru(u,!!v,p,!1):g!=null&&Ru(u,!!v,g,!0);return;case"textarea":ka("invalid",u),P=j=v=null;for(Z in g)if(g.hasOwnProperty(Z)&&(de=g[Z],de!=null))switch(Z){case"value":v=de;break;case"defaultValue":j=de;break;case"children":P=de;break;case"dangerouslySetInnerHTML":if(de!=null)throw Error(a(91));break;default:ys(u,p,Z,de,g,null)}Cc(u,v,j,P);return;case"option":for(De in g)if(g.hasOwnProperty(De)&&(v=g[De],v!=null))switch(De){case"selected":u.selected=v&&typeof v!="function"&&typeof v!="symbol";break;default:ys(u,p,De,v,g,null)}return;case"dialog":ka("beforetoggle",u),ka("toggle",u),ka("cancel",u),ka("close",u);break;case"iframe":case"object":ka("load",u);break;case"video":case"audio":for(v=0;v<d1.length;v++)ka(d1[v],u);break;case"image":ka("error",u),ka("load",u);break;case"details":ka("toggle",u);break;case"embed":case"source":case"link":ka("error",u),ka("load",u);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Ze in g)if(g.hasOwnProperty(Ze)&&(v=g[Ze],v!=null))switch(Ze){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,p));default:ys(u,p,Ze,v,g,null)}return;default:if(Dh(p)){for(mt in g)g.hasOwnProperty(mt)&&(v=g[mt],v!==void 0&&Bw(u,p,mt,v,g,void 0));return}}for(de in g)g.hasOwnProperty(de)&&(v=g[de],v!=null&&ys(u,p,de,v,g,null))}function cK(u,p,g,v){switch(p){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var j=null,P=null,Z=null,de=null,De=null,Ze=null,mt=null;for(st in g){var bt=g[st];if(g.hasOwnProperty(st)&&bt!=null)switch(st){case"checked":break;case"value":break;case"defaultValue":De=bt;default:v.hasOwnProperty(st)||ys(u,p,st,null,v,bt)}}for(var et in v){var st=v[et];if(bt=g[et],v.hasOwnProperty(et)&&(st!=null||bt!=null))switch(et){case"type":P=st;break;case"name":j=st;break;case"checked":Ze=st;break;case"defaultChecked":mt=st;break;case"value":Z=st;break;case"defaultValue":de=st;break;case"children":case"dangerouslySetInnerHTML":if(st!=null)throw Error(a(137,p));break;default:st!==bt&&ys(u,p,et,st,v,bt)}}
vendor: 7,331 bytes, line 50
50Hr(u,Z,de,De,Ze,mt,P,j);return;case"select":st=Z=de=et=null;for(P in g)if(De=g[P],g.hasOwnProperty(P)&&De!=null)switch(P){case"value":break;case"multiple":st=De;default:v.hasOwnProperty(P)||ys(u,p,P,null,v,De)}for(j in v)if(P=v[j],De=g[j],v.hasOwnProperty(j)&&(P!=null||De!=null))switch(j){case"value":et=P;break;case"defaultValue":de=P;break;case"multiple":Z=P;default:P!==De&&ys(u,p,j,P,v,De)}p=de,g=Z,v=st,et!=null?Ru(u,!!g,et,!1):!!v!=!!g&&(p!=null?Ru(u,!!g,p,!0):Ru(u,!!g,g?[]:"",!1));return;case"textarea":st=et=null;for(de in g)if(j=g[de],g.hasOwnProperty(de)&&j!=null&&!v.hasOwnProperty(de))switch(de){case"value":break;case"children":break;default:ys(u,p,de,null,v,j)}for(Z in v)if(j=v[Z],P=g[Z],v.hasOwnProperty(Z)&&(j!=null||P!=null))switch(Z){case"value":et=j;break;case"defaultValue":st=j;break;case"children":break;case"dangerouslySetInnerHTML":if(j!=null)throw Error(a(91));break;default:j!==P&&ys(u,p,Z,j,v,P)}pf(u,et,st);return;case"option":for(var mn in g)if(et=g[mn],g.hasOwnProperty(mn)&&et!=null&&!v.hasOwnProperty(mn))switch(mn){case"selected":u.selected=!1;break;default:ys(u,p,mn,null,v,et)}for(De in v)if(et=v[De],st=g[De],v.hasOwnProperty(De)&&et!==st&&(et!=null||st!=null))switch(De){case"selected":u.selected=et&&typeof et!="function"&&typeof et!="symbol";break;default:ys(u,p,De,et,v,st)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Bn in g)et=g[Bn],g.hasOwnProperty(Bn)&&et!=null&&!v.hasOwnProperty(Bn)&&ys(u,p,Bn,null,v,et);for(Ze in v)if(et=v[Ze],st=g[Ze],v.hasOwnProperty(Ze)&&et!==st&&(et!=null||st!=null))switch(Ze){case"children":case"dangerouslySetInnerHTML":if(et!=null)throw Error(a(137,p));break;default:ys(u,p,Ze,et,v,st)}return;default:if(Dh(p)){for(var ws in g)et=g[ws],g.hasOwnProperty(ws)&&et!==void 0&&!v.hasOwnProperty(ws)&&Bw(u,p,ws,void 0,v,et);for(mt in v)et=v[mt],st=g[mt],!v.hasOwnProperty(mt)||et===st||et===void 0&&st===void 0||Bw(u,p,mt,et,v,st);return}}for(var $e in g)et=g[$e],g.hasOwnProperty($e)&&et!=null&&!v.hasOwnProperty($e)&&ys(u,p,$e,null,v,et);for(bt in v)et=v[bt],st=g[bt],!v.hasOwnProperty(bt)||et===st||et==null&&st==null||ys(u,p,bt,et,v,st)}function SS(u){switch(u){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function lK(){if(typeof performance.getEntriesByType=="function"){for(var u=0,p=0,g=performance.getEntriesByType("resource"),v=0;v<g.length;v++){var j=g[v],P=j.transferSize,Z=j.initiatorType,de=j.duration;if(P&&de&&SS(Z)){for(Z=0,de=j.responseEnd,v+=1;v<g.length;v++){var De=g[v],Ze=De.startTime;if(Ze>de)break;var mt=De.transferSize,bt=De.initiatorType;mt&&SS(bt)&&(De=De.responseEnd,Z+=mt*(De<de?1:(de-Ze)/(De-Ze)))}if(--v,p+=8*(P+Z)/(j.duration/1e3),u++,10<u)break}}if(0<u)return p/u/1e6}return navigator.connection&&(u=navigator.connection.downlink,typeof u=="number")?u:5}var Fw=null,Uw=null;function zv(u){return u.nodeType===9?u:u.ownerDocument}function _S(u){switch(u){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function PS(u,p){if(u===0)switch(p){case"svg":return 1;case"math":return 2;default:return 0}return u===1&&p==="foreignObject"?0:u}function Hw(u,p){return u==="textarea"||u==="noscript"||typeof p.children=="string"||typeof p.children=="number"||typeof p.children=="bigint"||typeof p.dangerouslySetInnerHTML=="object"&&p.dangerouslySetInnerHTML!==null&&p.dangerouslySetInnerHTML.__html!=null}var Vw=null;function uK(){var u=window.event;return u&&u.type==="popstate"?u===Vw?!1:(Vw=u,!0):(Vw=null,!1)}var DS=typeof setTimeout=="function"?setTimeout:void 0,dK=typeof clearTimeout=="function"?clearTimeout:void 0,RS=typeof Promise=="function"?Promise:void 0,mK=typeof queueMicrotask=="function"?queueMicrotask:typeof RS<"u"?function(u){return RS.resolve(null).then(u).catch(pK)}:DS;function pK(u){setTimeout(function(){throw u})}function Np(u){return u==="head"}function IS(u,p){var g=p,v=0;do{var j=g.nextSibling;if(u.removeChild(g),j&&j.nodeType===8)if(g=j.data,g==="/$"||g==="/&"){if(v===0){u.removeChild(j),Kf(p);return}v--}else if(g==="$"||g==="$?"||g==="$~"||g==="$!"||g==="&")v++;else if(g==="html")p1(u.ownerDocument.documentElement);else if(g==="head"){g=u.ownerDocument.head,p1(g);for(var P=g.firstChild;P;){var Z=P.nextSibling,de=P.nodeName;P[Nc]||de==="SCRIPT"||de==="STYLE"||de==="LINK"&&P.rel.toLowerCase()==="stylesheet"||g.removeChild(P),P=Z}}else g==="body"&&p1(u.ownerDocument.body);g=j}while(g);Kf(p)}function MS(u,p){var g=u;u=0;do{var v=g.nextSibling;if(g.nodeType===1?p?(g._stashedDisplay=g.style.display,g.style.display="none"):(g.style.display=g._stashedDisplay||"",g.getAttribute("style")===""&&g.removeAttribute("style")):g.nodeType===3&&(p?(g._stashedText=g.nodeValue,g.nodeValue=""):g.nodeValue=g._stashedText||""),v&&v.nodeType===8)if(g=v.data,g==="/$"){if(u===0)break;u--}else g!=="$"&&g!=="$?"&&g!=="$~"&&g!=="$!"||u++;g=v}while(g)}function zw(u){var p=u.firstChild;for(p&&p.nodeType===10&&(p=p.nextSibling);p;){var g=p;switch(p=p.nextSibling,g.nodeName){case"HTML":case"HEAD":case"BODY":zw(g),Pu(g);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(g.rel.toLowerCase()==="stylesheet")continue}u.removeChild(g)}}function hK(u,p,g,v){for(;u.nodeType===1;){var j=g;if(u.nodeName.toLowerCase()!==p.toLowerCase()){if(!v&&(u.nodeName!=="INPUT"||u.type!=="hidden"))break}else if(v){if(!u[Nc])switch(p){case"meta":if(!u.hasAttribute("itemprop"))break;return u;case"link":if(P=u.getAttribute("rel"),P==="stylesheet"&&u.hasAttribute("data-precedence"))break;if(P!==j.rel||u.getAttribute("href")!==(j.href==null||j.href===""?null:j.href)||u.getAttribute("crossorigin")!==(j.crossOrigin==null?null:j.crossOrigin)||u.getAttribute("title")!==(j.title==null?null:j.title))break;return u;case"style":if(u.hasAttribute("data-precedence"))break;return u;case"script":if(P=u.getAttribute("src"),(P!==(j.src==null?null:j.src)||u.getAttribute("type")!==(j.type==null?null:j.type)||u.getAttribute("crossorigin")!==(j.crossOrigin==null?null:j.crossOrigin))&&P&&u.hasAttribute("async")&&!u.hasAttribute("itemprop"))break;return u;default:return u}}else if(p==="input"&&u.type==="hidden"){var P=j.name==null?null:""+j.name;if(j.type==="hidden"&&u.getAttribute("name")===P)return u}else return u;if(u=dl(u.nextSibling),u===null)break}return null}function fK(u,p,g){if(p==="")return null;for(;u.nodeType!==3;)if((u.nodeType!==1||u.nodeName!=="INPUT"||u.type!=="hidden")&&!g||(u=dl(u.nextSibling),u===null))return null;return u}function LS(u,p){for(;u.nodeType!==8;)if((u.nodeType!==1||u.nodeName!=="INPUT"||u.type!=="hidden")&&!p||(u=dl(u.nextSibling),u===null))return null;return u}function $w(u){return u.data==="$?"||u.data==="$~"}function qw(u){return u.data==="$!"||u.data==="$?"&&u.ownerDocument.readyState!=="loading"}function gK(u,p){var g=u.ownerDocument;if(u.data==="$~")u._reactRetry=p;else if(u.data!=="$?"||g.readyState!=="loading")p();else{var v=function(){p(),g.removeEventListener("DOMContentLoaded",v)};g.addEventListener("DOMContentLoaded",v),u._reactRetry=v}}function dl(u){for(;u!=null;u=u.nextSibling){var p=u.nodeType;if(p===1||p===3)break;if(p===8){if(p=u.data,p==="$"||p==="$!"||p==="$?"||p==="$~"||p==="&"||p==="F!"||p==="F")break;
vendor: 12,201 bytes, line 50
50if(p==="/$"||p==="/&")return null}}return u}var Gw=null;function OS(u){u=u.nextSibling;for(var p=0;u;){if(u.nodeType===8){var g=u.data;if(g==="/$"||g==="/&"){if(p===0)return dl(u.nextSibling);p--}else g!=="$"&&g!=="$!"&&g!=="$?"&&g!=="$~"&&g!=="&"||p++}u=u.nextSibling}return null}function BS(u){u=u.previousSibling;for(var p=0;u;){if(u.nodeType===8){var g=u.data;if(g==="$"||g==="$!"||g==="$?"||g==="$~"||g==="&"){if(p===0)return u;p--}else g!=="/$"&&g!=="/&"||p++}u=u.previousSibling}return null}function FS(u,p,g){switch(p=zv(g),u){case"html":if(u=p.documentElement,!u)throw Error(a(452));return u;case"head":if(u=p.head,!u)throw Error(a(453));return u;case"body":if(u=p.body,!u)throw Error(a(454));return u;default:throw Error(a(451))}}function p1(u){for(var p=u.attributes;p.length;)u.removeAttributeNode(p[0]);Pu(u)}var ml=new Map,US=new Set;function $v(u){return typeof u.getRootNode=="function"?u.getRootNode():u.nodeType===9?u:u.ownerDocument}var km=K.d;K.d={f:xK,r:bK,D:vK,C:yK,L:wK,m:TK,X:kK,S:NK,M:jK};function xK(){var u=km.f(),p=Mv();return u||p}function bK(u){var p=jc(u);p!==null&&p.tag===5&&p.type==="form"?aC(p):km.r(u)}var Yf=typeof document>"u"?null:document;function HS(u,p,g){var v=Yf;if(v&&typeof p=="string"&&p){var j=kr(p);j='link[rel="'+u+'"][href="'+j+'"]',typeof g=="string"&&(j+='[crossorigin="'+g+'"]'),US.has(j)||(US.add(j),u={rel:u,crossOrigin:g,href:p},v.querySelector(j)===null&&(p=v.createElement("link"),no(p,"link",u),fr(p),v.head.appendChild(p)))}}function vK(u){km.D(u),HS("dns-prefetch",u,null)}function yK(u,p){km.C(u,p),HS("preconnect",u,p)}function wK(u,p,g){km.L(u,p,g);var v=Yf;if(v&&u&&p){var j='link[rel="preload"][as="'+kr(p)+'"]';p==="image"&&g&&g.imageSrcSet?(j+='[imagesrcset="'+kr(g.imageSrcSet)+'"]',typeof g.imageSizes=="string"&&(j+='[imagesizes="'+kr(g.imageSizes)+'"]')):j+='[href="'+kr(u)+'"]';var P=j;switch(p){case"style":P=Xf(u);break;case"script":P=Qf(u)}ml.has(P)||(u=h({rel:"preload",href:p==="image"&&g&&g.imageSrcSet?void 0:u,as:p},g),ml.set(P,u),v.querySelector(j)!==null||p==="style"&&v.querySelector(h1(P))||p==="script"&&v.querySelector(f1(P))||(p=v.createElement("link"),no(p,"link",u),fr(p),v.head.appendChild(p)))}}function TK(u,p){km.m(u,p);var g=Yf;if(g&&u){var v=p&&typeof p.as=="string"?p.as:"script",j='link[rel="modulepreload"][as="'+kr(v)+'"][href="'+kr(u)+'"]',P=j;switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":P=Qf(u)}if(!ml.has(P)&&(u=h({rel:"modulepreload",href:u},p),ml.set(P,u),g.querySelector(j)===null)){switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(g.querySelector(f1(P)))return}v=g.createElement("link"),no(v,"link",u),fr(v),g.head.appendChild(v)}}}function NK(u,p,g){km.S(u,p,g);var v=Yf;if(v&&u){var j=nl(v).hoistableStyles,P=Xf(u);p=p||"default";var Z=j.get(P);if(!Z){var de={loading:0,preload:null};if(Z=v.querySelector(h1(P)))de.loading=5;else{u=h({rel:"stylesheet",href:u,"data-precedence":p},g),(g=ml.get(P))&&Jw(u,g);var De=Z=v.createElement("link");fr(De),no(De,"link",u),De._p=new Promise(function(Ze,mt){De.onload=Ze,De.onerror=mt}),De.addEventListener("load",function(){de.loading|=1}),De.addEventListener("error",function(){de.loading|=2}),de.loading|=4,qv(Z,p,v)}Z={type:"stylesheet",instance:Z,count:1,state:de},j.set(P,Z)}}}function kK(u,p){km.X(u,p);var g=Yf;if(g&&u){var v=nl(g).hoistableScripts,j=Qf(u),P=v.get(j);P||(P=g.querySelector(f1(j)),P||(u=h({src:u,async:!0},p),(p=ml.get(j))&&Ww(u,p),P=g.createElement("script"),fr(P),no(P,"link",u),g.head.appendChild(P)),P={type:"script",instance:P,count:1,state:null},v.set(j,P))}}function jK(u,p){km.M(u,p);var g=Yf;if(g&&u){var v=nl(g).hoistableScripts,j=Qf(u),P=v.get(j);P||(P=g.querySelector(f1(j)),P||(u=h({src:u,async:!0,type:"module"},p),(p=ml.get(j))&&Ww(u,p),P=g.createElement("script"),fr(P),no(P,"link",u),g.head.appendChild(P)),P={type:"script",instance:P,count:1,state:null},v.set(j,P))}}function VS(u,p,g,v){var j=(j=me.current)?$v(j):null;if(!j)throw Error(a(446));switch(u){case"meta":case"title":return null;case"style":return typeof g.precedence=="string"&&typeof g.href=="string"?(p=Xf(g.href),g=nl(j).hoistableStyles,v=g.get(p),v||(v={type:"style",instance:null,count:0,state:null},g.set(p,v)),v):{type:"void",instance:null,count:0,state:null};case"link":if(g.rel==="stylesheet"&&typeof g.href=="string"&&typeof g.precedence=="string"){u=Xf(g.href);var P=nl(j).hoistableStyles,Z=P.get(u);if(Z||(j=j.ownerDocument||j,Z={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},P.set(u,Z),(P=j.querySelector(h1(u)))&&!P._p&&(Z.instance=P,Z.state.loading=5),ml.has(u)||(g={rel:"preload",as:"style",href:g.href,crossOrigin:g.crossOrigin,integrity:g.integrity,media:g.media,hrefLang:g.hrefLang,referrerPolicy:g.referrerPolicy},ml.set(u,g),P||AK(j,u,g,Z.state))),p&&v===null)throw Error(a(528,""));return Z}if(p&&v!==null)throw Error(a(529,""));return null;case"script":return p=g.async,g=g.src,typeof g=="string"&&p&&typeof p!="function"&&typeof p!="symbol"?(p=Qf(g),g=nl(j).hoistableScripts,v=g.get(p),v||(v={type:"script",instance:null,count:0,state:null},g.set(p,v)),v):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,u))}}function Xf(u){return'href="'+kr(u)+'"'}function h1(u){return'link[rel="stylesheet"]['+u+"]"}function zS(u){return h({},u,{"data-precedence":u.precedence,precedence:null})}function AK(u,p,g,v){u.querySelector('link[rel="preload"][as="style"]['+p+"]")?v.loading=1:(p=u.createElement("link"),v.preload=p,p.addEventListener("load",function(){return v.loading|=1}),p.addEventListener("error",function(){return v.loading|=2}),no(p,"link",g),fr(p),u.head.appendChild(p))}function Qf(u){return'[src="'+kr(u)+'"]'}function f1(u){return"script[async]"+u}function $S(u,p,g){if(p.count++,p.instance===null)switch(p.type){case"style":var v=u.querySelector('style[data-href~="'+kr(g.href)+'"]');if(v)return p.instance=v,fr(v),v;var j=h({},g,{"data-href":g.href,"data-precedence":g.precedence,href:null,precedence:null});return v=(u.ownerDocument||u).createElement("style"),fr(v),no(v,"style",j),qv(v,g.precedence,u),p.instance=v;case"stylesheet":j=Xf(g.href);var P=u.querySelector(h1(j));if(P)return p.state.loading|=4,p.instance=P,fr(P),P;v=zS(g),(j=ml.get(j))&&Jw(v,j),P=(u.ownerDocument||u).createElement("link"),fr(P);var Z=P;return Z._p=new Promise(function(de,De){Z.onload=de,Z.onerror=De}),no(P,"link",v),p.state.loading|=4,qv(P,g.precedence,u),p.instance=P;case"script":return P=Qf(g.src),(j=u.querySelector(f1(P)))?(p.instance=j,fr(j),j):(v=g,(j=ml.get(P))&&(v=h({},g),Ww(v,j)),u=u.ownerDocument||u,j=u.createElement("script"),fr(j),no(j,"link",v),u.head.appendChild(j),p.instance=j);case"void":return null;default:throw Error(a(443,p.type))}else p.type==="stylesheet"&&(p.state.loading&4)===0&&(v=p.instance,p.state.loading|=4,qv(v,g.precedence,u));return p.instance}function qv(u,p,g){for(var v=g.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),j=v.length?v[v.length-1]:null,P=j,Z=0;Z<v.length;Z++){var de=v[Z];if(de.dataset.precedence===p)P=de;else if(P!==j)break}P?P.parentNode.insertBefore(u,P.nextSibling):(p=g.nodeType===9?g.head:g,p.insertBefore(u,p.firstChild))}function Jw(u,p){u.crossOrigin==null&&(u.crossOrigin=p.crossOrigin),u.referrerPolicy==null&&(u.referrerPolicy=p.referrerPolicy),u.title==null&&(u.title=p.title)}function Ww(u,p){u.crossOrigin==null&&(u.crossOrigin=p.crossOrigin),u.referrerPolicy==null&&(u.referrerPolicy=p.referrerPolicy),u.integrity==null&&(u.integrity=p.integrity)}var Gv=null;function qS(u,p,g){if(Gv===null){var v=new Map,j=Gv=new Map;j.set(g,v)}else j=Gv,v=j.get(g),v||(v=new Map,j.set(g,v));if(v.has(u))return v;for(v.set(u,null),g=g.getElementsByTagName(u),j=0;j<g.length;j++){var P=g[j];if(!(P[Nc]||P[ms]||u==="link"&&P.getAttribute("rel")==="stylesheet")&&P.namespaceURI!=="http://www.w3.org/2000/svg"){var Z=P.getAttribute(p)||"";Z=u+Z;var de=v.get(Z);de?de.push(P):v.set(Z,[P])}}return v}function GS(u,p,g){u=u.ownerDocument||u,u.head.insertBefore(g,p==="title"?u.querySelector("head > title"):null)}function EK(u,p,g){if(g===1||p.itemProp!=null)return!1;switch(u){case"meta":case"title":return!0;case"style":if(typeof p.precedence!="string"||typeof p.href!="string"||p.href==="")break;return!0;case"link":if(typeof p.rel!="string"||typeof p.href!="string"||p.href===""||p.onLoad||p.onError)break;switch(p.rel){case"stylesheet":return u=p.disabled,typeof p.precedence=="string"&&u==null;default:return!0}case"script":if(p.async&&typeof p.async!="function"&&typeof p.async!="symbol"&&!p.onLoad&&!p.onError&&p.src&&typeof p.src=="string")return!0}return!1}function JS(u){return!(u.type==="stylesheet"&&(u.state.loading&3)===0)}function CK(u,p,g,v){if(g.type==="stylesheet"&&(typeof v.media!="string"||matchMedia(v.media).matches!==!1)&&(g.state.loading&4)===0){if(g.instance===null){var j=Xf(v.href),P=p.querySelector(h1(j));if(P){p=P._p,p!==null&&typeof p=="object"&&typeof p.then=="function"&&(u.count++,u=Jv.bind(u),p.then(u,u)),g.state.loading|=4,g.instance=P,fr(P);return}P=p.ownerDocument||p,v=zS(v),(j=ml.get(j))&&Jw(v,j),P=P.createElement("link"),fr(P);var Z=P;Z._p=new Promise(function(de,De){Z.onload=de,Z.onerror=De}),no(P,"link",v),g.instance=P}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(g,p),(p=g.state.preload)&&(g.state.loading&3)===0&&(u.count++,g=Jv.bind(u),p.addEventListener("load",g),p.addEventListener("error",g))}}var Yw=0;function SK(u,p){return u.stylesheets&&u.count===0&&Yv(u,u.stylesheets),0<u.count||0<u.imgCount?function(g){var v=setTimeout(function(){if(u.stylesheets&&Yv(u,u.stylesheets),u.unsuspend){var P=u.unsuspend;u.unsuspend=null,P()}},6e4+p);0<u.imgBytes&&Yw===0&&(Yw=62500*lK());var j=setTimeout(function(){if(u.waitingForImages=!1,u.count===0&&(u.stylesheets&&Yv(u,u.stylesheets),u.unsuspend)){var P=u.unsuspend;u.unsuspend=null,P()}},(u.imgBytes>Yw?50:800)+p);return u.unsuspend=g,function(){u.unsuspend=null,clearTimeout(v),clearTimeout(j)}}:null}function Jv(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Yv(this,this.stylesheets);else if(this.unsuspend){var u=this.unsuspend;this.unsuspend=null,u()}}}var Wv=null;function Yv(u,p){u.stylesheets=null,u.unsuspend!==null&&(u.count++,Wv=new Map,p.forEach(_K,u),Wv=null,Jv.call(u))}function _K(u,p){if(!(p.state.loading&4)){var g=Wv.get(u);if(g)var v=g.get(null);else{g=new Map,Wv.set(u,g);for(var j=u.querySelectorAll("link[data-precedence],style[data-precedence]"),P=0;P<j.length;P++){var Z=j[P];(Z.nodeName==="LINK"||Z.getAttribute("media")!=="not all")&&(g.set(Z.dataset.precedence,Z),v=Z)}v&&g.set(null,v)}j=p.instance,Z=j.getAttribute("data-precedence"),P=g.get(Z)||v,P===v&&g.set(null,j),g.set(Z,j),this.count++,v=Jv.bind(this),j.addEventListener("load",v),j.addEventListener("error",v),P?P.parentNode.insertBefore(j,P.nextSibling):(u=u.nodeType===9?u.head:u,u.insertBefore(j,u.firstChild)),p.state.loading|=4}}var g1={$$typeof:E,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function PK(u,p,g,v,j,P,Z,de,De){this.tag=1,this.containerInfo=u,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=mi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mi(0),this.hiddenUpdates=mi(null),this.identifierPrefix=v,this.onUncaughtError=j,this.onCaughtError=P,this.onRecoverableError=Z,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=De,this.incompleteTransitions=new Map}function WS(u,p,g,v,j,P,Z,de,De,Ze,mt,bt){return u=new PK(u,p,g,Z,De,Ze,mt,bt,de),p=1,P===!0&&(p|=24),P=Mi(3,null,null,p),u.current=P,P.stateNode=u,p=dp(),p.refCount++,u.pooledCache=p,p.refCount++,P.memoizedState={element:v,isDehydrated:g,cache:p},Ft(P),u}function YS(u){return u?(u=gi,u):gi}function XS(u,p,g,v,j,P){j=YS(j),v.context===null?v.context=j:v.pendingContext=j,v=
vendor: 9,484 bytes, line 50
50In(p),v.payload={element:g},P=P===void 0?null:P,P!==null&&(v.callback=P),g=ra(u,v,p),g!==null&&(oc(g,u,p),Qa(g,u,p))}function QS(u,p){if(u=u.memoizedState,u!==null&&u.dehydrated!==null){var g=u.retryLane;u.retryLane=g!==0&&g<p?g:p}}function Xw(u,p){QS(u,p),(u=u.alternate)&&QS(u,p)}function KS(u){if(u.tag===13||u.tag===31){var p=Kl(u,67108864);p!==null&&oc(p,u,67108864),Xw(u,67108864)}}function ZS(u){if(u.tag===13||u.tag===31){var p=Fc();p=ds(p);var g=Kl(u,p);g!==null&&oc(g,u,p),Xw(u,p)}}var Xv=!0;function DK(u,p,g,v){var j=G.T;G.T=null;var P=K.p;try{K.p=2,Qw(u,p,g,v)}finally{K.p=P,G.T=j}}function RK(u,p,g,v){var j=G.T;G.T=null;var P=K.p;try{K.p=8,Qw(u,p,g,v)}finally{K.p=P,G.T=j}}function Qw(u,p,g,v){if(Xv){var j=Kw(v);if(j===null)Ow(u,p,v,Qv,g),t_(u,v);else if(MK(j,u,p,g,v))v.stopPropagation();else if(t_(u,v),p&4&&-1<IK.indexOf(u)){for(;j!==null;){var P=jc(j);if(P!==null)switch(P.tag){case 3:if(P=P.stateNode,P.current.memoizedState.isDehydrated){var Z=qt(P.pendingLanes);if(Z!==0){var de=P;for(de.pendingLanes|=2,de.entangledLanes|=2;Z;){var De=1<<31-bn(Z);de.entanglements[1]|=De,Z&=~De}nd(P),(Za&6)===0&&(Rv=wn()+500,u1(0))}}break;case 31:case 13:de=Kl(P,2),de!==null&&oc(de,P,2),Mv(),Xw(P,2)}if(P=Kw(v),P===null&&Ow(u,p,v,Qv,g),P===j)break;j=P}j!==null&&v.stopPropagation()}else Ow(u,p,v,null,g)}}function Kw(u){return u=Rh(u),Zw(u)}var Qv=null;function Zw(u){if(Qv=null,u=kc(u),u!==null){var p=i(u);if(p===null)u=null;else{var g=p.tag;if(g===13){if(u=o(p),u!==null)return u;u=null}else if(g===31){if(u=c(p),u!==null)return u;u=null}else if(g===3){if(p.stateNode.current.memoizedState.isDehydrated)return p.tag===3?p.stateNode.containerInfo:null;u=null}else p!==u&&(u=null)}}return Qv=u,null}function e_(u){switch(u){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Hn()){case qe:return 2;case dt:return 8;case Dt:case yt:return 32;case Mt:return 268435456;default:return 32}default:return 32}}var eT=!1,kp=null,jp=null,Ap=null,x1=new Map,b1=new Map,Ep=[],IK="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".split(" ");function t_(u,p){switch(u){case"focusin":case"focusout":kp=null;break;case"dragenter":case"dragleave":jp=null;break;case"mouseover":case"mouseout":Ap=null;break;case"pointerover":case"pointerout":x1.delete(p.pointerId);break;case"gotpointercapture":case"lostpointercapture":b1.delete(p.pointerId)}}function v1(u,p,g,v,j,P){return u===null||u.nativeEvent!==P?(u={blockedOn:p,domEventName:g,eventSystemFlags:v,nativeEvent:P,targetContainers:[j]},p!==null&&(p=jc(p),p!==null&&KS(p)),u):(u.eventSystemFlags|=v,p=u.targetContainers,j!==null&&p.indexOf(j)===-1&&p.push(j),u)}function MK(u,p,g,v,j){switch(p){case"focusin":return kp=v1(kp,u,p,g,v,j),!0;case"dragenter":return jp=v1(jp,u,p,g,v,j),!0;case"mouseover":return Ap=v1(Ap,u,p,g,v,j),!0;case"pointerover":var P=j.pointerId;return x1.set(P,v1(x1.get(P)||null,u,p,g,v,j)),!0;case"gotpointercapture":return P=j.pointerId,b1.set(P,v1(b1.get(P)||null,u,p,g,v,j)),!0}return!1}function n_(u){var p=kc(u.target);if(p!==null){var g=i(p);if(g!==null){if(p=g.tag,p===13){if(p=o(g),p!==null){u.blockedOn=p,_u(u.priority,function(){ZS(g)});return}}else if(p===31){if(p=c(g),p!==null){u.blockedOn=p,_u(u.priority,function(){ZS(g)});return}}else if(p===3&&g.stateNode.current.memoizedState.isDehydrated){u.blockedOn=g.tag===3?g.stateNode.containerInfo:null;return}}}u.blockedOn=null}function Kv(u){if(u.blockedOn!==null)return!1;for(var p=u.targetContainers;0<p.length;){var g=Kw(u.nativeEvent);if(g===null){g=u.nativeEvent;var v=new g.constructor(g.type,g);sl=v,g.target.dispatchEvent(v),sl=null}else return p=jc(g),p!==null&&KS(p),u.blockedOn=g,!1;p.shift()}return!0}function a_(u,p,g){Kv(u)&&g.delete(p)}function LK(){eT=!1,kp!==null&&Kv(kp)&&(kp=null),jp!==null&&Kv(jp)&&(jp=null),Ap!==null&&Kv(Ap)&&(Ap=null),x1.forEach(a_),b1.forEach(a_)}function Zv(u,p){u.blockedOn===p&&(u.blockedOn=null,eT||(eT=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,LK)))}var ey=null;function s_(u){ey!==u&&(ey=u,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){ey===u&&(ey=null);for(var p=0;p<u.length;p+=3){var g=u[p],v=u[p+1],j=u[p+2];if(typeof v!="function"){if(Zw(v||g)===null)continue;break}var P=jc(g);P!==null&&(u.splice(p,3),p-=3,K6(P,{pending:!0,data:j,method:g.method,action:v},v,j))}}))}function Kf(u){function p(De){return Zv(De,u)}kp!==null&&Zv(kp,u),jp!==null&&Zv(jp,u),Ap!==null&&Zv(Ap,u),x1.forEach(p),b1.forEach(p);for(var g=0;g<Ep.length;g++){var v=Ep[g];v.blockedOn===u&&(v.blockedOn=null)}for(;0<Ep.length&&(g=Ep[0],g.blockedOn===null);)n_(g),g.blockedOn===null&&Ep.shift();if(g=(u.ownerDocument||u).$$reactFormReplay,g!=null)for(v=0;v<g.length;v+=3){var j=g[v],P=g[v+1],Z=j[$s]||null;if(typeof P=="function")Z||s_(g);else if(Z){var de=null;if(P&&P.hasAttribute("formAction")){if(j=P,Z=P[$s]||null)de=Z.formAction;else if(Zw(j)!==null)continue}else de=Z.action;typeof de=="function"?g[v+1]=de:(g.splice(v,3),v-=3),s_(g)}}}function r_(){function u(P){P.canIntercept&&P.info==="react-transition"&&P.intercept({handler:function(){return new Promise(function(Z){return j=Z})},focusReset:"manual",scroll:"manual"})}function p(){j!==null&&(j(),j=null),v||setTimeout(g,20)}function g(){if(!v&&!navigation.transition){var P=navigation.currentEntry;P&&P.url!=null&&navigation.navigate(P.url,{state:P.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var v=!1,j=null;return navigation.addEventListener("navigate",u),navigation.addEventListener("navigatesuccess",p),navigation.addEventListener("navigateerror",p),setTimeout(g,100),function(){v=!0,navigation.removeEventListener("navigate",u),navigation.removeEventListener("navigatesuccess",p),navigation.removeEventListener("navigateerror",p),j!==null&&(j(),j=null)}}}function tT(u){this._internalRoot=u}ty.prototype.render=tT.prototype.render=function(u){var p=this._internalRoot;if(p===null)throw Error(a(409));var g=p.current,v=Fc();XS(g,v,u,p,null,null)},ty.prototype.unmount=tT.prototype.unmount=function(){var u=this._internalRoot;if(u!==null){this._internalRoot=null;var p=u.containerInfo;XS(u.current,2,null,u,null,null),Mv(),p[Ci]=null}};function ty(u){this._internalRoot=u}ty.prototype.unstable_scheduleHydration=function(u){if(u){var p=Ur();u={blockedOn:null,target:u,priority:p};for(var g=0;g<Ep.length&&p!==0&&p<Ep[g].priority;g++);Ep.splice(g,0,u),g===0&&n_(u)}};var i_=t.version;if(i_!=="19.2.1")throw Error(a(527,i_,"19.2.1"));K.findDOMNode=function(u){var p=u._reactInternals;if(p===void 0)throw typeof u.render=="function"?Error(a(188)):(u=Object.keys(u).join(","),Error(a(268,u)));return u=d(p),u=u!==null?m(u):null,u=u===null?null:u.stateNode,u};var OK={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ny=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ny.isDisabled&&ny.supportsFiber)try{jn=ny.inject(OK),Qt=ny}catch{}}return T1.createRoot=function(u,p){if(!r(u))throw Error(a(299));var g=!1,v="",j=pC,P=hC,Z=fC;return p!=null&&(p.unstable_strictMode===!0&&(g=!0),p.identifierPrefix!==void 0&&(v=p.identifierPrefix),p.onUncaughtError!==void 0&&(j=p.onUncaughtError),p.onCaughtError!==void 0&&(P=p.onCaughtError),p.onRecoverableError!==void 0&&(Z=p.onRecoverableError)),p=WS(u,1,!1,null,null,g,v,null,j,P,Z,r_),u[Ci]=p.current,Lw(u),new tT(p)},T1.hydrateRoot=function(u,p,g){if(!r(u))throw Error(a(299));var v=!1,j="",P=pC,Z=hC,de=fC,De=null;return g!=null&&(g.unstable_strictMode===!0&&(v=!0),g.identifierPrefix!==void 0&&(j=g.identifierPrefix),g.onUncaughtError!==void 0&&(P=g.onUncaughtError),g.onCaughtError!==void 0&&(Z=g.onCaughtError),g.onRecoverableError!==void 0&&(de=g.onRecoverableError),g.formState!==void 0&&(De=g.formState)),p=WS(u,1,!0,p,g??null,v,j,De,P,Z,de,r_),p.context=YS(null),g=p.current,v=Fc(),v=ds(v),j=In(v),j.callback=null,ra(g,j,v),g=v,p.current.lanes=g,Wt(p,g),nd(p),u[Ci]=p.current,Lw(u),new ty(p)},T1.version="19.2.1",T1}var I_;function ate(){if(I_)return cT.exports;I_=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}
50return e(),cT.exports=nte(),cT.exports}var ste=ate(),rte=(function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(t,n){this.keyToValue.set(t,n),this.valueToKey.set(n,t)},e.prototype.getByKey=function(t){return this.keyToValue.get(t)},e.prototype.getByValue=function(t){return this.valueToKey.get(t)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e})(),pF=(function(){function e(t){this.generateIdentifier=t,this.kv=new rte}return e.prototype.register=function(t,n){this.kv.getByValue(t)||(n||(n=this.generateIdentifier(t)),this.kv.set(n,t))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(t){return this.kv.getByValue(t)},e.prototype.getValue=function(t){return this.kv.getByKey(t)},e})(),ite=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(a[i]=r[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function a(){this.constructor=t}t.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}})(),ote=(function(e){ite(t,e);function t(){var n=e.call(this,function(a){return a.name})||this;return n.classToAllowedProps=new Map,n}return t.prototype.register=function(n,a){typeof a=="object"?(a.allowProps&&this.classToAllowedProps.set(n,a.allowProps),e.prototype.register.call(this,n,a.identifier)):e.prototype.register.call(this,n,a)},t.prototype.getAllowedProps=function(n){return this.classToAllowedProps.get(n)},t})(pF),cte=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var a=n.call(e),r,i=[],o;try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(c){o={error:c}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};function lte(e){if("values"in Object)return Object.values(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function ute(e,t){var n=lte(e);if("find"in n)return n.find(t);for(var a=n,r=0;r<a.length;r++){var i=a[r];if(t(i))return i}}function tx(e,t){Object.entries(e).forEach(function(n){var a=cte(n,2),r=a[0],i=a[1];return t(i,r)})}function L5(e,t){return e.indexOf(t)!==-1}function M_(e,t){for(var n=0;n<e.length;n++){var a=e[n];if(t(a))return a}}var dte=(function(){function e(){this.transfomers={}}return e.prototype.register=function(t){this.transfomers[t.name]=t},e.prototype.findApplicable=function(t){return ute(this.transfomers,function(n){return n.isApplicable(t)})},e.prototype.findByName=function(t){return this.transfomers[t]},e})(),mte=function(e){return Object.prototype.toString.call(e).slice(8,-1)},hF=function(e){return typeof e>"u"},pte=function(e){return e===null},zb=function(e){return typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype},ik=function(e){return zb(e)&&Object.keys(e).length===0},sh=function(e){return Array.isArray(e)},hte=function(e){return typeof e=="string"},fte=function(e){return typeof e=="number"&&!isNaN(e)},gte=function(e){return typeof e=="boolean"},xte=function(e){return e instanceof RegExp},$b=function(e){return e instanceof Map},qb=function(e){return e instanceof Set},fF=function(e){return mte(e)==="Symbol"},bte=function(e){return e instanceof Date&&!isNaN(e.valueOf())},vte=function(e){return e instanceof Error},L_=function(e){return typeof e=="number"&&isNaN(e)},yte=function(e){return gte(e)||pte(e)||hF(e)||fte(e)||hte(e)||fF(e)},wte=function(e){return typeof e=="bigint"},Tte=function(e){return e===1/0||e===-1/0},Nte=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},kte=function(e){return e instanceof URL},gF=function(e){return e.replace(/\./g,"\\.")},mT=function(e){return e.map(String).map(gF).join(".")},hb=function(e){for(var t=[],n="",a=0;a<e.length;a++){var r=e.charAt(a),i=r==="\\"&&e.charAt(a+1)===".";if(i){n+=".",a++;continue}var o=r===".";if(o){t.push(n),n="";continue}n+=r}var c=n;return t.push(c),t},ok=function(){return ok=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ok.apply(this,arguments)},ck=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var a=n.call(e),r,i=[],o;try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(c){o={error:c}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},lk=function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};function ad(e,t,n,a){return{isApplicable:e,annotation:t,transform:n,untransform:a}}var xF=[ad(hF,"undefined",function(){return null},function(){}),ad(wte,"bigint",function(e){return e.toString()},function(e){return typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),ad(bte,"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),ad(vte,"Error",function(e,t){var n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(a){n[a]=e[a]}),n},function(e,t){var n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(function(a){n[a]=e[a]}),n}),ad(xte,"regexp",function(e){return""+e},function(e){var t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}
50),ad(qb,"set",function(e){return lk([],ck(e.values()))},function(e){return new Set(e)}),ad($b,"map",function(e){return lk([],ck(e.entries()))},function(e){return new Map(e)}),ad(function(e){return L_(e)||Tte(e)},"number",function(e){return L_(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),ad(function(e){return e===0&&1/e===-1/0},"number",function(){return"-0"},Number),ad(kte,"URL",function(e){return e.toString()},function(e){return new URL(e)})];function A4(e,t,n,a){return{isApplicable:e,annotation:t,transform:n,untransform:a}}var bF=A4(function(e,t){if(fF(e)){var n=!!t.symbolRegistry.getIdentifier(e);return n}return!1},function(e,t){var n=t.symbolRegistry.getIdentifier(e);return["symbol",n]},function(e){return e.description},function(e,t,n){var a=n.symbolRegistry.getValue(t[1]);if(!a)throw new Error("Trying to deserialize unknown symbol");return a}),jte=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),vF=A4(Nte,function(e){return["typed-array",e.constructor.name]},function(e){return lk([],ck(e))},function(e,t){var n=jte[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function yF(e,t){if(e?.constructor){var n=!!t.classRegistry.getIdentifier(e.constructor);return n}return!1}var wF=A4(yF,function(e,t){var n=t.classRegistry.getIdentifier(e.constructor);return["class",n]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return ok({},e);var a={};return n.forEach(function(r){a[r]=e[r]}),a},function(e,t,n){var a=n.classRegistry.getValue(t[1]);if(!a)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(a.prototype),e)}),TF=A4(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){var n=t.customTransformerRegistry.findApplicable(e);return["custom",n.name]},function(e,t){var n=t.customTransformerRegistry.findApplicable(e);return n.serialize(e)},function(e,t,n){var a=n.customTransformerRegistry.findByName(t[1]);if(!a)throw new Error("Trying to deserialize unknown custom value");return a.deserialize(e)}),Ate=[wF,bF,TF,vF],O_=function(e,t){var n=M_(Ate,function(r){return r.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var a=M_(xF,function(r){return r.isApplicable(e,t)});if(a)return{value:a.transform(e,t),type:a.annotation}},NF={};xF.forEach(function(e){NF[e.annotation]=e});var Ete=function(e,t,n){if(sh(t))switch(t[0]){case"symbol":return bF.untransform(e,t,n);case"class":return wF.untransform(e,t,n);case"custom":return TF.untransform(e,t,n);case"typed-array":return vF.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{var a=NF[t];if(!a)throw new Error("Unknown transformation: "+t);return a.untransform(e,n)}},Pg=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function kF(e){if(L5(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(L5(e,"prototype"))throw new Error("prototype is not allowed as a property");if(L5(e,"constructor"))throw new Error("constructor is not allowed as a property")}var Cte=function(e,t){kF(t);for(var n=0;n<t.length;n++){var a=t[n];if(qb(e))e=Pg(e,+a);else if($b(e)){var r=+a,i=+t[++n]==0?"key":"value",o=Pg(e,r);switch(i){case"key":e=o;break;case"value":e=e.get(o);break}}else e=e[a]}return e},uk=function(e,t,n){if(kF(t),t.length===0)return n(e);for(var a=e,r=0;r<t.length-1;r++){var i=t[r];if(sh(a)){var o=+i;a=a[o]}else if(zb(a))a=a[i];else if(qb(a)){var c=+i;a=Pg(a,c)}else if($b(a)){var l=r===t.length-2;if(l)break;var c=+i,d=+t[++r]==0?"key":"value",m=Pg(a,c);switch(d){case"key":a=m;break;case"value":a=a.get(m);break}}}var h=t[t.length-1];if(sh(a)?a[+h]=n(a[+h]):zb(a)&&(a[h]=n(a[h])),qb(a)){var x=Pg(a,+h),f=n(x);x!==f&&(a.delete(x),a.add(f))}if($b(a)){var c=+t[t.length-2],b=Pg(a,c),d=+h==0?"key":"value";switch(d){case"key":{var y=n(b);a.set(y,a.get(b)),y!==b&&a.delete(b);break}case"value":{a.set(b,n(a.get(b)));break}}}return e},Rm=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var a=n.call(e),r,i=[],o;try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(c){o={error:c}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Xp=function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};function dk(e,t,n){if(n===void 0&&(n=[]),!!e){if(!sh(e)){tx(e,function(o,c){return dk(o,t,Xp(Xp([],Rm(n)),Rm(hb(c))))});return}var a=Rm(e,2),r=a[0],i=a[1];i&&tx(i,function(o,c){dk(o,t,Xp(Xp([],Rm(n)),Rm(hb(c))))}),t(r,n)}}function Ste(e,t,n){return dk(t,function(a,r){e=uk(e,r,function(i){return Ete(i,a,n)})}),e}function _te(e,t){function n(o,c){var l=Cte(e,hb(c));o.map(hb).forEach(function(d){e=uk(e,d,function(){return l})})}if(sh(t)){var a=Rm(t,2),r=a[0],i=a[1];r.forEach(function(o){e=uk(e,hb(o),function(){return e})}),i&&tx(i,n)}else tx(t,n);return e}var Pte=function(e,t){return zb(e)||sh(e)||$b(e)||qb(e)||yF(e,t)};function Dte(e,t,n){var a=n.get(e);a?a.push(t):n.set(e,[t])}function Rte(e,t){var n={},a=void 0;return e.forEach(function(r){if(!(r.length<=1)){t||(r=r.map(function(l){return l.map(String)}).sort(function(l,d){return l.length-d.length}));var i=Rm(r),o=i[0],c=i.slice(1);o.length===0?a=c.map(mT):n[mT(o)]=c.map(mT)}}),a?ik(n)?[a]:[a,n]:ik(n)?void 0:n}var jF=function(e,t,n,a,r,i,o){var c;r===void 0&&(r=[]),i===void 0&&(i=[]),o===void 0&&(o=new Map);var l=yte(e);if(!l){Dte(e,r,t);var d=o.get(e);if(d)return a?{transformedValue:null}:d}if(!Pte(e,n)){var m=O_(e,n),h=m?{transformedValue:m.value,annotations:[m.type]}:{transformedValue:e};return l||o.set(e,h),h}if(L5(i,e))return{transformedValue:null};var x=O_(e,n),f=(c=x?.value)!==null&&c!==void 0?c:e,b=sh(f)?[]:{},y={};tx(f,function(T,A){var E=jF(T,t,n,a,Xp(Xp([],Rm(r)),[A]),Xp(Xp([],Rm(i)),[e]),o);
50b[A]=E.transformedValue,sh(E.annotations)?y[A]=E.annotations:zb(E.annotations)&&tx(E.annotations,function(D,S){y[gF(A)+"."+S]=D})});var w=ik(y)?{transformedValue:b,annotations:x?[x.type]:void 0}:{transformedValue:b,annotations:x?[x.type,y]:y};return l||o.set(e,w),w};function AF(e){return Object.prototype.toString.call(e).slice(8,-1)}function B_(e){return AF(e)==="Array"}function Ite(e){if(AF(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Mte(e,t,n,a,r){const i={}.propertyIsEnumerable.call(a,t)?"enumerable":"nonenumerable";i==="enumerable"&&(e[t]=n),r&&i==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function mk(e,t={}){if(B_(e))return e.map(r=>mk(r,t));if(!Ite(e))return e;const n=Object.getOwnPropertyNames(e),a=Object.getOwnPropertySymbols(e);return[...n,...a].reduce((r,i)=>{if(B_(t.props)&&!t.props.includes(i))return r;const o=e[i],c=mk(o,t);return Mte(r,i,c,e,t.nonenumerable),r},{})}var x0=function(){return x0=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},x0.apply(this,arguments)},Lte=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var a=n.call(e),r,i=[],o;try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(c){o={error:c}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Ote=function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e},Ad=(function(){function e(t){var n=t===void 0?{}:t,a=n.dedupe,r=a===void 0?!1:a;this.classRegistry=new ote,this.symbolRegistry=new pF(function(i){var o;return(o=i.description)!==null&&o!==void 0?o:""}),this.customTransformerRegistry=new dte,this.allowedErrorProps=[],this.dedupe=r}return e.prototype.serialize=function(t){var n=new Map,a=jF(t,n,this,this.dedupe),r={json:a.transformedValue};a.annotations&&(r.meta=x0(x0({},r.meta),{values:a.annotations}));var i=Rte(n,this.dedupe);return i&&(r.meta=x0(x0({},r.meta),{referentialEqualities:i})),r},e.prototype.deserialize=function(t){var n=t.json,a=t.meta,r=mk(n);return a?.values&&(r=Ste(r,a.values,this)),a?.referentialEqualities&&(r=_te(r,a.referentialEqualities)),r},e.prototype.stringify=function(t){return JSON.stringify(this.serialize(t))},e.prototype.parse=function(t){return this.deserialize(JSON.parse(t))},e.prototype.registerClass=function(t,n){this.classRegistry.register(t,n)},e.prototype.registerSymbol=function(t,n){this.symbolRegistry.register(t,n)},e.prototype.registerCustom=function(t,n){this.customTransformerRegistry.register(x0({name:n},t))},e.prototype.allowErrorProps=function(){for(var t,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];(t=this.allowedErrorProps).push.apply(t,Ote([],Lte(n)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e})();Ad.serialize;Ad.deserialize;Ad.stringify;Ad.parse;Ad.registerClass;Ad.registerCustom;Ad.registerSymbol;Ad.allowErrorProps;var Bte=(e,t,n,a,r,i,o,c)=>{let l=document.documentElement,d=["light","dark"];function m(f){(Array.isArray(e)?e:[e]).forEach(b=>{let y=b==="class",w=y&&i?r.map(T=>i[T]||T):r;y?(l.classList.remove(...w),l.classList.add(i&&i[f]?i[f]:f)):l.setAttribute(b,f)}),h(f)}function h(f){c&&d.includes(f)&&(l.style.colorScheme=f)}function x(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(a)m(a);else try{let f=localStorage.getItem(t)||n,b=o&&f==="system"?x():f;m(b)}catch{}},Fte=k.createContext(void 0),Ute={setTheme:e=>{},themes:[]},Hte=()=>{var e;return(e=k.useContext(Fte))!=null?e:Ute};k.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:a,enableColorScheme:r,defaultTheme:i,value:o,themes:c,nonce:l,scriptProps:d})=>{let m=JSON.stringify([n,t,i,e,c,o,a,r]).slice(1,-1);return k.createElement("script",{...d,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${Bte.toString()})(${m})`}})});var D2=mF();const EF=v4(D2);function Vte(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const zte=e=>{switch(e){case"success":return Gte;case"info":return Wte;case"warning":return Jte;case"error":return Yte;default:return null}},$te=Array(12).fill(0),qte=({visible:e,className:t})=>Lt.createElement("div",{className:["sonner-loading-wrapper",t].filter(
vendor: 6,058 bytes, line 50
50Boolean).join(" "),"data-visible":e},Lt.createElement("div",{className:"sonner-spinner"},$te.map((n,a)=>Lt.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),Gte=Lt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Lt.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"})),Jte=Lt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Lt.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"})),Wte=Lt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Lt.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"})),Yte=Lt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Lt.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"})),Xte=Lt.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"},Lt.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Lt.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Qte=()=>{const[e,t]=Lt.useState(document.hidden);return Lt.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let pk=1;class Kte{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:a,...r}=t,i=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:pk++,o=this.toasts.find(l=>l.id===i),c=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),o?this.toasts=this.toasts.map(l=>l.id===i?(this.publish({...l,...t,id:i,title:a}),{...l,...t,id:i,dismissible:c,title:a}):l):this.addToast({title:a,...r,dismissible:c,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(a=>a({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let a;n.loading!==void 0&&(a=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const r=Promise.resolve(t instanceof Function?t():t);let i=a!==void 0,o;const c=r.then(async d=>{if(o=["resolve",d],Lt.isValidElement(d))i=!1,this.create({id:a,type:"default",message:d});else if(ene(d)&&!d.ok){i=!1;const h=typeof n.error=="function"?await n.error(`HTTP error! status: ${d.status}`):n.error,x=typeof n.description=="function"?await n.description(`HTTP error! status: ${d.status}`):n.description,b=typeof h=="object"&&!Lt.isValidElement(h)?h:{message:h};this.create({id:a,type:"error",description:x,...b})}else if(d instanceof Error){i=!1;const h=typeof n.error=="function"?await n.error(d):n.error,x=typeof n.description=="function"?await n.description(d):n.description,b=typeof h=="object"&&!Lt.isValidElement(h)?h:{message:h};this.create({id:a,type:"error",description:x,...b})}else if(n.success!==void 0){i=!1;const h=typeof n.success=="function"?await n.success(d):n.success,x=typeof n.description=="function"?await n.description(d):n.description,b=typeof h=="object"&&!Lt.isValidElement(h)?h:{message:h};this.create({id:a,type:"success",description:x,...b})}}).catch(async d=>{if(o=["reject",d],n.error!==void 0){i=!1;const m=typeof n.error=="function"?await n.error(d):n.error,h=typeof n.description=="function"?await n.description(d):n.description,f=typeof m=="object"&&!Lt.isValidElement(m)?m:{message:m};this.create({id:a,type:"error",description:h,...f})}}).finally(()=>{i&&(this.dismiss(a),a=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((d,m)=>c.then(()=>o[0]==="reject"?m(o[1]):d(o[1])).catch(m));return typeof a!="string"&&typeof a!="number"?{unwrap:l}:Object.assign(a,{unwrap:l})},this.custom=(t,n)=>{const a=n?.id||pk++;return this.create({jsx:t(a),id:a,...n}),a},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const pc=new Kte,Zte=(e,t)=>{const n=t?.id||pk++;return pc.addToast({title:e,...t,id:n}),n},ene=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",tne=Zte,nne=()=>pc.toasts,ane=()=>pc.getActiveToasts(),Le=Object.assign(tne,{success:pc.success,info:pc.info,warning:pc.warning,error:pc.error,custom:pc.custom,message:pc.message,promise:pc.promise,dismiss:pc.dismiss,loading:pc.loading},{getHistory:nne,getToasts:ane});V
vendor: 14,875 bytes, line 50
50te("[data-sonner-toaster][dir=ltr],html[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%)}[data-sonner-toaster][dir=rtl],html[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%)}[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:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[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);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[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 rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [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)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [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;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left: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);background:var(--normal-bg);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-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[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}[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}[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,0)) translateX(var(--swipe-amount-x,0));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{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{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{from{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-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--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-sonner-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-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-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, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-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-sonner-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]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[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]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[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]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[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]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[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:first-child{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)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{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%)}");function
vendor: 924 bytes, line 50
50oy(e){return e.label!==void 0}const sne=3,rne="24px",ine="16px",F_=4e3,one=356,cne=14,lne=45,une=200;function sd(...e){return e.filter(Boolean).join(" ")}function dne(e){const[t,n]=e.split("-"),a=[];return t&&a.push(t),n&&a.push(n),a}const mne=e=>{var t,n,a,r,i,o,c,l,d;const{invert:m,toast:h,unstyled:x,interacting:f,setHeights:b,visibleToasts:y,heights:w,index:T,toasts:A,expanded:E,removeToast:D,defaultRichColors:S,closeButton:R,style:L,cancelButtonStyle:I,actionButtonStyle:F,className:_="",descriptionClassName:U="",duration:O,position:W,gap:J,expandByDefault:oe,classNames:G,icons:K,closeButtonAriaLabel:ee="Close toast"}=e,[pe,V]=Lt.useState(null),[Y,z]=Lt.useState(null),[H,ne]=Lt.useState(!1),[te,me]=Lt.useState(!1),[fe,Ae]=Lt.useState(!1),[xe,ae]=Lt.useState(!1),[le,ze]=Lt.useState(!1),[pt,xt]=Lt.useState(0),[be,Tt]=Lt.useState(0),Xt=Lt.useRef(h.duration||O||F_),Jt=Lt.useRef(null),it=Lt.useRef(null),at=T===0,
vendor: 21,384 bytes, line 50
50ct=T+1<=y,Ct=h.type,Ht=h.dismissible!==!1,wn=h.className||"",Hn=h.descriptionClassName||"",qe=Lt.useMemo(()=>w.findIndex(Vt=>Vt.toastId===h.id)||0,[w,h.id]),dt=Lt.useMemo(()=>{var Vt;return(Vt=h.closeButton)!=null?Vt:R},[h.closeButton,R]),Dt=Lt.useMemo(()=>h.duration||O||F_,[h.duration,O]),yt=Lt.useRef(0),Mt=Lt.useRef(0),zt=Lt.useRef(0),ca=Lt.useRef(null),[jn,Qt]=W.split("-"),xn=Lt.useMemo(()=>w.reduce((Vt,Ra,Pa)=>Pa>=qe?Vt:Vt+Ra.height,0),[w,qe]),bn=Qte(),rn=h.invert||m,He=Ct==="loading";Mt.current=Lt.useMemo(()=>qe*J+xn,[qe,xn]),Lt.useEffect(()=>{Xt.current=Dt},[Dt]),Lt.useEffect(()=>{ne(!0)},[]),Lt.useEffect(()=>{const Vt=it.current;if(Vt){const Ra=Vt.getBoundingClientRect().height;return Tt(Ra),b(Pa=>[{toastId:h.id,height:Ra,position:h.position},...Pa]),()=>b(Pa=>Pa.filter(Os=>Os.toastId!==h.id))}},[b,h.id]),Lt.useLayoutEffect(()=>{if(!H)return;const Vt=it.current,Ra=Vt.style.height;Vt.style.height="auto";const Pa=Vt.getBoundingClientRect().height;Vt.style.height=Ra,Tt(Pa),b(Os=>Os.find(Wt=>Wt.toastId===h.id)?Os.map(Wt=>Wt.toastId===h.id?{...Wt,height:Pa}:Wt):[{toastId:h.id,height:Pa,position:h.position},...Os])},[H,h.title,h.description,b,h.id,h.jsx,h.action,h.cancel]);const tt=Lt.useCallback(()=>{me(!0),xt(Mt.current),b(Vt=>Vt.filter(Ra=>Ra.toastId!==h.id)),setTimeout(()=>{D(h)},une)},[h,D,b,Mt]);Lt.useEffect(()=>{if(h.promise&&Ct==="loading"||h.duration===1/0||h.type==="loading")return;let Vt;return E||f||bn?(()=>{if(zt.current<yt.current){const Os=new Date().getTime()-yt.current;Xt.current=Xt.current-Os}zt.current=new Date().getTime()})():(()=>{Xt.current!==1/0&&(yt.current=new Date().getTime(),Vt=setTimeout(()=>{h.onAutoClose==null||h.onAutoClose.call(h,h),tt()},Xt.current))})(),()=>clearTimeout(Vt)},[E,f,h,Ct,bn,tt]),Lt.useEffect(()=>{h.delete&&(tt(),h.onDismiss==null||h.onDismiss.call(h,h))},[tt,h.delete]);function Ot(){var Vt;if(K?.loading){var Ra;return Lt.createElement("div",{className:sd(G?.loader,h==null||(Ra=h.classNames)==null?void 0:Ra.loader,"sonner-loader"),"data-visible":Ct==="loading"},K.loading)}return Lt.createElement(qte,{className:sd(G?.loader,h==null||(Vt=h.classNames)==null?void 0:Vt.loader),visible:Ct==="loading"})}const Zn=h.icon||K?.[Ct]||zte(Ct);var Tn,qt;return Lt.createElement("li",{tabIndex:0,ref:it,className:sd(_,wn,G?.toast,h==null||(t=h.classNames)==null?void 0:t.toast,G?.default,G?.[Ct],h==null||(n=h.classNames)==null?void 0:n[Ct]),"data-sonner-toast":"","data-rich-colors":(Tn=h.richColors)!=null?Tn:S,"data-styled":!(h.jsx||h.unstyled||x),"data-mounted":H,"data-promise":!!h.promise,"data-swiped":le,"data-removed":te,"data-visible":ct,"data-y-position":jn,"data-x-position":Qt,"data-index":T,"data-front":at,"data-swiping":fe,"data-dismissible":Ht,"data-type":Ct,"data-invert":rn,"data-swipe-out":xe,"data-swipe-direction":Y,"data-expanded":!!(E||oe&&H),"data-testid":h.testId,style:{"--index":T,"--toasts-before":T,"--z-index":A.length-T,"--offset":`${te?pt:Mt.current}px`,"--initial-height":oe?"auto":`${be}px`,...L,...h.style},onDragEnd:()=>{Ae(!1),V(null),ca.current=null},onPointerDown:Vt=>{Vt.button!==2&&(He||!Ht||(Jt.current=new Date,xt(Mt.current),Vt.target.setPointerCapture(Vt.pointerId),Vt.target.tagName!=="BUTTON"&&(Ae(!0),ca.current={x:Vt.clientX,y:Vt.clientY})))},onPointerUp:()=>{var Vt,Ra,Pa;if(xe||!Ht)return;ca.current=null;const Os=Number(((Vt=it.current)==null?void 0:Vt.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),mi=Number(((Ra=it.current)==null?void 0:Ra.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Wt=new Date().getTime()-((Pa=Jt.current)==null?void 0:Pa.getTime()),tr=pe==="x"?Os:mi,Wi=Math.abs(tr)/Wt;if(Math.abs(tr)>=lne||Wi>.11){xt(Mt.current),h.onDismiss==null||h.onDismiss.call(h,h),z(pe==="x"?Os>0?"right":"left":mi>0?"down":"up"),tt(),ae(!0);return}else{var js,As;(js=it.current)==null||js.style.setProperty("--swipe-amount-x","0px"),(As=it.current)==null||As.style.setProperty("--swipe-amount-y","0px")}ze(!1),Ae(!1),V(null)},onPointerMove:Vt=>{var Ra,Pa,Os;if(!ca.current||!Ht||((Ra=window.getSelection())==null?void 0:Ra.toString().length)>0)return;const Wt=Vt.clientY-ca.current.y,tr=Vt.clientX-ca.current.x;var Wi;const js=(Wi=e.swipeDirections)!=null?Wi:dne(W);!pe&&(Math.abs(tr)>1||Math.abs(Wt)>1)&&V(Math.abs(tr)>Math.abs(Wt)?"x":"y");let As={x:0,y:0};const ds=ss=>1/(1.5+Math.abs(ss)/20);if(pe==="y"){if(js.includes("top")||js.includes("bottom"))if(js.includes("top")&&Wt<0||js.includes("bottom")&&Wt>0)As.y=Wt;else{const ss=Wt*ds(Wt);As.y=Math.abs(ss)<Math.abs(Wt)?ss:Wt}}else if(pe==="x"&&(js.includes("left")||js.includes("right")))if(js.includes("left")&&tr<0||js.includes("right")&&tr>0)As.x=tr;else{const ss=tr*ds(tr);As.x=Math.abs(ss)<Math.abs(tr)?ss:tr}(Math.abs(As.x)>0||Math.abs(As.y)>0)&&ze(!0),(Pa=it.current)==null||Pa.style.setProperty("--swipe-amount-x",`${As.x}px`),(Os=it.current)==null||Os.style.setProperty("--swipe-amount-y",`${As.y}px`)}},dt&&!h.jsx&&Ct!=="loading"?Lt.createElement("button",{"aria-label":ee,"data-disabled":He,"data-close-button":!0,onClick:He||!Ht?()=>{}:()=>{tt(),h.onDismiss==null||h.onDismiss.call(h,h)},className:sd(G?.closeButton,h==null||(a=h.classNames)==null?void 0:a.closeButton)},(qt=K?.close)!=null?qt:Xte):null,(Ct||h.icon||h.promise)&&h.icon!==null&&(K?.[Ct]!==null||h.icon)?Lt.createElement("div",{"data-icon":"",className:sd(G?.icon,h==null||(r=h.classNames)==null?void 0:r.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||Ot():null,h.type!=="loading"?Zn:null):null,Lt.createElement("div",{"data-content":"",className:sd(G?.content,h==null||(i=h.classNames)==null?void 0:i.content)},Lt.createElement("div",{"data-title":"",className:sd(G?.title,h==null||(o=h.classNames)==null?void 0:o.title)},h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title),h.description?Lt.createElement("div",{"data-description":"",className:sd(U,Hn,G?.description,h==null||(c=h.classNames)==null?void 0:c.description)},typeof h.description=="function"?h.description():h.description):null),Lt.isValidElement(h.cancel)?h.cancel:h.cancel&&oy(h.cancel)?Lt.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||I,onClick:Vt=>{oy(h.cancel)&&Ht&&(h.cancel.onClick==null||h.cancel.onClick.call(h.cancel,Vt),tt())},className:sd(G?.cancelButton,h==null||(l=h.classNames)==null?void 0:l.cancelButton)},h.cancel.label):null,Lt.isValidElement(h.action)?h.action:h.action&&oy(h.action)?Lt.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||F,onClick:Vt=>{oy(h.action)&&(h.action.onClick==null||h.action.onClick.call(h.action,Vt),!Vt.defaultPrevented&&tt())},className:sd(G?.actionButton,h==null||(d=h.classNames)==null?void 0:d.actionButton)},h.action.label):null)};function U_(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function pne(e,t){const n={};return[e,t].forEach((a,r)=>{const i=r===1,o=i?"--mobile-offset":"--offset",c=i?ine:rne;function l(d){["top","right","bottom","left"].forEach(m=>{n[`${o}-${m}`]=typeof d=="number"?`${d}px`:d})}typeof a=="number"||typeof a=="string"?l(a):typeof a=="object"?["top","right","bottom","left"].forEach(d=>{a[d]===void 0?n[`${o}-${d}`]=c:n[`${o}-${d}`]=typeof a[d]=="number"?`${a[d]}px`:a[d]}):l(c)}),n}const hne=Lt.forwardRef(function(t,n){const{id:a,invert:r,position:i="bottom-right",hotkey:o=["altKey","KeyT"],expand:c,closeButton:l,className:d,offset:m,mobileOffset:h,theme:x="light",richColors:f,duration:b,style:y,visibleToasts:w=sne,toastOptions:T,dir:A=U_(),gap:E=cne,icons:D,containerAriaLabel:S="Notifications"}=t,[R,L]=Lt.useState([]),I=Lt.useMemo(()=>a?R.filter(H=>H.toasterId===a):R.filter(H=>!H.toasterId),[R,a]),F=Lt.useMemo(()=>Array.from(new Set([i].concat(I.filter(H=>H.position).map(H=>H.position)))),[I,i]),[_,U]=Lt.useState([]),[O,W]=Lt.useState(!1),[J,oe]=Lt.useState(!1),[G,K]=Lt.useState(x!=="system"?x:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),ee=Lt.useRef(null),pe=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),V=Lt.useRef(null),Y=Lt.useRef(!1),z=Lt.useCallback(H=>{L(ne=>{var te;return(te=ne.find(me=>me.id===H.id))!=null&&te.delete||pc.dismiss(H.id),ne.filter(({id:me})=>me!==H.id)})},[]);return Lt.useEffect(()=>pc.subscribe(H=>{if(H.dismiss){requestAnimationFrame(()=>{L(ne=>ne.map(te=>te.id===H.id?{...te,delete:!0}:te))});return}setTimeout(()=>{EF.flushSync(()=>{L(ne=>{const te=ne.findIndex(me=>me.id===H.id);return te!==-1?[...ne.slice(0,te),{...ne[te],...H},...ne.slice(te+1)]:[H,...ne]})})})}),[R]),Lt.useEffect(()=>{if(x!=="system"){K(x);return}if(x==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?K("dark"):K("light")),typeof window>"u")return;const H=window.matchMedia("(prefers-color-scheme: dark)");try{H.addEventListener("change",({matches:ne})=>{K(ne?"dark":"light")})}catch{H.addListener(({matches:te})=>{try{K(te?"dark":"light")}catch(me){console.error(me)}})}},[x]),Lt.useEffect(()=>{R.length<=1&&W(!1)},[R]),Lt.useEffect(()=>{const H=ne=>{var te;if(o.every(Ae=>ne[Ae]||ne.code===Ae)){var fe;W(!0),(fe=ee.current)==null||fe.focus()}ne.code==="Escape"&&(document.activeElement===ee.current||(te=ee.current)!=null&&te.contains(document.activeElement))&&W(!1)};return document.addEventListener("keydown",H),()=>document.removeEventListener("keydown",H)},[o]),Lt.useEffect(()=>{if(ee.current)return()=>{V.current&&(V.current.focus({preventScroll:!0}),V.current=null,Y.current=!1)}},[ee.current]),Lt.createElement("section",{ref:n,"aria-label":`${S} ${pe}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},F.map((H,ne)=>{var te;const[me,fe]=H.split("-");return I.length?Lt.createElement("ol",{key:H,dir:A==="auto"?U_():A,tabIndex:-1,ref:ee,className:d,"data-sonner-toaster":!0,"data-sonner-theme":G,"data-y-position":me,"data-x-position":fe,style:{"--front-toast-height":`${((te=_[0])==null?void 0:te.height)||0}px`,"--width":`${one}px`,"--gap":`${E}px`,...y,...pne(m,h)},onBlur:Ae=>{Y.current&&!Ae.currentTarget.contains(Ae.relatedTarget)&&(Y.current=!1,V.current&&(V.current.focus({preventScroll:!0}),V.current=null))},onFocus:Ae=>{Ae.target instanceof HTMLElement&&Ae.target.dataset.dismissible==="false"||Y.current||(Y.current=!0,V.current=Ae.relatedTarget)},onMouseEnter:()=>W(!0),onMouseMove:()=>W(!0),onMouseLeave:()=>{J||W(!1)},onDragEnd:()=>W(!1),onPointerDown:Ae=>{Ae.target instanceof HTMLElement&&Ae.target.dataset.dismissible==="false"||oe(!0)},onPointerUp:()=>oe(!1)},I.filter(Ae=>!Ae.position&&ne===0||Ae.position===H).map((Ae,xe)=>{var ae,le;return Lt.createElement(mne,{key:Ae.id,icons:D,index:xe,toast:Ae,defaultRichColors:f,duration:(ae=T?.duration)!=null?ae:b,className:T?.className,descriptionClassName:T?.descriptionClassName,invert:r,visibleToasts:w,closeButton:(le=T?.closeButton)!=null?le:l,interacting:J,position:H,style:T?.style,unstyled:T?.unstyled,classNames:T?.classNames,cancelButtonStyle:T?.cancelButtonStyle,actionButtonStyle:T?.actionButtonStyle,closeButtonAriaLabel:T?.closeButtonAriaLabel,removeToast:z,toasts:I.filter(ze=>ze.position==Ae.position),heights:_.filter(ze=>ze.position==Ae.position),setHeights:U,expandByDefault:c,gap:E,expanded:O,swipeDirections:t.swipeDirections})})):null}))}),fne=({...e})=>{const{theme:t="system"}=Hte();return s.jsx(hne,{"data-loc":"client/src/components/ui/sonner.tsx:8",theme:t,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})};function Kt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function H_(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function E4(...e){return t=>{let n=!1;const a=e.map(r=>{const i=H_(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<a.length;r++){const i=a[r];typeof i=="function"?i():H_(e[r],null)}}}}function Ea(...e){return k.useCallback(E4(...e),e)}function gne(e,t){const n=k.createContext(t),a=i=>{const{children:o,...c}=i,l=k.useMemo(()=>c,Object.values(c));return s.jsx(n.Provider,{value:l,children:o})};a.displayName=e+"Provider";function r(i){const o=k.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[a,r]}function Ll(e,t=[]){let n=[];function a(i,o){const c=k.createContext(o),l=n.length;n=[...n,o];const d=h=>{const{scope:x,children:f,...b}=h,y=x?.[e]?.[l]||c,w=k.useMemo(()=>b,Object.values(b));return s.jsx(y.Provider,{value:w,children:f})};d.displayName=i+"Provider";function m(h,x){const f=x?.[e]?.[l]||c,b=k.useContext(f);if(b)return b;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[d,m]}const r=()=>{const i=n.map(o=>k.createContext(o));return function(c){const l=c?.[e]||i;return k.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return r.scopeName=e,[a,xne(r,...t)]}function xne(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const a=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const o=a.reduce((c,{useScope:l,scopeName:d})=>{const h=l(i)[`__scope${d}`];return{...c,...h}},{});return k.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function D0(e){const t=bne(e),n=k.forwardRef((a,r)=>{const{children:i,...o}=a,c=k.Children.toArray(i),l=c.find(yne);if(l){const d=l.props.children,m=c.map(h=>h===l?k.Children.count(d)>1?k.Children.only(null):k.isValidElement(d)?d.props.children:null:h);return s.jsx(t,{...o,ref:r,children:k.isValidElement(d)?k.cloneElement(d,void 0,m):null})}return s.jsx(t,{...o,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}var Dj=D0("Slot");function bne(e){const t=k.forwardRef((n,a)=>{const{children:r,...i}=n;if(k.isValidElement(r)){const o=Tne(r),c=wne(i,r.props);return r.type!==k.Fragment&&(c.ref=a?E4(a,o):o),k.cloneElement(r,c)}return k.Children.count(r)>1?k.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var CF=Symbol("radix.slottable");function vne(e){const t=({children:n})=>s.jsx(s.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=CF,t}function yne(e){return k.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===CF}function wne(e,t){const n={...t};for(const a in t){const r=e[a],i=t[a];/^on[A-Z]/.test(a)?r&&i?n[a]=(...c)=>{const l=i(...c);return r(...c),l}:r&&(n[a]=r):a==="style"?n[a]={...r,...i}:a==="className"&&(n[a]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function Tne(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Nne=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Vn=Nne.reduce((e,t)=>{const n=D0(`Primitive.${t}`),a=k.forwardRef((r,i)=>{const{asChild:o,...c}=r,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(l,{...c,ref:i})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function SF(e,t){e&&D2.flushSync(()=>e.dispatchEvent(t))}function ao(e){const t=k.useRef(e);return k.useEffect(()=>{t.current=e}),k.useMemo(()=>(...n)=>t.current?.(...n),[])}function kne(e,t=globalThis?.document){const n=ao(e);k.useEffect(()=>{const a=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",a,{capture:!0}),()=>t.removeEventListener("keydown",a,{capture:!0})},[n,t])}var jne="DismissableLayer",hk="dismissableLayer.update",Ane="dismissableLayer.pointerDownOutside",Ene="dismissableLayer.focusOutside",V_,_F=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),R2=k.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:o,onDismiss:c,...l}=e,d=k.useContext(_F),[m,h]=k.useState(null),x=m?.ownerDocument??globalThis?.document,[,f]=k.useState({}),b=Ea(t,L=>h(L)),y=Array.from(d.layers),[w]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),T=y.indexOf(w),A=m?y.indexOf(m):-1,E=d.layersWithOutsidePointerEventsDisabled.size>0,D=A>=T,S=_ne(L=>{const I=L.target,F=[...d.branches].some(_=>_.contains(I));!D||F||(r?.(L),o?.(L),L.defaultPrevented||c?.())},x),R=Pne(L=>{const I=L.target;[...d.branches].some(_=>_.contains(I))||(i?.(L),o?.(L),L.defaultPrevented||c?.())},x);return kne(L=>{A===d.layers.size-1&&(a?.(L),!L.defaultPrevented&&c&&(L.preventDefault(),c()))},x),k.useEffect(()=>{if(m)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(V_=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(m)),d.layers.add(m),z_(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=V_)}},[m,x,n,d]),k.useEffect(()=>()=>{m&&(d.layers.delete(m),d.layersWithOutsidePointerEventsDisabled.delete(m),z_())},[m,d]),k.useEffect(()=>{const L=()=>f({});return document.addEventListener(hk,L),()=>document.removeEventListener(hk,L)},[]),s.jsx(Vn.div,{...l,ref:b,style:{pointerEvents:E?D?"auto":"none":void 0,...e.style},onFocusCapture:Kt(e.onFocusCapture,R.onFocusCapture),onBlurCapture:Kt(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:Kt(e.onPointerDownCapture,S.onPointerDownCapture)})});R2.displayName=jne;var Cne="DismissableLayerBranch",Sne=k.forwardRef((e,t)=>{const n=k.useContext(_F),a=k.useRef(null),r=Ea(t,a);return k.useEffect(()=>{const i=a.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),s.jsx(Vn.div,{...e,ref:r})});Sne.displayName=Cne;function _ne(e,t=globalThis?.document){const n=ao(e),a=k.useRef(!1),r=k.useRef(()=>{});return k.useEffect(()=>{const i=c=>{if(c.target&&!a.current){let l=function(){PF(Ane,n,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=l,t.addEventListener("click",r.current,{once:!0})):l()}else t.removeEventListener("click",r.current);a.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>a.current=!0}}function Pne(e,t=globalThis?.document){const n=ao(e),a=k.useRef(!1);return k.useEffect(()=>{const r=i=>{i.target&&!a.current&&PF(Ene,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function z_(){const e=new CustomEvent(hk);document.dispatchEvent(e)}function PF(e,t,n,{discrete:a}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),a?SF(r,i):r.dispatchEvent(i)}var co=globalThis?.document?k.useLayoutEffect:()=>{},Dne=w4[" useId ".trim().toString()]||(()=>{}),Rne=0;function fu(e){const[t,n]=k.useState(Dne());return co(()=>{n(a=>a??String(Rne++))},[e]),e||(t?`radix-${t}`:"")}const Ine=["top","right","bottom","left"],rh=Math.min,Gc=Math.max,m3=Math.round,cy=Math.floor,Nd=e=>({x:e,y:e}),Mne={left:"right",right:"left",bottom:"top",top:"bottom"},Lne={start:"end",end:"start"};function fk(e,t,n){return Gc(e,rh(t,n))}function Hm(e,t){return typeof e=="function"?e(t):e}function Vm(e){return e.split("-")[0]}function hx(e){return e.split("-")[1]}function Rj(e){return e==="x"?"y":"x"}function Ij(e){return e==="y"?"height":"width"}const One=new Set(["top","bottom"]);function fd(e){return One.has(Vm(e))?"y":"x"}function Mj(e){return Rj(fd(e))}function Bne(e,t,n){n===void 0&&(n=!1);const a=hx(e),r=Mj(e),i=Ij(r);let o=r==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=p3(o)),[o,p3(o)]}function Fne(e){const t=p3(e);return[gk(e),t,gk(t)]}function gk(e){return e.replace(/start|end/g,t=>Lne[t])}const $_=["left","right"],q_=["right","left"],Une=["top","bottom"],Hne=["bottom","top"];function Vne(e,t,n){switch(e){case"top":case"bottom":return n?t?q_:$_:t?$_:q_;case"left":case"right":return t?Une:Hne;default:return[]}}function zne(e,t,n,a){const r=hx(e);let i=Vne(Vm(e),n==="start",a);return r&&(i=i.map(o=>o+"-"+r),t&&(i=i.concat(i.map(gk)))),i}function p3(e){return e.replace(/left|right|bottom|top/g,t=>Mne[t])}function $ne(e){return{top:0,right:0,bottom:0,left:0,...e}}function DF(e){return typeof e!="number"?$ne(e):{top:e,right:e,bottom:e,left:e}}function h3(e){const{x:t,y:n,width:a,height:r}=e;return{width:a,height:r,top:n,left:t,right:t+a,bottom:n+r,x:t,y:n}}function G_(e,t,n){let{reference:a,floating:r}=e;const i=fd(t),o=Mj(t),c=Ij(o),l=Vm(t),d=i==="y",m=a.x+a.width/2-r.width/2,h=a.y+a.height/2-r.height/2,x=a[c]/2-r[c]/2;let f;switch(l){case"top":f={x:m,y:a.y-r.height};break;case"bottom":f={x:m,y:a.y+a.height};break;case"right":f={x:a.x+a.width,y:h};break;case"left":f={x:a.x-r.width,y:h};break;default:f={x:a.x,y:a.y}}switch(hx(t)){case"start":f[o]-=x*(n&&d?-1:1);break;case"end":f[o]+=x*(n&&d?-1:1);break}return f}const qne=async(e,t,n)=>{const{placement:a="bottom",strategy:r="absolute",middleware:i=[],platform:o}
vendor: 14,184 bytes, line 50
50=n,c=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let d=await o.getElementRects({reference:e,floating:t,strategy:r}),{x:m,y:h}=G_(d,a,l),x=a,f={},b=0;for(let y=0;y<c.length;y++){const{name:w,fn:T}=c[y],{x:A,y:E,data:D,reset:S}=await T({x:m,y:h,initialPlacement:a,placement:x,strategy:r,middlewareData:f,rects:d,platform:o,elements:{reference:e,floating:t}});m=A??m,h=E??h,f={...f,[w]:{...f[w],...D}},S&&b<=50&&(b++,typeof S=="object"&&(S.placement&&(x=S.placement),S.rects&&(d=S.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:m,y:h}=G_(d,x,l)),y=-1)}return{x:m,y:h,placement:x,strategy:r,middlewareData:f}};async function Gb(e,t){var n;t===void 0&&(t={});const{x:a,y:r,platform:i,rects:o,elements:c,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:x=!1,padding:f=0}=Hm(t,e),b=DF(f),w=c[x?h==="floating"?"reference":"floating":h],T=h3(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:d,rootBoundary:m,strategy:l})),A=h==="floating"?{x:a,y:r,width:o.floating.width,height:o.floating.height}:o.reference,E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),D=await(i.isElement==null?void 0:i.isElement(E))?await(i.getScale==null?void 0:i.getScale(E))||{x:1,y:1}:{x:1,y:1},S=h3(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:A,offsetParent:E,strategy:l}):A);return{top:(T.top-S.top+b.top)/D.y,bottom:(S.bottom-T.bottom+b.bottom)/D.y,left:(T.left-S.left+b.left)/D.x,right:(S.right-T.right+b.right)/D.x}}const Gne=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:r,rects:i,platform:o,elements:c,middlewareData:l}=t,{element:d,padding:m=0}=Hm(e,t)||{};if(d==null)return{};const h=DF(m),x={x:n,y:a},f=Mj(r),b=Ij(f),y=await o.getDimensions(d),w=f==="y",T=w?"top":"left",A=w?"bottom":"right",E=w?"clientHeight":"clientWidth",D=i.reference[b]+i.reference[f]-x[f]-i.floating[b],S=x[f]-i.reference[f],R=await(o.getOffsetParent==null?void 0:o.getOffsetParent(d));let L=R?R[E]:0;(!L||!await(o.isElement==null?void 0:o.isElement(R)))&&(L=c.floating[E]||i.floating[b]);const I=D/2-S/2,F=L/2-y[b]/2-1,_=rh(h[T],F),U=rh(h[A],F),O=_,W=L-y[b]-U,J=L/2-y[b]/2+I,oe=fk(O,J,W),G=!l.arrow&&hx(r)!=null&&J!==oe&&i.reference[b]/2-(J<O?_:U)-y[b]/2<0,K=G?J<O?J-O:J-W:0;return{[f]:x[f]+K,data:{[f]:oe,centerOffset:J-oe-K,...G&&{alignmentOffset:K}},reset:G}}}),Jne=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,a;const{placement:r,middlewareData:i,rects:o,initialPlacement:c,platform:l,elements:d}=t,{mainAxis:m=!0,crossAxis:h=!0,fallbackPlacements:x,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:y=!0,...w}=Hm(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const T=Vm(r),A=fd(c),E=Vm(c)===c,D=await(l.isRTL==null?void 0:l.isRTL(d.floating)),S=x||(E||!y?[p3(c)]:Fne(c)),R=b!=="none";!x&&R&&S.push(...zne(c,y,b,D));const L=[c,...S],I=await Gb(t,w),F=[];let _=((a=i.flip)==null?void 0:a.overflows)||[];if(m&&F.push(I[T]),h){const J=Bne(r,o,D);F.push(I[J[0]],I[J[1]])}if(_=[..._,{placement:r,overflows:F}],!F.every(J=>J<=0)){var U,O;const J=(((U=i.flip)==null?void 0:U.index)||0)+1,oe=L[J];if(oe&&(!(h==="alignment"?A!==fd(oe):!1)||_.every(ee=>fd(ee.placement)===A?ee.overflows[0]>0:!0)))return{data:{index:J,overflows:_},reset:{placement:oe}};let G=(O=_.filter(K=>K.overflows[0]<=0).sort((K,ee)=>K.overflows[1]-ee.overflows[1])[0])==null?void 0:O.placement;if(!G)switch(f){case"bestFit":{var W;const K=(W=_.filter(ee=>{if(R){const pe=fd(ee.placement);return pe===A||pe==="y"}return!0}).map(ee=>[ee.placement,ee.overflows.filter(pe=>pe>0).reduce((pe,V)=>pe+V,0)]).sort((ee,pe)=>ee[1]-pe[1])[0])==null?void 0:W[0];K&&(G=K);break}case"initialPlacement":G=c;break}if(r!==G)return{reset:{placement:G}}}return{}}}};function J_(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function W_(e){return Ine.some(t=>e[t]>=0)}const Wne=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:a="referenceHidden",...r}=Hm(e,t);switch(a){case"referenceHidden":{const i=await Gb(t,{...r,elementContext:"reference"}),o=J_(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:W_(o)}}}case"escaped":{const i=await Gb(t,{...r,altBoundary:!0}),o=J_(i,n.floating);return{data:{escapedOffsets:o,escaped:W_(o)}}}default:return{}}}}},RF=new Set(["left","top"]);async function Yne(e,t){const{placement:n,platform:a,elements:r}=e,i=await(a.isRTL==null?void 0:a.isRTL(r.floating)),o=Vm(n),c=hx(n),l=fd(n)==="y",d=RF.has(o)?-1:1,m=i&&l?-1:1,h=Hm(t,e);let{mainAxis:x,crossAxis:f,alignmentAxis:b}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return c&&typeof b=="number"&&(f=c==="end"?b*-1:b),l?{x:f*m,y:x*d}:{x:x*d,y:f*m}}const Xne=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:r,y:i,placement:o,middlewareData:c}=t,l=await Yne(t,e);return o===((n=c.offset)==null?void 0:n.placement)&&(a=c.arrow)!=null&&a.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:o}}}}},Qne=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:r}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:c={fn:w=>{let{x:T,y:A}=w;return{x:T,y:A}}},...l}=Hm(e,t),d={x:n,y:a},m=await Gb(t,l),h=fd(Vm(r)),x=Rj(h);let f=d[x],b=d[h];if(i){const w=x==="y"?"top":"left",T=x==="y"?"bottom":"right",A=f+m[w],E=f-m[T];f=fk(A,f,E)}if(o){const w=h==="y"?"top":"left",T=h==="y"?"bottom":"right",A=b+m[w],E=b-m[T];b=fk(A,b,E)}const y=c.fn({...t,[x]:f,[h]:b});return{...y,data:{x:y.x-n,y:y.y-a,enabled:{[x]:i,[h]:o}}}}}},Kne=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:a,placement:r,rects:i,middlewareData:o}=t,{offset:c=0,mainAxis:l=!0,crossAxis:d=!0}=Hm(e,t),m={x:n,y:a},h=fd(r),x=Rj(h);let f=m[x],b=m[h];const y=Hm(c,t),w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const E=x==="y"?"height":"width",D=i.reference[x]-i.floating[E]+w.mainAxis,S=i.reference[x]+i.reference[E]-w.mainAxis;f<D?f=D:f>S&&(f=S)}if(d){var T,A;const E=x==="y"?"width":"height",D=RF.has(Vm(r)),S=i.reference[h]-i.floating[E]+(D&&((T=o.offset)==null?void 0:T[h])||0)+(D?0:w.crossAxis),R=i.reference[h]+i.reference[E]+(D?0:((A=o.offset)==null?void 0:A[h])||0)-(D?w.crossAxis:0);b<S?b=S:b>R&&(b=R)}return{[x]:f,[h]:b}}}},Zne=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,a;const{placement:r,rects:i,platform:o,elements:c}=t,{apply:l=()=>{},...d}=Hm(e,t),m=await Gb(t,d),h=Vm(r),x=hx(r),f=fd(r)==="y",{width:b,height:y}=i.floating;let w,T;h==="top"||h==="bottom"?(w=h,T=x===(await(o.isRTL==null?void 0:o.isRTL(c.floating))?"start":"end")?"left":"right"):(T=h,w=x==="end"?"top":"bottom");const A=y-m.top-m.bottom,E=b-m.left-m.right,D=rh(y-m[w],A),S=rh(b-m[T],E),R=!t.middlewareData.shift;let L=D,I=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(I=E),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(L=A),R&&!x){const _=Gc(m.left,0),U=Gc(m.right,0),O=Gc(m.top,0),W=Gc(m.bottom,0);f?I=b-2*(_!==0||U!==0?_+U:Gc(m.left,m.right)):L=y-2*(O!==0||W!==0?O+W:Gc(m.top,m.bottom))}await l({...t,availableWidth:I,availableHeight:L});const F=await o.getDimensions(c.floating);return b!==F.width||y!==F.height?{reset:{rects:!0}}:{}}}};function C4(){return typeof window<"u"}function fx(e){return IF(e)?(e.nodeName||"").toLowerCase():"#document"}function Kc(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Md(e){var t;return(t=(IF(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function IF(e){return C4()?e instanceof Node||e instanceof Kc(e).Node:!1}function bu(e){return C4()?e instanceof Element||e instanceof Kc(e).Element:!1}function Ed(e){return C4()?e instanceof HTMLElement||e instanceof Kc(e).HTMLElement:!1}function Y_(e){return!C4()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Kc(e).ShadowRoot}const eae=new Set(["inline","contents"]);function I2(e){const{overflow:t,overflowX:n,overflowY:a,display:r}=vu(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&!eae.has(r)}const tae=new Set(["table","td","th"]);function nae(e){return tae.has(fx(e))}const aae=[":popover-open",":modal"];function S4(e){return aae.some(t=>{try{return e.matches(t)}catch{return!1}})}const sae=["transform","translate","scale","rotate","perspective"],rae=["transform","translate","scale","rotate","perspective","filter"],iae=["paint","layout","strict","content"];function Lj(e){const t=Oj(),n=bu(e)?vu(e):e;return sae.some(a=>n[a]?n[a]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||rae.some(a=>(n.willChange||"").includes(a))||iae.some(a=>(n.contain||"").includes(a))}function oae(e){let t=ih(e);for(;Ed(t)&&!nx(t);){if(Lj(t))return t;if(S4(t))return null;t=ih(t)}return null}function Oj(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const cae=new Set(["html","body","#document"]);function nx(e){return cae.has(fx(e))}function vu(e){return Kc(e).getComputedStyle(e)}function _4(e){return bu(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ih(e){if(fx(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Y_(e)&&e.host||Md(e);return Y_(t)?t.host:t}function MF(e){const t=ih(e);return nx(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ed(t)&&I2(t)?t:MF(t)}function Jb(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=MF(e),i=r===((a=e.ownerDocument)==null?void 0:a.body),o=Kc(r);if(i){const c=xk(o);return t.concat(o,o.visualViewport||[],I2(r)?r:[],c&&n?Jb(c):[])}return t.concat(r,Jb(r,[],n))}function xk(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function LF(e){const t=vu(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const r=Ed(e),i=r?e.offsetWidth:n,o=r?e.offsetHeight:a,c=m3(n)!==i||m3(a)!==o;return c&&(n=i,a=o),{width:n,height:a,$:c}}function Bj(e){return bu(e)?e:e.contextElement}function Hg(e){const t=Bj(e);if(!Ed(t))return Nd(1);const n=t.getBoundingClientRect(),{width:a,height:r,$:i}=LF(t);let o=(i?m3(n.width):n.width)/a,c=(i?m3(n.height):n.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!c||!Number.isFinite(c))&&(c=1),{x:o,y:c}}const lae=Nd(0);function OF(e){const t=Kc(e);return!Oj()||!t.visualViewport?lae:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function uae(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Kc(e)?!1:t}function R0(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=Bj(e);let o=Nd(1);t&&(a?bu(a)&&(o=Hg(a)):o=Hg(e));const c=uae(i,n,a)?OF(i):Nd(0);let l=(r.left+c.x)/o.x,d=(r.top+c.y)/o.y,m=r.width/o.x,h=r.height/o.y;if(i){const x=Kc(i),f=a&&bu(a)?Kc(a):a;let b=x,y=xk(b);for(;y&&a&&f!==b;){const w=Hg(y),T=y.getBoundingClientRect(),A=vu(y),E=T.left+(y.clientLeft+parseFloat(A.paddingLeft))*w.x,D=T.top+(y.clientTop+parseFloat(A.paddingTop))*w.y;l*=w.x,d*=w.y,m*=w.x,h*=w.y,l+=E,d+=D,b=Kc(y),y=xk(b)}}return h3({width:m,height:h,x:l,y:d})}function P4(e,t){const n=_4(e).scrollLeft;return t?t.left+n:R0(Md(e)).left+n}function BF(e,t){const n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-P4(e,n),r=n.top+t.scrollTop;return{x:a,y:r}}function dae(e){let{elements:t,rect:n,offsetParent:a,strategy:r}=e;const i=r==="fixed",o=Md(a),c=t?S4(t.floating):!1;if(a===o||c&&i)return n;let l={scrollLeft:0,scrollTop:0},d=Nd(1);const m=Nd(0),h=Ed(a);if((h||!h&&!i)&&((fx(a)!=="body"||I2(o))&&(l=_4(a)),Ed(a))){const f=R0(a);d=Hg(a),m.x=f.x+a.clientLeft,m.y=f.y+a.clientTop}const x=o&&!h&&!i?BF(o,l):Nd(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+m.x+x.x,y:n.y*d.y-l.scrollTop*d.y+m.y+x.y}}function mae(e){return Array.from(e.getClientRects())}function pae(e){const t=Md(e),n=_4(e),a=e.ownerDocument.body,r=Gc(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),i=Gc(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let o=-n.scrollLeft+P4(e);const c=-n.scrollTop;return vu(a).direction==="rtl"&&(o+=Gc(t.clientWidth,a.clientWidth)-r),{width:r,height:i,x:o,y:c}}const X_=25;function hae(e,t){const n=Kc(e),a=Md(e),r=n.visualViewport;let i=a.clientWidth,o=a.clientHeight,c=0,l=0;if(r){i=r.width,o=r.height;const m=Oj();(!m||m&&t==="fixed")&&(c=r.offsetLeft,l=r.offsetTop)}const d=P4(a);if(d<=0){const m=a.ownerDocument,h=m.body,x=getComputedStyle(h),f=m.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,b=Math.abs(a.clientWidth-h.clientWidth-f);b<=X_&&(i-=b)}else d<=X_&&(i+=d);return{width:i,height:o,x:c,y:l}}const fae=new Set(["absolute","fixed"]);function gae(e,t){const n=R0(e,!0,t==="fixed"),a=n.top+e.clientTop,r=n.left+e.clientLeft,i=Ed(e)?Hg(e):Nd(1),o=e.clientWidth*i.x,c=e.clientHeight*i.y,l=r*i.x,d=a*i.y;return{width:o,height:c,x:l,y:d}}function Q_(e,t,n){let a;if(t==="viewport")a=hae(e,n);else if(t==="document")a=pae(Md(e));else if(bu(t))a=gae(t,n);else{const r=OF(e);a={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return h3(a)}function FF(e,t){const n=ih(e);return n===t||!bu(n)||nx(n)?!1:vu(n).position==="fixed"||FF(n,t)}function xae(e,t){const n=t.get(e);if(n)return n;let a=Jb(e,[],!1).filter(c=>bu(c)&&fx(c)!=="body"),r=null;const i=vu(e).position==="fixed";let o=i?ih(e):e;for(;bu(o)&&!nx(o);){const c=vu(o),l=Lj(o);!l&&c.position==="fixed"&&(r=null),(i?!l&&!r:!l&&c.position==="static"&&!!r&&fae.has(r.position)||I2(o)&&!l&&FF(e,o))?a=a.filter(m=>m!==o):r=c,o=ih(o)}return t.set(e,a),a}function bae(e){let{element:t,boundary:n,rootBoundary:a,strategy:r}=e;const o=[...n==="clippingAncestors"?S4(t)?[]:xae(t,this._c):[].concat(n),a],c=o[0],l=o.reduce((d,m)=>{const h=Q_(t,m,r);return d.top=Gc(h.top,d.top),d.right=rh(h.right,d.right),d.bottom=rh(h.bottom,d.bottom),d.left
vendor: 9,930 bytes, line 50
50=Gc(h.left,d.left),d},Q_(t,c,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function vae(e){const{width:t,height:n}=LF(e);return{width:t,height:n}}function yae(e,t,n){const a=Ed(t),r=Md(t),i=n==="fixed",o=R0(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const l=Nd(0);function d(){l.x=P4(r)}if(a||!a&&!i)if((fx(t)!=="body"||I2(r))&&(c=_4(t)),a){const f=R0(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else r&&d();i&&!a&&r&&d();const m=r&&!a&&!i?BF(r,c):Nd(0),h=o.left+c.scrollLeft-l.x-m.x,x=o.top+c.scrollTop-l.y-m.y;return{x:h,y:x,width:o.width,height:o.height}}function pT(e){return vu(e).position==="static"}function K_(e,t){if(!Ed(e)||vu(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Md(e)===n&&(n=n.ownerDocument.body),n}function UF(e,t){const n=Kc(e);if(S4(e))return n;if(!Ed(e)){let r=ih(e);for(;r&&!nx(r);){if(bu(r)&&!pT(r))return r;r=ih(r)}return n}let a=K_(e,t);for(;a&&nae(a)&&pT(a);)a=K_(a,t);return a&&nx(a)&&pT(a)&&!Lj(a)?n:a||oae(e)||n}const wae=async function(e){const t=this.getOffsetParent||UF,n=this.getDimensions,a=await n(e.floating);return{reference:yae(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function Tae(e){return vu(e).direction==="rtl"}const Nae={convertOffsetParentRelativeRectToViewportRelativeRect:dae,getDocumentElement:Md,getClippingRect:bae,getOffsetParent:UF,getElementRects:wae,getClientRects:mae,getDimensions:vae,getScale:Hg,isElement:bu,isRTL:Tae};function HF(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function kae(e,t){let n=null,a;const r=Md(e);function i(){var c;clearTimeout(a),(c=n)==null||c.disconnect(),n=null}function o(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),i();const d=e.getBoundingClientRect(),{left:m,top:h,width:x,height:f}=d;if(c||t(),!x||!f)return;const b=cy(h),y=cy(r.clientWidth-(m+x)),w=cy(r.clientHeight-(h+f)),T=cy(m),E={rootMargin:-b+"px "+-y+"px "+-w+"px "+-T+"px",threshold:Gc(0,rh(1,l))||1};let D=!0;function S(R){const L=R[0].intersectionRatio;if(L!==l){if(!D)return o();L?o(!1,L):a=setTimeout(()=>{o(!1,1e-7)},1e3)}L===1&&!HF(d,e.getBoundingClientRect())&&o(),D=!1}try{n=new IntersectionObserver(S,{...E,root:r.ownerDocument})}catch{n=new IntersectionObserver(S,E)}n.observe(e)}return o(!0),i}function jae(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=a,d=Bj(e),m=r||i?[...d?Jb(d):[],...Jb(t)]:[];m.forEach(T=>{r&&T.addEventListener("scroll",n,{passive:!0}),i&&T.addEventListener("resize",n)});const h=d&&c?kae(d,n):null;let x=-1,f=null;o&&(f=new ResizeObserver(T=>{let[A]=T;A&&A.target===d&&f&&(f.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var E;(E=f)==null||E.observe(t)})),n()}),d&&!l&&f.observe(d),f.observe(t));let b,y=l?R0(e):null;l&&w();function w(){const T=R0(e);y&&!HF(y,T)&&n(),y=T,b=requestAnimationFrame(w)}return n(),()=>{var T;m.forEach(A=>{r&&A.removeEventListener("scroll",n),i&&A.removeEventListener("resize",n)}),h?.(),(T=f)==null||T.disconnect(),f=null,l&&cancelAnimationFrame(b)}}const Aae=Xne,Eae=Qne,Cae=Jne,Sae=Zne,_ae=Wne,Z_=Gne,Pae=Kne,Dae=(e,t,n)=>{const a=new Map,r={platform:Nae,...n},i={...r.platform,_c:a};return qne(e,t,{...r,platform:i})};var Rae=typeof document<"u",Iae=function(){},O5=Rae?k.useLayoutEffect:Iae;function f3(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 n,a,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(a=n;a--!==0;)if(!f3(e[a],t[a]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(a=n;a--!==0;)if(!{}.hasOwnProperty.call(t,r[a]))return!1;for(a=n;a--!==0;){const i=r[a];if(!(i==="_owner"&&e.$$typeof)&&!f3(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function VF(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eP(e,t){const n=VF(e);return Math.round(t*n)/n}function hT(e){const t=k.useRef(e);return O5(()=>{t.current=e}),t}function Mae(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:a=[],platform:r,elements:{reference:i,floating:o}={},transform:c=!0,whileElementsMounted:l,open:d}=e,[m,h]=k.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[x,f]=k.useState(a);f3(x,a)||f(a);const[b,y]=k.useState(null),[w,T]=k.useState(null),A=k.useCallback(ee=>{ee!==R.current&&(R.current=ee,y(ee))},[]),E=k.useCallback(ee=>{ee!==L.current&&(L.current=ee,T(ee))},[]),D=i||b,S=o||w,R=k.useRef(null),L=k.useRef(null),I=k.useRef(m),F=l!=null,_=hT(l),U=hT(r),O=hT(d),W=k.useCallback(()=>{if(!R.current||!L.current)return;const ee={placement:t,strategy:n,middleware:x};U.current&&(ee.platform=U.current),Dae(R.current,L.current,ee).then(pe=>{const V={...pe,isPositioned:O.current!==!1};J.current&&!f3(I.current,V)&&(I.current=V,D2.flushSync(()=>{h(V)}))})},[x,t,n,U,O]);O5(()=>{d===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,h(ee=>({...ee,isPositioned:!1})))},[d]);const J=k.useRef(!1);O5(()=>(J.current=!0,()=>{J.current=!1}),[]),O5(()=>{if(D&&(R.current=D),S&&(L.current=S),D&&S){if(_.current)return _.current(D,S,W);W()}},[D,S,W,_,F]);const oe=k.useMemo(()=>({reference:R,floating:L,setReference:A,setFloating:E}),[A,E]),G=k.useMemo(()=>({reference:D,floating:S}),[D,S]),K=k.useMemo(()=>{const ee={position:n,left:0,top:0};if(!G.floating)return ee;const pe=eP(G.floating,m.x),V=eP(G.floating,m.y);return c?{...ee,transform:"translate("+pe+"px, "+V+"px)",...VF(G.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:pe,top:V}},[n,c,G.floating,m.x,m.y]);return k.useMemo(()=>({...m,update:W,refs:oe,elements:G,floatingStyles:K}),[m,W,oe,G,K])}const Lae=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:a,padding:r}=typeof e=="function"?e(n):e;return a&&t(a)?a.current!=null?Z_({element:a.current,padding:r}).fn(n):{}:a?Z_({element:a,padding:r}).fn(n):{}}}},Oae=(e,t)=>({...Aae(e),options:[e,t]}),Bae=(e,t)=>({...Eae(e),options:[e,t]}),Fae=(e,t)=>({...Pae(e),options:[e,t]}),Uae=(e,t)=>({...Cae(e),options:[e,t]}),Hae=(e,t)=>({...Sae(e),options:[e,t]}),Vae=(e,t)=>({..._ae(e),options:[e,t]}),zae=(e,t)=>({...Lae(e),options:[e,t]});var $ae="Arrow",zF=k.forwardRef((e,t)=>{const{children:n,width:a=10,height:r=5,...i}=e;return s.jsx(Vn.svg,{...i,ref:t,width:a,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:s.jsx("polygon",{points:"0,0 30,0 15,10"})})});zF.displayName=$ae;var qae=zF;function $F(e){const[t,n]=k.useState(void 0);return co(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let o,c;if("borderBoxSize"in i){const l=i.borderBoxSize,d=Array.isArray(l)?l[0]:l;o=d.inlineSize,c=d.blockSize}else o=e.offsetWidth,c=e.offsetHeight;n({width:o,height:c})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else n(void 0)},[e]),t}var Fj="Popper",[qF,gx]=Ll(Fj),[Gae,GF]=qF(Fj),JF=e=>{const{__scopePopper:t,children:n}=e,[a,r]=k.useState(null);return s.jsx(Gae,{scope:t,anchor:a,onAnchorChange:r,children:n})};JF.displayName=Fj;var WF="PopperAnchor",YF=k.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:a,...r}=e,i=GF(WF,n),o=k.useRef(null),c=Ea(t,o),l=k.useRef(null);return k.useEffect(()=>{const d=l.current;l.current=a?.current||o.current,d!==l.current&&i.onAnchorChange(l.current)}),a?null:s.jsx(Vn.div,{...r,ref:c})});YF.displayName=WF;var Uj="PopperContent",[Jae,Wae]=qF(Uj),XF=k.forwardRef((e,t)=>{const{__scopePopper:n,side:a="bottom",sideOffset:r=0,align:i="center",alignOffset:o=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:d=[],collisionPadding:m=0,sticky:h="partial",hideWhenDetached:x=!1,updatePositionStrategy:f="optimized",onPlaced:b,...y}=e,w=GF(Uj,n),[T,A]=k.useState(null),E=Ea(t,fe=>A(fe)),[D,S]=k.useState(null),R=$F(D),L=R?.width??0,I=R?.height??0,F=a+(i!=="center"?"-"+i:""),_=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},U=Array.isArray(d)?d:[d],O=U.length>0,W={padding:_,boundary:U.filter(Xae),altBoundary:O},{refs:J,floatingStyles:oe,placement:G,isPositioned:K,middlewareData:ee}=Mae({strategy:"fixed",placement:F,whileElementsMounted:(...fe)=>jae(...fe,{animationFrame:f==="always"}),elements:{reference:w.anchor},middleware:[Oae({mainAxis:r+I,alignmentAxis:o}),l&&Bae({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?Fae():void 0,...W}),l&&Uae({...W}),Hae({...W,apply:({elements:fe,rects:Ae,availableWidth:xe,availableHeight:ae})=>{const{width:le,height:ze}=Ae.reference,pt=fe.floating.style;pt.setProperty("--radix-popper-available-width",`${xe}px`),pt.setProperty("--radix-popper-available-height",`${ae}px`),pt.setProperty("--radix-popper-anchor-width",`${le}px`),pt.setProperty("--radix-popper-anchor-height",`${ze}px`)}}),D&&zae({element:D,padding:c}),Qae({arrowWidth:L,arrowHeight:I}),x&&Vae({strategy:"referenceHidden",...W})]}),[pe,V]=ZF(G),Y=ao(b);co(()=>{K&&Y?.()},[K,Y]);const z=ee.arrow?.x,H=ee.arrow?.y,ne=ee.arrow?.centerOffset!==0,[te,me]=k.useState();return co(()=>{T&&me(window.getComputedStyle(T).zIndex)},[T]),s.jsx("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...oe,transform:K?oe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[ee.transformOrigin?.x,ee.transformOrigin?.y].join(" "),...ee.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:s.jsx(Jae,{scope:n,placedSide:pe,onArrowChange:S,arrowX:z,arrowY:H,shouldHideArrow:ne,children:s.jsx(Vn.div,{"data-side":pe,"data-align":V,...y,ref:E,style:{...y.style,animation:K?void 0:"none"}})})})});XF.displayName=Uj;var QF="PopperArrow",Yae={top:"bottom",right:"left",bottom:"top",left:"r
50ight"},KF=k.forwardRef(function(t,n){const{__scopePopper:a,...r}=t,i=Wae(QF,a),o=Yae[i.placedSide];return s.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:s.jsx(qae,{...r,ref:n,style:{...r.style,display:"block"}})})});KF.displayName=QF;function Xae(e){return e!==null}var Qae=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:a,middlewareData:r}=t,o=r.arrow?.centerOffset!==0,c=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[d,m]=ZF(n),h={start:"0%",center:"50%",end:"100%"}[m],x=(r.arrow?.x??0)+c/2,f=(r.arrow?.y??0)+l/2;let b="",y="";return d==="bottom"?(b=o?h:`${x}px`,y=`${-l}px`):d==="top"?(b=o?h:`${x}px`,y=`${a.floating.height+l}px`):d==="right"?(b=`${-l}px`,y=o?h:`${f}px`):d==="left"&&(b=`${a.floating.width+l}px`,y=o?h:`${f}px`),{data:{x:b,y}}}});function ZF(e){const[t,n="center"]=e.split("-");return[t,n]}var Hj=JF,Vj=YF,zj=XF,$j=KF,Kae="Portal",M2=k.forwardRef((e,t)=>{const{container:n,...a}=e,[r,i]=k.useState(!1);co(()=>i(!0),[]);const o=n||r&&globalThis?.document?.body;return o?EF.createPortal(s.jsx(Vn.div,{...a,ref:t}),o):null});M2.displayName=Kae;function Zae(e,t){return k.useReducer((n,a)=>t[n][a]??n,e)}var Uo=e=>{const{present:t,children:n}=e,a=ese(t),r=typeof n=="function"?n({present:a.isPresent}):k.Children.only(n),i=Ea(a.ref,tse(r));return typeof n=="function"||a.isPresent?k.cloneElement(r,{ref:i}):null};Uo.displayName="Presence";function ese(e){const[t,n]=k.useState(),a=k.useRef(null),r=k.useRef(e),i=k.useRef("none"),o=e?"mounted":"unmounted",[c,l]=Zae(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{const d=ly(a.current);i.current=c==="mounted"?d:"none"},[c]),co(()=>{const d=a.current,m=r.current;if(m!==e){const x=i.current,f=ly(d);e?l("MOUNT"):f==="none"||d?.display==="none"?l("UNMOUNT"):l(m&&x!==f?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),co(()=>{if(t){let d;const m=t.ownerDocument.defaultView??window,h=f=>{const y=ly(a.current).includes(CSS.escape(f.animationName));if(f.target===t&&y&&(l("ANIMATION_END"),!r.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",d=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},x=f=>{f.target===t&&(i.current=ly(a.current))};return t.addEventListener("animationstart",x),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{m.clearTimeout(d),t.removeEventListener("animationstart",x),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:k.useCallback(d=>{a.current=d?getComputedStyle(d):null,n(d)},[])}}function ly(e){return e?.animationName||"none"}function tse(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var nse=w4[" useInsertionEffect ".trim().toString()]||co;function oh({prop:e,defaultProp:t,onChange:n=()=>{},caller:a}){const[r,i,o]=ase({defaultProp:t,onChange:n}),c=e!==void 0,l=c?e:r;{const m=k.useRef(e!==void 0);k.useEffect(()=>{const h=m.current;h!==c&&console.warn(`${a} is changing from ${h?"controlled":"uncontrolled"} to ${c?"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.`),m.current=c},[c,a])}const d=k.useCallback(m=>{if(c){const h=sse(m)?m(e):m;h!==e&&o.current?.(h)}else i(m)},[c,e,i,o]);return[l,d]}function ase({defaultProp:e,onChange:t}){const[n,a]=k.useState(e),r=k.useRef(n),i=k.useRef(t);return nse(()=>{i.current=t},[t]),k.useEffect(()=>{r.current!==n&&(i.current?.(n),r.current=n)},[n,r]),[n,a,i]}function sse(e){return typeof e=="function"}var eU=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"}),rse="VisuallyHidden",tU=k.forwardRef((e,t)=>
vendor: 4,637 bytes, line 50
50s.jsx(Vn.span,{...e,ref:t,style:{...eU,...e.style}}));tU.displayName=rse;var ise=tU,[D4]=Ll("Tooltip",[gx]),R4=gx(),nU="TooltipProvider",ose=700,bk="tooltip.open",[cse,qj]=D4(nU),aU=e=>{const{__scopeTooltip:t,delayDuration:n=ose,skipDelayDuration:a=300,disableHoverableContent:r=!1,children:i}=e,o=k.useRef(!0),c=k.useRef(!1),l=k.useRef(0);return k.useEffect(()=>{const d=l.current;return()=>window.clearTimeout(d)},[]),s.jsx(cse,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:k.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:k.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,a)},[a]),isPointerInTransitRef:c,onPointerInTransitChange:k.useCallback(d=>{c.current=d},[]),disableHoverableContent:r,children:i})};aU.displayName=nU;var Wb="Tooltip",[lse,L2]=D4(Wb),sU=e=>{const{__scopeTooltip:t,children:n,open:a,defaultOpen:r,onOpenChange:i,disableHoverableContent:o,delayDuration:c}=e,l=qj(Wb,e.__scopeTooltip),d=R4(t),[m,h]=k.useState(null),x=fu(),f=k.useRef(0),b=o??l.disableHoverableContent,y=c??l.delayDuration,w=k.useRef(!1),[T,A]=oh({prop:a,defaultProp:r??!1,onChange:L=>{L?(l.onOpen(),document.dispatchEvent(new CustomEvent(bk))):l.onClose(),i?.(L)},caller:Wb}),E=k.useMemo(()=>T?w.current?"delayed-open":"instant-open":"closed",[T]),D=k.useCallback(()=>{window.clearTimeout(f.current),f.current=0,w.current=!1,A(!0)},[A]),S=k.useCallback(()=>{window.clearTimeout(f.current),f.current=0,A(!1)},[A]),R=k.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{w.current=!0,A(!0),f.current=0},y)},[y,A]);return k.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),s.jsx(Hj,{...d,children:s.jsx(lse,{scope:t,contentId:x,open:T,stateAttribute:E,trigger:m,onTriggerChange:h,onTriggerEnter:k.useCallback(()=>{l.isOpenDelayedRef.current?R():D()},[l.isOpenDelayedRef,R,D]),onTriggerLeave:k.useCallback(()=>{b?S():(window.clearTimeout(f.current),f.current=0)},[S,b]),onOpen:D,onClose:S,disableHoverableContent:b,children:n})})};sU.displayName=Wb;var vk="TooltipTrigger",rU=k.forwardRef((e,t)=>{const{__scopeTooltip:n,...a}=e,r=L2(vk,n),i=qj(vk,n),o=R4(n),c=k.useRef(null),l=Ea(t,c,r.onTriggerChange),d=k.useRef(!1),m=k.useRef(!1),h=k.useCallback(()=>d.current=!1,[]);return k.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),s.jsx(Vj,{asChild:!0,...o,children:s.jsx(Vn.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...a,ref:l,onPointerMove:Kt(e.onPointerMove,x=>{x.pointerType!=="touch"&&!m.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),m.current=!0)}),onPointerLeave:Kt(e.onPointerLeave,()=>{r.onTriggerLeave(),m.current=!1}),onPointerDown:Kt(e.onPointerDown,()=>{r.open&&r.onClose(),d.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Kt(e.onFocus,()=>{d.current||r.onOpen()}),onBlur:Kt(e.onBlur,r.onClose),onClick:Kt(e.onClick,r.onClose)})})});rU.displayName=vk;var Gj="TooltipPortal",[use,dse]=D4(Gj,{forceMount:void 0}),iU=e=>{const{__scopeTooltip:t,forceMount:n,children:a,container:r}=e,i=L2(Gj,t);return s.jsx(use,{scope:t,forceMount:n,children:s.jsx(Uo,{present:n||i.open,children:s.jsx(M2,{asChild:!0,container:r,children:a})})})};iU.displayName=Gj;var ax="TooltipContent",oU=k.forwardRef((e,t)=>{const n=dse(ax,e.__scopeTooltip),{forceMount:a=n.forceMount,side:r="top",...i}=e,o=L2(ax,e.__scopeTooltip);return s.jsx(Uo,{present:a||o.open,children:o.disableHoverableContent?s.jsx(cU,{side:r,...i,ref:t}):s.jsx(mse,{side:r,...i,ref:t})})}),mse=k.forwardRef((e,t)=>{const n=L2(ax,e.__scopeTooltip),a=qj(ax,e.__scopeTooltip),r=k.useRef(null),i=Ea(t,r),[o,c]=k.useState(null),{trigger:l,onClose:d}=n,m=r.current,{onPointerInTransitChange:h}=a,x=k.useCallback(()=>{c(null),h(!1)},[h]),f=k.useCallback((b,y)=>{const w=b.currentTarget,T={x:b.clientX,y:b.clientY},A=gse(T,w.getBoundingClientRect()),E=xse(T,A),D=bse(y.getBoundingClientRect()),S=yse([...E,...D]);c(S),h(!0)},[h]);return k.useEffect(()=>()=>x(),[x]),k.useEffect(()=>{if(l&&m){const b=w=>f(w,m),y=w=>f(w,l);return l.addEventListener("pointerleave",b),m.addEventListener("pointerleave",y),()=>{l.removeEventListener("pointerleave",b),m.removeEventListener("pointerleave",y)}}},[l,m,f,x]),k.useEffect(()=>{if(o){const b=y=>{const w=y.target,T={x:y.clientX,y:y.clientY},A=l?.contains(w)||m?.contains(w),E=!vse(T,o);A?x():E&&(x(),d())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,m,o,d,x]),s.jsx(cU,{...e,ref:i})}),[pse,hse]=D4(Wb,{isInside:!1}),fse=vne("TooltipContent"),cU=k.forwardRef((e,t)=>
vendor: 10,748 bytes, line 50
50{const{__scopeTooltip:n,children:a,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:o,...c}=e,l=L2(ax,n),d=R4(n),{onClose:m}=l;return k.useEffect(()=>(document.addEventListener(bk,m),()=>document.removeEventListener(bk,m)),[m]),k.useEffect(()=>{if(l.trigger){const h=x=>{x.target?.contains(l.trigger)&&m()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[l.trigger,m]),s.jsx(R2,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:h=>h.preventDefault(),onDismiss:m,children:s.jsxs(zj,{"data-state":l.stateAttribute,...d,...c,ref:t,style:{...c.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:[s.jsx(fse,{children:a}),s.jsx(pse,{scope:n,isInside:!0,children:s.jsx(ise,{id:l.contentId,role:"tooltip",children:r||a})})]})})});oU.displayName=ax;var lU="TooltipArrow",uU=k.forwardRef((e,t)=>{const{__scopeTooltip:n,...a}=e,r=R4(n);return hse(lU,n).isInside?null:s.jsx($j,{...r,...a,ref:t})});uU.displayName=lU;function gse(e,t){const n=Math.abs(t.top-e.y),a=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,a,r,i)){case i:return"left";case r:return"right";case n:return"top";case a:return"bottom";default:throw new Error("unreachable")}}function xse(e,t,n=5){const a=[];switch(t){case"top":a.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":a.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":a.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":a.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return a}function bse(e){const{top:t,right:n,bottom:a,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:a},{x:r,y:a}]}function vse(e,t){const{x:n,y:a}=e;let r=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const c=t[i],l=t[o],d=c.x,m=c.y,h=l.x,x=l.y;m>a!=x>a&&n<(h-d)*(a-m)/(x-m)+d&&(r=!r)}return r}function yse(e){const t=e.slice();return t.sort((n,a)=>n.x<a.x?-1:n.x>a.x?1:n.y<a.y?-1:n.y>a.y?1:0),wse(t)}function wse(e){if(e.length<=1)return e.slice();const t=[];for(let a=0;a<e.length;a++){const r=e[a];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(r.y-o.y)>=(i.y-o.y)*(r.x-o.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let a=e.length-1;a>=0;a--){const r=e[a];for(;n.length>=2;){const i=n[n.length-1],o=n[n.length-2];if((i.x-o.x)*(r.y-o.y)>=(i.y-o.y)*(r.x-o.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Tse=aU,Nse=sU,kse=rU,jse=iU,Ase=oU,Ese=uU;function dU(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=dU(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function Jj(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=dU(e))&&(a&&(a+=" "),a+=t);return a}const Wj="-",Cse=e=>{const t=_se(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:o=>{const c=o.split(Wj);return c[0]===""&&c.length!==1&&c.shift(),mU(c,t)||Sse(o)},getConflictingClassGroupIds:(o,c)=>{const l=n[o]||[];return c&&a[o]?[...l,...a[o]]:l}}},mU=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],a=t.nextPart.get(n),r=a?mU(e.slice(1),a):void 0;if(r)return r;if(t.validators.length===0)return;const i=e.join(Wj);return t.validators.find(({validator:o})=>o(i))?.classGroupId},tP=/^\[(.+)\]$/,Sse=e=>{if(tP.test(e)){const t=tP.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},_se=e=>{const{theme:t,classGroups:n}=e,a={nextPart:new Map,validators:[]};for(const r in n)yk(n[r],a,r,t);return a},yk=(e,t,n,a)=>{e.forEach(r=>{if(typeof r=="string"){const i=r===""?t:nP(t,r);i.classGroupId=n;return}if(typeof r=="function"){if(Pse(r)){yk(r(a),t,n,a);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([i,o])=>{yk(o,nP(t,i),n,a)})})},nP=(e,t)=>{let n=e;return t.split(Wj).forEach(a=>{n.nextPart.has(a)||n.nextPart.set(a,{nextPart:new Map,validators:[]}),n=n.nextPart.get(a)}),n},Pse=e=>e.isThemeGetter,Dse=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,a=new Map;const r=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,a=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=a.get(i))!==void 0)return r(i,o),o},set(i,o){n.has(i)?n.set(i,o):r(i,o)}}},wk="!",Tk=":",Rse=Tk.length,Ise=e=>{const{prefix:t,experimentalParseClassName:n}=e;let a=r=>{const i=[];let o=0,c=0,l=0,d;for(let b=0;b<r.length;b++){let y=r[b];if(o===0&&c===0){if(y===Tk){i.push(r.slice(l,b)),l=b+Rse;continue}if(y==="/"){d=b;continue}}y==="["?o++:y==="]"?o--:y==="("?c++:y===")"&&c--}const m=i.length===0?r:r.substring(l),h=Mse(m),x=h!==m,f=d&&d>l?d-l:void 0;return{modifiers:i,hasImportantModifier:x,baseClassName:h,maybePostfixModifierPosition:f}};if(t){const r=t+Tk,i=a;a=o=>o.startsWith(r)?i(o.substring(r.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(n){const r=a;a=i=>n({className:i,parseClassName:r})}return a},Mse=e=>e.endsWith(wk)?e.substring(0,e.length-1):e.startsWith(wk)?e.substring(1):e,Lse=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(a=>[a,!0]));return a=>{if(a.length<=1)return a;const r=[];let i=[];return a.forEach(o=>{o[0]==="["||t[o]?(r.push(...i.sort(),o),i=[]):i.push(o)}),r.push(...i.sort()),r}},Ose=e=>({cache:Dse(e.cacheSize),parseClassName:Ise(e),sortModifiers:Lse(e),...Cse(e)}),Bse=/\s+/,Fse=(e,t)=>{const{parseClassName:n,getClassGroupId:a,getConflictingClassGroupIds:r,sortModifiers:i}=t,o=[],c=e.trim().split(Bse);let l="";for(let d=c.length-1;d>=0;d-=1){const m=c[d],{isExternal:h,modifiers:x,hasImportantModifier:f,baseClassName:b,maybePostfixModifierPosition:y}=n(m);if(h){l=m+(l.length>0?" "+l:l);continue}let w=!!y,T=a(w?b.substring(0,y):b);if(!T){if(!w){l=m+(l.length>0?" "+l:l);continue}if(T=a(b),!T){l=m+(l.length>0?" "+l:l);continue}w=!1}const A=i(x).join(":"),E=f?A+wk:A,D=E+T;if(o.includes(D))continue;o.push(D);const S=r(T,w);for(let R=0;R<S.length;++R){const L=S[R];o.push(E+L)}l=m+(l.length>0?" "+l:l)}return l};function Use(){let e=0,t,n,a="";for(;e<arguments.length;)(t=arguments[e++])&&(n=pU(t))&&(a&&(a+=" "),a+=n);return a}const pU=e=>{if(typeof e=="string")return e;let t,n="";for(let a=0;a<e.length;a++)e[a]&&(t=pU(e[a]))&&(n&&(n+=" "),n+=t);return n};function Hse(e,...t){let n,a,r,i=o;function o(l){const d=t.reduce((m,h)=>h(m),e());return n=Ose(d),a=n.cache.get,r=n.cache.set,i=c,c(l)}function c(l){const d=a(l);if(d)return d;const m=Fse(l,n);return r(l,m),m}return function(){return i(Use.apply(null,arguments))}}const Ti=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},hU=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,fU=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Vse=/^\d+\/\d+$/,zse=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$se=/\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$/,qse=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Gse=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Jse=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,eg=e=>Vse.test(e),fa=e=>!!e&&!Number.isNaN(Number(e)),Sp=e=>!!e&&Number.isInteger(Number(e)),fT=e=>e.endsWith("%")&&fa(e.slice(0,-1)),jm=e=>zse.test(e),Wse=()=>!0,Yse=e=>$se.test(e)&&!qse.test(e),gU=()=>!1,Xse=e=>Gse.test(e),Qse=e=>Jse.test(e),Kse=e=>!hn(e)&&!fn(e),Zse=e=>xx(e,vU,gU),hn=e=>hU.test(e),e0=e=>xx(e,yU,Yse),gT=e=>xx(e,sre,fa),aP=e=>xx(e,xU,gU),ere=e=>xx(e,bU,Qse),uy=e=>xx(e,wU,Xse),fn=e=>fU.test(e),N1=e=>bx(e,yU),tre=e=>bx(e,rre),sP=e=>bx(e,xU),nre=e=>bx(e,vU),are=e=>bx(e,bU),dy=e=>bx(e,wU,!0),xx=(e,t,n)=>{const a=hU.exec(e);return a?a[1]?t(a[1]):n(a[2]):!1},bx=(e,t,n=!1)=>{const a=fU.exec(e);return a?a[1]?t(a[1]):n:!1},xU=e=>e==="position"||e==="percentage",bU=e=>e==="image"||e==="url",vU=e=>e==="length"||e==="size"||e==="bg-size",yU=e=>e==="length",sre=e=>e==="number",rre=e=>e==="family-name",wU=e=>e==="shadow",ire=()=>{const e=Ti("color"),t=Ti("font"),n=Ti("text"),a=Ti("font-weight"),r=Ti("tracking"),i=Ti("leading"),o=Ti("breakpoint"),c=Ti("container"),l=Ti("spacing"),d=Ti("radius"),m=Ti("shadow"),h=Ti("inset-shadow"),x=Ti("text-shadow"),f=Ti("drop-shadow"),b=Ti("blur"),y=Ti("perspective"),w=Ti("aspect"),T=Ti("ease"),A=Ti("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...D(),fn,hn],R=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto","contain","none"],I=()=>[fn,hn,l],F=()=>[eg,"full","auto",...I()],_=()=>[Sp,"none","subgrid",fn,hn],U=()=>["auto",{span:["full",Sp,fn,hn]},Sp,fn,hn],O=()=>[Sp,"auto",fn,hn],W=()=>["auto","min","max","fr",fn,hn],J=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],oe=()=>["start","end","center","stretch","center-safe","end-safe"],G=()=>["auto",...I()],K=()=>[eg,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],ee=()=>[e,fn,hn],pe=()=>[...D(),sP,aP,{position:[fn,hn]}],V=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Y=()=>["auto","cover","contain",nre,Zse,{size:[fn,hn]}],z=()=>[fT,N1,e0],H=()=>["","none","full",d,fn,hn],ne=()=>["",fa,N1,e0],te=()=>["solid","dashed","dotted","double"],me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>[fa,fT,sP,aP],Ae=()=>["","none",b,fn,hn],xe=()=>["none",fa,fn,hn],ae=()=>["none",fa,fn,hn],le=()=>[fa,fn,hn],ze=()=>[eg,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[jm],breakpoint:[jm],color:[Wse],container:[jm],"drop-shadow":[jm],ease:["in","out","in-out"],font:[Kse],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[jm],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[jm],shadow:[jm],spacing:["px",fa],text:[jm],"text-shadow":[jm],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",eg,hn,fn,w]}
vendor: 14,377 bytes, line 50
50],container:["container"],columns:[{columns:[fa,hn,fn,c]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"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"],sr:["sr-only","not-sr-only"],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:S()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{start:F()}],end:[{end:F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[Sp,"auto",fn,hn]}],basis:[{basis:[eg,"full","auto",c,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[fa,eg,"auto","initial","none",hn]}],grow:[{grow:["",fa,fn,hn]}],shrink:[{shrink:["",fa,fn,hn]}],order:[{order:[Sp,"first","last","none",fn,hn]}],"grid-cols":[{"grid-cols":_()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":_()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...J(),"normal"]}],"justify-items":[{"justify-items":[...oe(),"normal"]}],"justify-self":[{"justify-self":["auto",...oe()]}],"align-content":[{content:["normal",...J()]}],"align-items":[{items:[...oe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...oe(),{baseline:["","last"]}]}],"place-content":[{"place-content":J()}],"place-items":[{"place-items":[...oe(),"baseline"]}],"place-self":[{"place-self":["auto",...oe()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:G()}],mx:[{mx:G()}],my:[{my:G()}],ms:[{ms:G()}],me:[{me:G()}],mt:[{mt:G()}],mr:[{mr:G()}],mb:[{mb:G()}],ml:[{ml:G()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],w:[{w:[c,"screen",...K()]}],"min-w":[{"min-w":[c,"screen","none",...K()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[o]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",n,N1,e0]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,fn,gT]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",fT,hn]}],"font-family":[{font:[tre,hn,t]}],"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:[r,fn,hn]}],"line-clamp":[{"line-clamp":[fa,"none",fn,gT]}],leading:[{leading:[i,...I()]}],"list-image":[{"list-image":["none",fn,hn]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",fn,hn]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ee()}],"text-color":[{text:ee()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[fa,"from-font","auto",fn,e0]}],"text-decoration-color":[{decoration:ee()}],"underline-offset":[{"underline-offset":[fa,"auto",fn,hn]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",fn,hn]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",fn,hn]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:pe()}],"bg-repeat":[{bg:V()}],"bg-size":[{bg:Y()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Sp,fn,hn],radial:["",fn,hn],conic:[Sp,fn,hn]},are,ere]}],"bg-color":[{bg:ee()}],"gradient-from-pos":[{from:z()}],"gradient-via-pos":[{via:z()}],"gradient-to-pos":[{to:z()}],"gradient-from":[{from:ee()}],"gradient-via":[{via:ee()}],"gradient-to":[{to:ee()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:ne()}],"border-w-x":[{"border-x":ne()}],"border-w-y":[{"border-y":ne()}],"border-w-s":[{"border-s":ne()}],"border-w-e":[{"border-e":ne()}],"border-w-t":[{"border-t":ne()}],"border-w-r":[{"border-r":ne()}],"border-w-b":[{"border-b":ne()}],"border-w-l":[{"border-l":ne()}],"divide-x":[{"divide-x":ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ne()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"hidden","none"]}],"border-color":[{border:ee()}],"border-color-x":[{"border-x":ee()}],"border-color-y":[{"border-y":ee()}],"border-color-s":[{"border-s":ee()}],"border-color-e":[{"border-e":ee()}],"border-color-t":[{"border-t":ee()}],"border-color-r":[{"border-r":ee()}],"border-color-b":[{"border-b":ee()}],"border-color-l":[{"border-l":ee()}],"divide-color":[{divide:ee()}],"outline-style":[{outline:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[fa,fn,hn]}],"outline-w":[{outline:["",fa,N1,e0]}],"outline-color":[{outline:ee()}],shadow:[{shadow:["","none",m,dy,uy]}],"shadow-color":[{shadow:ee()}],"inset-shadow":[{"inset-shadow":["none",h,dy,uy]}],"inset-shadow-color":[{"inset-shadow":ee()}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ee()}],"ring-offset-w":[{"ring-offset":[fa,e0]}],"ring-offset-color":[{"ring-offset":ee()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":ee()}],"text-shadow":[{"text-shadow":["none",x,dy,uy]}],"text-shadow-color":[{"text-shadow":ee()}],opacity:[{opacity:[fa,fn,hn]}],"mix-blend":[{"mix-blend":[...me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":me()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[fa]}],"mask-image-linear-from-pos":[{"mask-linear-from":fe()}],"mask-image-linear-to-pos":[{"mask-linear-to":fe()}],"mask-image-linear-from-color":[{"mask-linear-from":ee()}],"mask-image-linear-to-color":[{"mask-linear-to":ee()}],"mask-image-t-from-pos":[{"mask-t-from":fe()}],"mask-image-t-to-pos":[{"mask-t-to":fe()}],"mask-image-t-from-color":[{"mask-t-from":ee()}],"mask-image-t-to-color":[{"mask-t-to":ee()}],"mask-image-r-from-pos":[{"mask-r-from":fe()}],"mask-image-r-to-pos":[{"mask-r-to":fe()}],"mask-image-r-from-color":[{"mask-r-from":ee()}],"mask-image-r-to-color":[{"mask-r-to":ee()}],"mask-image-b-from-pos":[{"mask-b-from":fe()}],"mask-image-b-to-pos":[{"mask-b-to":fe()}],"mask-image-b-from-color":[{"mask-b-from":ee()}],"mask-image-b-to-color":[{"mask-b-to":ee()}],"mask-image-l-from-pos":[{"mask-l-from":fe()}],"mask-image-l-to-pos":[{"mask-l-to":fe()}],"mask-image-l-from-color":[{"mask-l-from":ee()}],"mask-image-l-to-color":[{"mask-l-to":ee()}],"mask-image-x-from-pos":[{"mask-x-from":fe()}],"mask-image-x-to-pos":[{"mask-x-to":fe()}],"mask-image-x-from-color":[{"mask-x-from":ee()}],"mask-image-x-to-color":[{"mask-x-to":ee()}],"mask-image-y-from-pos":[{"mask-y-from":fe()}],"mask-image-y-to-pos":[{"mask-y-to":fe()}],"mask-image-y-from-color":[{"mask-y-from":ee()}],"mask-image-y-to-color":[{"mask-y-to":ee()}],"mask-image-radial":[{"mask-radial":[fn,hn]}],"mask-image-radial-from-pos":[{"mask-radial-from":fe()}],"mask-image-radial-to-pos":[{"mask-radial-to":fe()}],"mask-image-radial-from-color":[{"mask-radial-from":ee()}],"mask-image-radial-to-color":[{"mask-radial-to":ee()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":D()}],"mask-image-conic-pos":[{"mask-conic":[fa]}],"mask-image-conic-from-pos":[{"mask-conic-from":fe()}],"mask-image-conic-to-pos":[{"mask-conic-to":fe()}],"mask-image-conic-from-color":[{"mask-conic-from":ee()}],"mask-image-conic-to-color":[{"mask-conic-to":ee()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:pe()}],"mask-repeat":[{mask:V()}],"mask-size":[{mask:Y()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",fn,hn]}],filter:[{filter:["","none",fn,hn]}],blur:[{blur:Ae()}],brightness:[{brightness:[fa,fn,hn]}],contrast:[{contrast:[fa,fn,hn]}],"drop-shadow":[{"drop-shadow":["","none",f,dy,uy]}],"drop-shadow-color":[{"drop-shadow":ee()}],grayscale:[{grayscale:["",fa,fn,hn]}],"hue-rotate":[{"hue-rotate":[fa,fn,hn]}],invert:[{invert:["",fa,fn,hn]}],saturate:[{saturate:[fa,fn,hn]}],sepia:[{sepia:["",fa,fn,hn]}],"backdrop-filter":[{"backdrop-filter":["","none",fn,hn]}],"backdrop-blur":[{"backdrop-blur":Ae()}],"backdrop-brightness":[{"backdrop-brightness":[fa,fn,hn]}],"backdrop-contrast":[{"backdrop-contrast":[fa,fn,hn]}],"backdrop-grayscale":[{"backdrop-grayscale":["",fa,fn,hn]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[fa,fn,hn]}],"backdrop-invert":[{"backdrop-invert":["",fa,fn,hn]}],"backdrop-opacity":[{"backdrop-opacity":[fa,fn,hn]}],"backdrop-saturate":[{"backdrop-saturate":[fa,fn,hn]}],"backdrop-sepia":[{"backdrop-sepia":["",fa,fn,hn]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",fn,hn]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[fa,"initial",fn,hn]}],ease:[{ease:["linear","initial",T,fn,hn]}],delay:[{delay:[fa,fn,hn]}],animate:[{animate:["none",A,fn,hn]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,fn,hn]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:xe()}],"rotate-x":[{"rotate-x":xe()}],"rotate-y":[{"rotate-y":xe()}],"rotate-z":[{"rotate-z":xe()}],scale:[{scale:ae()}],"scale-x":[{"scale-x":ae()}],"scale-y":[{"scale-y":ae()}],"scale-z":[{"scale-z":ae()}],"scale-3d":["scale-3d"],skew:[{skew:le()}],"skew-x":[{"skew-x":le()}],"skew-y":[{"skew-y":le()}],transform:[{transform:[fn,hn,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ze()}],"translate-x":[{"translate-x":ze()}],"translate-y":[{"translate-y":ze()}],"translate-z":[{"translate-z":ze()}],"translate-none":["translate-none"],accent:[{accent:ee()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ee()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",fn,hn]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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"]}
50],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",fn,hn]}],fill:[{fill:["none",...ee()]}],"stroke-w":[{stroke:[fa,N1,e0,gT]}],stroke:[{stroke:["none",...ee()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},TU=Hse(ire);function an(...e){return TU(Jj(e))}function Yj({delayDuration:e=0,...t}){return s.jsx(Tse,{"data-loc":"client/src/components/ui/tooltip.tsx:11","data-slot":"tooltip-provider",delayDuration:e,...t})}function ore({...e}){return s.jsx(Yj,{"data-loc":"client/src/components/ui/tooltip.tsx:23",children:s.jsx(Nse,{"data-loc":"client/src/components/ui/tooltip.tsx:24","data-slot":"tooltip",...e})})}function cre({...e}){return s.jsx(kse,{"data-loc":"client/src/components/ui/tooltip.tsx:32","data-slot":"tooltip-trigger",...e})}function lre({className:e,sideOffset:t=0,children:n,...a}){return s.jsx(jse,{"data-loc":"client/src/components/ui/tooltip.tsx:42",children:s.jsxs(Ase,{"data-loc":"client/src/components/ui/tooltip.tsx:43","data-slot":"tooltip-content",sideOffset:t,className:an("bg-foreground text-background 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 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...a,children:[n,s.jsx(Ese,{"data-loc":"client/src/components/ui/tooltip.tsx:53",className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}function ure(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,a,r,i,o=[],c="",l=e.split("/");for(l[0]||l.shift();r=l.shift();)n=r[0],n==="*"?(o.push(n),c+=r[1]==="?"?"(?:/(.*))?":"/(.*)"):n===":"?(a=r.indexOf("?",1),i=r.indexOf(".",1),o.push(r.substring(1,~a?a:~i?i:r.length)),c+=~a&&!~i?"(?:/([^/]+?))?":"/([^/]+?)",~i&&(c+=(~a?"?":"")+"\\"+r.substring(i))):c+="/"+r;return{keys:o,pattern:new RegExp("^"+c+(t?"(?=$|/)":"/?$"),"i")}}var xT={exports:{}},bT={};
50/** 51 * @license React 52 * use-sync-external-store-shim.production.js 53 * 54 * Copyright (c) Meta Platforms, Inc. and affiliates. 55 * 56 * This source code is licensed under the MIT license found in the 57 * LICENSE file in the root directory of this source tree. 58 */var rP;function dre(){if(rP)return bT;rP=1;var e=y4();function t(h,x){return h===x&&(h!==0||1/h===1/x)||h!==h&&x!==x}var n=typeof Object.is=="function"?Object.is:t,a=e.useState,r=e.useEffect,i=e.useLayoutEffect,o=e.useDebugValue;function c(h,x){var f=x(),b=a({inst:{value:f,getSnapshot:x}}),y=b[0].inst,w=b[1];return i(function(){y.value=f,y.getSnapshot=x,l(y)&&w({inst:y})},[h,f,x]),r(function(){return l(y)&&w({inst:y}),h(function(){l(y)&&w({inst:y})})},[h]),o(f),f}function l(h){var x=h.getSnapshot;h=h.value;try{var f=x();return!n(h,f)}catch{return!0}}function d(h,x){return x()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:c;return bT.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,bT}var iP;function mre(){return iP||(iP=1,xT.exports=dre()),xT.exports}var pre=mre();const hre=w4.useInsertionEffect,fre=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gre=fre?k.useLayoutEffect:k.useEffect,xre=hre||gre,NU=e=>{const t=k.useRef([e,(...n)=>t[0](...n)]).current;return xre(()=>{t[0]=e}),t[1]},bre="popstate",Xj="pushState",Qj="replaceState",vre="hashchange",oP=[bre,Xj,Qj,vre],yre=e=>{for(const t of oP)addEventListener(t,e);return()=>{for(const t of oP)removeEventListener(t,e)}},kU=(e,t)=>pre.useSyncExternalStore(yre,e,t),wre=()=>location.search,Tre=({ssrSearch:e=""}={})=>kU(wre,()=>e),cP=()=>location.pathname,Nre=({ssrPath:e}={})=>kU(cP,e?()=>e:cP),kre=(e,{replace:t=!1,state:n=null}={})=>history[t?Qj:Xj](n,"",e),jre=(e={})=>[Nre(e),kre],lP=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[lP]>"u"){for(const e of[Xj,Qj]){const t=history[e];history[e]=function(){const n=t.apply(this,arguments),a=new Event(e);return a.arguments=arguments,dispatchEvent(a),n}}Object.defineProperty(window,lP,{value:!0})}const Are=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",jU=(e="")=>e==="/"?"":e,Ere=(e,t)=>
58e[0]==="~"?e.slice(1):jU(t)+e,Cre=(e="",t)=>Are(uP(jU(e)),uP(t)),uP=e=>{try{return decodeURI(e)}catch{return e}},AU={hook:jre,searchHook:Tre,parser:ure,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e},EU=k.createContext(AU),O2=()=>k.useContext(EU),CU={},SU=k.createContext(CU),Kj=()=>k.useContext(SU),I4=e=>{const[t,n]=e.hook(e);return[Cre(e.base,t),NU((a,r)=>n(Ere(a,e.base),r))]},_U=()=>I4(O2()),PU=(e,t,n,a)=>{const{pattern:r,keys:i}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",a),o=r.exec(n)||[],[c,...l]=o;return c!==void 0?[!0,(()=>{const d=i!==!1?Object.fromEntries(i.map((h,x)=>[h,l[x]])):o.groups;let m={...l};return d&&Object.assign(m,d),m})(),...a?[c]:[]]:[!1,null]},Sre=({children:e,...t})=>{const n=O2(),a=t.hook?AU:n;let r=a;const[i,o]=t.ssrPath?.split("?")??[];o&&(t.ssrSearch=o,t.ssrPath=i),t.hrefs=t.hrefs??t.hook?.hrefs;let c=k.useRef({}),l=c.current,d=l;for(let m in a){const h=m==="base"?a[m]+(t[m]||""):t[m]||a[m];l===d&&h!==d[m]&&(c.current=d={...d}),d[m]=h,(h!==a[m]||h!==r[m])&&(r=d)}return k.createElement(EU.Provider,{value:r,children:e})},dP=({children:e,component:t},n)=>t?k.createElement(t,{params:n}):typeof e=="function"?e(n):e,_re=e=>{let t=k.useRef(CU);const n=t.current;return t.current=Object.keys(e).length!==Object.keys(n).length||Object.entries(e).some(([a,r])=>r!==n[a])?e:n},ri=({path:e,nest:t,match:n,...a})=>{const r=O2(),[i]=I4(r),[o,c,l]=n??PU(r.parser,e,i,t),d=_re({...Kj(),...c});if(!o)return null;const m=l?k.createElement(Sre,{base:l},dP(a,d)):dP(a,d);return k.createElement(SU.Provider,{value:d,children:m})},ls=k.forwardRef((e,t)=>{const n=O2(),[a,r]=I4(n),{to:i="",href:o=i,onClick:c,asChild:l,children:d,className:m,replace:h,state:x,...f}=e,b=NU(w=>{w.ctrlKey||w.metaKey||w.altKey||w.shiftKey||w.button!==0||(c?.(w),w.defaultPrevented||(w.preventDefault(),r(o,e)))}),y=n.hrefs(o[0]==="~"?o.slice(1):n.base+o,n);return l&&k.isValidElement(d)?k.cloneElement(d,{onClick:b,href:y}):k.createElement("a",{...f,onClick:b,href:y,className:m?.call?m(a===o):m,children:d,ref:t})}),Nk=e=>Array.isArray(e)?e.flatMap(t=>Nk(t&&t.type===k.Fragment?t.props.children:t)):[e],Pre=({children:e,location:t})=>{const n=O2(),[a]=I4(n);typeof window<"u"&&(window.__WOUTER_ROUTES__||(window.__WOUTER_ROUTES__=[]),Nk(e).forEach(i=>{if(k.isValidElement(i)&&i.props.path){const o=i.props.path;window.__WOUTER_ROUTES__.includes(o)||window.__WOUTER_ROUTES__.push(o)}}));for(const r of Nk(e)){let i=0;if(k.isValidElement(r)&&(i=PU(n.parser,r.props.path,t||a,r.props.nest))[0])return k.cloneElement(r,{match:i})}return null};/** 59 * @license lucide-react v0.453.0 - ISC 60 * 61 * This source code is licensed under the ISC license. 62 * See the LICENSE file in the root directory of this source tree. 63 */const Dre=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),DU=(...e)=>e.filter((t,n,a)=>!!t&&a.indexOf(t)===n).join(" ");/** 64 * @license lucide-react v0.453.0 - ISC 65 * 66 * This source code is licensed under the ISC license. 67 * See the LICENSE file in the root directory of this source tree. 68 */var Rre={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"};/** 69 * @license lucide-react v0.453.0 - ISC 70 * 71 * This source code is licensed under the ISC license. 72 * See the LICENSE file in the root directory of this source tree. 73 */const Ire=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:r="",children:i,iconNode:o,...c},l)=>k.createElement("svg",{ref:l,...Rre,width:t,height:t,stroke:e,strokeWidth:a?Number(n)*24/Number(t):n,className:DU("lucide",r),...c},[...o.map(([d,m])=>k.createElement(d,m)),...Array.isArray(i)?i:[i]]));/** 74 * @license lucide-react v0.453.0 - ISC 75 * 76 * This source code is licensed under the ISC license. 77 * See the LICENSE file in the root directory of this source tree. 78 */const Ye=(e,t)=>{const n=k.forwardRef(({className:a,...r},i)=>k.createElement(Ire,{ref:i,iconNode:t,className:DU(`lucide-${Dre(e)}`,a),...r}));return n.displayName=`${e}`,n};/** 79 * @license lucide-react v0.453.0 - ISC 80 * 81 * This source code is licensed under the ISC license. 82 * See the LICENSE file in the root directory of this source tree. 83 */const mP=Ye("ArrowDownLeft",[["path",{d:"M17 7 7 17",key:"15tmo1"}],["path",{d:"M17 17H7V7",key:"1org7z"}]]);/** 84 * @license lucide-react v0.453.0 - ISC 85 * 86 * This source code is licensed under the ISC license. 87 * See the LICENSE file in the root directory of this source tree. 88 */const RU=Ye("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/** 89 * @license lucide-react v0.453.0 - ISC 90 * 91 * This source code is licensed under the ISC license. 92 * See the LICENSE file in the root directory of this source tree. 93 */const _l=Ye("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 94 * @license lucide-react v0.453.0 - ISC 95 * 96 * This source code is licensed under the ISC license. 97 * See the LICENSE file in the root directory of this source tree. 98 */const dr=Ye("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 99 * @license lucide-react v0.453.0 - ISC 100 * 101 * This source code is licensed under the ISC license. 102 * See the LICENSE file in the root directory of this source tree. 103 */const ch=Ye("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/** 104 * @license lucide-react v0.453.0 - ISC 105 * 106 * This source code is licensed under the ISC license. 107 * See the LICENSE file in the root directory of this source tree. 108 */const Mre=Ye("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/** 109 * @license lucide-react v0.453.0 - ISC 110 * 111 * This source code is licensed under the ISC license. 112 * See the LICENSE file in the root directory of this source tree. 113 */const IU=Ye("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"}]]);/** 114 * @license lucide-react v0.453.0 - ISC 115 * 116 * This source code is licensed under the ISC license. 117 * See the LICENSE file in the root directory of this source tree. 118 */const yu=Ye("BadgeCheck",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 119 * @license lucide-react v0.453.0 - ISC 120 * 121 * This source code is licensed under the ISC license. 122 * See the LICENSE file in the root directory of this source tree. 123 */const pP=Ye("Ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]);/** 124 * @license lucide-react v0.453.0 - ISC 125 * 126 * This source code is licensed under the ISC license. 127 * See the LICENSE file in the root directory of this source tree. 128 */const Lre=Ye("Banknote",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M6 12h.01M18 12h.01",key:"113zkx"}]]);/** 129 * @license lucide-react v0.453.0 - ISC 130 * 131 * This source code is licensed under the ISC license. 132 * See the LICENSE file in the root directory of this source tree. 133 */const Cl=Ye("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"}]]);/** 134 * @license lucide-react v0.453.0 - ISC 135 * 136 * This source code is licensed under the ISC license. 137 * See the LICENSE file in the root directory of this source tree. 138 */const Ore=Ye("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/** 139 * @license lucide-react v0.453.0 - ISC 140 * 141 * This source code is licensed under the ISC license. 142 * See the LICENSE file in the root directory of this source tree. 143 */const vx=Ye("BookOpenCheck",[["path",{d:"M12 21V7",key:"gj6g52"}],["path",{d:"m16 12 2 2 4-4",key:"mdajum"}],["path",{d:"M22 6V4a1 1 0 0 0-1-1h-5a4 4 0 0 0-4 4 4 4 0 0 0-4-4H3a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h6a3 3 0 0 1 3 3 3 3 0 0 1 3-3h6a1 1 0 0 0 1-1v-1.3",key:"8arnkb"}]]);/** 144 * @license lucide-react v0.453.0 - ISC 145 * 146 * This source code is licensed under the ISC license. 147 * See the LICENSE file in the root directory of this source tree. 148 */const Bre=Ye("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"}]]);/** 149 * @license lucide-react v0.453.0 - ISC 150 * 151 * This source code is licensed under the ISC license. 152 * See the LICENSE file in the root directory of this source tree. 153 */const kk=Ye("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/** 154 * @license lucide-react v0.453.0 - ISC 155 * 156 * This source code is licensed under the ISC license. 157 * See the LICENSE file in the root directory of this source tree. 158 */const Fre=Ye("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/** 159 * @license lucide-react v0.453.0 - ISC 160 * 161 * This source code is licensed under the ISC license. 162 * See the LICENSE file in the root directory of this source tree. 163 */const Zj=Ye("BriefcaseBusiness",[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M22 13a18.15 18.15 0 0 1-20 0",key:"12hx5q"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** 164 * @license lucide-react v0.453.0 - ISC 165 * 166 * This source code is licensed under the ISC license. 167 * See the LICENSE file in the root directory of this source tree. 168 */const Ure=Ye("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** 169 * @license lucide-react v0.453.0 - ISC 170 * 171 * This source code is licensed under the ISC license. 172 * See the LICENSE file in the root directory of this source tree. 173 */const Im=Ye("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"}
173],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** 174 * @license lucide-react v0.453.0 - ISC 175 * 176 * This source code is licensed under the ISC license. 177 * See the LICENSE file in the root directory of this source tree. 178 */const M4=Ye("Bus",[["path",{d:"M8 6v6",key:"18i7km"}],["path",{d:"M15 6v6",key:"1sg6z9"}],["path",{d:"M2 12h19.6",key:"de5uta"}],["path",{d:"M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3",key:"1wwztk"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}],["path",{d:"M9 18h5",key:"lrx6i"}],["circle",{cx:"16",cy:"18",r:"2",key:"1v4tcr"}]]);/** 179 * @license lucide-react v0.453.0 - ISC 180 * 181 * This source code is licensed under the ISC license. 182 * See the LICENSE file in the root directory of this source tree. 183 */const lh=Ye("Calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]);/** 184 * @license lucide-react v0.453.0 - ISC 185 * 186 * This source code is licensed under the ISC license. 187 * See the LICENSE file in the root directory of this source tree. 188 */const Yb=Ye("CalendarCheck2",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 14V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8",key:"bce9hv"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m16 20 2 2 4-4",key:"13tcca"}]]);/** 189 * @license lucide-react v0.453.0 - ISC 190 * 191 * This source code is licensed under the ISC license. 192 * See the LICENSE file in the root directory of this source tree. 193 */const sx=Ye("CalendarClock",[["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M17.5 17.5 16 16.3V14",key:"akvzfd"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]);/** 194 * @license lucide-react v0.453.0 - ISC 195 * 196 * This source code is licensed under the ISC license. 197 * See the LICENSE file in the root directory of this source tree. 198 */const Xb=Ye("CalendarDays",[["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"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/** 199 * @license lucide-react v0.453.0 - ISC 200 * 201 * This source code is licensed under the ISC license. 202 * See the LICENSE file in the root directory of this source tree. 203 */const jk=Ye("CalendarRange",[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M17 14h-6",key:"bkmgh3"}],["path",{d:"M13 18H7",key:"bb0bb7"}],["path",{d:"M7 14h.01",key:"1qa3f1"}],["path",{d:"M17 18h.01",key:"1bdyru"}]]);/** 204 * @license lucide-react v0.453.0 - ISC 205 * 206 * This source code is licensed under the ISC license. 207 * See the LICENSE file in the root directory of this source tree. 208 */const Hre=Ye("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"}]]);/** 209 * @license lucide-react v0.453.0 - ISC 210 * 211 * This source code is licensed under the ISC license. 212 * See the LICENSE file in the root directory of this source tree. 213 */const Vre=Ye("Car",[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]]);/** 214 * @license lucide-react v0.453.0 - ISC 215 * 216 * This source code is licensed under the ISC license. 217 * See the LICENSE file in the root directory of this source tree. 218 */const eA=Ye("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** 219 * @license lucide-react v0.453.0 - ISC 220 * 221 * This source code is licensed under the ISC license. 222 * See the LICENSE file in the root directory of this source tree. 223 */const bc=Ye("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 224 * @license lucide-react v0.453.0 - ISC 225 * 226 * This source code is licensed under the ISC license. 227 * See the LICENSE file in the root directory of this source tree. 228 */const Y0=Ye("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 229 * @license lucide-react v0.453.0 - ISC 230 * 231 * This source code is licensed under the ISC license. 232 * See the LICENSE file in the root directory of this source tree. 233 */const hP=Ye("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 234 * @license lucide-react v0.453.0 - ISC 235 * 236 * This source code is licensed under the ISC license. 237 * See the LICENSE file in the root directory of this source tree. 238 */const Qb=Ye("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 239 * @license lucide-react v0.453.0 - ISC 240 * 241 * This source code is licensed under the ISC license. 242 * See the LICENSE file in the root directory of this source tree. 243 */const tA=Ye("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 244 * @license lucide-react v0.453.0 - ISC 245 * 246 * This source code is licensed under the ISC license. 247 * See the LICENSE file in the root directory of this source tree. 248 */const Yp=Ye("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"}]]);/** 249 * @license lucide-react v0.453.0 - ISC 250 * 251 * This source code is licensed under the ISC license. 252 * See the LICENSE file in the root directory of this source tree. 253 */const zre=Ye("CircleArrowDown",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"m8 12 4 4 4-4",key:"k98ssh"}]]);/** 254 * @license lucide-react v0.453.0 - ISC 255 * 256 * This source code is licensed under the ISC license. 257 * See the LICENSE file in the root directory of this source tree.
258 */const $re=Ye("CircleArrowUp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]]);/** 259 * @license lucide-react v0.453.0 - ISC 260 * 261 * This source code is licensed under the ISC license. 262 * See the LICENSE file in the root directory of this source tree. 263 */const ns=Ye("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 264 * @license lucide-react v0.453.0 - ISC 265 * 266 * This source code is licensed under the ISC license. 267 * See the LICENSE file in the root directory of this source tree. 268 */const Cd=Ye("CircleDollarSign",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]]);/** 269 * @license lucide-react v0.453.0 - ISC 270 * 271 * This source code is licensed under the ISC license. 272 * See the LICENSE file in the root directory of this source tree. 273 */const qre=Ye("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]]);/** 274 * @license lucide-react v0.453.0 - ISC 275 * 276 * This source code is licensed under the ISC license. 277 * See the LICENSE file in the root directory of this source tree. 278 */const Gre=Ye("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);/** 279 * @license lucide-react v0.453.0 - ISC 280 * 281 * This source code is licensed under the ISC license. 282 * See the LICENSE file in the root directory of this source tree. 283 */const Jre=Ye("CircleSlash",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]]);/** 284 * @license lucide-react v0.453.0 - ISC 285 * 286 * This source code is licensed under the ISC license. 287 * See the LICENSE file in the root directory of this source tree. 288 */const Ak=Ye("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** 289 * @license lucide-react v0.453.0 - ISC 290 * 291 * This source code is licensed under the ISC license. 292 * See the LICENSE file in the root directory of this source tree. 293 */const fP=Ye("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/** 294 * @license lucide-react v0.453.0 - ISC 295 * 296 * This source code is licensed under the ISC license. 297 * See the LICENSE file in the root directory of this source tree. 298 */const MU=Ye("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/** 299 * @license lucide-react v0.453.0 - ISC 300 * 301 * This source code is licensed under the ISC license. 302 * See the LICENSE file in the root directory of this source tree. 303 */const X0=Ye("Clock3",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16.5 12",key:"1aq6pp"}]]);/** 304 * @license lucide-react v0.453.0 - ISC 305 * 306 * This source code is licensed under the ISC license. 307 * See the LICENSE file in the root directory of this source tree. 308 */const Pl=Ye("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 309 * @license lucide-react v0.453.0 - ISC 310 * 311 * This source code is licensed under the ISC license. 312 * See the LICENSE file in the root directory of this source tree. 313 */const Wre=Ye("CloudUpload",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]]);/** 314 * @license lucide-react v0.453.0 - ISC 315 * 316 * This source code is licensed under the ISC license. 317 * See the LICENSE file in the root directory of this source tree. 318 */const gP=Ye("Cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);/** 319 * @license lucide-react v0.453.0 - ISC 320 * 321 * This source code is licensed under the ISC license. 322 * See the LICENSE file in the root directory of this source tree. 323 */const Ek=Ye("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",ke
323y:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 324 * @license lucide-react v0.453.0 - ISC 325 * 326 * This source code is licensed under the ISC license. 327 * See the LICENSE file in the root directory of this source tree. 328 */const Yre=Ye("ContactRound",[["path",{d:"M16 2v2",key:"scm5qe"}],["path",{d:"M17.915 22a6 6 0 0 0-12 0",key:"suqz9p"}],["path",{d:"M8 2v2",key:"pbkmx"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",key:"12vinp"}]]);/** 329 * @license lucide-react v0.453.0 - ISC 330 * 331 * This source code is licensed under the ISC license. 332 * See the LICENSE file in the root directory of this source tree. 333 */const L4=Ye("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** 334 * @license lucide-react v0.453.0 - ISC 335 * 336 * This source code is licensed under the ISC license. 337 * See the LICENSE file in the root directory of this source tree. 338 */const Xre=Ye("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/** 339 * @license lucide-react v0.453.0 - ISC 340 * 341 * This source code is licensed under the ISC license. 342 * See the LICENSE file in the root directory of this source tree. 343 */const Ck=Ye("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/** 344 * @license lucide-react v0.453.0 - ISC 345 * 346 * This source code is licensed under the ISC license. 347 * See the LICENSE file in the root directory of this source tree. 348 */const Sd=Ye("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"}]]);/** 349 * @license lucide-react v0.453.0 - ISC 350 * 351 * This source code is licensed under the ISC license. 352 * See the LICENSE file in the root directory of this source tree. 353 */const uh=Ye("Earth",[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 354 * @license lucide-react v0.453.0 - ISC 355 * 356 * This source code is licensed under the ISC license. 357 * See the LICENSE file in the root directory of this source tree. 358 */const O4=Ye("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** 359 * @license lucide-react v0.453.0 - ISC 360 * 361 * This source code is licensed under the ISC license. 362 * See the LICENSE file in the root directory of this source tree. 363 */const Q0=Ye("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 364 * @license lucide-react v0.453.0 - ISC 365 * 366 * This source code is licensed under the ISC license. 367 * See the LICENSE file in the root directory of this source tree. 368 */const Gi=Ye("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 369 * @license lucide-react v0.453.0 - ISC 370 * 371 * This source code is licensed under the ISC license. 372 * See the LICENSE file in the root directory of this source tree. 373 */const Qre=Ye("FileChartColumnIncreasing",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["path",{d:"M12 18v-4",key:"q1q25u"}],["path",{d:"M16 18v-6",key:"15y0np"}]]);/** 374 * @license lucide-react v0.453.0 - ISC 375 * 376 * This source code is licensed under the ISC license. 377 * See the LICENSE file in the root directory of this source tree. 378 */const _d=Ye("FileCheck2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m3 15 2 2 4-4",key:"1lhrkk"}]]);/** 379 * @license lucide-react v0.453.0 - ISC 380 * 381 * This source code is licensed under the ISC license. 382 * See the LICENSE file in the root directory of this source tree. 383 */const LU=Ye("FileDown",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]]);/** 384 * @license lucide-react v0.453.0 - ISC 385 * 386 * This source code is licensed under the ISC license. 387 * See the LICENSE file in the root directory of this source tree. 388 */const Kre=Ye("FileImage",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]]);/** 389 * @license lucide-react v0.453.0 - ISC 390 * 391 * This source code is licensed under the ISC license. 392 * See the LICENSE file in the root directory of this source tree. 393 */const Zre=Ye("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]]);/** 394 * @license lucide-react v0.453.0 - ISC 395 * 396 * This source code is licensed under the ISC license. 397 * See the LICENSE file in the root directory of this source tree. 398 */const vT=Ye("FilePenLine",[["path",{d:"m18 5-2.414-2.414A2 2 0 0 0 14.172 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2",ke
398y:"142zxg"}],["path",{d:"M21.378 12.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"2t3380"}],["path",{d:"M8 18h1",key:"13wk12"}]]);/** 399 * @license lucide-react v0.453.0 - ISC 400 * 401 * This source code is licensed under the ISC license. 402 * See the LICENSE file in the root directory of this source tree. 403 */const nA=Ye("FileSpreadsheet",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]]);/** 404 * @license lucide-react v0.453.0 - ISC 405 * 406 * This source code is licensed under the ISC license. 407 * See the LICENSE file in the root directory of this source tree. 408 */const ji=Ye("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** 409 * @license lucide-react v0.453.0 - ISC 410 * 411 * This source code is licensed under the ISC license. 412 * See the LICENSE file in the root directory of this source tree. 413 */const yT=Ye("FileUp",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]]);/** 414 * @license lucide-react v0.453.0 - ISC 415 * 416 * This source code is licensed under the ISC license. 417 * See the LICENSE file in the root directory of this source tree. 418 */const eie=Ye("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/** 419 * @license lucide-react v0.453.0 - ISC 420 * 421 * This source code is licensed under the ISC license. 422 * See the LICENSE file in the root directory of this source tree. 423 */const tie=Ye("Fingerprint",[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]]);/** 424 * @license lucide-react v0.453.0 - ISC 425 * 426 * This source code is licensed under the ISC license. 427 * See the LICENSE file in the root directory of this source tree. 428 */const nie=Ye("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/** 429 * @license lucide-react v0.453.0 - ISC 430 * 431 * This source code is licensed under the ISC license. 432 * See the LICENSE file in the root directory of this source tree. 433 */const B2=Ye("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"}]]);/** 434 * @license lucide-react v0.453.0 - ISC 435 * 436 * This source code is licensed under the ISC license. 437 * See the LICENSE file in the root directory of this source tree. 438 */const OU=Ye("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/** 439 * @license lucide-react v0.453.0 - ISC 440 * 441 * This source code is licensed under the ISC license. 442 * See the LICENSE file in the root directory of this source tree. 443 */const BU=Ye("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);/** 444 * @license lucide-react v0.453.0 - ISC 445 * 446 * This source code is licensed under the ISC license. 447 * See the LICENSE file in the root directory of this source tree. 448 */const aie=Ye("HeartPulse",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M3.22 12H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"1uw2ng"}]]);/** 449 * @license lucide-react v0.453.0 - ISC 450 * 451 * This source code is licensed under the ISC license. 452 * See the LICENSE file in the root directory of this source tree. 453 */const FU=Ye("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** 454 * @license lucide-react v0.453.0 - ISC 455 * 456 * This source code is licensed under the ISC license. 457 * See the LICENSE file in the root directory of this source tree. 458 */const wT=Ye("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/** 459 * @license lucide-react v0.453.0 - ISC 460 * 461 * This source code is licensed under the ISC license. 462 * See the LICENSE file in the root directory of this source tree. 463 */const wu=Ye("Hotel",[["path",{d:"M10 22v-6.57",key:"1wmca3"}],["path",{d:"M12 11h.01",key:"z322tv"}],["path",{d:"M12 7h.01",key:"1ivr5q"}],["path",{d:"M14 15.43V22",key:"1q2vjd"}],["path",{d:"M15 16a5 5 0 0 0-6 0",key:"o9wqvi"}],["path",{d:"M16 11h.01",key:"xkw8gn"}],["path",{d:"M16 7h.01",key:"1kdx03"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 7h.01",key:"1vti4s"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]]);/** 464 * @license lucide-react v0.453.0 - ISC 465 * 466 * This source code is licensed under the ISC license. 467 * See the LICENSE file in the root directory of this source tree.
468 */const g3=Ye("IdCard",[["path",{d:"M16 10h2",key:"8sgtl7"}],["path",{d:"M16 14h2",key:"epxaof"}],["path",{d:"M6.17 15a3 3 0 0 1 5.66 0",key:"n6f512"}],["circle",{cx:"9",cy:"11",r:"2",key:"yxgjnd"}],["rect",{x:"2",y:"5",width:"20",height:"14",rx:"2",key:"qneu4z"}]]);/** 469 * @license lucide-react v0.453.0 - ISC 470 * 471 * This source code is licensed under the ISC license. 472 * See the LICENSE file in the root directory of this source tree. 473 */const xP=Ye("ImagePlus",[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]);/** 474 * @license lucide-react v0.453.0 - ISC 475 * 476 * This source code is licensed under the ISC license. 477 * See the LICENSE file in the root directory of this source tree. 478 */const sie=Ye("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/** 479 * @license lucide-react v0.453.0 - ISC 480 * 481 * This source code is licensed under the ISC license. 482 * See the LICENSE file in the root directory of this source tree. 483 */const x3=Ye("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/** 484 * @license lucide-react v0.453.0 - ISC 485 * 486 * This source code is licensed under the ISC license. 487 * See the LICENSE file in the root directory of this source tree. 488 */const Kb=Ye("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** 489 * @license lucide-react v0.453.0 - ISC 490 * 491 * This source code is licensed under the ISC license. 492 * See the LICENSE file in the root directory of this source tree. 493 */const bP=Ye("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/** 494 * @license lucide-react v0.453.0 - ISC 495 * 496 * This source code is licensed under the ISC license. 497 * See the LICENSE file in the root directory of this source tree. 498 */const B4=Ye("Landmark",[["line",{x1:"3",x2:"21",y1:"22",y2:"22",key:"j8o0r"}],["line",{x1:"6",x2:"6",y1:"18",y2:"11",key:"10tf0k"}],["line",{x1:"10",x2:"10",y1:"18",y2:"11",key:"54lgf6"}],["line",{x1:"14",x2:"14",y1:"18",y2:"11",key:"380y"}],["line",{x1:"18",x2:"18",y1:"18",y2:"11",key:"1kevvc"}],["polygon",{points:"12 2 20 7 4 7",key:"jkujk7"}]]);/** 499 * @license lucide-react v0.453.0 - ISC 500 * 501 * This source code is licensed under the ISC license. 502 * See the LICENSE file in the root directory of this source tree. 503 */const kl=Ye("Languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);/** 504 * @license lucide-react v0.453.0 - ISC 505 * 506 * This source code is licensed under the ISC license. 507 * See the LICENSE file in the root directory of this source tree. 508 */const rie=Ye("Layers3",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m6.08 9.5-3.5 1.6a1 1 0 0 0 0 1.81l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9a1 1 0 0 0 0-1.83l-3.5-1.59",key:"1e5n1m"}],["path",{d:"m6.08 14.5-3.5 1.6a1 1 0 0 0 0 1.81l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9a1 1 0 0 0 0-1.83l-3.5-1.59",key:"1iwflc"}]]);/** 509 * @license lucide-react v0.453.0 - ISC 510 * 511 * This source code is licensed under the ISC license. 512 * See the LICENSE file in the root directory of this source tree. 513 */const b3=Ye("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/** 514 * @license lucide-react v0.453.0 - ISC 515 * 516 * This source code is licensed under the ISC license. 517 * See the LICENSE file in the root directory of this source tree. 518 */const iie=Ye("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** 519 * @license lucide-react v0.453.0 - ISC 520 * 521 * This source code is licensed under the ISC license. 522 * See the LICENSE file in the root directory of this source tree.
523 */const aA=Ye("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/** 524 * @license lucide-react v0.453.0 - ISC 525 * 526 * This source code is licensed under the ISC license. 527 * See the LICENSE file in the root directory of this source tree. 528 */const Sk=Ye("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/** 529 * @license lucide-react v0.453.0 - ISC 530 * 531 * This source code is licensed under the ISC license. 532 * See the LICENSE file in the root directory of this source tree. 533 */const ft=Ye("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 534 * @license lucide-react v0.453.0 - ISC 535 * 536 * This source code is licensed under the ISC license. 537 * See the LICENSE file in the root directory of this source tree. 538 */const gu=Ye("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]]);/** 539 * @license lucide-react v0.453.0 - ISC 540 * 541 * This source code is licensed under the ISC license. 542 * See the LICENSE file in the root directory of this source tree. 543 */const oie=Ye("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** 544 * @license lucide-react v0.453.0 - ISC 545 * 546 * This source code is licensed under the ISC license. 547 * See the LICENSE file in the root directory of this source tree. 548 */const cie=Ye("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]);/** 549 * @license lucide-react v0.453.0 - ISC 550 * 551 * This source code is licensed under the ISC license. 552 * See the LICENSE file in the root directory of this source tree. 553 */const F4=Ye("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** 554 * @license lucide-react v0.453.0 - ISC 555 * 556 * This source code is licensed under the ISC license. 557 * See the LICENSE file in the root directory of this source tree. 558 */const lie=Ye("MailCheck",[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"12jkf8"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]]);/** 559 * @license lucide-react v0.453.0 - ISC 560 * 561 * This source code is licensed under the ISC license. 562 * See the LICENSE file in the root directory of this source tree. 563 */const Pd=Ye("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"}]]);/** 564 * @license lucide-react v0.453.0 - ISC 565 * 566 * This source code is licensed under the ISC license. 567 * See the LICENSE file in the root directory of this source tree. 568 */const mr=Ye("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"}]]);/** 569 * @license lucide-react v0.453.0 - ISC 570 * 571 * This source code is licensed under the ISC license. 572 * See the LICENSE file in the root directory of this source tree. 573 */const UU=Ye("MapPinned",[["path",{d:"M18 8c0 3.613-3.869 7.429-5.393 8.795a1 1 0 0 1-1.214 0C9.87 15.429 6 11.613 6 8a6 6 0 0 1 12 0",key:"11u0oz"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M8.714 14h-3.71a1 1 0 0 0-.948.683l-2.004 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .948-1.316l-2-6a1 1 0 0 0-.949-.684h-3.712",key:"q8zwxj"}]]);/** 574 * @license lucide-react v0.453.0 - ISC 575 * 576 * This source code is licensed under the ISC license. 577 * See the LICENSE file in the root directory of this source tree. 578 */const uie=Ye("Map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);/** 579 * @license lucide-react v0.453.0 - ISC 580 * 581 * This source code is licensed under the ISC license. 582 * See the LICENSE file in the root directory of this source tree. 583 */const die=Ye("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"}]]);/** 584 * @license lucide-react v0.453.0 - ISC 585 * 586 * This source code is licensed under the ISC license. 587 * See the LICENSE file in the root directory of this source tree. 588 */const Dd=Ye("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/** 589 * @license lucide-react v0.453.0 - ISC 590 * 591 * This source code is licensed under the ISC license. 592 * See the LICENSE file in the root directory of this source tree. 593 */const mie=Ye("MicOff",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M18.89 13.23A7.12 7.12 0 0 0 19 12v-2",key:"80xlxr"}],["path",{d:"M5 10v2a7 7 0 0 0 12 5",key:"p2k8kg"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);/** 594 * @license lucide-react v0.453.0 - ISC 595 * 596 * This source code is licensed under the ISC license. 597 * See the LICENSE file in the root directory of this source tree. 598 */const HU=Ye("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);/** 599 * @license lucide-react v0.453.0 - ISC 600 * 601 * This source code is licensed under the ISC license. 602 * See the LICENSE file in the root directory of this source tree. 603 */const sA=Ye("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/** 604 * @license lucide-react v0.453.0 - ISC 605 * 606 * This source code is licensed under the ISC license. 607 * See the LICENSE file in the root directory of this source tree. 608 */const pie=Ye("MoonStar",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9",key:"4ay0iu"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}]]);/** 609 * @license lucide-react v0.453.0 - ISC 610 * 611 * This source code is licensed under the ISC license. 612 * See the LICENSE file in the root directory of this source tree. 613 */const VU=Ye("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/** 614 * @license lucide-react v0.453.0 - ISC 615 * 616 * This source code is licensed under the ISC license. 617 * See the LICENSE file in the root directory of this source tree. 618 */const _k=Ye("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"}]]);/** 619 * @license lucide-react v0.453.0 - ISC 620 * 621 * This source code is licensed under the ISC license. 622 * See the LICENSE file in the root directory of this source tree. 623 */const hie=Ye("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/** 624 * @license lucide-react v0.453.0 - ISC 625 * 626 * This source code is licensed under the ISC license. 627 * See the LICENSE file in the root directory of this source tree. 628 */const fie=Ye("Paperclip",[["path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48",key:"1u3ebp"}]]);/** 629 * @license lucide-react v0.453.0 - ISC 630 * 631 * This source code is licensed under the ISC license. 632 * See the LICENSE file in the root directory of this source tree. 633 */const gie=Ye("PartyPopper",[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]]);/** 634 * @license lucide-react v0.453.0 - ISC 635 * 636 * This source code is licensed under the ISC license. 637 * See the LICENSE file in the root directory of this source tree. 638 */const zU=Ye("PencilLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}],["path",{d:"m15 5 3 3",key:"1w25hb"}]]);/** 639 * @license lucide-react v0.453.0 - ISC 640 * 641 * This source code is licensed under the ISC license. 642 * See the LICENSE file in the root directory of this source tree. 643 */const K0=Ye("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/** 644 * @license lucide-react v0.453.0 - ISC 645 * 646 * This source code is licensed under the ISC license. 647 * See the LICENSE file in the root directory of this source tree. 648 */const xie=Ye("Percent",[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]]);/** 649 * @license lucide-react v0.453.0 - ISC 650 * 651 * This source code is licensed under the ISC license. 652 * See the LICENSE file in the root directory of this source tree. 653 */const $U=Ye("PhoneCall",[["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"}],["path",{d:"M14.05 2a9 9 0 0 1 8 7.94",key:"vmijpz"}],["path",{d:"M14.05 6A5 5 0 0 1 18 10",key:"13nbpp"}]]);/** 654 * @license lucide-react v0.453.0 - ISC 655 * 656 * This source code is licensed under the ISC license. 657 * See the LICENSE file in the root directory of this source tree. 658 */const I0=Ye("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"}]]);/** 659 * @license lucide-react v0.453.0 - ISC 660 * 661 * This source code is licensed under the ISC license. 662 * See the LICENSE file in the root directory of this source tree. 663 */const fb=Ye("PlaneTakeoff",[["path",{d:"M2 22h20",key:"272qi7"}],["path",{d:"M6.36 17.4 4 17l-2-4 1.1-.55a2 2 0 0 1 1.8 0l.17.1a2 2 0 0 0 1.8 0L8 12 5 6l.9-.45a2 2 0 0 1 2.09.2l4.02 3a2 2 0 0 0 2.1.2l4.19-2.06a2.41 2.41 0 0 1 1.73-.17L21 7a1.4 1.4 0 0 1 .87 1.99l-.38.76c-.23.46-.6.84-1.07 1.08L7.58 17.2a2 2 0 0 1-1.22.18Z",key:"fkigj9"}]]);/** 664 * @license lucide-react v0.453.0 - ISC 665 * 666 * This source code is licensed under the ISC license. 667 * See the LICENSE file in the root directory of this source tree. 668 */const Hs=Ye("Plane",[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.
6681-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]]);/** 669 * @license lucide-react v0.453.0 - ISC 670 * 671 * This source code is licensed under the ISC license. 672 * See the LICENSE file in the root directory of this source tree. 673 */const oa=Ye("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** 674 * @license lucide-react v0.453.0 - ISC 675 * 676 * This source code is licensed under the ISC license. 677 * See the LICENSE file in the root directory of this source tree. 678 */const bie=Ye("Printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]);/** 679 * @license lucide-react v0.453.0 - ISC 680 * 681 * This source code is licensed under the ISC license. 682 * See the LICENSE file in the root directory of this source tree. 683 */const vie=Ye("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/** 684 * @license lucide-react v0.453.0 - ISC 685 * 686 * This source code is licensed under the ISC license. 687 * See the LICENSE file in the root directory of this source tree. 688 */const v3=Ye("ReceiptText",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M14 8H8",key:"1l3xfs"}],["path",{d:"M16 12H8",key:"1fr5h0"}],["path",{d:"M13 16H8",key:"wsln4y"}]]);/** 689 * @license lucide-react v0.453.0 - ISC 690 * 691 * This source code is licensed under the ISC license. 692 * See the LICENSE file in the root directory of this source tree. 693 */const qU=Ye("Receipt",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]]);/** 694 * @license lucide-react v0.453.0 - ISC 695 * 696 * This source code is licensed under the ISC license. 697 * See the LICENSE file in the root directory of this source tree. 698 */const GU=Ye("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]]);/** 699 * @license lucide-react v0.453.0 - ISC 700 * 701 * This source code is licensed under the ISC license. 702 * See the LICENSE file in the root directory of this source tree. 703 */const JU=Ye("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** 704 * @license lucide-react v0.453.0 - ISC 705 * 706 * This source code is licensed under the ISC license. 707 * See the LICENSE file in the root directory of this source tree. 708 */const vP=Ye("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/** 709 * @license lucide-react v0.453.0 - ISC 710 * 711 * This source code is licensed under the ISC license. 712 * See the LICENSE file in the root directory of this source tree. 713 */const Z0=Ye("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/** 714 * @license lucide-react v0.453.0 - ISC 715 * 716 * This source code is licensed under the ISC license. 717 * See the LICENSE file in the root directory of this source tree. 718 */const rA=Ye("Route",[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]]);/** 719 * @license lucide-react v0.453.0 - ISC 720 * 721 * This source code is licensed under the ISC license. 722 * See the LICENSE file in the root directory of this source tree. 723 */const ef=Ye("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/** 724 * @license lucide-react v0.453.0 - ISC 725 * 726 * This source code is licensed under the ISC license. 727 * See the LICENSE file in the root directory of this source tree. 728 */const B5=Ye("ScrollText",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/** 729 * @license lucide-react v0.453.0 - ISC 730 * 731 * This source code is licensed under the ISC license. 732 * See the LICENSE file in the root directory of this source tree. 733 */const Pk=Ye("SearchCheck",[["path",{d:"m8 11 2 2 4-4",key:"1sed1v"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 734 * @license lucide-react v0.453.0 - ISC 735 * 736 * This source code is licensed under the ISC license. 737 * See the LICENSE file in the root directory of this source tree. 738 */const so=Ye("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 739 * @license lucide-react v0.453.0 - ISC 740 * 741 * This source code is licensed under the ISC license. 742 * See the LICENSE file in the root directory of this source tree. 743 */const Zb=Ye("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/** 744 * @license lucide-react v0.453.0 - ISC 745 * 746 * This source code is licensed under the ISC license. 747 * See the LICENSE file in the root directory of this source tree. 748 */const yP=Ye("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/** 749 * @license lucide-react v0.453.0 - ISC 750 * 751 * This source code is licensed under the ISC license. 752 * See the LICENSE file in the root directory of this source tree. 753 */const gb=Ye("ShieldAlert",[["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",ke
753y:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/** 754 * @license lucide-react v0.453.0 - ISC 755 * 756 * This source code is licensed under the ISC license. 757 * See the LICENSE file in the root directory of this source tree. 758 */const sa=Ye("ShieldCheck",[["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"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 759 * @license lucide-react v0.453.0 - ISC 760 * 761 * This source code is licensed under the ISC license. 762 * See the LICENSE file in the root directory of this source tree. 763 */const y3=Ye("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"}]]);/** 764 * @license lucide-react v0.453.0 - ISC 765 * 766 * This source code is licensed under the ISC license. 767 * See the LICENSE file in the root directory of this source tree. 768 */const yie=Ye("Ship",[["path",{d:"M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1 .6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"iegodh"}],["path",{d:"M19.38 20A11.6 11.6 0 0 0 21 14l-9-4-9 4c0 2.9.94 5.34 2.81 7.76",key:"fp8vka"}],["path",{d:"M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6",key:"qpkstq"}],["path",{d:"M12 10v4",key:"1kjpxc"}],["path",{d:"M12 2v3",key:"qbqxhf"}]]);/** 769 * @license lucide-react v0.453.0 - ISC 770 * 771 * This source code is licensed under the ISC license. 772 * See the LICENSE file in the root directory of this source tree. 773 */const wie=Ye("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/** 774 * @license lucide-react v0.453.0 - ISC 775 * 776 * This source code is licensed under the ISC license. 777 * See the LICENSE file in the root directory of this source tree. 778 */const pr=Ye("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"}]]);/** 779 * @license lucide-react v0.453.0 - ISC 780 * 781 * This source code is licensed under the ISC license. 782 * See the LICENSE file in the root directory of this source tree. 783 */const Tie=Ye("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/** 784 * @license lucide-react v0.453.0 - ISC 785 * 786 * This source code is licensed under the ISC license. 787 * See the LICENSE file in the root directory of this source tree. 788 */const Nie=Ye("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/** 789 * @license lucide-react v0.453.0 - ISC 790 * 791 * This source code is licensed under the ISC license. 792 * See the LICENSE file in the root directory of this source tree. 793 */const WU=Ye("Stamp",[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M19.27 13.73A2.5 2.5 0 0 0 17.5 13h-11A2.5 2.5 0 0 0 4 15.5V17a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-1.5c0-.66-.26-1.3-.73-1.77Z",key:"1sy9ra"}],["path",{d:"M14 13V8.5C14 7 15 7 15 5a3 3 0 0 0-3-3c-1.66 0-3 1-3 3s1 2 1 3.5V13",key:"cnxgux"}]]);/** 794 * @license lucide-react v0.453.0 - ISC 795 * 796 * This source code is licensed under the ISC license. 797 * See the LICENSE file in the root directory of this source tree. 798 */const Tu=Ye("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/** 799 * @license lucide-react v0.453.0 - ISC 800 * 801 * This source code is licensed under the ISC license. 802 * See the LICENSE file in the root directory of this source tree. 803 */const kie=Ye("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/** 804 * @license lucide-react v0.453.0 - ISC 805 * 806 * This source code is licensed under the ISC license. 807 * See the LICENSE file in the root directory of this source tree. 808 */const jie=Ye("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** 809 * @license lucide-react v0.453.0 - ISC 810 * 811 * This source code is licensed under the ISC license. 812 * See the LICENSE file in the root directory of this source tree. 813 */const U4=Ye("TicketCheck",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 814 * @license lucide-react v0.453.0 - ISC 815 * 816 * This source code is licensed under the ISC license. 817 * See the LICENSE file in the root directory of this source tree. 818 */const TT=Ye("Ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]);/** 819 * @license lucide-react v0.453.0 - ISC 820 * 821 * This source code is licensed under the ISC license. 822 * See the LICENSE file in the root directory of this source tree. 823 */const ro=Ye("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
823],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/** 824 * @license lucide-react v0.453.0 - ISC 825 * 826 * This source code is licensed under the ISC license. 827 * See the LICENSE file in the root directory of this source tree. 828 */const Aie=Ye("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/** 829 * @license lucide-react v0.453.0 - ISC 830 * 831 * This source code is licensed under the ISC license. 832 * See the LICENSE file in the root directory of this source tree. 833 */const iA=Ye("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** 834 * @license lucide-react v0.453.0 - ISC 835 * 836 * This source code is licensed under the ISC license. 837 * See the LICENSE file in the root directory of this source tree. 838 */const zi=Ye("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 839 * @license lucide-react v0.453.0 - ISC 840 * 841 * This source code is licensed under the ISC license. 842 * See the LICENSE file in the root directory of this source tree. 843 */const dh=Ye("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/** 844 * @license lucide-react v0.453.0 - ISC 845 * 846 * This source code is licensed under the ISC license. 847 * See the LICENSE file in the root directory of this source tree. 848 */const YU=Ye("UserCog",[["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m21.7 16.4-.9-.3",key:"12j9ji"}],["path",{d:"m15.2 13.9-.9-.3",key:"1fdjdi"}],["path",{d:"m16.6 18.7.3-.9",key:"heedtr"}],["path",{d:"m19.1 12.2.3-.9",key:"1af3ki"}],["path",{d:"m19.6 18.7-.4-1",key:"1x9vze"}],["path",{d:"m16.8 12.3-.4-1",key:"vqeiwj"}],["path",{d:"m14.3 16.6 1-.4",key:"1qlj63"}],["path",{d:"m20.7 13.8 1-.4",key:"1v5t8k"}]]);/** 849 * @license lucide-react v0.453.0 - ISC 850 * 851 * This source code is licensed under the ISC license. 852 * See the LICENSE file in the root directory of this source tree. 853 */const Eie=Ye("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/** 854 * @license lucide-react v0.453.0 - ISC 855 * 856 * This source code is licensed under the ISC license. 857 * See the LICENSE file in the root directory of this source tree. 858 */const Cie=Ye("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"}]]);/** 859 * @license lucide-react v0.453.0 - ISC 860 * 861 * This source code is licensed under the ISC license. 862 * See the LICENSE file in the root directory of this source tree. 863 */const Dk=Ye("UsersRound",[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]]);/** 864 * @license lucide-react v0.453.0 - ISC 865 * 866 * This source code is licensed under the ISC license. 867 * See the LICENSE file in the root directory of this source tree. 868 */const Dl=Ye("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"}]]);/** 869 * @license lucide-react v0.453.0 - ISC 870 * 871 * This source code is licensed under the ISC license. 872 * See the LICENSE file in the root directory of this source tree. 873 */const oA=Ye("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);/** 874 * @license lucide-react v0.453.0 - ISC 875 * 876 * This source code is licensed under the ISC license. 877 * See the LICENSE file in the root directory of this source tree. 878 */const XU=Ye("VolumeX",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]);/** 879 * @license lucide-react v0.453.0 - ISC 880 * 881 * This source code is licensed under the ISC license. 882 * See the LICENSE file in the root directory of this source tree.
883 */const M0=Ye("WalletCards",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2",key:"4125el"}],["path",{d:"M3 11h3c.8 0 1.6.3 2.1.9l1.1.9c1.6 1.6 4.1 1.6 5.7 0l1.1-.9c.5-.5 1.3-.9 2.1-.9H21",key:"1dpki6"}]]);/** 884 * @license lucide-react v0.453.0 - ISC 885 * 886 * This source code is licensed under the ISC license. 887 * See the LICENSE file in the root directory of this source tree. 888 */const th=Ye("Wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);/** 889 * @license lucide-react v0.453.0 - ISC 890 * 891 * This source code is licensed under the ISC license. 892 * See the LICENSE file in the root directory of this source tree. 893 */const ks=Ye("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);class Sie extends k.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}render(){return this.state.hasError?s.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:27",className:"flex items-center justify-center min-h-screen p-8 bg-background",children:s.jsxs("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:28",className:"flex flex-col items-center w-full max-w-2xl p-8",children:[s.jsx(zi,{"data-loc":"client/src/components/ErrorBoundary.tsx:29",size:48,className:"text-destructive mb-6 flex-shrink-0"}),s.jsx("h2",{"data-loc":"client/src/components/ErrorBoundary.tsx:34",className:"text-xl mb-4",children:"An unexpected error occurred."}),s.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:36",className:"p-4 w-full rounded bg-muted overflow-auto mb-6",children:s.jsx("pre",{"data-loc":"client/src/components/ErrorBoundary.tsx:37",className:"text-sm text-muted-foreground whitespace-break-spaces",children:this.state.error?.stack})}),s.jsxs("button",{"data-loc":"client/src/components/ErrorBoundary.tsx:42",onClick:()=>window.location.reload(),className:an("flex items-center gap-2 px-4 py-2 rounded-lg","bg-primary text-primary-foreground","hover:opacity-90 cursor-pointer"),children:[s.jsx(Z0,{"data-loc":"client/src/components/ErrorBoundary.tsx:50",size:16}),"Reload Page"]})]})}):this.props.children}}const Oa={url:"https://www.ibrix.digital",email:"[email protected]",supportEmail:"[email protected]",logoUrl:"/manus-storage/ibrix-logo_1fc1d3d8.png",rahhalIconUrl:"/manus-storage/rahhal-ibrix-icon-transparent_ed05d04a.png",taglineAr:"Ø§ÙØ³Ùر ÙØ§ÙتشغÙÙ ÙØ§Ùخد٠ة Ù٠تجربة ÙØ§ØØ¯Ø©",taglineEn:"Travel, operations, and service in one experience"},Xc={language:"ibrix-language",languageConfirmed:"ibrix-language-confirmed",theme:"ibrix-theme",systemLanguage:"ibrix-system-language",trainingMode:"ibrix-training-mode",adminLivePreview:"ibrix-admin-live-preview"},QU=k.createContext(void 0);function wP(){return typeof navigator>"u"||[navigator.language,...navigator.languages||[]].some(n=>n&&n.toLowerCase().startsWith("ar"))?"ar":"en"}function _ie({children:e}){const t=wP(),[n,a]=k.useState(()=>{const m=localStorage.getItem(Xc.language);return m==="ar"||m==="en"?m:wP()}),[r,i]=k.useState(()=>!localStorage.getItem(Xc.languageConfirmed)),o=n==="ar",c=m=>{a(m),localStorage.setItem(Xc.language,m)},l=m=>{c(m),localStorage.setItem(Xc.languageConfirmed,"1"),i(!1)};k.useEffect(()=>{const m=document.documentElement;m.setAttribute("dir",o?"rtl":"ltr"),m.setAttribute("lang",n)},[n,o]);const d=m=>Pie[n]?.[m]||m;return s.jsx(QU.Provider,{"data-loc":"client/src/contexts/LanguageContext.tsx:72",value:{lang:n,setLang:c,t:d,isRTL:o,needsLanguageChoice:r,detectedLang:t,confirmLanguage:l},children:e})}function zs(){const e=k.useContext(QU);if(!e)throw new Error("useLanguage must be used within LanguageProvider");return e}const Pie={en:{"nav.home":"Home","nav.destinations":"Destinations","nav.umrah":"Umrah & Hajj","nav.services":"Services","nav.about":"About","nav.contact":"Contact","nav.bookNow":"Book Now","nav.visa":"Visa Services","hero.tagline":"Licensed Travel Agency â Outgoing Programs & Umrah","hero.title":"Where Every Journey Becomes a Story","hero.subtitle":"From the minarets of Istanbul to the sacred grounds of Makkah â we craft extraordinary travel experiences with 15+ years of expertise.","hero.cta1":"Explore Destinations","hero.cta2":"Plan Your Umrah","dest.title":"Our Destinations","dest.subtitle":"Curated journeys to the world's most captivating places","dest.turkey":"Turkey","dest.egypt":"Egypt","dest.georgia":"Georgia","dest.mix":"Mix","dest.kosovo":"Kosovo","dest.azerbaijan":"Azerbaijan","dest.asia":"Southeast Asia","dest.umrah":"Umrah & Hajj","dest.flights":"Flight Tickets","dest.visas":"Visa Services","umrah.title":"Umrah & Hajj Programs","umrah.subtitle":"Sacred journeys crafted with devotion and care","umrah.desc":"Complete Umrah and Hajj packages with premium accommodations near Al-Haram, guided spiritual programs, and 24/7 support throughout your sacred journey.","services.title":"Our Services","services.subtitle":"Everything you need for a seamless journey","about.title":"About IBRIX","about.subt
893itle":"Travel services and operations brought together with clarity","about.story":"IBRIX brings travel discovery, service requests, bookings, and operational follow-up into one consistent bilingual experience.","contact.title":"Get In Touch","contact.subtitle":"Your next adventure starts with a message","footer.rights":"All rights reserved.","footer.designed":"Designed by","footer.tagline":"Travel, operations, and service in one experience","common.learnMore":"Learn More","common.bookNow":"Book Now","common.viewAll":"View All","common.startingFrom":"Starting from","common.perPerson":"per person","common.days":"Days","common.whatsapp":"WhatsApp Us","common.from":"From","common.night":"Nights","common.viewProgram":"View Program","common.downloadPdf":"Download PDF","common.share":"Share","common.inquire":"Inquire Now","common.allDestinations":"All","pkg.overview":"Overview","pkg.itinerary":"Day-by-Day Itinerary","pkg.inclusions":"What's Included","pkg.exclusions":"Not Included","pkg.hotels":"Accommodation","pkg.highlights":"Trip Highlights","pkg.duration":"Duration","pkg.price":"Price","pkg.backToDest":"Back to Destinations","pkg.relatedTitle":"You May Also Like","pkg.bookThis":"Book This Program","pkg.gallery":"Gallery","share.title":"Share this program","share.whatsapp":"WhatsApp","share.email":"Email","share.facebook":"Facebook","share.telegram":"Telegram","share.copy":"Copy Link","share.copied":"Link copied!","langcard.title":"Choose your language","langcard.desc":"We detected your device language. You can continue or switch anytime.","langcard.ar":"Ø§ÙØ¹Ø±Ø¨ÙØ©","langcard.en":"English","langcard.continue":"Continue","inquiry.name":"Full Name","inquiry.email":"Email","inquiry.phone":"Phone","inquiry.message":"Message","inquiry.send":"Send Inquiry","inquiry.success":"Thank you! We'll contact you shortly.","inquiry.sending":"Sending..."},ar:{"nav.home":"Ø§ÙØ±Ø¦ÙØ³ÙØ©","nav.destinations":"اÙÙØ¬Ùات","nav.umrah":"Ø§ÙØ¹Ù
رة ÙØ§ÙØØ¬","nav.services":"خدÙ
Ø§ØªÙØ§","nav.about":"Ù
Ù ÙØÙ","nav.contact":"ØªÙØ§ØµÙ Ù
Ø¹ÙØ§","nav.bookNow":"Ø§ØØ¬Ø² Ø§ÙØ¢Ù","nav.visa":"خدÙ
Ø© Ø§ÙØªØ£Ø´Ùرات","hero.tagline":"ÙÙØ§ÙØ© Ø³ÙØ§ØØ© Ù
رخصة â Ø¨Ø±Ø§Ù
ج Ø³ÙØ§ØÙØ© Ø®Ø§Ø±Ø¬ÙØ© ÙØ§ÙعÙ
رة ÙØ§ÙØØ¬","hero.title":"ØÙØ« ØªØµØ¨Ø Ù٠رØÙØ© ÙØµØ©","hero.subtitle":"Ù
Ù Ù
Ø¢Ø°Ù Ø§Ø³Ø·ÙØ¨Ù٠إÙÙ Ø§ÙØ£Ø±Ø§Ø¶Ù اÙÙ
ÙØ¯Ø³Ø© ÙÙ Ù
ÙØ© â ÙØµÙع تجارب Ø³ÙØ± Ø§Ø³ØªØ«ÙØ§Ø¦ÙØ© بخبرة ØªØªØ¬Ø§ÙØ² ١٥ عاÙ
اÙ.","hero.cta1":"Ø§Ø³ØªÙØ´Ù اÙÙØ¬Ùات","hero.cta2":"خطط ÙØ¹Ù
رتÙ","dest.title":"ÙØ¬ÙØ§ØªÙØ§","dest.subtitle":"رØÙات Ù
ختارة Ø¨Ø¹ÙØ§ÙØ© Ø¥Ù٠أجÙ
Ù Ø§ÙØ£Ù
اÙÙ ÙÙ Ø§ÙØ¹Ø§ÙÙ
","dest.turkey":"ترÙÙØ§","dest.egypt":"Ù
صر","dest.georgia":"Ø¬ÙØ±Ø¬Ùا","dest.mix":"Ù
ÙØ³","dest.kosovo":"ÙÙØ³ÙÙÙ","dest.azerbaijan":"Ø£Ø°Ø±Ø¨ÙØ¬Ø§Ù","dest.asia":"Ø´Ø±Ù Ø¢Ø³ÙØ§","dest.umrah":"Ø§ÙØ¹Ù
رة ÙØ§ÙØØ¬","dest.flights":"ØªØ°Ø§ÙØ± Ø·ÙØ±Ø§Ù","dest.visas":"ØªØ£Ø´ÙØ±Ø§Øª","umrah.title":"براÙ
ج Ø§ÙØ¹Ù
رة ÙØ§ÙØØ¬","umrah.subtitle":"رØÙات Ù
ÙØ¯Ø³Ø© Ù
صÙ
Ù
Ø© Ø¨Ø¥Ø®ÙØ§Øµ ÙØ¹ÙØ§ÙØ©","umrah.desc":"Ø¨Ø§ÙØ§Øª عÙ
رة ÙØØ¬ Ù
ØªÙØ§Ù
ÙØ© Ù
ع Ø¥ÙØ§Ù
Ø© ÙØ§Ø®Ø±Ø© باÙÙØ±Ø¨ Ù
Ù Ø§ÙØØ±Ù
Ø ÙØ¨Ø±Ø§Ù
ج Ø±ÙØØ§ÙÙØ© Ø¨Ø¥Ø±Ø´Ø§Ø¯Ø ÙØ¯Ø¹Ù
عÙÙ Ù
دار Ø§ÙØ³Ø§Ø¹Ø© Ø·ÙØ§Ù رØÙت٠اÙÙ
ÙØ¯Ø³Ø©.","services.title":"خدÙ
Ø§ØªÙØ§","services.subtitle":"ÙÙ Ù
ا ØªØØªØ§Ø¬Ù ÙØ±ØÙØ© Ø³ÙØ³Ø© ÙÙ
Ø±ÙØØ©","about.title":"ع٠IBRIX","about.subtitle":"خدÙ
ات Ø§ÙØ³Ùر ÙØ§ÙتشغÙÙ Ù٠تجربة ÙØ§Ø¶ØØ© ÙÙ
ØªÙØ§Ù
ÙØ©","about.story":"تجÙ
ع IBRIX Ø§Ø³ØªÙØ´Ø§Ù براÙ
ج Ø§ÙØ³Ùر ÙØ·Ùبات Ø§ÙØ®Ø¯Ù
Ø© ÙØ§ÙØØ¬Ùزات ÙØ§ÙÙ
تابعة Ø§ÙØªØ´ØºÙÙÙØ© ضÙ
٠تجربة Ø«ÙØ§Ø¦ÙØ© اÙÙØºØ© ÙÙ
ØªØ³ÙØ©.","contact.title":"ØªÙØ§ØµÙ Ù
Ø¹ÙØ§","contact.subtitle":"Ù
غاÙ
رت٠اÙÙØ§Ø¯Ù
Ø© تبدأ Ø¨Ø±Ø³Ø§ÙØ©","footer.rights":"جÙ
ÙØ¹ Ø§ÙØÙÙÙ Ù
ØÙÙØ¸Ø©.","footer.designed":"صÙÙ
Ù
Ø¨ÙØ§Ø³Ø·Ø©","footer.tagline":"Ø§ÙØ³Ùر ÙØ§ÙتشغÙÙ ÙØ§ÙخدÙ
Ø© Ù٠تجربة ÙØ§ØØ¯Ø©","common.learnMore":"اعر٠اÙÙ
Ø²ÙØ¯","common.bookNow":"Ø§ØØ¬Ø² Ø§ÙØ¢Ù","common.viewAll":"عرض اÙÙÙ","common.startingFrom":"تبدأ Ù
Ù","common.perPerson":"ÙÙØ´Ø®Øµ","common.days":"Ø£ÙØ§Ù
","common.whatsapp":"ØªÙØ§ØµÙ ÙØ§ØªØ³Ø§Ø¨","common.from":"Ù
Ù","common.night":"ÙÙØ§ÙÙ","common.viewProgram":"عرض Ø§ÙØ¨Ø±ÙاÙ
ج","common.downloadPdf":"تØÙ
ÙÙ PDF","common.share":"Ù
Ø´Ø§Ø±ÙØ©","common.inquire":"Ø§Ø³ØªÙØ³Ø± Ø§ÙØ¢Ù","common.allDestinations":"اÙÙÙ","pkg.overview":"ÙØ¸Ø±Ø© عاÙ
Ø©","pkg.itinerary":"Ø§ÙØ¨Ø±ÙاÙ
ج اÙÙÙÙ
Ù","pkg.inclusions":"ÙØ´Ù
Ù Ø§ÙØ¨Ø±ÙاÙ
ج","pkg.exclusions":"ÙØ§ ÙØ´Ù
Ù Ø§ÙØ¨Ø±ÙاÙ
ج","pkg.hotels":"Ø§ÙØ¥ÙاÙ
Ø©","pkg.highlights":"أبرز Ù
عاÙÙ
Ø§ÙØ±ØÙØ©","pkg.duration":"اÙÙ
دة","pkg.price":"Ø§ÙØ³Ø¹Ø±","pkg.backToDest":"Ø§ÙØ¹Ùدة ÙÙÙØ¬Ùات","pkg.relatedTitle":"ÙØ¯ ÙØ¹Ø¬Ø¨Ù Ø£ÙØ¶Ø§Ù","pkg.bookThis":"Ø§ØØ¬Ø² ÙØ°Ø§ Ø§ÙØ¨Ø±ÙاÙ
ج","pkg.gallery":"Ù
عرض Ø§ÙØµÙر","share.title":"Ø´Ø§Ø±Ù ÙØ°Ø§ Ø§ÙØ¨Ø±ÙاÙ
ج","share.whatsapp":"ÙØ§ØªØ³Ø§Ø¨","share.email":"Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ","share.facebook":"ÙÙØ³Ø¨ÙÙ","share.telegram":"تÙÙÙØ¬Ø±Ø§Ù
","share.copy":"ÙØ³Ø® Ø§ÙØ±Ø§Ø¨Ø·","share.copied":"تÙ
ÙØ³Ø® Ø§ÙØ±Ø§Ø¨Ø·!","langcard.title":"اختر ÙØºØªÙ","langcard.desc":"Ø§ÙØªØ´ÙÙØ§ ÙØºØ© Ø¬ÙØ§Ø²Ù. ÙÙ
ÙÙ٠اÙÙ
تابعة Ø£Ù Ø§ÙØªØ¨Ø¯ÙÙ Ù٠أ٠ÙÙØª.","langcard.ar":"Ø§ÙØ¹Ø±Ø¨ÙØ©","langcard.en":"English","langcard.continue":"Ù
تابعة","inquiry.name":"Ø§ÙØ§Ø³Ù
اÙÙØ§Ù
Ù","inquiry.email":"Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ","inquiry.phone":"رÙÙ
اÙÙØ§ØªÙ","inquiry.message":"Ø±Ø³Ø§ÙØªÙ","
893inquiry.send":"Ø¥Ø±Ø³Ø§Ù Ø§ÙØ§Ø³ØªÙسار","inquiry.success":"Ø´ÙØ±Ø§Ù ÙÙ! Ø³ÙØªÙاص٠Ù
Ø¹Ù ÙØ±ÙباÙ.","inquiry.sending":"Ø¬Ø§Ø±Ù Ø§ÙØ¥Ø±Ø³Ø§Ù..."}};function Die(){const{needsLanguageChoice:e,detectedLang:t,confirmLanguage:n}=zs(),[a,r]=k.useState(!1),[i,o]=k.useState(!1);if(k.useEffect(()=>{if(e){const d=setTimeout(()=>r(!0),700);return()=>clearTimeout(d)}},[e]),!e)return null;const c=d=>{o(!0),setTimeout(()=>n(d),220)},l=t==="ar";return s.jsxs("div",{"data-loc":"client/src/components/LanguageCard.tsx:35",className:"fixed inset-0 z-[120] flex items-center justify-center p-4",role:"dialog","aria-modal":"true",children:[s.jsx("div",{"data-loc":"client/src/components/LanguageCard.tsx:41",className:`absolute inset-0 bg-black/50 backdrop-blur-sm transition-opacity duration-300 ${a&&!i?"opacity-100":"opacity-0"}`}),s.jsxs("div",{"data-loc":"client/src/components/LanguageCard.tsx:48",className:`relative w-full max-w-md rounded-2xl bg-white dark:bg-[#1A1A1A] shadow-2xl border border-black/5 dark:border-white/10 overflow-hidden transition-all duration-300 ${a&&!i?"opacity-100 translate-y-0 scale-100":"opacity-0 translate-y-4 scale-[0.96]"}`,children:[s.jsx("div",{"data-loc":"client/src/components/LanguageCard.tsx:54",className:"h-1.5 bg-gradient-to-r from-[#C9A961] via-[#C9A961] to-[#C9A961]"}),s.jsx("button",{"data-loc":"client/src/components/LanguageCard.tsx:56",onClick:()=>c(t),className:"absolute top-3 ltr:right-3 rtl:left-3 w-8 h-8 rounded-full flex items-center justify-center text-muted-foreground hover:bg-accent transition-colors","aria-label":"Close",children:s.jsx(ks,{"data-loc":"client/src/components/LanguageCard.tsx:61",className:"w-4 h-4"})}),s.jsxs("div",{"data-loc":"client/src/components/LanguageCard.tsx:64",className:"px-7 pt-8 pb-7 text-center",children:[s.jsx("div",{"data-loc":"client/src/components/LanguageCard.tsx:65",className:"w-14 h-14 rounded-full bg-[#C9A961]/10 flex items-center justify-center mx-auto mb-5",children:s.jsx(B2,{"data-loc":"client/src/components/LanguageCard.tsx:66",className:"w-7 h-7 text-[#C9A961]"})}),s.jsx("h3",{"data-loc":"client/src/components/LanguageCard.tsx:70",className:"font-display font-bold text-2xl text-foreground mb-1",children:l?"Ù
Ø±ØØ¨Ø§Ù ب٠ÙÙ IBRIX":"Welcome to IBRIX"}),s.jsx("p",{"data-loc":"client/src/components/LanguageCard.tsx:73",className:"text-sm text-muted-foreground mb-1",children:l?"ÙØ¨Ø¯Ù Ø£Ù ÙØºØ© Ø¬ÙØ§Ø²Ù ÙÙ Ø§ÙØ¹Ø±Ø¨ÙØ©":"Your device language appears to be English"}),s.jsx("p",{"data-loc":"client/src/components/LanguageCard.tsx:78",className:"text-xs text-muted-foreground/70 mb-6",children:l?"اختر ÙØºØªÙ اÙÙ
ÙØ¶ÙØ© ÙÙ
تابعة Ø§ÙØªØµÙØ":"Choose your preferred language to continue"}),s.jsxs("div",{"data-loc":"client/src/components/LanguageCard.tsx:84",className:"grid grid-cols-2 gap-3",children:[s.jsxs("button",{"data-loc":"client/src/components/LanguageCard.tsx:86",onClick:()=>c("ar"),className:`group relative px-4 py-4 rounded-xl border-2 transition-all active:scale-[0.97] ${l?"border-[#C9A961] bg-[#C9A961]/5":"border-border hover:border-[#C9A961]/50"}`,children:[s.jsx("span",{"data-loc":"client/src/components/LanguageCard.tsx:94",className:"block text-2xl mb-1",children:"ð¯ð´"}),s.jsx("span",{"data-loc":"client/src/components/LanguageCard.tsx:95",className:"block font-bold text-foreground",children:"Ø§ÙØ¹Ø±Ø¨ÙØ©"}),s.jsx("span",{"data-loc":"client/src/components/LanguageCard.tsx:96",className:"block text-[11px] text-muted-foreground",children:"Arabic"}),l&&s.jsx("span",{"data-loc":"client/src/components/LanguageCard.tsx:98",className:"absolute top-2 ltr:right-2 rtl:left-2 text-[9px] font-bold text-[#C9A961] uppercase tracking-wide",children:"â"})]}),s.jsxs("button",{"data-loc":"client/src/components/LanguageCard.tsx:105",onClick:()=>c("en"),className:`group relative px-4 py-4 rounded-xl border-2 transition-all active:scale-[0.97] ${l?"border-border hover:border-[#C9A961]/50":"border-[#C9A961] bg-[#C9A961]/5"}`,children:[s.jsx("span",{"data-loc":"client/src/components/LanguageCard.tsx:113",className:"block text-2xl mb-1",children:"ð¬ð§"}),s.jsx("span",{"data-loc":"client/src/components/LanguageCard.tsx:114",className:"block font-bold text-foreground",children:"English"}),s.jsx("span",{"data-loc":"client/src/components/LanguageCard.tsx:115",className:"block text-[11px] text-muted-foreground",children:"Ø§ÙØ¥ÙجÙÙØ²ÙØ©"}),!l&&s.jsx("span",{"data-loc":"client/src/components/LanguageCard.tsx:117",className:"absolute top-2 ltr:right-2 rtl:left-2 text-[9px] font-bold text-[#C9A961] uppercase tracking-wide",children:"â"})]})]}),s.jsx("p",{"data-loc":"client/src/components/LanguageCard.tsx:124",className:"text-[10px] text-muted-foreground
vendor: 4,161 bytes, line 893
893/50 mt-5",children:l?"ÙÙ
ÙÙ٠تغÙÙØ± اÙÙØºØ© Ù٠أ٠ÙÙØª Ù
٠اÙÙØ§Ø¦Ù
Ø© Ø§ÙØ¹ÙÙÙØ©":"You can change the language anytime from the top menu"})]})]})]})}function Rie(){const e=Pe.useUtils(),t=k.useRef(null),{data:n}=Pe.packages.contentVersion.useQuery(void 0,{enabled:!1,staleTime:1/0});return k.useEffect(()=>{if(n){if(t.current===null){t.current=n;return}t.current!==n&&(t.current=n,e.packages.list.invalidate(),e.packages.getBySlug.invalidate())}},[n,e]),null}var NT="focusScope.autoFocusOnMount",kT="focusScope.autoFocusOnUnmount",TP={bubbles:!1,cancelable:!0},Iie="FocusScope",H4=k.forwardRef((e,t)=>{const{loop:n=!1,trapped:a=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...o}=e,[c,l]=k.useState(null),d=ao(r),m=ao(i),h=k.useRef(null),x=Ea(t,y=>l(y)),f=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(a){let y=function(E){if(f.paused||!c)return;const D=E.target;c.contains(D)?h.current=D:Up(h.current,{select:!0})},w=function(E){if(f.paused||!c)return;const D=E.relatedTarget;D!==null&&(c.contains(D)||Up(h.current,{select:!0}))},T=function(E){if(document.activeElement===document.body)for(const S of E)S.removedNodes.length>0&&Up(c)};document.addEventListener("focusin",y),document.addEventListener("focusout",w);const A=new MutationObserver(T);return c&&A.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",w),A.disconnect()}}},[a,c,f.paused]),k.useEffect(()=>{if(c){kP.add(f);const y=document.activeElement;if(!c.contains(y)){const T=new CustomEvent(NT,TP);c.addEventListener(NT,d),c.dispatchEvent(T),T.defaultPrevented||(Mie(Uie(KU(c)),{select:!0}),document.activeElement===y&&Up(c))}return()=>{c.removeEventListener(NT,d),setTimeout(()=>{const T=new CustomEvent(kT,TP);c.addEventListener(kT,m),c.dispatchEvent(T),T.defaultPrevented||Up(y??document.body,{select:!0}),c.removeEventListener(kT,m),kP.remove(f)},0)}}},[c,d,m,f]);const b=k.useCallback(y=>{if(!n&&!a||f.paused)return;const w=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,T=document.activeElement;if(w&&T){const A=y.currentTarget,[E,D]=Lie(A);E&&D?!y.shiftKey&&T===D?(y.preventDefault(),n&&Up(E,{select:!0})):y.shiftKey&&T===E&&(y.preventDefault(),n&&Up(D,{select:!0})):T===A&&y.preventDefault()}},[n,a,f.paused]);return s.jsx(Vn.div,{tabIndex:-1,...o,ref:x,onKeyDown:b})});H4.displayName=Iie;function Mie(e,{select:t=!1}={}){const n=document.activeElement;for(const a of e)if(Up(a,{select:t}),document.activeElement!==n)return}function Lie(e){const t=KU(e),n=NP(t,e),a=NP(t.reverse(),e);return[n,a]}function KU(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const r=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||r?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function NP(e,t){for(const n of e)if(!Oie(n,{upTo:t}))return n}function Oie(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 Bie(e){return e instanceof HTMLInputElement&&"select"in e}function Up(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Bie(e)&&t&&e.select()}}var kP=Fie();function Fie(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=jP(e,t),e.unshift(t)},remove(t){e=jP(e,t),e[0]?.resume()}}}function jP(e,t){const n=[...e],a=n.indexOf(t);return a!==-1&&n.splice(a,1),n}function Uie(e){return e.filter(t=>t.tagName!=="A")}var jT=0;function cA(){k.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??AP()),document.body.insertAdjacentElement("beforeend",e[1]??AP()),jT++,()=>{jT===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),jT--}},[])}function AP(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 4,147 bytes, line 893
893style.position="fixed",e.style.pointerEvents="none",e}var hd=function(){return hd=Object.assign||function(t){for(var n,a=1,r=arguments.length;a<r;a++){n=arguments[a];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},hd.apply(this,arguments)};function ZU(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n}function Hie(e,t,n){if(n||arguments.length===2)for(var a=0,r=t.length,i;a<r;a++)(i||!(a in t))&&(i||(i=Array.prototype.slice.call(t,0,a)),i[a]=t[a]);return e.concat(i||Array.prototype.slice.call(t))}var F5="right-scroll-bar-position",U5="width-before-scroll-bar",Vie="with-scroll-bars-hidden",zie="--removed-body-scroll-bar-size";function AT(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function $ie(e,t){var n=k.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(a){var r=n.value;r!==a&&(n.value=a,n.callback(a,r))}}}})[0];return n.callback=t,n.facade}var qie=typeof window<"u"?k.useLayoutEffect:k.useEffect,EP=new WeakMap;function Gie(e,t){var n=$ie(null,function(a){return e.forEach(function(r){return AT(r,a)})});return qie(function(){var a=EP.get(n);if(a){var r=new Set(a),i=new Set(e),o=n.current;r.forEach(function(c){i.has(c)||AT(c,null)}),i.forEach(function(c){r.has(c)||AT(c,o)})}EP.set(n,e)},[e]),n}function Jie(e){return e}function Wie(e,t){t===void 0&&(t=Jie);var n=[],a=!1,r={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var o=t(i,a);return n.push(o),function(){n=n.filter(function(c){return c!==o})}},assignSyncMedium:function(i){for(a=!0;n.length;){var o=n;n=[],o.forEach(i)}n={push:function(c){return i(c)},filter:function(){return n}}},assignMedium:function(i){a=!0;var o=[];if(n.length){var c=n;n=[],c.forEach(i),o=n}var l=function(){var m=o;o=[],m.forEach(i)},d=function(){return Promise.resolve().then(l)};d(),n={push:function(m){o.push(m),d()},filter:function(m){return o=o.filter(m),n}}}};return r}function Yie(e){e===void 0&&(e={});var t=Wie(null);return t.options=hd({async:!0,ssr:!1},e),t}var eH=function(e){var t=e.sideCar,n=ZU(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return k.createElement(a,hd({},n))};eH.isSideCarExport=!0;function Xie(e,t){return e.useMedium(t),eH}var tH=Yie(),ET=function(){},V4=k.forwardRef(function(e,t){var n=k.useRef(null),a=k.useState({onScrollCapture:ET,onWheelCapture:ET,onTouchMoveCapture:ET}),r=a[0],i=a[1],o=e.forwardProps,c=e.children,l=e.className,d=e.removeScrollBar,m=e.enabled,h=e.shards,x=e.sideCar,f=e.noRelative,b=e.noIsolation,y=e.inert,w=e.allowPinchZoom,T=e.as,A=T===void 0?"div":T,E=e.gapMode,D=ZU(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=x,R=Gie([n,t]),L=hd(hd({},D),r);return k.createElement(k.Fragment,null,m&&k.createElement(S,{sideCar:tH,removeScrollBar:d,shards:h,noRelative:f,noIsolation:b,inert:y,setCallbacks:i,allowPinchZoom:!!w,lockRef:n,gapMode:E}),o?k.cloneElement(k.Children.only(c),hd(hd({},L),{ref:R})):k.createElement(A,hd({},L,{className:l,ref:R}),c))});V4.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};V4.classNames={fullWidth:U5,zeroRight:F5};var Qie=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Kie(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Qie();return t&&e.setAttribute("nonce",t),e}function Zie(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function eoe(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var toe=function(){var e=0,t=null;
vendor: 4,638 bytes, lines 893-933
893return{add:function(n){e==0&&(t=Kie())&&(Zie(t,n),eoe(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},noe=function(){var e=toe();return function(t,n){k.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},nH=function(){var e=noe(),t=function(n){var a=n.styles,r=n.dynamic;return e(a,r),null};return t},aoe={left:0,top:0,right:0,gap:0},CT=function(e){return parseInt(e||"",10)||0},soe=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],a=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[CT(n),CT(a),CT(r)]},roe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return aoe;var t=soe(e),n=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-n+t[2]-t[0])}},ioe=nH(),Vg="data-scroll-locked",ooe=function(e,t,n,a){var r=e.left,i=e.top,o=e.right,c=e.gap;return n===void 0&&(n="margin"),` 894 .`.concat(Vie,` { 895 overflow: hidden `).concat(a,`; 896 padding-right: `).concat(c,"px ").concat(a,`; 897 } 898 body[`).concat(Vg,`] { 899 overflow: hidden `).concat(a,`; 900 overscroll-behavior: contain; 901 `).concat([t&&"position: relative ".concat(a,";"),n==="margin"&&` 902 padding-left: `.concat(r,`px; 903 padding-top: `).concat(i,`px; 904 padding-right: `).concat(o,`px; 905 margin-left:0; 906 margin-top:0; 907 margin-right: `).concat(c,"px ").concat(a,`; 908 `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(a,";")].filter(Boolean).join(""),` 909 } 910 911 .`).concat(F5,` { 912 right: `).concat(c,"px ").concat(a,`; 913 } 914 915 .`).concat(U5,` { 916 margin-right: `).concat(c,"px ").concat(a,`; 917 } 918 919 .`).concat(F5," .").concat(F5,` { 920 right: 0 `).concat(a,`; 921 } 922 923 .`).concat(U5," .").concat(U5,` { 924 margin-right: 0 `).concat(a,`; 925 } 926 927 body[`).concat(Vg,`] { 928 `).concat(zie,": ").concat(c,`px; 929 } 930`)},CP=function(){var e=parseInt(document.body.getAttribute(Vg)||"0",10);return isFinite(e)?e:0},coe=function(){k.useEffect(function(){return document.body.setAttribute(Vg,(CP()+1).toString()),function(){var e=CP()-1;e<=0?document.body.removeAttribute(Vg):document.body.setAttribute(Vg,e.toString())}},[])},loe=function(e){var t=e.noRelative,n=e.noImportant,a=e.gapMode,r=a===void 0?"margin":a;coe();var i=k.useMemo(function(){return roe(r)},[r]);return k.createElement(ioe,{styles:ooe(i,!t,r,n?"":"!important")})},Rk=!1;if(typeof window<"u")try{var my=Object.defineProperty({},"passive",{get:function(){return Rk=!0,!0}});window.addEventListener("test",my,my),window.removeEventListener("test",my,my)}catch{Rk=!1}var tg=Rk?{passive:!1}:!1,uoe=function(e){return e.tagName==="TEXTAREA"},aH=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!uoe(e)&&n[t]==="visible")},doe=function(e){return aH(e,"overflowY")},moe=function(e){return aH(e,"overflowX")},SP=function(e,t){var n=t.ownerDocument,a=t;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var r=sH(e,a);if(r){var i=rH(e,a),o=i[1],c=i[2];if(o>c)return!0}a=a.parentNode}while(a&&a!==n.body);return!1},poe=function(e){var t=e.scrollTop,n=e.scrollHeight,a=e.clientHeight;return[t,n,a]},hoe=function(e){var t=e.scrollLeft,n=e.scrollWidth,a=e.clientWidth;return[t,n,a]},sH=function(e,t){return e==="v"?doe(t):moe(t)},rH=function(e,t){return e==="v"?poe(t):hoe(t)},foe=function(e,t){return e==="h"&&t==="rtl"?-1:1},goe=function(e,t,n,a,r){var i=foe(e,window.getComputedStyle(t).direction),o=i*a,c=n.target,l=t.contains(c),d=!1,m=o>0,h=0,x=0;do{if(!c)break;var f=rH(e,c),b=f[0],y=f[1],w=f[2],T=y-w-i*b;(b||T)&&sH(e,c)&&(h+=T,x+=b);var A=c.parentNode;c=A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE?A.host:A}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return(m&&Math.abs(h)<1||!m&&Math.abs(x)<1)&&(d=!0),d},py=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_P=function(e){return[e.deltaX,e.deltaY]},PP=function(e){return e&&"current"in e?e.current:e},xoe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},boe=function(e){return` 931 .block-interactivity-`.concat(e,` {pointer-events: none;} 932 .allow-interactivity-`).concat(e,` {pointer-events: all;} 933`)},voe=0,ng=[];function yoe(e){var t=k.useRef([]),n=k.useRef([0,0]),a=k.useRef(),r=k.useState(voe++)[0],i=k.useState(nH)[0],o=k.useRef(e);k.useEffect(function(){o.current=e},[e]),k.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var y=Hie([e.lockRef.current],(e.shards||[]).map(PP),!0).filter(
vendor: 1,116 bytes, line 933
933Boolean);return y.forEach(function(w){return w.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),y.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var c=k.useCallback(function(y,w){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!o.current.allowPinchZoom;var T=py(y),A=n.current,E="deltaX"in y?y.deltaX:A[0]-T[0],D="deltaY"in y?y.deltaY:A[1]-T[1],S,R=y.target,L=Math.abs(E)>Math.abs(D)?"h":"v";if("touches"in y&&L==="h"&&R.type==="range")return!1;var I=SP(L,R);if(!I)return!0;if(I?S=L:(S=L==="v"?"h":"v",I=SP(L,R)),!I)return!1;if(!a.current&&"changedTouches"in y&&(E||D)&&(a.current=S),!S)return!0;var F=a.current||S;return goe(F,w,y,F==="h"?E:D)},[]),l=k.useCallback(function(y){var w=y;if(!(!ng.length||ng[ng.length-1]!==i)){var T="deltaY"in w?_P(w):py(w),A=t.current.filter(function(S){return S.name===w.type&&(S.target===w.target||w.target===S.shadowParent)&&xoe(S.delta,T)})[0];if(A&&A.should){w.cancelable&&w.preventDefault();return}
vendor: 4,099 bytes, line 933
933if(!A){var E=(o.current.shards||[]).map(PP).filter(Boolean).filter(function(S){return S.contains(w.target)}),D=E.length>0?c(w,E[0]):!o.current.noIsolation;D&&w.cancelable&&w.preventDefault()}}},[]),d=k.useCallback(function(y,w,T,A){var E={name:y,delta:w,target:T,should:A,shadowParent:woe(T)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(D){return D!==E})},1)},[]),m=k.useCallback(function(y){n.current=py(y),a.current=void 0},[]),h=k.useCallback(function(y){d(y.type,_P(y),y.target,c(y,e.lockRef.current))},[]),x=k.useCallback(function(y){d(y.type,py(y),y.target,c(y,e.lockRef.current))},[]);k.useEffect(function(){return ng.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:x}),document.addEventListener("wheel",l,tg),document.addEventListener("touchmove",l,tg),document.addEventListener("touchstart",m,tg),function(){ng=ng.filter(function(y){return y!==i}),document.removeEventListener("wheel",l,tg),document.removeEventListener("touchmove",l,tg),document.removeEventListener("touchstart",m,tg)}},[]);var f=e.removeScrollBar,b=e.inert;return k.createElement(k.Fragment,null,b?k.createElement(i,{styles:boe(r)}):null,f?k.createElement(loe,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function woe(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Toe=Xie(tH,yoe);var z4=k.forwardRef(function(e,t){return k.createElement(V4,hd({},e,{ref:t,sideCar:Toe}))});z4.classNames=V4.classNames;var Noe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ag=new WeakMap,hy=new WeakMap,fy={},ST=0,iH=function(e){return e&&(e.host||iH(e.parentNode))},koe=function(e,t){return t.map(function(n){if(e.contains(n))return n;var a=iH(n);return a&&e.contains(a)?a:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},joe=function(e,t,n,a){var r=koe(t,Array.isArray(e)?e:[e]);fy[n]||(fy[n]=new WeakMap);var i=fy[n],o=[],c=new Set,l=new Set(r),d=function(h){!h||c.has(h)||(c.add(h),d(h.parentNode))};r.forEach(d);var m=function(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,function(x){if(c.has(x))m(x);else try{var f=x.getAttribute(a),b=f!==null&&f!=="false",y=(ag.get(x)||0)+1,w=(i.get(x)||0)+1;ag.set(x,y),i.set(x,w),o.push(x),y===1&&b&&hy.set(x,!0),w===1&&x.setAttribute(n,"true"),b||x.setAttribute(a,"true")}catch(T){console.error("aria-hidden: cannot operate on ",x,T)}})};return m(t),c.clear(),ST++,function(){o.forEach(function(h){var x=ag.get(h)-1,f=i.get(h)-1;ag.set(h,x),i.set(h,f),x||(hy.has(h)||h.removeAttribute(a),hy.delete(h)),f||h.removeAttribute(n)}),ST--,ST||(ag=new WeakMap,ag=new WeakMap,hy=new WeakMap,fy={})}},lA=function(e,t,n){n===void 0&&(n="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),r=Noe(e);return r?(a.push.apply(a,Array.from(r.querySelectorAll("[aria-live], script"))),joe(a,r,n,"aria-hidden")):function(){return null}},$4="Dialog",[oH]=Ll($4),[Aoe,Au]=oH($4),cH=e=>{const{__scopeDialog:t,children:n,open:a,defaultOpen:r,onOpenChange:i,modal:o=!0}=e,c=k.useRef(null),l=k.useRef(null),[d,m]=oh({prop:a,defaultProp:r??!1,onChange:i,caller:$4});return s.jsx(Aoe,{scope:t,triggerRef:c,contentRef:l,contentId:fu(),titleId:fu(),descriptionId:fu(),open:d,onOpenChange:m,onOpenToggle:k.useCallback(()=>m(h=>!h),[m]),modal:o,children:n})};cH.displayName=$4;var lH="DialogTrigger",uH=k.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,r=Au(lH,n),i=Ea(t,r.triggerRef);return s.jsx(Vn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":mA(r.open),...a,ref:i,onClick:Kt(e.onClick,r.onOpenToggle)})});uH.displayName=lH;var uA="DialogPortal",[Eoe,dH]=oH(uA,{forceMount:void 0}),mH=e=>{const{__scopeDialog:t,forceMount:n,children:a,container:r}=e,i=Au(uA,t);return s.jsx(Eoe,{scope:t,forceMount:n,children:k.Children.map(a,o=>s.jsx(Uo,{present:n||i.open,children:s.jsx(M2,{asChild:!0,container:r,children:o})}))})};mH.displayName=uA;var w3="DialogOverlay",pH=k.forwardRef((e,t)=>
933{const n=dH(w3,e.__scopeDialog),{forceMount:a=n.forceMount,...r}=e,i=Au(w3,e.__scopeDialog);return i.modal?s.jsx(Uo,{present:a||i.open,children:s.jsx(Soe,{...r,ref:t})}):null});pH.displayName=w3;var Coe=D0("DialogOverlay.RemoveScroll"),Soe=k.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,r=Au(w3,n);return s.jsx(z4,{as:Coe,allowPinchZoom:!0,shards:[r.contentRef],children:s.jsx(Vn.div,{"data-state":mA(r.open),...a,ref:t,style:{pointerEvents:"auto",...a.style}})})}),L0="DialogContent",hH=k.forwardRef((e,t)=>{const n=dH(L0,e.__scopeDialog),{forceMount:a=n.forceMount,...r}=e,i=Au(L0,e.__scopeDialog);return s.jsx(Uo,{present:a||i.open,children:i.modal?s.jsx(_oe,{...r,ref:t}):s.jsx(Poe,{...r,ref:t})})});hH.displayName=L0;var _oe=k.forwardRef((e,t)=>{const n=Au(L0,e.__scopeDialog),a=k.useRef(null),r=Ea(t,n.contentRef,a);return k.useEffect(()=>{const i=a.current;if(i)return lA(i)},[]),s.jsx(fH,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Kt(e.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Kt(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,c=o.button===0&&o.ctrlKey===!0;(o.button===2||c)&&i.preventDefault()}),onFocusOutside:Kt(e.onFocusOutside,i=>i.preventDefault())})}),Poe=k.forwardRef((e,t)=>{const n=Au(L0,e.__scopeDialog),a=k.useRef(!1),r=k.useRef(!1);return s.jsx(fH,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(a.current||n.triggerRef.current?.focus(),i.preventDefault()),a.current=!1,r.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(a.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const o=i.target;n.triggerRef.current?.contains(o)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),fH=k.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:a,onOpenAutoFocus:r,onCloseAutoFocus:i,...o}=e,c=Au(L0,n),l=k.useRef(null),d=Ea(t,l);return cA(),s.jsxs(s.Fragment,{children:[s.jsx(H4,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:r,onUnmountAutoFocus:i,children:s.jsx(R2,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":mA(c.open),...o,ref:d,onDismiss:()=>c.onOpenChange(!1)})}),s.jsxs(s.Fragment,{children:[s.jsx(Doe,{titleId:c.titleId}),s.jsx(Ioe,{contentRef:l,descriptionId:c.descriptionId})]})]})}),dA="DialogTitle",gH=k.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,r=Au(dA,n);return s.jsx(Vn.h2,{id:r.titleId,...a,ref:t})});gH.displayName=dA;var xH="DialogDescription",bH=k.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,r=Au(xH,n);return s.jsx(Vn.p,{id:r.descriptionId,...a,ref:t})});bH.displayName=xH;var vH="DialogClose",yH=k.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,r=Au(vH,n);return s.jsx(Vn.button,{type:"button",...a,ref:t,onClick:Kt(e.onClick,()=>r.onOpenChange(!1))})});yH.displayName=vH;function mA(e){return e?"open":"closed"}var wH="DialogTitleWarning",[$De,TH]=gne(wH,{contentName:L0,titleName:dA,docsSlug:"dialog"}),Doe=({titleId:e})=>{const t=TH(wH),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 934 935If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 936 937For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return k.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Roe="DialogDescriptionWarning",Ioe=({contentRef:e,descriptionId:t})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${TH(Roe).contentName}}.`;return k.useEffect(()=>{const r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(a))},[a,e,t]),null},NH=cH,Moe=uH,kH=mH,jH=pH,AH=hH,EH=gH,CH=bH,SH=yH;const _H=k.createContext({isComposing:()=>!1,setComposing:()=>{},justEndedComposing:()=>!1,markCompositionEnd:()=>{}}),pA=()=>k.useContext(_H);function Ba({...e}){const t=k.useRef(!1),n=k.useRef(!1),a=k.useRef(null),r=k.useMemo(()=>({isComposing:()=>t.current,setComposing:i=>{t.current=i},justEndedComposing:()=>n.current,markCompositionEnd:()=>{n.current=!0,a.current&&clearTimeout(a.current),a.current=setTimeout(()=>{n.current=!1},150)}}),[]);return s.jsx(_H.Provider,{"data-loc":"client/src/components/ui/dialog.tsx:50",value:r,children:s.jsx(NH,{"data-loc":"client/src/components/ui/dialog.tsx:51","data-slot":"dialog",...e})})}function hA({...e}){return s.jsx(Moe,{"data-loc":"client/src/components/ui/dialog.tsx:59","data-slot":"dialog-trigger",...e})}function Loe({...e}){return s.jsx(kH,{"data-loc":"client/src/components/ui/dialog.tsx:65","data-slot":"dialog-portal",...e})}function PH({className:e,...t}){return s.jsx(jH,{"data-loc":"client/src/components/ui/dialog.tsx:79","data-slot":"dialog-overlay",className:an("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}PH.displayName="DialogOverlay";function Fa({className:e,children:t,showCloseButton:n=!0,onEscapeKeyDown:a,...r}){const{isComposing:i}=pA(),o=k.useCallback(c=>{if(c.isComposing||i()){c.preventDefault();return}a?.(c)},[i,a]);return s.jsxs(Loe,{"data-loc":"client/src/components/ui/dialog.tsx:122","data-slot":"dialog-portal",children:[s.jsx(PH,{"data-loc":"client/src/components/ui/dialog.tsx:123"}),s.jsxs(AH,{"data-loc":"client/src/components/ui/dialog.tsx:124","data-slot":"dialog-content",className:an("bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 roun
937ded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),onEscapeKeyDown:o,...r,children:[t,n&&s.jsxs(SH,{"data-loc":"client/src/components/ui/dialog.tsx:135","data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[s.jsx(ks,{"data-loc":"client/src/components/ui/dialog.tsx:139"}),s.jsx("span",{"data-loc":"client/src/components/ui/dialog.tsx:140",className:"sr-only",children:"Close"})]})]})]})}function as({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/dialog.tsx:150","data-slot":"dialog-header",className:an("flex flex-col gap-2 text-center sm:text-left",e),...t})}function ei({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/dialog.tsx:160","data-slot":"dialog-footer",className:an("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function Ua({className:e,...t}){return s.jsx(EH,{"data-loc":"client/src/components/ui/dialog.tsx:176","data-slot":"dialog-title",className:an("text-lg leading-none font-semibold",e),...t})}function F2({className:e,...t}){return s.jsx(CH,{"data-loc":"client/src/components/ui/dialog.tsx:189","data-slot":"dialog-description",className:an("text-muted-foreground text-sm",e),...t})}function Ik({compact:e=!1,className:t=""}){const{lang:n}=zs(),a=n==="ar",[r,i]=k.useState(!1),o=e?"h-[4.6rem] w-[4.6rem]":"h-[8.9rem] w-[8.9rem] sm:h-[10.5rem] sm:w-[10.5rem]",c=e?"h-[5.25rem] w-[5.25rem]":"h-[10.4rem] w-[10.4rem] sm:h-[12.2rem] sm:w-[12.2rem]";return s.jsxs(s.Fragment,{children:[s.jsxs("button",{"data-loc":"client/src/components/RahhalInstantChat.tsx:23",type:"button",onClick:()=>i(!0),"aria-haspopup":"dialog","aria-expanded":r,"aria-label":a?"ÙØªØ Ù
ØØ§Ø¯Ø«Ø© رØÙØ§Ù Ø§ÙØ°ÙÙØ©":"Open the Rahhal AI conversation","data-testid":"rahhal-instant-launcher",className:`group relative inline-flex flex-col items-center gap-2 text-center focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[#f4d2c9] ${t}`,children:[s.jsxs("span",{"data-loc":"client/src/components/RahhalInstantChat.tsx:32",className:`relative block ${o} rounded-full p-[2px] shadow-[0_0_0_1px_rgba(255,244,207,.12),0_18px_52px_rgba(0,0,0,.46)]`,children:[s.jsx("span",{"data-loc":"client/src/components/RahhalInstantChat.tsx:33",className:"absolute inset-0 rounded-full bg-[conic-gradient(from_190deg,#6f4c1f,#f8dd95,#9a6d2f,#fff2bd,#5a3919,#f8dd95,#6f4c1f)] motion-safe:animate-[spin_12s_linear_infinite]","aria-hidden":"true"}),s.jsx("span",{"data-loc":"client/src/components/RahhalInstantChat.tsx:34",className:"absolute inset-[3px] rounded-full border border-[#fff0bf]/70 bg-[#130e16] shadow-[inset_0_0_18px_rgba(255,233,169,.25)]","aria-hidden":"true"}),s.jsxs("span",{"data-loc":"client/src/components/RahhalInstantChat.tsx:35",className:"absolute inset-[8px] overflow-hidden rounded-full border border-white/15 bg-[radial-gradient(circle_at_50%_20%,#6e4a5f,#281827_55%,#0e0910_100%)]",children:[s.jsx("span",{"data-loc":"client/src/components/RahhalInstantChat.tsx:36",className:"absolute inset-x-2 top-1 h-1/2 rounded-full bg-gradient-to-b from-white/15 to-transparent blur-sm","aria-hidden":"true"}),s.jsx("img",{"data-loc":"client/src/components/RahhalInstantChat.tsx:37",src:Oa.rahhalIconUrl,alt:"",className:`absolute bottom-[-27%] left-1/2 max-w-none -translate-x-1/2 object-contain object-top drop-shadow-[0_13px_15px_rgba(0,0,0,.55)] transition duration-300 group-hover:-translate-y-1 group-hover:scale-[1.035] motion-reduce:transition-none ${c}`})]}),s.jsx("span",{"data-loc":"client/src/components/RahhalInstantChat.tsx:39",className:`absolute grid place-items-center rounded-full border border-[#fff0bf]/75 bg-[#261a25] text-[#f9df9f] shadow-lg ${e?"-right-1 -top-1 h-6 w-6":"-right-1 top-1 h-8 w-8"}`,"aria-hidden":"true",children:s.jsx(HU,{"data-loc":"client/src/components/RahhalInstantChat.tsx:39",className:e?"h-3 w-3":"h-3.5 w-3.5"})}),s.jsx("span",{"data-loc":"client/src/components/RahhalInstantChat.tsx:40",className:"absolute -inset-2 rounded-full border border-[#f6d67f]/20 opacity-0 transition duration-300 group-hover:scale-110 group-hover:opacity-100 motion-reduce:transition-none","aria-hidden":"true"})]}),!e&&s.jsxs("span",{"data-loc":"client/src/components/RahhalInstantChat.tsx:42",className:"inline-flex items-center gap-1.5 rounded-full border border-[#f6d67f]/35 bg-[#190f19]/75 px-3 py-1.5 text-[10px] font-extrabold uppercase tracking-[.16em] text-[#f7e0a2] shadow-lg backdrop-blur-md",children:[s.jsx(pr,{"data-loc":"client/src/components/RahhalInstantChat.tsx:42",className:"h-3 w-3"}),a?"ØªØØ¯Ø« Ù
ع رØÙاÙ":"Talk to Rahhal"]})]}),s.jsx(Ba,{"data-loc":"client/src/components/RahhalInstantChat.tsx:45",open:r,onOpenChange:i,children:s.jsxs(Fa,{"data-loc":"client/src/components/RahhalInstantChat.tsx:46",showCloseButton:!0,className:"gap-0 overflow-hidden border-[#dec27e]/50 bg-[#160f19] p-0 text-white shadow-[0_28px_100px_rgba(0,0,0,.62)] sm:max-w-[min(95vw,1060px)]",dir:a?"rtl":"ltr",children:[s.jsxs("div",{"data-loc":"client/src/components/RahhalInstantChat.tsx:47",className:"flex items-center justify-between gap-4 border-b border-white/10 bg-[radial-gradient(circle_at_85%_0%,rgba(201,169,110,.22),transparent_38%),#21152
9371] px-5 py-4 pe-14",children:[s.jsxs("div",{"data-loc":"client/src/components/RahhalInstantChat.tsx:48",className:"flex min-w-0 items-center gap-3",children:[s.jsx("span",{"data-loc":"client/src/components/RahhalInstantChat.tsx:49",className:"grid h-10 w-10 shrink-0 place-items-center overflow-hidden rounded-full border border-[#e7c76f]/70 bg-[#130e16] shadow-[inset_0_0_14px_rgba(255,230,166,.22)]",children:s.jsx("img",{"data-loc":"client/src/components/RahhalInstantChat.tsx:49",src:Oa.rahhalIconUrl,alt:"",className:"h-12 w-12 max-w-none object-contain"})}),s.jsxs("div",{"data-loc":"client/src/components/RahhalInstantChat.tsx:50",className:"min-w-0",children:[s.jsx(Ua,{"data-loc":"client/src/components/RahhalInstantChat.tsx:50",className:"font-display text-lg font-semibold text-white",children:a?"رØÙØ§Ù Ø§ÙØ°ÙÙ":"Rahhal AI"}),s.jsx(F2,{"data-loc":"client/src/components/RahhalInstantChat.tsx:50",className:"mt-0.5 text-xs text-white/65",children:a?"ÙØµ ÙØµÙØªØ Ù
ع ØªØµØ¹ÙØ¯ Ø¢Ù
٠إÙÙ ÙØ±ÙÙ IBRIX Ø¹ÙØ¯ Ø§ÙØØ§Ø¬Ø©.":"Text and voice, with safe escalation to IBRIX when needed."})]})]}),s.jsxs(ls,{"data-loc":"client/src/components/RahhalInstantChat.tsx:52",href:"/rahhal",onClick:()=>i(!1),className:"inline-flex shrink-0 items-center gap-1.5 rounded-full border border-[#e7c76f]/45 bg-white/[.06] px-3 py-2 text-xs font-bold text-[#f9df9f] transition hover:bg-white/[.12] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#f4d2c9]",children:[s.jsx(oA,{"data-loc":"client/src/components/RahhalInstantChat.tsx:52",className:"h-3.5 w-3.5"}),a?"Ø§ÙØ´Ø§Ø´Ø© اÙÙØ§Ù
ÙØ©":"Full screen",s.jsx(ch,{"data-loc":"client/src/components/RahhalInstantChat.tsx:52",className:"h-3.5 w-3.5"})]})]}),s.jsx("div",{"data-loc":"client/src/components/RahhalInstantChat.tsx:54",className:"relative h-[min(72vh,700px)] bg-[#fbf7f5]",children:s.jsx("iframe",{"data-loc":"client/src/components/RahhalInstantChat.tsx:55",src:"/rahhal",title:a?"Ù
ØØ§Ø¯Ø«Ø© رØÙØ§Ù Ø§ÙØ°ÙÙØ©":"Rahhal AI conversation",allow:"microphone; autoplay",className:"h-full w-full border-0"})}),s.jsxs("div",{"data-loc":"client/src/components/RahhalInstantChat.tsx:57",className:"flex items-center gap-2 border-t border-white/10 bg-[#1b121b] px-5 py-2.5 text-[11px] leading-5 text-white/60",children:[s.jsx(Dd,{"data-loc":"client/src/components/RahhalInstantChat.tsx:57",className:"h-3.5 w-3.5 shrink-0 text-[#e7c76f]","aria-hidden":"true"}),a?"رØÙØ§Ù ÙØ§ ÙØ¤Ùد ØØ¬Ø²Ø§Ù Ø£Ù Ù
ÙØ¹Ø¯Ø§Ù Ø£Ù ØªØ£Ø´ÙØ±Ø© Ù
٠اÙÙ
ØØ§Ø¯Ø«Ø©Ø Ø§ÙØ§Ø¹ØªÙ
اد اÙÙÙØ§Ø¦Ù عبر ÙØ±ÙÙ IBRIX.":"Rahhal does not confirm bookings, seats, or visas in chat; final approval is through the IBRIX team."]})]})})]})}const Ooe="962787789915";function Boe(){const[e,t]=k.useState(!1),{lang:n}=zs(),a=n==="ar",r=`https://wa.me/${Ooe}?text=${encodeURIComponent(a?"Ù
Ø±ØØ¨Ø§Ù IBRIXØ Ø£ØØªØ§Ø¬ Ù
ساعدة Ø¨Ø®ØµÙØµ Ø§ÙØØ¬Ø² Ø£Ù Ø§ÙØªØ£Ø´Ùرة.":"Hello IBRIX, I need help with a booking or visa.")}`;return s.jsxs("aside",{"data-loc":"client/src/components/FloatingSupport.tsx:19",className:"fixed bottom-5 end-5 z-[90] flex max-w-[calc(100vw-2.5rem)] flex-col items-end gap-3",dir:a?"rtl":"ltr","aria-label":a?"دعÙ
IBRIX":"IBRIX support",children:[e&&s.jsxs("div",{"data-loc":"client/src/components/FloatingSupport.tsx:21",id:"ibrix-support-panel",className:"w-72 rounded-3xl border border-[#c9a96e]/30 bg-[#2c212e] p-4 text-white shadow-[0_20px_60px_rgba(34,22,36,.35)]",children:[s.jsx("p",{"data-loc":"client/src/components/FloatingSupport.tsx:22",className:"text-[10px] font-extrabold uppercase tracking-[.18em] text-[#f3dde1]",children:"IBRIX SUPPORT"}),s.jsx("p",{"data-loc":"client/src/components/FloatingSupport.tsx:23",className:"mt-2 text-sm font-bold",children:a?"ÙÙÙ ÙÙ
ÙÙÙØ§ Ù
Ø³Ø§Ø¹Ø¯ØªÙØ":"How can we help?"}),s.jsx("p",{"data-loc":"client/src/components/FloatingSupport.tsx:24",className:"mt-1 text-xs leading-5 text-white/65",children:a?"ÙÙØØ¬ÙØ²Ø§Øª ÙØ§ÙØªØ£Ø´ÙØ±Ø§Øª ÙØ§ÙÙ
ØªØ§Ø¨Ø¹Ø©Ø Ø§Ø®ØªØ± اÙÙÙØ§Ø© Ø§ÙØ£Ùسب ÙÙ.":"For bookings, visas, and follow-up, choose the channel that suits you."}),s.jsxs("div",{"data-loc":"client/src/components/FloatingSupport.tsx:25",className:"mt-4 grid gap-2",children:[s.jsx(Ik,{"data-loc":"client/src/components/FloatingSupport.tsx:26",compact:!0,className:"w-full rounded-2xl border border-[#c9a96e]/50 bg-[#c9a96e]/15 px-4 py-2 text-[#f7e4c0] transition hover:bg-[#c9a96e]/25"}),s.jsxs("a",{"data-loc":"client/src/components/FloatingSupport.tsx:27",href:r,target:"_blank",rel:"noopener noreferrer",className:"inline-flex min-h-11 items-center justify-center gap-2 rounded-2xl bg-[#25D366] px-4 text-sm font-bold text-[#10261a] transition hover:brightness-105",children:[s.jsx(Dd,{"data-loc":"client/src/components/FloatingSupport.tsx:27",className:"h-4 w-4","aria-hidden":"true"}),a?"ØªÙØ§ØµÙ عبر ÙØ§ØªØ³Ø§Ø¨":"Chat on WhatsApp"]}),s.jsxs("a",{"data-loc":"client/src/components/FloatingSupport.tsx:28",href:"tel:+962787789915",className:"inline-flex min-h-11 items-center justify-center gap-2 rounded-2xl border border-[#c9a96e]/35 bg-white/[0.07] px-4 text-sm font-semibold text-white transition hover:bg-white/[0.13]",children:[s.jsx($U,{"data-loc":"client/src/components/FloatingSupport.tsx:28",className:"h-4 w-4","aria-hidden":"true"}),a?"Ø§ØªØµØ§Ù Ø¨ÙØ±ÙÙ IBRIX":"Call IBRIX team"]}),s.jsxs("a",{"data-loc":"client/src/components/FloatingSupport.tsx:29",href:`mailto:${Oa.supportEmail}`,className:"inline-flex min-h-11 items-center justify-center gap-2 rounded-2xl border border-white/15 bg-white/[0.07] px-4 text-sm font-semibold text-white transition hover:bg-white/[0.13]",children:[s.jsx(Pd,{"data-loc":"client/src/components/FloatingSupport.tsx:29",className:"h-4 w-4","aria-hidden":"true"}),Oa.supportEmail]})]})]}),s.jsxs("button",{"data-loc":"client/src/components/FloatingSupport.tsx:33",type:"button",onClick:()=>t(i=>!i),"aria-expanded":e,"aria-controls":"ibrix-support-panel",className:"group inline-flex min-h-14 items-center gap-3 rounded-full border border-[#c9a96e]/40 bg-[#2c212e] px-4 text-white shadow-[0_16px_38px_rgba(34,22,36,.32)] transition hover:-translate-y-0.5 hover:bg-[#3a2941] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[#c9a96e] motion-reduce:transition-none",children:[s.jsx("span",{"data-loc":"client/src/components/FloatingSupport.tsx:34",className:"grid h-10 w-10 place-items-center overflow-hidden rounded-full border border-[#c9a96e]/55 bg-[radial-gradient(circle_at_45%_25%,#644255,#1b111c_72%)] text-[#10261a]",children:e?s.jsx(ks,{"data-loc":"client/src/components/FloatingSupport.tsx:34",className:"h-5 w-5 text-[#f7e4c0]","aria-hidden":"true"}):s.jsx(Dd,{"data-loc":"client/src/components/FloatingSupport.tsx:34",className:"h-5 w-5 text-[#f7e4c0]","aria-hidden":"true"})}),s.jsx("span",{"data-loc":"client/src/components/FloatingSupport.tsx:35",className:"pe-1 text-sm font-bold",children:e?a?"Ø¥ØºÙØ§Ù Ø§ÙØ¯Ø¹Ù
":"Close support":a?"رØÙا٠· دعÙ
IBRIX":"Rahhal · IBRIX support"})]})]})}const DH=k.createContext(void 0);function Foe(){return typeof window>"u"||!window.matchMedia?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
937k":"light"}function Uoe({children:e,defaultTheme:t="light"}){const[n,a]=k.useState(()=>{const m=localStorage.getItem(Xc.theme);return m==="dark"||m==="light"?m:null}),[r,i]=k.useState(()=>Foe()),o=n??r,c=n===null;k.useEffect(()=>{if(!window.matchMedia)return;const m=window.matchMedia("(prefers-color-scheme: dark)"),h=x=>i(x.matches?"dark":"light");return m.addEventListener("change",h),()=>m.removeEventListener("change",h)},[]),k.useEffect(()=>{const m=document.documentElement;o==="dark"?m.classList.add("dark"):m.classList.remove("dark"),m.style.colorScheme=o},[o]);const l=m=>{a(m),localStorage.setItem(Xc.theme,m)},d=()=>l(o==="light"?"dark":"light");return s.jsx(DH.Provider,{"data-loc":"client/src/contexts/ThemeContext.tsx:72",value:{theme:o,toggleTheme:d,setTheme:l,isAuto:c,switchable:!0},children:e})}function Hoe(){const e=k.useContext(DH);if(!e)throw new Error("useTheme must be used within ThemeProvider");return e}const fA=k.createContext({});function yx(e){const t=k.useRef(null);return t.current===null&&(t.current=e()),t.current}const gA=typeof window<"u",q4=gA?k.useLayoutEffect:k.useEffect,G4=k.createContext(null);function xA(e,t){e.indexOf(t)===-1&&e.push(t)}function bA(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Rd=(e,t,n)=>n>t?t:n<e?e:n;let e2=()=>{};const zm={},RH=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function IH(e){return typeof e=="object"&&e!==null}const MH=e=>/^0[^.\s]+$/u.test(e);function vA(e){let t;return()=>(t===void 0&&(t=e()),t)}const gc=e=>e,Voe=(e,t)=>n=>t(e(n)),U2=(...e)=>e.reduce(Voe),rx=(e,t,n)=>{const a=t-e;return a===0?1:(n-e)/a};class yA{constructor(){this.subscriptions=[]}add(t){return xA(this.subscriptions,t),()=>bA(this.subscriptions,t)}notify(t,n,a){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,a);else for(let i=0;i<r;i++){const o=this.subscriptions[i];o&&o(t,n,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const kd=e=>e*1e3,jl=e=>e/1e3;function wA(e,t){return t?e*(1e3/t):0}const LH=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,zoe=1e-7,$oe=12;function qoe(e,t,n,a,r){let i,o,c=0;do o=t+(n-t)/2,i=LH(o,a,r)-e,i>0?n=o:t=o;while(Math.abs(i)>zoe&&++c<$oe);return o}function H2(e,t,n,a){if(e===t&&n===a)return gc;const r=i=>qoe(i,0,1,e,n);return i=>i===0||i===1?i:LH(r(i),t,a)}const OH=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,BH=e=>t=>1-e(1-t),FH=H2(.33,1.53,.69,.99),TA=BH(FH),UH=OH(TA),HH=e=>(e*=2)<1?.5*TA(e):.5*(2-Math.pow(2,-10*(e-1))),NA=e=>1-Math.sin(Math.acos(e)),VH=BH(NA),zH=OH(NA),Goe=H2(.42,0,1,1),Joe=H2(0,0,.58,1),$H=H2(.42,0,.58,1),Woe=e=>Array.isArray(e)&&typeof e[0]!="number",qH=e=>Array.isArray(e)&&typeof e[0]=="number",Yoe={linear:gc,easeIn:Goe,easeInOut:$H,easeOut:Joe,circIn:NA,circInOut:zH,circOut:VH,backIn:TA,backInOut:UH,backOut:FH,anticipate:HH},Xoe=e=>typeof e=="string",DP=e=>{if(qH(e)){e2(e.length===4);const[t,n,a,r]=e;return H2(t,n,a,r)}else if(Xoe(e))return Yoe[e];return e},gy=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Qoe(e,t){let n=new Set,a=new Set,r=!1,i=!1;const o=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function l(m){o.has(m)&&(d.schedule(m),e()),m(c)}const d={schedule:(m,h=!1,x=!1)=>{const b=x&&r?n:a;return h&&o.add(m),b.has(m)||b.add(m),m},cancel:m=>{a.delete(m),o.delete(m)},process:m=>{if(c=m,r){i=!0;return}
vendor: 25,199 bytes, line 937
937r=!0,[n,a]=[a,n],n.forEach(l),n.clear(),r=!1,i&&(i=!1,d.process(m))}};return d}const Koe=40;function GH(e,t){let n=!1,a=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=gy.reduce((E,D)=>(E[D]=Qoe(i),E),{}),{setup:c,read:l,resolveKeyframes:d,preUpdate:m,update:h,preRender:x,render:f,postRender:b}=o,y=()=>{const E=zm.useManualTiming?r.timestamp:performance.now();n=!1,zm.useManualTiming||(r.delta=a?1e3/60:Math.max(Math.min(E-r.timestamp,Koe),1)),r.timestamp=E,r.isProcessing=!0,c.process(r),l.process(r),d.process(r),m.process(r),h.process(r),x.process(r),f.process(r),b.process(r),r.isProcessing=!1,n&&t&&(a=!1,e(y))},w=()=>{n=!0,a=!0,r.isProcessing||e(y)};return{schedule:gy.reduce((E,D)=>{const S=o[D];return E[D]=(R,L=!1,I=!1)=>(n||w(),S.schedule(R,L,I)),E},{}),cancel:E=>{for(let D=0;D<gy.length;D++)o[gy[D]].cancel(E)},state:r,steps:o}}const{schedule:us,cancel:Nu,state:Hi,steps:_T}=GH(typeof requestAnimationFrame<"u"?requestAnimationFrame:gc,!0);let H5;function Zoe(){H5=void 0}const fc={now:()=>(H5===void 0&&fc.set(Hi.isProcessing||zm.useManualTiming?Hi.timestamp:performance.now()),H5),set:e=>{H5=e,queueMicrotask(Zoe)}},JH=e=>t=>typeof t=="string"&&t.startsWith(e),kA=JH("--"),ece=JH("var(--"),jA=e=>ece(e)?tce.test(e.split("/*")[0].trim()):!1,tce=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,wx={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},t2={...wx,transform:e=>Rd(0,1,e)},xy={...wx,default:1},xb=e=>Math.round(e*1e5)/1e5,AA=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function nce(e){return e==null}const ace=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,EA=(e,t)=>n=>!!(typeof n=="string"&&ace.test(n)&&n.startsWith(e)||t&&!nce(n)&&Object.prototype.hasOwnProperty.call(n,t)),WH=(e,t,n)=>a=>{if(typeof a!="string")return a;const[r,i,o,c]=a.match(AA);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(o),alpha:c!==void 0?parseFloat(c):1}},sce=e=>Rd(0,255,e),PT={...wx,transform:e=>Math.round(sce(e))},w0={test:EA("rgb","red"),parse:WH("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:a=1})=>"rgba("+PT.transform(e)+", "+PT.transform(t)+", "+PT.transform(n)+", "+xb(t2.transform(a))+")"};function rce(e){let t="",n="",a="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),a=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),a=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,a+=a,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(a,16),alpha:r?parseInt(r,16)/255:1}}const Mk={test:EA("#"),parse:rce,transform:w0.transform},V2=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Hp=V2("deg"),jd=V2("%"),$n=V2("px"),ice=V2("vh"),oce=V2("vw"),RP={...jd,parse:e=>jd.parse(e)/100,transform:e=>jd.transform(e*100)},Dg={test:EA("hsl","hue"),parse:WH("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:a=1})=>"hsla("+Math.round(e)+", "+jd.transform(xb(t))+", "+jd.transform(xb(n))+", "+xb(t2.transform(a))+")"},li={test:e=>w0.test(e)||Mk.test(e)||Dg.test(e),parse:e=>w0.test(e)?w0.parse(e):Dg.test(e)?Dg.parse(e):Mk.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?w0.transform(e):Dg.transform(e),getAnimatableNone:e=>{const t=li.parse(e);return t.alpha=0,li.transform(t)}},cce=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function lce(e){return isNaN(e)&&typeof e=="string"&&(e.match(AA)?.length||0)+(e.match(cce)?.length||0)>0}const YH="number",XH="color",uce="var",dce="var(",IP="${}",mce=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function n2(e){const t=e.toString(),n=[],a={color:[],number:[],var:[]},r=[];let i=0;const c=t.replace(mce,l=>(li.test(l)?(a.color.push(i),r.push(XH),n.push(li.parse(l))):l.startsWith(dce)?(a.var.push(i),r.push(uce),n.push(l)):(a.number.push(i),r.push(YH),n.push(parseFloat(l))),++i,IP)).split(IP);return{values:n,split:c,indexes:a,types:r}}function QH(e){return n2(e).values}function KH(e){const{split:t,types:n}=n2(e),a=t.length;return r=>{let i="";for(let o=0;o<a;o++)if(i+=t[o],r[o]!==void 0){const c=n[o];c===YH?i+=xb(r[o]):c===XH?i+=li.transform(r[o]):i+=r[o]}return i}}const pce=e=>typeof e=="number"?0:li.test(e)?li.getAnimatableNone(e):e;function hce(e){const t=QH(e);return KH(e)(t.map(pce))}const mh={test:lce,parse:QH,createTransformer:KH,getAnimatableNone:hce};function DT(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function fce({hue:e,saturation:t,lightness:n,alpha:a}){e/=360,t/=100,n/=100;let r=0,i=0,o=0;if(!t)r=i=o=n;else{const c=n<.5?n*(1+t):n+t-n*t,l=2*n-c;r=DT(l,c,e+1/3),i=DT(l,c,e),o=DT(l,c,e-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:a}}function T3(e,t){return n=>n>0?t:e}const Nr=(e,t,n)=>e+(t-e)*n,RT=(e,t,n)=>{const a=e*e,r=n*(t*t-a)+a;return r<0?0:Math.sqrt(r)},gce=[Mk,w0,Dg],xce=e=>gce.find(t=>t.test(e));function MP(e){const t=xce(e);if(!t)return!1;let n=t.parse(e);return t===Dg&&(n=fce(n)),n}const LP=(e,t)=>{const n=MP(e),a=MP(t);if(!n||!a)return T3(e,t);const r={...n};return i=>(r.red=RT(n.red,a.red,i),r.green=RT(n.green,a.green,i),r.blue=RT(n.blue,a.blue,i),r.alpha=Nr(n.alpha,a.alpha,i),w0.transform(r))},Lk=new Set(["none","hidden"]);function bce(e,t){return Lk.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function vce(e,t){return n=>Nr(e,t,n)}function CA(e){return typeof e=="number"?vce:typeof e=="string"?jA(e)?T3:li.test(e)?LP:Tce:Array.isArray(e)?ZH:typeof e=="object"?li.test(e)?LP:yce:T3}function ZH(e,t){const n=[...e],a=n.length,r=e.map((i,o)=>CA(i)(i,t[o]));return i=>{for(let o=0;o<a;o++)n[o]=r[o](i);return n}}function yce(e,t){const n={...e,...t},a={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(a[r]=CA(e[r])(e[r],t[r]));return r=>{for(const i in a)n[i]=a[i](r);return n}}function wce(e,t){const n=[],a={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const i=t.types[r],o=e.indexes[i][a[i]],c=e.values[o]??0;n[r]=c,a[i]++}return n}const Tce=(e,t)=>{const n=mh.createTransformer(t),a=n2(e),r=n2(t);return a.indexes.var.length===r.indexes.var.length&&a.indexes.color.length===r.indexes.color.length&&a.indexes.number.length>=r.indexes.number.length?Lk.has(e)&&!r.values.length||Lk.has(t)&&!a.values.length?bce(e,t):U2(ZH(wce(a,r),r.values),n):T3(e,t)};function eV(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Nr(e,t,n):CA(e)(e,t)}const Nce=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>us.update(t,n),stop:()=>Nu(t),now:()=>Hi.isProcessing?Hi.timestamp:fc.now()}},tV=(e,t,n=10)=>{let a="";const r=Math.max(Math.round(t/n),2);for(let i=0;i<r;i++)a+=Math.round(e(i/(r-1))*1e4)/1e4+", ";return`linear(${a.substring(0,a.length-2)})`},N3=2e4;function SA(e){let t=0;const n=50;let a=e.next(t);for(;!a.done&&t<N3;)t+=n,a=e.next(t);return t>=N3?1/0:t}function kce(e,t=100,n){const a=n({...e,keyframes:[0,t]}),r=Math.min(SA(a),N3);return{type:"keyframes",ease:i=>a.next(r*i).value/t,duration:jl(r)}}const jce=5;function nV(e,t,n){const a=Math.max(t-jce,0);return wA(n-e(a),t-a)}const Or={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},IT=.001;function Ace({duration:e=Or.duration,bounce:t=Or.bounce,velocity:n=Or.velocity,mass:a=Or.mass}){let r,i,o=1-t;o=Rd(Or.minDamping,Or.maxDamping,o),e=Rd(Or.minDuration,Or.maxDuration,jl(e)),o<1?(r=d=>{const m=d*o,h=m*e,x=m-n,f=Ok(d,o),b=Math.exp(-h);return IT-x/f*b},i=d=>{const h=d*o*e,x=h*n+n,f=Math.pow(o,2)*Math.pow(d,2)*e,b=Math.exp(-h),y=Ok(Math.pow(d,2),o);return(-r(d)+IT>0?-1:1)*((x-f)*b)/y}):(r=d=>{const m=Math.exp(-d*e),h=(d-n)*e+1;return-IT+m*h},i=d=>{const m=Math.exp(-d*e),h=(n-d)*(e*e);return m*h});const c=5/e,l=Cce(r,i,c);if(e=kd(e),isNaN(l))return{stiffness:Or.stiffness,damping:Or.damping,duration:e};{const d=Math.pow(l,2)*a;return{stiffness:d,damping:o*2*Math.sqrt(a*d),duration:e}}}const Ece=12;function Cce(e,t,n){let a=n;for(let r=1;r<Ece;r++)a=a-e(a)/t(a);return a}function Ok(e,t){return e*Math.sqrt(1-t*t)}const Sce=["duration","bounce"],_ce=["stiffness","damping","mass"];function OP(e,t){return t.some(n=>e[n]!==void 0)}function Pce(e){let t={velocity:Or.velocity,stiffness:Or.stiffness,damping:Or.damping,mass:Or.mass,isResolvedFromDuration:!1,...e};if(!OP(e,_ce)&&OP(e,Sce))if(e.visualDuration){const n=e.visualDuration,a=2*Math.PI/(n*1.2),r=a*a,i=2*Rd(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:Or.mass,stiffness:r,damping:i}}else{const n=Ace(e);t={...t,...n,mass:Or.mass},t.isResolvedFromDuration=!0}return t}function k3(e=Or.visualDuration,t=Or.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:a,restDelta:r}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],c={done:!1,value:i},{stiffness:l,damping:d,mass:m,duration:h,velocity:x,isResolvedFromDuration:f}=Pce({...n,velocity:-jl(n.velocity||0)}),b=x||0,y=d/(2*Math.sqrt(l*m)),w=o-i,T=jl(Math.sqrt(l/m)),A=Math.abs(w)<5;a||(a=A?Or.restSpeed.granular:Or.restSpeed.default),r||(r=A?Or.restDelta.granular:Or.restDelta.default);let E;if(y<1){const S=Ok(T,y);E=R=>{const L=Math.exp(-y*T*R);return o-L*((b+y*T*w)/S*Math.sin(S*R)+w*Math.cos(S*R))}}else if(y===1)E=S=>o-Math.exp(-T*S)*(w+(b+T*w)*S);else{const S=T*Math.sqrt(y*y-1);E=R=>{const L=Math.exp(-y*T*R),I=Math.min(S*R,300);return o-L*((b+y*T*w)*Math.sinh(I)+S*w*Math.cosh(I))/S}}const D={calculatedDuration:f&&h||null,next:S=>{const R=E(S);if(f)c.done=S>=h;else{let L=S===0?b:0;y<1&&(L=S===0?kd(b):nV(E,S,R));const I=Math.abs(L)<=a,F=Math.abs(o-R)<=r;c.done=I&&F}return c.value=c.done?o:R,c},toString:()=>{const S=Math.min(SA(D),N3),R=tV(L=>D.next(S*L).value,S,30);return S+"ms "+R},toTransition:()=>{}};return D}k3.applyToOptions=e=>{const t=kce(e,100,k3);return e.ease=t.ease,e.duration=kd(t.duration),e.type="keyframes",e};function Bk({keyframes:e,velocity:t=0,power:n=.8,timeConstant:a=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:o,min:c,max:l,restDelta:d=.5,restSpeed:m}){const h=e[0],x={done:!1,value:h},f=I=>c!==void 0&&I<c||l!==void 0&&I>l,b=I=>c===void 0?l:l===void 0||Math.abs(c-I)<Math.abs(l-I)?c:l;let y=n*t;const w=h+y,T=o===void 0?w:o(w);T!==w&&(y=T-h);const A=I=>-y*Math.exp(-I/a),E=I=>T+A(I),D=I=>{const F=A(I),_=E(I);x.done=Math.abs(F)<=d,x.value=x.done?T:_};let S,R;const L=I=>{f(x.value)&&(S=I,R=k3({keyframes:[x.value,b(x.value)],velocity:nV(E,I,x.value),damping:r,stiffness:i,restDelta:d,restSpeed:m}))};return L(0),{calculatedDuration:null,next:I=>{let F=!1;return!R&&S===void 0&&(F=!0,D(I),L(I)),S!==void 0&&I>=S?R.next(I-S):(!F&&D(I),x)}}}function Dce(e,t,n){const a=[],r=n||zm.mix||eV,i=e.length-1;for(let o=0;o<i;o++){let c=r(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||gc:t;c=U2(l,c)}a.push(c)}return a}function _A(e,t,{clamp:n=!0,ease:a,mixer:r}={}){const i=e.length;if(e2(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=Dce(t,a,r),l=c.length,d=m=>{if(o&&m<e[0])return t[0];let h=0;if(l>1)for(;h<e.length-2&&!(m<e[h+1]);h++);const x=rx(e[h],e[h+1],m);return c[h](x)};return n?m=>d(Rd(e[0],e[i-1],m)):d}function Rce(e,t){const n=e[e.length-1];for(let a=1;a<=t;a++){const r=rx(0,t,a);e.push(Nr(n,1,r))}}function aV(e){const t=[0];return Rce(t,e.length-1),t}function Ice(e,t){return e.map(n=>n*t)}function Mce(e,t){return e.map(()=>t||$H).splice(0,e.length-1)}function bb({duration:e=300,keyframes:t,times:n,ease:a="easeInOut"}){const r=Woe(a)?a.map(DP):DP(a),i={done:!1,value:t[0]},o=Ice(n&&n.length===t.length?n:aV(t),e),c=_A(o,t,{ease:Array.isArray(r)?r:Mce(t,r)});return{calculatedDuration:e,next:l=>(i.value=c(l),i.done=l>=e,i)}}const Lce=e=>e!==null;function PA(e,{repeat:t,repeatType:n="loop"},a,r=1){const i=e.filter(Lce),c=r<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!c||a===void 0?i[c]:a}const Oce={decay:Bk,inertia:Bk,tween:bb,keyframes:bb,spring:k3};function sV(e){typeof e.type=="string"&&(e.type=Oce[e.type])}class DA{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Bce=e=>e/100;class J4 extends DA{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==fc.now()&&this.tick(fc.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;sV(t);const{type:n=bb,repeat:a=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=t;let{keyframes:c}=t;const l=n||bb;l!==bb&&typeof c[0]!="number"&&(this.mixKeyframes=U2(Bce,eV(c[0],c[1])),c=[0,100]);const d=l({...t,keyframes:c});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...c].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=SA(d));const{calculatedDuration:m}=d;this.calculatedDuration=m,this.resolvedDuration=m+r,this.totalDuration=this.resolvedDuration*(a+1)-r,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:a,totalDuration:r,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:c,calculatedDuration:l}=this;if(this.startTime===null)return a.next(0);const{delay:d=0,keyframes:m,repeat:h,repeatType:x,repeatDelay:f,type:b,onUpdate:y,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const T=this.currentTime-d*(this.playbackSpeed>=0?1:-1),A=this.playbackSpeed>=0?T<0:T>r;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let E=this.currentTime,D=a;if(h){const I=Math.min(this.currentTime,r)/c;let F=Math.floor(I),_=I%1;!_&&I>=1&&(_=1),_===1&&F--,F=Math.min(F,h+1),!!(F%2)&&(x==="reverse"?(_=1-_,f&&(_-=f/c)):x==="mirror"&&(D=o)),E=Rd(0,1,_)*c}const S=A?{done:!1,value:m[0]}:D.next(E);i&&(S.value=i(S.value));let{done:R}=S;!A&&l!==null&&(R=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return L&&b!==Bk&&(S.value=PA(m,this.options,w,this.speed)),y&&y(S.value),L&&this.finish(),S}then(t,n){return this.finished.then(t,n)}get duration(){return jl(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+jl(t)}get time(){return jl(this.currentTime)}set time(t){t=kd(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(fc.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=jl(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Nce,startTime:n}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),this.options.onPlay?.();const a=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=a):this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime||(this.startTime=n??a),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(fc.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Fce(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const T0=e=>e*180/Math.PI,Fk=e=>{const t=T0(Math.atan2(e[1],e[0]));return Uk(t)},Uce={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Fk,rotateZ:Fk,skewX:e=>T0(Math.atan(e[1])),skewY:e=>T0(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Uk=e=>(e=e%360,e<0&&(e+=360),e),BP=Fk,FP=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),UP=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Hce={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:FP,scaleY:UP,scale:e=>(FP(e)+UP(e))/2,rotateX:e=>Uk(T0(Math.atan2(e[6],e[5]))),rotateY:e=>Uk(T0(Math.atan2(-e[2],e[0]))),rotateZ:BP,rotate:BP,skewX:e=>T0(Math.atan(e[4])),skewY:e=>T0(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Hk(e){return e.includes("scale")?1:0}function Vk(e,t){if(!e||e==="none")return Hk(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let a,r;if(n)a=Hce,r=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);a=Uce,r=c}if(!r)return Hk(t);const i=a[t],o=r[1].split(",").map(zce);return typeof i=="function"?i(o):o[i]}const Vce=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Vk(n,t)};function zce(e){return parseFloat(e.trim())}const Tx=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Nx=new Set(Tx),HP=e=>e===wx||e===$n,$ce=new Set(["x","y","z"]),qce=Tx.filter(e=>!$ce.has(e));function Gce(e){const t=[];return qce.forEach(n=>{const a=e.getValue(n);a!==void 0&&(t.push([n,a.get()]),a.set(n.startsWith("scale")?1:0))}),t}const j0={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Vk(t,"x"),y:(e,{transform:t})=>Vk(t,"y")};j0.translateX=j0.x;j0.translateY=j0.y;const A0=new Set;let zk=!1,$k=!1,qk=!1;function rV(){if($k){const e=Array.from(A0).filter(a=>a.needsMeasurement),t=new Set(e.map(a=>a.element)),n=new Map;t.forEach(a=>{const r=Gce(a);r.length&&(n.set(a,r),a.render())}),e.forEach(a=>a.measureInitialState()),t.forEach(a=>{a.render();const r=n.get(a);r&&r.forEach(([i,o])=>{a.getValue(i)?.set(o)})}),e.forEach(a=>a.measureEndState()),e.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}$k=!1,zk=!1,A0.forEach(e=>e.complete(qk)),A0.clear()}function iV(){A0.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&($k=!0)})}function Jce(){qk=!0,iV(),rV(),qk=!1}class RA{constructor(t,n,a,r,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=a,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(A0.add(this),zk||(zk=!0,us.read(iV),us.resolveKeyframes(rV))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:a,motionValue:r}=this;if(t[0]===null){const i=r?.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(a&&n){const c=a.readValue(n,o);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=o),r&&i===void 0&&r.set(t[0])}Fce(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),A0.delete(this)}cancel(){this.state==="scheduled"&&(A0.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Wce=e=>e.startsWith("--");function Yce(e,t,n){Wce(t)?e.style.setProperty(t,n):e.style[t]=n}const oV=vA(()=>window.ScrollTimeline!==void 0),Xce={};function Qce(e,t){const n=vA(e);return()=>Xce[t]??n()}const cV=Qce(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),tb=([e,t,n,a])=>`cubic-bezier(${e}, ${t}, ${n}, ${a})`,VP={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tb([0,.65,.55,1]),circOut:tb([.55,0,1,.45]),backIn:tb([.31,.01,.66,-.59]),backOut:tb([.33,1.53,.69,.99])};function lV(e,t){if(e)return typeof e=="function"?cV()?tV(e,t):"ease-out":qH(e)?tb(e):Array.isArray(e)?e.map(n=>lV(n,t)||VP.easeOut):VP[e]}function Kce(e,t,n,{delay:a=0,duration:r=300,repeat:i=0,repeatType:o="loop",ease:c="easeOut",times:l}={},d=void 0){const m={[t]:n};l&&(m.offset=l);const h=lV(c,r);Array.isArray(h)&&(m.easing=h);const x={delay:a,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return d&&(x.pseudoElement=d),e.animate(m,x)}function uV(e){return typeof e=="function"&&"applyToOptions"in e}function Zce({type:e,...t}){return uV(e)&&cV()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class ele extends DA{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:a,keyframes:r,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:c,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,e2(typeof t.type!="string");const d=Zce(t);this.animation=Kce(n,a,r,d,i),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const m=PA(r,this.options,c,this.speed);this.updateMotionValue?this.updateMotionValue(m):Yce(n,a,m),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return jl(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+jl(t)}get time(){return jl(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=kd(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&oV()?(this.animation.timeline=t,gc):n(this)}}const dV={anticipate:HH,backInOut:UH,circInOut:zH};function tle(e){return e in dV}function nle(e){typeof e.ease=="string"&&tle(e.ease)&&(e.ease=dV[e.ease])}const zP=10;class ale extends ele{constructor(t){nle(t),sV(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:a,onComplete:r,element:i,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const c=new J4({...o,autoplay:!1}),l=kd(this.finishedTime??this.time);n.setWithVelocity(c.sample(l-zP).value,c.sample(l).value,zP),c.stop()}}const $P=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(mh.test(e)||e==="0")&&!e.startsWith("url("));function sle(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function rle(e,t,n,a){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=$P(r,t),c=$P(i,t);return!o||!c?!1:sle(e)||(n==="spring"||uV(n))&&a}function Gk(e){e.duration=0,e.type="keyframes"}const ile=new Set(["opacity","clipPath","filter","transform"]),ole=vA(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function cle(e){const{motionValue:t,name:n,repeatDelay:a,repeatType:r,damping:i,type:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:d}=t.owner.getProps();return ole()&&n&&ile.has(n)&&(n!=="transform"||!d)&&!l&&!a&&r!=="mirror"&&i!==0&&o!=="inertia"}const lle=40;class ule extends DA{constructor({autoplay:t=!0,delay:n=0,type:a="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:
937o="loop",keyframes:c,name:l,motionValue:d,element:m,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=fc.now();const x={autoplay:t,delay:n,type:a,repeat:r,repeatDelay:i,repeatType:o,name:l,motionValue:d,element:m,...h},f=m?.KeyframeResolver||RA;this.keyframeResolver=new f(c,(b,y,w)=>this.onKeyframesResolved(b,y,x,!w),l,d,m),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,a,r){this.keyframeResolver=void 0;const{name:i,type:o,velocity:c,delay:l,isHandoff:d,onUpdate:m}=a;this.resolvedAt=fc.now(),rle(t,i,o,c)||((zm.instantAnimations||!l)&&m?.(PA(t,a,n)),t[0]=t[t.length-1],Gk(a),a.repeat=0);const x={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>lle?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...a,keyframes:t},f=!d&&cle(x)?new ale({...x,element:x.motionValue.owner.current}):new J4(x);f.finished.then(()=>this.notifyFinished()).catch(gc),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Jce()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const dle=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function mle(e){const t=dle.exec(e);if(!t)return[,];const[,n,a,r]=t;return[`--${n??a}`,r]}function mV(e,t,n=1){const[a,r]=mle(e);if(!a)return;const i=window.getComputedStyle(t).getPropertyValue(a);if(i){const o=i.trim();return RH(o)?parseFloat(o):o}return jA(r)?mV(r,t,n+1):r}function IA(e,t){return e?.[t]??e?.default??e}const pV=new Set(["width","height","top","left","right","bottom",...Tx]),ple={test:e=>e==="auto",parse:e=>e},hV=e=>t=>t.test(e),fV=[wx,$n,jd,Hp,oce,ice,ple],qP=e=>fV.find(hV(e));function hle(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||MH(e):!0}const fle=new Set(["brightness","contrast","saturate","opacity"]);function gle(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[a]=n.match(AA)||[];if(!a)return e;const r=n.replace(a,"");let i=fle.has(t)?1:0;return a!==n&&(i*=100),t+"("+i+r+")"}const xle=/\b([a-z-]*)\(.*?\)/gu,Jk={...mh,getAnimatableNone:e=>{const t=e.match(xle);return t?t.map(gle).join(" "):e}},GP={...wx,transform:Math.round},ble={rotate:Hp,rotateX:Hp,rotateY:Hp,rotateZ:Hp,scale:xy,scaleX:xy,scaleY:xy,scaleZ:xy,skew:Hp,skewX:Hp,skewY:Hp,distance:$n,translateX:$n,translateY:$n,translateZ:$n,x:$n,y:$n,z:$n,perspective:$n,transformPerspective:$n,opacity:t2,originX:RP,originY:RP,originZ:$n},MA={borderWidth:$n,borderTopWidth:$n,borderRightWidth:$n,borderBottomWidth:$n,borderLeftWidth:$n,borderRadius:$n,radius:$n,borderTopLeftRadius:$n,borderTopRightRadius:$n,borderBottomRightRadius:$n,borderBottomLeftRadius:$n,width:$n,maxWidth:$n,height:$n,maxHeight:$n,top:$n,right:$n,bottom:$n,left:$n,padding:$n,paddingTop:$n,paddingRight:$n,paddingBottom:$n,paddingLeft:$n,margin:$n,marginTop:$n,marginRight:$n,marginBottom:$n,marginLeft:$n,backgroundPositionX:$n,backgroundPositionY:$n,...ble,zIndex:GP,fillOpacity:t2,strokeOpacity:t2,numOctaves:GP},vle={...MA,color:li,backgroundColor:li,outlineColor:li,fill:li,stroke:li,borderColor:li,borderTopColor:li,borderRightColor:li,borderBottomColor:li,borderLeftColor:li,filter:Jk,WebkitFilter:Jk},gV=e=>vle[e];function xV(e,t){let n=gV(e);return n!==Jk&&(n=mh),n.getAnimatableNone?n.getAnimatableNone(t):void 0}
vendor: 1,640 bytes, line 937
937const yle=new Set(["auto","none","0"]);function wle(e,t,n){let a=0,r;for(;a<e.length&&!r;){const i=e[a];typeof i=="string"&&!yle.has(i)&&n2(i).values.length&&(r=e[a]),a++}if(r&&n)for(const i of t)e[i]=xV(n,r)}class Tle extends RA{constructor(t,n,a,r,i){super(t,n,a,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:a}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let d=t[l];if(typeof d=="string"&&(d=d.trim(),jA(d))){const m=mV(d,n.current);m!==void 0&&(t[l]=m),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!pV.has(a)||t.length!==2)return;const[r,i]=t,o=qP(r),c=qP(i);if(o!==c)if(HP(o)&&HP(c))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else j0[a]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,a=[];for(let r=0;r<t.length;r++)(t[r]===null||hle(t[r]))&&a.push(r);a.length&&wle(t,a,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:a}=this;if(!t||!t.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=j0[a](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(a,r).jump(r,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:a}=this;if(!t||!t.current)return;const r=t.getValue(n);r&&r.jump(this.measuredOrigin,!1);const i=a.length-1,o=a[i];a[i]=j0[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
vendor: 5,293 bytes, line 937
937h(([c,l])=>{t.getValue(c).set(l)}),this.resolveNoneKeyframes()}}function bV(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){const r=document.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}const vV=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function LA(e){return IH(e)&&"offsetHeight"in e}const JP=30,Nle=e=>!isNaN(parseFloat(e)),vb={current:void 0};class kle{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{const r=fc.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=fc.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Nle(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new yA);const a=this.events[t].add(n);return t==="change"?()=>{a(),us.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,a){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-a}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return vb.current&&vb.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=fc.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>JP)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,JP);return wA(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function hu(e,t){return new kle(e,t)}const{schedule:OA}=GH(queueMicrotask,!1),lu={x:!1,y:!1};function yV(){return lu.x||lu.y}function jle(e){return e==="x"||e==="y"?lu[e]?null:(lu[e]=!0,()=>{lu[e]=!1}):lu.x||lu.y?null:(lu.x=lu.y=!0,()=>{lu.x=lu.y=!1})}function wV(e,t){const n=bV(e),a=new AbortController,r={passive:!0,...t,signal:a.signal};return[n,r,()=>a.abort()]}function WP(e){return!(e.pointerType==="touch"||yV())}function Ale(e,t,n={}){const[a,r,i]=wV(e,n),o=c=>{if(!WP(c))return;const{target:l}=c,d=t(l,c);if(typeof d!="function"||!l)return;const m=h=>{WP(h)&&(d(h),l.removeEventListener("pointerleave",m))};l.addEventListener("pointerleave",m,r)};return a.forEach(c=>{c.addEventListener("pointerenter",o,r)}),i}const TV=(e,t)=>t?e===t?!0:TV(e,t.parentElement):!1,BA=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Ele=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Cle(e){return Ele.has(e.tagName)||e.tabIndex!==-1}const V5=new WeakSet;function YP(e){return t=>{t.key==="Enter"&&e(t)}}function MT(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Sle=(e,t)=>{const n=e.currentTarget;if(!n)return;const a=YP(()=>{if(V5.has(n))return;MT(n,"down");const r=YP(()=>{MT(n,"up")}),i=()=>MT(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",a,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",a),t)};function XP(e){return BA(e)&&!yV()}function _le(e,t,n={}){const[a,r,i]=wV(e,n),o=c=>{const l=c.currentTarget;if(!XP(c))return;V5.add(l);const d=t(l,c),m=(f,b)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",x),V5.has(l)&&V5.delete(l),XP(f)&&typeof d=="function"&&d(f,{success:b})},h=f=>{m(f,l===window||l===document||n.useGlobalTarget||TV(l,f.target))},x=f=>{m(f,!1)};window.addEventListener("pointerup",h,r),window.addEventListener("pointercancel",x,r)};return a.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",o,r),LA(c)&&(c.addEventListener("focus",d=>Sle(d,r)),!Cle(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),i}function FA(e){return IH(e)&&"ownerSVGElement"in e}const z5=new WeakMap;let $5;const NV=(e,t,n)=>(a,r)=>r&&r[0]?r[0][e+"Size"]:FA(a)&&"getBBox"in a?a.getBBox()[t]:a[n],Ple=NV("inline","width","offsetWidth"),Dle=NV("block","height","offsetHeight");function Rle({target:e,borderBoxSize:t}){z5.get(e)?.forEach(n=>
937{n(e,{get width(){return Ple(e,t)},get height(){return Dle(e,t)}})})}function Ile(e){e.forEach(Rle)}function Mle(){typeof ResizeObserver>"u"||($5=new ResizeObserver(Ile))}function Lle(e,t){$5||Mle();const n=bV(e);return n.forEach(a=>{let r=z5.get(a);r||(r=new Set,z5.set(a,r)),r.add(t),$5?.observe(a)}),()=>{n.forEach(a=>{const r=z5.get(a);r?.delete(t),r?.size||$5?.unobserve(a)})}}const q5=new Set;let Rg;function Ole(){Rg=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};q5.forEach(t=>t(e))},window.addEventListener("resize",Rg)}function Ble(e){return q5.add(e),Rg||Ole(),()=>{q5.delete(e),!q5.size&&typeof Rg=="function"&&(window.removeEventListener("resize",Rg),Rg=void 0)}}function Fle(e,t){return typeof e=="function"?Ble(e):Lle(e,t)}function kV(e,t){let n;const a=()=>{const{currentTime:r}=t,o=(r===null?0:r.value)/100;n!==o&&e(o),n=o};return us.preUpdate(a,!0),()=>Nu(a)}function Ule(e){return FA(e)&&e.tagName==="svg"}function Hle(...e){const t=!Array.isArray(e[0]),n=t?0:-1,a=e[0+n],r=e[1+n],i=e[2+n],o=e[3+n],c=_A(r,i,o);return t?c(a):c}const Ji=e=>!!(e&&e.getVelocity);function Vle(e,t,n){const a=e.get();let r=null,i=a,o;const c=typeof a=="string"?a.replace(/[\d.-]/g,""):void 0,l=()=>{r&&(r.stop(),r=null)},d=()=>{l(),r=new J4({keyframes:[KP(e.get()),KP(i)],velocity:e.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:o})};if(e.attach((m,h)=>(i=m,o=x=>h(QP(x,c)),us.postRender(d),e.get()),l),Ji(t)){const m=t.on("change",x=>e.set(QP(x,c))),h=e.on("destroy",m);return()=>{m(),h()}}return l}function QP(e,t){return t?e+t:e}function KP(e){return typeof e=="number"?e:parseFloat(e)}const zle=[...fV,li,mh],$le=e=>zle.find(hV(e)),z2=k.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function ZP(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function qle(...e){return t=>{let n=!1;const a=e.map(r=>{const i=ZP(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<a.length;r++){const i=a[r];typeof i=="function"?i():ZP(e[r],null)}}}}function Gle(...e){return k.useCallback(qle(...e),e)}class Jle extends k.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const a=n.offsetParent,r=LA(a
vendor: 4,966 bytes, lines 937-945
937)&&a.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=r-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Wle({children:e,isPresent:t,anchorX:n,root:a}){const r=k.useId(),i=k.useRef(null),o=k.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:c}=k.useContext(z2),l=Gle(i,e?.ref);return k.useInsertionEffect(()=>{const{width:d,height:m,top:h,left:x,right:f}=o.current;if(t||!i.current||!d||!m)return;const b=n==="left"?`left: ${x}`:`right: ${f}`;i.current.dataset.motionPopId=r;const y=document.createElement("style");c&&(y.nonce=c);const w=a??document.head;return w.appendChild(y),y.sheet&&y.sheet.insertRule(` 938 [data-motion-pop-id="${r}"] { 939 position: absolute !important; 940 width: ${d}px !important; 941 height: ${m}px !important; 942 ${b}px !important; 943 top: ${h}px !important; 944 } 945 `),()=>{w.contains(y)&&w.removeChild(y)}},[t]),s.jsx(Jle,{isPresent:t,childRef:i,sizeRef:o,children:k.cloneElement(e,{ref:l})})}const Yle=({children:e,initial:t,isPresent:n,onExitComplete:a,custom:r,presenceAffectsLayout:i,mode:o,anchorX:c,root:l})=>{const d=yx(Xle),m=k.useId();let h=!0,x=k.useMemo(()=>(h=!1,{id:m,initial:t,isPresent:n,custom:r,onExitComplete:f=>{d.set(f,!0);for(const b of d.values())if(!b)return;a&&a()},register:f=>(d.set(f,!1),()=>d.delete(f))}),[n,d,a]);return i&&h&&(x={...x}),k.useMemo(()=>{d.forEach((f,b)=>d.set(b,!1))},[n]),k.useEffect(()=>{!n&&!d.size&&a&&a()},[n]),o==="popLayout"&&(e=s.jsx(Wle,{isPresent:n,anchorX:c,root:l,children:e})),s.jsx(G4.Provider,{value:x,children:e})};function Xle(){return new Map}function jV(e=!0){const t=k.useContext(G4);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:a,register:r}=t,i=k.useId();k.useEffect(()=>{if(e)return r(i)},[e]);const o=k.useCallback(()=>e&&a&&a(i),[i,a,e]);return!n&&a?[!1,o]:[!0]}const by=e=>e.key||"";function eD(e){const t=[];return k.Children.forEach(e,n=>{k.isValidElement(n)&&t.push(n)}),t}const tD=({children:e,custom:t,initial:n=!0,onExitComplete:a,presenceAffectsLayout:r=!0,mode:i="sync",propagate:o=!1,anchorX:c="left",root:l})=>{const[d,m]=jV(o),h=k.useMemo(()=>eD(e),[e]),x=o&&!d?[]:h.map(by),f=k.useRef(!0),b=k.useRef(h),y=yx(()=>new Map),[w,T]=k.useState(h),[A,E]=k.useState(h);q4(()=>{f.current=!1,b.current=h;for(let R=0;R<A.length;R++){const L=by(A[R]);x.includes(L)?y.delete(L):y.get(L)!==!0&&y.set(L,!1)}},[A,x.length,x.join("-")]);const D=[];if(h!==w){let R=[...h];for(let L=0;L<A.length;L++){const I=A[L],F=by(I);x.includes(F)||(R.splice(L,0,I),D.push(I))}return i==="wait"&&D.length&&(R=D),E(eD(R)),T(h),null}const{forceRender:S}=k.useContext(fA);return s.jsx(s.Fragment,{children:A.map(R=>{const L=by(R),I=o&&!d?!1:h===A||x.includes(L),F=()=>{if(y.has(L))y.set(L,!0);else return;let _=!0;y.forEach(U=>{U||(_=!1)}),_&&(S?.(),E(b.current),o&&m?.(),a&&a())};return s.jsx(Yle,{isPresent:I,initial:!f.current||n?void 0:!1,custom:t,presenceAffectsLayout:r,mode:i,root:l,onExitComplete:I?void 0:F,anchorX:c,children:R},L)})})},AV=k.createContext({strict:!1}),nD={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ix={};for(const e in nD)ix[e]={isEnabled:t=>nD[e].some(n=>!!t[n])};function Qle(e){for(const t in e)ix[t]={...ix[t],...e[t]}}const Kle=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function j3(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Kle.has(e)}let EV=e=>!j3(e);function Zle(e){typeof e=="function"&&(EV=t=>t.startsWith("on")?!j3(t):e(t))}try{Zle(require("@emotion/is-prop-valid").default)}catch{}function eue(e,t,n){const a={};for(const r in e)r==="values"&&typeof e.values=="object"||(EV(r)||n===!0&&j3(r)||!t&&!j3(r)||e.draggable&&r.startsWith("onDrag"))&&(a[r]=e[r]);return a}const W4=k.createContext({});function Y4(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function a2(e){return typeof e=="string"||Array.isArray(e)}const UA=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],HA=["initial",...
945UA];function X4(e){return Y4(e.animate)||HA.some(t=>a2(e[t]))}function CV(e){return!!(X4(e)||e.variants)}function tue(e,t){if(X4(e)){const{initial:n,animate:a}=e;return{initial:n===!1||a2(n)?n:void 0,animate:a2(a)?a:void 0}}return e.inherit!==!1?t:{}}function nue(e){const{initial:t,animate:n}=tue(e,k.useContext(W4));return k.useMemo(()=>({initial:t,animate:n}),[aD(t),aD(n)])}function aD(e){return Array.isArray(e)?e.join(" "):e}const s2={};function aue(e){for(const t in e)s2[t]=e[t],kA(t)&&(s2[t].isCSSVariable=!0)}function SV(e,{layout:t,layoutId:n}){return Nx.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!s2[e]||e==="opacity")}const sue={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rue=Tx.length;function iue(e,t,n){let a="",r=!0;for(let i=0;i<rue;i++){const o=Tx[i],c=e[o];if(c===void 0)continue;let l=!0;if(typeof c=="number"?l=c===(o.startsWith("scale")?1:0):l=parseFloat(c)===0,!l||n){const d=vV(c,MA[o]);if(!l){r=!1;const m=sue[o]||o;a+=`${m}(${d}) `}n&&(t[o]=d)}}return a=a.trim(),n?a=n(t,r?"":a):r&&(a="none"),a}function VA(e,t,n){const{style:a,vars:r,transformOrigin:i}=e;let o=!1,c=!1;for(const l in t){const d=t[l];if(Nx.has(l)){o=!0;continue}else if(kA(l)){r[l]=d;continue}else{const m=vV(d,MA[l]);l.startsWith("origin")?(c=!0,i[l]=m):a[l]=m}}if(t.transform||(o||n?a.transform=iue(t,e.transform,n):a.transform&&(a.transform="none")),c){const{originX:l="50%",originY:d="50%",originZ:m=0}=i;a.transformOrigin=`${l} ${d} ${m}`}}const zA=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function _V(e,t,n){for(const a in t)!Ji(t[a])&&!SV(a,n)&&(e[a]=t[a])}function oue({transformTemplate:e},t){return k.useMemo(()=>{const n=zA();return VA(n,t,e),Object.assign({},n.vars,n.style)},[t])}function cue(e,t){const n=e.style||{},a={};return _V(a,n,e),Object.assign(a,oue(e,t)),a}function lue(e,t){const n={},a=cue(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=a,n}const uue={offset:"stroke-dashoffset",array:"stroke-dasharray"},due={offset:"strokeDashoffset",array:"strokeDasharray"};function mue(e,t,n=1,a=0,r=!0){e.pathLength=1;const i=r?uue:due;e[i.offset]=$n.transform(-a);const o=$n.transform(t),c=$n.transform(n);e[i.array]=`${o} ${c}`}function PV(e,{attrX:t,attrY:n,attrScale:a,pathLength:r,pathSpacing:i=1,pathOffset:o=0,...c},l,d,m){if(VA(e,c,d),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:x}=e;h.transform&&(x.transform=h.transform,delete h.transform),(x.transform||h.transformOrigin)&&(x.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),x.transform&&(x.transformBox=m?.transformBox??"fill-box",delete h.transformBox),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),a!==void 0&&(h.scale=a),r!==void 0&&mue(h,r,i,o,!1)}const DV=()=>({...zA(),attrs:{}}),RV=e=>typeof e=="string"&&e.toLowerCase()==="svg";function pue(e,t,n,a){const r=k.useMemo(()=>{const i=DV();return PV(i,t,RV(a),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};_V(i,e.style,e),r.style={...i,...r.style}}return r}const hue=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function $A(e){return typeof e!="string"||e.includes("-")?!1:!!(hue.indexOf(e)>-1||/[A-Z]/u.test(e))}function fue(e,t,n,{latestValues:a},r,i=!1){const c=($A(e)?pue:lue)(t,a,r,e),l=eue(t,typeof e=="string",i),d=e!==k.Fragment?{...l,...c,ref:n}:{},{children:m}=t,h=k.useMemo(()=>Ji(m)?m.get():m,[m]);return k.createElement(e,{...d,children:h})}function sD(e){const t=[{},{}];return e?.values.forEach((n,a)=>{t[0][a]=n.get(),t[1][a]=n.getVelocity()}),t}function qA(e,t,n,a){if(typeof t=="function"){const[r,i]=sD(a);t=t(n!==void 0?n:e.custom,r,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,i]=sD(a);
945t=t(n!==void 0?n:e.custom,r,i)}return t}function G5(e){return Ji(e)?e.get():e}function gue({scrapeMotionValuesFromProps:e,createRenderState:t},n,a,r){return{latestValues:xue(n,a,r,e),renderState:t()}}function xue(e,t,n,a){const r={},i=a(e,{});for(const x in i)r[x]=G5(i[x]);let{initial:o,animate:c}=e;const l=X4(e),d=CV(e);t&&d&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),c===void 0&&(c=t.animate));let m=n?n.initial===!1:!1;m=m||o===!1;const h=m?c:o;if(h&&typeof h!="boolean"&&!Y4(h)){const x=Array.isArray(h)?h:[h];for(let f=0;f<x.length;f++){const b=qA(e,x[f]);if(b){const{transitionEnd:y,transition:w,...T}=b;for(const A in T){let E=T[A];if(Array.isArray(E)){const D=m?E.length-1:0;E=E[D]}E!==null&&(r[A]=E)}for(const A in y)r[A]=y[A]}}}return r}const IV=e=>(t,n)=>{const a=k.useContext(W4),r=k.useContext(G4),i=()=>gue(e,t,a,r);return n?i():yx(i)};function GA(e,t,n){const{style:a}=e,r={};for(const i in a)(Ji(a[i])||t.style&&Ji(t.style[i])||SV(i,e)||n?.getValue(i)?.liveStyle!==void 0)&&(r[i]=a[i]);return r}const bue=IV({scrapeMotionValuesFromProps:GA,createRenderState:zA});function MV(e,t,n){const a=GA(e,t,n);for(const r in e)if(Ji(e[r])||Ji(t[r])){const i=Tx.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;a[i]=e[r]}return a}const vue=IV({scrapeMotionValuesFromProps:MV,createRenderState:DV}),yue=Symbol.for("motionComponentSymbol");function Ig(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function wue(e,t,n){return k.useCallback(a=>{a&&e.onMount&&e.onMount(a),t&&(a?t.mount(a):t.unmount()),n&&(typeof n=="function"?n(a):Ig(n)&&(n.current=a))},[t])}const JA=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Tue="framerAppearId",LV="data-"+JA(Tue),OV=k.createContext({});function Nue(e,t,n,a,r){const{visualElement:i}=k.useContext(W4),o=k.useContext(AV),c=k.useContext(G4),l=k.useContext(z2).reducedMotion,d=k.useRef(null);a=a||o.renderer,!d.current&&a&&(d.current=a(e,{visualState:t,parent:i,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:l}));const m=d.current,h=k.useContext(OV);m&&!m.projection&&r&&(m.type==="html"||m.type==="svg")&&kue(d.current,n,r,h);const x=k.useRef(!1);k.useInsertionEffect(()=>{m&&x.current&&m.update(n,c)});const f=n[LV],b=k.useRef(!!f&&!window.MotionHandoffIsComplete?.(f)&&window.MotionHasOptimisedAnimation?.(f));return q4(()=>{m&&(x.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),b.current&&m.animationState&&m.animationState.animateChanges())}),k.useEffect(()=>{m&&(!b.current&&m.animationState&&m.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(f)}),b.current=!1),m.enteringChildren=void 0)}),m}function kue(e,t,n,a){const{layoutId:r,layout:i,drag:o,dragConstraints:c,layoutScroll:l,layoutRoot:d,layoutCrossfade:m}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:BV(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!o||c&&Ig(c),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:a,crossfade:m,layoutScroll:l,layoutRoot:d})}function BV(e){if(e)return e.options.allowProjection!==!1?e.projection:BV(e.parent)}function LT(e,{forwardMotionProps:t=!1}={},n,a){n&&Qle(n);const r=$A(e)?vue:bue;function i(c,l){let d;const m={...k.useContext(z2),...c,layoutId:jue(c)},{isStatic:h}=m,x=nue(c),f=r(c,h);if(!h&&gA){Aue();const b=Eue(m);d=b.MeasureLayout,x.visualElement=Nue(e,f,m,a,b.ProjectionNode)}return s.jsxs(W4.Provider,{value:x,children:[d&&x.visualElement?s.jsx(d,{visualElement:x.visualElement,...m}):null,fue(e,c,wue(f,x.visualElement,l),f,h,t)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const o=k.forwardRef(i);return o[yue]=e,o}function jue({layoutId:e}){const t=k.useContext(fA).id;return t&&e!==void 0?t+"-"+e:e}function Aue(e,t){k.useContext(AV).strict}function Eue(e){const{drag:t,layout:n}=ix;if(!t&&!n)return{};const a={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}
vendor: 28,043 bytes, line 945
945function Cue(e,t){if(typeof Proxy>"u")return LT;const n=new Map,a=(i,o)=>LT(i,o,e,t),r=(i,o)=>a(i,o);return new Proxy(r,{get:(i,o)=>o==="create"?a:(n.has(o)||n.set(o,LT(o,void 0,e,t)),n.get(o))})}function FV({top:e,left:t,right:n,bottom:a}){return{x:{min:t,max:n},y:{min:e,max:a}}}function Sue({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function _ue(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),a=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:a.y,right:a.x}}function OT(e){return e===void 0||e===1}function Wk({scale:e,scaleX:t,scaleY:n}){return!OT(e)||!OT(t)||!OT(n)}function p0(e){return Wk(e)||UV(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function UV(e){return rD(e.x)||rD(e.y)}function rD(e){return e&&e!=="0%"}function A3(e,t,n){const a=e-n,r=t*a;return n+r}function iD(e,t,n,a,r){return r!==void 0&&(e=A3(e,r,a)),A3(e,n,a)+t}function Yk(e,t=0,n=1,a,r){e.min=iD(e.min,t,n,a,r),e.max=iD(e.max,t,n,a,r)}function HV(e,{x:t,y:n}){Yk(e.x,t.translate,t.scale,t.originPoint),Yk(e.y,n.translate,n.scale,n.originPoint)}const oD=.999999999999,cD=1.0000000000001;function Pue(e,t,n,a=!1){const r=n.length;if(!r)return;t.x=t.y=1;let i,o;for(let c=0;c<r;c++){i=n[c],o=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(a&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Lg(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,HV(e,o)),a&&p0(i.latestValues)&&Lg(e,i.latestValues))}t.x<cD&&t.x>oD&&(t.x=1),t.y<cD&&t.y>oD&&(t.y=1)}function Mg(e,t){e.min=e.min+t,e.max=e.max+t}function lD(e,t,n,a,r=.5){const i=Nr(e.min,e.max,r);Yk(e,t,n,i,a)}function Lg(e,t){lD(e.x,t.x,t.scaleX,t.scale,t.originX),lD(e.y,t.y,t.scaleY,t.scale,t.originY)}function VV(e,t){return FV(_ue(e.getBoundingClientRect(),t))}function Due(e,t,n){const a=VV(e,n),{scroll:r}=t;return r&&(Mg(a.x,r.offset.x),Mg(a.y,r.offset.y)),a}const uD=()=>({translate:0,scale:1,origin:0,originPoint:0}),Og=()=>({x:uD(),y:uD()}),dD=()=>({min:0,max:0}),Gr=()=>({x:dD(),y:dD()}),E3={current:null},WA={current:!1};function zV(){if(WA.current=!0,!!gA)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>E3.current=e.matches;e.addEventListener("change",t),t()}else E3.current=!1}const Rue=new WeakMap;function Iue(e,t,n){for(const a in t){const r=t[a],i=n[a];if(Ji(r))e.addValue(a,r);else if(Ji(i))e.addValue(a,hu(r,{owner:e}));else if(i!==r)if(e.hasValue(a)){const o=e.getValue(a);o.liveStyle===!0?o.jump(r):o.hasAnimated||o.set(r)}else{const o=e.getStaticValue(a);e.addValue(a,hu(o!==void 0?o:r,{owner:e}))}}for(const a in n)t[a]===void 0&&e.removeValue(a);return t}const mD=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Mue{scrapeMotionValuesFromProps(t,n,a){return{}}constructor({parent:t,props:n,presenceContext:a,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=RA,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const x=fc.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,us.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=a,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=c,this.blockInitialAnimation=!!i,this.isControllingVariants=X4(n),this.isVariantNode=CV(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const x in h){const f=h[x];l[x]!==void 0&&Ji(f)&&f.set(l[x])}}mount(t){this.current=t,Rue.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,a)=>this.bindToMotionValue(a,n)),WA.current||zV(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:E3.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Nu(this.notifyUpdate),Nu(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const a=Nx.has(t);a&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&us.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ix){const n=ix[t];if(!n)continue;const{isEnabled:a,Feature:r}=n;if(!this.features[t]&&r&&a(this.props)&&(this.features[t]=new r(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Gr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let a=0;a<mD.length;a++){const r=mD[a];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const i="on"+r,o=t[i];o&&(this.propEventSubscriptions[r]=this.on(r,o))}this.prevMotionValues=Iue(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const a=this.values.get(t);n!==a&&(a&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let a=this.values.get(t);return a===void 0&&n!==void 0&&(a=hu(n===null?void 0:n,{owner:this}),this.addValue(t,a)),a}readValue(t,n){let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(RH(a)||MH(a))?a=parseFloat(a):!$le(a)&&mh.test(n)&&(a=xV(t,n)),this.setBaseTarget(t,Ji(a)?a.get():a)),Ji(a)?a.get():a}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let a;if(typeof n=="string"||typeof n=="object"){const i=qA(this.props,n,this.presenceContext?.custom);i&&(a=i[t])}if(n&&a!==void 0)return a;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!Ji(r)?r:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new yA),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){OA.render(this.render)}}class $V extends Mue{constructor(){super(...arguments),this.KeyframeResolver=Tle}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:a}){delete n[t],delete a[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ji(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function qV(e,{style:t,vars:n},a,r){const i=e.style;let o;for(o in t)i[o]=t[o];r?.applyProjectionStyles(i,a);for(o in n)i.setProperty(o,n[o])}function Lue(e){return window.getComputedStyle(e)}class Oue extends $V{constructor(){super(...arguments),this.type="html",this.renderInstance=qV}readValueFromInstance(t,n){if(Nx.has(n))return this.projection?.isProjecting?Hk(n):Vce(t,n);{const a=Lue(t),r=(kA(n)?a.getPropertyValue(n):a[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return VV(t,n)}build(t,n,a){VA(t,n,a.transformTemplate)}scrapeMotionValuesFromProps(t,n,a){return GA(t,n,a)}}const GV=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Bue(e,t,n,a){qV(e,t,void 0,a);for(const r in t.attrs)e.setAttribute(GV.has(r)?r:JA(r),t.attrs[r])}class Fue extends $V{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Gr}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Nx.has(n)){const a=gV(n);return a&&a.default||0}return n=GV.has(n)?n:JA(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,a){return MV(t,n,a)}build(t,n,a){PV(t,n,this.isSVGTag,a.transformTemplate,a.style)}renderInstance(t,n,a,r){Bue(t,n,a,r)}mount(t){this.isSVGTag=RV(t.tagName),super.mount(t)}}const Uue=(e,t)=>$A(e)?new Fue(t):new Oue(t,{allowProjection:e!==k.Fragment});function zg(e,t,n){const a=e.getProps();return qA(a,t,n!==void 0?n:a.custom,e)}const Xk=e=>Array.isArray(e);function Hue(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,hu(n))}function Vue(e){return Xk(e)?e[e.length-1]||0:e}function zue(e,t){const n=zg(e,t);let{transitionEnd:a={},transition:r={},...i}=n||{};i={...i,...a};for(const o in i){const c=Vue(i[o]);Hue(e,o,c)}}function $ue(e){return!!(Ji(e)&&e.add)}function Qk(e,t){const n=e.getValue("willChange");if($ue(n))return n.add(t);if(!n&&zm.WillChange){const a=new zm.WillChange("auto");e.addValue("willChange",a),a.add(t)}}function JV(e){return e.props[LV]}const que=e=>e!==null;function Gue(e,{repeat:t,repeatType:n="loop"},a){const r=e.filter(que),i=t&&n!=="loop"&&t%2===1?0:r.length-1;return r[i]}const Jue={type:"spring",stiffness:500,damping:25,restSpeed:10},Wue=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Yue={type:"keyframes",duration:.8},Xue={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Que=(e,{keyframes:t})=>t.length>2?Yue:Nx.has(e)?e.startsWith("scale")?Wue(t[1]):Jue:Xue;function Kue({when:e,delay:t,delayChildren:n,staggerChildren:a,staggerDirection:r,repeat:i,repeatType:o,repeatDelay:c,from:l,elapsed:d,...m}){return!!Object.keys(m).length}const YA=(e,t,n,a={},r,i)=>o=>{const c=IA(a,e)||{},l=c.delay||a.delay||0;let{elapsed:d=0}=a;d=d-kd(l);const m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:x=>{t.set(x),c.onUpdate&&c.onUpdate(x)},onComplete:()=>{o(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:i?void 0:r};Kue(c)||Object.assign(m,Que(e,m)),m.duration&&(m.duration=kd(m.duration)),m.repeatDelay&&(m.repeatDelay=kd(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let h=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(Gk(m),m.delay===0&&(h=!0)),(zm.instantAnimations||zm.skipAnimations)&&(h=!0,Gk(m),m.delay=0),m.allowFlatten=!c.type&&!c.ease,h&&!i&&t.get()!==void 0){const x=Gue(m.keyframes,c);if(x!==void 0){us.update(()=>{m.onUpdate(x),m.onComplete()});return}}return c.isSync?new J4(m):new ule(m)};function Zue({protectedKeys:e,needsAnimating:t},n){const a=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,a}function WV(e,t,{delay:n=0,transitionOverride:a,type:r}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:o,...c}=t;a&&(i=a);const l=[],d=r&&e.animationState&&e.animationState.getState()[r];for(const m in c){const h=e.getValue(m,e.latestValues[m]??null),x=c[m];if(x===void 0||d&&Zue(d,m))continue;const f={delay:n,...IA(i||{},m)},b=h.get();if(b!==void 0&&!h.isAnimating&&!Array.isArray(x)&&x===b&&!f.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const T=JV(e);if(T){const A=window.MotionHandoffAnimation(T,m,us);A!==null&&(f.startTime=A,y=!0)}}Qk(e,m),h.start(YA(m,h,x,e.shouldReduceMotion&&pV.has(m)?{type:!1}:f,e,y));const w=h.animation;w&&l.push(w)}return o&&Promise.all(l).then(()=>{us.update(()=>{o&&zue(e,o)})}),l}function YV(e,t,n,a=0,r=1){const i=Array.from(e).sort((d,m)=>d.sortNodePosition(m)).indexOf(t),o=e.size,c=(o-1)*a;return typeof n=="function"?n(i,o):r===1?i*a:c-i*a}function Kk(e,t,n={}){const a=zg(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:r=e.getDefaultTransition()||{}}=a||{};n.transitionOverride&&(r=n.transitionOverride);const i=a?()=>Promise.all(WV(e,a,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:d=0,staggerChildren:m,staggerDirection:h}=r;return ede(e,t,l,d,m,h,n)}:()=>Promise.resolve(),{when:c}=r;if(c){const[l,d]=c==="beforeChildren"?[i,o]:[o,i];return l().then(()=>d())}else return Promise.all([i(),o(n.delay)])}function ede(e,t,n=0,a=0,r=0,i=1,o){const c=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),c.push(Kk(l,t,{...o,delay:n+(typeof a=="function"?0:a)+YV(e.variantChildren,l,a,r,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(c)}function tde(e,t,n={}){e.notify("AnimationStart",t);let a;if(Array.isArray(t)){const r=t.map(i=>Kk(e,i,n));a=Promise.all(r)}else if(typeof t=="string")a=Kk(e,t,n);else{const r=typeof t=="function"?zg(e,t,n.custom):t;a=Promise.all(WV(e,r,n))}return a.then(()=>{e.notify("AnimationComplete",t)})}function XV(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let a=0;a<n;a++)if(t[a]!==e[a])return!1;return!0}const nde=HA.length;function QV(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?QV(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<nde;n++){const a=HA[n],r=e.props[a];(a2(r)||r===!1)&&(t[a]=r)}return t}const ade=[...UA].reverse(),sde=UA.length;function rde(e){return t=>Promise.all(t.map(({animation:n,options:a})=>tde(e,n,a)))}function ide(e){let t=rde(e),n=pD(),a=!0;const r=l=>(d,m)=>{const h=zg(e,m,l==="exit"?e.presenceContext?.custom:void 0);if(h){const{transition:x,transitionEnd:f,...b}=h;d={...d,...b,...f}}return d};function i(l){t=l(e)}function o(l){const{props:d}=e,m=QV(e.parent)||{},h=[],x=new Set;let f={},b=1/0;for(let w=0;w<sde;w++){const T=ade[w],A=n[T],E=d[T]!==void 0?d[T]:m[T],D=a2(E),S=T===l?A.isActive:null;S===!1&&(b=w);let R=E===m[T]&&E!==d[T]&&D;if(R&&a&&e.manuallyAnimateOnMount&&(R=!1),A.protectedKeys={...f},!A.isActive&&S===null||!E&&!A.prevProp||Y4(E)||typeof E=="boolean")continue;const L=ode(A.prevProp,E);let I=L||T===l&&A.isActive&&!R&&D||w>b&&D,F=!1;const _=Array.isArray(E)?E:[E];let U=_.reduce(r(T),{});S===!1&&(U={});const{prevResolvedValues:O={}}=A,W={...O,...U},J=K=>{I=!0,x.has(K)&&(F=!0,x.delete(K)),A.needsAnimating[K]=!0;const ee=e.getValue(K);ee&&(ee.liveStyle=!1)};for(const K in W){const ee=U[K],pe=O[K];if(f.hasOwnProperty(K))continue;let V=!1;Xk(ee)&&Xk(pe)?V=!XV(ee,pe):V=ee!==pe,V?ee!=null?J(K):x.add(K):ee!==void 0&&x.has(K)?J(K):A.protectedKeys[K]=!0}A.prevProp=E,A.prevResolvedValues=U,A.isActive&&(f={...f,...U}),a&&e.blockInitialAnimation&&(I=!1);const oe=R&&L;I&&(!oe||F)&&h.push(..._.map(K=>{const ee={type:T};if(typeof K=="string"&&a&&!oe&&e.manuallyAnimateOnMount&&e.parent){const{parent:pe}=e,V=zg(pe,K);if(pe.enteringChildren&&V){const{delayChildren:Y}=V.transition||{};ee.delay=YV(pe.enteringChildren,e,Y)}}return{animation:K,options:ee}}))}if(x.size){const w={};if(typeof d.initial!="boolean"){const T=zg(e,Array.isArray(d.initial)?d.initial[0]:d.initial);T&&T.transition&&(w.transition=T.transition)}x.forEach(T=>{const A=e.getBaseTarget(T),E=e.getValue(T);E&&(E.liveStyle=!0),w[T]=A??null}),h.push({animation:w})}let y=!!h.length;return a&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(y=!1),a=!1,y?t(h):Promise.resolve()}function c(l,d){if(n[l].isActive===d)return Promise.resolve();e.variantChildren?.forEach(h=>h.animationState?.setActive(l,d)),n[l].isActive=d;const m=o(l);for(const h in n)n[h].protectedKeys={};return m}return{animateChanges:o,setActive:c,setAnimateFunction:i,getState:()=>n,reset:()=>{n=pD(),a=!0}}}function ode(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!XV(t,e):!1}function t0(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function pD(){return{animate:t0(!0),whileInView:t0(),whileHover:t0(),whileTap:t0(),whileDrag:t0(),whileFocus:t0(),exit:t0()}}class vh{constructor(t){this.isMounted=!1,this.node=t}update(){}}class cde extends vh{constructor(t){super(t),t.animationState||(t.animationState=ide(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Y4(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let lde=0;class ude extends vh{constructor(){super(...arguments),this.id=lde++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===a)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const dde={animation:{Feature:cde},exit:{Feature:ude}};function r2(e,t,n,a={passive:!0}){return e.addEventListener(t,n,a),()=>e.removeEventListener(t,n)}function $2(e){return{point:{x:e.pageX,y:e.pageY}}}const mde=e=>t=>BA(t)&&e(t,$2(t));function yb(e,t,n,a){return r2(e,t,mde(n),a)}const KV=1e-4,pde=1-KV,hde=1+KV,ZV=.01,fde=0-ZV,gde=0+ZV;function Oo(e){return e.max-e.min}function xde(e,t,n){return Math.abs(e-t)<=n}function hD(e,t,n,a=.5){e.origin=a,e.originPoint=Nr(t.min,t.max,e.origin),e.scale=Oo(n)/Oo(t),e.translate=Nr(n.min,n.max,e.origin)-e.originPoint,(e.scale>=pde&&e.scale<=hde||isNaN(e.scale))&&(e.scale=1),(e.translate>=fde&&e.translate<=gde||isNaN(e.translate))&&(e.translate=0)}function wb(e,t,n,a){hD(e.x,t.x,n.x,a?a.originX:void 0),hD(e.y,t.y,n.y,a?a.originY:void 0)}function fD(e,t,n){e.min=n.min+t.min,e.max=e.min+Oo(t)}function bde(e,t,n){fD(e.x,t.x,n.x),fD(e.y,t.y,n.y)}function gD(e,t,n){e.min=t.min-n.min,e.max=e.min+Oo(t)}function Tb(e,t,n){gD(e.x,t.x,n.x),gD(e.y,t.y,n.y)}function vl(e){return[e("x"),e("y")]}const ez=({current:e})=>e?e.ownerDocument.defaultView:null,xD=(e,t)=>Math.abs(e-t);function vde(e,t){const n=xD(e.x,t.x),a=xD(e.y,t.y);return Math.sqrt(n**2+a**2)}class tz{constructor(t,n,{transformPagePoint:a,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=FT(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,b=vde(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!f&&!b)return;const{point:y}=x,{timestamp:w}=Hi;this.history.push({...y,timestamp:w});const{onStart:T,onMove:A}=this.handlers;f||(T&&T(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,x)},this.handlePointerMove=(x,f)=>{this.lastMoveEvent=x,this.lastMoveEventInfo=BT(f,this.transformPagePoint),us.update(this.updatePoint,!0)},this.handlePointerUp=(x,f)=>{this.end();const{onEnd:b,onSessionEnd:y,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=FT(x.type==="pointercancel"?this.lastMoveEventInfo:BT(f,this.transformPagePoint),this.history);this.startEvent&&b&&b(x,T),y&&y(x,T)},!BA(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=a,this.distanceThreshold=o,this.contextWindow=r||window;const c=$2(t),l=BT(c,this.transformPagePoint),{point:d}=l,{timestamp:m}=Hi;this.history=[{...d,timestamp:m}];const{onSessionStart:h}=n;h&&h(t,FT(l,this.history)),this.removeListeners=U2(yb(this.contextWindow,"pointermove",this.handlePointerMove),yb(this.contextWindow,"pointerup",this.handlePointerUp),yb(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Nu(this.updatePoint)}}function BT(e,t){return t?{point:t(e.point)}:e}function bD(e,t){return{x:e.x-t.x,y:e.y-t.y}}function FT({point:e},t){return{point:e,delta:bD(e,nz(t)),offset:bD(e,yde(t)),velocity:wde(t,.1)}}function yde(e){return e[0]}function nz(e){return e[e.length-1]}function wde(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,a=null;const r=nz(e);for(;n>=0&&(a=e[n],!(r.timestamp-a.timestamp>kd(t)));)n--;if(!a)return{x:0,y:0};const i=jl(r.timestamp-a.timestamp);if(i===0)return{x:0,y:0};const o={x:(r.x-a.x)/i,y:(r.y-a.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Tde(e,{min:t,max:n},a){return t!==void 0&&e<t?e=a?Nr(t,e,a.min):Math.max(e,t):n!==void 0&&e>n&&(e=a?Nr(n,e,a.max):Math.min(e,n)),e}function vD(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Nde(e,{top:t,left:n,bottom:a,right:r}){return{x:vD(e.x,n,r),y:vD(e.y,t,a)}}function yD(e,t){let n=t.min-e.min,a=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,a]=[a,n]),{min:n,max:a}}function kde(e,t){return{x:yD(e.x,t.x),y:yD(e.y,t.y)}}function jde(e,t){let n=.5;const a=Oo(e),r=Oo(t);return r>a?n=rx(t.min,t.max-a,e.min):a>r&&(n=rx(e.min,e.max-r,t.min)),Rd(0,1,n)}function Ade(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Zk=.35;function Ede(e=Zk){return e===!1?e=0:e===!0&&(e=Zk),{x:wD(e,"left","right"),y:wD(e,"top","bottom")}}function wD(e,t,n){return{min:TD(e,t),max:TD(e,n)}}function TD(e,t){return typeof e=="number"?e:e[t]||0}const Cde=new WeakMap;class Sde{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Gr(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:a}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:x}=this.getProps();x?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor($2(h).point)},o=(h,x)=>{const{drag:f,dragPropagation:b,onDragStart:y}=this.getProps();if(f&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=jle(f),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=x,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),vl(T=>{let A=this.getAxisMotionValue(T).get()||0;if(jd.test(A)){const{projection:E}=this.visualElement;if(E&&E.layout){const D=E.layout.layoutBox[T];D&&(A=Oo(D)*(parseFloat(A)/100))}}this.originPoint[T]=A}),y&&us.postRender(()=>y(h,x)),Qk(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},c=(h,x)=>{this.latestPointerEvent=h,this.latestPanInfo=x;const{dragPropagation:f,dragDirectionLock:b,onDirectionLock:y,onDrag:w}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:T}=x;if(b&&this.currentDirection===null){this.currentDirection=_de(T),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",x.point,T),this.updateAxis("y",x.point,T),this.visualElement.render(),w&&w(h,x)},l=(h,x)=>{this.latestPointerEvent=h,this.latestPanInfo=x,this.stop(h,x),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>vl(h=>this.getAnimationState(h)==="paused"&&this.getAxisMotionValue(h).animation?.play()),{dragSnapToOrigin:m}=this.getProps();this.panSession=new tz(t,{onSessionStart:i,onStart:o,onMove:c,onSessionEnd:l,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:a,contextWindow:ez(this.visualElement)})}stop(t,n){const a=t||this.latestPointerEvent,r=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!a)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:c}=this.getProps();c&&us.postRender(()=>c(a,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:a}=this.getProps();!a&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,a){const{drag:r}=this.getProps();if(!a||!vy(t,r,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+a[t];this.constraints&&this.constraints[t]&&(o=Tde(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;t&&Ig(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&a?this.constraints=Nde(a.layoutBox,t):this.constraints=!1,this.elastic=Ede(n),r!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&vl(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=Ade(a.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ig(t))return!1;const a=t.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=Due(a,r.root,this.visualElement.getTransformPagePoint());let o=kde(r.layout.layoutBox,i);if(n){const c=n(Sue(o));this.hasMutatedConstraints=!!c,c&&(o=FV(c))}return o}startAnimation(t){const{drag:n,dragMomentum:a,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:c}
vendor: 4,255 bytes, line 945
945=this.getProps(),l=this.constraints||{},d=vl(m=>{if(!vy(m,n,this.currentDirection))return;let h=l&&l[m]||{};o&&(h={min:0,max:0});const x=r?200:1e6,f=r?40:1e7,b={type:"inertia",velocity:a?t[m]:0,bounceStiffness:x,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...i,...h};return this.startAxisValueAnimation(m,b)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const a=this.getAxisMotionValue(t);return Qk(this.visualElement,t),a.start(YA(t,a,0,n,this.visualElement,!1))}stopAnimation(){vl(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){vl(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,a=this.visualElement.getProps(),r=a[n];return r||this.visualElement.getValue(t,(a.initial?a.initial[t]:void 0)||0)}snapToCursor(t){vl(n=>{const{drag:a}=this.getProps();if(!vy(n,a,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(n);if(r&&r.layout){const{min:o,max:c}=r.layout.layoutBox[n];i.set(t[n]-Nr(o,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:a}=this.visualElement;if(!Ig(n)||!a||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};vl(o=>{const c=this.getAxisMotionValue(o);if(c&&this.constraints!==!1){const l=c.get();r[o]=jde({min:l,max:l},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.resolveConstraints(),vl(o=>{if(!vy(o,t,null))return;const c=this.getAxisMotionValue(o),{min:l,max:d}=this.constraints[o];c.set(Nr(l,d,r[o]))})}addListeners(){if(!this.visualElement.current)return;Cde.set(this.visualElement,this);const t=this.visualElement.current,n=yb(t,"pointerdown",l=>{const{drag:d,dragListener:m=!0}=this.getProps();d&&m&&this.start(l)}),a=()=>{const{dragConstraints:l}=this.getProps();Ig(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",a);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),us.read(a);const o=r2(window,"resize",()=>this.scalePositionWithinConstraints()),c=r.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(vl(m=>{const h=this.getAxisMotionValue(m);h&&(this.originPoint[m]+=l[m].translate,h.set(h.get()+l[m].translate))}),this.visualElement.render())}));return()=>{o(),n(),i(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:a=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=Zk,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:a,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:c}}}function vy(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function _de(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Pde extends vh{constructor(t){super(t),this.removeGroupControls=gc,this.removeListeners=gc,this.controls=new Sde(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||gc}unmount(){this.removeGroupControls(),this.removeListeners()}}const ND=e=>(t,n)=>{e&&us.postRender(()=>e(t,n))};class Dde extends vh{constructor(){super(...arguments),this.removePointerDownListener=gc}onPointerDown(t){this.session=new tz(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ez(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:a,onPanEnd:r}=this.node.getProps();return{onSessionStart:ND(t),onStart:ND(n),onMove:a,onEnd:(i,o)=>{delete this.session,r&&us.postRender(()=>r(i,o))}}}mount(){this.removePointerDownListener=yb(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const J5={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function kD(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const k1={correct:(e,t)=>
vendor: 5,331 bytes, line 945
945{if(!t.target)return e;if(typeof e=="string")if($n.test(e))e=parseFloat(e);else return e;const n=kD(e,t.target.x),a=kD(e,t.target.y);return`${n}% ${a}%`}},Rde={correct:(e,{treeScale:t,projectionDelta:n})=>{const a=e,r=mh.parse(e);if(r.length>5)return a;const i=mh.createTransformer(e),o=typeof r[0]!="number"?1:0,c=n.x.scale*t.x,l=n.y.scale*t.y;r[0+o]/=c,r[1+o]/=l;const d=Nr(c,l,.5);return typeof r[2+o]=="number"&&(r[2+o]/=d),typeof r[3+o]=="number"&&(r[3+o]/=d),i(r)}};let UT=!1;class Ide extends k.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:a,layoutId:r}=this.props,{projection:i}=t;aue(Mde),i&&(n.group&&n.group.add(i),a&&a.register&&r&&a.register(i),UT&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),J5.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:a,drag:r,isPresent:i}=this.props,{projection:o}=a;return o&&(o.isPresent=i,UT=!0,r||t.layoutDependency!==n||n===void 0||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||us.postRender(()=>{const c=o.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),OA.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:a}=this.props,{projection:r}=t;UT=!0,r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),a&&a.deregister&&a.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function az(e){const[t,n]=jV(),a=k.useContext(fA);return s.jsx(Ide,{...e,layoutGroup:a,switchLayoutGroup:k.useContext(OV),isPresent:t,safeToRemove:n})}const Mde={borderRadius:{...k1,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:k1,borderTopRightRadius:k1,borderBottomLeftRadius:k1,borderBottomRightRadius:k1,boxShadow:Rde};function Lde(e,t,n){const a=Ji(e)?e:hu(e);return a.start(YA("",a,t,n)),a.animation}const Ode=(e,t)=>e.depth-t.depth;class Bde{constructor(){this.children=[],this.isDirty=!1}add(t){xA(this.children,t),this.isDirty=!0}remove(t){bA(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Ode),this.isDirty=!1,this.children.forEach(t)}}function Fde(e,t){const n=fc.now(),a=({timestamp:r})=>{const i=r-n;i>=t&&(Nu(a),e(i-t))};return us.setup(a,!0),()=>Nu(a)}const sz=["TopLeft","TopRight","BottomLeft","BottomRight"],Ude=sz.length,jD=e=>typeof e=="string"?parseFloat(e):e,AD=e=>typeof e=="number"||$n.test(e);function Hde(e,t,n,a,r,i){r?(e.opacity=Nr(0,n.opacity??1,Vde(a)),e.opacityExit=Nr(t.opacity??1,0,zde(a))):i&&(e.opacity=Nr(t.opacity??1,n.opacity??1,a));for(let o=0;o<Ude;o++){const c=`border${sz[o]}Radius`;let l=ED(t,c),d=ED(n,c);if(l===void 0&&d===void 0)continue;l||(l=0),d||(d=0),l===0||d===0||AD(l)===AD(d)?(e[c]=Math.max(Nr(jD(l),jD(d),a),0),(jd.test(d)||jd.test(l))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=Nr(t.rotate||0,n.rotate||0,a))}function ED(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Vde=rz(0,.5,VH),zde=rz(.5,.95,gc);function rz(e,t,n){return a=>a<e?0:a>t?1:n(rx(e,t,a))}function CD(e,t){e.min=t.min,e.max=t.max}function pl(e,t){CD(e.x,t.x),CD(e.y,t.y)}function SD(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function _D(e,t,n,a,r){return e-=t,e=A3(e,1/n,a),r!==void 0&&(e=A3(e,1/r,a)),e}function $de(e,t=0,n=1,a=.5,r,i=e,o=e){if(jd.test(t)&&(t=parseFloat(t),t=Nr(o.min,o.max,t/100)-o.min),typeof t!="number")return;let c=Nr(i.min,i.max,a);e===i&&(c-=t),e.min=_D(e.min,t,n,c,r),e.max=_D(e.max,t,n,c,r)}function PD(e,t,[n,a,r],i,o){$de(e,t[n],t[a],t[r],t.scale,i,o)}const qde=["x","scaleX","originX"],Gde=["y","scaleY","originY"];function DD(e,t,n,a){PD(e.x,t,qde,n?n.x:void 0,a?a.x:void 0),PD(e.y,t,Gde,n?n.y:void 0,a?a.y:void 0)}function RD(e){return e.translate===0&&e.scale===1}function iz(e){return RD(e.x)&&RD(e.y)}function ID(e,t){return e.min===t.min&&e.max===t.max}function Jde(e,t){return ID(e.x,t.x)&&ID(e.y,t.y)}function MD(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function oz(e,t){return MD(e.x,t.x)&&MD(e.y,t.y)}function LD(e){return Oo(e.x)/Oo(e.y)}function OD(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Wde{constructor(){this.members=[]}add(t){xA(this.members,t),t.scheduleRender()}remove(t){if(bA(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(r=>t===r);if(n===0)return!1;let a;for(let r=n;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1){a=i;break}}return a?(this.promote(a),!0):!1}promote(t,n){const a=this.lead;if(t!==a&&(this.prevLead=a,this.lead=t,t.show(),a)){a.instance&&a.scheduleRender(),t.scheduleRender(),t.resumeFrom=a,n&&(t.resumeFrom.preserveOpacity=!0),a.snapshot&&(t.snapshot=a.snapshot,t.snapshot.latestValues=a.animationValues||a.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&a.hide()}}
vendor: 21,942 bytes, line 945
945exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:a}=t;n.onExitComplete&&n.onExitComplete(),a&&a.options.onExitComplete&&a.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Yde(e,t,n){let a="";const r=e.x.translate/t.x,i=e.y.translate/t.y,o=n?.z||0;if((r||i||o)&&(a=`translate3d(${r}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(a+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:m,rotateX:h,rotateY:x,skewX:f,skewY:b}=n;d&&(a=`perspective(${d}px) ${a}`),m&&(a+=`rotate(${m}deg) `),h&&(a+=`rotateX(${h}deg) `),x&&(a+=`rotateY(${x}deg) `),f&&(a+=`skewX(${f}deg) `),b&&(a+=`skewY(${b}deg) `)}const c=e.x.scale*t.x,l=e.y.scale*t.y;return(c!==1||l!==1)&&(a+=`scale(${c}, ${l})`),a||"none"}const HT=["","X","Y","Z"],Xde=1e3;let Qde=0;function VT(e,t,n,a){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),a&&(a[e]=0))}function cz(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=JV(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",us,!(r||i))}const{parent:a}=e;a&&!a.hasCheckedOptimisedAppear&&cz(a)}function lz({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:a,resetTransform:r}){return class{constructor(o={},c=t?.()){this.id=Qde++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(eme),this.nodes.forEach(sme),this.nodes.forEach(rme),this.nodes.forEach(tme)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Bde)}addEventListener(o,c){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new yA),this.eventHandlers.get(o).add(c)}notifyListeners(o,...c){const l=this.eventHandlers.get(o);l&&l.notify(...c)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=FA(o)&&!Ule(o),this.instance=o;const{layoutId:c,layout:l,visualElement:d}=this.options;if(d&&!d.current&&d.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||c)&&(this.isLayoutDirty=!0),e){let m,h=0;const x=()=>this.root.updateBlockedByResize=!1;us.read(()=>{h=window.innerWidth}),e(o,()=>{const f=window.innerWidth;f!==h&&(h=f,this.root.updateBlockedByResize=!0,m&&m(),m=Fde(x,250),J5.hasAnimatedSinceResize&&(J5.hasAnimatedSinceResize=!1,this.nodes.forEach(UD)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&d&&(c||l)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:h,hasRelativeLayoutChanged:x,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||d.getDefaultTransition()||ume,{onLayoutAnimationStart:y,onLayoutAnimationComplete:w}=d.getProps(),T=!this.targetLayout||!oz(this.targetLayout,f),A=!h&&x;if(this.options.layoutRoot||this.resumeFrom||A||h&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const E={...IA(b,"layout"),onPlay:y,onComplete:w};(d.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E),this.setAnimationOrigin(m,A)}else h||UD(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Nu(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ime),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&cz(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const h=this.path[m];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:c,layout:l}=this.options;if(c===void 0&&!l)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(BD);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(FD);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ame),this.nodes.forEach(Kde),this.nodes.forEach(Zde)):this.nodes.forEach(FD),this.clearAllSnapshots();const c=fc.now();Hi.delta=Rd(0,1e3/60,c-Hi.timestamp),Hi.timestamp=c,Hi.isProcessing=!0,_T.update.process(Hi),_T.preRender.process(Hi),_T.render.process(Hi),Hi.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,OA.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nme),this.sharedNodes.forEach(ome)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,us.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){us.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Oo(this.snapshot.measuredBox.x)&&!Oo(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Gr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(c=!1),c&&this.instance){const l=a(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!r)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!iz(this.projectionDelta),l=this.getTransformTemplate(),d=l?l(this.latestValues,""):void 0,m=d!==this.prevTransformTemplateValue;o&&this.instance&&(c||p0(this.latestValues)||m)&&(r(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const c=this.measurePageBox();let l=this.removeElementScroll(c);return o&&(l=this.removeTransform(l)),dme(l),{animationId:this.root.animationId,measuredBox:c,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return Gr();const c=o.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(mme))){const{scroll:d}=this.root;d&&(Mg(c.x,d.offset.x),Mg(c.y,d.offset.y))}return c}removeElementScroll(o){const c=Gr();if(pl(c,o),this.scroll?.wasRoot)return c;for(let l=0;l<this.path.length;l++){const d=this.path[l],{scroll:m,options:h}=d;d!==this.root&&m&&h.layoutScroll&&(m.wasRoot&&pl(c,o),Mg(c.x,m.offset.x),Mg(c.y,m.offset.y))}return c}applyTransform(o,c=!1){const l=Gr();pl(l,o);for(let d=0;d<this.path.length;d++){const m=this.path[d];!c&&m.options.layoutScroll&&m.scroll&&m!==m.root&&Lg(l,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),p0(m.latestValues)&&Lg(l,m.latestValues)}return p0(this.latestValues)&&Lg(l,this.latestValues),l}removeTransform(o){const c=Gr();pl(c,o);for(let l=0;l<this.path.length;l++){const d=this.path[l];if(!d.instance||!p0(d.latestValues))continue;Wk(d.latestValues)&&d.updateSnapshot();const m=Gr(),h=d.measurePageBox();pl(m,h),DD(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,m)}return p0(this.latestValues)&&DD(c,this.latestValues),c}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Hi.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==c;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:h}=this.options;if(!(!this.layout||!(m||h))){if(this.resolvedRelativeTargetAt=Hi.timestamp,!this.targetDelta&&!this.relativeTarget){const x=this.getClosestProjectingParent();x&&x.layout&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Gr(),this.relativeTargetOrigin=Gr(),Tb(this.relativeTargetOrigin,this.layout.layoutBox,x.layout.layoutBox),pl(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Gr(),this.targetWithTransforms=Gr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),bde(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):pl(this.target,this.layout.layoutBox),HV(this.target,this.targetDelta)):pl(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const x=this.getClosestProjectingParent();x&&!!x.resumingFrom==!!this.resumingFrom&&!x.options.layoutScroll&&x.target&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Gr(),this.relativeTargetOrigin=Gr(),Tb(this.relativeTargetOrigin,this.target,x.target),pl(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Wk(this.parent.latestValues)||UV(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const o=this.getLead(),c=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Hi.timestamp&&(l=!1),l)return;const{layout:d,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||m))return;pl(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,x=this.treeScale.y;Pue(this.layoutCorrected,this.treeScale,this.path,c),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Gr());const{target:f}=o;if(!f){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(SD(this.prevProjectionDelta.x,this.projectionDelta.x),SD(this.prevProjectionDelta.y,this.projectionDelta.y)),wb(this.projectionDelta,this.layoutCorrected,f,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==x||!OD(this.projectionDelta.x,this.prevProjectionDelta.x)||!OD(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",f))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.visualElement?.scheduleRender(),o){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Og(),this.projectionDelta=Og(),this.projectionDeltaWithTransform=Og()}setAnimationOrigin(o,c=!1){const l=this.snapshot,d=l?l.latestValues:{},m={...this.latestValues},h=Og();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const x=Gr(),f=l?l.source:void 0,b=this.layout?this.layout.source:void 0,y=f!==b,w=this.getStack(),T=!w||w.members.length<=1,A=!!(y&&!T&&this.options.crossfade===!0&&!this.path.some(lme));this.animationProgress=0;let E;this.mixTargetDelta=D=>{const S=D/1e3;HD(h.x,o.x,S),HD(h.y,o.y,S),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Tb(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox),cme(this.relativeTarget,this.relativeTargetOrigin,x,S),E&&Jde(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=Gr()),pl(E,this.relativeTarget)),y&&(this.animationValues=m,Hde(m,d,this.latestValues,S,A,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Nu(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=us.update(()=>{J5.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=hu(0)),this.currentAnimation=Lde(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),o.onUpdate&&o.onUpdate(c)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Xde),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:c,target:l,layout:d,latestValues:m}=o;if(!(!c||!l||!d)){if(this!==o&&this.layout&&d&&uz(this.options.animationType,this.layout.layoutBox,d.layoutBox)){l=this.target||Gr();const h=Oo(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const x=Oo(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+x}pl(c,l),Lg(c,m),wb(this.projectionDeltaWithTransform,this.layoutCorrected,c,m)}}registerSharedNode(o,c){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Wde),this.sharedNodes.get(o).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){const{layoutId:o}=this.options;return o?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:o}=this.options;return o?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:c,preserveFollowOpacity:l}={}){const d=this.getStack();d&&d.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let c=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(c=!0),!c)return;const d={};l.z&&VT("z",o,d,this.animationValues);for(let m=0;m<HT.length;m++)VT(`rotate${HT[m]}`,o,d,this.animationValues),VT(`skew${HT[m]}`,o,d,this.animationValues);o.render();for(const m in d)o.setStaticValue(m,d[m]),this.animationValues&&(this.animationValues[m]=d[m]);o.scheduleRender()}applyProjectionStyles(o,c){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=G5(c?.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=G5(c?.pointerEvents)||""),this.hasProjected&&!p0(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const m=d.animationValues||d.latestValues;this.applyTransformsToTarget();let h=Yde(this.projectionDeltaWithTransform,this.treeScale,m);l&&(h=l(m,h)),o.transform=h;const{x,y:f}=this.projectionDelta;o.transformOrigin=`${x.origin*100}% ${f.origin*100}% 0`,d.animationValues?o.opacity=d===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:o.opacity=d===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const b in s2){if(m[b]===void 0)continue;const{correct:y,applyTo:w,isCSSVariable:T}=s2[b],A=h==="none"?m[b]:y(m[b],d);if(w){const E=w.length;for(let D=0;D<E;D++)o[w[D]]=A}else T?this.options.visualElement.renderState.vars[b]=A:o[b]=A}this.options.layoutId&&(o.pointerEvents=d===this?G5(c?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>o.currentAnimation?.stop()),this.root.nodes.forEach(BD),this.root.sharedNodes.clear()}}}function Kde(e){e.updateLayout()}function Zde(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:a}=e.layout,{animationType:r}=e.options,i=t.source!==e.layout.source;r==="size"?vl(m=>{const h=i?t.measuredBox[m]:t.layoutBox[m],x=Oo(h);h.min=n[m].min,h.max=h.min+x}):uz(r,t.layoutBox,n)&&vl(m=>{const h=i?t.measuredBox[m]:t.layoutBox[m],x=Oo(n[m]);h.max=h.min+x,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+x)});const o=Og();wb(o,n,t.layoutBox);const c=Og();i?wb(c,e.applyTransform(a,!0),t.measuredBox):wb(c,n,t.layoutBox);const l=!iz(o);let d=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:h,layout:x}=m;if(h&&x){const f=Gr();Tb(f,t.layoutBox,h.layoutBox);const b=Gr();Tb(b,n,x.layoutBox),oz(f,b)||(d=!0),m.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=f,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:c,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function eme(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function tme(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function nme(e){e.clearSnapshot()}function BD(e){e.clearMeasurements()}function FD(e){e.isLayoutDirty=!1}function ame(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function UD(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function sme(e){e.resolveTargetDelta()}function rme(e){e.calcProjection()}
945function ime(e){e.resetSkewAndRotation()}function ome(e){e.removeLeadSnapshot()}function HD(e,t,n){e.translate=Nr(t.translate,0,n),e.scale=Nr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function VD(e,t,n,a){e.min=Nr(t.min,n.min,a),e.max=Nr(t.max,n.max,a)}function cme(e,t,n,a){VD(e.x,t.x,n.x,a),VD(e.y,t.y,n.y,a)}function lme(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const ume={duration:.45,ease:[.4,0,.1,1]},zD=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),$D=zD("applewebkit/")&&!zD("chrome/")?Math.round:gc;function qD(e){e.min=$D(e.min),e.max=$D(e.max)}function dme(e){qD(e.x),qD(e.y)}function uz(e,t,n){return e==="position"||e==="preserve-aspect"&&!xde(LD(t),LD(n),.2)}function mme(e){return e!==e.root&&e.scroll?.wasRoot}const pme=lz({attachResizeListener:(e,t)=>r2(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),zT={current:void 0},dz=lz({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!zT.current){const e=new pme({});e.mount(window),e.setOptions({layoutScroll:!0}),zT.current=e}return zT.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),hme={pan:{Feature:Dde},drag:{Feature:Pde,ProjectionNode:dz,MeasureLayout:az}};function GD(e,t,n){const{props:a}=e;e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,i=a[r];i&&us.postRender(()=>i(t,$2(t)))}class fme extends vh{mount(){const{current:t}=this.node;t&&(this.unmount=Ale(t,(n,a)=>(GD(this.node,a,"Start"),r=>GD(this.node,r,"End"))))}unmount(){}}class gme extends vh{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=U2(r2(this.node.current,"focus",()=>this.onFocus()),r2(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function JD(e,t,n){const{props:a}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&a.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),i=a[r];i&&us.postRender(()=>i(t,$2(t)))}class xme extends vh{mount(){const{current:t}=this.node;t&&(this.unmount=_le(t,(n,a)=>(JD(this.node,a,"Start"),(r,{success:i})=>JD(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const e7=new WeakMap,$T=new WeakMap,bme=e=>{const t=e7.get(e.target);t&&t(e)},vme=e=>{e.forEach(bme)};function yme({root:e,...t}){const n=e||document;$T.has(n)||$T.set(n,{});const a=$T.get(n),r=JSON.stringify(t);return a[r]||(a[r]=new IntersectionObserver(vme,{root:e,...t})),a[r]}function wme(e,t,n){const a=yme(t);return e7.set(e,n),a.observe(e),()=>{e7.delete(e),a.unobserve(e)}}const Tme={some:0,all:1};class Nme extends vh{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:a,amount:r="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:a,threshold:typeof r=="number"?r:Tme[r]},c=l=>{const{isIntersecting:d}=l;if(this.isInView===d||(this.isInView=d,i&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:m,onViewportLeave:h}=this.node.getProps(),x=d?m:h;x&&x(l)};return wme(this.node.current,o,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(kme(t,n))&&this.startObserver()}unmount(){}}function kme({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const jme={inView:{Feature:Nme},tap:{Feature:xme},focus:{Feature:gme},hover:{Feature:fme}},Ame={layout:{ProjectionNode:dz,MeasureLayout:az}},Eme={...dde,...jme,...hme,...Ame},xc=Cue(Eme,Uue),Cme=50,WD=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Sme=()=>({time:0,x:WD(),y:WD()}),_me={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function YD(e,t,n,a){const r=n[t],{length:i,position:o}=_me[t],c=r.current,l=n.time;r.current=e[`scroll${o}`],r.scrollLength=e[`scroll${i}`]-e[`client${i}`],r.offset.length=0,r.offset[0]=0,r.offset[1]=r.scrollLength,r.progress=rx(0,r.scrollLength,r.current);const d=a-l;r.velocity=d>Cme?0:wA(r.current-c,d)}function Pme(e,t,n){YD(e,"x",t,n),YD(e,"y",t,n),t.time=n}function Dme(e,t){const n={x:0,y:0};let a=e;for(;a&&a!==t;)if(LA(a))n.x+=a.offsetLeft,n.y+=a.offsetTop,a=a.offsetParent;else if(a.tagName==="svg"){const r=a.getBoundingClientRect();a=a.parentElement;const i=a.getBoundingClientRect();n.x+=r.left-i.left,n.y+=r.top-i.top}else if(a instanceof SVGGraphicsElement){const{x:r,y:i}=a.getBBox();n.x+=r,n.y+=i;let o=null,c=a.parentNode;for(;!o;)c.tagName==="svg"&&(o=c),c=a.parentNode;a=o}else break;return n}const t7={start:0,center:.5,end:1};function XD(e,t,n=0){let a=0;if(e in t7&&(e=t7[e]),typeof e=="string"){const r=parseFloat(e);e.endsWith("px")?a=r:e.endsWith("%")?e=r/100:e.endsWith("vw")?a=r/100*document.documentElement.clientWidth:e.endsWith("vh")?a=r/100*document.documentElement.clientHeight:e=r}return typeof e=="number"&&(a=t*e),n+a}const Rme=[0,0];function Ime(e,t,n,a){let r=Array.isArray(e)?e:Rme,i=0,o=0;return typeof e=="number"?r=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?r=e.split(" "):r=[e,t7[e]?e:"0"]),i=XD(r[0],n,a),o=XD(r[1],t),i-o}const Mme={All:[[0,0],[1,1]]},Lme={x:0,y:0};function Ome(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function Bme(e,t,n){const{offset:a=Mme.All}=n,{target:r=e,axis:i="y"}=n,o=i==="y"?"height":"width",c=r!==e?Dme(r,e):Lme,l=r===e?{width:e.scrollWidth,height:e.scrollHeight}:Ome(r),d={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let m=!t[i].interpolate;const h=a.length;for(let x=0;x<h;
945x++){const f=Ime(a[x],d[o],l[o],c[i]);!m&&f!==t[i].interpolatorOffsets[x]&&(m=!0),t[i].offset[x]=f}m&&(t[i].interpolate=_A(t[i].offset,aV(a),{clamp:!1}),t[i].interpolatorOffsets=[...t[i].offset]),t[i].progress=Rd(0,1,t[i].interpolate(t[i].current))}function Fme(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let a=t;for(;a&&a!==e;)n.x.targetOffset+=a.offsetLeft,n.y.targetOffset+=a.offsetTop,a=a.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function Ume(e,t,n,a={}){return{measure:r=>{Fme(e,a.target,n),Pme(e,n,r),(a.offset||a.target)&&Bme(e,n,a)},notify:()=>t(n)}}const j1=new WeakMap,QD=new WeakMap,qT=new WeakMap,KD=e=>e===document.scrollingElement?window:e;function mz(e,{container:t=document.scrollingElement,...n}={}){if(!t)return gc;let a=qT.get(t);a||(a=new Set,qT.set(t,a));const r=Sme(),i=Ume(t,e,r,n);if(a.add(i),!j1.has(t)){const c=()=>{for(const h of a)h.measure(Hi.timestamp);us.preUpdate(l)},l=()=>{for(const h of a)h.notify()},d=()=>us.read(c);j1.set(t,d);const m=KD(t);window.addEventListener("resize",d,{passive:!0}),t!==document.documentElement&&QD.set(t,Fle(t,d)),m.addEventListener("scroll",d,{passive:!0}),d()}const o=j1.get(t);return us.read(o,!1,!0),()=>{Nu(o);const c=qT.get(t);if(!c||(c.delete(i),c.size))return;const l=j1.get(t);j1.delete(t),l&&(KD(t).removeEventListener("scroll",l),QD.get(t)?.(),window.removeEventListener("resize",l))}}const ZD=new Map;function Hme(e){const t={value:0},n=mz(a=>{t.value=a[e.axis].progress*100},e);return{currentTime:t,cancel:n}}function pz({source:e,container:t,...n}){const{axis:a}=n;e&&(t=e);const r=ZD.get(t)??new Map;ZD.set(t,r);const i=n.target??"self",o=r.get(i)??{},c=a+(n.offset??[]).join(",");return o[c]||(o[c]=!n.target&&oV()?new ScrollTimeline({source:t,axis:a}):Hme({container:t,...n})),o[c]}function Vme(e,t){const n=pz(t);return e.attachTimeline({timeline:t.target?void 0:n,observe:a=>(a.pause(),kV(r=>{a.time=a.iterationDuration*r},n))})}function zme(e){return e.length===2}function $me(e,t){return zme(e)?mz(n=>{e(n[t.axis].progress,n)},t):kV(e,pz(t))}function qme(e,{axis:t="y",container:n=document.scrollingElement,...a}={}){if(!n)return gc;const r={axis:t,container:n,...a};return typeof e=="function"?$me(e,r):Vme(e,r)}const Gme=()=>({scrollX:hu(0),scrollY:hu(0),scrollXProgress:hu(0),scrollYProgress:hu(0)}),yy=e=>e?!e.current:!1;function XA({container:e,target:t,...n}={}){const a=yx(Gme),r=k.useRef(null),i=k.useRef(!1),o=k.useCallback(()=>(r.current=qme((c,{x:l,y:d})=>{a.scrollX.set(l.current),a.scrollXProgress.set(l.progress),a.scrollY.set(d.current),a.scrollYProgress.set(d.progress)},{...n,container:e?.current||void 0,target:t?.current||void 0}),()=>{r.current?.()}),[e,t,JSON.stringify(n.offset)]);return q4(()=>{if(i.current=!1,yy(e)||yy(t)){i.current=!0;return}else return o()},[o]),k.useEffect(()=>{if(i.current)return e2(!yy(e)),e2(!yy(t)),o()},[o]),a}function hz(e){const t=yx(()=>hu(e)),{isStatic:n}=k.useContext(z2);if(n){const[,a]=k.useState(e);k.useEffect(()=>t.on("change",a),[])}return t}function fz(e,t){const n=hz(t()),a=()=>n.set(t());return a(),q4(()=>{const r=()=>us.preRender(a,!1,!0),i=e.map(o=>o.on("change",r));return()=>{i.forEach(o=>o()),Nu(a)}}),n}function Jme(e){vb.current=[],e();const t=fz(vb.current,e);return vb.current=void 0,t}function i2(e,t,n,a){if(typeof e=="function")return Jme(e);const r=typeof t=="function"?t:Hle(t,n,a);return Array.isArray(e)?eR(e,r):eR([e],([i])=>r(i))}function eR(e,t){const n=yx(()=>[]);return fz(e,()=>{n.length=0;const a=e.length;for(let r=0;r<a;r++)n[r]=e[r].get();return t(n)})}function Wme(e,t={}){const{isStatic:n}=k.useContext(z2),a=()=>Ji(e)?e.get():e;if(n)return i2(a);const r=hz(a());return k.useInsertionEffect(()=>Vle(r,e,t),[r,JSON.stringify(t)]),r}function q2(){!WA.current&&zV();const[e]=k.useState(E3.current);return e}function ph({title:e="Jordan hotel search",...t}){return s.jsxs("svg",{"data-loc":"client/src/components/JordanServiceIcons.tsx:11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",role:"img","aria-label":e,...t,children:[s.jsx("path",{"data-loc":"client/src/components/JordanServiceIcons.tsx:12",d:"M3.5 19.5h10.25"}),s.jsx("path",{"data-loc":"client/src/components/JordanServiceIcons.tsx:13",d:"M5 19.5V7.25L9.25 4l4.25 3.25v7.2"}),s.jsx("path",{"data-loc":"client/src/components/JordanServiceIcons.tsx:14",d:"M8 9.25h2.5M8
94512.5h2.5M8 15.75h2.5"}),s.jsx("circle",{"data-loc":"client/src/components/JordanServiceIcons.tsx:15",cx:"16.25",cy:"16.25",r:"3.25"}),s.jsx("path",{"data-loc":"client/src/components/JordanServiceIcons.tsx:16",d:"m18.65 18.65 2.1 2.1"}),s.jsx("path",{"data-loc":"client/src/components/JordanServiceIcons.tsx:17",d:"M16.25 14.75v3M14.75 16.25h3",opacity:".7"})]})}function Yme({title:e="Urdunna Jannah",...t}){return s.jsxs("svg",{"data-loc":"client/src/components/JordanServiceIcons.tsx:24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",role:"img","aria-label":e,...t,children:[s.jsx("path",{"data-loc":"client/src/components/JordanServiceIcons.tsx:25",d:"m3.5 6 5-2 7 2 5-2v14l-5 2-7-2-5 2V6Z"}),s.jsx("path",{"data-loc":"client/src/components/JordanServiceIcons.tsx:26",d:"M8.5 4v14M15.5 6v14",opacity:".7"}),s.jsx("circle",{"data-loc":"client/src/components/JordanServiceIcons.tsx:27",cx:"18.2",cy:"7.1",r:"1.8"}),s.jsx("path",{"data-loc":"client/src/components/JordanServiceIcons.tsx:28",d:"M6.5 14c2-3 4.7-4.5 8.1-4.3",strokeDasharray:"2.2 2.2"}),s.jsx("path",{"data-loc":"client/src/components/JordanServiceIcons.tsx:29",d:"m13.5 8.5 1.6 1.2-1.4 1.45"}),s.jsx("path",{"data-loc":"client/src/components/JordanServiceIcons.tsx:30",d:"M18.2 3.8V2.7M21.5 7.1h1.1M20.55 4.75l.8-.8",opacity:".75"})]})}function io(){const{lang:e,setLang:t,t:n}=zs(),{theme:a,toggleTheme:r}=Hoe(),[i,o]=k.useState(!1),[c,l]=k.useState(!1),[d]=_U(),m=e==="ar";k.useEffect(()=>{const b=()=>o(window.scrollY>44);return b(),window.addEventListener("scroll",b,{passive:!0}),()=>window.removeEventListener("scroll",b)},[]),k.useEffect(()=>{l(!1)},[d]),k.useEffect(()=>(document.body.style.overflow=c?"hidden":"",()=>{document.body.style.overflow=""}),[c]);const h=[{label:n("nav.destinations"),href:"/destinations"},{label:m?"ÙÙØ§Ø¯Ù Ø§ÙØ£Ø±Ø¯Ù":"Jordan hotels",href:"/jordan-hotels"},{label:n("nav.visa"),href:"/visa"},{label:n("nav.umrah"),href:"/umrah"},{label:n("nav.services"),href:"/services"},{label:n("nav.about"),href:"/about"},{label:n("nav.contact"),href:"/contact"}],f=(d==="/"||d==="/umrah"||d==="/jordan-hotels")&&!i&&!c;return s.jsxs(s.Fragment,{children:[s.jsx("nav",{"data-loc":"client/src/components/Navigation.tsx:53",className:"fixed inset-x-0 top-0 z-50 px-3 pt-3 sm:px-5 sm:pt-4","aria-label":m?"Ø§ÙØªÙÙÙ Ø§ÙØ±Ø¦ÙسÙ":"Primary navigation",children:s.jsxs("div",{"data-loc":"client/src/components/Navigation.tsx:54",className:`mx-auto grid max-w-[1480px] grid-cols-[auto_1fr_auto] items-center gap-3 rounded-full border px-3 py-2.5 transition-[background-color,border-color,box-shadow,transform] duration-300 sm:px-4 ${f?"border-white/15 bg-[#2c212e]/48 text-white shadow-[0_18px_50px_-30px_rgba(27,13,29,.78)] backdrop-blur-xl":i?"border-[#dccac8]/85 bg-[#fff9f4]/94 text-[#2d1b1b] shadow-[0_22px_55px_-34px_rgba(74,59,83,.52)] backdrop-blur-xl dark:border-[#493b49]/85 dark:bg-[#2a222b]/94 dark:text-[#f7f1ea]":"border-[#dccac8]/65 bg-[#fff9f4]/76 text-[#2d1b1b] shadow-[0_18px_48px_-36px_rgba(74,59,83,.44)] backdrop-blur-xl dark:border-[#493b49]/65 dark:bg-[#2a222b]/78 dark:text-[#f7f1ea]"}`,dir:"ltr",children:[s.jsxs("a",{"data-loc":"client/src/components/Navigation.tsx:64",href:Oa.url,target:"_blank",rel:"noopener noreferrer",className:"group flex min-h-12 min-w-[152px] items-center justify-start gap-2.5 rounded-full px-1 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary","aria-label":m?"Ø²ÙØ§Ø±Ø© Ù
ÙÙØ¹ IBRIX Ø§ÙØ±Ø³Ù
Ù":"Visit the official IBRIX website",children:[s.jsx("img",{"data-loc":"client/src/components/Navigation.tsx:71",src:Oa.logoUrl,alt:"IBRIX",className:"h-10 w-10 rounded-xl bg-white object-contain shadow-sm transition-transform duration-200 group-hover:scale-[1.025] sm:h-11 sm:w-11"}),s.jsx("span",{"data-loc":"client/src/components/Navigation.tsx:76",className:"font-display text-xl font-bold tracking-[0.14em]",children:"IBRIX"})]}),s.jsx("div",{"data-loc":"client/src/components/Navigation.tsx:79",className:"hidden items-center justify-center gap-1 lg:flex",dir:m?"rtl":"ltr",children:h.map(b=>{const y=d===b.href||b.href==="/destinations"&&d.startsWith("/packages/");return s.jsxs(ls,{"data-loc":"client/src/components/Navigation.tsx:83",href:b.href,className:`relative rounded-full px-3.5 py-2.5 text-[13px] font-semibold transition-colors duration-180 xl:px-4 ${y?f?"bg-white/12 text-white":"bg-secondary text-secondary-foreground":f?"text-white/75 hover:bg-white/10 hover:text-white":"text-muted-foreground hover:bg-muted hover:text-foreground"}`,children:[s.jsxs("span",{"data-loc":"client/src/components/Navigation.tsx:92",className:"inline-flex items-center gap-1.5",children:[b.href==="/jordan-hotels"?s.jsx(ph,{"data-loc":"client/src/components/Navigation.tsx:93",className:"h-4 w-4","aria-hidden":"true"}):null,b.label]}),y?s.jsx("span",{"data-loc":"client/src/components/Navigation.tsx:96",className:"absolute inset-x-4 -bottom-px h-px bg-accent"}):null]},b.href)})}),s.jsxs("div",{"data-loc":"client/src/components/Navigation.tsx:102",className:"flex items-center justify-end gap-1.5 sm:gap-2",dir:"ltr",children:[s.jsx("button",{"data-loc":"client/src/components/Navigation.tsx:103",onClick:r,"aria-label":a==="dark"?"Switch to light mode":"Switch to dark mode",className:`grid h-10 w-10 place-items-center rounded-full border transition active:scale-[0.92] ${f?"border-white/15 text-white/85 hover:bg-white/10":"border-border text-muted-foreground hover:bg-muted hover:text-foreground"}`,children:a==="dark"?s.jsx(kie,{"data-loc":"client/src/components/Navigation.tsx:110",className:"h-4 w-4"}):s.jsx(VU,{"data-loc":"client/src/components/Navigation.tsx:110",className:"h-4 w-4"})}),s.jsxs("button",{"data-loc":"client/src/components/Navigation.tsx:113",onClick:()=>t(m?"en":"ar"),"aria-label":m?"Switch to English":"Ø§ÙØªØ¨Ø¯Ù٠إÙÙ Ø§ÙØ¹Ø±Ø¨ÙØ©",className:`flex h-10 items-center gap-1.5 rounded-full border px-3 text-xs font-bold transition active:scale-[0.95] ${f?"border-white/15 text-white/85 hover:bg-white/10":"border-border text-muted-foreground hover:bg-muted hover:text-foreground"}`,children:[s.jsx(B2,{"data-loc":"client/src/components/Navigation.tsx:120",className:"h-3.5 w-3.5"}),s.jsx("span",{"data-loc":"client/src/components/Navigation.tsx:121",children:m?"EN":"عربÙ"})]}),s.jsxs("a",{"data-loc":"client/src/components/Navigation.tsx:124",href:"https://wa.me/962787789915",target:"_blank",rel:"noopener noreferrer",className:"enchanted-button hidden h-11 items-center gap-2 bg-primary px-5 text-sm font-bold text-primary-foreground hover:bg-[#6a3f5b] sm:flex dar
945k:hover:bg-[#edcbd2]",dir:m?"rtl":"ltr",children:[s.jsx(I0,{"data-loc":"client/src/components/Navigation.tsx:131",className:"h-3.5 w-3.5"}),s.jsx("span",{"data-loc":"client/src/components/Navigation.tsx:132",children:n("nav.bookNow")})]}),s.jsx("button",{"data-loc":"client/src/components/Navigation.tsx:135",onClick:()=>l(b=>!b),"aria-label":c?m?"Ø¥ØºÙØ§Ù اÙÙØ§Ø¦Ù
Ø©":"Close menu":m?"ÙØªØ اÙÙØ§Ø¦Ù
Ø©":"Open menu","aria-expanded":c,className:`grid h-10 w-10 place-items-center rounded-full border transition lg:hidden ${f?"border-white/15 text-white hover:bg-white/10":"border-border text-foreground hover:bg-muted"}`,children:c?s.jsx(ks,{"data-loc":"client/src/components/Navigation.tsx:143",className:"h-5 w-5"}):s.jsx(die,{"data-loc":"client/src/components/Navigation.tsx:143",className:"h-5 w-5"})})]})]})}),c?s.jsxs("div",{"data-loc":"client/src/components/Navigation.tsx:150",className:"enchanted-page fixed inset-0 z-40 overflow-y-auto bg-background px-5 pb-8 pt-28 lg:hidden",dir:m?"rtl":"ltr",children:[s.jsx("span",{"data-loc":"client/src/components/Navigation.tsx:151",className:"enchanted-bloom -right-20 top-20 opacity-45","aria-hidden":"true"}),s.jsxs("div",{"data-loc":"client/src/components/Navigation.tsx:152",className:"relative mx-auto max-w-lg",children:[s.jsx("p",{"data-loc":"client/src/components/Navigation.tsx:153",className:"enchanted-kicker",children:m?"Ø¯ÙØªØ± رØÙتÙ":"Your travel diary"}),s.jsx("div",{"data-loc":"client/src/components/Navigation.tsx:154",className:"mt-7 grid gap-2",children:h.map((b,y)=>{const w=d===b.href;return s.jsxs(ls,{"data-loc":"client/src/components/Navigation.tsx:158",href:b.href,onClick:()=>l(!1),className:`enchanted-card flex items-center justify-between px-5 py-4 text-lg font-bold ${w?"border-primary/40 bg-secondary":""}`,children:[s.jsxs("span",{"data-loc":"client/src/components/Navigation.tsx:164",className:"inline-flex items-center gap-2",children:[b.href==="/jordan-hotels"?s.jsx(ph,{"data-loc":"client/src/components/Navigation.tsx:165",className:"h-6 w-6 text-[#0d7f72]","aria-hidden":"true"}):null,b.label]}),s.jsxs("span",{"data-loc":"client/src/components/Navigation.tsx:168",className:"font-display text-2xl text-accent/55",children:["0",y+1]})]},b.href)})}),s.jsxs("a",{"data-loc":"client/src/components/Navigation.tsx:173",href:"https://wa.me/962787789915",target:"_blank",rel:"noopener noreferrer",className:"enchanted-button mt-6 flex min-h-14 items-center justify-center gap-2 bg-primary px-8 font-bold text-primary-foreground",children:[s.jsx(I0,{"data-loc":"client/src/components/Navigation.tsx:179",className:"h-4 w-4"}),n("nav.bookNow")]})]})]}):null]})}function oo(){const{t:e,lang:t}=zs(),n=t==="ar",a=[{label:e("nav.home"),href:"/"},{label:e("nav.destinations"),href:"/destinations"},{label:e("nav.umrah"),href:"/umrah"},{label:e("nav.services"),href:"/services"},{label:e("nav.about"),href:"/about"},{label:e("nav.contact"),href:"/contact"}],r=n?["ØØ¬Ø² Ø§ÙØ·ÙراÙ","ØØ¬Ø² اÙÙÙØ§Ø¯Ù","براÙ
ج Ø³ÙØ§ØÙØ©","Ø§ÙØ¹Ù
رة ÙØ§ÙØØ¬","ØªØ£Ø´ÙØ±Ø§Øª","تأÙ
ÙÙ Ø§ÙØ³Ùر"]:["Flight booking","Hotel reservations","Tour packages","Umrah & Hajj","Visa services","Travel insurance"];return s.jsxs("footer",{"data-loc":"client/src/components/Footer.tsx:28",className:"enchanted-footer relative overflow-hidden bg-[#2c212e] pb-8 pt-24 text-[#f7f1ea]/80 md:pt-28",children:[s.jsx("div",{"data-loc":"client/src/components/Footer.tsx:29",className:"pointer-events-none absolute -right-24 -top-32 h-96 w-96 rounded-full border border-[#f4d2c9]/15","aria-hidden":"true"}),s.jsx("div",{"data-loc":"client/src/components/Footer.tsx:30",className:"pointer-events-none absolute -right-8 -top-16 h-72 w-72 rounded-full border border-[#c7eaf5]/12","aria-hidden":"true"}),s.jsx("div",{"data-loc":"client/src/components/Footer.tsx:31",className:"pointer-events-none absolute -left-28 top-1/3 h-80 w-80 rounded-full bg-[#ae667c]/15 blur-3xl","aria-hidden":"true"}),s.jsxs("div",{"data-loc":"client/src/components/Footer.tsx:32",className:"container relative max-w-[1480px]",children:[s.jsxs("div",{"data-loc":"client/src/components/Footer.tsx:33",className:"mb-16 grid gap-12 border-b border-white/10 pb-16 md:grid-cols-2 lg:grid-cols-[1.35fr_.75fr_.8fr_1.25fr]",children:[s.jsxs("div",{"data-loc":"client/src/components/Footer.tsx:34",children:[s.jsxs("a",{"data-loc":"client/src/components/Footer.tsx:35",href:Oa.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-3 rounded-full focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[#f4d2c9]","aria-label":n?"Ø²ÙØ§Ø±Ø© Ù
ÙÙØ¹ IBRIX Ø§ÙØ±Ø³Ù
Ù":"Visit the official IBRIX website",children:[s.jsx("img",{"data-loc":"client/src/components/Footer.tsx:36",src:Oa.logoUrl,alt:"IBRIX",className:"h-14 w-14 roun
945ded-2xl bg-white object-contain"}),s.jsx("span",{"data-loc":"client/src/components/Footer.tsx:41",className:"font-display text-3xl font-bold tracking-[0.14em] text-white",children:"IBRIX"})]}),s.jsx("p",{"data-loc":"client/src/components/Footer.tsx:43",className:"mt-5 font-display text-3xl font-semibold italic text-[#f4d2c9]",children:n?Oa.taglineAr:Oa.taglineEn}),s.jsx("p",{"data-loc":"client/src/components/Footer.tsx:46",className:"mt-4 max-w-sm text-sm leading-7 text-white/55",children:e("footer.tagline")}),s.jsxs("a",{"data-loc":"client/src/components/Footer.tsx:47",href:Oa.url,target:"_blank",rel:"noopener noreferrer",className:"mt-7 inline-flex items-center gap-2 rounded-full border border-white/10 bg-white/[0.04] px-4 py-2 text-sm text-white/70 transition hover:border-[#f4d2c9]/40 hover:bg-white/10 hover:text-white",children:[s.jsx(uh,{"data-loc":"client/src/components/Footer.tsx:47",className:"h-4 w-4"}),"www.ibrix.digital"]})]}),s.jsxs("div",{"data-loc":"client/src/components/Footer.tsx:50",children:[s.jsx("h2",{"data-loc":"client/src/components/Footer.tsx:51",className:"text-xs font-bold uppercase tracking-[0.18em] text-[#f4d2c9]",children:n?"ØµÙØØ§Øª Ø§ÙØ¯Ùتر":"Journal pages"}),s.jsx("ul",{"data-loc":"client/src/components/Footer.tsx:52",className:"mt-6 space-y-3",children:a.map(i=>s.jsx("li",{"data-loc":"client/src/components/Footer.tsx:54",children:s.jsx(ls,{"data-loc":"client/src/components/Footer.tsx:54",href:i.href,className:"text-sm text-white/55 transition hover:text-white",children:i.label})},i.href))})]}),s.jsxs("div",{"data-loc":"client/src/components/Footer.tsx:59",children:[s.jsx("h2",{"data-loc":"client/src/components/Footer.tsx:60",className:"text-xs font-bold uppercase tracking-[0.18em] text-[#f4d2c9]",children:e("nav.services")}),s.jsx("ul",{"data-loc":"client/src/components/Footer.tsx:61",className:"mt-6 space-y-3",children:r.map(i=>s.jsx("li",{"data-loc":"client/src/components/Footer.tsx:62",className:"text-sm text-white/55",children:i},i))})]}),s.jsxs("div",{"data-loc":"client/src/components/Footer.tsx:66",children:[s.jsx("h2",{"data-loc":"client/src/components/Footer.tsx:67",className:"text-xs font-bold uppercase tracking-[0.18em] text-[#f4d2c9]",children:e("nav.contact")}),s.jsxs("ul",{"data-loc":"client/src/components/Footer.tsx:68",className:"mt-6 space-y-4",children:[s.jsxs("li",{"data-loc":"client/src/components/Footer.tsx:69",className:"flex items-center gap-3",children:[s.jsx(I0,{"data-loc":"client/src/components/Footer.tsx:69",className:"h-4 w-4 shrink-0 text-[#f4d2c9]"}),s.jsx("a",{"data-loc":"client/src/components/Footer.tsx:69",href:"tel:+962787789915",dir:"ltr",className:"text-sm text-white/55 transition hover:text-white",children:"0787789915"})]}),s.jsxs("li",{"data-loc":"client/src/components/Footer.tsx:70",className:"flex items-center gap-3",children:[s.jsx(Pd,{"data-loc":"client/src/components/Footer.tsx:70",className:"h-4 w-4 shrink-0 text-[#f4d2c9]"}),s.jsx("a",{"data-loc":"client/src/components/Footer.tsx:70",href:`mailto:${Oa.email}`,className:"text-sm text-white/55 transition hover:text-white",children:Oa.email})]}),s.jsxs("li",{"data-loc":"client/src/components/Footer.tsx:71",className:"flex items-center gap-3",children:[s.jsx(Pd,{"data-loc":"client/src/components/Footer.tsx:71",className:"h-4 w-4 shrink-0 text-[#f4d2c9]"}),s.jsx("a",{"data-loc":"client/src/components/Footer.tsx:71",href:`mailto:${Oa.supportEmail}`,className:"text-sm text-white/55 transition hover:text-white",children:Oa.supportEmail})]}),s.jsxs("li",{"data-loc":"client/src/components/Footer.tsx:72",className:"flex items-center gap-3",children:[s.jsx(uh,{"data-loc":"client/src/components/Footer.tsx:72",className:"h-4 w-4 shrink-0 text-[#f4d2c9]"}),s.jsx("a",{"data-loc":"client/src/components/Footer.tsx:72",href:Oa.url,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-white/55 transition hover:text-white",children:"www.ibrix.digital"})]}),s.jsxs("li",{"data-loc":"client/src/components/Footer.tsx:73",className:"flex items-start gap-3",children:[s.jsx(Pl,{"data-loc":"client/src/components/Footer.tsx:73",className:"mt-0.5 h-4 w-4 shrink-0 text-[#f4d2c9]"}),s.jsx("span",{"data-loc":"client/src/components/Footer.tsx:73",className:"text-sm leading-6 text-white/55",children:n?"Ù
Ù Ù¡Ù ØµØ¨Ø§ØØ§Ù ØØªÙ Ù¨ Ù
ساء٠· بخدÙ
تÙÙ
٢٤ ساعة Ø£ÙÙÙØ§ÙÙ":"Office: 10 AMâ8 PM · Online 24/7"})]})]})]})]}),s.jsxs("div",{"data-loc":"client/src/components/Footer.tsx:78",className:"flex flex-col items-center justify-between gap-5 md:flex-row",children:[s.jsxs("p",{"data-loc":"client/src/components/Footer.tsx:79",className:"text-center text-xs leading-6 text-white/60 md:text-start",children:["© ",new Date().getFullYear()," IBRIX. ",e("footer.rights")]}),s.jsxs("a",{"data-loc":"client/src/components/Footer.tsx:82",href:"https://www.ibrix.digital",target:"_blank",rel:"noopener noreferrer",className:"group flex items-center gap-3 rounded-full border border-white/10 bg-white/[0.04] px-4 py-2 text-xs text-white/55 transition hover:border-[#f4d2c9]/35 hover:text-white",children:[s.jsx("img",{"data-loc":"client/src/components/Footer.tsx:83",src:Oa.logoUrl,alt:"IBRIX",className:"h-6 w-6 rounded-md bg-white object-contain transition-transform group-hover:scale-105"}),s.jsx("span",{"data-loc":"client/src/components/Footer.tsx:84",className:"font-semibold tracking-wide",children:"Designed by IBRIX"})]})]})]})]})}const Xme="962787789915";function Qme({isArabic:e}){const t=[{question:e?"ÙÙÙ Ø£Ø±Ø³Ù Ø·ÙØ¨ ØØ¬Ø²Ø":"How do I submit a booking request?",answer:e?"اختر Ø§ÙØ¨Ø±ÙاÙ
ج اÙÙ
ÙØ§Ø³Ø¨ Ø«Ù
Ø£ÙÙ
Ù ÙÙ
ÙØ°Ø¬ Ø§ÙØØ¬Ø². بعد Ø§ÙØ¥Ø±Ø³Ø§Ù ÙØ¸Ùر Ù٠رÙÙ
Ù
Ø±Ø¬Ø¹ÙØ ÙÙØµÙ Ø·ÙØ¨Ù Ø¥ÙÙ ÙØ±ÙÙ IBRIX ÙÙ
راجعة Ø§ÙØªÙاصÙÙ ÙØ§ÙتÙÙØ± ÙØ¨Ù أ٠تأÙÙØ¯ ÙÙØ§Ø¦Ù.":"Choose a programme and complete the booking form. After submission, you receive a reference and the IBRIX team reviews the details and availability before any final confirmation."},{question:e?"Ù
ØªÙ ÙØµØ¨Ø Ø§ÙØØ¬Ø² Ù
Ø¤ÙØ¯Ø§ÙØ":"When is a booking confirmed?",answer:e?"ÙØµØ¨Ø Ø§ÙØØ¬Ø² Ù
Ø¤ÙØ¯Ø§Ù ÙÙØ· بعد Ù
راجعة Ø§ÙØªÙÙØ± ÙØ´Ø±ÙØ· Ù
Ø²ÙØ¯ Ø§ÙØ®Ø¯Ù
Ø© ÙØ¥Ø±Ø³Ø§Ù تأÙÙØ¯ Ù
ÙØªÙب Ù
Ù IBRIX. عرض Ø§ÙØ³Ø¹Ø± أ٠رÙÙ
Ø§ÙØ·Ùب ÙØ§ ÙØ¹Ø¯Ùا٠تأÙÙØ¯Ø§Ù ÙÙØ§Ø¦Ùا٠بÙ
ÙØ±Ø¯ÙÙ
ا.":"A booking is confirmed only after availability and provider terms are reviewed and IBRIX sends written confirmation. A quote or request reference alone is not a final confirmation."},{question:e?"Ù
ا ÙÙ Ø³ÙØ§Ø³Ø© Ø§ÙØ¥Ùغاء Ø£Ù Ø§ÙØªØ¹Ø¯ÙÙØ":"What are the cancellation and change terms?",answer:e?"ÙØ¹ØªÙ
د Ø§ÙØ¥Ùغاء Ø£Ù Ø§ÙØªØ¹Ø¯Ù٠عÙÙ Ø´Ø±ÙØ· Ù
Ø²ÙØ¯Ù Ø§ÙØ®Ø¯Ù
Ø© ÙÙ
ا ØªØ¸ÙØ± ÙÙ Ø§ÙØ¹Ø±Ø¶ ÙØ§ÙتأÙÙØ¯. Ø§ÙØ¨Ùجات اÙÙ
ÙØ³Ù
ÙØ© Ø§ÙØªÙ تشÙ
Ù Ø§ÙØ·ÙØ±Ø§Ù ØºÙØ± ÙØ§Ø¨ÙØ© ÙÙØ¥ÙØºØ§Ø¡Ø ÙÙØ¯ ØªØ·Ø¨Ù ÙØ±ÙÙØ§Øª أ٠رسÙÙ
Ø¹ÙØ¯ Ø§ÙØªØ¹Ø¯ÙÙ.":"Cancellations and changes follow the provider terms shown in the quote and confirmation. Seasonal packages including flights are non-cancellable, and amendments may involve fees or fare differences."},{question:e?"Ù
ا اÙÙ
Ø³ØªÙØ¯Ø§Øª اÙÙ
Ø·ÙÙØ¨Ø© ÙØ·Ùب Ø§ÙØªØ£Ø´ÙرةØ":"What documents are needed for a visa request?",answer:e?"ابدأ Ø¨Ø·ÙØ¨ Ø§ÙØªØ£Ø´Ùرة ÙØ£Ø¯Ø®Ù Ø¨ÙØ§Ùات Ø§ÙØ¬Ùاز ÙØ§ÙÙØ¬ÙØ©. ÙØ¯ ÙØ·Ùب اÙÙØ±ÙÙ ÙØ³Ø®Ø© Ø§ÙØ¬Ùاز ÙØ§ÙØµÙØ±Ø© Ø§ÙØ´Ø®ØµÙØ© ÙÙØ«Ø§Ø¦Ù إضاÙÙØ© Ø¨ØØ³Ø¨ Ø¬ÙØ³ÙØ© اÙÙ
Ø³Ø§ÙØ± ÙØ§ÙÙØ¬ÙØ©Ø ØªØ¸ÙØ± اÙÙ
ØªØ·ÙØ¨Ø§Øª اÙÙ
ØªØ§ØØ© ÙØ¨Ù Ø§ÙØ¥Ø±Ø³Ø§Ù.":"Start the visa application with your passport and destination details. The team may request a passport copy, personal photo, and destination-specific documents; available requirements are shown before submission."},{question:e?"Ù٠تضÙ
Ù IBRIX إصدار Ø§ÙØªØ£Ø´ÙرةØ":"Does IBRIX guarantee visa issuance?",answer:e?"ÙØ§. ÙØ³Ø§Ø¹Ø¯ ÙÙ ØªÙØ¸ÙÙ
Ø§ÙØ·Ùب ÙÙ
راجعت٠ÙÙ
ØªØ§Ø¨Ø¹ØªÙØ ÙÙ٠اÙÙØ±Ø§Ø± اÙÙÙØ§Ø¦Ù Ø¨ÙØ¯ Ø§ÙØ³Ùارة Ø£Ù Ø§ÙØ¬ÙØ© اÙÙ
Ø§ÙØØ© ÙÙØªØ£Ø´Ùرة. ÙÙØµÙ دائÙ
ا٠بعدÙ
ØªØ±ØªÙØ¨ Ø³ÙØ± ØºÙØ± ÙØ§Ø¨Ù ÙÙØ§Ø³ØªØ±Ø¯Ø§Ø¯ ÙØ¨Ù ØµØ¯ÙØ± Ø§ÙØªØ£Ø´Ùرة.":"No. We help organise, review, and follow up on the application, but the embassy or issuing authority makes the final decision. Do not arrange non-refundable travel before the visa is issued."},{question:e?"ÙÙÙ Ø£ØªÙØ§ØµÙ Ù
ع ÙØ±ÙÙ Ø§ÙØ¯Ø¹Ù
Ø":"How can I contact support?",answer:e?"استخدÙ
زر Ø§ÙØ¯Ø¹Ù
Ø§ÙØ¹Ø§Ø¦Ù
ÙÙØªÙاص٠اÙÙ
باشر عبر ÙØ§ØªØ³Ø§Ø¨Ø Ø£Ù Ø§ÙØªØ¨ Ø¥ÙÙ Ø¨Ø±ÙØ¯ Ø§ÙØ¯Ø¹Ù
. أرس٠رÙÙ
اÙÙ
رجع Ø¥Ù ÙÙØ¬Ø¯ ÙÙØªÙ
ÙÙ Ù
Ù Ù
تابعة Ø·ÙØ¨Ù بسرعة.":"Use the floating support button for direct WhatsApp contact, or email support. Include your reference number, if available, so we can follow up quickly."}],n=`https://wa.me/${Xme}?text=${encodeURIComponent(e?"Ù
Ø±ØØ¨Ø§Ù IBRIXØ ÙØ¯Ù سؤا٠ØÙÙ Ø§ÙØØ¬Ø² Ø£Ù Ø§ÙØªØ£Ø´Ùرة.":"Hello IBRIX, I have a question about a booking or visa.")}`;return s.jsx("section",{"data-loc":"client/src/components/CustomerFaq.tsx:54",className:"pb-24 md:pb-32","aria-labelledby":"faq-title",children:s.jsx("div",{"data-loc":"client/src/components/CustomerFaq.tsx:55",className:"container max-w-[1180px]",children:s.jsx("div",{"data-loc":"client/src/components/CustomerFaq.tsx:56",className:"rounded-[2.25rem] border border-[#c9a96e]/25 bg-[linear-gradient(135deg,rgba(255,251,246,.98),rgba(248,241,234,.86))] px-5 py-12 shadow-[0_22px_70px_rgba(61,39,55,.09)] dark:bg-[linear-gradient(135deg,rgba(45,33,46,.98),rgba(28,21,32,.96))] sm:px-8 md:px-12 md:py-16",children:s.jsxs("div",{"data-loc":"client/src/components/CustomerFaq.tsx:57",className:"grid gap-9 lg:grid-cols-[.75fr_1.25fr] lg:gap-14",children:[s.jsxs("div",{"data-loc":"client/src/components/CustomerFaq.tsx:58",children:[s.jsx("p",{"data-loc":"client/src/components/CustomerFaq.tsx:59",className:"text-[11px] font-extrabold uppercase tracking-[.2em] text-[#8d5e74]",children:e?"دÙÙÙ Ø³Ø±ÙØ¹":"Quick guide"}),s.jsx("h2",{"data-loc":"client/src/components/CustomerFaq.tsx:60",id:"faq-title",className:"mt-4 font-display text-[clamp(2.6rem,4.6vw,4.8rem)] font-semibold leading-[.95] text-[#342638] dark:text-[#fff7f1] rtl:leading-[1.2]",children:e?"Ø£Ø³Ø¦ÙØ© ÙØ¨Ù أ٠تبدأ رØÙتÙ.":"Answers before your journey begins."}),s.jsx("p",{"data-loc":"client/src/components/CustomerFaq.tsx:63",className:"mt-5 max-w-md text-sm leading-7 text-[#5c4d61] dark:text-white/65",children:e?"ØªÙØ§ØµÙÙ ÙØ§Ø¶ØØ© ÙÙØØ¬ÙØ²Ø§Øª ÙØ§ÙØªØ£Ø´ÙØ±Ø§ØªØ Ù
Ù Ø§ÙØ·Ùب Ø§ÙØ£Ù٠إÙÙ Ø§ÙØªÙاص٠Ù
ع ÙØ±ÙÙ IBRIX.":"Clear booking and visa details, from your first request to reaching the IBRIX team."}),s.jsxs("div",{"data-loc":"client/src/components/CustomerFaq.tsx:66",className:"mt-7 flex items-start gap-3 rounded-2xl border border-[#c9a96e]/25 bg-white/70 p-4 text-sm text-[#4f3c50] dark:bg-white/[0.06] dark:text-white/75",children:[s.jsx(sa,{"data-loc":"client/src/components/CustomerFaq.tsx:67",className:"mt-0.5 h-5 w-5 shrink-0 text-[#9A7209]","aria-hidden":"true"}),s.jsx("span",{"data-loc":"client/src/components/CustomerFaq.tsx:68",children:e?"استخدÙ
رÙÙ
اÙÙ
رجع Ù٠أ٠Ù
تابعة ÙØªØµÙÙØ§ ØªÙØ§ØµÙÙ Ø·ÙØ¨Ù Ø¨ØµÙØ±Ø© أسرع.":"Use your reference number in any follow-up so we can locate your request faster."})]})]}),s.jsxs("div",{"data-loc":"client/src/components/CustomerFaq.tsx:72",className:"space-y-3",children:[t.map((a,r)=>
945s.jsxs("details",{"data-loc":"client/src/components/CustomerFaq.tsx:74",className:"group rounded-2xl border border-[#4a3b53]/10 bg-white/75 p-4 text-[#342638] shadow-sm transition hover:border-[#c9a96e]/45 dark:border-white/10 dark:bg-white/[0.045] dark:text-[#fff7f1]",open:r===0,children:[s.jsxs("summary",{"data-loc":"client/src/components/CustomerFaq.tsx:75",className:"flex cursor-pointer list-none items-center justify-between gap-4 text-start text-sm font-bold marker:hidden",children:[s.jsx("span",{"data-loc":"client/src/components/CustomerFaq.tsx:76",children:a.question}),s.jsx(Y0,{"data-loc":"client/src/components/CustomerFaq.tsx:77",className:"h-5 w-5 shrink-0 text-[#9A7209] transition-transform duration-200 group-open:rotate-180 motion-reduce:transition-none","aria-hidden":"true"})]}),s.jsx("p",{"data-loc":"client/src/components/CustomerFaq.tsx:79",className:"mt-3 border-t border-[#4a3b53]/10 pt-3 text-sm leading-7 text-[#5c4d61] dark:border-white/10 dark:text-white/65",children:a.answer})]},a.question)),s.jsxs("div",{"data-loc":"client/src/components/CustomerFaq.tsx:82",className:"flex flex-col gap-3 rounded-2xl bg-[#2c212e] p-5 text-white sm:flex-row sm:items-center sm:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/components/CustomerFaq.tsx:83",className:"flex items-center gap-3",children:[s.jsx(_d,{"data-loc":"client/src/components/CustomerFaq.tsx:83",className:"h-5 w-5 text-[#f3dde1]","aria-hidden":"true"}),s.jsx("span",{"data-loc":"client/src/components/CustomerFaq.tsx:83",className:"text-sm font-semibold",children:e?"ÙÙ ØªØØªØ§Ø¬ إجابة خاصة Ø¨ØØ§ÙØªÙØ":"Need an answer for your case?"})]}),s.jsxs("div",{"data-loc":"client/src/components/CustomerFaq.tsx:84",className:"flex flex-wrap gap-2",children:[s.jsxs("a",{"data-loc":"client/src/components/CustomerFaq.tsx:85",href:n,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 rounded-full bg-[#f7f1ea] px-4 py-2 text-xs font-bold text-[#2c212e] transition hover:bg-white",children:[s.jsx(Dd,{"data-loc":"client/src/components/CustomerFaq.tsx:85",className:"h-4 w-4","aria-hidden":"true"}),e?"ÙØ§ØªØ³Ø§Ø¨":"WhatsApp"]}),s.jsx("a",{"data-loc":"client/src/components/CustomerFaq.tsx:86",href:`mailto:${Oa.supportEmail}`,className:"inline-flex items-center justify-center rounded-full border border-white/25 px-4 py-2 text-xs font-bold text-white transition hover:bg-white/10",children:e?"Ø§ÙØ¨Ø±Ùد":"Email"})]})]})]})]})})})})}const o2=[{id:"products",icon:"briefcase",adminPath:"/admin",titleAr:"Ø§ÙØ¨Ø±Ø§Ù
ج ÙØ§ÙÙ
ØØªÙÙ",titleEn:"Programs & content",shortAr:"اضبط اÙÙØ¬ÙØ§ØªØ Ø§ÙÙÙØ§Ø¯ÙØ Ø§ÙØ£Ø³Ø¹Ø§Ø± Ø§ÙØ¸Ø§ÙØ±Ø©Ø ÙØ§ÙØµÙØ± اÙÙ
عتÙ
دة.",shortEn:"Configure destinations, hotels, visible prices, and approved imagery.",adminAreaAr:"Ø§ÙØ¥Ø¯Ø§Ø±Ø© â Ø§ÙبراÙ
ج",adminAreaEn:"Admin â Programs",outcomeAr:"ØªØ¸ÙØ± Ø¨Ø·Ø§ÙØ© Ø¨Ø±ÙØ§Ù
ج ÙØ§Ø¶ØØ© ÙÙØ´Ø±Ùات Ù
ع ØªÙØ§ØµÙÙ ÙØ§Ø¨ÙØ© ÙÙÙ
راجعة.",outcomeEn:"A clear, reviewable program card appears for agency users.",stepsAr:["Ø£ÙØ´Ø¦ Ø§ÙØ¨Ø±ÙاÙ
ج Ø£Ù ØØ±Ùر اÙÙ
Ø³ÙØ¯Ø©.","Ø£Ø¯Ø®Ù Ø§ÙØµÙاØÙØ© ÙØ§ÙÙ
ØØªÙÙ ÙØ§Ùسعر اÙÙ
عتÙ
د.","اعرض اÙÙ
عاÙÙØ© Ø«Ù
Ø§ÙØ´Ø± بعد اÙÙ
راجعة."],stepsEn:["Create a program or edit its draft.","Enter validity, content, and the approved price.","Preview, review, then publish."]},{id:"bookings",icon:"calendar",adminPath:"/admin",titleAr:"Ø§ÙØ·Ùبات ÙØ§ÙØØ¬Ùزات",titleEn:"Requests & bookings",shortAr:"ÙØ¸ÙÙ
Ø§ÙØ·ÙØ¨Ø Ø§ÙÙ
Ø±Ø§Ø¬Ø¹Ø©Ø Ø§ÙØ§Ø¹ØªÙ
Ø§Ø¯Ø ÙØ§ÙØªØµØ¹ÙØ¯ Ø§ÙØªØ´ØºÙÙÙ ÙÙ Ù
سار ÙØ§ØØ¯.",shortEn:"Keep inquiry, review, approval, and operational escalation in one flow.",adminAreaAr:"Ø§ÙØ¥Ø¯Ø§Ø±Ø© â Ø§ÙØ·ÙØ¨Ø§Øª",adminAreaEn:"Admin â Inquiries",outcomeAr:"ÙØªØÙÙ Ø§ÙØªÙ
اÙ
Ø§ÙØ´Ø±ÙØ© Ø¥ÙÙ Ø·ÙØ¨ Ù
ÙØ¸Ù
ÙØ§ Ø¥ÙÙ Ù
ØØ§Ø¯Ø«Ø§Øª Ù
ØªÙØ§Ø«Ø±Ø©.",outcomeEn:"Agency interest becomes a structured request instead of scattered chats.",stepsAr:["استÙÙ
Ø§ÙØ·Ùب باÙÙ
رجع اÙÙ
ÙØØ¯.","راجع Ø§ÙØªÙÙØ± ÙØ§ÙØ´Ø±ÙØ· Ù
ع ÙØ±ÙÙ Ø§ÙØªØ´ØºÙÙ.","أصدر اÙÙ
Ø³ØªÙØ¯ بعد اعتÙ
اد اÙÙ
سؤÙÙ."],stepsEn:["Receive the request through one reference.","Review availability and conditions with operations.","Issue documents only after authorized approval."]},{id:"visa",icon:"shield",adminPath:"/admin",titleAr:"Ø§ÙØªØ£Ø´Ùرات ÙØ§ÙÙØ«Ø§Ø¦Ù",titleEn:"Visas & documents",shortAr:"ØØ¯Ùد ÙÙØ§Ø¹Ø¯ اÙÙØ¬ÙØ©Ø Ø§ÙÙ
Ø³ØªÙØ¯Ø§ØªØ Ù
تابعة Ø§ÙØ·ÙØ¨Ø ÙØØ§ÙØ© Ø§ÙØ¥ØµØ¯Ø§Ø±.",shortEn:"Set destination rules, documents, request follow-up, and issuance status.",adminAreaAr:"Ø§ÙØ¥Ø¯Ø§Ø±Ø© â Ø§ÙØªØ£Ø´ÙØ±Ø§Øª",adminAreaEn:"Admin â Visa workflows",outcomeAr:"ÙØØµÙ Ø§ÙÙØ±Ù٠عÙÙ Ù
سار ØØ§ÙØ© ÙØ§Ø¶ØØ ÙÙØ§ ÙÙØ¹Ø¯ Ø§ÙØ¹Ù
ÙÙ Ø¨ØªØ£Ø´ÙØ±Ø© ÙØ¨Ù ÙØ±Ø§Ø± اÙÙ
ختص.",outcomeEn:"The team sees a clear status flow; no visa is promised before specialist approval.",stepsAr:["اضبط اÙÙÙØ§Ø¹Ø¯ ØØ³Ø¨ Ø§ÙØ¬Ùاز ÙØ§ÙÙØ¬ÙØ© ÙØ§Ùغرض.","عÙÙ٠اÙÙ
Ø³ØªÙØ¯Ø§Øª ÙØ§ÙÙ
ÙÙÙ Ø¨Ø§ÙØ·Ùب.","ØØ¯ÙØ« Ø§ÙØØ§ÙØ© ÙØ£ØµØ¯Ø± اÙÙ
ÙÙ Ø¹ÙØ¯ Ø§ÙØªÙ
اÙÙ."],stepsEn:["Set rules by passport, destination, and purpose.","Assign documents and the case owner.","Update status and issue files when complete."]},{id:"pricing",icon:"sliders",adminPath:"/admin",titleAr:"Ø§ÙØªØ¹Ø±Ùات ÙØ§ÙØÙÙÙ
Ø©",titleEn:"Tariffs & governance",shortAr:"Ø§Ø±ÙØ¹ Ù
صدر Ø§ÙØªØ¹Ø±ÙØ©Ø Ø±Ø§Ø¬Ø¹ Ø§ÙØµÙÙÙØ Ø«Ù
اعتÙ
د ÙØ§Ùشر إصدارا٠ÙÙ
ÙÙ Ø§ÙØ±Ø¬Ùع عÙÙ.",shortEn:"Upload a tariff source, review rows, then approve and publish a reversible version.",adminAreaAr:"Ø§ÙØ¥Ø¯Ø§Ø±Ø© â Ù
Ø±ÙØ² Ø§ÙØ§Ø³ØªÙراد",adminAreaEn:"Admin â Import center",outcomeAr:"ÙØ§ ÙØµÙ سعر Ø¥ÙÙ ÙØ§Ø¬ÙØ© Ø§ÙØ´Ø±ÙØ© ÙØ¨Ù Ù
راجعة اÙÙ
صدر ÙØ§ÙØµÙØ§ØÙØ© ÙÙÙØ§Ø¹Ø¯ Ø§ÙØ§Ø¹ØªÙ
اد.",outcomeEn:"No price reaches an agency-facing screen before source, validity, and approval checks.",stepsAr:["Ø§Ø±ÙØ¹ Ù
Ù٠اÙÙ
صدر ÙØ£Ùشئ Ù
عاÙÙØ©.","Ø§Ø¹Ø²Ù Ø§ÙØ£Ø®Ø·Ø§Ø¡ ÙØ§ÙصÙÙÙ ØªØØª اÙÙ
راجعة.","اعتÙ
د Ø§ÙØ¥ØµØ¯Ø§Ø± Ø«Ù
Ø§ÙØ´Ø±Ù أ٠ارجع ÙØ¥ØµØ¯Ø§Ø± سابÙ."],stepsEn:["Upload the source file and generate a preview.","Quarantine errors and rows under review.","Approve, publish, or roll back a version."]},{id:"documents",icon:"files",adminPath:"/accounting",titleAr:"اÙÙ
Ø³ØªÙØ¯Ø§Øª Ø§ÙØªØ´ØºÙÙÙØ©",titleEn:"Operational documents",shortAr:"اربط اÙÙØ§ØªÙرة ÙØ§ÙÙØ³ÙÙ
Ø© ÙØ§ÙØªØ°ÙØ±Ø© Ø¨ÙØ±Ø§Ø± Ø§ÙØ§Ø¹ØªÙ
اد Ø§ÙØµØÙØ ÙÙÙ Ù
سار Ø¨ÙØ¹.",shortEn:"Link invoices, vouchers, and tickets to the right approval decision for each sales path.",adminAreaAr:"Orbit â Ø§ÙÙ
Ø³ØªÙØ¯Ø§Øª",adminAreaEn:"Orbit â Documents",outcomeAr:"تسÙÙÙ
Ø§ÙØ´Ø±ÙØ© Ù
Ø³ØªÙØ¯Ø§Ù Ù
ØªØ³ÙØ§Ù ÙÙ
ÙÙØµÙا٠ع٠تÙÙÙØ© اÙÙ
ÙØ±Ø¯ ÙØ§ÙØ±Ø¨Ø Ø§ÙØ¯Ø§Ø®ÙÙ.",outcomeEn:"The agency re
945ceives a consistent document, separated from supplier cost and internal margin.",stepsAr:["تØÙÙ Ù
٠اعتÙ
اد Ø§ÙØØ¬Ø² ÙØ§ÙÙ
سار.","اختر ÙÙØ¹ اÙÙ
Ø³ØªÙØ¯ Ø§ÙØµØÙØ.","أصدر ÙØ³Ø®Ø© ÙØ§Ø¨ÙØ© ÙÙØªØªØ¨Ø¹ ÙØ§ÙÙ
Ø´Ø§Ø±ÙØ©."],stepsEn:["Verify approval and the relevant sales path.","Choose the correct document type.","Issue a traceable, shareable version."]},{id:"support",icon:"support",adminPath:"/rahhal",titleAr:"رØÙØ§Ù ÙØ§ÙدعÙ
",titleEn:"Rahhal & support",shortAr:"ÙØ¬ÙÙ Ø§ÙØ£Ø³Ø¦ÙØ© Ø¥ÙÙ Ø§ÙØ¨Ø±Ø§Ù
ج اÙÙ
ÙØ´Ùرة Ø«Ù
ØµØ¹ÙØ¯ Ø§ÙØØ§ÙØ§Øª Ø§ÙØ®Ø§ØµØ© Ø¥Ù٠اÙÙØ±Ù٠عبر اÙÙÙØ§Ø© Ø§ÙØµØÙØØ©.",shortEn:"Guide questions using published programs, then escalate special cases through the correct team channel.",adminAreaAr:"Ø§ÙØ¥Ø¹Ø¯Ø§Ø¯Ø§Øª Ø§ÙØªØ´ØºÙÙÙØ© â Ø§ÙدعÙ
",adminAreaEn:"Operations settings â Support",outcomeAr:"ØªØµÙ Ø§ÙØ´Ø±ÙØ© Ø¥Ù٠إجابة Ø£ÙÙÙØ© Ø¢Ù
ÙØ©Ø Ø«Ù
Ø¥ÙÙ ÙØ±ÙÙ IBRIX Ø¹ÙØ¯Ù
ا ØªØªØ·ÙØ¨ Ø§ÙØØ§ÙØ© اعتÙ
Ø§Ø¯Ø§Ù Ø¨Ø´Ø±ÙØ§Ù.",outcomeEn:"The agency receives safe first-line guidance, then reaches IBRIX when human approval is required.",stepsAr:["ØØ¯ÙØ« Ø§ÙØ¨Ø±Ø§Ù
ج اÙÙ
ÙØ´Ùرة ÙØ§ÙÙ
عÙÙÙ
ات اÙÙ
عتÙ
دة.","اضبط ÙÙØ§Ø© Ø§ÙØªØµØ¹Ùد ÙØ¨ÙØ§ÙØ§Øª Ø§ÙØªÙاص٠اÙÙ
ÙØØ¯Ø©.","راجع ØØ¯Ùد اÙÙ
ساعد: ÙØ§ تأÙÙØ¯ ØØ¬Ø² Ø£Ù ØªØ£Ø´ÙØ±Ø© Ù
٠اÙÙ
ØØ§Ø¯Ø«Ø©."],stepsEn:["Update published programs and approved information.","Set escalation channel and unified contact details.","Keep the assistant boundary: no booking or visa confirmation in chat."]},{id:"orbit",icon:"orbit",adminPath:"/accounting",titleAr:"Orbit اÙÙ
اÙÙ",titleEn:"Orbit finance",shortAr:"Ø§Ø³ØªÙØ´Ù اÙÙÙØ§ØªÙر ÙØ§ÙÙØ³Ø§Ø¦Ù
ÙØ§ÙØªØ°Ø§ÙØ± ÙØ§ÙÙÙÙØ¯ ÙØ§ÙØªÙØ§Ø±Ùر ضÙ
Ù Ø¶ÙØ§Ø¨Ø· Ù
اÙÙØ© ÙØ§Ø¶ØØ©.",shortEn:"Explore invoices, vouchers, tickets, journals, and reports under clear financial controls.",adminAreaAr:"Orbit â Ø§ÙÙ
Ø±ÙØ² اÙÙ
اÙÙ",adminAreaEn:"Orbit â Finance hub",outcomeAr:"ØªØ±Ù Ø§ÙØ¥Ø¯Ø§Ø±Ø© Ø¯ÙØ±Ø© اÙÙ
Ø³ØªÙØ¯ ÙØ§ÙتسÙÙØ©Ø بÙÙÙ
ا تبÙ٠أرصدة اÙÙ
ÙØ±Ø¯ÙÙ ÙØ§ÙعÙ
ÙØ§Ø¡ Ø§ÙØÙÙÙÙØ© Ù
ØÙ
ÙØ©.",outcomeEn:"Management sees document and settlement flow while real supplier and client balances stay protected.",stepsAr:["Ø§ÙØªØ اÙÙØØ¯Ø© اÙÙ
اÙÙØ© اÙÙ
ÙØ§Ø³Ø¨Ø© ÙÙØ¹Ù
ÙÙØ©.","راجع Ø§ÙØ¶Ø§Ø¨Ø· ÙØ§ÙÙ
Ø³ØªÙØ¯ اÙÙ
رجعÙ.","اعتÙ
د Ø§ÙØªØ³Ø¬ÙÙ Ø«Ù
تابع Ø§ÙØªÙØ±ÙØ± دÙÙ ÙØ´Ù Ø¨ÙØ§Ùات ØºÙØ± Ù
Ø®ÙÙØ©."],stepsEn:["Open the appropriate financial module.","Review the control and reference document.","Approve the entry and follow reporting without exposing unauthorized data."]}];function tR(e){return o2.find(t=>t.id===e)??o2[0]}const Kme={briefcase:Zj,calendar:Yb,shield:sa,sliders:wie,files:ji,support:BU,orbit:B4};function Zme(){const{lang:e}=zs(),t=e==="ar",[n,a]=k.useState(null),r=o2.find(o=>o.id===n)??null,i=o=>({title:t?o.titleAr:o.titleEn,short:t?o.shortAr:o.shortEn,adminArea:t?o.adminAreaAr:o.adminAreaEn,outcome:t?o.outcomeAr:o.outcomeEn,steps:t?o.stepsAr:o.stepsEn});return s.jsxs("section",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:33",className:"relative overflow-hidden bg-[#f7f0e9] py-20 md:py-28","aria-labelledby":"b2b-config-title",children:[s.jsx("div",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:34",className:"absolute inset-x-0 top-0 h-24 bg-[linear-gradient(180deg,rgba(20,12,20,.16),transparent)]","aria-hidden":"true"}),s.jsxs("div",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:35",className:"container relative max-w-[1480px]",children:[s.jsxs("div",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:36",className:"grid gap-8 lg:grid-cols-[minmax(0,.85fr)_minmax(0,1.15fr)] lg:items-end",children:[s.jsxs("div",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:37",children:[s.jsxs("p",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:38",className:"inline-flex items-center gap-2 text-[11px] font-extrabold uppercase tracking-[.22em] text-[#8b692f]",children:[s.jsx(pr,{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:38",className:"h-3.5 w-3.5"}),t?"Ù
ÙØµØ© Ø¨ÙØ¹ ÙÙØ´Ø±Ùات":"B2B sales platform"]}),s.jsx("h2",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:39",id:"b2b-config-title",className:"mt-4 max-w-xl font-display text-4xl font-semibold leading-[.95] text-[#2c212e] md:text-6xl",children:t?"ÙÙ ÙØ§Ø¬ÙØ© ØªØ´Ø±Ø ÙÙÙ ØªÙØ¶Ø¨Ø·.":"Every surface explains how it is configured."})]}),s.jsxs("div",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:41",className:"rounded-[2rem] border border-[#c9a96e]/30 bg-white/65 p-5 shadow-[0_20px_55px_rgba(62,42,54,.08)
945] backdrop-blur-sm",children:[s.jsx("p",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:42",className:"text-sm font-bold text-[#2c212e]",children:t?"طرÙÙØ© Ø§ÙØ¹Ø±Ø¶ ÙÙØ´Ø±ÙØ© اÙÙ
ØØªÙ
ÙØ©":"What prospective agencies can explore"}),s.jsx("p",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:43",className:"mt-2 text-sm leading-6 text-[#6e5b6b]",children:t?"اضغط Ø£Ù Ø¨Ø·Ø§ÙØ© ÙÙ
Ø¹Ø±ÙØ© Ù
ÙØ§Ù Ø§ÙØ¶Ø¨Ø·Ø Ø®Ø·ÙØ§ØªÙØ ÙÙ
ا ÙØ¸Ùر ÙÙØ¹Ù
ÙÙ. Ø«Ù
Ø§ÙØªØ Ø§Ø³ØªÙØ¯ÙÙ Ø§ÙØ¹Ø±Ø¶ ÙØªØ¬Ø±Ø¨Ø© Ø¢Ù
ÙØ© ÙØ§ ØªÙØªØ¨ Ø£Ù Ø¨ÙØ§Ùات ØÙÙÙÙØ©.":"Open any card to see where it is configured, its workflow, and the client-facing outcome. Then use the safe demo studio; it never writes real data."})]})]}),s.jsx("div",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:47",className:"mt-10 grid gap-4 sm:grid-cols-2 xl:grid-cols-3",dir:t?"rtl":"ltr",children:o2.map(o=>{const c=Kme[o.icon],l=i(o);return s.jsxs("button",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:52",type:"button",onClick:()=>a(o.id),className:"group relative min-h-[225px] overflow-hidden rounded-[1.75rem] border border-[#2c212e]/10 bg-white p-6 text-start shadow-[0_14px_35px_rgba(62,42,54,.07)] transition duration-300 hover:-translate-y-1 hover:border-[#c9a96e]/55 hover:shadow-[0_25px_55px_rgba(62,42,54,.16)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[#8b692f] motion-reduce:transition-none",children:[s.jsx("span",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:53",className:"absolute -end-8 -top-8 h-28 w-28 rounded-full bg-[#c9a96e]/10 transition-transform duration-300 group-hover:scale-125","aria-hidden":"true"}),s.jsx("span",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:54",className:"relative grid h-11 w-11 place-items-center rounded-2xl bg-[#2c212e] text-[#f6d67f] shadow-lg",children:s.jsx(c,{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:54",className:"h-5 w-5","aria-hidden":"true"})}),s.jsx("p",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:55",className:"relative mt-5 text-lg font-black text-[#2c212e]",children:l.title}),s.jsx("p",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:56",className:"relative mt-2 text-sm leading-6 text-[#6e5b6b]",children:l.short}),s.jsxs("span",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:57",className:"relative mt-5 inline-flex items-center gap-2 text-xs font-extrabold text-[#7b5e31]",children:[t?"اعر٠طرÙÙØ© Ø§ÙØ¶Ø¨Ø·":"See configuration",s.jsx(ch,{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:57",className:"h-3.5 w-3.5 rtl:-scale-x-100"})]})]},o.id)})})]}),s.jsx(Ba,{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:64",open:!!r,onOpenChange:o=>{o||a(null)},children:r&&(()=>{const o=i(r);return s.jsxs(Fa,{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:68",dir:t?"rtl":"ltr",className:"max-h-[90vh] max-w-2xl overflow-y-auto border-[#c9a96e]/45 bg-[#fffaf6] p-0 text-[#2c212e] shadow-[0_35px_100px_rgba(33,19,31,.35)]",children:[s.jsxs("div",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:69",className:"bg-[#2c212e] px-7 py-7 text-white",children:[s.jsxs("span",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:70",className:"inline-flex items-center gap-2 rounded-full border border-[#f6d67f]/40 bg-white/10 px-3 py-1 text-[10px] font-extrabold uppercase tracking-[.16em] text-[#f8df9d]",children:[s.jsx(yu,{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:70",className:"h-3.5 w-3.5"}),t?"Ø®Ø±ÙØ·Ø© ضبط B2B":"B2B configuration map"]}),s.jsx(Ua,{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:71",className:"mt-4 font-display text-3xl text-white",children:o.title}),s.jsx(F2,{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:72",className:"mt-3 text-sm leading-6 text-white/70",children:o.short})]}),s.jsxs("div",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:74",className:"space-y-5 p-7",children:[s.jsxs("div",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:75",className:"rounded-2xl border border-[#c9a96e]/30 bg-[#fff5e5] p-4",children:[s.jsx("p",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:75",className:"text-[10px] font-extrabold uppercase tracking-[.16em] text-[#8b692f]",children:t?"Ù
ÙØ§Ù Ø§ÙØ¶Ø¨Ø·":"Configuration area"}),s.jsx("p",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:75",className:"mt-1 text-sm font-bold",children:o.adminArea})]}),s.jsx("ol",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:76",className:"space-y-3",children:o.steps.map((c,l)=>s.jsxs("li",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:76",className:"flex items-start gap-3 text-sm leading-6 text-[#4e3a4a]",children:[s.jsx("span",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:76",className:"grid h-7 w-7 shrink-0 place-items-center rounded-lg bg-[#2c212e] text-xs font-extrabold text-[#f6d67f]",children:l+1}),s.jsx("span",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:76",children:c})]},c))}),s.jsxs("div",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:77",className:"rounded-2xl border border-emerald-800/10 bg-emerald-50 p-4",children:[s.jsx("p",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:77",className:"text-[10px] font-extrabold uppercase tracking-[.16em] text-emerald-800",children:t?"اÙÙØªÙجة ÙØ¯Ù Ø§ÙØ´Ø±ÙØ©":"Agency-facing outcome"}),s.jsx("p",{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:77",className:"mt-1 text-sm leading-6 text-emerald-950",children:o.outcome})]}),s.jsxs(ls,{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:78",href:`/b2b-demo?module=${r.id}`,className:"inline-flex min-h-12 w-full items-center justify-center gap-2 rounded-xl bg-[#2c212e] px-5 text-sm font-bold text-[#f8df9d] transition hover:bg-[#3b2941] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[#8b692f]",children:[s.jsx(pr,{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:78",className:"h-4 w-4"}),t?"Ø§ÙØªØ Ø§Ø³ØªÙØ¯ÙÙ Ø§ÙØªØ¬Ø±Ø¨Ø© Ø§ÙØ¢Ù
Ù":"Open the safe demo studio",s.jsx(ch,{"data-loc":"client/src/components/B2BConfigurationGuide.tsx:78",className:"h-4 w-4 rtl:-scale-x-100"})]})]})]})})()})]})}const gz=[.23,1,.32,1];function xz(e){switch(e){case"up":return{y:40};case"down":return{y:-40};case"left":return{x:40};case"right":return{x:-40};default:return{}}}function ts({children:e,direction:t="up",delay:n=0,duration:a=.7,className:r="",once:i=!0}
945){const o=q2(),[c,l]=k.useState(!1),d=k.useRef(null);if(k.useEffect(()=>{const h=window.setTimeout(()=>l(!0),1200);return()=>window.clearTimeout(h)},[]),o)return s.jsx("div",{"data-loc":"client/src/components/Reveal.tsx:70",className:r,children:e});const m=xz(t);return s.jsx(xc.div,{"data-loc":"client/src/components/Reveal.tsx:75",ref:d,className:r,initial:{opacity:0,...m},animate:c?{opacity:1,x:0,y:0}:void 0,whileInView:{opacity:1,x:0,y:0},viewport:{once:i,amount:.2},transition:{duration:a,delay:n,ease:gz},children:e})}function c2({children:e,className:t="",stagger:n=.08,once:a=!0}){const r=q2(),[i,o]=k.useState(!1);if(k.useEffect(()=>{const l=window.setTimeout(()=>o(!0),1200);return()=>window.clearTimeout(l)},[]),r)return s.jsx("div",{"data-loc":"client/src/components/Reveal.tsx:110",className:t,children:e});const c={hidden:{},show:{transition:{staggerChildren:n}}};return s.jsx(xc.div,{"data-loc":"client/src/components/Reveal.tsx:118",className:t,variants:c,initial:"hidden",animate:i?"show":void 0,whileInView:"show",viewport:{once:a,amount:.15},children:e})}function l2({children:e,className:t="",direction:n="up",duration:a=.6}){const i={hidden:{opacity:0,...xz(n)},show:{opacity:1,x:0,y:0,transition:{duration:a,ease:gz}}};return s.jsx(xc.div,{"data-loc":"client/src/components/Reveal.tsx:149",className:t,variants:i,children:e})}const epe="962787789915",nR=["from-[#8f667d] via-[#55415f] to-[#2c212e]","from-[#c29da8] via-[#806178] to-[#392b42]","from-[#8fa6bd] via-[#726b98] to-[#31263a]","from-[#c69c88] via-[#8d6473] to-[#3b2938]"],tpe=["sky","lilac","lavender","peach","butter"],npe=["-1.8deg","1.4deg","-1deg","2deg","-.8deg"],ape="/manus-storage/ibrix-b2b-motion-final_f0301675.mp4",aR="/manus-storage/ibrix-b2b-travel-hero-poster_1f1a9738.jpg";function GT(e,t,n){return(e==="ar"?t:n)||n||t||""}function spe(){const{lang:e}=zs(),t=e==="ar",{data:n,isLoading:a}=Pe.packages.list.useQuery({}),r=q2(),{scrollYProgress:i}=XA(),o=Wme(i,{stiffness:120,damping:28}),c=k.useRef(null),l=k.useRef(null),[d,m]=k.useState(0),[h,x]=k.useState(!1),[f,b]=k.useState(!0),y=k.useMemo(()=>(n||[]).filter(_=>_.active).slice(0,8),[n]),w=k.useMemo(()=>{const _=y.filter(U=>U.featured);return(_.length?_:y).slice(0,6)},[y]);w[0],w[1];const T=w.length?w:y;k.useEffect(()=>{d>=T.length&&m(0)},[d,T.length]),k.useEffect(()=>{const _=window.matchMedia("(min-width: 768px) and (prefers-reduced-motion: no-preference)"),U=()=>{const O=navigator.connection,W=!!O?.saveData||O?.effectiveType==="slow-2g"||O?.effectiveType==="2g";x(_.matches&&!W)};return U(),_.addEventListener("change",U),()=>_.removeEventListener("change",U)},[]),k.useEffect(()=>{const _=l.current;if(!_||!h)return;const U=()=>{if(document.hidden){_.pause();return}_.play().catch(()=>{})};return document.addEventListener("visibilitychange",U),U(),()=>document.removeEventListener("visibilitychange",U)},[h]);const A=k.useMemo(()=>{const _=T.length;return _?_<3?T.map((U,O)=>({item:U,side:O===d?"center":O<d?"left":"right"})):[-1,0,1].map(U=>({item:T[(d+U+_)%_],side:U===0?"center":U<0?"left":"right"})):[]},[d,T]),E=k.useCallback(_=>{T.length<2||m(U=>(U+_+T.length)%T.length)},[T.length]),D=k.useCallback(_=>{if(r||!c.current||window.matchMedia("(pointer: coarse)").matches)return;const U=c.current.getBoundingClientRect(),O=(_.clientX-U.left)/U.width-.5,W=(_.clientY-U.top)/U.height-.5;c.current.style.setProperty("--hero-x",`${O*-18}px`),c.current.style.setProperty("--hero-y",`${W*-12}px`),c.current.style.setProperty("--glow-x",`${O*22}px`),c.current.style.setProperty("--glow-y",`${W*16}px`)},[r]),S=k.useCallback(()=>{c.current&&(c.current.style.setProperty("--hero-x","0px"),c.current.style.setProperty("--hero-y","0px"),c.current.style.setProperty("--glow-x","0px"),c.current.style.setProperty("--glow-y","0px"))},[]),R=k.useCallback(()=>{const _=l.current;if(!_)return;const U=!f;_.muted=U,b(U),U||_.play().catch(()=>{})},[f]),L=`https://wa.me/${epe}?text=${encodeURIComponent(t?"Ù
Ø±ØØ¨Ø§Ù IBRIXØ Ø£Ø±ÙØ¯ تصÙ
ÙÙ
رØÙØ© خاصة":"Hello IBRIX, I would like a tailor-made trip")}`,I=[{icon:Ek,label:t?"Ø§ÙØ¨Ø±Ø§Ù
ج Ø§ÙØ³ÙاØÙØ©":"Tour packages",copy:t?"رØÙات Ø¬Ø§ÙØ²Ø© ÙÙ
Ø¯Ø±ÙØ³Ø©":"Curated journeys, ready to book",href:"/destinations",note:t?"اÙÙØ¬Ùات":"Discover"},{icon:pie,label:t?"Ø§ÙØØ¬ ÙØ§ÙعÙ
رة":"Umrah journeys",copy:t?"براÙ
ج Ø±ÙØØ§ÙÙØ© Ù
ØªÙØ§Ù
ÙØ©":"Complete spiritual journeys",href:"/umrah",note:t?"رØÙØ© Ø¥ÙÙ
اÙÙØ©":"Spiritual"},{icon:Hs,label:t?"ØªØ°Ø§ÙØ± Ø§ÙØ·ÙراÙ":"Flight tickets",copy:t?"Ø®ÙØ§Ø±Ø§Øª Ù
Ø±ÙØ© عبر Ø§ÙØ¹Ø§ÙÙ
":"Flexible options worldwide",href:"/services",note:t?"ØÙÙ Ø§ÙØ¹Ø§ÙÙ
":"Worldwide"},{icon:_d,label:t?"خدÙ
ات Ø§ÙØªØ£Ø´Ùرات":"Visa services",copy:t?"إرشاد ÙÙ
تابعة ÙØ§Ø¶ØØ©":"Clear guidance and follow-up",href:"/visa",note:t?"Ø®Ø·ÙØ© Ø¨Ø®Ø·ÙØ©":"Guided"},{icon:pr,label:t?"صÙ
ÙÙ
رØÙتÙ":"Tailor your trip",copy:t?"Ø¨Ø±ÙØ§Ù
ج Ù
بÙÙ ØÙÙÙ":"A journey built around you",href:"/contact",note:t?"ØØ³Ø¨ رغبتÙ":"Bespoke"}],F=[{icon:UU,number:"01",title:t?"Ø§ÙØªØ¨ اÙÙÙØ±Ø©":"Write the idea",text:t?"شارÙÙØ§ اÙÙØ¬ÙØ© ÙØ§ÙÙ
دة ÙØ§ÙÙ
ÙØ²Ø§ÙÙØ© ÙÙÙ
Ø· Ø§ÙØ³Ùر Ø§ÙØ°Ù ÙÙØ§Ø³Ø¨Ù.":"Tell us the destination, dates, budget, and travel style that fit you."},{icon:rA,number:"02",title:t?"ÙØ±Ø³Ù
اÙÙ
سار":"We sketch the route",text:t?"ÙÙØ³Ù Ø§ÙØ·ÙØ±Ø§Ù ÙØ§ÙØ¥ÙØ§Ù
Ø© ÙØ§ÙتÙÙÙ ÙØ§Ùتجارب ÙÙ Ù
سار ÙØ§ØØ¯ ÙØ§Ø¶Ø.":"We coordinate flights, stays, transfers, and experiences into one clear route."},{icon:U4,number:"03",title:t?"اعتÙ
اد ÙØØ¬Ø²":"Approve and book",text:t?"تستÙÙ
Ø§ÙØ¹Ø±Ø¶ ÙØ§ÙÙ
Ø³ØªÙØ¯Ø§Øª Ø¨ØµÙØ±Ø© Ù
ÙØ¸Ù
Ø© ÙØ¨Ù تأÙÙØ¯ Ø§ÙØØ¬Ø².":"Review a structured proposal and documents before confirmation."},{icon:BU,number:"04",title:t?"ÙØ³Ø§Ùر Ù
عÙ":"We stay with you",text:t?"ÙØ¨ÙÙ ÙØ±ÙÙ IBRIX ÙØ±Ùبا٠Ù
ÙÙ Ù
Ù Ø¨Ø¯Ø§ÙØ© Ø§ÙØ±ØÙØ© ÙØØªÙ Ø§ÙØ¹Ùدة.":"The IBRIX team stays close from departure through your return."}];return s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:251",className:"enchanted-page min-h-screen bg-background text-foreground",children:[s.jsx(xc.div,{"data-loc":"client/src/pages/Home.tsx:252","aria-hidden":"true",className:"fixed inset-x-0 top-0 z-[100] h-[3px] origin-left bg-[#c9a96e]",style:{scaleX:o}}),s.jsx(io,{"data-loc":"client/src/pages/Home.tsx:257"}),s.jsxs("main",{"data-loc":"client/src/pages/Home.tsx:259",children:[s.jsx("section",{"data-loc":"client/src/pages/Home.tsx:260",className:"enchanted-hero-shell","aria-labelledby":"home-hero-title",children:s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:261",ref:c,className:"enchanted-hero-stage",onPointerMove:D,onPointerLeave:S,children:[s.jsx("img",{"data-loc":"client/src/pages/Home.tsx:267",src:aR,alt:"","aria-hidden":"true",className:"enchanted-hero-image enchanted-hero-poster"}),h?s.jsx("video",{"data-loc":"client/src/pages/Home.tsx:274",ref:l,className:"enchanted-hero-image enchanted-hero-video",autoPlay:!0,muted:f,loop:!0,playsInl
945ine:!0,preload:"metadata",poster:aR,disablePictureInPicture:!0,"aria-hidden":"true",onCanPlay:_=>{_.currentTarget.dataset.ready="true"},children:s.jsx("source",{"data-loc":"client/src/pages/Home.tsx:289",src:ape,type:"video/mp4"})}):null,s.jsx("span",{"data-loc":"client/src/pages/Home.tsx:292",className:"enchanted-orbit-mark -end-12 top-20","aria-hidden":"true"}),s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:294",className:"container relative z-[3] hidden min-h-[inherit] max-w-[1480px] items-end justify-between gap-8 pb-10 pt-20 md:flex lg:pb-14 lg:pt-24",children:[s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:295",className:"max-w-[620px] text-[#fff9f4]",children:[s.jsx("div",{"data-loc":"client/src/pages/Home.tsx:296",className:"enchanted-mask-reveal",children:s.jsxs("p",{"data-loc":"client/src/pages/Home.tsx:297",className:"inline-flex items-center gap-3 text-[11px] font-extrabold uppercase tracking-[.22em] text-[#f4d2c9]",style:{"--reveal-delay":"80ms"},children:[s.jsx("span",{"data-loc":"client/src/pages/Home.tsx:298",className:"h-px w-10 bg-[#c9a96e]"}),t?"IBRIX · عÙ
ÙØ§Ù":"IBRIX · Amman"]})}),s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:303",className:"mt-5 flex flex-col gap-3 sm:flex-row sm:items-center",children:[s.jsxs(ls,{"data-loc":"client/src/pages/Home.tsx:304",href:"/destinations",className:"enchanted-button group inline-flex min-h-14 items-center justify-center gap-3 bg-[#f7f1ea] px-7 text-sm font-bold text-[#2d1b1b] hover:bg-white",children:[t?"Ø§ÙØªØ Ø¯ÙØªØ± اÙÙØ¬Ùات":"Open the travel diary",s.jsx(dr,{"data-loc":"client/src/pages/Home.tsx:306",className:"h-4 w-4 transition-transform group-hover:translate-x-1 rtl:rotate-180 rtl:group-hover:-translate-x-1"})]}),s.jsx("a",{"data-loc":"client/src/pages/Home.tsx:308",href:L,target:"_blank",rel:"noreferrer",className:"enchanted-button inline-flex min-h-14 items-center justify-center gap-3 border border-white/25 bg-white/10 px-7 text-sm font-semibold text-white backdrop-blur-md hover:bg-white/16",children:t?"صÙ
ÙÙ
رØÙØ© خاصة":"Create a private trip"}),h?s.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:313",type:"button",onClick:R,"aria-pressed":!f,className:"inline-flex min-h-10 items-center gap-2 rounded-full border border-[#c9a96e]/45 bg-[#160f19]/70 px-4 text-xs font-extrabold text-[#f8e2a8] shadow-lg backdrop-blur-md transition hover:-translate-y-0.5 hover:bg-[#2a1928] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[#f4d2c9] motion-reduce:transition-none",children:[f?s.jsx(oA,{"data-loc":"client/src/pages/Home.tsx:314",className:"h-4 w-4","aria-hidden":"true"}):s.jsx(XU,{"data-loc":"client/src/pages/Home.tsx:314",className:"h-4 w-4","aria-hidden":"true"}),f?t?"تشغÙÙ ØµÙØª اÙÙÙÙÙ
":"Enable film sound":t?"ÙØªÙ
ØµÙØª اÙÙÙÙÙ
":"Mute film sound"]}):null,s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:319",className:"mt-7 lg:hidden",children:[s.jsx(Ik,{"data-loc":"client/src/pages/Home.tsx:320",compact:!0,className:"items-start text-start"}),s.jsx("p",{"data-loc":"client/src/pages/Home.tsx:321",className:"mt-2 text-xs font-semibold text-white/65",children:t?"اضغط ÙØ¨Ø¯Ø¡ Ù
ØØ§Ø¯Ø«Ø© ØµÙØªÙØ© Ø£Ù ÙØµÙØ© ÙÙØ±ÙØ©.":"Tap to start an instant voice or text conversation."})]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:326",className:"hidden self-start lg:flex lg:flex-col lg:items-center lg:gap-3",children:[s.jsx(Ik,{"data-loc":"client/src/pages/Home.tsx:327",className:"relative z-[1]"}),s.jsx("p",{"data-loc":"client/src/pages/Home.tsx:328",className:"max-w-[180px] text-center text-[11px] leading-4 text-white/60",children:t?"Ù
ØØ§Ø¯Ø«Ø© ÙÙØ±ÙØ©":"Instant chat"})]})]})]})}),s.jsx(Zme,{"data-loc":"client/src/pages/Home.tsx:334"}),s.jsx("section",{"data-loc":"client/src/pages/Home.tsx:336",className:"py-24 md:py-32","aria-labelledby":"memory-title",children:s.jsx("div",{"data-loc":"client/src/pages/Home.tsx:337",className:"container max-w-[1480px]",children:s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:338",className:"enchanted-memory-stage px-4 py-12 md:px-8 md:py-16 lg:px-12 lg:py-20",children:[s.jsx("div",{"data-loc":"client/src/pages/Home.tsx:339",className:"relative z-[2] mx-auto max-w-6xl text-center text-[#fff9f4]",children:s.jsxs(ts,{"data-loc":"client/src/pages/Home.tsx:340",children:[s.jsx("p",{"data-loc":"client/src/pages/Home.tsx:341",className:"text-[11px] font-extrabold uppercase tracking-[.22em] text-[#deb9c0]",children:t?"Ù
سار Ø§ÙØ°ÙØ±ÙØ§Øª":"The memory trail"}),s.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:342",id:"memory-title",className:"mt-4 font-display text-[clamp(3rem,6vw,6.4rem)] font-semibold leading-[.92] rtl:leading-[1.2]",children:t?"اختر Ø°ÙØ±Ù ÙÙ
تÙÙØªØ¨ بعد.":"Choose a memory not yet written."}),s.jsx("p",{"data-loc":"client/src/pages/Home.tsx:345",className:"mx-auto mt-5 max-w-2xl text-sm leading-7 text-white/62 md:text-base",children:t?"براÙ
ج Ù
ÙØ´Ùرة Ù
باشرة Ù
Ù ÙØ±ÙÙ IBRIXØ Ø§Ø³ØØ¨ عÙ٠اÙÙØ§ØªÙ أ٠استخدÙ
Ø§ÙØ£Ø³ÙÙ
ÙØ§Ø³ØªÙØ´Ø§Ù Ø§ÙØµÙØØ© Ø§ÙØªØ§ÙÙØ©.":"Live journeys published by the IBRIX team. Swipe on mobile or use the arrows to discover the next page."})]})}),s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:351",className:"relative z-[2] mt-12 md:mt-16",children:[a?s.jsx("div",{"data-loc":"client/src/pages/Home.tsx:353",className:"flex min-h-[32rem] items-center justify-center",children:s.jsx(ft,{"data-loc":"client/src/pages/Home.tsx:353",className:"h-8 w-8 animate-spin text-[#f3dde1]"})}):A.length?s.jsx("div",{"data-loc":"client/src/pages/Home.tsx:355",className:"enchanted-memory-deck","aria-live":"polite","aria-label":t?"براÙ
ج Ø§ÙØ³Ùر اÙÙ
ختارة":"Selected travel programmes",children:A.map(({item:_,side:U},O)=>s.jsxs(ls,{"data-loc":"client/src/pages/Home.tsx:357",href:`/packages/${_.slug}`,className:"enchanted-memory-card group focus-visible:outline-none","data-active":U==="center"?"true":"false","data-side":U,"aria-current":U==="center"?"true":void 0,children:[s.jsx("div",{"data-loc":"client/src/pages/Home.tsx:365",className:`absolute inset-0 bg-gradient-to-br ${nR[O%nR.length]}`}),_.imageUrl?s.jsx("img",{"data-loc":"client/src/pages/Home.tsx:367",src:_.imageUrl,alt:GT(e,_.titleAr,_.titleEn),loading:"lazy",className:"enchanted-memory-image",onError:W=>{W.currentTarget.style.display="none"}}
945):null,s.jsx("div",{"data-loc":"client/src/pages/Home.tsx:369",className:"enchanted-memory-shade"}),s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:370",className:"absolute inset-x-0 top-0 z-[2] flex items-start justify-between p-5 text-white md:p-7",children:[s.jsx("span",{"data-loc":"client/src/pages/Home.tsx:371",className:"rounded-full border border-white/20 bg-[#2c212e]/30 px-3 py-1.5 text-[9px] font-bold uppercase tracking-[.16em] backdrop-blur-md",children:_.category||(t?"رØÙØ©":"Journey")}),s.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:372",className:"enchanted-stamp h-12 w-12 border-white/40 text-[8px] text-white",children:["I",s.jsx("br",{"data-loc":"client/src/pages/Home.tsx:372"}),String((d+O+1)%99).padStart(2,"0")]})]}),s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:374",className:"enchanted-memory-copy",children:[s.jsx("p",{"data-loc":"client/src/pages/Home.tsx:375",className:"text-[10px] font-extrabold uppercase tracking-[.18em] text-[#f4d2c9]",children:GT(e,_.cityAr,_.cityEn)}),s.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:376",className:"mt-3 font-display text-[clamp(2rem,3.4vw,3.8rem)] font-semibold leading-[.95] rtl:leading-[1.2]",children:GT(e,_.titleAr,_.titleEn)}),s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:377",className:"mt-5 flex flex-wrap items-end justify-between gap-4 border-t border-white/20 pt-4",children:[s.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:378",className:"text-xs text-white/72",children:[_.durationDays," ",t?"Ø£ÙØ§Ù
":"days"," · ",_.durationNights," ",t?"ÙÙØ§ÙÙ":"nights"]}),s.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:379",className:"flex flex-col items-end gap-1.5",children:[s.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:380",className:"inline-flex items-center gap-1.5 text-[10px] font-bold uppercase tracking-[.08em] text-[#f4d2c9]",children:[s.jsx(Hs,{"data-loc":"client/src/pages/Home.tsx:381",className:"h-3.5 w-3.5","aria-hidden":"true"}),_.ticketIncluded?t?"Ø§ÙØ¥Ø¬Ù
اÙ٠شاÙ
Ù Ø§ÙØªØ°Ùرة":"Total incl. ticket":t?"Ø§ÙØ³Ø¹Ø± Ø§ÙØ£Ø±Ø¶Ù · دÙÙ ØªØ°ÙØ±Ø©":"Land price · no ticket"]}),s.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:386",dir:"ltr",className:"text-sm font-bold text-white",children:[_.price.toLocaleString(t?"ar-JO":"en-GB")," ",_.currency||"JOD"]})]})]})]})]},`${U}-${_.id}`))}):s.jsx("div",{"data-loc":"client/src/pages/Home.tsx:394",className:"mx-auto min-h-72 max-w-2xl rounded-[2.5rem] border border-white/15 bg-white/5 p-10 text-center text-white/65",children:t?"Ø³ÙØªÙ
Ø¥Ø¶Ø§ÙØ© Ø§ÙØ¨Ø±Ø§Ù
ج اÙÙØ´Ø·Ø© ÙØ±ÙباÙ.":"Active journeys will appear here soon."}),T.length>1?s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:400",className:"mt-8 flex items-center justify-center gap-3",dir:"ltr",children:[s.jsx("button",{"data-loc":"client/src/pages/Home.tsx:401",type:"button",onClick:()=>E(-1),className:"enchanted-memory-control","aria-label":t?"Ø§ÙØ¨Ø±ÙاÙ
ج Ø§ÙØ³Ø§Ø¨Ù":"Previous programme",children:s.jsx(_l,{"data-loc":"client/src/pages/Home.tsx:401",className:"h-5 w-5"})}),s.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:402",className:"min-w-20 text-center text-xs font-bold tracking-[.16em] text-white/60",children:[String(d+1).padStart(2,"0")," / ",String(T.length).padStart(2,"0")]}),s.jsx("button",{"data-loc":"client/src/pages/Home.tsx:403",type:"button",onClick:()=>E(1),className:"enchanted-memory-control","aria-label":t?"Ø§ÙØ¨Ø±ÙاÙ
ج Ø§ÙØªØ§ÙÙ":"Next programme",children:s.jsx(dr,{"data-loc":"client/src/pages/Home.tsx:403",className:"h-5 w-5"})})]}):null]})]})})}),s.jsx("section",{"data-loc":"client/src/pages/Home.tsx:411",className:"pb-24 md:pb-32","aria-labelledby":"services-title",children:s.jsx("div",{"data-loc":"client/src/pages/Home.tsx:412",className:"container max-w-[1480px]",children:s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:413",className:"enchanted-sky-section px-5 py-16 md:px-10 md:py-24 lg:px-14",children:[s.jsx("span",{"data-loc":"client/src/pages/Home.tsx:414",className:"enchanted-orbit-mark -start-16 -top-12 border-white/45","aria-hidden":"true"}),s.jsxs(ts,{"data-loc":"client/src/pages/Home.tsx:415",className:"relative z-[2] grid items-end gap-8 lg:grid-cols-[.8fr_1.2fr]",children:[s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:416",children:[s.jsx("p",{"data-loc":"client/src/pages/Home.tsx:417",className:"text-[11px] font-extrabold uppercase tracking-[.2em] text-[#654d68]",children:t?"سÙ
اء Ø§ÙØ§ØØªÙ
Ø§ÙØ§Øª":"A sky of possibilities"}),s.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:418",id:"services-title",className:"mt-4 font-display text-[clamp(3rem,5.8vw,6.2rem)] font-semibold leading-[.92] text-[#342638] rtl:leading-[1.2]",children:t?"ÙÙ ÙØµØ§ØµØ©â¦ Ø¨Ø¯Ø§ÙØ© طرÙÙ.":"Every note can begin a road."})]}),s.jsx("p",{"data-loc":"client/src/pages/Home.tsx:422",className:"max-w-2xl text-base leading-8 text-[#55455d] lg:ms-auto",children:t?"اختر ÙÙØ¹ Ø§ÙØ±ØÙØ© Ø§ÙØªÙ تÙÙØ± Ø¨ÙØ§. تبÙÙ Ù٠خدÙ
Ø© ÙØ§Ø¶ØØ© ÙØ¹Ù
ÙÙØ©Ø ÙÙÙ ÙÙÙ ÙØ§ØØ¯Ø© Ù
Ø²Ø§Ø¬ÙØ§ ÙØµÙØØªÙا Ø§ÙØ®Ø§ØµØ©.":"Choose the kind of journey on your mind. Every service stays clear and practical, yet carries its own mood and page."})]}),s.jsx(c2,{"data-loc":"client/src/pages/Home.tsx:427",className:"relative z-[2] mt-14 grid gap-5 md:grid-cols-2 lg:grid-cols-12",stagger:.06,children:I.map((_,
945U)=>{const O=U===0||U===4?"lg:col-span-5":U===2?"lg:col-span-4":"lg:col-span-3";return s.jsx(l2,{"data-loc":"client/src/pages/Home.tsx:431",className:O,children:s.jsxs(ls,{"data-loc":"client/src/pages/Home.tsx:432",href:_.href,className:"enchanted-diary-note group flex h-full flex-col","data-tone":tpe[U],style:{"--note-tilt":npe[U]},children:[s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:438",className:"flex items-start justify-between gap-4",children:[s.jsx("span",{"data-loc":"client/src/pages/Home.tsx:439",className:"grid h-12 w-12 place-items-center rounded-full border border-[#4a3b53]/10 bg-white/40 text-[#56324b]",children:s.jsx(_.icon,{"data-loc":"client/src/pages/Home.tsx:439",className:"h-5 w-5"})}),s.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:440",className:"font-display text-4xl text-[#4a3b53]/25",children:["0",U+1]})]}),s.jsx("p",{"data-loc":"client/src/pages/Home.tsx:442",className:"mt-8 text-[10px] font-extrabold uppercase tracking-[.16em] text-[#715b76]",children:_.note}),s.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:443",className:"mt-2 font-display text-3xl font-semibold leading-tight text-[#342638]",children:_.label}),s.jsx("p",{"data-loc":"client/src/pages/Home.tsx:444",className:"mt-3 text-sm leading-7 text-[#5c4d61]",children:_.copy}),s.jsx(dr,{"data-loc":"client/src/pages/Home.tsx:445",className:"mt-auto h-5 w-5 self-end text-[#56324b] transition-transform group-hover:translate-x-1 rtl:rotate-180 rtl:group-hover:-translate-x-1"})]})},_.href)})})]})})}),s.jsx("section",{"data-loc":"client/src/pages/Home.tsx:455",className:"pb-24 md:pb-32","aria-labelledby":"journey-title",children:s.jsx("div",{"data-loc":"client/src/pages/Home.tsx:456",className:"container max-w-[1480px]",children:s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:457",className:"enchanted-journey-ribbon px-6 py-12 text-[#fff9f4] md:px-10 md:py-16 lg:grid lg:grid-cols-[.78fr_1.22fr] lg:gap-16 lg:px-16 lg:py-20",children:[s.jsxs(ts,{"data-loc":"client/src/pages/Home.tsx:458",className:"relative",children:[s.jsx("span",{"data-loc":"client/src/pages/Home.tsx:459",className:"enchanted-orbit-mark -start-24 -top-20 opacity-30","aria-hidden":"true"}),s.jsx("p",{"data-loc":"client/src/pages/Home.tsx:460",className:"text-[11px] font-extrabold uppercase tracking-[.2em] text-[#deb9c0]",children:t?"ÙÙÙ ÙÙØªØ¨ رØÙتÙ":"How we write your journey"}),s.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:461",id:"journey-title",className:"mt-5 font-display text-[clamp(3rem,5vw,5.8rem)] font-semibold leading-[.94] rtl:leading-[1.22]",children:t?"Ù
Ù ÙÙØ±Ø© ØµØºÙØ±Ø© Ø¥ÙÙ Ø¯ÙØªØ± Ù
ÙÙØ¡ Ø¨Ø§ÙØ°ÙØ±ÙØ§Øª.":"From a small idea to a diary full of memories."}),s.jsx("p",{"data-loc":"client/src/pages/Home.tsx:464",className:"mt-7 max-w-lg text-base leading-8 text-white/60",children:t?"ÙØ±ÙÙ ÙØ§ØØ¯ ÙÙØ³Ù Ø§ÙØªÙاصÙÙ ÙÙØ¨ÙÙ ÙØ±Ùبا٠Ù
ÙÙ Ù
٠أÙÙ Ø³Ø¤Ø§Ù ØØªÙ ÙØØ¸Ø© Ø§ÙØ¹Ùدة.":"One team coordinates the details and stays close from your first question through your return."})]}),s.jsx(c2,{"data-loc":"client/src/pages/Home.tsx:469",className:"mt-12 grid gap-8 lg:mt-0",stagger:.08,children:F.map(_=>s.jsxs(l2,{"data-loc":"client/src/pages/Home.tsx:471",className:"enchanted-journey-step grid grid-cols-[48px_1fr] gap-5",children:[s.jsx("span",{"data-loc":"client/src/pages/Home.tsx:472",className:"grid h-10 w-10 place-items-center rounded-full border border-[#c9a96e]/45 bg-white/5 text-[#f4d2c9]",children:s.jsx(_.icon,{"data-loc":"client/src/pages/Home.tsx:472",className:"h-4 w-4"})}),s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:473",className:"border-b border-white/10 pb-7",children:[s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:474",className:"flex items-center justify-between gap-4",children:[s.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:475",className:"font-display text-2xl font-semibold md:text-3xl",children:_.title}),s.jsx("span",{"data-loc":"client/src/pages/Home.tsx:476",className:"text-[10px] font-bold tracking-[.18em] text-[#c9a96e]",children:_.number})]}),s.jsx("p",{"data-loc":"client/src/pages/Home.tsx:478",className:"mt-2 max-w-xl text-sm leading-7 text-white/58",children:_.text})]})]},_.number))})]})})}),s.jsxs("section",{"data-loc":"client/src/pages/Home.tsx:487",className:"relative overflow-hidden pb-20 md:pb-28",children:[s.jsx("span",{"data-loc":"client/src/pages/Home.tsx:488",className:"enchanted-bloom -end-20 top-0 -z-10 opacity-55","aria-hidden":"true"}),s.jsx("div",{"data-loc":"client/src/pages/Home.tsx:489",className:"container max-w-[1480px]",children:s.jsxs(ts,{"data-loc":"client/src/pages/Home.tsx:490",className:"grid items-center gap-10 border-y border-border py-12 lg:grid-cols-[1fr_auto] lg:py-16",children:[s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:491",children:[s.jsx("p",{"data-loc":"client/src/pages/Home.tsx:492",className:"enchanted-kicker",children:t?"ابدأ ØµÙØØ© Ø¬Ø¯ÙØ¯Ø©":"Begin a new page"}),s.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:493",className:"mt-4 max-w-4xl font-display text-[clamp(2.8rem,5vw,5.8rem)] font-semibold leading-[.95] rtl:leading-[1.22]",children:t?"أرس٠اÙÙÙØ±Ø©Ø ÙØ³ÙØÙÙÙÙØ§ Ø¥Ù٠رØÙØ© تستØÙ Ø£Ù ØªÙØ±ÙÙ.":"Send the idea. We will shape it into a
945journey worth telling."})]}),s.jsxs("a",{"data-loc":"client/src/pages/Home.tsx:497",href:L,target:"_blank",rel:"noreferrer",className:"enchanted-button group inline-flex min-h-16 items-center justify-center gap-3 bg-primary px-8 font-bold text-primary-foreground hover:bg-[#6a3f5b] dark:hover:bg-[#edcbd2]",children:[t?"ØªØØ¯Ø« Ù
ع IBRIX":"Talk to IBRIX",s.jsx(dr,{"data-loc":"client/src/pages/Home.tsx:499",className:"h-5 w-5 transition-transform group-hover:translate-x-1 rtl:rotate-180 rtl:group-hover:-translate-x-1"})]})]})})]}),s.jsx(Qme,{"data-loc":"client/src/pages/Home.tsx:505",isArabic:t}),s.jsx("section",{"data-loc":"client/src/pages/Home.tsx:507","aria-label":t?"دخÙÙ Ù
ÙØ¸ÙÙ IBRIX":"IBRIX staff access",className:"border-t border-border/70 bg-card/55 py-8",children:s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:508",className:"container flex max-w-[1480px] flex-col items-start justify-between gap-5 sm:flex-row sm:items-center",children:[s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:509",className:"flex items-center gap-4",children:[s.jsx("span",{"data-loc":"client/src/pages/Home.tsx:510",className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-secondary text-secondary-foreground",children:s.jsx(Zj,{"data-loc":"client/src/pages/Home.tsx:510",className:"h-5 w-5"})}),s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:511",children:[s.jsx("p",{"data-loc":"client/src/pages/Home.tsx:512",className:"text-sm font-bold text-card-foreground",children:t?"ÙØ±ÙÙ Ù
Ø¨ÙØ¹Ø§Øª IBRIX":"IBRIX Sales Team"}),s.jsx("p",{"data-loc":"client/src/pages/Home.tsx:513",className:"mt-1 text-xs leading-5 text-muted-foreground",children:t?"ادخ٠إÙÙ Ø§ÙØ¨Ø±Ø§Ù
ج ÙØ§Ùأسعار اÙÙ
عتÙ
دة Ù
Ù IBRIX.":"Access IBRIX-approved packages and selling prices."})]})]}),s.jsxs(ls,{"data-loc":"client/src/pages/Home.tsx:516",href:"/accounting?module=staffPackages",className:"enchanted-button inline-flex min-h-11 items-center justify-center gap-2 border border-border bg-card px-5 text-sm font-semibold text-card-foreground hover:border-primary/35 hover:bg-secondary",children:[s.jsx(cie,{"data-loc":"client/src/pages/Home.tsx:517",className:"h-4 w-4"}),t?"دخÙ٠اÙÙ
ÙØ¸ÙÙÙ":"Staff login"]})]})})]}),s.jsx(oo,{"data-loc":"client/src/pages/Home.tsx:523"})]})}const $g={egypt:{ar:"Ù
صر",en:"Egypt"},turkey:{ar:"ترÙÙØ§",en:"Türkiye"},syria:{ar:"Ø³ÙØ±Ùا",en:"Syria"},georgia:{ar:"Ø¬ÙØ±Ø¬Ùا",en:"Georgia"},azerbaijan:{ar:"Ø£Ø°Ø±Ø¨ÙØ¬Ø§Ù",en:"Azerbaijan"},albania:{ar:"Ø£ÙØ¨Ø§ÙÙØ§",en:"Albania"},"far-east":{ar:"Ø´Ø±Ù Ø¢Ø³ÙØ§",en:"East Asia"},gulf:{ar:"Ø§ÙØ®ÙÙØ¬ Ø§ÙØ¹Ø±Ø¨Ù",en:"Gulf"},europe:{ar:"Ø£ÙØ±Ùبا",en:"Europe"},cruises:{ar:"Ø§ÙØ±ØÙات Ø§ÙØ¨ØØ±ÙØ©",en:"Cruises"},jordan:{ar:"Ø§ÙØ£Ø±Ø¯Ù",en:"Jordan"},umrah:{ar:"Ø§ÙØ¹Ù
رة",en:"Umrah"},asia:{ar:"Ø¢Ø³ÙØ§",en:"Asia"},kosovo:{ar:"ÙÙØ³ÙÙÙ",en:"Kosovo"},mix:{ar:"Ù
تÙÙØ¹",en:"Mix"}},n7=Object.keys($g),bz=["egypt","turkey","syria","georgia","azerbaijan","albania","far-east","gulf","europe","cruises","jordan","umrah"],u2=[{value:"Egypt",category:"egypt",ar:"Ù
صر",en:"Egypt"},{value:"Cairo",category:"egypt",ar:"اÙÙØ§Ùرة",en:"Cairo"},{value:"Sharm El Sheikh",category:"egypt",ar:"شرÙ
Ø§ÙØ´ÙØ®",en:"Sharm El Sheikh"},{value:"Alexandria",category:"egypt",ar:"Ø§ÙØ¥Ø³ÙÙØ¯Ø±ÙØ©",en:"Alexandria"},{value:"North Coast",category:"egypt",ar:"Ø§ÙØ³Ø§ØÙ Ø§ÙØ´Ù
اÙÙ",en:"North Coast"},{value:"Hurghada",category:"egypt",ar:"Ø§ÙØºØ±Ø¯ÙØ©",en:"Hurghada"},{value:"Taba",category:"egypt",ar:"طابا",en:"Taba"},{value:"Dahab",category:"egypt",ar:"Ø¯ÙØ¨",en:"Dahab"},{value:"Türkiye",category:"turkey",ar:"ترÙÙØ§",en:"Türkiye"},{value:"Istanbul",category:"turkey",ar:"Ø¥Ø³Ø·ÙØ¨ÙÙ",en:"Istanbul"},{value:"Antalya",category:"turkey",ar:"Ø£ÙØ·Ø§ÙÙØ§",en:"Antalya"},{value:"Marmaris",category:"turkey",ar:"Ù
رÙ
Ø±ÙØ³",en:"Marmaris"},{value:"Bodrum",category:"turkey",ar:"Ø¨ÙØ¯Ø±ÙÙ
",en:"Bodrum"},{value:"Trabzon",category:"turkey",ar:"طرابزÙÙ",en:"Trabzon"},{value:"Syria",category:"syria",ar:"Ø³ÙØ±Ùا",en:"Syria"},{value:"Damascus",category:"syria",ar:"دÙ
Ø´Ù",en:"Damascus"},{value:"Latakia",category:"syria",ar:"اÙÙØ§Ø°ÙÙØ©",en:"Latakia"},{value:"Tartus",category:"syria",ar:"Ø·Ø±Ø·ÙØ³",en:"Tartus"},{value:"Syrian Summer Resorts",category:"syria",ar:"اÙÙ
صاÙÙ Ø§ÙØ³ÙØ±ÙØ©",en:"Syrian Summer Resorts"},{value:"Georgia",category:"georgia",ar:"Ø¬ÙØ±Ø¬Ùا",en:"Georgia"},{value:"Tbilisi",category:"georgia",ar:"تبÙÙØ³Ù",en:"Tbilisi"},{value:"Batumi",category:"georgia",ar:"باتÙÙ
Ù",en:"Batumi"},{value:"Azerbaijan",category:"azerbaijan",ar:"Ø£Ø°Ø±Ø¨ÙØ¬Ø§Ù",en:"Azerbaijan"},{value:"Baku",category:"azerbaijan",ar:"باÙÙ",en:"Baku"},{value:"Albania",category:"albania",ar:"Ø£ÙØ¨Ø§ÙÙØ§",en:"Albania"},{value:"Tirana",category:"albania",ar:"ØªÙØ±Ø§Ùا",en:"Tirana"},{value:"Malaysia",category:"far-east",ar:"Ù
اÙÙØ²Ùا",en:"Malaysia"},{value:"Kuala Lumpur",category:"far-east",ar:"ÙÙØ§ÙاÙÙ
Ø¨ÙØ±",en:"Kuala Lumpur"},{value:"Thailand",category:"far-east",ar:"تاÙÙØ§Ùد",en:"Thailand"},{value:"Bangkok",category:"far-east",ar:"باÙÙÙÙ",en:"Bangkok"},{value:"Phuket",category:"far-east",ar:"بÙÙÙØª",en:"Phuket"},{value:"Vietnam",category:"far-east",ar:"ÙÙØªÙاÙ
",en:"Vietnam"},{value:"Hanoi",category:"far-east",ar:"ÙØ§ÙÙÙ",en:"Hanoi"},{value:"Indonesia",category:"far-east",ar:"Ø¥ÙØ¯ÙÙÙØ³Ùا",en:"Indonesia"},{value:"Bali",category:"far-east",ar:"باÙÙ",en:"Bali"},{value:"India",category:"far-east",ar:"اÙÙÙØ¯",en:"India"},{value:"New Delhi",category:"far-east",ar:"ÙÙÙØ¯ÙÙÙ",en:"New Delhi"},{value:"Maldives",category:"far-east",ar:"اÙÙ
Ø§ÙØ¯ÙÙ",en:"Maldives"},{value:"Malé",category:"far-east",ar:"Ù
اÙÙÙ",en:"Malé"},{value:"United Arab Emirates",category:"gulf",ar:"Ø§ÙØ¥Ù
ارات Ø§ÙØ¹Ø±Ø¨ÙØ© اÙÙ
ØªØØ¯Ø©",en:"United Arab Emirates"},{value:"Dubai",category:"gulf",ar:"دبÙ",en:"Dubai"},{value:"Abu Dhabi",category:"gulf",ar:"Ø£Ø¨ÙØ¸Ø¨Ù",en:"Abu Dhabi"},{value:"Saudi Arabia",category:"gulf",ar:"اÙÙ
Ù
ÙÙØ© Ø§ÙØ¹Ø±Ø¨ÙØ© Ø§ÙØ³Ø¹ÙØ¯ÙØ©",en:"Saudi Arabia"},{value:"Qatar",category:"gulf",ar:"ÙØ·Ø±",en:"Qatar"},{value:"Doha",category:"gulf",ar:"Ø§ÙØ¯ÙØØ©",en:"Doha"},{value:"Spain",category:"europe",ar:"إسباÙÙØ§",en:"Spain"},{value:"Madrid",category:"europe",ar:"Ù
Ø¯Ø±ÙØ¯",en:"Madrid"},{value:"Barcelona",category:"europe",ar:"برشÙÙÙØ©",en:"Barcelona"},{value:"Greece",category:"europe",ar:"اÙÙÙÙØ§Ù",en:"Greece"},{value:"Athens",category:"europe",ar:"أثÙÙØ§",en:"Athens"},{value:"France",category:"europe",ar:"ÙØ±Ùسا",en:"France"},{value:"Paris",category:"europe",ar:"Ø¨Ø§Ø±ÙØ³",en:"Paris"},{value:"Italy",category:"europe",ar:"Ø¥ÙØ·Ø§ÙÙØ§",en:"Italy"},{value:"Rome",category:"europe",ar:"رÙÙ
ا",en:"Rome"},{value:"Milan",category:"europe",ar:"Ù
ÙÙØ§ÙÙ",en:"Milan"},{value:"Netherlands",category:"europe",ar:"ÙÙÙÙØ¯Ø§",en:"Netherlands"},{value:"Amsterdam",category:"europe",ar:"Ø£Ù
سترداÙ
",en:"Amsterdam"},{value:"Jordan",category:"jordan",ar:"Ø§ÙØ£Ø±Ø¯Ù",en:"Jordan"},{value:"Amman",category:"jordan",ar:"عÙ
ÙØ§Ù",en:"Amman"},{value:"Jerash",category:"jordan",ar:"جرش",en:"Jerash"},{value:"Ajloun",category:"jordan",ar:"عجÙÙÙ",en:"Ajloun"},{value:"Petra",category:"jordan",ar:"Ø§ÙØ¨ØªØ±Ø§Ø¡",en:"Petra"}
945,{value:"Dead Sea",category:"jordan",ar:"Ø§ÙØ¨ØØ± اÙÙ
ÙØª",en:"Dead Sea"},{value:"Wadi Rum",category:"jordan",ar:"ÙØ§Ø¯Ù رÙ
",en:"Wadi Rum"},{value:"Dana",category:"jordan",ar:"Ø¶Ø§ÙØ§",en:"Dana"},{value:"Aqaba",category:"jordan",ar:"Ø§ÙØ¹Ùبة",en:"Aqaba"},{value:"Irbid",category:"jordan",ar:"إربد",en:"Irbid"},{value:"Makkah",category:"umrah",ar:"Ù
ÙØ© اÙÙ
ÙØ±Ù
Ø©",en:"Makkah"}],rpe=[{slug:"egypt-sharm-by-plane",category:"egypt",destinationValue:"Sharm El Sheikh",ar:"شرÙ
Ø§ÙØ´ÙØ® Ø¨Ø§ÙØ·Ø§Ø¦Ø±Ø©",en:"Sharm El Sheikh by Plane"},{slug:"egypt-sharm-by-boat",category:"egypt",destinationValue:"Sharm El Sheikh",ar:"شرÙ
Ø§ÙØ´ÙØ® Ø¨Ø§ÙØ¨Ø§Ø®Ø±Ø©",en:"Sharm El Sheikh by Boat"},{slug:"syria-by-bus",category:"syria",destinationValue:"Syria",ar:"Ø³ÙØ±Ùا Ø¨Ø§ÙØ¨Ø§Øµ",en:"Syria by Bus"},{slug:"syria-summer-resorts",category:"syria",destinationValue:"Syrian Summer Resorts",ar:"اÙÙ
صاÙÙ Ø§ÙØ³ÙØ±ÙØ©",en:"Syrian Summer Resorts"},{slug:"uae-dubai-abu-dhabi",category:"gulf",destinationValue:"United Arab Emirates",ar:"Ø¯Ø¨Ù ÙØ£Ø¨ÙظبÙ",en:"Dubai & Abu Dhabi"},{slug:"msc-cruise",category:"cruises",ar:"رØÙات MSC Ø§ÙØ¨ØØ±ÙØ©",en:"MSC Cruises"},{slug:"jordan-complete",category:"jordan",destinationValue:"Jordan",ar:"Ø¨Ø±ÙØ§Ù
ج Ø§ÙØ£Ø±Ø¯Ù Ø§ÙØ´Ø§Ù
Ù",en:"Complete Jordan Program"},{slug:"urdunna-jannah",category:"jordan",destinationValue:"Jordan",ar:"أردÙÙØ§ Ø¬ÙØ©",en:"Urdunna Jannah"},{slug:"jordan-inbound-visitors",category:"jordan",destinationValue:"Jordan",ar:"Ø§ÙØ£Ø±Ø¯Ù ÙØºÙر Ø§ÙØ£Ø±Ø¯ÙÙÙ٠اÙÙØ§Ø¯Ù
ÙÙ Ù
Ù Ø§ÙØ®Ø§Ø±Ø¬",en:"Jordan for Non-Jordanian Inbound Visitors"},{slug:"umrah-plane-makkah",category:"umrah",destinationValue:"Makkah",ar:"عÙ
رة Ø¨Ø§ÙØ·Ø§Ø¦Ø±Ø© â Ù
ÙØ© اÙÙ
ÙØ±Ù
Ø©",en:"Umrah by Plane â Makkah"},{slug:"umrah-plane-makkah-madinah",category:"umrah",destinationValue:"Makkah",ar:"عÙ
رة Ø¨Ø§ÙØ·Ø§Ø¦Ø±Ø© â Ù
ÙØ© ÙØ§ÙÙ
دÙÙØ©",en:"Umrah by Plane â Makkah & Madinah"},{slug:"umrah-bus-makkah-madinah",category:"umrah",destinationValue:"Makkah",ar:"عÙ
رة Ø¨Ø§ÙØ¨Ø§Øµ â Ù
ÙØ© ÙØ§ÙÙ
دÙÙØ©",en:"Umrah by Bus â Makkah & Madinah"}],ipe=bz.map(e=>({key:e,label:$g[e],destinations:u2.filter(t=>t.category===e).map(({value:t,ar:n,en:a})=>({value:t,ar:n,en:a})),variants:rpe.filter(t=>t.category===e).map(({slug:t,destinationValue:n,ar:a,en:r})=>({slug:t,destinationValue:n,ar:a,en:r}))})),ope=(e,t)=>u2.find(a=>a.value===e)?.[t]??e;function cpe({language:e,category:t,query:n}){const a=e==="ar",r=a?_l:dr,i=n.trim().toLocaleLowerCase(e==="ar"?"ar":"en"),o=ipe.filter(c=>t!=="all"&&c.key!==t?!1:i?[c.label.ar,c.label.en,...c.destinations.flatMap(l=>[l.ar,l.en,l.value]),...c.variants.flatMap(l=>[l.ar,l.en])].some(l=>l.toLocaleLowerCase(e==="ar"?"ar":"en").includes(i)):!0);return s.jsx("section",{"data-loc":"client/src/components/DestinationDirectory.tsx:34",className:"border-b border-[#D8CDBD] bg-[#F6F1E8] py-14 md:py-20","aria-labelledby":"destination-directory-heading",children:s.jsxs("div",{"data-loc":"client/src/components/DestinationDirectory.tsx:38",className:"container",children:[s.jsxs("div",{"data-loc":"client/src/components/DestinationDirectory.tsx:39",className:"mb-10 grid gap-5 lg:grid-cols-[minmax(0,1fr)_minmax(280px,0.55fr)] lg:items-end",children:[s.jsxs("div",{"data-loc":"client/src/components/DestinationDirectory.tsx:40",children:[s.jsxs("div",{"data-loc":"client/src/components/DestinationDirectory.tsx:41",className:"mb-4 flex items-center gap-3 text-xs font-semibold uppercase tracking-[0.24em] text-[#795023]",children:[s.jsx("span",{"data-loc":"client/src/components/DestinationDirectory.tsx:42",className:"h-px w-10 bg-[#B68A55]","aria-hidden":"true"}),a?"دÙÙÙ IBRIX ÙÙÙØ¬Ùات":"IBRIX destination directory"]}),s.jsx("h2",{"data-loc":"client/src/components/DestinationDirectory.tsx:45",id:"destination-directory-heading",className:"font-display text-4xl font-semibold leading-tight text-[#171512] md:text-5xl",children:a?"Ù٠اÙÙØ¬Ùات اÙÙ
ØªØ§ØØ© ÙØ¹Ù
ÙØ§Ø¦Ùا":"Every destination available to our customers"})]}),s.jsx("p",{"data-loc":"client/src/components/DestinationDirectory.tsx:52",className:"max-w-xl text-base leading-8 text-[#5F584F] lg:justify-self-end",children:a?"ÙÙ
ÙÙÙ Ø·ÙØ¨ Ø£Ù ÙØ¬ÙØ© Ø£Ø¯ÙØ§Ù ØØªÙ Ø¥Ù ÙÙ
ÙÙÙØ´Ø± ÙÙØ§ Ø¨Ø±ÙØ§Ù
ج Ù
Ø³Ø¹ÙØ± بعد. Ø³ÙØ¬Ùز ÙØ±ÙÙ IBRIX عرضا٠Ù
Ø®ØµØµØ§Ù ØØ³Ø¨ ØªØ§Ø±ÙØ® Ø§ÙØ³Ùر ÙØ¹Ø¯Ø¯ اÙÙ
Ø³Ø§ÙØ±ÙÙ.":"You can request any destination below, even when a priced itinerary has not yet been published. The IBRIX team will prepare a tailored proposal for your dates and party size."})]}),s.jsx("div",{"data-loc":"client/src/components/DestinationDirectory.tsx:59",className:"grid gap-5 md:grid-cols-2 xl:grid-cols-3",children:o.map((c,l)=>{const d=c.destinations[0]?.value??c.variants[0]?.en??c.label.en,m=c.destinations.length,h=c.key==="cruises";return s.jsxs("article",{"data-loc":"client/src/components/DestinationDirectory.tsx:66",className:"group flex min-h-[300px] flex-col overflow-hidden rounded-[1.75rem] border border-[#D7CABA] bg-white shadow-[0_18px_45px_rgba(56,43,29,0.08)] transition duration-300 hover:-translate-y-1 hover:border-[#B68A55] hover:shadow-[0_24px_58px_rgba(56,43,29,0.13)]",children:[s.jsxs("div",{"data-loc":"client/src/components/DestinationDirectory.tsx:70",className:"relative border-b border-[#
945E8DED0] bg-[linear-gradient(135deg,#1E372F_0%,#274B40_60%,#B08450_160%)] px-6 py-6 text-white",children:[s.jsx("div",{"data-loc":"client/src/components/DestinationDirectory.tsx:71",className:"absolute inset-y-0 end-0 w-28 bg-[radial-gradient(circle_at_center,rgba(255,255,255,0.16),transparent_68%)]","aria-hidden":"true"}),s.jsxs("div",{"data-loc":"client/src/components/DestinationDirectory.tsx:72",className:"relative flex items-start justify-between gap-4",children:[s.jsxs("div",{"data-loc":"client/src/components/DestinationDirectory.tsx:73",children:[s.jsx("p",{"data-loc":"client/src/components/DestinationDirectory.tsx:74",className:"mb-1 text-[11px] font-semibold uppercase tracking-[0.22em] text-[#D7C5A8]",children:a?`Ù
جÙ
ÙØ¹Ø© ${l+1}`:`Collection ${String(l+1).padStart(2,"0")}`}),s.jsx("h3",{"data-loc":"client/src/components/DestinationDirectory.tsx:77",className:"font-display text-3xl font-semibold leading-none",children:c.label[e]}),s.jsx("p",{"data-loc":"client/src/components/DestinationDirectory.tsx:80",className:"mt-2 text-sm text-white/70",dir:a?"ltr":"rtl",children:c.label[a?"en":"ar"]})]}),s.jsx("div",{"data-loc":"client/src/components/DestinationDirectory.tsx:84",className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-full border border-white/20 bg-white/10",children:h?s.jsx(yie,{"data-loc":"client/src/components/DestinationDirectory.tsx:85",className:"h-5 w-5","aria-hidden":"true"}):s.jsx(fb,{"data-loc":"client/src/components/DestinationDirectory.tsx:85",className:"h-5 w-5","aria-hidden":"true"})})]})]}),s.jsxs("div",{"data-loc":"client/src/components/DestinationDirectory.tsx:90",className:"flex flex-1 flex-col px-6 py-6",children:[s.jsxs("div",{"data-loc":"client/src/components/DestinationDirectory.tsx:91",className:"mb-5 flex items-center gap-2 text-xs font-semibold uppercase tracking-[0.16em] text-[#755A3D]",children:[s.jsx(mr,{"data-loc":"client/src/components/DestinationDirectory.tsx:92",className:"h-4 w-4","aria-hidden":"true"}),h?a?"Ø§ÙØ¨Ø±Ø§Ù
ج اÙÙ
ØªØ§ØØ©":"Available experiences":a?`${m} ÙØ¬ÙØ© ÙÙ
دÙÙØ©`:`${m} destinations & cities`]}),s.jsxs("div",{"data-loc":"client/src/components/DestinationDirectory.tsx:100",className:"mb-6 flex flex-wrap gap-2","aria-label":c.label[e],children:[c.destinations.map(x=>s.jsx("span",{"data-loc":"client/src/components/DestinationDirectory.tsx:102",className:"rounded-full border border-[#DED2C2] bg-[#FBF8F3] px-3 py-1.5 text-sm font-medium text-[#403A33]",title:x[a?"en":"ar"],children:x[e]},`${c.key}-${x.value}`)),c.variants.map(x=>s.jsx("span",{"data-loc":"client/src/components/DestinationDirectory.tsx:111",className:"rounded-full border border-[#C6A77F] bg-[#F5ECDE] px-3 py-1.5 text-sm font-medium text-[#76552F]",title:x[a?"en":"ar"],children:x[e]},x.slug))]}),s.jsxs(ls,{"data-loc":"client/src/components/DestinationDirectory.tsx:121",href:`/contact?destination=${encodeURIComponent(d)}`,className:"mt-auto inline-flex min-h-11 items-center justify-between gap-3 rounded-full border border-[#1F3D34] px-5 py-2.5 text-sm font-semibold text-[#1F3D34] transition duration-200 hover:bg-[#1F3D34] hover:text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#B68A55] focus-visible:ring-offset-2",children:[s.jsx("span",{"data-loc":"client/src/components/DestinationDirectory.tsx:125",children:a?"Ø§Ø·ÙØ¨ Ø¨Ø±ÙØ§Ù
جا٠ÙÙØ°Ù اÙÙØ¬ÙØ©":"Request this destination"}),s.jsx(r,{"data-loc":"client/src/components/DestinationDirectory.tsx:126",className:"h-4 w-4 transition-transform duration-200 group-hover:translate-x-0.5","aria-hidden":"true"})]})]})]},c.key)})}),o.length===0&&s.jsx("div",{"data-loc":"client/src/components/DestinationDirectory.tsx:135",className:"rounded-[1.75rem] border border-dashed border-[#CDBEA9] bg-white/70 px-6 py-14 text-center text-[#5F584F]",children:a?"ÙØ§ ØªÙØ¬Ø¯ ÙØ¬ÙØ© Ù
Ø·Ø§Ø¨ÙØ© ضÙ
Ù Ø§ÙØ¯ÙÙÙ. Ø¬Ø±ÙØ¨ ÙÙÙ
Ø© Ø¨ØØ« أخر٠أ٠اختر Ù٠اÙÙØ¬Ùات.":"No directory destination matches this search. Try another term or select all destinations."})]})})}const lpe=/^(\d{4})-(\d{2})-(\d{2})$/,upe=/^(\d{4})[./](\d{1,2})[./](\d{1,2})$/,dpe=/^(\d{1,2})[./-](\d{1,2})(?:[./-](\d{2}|\d{4}
945))?$/,mpe=/^(\d{1,2})\s+([A-Za-z]{3,9})\s+(\d{4})$/,ppe={JAN:1,JANUARY:1,FEB:2,FEBRUARY:2,MAR:3,MARCH:3,APR:4,APRIL:4,MAY:5,JUN:6,JUNE:6,JUL:7,JULY:7,AUG:8,AUGUST:8,SEP:9,SEPT:9,SEPTEMBER:9,OCT:10,OCTOBER:10,NOV:11,NOVEMBER:11,DEC:12,DECEMBER:12};function hpe(e,t,n){if(!Number.isInteger(e)||!Number.isInteger(t)||!Number.isInteger(n)||e<2e3||e>2100||t<1||t>12||n<1||n>31)return!1;const a=new Date(Date.UTC(e,t-1,n));return a.getUTCFullYear()===e&&a.getUTCMonth()===t-1&&a.getUTCDate()===n}function nb(e,t,n){return hpe(e,t,n)?`${String(e).padStart(4,"0")}-${String(t).padStart(2,"0")}-${String(n).padStart(2,"0")}`:null}function fpe(e){const t=e.getUTCFullYear();return Number.isInteger(t)&&t>=2e3&&t<=2100?t:new Date().getUTCFullYear()}function qg(e,t={}){if(typeof e!="string")return null;const n=e.trim();if(!n)return null;const r=(n.length>=10?n.slice(0,10):n).match(lpe);if(r)return nb(Number(r[1]),Number(r[2]),Number(r[3]));const i=n.match(upe);if(i)return nb(Number(i[1]),Number(i[2]),Number(i[3]));const o=n.match(mpe);if(o){const l=ppe[o[2].toUpperCase()];return l?nb(Number(o[3]),l,Number(o[1])):null}const c=n.match(dpe);if(c){const l=c[3],d=l?l.length===2?2e3+Number(l):Number(l):fpe(t.referenceDate??new Date);return nb(d,Number(c[2]),Number(c[1]))}return null}function QA(e,t,n={}){const a=qg(e,n);if(!a)return"";const[r,i,o]=a.split("-").map(Number),c=new Date(Date.UTC(r,i-1,o));return new Intl.DateTimeFormat(t,{day:"numeric",month:"short",year:"numeric",timeZone:"UTC"}).format(c)}function gpe(e=new Date){const t=e.getUTCFullYear(),n=e.getUTCMonth()+1,a=e.getUTCDate();return nb(t,n,a)??new Date().toISOString().slice(0,10)}function xpe(e,t,n){if(!e||!t||!Number.isInteger(n)||Number(n)<1)return!0;const a=qg(e),r=qg(t);if(!a||!r)return!1;const i=Date.parse(`${a}T00:00:00Z`);return Date.parse(`${r}T00:00:00Z`)-i===(Number(n)-1)*864e5}function bpe(e,t=new Date){const n=gpe(t),a=qg(e.validFrom,{referenceDate:t}),r=qg(e.validTo,{referenceDate:t}),i=qg(e.bookingDeadline,{referenceDate:t}),o=Object.keys(e).filter(d=>!!e[d]?.trim()&&!{validFrom:a,validTo:r,bookingDeadline:i}[d]),c=a&&a>n?a:n,l=[r,i].filter(d=>!!d).sort()[0]??null;return{today:n,validFrom:a,validTo:r,bookingDeadline:i,minDate:c,maxDate:l,isExpired:!!(l&&l<c),invalidFields:o}}function vpe(e,t){return QA(e,t==="ar"?"ar-JO":"en-GB")}function ype(){const{t:e,lang:t,isRTL:n}=zs(),[a,r]=k.useState("all"),[i,o]=k.useState(""),{data:c,isLoading:l}=Pe.packages.list.useQuery({}),d=(y,w)=>(t==="ar"?y:w)||w||y||"",m=k.useMemo(()=>{const y=new Set((c??[]).map(E=>E.category)),w=[...bz],T=n7.filter(E=>y.has(E)&&!w.includes(E)),A=Array.from(y).filter(E=>!n7.includes(E)).sort();return[...w,...T,...A]},[c]),h=k.useMemo(()=>{if(!c)return[];const y=i.trim().toLowerCase();return c.filter(w=>a!=="all"&&w.category!==a?!1:y?[w.titleAr,w.titleEn,w.cityAr,w.cityEn,w.summaryAr,w.summaryEn].filter(Boolean).join(" ").toLowerCase().includes(y):!0)},[c,i,a]),x=(c??[]).filter(y=>y.featured).length,f=new Set((c??[]).map(y=>y.category)).size,b=[{id:"flights",name:t==="ar"?"ØªØ°Ø§ÙØ± Ø·ÙØ±Ø§Ù":"Flight Tickets",icon:Hs,desc:t==="ar"?"ØØ¬Ø² ØªØ°Ø§ÙØ± Ø§ÙØ·Ùرا٠ÙÙ
راجعة Ø£ÙØ¶Ù اÙÙ
سارات اÙÙ
ØªØ§ØØ© ÙØ¨Ø±ÙاÙ
جÙ.":"Flight reservations and route review for your selected program."},{id:"visas",name:t==="ar"?"ØªØ£Ø´ÙØ±Ø§Øª Ø§ÙØ³Ùر":"Visa Services",icon:ji,desc:t==="ar"?"دعÙ
Ù
ØªØ·ÙØ¨Ø§Øª Ø§ÙØªØ£Ø´Ùرة ÙØ§ÙÙØ«Ø§Ø¦Ù ÙÙ٠اÙÙØ¬ÙØ© ÙØ§ÙØ¬ÙØ³ÙØ©.":"Visa and document support based on destination and nationality."}];return s.jsxs("div",{"data-loc":"client/src/pages/Destinations.tsx:100",className:"enchanted-page min-h-screen bg-background text-foreground",children:[s.jsx(io,{"data-loc":"client/src/pages/Destinations.tsx:101"}),s.jsxs("section",{"data-loc":"client/src/pages/Destinations.tsx:103",className:"enchanted-inner-hero pt-36",children:[s.jsx("span",{"data-loc":"client/src/pages/Destinations.tsx:104",className:"enchanted-bloom -right-16 top-12 opacity-40","aria-hidden":"true"}),s.jsx("span",{"data-loc":"client/src/pages/Destinations.tsx:105",className:"enchanted-bloom -left-28 bottom-0 scale-75 opacity-20","aria-hidden":"true"}),s.jsx("span",{"data-loc":"client/src/pages/Destinations.tsx:106",className:"enchanted-inner-orbit -right-24 top-6","aria-hidden":"true"}),s.jsx("span",{"data-loc":"client/src/pages/Destinations.tsx:107",className:"enchanted-route-glimmer bottom-20 right-[22%] hidden lg:block","aria-hidden":"true"}),s.jsx("div",{"data-loc":"client/src/pages/Destinations.tsx:108",className:"pointer-events-none absolute inset-0 enchanted-grain opacity-35","aria-hidden":"true"}),s.jsxs("div",{"data-loc":"client/src/pages/Destinations.tsx:109",className:"container relative pb-16 md:pb-24",children:[s.jsxs("div",{"data-loc":"client/src/pages/Destinations.tsx:110",className:"grid items-end gap-10 lg:grid-cols-[minmax(0,1.25fr)_minmax(320px,0.75fr)]",children:[s.jsxs(ts,{"data-loc":"client/src/pages/Destinations.tsx:111",children:[s.jsxs("p",{"data-loc":"client/src/pages/Destinations.tsx:112",className:"enchanted-kicker mb-5 inline-flex items-center gap-2 !text-[#f4d2c9]",children:[s.jsx(pr,{"data-loc":"client/src/pages/Destinations.tsx:113",className:"h-4 w-4"}),t==="ar"?"براÙ
ج ØÙÙÙÙØ© ÙØ£Ø³Ø¹Ø§Ø± Ù
ÙØ´Ùرة":"Real programs · Published pricing"]}),s.jsx("h1",{"data-loc":"client/src/pages/Destinations.tsx:116",className:"enchanted-title max-w-4xl text-5xl font-semibold leading-[0.98] text-[#fff9f4] md:text-7xl",children:t==="ar"?"اختر Ø¨Ø±ÙØ§Ù
Ø¬ÙØ Ø«Ù
ابدأ Ø§ÙØØ¬Ø² Ø¨Ø«ÙØ©":"See the program. Know the details. Book with confidence."}),s.jsx("p",{"data-loc":"client/src/pages/Destinations.tsx:119",className:"mt-6 max-w-2xl text-base leading-8 text-white/65 md:text-lg",children:t==="ar"?"ÙØ§Ø±Ù Ø§ÙØ¨Ø±Ø§Ù
ج اÙÙØ¹ÙÙØ© ØØ³Ø¨ اÙÙØ¬ÙØ© ÙØ§ÙÙ
دة ÙØ§ÙÙÙØ¯Ù ÙØ§ÙØµÙØ§ØÙØ©Ø ÙØ±Ø§Ø¬Ø¹ Ø§ÙØªÙاصÙ٠اÙÙØ§Ù
ÙØ© ÙØ¨Ù Ø¥Ø±Ø³Ø§Ù Ø·ÙØ¨ Ø§ÙØØ¬Ø².":"Compare live programs by destination, duration, hotel and validity, then review the full itinerary before requesting a reservation."})]}),s.jsx(ts,{"data-loc":"client/src/pages/Destinations.tsx:126",delay:.08,direction:n?"left":"right",children:s.jsxs("div",{"data-loc":"client/src/pages/Destinations.tsx:127",className:"enchanted-float-ticket relative overflow-hidden p-5 md:p-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/Destinations.tsx:128",className:"grid grid-cols-3 gap-3 text-center",children:[s.jsx(JT,{"data-loc":"client/src/pages/Destinations.tsx:129",value:c?.length??0,label:t==="ar"?"Ø¨Ø±ÙØ§Ù
ج":"Programs"}),s.jsx(JT,{"data-loc":"client/src/pages/Destinations.tsx:130",value:f,label:t==="ar"?"ÙØ¬ÙØ©":"Destinations"}),s.jsx(JT,{"data-loc":"client/src/pages/Destinations.tsx:131",value:x,label:t==="ar"?"Ù
ختار":"Featured"})]}),s.jsxs("div",{"data-loc":"client/src/pages/Destinations.tsx:133",className:"mt-5 flex items-start gap-3 rounded-[1.2rem] border border-white/14 bg-white/[0.06] p-4 text-sm leading-6 text-white/62",children:[s.jsx(sa,{"data-loc":"client/src/pages/Destinations.tsx:134",className:"mt-0.5 h-5 w-5 shrink-0 text-[#f4d2c9]"}),s.jsx("p",{"data-loc":"client/src/pages/Destinations.tsx:135",children:t==="ar"?"Ø¥Ø±Ø³Ø§Ù Ø§ÙØ·Ùب ÙØ§ ÙØ¹ÙÙ Ø§ÙØ¯Ùع. ÙØ¤Ùد ÙØ±ÙÙÙØ§ Ø§ÙØªÙÙØ± ÙØ§Ùسعر اÙÙÙØ§Ø¦Ù Ø£ÙÙØ§Ù.":"Submitting a request is not a payment. Our team confirms availability and the final price first."})]})]})})]}),s.jsx(ts,{"data-loc":"client/src/pages/Destinations.tsx:145",delay:.12,children:s.jsxs("div",{"data-loc":"client/src/pages/Destinations.tsx:146",className:"relative mt-10 max-w-3xl",children:[s.jsx(so,{"data-loc":"client/src/pages/Destinations.tsx:147",className:"absolute top-1/2 h-5 w-5 -translate-y-1/2 text-primary ltr:left-5 rtl:right-5"}),s.jsx("input",{"data-loc":"client/src/pages/Destinations.tsx:148",value:i,onChange:y=>o(y.target.value),placeholder:t==="ar"?"Ø§Ø¨ØØ« باسÙ
اÙÙØ¬ÙØ© أ٠اÙÙ
دÙÙØ© Ø£Ù Ø§ÙØ¨Ø±ÙاÙ
ج...":"Search by destination, city or program...",className:"enchanted-search-paper min-h-14 w-full rounded-full px-14 py-4 outline-none transition placeholder:text-[#4a3b53]/48 focus:border-[#ae667c]/45 focus:ring-4 focus:ring-[#ae667c]/10","aria-label":t==="ar"?"Ø§ÙØ¨ØØ« ÙÙ Ø§ÙØ¨Ø±Ø§Ù
ج":"Search programs"})]})})]})]}),s.jsx("section",{"data-loc":"client/src/pages/Destinations.tsx:160",className:"enchanted-sticky-strip sticky top-[80px] z-30 border-b py-3",children:s.jsx("div",{"data-loc":"client/src/pages/Destinations.tsx:161",className:"container",children:s.jsxs("div",{"data-loc":"client/src/pages/Destinations.tsx:162",className:"flex gap-2 overflow-x-auto pb-1 scrollbar-hide",role:"list","aria-label":t==="ar"?"تصÙÙÙØ§Øª Ø§ÙØ¨Ø±Ø§Ù
ج":"Program categories",children:[s.jsx(sR,{"data-loc":"client/src/pages/Destinations.tsx:163",active:a==="all",onClick:()=>r("all"),children:e("common.allDestinations")}),m.map(y=>s.jsx(sR,{"data-loc":"client/src/pages/Destinations.tsx:167",active:a===y,onClick:()=>r(y),children:$g[y]?.[t]??e(`dest.${y}`)},y))]})})}),s.jsx("section",{"data-loc":"client/src/pages/Destinations.tsx:175",className:"section-spacing relative overflow-hidden bg-background",children:s.jsxs("div",{"data-loc":"client/src/pages/Destinations.tsx:176",className:"container",children:[s.jsxs("div",{"data-loc":"client/src/pages/Destinations.tsx:177",className:"mb-9 flex flex-col gap-4 md:flex-row md:items-end md:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/pages/Destinations.tsx:178",children:[s.jsx("p",{"data-loc":"client/src/pages/Destinations.tsx:179",className:"enchanted-kicker mb-3",children:t==="ar"?"Ø§ÙØ¨Ø±Ø§Ù
ج اÙÙ
ØªØ§ØØ© Ø§ÙØ¢Ù":"Available now"}),s.jsx("h2",{"data-loc":"client/src/pages/Destinations.tsx:182",className:"enchanted-title text-3xl font-semibold md:text-5xl",children:t==="ar"?"Ø§ÙØ¨Ø±Ø§Ù
ج اÙÙØ¹ÙÙØ© اÙÙ
ÙØ´Ùرة":"Published travel programs"})]}),s.jsxs("div",{"data-loc":"client/src/pages/Destinations.tsx:186",className:"flex items-center gap-3 rounded-full border border-border bg-card px-4 py-2 text-sm text-muted-foreground shadow-sm",children:[s.jsx(ns,{"data-loc":"client/src/pages/Destinations.tsx:187",className:"h-4 w-4 text-[#ae667c]"}),s.jsxs("span",{"data-loc":"client/src/pages/Destinations.tsx:188",children:[h.length," ",t==="ar"?"ÙØªÙجة Ù
Ø·Ø§Ø¨ÙØ©":h.length===1?"matching result":"matching results"]})]})]}),l?s.jsx("div",{"data-loc":"client/src/pages/Destinations.tsx:195",className:"grid gap-7 sm:grid-cols-2 lg:grid-cols-3",children:Array.from({length:6}).map((y,w)=>s.jsxs("div",{"data-loc":"client/src/pages/Destinations.tsx:197",className:"overflow-hidden rounded-[1.75rem] border border-border bg-card",children:[s.jsx("div",{"data-loc":"client/src/pages/Destinations.tsx:198",className:"aspect-[16/10] animate-pulse bg-muted"}),s.jsxs("div",{"data-loc":"client/src/pages/Destinations.tsx:199",className:"space-y-3 p-6",children:[s.jsx("div",{"data-loc":"client/src/pages/Destinations.tsx:200",className:"h-4 w-1/3 animate-pulse rounded bg-muted"}),s.jsx("div",{"data-loc":"client/src/pages/Destinations.tsx:201",className:"h-7 w-4/5 animate-pulse rounded bg-muted"}),s.jsx("div",{"data-loc":"client/src/pages/Destinations.tsx:202",className:"h-14 animate-pulse rounded bg-muted"})]})]},w))}):h.length===0?s.jsxs("div",{"data-loc":"client/src/pages/Destinations.tsx:208",className:"rounded-[2rem] border border-dashed border-primary/30 bg-card px-6 py-16 text-center shadow-sm",children:[s.jsx(mr,{"data-loc":"client/src/pages/Destinations.tsx:209",className:"mx-auto h-10 w-10 text-primary"}),s.jsx("p",{"data-loc":"client/src/pages/Destinations.tsx:210",className:"mt-5 font-display text-2xl font-bold md:text-3xl",children:t==="ar"?"ÙÙ
ÙØ¬Ø¯ Ø¨Ø±ÙØ§Ù
جا٠Ù
Ø·Ø§Ø¨ÙØ§Ù ÙÙØ°Ø§ Ø§ÙØ¨ØØ«":"No published program matches this
945search"}),s.jsx("p",{"data-loc":"client/src/pages/Destinations.tsx:213",className:"mx-auto mt-3 max-w-2xl leading-7 text-muted-foreground",children:t==="ar"?"ÙÙ
ÙÙ ÙÙØ±ÙÙ IBRIX إعداد Ø¨Ø±ÙØ§Ù
ج Ù
خصص ÙØªØ§Ø±Ùخ٠ÙÙ
ÙØ²Ø§ÙÙØªÙ ÙØ§ÙتÙ
اÙ
اتÙ.":"The IBRIX team can prepare a tailored itinerary for your dates, budget and interests."}),s.jsxs(ls,{"data-loc":"client/src/pages/Destinations.tsx:218",href:`/contact?destination=${encodeURIComponent(a==="all"?i||"Custom trip":$g[a]?.en||a)}`,className:"mt-6 inline-flex min-h-12 items-center justify-center gap-2 rounded-full bg-primary px-7 py-3 text-sm font-bold text-primary-foreground transition-transform active:scale-[0.97]",children:[t==="ar"?"Ø§Ø·ÙØ¨ Ø¨Ø±ÙØ§Ù
جا٠Ù
خصصاÙ":"Request a tailored program",s.jsx(ch,{"data-loc":"client/src/pages/Destinations.tsx:223",className:"h-4 w-4"})]})]}):s.jsx("div",{"data-loc":"client/src/pages/Destinations.tsx:227",className:"grid gap-7 sm:grid-cols-2 lg:grid-cols-3",children:h.map(y=>{const w=y,T=d(y.cityAr,y.cityEn)||e(`dest.${y.category}`),A=Array.isArray(w.serviceDetails)?w.serviceDetails.length:0,E=w.validTo?vpe(w.validTo,t):"",D=Array.isArray(w.hotels)?w.hotels.length:0,S=Array.isArray(w.highlights)?w.highlights.length:0,R=D>1,L=Number(y.price),I=!Number.isFinite(L)||L<=0;return s.jsx("div",{"data-loc":"client/src/pages/Destinations.tsx:251",children:s.jsxs("article",{"data-loc":"client/src/pages/Destinations.tsx:252",className:"enchanted-card enchanted-catalog-card group flex h-full flex-col overflow-hidden transition duration-300 hover:-translate-y-1.5 hover:border-[#ae667c]/30 hover:shadow-[0_28px_74px_-34px_rgba(74,59,83,.58)]",children:[s.jsxs(ls,{"data-loc":"client/src/pages/Destinations.tsx:253",href:`/packages/${y.slug}`,className:"enchanted-frame relative block aspect-[16/10] overflow-hidden bg-primary",children:[y.imageUrl?s.jsx("img",{"data-loc":"client/src/pages/Destinations.tsx:255",src:y.imageUrl,alt:d(y.titleAr,y.titleEn),loading:"lazy",className:"h-full w-full object-cover transition-transform duration-700 group-hover:scale-105"}):s.jsx("div",{"data-loc":"client/src/pages/Destinations.tsx:262",className:"absolute inset-0 bg-[radial-gradient(circle_at_75%_20%,rgba(244,210,201,0.42),transparent_28%),linear-gradient(135deg,#4a3b53,#2c212e)]"}),s.jsx("div",{"data-loc":"client/src/pages/Destinations.tsx:264",className:"enchanted-photo-wash absolute inset-0"}),s.jsxs("div",{"data-loc":"client/src/pages/Destinations.tsx:265",className:"absolute inset-x-0 top-0 flex items-start justify-between gap-2 p-4",children:[s.jsx("span",{"data-loc":"client/src/pages/Destinations.tsx:266",className:"rounded-full border border-white/25 bg-[#2c212e]/55 px-3 py-1.5 text-[11px] font-bold uppercase tracking-wide text-white backdrop-blur-md",children:$g[y.category]?.[t]??e(`dest.${y.category}`)}),y.featured&&s.jsxs("span",{"data-loc":"client/src/pages/Destinations.tsx:270",className:"inline-flex items-center gap-1 rounded-full bg-[#f4d2c9] px-3 py-1.5 text-[11px] font-bold text-[#4a3b53] shadow-lg",children:[s.jsx(Tu,{"data-loc":"client/src/pages/Destinations.tsx:271",className:"h-3 w-3 fill-current"}),t==="ar"?"Ù
ختار":"Featured"]})]}),R&&s.jsx("div",{"data-loc":"client/src/pages/Destinations.tsx:278",className:"absolute left-4 top-1/2 -translate-y-1/2 z-[2]",children:s.jsxs("span",{"data-loc":"client/src/pages/Destinations.tsx:279",className:"inline-flex items-center gap-1.5 rounded-full border border-[#C9A961]/40 bg-[#2c212e]/70 px-3 py-1.5 text-[11px] font-bold text-[#C9A961] backdrop-blur-md shadow-lg",children:[s.jsx(Cl,{"data-loc":"client/src/pages/Destinations.tsx:280",className:"h-3.5 w-3.5"}),D," ",t==="ar"?"Ø®ÙØ§Ø±Ø§Øª Ø¥ÙØ§Ù
Ø©":"stay options"]})}),w.ticketRoute&&s.jsx("div",{"data-loc":"client/src/pages/Destinations.tsx:287",className:"absolute right-4 top-1/2 -translate-y-1/2 z-[2] hidden sm:block",children:s.jsxs("span",{"data-loc":"client/src/pages/Destinations.tsx:288",className:"inline-flex items-center gap-1 rounded-full border border-white/20 bg-[#2c212e]/60 px-2.5 py-1 text-[10px] font-mono font-bold text-white/80 backdrop-blur-md",dir:"ltr",children:[s.jsx(rA,{"data-loc":"client/src/pages/Destinations.tsx:289",className:"h-3 w-3 text-[#C9A961]"}),w.ticketRoute]})}),s.jsxs("div",{"data-loc":"client/src/pages/Destinations.tsx:294",className:"absolute inset-x-0 bottom-0 flex items-end justify-between gap-3 p-5 text-white",children:[s.jsxs("span",{"data-loc":"client/src/pages/Destinations.tsx:295",className:"inline-flex items-center gap-1.5 text-sm font-medium",children:[s.jsx(mr,{"data-loc":"client/src/pages/Destinations.tsx:296",className:"h-4 w-4 text-[#f4d2c9]"}),T]}),s.jsx("span",{"data-loc":"client/src/pages/Destinations.tsx:299",className:"rounded-full bg-[#fff9f4] px-3 py-2 text-sm font-black text-[#4a3b53] shadow-xl",children:I?t==="ar"?"Ø§ÙØ³Ø¹Ø± Ø¹ÙØ¯ Ø§ÙØ·Ùب":"Price on request":`${L.toLocaleStr
945ing(t==="ar"?"ar-JO":"en-GB")} ${y.currency||"JOD"}`})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/Destinations.tsx:307",className:"flex flex-1 flex-col p-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/Destinations.tsx:308",className:"mb-3 flex flex-wrap gap-2 text-[11px] font-semibold text-muted-foreground",children:[s.jsxs("span",{"data-loc":"client/src/pages/Destinations.tsx:309",className:"inline-flex items-center gap-1.5 rounded-full bg-secondary px-3 py-1.5",children:[s.jsx(X0,{"data-loc":"client/src/pages/Destinations.tsx:310",className:"h-3.5 w-3.5 text-primary"}),y.durationDays," ",e("common.days")," · ",y.durationNights," ",e("common.night")]}),E&&s.jsxs("span",{"data-loc":"client/src/pages/Destinations.tsx:314",className:"inline-flex items-center gap-1.5 rounded-full bg-secondary px-3 py-1.5",children:[s.jsx(jk,{"data-loc":"client/src/pages/Destinations.tsx:315",className:"h-3.5 w-3.5 text-primary"}),t==="ar"?"ØØªÙ":"Until"," ",E]}),s.jsxs("span",{"data-loc":"client/src/pages/Destinations.tsx:319",className:`inline-flex items-center gap-1.5 rounded-full px-3 py-1.5 ${w.ticketIncluded?"bg-emerald-50 text-emerald-800":"bg-secondary text-muted-foreground"}`,children:[s.jsx(Hs,{"data-loc":"client/src/pages/Destinations.tsx:320",className:"h-3.5 w-3.5"}),w.ticketIncluded?`${t==="ar"?"Ø§ÙØªØ°Ùرة Ù
Ø´Ù
ÙÙØ©":"Ticket included"}${w.ticketRoute?` · ${w.ticketRoute}`:""}`:t==="ar"?"Ø§ÙØªØ°Ùرة ØºÙØ± Ù
Ø´Ù
ÙÙØ©":"Ticket not included"]}),w.ticketIncluded&&w.ticketPriceReviewRequired&&s.jsx("span",{"data-loc":"client/src/pages/Destinations.tsx:326",className:"inline-flex items-center rounded-full bg-amber-50 px-3 py-1.5 text-amber-800",children:t==="ar"?"سعر Ø§ÙØ·Ùرا٠ÙÙØ¯ اÙÙ
راجعة":"Airfare under review"})]}),s.jsx(ls,{"data-loc":"client/src/pages/Destinations.tsx:332",href:`/packages/${y.slug}`,children:s.jsx("h3",{"data-loc":"client/src/pages/Destinations.tsx:333",className:"enchanted-title text-2xl font-semibold leading-tight transition-colors group-hover:text-primary",children:d(y.titleAr,y.titleEn)})}),s.jsx("p",{"data-loc":"client/src/pages/Destinations.tsx:337",className:"mt-3 line-clamp-3 text-sm leading-6 text-muted-foreground",children:d(y.summaryAr,y.summaryEn)||(t==="ar"?"Ø¨Ø±ÙØ§Ù
ج Ø³ÙØ± Ù
ØªÙØ§Ù
Ù Ù
ع ØªÙØ§ØµÙÙ Ø§ÙØ¥ÙاÙ
Ø© ÙØ§ÙخدÙ
ات.":"A complete travel program with accommodation and service details.")}),S>0&&s.jsxs("div",{"data-loc":"client/src/pages/Destinations.tsx:344",className:"mt-4 flex flex-wrap gap-1.5",children:[w.highlights.slice(0,3).map((F,_)=>{const U=d(String(F.ar||""),String(F.en||""));return s.jsxs("span",{"data-loc":"client/src/pages/Destinations.tsx:348",className:"inline-flex items-center gap-1 rounded-full border border-[#C9A961]/20 bg-[#C9A961]/[0.06] px-2.5 py-1 text-[10px] font-semibold text-[#8a7335] dark:text-[#C9A961]",children:[s.jsx(pr,{"data-loc":"client/src/pages/Destinations.tsx:349",className:"h-2.5 w-2.5"}),U.length>30?U.slice(0,30)+"â¦":U]},_)}),S>3&&s.jsxs("span",{"data-loc":"client/src/pages/Destinations.tsx:355",className:"inline-flex items-center rounded-full bg-secondary px-2.5 py-1 text-[10px] font-semibold text-muted-foreground",children:["+",S-3]})]}),s.jsxs("div",{"data-loc":"client/src/pages/Destinations.tsx:362",className:"mt-auto pt-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/Destinations.tsx:363",className:"mb-4 flex flex-wrap items-center justify-between gap-2 border-t border-border/70 pt-4 text-xs text-muted-foreground",children:[s.jsx("span",{"data-loc":"client/src/pages/Destinations.tsx:364",children:w.ticketIncluded?t==="ar"?"Ø§ÙØ¥Ø¬Ù
اÙ٠شاÙ
ÙØ§Ù Ø§ÙØªØ°Ùرة":"Total incl. ticket":t==="ar"?"Ø§ÙØ³Ø¹Ø± Ø§ÙØ£Ø±Ø¶Ù â Ø¯ÙÙ ØªØ°ÙØ±Ø©":"Land price â no ticket"}),s.jsxs("div",{"data-loc":"client/src/pages/Destinations.tsx:369",className:"flex items-center gap-3",children:[D>0&&s.jsxs("span",{"data-loc":"client/src/pages/Destinations.tsx:371",className:"inline-flex items-center gap-1 text-[#8d7293]",children:[s.jsx(Cl,{"data-loc":"client/src/pages/Destinations.tsx:372",className:"h-3.5 w-3.5"}),D," ",t==="ar"?"ÙÙØ¯Ù":"hotels"]}),A>0&&s.jsxs("span",{"data-loc":"client/src/pages/Destinations.tsx:377",className:"inline-flex items-center gap-1 text-[#8d7293]",children:[s.jsx(ns,{"data-loc":"client/src/pages/Destinations.tsx:378",className:"h-3.5 w-3.5"}),A," ",t==="ar"?"خدÙ
ات Ù
ÙØ«ÙØ©":"listed services"]})]})]}),s.jsxs(ls,{"data-loc":"client/src/pages/Destinations.tsx:384",href:`/packages/${y.slug}`,className:"enchanted-button flex min-h-12 w-full items-center justify-center gap-2 bg-primary px-5 py-3 text-sm font-bold text-primary-foreground transition hover:bg-[#4a3b53]",children:[t==="ar"?"عرض Ø§ÙØ¨Ø±ÙاÙ
ج ÙØ§ÙØØ¬Ø²":"View program & reserve",s.jsx(Qb,{"data-loc":"client/src/pages/Destinations.tsx:389",className:`h-4 w-4 ${n?"rotate-180":""}`})]})]})]})]})},y.id)})})]})}),s.jsxs("section",{"data-loc":"client/src/pages/Destinations.tsx:402",className:"relative overflow-hidden border-y border-[#4a3b53]/10 bg-[#f3dde1]/30 py-16 md:py-20",children:[s.jsx("div",{"data-loc":"client/src/pages/Destinations.tsx:403",className:"container",children:s.jsxs("div",{"data-loc":"client/src/pages/Destinations.tsx:404",className:"mb-10 flex flex-col gap-3 md:flex-row md:items-end md:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/pages/Destinations.tsx:405",children:[s.jsx("p",{"data-loc":"client/src/pages/Destinations.tsx:406",className:"enchanted-kicker",children:t==="ar"?"تصÙ
ÙÙ
رØÙØ© خاصة":"Tailor-made travel"}),s.jsx("h2",{"data-loc":"client/src/pages/Destinations.tsx:409",className:"enchanted-title mt-3 text-3xl font-semibold md:text-4xl",children:t==="ar"?"ÙÙ
تجد Ø¨Ø±ÙØ§Ù
Ø¬ÙØ Ø§Ø³ØªÙØ´Ù دÙÙ٠اÙÙØ¬Ùات":"Need something different? Explore the destination directory"})]}),s.jsx("p",{"data-loc":"client/src/pages/Destinations.tsx:413",className:"max-w-xl text-sm leading-7 text-muted-foreground",children:t==="ar"?"ÙÙ ÙØ¬ÙØ© ÙÙ Ø§ÙØ¯ÙÙÙ Ù
ØªØ§ØØ© ÙØ·Ùب عرض خاص ØØ³Ø¨ ØªØ§Ø±ÙØ® Ø§ÙØ³Ùر ÙØ§ÙÙ
ÙØ²Ø§ÙÙØ© ÙØ§ÙØ§ÙØªÙ
اÙ
ات.":"Every destination in the directory is available for a tailored request based on your dates, budget and interests."})]})}),s.jsx(cpe,{"data-loc":"client/src/pages/Destinations.tsx:420",language:t,category:a,query:i})]}),s.jsx("section",{"data-loc":"client/src/pages/Destinations.tsx:423",className:"section-spacing",children:s.jsxs("div",{"data-loc":"client/src/pages/Destinations.tsx:424",className:"container",children:[s.jsxs("div",{"data-loc":"client/src/pages/Destinations.tsx:425",className:"mb-10 text-center",children:[s.jsx("p",{"data-loc":"client/src/pages/Destinations.tsx:426",className:"enchanted-kicker",children:t==="ar"?"Ø¥ÙÙ
ا٠رØÙتÙ":"Complete your trip"}),s.jsx("h2",{"data-loc":"client/src/pages/Destinations.tsx:429",className:"enchanted-title mt-3 text-3xl font-semibold md:text-4xl",children:t==="ar"?"خدÙ
ات Ø³ÙØ± Ù
Ø³Ø§ÙØ¯Ø©":"Supporting travel services"})]}),s.jsx("div",{"data-loc":"client/src/pages/Destinations.tsx:433",className:"mx-auto grid max-w-3xl gap-6 md:grid-cols-2",children:b.map(y=>s.jsxs("article",{"data-loc":"client/src/pages/Destinations.tsx:435",className:"enchanted-card enchanted-catalog-card p-7",children:[s.jsx("div",{"data-loc":"client/src/pages/Destinations.tsx:436",className:"flex h-12 w-12 items-center justify-center rounded-2xl bg-primary/10",children:s.jsx(y.icon,{"data-loc":"client/src/pages/Destinations.tsx:437",className:"h-5 w-5 text-primary"})}),s.jsx("h3",{"data-loc":"client/src/pages/Destinations.tsx:439",className:"mt-5 text-lg font-bold",children:y.name}),s.jsx("p",{"data-loc":"client/src/pages/Destinations.tsx:440",className:"mt-2 text-sm leading-6 text-muted-foreground",children:y.desc})]},y.id))})]})}),s.jsx(oo,{"data-loc":"client/src/pages/Destinations.tsx:447"})]})}function JT({value:e,label:t}){return s.jsxs("div",{"data-loc":"client/src/pages/Destinations.tsx:454",className:"rounded-[1.2rem] border border-white/14 bg-white/[0.06] px-2 py-4",children:[s.jsx("strong",{"data-loc":"client/src/pages/Destinations.tsx:455",className:"block font-display text-2xl text-[#fff9f4] md:text-3xl",children:e}),s.jsx("span",{"data-loc":"client/src/pages/Destinations.tsx:456",className:"mt-1 block text-[11px] text-white/52",children:t})]})}function sR({active:e,onClick:t,children:n}){return s.jsx("button",{"data-loc":"client/src/pages/Destinations.tsx:471",type:"button",onClick:t,"aria-pressed":e,className:`min-h-10 whitespace-nowrap rounded-full px-4 py-2 text-sm font-semibold transition-all active:scale-[0.96] ${e?"bg-primary text-primary-foreground shadow-md":"border border-border bg-card text-foreground
945/75 hover:border-primary/35 hover:text-foreground"}`,children:n})}function KA(e){const t=e+"CollectionProvider",[n,a]=Ll(t),[r,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=y=>{const{scope:w,children:T}=y,A=Lt.useRef(null),E=Lt.useRef(new Map).current;return s.jsx(r,{scope:w,itemMap:E,collectionRef:A,children:T})};o.displayName=t;const c=e+"CollectionSlot",l=D0(c),d=Lt.forwardRef((y,w)=>{const{scope:T,children:A}=y,E=i(c,T),D=Ea(w,E.collectionRef);return s.jsx(l,{ref:D,children:A})});d.displayName=c;const m=e+"CollectionItemSlot",h="data-radix-collection-item",x=D0(m),f=Lt.forwardRef((y,w)=>{const{scope:T,children:A,...E}=y,D=Lt.useRef(null),S=Ea(w,D),R=i(m,T);return Lt.useEffect(()=>(R.itemMap.set(D,{ref:D,...E}),()=>void R.itemMap.delete(D))),s.jsx(x,{[h]:"",ref:S,children:A})});f.displayName=m;function b(y){const w=i(e+"CollectionConsumer",y);return Lt.useCallback(()=>{const A=w.collectionRef.current;if(!A)return[];const E=Array.from(A.querySelectorAll(`[${h}]`));return Array.from(w.itemMap.values()).sort((R,L)=>E.indexOf(R.ref.current)-E.indexOf(L.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:o,Slot:d,ItemSlot:f},b,a]}var wpe=k.createContext(void 0);function G2(e){const t=k.useContext(wpe);return e||t||"ltr"}var WT="rovingFocusGroup.onEntryFocus",Tpe={bubbles:!1,cancelable:!0},J2="RovingFocusGroup",[a7,vz,Npe]=KA(J2),[kpe,Q4]=Ll(J2,[Npe]),[jpe,Ape]=kpe(J2),yz=k.forwardRef((e,t)=>s.jsx(a7.Provider,{scope:e.__scopeRovingFocusGroup,children:s.jsx(a7.Slot,{scope:e.__scopeRovingFocusGroup,children:s.jsx(Epe,{...e,ref:t})})}));yz.displayName=J2;var Epe=k.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:a,loop:r=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:d,preventScrollOnEntryFocus:m=!1,...h}=e,x=k.useRef(null),f=Ea(t,x),b=G2(i),[y,w]=oh({prop:o,defaultProp:c??null,onChange:l,caller:J2}),[T,A]=k.useState(!1),E=ao(d),D=vz(n),S=k.useRef(!1),[R,L]=k.useState(0);return k.useEffect(()=>{const I=x.current;if(I)return I.addEventListener(WT,E),()=>I.removeEventListener(WT,E)},[E]),s.jsx(jpe,{scope:n,orientation:a,dir:b,loop:r,currentTabStopId:y,onItemFocus:k.useCallback(I=>w(I),[w]),onItemShiftTab:k.useCallback(()=>A(!0),[]),onFocusableItemAdd:k.useCallback(()=>L(I=>I+1),[]),onFocusableItemRemove:k.useCallback(()=>L(I=>I-1),[]),children:s.jsx(Vn.div,{tabIndex:T||R===0?-1:0,"data-orientation":a,...h,ref:f,style:{outline:"none",...e.style},onMouseDown:Kt(e.onMouseDown,()=>{S.current=!0}),onFocus:Kt(e.onFocus,I=>{const F=!S.current;if(I.target===I.currentTarget&&F&&!T){const _=new CustomEvent(WT,Tpe);if(I.currentTarget.dispatchEvent(_),!_.defaultPrevented){const U=D().filter(G=>G.focusable),O=U.find(G=>G.active),W=U.find(G=>G.id===y),oe=[O,W,...U].filter(Boolean).map(G=>G.ref.current);Nz(oe,m)}}S.current=!1}),onBlur:Kt(e.onBlur,()=>A(!1))})})}),wz="RovingFocusGroupItem",Tz=k.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:a=!0,active:r=!1,tabStopId:i,children:o,...c}=e,l=fu(),d=i||l,m=Ape(wz,n),h=m.currentTabStopId===d,x=vz(n),{onFocusableItemAdd:f,onFocusableItemRemove:b,currentTabStopId:y}=m;return k.useEffect(()=>{if(a)return f(),()=>b()},[a,f,b]),s.jsx(a7.ItemSlot,{scope:n,id:d,focusable:a,active:r,children:s.jsx(Vn.span,{tabIndex:h?0:-1,"data-orientation":m.orientation,...c,ref:t,onMouseDown:Kt(e.onMouseDown,w=>{a?m.onItemFocus(d):w.preventDefault()}),onFocus:Kt(e.onFocus,()=>m.onItemFocus(d)),onKeyDown:Kt(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){m.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const T=_pe(w,m.orientation,m.dir);if(T!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let E=x().filter(D=>D.focusable).map(D=>D.ref.current);if(T==="last")E.reverse();else if(T==="prev"||T==="next"){T==="prev"&&E.reverse();const D=E.indexOf(w.currentTarget);E=m.loop?Ppe(E,D+1):E.slice(D+1)}setTimeout(()=>Nz(E))}}),children:typeof o=="function"?o({isCurrentTabStop:h,hasTabStop:y!=null}):o})})});Tz.displayName=wz;var Cpe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Spe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function _pe(e,t,n){const a=Spe(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return Cpe[a]}function Nz(e,t=!1){const n=document.activeElement;for(const a of e)if(a===n||(a.focus({preventScroll:t}),document.activeElement!==n))return}function Ppe(e,t){return e.map((n,a)=>e[(t+a)%e.length])}var kz=yz,jz=Tz,s7=["Enter"," "],Dpe=["ArrowDown","PageUp","Home"],Az=["ArrowUp","PageDown","End"],Rpe=[...Dpe,...Az],Ipe={ltr:[...s7,"ArrowRight"],rtl:[...s7,"ArrowLeft"]},Mpe={ltr:["ArrowLeft"],rtl:["ArrowRight"]},W2="Menu",[d2,Lpe,Ope]=KA(W2),[tf,Ez]=Ll(W2,[Ope,gx,Q4]),K4=gx(),Cz=Q4(),[Bpe,nf]=tf(W2),[Fpe,Y2]=tf(W2),Sz=e=>{const{__scopeMenu:t,open:n=!1,children:a,dir:r,onOpenChange:i,modal:o=!0}=e,c=K4(t),[l,d]=k.useState(null),m=k.useRef(!1),h=ao(i),x=G2(r);return k.useEffect(()=>{const f=()=>{m.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>m.current=!1;return document.addEventListener("keydown",f,{capture:!0}),()=>{document.removeEventListener("keydown",f,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),s.jsx(Hj,{...c,children:s.jsx(Bpe,{scope:t,open:n,onOpenChange:h,content:l,onContentChange:d,children:s.jsx(Fpe,{scope:t,onClose:k.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:m,dir:x,modal:o,children:a})})})};Sz.displayName=W2;var Upe="MenuAnchor",ZA=k.forwardRef((e,t)=>
vendor: 13,579 bytes, line 945
945{const{__scopeMenu:n,...a}=e,r=K4(n);return s.jsx(Vj,{...r,...a,ref:t})});ZA.displayName=Upe;var e9="MenuPortal",[Hpe,_z]=tf(e9,{forceMount:void 0}),Pz=e=>{const{__scopeMenu:t,forceMount:n,children:a,container:r}=e,i=nf(e9,t);return s.jsx(Hpe,{scope:t,forceMount:n,children:s.jsx(Uo,{present:n||i.open,children:s.jsx(M2,{asChild:!0,container:r,children:a})})})};Pz.displayName=e9;var Sl="MenuContent",[Vpe,t9]=tf(Sl),Dz=k.forwardRef((e,t)=>{const n=_z(Sl,e.__scopeMenu),{forceMount:a=n.forceMount,...r}=e,i=nf(Sl,e.__scopeMenu),o=Y2(Sl,e.__scopeMenu);return s.jsx(d2.Provider,{scope:e.__scopeMenu,children:s.jsx(Uo,{present:a||i.open,children:s.jsx(d2.Slot,{scope:e.__scopeMenu,children:o.modal?s.jsx(zpe,{...r,ref:t}):s.jsx($pe,{...r,ref:t})})})})}),zpe=k.forwardRef((e,t)=>{const n=nf(Sl,e.__scopeMenu),a=k.useRef(null),r=Ea(t,a);return k.useEffect(()=>{const i=a.current;if(i)return lA(i)},[]),s.jsx(n9,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Kt(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),$pe=k.forwardRef((e,t)=>{const n=nf(Sl,e.__scopeMenu);return s.jsx(n9,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),qpe=D0("MenuContent.ScrollLock"),n9=k.forwardRef((e,t)=>{const{__scopeMenu:n,loop:a=!1,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:c,onEntryFocus:l,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:x,onDismiss:f,disableOutsideScroll:b,...y}=e,w=nf(Sl,n),T=Y2(Sl,n),A=K4(n),E=Cz(n),D=Lpe(n),[S,R]=k.useState(null),L=k.useRef(null),I=Ea(t,L,w.onContentChange),F=k.useRef(0),_=k.useRef(""),U=k.useRef(0),O=k.useRef(null),W=k.useRef("right"),J=k.useRef(0),oe=b?z4:k.Fragment,G=b?{as:qpe,allowPinchZoom:!0}:void 0,K=pe=>{const V=_.current+pe,Y=D().filter(fe=>!fe.disabled),z=document.activeElement,H=Y.find(fe=>fe.ref.current===z)?.textValue,ne=Y.map(fe=>fe.textValue),te=ahe(ne,V,H),me=Y.find(fe=>fe.textValue===te)?.ref.current;(function fe(Ae){_.current=Ae,window.clearTimeout(F.current),Ae!==""&&(F.current=window.setTimeout(()=>fe(""),1e3))})(V),me&&setTimeout(()=>me.focus())};k.useEffect(()=>()=>window.clearTimeout(F.current),[]),cA();const ee=k.useCallback(pe=>W.current===O.current?.side&&rhe(pe,O.current?.area),[]);return s.jsx(Vpe,{scope:n,searchRef:_,onItemEnter:k.useCallback(pe=>{ee(pe)&&pe.preventDefault()},[ee]),onItemLeave:k.useCallback(pe=>{ee(pe)||(L.current?.focus(),R(null))},[ee]),onTriggerLeave:k.useCallback(pe=>{ee(pe)&&pe.preventDefault()},[ee]),pointerGraceTimerRef:U,onPointerGraceIntentChange:k.useCallback(pe=>{O.current=pe},[]),children:s.jsx(oe,{...G,children:s.jsx(H4,{asChild:!0,trapped:r,onMountAutoFocus:Kt(i,pe=>{pe.preventDefault(),L.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:s.jsx(R2,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:x,onDismiss:f,children:s.jsx(kz,{asChild:!0,...E,dir:T.dir,orientation:"vertical",loop:a,currentTabStopId:S,onCurrentTabStopIdChange:R,onEntryFocus:Kt(l,pe=>{T.isUsingKeyboardRef.current||pe.preventDefault()}),preventScrollOnEntryFocus:!0,children:s.jsx(zj,{role:"menu","aria-orientation":"vertical","data-state":Wz(w.open),"data-radix-menu-content":"",dir:T.dir,...A,...y,ref:I,style:{outline:"none",...y.style},onKeyDown:Kt(y.onKeyDown,pe=>{const Y=pe.target.closest("[data-radix-menu-content]")===pe.currentTarget,z=pe.ctrlKey||pe.altKey||pe.metaKey,H=pe.key.length===1;Y&&(pe.key==="Tab"&&pe.preventDefault(),!z&&H&&K(pe.key));const ne=L.current;if(pe.target!==ne||!Rpe.includes(pe.key))return;pe.preventDefault();const me=D().filter(fe=>!fe.disabled).map(fe=>fe.ref.current);Az.includes(pe.key)&&me.reverse(),the(me)}),onBlur:Kt(e.onBlur,pe=>{pe.currentTarget.contains(pe.target)||(window.clearTimeout(F.current),_.current="")}),onPointerMove:Kt(e.onPointerMove,m2(pe=>{const V=pe.target,Y=J.current!==pe.clientX;if(pe.currentTarget.contains(V)&&Y){const z=pe.clientX>J.current?"right":"left";W.current=z,J.current=pe.clientX}}))})})})})})})});Dz.displayName=Sl;var Gpe="MenuGroup",a9=k.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e;return s.jsx(Vn.div,{role:"group",...a,ref:t})});a9.displayName=Gpe;var Jpe="MenuLabel",Rz=k.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e;return s.jsx(Vn.div,{...a,ref:t})});Rz.displayName=Jpe;var C3="MenuItem",rR="menu.itemSelect",Z4=k.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:a,...r}=e,i=k.useRef(null),o=Y2(C3,e.__scopeMenu),c=t9(C3,e.__scopeMenu),l=Ea(t,i),d=k.useRef(!1),m=()=>{const h=i.current;if(!n&&h){const x=new CustomEvent(rR,{bubbles:!0,cancelable:!0});h.addEventListener(rR,f=>a?.(f),{once:!0}),SF(h,x),x.defaultPrevented?d.current=!1:o.onClose()}};return s.jsx(Iz,{...r,ref:l,disabled:n,onClick:Kt(e.onClick,m),onPointerDown:h=>{e.onPointerDown?.(h),d.current=!0},onPointerUp:Kt(e.onPointerUp,h=>{d.current||h.currentTarget?.click()}),onKeyDown:Kt(e.onKeyDown,h=>{const x=c.searchRef.current!=="";n||x&&h.key===" "||s7.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});Z4.displayName=C3;var Iz=k.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:a=!1,textValue:r,...i}=e,o=t9(C3,n),c=Cz(n),l=k.useRef(null),d=Ea(t,l),[m,h]=k.useState(!1),[x,f]=k.useState("");return k.useEffect(()=>{const b=l.current;b&&f((b.textContent??"").trim())},[i.children]),s.jsx(d2.ItemSlot,{scope:n,disabled:a,textValue:r??x,children:s.jsx(jz,{asChild:!0,...c,focusable:!a,children:s.jsx(Vn.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...i,ref:d,onPointerMove:Kt(e.onPointerMove,m2(b=>{a?o.onItemLeave(b):(o.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Kt(e.onPointerLeave,m2(b=>o.onItemLeave(b))),onFocus:Kt(e.onFocus,()=>h(!0)),onBlur:Kt(e.onBlur,()=>h(!1))})})})}),Wpe="MenuCheckboxItem",Mz=k.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:a,...r}=e;return s.jsx(Uz,{scope:e.__scopeMenu,checked:n,children:s.jsx(Z4,{role:"menuitemcheckbox","aria-checked":S3(n)?"mixed":n,...r,ref:t,"data-state":r9(n),onSelect:Kt(r.onSelect,()=>a?.(S3(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Mz.displayName=Wpe;var Lz="MenuRadioGroup",[Ype,Xpe]=tf(Lz,{value:void 0,onValueChange:()=>{}}),Oz=k.forwardRef((e,t)=>{const{value:n,onValueChange:a,...r}=e,i=ao(a);return s.jsx(Ype,{scope:e.__scopeMenu,value:n,onValueChange:i,children:s.jsx(a9,{...r,ref:t})})});Oz.displayName=Lz;var Bz="MenuRadioItem",Fz=k.forwardRef((e,t)=>{const{value:n,...a}=e,r=Xpe(Bz,e.__scopeMenu),i=n===r.value;return s.jsx(Uz,{scope:e.__scopeMenu,checked:i,children:s.jsx(Z4,{role:"menuitemradio","aria-checked":i,...a,ref:t,"data-state":r9(i),onSelect:Kt(a.onSelect,()=>r.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Fz.displayName=Bz;var s9="MenuItemIndicator",[Uz,Qpe]=tf(s9,{checked:!1}),Hz=k.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:a,...r}=e,i=Qpe(s9,n);return s.jsx(Uo,{present:a||S3(i.checked)||i.checked===!0,children:s.jsx(Vn.span,{...r,ref:t,"data-state":r9(i.checked)})})});Hz.displayName=s9;var Kpe="MenuSeparator",Vz=k.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e;return s.jsx(Vn.div,{role:"separator","aria-orientation":"horizontal",...a,ref:t})});Vz.displayName=Kpe;var Zpe="MenuArrow",zz=k.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e,r=K4(n);return s.jsx($j,{...r,...a,ref:t})});zz.displayName=Zpe;var ehe="MenuSub",[GDe,$z]=tf(ehe),ab="MenuSubTrigger",qz=k.forwardRef((e,t)=>{const n=nf(ab,e.__scopeMenu),a=Y2(ab,e.__scopeMenu),r=$z(ab,e.__scopeMenu),i=t9(ab,e.__scopeMenu),o=k.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:l}=i,d={__scopeMenu:e.__scopeMenu},m=k.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return k.useEffect(()=>m,[m]),k.useEffect(()=>{const h=c.current;return()=>{window.clearTimeout(h),l(null)}},[c,l]),s.jsx(ZA,{asChild:!0,...d,children:s.jsx(Iz,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":Wz(n.open),...e,ref:E4(t,r.onTriggerChange),onClick:h=>{e.onClick?.(h),!(e.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Kt(e.onPointerMove,m2(h=>{i.onItemEnter(h),!h.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(i.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),m()},100))})),onPointerLeave:Kt(e.onPointerLeave,m2(h=>{m();const x=n.content?.getBoundingClientRect();if(x){const f=n.content?.dataset.side,b=f==="right",y=b?-5:5,w=x[b?"left":"right"],T=x[b?"right":"left"];i.onPointerGraceIntentChange({area:[{x:h.clientX+y,y:h.clientY},{x:w,y:x.top},{x:T,y:x.top},{x:T,y:x.bottom},{x:w,y:x.bottom}],side:f}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(h),h.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:Kt(e.onKeyDown,h=>{const x=i.searchRef.current!=="";e.disabled||x&&h.key===" "||Ipe[a.dir].includes(h.key)&&(n.onOpenChange(!0),n.content?.focus(),h.preventDefault())})})})});qz.displayName=ab;var Gz="MenuSubContent",Jz=k.forwardRef((e,t)=>{const n=_z(Sl,e.__scopeMenu),{forceMount:a=n.forceMount,...r}=e,i=nf(Sl,e.__scopeMenu),o=Y2(Sl,e.__scopeMenu),c=$z(Gz,e.__scopeMenu),l=k.useRef(null),d=Ea(t,l);return s.jsx(d2.Provider,{scope:e.__scopeMenu,children:s.jsx(Uo,{present:a||i.open,children:s.jsx(d2.Slot,{scope:e.__scopeMenu,children:s.jsx(n9,{id:c.contentId,"aria-labelledby":c.triggerId,...r,ref:d,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{o.isUsingKeyboardRef.current&&l.current?.focus(),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:Kt(e.onFocusOutside,m=>{m.target!==c.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:Kt(e.onEscapeKeyDown,m=>{o.onClose(),m.preventDefault()}),onKeyDown:Kt(e.onKeyDown,m=>{const h=m.currentTarget.contains(m.target),x=Mpe[o.dir].includes(m.key);h&&x&&(i.onOpenChange(!1),c.trigger?.focus(),m.preventDefault())})})})})})});Jz.displayName=Gz;function Wz(e){return e?"open":"closed"}function S3(e){return e==="indeterminate"}function r9(e){return S3(e)?"indeterminate":e?"checked":"unchecked"}function the(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function nhe(e,t){return e.map((n,a)=>e[(t+a)%e.length])}function ahe(e,t,n){const r=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let o=nhe(e,Math.max(i,0));r.length===1&&(o=o.filter(d=>d!==n));const l=o.find(d=>d.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function she(e,t){const{x:n,y:a}=e;let r=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const c=t[i],l=t[o],d=c.x,m=c.y,h=l.x,x=l.y;m>a!=x>a&&n<(h-d)*(a-m)/(x-m)+d&&(r=!r)}return r}function rhe(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return she(n,t)}function m2(e){return t=>t.pointerType==="mouse"?e(t):void 0}var ihe=Sz,ohe=ZA,che=Pz,lhe=Dz,uhe=a9,dhe=Rz,mhe=Z4,phe=Mz,hhe=Oz,fhe=Fz,ghe=Hz,xhe=Vz,bhe=zz,vhe=qz,yhe=Jz,e6="DropdownMenu",[whe]=Ll(e6,[Ez]),Ho=Ez(),[The,Yz]=whe(e6),Xz=e=>{const{__scopeDropdownMenu:t,children:n,dir:a,open:r,defaultOpen:i,onOpenChange:o,modal:c=!0}=e,l=Ho(t),d=k.useRef(null),[m,h]=oh({prop:r,defaultProp:i??!1,onChange:o,caller:e6});return s.jsx(The,{scope:t,triggerId:fu(),triggerRef:d,contentId:fu(),open:m,onOpenChange:h,onOpenToggle:k.useCallback(()=>h(x=>!x),[h]),modal:c,children:s.jsx(ihe,{...l,open:m,onOpenChange:h,dir:a,modal:c,children:n})})};Xz.displayName=e6;var Qz="DropdownMenuTrigger",Kz=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:a=!1,...r}=e,i=Yz(Qz,n),o=Ho(n);return s.jsx(ohe,{asChild:!0,...o,children:s.jsx(Vn.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...r,ref:E4(t,i.triggerRef),onPointerDown:Kt(e.onPointerDown,c=>{!a&&c.button===0&&c.ctrlKey===!1&&(i.onOpenToggle(),i.open||c.preventDefault())}),onKeyDown:Kt(e.onKeyDown,c=>{a||(["Enter"," "].includes(c.key)&&i.onOpenToggle(),c.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});Kz.displayName=Qz;var Nhe="DropdownMenuPortal",Zz=e=>{const{__scopeDropdownMenu:t,...n}=e,a=Ho(t);return s.jsx(che,{...a,...n})};Zz.displayName=Nhe;var e$="DropdownMenuContent",t$=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Yz(e$,n),i=Ho(n),o=k.useRef(!1);return s.jsx(lhe,{id:r.contentId,"aria-labelledby":r.triggerId,...i,...a,ref:t,onCloseAutoFocus:Kt(e.onCloseAutoFocus,c=>{o.current||r.triggerRef.current?.focus(),o.current=!1,c.preventDefault()}),onInteractOutside:Kt(e.onInteractOutside,c=>{const l=c.detail.originalEvent,d=l.button===0&&l.ctrlKey===!0,m=l.button===2||d;(!r.modal||m)&&(o.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)"}})});t$.displayName=e$;var khe="DropdownMenuGroup",jhe=k.forwardRef((e,t)=>
945{const{__scopeDropdownMenu:n,...a}=e,r=Ho(n);return s.jsx(uhe,{...r,...a,ref:t})});jhe.displayName=khe;var Ahe="DropdownMenuLabel",Ehe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Ho(n);return s.jsx(dhe,{...r,...a,ref:t})});Ehe.displayName=Ahe;var Che="DropdownMenuItem",n$=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Ho(n);return s.jsx(mhe,{...r,...a,ref:t})});n$.displayName=Che;var She="DropdownMenuCheckboxItem",_he=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Ho(n);return s.jsx(phe,{...r,...a,ref:t})});_he.displayName=She;var Phe="DropdownMenuRadioGroup",Dhe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Ho(n);return s.jsx(hhe,{...r,...a,ref:t})});Dhe.displayName=Phe;var Rhe="DropdownMenuRadioItem",Ihe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Ho(n);return s.jsx(fhe,{...r,...a,ref:t})});Ihe.displayName=Rhe;var Mhe="DropdownMenuItemIndicator",Lhe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Ho(n);return s.jsx(ghe,{...r,...a,ref:t})});Lhe.displayName=Mhe;var Ohe="DropdownMenuSeparator",Bhe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Ho(n);return s.jsx(xhe,{...r,...a,ref:t})});Bhe.displayName=Ohe;var Fhe="DropdownMenuArrow",Uhe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Ho(n);return s.jsx(bhe,{...r,...a,ref:t})});Uhe.displayName=Fhe;var Hhe="DropdownMenuSubTrigger",Vhe=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Ho(n);return s.jsx(vhe,{...r,...a,ref:t})});Vhe.displayName=Hhe;var zhe="DropdownMenuSubContent",$he=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Ho(n);return s.jsx(yhe,{...r,...a,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)"}})});$he.displayName=zhe;var qhe=Xz,Ghe=Kz,Jhe=Zz,Whe=t$,Yhe=n$;function Xhe({...e}){return s.jsx(qhe,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:10","data-slot":"dropdown-menu",...e})}function Qhe({...e}){return s.jsx(Ghe,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:25","data-slot":"dropdown-menu-trigger",...e})}function Khe({className:e,sideOffset:t=4,...n}){return s.jsx(Jhe,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:38",children:s.jsx(Whe,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:39","data-slot":"dropdown-menu-content",sideOffset:t,className:an("bg-popover text-popover-foreground 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 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n})})}function iR({className:e,inset:t,variant:n="default",...a}){return s.jsx(Yhe,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:70","data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:an("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...a})}function i9({url:e,title:t,text:n,className:a="",variant:r="button"}){const{t:i,lang:o}=zs(),[c,l]=k.useState(!1),d=e.startsWith("http")?e:`${window.location.origin}${e}`,m=`${t} 946${n} 947${d}`,h=[{name:"WhatsApp",color:"#25D366",href:`https://wa.me/?text=${encodeURIComponent(m)}`,icon:s.jsx("svg",{"data-loc":"client/src/components/ShareMenu.tsx:38",className:"w-4 h-4",fill:"
947currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{"data-loc":"client/src/components/ShareMenu.tsx:39",d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884"})})},{name:"Telegram",color:"#0088cc",href:`https://t.me/share/url?url=${encodeURIComponent(d)}&text=${encodeURIComponent(`${t} 948${n}`)}`,icon:s.jsx("svg",{"data-loc":"client/src/components/ShareMenu.tsx:48",className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{"data-loc":"client/src/components/ShareMenu.tsx:49",d:"M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.479.329-.913.489-1.302.481-.428-.009-1.252-.242-1.865-.44-.752-.244-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"})})},{name:"Facebook",color:"#1877F2",href:`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(d)}`,icon:s.jsx("svg",{"data-loc":"client/src/components/ShareMenu.tsx:58",className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{"data-loc":"client/src/components/ShareMenu.tsx:59",d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})})},{name:o==="ar"?"Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ":"Email",color:"#C9A961",href:`mailto:?subject=${encodeURIComponent(t)}&body=${encodeURIComponent(m)}`,icon:s.jsx(Pd,{"data-loc":"client/src/components/ShareMenu.tsx:67",className:"w-4 h-4"})}],x=async()=>{try{await navigator.clipboard.writeText(d),l(!0),Le.success(o==="ar"?"ØªÙ ÙØ³Ø® Ø§ÙØ±Ø§Ø¨Ø·":"Link copied"),setTimeout(()=>l(!1),2e3)}catch{Le.error(o==="ar"?"تعذر اÙÙØ³Ø®":"Copy failed")}};return s.jsxs(Xhe,{"data-loc":"client/src/components/ShareMenu.tsx:83",children:[s.jsx(Qhe,{"data-loc":"client/src/components/ShareMenu.tsx:84",asChild:!0,children:r==="icon"?s.jsx("button",{"data-loc":"client/src/components/ShareMenu.tsx:86",className:`inline-flex items-center justify-center w-10 h-10 rounded-full border border-border hover:bg-accent transition-colors active:scale-95 ${a}`,"aria-label":i("share.title"),children:s.jsx(yP,{"data-loc":"client/src/components/ShareMenu.tsx:90",className:"w-4 h-4"})}):s.jsxs("button",{"data-loc":"client/src/components/ShareMenu.tsx:93",className:`inline-flex items-center gap-2 px-5 py-3 rounded-full border border-[#C9A961] text-[#C9A961] font-semibold text-sm hover:bg-[#C9A961] hover:text-white transition-colors active:scale-95 ${a}`,children:[s.jsx(yP,{"data-loc":"client/src/components/ShareMenu.tsx:96",className:"w-4 h-4"}),i("share.title")]})}),s.jsxs(Khe,{"data-loc":"client/src/components/ShareMenu.tsx:101",align:"end",className:"w-52",children:[h.map(f=>s.jsx(iR,{"data-loc":"client/src/components/ShareMenu.tsx:103",asChild:!0,children:s.jsxs("a",{"data-loc":"client/src/components/ShareMenu.tsx:104",href:f.href,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 cursor-pointer",children:[s.jsx("span",{"data-loc":"client/src/components/ShareMenu.tsx:105",style:{color:f.color},children:f.icon}),s.jsx("span",{"data-loc":"client/src/components/ShareMenu.tsx:106",children:f.name})]})},f.name)),s.jsxs(iR,{"data-loc":"client/src/components/ShareMenu.tsx:110",onClick:x,className:"flex items-center gap-3 cursor-pointer",children:[s.jsx("span",{"data-loc":"client/src/components/ShareMenu.tsx:111",className:"text-muted-foreground",children:c?s.jsx(bc,{"data-loc":"client/src/components/ShareMenu.tsx:111",className:"w-4 h-4 text-green-600"}):s.jsx(aA,{"data-loc":"client/src/components/ShareMenu.tsx:111",className:"w-4 h-4"})}),s.jsx("span",{"data-loc":"client/src/components/ShareMenu.tsx:112",children:c?o==="ar"?"ت٠اÙÙØ³Ø®":"Copied":i("share.copy")})]})]})]})}function W5(e){const t=Number(e);return Number.isFinite(t)&&t>=0?t:null}function A1(e,t,n){const a=W5(e);return a===null||a<=0?t==="ar"?"Ø§ÙØ³Ø¹Ø± Ø¹ÙØ¯ Ø§ÙØ·Ùب":"Price on request":`${a.toLocaleStr
948ing(t==="ar"?"ar-JO":"en-JO",{maximumFractionDigits:2})} ${n}`}function Zhe(e,t){return t==="per_room"?e==="ar"?"ÙÙØºØ±ÙØ©":"per room":t==="per_package"?e==="ar"?"ÙÙØ¨Ø±ÙاÙ
ج":"per package":e==="ar"?"ÙÙÙØ±Ø¯":"per person"}function o9({lang:e,currency:t,totalPrice:n,landPrice:a,ticketIncluded:r,ticketPrice:i,ticketRoute:o,priceBasis:c,ticketPriceReviewRequired:l,variant:d="light",compact:m=!1,className:h=""}){const x=e==="ar",f=t||"JOD",b=W5(n),y=W5(a),w=W5(i),T=d==="dark",A=y??(r&&b!==null&&w!==null?Math.max(0,b-w):b),E=b===null||b<=0,D=!!(r&&w!==null&&w>0),S=!!(r&&b!==null&&b>0&&y===0&&w!==null&&Math.abs(w-b)<.01);return s.jsxs("section",{"data-loc":"client/src/components/PackagePriceBreakdown.tsx:74",className:`${T?"border-white/12 bg-white/[0.06] text-white":"border-border/80 bg-card text-card-foreground"} rounded-2xl border ${m?"p-4":"p-5 sm:p-6"} ${h}`,"aria-label":x?"ØªÙØµÙ٠سعر Ø§ÙØ¨Ø±ÙاÙ
ج":"Program price breakdown",children:[s.jsxs("div",{"data-loc":"client/src/components/PackagePriceBreakdown.tsx:78",className:"flex flex-wrap items-start justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/components/PackagePriceBreakdown.tsx:79",children:[s.jsx("p",{"data-loc":"client/src/components/PackagePriceBreakdown.tsx:80",className:`text-[10px] font-bold uppercase tracking-[0.16em] ${T?"text-white/48":"text-muted-foreground"}`,children:E?x?"ØØ§ÙØ© Ø§ÙØ³Ø¹Ø±":"Price status":x?"Ø§ÙØ¥Ø¬Ù
اÙ٠اÙÙ
ÙØ´Ùر":"Published total"}),s.jsx("p",{"data-loc":"client/src/components/PackagePriceBreakdown.tsx:85",className:`${m?"text-2xl":"text-3xl sm:text-4xl"} mt-1 font-display font-bold`,children:A1(n,e,f)}),s.jsx("p",{"data-loc":"client/src/components/PackagePriceBreakdown.tsx:88",className:`mt-1 text-xs ${T?"text-white/52":"text-muted-foreground"}`,children:E?x?"ÙÙØ¤ÙÙÙØ¯ بعرض Ù
ÙØªÙب بعد Ù
راجعة Ø§ÙØªÙØ§ÙØ±":"Confirmed by written quote after availability review":Zhe(e,c)})]}),s.jsxs("span",{"data-loc":"client/src/components/PackagePriceBreakdown.tsx:94",className:`inline-flex items-center gap-2 rounded-full px-3 py-1.5 text-[11px] font-bold ${r?T?"bg-emerald-400/15 text-emerald-200":"bg-emerald-50 text-emerald-800":T?"bg-white/10 text-white/68":"bg-muted text-muted-foreground"}`,children:[s.jsx(Hs,{"data-loc":"client/src/components/PackagePriceBreakdown.tsx:95",className:"h-3.5 w-3.5","aria-hidden":"true"}),r?x?"Ø§ÙØªØ°Ùرة Ù
Ø´Ù
ÙÙØ©":"Ticket included":x?"Ø§ÙØªØ°Ùرة ØºÙØ± Ù
Ø´Ù
ÙÙØ©":"Ticket not included"]})]}),S&&s.jsx("div",{"data-loc":"client/src/components/PackagePriceBreakdown.tsx:103",className:`mt-4 rounded-xl px-3 py-2.5 text-xs leading-5 ${T?"bg-[#c9a961]/12 text-[#f0dfaa]":"bg-[#f6edcf] text-[#6f5522]"}`,children:x?"Ø¨Ø§ÙØ© IBRIX اÙÙ
عتÙ
دة: Ø§ÙØ³Ø¹Ø± ÙÙÙØ±Ø¯ ÙÙØ´Ù
Ù Ø§ÙØ·ÙØ±Ø§Ù ÙØ§ÙØ¥ÙØ§Ù
Ø© ÙØ§ÙخدÙ
ات اÙÙ
ذÙÙØ±Ø©Ø ÙÙØ®Ø¶Ø¹ ÙÙØªÙÙØ± Ø¹ÙØ¯ Ø§ÙØªØ£ÙÙØ¯.":"IBRIX approved package: the per-person price includes airfare, accommodation, and the listed services, subject to availability at confirmation."}),!m&&s.jsx("div",{"data-loc":"client/src/components/PackagePriceBreakdown.tsx:111",className:`mt-5 grid gap-2.5 border-t pt-4 text-sm ${T?"border-white/10":"border-border/70"}`,children:S?s.jsx(wy,{"data-loc":"client/src/components/PackagePriceBreakdown.tsx:113",icon:Hs,label:x?"Ø§ÙØ³Ø¹Ø± Ø§ÙØ´Ø§Ù
Ù":"Complete package price",value:A1(n,e,f),dark:T,strong:!0}):s.jsxs(s.Fragment,{children:[s.jsx(wy,{"data-loc":"client/src/components/PackagePriceBreakdown.tsx:122",icon:M0,label:x?"Ø§ÙØ®Ø¯Ù
ات Ø§ÙØ£Ø±Ø¶ÙØ©":"Land services",value:A1(A,e,f),dark:T}),r&&s.jsx(wy,{"data-loc":"client/src/components/PackagePriceBreakdown.tsx:129",icon:Hs,label:x?"ØªØ°ÙØ±Ø© Ø§ÙØ·ÙراÙ":"Flight ticket",value:D?A1(w,e,f):x?"ØªØØªØ§Ø¬ Ù
راجعة":"Review required",dark:T}),s.jsx(wy,{"data-loc":"client/src/components/PackagePriceBreakdown.tsx:136",icon:lh,label:x?"Ø§ÙØ¥Ø¬Ù
اÙÙ":"Total",value:A1(n,e,f),dark:T,strong:!0})]})}),r&&o&&s.jsxs("div",{"data-loc":"client/src/components/PackagePriceBreakdown.tsx:149",className:`mt-4 flex items-center gap-2 rounded-xl px-3 py-2 text-xs font-semibold ${T?"bg-black/15 text-white/70":"bg-secondary/65 text-secondary-foreground"}`,dir:"ltr",children:[s.jsx(UU,{"data-loc":"client/src/components/PackagePriceBreakdown.tsx:150",className:"h-3.5 w-3.5 shrink-0","aria-hidden":"true"}),s.jsx("span",{"data-loc":"client/src/components/PackagePriceBreakdown.tsx:151",className:"tracking-[0.08em]",children:o})]}),r&&l&&s.jsxs("div",{"data-loc":"client/src/components/PackagePriceBreakdown.tsx:156",className:`mt-3 flex items-start gap-2 rounded-xl px-3 py-2.5 text-xs leading-5 ${T?"bg-amber-300/10 text-amber-100":"bg-amber-50 text-amber-900"}`,role:"status",children:[s.jsx(zi,{"data-loc":"client/src/components/PackagePriceBreakdown.tsx:157",className:"mt-0.5 h-3.5 w-3.5 shrink-0","aria-hidden":"true"}),s.jsx("span",{"data-loc":"client/src/components/PackagePriceBreakdown.tsx:158",children:x?"سعر Ø§ÙØªØ°Ùرة Ù
ÙØ«ÙÙ ÙÙÙÙ ÙØØªØ§Ø¬ Ù
راجعة ÙØ±ÙÙ IBRIX ÙØ¨Ù Ø§ÙØªØ£ÙÙØ¯ اÙÙÙØ§Ø¦Ù.":"The ticket price is documented but requires IBRIX review before final confirmation."})]})]})}function wy({icon:e,label:t,value:n,dark:a,strong:r=!1}){return s.jsxs("div",{"data-loc":"client/src/components/PackagePriceBreakdown.tsx:183",className:"flex items-center justify-between gap-4",children:[s.jsxs("span",{"data-loc":"client/src/components/PackagePriceBreakdown.tsx:184",className:`inline-flex items-center gap-2 ${a?"text-white/62":"text-muted-foreground"}`,children:[s.jsx(e,{"data-loc":"client/src/components/PackagePriceBreakdown.tsx:185",className:"h-4 w-4 shrink-0","aria-hidden":"true"}),t]}),s.jsx("strong",{"data-loc":"client/src/components/PackagePriceBreakdown.tsx:188",className:r?a?"text-white":"text-foreground":"font-semibold",children:n})]})}const a$=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],oR={sun:"sunday",sunday:"sunday",Ø§ÙØ£ØØ¯:"sunday",Ø§ÙØ§ØØ¯:"sunday",mon:"monday",monday:"monday",Ø§ÙØ§Ø«ÙÙÙ:"monday",tue:"tuesday",tues:"tuesday",tuesday:"tuesday",Ø§ÙØ«Ùاثاء:"tuesday",wed:"wednesday",wednesday:"wednesday",Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡:"wednesday",Ø§ÙØ§Ø±Ø¨Ø¹Ø§Ø¡:"wednesday",thu:"thursday",thur:"thursday",thurs:"thursday",thursday:"thursday",Ø§ÙØ®Ù
ÙØ³:"thursday",fri:"friday",friday:"friday",Ø§ÙØ¬Ù
عة:"friday",sat:"saturday",saturday:"saturday",Ø§ÙØ³Ø¨Øª:"saturday"};function s$(e){const t=new Set,n=(e||[]).every(a=>String(a).trim().length<=1)?[(e||[]).join("")]:e||[];for(const a of n){const r=String(a).trim().toLowerCase(),i=oR[r];if(i){t.add(i);continue}for(const[o,c]of Object.entries(oR))o.length>2&&r.includes(o)&&t.add(c)}return a$.filter(a=>t.has(a))}function e0e(e,t){const n=s$(t);if(!n.length)return!0;const a=new Date(`${e}T12:00:00Z`);return Number.isNaN(a.getTime())?!1:n.includes(a$[a.getUTCDay()])}function t0e(e){const t=(e.childrenAges||[]).filter(a=>Number.isFinite(a)&&a>=0&&a<2).length,n=e.ticketIncluded?Math.max(0,e.adults)*2:Number.POSITIVE_INFINITY;return{infantCount:t,maxInfants:n,isValid:t<=n}}const n0e=[{value:"double",ar:"Ø«ÙØ§Ø¦ÙØ©",en:"Double"},{value:"triple",ar:"Ø«ÙØ§Ø«ÙØ©",en:"Triple"},{value:"quad",ar:"Ø±Ø¨Ø§Ø¹ÙØ©",en:"Quad"},{value:"single",ar:"Ù
ÙØ±Ø¯Ø©",en:"Single"}],a0e=["dates","stay","travellers","contact","terms"];
948function r$({open:e,onOpenChange:t,lang:n,packageSlug:a,packageTitle:r,hotelOptions:i,currency:o,packagePrice:c,landPrice:l,ticketIncluded:d,ticketPrice:m,ticketRoute:h,priceBasis:x,ticketPriceReviewRequired:f,packageCity:b,packageImage:y,durationDays:w,durationNights:T,validFrom:A,validTo:E,bookingDeadline:D,operatingDays:S}){const R=n==="ar",L=q2(),I=(tt,Ot)=>R?tt:Ot,F=k.useMemo(()=>bpe({validFrom:A,validTo:E,bookingDeadline:D}),[A,E,D]),_=F.minDate,U=F.maxDate||void 0,O=F.isExpired||F.invalidFields.length>0,W=k.useMemo(()=>s$(S),[S]),J=!!(d&&W.length>0),oe=c&&Number.isFinite(Number(c))?`${Number(c).toLocaleString(R?"ar-JO":"en-JO",{maximumFractionDigits:2})} ${o||"JOD"}`:I("Ø§ÙØ³Ø¹Ø± Ø¹ÙØ¯ Ø§ÙØ·Ùب","Price on request"),G=w?I(`${w} Ø£ÙØ§Ù
${T?` / ${T} ÙÙØ§ÙÙ`:""}`,`${w} days${T?` / ${T} nights`:""}`):null,K=tt=>QA(tt,R?"ar-JO":"en-GB"),[ee,pe]=k.useState(0),[V,Y]=k.useState(""),[z,H]=k.useState(""),[ne,te]=k.useState(""),[me,fe]=k.useState("double"),[Ae,xe]=k.useState(1),[ae,le]=k.useState(0),[ze,pt]=k.useState([]),[xt,be]=k.useState(""),[Tt,Xt]=k.useState(""),[Jt,it]=k.useState(""),[at,ct]=k.useState(""),[Ct,Ht]=k.useState(!1),[wn,Hn]=k.useState(null),qe=!V||!J||e0e(V,W),dt=xpe(V,z,w),Dt=t0e({ticketIncluded:!!d,adults:Ae,childrenAges:ze}),yt=Pe.bookings.terms.useQuery(void 0,{enabled:e}),Mt=Pe.bookings.create.useMutation({onSuccess:tt=>{Hn(tt.reference),Le.success(I("تÙ
Ø§Ø³ØªÙØ§Ù
Ø·ÙØ¨ Ø§ÙØØ¬Ø²","Booking request received"))},onError:tt=>Le.error(tt.message||I("ØªØ¹Ø°ÙØ± Ø¥Ø±Ø³Ø§Ù Ø§ÙØ·ÙØ¨Ø ØØ§ÙÙ Ù
Ø¬Ø¯Ø¯ÙØ§","Could not submit, please try again"))}),zt=tt=>{const Ot=Math.max(0,Math.min(10,tt));le(Ot),pt(Zn=>{const Tn=[...Zn];Tn.length=Ot;for(let qt=0;qt<Ot;qt++)Tn[qt]===void 0&&(Tn[qt]=5);return Tn})},ca=()=>{pe(0),Y(""),H(""),te(""),fe("double"),xe(1),le(0),pt([]),be(""),Xt(""),it(""),ct(""),Ht(!1),Hn(null)},jn=tt=>{t(tt),tt||setTimeout(ca,250)},Qt=a0e[ee],xn=k.useMemo(()=>{switch(Qt){case"dates":return!!(!O&&qe&&V&&V>=_&&(!U||V<=U)&&(!z||z>=V)&&dt);case"stay":return!!me;case"travellers":return Ae>=1&&ze.every(tt=>tt>=0&&tt<=17)&&Dt.isValid;case"contact":return xt.trim().length>=2&&Tt.trim().length>=5;case"terms":return Ct;default:return!0}},[Qt,V,z,me,Ae,ze,xt,Tt,Ct,_,U,O,qe,dt,w,Dt.isValid]),bn=()=>{Ct&&Mt.mutate({packageSlug:a,packageTitle:r,fullName:xt.trim(),phone:Tt.trim(),email:Jt.trim()||void 0,travelDate:V||void 0,returnDate:z||void 0,hotelOption:ne||void 0,roomType:me,adults:Ae,children:ae,childrenAges:ae>0?ze:void 0,notes:at.trim()||void 0,termsAccepted:!0})},rn=[{key:"dates",icon:Xb,label:I("Ø§ÙØªÙØ§Ø±ÙØ®","Dates")},{key:"stay",icon:Cl,label:I("Ø§ÙØ¥ÙاÙ
Ø©","Stay")},{key:"travellers",icon:Dl,label:I("اÙÙ
Ø³Ø§ÙØ±ÙÙ","Travellers")},{key:"contact",icon:I0,label:I("Ø§ÙØªÙاصÙ","Contact")},{key:"terms",icon:B5,label:I("Ø§ÙØ´Ø±ÙØ·","Terms")}],He="w-full rounded-xl border border-border bg-background px-4 py-3 text-foreground outline-none transition focus:border-[#C9A961] focus:ring-2 focus:ring-[#C9A961]/30";return s.jsx(Ba,{"data-loc":"client/src/components/BookingDialog.tsx:253",open:e,onOpenChange:tt=>{Mt.isPending||jn(tt)},children:s.jsxs(Fa,{"data-loc":"client/src/components/BookingDialog.tsx:256",dir:R?"rtl":"ltr","aria-busy":Mt.isPending,className:"w-[96vw] max-w-5xl max-h-[94vh] overflow-hidden border-[#C9A961]/20 p-0 gap-0 shadow-[0_30px_90px_rgba(15,22,35,0.32)]",children:[s.jsx(Ua,{"data-loc":"client/src/components/BookingDialog.tsx:261",className:"sr-only",children:I(`Ø·ÙØ¨ ØØ¬Ø² Ø¢Ù
Ù â ${r}`,`Secure booking request â ${r}`)}),s.jsxs("div",{"data-loc":"client/src/components/BookingDialog.tsx:265",className:"relative overflow-hidden bg-[#0f1623] text-white",children:[y&&s.jsx("img",{"data-loc":"client/src/components/BookingDialog.tsx:267",src:y,alt:"",className:"absolute inset-0 h-full w-full object-cover opacity-20"}),s.jsx("div",{"data-loc":"client/src/components/BookingDialog.tsx:273",className:"absolute inset-0 bg-gradient-to-r from-[#0f1623] via-[#0f1623]/95 to-[#152238]/80"}),s.jsxs("div",{"data-loc":"client/src/components/BookingDialog.tsx:274",className:"relative grid gap-5 px-5 pb-5 pt-6 sm:px-7 lg:grid-cols-[1.25fr_0.75fr] lg:items-end",children:[s.jsxs("div",{"data-loc":"client/src/components/BookingDialog.tsx:275",children:[s.jsxs("div",{"data-loc":"client/src/components/BookingDialog.tsx:276",className:"mb-3 inline-flex items-center gap-2 rounded-full border border-[#C9A961]/30 bg-[#C9A961]/10 px-3 py-1.5 text-[10px] font-bold uppercase tracking-[0.2em] text-[#E6D39A]",children:[s.jsx(sa,{"data-loc":"client/src/components/BookingDialog.tsx:277",className:"h-3.5 w-3.5","aria-hidden":"true"}),I("Ø·ÙØ¨ ØØ¬Ø² Ø¢Ù
Ù","Secure booking request")]}),s.jsx("h3",{"data-loc":"client/src/components/BookingDialog.tsx:280",className:"font-display text-2xl font-bold leading-tight sm:text-3xl",children:r}),s.jsxs("div",{"data-loc":"client/src/components/BookingDialog.tsx:281",className:"mt-4 flex flex-wrap gap-2 text-xs text-white/75",children:[b&&s.jsxs("span",{"data-loc":"client/src/components/BookingDialog.tsx:283",className:"inline-flex items-center gap-1.5 rounded-full bg-white/8 px-3 py-1.5",children:[s.jsx(mr,{"data-loc":"client/src/components/BookingDialog.tsx:284",className:"h-3.5 w-3.5 text-[#C9A961]","aria-hidden":"true"}),b]}),G&&s.jsxs("span",{"data-loc":"client/src/components/BookingDialog.tsx:289",className:"inline-flex items-center gap-1.5 rounded-full bg-white/8 px-3 py-1.5",children:[s.jsx(X0,{"data-loc":"client/src/components/BookingDialog.tsx:290",className:"h-3.5 w-3.5 text-[#C9A961]","aria-hidden":"true"}),G]}),s.jsxs("span",{"data-loc":"client/src/components/BookingDialog.tsx:294",className:"inline-flex items-center gap-1.5 rounded-full bg-white/8 px-3 py-1.5",children:[s.jsx(M0,{"data-loc":"client/src/components/BookingDialog.tsx:295",className:"h-3.5 w-3.5 text-[#C9A961]","aria-hidden":"true"}),I("ابتداء٠Ù
Ù","From")," ",oe]})]})]}
948),(F.validFrom||F.validTo||F.bookingDeadline||O)&&s.jsxs("div",{"data-loc":"client/src/components/BookingDialog.tsx:302",className:"rounded-2xl border border-white/10 bg-white/[0.06] p-4 backdrop-blur-sm",children:[s.jsx("p",{"data-loc":"client/src/components/BookingDialog.tsx:303",className:"text-[10px] font-bold uppercase tracking-[0.18em] text-[#C9A961]",children:I("ÙØ§Ùذة Ø§ÙØ¨Ø±ÙاÙ
ج","Program window")}),s.jsxs("div",{"data-loc":"client/src/components/BookingDialog.tsx:306",className:"mt-2 grid grid-cols-2 gap-3 text-xs",children:[(F.validFrom||F.validTo)&&s.jsxs("div",{"data-loc":"client/src/components/BookingDialog.tsx:308",children:[s.jsx("span",{"data-loc":"client/src/components/BookingDialog.tsx:309",className:"block text-white/45",children:I("Ø§ÙØµÙاØÙØ©","Validity")}),s.jsxs("strong",{"data-loc":"client/src/components/BookingDialog.tsx:310",className:"mt-1 block font-semibold text-white",children:[K(F.validFrom)||"â"," â ",K(F.validTo)||"â"]})]}),F.bookingDeadline&&s.jsxs("div",{"data-loc":"client/src/components/BookingDialog.tsx:314",children:[s.jsx("span",{"data-loc":"client/src/components/BookingDialog.tsx:315",className:"block text-white/45",children:I("آخر Ù
ÙØ¹Ø¯ ÙÙØØ¬Ø²","Book by")}),s.jsx("strong",{"data-loc":"client/src/components/BookingDialog.tsx:316",className:"mt-1 block font-semibold text-white",children:K(F.bookingDeadline)||"â"})]})]})]})]}),!wn&&s.jsx("div",{"data-loc":"client/src/components/BookingDialog.tsx:325",className:"relative border-t border-white/10 bg-black/10 px-4 py-3 sm:px-7",children:s.jsx("div",{"data-loc":"client/src/components/BookingDialog.tsx:326",className:"mx-auto flex max-w-3xl items-start gap-1.5",children:rn.map((tt,Ot)=>{const Zn=tt.icon,Tn=Ot<ee,qt=Ot===ee;return s.jsxs("button",{"data-loc":"client/src/components/BookingDialog.tsx:332",type:"button",disabled:Ot>ee,onClick:()=>Ot<=ee&&pe(Ot),className:"group flex flex-1 flex-col items-center gap-1.5 rounded-xl py-1 disabled:cursor-default","aria-current":qt?"step":void 0,children:[s.jsx("span",{"data-loc":"client/src/components/BookingDialog.tsx:340",className:`flex h-8 w-8 items-center justify-center rounded-full border transition-colors ${qt?"border-[#C9A961] bg-[#C9A961] text-[#0f1623]":Tn?"border-[#C9A961]/60 bg-[#C9A961]/15 text-[#E6D39A]":"border-white/15 text-white/40"}`,children:Tn?s.jsx(bc,{"data-loc":"client/src/components/BookingDialog.tsx:341",className:"h-3.5 w-3.5"}):s.jsx(Zn,{"data-loc":"client/src/components/BookingDialog.tsx:341",className:"h-3.5 w-3.5"})}),s.jsx("span",{"data-loc":"client/src/components/BookingDialog.tsx:343",className:`hidden text-[10px] font-medium sm:block ${qt?"text-[#E6D39A]":"text-white/45"}`,children:tt.label})]},tt.key)})})})]}),s.jsxs("div",{"data-loc":"client/src/components/BookingDialog.tsx:353",className:"relative max-h-[calc(94vh-310px)] overflow-y-auto bg-gradient-to-b from-background to-muted/20 px-5 py-6 sm:px-7",children:[s.jsx(tD,{"data-loc":"client/src/components/BookingDialog.tsx:354",children:Mt.isPending&&s.jsx(xc.div,{"data-loc":"client/src/components/BookingDialog.tsx:356",initial:L?!1:{opacity:0},animate:{opacity:1},exit:L?void 0:{opacity:0},transition:{duration:L?0:.18,ease:[.23,1,.32,1]},className:"absolute inset-0 z-20 flex items-center justify-center bg-background/90 px-6 text-center backdrop-blur-sm",role:"status","aria-live":"polite","aria-atomic":"true",children:s.jsxs("div",{"data-loc":"client/src/components/BookingDialog.tsx:367",className:"w-full max-w-sm rounded-3xl border border-[#C9A961]/30 bg-card p-7 text-card-foreground shadow-2xl",children:[s.jsxs("div",{"data-loc":"client/src/components/BookingDialog.tsx:368",className:"relative mx-auto mb-5 flex h-16 w-16 items-center justify-center rounded-full bg-[#C9A961]/12",children:[s.jsx("span",{"data-loc":"client/src/components/BookingDialog.tsx:369",className:"absolute inset-1 rounded-full border border-[#C9A961]/30"}),s.jsx(ft,{"data-loc":"client/src/components/BookingDialog.tsx:370",className:"h-7 w-7 animate-spin text-[#C9A961]","aria-hidden":"true"})]}),s.jsx("h3",{"data-loc":"client/src/components/BookingDialog.tsx:372",className:"font-display text-xl font-bold",children:I("ÙØ¹Ø§Ùج Ø·ÙØ¨ ØØ¬Ø²Ù Ø§ÙØ¢Ù","Processing your booking request")}),s.jsx("p",{"data-loc":"client/src/components/BookingDialog.tsx:375",className:"mt-2 text-sm leading-6 text-muted-foreground",children:I("ÙØ±Ø¬Ù Ø§ÙØ§Ùتظار ÙØØ¸Ø§Øª. ÙØÙØ¸ Ø§ÙØªÙاصÙ٠بأÙ
ا٠ÙÙØ¬ÙÙØ² رÙÙ
اÙÙ
رجع ÙØ±Ø³Ø§ÙØ© Ø§ÙØªØ£ÙÙØ¯.","Please wait a moment while we securely save your details and prepare your reference and confirmation email.")}),s.jsx("div",{"data-loc":"client/src/components/BookingDialog.tsx:381",className:"mt-5 h-1.5 overflow-hidden rounded-full bg-muted",children:s.jsx(xc.div,{"data-loc":"client/src/components/BookingDialog.tsx:382",className:"h-full rounded-full bg-gradient-to-r from-[#9A7209] via-[#C9A961] to-[#E6D39A]",initial:L?{x:0}:{x:R?"100%":"-100%"},animate:L?{x:0}:{x:R?"-25%":"25%"},transition:L?{duration:0}:{duration:1.1,repeat:1/0,repeatType:"reverse",ease:"easeInOut"}})})]})},"booking-processing")}),wn?s.jsx(s0e,{"data-loc":"client/src/components/BookingDialog.tsx:394",lang:n,reference:wn,email:Jt.trim()||void 0,onClose:()=>jn(!1)}):s.jsx(tD,{"data-loc":"client/src/components/BookingDialog.tsx:396",mode:"wait",children:s.jsxs(xc.div,{"data-loc":"client/src/components/BookingDialog.tsx:397",initial:{opacity:0,x:R?-16:16}
948,animate:{opacity:1,x:0},exit:{opacity:0,x:R?16:-16},transition:{duration:.22,ease:[.23,1,.32,1]},className:"space-y-5",children:[Qt==="dates"&&s.jsxs(s.Fragment,{children:[O&&s.jsx("div",{"data-loc":"client/src/components/BookingDialog.tsx:408",className:"rounded-2xl border border-amber-300/50 bg-amber-50 p-4 text-sm leading-6 text-amber-950 dark:border-amber-500/30 dark:bg-amber-950/25 dark:text-amber-100",role:"alert",children:s.jsxs("div",{"data-loc":"client/src/components/BookingDialog.tsx:409",className:"flex items-start gap-3",children:[s.jsx(zi,{"data-loc":"client/src/components/BookingDialog.tsx:410",className:"mt-0.5 h-5 w-5 shrink-0 text-amber-600 dark:text-amber-300","aria-hidden":"true"}),s.jsxs("div",{"data-loc":"client/src/components/BookingDialog.tsx:411",children:[s.jsx("strong",{"data-loc":"client/src/components/BookingDialog.tsx:412",className:"block",children:I("ØªÙØ§Ø±ÙØ® Ø§ÙØ¨Ø±ÙاÙ
ج ØªØØªØ§Ø¬ Ù
راجعة","Program dates require review")}),s.jsx("span",{"data-loc":"client/src/components/BookingDialog.tsx:413",children:F.isExpired?I("Ø§ÙØªÙت ÙØ§Ùذة Ø§ÙØØ¬Ø² اÙÙ
عÙÙØ© ÙÙØ°Ø§ Ø§ÙØ¨Ø±ÙاÙ
ج. ØªÙØ§ØµÙ Ù
Ø¹ÙØ§ ÙÙØªØÙÙ Ù
Ù Ù
ÙØ¹Ø¯ Ø¬Ø¯ÙØ¯.","The published booking window has ended. Contact us to confirm a new date."):I("ØªÙØ¬Ø¯ ÙÙÙ
Ø© ØªØ§Ø±ÙØ® ØºÙØ± Ù
ÙØªÙ
ÙØ©Ø ÙØ°Ù٠أÙÙÙÙØ§ Ø§Ø®ØªÙØ§Ø± اÙÙ
ÙØ¹Ø¯ Ø¨Ø¯ÙØ§Ù Ù
٠عرض Ù
عÙÙÙ
ات ØºÙØ± دÙÙÙØ©.","A date value is incomplete, so date selection is paused rather than showing inaccurate information.")})]})]})}),s.jsx(_p,{"data-loc":"client/src/components/BookingDialog.tsx:420",label:I("ØªØ§Ø±ÙØ® Ø§ÙØ³Ùر (Ø§ÙØ°Ùاب)","Travel date (departure)"),required:!0,children:s.jsx("input",{"data-loc":"client/src/components/BookingDialog.tsx:421",type:"date",className:He,value:V,min:_,max:U,disabled:O,onChange:tt=>Y(tt.target.value)})}),J&&V&&!qe&&s.jsx("p",{"data-loc":"client/src/components/BookingDialog.tsx:424",className:"rounded-xl border border-amber-300/50 bg-amber-50 px-4 py-3 text-sm text-amber-950 dark:border-amber-500/30 dark:bg-amber-950/25 dark:text-amber-100",role:"alert",children:I("ÙØ°Ø§ Ø§ÙØªØ§Ø±ÙØ® ÙØ§ ÙØ·Ø§Ø¨Ù Ø£ÙØ§Ù
Ø§ÙØªØ´ØºÙ٠اÙÙ
ÙØ«ÙØ©. اختر ÙÙÙ
ا٠Ù
ختÙÙØ§Ù Ø£Ù ØªÙØ§ØµÙ Ù
ع ÙØ±ÙÙ IBRIX.","This date does not match the documented operating days. Choose another date or contact IBRIX.")}),s.jsx(_p,{"data-loc":"client/src/components/BookingDialog.tsx:428",label:I("ØªØ§Ø±ÙØ® Ø§ÙØ¹Ùدة (Ø§Ø®ØªÙØ§Ø±Ù)","Return date (optional)"),children:s.jsx("input",{"data-loc":"client/src/components/BookingDialog.tsx:429",type:"date",className:He,value:z,min:V||_,max:F.validTo||void 0,disabled:O,onChange:tt=>H(tt.target.value)})}),V&&z&&!dt&&w?s.jsx("p",{"data-loc":"client/src/components/BookingDialog.tsx:432",className:"rounded-xl border border-amber-300/50 bg-amber-50 px-4 py-3 text-sm text-amber-950 dark:border-amber-500/30 dark:bg-amber-950/25 dark:text-amber-100",role:"alert",children:I(`ØªØ§Ø±ÙØ® Ø§ÙØ¹Ùدة ÙØ¬Ø¨ Ø£Ù ÙØ·Ø§Ø¨Ù Ù
دة Ø§ÙØ¨Ø±ÙاÙ
ج (${w} Ø£ÙØ§Ù
).`,`The return date must match the ${w}-day program duration.`)}):null]}),Qt==="stay"&&s.jsxs(s.Fragment,{children:[i.length>0&&s.jsx(_p,{"data-loc":"client/src/components/BookingDialog.tsx:442",label:I("اختر اÙÙÙØ¯Ù","Choose hotel"),children:s.jsx("div",{"data-loc":"client/src/components/BookingDialog.tsx:443",className:"space-y-2",children:i.map(tt=>s.jsxs("label",{"data-loc":"client/src/components/BookingDialog.tsx:445",className:`flex items-center gap-3 rounded-xl border-2 px-4 py-3 cursor-pointer transition-colors ${ne===tt?"border-[#C9A961] bg-[#C9A961]/10":"border-border hover:border-[#C9A961]/40"}`,children:[s.jsx("input",{"data-loc":"client/src/components/BookingDialog.tsx:451",type:"radio",name:"hotel",className:"accent-[#C9A961]",checked:ne===tt,onChange:()=>te(tt)}),s.jsx("span",{"data-loc":"client/src/components/BookingDialog.tsx:458",className:"text-sm text-foreground",children:tt})]},tt))})}),s.jsx(_p,{"data-loc":"client/src/components/BookingDialog.tsx:464",label:I("ÙÙØ¹ Ø§ÙØºØ±ÙØ©","Room type"),required:!0,children:s.jsx("div",{"data-loc":"client/src/components/BookingDialog.tsx:465",className:"grid grid-cols-2 sm:grid-cols-4 gap-2",children:n0e.map(tt=>s.jsx("button",{"data-loc":"client/src/components/BookingDialog.tsx:467",type:"button",onClick:()=>fe(tt.value),className:`rounded-xl border-2 px-3 py-3 text-sm font-medium transition-colors ${me===tt.value?"border-[#C9A961] bg-[#C9A961]/10 text-foreground":"border-border text-muted-foreground hover:border-[#C9A961]/40"}`,children:R?tt.ar:tt.en},tt.value))})})]}),Qt==="travellers"&&s.jsxs(s.Fragment,{children:[s.jsx(cR,{"data-loc":"client/src/components/BookingDialog.tsx:487",label:I("عدد Ø§ÙØ¨Ø§ÙغÙÙ","Adults"),hint:I("12 Ø³ÙØ© ÙØ£Ùثر","12+ years"),value:Ae,min:1,max:50,onChange:xe}),s.jsx(cR,{"data-loc":"client/src/components/BookingDialog.tsx:488",label:I("عدد Ø§ÙØ£Ø·ÙاÙ","Children"),hint:I("Ø£ÙÙ Ù
Ù 12 Ø³ÙØ©","Under 12"),value:ae,min:0,max:10,onChange:zt}),ae>0&&s.jsxs("div",{"data-loc":"client/src/components/BookingDialog.tsx:490",className:"rounded-xl border border-border p-4 space-y-3",children:[s.jsx("p",{"data-loc":"client/src/components/BookingDialog.tsx:491",className:"text-sm font-medium text-foreground",children:I("أعÙ
ار Ø§ÙØ£Ø·ÙاÙ","Children ages")}),s.jsx("div",{"data-loc":"client/src/components/BookingDialog.tsx:492",className:"grid grid-cols-2 sm:grid-cols-3 gap-3",children:ze.map((tt,Ot)=>s.jsxs("label",{"data-loc":"client/src/components/BookingDialog.tsx:494",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/BookingDialog.tsx:495",className:"block text-xs text-muted-foreground mb-1",children:I(`Ø§ÙØ·ÙÙ ${Ot+1}`,`Child ${Ot+1}`)}),s.jsx("input",{"data-loc":"client/src/components/BookingDialog.tsx:498",type:"number",min:0,max:17,value:tt,onCh
948ange:Zn=>{const Tn=Math.max(0,Math.min(17,Number(Zn.target.value)));pt(qt=>qt.map((Vt,Ra)=>Ra===Ot?Tn:Vt))},className:He})]},Ot))})]})]}),Qt==="contact"&&s.jsxs(s.Fragment,{children:[s.jsx(_p,{"data-loc":"client/src/components/BookingDialog.tsx:519",label:I("Ø§ÙØ§Ø³Ù
اÙÙØ§Ù
Ù","Full name"),required:!0,children:s.jsx("input",{"data-loc":"client/src/components/BookingDialog.tsx:520",className:He,value:xt,onChange:tt=>be(tt.target.value),placeholder:I("Ø§ÙØ§Ø³Ù
ÙÙ
ا ÙÙ Ø§ÙØ¬Ùاز","Name as in passport")})}),s.jsx(_p,{"data-loc":"client/src/components/BookingDialog.tsx:522",label:I("رÙÙ
اÙÙØ§ØªÙ","Phone number"),required:!0,children:s.jsx("input",{"data-loc":"client/src/components/BookingDialog.tsx:523",dir:"ltr",className:He,value:Tt,onChange:tt=>Xt(tt.target.value),placeholder:"+962 7 ..."})}),s.jsx(_p,{"data-loc":"client/src/components/BookingDialog.tsx:525",label:I("Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ (Ø§Ø®ØªÙØ§Ø±Ù)","Email (optional)"),children:s.jsx("input",{"data-loc":"client/src/components/BookingDialog.tsx:526",dir:"ltr",type:"email",className:He,value:Jt,onChange:tt=>it(tt.target.value),placeholder:"[email protected]"})}),s.jsx(_p,{"data-loc":"client/src/components/BookingDialog.tsx:528",label:I("Ù
ÙØ§ØØ¸Ø§Øª إضاÙÙØ© (Ø§Ø®ØªÙØ§Ø±Ù)","Additional notes (optional)"),children:s.jsx("textarea",{"data-loc":"client/src/components/BookingDialog.tsx:529",className:`${He} min-h-20`,value:at,onChange:tt=>ct(tt.target.value)})})]}),Qt==="terms"&&s.jsxs(s.Fragment,{children:[s.jsx(o9,{"data-loc":"client/src/components/BookingDialog.tsx:536",lang:n,currency:o,totalPrice:c,landPrice:l,ticketIncluded:d,ticketPrice:m,ticketRoute:h,priceBasis:x,ticketPriceReviewRequired:f,className:"shadow-sm"}),s.jsxs("div",{"data-loc":"client/src/components/BookingDialog.tsx:548",className:"flex items-center gap-2 text-foreground",children:[s.jsx(B5,{"data-loc":"client/src/components/BookingDialog.tsx:549",className:"w-5 h-5 text-[#C9A961]"}),s.jsx("h4",{"data-loc":"client/src/components/BookingDialog.tsx:550",className:"font-semibold",children:I("Ø´Ø±ÙØ· Ø§ÙØØ¬Ø² â ÙØ²Ø§Ø±Ø© Ø§ÙØ³ÙØ§ØØ© ÙØ§Ùآثار","Booking conditions â Ministry of Tourism")})]}),s.jsxs("div",{"data-loc":"client/src/components/BookingDialog.tsx:553",className:"rounded-xl border border-[#C9A961]/30 bg-gradient-to-br from-[#FBF8F3] to-[#F5F0E8] dark:from-[#1a1714] dark:to-[#221e1a] p-5 max-h-72 overflow-y-auto",children:[s.jsxs("div",{"data-loc":"client/src/components/BookingDialog.tsx:554",className:"flex items-center gap-2 pb-3 mb-3 border-b border-[#C9A961]/20",children:[s.jsx("div",{"data-loc":"client/src/components/BookingDialog.tsx:555",className:"w-8 h-8 rounded-lg bg-[#C9A961]/15 flex items-center justify-center flex-shrink-0",children:s.jsx(B5,{"data-loc":"client/src/components/BookingDialog.tsx:556",className:"w-4 h-4 text-[#C9A961]"})}),s.jsxs("div",{"data-loc":"client/src/components/BookingDialog.tsx:558",children:[s.jsx("p",{"data-loc":"client/src/components/BookingDialog.tsx:559",className:"text-xs font-semibold text-[#C9A961] uppercase tracking-wider",children:I("ÙØ²Ø§Ø±Ø© Ø§ÙØ³ÙØ§ØØ© ÙØ§Ùآثار","Ministry of Tourism & Antiquities")}),s.jsx("p",{"data-loc":"client/src/components/BookingDialog.tsx:560",className:"text-xs text-muted-foreground",children:I("Ø´Ø±ÙØ· Ø§ÙØØ¬Ø² ÙØ§ÙØ¥ÙØºØ§Ø¡ ÙÙØ±ØÙات Ø§ÙØ³ÙاØÙØ©","Tourism Booking & Cancellation Terms")})]})]}),yt.isLoading?s.jsxs("div",{"data-loc":"client/src/components/BookingDialog.tsx:564",className:"flex items-center gap-2 text-muted-foreground py-8 justify-center",children:[s.jsx(ft,{"data-loc":"client/src/components/BookingDialog.tsx:565",className:"w-4 h-4 animate-spin"}),I("جار٠تØÙ
ÙÙ Ø§ÙØ´Ø±ÙØ·...","Loading conditions...")]}):s.jsx("div",{"data-loc":"client/src/components/BookingDialog.tsx:569",className:"text-sm leading-relaxed whitespace-pre-line text-foreground/80",children:(R?yt.data?.ar:yt.data?.en)||""})]}),s.jsxs("label",{"data-loc":"client/src/components/BookingDialog.tsx:574",className:"flex items-start gap-3 rounded-xl border-2 border-[#C9A961]/30 bg-[#FBF8F3] dar
948k:bg-[#1a1714] p-4 cursor-pointer hover:border-[#C9A961] transition-colors",children:[s.jsx("input",{"data-loc":"client/src/components/BookingDialog.tsx:575",type:"checkbox",checked:Ct,onChange:tt=>Ht(tt.target.checked),className:"mt-0.5 w-5 h-5 accent-[#C9A961]"}),s.jsx("span",{"data-loc":"client/src/components/BookingDialog.tsx:581",className:"text-sm text-foreground font-medium",children:(R?yt.data?.consentAr:yt.data?.consentEn)||I("Ø£ÙØ± بأÙÙÙ Ø§Ø·ÙØ¹Øª عÙÙ ÙØ§ÙØ© بÙÙØ¯ Ø§ÙØ¨Ø±ÙاÙ
ج ÙØ´Ø±ÙØ· Ø§ÙØØ¬Ø² ÙØ§ÙØ¥ÙØºØ§Ø¡ ÙØ£ÙاÙ٠عÙÙÙØ§.","I confirm I have read and agree to all program terms and booking/cancellation conditions.")})]})]})]},Qt)})]}),!wn&&s.jsxs("div",{"data-loc":"client/src/components/BookingDialog.tsx:598",className:"flex items-center justify-between gap-3 border-t border-border bg-background px-5 py-4 shadow-[0_-12px_30px_rgba(15,22,35,0.05)] sm:px-7",children:[s.jsxs("button",{"data-loc":"client/src/components/BookingDialog.tsx:599",type:"button",onClick:()=>ee===0?jn(!1):pe(tt=>tt-1),className:"inline-flex items-center gap-1.5 px-4 py-2.5 rounded-full border border-border text-sm font-semibold text-foreground hover:bg-muted transition-colors",children:[R?s.jsx(Qb,{"data-loc":"client/src/components/BookingDialog.tsx:604",className:"w-4 h-4"}):s.jsx(hP,{"data-loc":"client/src/components/BookingDialog.tsx:604",className:"w-4 h-4"}),ee===0?I("Ø¥ÙØºØ§Ø¡","Cancel"):I("Ø§ÙØ³Ø§Ø¨Ù","Back")]}),Qt!=="terms"?s.jsxs("button",{"data-loc":"client/src/components/BookingDialog.tsx:609",type:"button",disabled:!xn,onClick:()=>pe(tt=>tt+1),className:"inline-flex items-center gap-1.5 px-6 py-2.5 rounded-full bg-[#C9A961] text-[#0f1623] text-sm font-bold disabled:opacity-40 hover:scale-[0.98] active:scale-[0.96] transition-transform",children:[I("Ø§ÙØªØ§ÙÙ","Next"),R?s.jsx(hP,{"data-loc":"client/src/components/BookingDialog.tsx:616",className:"w-4 h-4"}):s.jsx(Qb,{"data-loc":"client/src/components/BookingDialog.tsx:616",className:"w-4 h-4"})]}):s.jsxs("button",{"data-loc":"client/src/components/BookingDialog.tsx:619",type:"button",disabled:!Ct||Mt.isPending,onClick:bn,className:"inline-flex items-center gap-2 px-6 py-2.5 rounded-full bg-[#C9A961] text-[#0f1623] text-sm font-bold disabled:opacity-40 hover:scale-[0.98] active:scale-[0.96] transition-transform",children:[Mt.isPending?s.jsx(ft,{"data-loc":"client/src/components/BookingDialog.tsx:625",className:"w-4 h-4 animate-spin","aria-hidden":"true"}):s.jsx(bc,{"data-loc":"client/src/components/BookingDialog.tsx:625",className:"w-4 h-4","aria-hidden":"true"}),Mt.isPending?I("جار٠تأÙÙØ¯ Ø§ÙØØ¬Ø²â¦","Confirming bookingâ¦"):I("تأÙÙØ¯ Ø§ÙØØ¬Ø²","Confirm booking")]})]})]})})}function _p({label:e,required:t,children:n}){return s.jsxs("label",{"data-loc":"client/src/components/BookingDialog.tsx:638",className:"block",children:[s.jsxs("span",{"data-loc":"client/src/components/BookingDialog.tsx:639",className:"block text-sm font-medium mb-1.5 text-foreground",children:[e," ",t&&s.jsx("span",{"data-loc":"client/src/components/BookingDialog.tsx:640",className:"text-destructive",children:"*"})]}),n]})}function cR({label:e,hint:t,value:n,min:a,max:r,onChange:i}){return s.jsxs("div",{"data-loc":"client/src/components/BookingDialog.tsx:663",className:"flex items-center justify-between rounded-xl border border-border px-4 py-3",children:[s.jsxs("div",{"data-loc":"client/src/components/BookingDialog.tsx:664",children:[s.jsx("p",{"data-loc":"client/src/components/BookingDialog.tsx:665",className:"text-sm font-medium text-foreground",children:e}),t&&s.jsx("p",{"data-loc":"client/src/components/BookingDialog.tsx:666",className:"text-xs text-muted-foreground",children:t})]}),s.jsxs("div",{"data-loc":"client/src/components/BookingDialog.tsx:668",className:"flex items-center gap-3",children:[s.jsx("button",{"data-loc":"client/src/components/BookingDialog.tsx:669",type:"button",onClick:()=>i(Math.max(a,n-1)),disabled:n<=a,className:"w-9 h-9 rounded-full border border-border flex items-center justify-center text-foreground disabled:opacity-30 hover:bg-muted transition-colors",children:s.jsx(sA,{"data-loc":"client/src/components/BookingDialog.tsx:675",className:"w-4 h-4"})}),s.jsx("span",{"data-loc":"client/src/components/BookingDialog.tsx:677",className:"w-8 text-center font-bold text-foreground tabular-nums",children:n}),s.jsx("button",{"data-loc":"client/src/components/BookingDialog.tsx:678",type:"button",onClick:()=>i(Math.min(r,n+1)),disabled:n>=r,className:"w-9 h-9 rounded-full border border-border flex items-center justify-center text-foreground disabled:opacity-30 hover:bg-muted transition-colors",children:s.jsx(oa,{"data-loc":"client/src/components/BookingDialog.tsx:684",className:"w-4 h-4"})})]})]})}function s0e({lang:e,reference:t,email:n,onClose:a}){const r=e==="ar",i=(o,c)=>r?o:c;return s.jsx(xc.div,{"data-loc":"client/src/components/BookingDialog.tsx:705",initial:{opacity:0,scale:.96,y:10}
948,animate:{opacity:1,scale:1,y:0},transition:{duration:.28,ease:[.23,1,.32,1]},className:"py-2 text-center",role:"status","aria-live":"polite",children:s.jsxs("div",{"data-loc":"client/src/components/BookingDialog.tsx:713",className:"relative overflow-hidden rounded-3xl border border-emerald-500/20 bg-gradient-to-br from-emerald-500/12 via-background to-[#C9A961]/10 p-6 shadow-sm sm:p-8",children:[s.jsx("div",{"data-loc":"client/src/components/BookingDialog.tsx:714",className:"pointer-events-none absolute -end-10 -top-10 h-32 w-32 rounded-full bg-[#C9A961]/15 blur-2xl"}),s.jsx(xc.div,{"data-loc":"client/src/components/BookingDialog.tsx:715",initial:{rotate:-12,scale:.9},animate:{rotate:0,scale:1},transition:{delay:.08,duration:.28,ease:[.23,1,.32,1]},className:"relative mx-auto mb-5 flex h-20 w-20 items-center justify-center rounded-full border border-emerald-500/25 bg-emerald-500/15 shadow-[0_12px_38px_rgba(16,185,129,0.16)]",children:s.jsx(gie,{"data-loc":"client/src/components/BookingDialog.tsx:721",className:"h-9 w-9 text-emerald-600","aria-hidden":"true"})}),s.jsx("p",{"data-loc":"client/src/components/BookingDialog.tsx:723",className:"mb-2 text-xs font-bold uppercase tracking-[0.2em] text-emerald-700 dark:text-emerald-300",children:i("تÙ
Ø§ÙØ¥Ø±Ø³Ø§Ù Ø¨ÙØ¬Ø§Ø","Successfully submitted")}),s.jsx("h3",{"data-loc":"client/src/components/BookingDialog.tsx:726",className:"font-display text-2xl font-bold text-foreground sm:text-3xl",children:i("تÙ
Ø§Ø³ØªÙØ§Ù
Ø·ÙØ¨ ØØ¬Ø²Ù","Your booking request is in")}),s.jsx("p",{"data-loc":"client/src/components/BookingDialog.tsx:729",className:"mx-auto mt-3 max-w-lg text-sm leading-6 text-muted-foreground",children:i("Ø³ÙØ±Ø§Ø¬Ø¹ ÙØ±ÙÙ IBRIX Ø§ÙØªÙاصÙÙ ÙÙØªÙاص٠Ù
Ø¹Ù ÙØªØ£ÙÙØ¯ Ø§ÙØªÙÙØ± ÙØ§Ùسعر اÙÙÙØ§Ø¦Ù ÙØ¨Ù Ø£Ù Ø§ÙØªØ²Ø§Ù
.","The IBRIX team will review your details and contact you to confirm availability and the final price before any commitment.")}),s.jsxs("div",{"data-loc":"client/src/components/BookingDialog.tsx:736",className:"mx-auto mt-6 max-w-md rounded-2xl border border-border/80 bg-card/85 p-4 text-card-foreground shadow-sm backdrop-blur",children:[s.jsx("span",{"data-loc":"client/src/components/BookingDialog.tsx:737",className:"block text-xs font-semibold uppercase tracking-[0.16em] text-muted-foreground",children:i("رÙÙ
Ù
رجع Ø§ÙØ·Ùب","Request reference")}),s.jsxs("button",{"data-loc":"client/src/components/BookingDialog.tsx:740",type:"button",onClick:()=>{navigator.clipboard?.writeText(t),Le.success(i("تÙ
ÙØ³Ø® رÙÙ
اÙÙ
رجع","Reference copied"))},className:"mt-2 inline-flex items-center gap-2 rounded-full bg-muted px-5 py-2.5 font-bold tracking-wide text-foreground transition-colors hover:bg-muted/70 active:scale-[0.97]","aria-label":i(`ÙØ³Ø® رÙÙ
اÙÙ
رجع ${t}`,`Copy reference ${t}`),children:[s.jsx(L4,{"data-loc":"client/src/components/BookingDialog.tsx:749",className:"h-4 w-4","aria-hidden":"true"}),s.jsx("span",{"data-loc":"client/src/components/BookingDialog.tsx:750",dir:"ltr",children:t})]})]}),s.jsx("div",{"data-loc":"client/src/components/BookingDialog.tsx:754",className:"mx-auto mt-5 max-w-lg rounded-2xl bg-foreground
948/[0.04] p-4 text-start",children:s.jsxs("div",{"data-loc":"client/src/components/BookingDialog.tsx:755",className:"flex items-start gap-3",children:[s.jsx("span",{"data-loc":"client/src/components/BookingDialog.tsx:756",className:"mt-0.5 flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-emerald-500/15",children:s.jsx(bc,{"data-loc":"client/src/components/BookingDialog.tsx:757",className:"h-4 w-4 text-emerald-600","aria-hidden":"true"})}),s.jsxs("div",{"data-loc":"client/src/components/BookingDialog.tsx:759",children:[s.jsx("p",{"data-loc":"client/src/components/BookingDialog.tsx:760",className:"text-sm font-bold text-foreground",children:n?i("ت٠إرسا٠تأÙÙØ¯ Ø¥ÙÙ Ø¨Ø±ÙØ¯Ù","A confirmation has been sent to your email"):i("Ø³ÙØªÙاص٠٠ع٠عبر اÙÙØ§ØªÙ","We'll contact you by phone")}),s.jsx("p",{"data-loc":"client/src/components/BookingDialog.tsx:765",className:"mt-1 break-all text-xs leading-5 text-muted-foreground",dir:n?"ltr":void 0,children:n||i("Ø§ØØªÙظ برÙ٠اÙ٠رجع Ù٠تابعة Ø§ÙØ·Ùب ٠ع ÙØ±ÙÙÙØ§.","Keep the reference number to follow up with our team.")})]})]})}),s.jsx("button",{"data-loc":"client/src/components/BookingDialog.tsx:772",type:"button",onClick:a,className:"mt-6 rounded-full bg-[#C9A961] px-7 py-3 text-sm font-bold text-[#0f1623] transition-transform hover:scale-[0.98] active:scale-[0.96]",children:i("Ø§ÙØ¹Ùدة Ø¥ÙÙ Ø§ÙØ¨Ø±Ùا٠ج","Back to the program")})]})})}const r0e=/[\u0600-\u06FF]/,i0e=/[A-Za-z]/;function Y5(e,t){if(typeof e!="string")return"";const n=e.replace(/\s+/g," ").trim();if(!n)return"";const a=n.split(/\s+\/\s+/).map(i=>i.trim()).filter(Boolean);return a.length<2?n:(t==="ar"?a.find(i=>r0e.test(i)):[...a].reverse().find(i=>i0e.test(i)))||n}function o0e(e,t,n){const a=Y5(e[`hotel${t}`],n);if(a)return a;const r=e[n==="ar"?`nameAr_${t}`:`nameEn_${t}`],i=e[n==="ar"?`nameEn_${t}`:`nameAr_${t}`];return Y5(r,n)||Y5(i,n)}function i$(e,t,n){return e.map(a=>Array.from({length:t},(r,i)=>o0e(a,i,n)).filter(Boolean).join(" + ")).filter(Boolean)}const c0e=e=>({hotel:`hotel${e}`,nights:`nights${e}`,stars:`stars${e}`});function l0e({value:e}){const t=parseInt(e||"0",10);return!Number.isFinite(t)||t<=0?s.jsx("span",{"data-loc":"client/src/components/PackagePriceTable.tsx:31",className:"text-xs text-muted-foreground",children:e||"â"}):s.jsx("span",{"data-loc":"client/src/components/PackagePriceTable.tsx:34",className:"inline-flex items-center gap-0.5",children:Array.from({length:t}).map((n,a)=>s.jsx(Tu,{"data-loc":"client/src/components/PackagePriceTable.tsx:36",className:"w-3 h-3 text-[#C9A961] fill-[#C9A961]"},a))})}function u0e({lang:e,currency:t,data:n}){const a=n?.cityCount??n?.cities?.length??2,r=Array.isArray(n?.cities)?n.cities:[],i=Array.isArray(n?.rows)?n.rows:[],o=t?` ${t}`:" JOD",c=(m,h)=>e==="ar"?m:h,l=i.some(m=>{const h=Number(m.price);return Number.isFinite(h)&&h>0}),d=m=>{const h=Number(m);return!Number.isFinite(h)||h<=0?c("Ø§ÙØ³Ø¹Ø± Ø¹ÙØ¯ Ø§ÙØ·Ùب","Price on request"):`${h.toLocaleString(e==="ar"?"ar-JO":"en-JO",{maximumFractionDigits:2})}${o}`};return s.jsxs("div",{"data-loc":"client/src/components/PackagePriceTable.tsx:71",className:"ocean-card rounded-2xl overflow-hidden",children:[s.jsx("div",{"data-loc":"client/src/components/PackagePriceTable.tsx:72",className:"overflow-x-auto",children:s.jsxs("table",{"data-loc":"client/src/components/PackagePriceTable.tsx:73",className:"w-full text-sm",children:[s.jsxs("thead",{"data-loc":"client/src/components/PackagePriceTable.tsx:74",children:[s.jsxs("tr",{"data-loc":"client/src/components/PackagePriceTable.tsx:75",className:"bg-primary/10",children:[Array.from({length:a}).map((m,h)=>{const x=e==="ar"?r[h]?.labelAr:r[h]?.labelEn;return s.jsx("th",{"data-loc":"client/src/components/PackagePriceTable.tsx:79",colSpan:3,className:"px-3 py-3 text-start font-display font-bold text-foreground border-e border-border",children:x||c(`اÙ٠دÙÙØ© ${h+1}`,`City ${h+1}`)},h)}),s.jsx("th",{"data-loc":"client/src/components/PackagePriceTable.tsx:88",rowSpan:2,className:"px-4 py-3 text-center font-display font-bold text-primary align-middle",children:c("سعر Ø§ÙØ¨Ø±Ùا٠ج","Package Price")})]}),s.jsx("tr",{"data-loc":"client/src/components/PackagePriceTable.tsx:92",className:"bg-muted/40 text-[11px] text-muted-foreground",children:Array.from({length:a}).map((m,h)=>s.jsx("th",{"data-loc":"client/src/components/PackagePriceTable.tsx:94",colSpan:3,className:"p-0 border-e border-border",children:s.jsxs("div",{"data-loc":"client/src/components/PackagePriceTable.tsx:95",className:"grid grid-cols-3",children:[s.jsx("span",{"data-loc":"client/src/components/PackagePriceTable.tsx:96",className:"px-2 py-1.5 text-start border-e border-border/50",children:c("اÙÙÙØ¯Ù","Hotel")}),s.jsx("span",{"data-loc":"client/src/components/PackagePriceTable.tsx:97",className:"px-2 py-1.5 text-center border-e border-border/50",children:c("ÙÙØ§ÙÙ","Nights")}),s.jsx("span",{"data-loc":"client/src/components/PackagePriceTable.tsx:98",className:"px-2 py-1.5 text-center",children:c("Ø§ÙØªØµÙÙÙ","Stars")})]})},h))})]}),s.jsx("tbody",{"data-loc":"client/src/components/PackagePriceTable.tsx:104",children:i.map((m,h)=>s.jsxs("tr",{"data-loc":"client/src/components/PackagePriceTable.tsx:106",className:"border-t border-border hover:bg-primary/5 transition-colors",children:[Array.from({length:a}).map((x,f)=>{const b=c0e(f),y=String(m[b.nights]??"");return s.jsx("td",{"data-loc":"client/src/components/PackagePriceTable.tsx:111",colSpan:3,className:"p-0 border-e border-border align-middle",children:s.jsxs("div",{"data-loc":"client/src/components/PackagePriceTable.tsx:112",className:"grid grid-cols-3 items-center",children:[s.jsx("span",{"data-loc":"client/src/components/PackagePriceTable.tsx:113",className:"px-2 py-3 text-start font-medium text-foreground",children:Y5(m[b.hotel],e)||"â"}),s.jsx("span",{"data-loc":"client/src/components/PackagePriceTable.tsx:116",className:"px-2 py-3 text-center text-muted-foreground",children:y?`${y} ${c("ÙÙØ§ÙÙ","n")}`:"â"}),s.jsx("span",{"data-loc":"client/src/components/PackagePriceTable.tsx:119",className:"px-2 py-3 text-center",children:s.jsx(l0e,{"data-loc":"client/src/components/PackagePriceTable.tsx:120",value:String(m[b.stars]??"")})})]})},f)}),s.jsx("td",{"data-loc":"client/src/components/PackagePriceTable.tsx:126",className:"px-4 py-3 text-center",children:s.jsx("span",{"data-loc":"client/src/components/PackagePriceTable.tsx:127",className:"font-display font-bold text-lg text-primary",children:d(m.price)})})]},h))})]})}),s.jsx("p",{"data-loc":"client/src/components/PackagePriceTable.tsx:136",className:"px-4 py-2 text-[11px] text-muted-foreground bg-muted/30 border-t border-border",children:l?c("Ø§ÙØ³Ø¹Ø± ÙÙÙØ±Ø¯ ÙÙ Ø§ÙØºØ±ÙØ© اÙÙ Ø²Ø¯ÙØ¬Ø©Ø Ø´Ø§Ù Ù Ø§ÙØ¨Ø±Ùا٠ج باÙÙØ§Ù Ù ÙÙÙ Ø¨Ø§ÙØ© ÙÙØ¯ÙÙØ©.","Per-person in double room; one price for the whole program per hotel combination."):c("Ø§ÙØ³Ø¹Ø± اÙÙÙØ§Ø¦Ù ÙÙØµØ¯Ø± بعرض Ù ÙØªÙب بعد تأÙÙØ¯ اÙÙÙØ§Ø¯Ù ÙØ§ÙتÙÙÙØ§Øª ÙØ§Ùخد٠ات اÙÙ Ø·ÙÙØ¨Ø©.","The final price is issued in writing after hotels, transport, and requested services are confirmed.")})]})}function YT(e,t){return e?e.split(` 949`).map(n=>
949n.trim()).filter(Boolean).map(n=>{const[a,r]=n.split("|").map(i=>i.trim());return(t==="ar"?a:r)||a||r||n}):[]}function d0e({details:e,lang:t,currency:n}){const a=t==="ar",r=(T,A)=>a?T:A,i=e||{},o=a?i.introAr:i.introEn,c=Array.isArray(i.hotels)?i.hotels.filter(T=>T&&(T.makkahHotel||T.priceDouble)):[],l=Array.isArray(i.flightGroups)?i.flightGroups.filter(T=>T&&(T.title||T.legs&&T.legs.length)):[],d=YT(i.documentsText,t),m=YT(i.notesText,t),h=YT(i.importantNotesText,t),x=a?i.sponsorNoteAr:i.sponsorNoteEn,f=a?i.processingTimeAr:i.processingTimeEn,b=n||"JOD";if(!(o||c.length||l.length||d.length||m.length||h.length||x||f))return null;const w=T=>{const A=parseInt(T||"0",10);return!A||Number.isNaN(A)?T?s.jsx("span",{"data-loc":"client/src/components/UmrahDetailsView.tsx:92",className:"text-xs text-muted-foreground",children:T}):s.jsx("span",{"data-loc":"client/src/components/UmrahDetailsView.tsx:92",className:"text-muted-foreground",children:"â"}):s.jsx("span",{"data-loc":"client/src/components/UmrahDetailsView.tsx:94",className:"inline-flex items-center gap-0.5",children:Array.from({length:A}).map((E,D)=>s.jsx(Tu,{"data-loc":"client/src/components/UmrahDetailsView.tsx:96",className:"w-3.5 h-3.5 text-[#C9A961] fill-[#C9A961]"},D))})};return s.jsxs("div",{"data-loc":"client/src/components/UmrahDetailsView.tsx:103",className:"space-y-14",children:[o&&s.jsx(ts,{"data-loc":"client/src/components/UmrahDetailsView.tsx:105",children:s.jsx("p",{"data-loc":"client/src/components/UmrahDetailsView.tsx:106",className:"text-lg text-foreground/80 leading-relaxed",children:o})}),c.length>0&&s.jsxs(ts,{"data-loc":"client/src/components/UmrahDetailsView.tsx:112",children:[s.jsxs("h2",{"data-loc":"client/src/components/UmrahDetailsView.tsx:113",className:"font-display font-bold text-3xl text-foreground mb-6 flex items-center gap-3",children:[s.jsx(wu,{"data-loc":"client/src/components/UmrahDetailsView.tsx:114",className:"w-7 h-7 text-[#C9A961]"}),r("اÙÙÙØ§Ø¯Ù ÙØ§Ùأسعار","Hotels & Pricing")]}),s.jsx("div",{"data-loc":"client/src/components/UmrahDetailsView.tsx:117",className:"overflow-x-auto rounded-2xl border border-border shadow-sm",children:s.jsxs("table",{"data-loc":"client/src/components/UmrahDetailsView.tsx:118",className:"w-full text-sm",style:{minWidth:"820px"},children:[s.jsx("thead",{"data-loc":"client/src/components/UmrahDetailsView.tsx:119",className:"bg-gradient-to-br from-[#1a2233] to-[#0f1623] text-white",children:s.jsxs("tr",{"data-loc":"client/src/components/UmrahDetailsView.tsx:120",children:[s.jsx("th",{"data-loc":"client/src/components/UmrahDetailsView.tsx:121",className:"px-4 py-3 text-start font-semibold border-e border-white/10",children:r("ÙÙØ¯Ù Ù
ÙØ©","Makkah Hotel")}),s.jsx("th",{"data-loc":"client/src/components/UmrahDetailsView.tsx:122",className:"px-3 py-3 text-center font-semibold border-e border-white/10",children:r("ÙØ¬ÙÙ
","Stars")}),s.jsx("th",{"data-loc":"client/src/components/UmrahDetailsView.tsx:123",className:"px-4 py-3 text-start font-semibold border-e border-white/10",children:r("ÙÙØ¯Ù اÙÙ
دÙÙØ©","Madinah Hotel")}),s.jsx("th",{"data-loc":"client/src/components/UmrahDetailsView.tsx:124",className:"px-3 py-3 text-center font-semibold border-e border-white/10",children:r("ÙØ¬ÙÙ
","Stars")}),s.jsx("th",{"data-loc":"client/src/components/UmrahDetailsView.tsx:125",className:"px-3 py-3 text-start font-semibold border-e border-white/10",children:r("اÙÙØ¬Ø¨Ø§Øª","Meals")}),s.jsx("th",{"data-loc":"client/src/components/UmrahDetailsView.tsx:126",className:"px-3 py-3 text-center font-semibold border-e border-white/10",children:r("Ù
ÙØ±Ø¯","Single")}),s.jsx("th",{"data-loc":"client/src/components/UmrahDetailsView.tsx:127",className:"px-3 py-3 text-center font-semibold border-e border-white/10",children:r("Ø«ÙØ§Ø¦Ù","Double")}),s.jsx("th",{"data-loc":"client/src/components/UmrahDetailsView.tsx:128",className:"px-3 py-3 text-center font-semibold border-e border-white/10",children:r("Ø«ÙØ§Ø«Ù","Triple")}),s.jsx("th",{"data-loc":"client/src/components/UmrahDetailsView.tsx:129",className:"px-3 py-3 text-center font-semibold",children:r("رباعÙ","Quad")})]})}),s.jsx("tbody",{"data-loc":"client/src/components/UmrahDetailsView.tsx:132",children:c.map((T,A)=>s.jsxs("tr",{"data-loc":"client/src/components/UmrahDetailsView.tsx:134",className:`border-t border-border align-top ${A%2===1?"bg-muted/30":"bg-background"}`,children:[s.jsx("td",{"data-loc":"client/src/components/UmrahDetailsView.tsx:135",className:"px-4 py-3 border-e border-border font-medium text-foreground",children:T.makkahHotel||"â"}),s.jsx("td",{"data-loc":"client/src/components/UmrahDetailsView.tsx:136",className:"px-3 py-3 border-e border-border text-center",children:w(T.makkahStars)}),s.jsx("td",{"data-loc":"client/src/components/UmrahDetailsView.tsx:137",className:"px-4 py-3 border-e border-border text-foreground
949/90",children:T.madinahHotel||"â"}),s.jsx("td",{"data-loc":"client/src/components/UmrahDetailsView.tsx:138",className:"px-3 py-3 border-e border-border text-center",children:T.madinahHotel?w(T.madinahStars):s.jsx("span",{"data-loc":"client/src/components/UmrahDetailsView.tsx:138",className:"text-muted-foreground",children:"â"})}),s.jsx("td",{"data-loc":"client/src/components/UmrahDetailsView.tsx:139",className:"px-3 py-3 border-e border-border text-foreground/80 text-xs",children:T.meals||"â"}),[T.priceSingle,T.priceDouble,T.priceTriple,T.priceQuad].map((E,D)=>s.jsx("td",{"data-loc":"client/src/components/UmrahDetailsView.tsx:141",className:`px-3 py-3 text-center font-bold ${D<3?"border-e border-border":""} text-primary`,children:E&&Number(E)>0?`${E} ${b}`:"â"},D))]},A))})]})})]}),l.length>0&&s.jsxs(ts,{"data-loc":"client/src/components/UmrahDetailsView.tsx:155",children:[s.jsxs("h2",{"data-loc":"client/src/components/UmrahDetailsView.tsx:156",className:"font-display font-bold text-3xl text-foreground mb-6 flex items-center gap-3",children:[s.jsx(Hs,{"data-loc":"client/src/components/UmrahDetailsView.tsx:157",className:"w-7 h-7 text-[#C9A961]"}),r("Ù
ÙØ§Ø¹Ùد Ø§ÙØ±ØÙات","Flight Schedule")]}),s.jsx("div",{"data-loc":"client/src/components/UmrahDetailsView.tsx:160",className:"grid md:grid-cols-2 gap-5",children:l.map((T,A)=>s.jsxs("div",{"data-loc":"client/src/components/UmrahDetailsView.tsx:162",className:"ocean-card rounded-2xl p-5",children:[T.title&&s.jsx("h3",{"data-loc":"client/src/components/UmrahDetailsView.tsx:163",className:"font-semibold text-foreground mb-1",children:T.title}),T.dates&&s.jsxs("p",{"data-loc":"client/src/components/UmrahDetailsView.tsx:165",className:"text-xs text-muted-foreground inline-flex items-center gap-1.5 mb-3",children:[s.jsx(Pl,{"data-loc":"client/src/components/UmrahDetailsView.tsx:166",className:"w-3.5 h-3.5"}),T.dates]}),s.jsx("div",{"data-loc":"client/src/components/UmrahDetailsView.tsx:170",className:"overflow-x-auto",children:s.jsxs("table",{"data-loc":"client/src/components/UmrahDetailsView.tsx:171",className:"w-full text-xs",children:[s.jsx("thead",{"data-loc":"client/src/components/UmrahDetailsView.tsx:172",className:"text-muted-foreground",children:s.jsxs("tr",{"data-loc":"client/src/components/UmrahDetailsView.tsx:173",className:"border-b border-border",children:[s.jsx("th",{"data-loc":"client/src/components/UmrahDetailsView.tsx:174",className:"py-2 text-start font-semibold",children:r("Ø§ÙØ¨ÙاÙ","Leg")}),s.jsx("th",{"data-loc":"client/src/components/UmrahDetailsView.tsx:175",className:"py-2 text-center font-semibold",children:r("Ø§ÙØ±ØÙØ©","Flight")}),s.jsx("th",{"data-loc":"client/src/components/UmrahDetailsView.tsx:176",className:"py-2 text-center font-semibold",children:r("Ø§ÙØ¥ÙÙØ§Ø¹","Dep.")}),s.jsx("th",{"data-loc":"client/src/components/UmrahDetailsView.tsx:177",className:"py-2 text-center font-semibold",children:r("اÙÙØµÙÙ","Arr.")})]})}),s.jsx("tbody",{"data-loc":"client/src/components/UmrahDetailsView.tsx:180",children:(T.legs||[]).map((E,D)=>s.jsxs("tr",{"data-loc":"client/src/components/UmrahDetailsView.tsx:182",className:"border-b border-border/60 last:border-0",children:[s.jsx("td",{"data-loc":"client/src/components/UmrahDetailsView.tsx:183",className:"py-2 text-foreground",children:E.label||"â"}),s.jsx("td",{"data-loc":"client/src/components/UmrahDetailsView.tsx:184",className:"py-2 text-center font-medium text-foreground",dir:"ltr",children:E.flightNo||"â"}),s.jsx("td",{"data-loc":"client/src/components/UmrahDetailsView.tsx:185",className:"py-2 text-center text-foreground/80",dir:"ltr",children:E.depart||"â"}),s.jsx("td",{"data-loc":"client/src/components/UmrahDetailsView.tsx:186",className:"py-2 text-center text-foreground/80",dir:"ltr",children:E.arrive||"â"})]},D))})]})})]},A))})]}),(f||x)&&s.jsx(ts,{"data-loc":"client/src/components/UmrahDetailsView.tsx:200",children:s.jsxs("div",{"data-loc":"client/src/components/UmrahDetailsView.tsx:201",className:"grid sm:grid-cols-2 gap-4",children:[f&&s.jsxs("div",{"data-loc":"client/src/components/UmrahDetailsView.tsx:203",className:"ocean-card rounded-2xl p-5 flex items-start gap-3",children:[s.jsx(Cl,{"data-loc":"client/src/components/UmrahDetailsView.tsx:204",className:"w-6 h-6 text-[#C9A961] mt-0.5 shrink-0"}),s.jsxs("div",{"data-loc":"client/src/components/UmrahDetailsView.tsx:205",children:[s.jsx("p",{"data-loc":"client/src/components/UmrahDetailsView.tsx:206",className:"text-xs uppercase tracking-wide text-muted-foreground",children:r("Ù
دة إصدار Ø§ÙØªØ£Ø´Ùرة","Visa processing time")}
949),s.jsx("p",{"data-loc":"client/src/components/UmrahDetailsView.tsx:207",className:"font-semibold text-foreground mt-0.5",children:f})]})]}),x&&s.jsxs("div",{"data-loc":"client/src/components/UmrahDetailsView.tsx:212",className:"ocean-card rounded-2xl p-5 flex items-start gap-3",children:[s.jsx(Kb,{"data-loc":"client/src/components/UmrahDetailsView.tsx:213",className:"w-6 h-6 text-[#C9A961] mt-0.5 shrink-0"}),s.jsx("p",{"data-loc":"client/src/components/UmrahDetailsView.tsx:214",className:"text-sm text-foreground/85 leading-relaxed",children:x})]})]})}),d.length>0&&s.jsxs(ts,{"data-loc":"client/src/components/UmrahDetailsView.tsx:223",children:[s.jsxs("h2",{"data-loc":"client/src/components/UmrahDetailsView.tsx:224",className:"font-display font-bold text-2xl text-foreground mb-4 flex items-center gap-3",children:[s.jsx(ji,{"data-loc":"client/src/components/UmrahDetailsView.tsx:225",className:"w-6 h-6 text-[#C9A961]"}),r("اÙÙØ«Ø§Ø¦Ù اÙÙ
Ø·ÙÙØ¨Ø©","Required Documents")]}),s.jsx("ul",{"data-loc":"client/src/components/UmrahDetailsView.tsx:228",className:"space-y-2.5",children:d.map((T,A)=>s.jsxs("li",{"data-loc":"client/src/components/UmrahDetailsView.tsx:230",className:"flex items-start gap-3",children:[s.jsx("span",{"data-loc":"client/src/components/UmrahDetailsView.tsx:231",className:"w-2 h-2 rounded-full bg-[#C9A961] mt-2 shrink-0"}),s.jsx("span",{"data-loc":"client/src/components/UmrahDetailsView.tsx:232",className:"text-foreground/85",children:T})]},A))})]}),(m.length>0||h.length>0)&&s.jsx(ts,{"data-loc":"client/src/components/UmrahDetailsView.tsx:241",children:s.jsxs("div",{"data-loc":"client/src/components/UmrahDetailsView.tsx:242",className:"grid md:grid-cols-2 gap-8",children:[m.length>0&&s.jsxs("div",{"data-loc":"client/src/components/UmrahDetailsView.tsx:244",children:[s.jsx("h3",{"data-loc":"client/src/components/UmrahDetailsView.tsx:245",className:"font-display font-bold text-xl text-foreground mb-3",children:r("Ù
ÙØ§ØØ¸Ø§Øª","Notes")}),s.jsx("ul",{"data-loc":"client/src/components/UmrahDetailsView.tsx:246",className:"space-y-2",children:m.map((T,A)=>s.jsxs("li",{"data-loc":"client/src/components/UmrahDetailsView.tsx:248",className:"text-sm text-muted-foreground flex items-start gap-2",children:[s.jsx("span",{"data-loc":"client/src/components/UmrahDetailsView.tsx:249",className:"w-1.5 h-1.5 rounded-full bg-muted-foreground/50 mt-2 shrink-0"}),T]},A))})]}),h.length>0&&s.jsxs("div",{"data-loc":"client/src/components/UmrahDetailsView.tsx:257",className:"rounded-2xl border-2 border-[#C9A961]/40 bg-[#C9A961]/[0.05] p-5",children:[s.jsxs("h3",{"data-loc":"client/src/components/UmrahDetailsView.tsx:258",className:"font-display font-bold text-xl text-foreground mb-3 flex items-center gap-2",children:[s.jsx(Kb,{"data-loc":"client/src/components/UmrahDetailsView.tsx:259",className:"w-5 h-5 text-[#C9A961]"}),r("Ù
ÙØ§ØØ¸Ø§Øª ÙØ§Ù
Ø©","Important Notes")]}),s.jsx("ul",{"data-loc":"client/src/components/UmrahDetailsView.tsx:262",className:"space-y-2",children:h.map((T,A)=>s.jsxs("li",{"data-loc":"client/src/components/UmrahDetailsView.tsx:264",className:"text-sm text-foreground/85 flex items-start gap-2",children:[s.jsx("span",{"data-loc":"client/src/components/UmrahDetailsView.tsx:265",className:"w-1.5 h-1.5 rounded-full bg-[#C9A961] mt-2 shrink-0"}),T]},A))})]})]})})]})}const m0e="modulepreload",p0e=function(e){return"/"+e},lR={},we=function(t,n,a){let r=Promise.resolve();if(n&&n.length>0){let l=function(d){return Promise.all(d.map(m=>Promise.resolve(m).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),c=o?.nonce||o?.getAttribute("nonce");r=l(n.map(d=>{if(d=p0e(d),d in lR)return;lR[d]=!0;const m=d.endsWith(".css"),h=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${h}`))return;const x=document.createElement("link");if(x.rel=m?"stylesheet":m0e,m||(x.as="script"),x.crossOrigin="",x.href=d,c&&x.setAttribute("nonce",c),document.head.appendChild(x),m)return new Promise((f,b)=>{x.addEventListener("load",f),x.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${d}`)))})}))}function i(o){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=o,window.dispatchEvent(c),!c.defaultPrevented)throw o}return r.then(o=>{for(const c of o||[])c.status==="rejected"&&i(c.reason);return t().catch(i)})};function xs(e){"@babel/helpers - typeof";return xs=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},xs(e)}var ku=Uint8Array,Qc=Uint16Array,c9=Int32Array,l9=new ku([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]),u9=ne
vendor: 4,844 bytes, line 949
949w ku([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]),uR=new ku([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o$=function(e,t){for(var n=new Qc(31),a=0;a<31;++a)n[a]=t+=1<<e[a-1];for(var r=new c9(n[30]),a=1;a<30;++a)for(var i=n[a];i<n[a+1];++i)r[i]=i-n[a]<<5|a;return{b:n,r}},c$=o$(l9,2),h0e=c$.b,r7=c$.r;h0e[28]=258,r7[258]=28;var f0e=o$(u9,0),dR=f0e.r,i7=new Qc(32768);for(var er=0;er<32768;++er){var Pp=(er&43690)>>1|(er&21845)<<1;Pp=(Pp&52428)>>2|(Pp&13107)<<2,Pp=(Pp&61680)>>4|(Pp&3855)<<4,i7[er]=((Pp&65280)>>8|(Pp&255)<<8)>>1}var Nb=(function(e,t,n){for(var a=e.length,r=0,i=new Qc(t);r<a;++r)e[r]&&++i[e[r]-1];var o=new Qc(t);for(r=1;r<t;++r)o[r]=o[r-1]+i[r-1]<<1;var c;if(n){c=new Qc(1<<t);var l=15-t;for(r=0;r<a;++r)if(e[r])for(var d=r<<4|e[r],m=t-e[r],h=o[e[r]-1]++<<m,x=h|(1<<m)-1;h<=x;++h)c[i7[h]>>l]=d}else for(c=new Qc(a),r=0;r<a;++r)e[r]&&(c[r]=i7[o[e[r]-1]++]>>15-e[r]);return c}),O0=new ku(288);for(var er=0;er<144;++er)O0[er]=8;for(var er=144;er<256;++er)O0[er]=9;for(var er=256;er<280;++er)O0[er]=7;for(var er=280;er<288;++er)O0[er]=8;var _3=new ku(32);for(var er=0;er<32;++er)_3[er]=5;var g0e=Nb(O0,9,0),x0e=Nb(_3,5,0),l$=function(e){return(e+7)/8|0},b0e=function(e,t,n){return(n==null||n>e.length)&&(n=e.length),new ku(e.subarray(t,n))},Am=function(e,t,n){n<<=t&7;var a=t/8|0;e[a]|=n,e[a+1]|=n>>8},E1=function(e,t,n){n<<=t&7;var a=t/8|0;e[a]|=n,e[a+1]|=n>>8,e[a+2]|=n>>16},XT=function(e,t){for(var n=[],a=0;a<e.length;++a)e[a]&&n.push({s:a,f:e[a]});var r=n.length,i=n.slice();if(!r)return{t:d$,l:0};if(r==1){var o=new ku(n[0].s+1);return o[n[0].s]=1,{t:o,l:1}}n.sort(function(S,R){return S.f-R.f}),n.push({s:-1,f:25001});var c=n[0],l=n[1],d=0,m=1,h=2;for(n[0]={s:-1,f:c.f+l.f,l:c,r:l};m!=r-1;)c=n[n[d].f<n[h].f?d++:h++],l=n[d!=m&&n[d].f<n[h].f?d++:h++],n[m++]={s:-1,f:c.f+l.f,l:c,r:l};for(var x=i[0].s,a=1;a<r;++a)i[a].s>x&&(x=i[a].s);var f=new Qc(x+1),b=o7(n[m-1],f,0);if(b>t){var a=0,y=0,w=b-t,T=1<<w;for(i.sort(function(R,L){return f[L.s]-f[R.s]||R.f-L.f});a<r;++a){var A=i[a].s;if(f[A]>t)y+=T-(1<<b-f[A]),f[A]=t;else break}for(y>>=w;y>0;){var E=i[a].s;f[E]<t?y-=1<<t-f[E]++-1:++a}for(;a>=0&&y;--a){var D=i[a].s;f[D]==t&&(--f[D],++y)}b=t}return{t:new ku(f),l:b}},o7=function(e,t,n){return e.s==-1?Math.max(o7(e.l,t,n+1),o7(e.r,t,n+1)):t[e.s]=n},mR=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Qc(++t),a=0,r=e[0],i=1,o=function(l){n[a++]=l},c=1;c<=t;++c)if(e[c]==r&&c!=t)++i;else{if(!r&&i>2){for(;i>138;i-=138)o(32754);i>2&&(o(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(o(r),--i;i>6;i-=6)o(8304);i>2&&(o(i-3<<5|8208),i=0)}for(;i--;)o(r);i=1,r=e[c]}return{c:n.subarray(0,a),n:t}},C1=function(e,t){for(var n=0,a=0;a<t.length;++a)n+=e[a]*t[a];return n},u$=function(e,t,n){var a=n.length,r=l$(t+2);e[r]=a&255,e[r+1]=a>>8,e[r+2]=e[r]^255,e[r+3]=e[r+1]^255;for(var i=0;i<a;++i)e[r+i+4]=n[i];return(r+4+a)*8},pR=function(e,t,n,a,r,i,o,c,l,d,m){Am(t,m++,n),++r[256];for(var h=XT(r,15),x=h.t,f=h.l,b=XT(i,15),y=b.t,w=b.l,T=mR(x),A=T.c,E=T.n,D=mR(y),S=D.c,R=D.n,L=new Qc(19),I=0;I<A.length;++I)++L[A[I]&31];for(var I=0;I<S.length;++I)++L[S[I]&31];for(var F=XT(L,7),_=F.t,U=F.l,O=19;O>4&&!_[uR[O-1]];--O);var W=d+5<<3,J=C1(r,O0)+C1(i,_3)+o,oe=C1(r,x)+C1(i,y)+o+14+3*O+C1(L,_)+2*L[16]+3*L[17]+7*L[18];if(l>=0&&W<=J&&W<=oe)return u$(t,m,e.subarray(l,l+d));var G,K,ee,pe;if(Am(t,m,1+(oe<J)),m+=2,oe<J){G=Nb(x,f,0),K=x,ee=Nb(y,w,0),pe=y;var V=Nb(_,U,0);Am(t,m,E-257),Am(t,m+5,R-1),Am(t,m+10,O-4),m+=14;for(var I=0;I<O;++I)Am(t,m+3*I,_[uR[I]]);m+=3*O;for(var Y=[A,S],z=0;z<2;++z)for(var H=Y[z],I=0;I<H.length;++I){var ne=H[I]&31;Am(t,m,V[ne]),m+=_[ne],ne>15&&(Am(t,m,H[I]>>5&127),m+=H[I]>>12)}}else G=g0e,K=O0,ee=x0e,pe=_3;for(var I=0;I<c;++I){var te=a[I];if(te>255){var ne=te>>18&31;E1(t,m,G[ne+257]),m+=K[ne+257],ne>7&&(Am(t,m,te>>23&31),m+=l9[ne]);var me=te&31;E1(t,m,ee[me]),m+=pe[me],me>3&&(E1(t,m,te>>5&8191),m+=u9[me])}else E1(t,m,G[te]),m+=K[te]}return E1(t,m,G[256]),m+K[256]},v0e=new c9([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),d$=new ku(0),y0e=function(e,t,n,a,r,i){var o=i.z||e.length,c=new ku(a+o+5*(1+Math.ceil(o/7e3))+r),l=c.subarray(a,c.length-r),d=i.l,m=(i.r||0)&7;if(t){m&&(l[0]=i.r>>3);for(var h=v0e[t-1],x=h>>13,f=h&8191,b=(1<<n)-1,y=i.p||new Qc(32768),w=i.h||new Qc(b+1),T=Math.ceil(n/3),A=2*T,E=function(xt){return(e[xt]^e[xt+1]<<T^e[xt+2]<<A)&b},D=new c9(25e3),S=new Qc(288),R=new Qc(32),L=0,I=0,F=i.i||0,_=0,U=i.w||0,O=0;F+2<o;++F){var W=E(F),J=F&32767,oe=w[W];if(y[J]=oe,w[W]=J,U<=F){var G=o-F;if((L>7e3||_>24576)&&(G>423||!d)){m=pR(e,l,0,D,S,R,I,_,O,F-O,m),_=L=I=0,O=F;for(var K=0;K<286;++K)S[K]=0;for(var K=0;K<30;++K)R[K]=0}var ee=2,pe=0,V=f,Y=J-oe&32767;if(G>2&&W==E(F-Y))for(var z=Math.min(x,G)-1,H=Math.min(32767,F),ne=Math.min(258,G);Y<=H&&--V&&J!=oe;){if(e[F+ee]==e[F+ee-Y]){for(var te=0;te<ne&&e[F+te]==e[F+te-Y];++te);
vendor: 9,346 bytes, lines 949-950
949if(te>ee){if(ee=te,pe=Y,te>z)break;for(var me=Math.min(Y,te-2),fe=0,K=0;K<me;++K){var Ae=F-Y+K&32767,xe=y[Ae],ae=Ae-xe&32767;ae>fe&&(fe=ae,oe=Ae)}}}J=oe,oe=y[J],Y+=J-oe&32767}if(pe){D[_++]=268435456|r7[ee]<<18|dR[pe];var le=r7[ee]&31,ze=dR[pe]&31;I+=l9[le]+u9[ze],++S[257+le],++R[ze],U=F+ee,++L}else D[_++]=e[F],++S[e[F]]}}for(F=Math.max(F,U);F<o;++F)D[_++]=e[F],++S[e[F]];m=pR(e,l,d,D,S,R,I,_,O,F-O,m),d||(i.r=m&7|l[m/8|0]<<3,m-=7,i.h=w,i.p=y,i.i=F,i.w=U)}else{for(var F=i.w||0;F<o+d;F+=65535){var pt=F+65535;pt>=o&&(l[m/8|0]=d,pt=o),m=u$(l,m+1,e.subarray(F,pt))}i.i=o}return b0e(c,0,a+l$(m)+r)},m$=function(){var e=1,t=0;return{p:function(n){for(var a=e,r=t,i=n.length|0,o=0;o!=i;){for(var c=Math.min(o+2655,i);o<c;++o)r+=a+=n[o];a=(a&65535)+15*(a>>16),r=(r&65535)+15*(r>>16)}e=a,t=r},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},w0e=function(e,t,n,a,r){if(!r&&(r={l:1},t.dictionary)){var i=t.dictionary.subarray(-32768),o=new ku(i.length+e.length);o.set(i),o.set(e,i.length),e=o,r.w=i.length}return y0e(e,t.level==null?6:t.level,t.mem==null?r.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,n,a,r)},p$=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},T0e=function(e,t){var n=t.level,a=n==0?0:n<6?1:n==9?3:2;if(e[0]=120,e[1]=a<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var r=m$();r.p(t.dictionary),p$(e,2,r.d())}};function c7(e,t){t||(t={});var n=m$();n.p(e);var a=w0e(e,t,t.dictionary?6:2,4);return T0e(a,t),p$(a,a.length-4,n.d()),a}var N0e=typeof TextDecoder<"u"&&new TextDecoder,k0e=0;try{N0e.decode(d$,{stream:!0}),k0e=1}catch{}function j0e(e){if(Array.isArray(e))return e}function A0e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a,r,i,o,c=[],l=!0,d=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);l=!0);}catch(m){d=!0,r=m}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(d)throw r}}return c}}function hR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function E0e(e,t){if(e){if(typeof e=="string")return hR(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hR(e,t):void 0}}function C0e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 950In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fR(e,t){return j0e(e)||A0e(e,t)||E0e(e,t)||C0e()}function gR(e,t="utf8"){return new TextDecoder(t).decode(e)}const S0e=new TextEncoder;function _0e(e){return S0e.encode(e)}const P0e=1024*8,D0e=(()=>{const e=new Uint8Array(4),t=new Uint32Array(e.buffer);return!((t[0]=1)&e[0])})(),QT={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 d9{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(t=P0e,n={}){let a=!1;typeof t=="number"?t=new ArrayBuffer(t):(a=!0,this.lastWrittenByte=t.byteLength);const r=n.offset?n.offset>>>0:0,i=t.byteLength-r;let o=r;(ArrayBuffer.isView(t)||t instanceof d9)&&(t.byteLength!==t.buffer.byteLength&&(o=t.byteOffset+r),t=t.buffer),a?this.lastWrittenByte=i:this.lastWrittenByte=0,this.buffer=t,this.length=i,this.byteLength=i,this.byteOffset=o,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,o,i),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 a=(this.offset+t)*2,r=new Uint8Array(a);r.set(new Uint8Array(this.buffer)),this.buffer=r.buffer,this.length=a,this.byteLength=a,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,n){const a=QT[n].BYTES_PER_ELEMENT*t,r=this.byteOffset+this.offset,i=this.buffer.slice(r,r+a);if(this.littleEndian===D0e&&n!=="uint8"&&n!=="int8"){const c=new Uint8Array(this.buffer.slice(r,r+a));c.reverse();const l=new QT[n](c.buffer);return this.offset+=a,l.reverse(),l}const o=new QT[n](i);return this.offset+=a,o}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 n="";for(let a=0;a<t;a++)n+=this.readChar();return n}readUtf8(t=1){return gR(this.readBytes(t))}decodeText(t=1,n="utf8"){return gR(this.readBytes(t),n)}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 n=0;n<t.length;n++)this._data.setUint8(this.offset++,t[n]);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 n=0;n<t.length;n++)this.writeUint8(t.charCodeAt(n));return this}writeUtf8(t){return this.writeBytes(_0e(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)}}function kx(e){let t=e.length;for(;--t>=0;)e[t]=0}const R0e=3,I0e=258,h$=29,M0e=256,L0e=M0e+1+h$,f$=30,O0e=512,B0e=new Array((L0e+2)*2);kx(B0e);const F0e=new Array(f$*2);kx(F0e);const U0e=new Array(O0e);kx(U0e);const H0e=new Array(I0e-R0e+1);kx(H0e);const V0e=new Array(h$);kx(V0e);const z0e=new Array(f$);kx(z0e);const $0e=(e,t,n,a)=>{let r=e&65535|0,i=e>>>16&65535|0,o=0;for(;n!==0;){o=n>2e3?2e3:n,n-=o;do r=r+t[a++]|0,i=i+r|0;while(--o);r%=65521,i%=65521}return r|i<<16|0};var l7=$0e;const q0e=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var a=0;a<8;a++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},G0e=new Uint32Array(q0e()),J0e=(e,t,n,a)=>{const r=G0e,i=a+n;e^=-1;for(let o=a;o<i;o++)e=e>>>8^r[(e^t[o])&255];return e^-1};var rd=J0e,u7={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"},g$={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ER
vendor: 12,336 bytes, line 950
950ROR:-5,Z_DEFLATED:8};const W0e=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var Y0e=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const a in n)W0e(n,a)&&(e[a]=n[a])}}return e},X0e=e=>{let t=0;for(let a=0,r=e.length;a<r;a++)t+=e[a].length;const n=new Uint8Array(t);for(let a=0,r=0,i=e.length;a<i;a++){let o=e[a];n.set(o,r),r+=o.length}return n},x$={assign:Y0e,flattenChunks:X0e};let b$=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{b$=!1}const p2=new Uint8Array(256);for(let e=0;e<256;e++)p2[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;p2[254]=p2[254]=1;var Q0e=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,a,r,i,o=e.length,c=0;for(r=0;r<o;r++)n=e.charCodeAt(r),(n&64512)===55296&&r+1<o&&(a=e.charCodeAt(r+1),(a&64512)===56320&&(n=65536+(n-55296<<10)+(a-56320),r++)),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(c),i=0,r=0;i<c;r++)n=e.charCodeAt(r),(n&64512)===55296&&r+1<o&&(a=e.charCodeAt(r+1),(a&64512)===56320&&(n=65536+(n-55296<<10)+(a-56320),r++)),n<128?t[i++]=n:n<2048?(t[i++]=192|n>>>6,t[i++]=128|n&63):n<65536?(t[i++]=224|n>>>12,t[i++]=128|n>>>6&63,t[i++]=128|n&63):(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63,t[i++]=128|n>>>6&63,t[i++]=128|n&63);return t};const K0e=(e,t)=>{if(t<65534&&e.subarray&&b$)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let a=0;a<t;a++)n+=String.fromCharCode(e[a]);return n};var Z0e=(e,t)=>{const n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let a,r;const i=new Array(n*2);for(r=0,a=0;a<n;){let o=e[a++];if(o<128){i[r++]=o;continue}let c=p2[o];if(c>4){i[r++]=65533,a+=c-1;continue}for(o&=c===2?31:c===3?15:7;c>1&&a<n;)o=o<<6|e[a++]&63,c--;if(c>1){i[r++]=65533;continue}o<65536?i[r++]=o:(o-=65536,i[r++]=55296|o>>10&1023,i[r++]=56320|o&1023)}return K0e(i,r)},efe=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+p2[e[n]]>t?n:t},d7={string2buf:Q0e,buf2string:Z0e,utf8border:efe};function tfe(){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 nfe=tfe;const Ty=16209,afe=16191;var sfe=function(t,n){let a,r,i,o,c,l,d,m,h,x,f,b,y,w,T,A,E,D,S,R,L,I,F,_;const U=t.state;a=t.next_in,F=t.input,r=a+(t.avail_in-5),i=t.next_out,_=t.output,o=i-(n-t.avail_out),c=i+(t.avail_out-257),l=U.dmax,d=U.wsize,m=U.whave,h=U.wnext,x=U.window,f=U.hold,b=U.bits,y=U.lencode,w=U.distcode,T=(1<<U.lenbits)-1,A=(1<<U.distbits)-1;e:do{b<15&&(f+=F[a++]<<b,b+=8,f+=F[a++]<<b,b+=8),E=y[f&T];t:for(;;){if(D=E>>>24,f>>>=D,b-=D,D=E>>>16&255,D===0)_[i++]=E&65535;else if(D&16){S=E&65535,D&=15,D&&(b<D&&(f+=F[a++]<<b,b+=8),S+=f&(1<<D)-1,f>>>=D,b-=D),b<15&&(f+=F[a++]<<b,b+=8,f+=F[a++]<<b,b+=8),E=w[f&A];n:for(;;){if(D=E>>>24,f>>>=D,b-=D,D=E>>>16&255,D&16){if(R=E&65535,D&=15,b<D&&(f+=F[a++]<<b,b+=8,b<D&&(f+=F[a++]<<b,b+=8)),R+=f&(1<<D)-1,R>l){t.msg="invalid distance too far back",U.mode=Ty;break e}if(f>>>=D,b-=D,D=i-o,R>D){if(D=R-D,D>m&&U.sane){t.msg="invalid distance too far back",U.mode=Ty;break e}if(L=0,I=x,h===0){if(L+=d-D,D<S){S-=D;do _[i++]=x[L++];while(--D);L=i-R,I=_}}else if(h<D){if(L+=d+h-D,D-=h,D<S){S-=D;do _[i++]=x[L++];while(--D);if(L=0,h<S){D=h,S-=D;do _[i++]=x[L++];while(--D);L=i-R,I=_}}}else if(L+=h-D,D<S){S-=D;do _[i++]=x[L++];while(--D);L=i-R,I=_}for(;S>2;)_[i++]=I[L++],_[i++]=I[L++],_[i++]=I[L++],S-=3;S&&(_[i++]=I[L++],S>1&&(_[i++]=I[L++]))}else{L=i-R;do _[i++]=_[L++],_[i++]=_[L++],_[i++]=_[L++],S-=3;while(S>2);S&&(_[i++]=_[L++],S>1&&(_[i++]=_[L++]))}}else if((D&64)===0){E=w[(E&65535)+(f&(1<<D)-1)];continue n}else{t.msg="invalid distance code",U.mode=Ty;break e}break}}else if((D&64)===0){E=y[(E&65535)+(f&(1<<D)-1)];continue t}else if(D&32){U.mode=afe;break e}else{t.msg="invalid literal/length code",U.mode=Ty;break e}break}}while(a<r&&i<c);S=b>>3,a-=S,b-=S<<3,f&=(1<<b)-1,t.next_in=a,t.next_out=i,t.avail_in=a<r?5+(r-a):5-(a-r),t.avail_out=i<c?257+(c-i):257-(i-c),U.hold=f,U.bits=b};const sg=15,xR=852,bR=592,vR=0,KT=1,yR=2,rfe=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]),ife=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]),ofe=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]),cfe=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]),lfe=(e,t,n,a,r,i,o,c)=>{const l=c.bits;let d=0,m=0,h=0,x=0,f=0,b=0,y=0,w=0,T=0,A=0,E,D,S,R,L,I=null,F;const _=new Uint16Array(sg+1),U=new Uint16Array(sg+1);let O=null,W,J,oe;for(d=0;d<=sg;d++)_[d]=0;for(m=0;m<a;m++)_[t[n+m]]++;for(f=l,x=sg;x>=1&&_[x]===0;x--);if(f>x&&(f=x),x===0)return r[i++]=1<<24|64<<16|0,r[i++]=1<<24|64<<16|0,c.bits=1,0;for(h=1;h<x&&_[h]===0;h++);for(f<h&&(f=h),w=1,d=1;d<=sg;d++)if(w<<=1,w-=_[d],w<0)return-1;if(w>0&&(e===vR||x!==1))return-1;for(U[1]=0,d=1;d<sg;d++)U[d+1]=U[d]+_[d];for(m=0;m<a;m++)t[n+m]!==0&&(o[U[t[n+m]]++]=m);if(e===vR?(I=O=o,F=20):e===KT?(I=rfe,O=ife,F=257):(I=ofe,O=cfe,F=0),A=0,m=0,d=h,L=i,b=f,y=0,S=-1,T=1<<f,R=T-1,e===KT&&T>xR||e===yR&&T>bR)return 1;for(;;){W=d-y,o[m]+1<F?(J=0,oe=o[m]):o[m]>=F?(J=O[o[m]-F],oe=I[o[m]-F]):(J=96,oe=0),E=1<<d-y,D=1<<b,h=D;do D-=E,r[L+(A>>y)+D]=W<<24|J<<16|oe|0;while(D!==0);for(E=1<<d-1;A&E;)E>>=1;if(E!==0?(A&=E-1,A+=E):A=0,m++,--_[d]===0){if(d===x)break;d=t[n+o[m]]}if(d>f&&(A&R)!==S){for(y===0&&(y=f),L+=h,b=d-y,w=1<<b;b+y<x&&(w-=_[b+y],!(w<=0));)b++,w<<=1;if(T+=1<<b,e===KT&&T>xR||e===yR&&T>bR)return 1;S=A&R,r[S]=f<<24|b<<16|L-i|0}}return A!==0&&(r[L+A]=d-y<<24|64<<16|0),c.bits=f,0};var kb=lfe;const ufe=0,v$=1,y$=2,{Z_FINISH:wR,Z_BLOCK:dfe,Z_TREES:Ny,Z_OK:B0,Z_STREAM_END:mfe,Z_NEED_DICT:pfe,Z_STREAM_ERROR:Rl,Z_DATA_ERROR:w$,Z_MEM_ERROR:T$,Z_BUF_ERROR:hfe,Z_DEFLATED:TR}=g$,t6=16180,NR=16181,kR=16182,jR=16183,AR=16184,ER=16185,CR=16186,SR=16187,_R=16188,PR=16189,P3=16190,Em=16191,ZT=16192,DR=16193,eN=16194,RR=16195,IR=16196,MR=16197,LR=16198,ky=16199,jy=16200,OR=16201,BR=16202,FR=16203,UR=16204,HR=16205,tN=16206,VR=16207,zR=16208,cr=16209,N$=16210,k$=16211,ffe=852,gfe=592,xfe=15,bfe=xfe,$R=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function vfe(){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 af=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<t6||t.mode>k$?1:0},j$=e=>{if(af(e))return Rl;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=t6,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(ffe),t.distcode=t.distdyn=new Int32Array(gfe),t.sane=1,t.back=-1,B0},A$=e=>{if(af(e))return Rl;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,j$(e)},E$=(e,t)=>{let n;if(af(e))return Rl;const a=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Rl:(a.window!==null&&a.wbits!==t&&(a.window=null),a.wrap=n,a.wbits=t,A$(e))},C$=(e,t)=>{if(!e)return Rl;const n=new vfe;e.state=n,n.strm=e,n.window=null,n.mode=t6;const a=E$(e,t);return a!==B0&&(e.state=null),a},yfe=e=>C$(e,bfe);let qR=!0,nN,aN;const wfe=e=>{if(qR){nN=new Int32Array(512),aN=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(kb(v$,e.lens,0,288,nN,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;kb(y$,e.lens,0,32,aN,0,e.work,{bits:5}),qR=!1}e.lencode=nN,e.lenbits=9,e.distcode=aN,e.distbits=5},S$=(e,t,n,a)=>{let r;const i=e.state;return i.window===null&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new Uint8Array(i.wsize)),a>=i.wsize?(i.window.set(t.subarray(n-i.wsize,n),0),i.wnext=0,i.whave=i.wsize):(r=i.wsize-i.wnext,r>a&&(r=a),i.window.set(t.subarray(n-a,n-a+r),i.wnext),a-=r,a?(i.window.set(t.subarray(n-a,n),0),i.wnext=a,i.whave=i.wsize):(i.wnext+=r,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=r))),0},Tfe=(e,t)=>{let n,a,r,i,o,c,l,d,m,h,x,f,b,y,w=0,T,A,E,D,S,R,L,I;const F=new Uint8Array(4);let _,U;const O=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(af(e)||!e.output||!e.input&&e.avail_in!==0)return Rl;n=e.state,n.mode===Em&&(n.mode=ZT),o=e.next_out,r=e.output,l=e.avail_out,i=e.next_in,a=e.input,c=e.avail_in,d=n.hold,m=n.bits,h=c,x=l,I=B0;e:for(;;)switch(n.mode){case t6:if(n.wrap===0){n.mode=ZT;break}for(;m<16;){if(c===0)break e;c--,d+=a[i++]<<m,m+=8}if(n.wrap&2&&d===35615){n.wbits===0&&(n.wbits=15),n.check=0,F[0]=d&255,F[1]=d>>>8&255,n.check=rd(n.check,F,2,0),d=0,m=0,n.mode=NR;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((d&255)<<8)+(d>>8))%31){e.msg="incorrect header check",n.mode=cr;break}if((d&15)!==TR){e.msg="unknown compression method",n.mode=cr;break}if(d>>>=4,m-=4,L=(d&15)+8,n.wbits===0&&(n.wbits=L),L>15||L>n.wbits){e.msg="invalid window size",n.mode=cr;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=d&512?PR:Em,d=0,m=0;break;case NR:for(;m<16;){if(c===0)break e;c--,d+=a[i++]<<m,m+=8}if(n.flags=d,(n.flags&255)!==TR){e.msg="unknown compression method",n.mode=cr;break}if(n.flags&57344){e.msg="unknown header flags set",n.mode=cr;break}n.head&&(n.head.text=d>>8&1),n.flags&512&&n.wrap&4&&(F[0]=d&255,F[1]=d>>>8&255,n.check=rd(n.check,F,2,0)),d=0,m=0,n.mode=kR;case kR:for(;m<32;){if(c===0)break e;c--,d+=a[i++]<<m,m+=8}n.head&&(n.head.time=d),n.flags&512&&n.wrap&4&&(F[0]=d&255,F[1]=d>>>8&255,F[2]=d>>>16&255,F[3]=d>>>24&255,n.check=rd(n.check,F,4,0)),d=0,m=0,n.mode=jR;case jR:for(;m<16;){if(c===0)break e;c--,d+=a[i++]<<m,m+=8}n.head&&(n.head.xflags=d&255,n.head.os=d>>8),n.flags&512&&n.wrap&4&&(F[0]=d&255,F[1]=d>>>8&255,n.check=rd(n.check,F,2,0)),d=0,m=0,n.mode=AR;case AR:if(n.flags&1024){for(;m<16;){if(c===0)break e;c--,d+=a[i++]<<m,m+=8}n.length=d,n.head&&(n.head.extra_len=d),n.flags&512&&n.wrap&4&&(F[0]=d&255,F[1]=d>>>8&255,n.check=rd(n.check,F,2,0)),d=0,m=0}else n.head&&(n.head.extra=null);n.mode=ER;case ER:if(n.flags&1024&&(f=n.length,f>c&&(f=c),f&&(n.head&&(L=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(a.subarray(i,i+f),L)),n.flags&512&&n.wrap&4&&(n.check=rd(n.check,a,f,i)),c-=f,i+=f,n.length-=f),n.length))break e;n.length=0,n.mode=CR;case CR:if(n.flags&2048){if(c===0)break e;f=0;do L=a[i+f++],n.head&&L&&n.length<65536&&(n.head.name+=String.fromCharCode(L));while(L&&f<c);if(n.flags&512&&n.wrap&4&&(n.check=rd(n.check,a,f,i)),c-=f,i+=f,L)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=SR;case SR:if(n.flags&4096){if(c===0)break e;f=0;do L=a[i+f++],n.head&&L&&n.length<65536&&(n.head.comment+=String.fromCharCode(L));while(L&&f<c);if(n.flags&512&&n.wrap&4&&(n.check=rd(n.check,a,f,i)),c-=f,i+=f,L)break e}else n.head&&(n.head.comment=null);n.mode=_R;case _R:if(n.flags&512){for(;m<16;){if(c===0)break e;c--,d+=a[i++]<<m,m+=8}if(n.wrap&4&&d!==(n.check&65535)){e.msg="header crc mismatch",n.mode=cr;break}d=0,m=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Em;break;case PR:for(;m<32;){if(c===0)break e;c--,d+=a[i++]<<m,m+=8}e.adler=n.check=$R(d),d=0,m=0,n.mode=P3;case P3:if(n.havedict===0)return e.next_out=o,e.avail_out=l,e.next_in=i,e.avail_in=c,n.hold=d,n.bits=m,pfe;e.adler=n.check=1,n.mode=Em;case Em:if(t===dfe||t===Ny)break e;case ZT:if(n.last){d>>>=m&7,m-=m&7,n.mode=tN;break}for(;m<3;){if(c===0)break e;c--,d+=a[i++]<<m,m+=8}switch(n.last=d&1,d>>>=1,m-=1,d&3){case 0:n.mode=DR;break;case 1:if(wfe(n),n.mode=ky,t===Ny){d>>>=2,m-=2;break e}break;case 2:n.mode=IR;break;case 3:e.msg="invalid block type",n.mode=cr}d>>>=2,m-=2;break;
vendor: 4,754 bytes, line 950
950case DR:for(d>>>=m&7,m-=m&7;m<32;){if(c===0)break e;c--,d+=a[i++]<<m,m+=8}if((d&65535)!==(d>>>16^65535)){e.msg="invalid stored block lengths",n.mode=cr;break}if(n.length=d&65535,d=0,m=0,n.mode=eN,t===Ny)break e;case eN:n.mode=RR;case RR:if(f=n.length,f){if(f>c&&(f=c),f>l&&(f=l),f===0)break e;r.set(a.subarray(i,i+f),o),c-=f,i+=f,l-=f,o+=f,n.length-=f;break}n.mode=Em;break;case IR:for(;m<14;){if(c===0)break e;c--,d+=a[i++]<<m,m+=8}if(n.nlen=(d&31)+257,d>>>=5,m-=5,n.ndist=(d&31)+1,d>>>=5,m-=5,n.ncode=(d&15)+4,d>>>=4,m-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=cr;break}n.have=0,n.mode=MR;case MR:for(;n.have<n.ncode;){for(;m<3;){if(c===0)break e;c--,d+=a[i++]<<m,m+=8}n.lens[O[n.have++]]=d&7,d>>>=3,m-=3}for(;n.have<19;)n.lens[O[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,_={bits:n.lenbits},I=kb(ufe,n.lens,0,19,n.lencode,0,n.work,_),n.lenbits=_.bits,I){e.msg="invalid code lengths set",n.mode=cr;break}n.have=0,n.mode=LR;case LR:for(;n.have<n.nlen+n.ndist;){for(;w=n.lencode[d&(1<<n.lenbits)-1],T=w>>>24,A=w>>>16&255,E=w&65535,!(T<=m);){if(c===0)break e;c--,d+=a[i++]<<m,m+=8}if(E<16)d>>>=T,m-=T,n.lens[n.have++]=E;else{if(E===16){for(U=T+2;m<U;){if(c===0)break e;c--,d+=a[i++]<<m,m+=8}if(d>>>=T,m-=T,n.have===0){e.msg="invalid bit length repeat",n.mode=cr;break}L=n.lens[n.have-1],f=3+(d&3),d>>>=2,m-=2}else if(E===17){for(U=T+3;m<U;){if(c===0)break e;c--,d+=a[i++]<<m,m+=8}d>>>=T,m-=T,L=0,f=3+(d&7),d>>>=3,m-=3}else{for(U=T+7;m<U;){if(c===0)break e;c--,d+=a[i++]<<m,m+=8}d>>>=T,m-=T,L=0,f=11+(d&127),d>>>=7,m-=7}if(n.have+f>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=cr;break}for(;f--;)n.lens[n.have++]=L}}if(n.mode===cr)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=cr;break}if(n.lenbits=9,_={bits:n.lenbits},I=kb(v$,n.lens,0,n.nlen,n.lencode,0,n.work,_),n.lenbits=_.bits,I){e.msg="invalid literal/lengths set",n.mode=cr;break}if(n.distbits=6,n.distcode=n.distdyn,_={bits:n.distbits},I=kb(y$,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,_),n.distbits=_.bits,I){e.msg="invalid distances set",n.mode=cr;break}if(n.mode=ky,t===Ny)break e;case ky:n.mode=jy;case jy:if(c>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=i,e.avail_in=c,n.hold=d,n.bits=m,sfe(e,x),o=e.next_out,r=e.output,l=e.avail_out,i=e.next_in,a=e.input,c=e.avail_in,d=n.hold,m=n.bits,n.mode===Em&&(n.back=-1);break}for(n.back=0;w=n.lencode[d&(1<<n.lenbits)-1],T=w>>>24,A=w>>>16&255,E=w&65535,!(T<=m);){if(c===0)break e;c--,d+=a[i++]<<m,m+=8}if(A&&(A&240)===0){for(D=T,S=A,R=E;w=n.lencode[R+((d&(1<<D+S)-1)>>D)],T=w>>>24,A=w>>>16&255,E=w&65535,!(D+T<=m);){if(c===0)break e;c--,d+=a[i++]<<m,m+=8}d>>>=D,m-=D,n.back+=D}if(d>>>=T,m-=T,n.back+=T,n.length=E,A===0){n.mode=HR;break}if(A&32){n.back=-1,n.mode=Em;break}if(A&64){e.msg="invalid literal/length code",n.mode=cr;break}n.extra=A&15,n.mode=OR;case OR:if(n.extra){for(U=n.extra;m<U;){if(c===0)break e;c--,d+=a[i++]<<m,m+=8}n.length+=d&(1<<n.extra)-1,d>>>=n.extra,m-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=BR;case BR:for(;w=n.distcode[d&(1<<n.distbits)-1],T=w>>>24,A=w>>>16&255,E=w&65535,!(T<=m);){if(c===0)break e;c--,d+=a[i++]<<m,m+=8}if((A&240)===0){for(D=T,S=A,R=E;w=n.distcode[R+((d&(1<<D+S)-1)>>D)],T=w>>>24,A=w>>>16&255,E=w&65535,!(D+T<=m);){if(c===0)break e;c--,d+=a[i++]<<m,m+=8}d>>>=D,m-=D,n.back+=D}if(d>>>=T,m-=T,n.back+=T,A&64){e.msg="invalid distance code",n.mode=cr;break}n.offset=E,n.extra=A&15,n.mode=FR;case FR:if(n.extra){for(U=n.extra;m<U;){if(c===0)break e;c--,d+=a[i++]<<m,m+=8}n.offset+=d&(1<<n.extra)-1,d>>>=n.extra,m-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=cr;break}n.mode=UR;case UR:if(l===0)break e;if(f=x-l,n.offset>f){if(f=n.offset-f,f>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=cr;break}f>n.wnext?(f-=n.wnext,b=n.wsize-f):b=n.wnext-f,f>n.length&&(f=n.length),y=n.window}else y=r,b=o-n.offset,f=n.length;f>l&&(f=l),l-=f,n.length-=f;do r[o++]=y[b++];while(--f);n.length===0&&(n.mode=jy);break;case HR:if(l===0)break e;r[o++]=n.length,l--,n.mode=jy;break;case tN:if(n.wrap){for(;m<32;){if(c===0)break e;c--,d|=a[i++]<<m,m+=8}if(x-=l,e.total_out+=x,n.total+=x,n.wrap&4&&x&&(e.adler=n.check=n.flags?rd(n.check,r,x,o-x):l7(n.check,r,x,o-x)),x=l,n.wrap&4&&(n.flags?d:$R(d))!==n.check){e.msg="incorrect data check",n.mode=cr;break}d=0,m=0}n.mode=VR;case VR:if(n.wrap&&n.flags){for(;m<32;){if(c===0)break e;c--,d+=a[i++]<<m,m+=8}if(n.wrap&4&&d!==(n.total&4294967295)){e.msg="incorrect length check",n.mode=cr;break}d=0,m=0}n.mode=zR;case zR:I=mfe;break e;case cr:I=w$;break e;case N$:return T$;case k$:default:return Rl}return e.next_out=o,e.avail_out=l,e.next_in=i,e.avail_in=c,n.hold=d,n.bits=m,(n.wsize||x!==e.avail_out&&n.mode<cr&&(n.mode<tN||t!==wR)
vendor: 2,657 bytes, line 950
950)&&S$(e,e.output,e.next_out,x-e.avail_out),h-=e.avail_in,x-=e.avail_out,e.total_in+=h,e.total_out+=x,n.total+=x,n.wrap&4&&x&&(e.adler=n.check=n.flags?rd(n.check,r,x,e.next_out-x):l7(n.check,r,x,e.next_out-x)),e.data_type=n.bits+(n.last?64:0)+(n.mode===Em?128:0)+(n.mode===ky||n.mode===eN?256:0),(h===0&&x===0||t===wR)&&I===B0&&(I=hfe),I},Nfe=e=>{if(af(e))return Rl;let t=e.state;return t.window&&(t.window=null),e.state=null,B0},kfe=(e,t)=>{if(af(e))return Rl;const n=e.state;return(n.wrap&2)===0?Rl:(n.head=t,t.done=!1,B0)},jfe=(e,t)=>{const n=t.length;let a,r,i;return af(e)||(a=e.state,a.wrap!==0&&a.mode!==P3)?Rl:a.mode===P3&&(r=1,r=l7(r,t,n,0),r!==a.check)?w$:(i=S$(e,t,n,n),i?(a.mode=N$,T$):(a.havedict=1,B0))};var Afe=A$,Efe=E$,Cfe=j$,Sfe=yfe,_fe=C$,Pfe=Tfe,Dfe=Nfe,Rfe=kfe,Ife=jfe,Mfe="pako inflate (from Nodeca project)",Pm={inflateReset:Afe,inflateReset2:Efe,inflateResetKeep:Cfe,inflateInit:Sfe,inflateInit2:_fe,inflate:Pfe,inflateEnd:Dfe,inflateGetHeader:Rfe,inflateSetDictionary:Ife,inflateInfo:Mfe};function Lfe(){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 Ofe=Lfe;const _$=Object.prototype.toString,{Z_NO_FLUSH:Bfe,Z_FINISH:Ffe,Z_OK:h2,Z_STREAM_END:sN,Z_NEED_DICT:rN,Z_STREAM_ERROR:Ufe,Z_DATA_ERROR:GR,Z_MEM_ERROR:Hfe}=g$;function X2(e){this.options=x$.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)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new nfe,this.strm.avail_out=0;let n=Pm.inflateInit2(this.strm,t.windowBits);if(n!==h2)throw new Error(u7[n]);if(this.header=new Ofe,Pm.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=d7.string2buf(t.dictionary):_$.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Pm.inflateSetDictionary(this.strm,t.dictionary),n!==h2)))throw new Error(u7[n])}X2.prototype.push=function(e,t){const n=this.strm,a=this.options.chunkSize,r=this.options.dictionary;let i,o,c;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?Ffe:Bfe,_$.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(a),n.next_out=0,n.avail_out=a),i=Pm.inflate(n,o),i===rN&&r&&(i=Pm.inflateSetDictionary(n,r),i===h2?i=Pm.inflate(n,o):i===GR&&(i=rN)
vendor: 9,257 bytes, line 950
950);n.avail_in>0&&i===sN&&n.state.wrap>0&&e[n.next_in]!==0;)Pm.inflateReset(n),i=Pm.inflate(n,o);switch(i){case Ufe:case GR:case rN:case Hfe:return this.onEnd(i),this.ended=!0,!1}if(c=n.avail_out,n.next_out&&(n.avail_out===0||i===sN))if(this.options.to==="string"){let l=d7.utf8border(n.output,n.next_out),d=n.next_out-l,m=d7.buf2string(n.output,l);n.next_out=d,n.avail_out=a-d,d&&n.output.set(n.output.subarray(l,l+d),0),this.onData(m)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(i===h2&&c===0)){if(i===sN)return i=Pm.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};X2.prototype.onData=function(e){this.chunks.push(e)};X2.prototype.onEnd=function(e){e===h2&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=x$.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Vfe(e,t){const n=new X2(t);if(n.push(e),n.err)throw n.msg||u7[n.err];return n.result}var zfe=X2,$fe=Vfe,qfe={Inflate:zfe,inflate:$fe};const{Inflate:Gfe,inflate:Jfe}=qfe;var JR=Gfe,Wfe=Jfe;const P$=[];for(let e=0;e<256;e++){let t=e;for(let n=0;n<8;n++)t&1?t=3988292384^t>>>1:t=t>>>1;P$[e]=t}const WR=4294967295;function Yfe(e,t,n){let a=e;for(let r=0;r<n;r++)a=P$[(a^t[r])&255]^a>>>8;return a}function Xfe(e,t){return(Yfe(WR,e,t)^WR)>>>0}function YR(e,t,n){const a=e.readUint32(),r=Xfe(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(r!==a)throw new Error(`CRC mismatch for chunk ${n}. Expected ${a}, found ${r}`)}function D$(e,t,n){for(let a=0;a<n;a++)t[a]=e[a]}function R$(e,t,n,a){let r=0;for(;r<a;r++)t[r]=e[r];for(;r<n;r++)t[r]=e[r]+t[r-a]&255}function I$(e,t,n,a){let r=0;if(n.length===0)for(;r<a;r++)t[r]=e[r];else for(;r<a;r++)t[r]=e[r]+n[r]&255}function M$(e,t,n,a,r){let i=0;if(n.length===0){for(;i<r;i++)t[i]=e[i];for(;i<a;i++)t[i]=e[i]+(t[i-r]>>1)&255}else{for(;i<r;i++)t[i]=e[i]+(n[i]>>1)&255;for(;i<a;i++)t[i]=e[i]+(t[i-r]+n[i]>>1)&255}}function L$(e,t,n,a,r){let i=0;if(n.length===0){for(;i<r;i++)t[i]=e[i];for(;i<a;i++)t[i]=e[i]+t[i-r]&255}else{for(;i<r;i++)t[i]=e[i]+n[i]&255;for(;i<a;i++)t[i]=e[i]+Qfe(t[i-r],n[i],n[i-r])&255}}function Qfe(e,t,n){const a=e+t-n,r=Math.abs(a-e),i=Math.abs(a-t),o=Math.abs(a-n);return r<=i&&r<=o?e:i<=o?t:n}function Kfe(e,t,n,a,r,i){switch(e){case 0:D$(t,n,r);break;case 1:R$(t,n,r,i);break;case 2:I$(t,n,a,r);break;case 3:M$(t,n,a,r,i);break;case 4:L$(t,n,a,r,i);break;default:throw new Error(`Unsupported filter: ${e}`)}}const Zfe=new Uint16Array([255]),ege=new Uint8Array(Zfe.buffer),tge=ege[0]===255;function nge(e){const{data:t,width:n,height:a,channels:r,depth:i}=e,o=[{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}],c=Math.ceil(i/8)*r,l=new Uint8Array(a*n*c);let d=0;for(let m=0;m<7;m++){const h=o[m],x=Math.ceil((n-h.x)/h.xStep),f=Math.ceil((a-h.y)/h.yStep);if(x<=0||f<=0)continue;const b=x*c,y=new Uint8Array(b);for(let w=0;w<f;w++){const T=t[d++],A=t.subarray(d,d+b);d+=b;const E=new Uint8Array(b);Kfe(T,A,E,y,b,c),y.set(E);for(let D=0;D<x;D++){const S=h.x+D*h.xStep,R=h.y+w*h.yStep;if(!(S>=n||R>=a))for(let L=0;L<c;L++)l[(R*n+S)*c+L]=E[D*c+L]}}}if(i===16){const m=new Uint16Array(l.buffer);if(tge)for(let h=0;h<m.length;h++)m[h]=age(m[h]);return m}else return l}function age(e){return(e&255)<<8|e>>8&255}const sge=new Uint16Array([255]),rge=new Uint8Array(sge.buffer),ige=rge[0]===255,oge=new Uint8Array(0);function XR(e){const{data:t,width:n,height:a,channels:r,depth:i}=e,o=Math.ceil(i/8)*r,c=Math.ceil(i/8*r*n),l=new Uint8Array(a*c);let d=oge,m=0,h,x;for(let f=0;f<a;f++){switch(h=t.subarray(m+1,m+1+c),x=l.subarray(f*c,(f+1)*c),t[m]){case 0:D$(h,x,c);break;case 1:R$(h,x,c,o);break;case 2:I$(h,x,d,c);break;case 3:M$(h,x,d,c,o);break;case 4:L$(h,x,d,c,o);break;default:throw new Error(`Unsupported filter: ${t[m]}`)}d=x,m+=c+1}if(i===16){const f=new Uint16Array(l.buffer);if(ige)for(let b=0;b<f.length;b++)f[b]=cge(f[b]);return f}else return l}function cge(e){return(e&255)<<8|e>>8&255}const X5=Uint8Array.of(137,80,78,71,13,10,26,10);function QR(e){if(!lge(e.readBytes(X5.length)))throw new Error("wrong PNG signature")}function lge(e){if(e.length<X5.length)return!1;for(let t=0;t<X5.length;t++)if(e[t]!==X5[t])return!1;return!0}const uge="tEXt",dge=0,O$=new TextDecoder("latin1");function mge(e){if(hge(e),e.length===0||e.length>79)throw new Error("keyword length must be between 1 and 79")}const pge=/^[\u0000-\u00FF]*$/;function hge(e){if(!pge.test(e))throw new Error("invalid latin1 text")}function fge(e,t,n){const a=B$(t);e[a]=gge(t,n-a.length-1)}function B$(e){for(e.mark();e.readByte()!==dge;);const t=e.offset;e.reset();const n=O$.decode(e.readBytes(t-e.offset-1));return e.skip(1),mge(n),n}function gge(e,t){return O$.decode(e.readBytes(t))}const Uc={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},iN={UNKNOWN:-1,DEFLATE:0},KR={UNKNOWN:-1,ADAPTIVE:0},oN={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Ay={NONE:0,BACKGROUND:1,PREVIOUS:2},cN={SOURCE:0,OVER:1};class xge extends d9{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(t,n={}){super(t);const{checkCrc:a=!1}=n;this._checkCrc=a,this._inflator=new JR,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=iN.UNKNOWN,this._filterMethod=KR.UNKNOWN,this._interlaceMethod=oN.UNKNOWN,this._colorType=Uc.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(QR(this);!this._end;){const t=this.readUint32(),n=this.readChars(4);this.decodeChunk(t,n)}return this.decodeImage(),this._png}decodeApng(){for(QR(this);!this._end;){const t=this.readUint32(),n=this.readChars(4);this.decodeApngChunk(t,n)}return this.decodeApngImage(),this._apng}decodeChunk(t,n){const a=this.offset;switch(n){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(t);break;case"IDAT":this.decodeIDAT(t);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(t);break;case"iCCP":this.decodeiCCP(t);break;case uge:fge(this._png.text,this,t);break;case"pHYs":this.decodepHYs();break;default:this.skip(t);break}if(this.offset-a!==t)throw new Error(`Length mismatch while decoding chunk ${n}`);this._checkCrc?YR(this,t+4,n):this.skip(4)}decodeApngChunk(t,n){const a=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(t);break;default:this.decodeChunk(t,n),this.offset=a+t;break}if(this.offset-a!==t)throw new Error(`Length mismatch while decoding chunk ${n}`);this._checkCrc?YR(this,t+4,n):this.skip(4)}decodeIHDR(){const t=this._png;t.width=this.readUint32(),t.height=this.readUint32(),t.depth=bge(this.readUint8());const n=this.readUint8();this._colorType=n;let a;switch(n){case Uc.GREYSCALE:a=1;break;case Uc.TRUECOLOUR:a=3;break;case Uc.INDEXED_COLOUR:a=1;break;case Uc.GREYSCALE_ALPHA:a=2;break;case Uc.TRUECOLOUR_ALPHA:a=4;break;case Uc.UNKNOWN:default:throw new Error(`Unknown color type: ${n}`)}if(this._png.channels=a,this._compressionMethod=this.readUint8(),this._compressionMethod!==iN.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 t={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(t)}decodePLTE(t){if(t%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${t}`);const n=t/3;this._hasPalette=!0;const a=[];this._palette=a;for(let r=0;r<n;r++)a.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(t){this._writingDataChunks=!0;const n=t,a=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,a,n)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodeFDAT(t){this._writingDataChunks=!0;let n=t,a=this.offset+this.byteOffset;if(a+=4,n-=4,this._inflator.push(new Uint8Array(this.buffer,a,n)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodetRNS(t){switch(this._colorType){case Uc.GREYSCALE:case Uc.TRUECOLOUR:{if(t%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${t}`);if(t/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alph
vendor: 5,093 bytes, line 950
950a values than there are pixels (${t/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(t/2);for(let n=0;n<t/2;n++)this._transparency[n]=this.readUint16();break}case Uc.INDEXED_COLOUR:{if(t>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${t} vs ${this._palette.length})`);let n=0;for(;n<t;n++){const a=this.readByte();this._palette[n].push(a)}for(;n<this._palette.length;n++)this._palette[n].push(255);break}case Uc.UNKNOWN:case Uc.GREYSCALE_ALPHA:case Uc.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(t){const n=B$(this),a=this.readUint8();if(a!==iN.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${a}`);const r=this.readBytes(t-n.length-2);this._png.iccEmbeddedProfile={name:n,profile:Wfe(r)}}decodepHYs(){const t=this.readUint32(),n=this.readUint32(),a=this.readByte();this._png.resolution={x:t,y:n,unit:a}}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 t=0;t<this._numberOfFrames;t++){const n={sequenceNumber:this._frames[t].sequenceNumber,delayNumber:this._frames[t].delayNumber,delayDenominator:this._frames[t].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)},a=this._frames.at(t);if(a){if(a.data=XR({data:a.data,width:a.width,height:a.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),t===0||a.xOffset===0&&a.yOffset===0&&a.width===this._png.width&&a.height===this._png.height)n.data=a.data;else{const r=this._apng.frames.at(t-1);this.disposeFrame(a,r,n),this.addFrameDataToCanvas(n,a)}this._apng.frames.push(n)}}return this._apng}disposeFrame(t,n,a){switch(t.disposeOp){case Ay.NONE:break;case Ay.BACKGROUND:for(let r=0;r<this._png.height;r++)for(let i=0;i<this._png.width;i++){const o=(r*t.width+i)*this._png.channels;for(let c=0;c<this._png.channels;c++)a.data[o+c]=0}break;case Ay.PREVIOUS:a.data.set(n.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(t,n){const a=1<<this._png.depth,r=(i,o)=>{const c=((i+n.yOffset)*this._png.width+n.xOffset+o)*this._png.channels,l=(i*n.width+o)*this._png.channels;return{index:c,frameIndex:l}};switch(n.blendOp){case cN.SOURCE:for(let i=0;i<n.height;i++)for(let o=0;o<n.width;o++){const{index:c,frameIndex:l}=r(i,o);for(let d=0;d<this._png.channels;d++)t.data[c+d]=n.data[l+d]}break;case cN.OVER:for(let i=0;i<n.height;i++)for(let o=0;o<n.width;o++){const{index:c,frameIndex:l}=r(i,o);for(let d=0;d<this._png.channels;d++){const m=n.data[l+this._png.channels-1]/a,h=d%(this._png.channels-1)===0?1:n.data[l+d],x=Math.floor(m*h+(1-m)*t.data[c+d]);t.data[c+d]+=x}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const t=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==KR.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===oN.NO_INTERLACE)this._png.data=XR({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===oN.ADAM7)this._png.data=nge({data:t,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 t=this._inflator.result,n=this._frames.at(-1);n?n.data=t:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:Ay.NONE,blendOp:cN.SOURCE,data:t}),this._inflator=new JR,this._writingDataChunks=!1}}function bge(e){if(e!==1&&e!==2&&e!==4&&e!==8&&e!==16)throw new Error(`invalid bit depth: ${e}`);return e}var ZR;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.METRE=1]="METRE"})(ZR||(ZR={}));function vge(e,t){return new xge(e,t).decode()}var Kn=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function lN(){Kn.console&&typeof Kn.console.log=="function"&&Kn.console.log.apply(Kn.console,arguments)}var Rs={log:lN,warn:function(e){Kn.console&&(typeof Kn.console.warn=="function"?Kn.console.warn.apply(Kn.console,arguments):lN.call(null,arguments))},error:function(e){Kn.console&&(typeof Kn.console.error=="function"?Kn.console.error.apply(Kn.console,arguments):lN(e))}};
vendor: 3,822 bytes, lines 950-955
950function uN(e,t,n){var a=new XMLHttpRequest;a.open("GET",e),a.responseType="blob",a.onload=function(){h0(a.response,t,n)},a.onerror=function(){Rs.error("could not download file")},a.send()}function eI(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Ey(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var h0=Kn.saveAs||((typeof window>"u"?"undefined":xs(window))!=="object"||window!==Kn?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,n){var a=Kn.URL||Kn.webkitURL,r=document.createElement("a");t=t||e.name||"download",r.download=t,r.rel="noopener",typeof e=="string"?(r.href=e,r.origin!==location.origin?eI(r.href)?uN(e,t,n):Ey(r,r.target="_blank"):Ey(r)):(r.href=a.createObjectURL(e),setTimeout(function(){a.revokeObjectURL(r.href)},4e4),setTimeout(function(){Ey(r)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download",typeof e=="string")if(eI(e))uN(e,t,n);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout(function(){Ey(a)})}else navigator.msSaveOrOpenBlob((function(r,i){return i===void 0?i={autoBom:!1}:xs(i)!=="object"&&(Rs.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(r.type)?new Blob(["\uFEFF",r],{type:r.type}):r})(e,n),t)}:function(e,t,n,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),typeof e=="string")return uN(e,t,n);var r=e.type==="application/octet-stream",i=/constructor/i.test(Kn.HTMLElement)||Kn.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||r&&i)&&(typeof FileReader>"u"?"undefined":xs(FileReader))==="object"){var c=new FileReader;c.onloadend=function(){var m=c.result;m=o?m:m.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=m:location=m,a=null},c.readAsDataURL(e)}else{var l=Kn.URL||Kn.webkitURL,d=l.createObjectURL(e);a?a.location=d:location.href=d,a=null,setTimeout(function(){l.revokeObjectURL(d)},4e4)}});/** 951 * A class to parse color values 952 * @author Stoyan Stefanov <[email protected]> 953 * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} 954 * @license Use it if you like it 955 */function F$(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
9550",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 n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(c){return[parseInt(c[1]),parseInt(c[2]),parseInt(c[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(c){return[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(c){return[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16)]}}],a=0;a<n.length;a++){var r=n[a].re,i=n[a].process,o=r.exec(e);o&&(t=i(o),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 c=this.r.toString(16),l=this.g.toString(16),d=this.b.toString(16);return c.length==1&&(c="0"+c),l.length==1&&(l="0"+l),d.length==1&&(d="0"+d),"#"+c+l+d}}var Q5=Kn.atob.bind(Kn),tI=Kn.btoa.bind(Kn);/** 956 * @license 957 * Joseph Myers does not specify a particular license for his work. 958 * 959 * Author: Joseph Myers 960 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js 961 * 962 * Modified by: Owen Leong 963 */function dN(e,t){var n=e[0],a=e[1],r=e[2],i=e[3];n=mo(n,a,r,i,t[0],7,-680876936),i=mo(i,n,a,r,t[1],12,-389564586),r=mo(r,i,n,a,t[2],17,606105819),a=mo(a,r,i,n,t[3],22,-1044525330),n=mo(n,a,r,i,t[4],7,-176418897),i=mo(i,n,a,r,t[5],12,1200080426),r=mo(r,i,n,a,t[6],17,-1473231341),a=mo(a,r,i,n,t[7],22,-45705983),n=mo(n,a,r,i,t[8],7,1770035416),i=mo(i,n,a,r,t[9],12,-1958414417),r=mo(r,i,n,a,t[10],17,-42063),a=mo(a,r,i,n,t[11],22,-1990404162),n=mo(n,a,r,i,t[12],7,1804603682),i=mo(i,n,a,r,t[13],
vendor: 9,225 bytes, lines 963-980
96312,-40341101),r=mo(r,i,n,a,t[14],17,-1502002290),n=po(n,a=mo(a,r,i,n,t[15],22,1236535329),r,i,t[1],5,-165796510),i=po(i,n,a,r,t[6],9,-1069501632),r=po(r,i,n,a,t[11],14,643717713),a=po(a,r,i,n,t[0],20,-373897302),n=po(n,a,r,i,t[5],5,-701558691),i=po(i,n,a,r,t[10],9,38016083),r=po(r,i,n,a,t[15],14,-660478335),a=po(a,r,i,n,t[4],20,-405537848),n=po(n,a,r,i,t[9],5,568446438),i=po(i,n,a,r,t[14],9,-1019803690),r=po(r,i,n,a,t[3],14,-187363961),a=po(a,r,i,n,t[8],20,1163531501),n=po(n,a,r,i,t[13],5,-1444681467),i=po(i,n,a,r,t[2],9,-51403784),r=po(r,i,n,a,t[7],14,1735328473),n=ho(n,a=po(a,r,i,n,t[12],20,-1926607734),r,i,t[5],4,-378558),i=ho(i,n,a,r,t[8],11,-2022574463),r=ho(r,i,n,a,t[11],16,1839030562),a=ho(a,r,i,n,t[14],23,-35309556),n=ho(n,a,r,i,t[1],4,-1530992060),i=ho(i,n,a,r,t[4],11,1272893353),r=ho(r,i,n,a,t[7],16,-155497632),a=ho(a,r,i,n,t[10],23,-1094730640),n=ho(n,a,r,i,t[13],4,681279174),i=ho(i,n,a,r,t[0],11,-358537222),r=ho(r,i,n,a,t[3],16,-722521979),a=ho(a,r,i,n,t[6],23,76029189),n=ho(n,a,r,i,t[9],4,-640364487),i=ho(i,n,a,r,t[12],11,-421815835),r=ho(r,i,n,a,t[15],16,530742520),n=fo(n,a=ho(a,r,i,n,t[2],23,-995338651),r,i,t[0],6,-198630844),i=fo(i,n,a,r,t[7],10,1126891415),r=fo(r,i,n,a,t[14],15,-1416354905),a=fo(a,r,i,n,t[5],21,-57434055),n=fo(n,a,r,i,t[12],6,1700485571),i=fo(i,n,a,r,t[3],10,-1894986606),r=fo(r,i,n,a,t[10],15,-1051523),a=fo(a,r,i,n,t[1],21,-2054922799),n=fo(n,a,r,i,t[8],6,1873313359),i=fo(i,n,a,r,t[15],10,-30611744),r=fo(r,i,n,a,t[6],15,-1560198380),a=fo(a,r,i,n,t[13],21,1309151649),n=fo(n,a,r,i,t[4],6,-145523070),i=fo(i,n,a,r,t[11],10,-1120210379),r=fo(r,i,n,a,t[2],15,718787259),a=fo(a,r,i,n,t[9],21,-343485551),e[0]=Qp(n,e[0]),e[1]=Qp(a,e[1]),e[2]=Qp(r,e[2]),e[3]=Qp(i,e[3])}function n6(e,t,n,a,r,i){return t=Qp(Qp(t,e),Qp(a,i)),Qp(t<<r|t>>>32-r,n)}function mo(e,t,n,a,r,i,o){return n6(t&n|~t&a,e,t,r,i,o)}function po(e,t,n,a,r,i,o){return n6(t&a|n&~a,e,t,r,i,o)}function ho(e,t,n,a,r,i,o){return n6(t^n^a,e,t,r,i,o)}function fo(e,t,n,a,r,i,o){return n6(n^(t|~a),e,t,r,i,o)}function U$(e){var t,n=e.length,a=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)dN(a,yge(e.substring(t-64,t)));e=e.substring(t-64);var r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)r[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(r[t>>2]|=128<<(t%4<<3),t>55)for(dN(a,r),t=0;t<16;t++)r[t]=0;return r[14]=8*n,dN(a,r),a}function yge(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}var nI="0123456789abcdef".split("");function wge(e){for(var t="",n=0;n<4;n++)t+=nI[e>>8*n+4&15]+nI[e>>8*n&15];return t}function Tge(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function m7(e){return U$(e).map(Tge).join("")}var Nge=(function(e){for(var t=0;t<e.length;t++)e[t]=wge(e[t]);return e.join("")})(U$("hello"))!="5d41402abc4b2a76b9719d911017c592";function Qp(e,t){if(Nge){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&4294967295}/** 964 * @license 965 * FPDF is released under a permissive license: there is no usage restriction. 966 * You may embed it freely in your application (commercial or not), with or 967 * without modifications. 968 * 969 * Reference: http://www.fpdf.org/en/script/script37.php 970 */function p7(e,t){var n,a,r,i;if(e!==n){for(var o=(r=e,i=1+(256/e.length|0),new Array(i+1).join(r)),c=[],l=0;l<256;l++)c[l]=l;var d=0;for(l=0;l<256;l++){var m=c[l];d=(d+m+o.charCodeAt(l))%256,c[l]=c[d],c[d]=m}n=e,a=c}else c=a;var h=t.length,x=0,f=0,b="";for(l=0;l<h;l++)f=(f+(m=c[x=(x+1)%256]))%256,c[x]=c[f],c[f]=m,o=c[(c[x]+c[f])%256],b+=String.fromCharCode(t.charCodeAt(l)^o);return b}/** 971 * @license 972 * Licensed under the MIT License. 973 * http://opensource.org/licenses/mit-license 974 * Author: Owen Leong (@owenl131) 975 * Date: 15 Oct 2020 976 * References: 977 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt 978 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js 979 * http://www.fpdf.org/en/script/script37.php 980 */var aI={print:4,modify:8,copy:16,"annot-forms":32};function jg(e,t,n,a){this.v=1,this.r=2;var r=192;e.forEach(function(c){if(aI.perm!==void 0)throw new Error("Invalid permission: "+c);r+=aI[c]}),this.padding="(¿N^NuÂAd\0NVÿú�\b..\0¶Ãh>Â/\f©þdSiz";var i=(t+this.padding).substr(0,32),o=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,o),this.P=-(1+(255^r)),this.encryptionKey=m7(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(a)).substr(0,5),this.U=p7(this.encryptionKey,this.padding)}function Ag(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",n=e.length,a=0;a<n;a++){var r=e.charCodeAt(a);t+=r<33||r===35||r===37||r===40||r===41||r===47||r===60||r===62||r===91||r===93||r===123||r===125||r>126?"#"+("0"+r.toString(16)).slice(-2):e[a]}return t}function sI(e){if(xs(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(n,a,r){if(r=r||!1,typeof n!="string"||typeof a!="function"||typeof r!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(n)||(t[n]={});var i=Math.random().toString(35);return t[n][i]=[a,!!r],i},this.unsubscribe=function(n){for(var a in t)if(t[a][n])return delete t[a][n],Object.keys(t[a]).length===0&&delete t[a],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var a=Array.prototype.slice.call(arguments,1),r=[];for(var i in t[n]){var o=t[n][i];try{o[0].apply(e,a)}catch(c){Kn.console&&Rs.error("jsPDF PubSub Error",c.message,c)}o[1]&&r.push(i)}r.length&&r.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function D3(e){if(!(this instanceof D3))return new D3(e);var t="opacity,stroke-opacity".split(",");for(var n in e)e.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=e[n]);this.id="",this.objectNumber=-1}function H$(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function b0(e,t,n,a,r){if(!(this instanceof b0))return new b0(e,t,n,a,r);this.type=e==="axial"?2:3,this.coords=t,this.colors=n,H$.call(this,a,r)}function Bg(e,t,n,a,r){if(!(this instanceof Bg))return new Bg(e,t,n,a,r);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,H$.call(this,a,r)}function En(e){var t,n=typeof arguments[0]=="string"?arguments[0]:"p",a=arguments[1],r=arguments[2],i=arguments[3],o=[],c=1,l=16,d="S",m=null;xs(e=e||{})==="object"&&(n=e.orientation,a=e.unit||a,r=e.format||r,i=e.compress||e.compressPdf||i,(m=e.encryption||null)!==null&&(m.userPassword=m.userPassword||"",m.ownerPassword=m.ownerPassword||"",m.userPermissions=m.userPermissions||[]),c=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(l=e.floatPrecision),d=e.defaultPathOperation||"S"),o=e.filters||(i===!0?["FlateEncode"]:o),a=a||"mm",n=(""+(n||"P")).toLowerCase();var h=e.putOnlyUsedFonts||!1,x={},f={internal:{},__private__:{}};f.__private__.PubSub=sI;var b="1.3",y=f.__private__.getPdfVersion=function(){return b};f.__private__.setPdfVersion=function(B){b=B};var w={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 w};var T=f.__private__.getPageFormat=function(B){return w[B]};r=r||"a4";var A="compat",E="advanced",D=A;function S(){this.saveGraphicsState(),be(new Wt(Mt,0,0,-Mt,0,Xd()*Mt).toString()+" cm"),this.setFontSize(this.getFontSize()/Mt),d="n",D=E}function R(){this.restoreGraphicsState(),d="S",D=A}var L=f.__private__.combineFontStyleAndFontWeight=function(B,se){if(B=="bold"&&se=="normal"||B=="bold"&&se==400||B=="normal"&&se=="italic"||B=="bold"&&se=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return se&&(B=se==400||se==="normal"?B==="italic"?"italic":"normal":se!=700&&se!=="bold"||B!=="normal"?(se==700?"bold":se)+""+B:"bold"),B};f.advancedAPI=function(B){var se=D===A;return se&&S.call(this),typeof B!="function"||(B(this),se&&R.call(this)),this},f.compatAPI=function(B){var se=D===E;return se&&R.call(this),typeof B!="function"||(B(this),se&&S.call(this)),this},f.isAdvancedAPI=function(){return D===E};var I,F=function(B){if(D!==E)throw new Error(B+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},_=f.roundToPrecision=f.__private__.roundToPrecision=function(B,se){var Te=t||se;if(isNaN(B)||isNaN(Te))throw new Error("Invalid argument passed to
980jsPDF.roundToPrecision");return B.toFixed(Te).replace(/0+$/,"")};I=f.hpf=f.__private__.hpf=typeof l=="number"?function(B){if(isNaN(B))throw new Error("Invalid argument passed to jsPDF.hpf");return _(B,l)}:l==="smart"?function(B){if(isNaN(B))throw new Error("Invalid argument passed to jsPDF.hpf");return _(B,B>-1&&B<1?16:5)}:function(B){if(isNaN(B))throw new Error("Invalid argument passed to jsPDF.hpf");return _(B,16)};var U=f.f2=f.__private__.f2=function(B){if(isNaN(B))throw new Error("Invalid argument passed to jsPDF.f2");return _(B,2)},O=f.__private__.f3=function(B){if(isNaN(B))throw new Error("Invalid argument passed to jsPDF.f3");return _(B,3)},W=f.scale=f.__private__.scale=function(B){if(isNaN(B))throw new Error("Invalid argument passed to jsPDF.scale");return D===A?B*Mt:D===E?B:void 0},J=function(B){return W((function(se){return D===A?Xd()-se:D===E?se:void 0})(B))};f.__private__.setPrecision=f.setPrecision=function(B){typeof parseInt(B,10)=="number"&&(t=parseInt(B,10))};var oe,G="00000000000000000000000000000000",K=f.__private__.getFileId=function(){return G},ee=f.__private__.setFileId=function(B){return G=B!==void 0&&/^[a-fA-F0-9]{32}$/.test(B)?B.toUpperCase():G.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),m!==null&&(Hr=new jg(m.userPermissions,m.userPassword,m.ownerPassword,G)),G};f.setFileId=function(B){return ee(B),this},f.getFileId=function(){return K()};var pe=f.__private__.convertDateToPDFDate=function(B){var se=B.getTimezoneOffset(),Te=se<0?"+":"-",Re=Math.floor(Math.abs(se/60)),Ve=Math.abs(se%60),ut=[Te,ne(Re),"'",ne(Ve),"'"].join("");return["D:",B.getFullYear(),ne(B.getMonth()+1),ne(B.getDate()),ne(B.getHours()),ne(B.getMinutes()),ne(B.getSeconds()),ut].join("")},V=f.__private__.convertPDFDateToDate=function(B){var se=parseInt(B.substr(2,4),10),Te=parseInt(B.substr(6,2),10)-1,Re=parseInt(B.substr(8,2),10),Ve=parseInt(B.substr(10,2),10),ut=parseInt(B.substr(12,2),10),wt=parseInt(B.substr(14,2),10);return new Date(se,Te,Re,Ve,ut,wt,0)},Y=f.__private__.setCreationDate=function(B){var se;if(B===void 0&&(B=new Date),B instanceof Date)se=pe(B);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(B))throw new Error("Invalid argument passed to jsPDF.setCreationDate");se=B}return oe=se},z=f.__private__.getCreationDate=function(B){var se=oe;return B==="jsDate"&&(se=V(oe)),se};f.setCreationDate=function(B){return Y(B),this},f.getCreationDate=function(B){return z(B)};var H,ne=f.__private__.padd2=function(B){return("0"+parseInt(B)).slice(-2)},te=f.__private__.padd2Hex=function(B){return("00"+(B=B.toString())).substr(B.length)},me=0,fe=[],Ae=[],xe=0,ae=[],le=[],ze=!1,pt=Ae;f.__private__.setCustomOutputDestination=function(B){ze=!0,pt=B};var xt=function(B){ze||(pt=B)};f.__private__.resetCustomOutputDestination=function(){ze=!1,pt=Ae};var be=f.__private__.out=function(B){return B=B.toString(),xe+=B.length+1,pt.push(B),pt},Tt=f.__private__.write=function(B){return be(arguments.length===1?B.toString():Array.prototype.join.call(arguments," "))},Xt=f.__private__.getArrayBuffer=function(B){for(var se=B.length,Te=new ArrayBuffer(se),Re=new Uint8Array(Te);se--;)Re[se]=B.charCodeAt(se);return Te},Jt=[["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 Jt};var it=e.fontSize||16;f.__private__.setFontSize=f.setFontSize=function(B){return it=D===E?B/Mt:B,this};var at,ct=f.__private__.getFontSize=f.getFontSize=function(){return D===A?it:it*Mt},Ct=e.R2L||!1;f.__private__.setR2L=f.setR2L=function(B){return Ct=B,this},f.__private__.getR2L=f.getR2L=function(){return Ct};var Ht,wn=f.__private__.setZoomMode=function(B){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(B
vendor: 17,440 bytes, lines 980-984
980))at=B;else if(isNaN(B)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(B)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+B+'" is not recognized.');at=B}else at=parseInt(B,10)};f.__private__.getZoomMode=function(){return at};var Hn,qe=f.__private__.setPageMode=function(B){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(B)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+B+'" is not recognized.');Ht=B};f.__private__.getPageMode=function(){return Ht};var dt=f.__private__.setLayoutMode=function(B){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(B)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+B+'" is not recognized.');Hn=B};f.__private__.getLayoutMode=function(){return Hn},f.__private__.setDisplayMode=f.setDisplayMode=function(B,se,Te){return wn(B),dt(se),qe(Te),this};var Dt={title:"",subject:"",author:"",keywords:"",creator:""};f.__private__.getDocumentProperty=function(B){if(Object.keys(Dt).indexOf(B)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Dt[B]},f.__private__.getDocumentProperties=function(){return Dt},f.__private__.setDocumentProperties=f.setProperties=f.setDocumentProperties=function(B){for(var se in Dt)Dt.hasOwnProperty(se)&&B[se]&&(Dt[se]=B[se]);return this},f.__private__.setDocumentProperty=function(B,se){if(Object.keys(Dt).indexOf(B)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Dt[B]=se};var yt,Mt,zt,ca,jn,Qt={},xn={},bn=[],rn={},He={},tt={},Ot={},Zn=null,Tn=0,qt=[],Vt=new sI(f),Ra=e.hotfixes||[],Pa={},Os={},mi=[],Wt=function B(se,Te,Re,Ve,ut,wt){if(!(this instanceof B))return new B(se,Te,Re,Ve,ut,wt);isNaN(se)&&(se=1),isNaN(Te)&&(Te=0),isNaN(Re)&&(Re=0),isNaN(Ve)&&(Ve=1),isNaN(ut)&&(ut=0),isNaN(wt)&&(wt=0),this._matrix=[se,Te,Re,Ve,ut,wt]};Object.defineProperty(Wt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(B){this._matrix[0]=B}}),Object.defineProperty(Wt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(B){this._matrix[1]=B}}),Object.defineProperty(Wt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(B){this._matrix[2]=B}}),Object.defineProperty(Wt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(B){this._matrix[3]=B}}),Object.defineProperty(Wt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(B){this._matrix[4]=B}}),Object.defineProperty(Wt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(B){this._matrix[5]=B}}),Object.defineProperty(Wt.prototype,"a",{get:function(){return this._matrix[0]},set:function(B){this._matrix[0]=B}}),Object.defineProperty(Wt.prototype,"b",{get:function(){return this._matrix[1]},set:function(B){this._matrix[1]=B}}),Object.defineProperty(Wt.prototype,"c",{get:function(){return this._matrix[2]},set:function(B){this._matrix[2]=B}}),Object.defineProperty(Wt.prototype,"d",{get:function(){return this._matrix[3]},set:function(B){this._matrix[3]=B}}),Object.defineProperty(Wt.prototype,"e",{get:function(){return this._matrix[4]},set:function(B){this._matrix[4]=B}}),Object.defineProperty(Wt.prototype,"f",{get:function(){return this._matrix[5]},set:function(B){this._matrix[5]=B}}),Object.defineProperty(Wt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Wt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Wt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Wt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Wt.prototype.join=function(B){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(I).join(B)},Wt.prototype.multiply=function(B){var se=B.sx*this.sx+B.shy*this.shx,Te=B.sx*this.shy+B.shy*this.sy,Re=B.shx*this.sx+B.sy*this.shx,Ve=B.shx*this.shy+B.sy*this.sy,ut=B.tx*this.sx+B.ty*this.shx+this.tx,wt=B.tx*this.shy+B.ty*this.sy+this.ty;return new Wt(se,Te,Re,Ve,ut,wt)},Wt.prototype.decompose=function(){var B=this.sx,se=this.shy,Te=this.shx,Re=this.sy,Ve=this.tx,ut=this.ty,wt=Math.sqrt(B*B+se*se),cn=(B/=wt)*Te+(se/=wt)*Re;Te-=B*cn,Re-=se*cn;var dn=Math.sqrt(Te*Te+Re*Re);return cn/=dn,B*(Re/=dn)<se*(Te/=dn)&&(B=-B,se=-se,cn=-cn,wt=-wt),{scale:new Wt(wt,0,0,dn,0,0),translate:new Wt(1,0,0,1,Ve,ut),rotate:new Wt(B,se,-se,B,0,0),skew:new Wt(1,0,cn,1,0,0)}},Wt.prototype.toString=function(B){return this.join(" ")},Wt.prototype.inversed=function(){var B=this.sx,se=this.shy,Te=this.shx,Re=this.sy,Ve=this.tx,ut=this.ty,wt=1/(B*Re-se*Te),cn=Re*wt,dn=-se*wt,Yn=-Te*wt,ea=B*wt;return new Wt(cn,dn,Yn,ea,-cn*Ve-Yn*ut,-dn*Ve-ea*ut)},Wt.prototype.applyToPoint=function(B){var se=B.x*this.sx+B.y*this.shx+this.tx,Te=B.x*this.shy+B.y*this.sy+this.ty;return new Wd(se,Te)},Wt.prototype.applyToRectangle=function(B){var se=this.applyToPoint(B),Te=this.applyToPoint(new Wd(B.x+B.w,B.y+B.h));return new Yd(se.x,se.y,Te.x-se.x,Te.y-se.y)},Wt.prototype.clone=function(){var B=this.sx,se=this.shy,Te=this.shx,Re=this.sy,Ve=this.tx,ut=this.ty;return new Wt(B,se,Te,Re,Ve,ut)},f.Matrix=Wt;var tr=f.matrixMult=function(B,se){return se.multiply(B)},Wi=new Wt(1,0,0,1,0,0);f.unitMatrix=f.identityMatrix=Wi;var js=function(B,se){if(!He[B]){var Te=(se instanceof b0?"Sh":"P")+(Object.keys(rn).length+1).toString(10);se.id=Te,He[B]=Te,rn[Te]=se,Vt.publish("addPattern",se)}};f.ShadingPattern=b0,f.TilingPattern=Bg,f.addShadingPattern=function(B,se){return F("addShadingPattern()"),js(B,se),this},f.beginTilingPattern=function(B){F("beginTilingPattern()"),$l(B.boundingBox[0],B.boundingBox[1],B.boundingBox[2]-B.boundingBox[0],B.boundingBox[3]-B.boundingBox[1],B.matrix)},f.endTilingPattern=function(B,se){F("endTilingPattern()"),se.stream=le[H].join(` 981`),js(B,se),Vt.publish("endTilingPattern",se),mi.pop().restore()};var As,ds=f.__private__.newObject=function(){var B=ss();return Ur(B,!0),B},ss=f.__private__.newObjectDeferred=function(){return me++,fe[me]=function(){return xe},me},Ur=function(B,se){return se=typeof se=="boolean"&&se,fe[B]=xe,se&&be(B+" 0 obj"),B},_u=f.__private__.newAdditionalObject=function(){var B={objId:ss(),content:""};return ae.push(B),B},Yi=ss(),ms=ss(),$s=f.__private__.decodeColorString=function(B){var se=B.split(" ");if(se.length!==2||se[1]!=="g"&&se[1]!=="G")se.length!==5||se[4]!=="k"&&se[4]!=="K"||(se=[(1-se[0])*(1-se[3]),(1-se[1])*(1-se[3]),(1-se[2])*(1-se[3]),"r"]);else{var Te=parseFloat(se[0]);se=[Te,Te,Te,"r"]}for(var Re="#",Ve=0;Ve<3;Ve++)Re+=("0"+Math.floor(255*parseFloat(se[Ve])).toString(16)).slice(-2);return Re},Ci=f.__private__.encodeColorString=function(B){var se;typeof B=="string"&&(B={ch1:B});var Te=B.ch1,Re=B.ch2,Ve=B.ch3,ut=B.ch4,wt=B.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof Te=="string"&&Te.charAt(0)!=="#"){var cn=new F$(Te);if(cn.ok)Te=cn.toHex();else if(!/^\d*\.?\d*$/.test(Te))throw new Error('Invalid color "'+Te+'" passed to jsPDF.encodeColorString.')}if(typeof Te=="string"&&/^#[0-9A-Fa-f]{3}$/.test(Te)&&(Te="#"+Te[1]+Te[1]+Te[2]+Te[2]+Te[3]+Te[3]),typeof Te=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Te)){var dn=parseInt(Te.substr(1),16);Te=dn>>16&255,Re=dn>>8&255,Ve=255&dn}if(Re===void 0||ut===void 0&&Te===Re&&Re===Ve)se=typeof Te=="string"?Te+" "+wt[0]:B.precision===2?U(Te/255)+" "+wt[0]:O(Te/255)+" "+wt[0];else if(ut===void 0||xs(ut)==="object"){if(ut&&!isNaN(ut.a)&&ut.a===0)return["1.","1.","1.",wt[1]].join(" ");se=typeof Te=="string"?[Te,Re,Ve,wt[1]].join(" "):B.precision===2?[U(Te/255),U(Re/255),U(Ve/255),wt[1]].join(" "):[O(Te/255),O(Re/255),O(Ve/255),wt[1]].join(" ")}else se=typeof Te=="string"?[Te,Re,Ve,ut,wt[2]].join(" "):B.precision===2?[U(Te),U(Re),U(Ve),U(ut),wt[2]].join(" "):[O(Te),O(Re),O(Ve),O(ut),wt[2]].join(" ");return se},jo=f.__private__.getFilters=function(){return o},zo=f.__private__.putStream=function(B){var se=(B=B||{}).data||"",Te=B.filters||jo(),Re=B.alreadyAppliedFilters||[],Ve=B.addLength1||!1,ut=se.length,wt=B.objectId,cn=function(Es){return Es};if(m!==null&&wt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");m!==null&&(cn=Hr.encryptor(wt,0));var dn={};Te===!0&&(Te=["FlateEncode"]);var Yn=B.additionalKeyValues||[],ea=(dn=En.API.processDataByFilters!==void 0?En.API.processDataByFilters(se,Te):{data:se,reverseChain:[]}).reverseChain+(Array.isArray(Re)?Re.join(" "):Re.toString());if(dn.data.length!==0&&(Yn.push({key:"Length",value:dn.data.length}),Ve===!0&&Yn.push({key:"Length1",value:ut})),ea.length!=0)if(ea.split("/").length-1==1)Yn.push({key:"Filter",value:ea});else{Yn.push({key:"Filter",value:"["+ea+"]"});for(var wa=0;wa<Yn.length;wa+=1)if(Yn[wa].key==="DecodeParms"){for(var jr=[],ps=0;ps<dn.reverseChain.split("/").length-1;ps+=1)jr.push("null");jr.push(Yn[wa].value),Yn[wa].value="["+jr.join(" ")+"]"}}be("<<");for(var rs=0;rs<Yn.length;rs++)be("/"+Yn[rs].key+" "+Yn[rs].value);be(">>"),dn.data.length!==0&&(be("stream"),be(cn(dn.data)),be("endstream"))},zd=f.__private__.putPage=function(B){var se=B.number,Te=B.data,Re=B.objId,Ve=B.contentsObjId;Ur(Re,!0),be("<</Type /Page"),be("/Parent "+B.rootDictionaryObjId+" 0 R"),be("/Resources "+B.resourceDictionaryObjId+" 0 R"),be("/MediaBox ["+parseFloat(I(B.mediaBox.bottomLeftX))+" "+parseFloat(I(B.mediaBox.bottomLeftY))+" "+I(B.mediaBox.topRightX)+" "+I(B.mediaBox.topRightY)+"]"),B.cropBox!==null&&be("/CropBox ["+I(B.cropBox.bottomLeftX)+" "+I(B.cropBox.bottomLeftY)+" "+I(B.cropBox.topRightX)+" "+I(B.cropBox.topRightY)+"]"),B.bleedBox!==null&&be("/BleedBox ["+I(B.bleedBox.bottomLeftX)+" "+I(B.bleedBox.bottomLeftY)+" "+I(B.bleedBox.topRightX)+" "+I(B.bleedBox.topRightY)+"]"),B.trimBox!==null&&be("/TrimBox ["+I(B.trimBox.bottomLeftX)+" "+I(B.trimBox.bottomLeftY)+" "+I(B.trimBox.topRightX)+" "+I(B.trimBox.topRightY)+"]"),B.artBox!==null&&be("/ArtBox ["+I(B.artBox.bottomLeftX)+" "+I(B.artBox.bottomLeftY)+" "+I(B.artBox.topRightX)+" "+I(B.artBox.topRightY)+"]"),typeof B.userUnit=="number"&&B.userUnit!==1&&be("/UserUnit "+B.userUnit),Vt.publish("putPage",{objId:Re,pageContext:qt[se],pageNumber:se,page:Te}),be("/Contents "+Ve+" 0 R"),be(">>"),be("endobj");var ut=Te.join(` 982`);return D===E&&(ut+=` 983Q`),Ur(Ve,!0),zo({data:ut,filters:jo(),objectId:Ve}),be("endobj"),Re},Tc=f.__private__.putPages=function(){var B,se,Te=[];for(B=1;B<=Tn;B++)qt[B].objId=ss(),qt[B].contentsObjId=ss();for(B=1;B<=Tn;B++)Te.push(zd({number:B,data:le[B],objId:qt[B].objId,contentsObjId:qt[B].contentsObjId,mediaBox:qt[B].mediaBox,cropBox:qt[B].cropBox,bleedBox:qt[B].bleedBox,trimBox:qt[B].trimBox,artBox:qt[B].artBox,userUnit:qt[B].userUnit,rootDictionaryObjId:Yi,resourceDictionaryObjId:ms}));Ur(Yi,!0),be("<</Type /Pages");var Re="/Kids [";for(se=0;se<Tn;se++)Re+=Te[se]+" 0 R ";be(Re+"]"),be("/Count "+Tn),be(">>"),be("endobj"),Vt.publish("postPutPages")},Nc=function(B){Vt.publish("putFont",{font:B,out:be,newObject:ds,putStream:zo}),B.isAlreadyPutted!==!0&&(B.objectNumber=ds(),be("<<"),be("/Type /Font"),be("/BaseFont /"+Ag(B.postScriptName)),be("/Subtype /Type1"),typeof B.encoding=="string"&&be("/Encoding /"+B.encoding),be("/FirstChar 32"),be("/LastChar 255"),be(">>"),be("endobj"))},Pu=function(B){B.objectNumber=ds();var se=[];se.push({key:"Type",value:"/XObject"}),se.push({key:"Subtype",value:"/Form"}),se.push({key:"BBox",value:"["+[I(B.x),I(B.y),I(B.x+B.width),I(B.y+B.height)].join(" ")+"]"}),se.push({key:"Matrix",value:"["+B.matrix.toString()+"]"});var Te=B.pages[1].join(` 984`);zo({data:Te,additionalKeyValues:se,objectId:B.objectNumber}),be("endobj")},kc=function(B,se){se||(se=21);var Te=ds(),Re=(function(wt,cn){var dn,Yn=[],ea=1/(cn-1);for(dn=0;dn<1;dn+=ea)Yn.push(dn);if(Yn.push(1),wt[0].offset!=0){var wa={offset:0,color:wt[0].color};wt.unshift(wa)}if(wt[wt.length-1].offset!=1){var jr={offset:1,color:wt[wt.length-1].color};wt.push(jr)}for(var ps="",rs=0,Es=0;Es<Yn.length;Es++){for(dn=Yn[Es];dn>wt[rs+1].offset;)rs++;var qs=wt[rs].offset,Gs=(dn-qs)/(wt[rs+1].offset-qs),Pi=wt[rs].color,Wl=wt[rs+1].color;ps+=te(Math.round((1-Gs)*Pi[0]+Gs*Wl[0]).toString(16))+te(Math.round((1-Gs)*Pi[1]+Gs*Wl[1]).toString(16))+te(Math.round((1-Gs)*Pi[2]+Gs*Wl[2]).toString(16))}return ps.trim()})(B.colors,se),Ve=[];Ve.push({key:"FunctionType",value:"0"}),Ve.push({key:"Domain",value:"[0.0 1.0]"}),Ve.push({key:"Size",value:"["+se+"]"}),Ve.push({key:"BitsPerSample",value:"8"}),Ve.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ve.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),zo({data:Re,additionalKeyValues:Ve,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Te}),be("endobj"),B.objectNumber=ds(),be("<< /ShadingType "+B.type),be("/ColorSpace /DeviceRGB");var ut="/Coords ["+I(parseFloat(B.coords[0]))+" "+I(parseFloat(B.coords[1]))+" ";B.type===2?ut+=I(parseFloat(B.coords[2]))+" "+I(parseFloat(B.coords[3])):ut+=I(parseFloat(B.coords[2]))+" "+I(parseFloat(B.coords[3]))+" "+I(parseFloat(B.coords[4]))+" "+I(parseFloat(B.coords[5])),be(ut+="]"),B.matrix&&be("/Matrix ["+B.matrix.toString()+"]"),be("/Function "+Te+" 0 R"),be("/Extend [true true]"),be(">>"),be("endobj")},jc=function(B,se){var Te=ss(),Re=ds();se.push({resourcesOid:Te,objectOid:Re}),B.objectNumber=Re;var Ve=[];Ve.push({key:"Type",value:"/Pattern"}),Ve.push({key:"PatternType",value:"1"}),Ve.push({key:"PaintType",value:"1"}),Ve.push({key:"TilingType",value:"1"}),Ve.push({key:"BBox",value:"["+B.boundingBox.map(I).join(" ")+"]"}),Ve.push({key:"XStep",value:I(B.xStep)}),Ve.push({key:"YStep",value:I(B.yStep)}),Ve.push({key:"Resources",value:Te+" 0 R"}),B.matrix&&Ve.push({key:"Matrix",value:"["+B.matrix.toString()+"]"}),zo({data:B.stream,additionalKeyValues:Ve,objectId:B.objectNumber}),be("endobj")},$d=function(B){for(var se in B.objectNumber=ds(),be("<<"),B)switch(se){case"opacity":be("/ca "+U(B[se]));break;case"stroke-opacity":be("/CA "+U(B[se]))}be(">>"),be("endobj")},nl=function(B){Ur(B.resourcesOid,!0),be("<<"),be("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var se in be("/Font <<"),Qt)Qt.hasOwnProperty(se)&&(h===!1||h===!0&&x.hasOwnProperty(se))&&be("/"+se+" "+Qt[se].objectNumber+" 0 R");be(">>")})(),(function(){if(Object.keys(rn).length>0){for(var se in be("/Shading <<"),rn)rn.hasOwnProperty(se)&&rn[se]instanceof b0&&rn[se].objectNumber>=0&&be("/"+se+" "+rn[se].objectNumber+" 0 R");Vt.publish("putShadingPatternDict"),be(">>")}})(),(function(se){if(Object.keys(rn).length>0){for(var Te in be("/Pattern <<"),rn)rn.hasOwnProperty(Te)&&rn[Te]instanceof f.TilingPattern&&rn[Te].objectNumber>=0&&rn[Te].objectNumber<se&&be("/"+Te+" "+rn[Te].objectNumber+" 0 R");Vt.publish("putTilingPatternDict"),be(">>")}})(B.objectOid),(function(){if(Object.keys(tt).length>0){var se;for(se in be("/ExtGState <<"),tt)tt.hasOwnProperty(se)&&tt[se].objectNumber>=0&&be("/"+se+" "+tt[se].objectNumber+" 0 R");Vt.publish("putGStateDict"),be(">>")}})(),(function(){for(var se in be("/XObject <<"),Pa)Pa.hasOwnProperty(se)&&Pa[se].objectNumber>=0&&be("/"+se+" "+Pa[se].objectNumber+" 0 R");Vt.publish("putXobjectDict"),be(">>")})(),be(">>"),be("endobj")},fr=function(B){xn[B.fontName]=xn[B.fontName]||{},xn[B.fontName][B.fontStyle]=B.id},jh=function(B,se,Te,Re,Ve){var ut={id:"F"+(Object.keys(Qt).length+1).toString(10),postScriptName:B,fontName:se,fontStyle:Te,encoding:Re,isStandardFont:Ve||!1,metadata:{}};return Vt.publish("addFont",{font:ut,instance:this}),Qt[ut.id]=ut,fr(ut),ut.id},Ao=f.__private__.pdfEscape=f.pdfEscape=function(B,se){return(function(Te,Re){var Ve,ut,wt,cn,dn,Yn,ea,wa,jr;if(wt=(Re=Re||{}).sourceEncoding||"Unicode",dn=Re.outputEncoding,(Re.autoencode||dn)&&Qt[yt].metadata&&Qt[yt].metadata[wt]&&Qt[yt].metadata[wt].encoding&&(cn=Qt[yt].metadata[wt].encoding,!dn&&Qt[yt].encoding&&(dn=Qt[yt].encoding),!dn&&cn.codePages&&(dn=cn.codePages[0]),typeof dn=="string"&&(dn=cn[dn]),dn)){for(ea=!1,Yn=[],Ve=0,ut=Te.length;Ve<ut;Ve++)(wa=dn[Te.charCodeAt(Ve)])?Yn.push(String.fromCharCode(wa)):Yn.push(Te[Ve]),Yn[Ve].charCodeAt(0)>>8&&(ea=!0);Te=Yn.join("")}for(Ve=Te.length;ea===void 0&&Ve!==0;)Te.charCodeAt(Ve-1)>>8&&(ea=!0),Ve--;if(!ea)return Te;for(Yn=Re.noBOM?[]:[254,255],Ve=0,ut=Te.length;Ve<ut;Ve++){if((jr=(wa=Te.charCodeAt(Ve))>>8)>>8)throw new Error("Character at position "+Ve+" of string '"+Te+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Yn.push(jr),Yn.push(wa-(jr<<8))}return String.fromCharCode.apply(void 0,Yn)})(B,se).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ac=f.__private__.beginPage=function(B){le[++Tn]=[],qt[Tn]={objId:0,contentsObjId:0,userUnit:Number(c),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(B[0]),topRightY:Number(B[1])}},Eh(Tn),xt(le[H])},Fl=function(B,se){var Te,Re,Ve;switch(n=se||n,typeof B=="string"&&(Te=T(B.toLowerCase()),Array.isArray(Te)&&(Re=Te[0],Ve=Te[1])),Array.isArray(B)&&(Re=B[0]*Mt,Ve=B[1]*Mt),isNaN(Re)&&(Re=r[0],Ve=r[1]),(Re>14400||Ve>14400)&&(Rs.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Re=Math.min(14400,Re),Ve=Math.min(14400,Ve)),r=[Re,Ve],n.substr(0,1)){case"l":Ve>Re&&(r=[Ve,Re]);break;case"p":Re>Ve&&(r=[Ve,Re])}Ac(r),Ih(Dn),be(Vl),Dc!==0&&be(Dc+" J"),Rc!==0&&be(Rc+" j"),Vt.publish("addPage",{pageNumber:Tn})},Ah=function(B){B>
9840&&B<=Tn&&(le.splice(B,1),qt.splice(B,1),Tn--,H>Tn&&(H=Tn),this.setPage(H))},Eh=function(B){B>0&&B<=Tn&&(H=B)},Ch=f.__private__.getNumberOfPages=f.getNumberOfPages=function(){return le.length-1},mf=function(B,se,Te){var Re,Ve=void 0;return Te=Te||{},B=B!==void 0?B:Qt[yt].fontName,se=se!==void 0?se:Qt[yt].fontStyle,Re=B.toLowerCase(),xn[Re]!==void 0&&xn[Re][se]!==void 0?Ve=xn[Re][se]:xn[B]!==void 0&&xn[B][se]!==void 0?Ve=xn[B][se]:Te.disableWarning===!1&&Rs.warn("Unable to look up font label for font '"+B+"', '"+se+"'. Refer to getFontList() for available fonts."),Ve||Te.noFallback||(Ve=xn.times[se])==null&&(Ve=xn.times.normal),Ve},Eo=f.__private__.putInfo=function(){var B=ds(),se=function(Re){return Re};for(var Te in m!==null&&(se=Hr.encryptor(B,0)),be("<<"),be("/Producer ("+Ao(se("jsPDF "+En.version))+")"),Dt)Dt.hasOwnProperty(Te)&&Dt[Te]&&be("/"+Te.substr(0,1).toUpperCase()+Te.substr(1)+" ("+Ao(se(Dt[Te]))+")");be("/CreationDate ("+Ao(se(oe))+")"),be(">>"),be("endobj")},Ul=f.__private__.putCatalog=function(B){var se=(B=B||{}).rootDictionaryObjId||Yi;switch(ds(),be("<<"),be("/Type /Catalog"),be("/Pages "+se+" 0 R"),at||(at="fullwidth"),at){case"fullwidth":be("/OpenAction [3 0 R /FitH null]");break;case"fullheight":be("/OpenAction [3 0 R /FitV null]");break;case"fullpage":be("/OpenAction [3 0 R /Fit]");break;case"original":be("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Te=""+at;Te.substr(Te.length-1)==="%"&&(at=parseInt(at)/100),typeof at=="number"&&be("/OpenAction [3 0 R /XYZ null null "+U(at)+"]")}switch(Hn||(Hn="continuous"),Hn){case"continuous":be("/PageLayout /OneColumn");break;case"single":be("/PageLayout /SinglePage");break;case"two":case"twoleft":be("/PageLayout /TwoColumnLeft");break;case"tworight":be("/PageLayout /TwoColumnRight")}Ht&&be("/PageMode /"+Ht),Vt.publish("putCatalog"),be(">>"),be("endobj")},Ec=f.__private__.putTrailer=function(){be("trailer"),be("<<"),be("/Size "+(me+1)),be("/Root "+me+" 0 R"),be("/Info "+(me-1)+" 0 R"),m!==null&&be("/Encrypt "+Hr.oid+" 0 R"),be("/ID [ <"+G+"> <"+G+"> ]"),be(">>")},Ha=f.__private__.putHeader=function(){be("%PDF-"+b),be("%ºÃˆ ")},Sh=f.__private__.putXRef=function(){var B="0000000000";be("xref"),be("0 "+(me+1)),be("0000000000 65535 f ");for(var se=1;se<=me;se++)typeof fe[se]=="function"?be((B+fe[se]()).slice(-10)+" 00000 n "):fe[se]!==void 0?be((B+fe[se]).slice(-10)+" 00000 n "):be("0000000000 00000 n ")},al=f.__private__.buildDocument=function(){var B;me=0,xe=0,Ae=[],fe=[],ae=[],Yi=ss(),ms=ss(),xt(Ae),Vt.publish("buildDocument"),Ha(),Tc(),(function(){Vt.publish("putAdditionalObjects");for(var Te=0;Te<ae.length;Te++){var Re=ae[Te];Ur(Re.objId,!0),be(Re.content),be("endobj")}Vt.publish("postPutAdditionalObjects")})(),B=[],(function(){for(var Te in Qt)Qt.hasOwnProperty(Te)&&(h===!1||h===!0&&x.hasOwnProperty(Te))&&Nc(Qt[Te])})(),(function(){var Te;for(Te in tt)tt.hasOwnProperty(Te)&&$d(tt[Te])})(),(function(){for(var Te in Pa)Pa.hasOwnProperty(Te)&&Pu(Pa[Te])})(),(function(Te){var Re;for(Re in rn)rn.hasOwnProperty(Re)&&(rn[Re]instanceof b0?kc(rn[Re]):rn[Re]instanceof Bg&&jc(rn[Re],Te))})(B),Vt.publish("putResources"),B.forEach(nl),nl({resourcesOid:ms,objectOid:Number.MAX_SAFE_INTEGER}),Vt.publish("postPutResources"),m!==null&&(Hr.oid=ds(),be("<<"),be("/Filter /Standard"),be("/V "+Hr.v),be("/R "+Hr.r),be("/U <"+Hr.toHexString(Hr.U)+">"),be("/O <"+Hr.toHexString(Hr.O)+">"),be("/P "+Hr.P),be(">>"),be("endobj")),Eo(),Ul();var se=xe;return Sh(),Ec(),be("startxref"),be(""+se),be("%%EOF"),xt(le[H]),Ae.join(` 985`)},Du=f.__private__.getBlob=function(B){return new Blob([Xt(B)],{type:"application/pdf"})},Ym=function(B){for(;B.firstChild;)B.removeChild(B.firstChild)},Si=function(B){var se,Te=B.document,Re=Te.documentElement,Ve=Te.head,ut=Te.body;return Ve||(Ve=Te.createElement("head"),Re.appendChild(Ve)),ut||(ut=Te.createElement("body"),Re.appendChild(ut)),Ym(Ve),Ym(ut),(se=Te.createElement("style")).appendChild(Te.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),Ve.appendChild(se),{document:Te,body:ut}},Xm=f.output=f.__private__.output=(As=function(B,se){switch(typeof(se=se||{})=="string"?se={filename:se}:se.filename=se.filename||"generated.pdf",B){case void 0:return al();case"save":f.save(se.filename);break;case"arraybuffer":return Xt(al());case"blob":return Du(al());case"bloburi":case"bloburl":if(Kn.URL!==void 0&&typeof Kn.URL.createObjectURL=="function")return Kn.URL&&Kn.URL.createObjectURL(Du(al()))||void 0;Rs.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Te="",Re=al();try{Te=tI(Re)}catch{Te=tI(unescape(encodeURIComponent(Re)))}return"data:application/pdf;filename="+encodeURIComponent(se.filename)+";base64,"+Te;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Kn)==="[object Window]"){var Ve="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ut=!se.pdfObjectUrl;ut||(Ve=se.pdfObjectUrl);var wt=Kn.open();if(wt!==null){var cn=Si(wt),dn=cn.document.createElement("script"),Yn=this;dn.src=Ve,ut&&(dn.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",dn.crossOrigin="anonymous"),dn.onload=function(){wt.PDFObject.embed(Yn.output("dataurlstring"),se)},cn.body.appendChild(dn)}return wt}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Kn)==="[object Window]"){var ea=se.pdfJsUrl||"examples/PDF.js/web/viewer.html",wa=Kn.open();if(wa!==null){var jr=Si(wa),ps=jr.document.createElement("iframe"),rs=ea.indexOf("?")===-1?"?":"&";Yn=this,ps.id="pdfViewer",ps.width="500px",ps.height="400px",ps.src=ea+rs+"file=&downloadName="+encodeURIComponent(se.filename),ps.onload=function(){wa.document.title=se.filename,ps.contentWindow.PDFViewerApplication.open(Yn.output("bloburl"))},jr.body.appendChild(ps)}return wa}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Kn)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Es=Kn.open();if(Es!==null){var qs=Si(Es),Gs=qs.document.createElement("iframe");Gs.src=this.output("datauristring",se),qs.body.appendChild(Gs),Es.document.title=se.filename}if(Es||typeof safari>"u")return Es;break;case"datauri":case"dataurl":return Kn.document.location.href=this.output("datauristring",se);default:return null}},As.foo=function(){try{return As.apply(this,arguments)}catch(Te){var B=Te.stack||"";~B.indexOf(" at ")&&(B=B.split(" at ")[1]);var se="Error in function "+B.split(` 986`)[0].split("<")[0]+": "+Te.message;if(!Kn.console)throw new Error(se);Kn.console.error(se,Te),Kn.alert&&alert(se)}},As.foo.bar=As,As.foo),kr=function(B){return Array.isArray(Ra)===!0&&Ra.indexOf(B)>-1};switch(a){case"pt":Mt=1;break;case"mm":Mt=72/25.4;break;case"cm":Mt=72/2.54;break;case"in":Mt=72;break;case"px":Mt=kr("px_scaling")==1?.75:96/72;break;case"pc":case"em":Mt=12;break;case"ex":Mt=6;break;default:if(typeof a!="number")throw new Error("Invalid unit: "+a);Mt=a}var Hr=null;Y(),ee();var _h=f.__private__.getPageInfo=f.getPageInfo=function(B){if(isNaN(B)||B%1!=0)throw new Error("Invalid argument passed to
986jsPDF.getPageInfo");return{objId:qt[B].objId,pageNumber:B,pageContext:qt[B]}},Ph=f.__private__.getPageInfoByObjId=function(B){if(isNaN(B)||B%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var se in qt)if(qt[se].objId===B)break;return _h(se)},Ru=f.__private__.getCurrentPageInfo=f.getCurrentPageInfo=function(){return{objId:qt[H].objId,pageNumber:H,pageContext:qt[H]}};f.addPage=function(){return Fl.apply(this,arguments),this},f.setPage=function(){return Eh.apply(this,arguments),xt.call(this,le[H]),this},f.insertPage=function(B){return this.addPage(),this.movePage(H,B),this},f.movePage=function(B,se){var Te,Re;if(B>se){Te=le[B],Re=qt[B];for(var Ve=B;Ve>se;Ve--)le[Ve]=le[Ve-1],qt[Ve]=qt[Ve-1];le[se]=Te,qt[se]=Re,this.setPage(se)}else if(B<se){Te=le[B],Re=qt[B];for(var ut=B;ut<se;ut++)le[ut]=le[ut+1],qt[ut]=qt[ut+1];le[se]=Te,qt[se]=Re,this.setPage(se)}return this},f.deletePage=function(){return Ah.apply(this,arguments),this},f.__private__.text=f.text=function(B,se,Te,Re,Ve){var ut,wt,cn,dn,Yn,ea,wa,jr,ps,rs=(Re=Re||{}).scope||this;if(typeof B=="number"&&typeof se=="number"&&(typeof Te=="string"||Array.isArray(Te))){var Es=Te;Te=se,se=B,B=Es}if(arguments[3]instanceof Wt==0?(cn=arguments[4],dn=arguments[5],xs(wa=arguments[3])==="object"&&wa!==null||(typeof cn=="string"&&(dn=cn,cn=null),typeof wa=="string"&&(dn=wa,wa=null),typeof wa=="number"&&(cn=wa,wa=null),Re={flags:wa,angle:cn,align:dn})):(F("The transform parameter of text() with a Matrix value"),ps=Ve),isNaN(se)||isNaN(Te)||B==null)throw new Error("Invalid arguments passed to jsPDF.text");if(B.length===0)return rs;var qs,Gs="",Pi=typeof Re.lineHeightFactor=="number"?Re.lineHeightFactor:qo,Wl=rs.internal.scaleFactor;function Oh(Va){return Va=Va.split(" ").join(Array(Re.TabLen||9).join(" ")),Ao(Va,wa)}function Yl(Va){for(var is,ar=Va.concat(),Cs=[],ol=ar.length;ol--;)typeof(is=ar.shift())=="string"?Cs.push(is):Array.isArray(Va)&&(is.length===1||is[1]===void 0&&is[2]===void 0)?Cs.push(is[0]):Cs.push([is[0],is[1],is[2]]);return Cs}function Ic(Va,is){var ar;if(typeof Va=="string")ar=is(Va)[0];else if(Array.isArray(Va)){for(var Cs,ol,rp=Va.concat(),om=[],vf=rp.length;vf--;)typeof(Cs=rp.shift())=="string"?om.push(is(Cs)[0]):Array.isArray(Cs)&&typeof Cs[0]=="string"&&(ol=is(Cs[0],Cs[1],Cs[2]),om.push([ol[0],ol[1],ol[2]]));ar=om}return ar}var Mu=!1,Lu=!0;if(typeof B=="string")Mu=!0;else if(Array.isArray(B)){var Qd=B.concat();wt=[];for(var Kd,pi=Qd.length;pi--;)(typeof(Kd=Qd.shift())!="string"||Array.isArray(Kd)&&typeof Kd[0]!="string")&&(Lu=!1);Mu=Lu}if(Mu===!1)throw new Error('Type of text must be string or Array. "'+B+'" is not recognized.');typeof B=="string"&&(B=B.match(/[\r?\n]/)?B.split(/\r\n|\r|\n/g):[B]);var Ou=it/rs.internal.scaleFactor,Go=Ou*(Pi-1);switch(Re.baseline){case"bottom":Te-=Go;break;case"top":Te+=Ou-Go;break;case"hanging":Te+=Ou-2*Go;break;case"middle":Te+=Ou/2-Go}if((ea=Re.maxWidth||0)>0&&(typeof B=="string"?B=rs.splitTextToSize(B,ea):Object.prototype.toString.call(B)==="[object Array]"&&(B=B.reduce(function(Va,is){return Va.concat(rs.splitTextToSize(is,ea))},[]))),ut={text:B,x:se,y:Te,options:Re,mutex:{pdfEscape:Ao,activeFontKey:yt,fonts:Qt,activeFontSize:it}},Vt.publish("preProcessText",ut),B=ut.text,cn=(Re=ut.options).angle,ps instanceof Wt==0&&cn&&typeof cn=="number"){cn*=Math.PI/180,Re.rotationDirection===0&&(cn=-cn),D===E&&(cn=-cn);var Bh=Math.cos(cn),il=Math.sin(cn);ps=new Wt(Bh,il,-il,Bh,0,0)}else cn&&cn instanceof Wt&&(ps=cn);D!==E||ps||(ps=Wi),(Yn=Re.charSpace||Jd)!==void 0&&(Gs+=I(W(Yn))+` Tc 987`,this.setCharSpace(this.getCharSpace()||0)),(jr=Re.horizontalScale)!==void 0&&(Gs+=I(100*jr)+` Tz 988`),Re.lang;var Xi=-1,Fh=Re.renderingMode!==void 0?Re.renderingMode:Re.stroke,Zd=rs.internal.getCurrentPageInfo().pageContext;switch(Fh){case 0:case!1:case"fill":Xi=0;break;case 1:case!0:case"stroke":Xi=1;break;case 2:case"fillThenStroke":Xi=2;break;case 3:case"invisible":Xi=3;break;case 4:case"fillAndAddForClipping":Xi=4;break;case 5:case"strokeAndAddPathForClipping":Xi=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Xi=6;break;
vendor: 8,768 bytes, lines 988-1000
988case 7:case"addToPathForClipping":Xi=7}var Bu=Zd.usedRenderingMode!==void 0?Zd.usedRenderingMode:-1;Xi!==-1?Gs+=Xi+` Tr 989`:Bu!==-1&&(Gs+=`0 Tr 990`),Xi!==-1&&(Zd.usedRenderingMode=Xi),dn=Re.align||"left";var Di,em=it*Pi,Fu=rs.internal.pageSize.getWidth(),tm=Qt[yt];Yn=Re.charSpace||Jd,ea=Re.maxWidth||0,wa=Object.assign({autoencode:!0,noBOM:!0},Re.flags);var Uu=[],nm=function(Va){return rs.getStringUnitWidth(Va,{font:tm,charSpace:Yn,fontSize:it,doKerning:!1})*it/Wl};if(Object.prototype.toString.call(B)==="[object Array]"){var hi;wt=Yl(B),dn!=="left"&&(Di=wt.map(nm));var Qi,am=0;if(dn==="right"){se-=Di[0],B=[],pi=wt.length;for(var Xl=0;Xl<pi;Xl++)Xl===0?(Qi=Pc(se),hi=Co(Te)):(Qi=W(am-Di[Xl]),hi=-em),B.push([wt[Xl],Qi,hi]),am=Di[Xl]}else if(dn==="center"){se-=Di[0]/2,B=[],pi=wt.length;for(var Hu=0;Hu<pi;Hu++)Hu===0?(Qi=Pc(se),hi=Co(Te)):(Qi=W((am-Di[Hu])/2),hi=-em),B.push([wt[Hu],Qi,hi]),am=Di[Hu]}else if(dn==="left"){B=[],pi=wt.length;for(var np=0;np<pi;np++)B.push(wt[np])}else if(dn==="justify"&&tm.encoding==="Identity-H"){B=[],pi=wt.length,ea=ea!==0?ea:Fu;for(var sm=0,Ar=0;Ar<pi;Ar++)if(hi=Ar===0?Co(Te):-em,Qi=Ar===0?Pc(se):sm,Ar<pi-1){var Fx=W((ea-Di[Ar])/(wt[Ar].split(" ").length-1)),nr=wt[Ar].split(" ");B.push([nr[0]+" ",Qi,hi]),sm=0;for(var Ki=1;Ki<nr.length;Ki++){var Vu=(nm(nr[Ki-1]+" "+nr[Ki])-nm(nr[Ki]))*Wl+Fx;Ki==nr.length-1?B.push([nr[Ki],Vu,0]):B.push([nr[Ki]+" ",Vu,0]),sm-=Vu}}else B.push([wt[Ar],Qi,hi]);B.push(["",sm,0])}else{if(dn!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(B=[],pi=wt.length,ea=ea!==0?ea:Fu,Ar=0;Ar<pi;Ar++){hi=Ar===0?Co(Te):-em,Qi=Ar===0?Pc(se):0;var ap=wt[Ar].split(" ").length-1,sp=ap>0?(ea-Di[Ar])/ap:0;Ar<pi-1?Uu.push(I(W(sp))):Uu.push(0),B.push([wt[Ar],Qi,hi])}}}(typeof Re.R2L=="boolean"?Re.R2L:Ct)===!0&&(B=Ic(B,function(Va,is,ar){return[Va.split("").reverse().join(""),is,ar]})),ut={text:B,x:se,y:Te,options:Re,mutex:{pdfEscape:Ao,activeFontKey:yt,fonts:Qt,activeFontSize:it}},Vt.publish("postProcessText",ut),B=ut.text,qs=ut.mutex.isHex||!1;var rm=Qt[yt].encoding;rm!=="WinAnsiEncoding"&&rm!=="StandardEncoding"||(B=Ic(B,function(Va,is,ar){return[Oh(Va),is,ar]})),wt=Yl(B),B=[];for(var Ql,im,_o,Mc=Array.isArray(wt[0])?1:0,Jo="",zu=function(Va,is,ar){var Cs="";return ar instanceof Wt?(ar=typeof Re.angle=="number"?tr(ar,new Wt(1,0,0,1,Va,is)):tr(new Wt(1,0,0,1,Va,is),ar),D===E&&(ar=tr(new Wt(1,0,0,-1,0,0),ar)),Cs=ar.join(" ")+` Tm 991`):Cs=I(Va)+" "+I(is)+` Td 992`,Cs},fi=0;fi<wt.length;fi++){switch(Jo="",Mc){case 1:_o=(qs?"<":"(")+wt[fi][0]+(qs?">":")"),Ql=parseFloat(wt[fi][1]),im=parseFloat(wt[fi][2]);break;case 0:_o=(qs?"<":"(")+wt[fi]+(qs?">":")"),Ql=Pc(se),im=Co(Te)}Uu!==void 0&&Uu[fi]!==void 0&&(Jo=Uu[fi]+` Tw 993`),fi===0?B.push(Jo+zu(Ql,im,ps)+_o):Mc===0?B.push(Jo+_o):Mc===1&&B.push(Jo+zu(Ql,im,ps)+_o)}B=Mc===0?B.join(` Tj 994T* `):B.join(` Tj 995`),B+=` Tj 996`;var Ri=`BT 997/`;return Ri+=yt+" "+it+` Tf 998`,Ri+=I(it*Pi)+` TL 999`,Ri+=So+` 1000`,Ri+=Gs,Ri+=B,be(Ri+="ET"),x[yt]=!0,rs};var pf=f.__private__.clip=f.clip=function(B){return be(B==="evenodd"?"W*":"W"),this};f.clipEvenOdd=function(){return pf("evenodd")},f.__private__.discardPath=f.discardPath=function(){return be("n"),this};var Cc=f.__private__.isValidStyle=function(B){var se=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(B)!==-1&&(se=!0),se};f.__private__.setDefaultPathOperation=f.setDefaultPathOperation=function(B){return Cc(B)&&(d=B),this};var Hl=f.__private__.getStyle=f.getStyle=function(B){var se=d;switch(B){case"D":case"S":se="S";break;case"F":se="f";break;case"FD":case"DF":se="B";break;case"f":case"f*":case"B":case"B*":se=B}return se},Qm=f.close=function(){return be("h"),this};f.stroke=function(){return be("S"),this},f.fill=function(B){return qd("f",B),this},f.fillEvenOdd=function(B){return qd("f*",B),this},f.fillStroke=function(B){return qd("B",B),this},f.fillStrokeEvenOdd=function(B){return qd("B*",B),this};var qd=function(B,se){xs(se)==="object"?Ox(se,B):be(B)},Km=function(B){B===null||D===E&&B===void 0||(B=Hl(B),be(B))};function Dh(B,se,Te,Re,Ve){var ut=new Bg(se||this.boundingBox,Te||this.xStep,Re||this.yStep,this.gState,Ve||this.matrix);ut.stream=this.stream;var wt=B+"$$"+this.cloneIndex+++"$$";return js(wt,ut),ut}var Ox=function(B,se){var Te=He[B.key],Re=rn[Te];if(Re instanceof b0)be("q"),be(Bx(se)),Re.gState&&f.setGState(Re.gState),be(B.matrix.toString()+" cm"),be("/"+Te+" sh"),be("Q");else if(Re instanceof Bg){var Ve=new Wt(1,0,0,-1,0,Xd());B.matrix&&(Ve=Ve.multiply(B.matrix||Wi),Te=Dh.call(Re,B.key,B.boundingBox,B.xStep,B.yStep,Ve).id),be("q"),be("/Pattern cs"),be("/"+Te+" scn"),Re.gState&&f.setGState(Re.gState),be(se),be("Q")}},Bx=function(B){switch(B){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"}},Sc=f.moveTo=function(B,se){return be(I(W(B))+" "+I(J(se))+" m"),this},$o=f.lineTo=function(B,se){return be(I(W(B))+" "+I(J(se))+" l"),this},sl=f.curveTo=function(B,se,Te,Re,Ve,ut){return be([I(W(B)),I(J(se)),I(W(Te)),I(J(Re)),I(W(Ve)),I(J(ut)),"c"].join(" ")),this};f.__private__.line=f.line=function(B,se,Te,Re,Ve){if(isNaN(B)||isNaN(se)||isNaN(Te)||isNaN(Re)||!Cc(Ve))throw new Error("Invalid arguments passed to jsPDF.line");return D===A?this.lines([[Te-B,Re-se]],B,se,[1,1],Ve||"S"):this.lines([[Te-B,Re-se]],B,se,[1,1]).stroke()},f.__private__.lines=f.lines=function(B,se,Te,Re,Ve,ut){var wt,cn,dn,Yn,ea,wa,jr,ps,rs,Es,qs,Gs;if(typeof B=="number"&&(Gs=Te,Te=se,se=B,B=Gs),Re=Re||[1,1],ut=ut||!1,isNaN(se)||isNaN(Te)||!Array.isArray(B)||!Array.isArray(Re)||!Cc(Ve)||typeof ut!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Sc(se,Te),wt=Re[0],cn=Re[1],Yn=B.length,Es=se,qs=Te,dn=0;dn<Yn;dn++)(ea=B[dn]).length===2?(Es=ea[0]*wt+Es,qs=ea[1]*cn+qs,$o(Es,qs)):(wa=ea[0]*wt+Es,jr=ea[1]*cn+qs,ps=ea[2]*wt+Es,rs=ea[3]*cn+qs,Es=ea[4]*wt+Es,qs=ea[5]*cn+qs,sl(wa,jr,ps,rs,Es,qs));return ut&&Qm(),Km(Ve),this},f.path=function(B){for(var se=0;se<B.length;se++){var Te=B[se],Re=Te.c;switch(Te.op){case"m":Sc(Re[0],Re[1]);break;case"l":$o(Re[0],Re[1]);break;case"c":sl.apply(this,Re);break;case"h":Qm()}}return this},f.__private__.rect=f.rect=function(B,se,Te,Re,Ve){if(isNaN(B)||isNaN(se)||isNaN(Te)||isNaN(Re)||!Cc(Ve))throw new Error("Invalid arguments passed to jsPDF.rect");return D===A&&(Re=-Re),be([I(W(B)),I(J(se)),I(W(Te)),I(W(Re)),"re"].join(" ")),Km(Ve),this},f.__private__.triangle=f.triangle=function(B,se,Te,Re,Ve,ut,wt){if(isNaN(B)||isNaN(se)||isNaN(Te)||isNaN(Re)||isNaN(Ve)||isNaN(ut)||!Cc(wt))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Te-B,Re-se],[Ve-Te,ut-Re],[B-Ve,se-ut]],B,se,[1,1],wt,!0),this},f.__private__.roundedRect=f.roundedRect=function(B,se,Te,Re,Ve,ut,wt){if(isNaN(B)||isNaN(se)||isNaN(Te)||isNaN(Re)||isNaN(Ve)||isNaN(ut)||!Cc(wt))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var cn=4/3*(Math.SQRT2-1);return Ve=Math.min(Ve,.5*Te),ut=Math.min(ut,.5*Re),this.lines([[Te-2*Ve,0],[Ve*cn,0,Ve,ut-ut*cn,Ve,ut],[0,Re-2*ut],[0,ut*cn,-Ve*cn,ut,-Ve,ut],[2*Ve-Te,0],[-Ve*cn,0,-Ve,-ut*cn,-Ve,-ut],[0,2*ut-Re],[0,-ut*cn,Ve*cn,-ut,Ve,-ut]],B+Ve,se,[1,1],wt,!0),this},f.__private__.ellipse=f.ellipse=function(B,se,Te,Re,Ve){if(isNaN(B)||isNaN(se)||isNaN(Te)||isNaN(Re)||!Cc(Ve))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ut=4/3*(Math.SQRT2-1)*Te,wt=4/3*(Math.SQRT2-1)*Re;return Sc(B+Te,se),sl(B+Te,se-wt,B+ut,se-Re,B,se-Re),sl(B-ut,se-Re,B-Te,se-wt,B-Te,se),sl(B-Te,se+wt,B-ut,se+Re,B,se+Re),sl(B+ut,se+Re,B+Te,se+wt,B+Te,se),Km(Ve),this},f.__private__.circle=f.circle=function(B,se,Te,Re){if(isNaN(B)||isNaN(se)||isNaN(Te)||!Cc(Re))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(B,se,Te,Te,Re)},f.setFont=function(B,se,Te){return Te&&(se=L(se,Te)),yt=mf(B,se,{disableWarning:!1}),this};var Rh=f.__private__.getFont=f.getFont=function(){return Qt[mf.apply(f,arguments)]};f.__private__.getFontList=f.getFontList=function(){var B,se,Te={};for(B in xn)if(xn.hasOwnProperty(B))for(se in Te[B]=[],xn[B])xn[B].hasOwnProperty(se)&&Te[B].push(se);return Te},f.addFont=function(B,se,Te,Re,Ve){var ut=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ut.indexOf(arguments[3])!==-1?Ve=arguments[3]:arguments[3]&&ut.indexOf(arguments[3])==-1&&(Te=L(Te,Re)),jh.call(this,B,se,Te,Ve=Ve||"Identity-H")};var qo,Dn=e.lineWidth||.200025,hf=f.__private__.getLineWidth=f.getLineWidth=function(){return Dn},Ih=f.__private__.setLineWidth=f.setLineWidth=function(B){return Dn=B,be(I(W(B))+" w"),this};f.__private__.setLineDash=En.API.setLineDash=En.API.setLineDashPattern=function(B,se){if(B=B||[],se=se||0,isNaN(se)||!Array.isArray(B))throw new Error("Invalid arguments passed to
1000jsPDF.setLineDash");return B=B.map(function(Te){return I(W(Te))}).join(" "),se=I(W(se)),be("["+B+"] "+se+" d"),this};var ff=f.__private__.getLineHeight=f.getLineHeight=function(){return it*qo};f.__private__.getLineHeight=f.getLineHeight=function(){return it*qo};var Gd=f.__private__.setLineHeightFactor=f.setLineHeightFactor=function(B){return typeof(B=B||1.15)=="number"&&(qo=B),this},_c=f.__private__.getLineHeightFactor=f.getLineHeightFactor=function(){return qo};Gd(e.lineHeight);var Pc=f.__private__.getHorizontalCoordinate=function(B){return W(B)},Co=f.__private__.getVerticalCoordinate=function(B){return D===E?B:qt[H].mediaBox.topRightY-qt[H].mediaBox.bottomLeftY-W(B)},rl=f.__private__.getHorizontalCoordinateString=f.getHorizontalCoordinateString=function(B){return I(Pc(B))},Mh=f.__private__.getVerticalCoordinateString=f.getVerticalCoordinateString=function(B){return I(Co(B))},Vl=e.strokeColor||"0 G";f.__private__.getStrokeColor=f.getDrawColor=function(){return $s(Vl)},f.__private__.setStrokeColor=f.setDrawColor=function(B,se,Te,Re){return Vl=Ci({ch1:B,ch2:se,ch3:Te,ch4:Re,pdfColorType:"draw",precision:2}),be(Vl),this};var Zm=e.fillColor||"0 g";f.__private__.getFillColor=f.getFillColor=function(){return $s(Zm)},f.__private__.setFillColor=f.setFillColor=function(B,se,Te,Re){return Zm=Ci({ch1:B,ch2:se,ch3:Te,ch4:Re,pdfColorType:"fill",precision:2}),be(Zm),this};var So=e.textColor||"0 g",ep=f.__private__.getTextColor=f.getTextColor=function(){return $s(So)};f.__private__.setTextColor=f.setTextColor=function(B,se,Te,Re){return So=Ci({ch1:B,ch2:se,ch3:Te,ch4:Re,pdfColorType:"text",precision:3}),this};var Jd=e.charSpace,_i=f.__private__.getCharSpace=f.getCharSpace=function(){return parseFloat(Jd||0)};f.__private__.setCharSpace=f.setCharSpace=function(B){if(isNaN(B))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Jd=B,this};var Dc=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(B){var se=f.CapJoinStyles[B];if(se===void 0)throw new Error("Line cap style of '"+B+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Dc=se,be(se+" J"),this};var Rc=0;f.__private__.setLineJoin=f.setLineJoin=function(B){var se=f.CapJoinStyles[B];if(se===void 0)throw new Error("Line join style of '"+B+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Rc=se,be(se+" j"),this},f.__private__.setLineMiterLimit=f.__private__.setMiterLimit=f.setLineMiterLimit=f.setMiterLimit=function(B){if(B=B||0,isNaN(B))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return be(I(W(B))+" M"),this},f.GState=D3,f.setGState=function(B){(B=typeof B=="string"?tt[Ot[B]]:zl(null,B)).equals(Zn)||(be("/"+B.id+" gs"),Zn=B)};var zl=function(B,se){if(!B||!Ot[B]){var Te=!1;for(var Re in tt)if(tt.hasOwnProperty(Re)&&tt[Re].equals(se)){Te=!0;break}if(Te)se=tt[Re];else{var Ve="GS"+(Object.keys(tt).length+1).toString(10);tt[Ve]=se,se.id=Ve}return B&&(Ot[B]=se.id),Vt.publish("addGState",se),se}};f.addGState=function(B,se){return zl(B,se),this},f.saveGraphicsState=function(){return be("q"),bn.push({key:yt,size:it,color:So}),this},f.restoreGraphicsState=function(){be("Q");var B=bn.pop();return yt=B.key,it=B.size,So=B.color,Zn=null,this},f.setCurrentTransformationMatrix=function(B){return be(B.toString()+" cm"),this},f.comment=function(B){return be("#"+B),this};var Wd=function(B,se){var Te=B||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Te},set:function(ut){isNaN(ut)||(Te=parseFloat(ut))}});var Re=se||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Re},set:function(ut){isNaN(ut)||(Re=parseFloat(ut))}});var Ve="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Ve},set:function(ut){Ve=ut.toString()}}),this},Yd=function(B,se,Te,Re){Wd.call(this,B,se),this.type="rect";var Ve=Te||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Ve},set:function(wt){isNaN(wt)||(Ve=parseFloat(wt))}});var ut=Re||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return ut},set:function(wt){isNaN(wt)||(ut=parseFloat(wt))}}),this}
vendor: 21,299 bytes, lines 1000-1008
1000,Iu=function(){this.page=Tn,this.currentPage=H,this.pages=le.slice(0),this.pagesContext=qt.slice(0),this.x=zt,this.y=ca,this.matrix=jn,this.width=Lh(H),this.height=Jl(H),this.outputDestination=pt,this.id="",this.objectNumber=-1};Iu.prototype.restore=function(){Tn=this.page,H=this.currentPage,qt=this.pagesContext,le=this.pages,zt=this.x,ca=this.y,jn=this.matrix,Gl(H,this.width),gf(H,this.height),pt=this.outputDestination};var $l=function(B,se,Te,Re,Ve){mi.push(new Iu),Tn=H=0,le=[],zt=B,ca=se,jn=Ve,Ac([Te,Re])};for(var ql in f.beginFormObject=function(B,se,Te,Re,Ve){return $l(B,se,Te,Re,Ve),this},f.endFormObject=function(B){return(function(se){if(Os[se])mi.pop().restore();else{var Te=new Iu,Re="Xo"+(Object.keys(Pa).length+1).toString(10);Te.id=Re,Os[se]=Re,Pa[Re]=Te,Vt.publish("addFormObject",Te),mi.pop().restore()}})(B),this},f.doFormObject=function(B,se){var Te=Pa[Os[B]];return be("q"),be(se.toString()+" cm"),be("/"+Te.id+" Do"),be("Q"),this},f.getFormObject=function(B){var se=Pa[Os[B]];return{x:se.x,y:se.y,width:se.width,height:se.height,matrix:se.matrix}},f.save=function(B,se){return B=B||"generated.pdf",(se=se||{}).returnPromise=se.returnPromise||!1,se.returnPromise===!1?(h0(Du(al()),B),typeof h0.unload=="function"&&Kn.setTimeout&&setTimeout(h0.unload,911),this):new Promise(function(Te,Re){try{var Ve=h0(Du(al()),B);typeof h0.unload=="function"&&Kn.setTimeout&&setTimeout(h0.unload,911),Te(Ve)}catch(ut){Re(ut.message)}})},En.API)En.API.hasOwnProperty(ql)&&(ql==="events"&&En.API.events.length?(function(B,se){var Te,Re,Ve;for(Ve=se.length-1;Ve!==-1;Ve--)Te=se[Ve][0],Re=se[Ve][1],B.subscribe.apply(B,[Te].concat(typeof Re=="function"?[Re]:Re))})(Vt,En.API.events):f[ql]=En.API[ql]);function Lh(B){return qt[B].mediaBox.topRightX-qt[B].mediaBox.bottomLeftX}function Gl(B,se){qt[B].mediaBox.topRightX=se+qt[B].mediaBox.bottomLeftX}function Jl(B){return qt[B].mediaBox.topRightY-qt[B].mediaBox.bottomLeftY}function gf(B,se){qt[B].mediaBox.topRightY=se+qt[B].mediaBox.bottomLeftY}var tp=f.getPageWidth=function(B){return Lh(B=B||H)/Mt},xf=f.setPageWidth=function(B,se){Gl(B,se*Mt)},Xd=f.getPageHeight=function(B){return Jl(B=B||H)/Mt},bf=f.setPageHeight=function(B,se){gf(B,se*Mt)};return f.internal={pdfEscape:Ao,getStyle:Hl,getFont:Rh,getFontSize:ct,getCharSpace:_i,getTextColor:ep,getLineHeight:ff,getLineHeightFactor:_c,getLineWidth:hf,write:Tt,getHorizontalCoordinate:Pc,getVerticalCoordinate:Co,getCoordinateString:rl,getVerticalCoordinateString:Mh,collections:{},newObject:ds,newAdditionalObject:_u,newObjectDeferred:ss,newObjectDeferredBegin:Ur,getFilters:jo,putStream:zo,events:Vt,scaleFactor:Mt,pageSize:{getWidth:function(){return tp(H)},setWidth:function(B){xf(H,B)},getHeight:function(){return Xd(H)},setHeight:function(B){bf(H,B)}},encryptionOptions:m,encryption:Hr,getEncryptor:function(B){return m!==null?Hr.encryptor(B,0):function(se){return se}},output:Xm,getNumberOfPages:Ch,get pages(){return le},out:be,f2:U,f3:O,getPageInfo:_h,getPageInfoByObjId:Ph,getCurrentPageInfo:Ru,getPDFVersion:y,Point:Wd,Rectangle:Yd,Matrix:Wt,hasHotfix:kr},Object.defineProperty(f.internal.pageSize,"width",{get:function(){return tp(H)},set:function(B){xf(H,B)},enumerable:!0,configurable:!0}),Object.defineProperty(f.internal.pageSize,"height",{get:function(){return Xd(H)},set:function(B){bf(H,B)},enumerable:!0,configurable:!0}),(function(B){for(var se=0,Te=Jt.length;se<Te;se++){var Re=jh.call(this,B[se][0],B[se][1],B[se][2],Jt[se][3],!0);h===!1&&(x[Re]=!0);var Ve=B[se][0].split("-");fr({id:Re,fontName:Ve[0],fontStyle:Ve[1]||""})}Vt.publish("addFonts",{fonts:Qt,dictionary:xn})}).call(f,Jt),yt="F1",Fl(r,n),Vt.publish("initialized"),f}jg.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},jg.prototype.toHexString=function(e){return e.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},jg.prototype.hexToBytes=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(String.fromCharCode(parseInt(e.substr(n,2),16)));return t.join("")},jg.prototype.processOwnerPassword=function(e,t){return p7(m7(t).substr(0,5),e)},jg.prototype.encryptor=function(e,t){var n=m7(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(a){return p7(n,a)}},D3.prototype.equals=function(e){var t,n="id,objectNumber,equals";if(!e||xs(e)!==xs(this))return!1;var a=0;for(t in this)if(!(n.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;a++}for(t in e)e.hasOwnProperty(t)&&n.indexOf(t)<0&&a--;return a===0},En.API={events:[]},En.version="4.2.1";var Lr=En.API,m9=1,sf=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},rg=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},F0=function(e){return e.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(t){var n=t.charCodeAt(0).toString(16).toUpperCase();return"#"+(n.length===1?"0"+n:n)})},aa=function(e){return e.toFixed(2)},Dp=function(e){return e.toFixed(5)};Lr.__acroform__={};var vc=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},rI=function(e){return e*m9},id=function(e){var t=new z$,n=gn.internal.getHeight(e)||0,a=gn.internal.getWidth(e)||0;return t.BBox=[0,0,Number(aa(a)),Number(aa(n))],t},kge=Lr.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<<t},jge=Lr.__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)},Age=Lr.__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},Jr=Lr.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Age(e,t-1)},Wr=Lr.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return kge(e,t-1)},Yr=Lr.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return jge(e,t-1)},Ege=Lr.__acroform__.calculateCoordinates=function(e,t){var n=t.internal.getHorizontalCoordinate,a=t.internal.getVerticalCoordinate,r=e[0],i=e[1],o=e[2],c=e[3],l={};return l.lowerLeft_X=n(r)||0,l.lowerLeft_Y=a(i+c)||0,l.upperRight_X=n(r+o)||0,l.upperRight_Y=a(i)||0,[Number(aa(l.lowerLeft_X)),Number(aa(l.lowerLeft_Y)),Number(aa(l.upperRight_X)),Number(aa(l.upperRight_Y))]},Cge=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],n=e._V||e.DV,a=h7(e,n),r=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("/"+r+" "+aa(a.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(a.text),t.push("ET"),t.push("Q"),t.push("EMC");var i=id(e);return i.scope=e.scope,i.stream=t.join(` 1001`),i}},h7=function(e,t){var n=e.fontSize===0?e.maxFontSize:e.fontSize,a={text:"",fontSize:""},r=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");r=e.multiline?r.map(function(U){return U.split(` 1002`)}):r.map(function(U){return[U]});var i=n,o=gn.internal.getHeight(e)||0;o=o<0?-o:o;var c=gn.internal.getWidth(e)||0;c=c<0?-c:c;var l=function(U,O,W){if(U+1<r.length){var J=O+" "+r[U+1][0];return Cy(J,e,W).width<=c-4}return!1};i++;e:for(;i>0;){t="",i--;var d,m,h=Cy("3",e,i).height,x=e.multiline?o-i:(o-h)/2,f=x+=2,b=0,y=0,w=0;if(i<=0){t=`(...) Tj 1003`,t+="% Width of Text: "+Cy(t,e,i=12).width+", FieldWidth:"+c+` 1004`;break}for(var T="",A=0,E=0;E<r.length;E++)if(r.hasOwnProperty(E)){var D=!1;if(r[E].length!==1&&w!==r[E].length-1){if((h+2)*(A+2)+2>o)continue e;T+=r[E][w],D=!0,y=E,E--}else{T=(T+=r[E][w]+" ").substr(T.length-1)==" "?T.substr(0,T.length-1):T;var S=parseInt(E),R=l(S,T,i),L=E>=r.length-1;if(R&&!L){T+=" ",w=0;continue}if(R||L){if(L)y=S;else if(e.multiline&&(h+2)*(A+2)+2>o)continue e}else{if(!e.multiline||(h+2)*(A+2)+2>o)continue e;y=S}}for(var I="",F=b;F<=y;F++){var _=r[F];if(e.multiline){if(F===y){I+=_[w]+" ",w=(w+1)%_.length;continue}if(F===b){I+=_[_.length-1]+" ";continue}}I+=_[0]+" "}switch(I=I.substr(I.length-1)==" "?I.substr(0,I.length-1):I,m=Cy(I,e,i).width,e.textAlign){case"right":d=c-m-2;break;case"center":d=(c-m)/2;break;default:d=2}t+=aa(d)+" "+aa(f)+` Td 1005`,t+="("+sf(I)+`) Tj 1006`,t+=-aa(d)+` 0 Td 1007`,f=-(i+2),m=0,b=D?y:y+1,A++,T=""}break}return a.text=t,a.fontSize=i,a},Cy=function(e,t,n){var a=t.scope.internal.getFont(t.fontName,t.fontStyle),r=t.scope.getStringUnitWidth(e,{font:a,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:t.scope.getStringUnitWidth("3",{font:a,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:r}},Sge={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},_ge=function(e,t){var n={type:"reference",object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find(function(a){return a.type===n.type&&a.object===n.object})===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(n)},Pge=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(Eu.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(Sge)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");m9=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new $$,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(n){n.internal.events.unsubscribe(n.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete n.internal.acroformPlugin.acroFormDictionaryRoot._eventID,n.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(n){n.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var a=n.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var r in a)if(a.hasOwnProperty(r)){var i=a[r];i.objId=void 0,i.hasAnnotation&&_ge(i,n)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(n){if(n.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");n.internal.write("/AcroForm "+n.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(n){(function(a,r){var i=!a;for(var o in a||(r.internal.newObjectDeferredBegin(r.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),r.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),a=a||r.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(a.hasOwnProperty(o)){var c=a[o],l=[],d=c.Rect;if(c.Rect&&(c.Rect=Ege(c.Rect,r)),r.internal.newObjectDeferredBegin(c.objId,!0),c.DA=gn.createDefaultAppearanceStream(c),xs(c)==="object"&&typeof c.getKeyValueListForStream=="function"&&(l=c.getKeyValueListForStream()),c.Rect=d,c.hasAppearanceStream&&!c.appearanceStreamContent){var m=Cge(c);l.push({key:"AP",value:"<</N "+m+">>"}),r.internal.acroformPlugin.xForms.push(m)}if(c.appearanceStreamContent){var h="";for(var x in c.appearanceStreamContent)if(c.appearanceStreamContent.hasOwnProperty(x)){var f=c.appearanceStreamContent[x];if(h+="/"+x+" ",h+="<<",Object.keys(f).length>=1||Array.isArray(f)){for(var o in f)if(f.hasOwnProperty(o)){var b=f[o];typeof b=="function"&&(b=b.call(r,c)),h+="/"+o+" "+b+" ",r.internal.acroformPlugin.xForms.indexOf(b)>=0||r.internal.acroformPlugin.xForms.push(b)}}else typeof(b=f)=="function"&&(b=b.call(r,c)),h+="/"+o+" "+b,r.internal.acroformPlugin.xForms.indexOf(b)>=0||r.internal.acroformPlugin.xForms.push(b);h+=">>"}l.push({key:"AP",value:`<< 1008`+h+">>"})}r.internal.putStream({additionalKeyValues:l,objectId:c.objId}),r.internal.out("endobj")}i&&(function(y,w){for(var T in y)if(y.hasOwnProperty(T)){var A=T,E=y[T];w.internal.newObjectDeferredBegin(E.objId,!0),xs(E)==="object"&&typeof E.putStream=="function"&&E.putStream(),delete y[A]}})(r.internal.acroformPlugin.xForms,r)})(n,e)}),e.internal.acroformPlugin.isInitialized=!0}},V$=Lr.__acroform__.arrayToPdfArray=function(e,t,n){var a=function(o){return o};if(Array.isArray(e)){for(var r="[",i=0;i<e.length;i++)switch(i!==0&&(r+=" "),xs(e[i])){case"boolean":case"number":case"object":r+=e[i].toString();break;case"string":e[i].substr(0,1)==="/"?r+="/"+F0(e[i].substr(1)):(t!==void 0&&n&&(a=n.internal.getEncryptor(t)),r+="("+sf(a(e[i].toString()))+")")}return r+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},mN=function(e,t,n){var a=function(r){return r};return t!==void 0&&n&&(a=n.internal.getEncryptor(t)),(e=e||"").toString(),"("+sf(a(e))+")"},gd=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})};gd.prototype.toString=function(){return this.objId+" 0 R"},gd.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},gd.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter(function(i){return i!="content"&&i!="appearanceStreamContent"&&i!="scope"&&i!="objId"&&i.substring(0,1)!="_"});for(var n in t)if(Object.getOwnPropertyDescriptor(this,t[n]).configurable===!1){var a=t[n],r=this[a];r&&(Array.isArray(r)?e.push({key:a,value:V$(r,this.objId,this.scope)}):r instanceof gd?(r.scope=this.scope,e.push({key:a,value:r.objId+" 0 R"})):typeof r!="function"&&e.push({key:a,value:r}))}return e};var z$=function(){gd.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(n){t=n}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(n){e=n.trim()},get:function(){return e||null}})};vc(z$,gd);var $$=function(){gd.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 n=function(a){return a};return this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),"("+sf(n(e))+")"}},set:function(n){e=n}})};vc($$,gd);var Eu=function e(){gd.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(T){if(isNaN(T))throw new Error('Invalid value "'+T+'" for attribute F supplied.');t=T}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Jr(t,3)},set:function(T){T?this.F=Wr(t,3):this.F=Yr(t,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(T){if(isNaN(T))throw new Error('Invalid value "'+T+'" for attribute Ff supplied.');n=T}});var a=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(a.length!==0)return a},set:function(T){a=T!==void 0?T:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[0])?0:a[0]},set:function(T){a[0]=T}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[1])?0:a[1]},set:function(T){a[1]=T}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[2])?0:a[2]},set:function(T){a[2]=T}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[3])?0:a[3]},set:function(T){a[3]=T}});var r="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return r},set:function(T){switch(T){case"/Btn":case"/Tx":case"/Ch":case"/Sig":r=T;break;default:throw new Error('Invalid value "'+T+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof R3)return;i="FieldObject"+e.FieldNum++}var T=function(A){return A};return this.scope&&(T=this.scope.internal.getEncryptor(this.objId)),"("+sf(T(i))+")"},set:function(T){i=T.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(T){i=T}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(T){o=T}});var c="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return c},set:function(T){c=T}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(T){l=T}});var d=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return d===void 0?50/m9:d},set:function(T){d=T}});var m="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return m},set:function(T){m=T}});var h="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!h||this instanceof R3||this instanceof E0))return mN(h,this.objId,this.scope)},set:function(T){T=T.toString(),h=T}});var x=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(x)return this instanceof Vi==0?mN(x,this.objId,this.scope):x},set:function(T){T=T.toString(),x=this instanceof Vi==0?T.substr(0,1)==="("?rg(T.substr(1,T.length-2)):rg(T):T}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Vi==1?rg(x.substr(1,x.length-1)):x},set:function(T){T=T.toString(),x=this instanceof Vi==1?"/"+F0(T):T}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(T){this.V=T}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof Vi==0?mN(f,this.objId,this.scope):f},set:function(T){T=T.toString(),f=this instanceof Vi==0?T.substr(0,1)==="("?rg(T.substr(1,T.length-2)):rg(T):T}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Vi==1?rg(f.substr(1,f.length-1)):f},set:function(T){T=T.toString(),f=this instanceof Vi==1?"/"+F0(T):T}}),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 b,y=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return y},set:function(T){T=!!T,y=T}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(b)return b},set:function(T){b=T}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Jr(this.Ff,1)},set:function(T){T?this.Ff=Wr(this.Ff,1):this.Ff=Yr(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Jr(this.Ff,2)},set:function(T){T?this.Ff=Wr(this.Ff,2):this.Ff=Yr(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Jr(this.Ff,3)},set:function(T){T?this.Ff=Wr(this.Ff,3):this.Ff=Yr(this.Ff,3)}});var w=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(w!==null)return w},set:function(T){if([0,1,2].indexOf(T)===-1)throw new Error('Invalid value "'+T+'" for attribute Q supplied.');w=T}}),Object.defineProperty(this,"textAlign",{get:function(){var T;switch(w){case 0:default:T="left";break;case 1:T="center";break;case 2:T="right"}return T},configurable:!0,enumerable:!0,set:function(T){switch(T){case"right":case 2:w=2;break;case"center":case 1:w=1;break;default:w=0}}})};vc(Eu,gd);var Gg=function(){Eu.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(n){e=n}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(n){e=n}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return V$(t,this.objId,this.scope)}
1008,set:function(n){var a,r;r=[],typeof(a=n)=="string"&&(r=(function(i,o,c){c||(c=1);for(var l,d=[];l=o.exec(i);)d.push(l[c]);return d})(a,/\((.*?)\)/g)),t=r}}),this.getOptions=function(){return t},this.setOptions=function(n){t=n,this.sort&&t.sort()},this.addOption=function(n){n=(n=n||"").toString(),t.push(n),this.sort&&t.sort()},this.removeOption=function(n,a){for(a=a||!1,n=(n=n||"").toString();t.indexOf(n)!==-1&&(t.splice(t.indexOf(n),1),a!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Jr(this.Ff,18)},set:function(n){n?this.Ff=Wr(this.Ff,18):this.Ff=Yr(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Jr(this.Ff,19)},set:function(n){this.combo===!0&&(n?this.Ff=Wr(this.Ff,19):this.Ff=Yr(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Jr(this.Ff,20)},set:function(n){n?(this.Ff=Wr(this.Ff,20),t.sort()):this.Ff=Yr(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Jr(this.Ff,22)},set:function(n){n?this.Ff=Wr(this.Ff,22):this.Ff=Yr(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Jr(this.Ff,23)},set:function(n){n?this.Ff=Wr(this.Ff,23):this.Ff=Yr(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Jr(this.Ff,27)},set:function(n){n?this.Ff=Wr(this.Ff,27):this.Ff=Yr(this.Ff,27)}}),this.hasAppearanceStream=!1};vc(Gg,Eu);var Jg=function(){Gg.call(this),this.fontName="helvetica",this.combo=!1};vc(Jg,Gg);var Wg=function(){Jg.call(this),this.combo=!0};vc(Wg,Jg);var K5=function(){Wg.call(this),this.edit=!0};vc(K5,Wg);var Vi=function(){Eu.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Jr(this.Ff,15)},set:function(n){n?this.Ff=Wr(this.Ff,15):this.Ff=Yr(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Jr(this.Ff,16)},set:function(n){n?this.Ff=Wr(this.Ff,16):this.Ff=Yr(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Jr(this.Ff,17)},set:function(n){n?this.Ff=Wr(this.Ff,17):this.Ff=Yr(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Jr(this.Ff,26)},set:function(n){n?this.Ff=Wr(this.Ff,26):this.Ff=Yr(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(i){return i};if(this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var a,r=[];for(a in r.push("<<"),t)r.push("/"+a+" ("+sf(n(t[a]))+")");return r.push(">>"),r.join(` 1009`)}},set:function(n){xs(n)==="object"&&(t=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(n){typeof n=="string"&&(t.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(n){var a=n==null?"":n.toString();a.substr(0,1)==="/"&&(a=a.substr(1)),e="/"+F0(a)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(n){e="/"+F0(n)}})};vc(Vi,Eu);var Z5=function(){Vi.call(this),this.pushButton=!0};vc(Z5,Vi);var Yg=function(){Vi.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:[]}})};vc(Yg,Vi);var R3=function(){var e,t;Eu.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(r){t=r}});var n,a={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var r=function(c){return c};this.scope&&(r=this.scope.internal.getEncryptor(this.objId));var i,o=[];for(i in o.push("<<"),a)o.push("/"+i+" ("+sf(r(a[i]))+")");return o.push(">>"),o.join(` 1010`)}
vendor: 9,202 bytes, lines 1010-1019
1010,set:function(r){xs(r)==="object"&&(a=r)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return a.CA||""},set:function(r){typeof r=="string"&&(a.CA=r)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(r){var i=r==null?"":r.toString();i.substr(0,1)==="/"&&(i=i.substr(1)),n="/"+F0(i)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(r){var i=r==null?"":r.toString();i.substr(0,1)==="/"&&(i=i.substr(1)),n="/"+F0(i)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=gn.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};vc(R3,Eu),Yg.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 n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},Yg.prototype.createOption=function(e){var t=new R3;return t.Parent=this,t.optionName=e,this.Kids.push(t),Dge.call(this.scope,t),t};var e3=function(){Vi.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=gn.CheckBox.createAppearanceStream()};vc(e3,Vi);var E0=function(){Eu.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Jr(this.Ff,13)},set:function(t){t?this.Ff=Wr(this.Ff,13):this.Ff=Yr(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Jr(this.Ff,21)},set:function(t){t?this.Ff=Wr(this.Ff,21):this.Ff=Yr(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Jr(this.Ff,23)},set:function(t){t?this.Ff=Wr(this.Ff,23):this.Ff=Yr(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Jr(this.Ff,24)},set:function(t){t?this.Ff=Wr(this.Ff,24):this.Ff=Yr(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Jr(this.Ff,25)},set:function(t){t?this.Ff=Wr(this.Ff,25):this.Ff=Yr(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Jr(this.Ff,26)},set:function(t){t?this.Ff=Wr(this.Ff,26):this.Ff=Yr(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}})};vc(E0,Eu);var t3=function(){E0.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Jr(this.Ff,14)},set:function(e){e?this.Ff=Wr(this.Ff,14):this.Ff=Yr(this.Ff,14)}}),this.password=!0};vc(t3,E0);var gn={CheckBox:{createAppearanceStream:function(){return{N:{On:gn.CheckBox.YesNormal},D:{On:gn.CheckBox.YesPushDown,Off:gn.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=id(e);t.scope=e.scope;var n=[],a=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),i=h7(e,e.caption);return n.push("0.749023 g"),n.push("0 0 "+aa(gn.internal.getWidth(e))+" "+aa(gn.internal.getHeight(e))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+a+" "+aa(i.fontSize)+" Tf "+r),n.push("BT"),n.push(i.text),n.push("ET"),n.push("Q"),n.push("EMC"),t.stream=n.join(` 1011`),t},YesNormal:function(e){var t=id(e);t.scope=e.scope;var n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,a=e.scope.__private__.encodeColorString(e.color),r=[],i=gn.internal.getHeight(e),o=gn.internal.getWidth(e),c=h7(e,e.caption);return r.push("1 g"),r.push("0 0 "+aa(o)+" "+aa(i)+" re"),r.push("f"),r.push("q"),r.push("0 0 1 rg"),r.push("0 0 "+aa(o-1)+" "+aa(i-1)+" re"),r.push("W"),r.push("n"),r.push("0 g"),r.push("BT"),r.push("/"+n+" "+aa(c.fontSize)+" Tf "+a),r.push(c.text),r.push("ET"),r.push("Q"),t.stream=r.join(` 1012`),t},OffPushDown:function(e){var t=id(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+aa(gn.internal.getWidth(e))+" "+aa(gn.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join(` 1013`),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:gn.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=gn.RadioButton.Circle.YesNormal,t.D[e]=gn.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=id(e);t.scope=e.scope;var n=[],a=gn.internal.getWidth(e)<=gn.internal.getHeight(e)?gn.internal.getWidth(e)/4:gn.internal.getHeight(e)/4;a=Number((.9*a).toFixed(5));var r=gn.internal.Bezier_C,i=Number((a*r).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+Dp(gn.internal.getWidth(e)/2)+" "+Dp(gn.internal.getHeight(e)/2)+" cm"),n.push(a+" 0 m"),n.push(a+" "+i+" "+i+" "+a+" 0 "+a+" c"),n.push("-"+i+" "+a+" -"+a+" "+i+" -"+a+" 0 c"),n.push("-"+a+" -"+i+" -"+i+" -"+a+" 0 -"+a+" c"),n.push(i+" -"+a+" "+a+" -"+i+" "+a+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(` 1014`),t},YesPushDown:function(e){var t=id(e);t.scope=e.scope;var n=[],a=gn.internal.getWidth(e)<=gn.internal.getHeight(e)?gn.internal.getWidth(e)/4:gn.internal.getHeight(e)/4;a=Number((.9*a).toFixed(5));var r=Number((2*a).toFixed(5)),i=Number((r*gn.internal.Bezier_C).toFixed(5)),o=Number((a*gn.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Dp(gn.internal.getWidth(e)/2)+" "+Dp(gn.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),n.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),n.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),n.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+Dp(gn.internal.getWidth(e)/2)+" "+Dp(gn.internal.getHeight(e)/2)+" cm"),n.push(a+" 0 m"),n.push(a+" "+o+" "+o+" "+a+" 0 "+a+" c"),n.push("-"+o+" "+a+" -"+a+" "+o+" -"+a+" 0 c"),n.push("-"+a+" -"+o+" -"+o+" -"+a+" 0 -"+a+" c"),n.push(o+" -"+a+" "+a+" -"+o+" "+a+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(` 1015`),t},OffPushDown:function(e){var t=id(e);t.scope=e.scope;var n=[],a=gn.internal.getWidth(e)<=gn.internal.getHeight(e)?gn.internal.getWidth(e)/4:gn.internal.getHeight(e)/4;a=Number((.9*a).toFixed(5));var r=Number((2*a).toFixed(5)),i=Number((r*gn.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Dp(gn.internal.getWidth(e)/2)+" "+Dp(gn.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),n.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),n.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),n.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(` 1016`),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:gn.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=gn.RadioButton.Cross.YesNormal,t.D[e]=gn.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=id(e);t.scope=e.scope;var n=[],a=gn.internal.calculateCross(e);return n.push("q"),n.push("1 1 "+aa(gn.internal.getWidth(e)-2)+" "+aa(gn.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(aa(a.x1.x)+" "+aa(a.x1.y)+" m"),n.push(aa(a.x2.x)+" "+aa(a.x2.y)+" l"),n.push(aa(a.x4.x)+" "+aa(a.x4.y)+" m"),n.push(aa(a.x3.x)+" "+aa(a.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(` 1017`),t},YesPushDown:function(e){var t=id(e);t.scope=e.scope;var n=gn.internal.calculateCross(e),a=[];return a.push("0.749023 g"),a.push("0 0 "+aa(gn.internal.getWidth(e))+" "+aa(gn.internal.getHeight(e))+" re"),a.push("f"),a.push("q"),a.push("1 1 "+aa(gn.internal.getWidth(e)-2)+" "+aa(gn.internal.getHeight(e)-2)+" re"),a.push("W"),a.push("n"),a.push(aa(n.x1.x)+" "+aa(n.x1.y)+" m"),a.push(aa(n.x2.x)+" "+aa(n.x2.y)+" l"),a.push(aa(n.x4.x)+" "+aa(n.x4.y)+" m"),a.push(aa(n.x3.x)+" "+aa(n.x3.y)+" l"),a.push("s"),a.push("Q"),t.stream=a.join(` 1018`),t},OffPushDown:function(e){var t=id(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+aa(gn.internal.getWidth(e))+" "+aa(gn.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join(` 1019`),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+n}};gn.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=gn.internal.getWidth(e),n=gn.internal.getHeight(e),a=Math.min(t,n);return{x1:{x:(t-a)/2,y:(n-a)/2+a},x2:{x:(t-a)/2+a,y:(n-a)/2},x3:{x:(t-a)/2,y:(n-a)/2},x4:{x:(t-a)/2+a,y:(n-a)/2+a}}}},gn.internal.getWidth=function(e){var t=0;return xs(e)==="object"&&(t=rI(e.Rect[2])),t},gn.internal.getHeight=function(e){var t=0;return xs(e)==="object"&&(t=rI(e.Rect[3])),t};var Dge=Lr.addField=function(e){if(Pge(this,e),!(e instanceof Eu))throw new Error("Invalid argument passed to
1019jsPDF.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};Lr.AcroFormChoiceField=Gg,Lr.AcroFormListBox=Jg,Lr.AcroFormComboBox=Wg,Lr.AcroFormEditBox=K5,Lr.AcroFormButton=Vi,Lr.AcroFormPushButton=Z5,Lr.AcroFormRadioButton=Yg,Lr.AcroFormCheckBox=e3,Lr.AcroFormTextField=E0,Lr.AcroFormPasswordField=t3,Lr.AcroFormAppearance=gn,Lr.AcroForm={ChoiceField:Gg,ListBox:Jg,ComboBox:Wg,EditBox:K5,Button:Vi,PushButton:Z5,RadioButton:Yg,CheckBox:e3,TextField:E0,PasswordField:t3,Appearance:gn},En.AcroForm={ChoiceField:Gg,ListBox:Jg,ComboBox:Wg,EditBox:K5,Button:Vi,PushButton:Z5,RadioButton:Yg,CheckBox:e3,TextField:E0,PasswordField:t3,Appearance:gn};En.AcroForm;function q$(e){return e.reduce(function(t,n,a){return t[n]=a,t},{})}(function(e){var t="addImage_";e.__addimage__={};var n="UNKNOWN",a={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]]},r=e.__addimage__.getImageFileTypeByImageData=function(U,O){var W,J,oe,G,K,ee=n;if((O=O||n)==="RGBA"||U.data!==void 0&&U.data instanceof Uint8ClampedArray&&"height"in U&&"width"in U)return"RGBA";if(R(U))for(K in a)for(oe=a[K],W=0;W<oe.length;W+=1){for(G=!0,J=0;J<oe[W].length;J+=1)if(oe[W][J]!==void 0&&oe[W][J]!==U[J]){G=!1;break}if(G===!0){ee=K;break}}else for(K in a)for(oe=a[K],W=0;W<oe.length;W+=1){for(G=!0,J=0;J<oe[W].length;J+=1)if(oe[W][J]!==void 0&&oe[W][J]!==U.charCodeAt(J)){G=!1;break}if(G===!0){ee=K;break}}return ee===n&&O!==n&&(ee=O),ee},i=function U(O){for(var W=this.internal.write,J=this.internal.putStream,oe=(0,this.internal.getFilters)();oe.indexOf("FlateEncode")!==-1;)oe.splice(oe.indexOf("FlateEncode"),1);O.objectId=this.internal.newObject();var G=[];if(G.push({key:"Type",value:"/XObject"}),G.push({key:"Subtype",value:"/Image"}),G.push({key:"Width",value:O.width}),G.push({key:"Height",value:O.height}),O.colorSpace===T.INDEXED?G.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(O.palette.length/3-1)+" "+("sMask"in O&&O.sMask!==void 0?O.objectId+2:O.objectId+1)+" 0 R]"}):(G.push({key:"ColorSpace",value:"/"+O.colorSpace}),O.colorSpace===T.DEVICE_CMYK&&G.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),G.push({key:"BitsPerComponent",value:O.bitsPerComponent}),"decodeParameters"in O&&O.decodeParameters!==void 0&&G.push({key:"DecodeParms",value:"<<"+O.decodeParameters+">>"}),"transparency"in O&&Array.isArray(O.transparency)&&O.transparency.length>0){for(var K="",ee=0,pe=O.transparency.length;ee<pe;ee++)K+=O.transparency[ee]+" "+O.transparency[ee]+" ";G.push({key:"Mask",value:"["+K+"]"})}O.sMask!==void 0&&G.push({key:"SMask",value:O.objectId+1+" 0 R"});var V=O.filter!==void 0?["/"+O.filter]:void 0;if(J({data:O.data,additionalKeyValues:G,alreadyAppliedFilters:V,objectId:O.objectId}),W("endobj"),"sMask"in O&&O.sMask!==void 0){var Y,z=(Y=O.sMaskBitsPerComponent)!==null&&Y!==void 0?Y:O.bitsPerComponent,H={width:O.width,height:O.height,colorSpace:"DeviceGray",bitsPerComponent:z,data:O.sMask};"filter"in O&&(H.decodeParameters="/Predictor ".concat(O.predictor," /Colors 1 /BitsPerComponent ").concat(z," /Columns ").concat(O.width),H.filter=O.filter),U.call(this,H)}if(O.colorSpace===T.INDEXED){var ne=this.internal.newObject();J({data:I(new Uint8Array(O.palette)),objectId:ne}),W("endobj")}},o=function(){var U=this.internal.collections[t+"images"];for(var O in U)i.call(this,U[O])},c=function(){var U,O=this.internal.collections[t+"images"],W=this.internal.write;for(var J in O)W("/I"+(U=O[J]).index,U.objectId,"0","R")},l=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",c))},d=function(){var U=this.internal.collections[t+"images"];return l.call(this),U},m=function(){return Object.keys(this.internal.collections[t+"images"]).length},h=function(U){return typeof e["process"+U.toUpperCase()]=="function"},x=function(U){return xs(U)==="object"&&U.nodeType===1},f=function(U,O){if(U.nodeName==="IMG"&&U.hasAttribute("src")){var W=""+U.getAttribute("src");if(W.indexOf("data:image/")===0)return Q5(unescape(W).split("base64,").pop());var J=e.loadFile(W,!0);if(J!==void 0)return J}if(U.nodeName==="CANVAS"){if(U.width===0||U.height===0)throw new Error("Given canvas must have data. Canvas width: "+U.width+", height: "+U.height);var oe;switch(O){case"PNG":oe="image/png";break;case"WEBP":oe="image/webp";break;default:oe="image/jpeg"}return Q5(U.toDataURL(oe,1).split("base64,").pop())}},b=function(U){var O=this.internal.collections[t+"images"];if(O){for(var W in O)if(U===O[W].alias)return O[W]}},y=function(U,O,W){return U||O||(U=-96,O=-96),U<0&&(U=-1*W.width*72/U/this.internal.scaleFactor),O<0&&(O=-1*W.height*72/O/this.internal.scaleFactor),U===0&&(U=O*W.width/W.height),O===0&&(O=U*W.height/W.width),[U,O]},w=function(U,O,W,J,oe,G){var K=y.call(this,W,J,oe),ee=this.internal.getCoordinateString,pe=this.internal.getVerticalCoordinateString,V=d.call(this);if(W=K[0],J=K[1],V[oe.index]=oe,G){G*=Math.PI/180;var Y=Math.cos(G),z=Math.sin(G),H=function(te){return te.toFixed(4)},ne=[H(Y),H(z),H(-1*z),H(Y),0,0,"cm"]}this.internal.write("q"),G?(this.internal.write([1,"0","0",1,ee(U),pe(O+J),"cm"].join(" ")),this.internal.write(ne.join(" ")),this.internal.write([ee(W),"0","0",ee(J),"0","0","cm"].join(" "))):this.internal.write([ee(W),"0","0",ee(J),ee(U),pe(O+J),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+oe.index+" Do"),this.internal.write("Q")},T=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 A=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},E=e.__addimage__.sHashCode=function(U){var O,W,J=0;if(typeof U=="string")for(W=U.length,O=0;O<W;O++)J=(J<<5)-J+U.charCodeAt(O),J|=0;else if(R(U))for(W=U.byteLength/2,O=0;O<W;O++)J=(J<<5)-J+U[O],J|=0;return J}
vendor: 6,792 bytes, line 1019
1019,D=e.__addimage__.validateStringAsBase64=function(U){(U=U||"").toString().trim();var O=!0;return U.length===0&&(O=!1),U.length%4!=0&&(O=!1),/^[A-Za-z0-9+/]+$/.test(U.substr(0,U.length-2))===!1&&(O=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(U.substr(-2))===!1&&(O=!1),O},S=e.__addimage__.extractImageFromDataUrl=function(U){if(U==null||!(U=U.trim()).startsWith("data:"))return null;var O=U.indexOf(",");return O<0?null:U.substring(0,O).trim().endsWith("base64")?U.substring(O+1):null};e.__addimage__.isArrayBuffer=function(U){return U instanceof ArrayBuffer};var R=e.__addimage__.isArrayBufferView=function(U){return U instanceof Int8Array||U instanceof Uint8Array||U instanceof Uint8ClampedArray||U instanceof Int16Array||U instanceof Uint16Array||U instanceof Int32Array||U instanceof Uint32Array||U instanceof Float32Array||U instanceof Float64Array},L=e.__addimage__.binaryStringToUint8Array=function(U){for(var O=U.length,W=new Uint8Array(O),J=0;J<O;J++)W[J]=U.charCodeAt(J);return W},I=e.__addimage__.arrayBufferToBinaryString=function(U){for(var O="",W=R(U)?U:new Uint8Array(U),J=0;J<W.length;J+=8192)O+=String.fromCharCode.apply(null,W.subarray(J,J+8192));return O};e.addImage=function(){var U,O,W,J,oe,G,K,ee,pe;if(typeof arguments[1]=="number"?(O=n,W=arguments[1],J=arguments[2],oe=arguments[3],G=arguments[4],K=arguments[5],ee=arguments[6],pe=arguments[7]):(O=arguments[1],W=arguments[2],J=arguments[3],oe=arguments[4],G=arguments[5],K=arguments[6],ee=arguments[7],pe=arguments[8]),xs(U=arguments[0])==="object"&&!x(U)&&"imageData"in U){var V=U;U=V.imageData,O=V.format||O||n,W=V.x||W||0,J=V.y||J||0,oe=V.w||V.width||oe,G=V.h||V.height||G,K=V.alias||K,ee=V.compression||ee,pe=V.rotation||V.angle||pe}var Y=this.internal.getFilters();if(ee===void 0&&Y.indexOf("FlateEncode")!==-1&&(ee="SLOW"),isNaN(W)||isNaN(J))throw new Error("Invalid coordinates passed to jsPDF.addImage");l.call(this);var z=F.call(this,U,O,K,ee);return w.call(this,W,J,oe,G,z,pe),this};var F=function(U,O,W,J){var oe,G,K;if(typeof U=="string"&&r(U)===n){U=unescape(U);var ee=_(U,!1);(ee!==""||(ee=e.loadFile(U,!0))!==void 0)&&(U=ee)}if(x(U)&&(U=f(U,O)),O=r(U,O),!h(O))throw new Error("addImage does not support files of type '"+O+"', please ensure that a plugin for '"+O+"' support is added.");if(((K=W)==null||K.length===0)&&(W=(function(pe){return typeof pe=="string"||R(pe)?E(pe):R(pe.data)?E(pe.data):null})(U)),(oe=b.call(this,W))||(U instanceof Uint8Array||O==="RGBA"||(G=U,U=L(U)),oe=this["process"+O.toUpperCase()](U,m.call(this),W,(function(pe){return pe&&typeof pe=="string"&&(pe=pe.toUpperCase()),pe in e.image_compression?pe:A.NONE})(J),G)),!oe)throw new Error("An unknown error occurred whilst processing the image.");return oe},_=e.__addimage__.convertBase64ToBinaryString=function(U,O){O=typeof O!="boolean"||O;var W,J="";if(typeof U=="string"){var oe;W=(oe=S(U))!==null&&oe!==void 0?oe:U;try{J=Q5(W)}catch(G){if(O)throw D(W)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+G.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return J};e.getImageProperties=function(U){var O,W,J="";if(x(U)&&(U=f(U)),typeof U=="string"&&r(U)===n&&((J=_(U,!1))===""&&(J=e.loadFile(U)||""),U=J),W=r(U),!h(W))throw new Error("addImage does not support files of type '"+W+"', please ensure that a plugin for '"+W+"' support is added.");if(U instanceof Uint8Array||(U=L(U)),!(O=this["process"+W.toUpperCase()](U)))throw new Error("An unknown error occurred whilst processing the image");return O.fileType=W,O}})(En.API),(function(e){var t=function(n){if(n!==void 0&&n!="")return!0};En.API.events.push(["addPage",function(n){this.internal.getPageInfo(n.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(n){for(var a,r,i,o=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString,l=this.internal.getPageInfoByObjId(n.objId),d=n.pageContext.annotations,m=!1,h=0;h<d.length&&!m;h++)switch((a=d[h]).type){case"link":(t(a.options.url)||t(a.options.pageNumber))&&(m=!0);break;case"reference":case"text":case"freetext":m=!0}if(m!=0){this.internal.write("/Annots [");for(var x=0;x<d.length;x++){a=d[x];var f=this.internal.pdfEscape,b=this.internal.getEncryptor(n.objId);switch(a.type){case"reference":this.internal.write(" "+a.object.objId+" 0 R ");break;case"text":var y=this.internal.newAdditionalObject(),w=this.internal.newAdditionalObject(),T=this.internal.getEncryptor(y.objId),A=a.title||"Note";i="<</Type /Annot /Subtype /Text "+(r="/Rect ["+o(a.bounds.x)+" "+c(a.bounds.y+a.bounds.h)+" "+o(a.bounds.x+a.bounds.w)+" "+c(a.bounds.y)+"] ")+"/Contents ("+f(T(a.contents))+")",i+=" /Popup "+w.objId+" 0 R",i+=" /P "+l.objId+" 0 R",i+=" /T ("+f(T(A))+") >>",y.content=i;var E=y.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(r="/Rect ["+o(a.bounds.x+30)+" "+c(a.bounds.y+a.bounds.h)+" "+o(a.bounds.x+a.bounds.w+30)+" "+c(a.bounds.y)+"] ")+" /Parent "+E,a.open&&(i+=" /Open true"),i+=" >>",w.content=i,this.internal.write(y.objId,"0 R",w.objId,"0 R");break;case"freetext":r="/Rect ["+o(a.bounds.x)+" "+c(a.bounds.y)+" "+o(a.bounds.x+a.bounds.w)+" "+c(a.bounds.y+a.bounds.h)+"] ";var D="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(a.color||"#000000");i="<</Type /Annot /Subtype /FreeText "+r+"/Contents ("+f(b(a.contents))+")",i+=" /DS("+f(b(D))+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(a.options.name){var S=this.annotations._nameMap[a.options.name];a.options.pageNumber=S.page,a.options.top=S.y}else a.options.top||(a.options.top=0);if(r="/Rect ["+a.finalBounds.x+" "+a.finalBounds.y+" "+a.finalBounds.w+" "+a.finalBounds.h+"] ",i="",a.options.url)i="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /A <</S /URI /URI ("+f(b(a.options.url))+") >>";else if(a.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(a.options.pageNumber).objId+" 0 R",a.options.magFactor=a.options.magFactor||"XYZ",a.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+a.options.top+"]";break;case"FitV":a.options.left=a.options.left||0,i+=" /FitV "+a.options.left+"]";break;default:var R=c(a.options.top);a.options.left=a.options.left||0,a.options.zoom===void 0&&(a.options.zoom=0),i+=" /XYZ "+a.options.left+" "+R+" "+a.options.zoom+"]"}i!=""&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),e.createAnnotation=function(n){var a=this.internal.getCurrentPageInfo();switch(n.type){case"link":this.link(n.bounds.x,n.bounds.y,n.bounds.w,n.bounds.h,n);break;case"text":case"freetext":a.pageContext.annotations.push(n)}},e.link=function(n,a,r,i,o){var c=this.internal.getCurrentPageInfo(),l=this.internal.getCoordinateString,d=this.internal.getVerticalCoordinateString;
1019c.pageContext.annotations.push({finalBounds:{x:l(n),y:d(a),w:l(n+r),h:d(a+i)},options:o,type:"link"})},e.textWithLink=function(n,a,r,i){var o,c,l=this.getTextWidth(n),d=this.internal.getLineHeight()/this.internal.scaleFactor;if(i.maxWidth!==void 0){c=i.maxWidth;var m=this.splitTextToSize(n,c).length;o=Math.ceil(d*m)}else c=l,o=d;return this.text(n,a,r,i),r+=.2*d,i.align==="center"&&(a-=l/2),i.align==="right"&&(a-=l),this.link(a,r-d,c,o,i),l},e.getTextWidth=function(n){var a=this.internal.getFontSize();return this.getStringUnitWidth(n)*a/this.internal.scaleFactor}})(En.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,6437
vendor: 20,389 bytes, lines 1019-1043
10197],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]},n={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}},a={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},r=[1570,1571,1573,1575];e.__arabicParser__={};var i=e.__arabicParser__.isInArabicSubstitutionA=function(y){return t[y.charCodeAt(0)]!==void 0},o=e.__arabicParser__.isArabicLetter=function(y){return typeof y=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(y)},c=e.__arabicParser__.isArabicEndLetter=function(y){return o(y)&&i(y)&&t[y.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(y){return o(y)&&r.indexOf(y.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(y){return o(y)&&i(y)&&t[y.charCodeAt(0)].length>=1};var d=e.__arabicParser__.arabicLetterHasFinalForm=function(y){return o(y)&&i(y)&&t[y.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(y){return o(y)&&i(y)&&t[y.charCodeAt(0)].length>=3};var m=e.__arabicParser__.arabicLetterHasMedialForm=function(y){return o(y)&&i(y)&&t[y.charCodeAt(0)].length==4},h=e.__arabicParser__.resolveLigatures=function(y){var w=0,T=n,A="",E=0;for(w=0;w<y.length;w+=1)T[y.charCodeAt(w)]!==void 0?(E++,typeof(T=T[y.charCodeAt(w)])=="number"&&(A+=String.fromCharCode(T),T=n,E=0),w===y.length-1&&(T=n,A+=y.charAt(w-(E-1)),w-=E-1,E=0)):(T=n,A+=y.charAt(w-E),w-=E,E=0);return A};e.__arabicParser__.isArabicDiacritic=function(y){return y!==void 0&&a[y.charCodeAt(0)]!==void 0};var x=e.__arabicParser__.getCorrectForm=function(y,w,T){return o(y)?i(y)===!1?-1:!d(y)||!o(w)&&!o(T)||!o(T)&&c(w)||c(y)&&!o(w)||c(y)&&l(w)||c(y)&&c(w)?0:m(y)&&o(w)&&!c(w)&&o(T)&&d(T)?3:c(y)||!o(T)?1:2:-1},f=function(y){var w=0,T=0,A=0,E="",D="",S="",R=(y=y||"").split("\\s+"),L=[];for(w=0;w<R.length;w+=1){for(L.push(""),T=0;T<R[w].length;T+=1)E=R[w][T],D=R[w][T-1],S=R[w][T+1],o(E)?(A=x(E,D,S),L[w]+=A!==-1?String.fromCharCode(t[E.charCodeAt(0)][A]):E):L[w]+=E;L[w]=h(L[w])}return L.join(" ")},b=e.__arabicParser__.processArabic=e.processArabic=function(){var y,w=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,T=[];if(Array.isArray(w)){var A=0;for(T=[],A=0;A<w.length;A+=1)Array.isArray(w[A])?T.push([f(w[A][0]),w[A][1],w[A][2]]):T.push([f(w[A])]);y=T}else y=f(w);return typeof arguments[0]=="string"?y:(arguments[0].text=y,arguments[0])};e.events.push(["preProcessText",b])})(En.API),En.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 n=void 0;Object.defineProperty(this,"pdf",{get:function(){return n},set:function(c){n=c}});var a=150;Object.defineProperty(this,"width",{get:function(){return a},set:function(c){a=isNaN(c)||Number.isInteger(c)===!1||c<0?150:c,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=a+1)}});var r=300;Object.defineProperty(this,"height",{get:function(){return r},set:function(c){r=isNaN(c)||Number.isInteger(c)===!1||c<0?300:c,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=r+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(c){i=c}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(c){o=c}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(n,a){var r;if((n=n||"2d")!=="2d")return null;for(r in a)this.pdf.context2d.hasOwnProperty(r)&&(this.pdf.context2d[r]=a[r]);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}])})(En.API),(function(e){var t={left:0,top:0,bottom:0,right:0},n=!1,a=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(),r.call(this))},r=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var l=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return l},set:function(y){l=y}});var d=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return d},set:function(y){d=y}});var m=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return m},set:function(y){m=y}});var h=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return h},set:function(y){h=y}});var x=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return x},set:function(y){x=y}});var f=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return f},set:function(y){f=y}});var b=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return b},set:function(y){b=y}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(l){return a.call(this),this.internal.__cell__.headerFunction=typeof l=="function"?l:void 0,this},e.getTextDimensions=function(l,d){a.call(this);var m=(d=d||{}).fontSize||this.getFontSize(),h=d.font||this.getFont(),x=d.scaleFactor||this.internal.scaleFactor,f=0,b=0,y=0,w=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 T=d.maxWidth;T>0?typeof l=="string"?l=this.splitTextToSize(l,T):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce(function(E,D){return E.concat(w.splitTextToSize(D,T))},[])):l=Array.isArray(l)?l:[l];for(var A=0;A<l.length;A++)f<(y=this.getStringUnitWidth(l[A],{font:h})*m)&&(f=y);return f!==0&&(b=l.length),{w:f/=x,h:Math.max((b*m*this.getLineHeightFactor()-m*(this.getLineHeightFactor()-1))/x,0)}},e.cellAddPage=function(){a.call(this),this.addPage();var l=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new i(l.left,l.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var o=e.cell=function(){var l;l=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),a.call(this);var d=this.internal.__cell__.lastCell,m=this.internal.__cell__.padding,h=this.internal.__cell__.margins||t,x=this.internal.__cell__.tableHeaderRow,f=this.internal.__cell__.printHeaders;return d.lineNumber!==void 0&&(d.lineNumber===l.lineNumber?(l.x=(d.x||0)+(d.width||0),l.y=d.y||0):d.y+d.height+l.height+h.bottom>this.getPageHeight()?(this.cellAddPage(),l.y=h.top,f&&x&&(this.printHeaderRow(l.lineNumber,!0),l.y+=x[0].height)):l.y=d.y+d.height||l.y),l.text[0]!==void 0&&(this.rect(l.x,l.y,l.width,l.height,n===!0?"FD":void 0),l.align==="right"?this.text(l.text,l.x+l.width-m,l.y+m,{align:"right",baseline:"top"}):l.align==="center"?this.text(l.text,l.x+l.width/2,l.y+m,{align:"center",baseline:"top",maxWidth:l.width-m-m}):this.text(l.text,l.x+m,l.y+m,{align:"left",baseline:"top",maxWidth:l.width-m-m})),this.internal.__cell__.lastCell=l,this};e.table=function(l,d,m,h,x){if(a.call(this),!m)throw new Error("No data for PDF table.");var f,b,y,w,T=[],A=[],E=[],D={},S={},R=[],L=[],I=(x=x||{}).autoSize||!1,F=x.printHeaders!==!1,_=x.css&&x.css["font-size"]!==void 0?16*x.css["font-size"]:x.fontSize||12,U=x.margins||Object.assign({width:this.getPageWidth()},t),O=typeof x.padding=="number"?x.padding:3,W=x.headerBackgroundColor||"#c8c8c8",J=x.headerTextColor||"#000";if(r.call(this),this.internal.__cell__.printHeaders=F,this.internal.__cell__.margins=U,this.internal.__cell__.table_font_size=_,this.internal.__cell__.padding=O,this.internal.__cell__.headerBackgroundColor=W,this.internal.__cell__.headerTextColor=J,this.setFontSize(_),h==null)A=T=Object.keys(m[0]),E=T.map(function(){return"left"});else if(Array.isArray(h)&&xs(h[0])==="object")for(T=h.map(function(V){return V.name}),A=h.map(function(V){return V.prompt||V.name||""}),E=h.map(function(V){return V.align||"left"}),f=0;f<h.length;f+=1)S[h[f].name]=.7499990551181103*h[f].width;else Array.isArray(h)&&typeof h[0]=="string"&&(A=T=h,E=T.map(function(){return"left"}));if(I||Array.isArray(h)&&typeof h[0]=="string")for(f=0;f<T.length;f+=1){for(D[w=T[f]]=m.map(function(V){return V[w]}),this.setFont(void 0,"bold"),R.push(this.getTextDimensions(A[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),b=D[w],this.setFont(void 0,"normal"),y=0;y<b.length;y+=1)R.push(this.getTextDimensions(b[y],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);S[w]=Math.max.apply(null,R)+O+O,R=[]}if(F){var oe={};for(f=0;f<T.length;f+=1)oe[T[f]]={},oe[T[f]].text=A[f],oe[T[f]].align=E[f];var G=c.call(this,oe,S);L=T.map(function(V){return new i(l,d,S[V],G,oe[V].text,void 0,oe[V].align)}),this.setTableHeaderRow(L),this.printHeaderRow(1,!1)}var K=h.reduce(function(V,Y){return V[Y.name]=Y.align,V},{});for(f=0;f<m.length;f+=1){"rowStart"in x&&x.rowStart instanceof Function&&x.rowStart({row:f,data:m[f]},this);var ee=c.call(this,m[f],S);for(y=0;y<T.length;y+=1){var pe=m[f][T[y]];"cellStart"in x&&x.cellStart instanceof Function&&x.cellStart({row:f,col:y,data:pe},this),o.call(this,new i(l,d,S[T[y]],ee,pe,f+2,K[T[y]]))}}return this.internal.__cell__.table_x=l,this.internal.__cell__.table_y=d,this};var c=function(l,d){var m=this.internal.__cell__.padding,h=this.internal.__cell__.table_font_size,x=this.internal.scaleFactor;return Object.keys(l).map(function(f){var b=l[f];return this.splitTextToSize(b.hasOwnProperty("text")?b.text:b,d[f]-m-m)},this).map(function(f){return this.getLineHeightFactor()*f.length*h/x+m+m},this).reduce(function(f,b){return Math.max(f,b)},0)};e.setTableHeaderRow=function(l){a.call(this),this.internal.__cell__.tableHeaderRow=l},e.printHeaderRow=function(l,d){if(a.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var m;if(n=!0,typeof this.internal.__cell__.headerFunction=="function"){var h=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(h[0],h[1],h[2],h[3],void 0,-1)}this.setFont(void 0,"bold");for(var x=[],f=0;f<this.internal.__cell__.tableHeaderRow.length;f+=1){m=this.internal.__cell__.tableHeaderRow[f].clone(),d&&(m.y=this.internal.__cell__.margins.top||0,x.push(m)),m.lineNumber=l;var b=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),o.call(this,m),this.setTextColor(b)}x.length>0&&this.setTableHeaderRow(x),this.setFont(void 0,"normal"),n=!1}})(En.API);var G$={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},J$=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],f7=q$(J$),W$=[100,200,300,400,500,600,700,800,900],Rge=q$(W$);function pN(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),n=(function(i){return G$[i=i||"normal"]?i:"normal"})(e.style),a=(function(i){return i?typeof i=="number"?i>=100&&i<=900&&i%100==0?i:400:/^\d00$/.test(i)?parseInt(i):i==="bold"?700:400:400})(e.weight),r=(function(i){return typeof f7[i=i||"normal"]=="number"?i:"normal"})(e.stretch);return{family:t,style:n,weight:a,stretch:r,src:e.src||[],ref:e.ref||{name:t,style:[r,n,a].join(" ")}}}function iI(e,t,n,a){var r;for(r=n;r>=0&&r<t.length;r+=a)if(e[t[r]])return e[t[r]];for(r=n;r>=0&&r<t.length;r-=a)if(e[t[r]])return e[t[r]]}var Ige={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},oI={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function cI(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function lI(e){return e.trimLeft()}function Mge(e,t){for(var n=0;n<e.length;){if(e.charAt(n)===t)return[e.substring(0,n),e.substring(n+1)];n+=1}return null}function Lge(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 ig,Sy,uI,dI,mI,hN=["times"];function pI(e,t,n,a,r){var i=4,o=fI;switch(r){case En.API.image_compression.FAST:i=1,o=hI;break;case En.API.image_compression.MEDIUM:i=6,o=gI;break;case En.API.image_compression.SLOW:i=9,o=xI}e=(function(l,d,m,h){for(var x,f=l.length/d,b=new Uint8Array(l.length+f),y=[Oge,hI,fI,gI,xI],w=0;w<f;w+=1){var T=w*d,A=l.subarray(T,T+d);if(h)b.set(h(A,m,x),T+w);else{for(var E=y.length,D=[],S=0;S<E;S+=1)D[S]=y[S](A,m,x);var R=Fge(D.concat());b.set(D[R],T+w)}x=A}return b})(e,t,Math.ceil(n*a/8),o);var c=c7(e,{level:i});return En.API.__addimage__.arrayBufferToBinaryString(c)}function Oge(e){var t=Array.apply([],e);return t.unshift(0),t}function hI(e,t){var n=e.length,a=[];a[0]=1;for(var r=0;r<n;r+=1){var i=e[r-t]||0;a[r+1]=e[r]-i+256&255}return a}function fI(e,t,n){var a=e.length,r=[];r[0]=2;for(var i=0;i<a;i+=1){var o=n&&n[i]||0;r[i+1]=e[i]-o+256&255}return r}function gI(e,t,n){var a=e.length,r=[];r[0]=3;for(var i=0;i<a;i+=1){var o=e[i-t]||0,c=n&&n[i]||0;r[i+1]=e[i]+256-(o+c>>>1)&255}return r}function xI(e,t,n){var a=e.length,r=[];r[0]=4;for(var i=0;i<a;i+=1){var o=Bge(e[i-t]||0,n&&n[i]||0,n&&n[i-t]||0);r[i+1]=e[i]-o+256&255}return r}function Bge(e,t,n){if(e===t&&t===n)return e;var a=Math.abs(t-n),r=Math.abs(e-n),i=Math.abs(e+t-n-n);return a<=r&&a<=i?e:r<=i?t:n}function Fge(e){var t=e.map(function(n){return n.reduce(function(a,r){return a+Math.abs(r)},0)});return t.indexOf(Math.min.apply(null,t))}function fN(e,t,n){var a=t*n,r=Math.floor(a/8),i=16-(a-8*r+n),o=(1<<n)-1;return Y$(e,r)>>i&o}function bI(e,t,n,a){var r=n*a,i=Math.floor(r/8),o=16-(r-8*i+a),c=(1<<a)-1,l=(t&c)<<o;(function(d,m,h){if(m+1<d.byteLength)d.setUint16(m,h,!1);else{var x=h>>8&255;d.setUint8(m,x)}})(e,i,Y$(e,i)&~(c<<o)&65535|l)}function Y$(e,t){return t+1<e.byteLength?e.getUint16(t,!1):e.getUint8(t)<<8}function Uge(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 n=e[t++]|e[t++]<<8,a=e[t++]|e[t++]<<8,r=e[t++],i=r>>7,o=1<<1+(7&r);e[t++],e[t++];var c=null,l=null;i&&(c=t,l=o,t+=3*o);var d=!0,m=[],h=0,x=null,f=0,b=null;for(this.width=n,this.height=a;d&&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,b=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((U=e[t++])>=0))throw Error("Invalid block size");if(U===0)break;t+=U}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var y=e[t++];h=e[t++]|e[t++]<<8,x=e[t++],1&y||(x=null),f=y>>2&7,t++;break;case 254:for(;;){if(!((U=e[t++])>=0))throw Error("Invalid block size");if(U===0)break;t+=U}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var w=e[t++]|e[t++]<<8,T=e[t++]|e[t++]<<8,A=e[t++]|e[t++]<<8,E=e[t++]|e[t++]<<8,D=e[t++],S=D>>6&1,R=1<<1+(7&D),L=c,I=l,F=!1;D>>7&&(F=!0,L=t,I=R,t+=3*R);var _=t;for(t++;;){var U;if(!((U=e[t++])>=0))throw Error("Invalid block size");if(U===0)break;t+=U}m.push({x:w,y:T,width:A,height:E,has_local_palette:F,palette_offset:L,palette_size:I,data_offset:_,data_length:t-_,transparent_index:x,interlaced:!!S,delay:h,disposal:f});break;case 59:d=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return m.length},this.loopCount=function(){return b},this.frameInfo=function(O){if(O<0||O>=m.length)throw new Error("Frame index out of range.");return m[O]},this.decodeAndBlitFrameBGRA=function(O,W){var J=this.frameInfo(O),oe=J.width*J.height;if(oe>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var G=new Uint8Array(oe);vI(e,J.data_offset,G,oe);var K=J.palette_offset,ee=J.transparent_index;ee===null&&(ee=256);var pe=J.width,V=n-pe,Y=pe,z=4*(J.y*n+J.x),H=4*((J.y+J.height)*n+J.x),ne=z,te=4*V;J.interlaced===!0&&(te+=4*n*7);for(var me=8,fe=0,Ae=G.length;fe<Ae;++fe){var xe=G[fe];if(Y===0&&(Y=pe,(ne+=te)>=H&&(te=4*V+4*n*(me-1),ne=z+(pe+V)*(me<<1),me>>=1)),xe===ee)ne+=4;else{var ae=e[K+3*xe],le=e[K+3*xe+1],ze=e[K+3*xe+2];W[ne++]=ze,W[ne++]=le,W[ne++]=ae,W[ne++]=255}--Y}},this.decodeAndBlitFrameRGBA=function(O,W){var J=this.frameInfo(O),oe=J.width*J.height;if(oe>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var G=new Uint8Array(oe);vI(e,J.data_offset,G,oe);var K=J.palette_offset,ee=J.transparent_index;ee===null&&(ee=256);var pe=J.width,V=n-pe,Y=pe,z=4*(J.y*n+J.x),H=4*((J.y+J.height)*n+J.x),ne=z,te=4*V;J.interlaced===!0&&(te+=4*n*7);for(var me=8,fe=0,Ae=G.length;fe<Ae;++fe){var xe=G[fe];if(Y===0&&(Y=pe,(ne+=te)>=H&&(te=4*V+4*n*(me-1),ne=z+(pe+V)*(me<<1),me>>=1)),xe===ee)ne+=4;else{var ae=e[K+3*xe],le=e[K+3*xe+1],ze=e[K+3*xe+2];W[ne++]=ae,W[ne++]=le,W[ne++]=ze,W[ne++]=255}--Y}}}function vI(e,t,n,a){for(var r=e[t++],i=1<<r,o=i+1,c=o+1,l=r+1,d=(1<<l)-1,m=0,h=0,x=0,f=e[t++],b=new Int32Array(4096),y=null;;){for(;m<16&&f!==0;)h|=e[t++]<<m,m+=8,f===1?f=e[t++]:--f;if(m<l)break;var w=h&d;if(h>>=l,m-=l,w!==i){if(w===o)break;for(var T=w<c?w:y,A=0,E=T;E>i;)E=b[E]>>8,++A;var D=E;if(x+A+(T!==w?1:0)>a)return void Rs.log("Warning, gif stream longer than expected.");n[x++]=D;var S=x+=A;for(T!==w&&(n[x++]=D),E=T;A--;)E=b[E],n[--S]=255&E,E>>=8;y!==null&&c<4096&&(b[c++]=y<<8|D,c>=d+1&&l<12&&(++l,d=d<<1|1)),y=w}else c=o+1,d=(1<<(l=r+1))-1,y=null}return x!==a&&Rs.log("Warning, gif stream shorter than expected."),n}/** 1020 * @license 1021 Copyright (c) 2008, Adobe Systems Incorporated 1022 All rights reserved. 1023 1024 Redistribution and use in source and binary forms, with or without 1025 modification, are permitted provided that the following conditions are 1026 met: 1027 1028 * Redistributions of source code must retain the above copyright notice, 1029 this list of conditions and the following disclaimer. 1030 1031 * Redistributions in binary form must reproduce the above copyright 1032 notice, this list of conditions and the following disclaimer in the 1033 documentation and/or other materials provided with the distribution. 1034 1035 * Neither the name of Adobe Systems Incorporated nor the names of its 1036 contributors may be used to endorse or promote products derived from 1037 this software without specific prior written permission. 1038 1039 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 1040 IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 1041 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 1042 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 1043 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
1044 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 1045 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 1046 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 1047 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 1048 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 1049 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1050*/function gN(e){var t,n,a,r,i,o=Math.floor,c=new Array(64),l=new Array(64),d=new Array(64),m=new Array(64),h=new Array(65535),x=new Array(65535),f=new Array(64),b=new Array(64),y=[],w=0,T=7,A=new Array(64),E=new Array(64),D=new Array(64),S=new Array(256),R=new Array(2048),L=[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],I=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],F=[0,1,2,3,4,5,6,7,8,9,10,11],_=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],U=[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],O=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],W=[0,1,2,3,4,5,6,7,8,9,10,11],J=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],oe=[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 G(z,H){for(var ne=0,te=0,me=new Array,fe=1;fe<=16;fe++){for(var Ae=1;Ae<=z[fe];Ae++)me[H[te]]=[],me[H[te]][0]=ne,me[H[te]][1]=fe,te++,ne++;ne*=2}return me}function K(z){for(var H=z[0],ne=z[1]-1;ne>=0;)H&1<<ne&&(w|=1<<T),ne--,--T<0&&(w==255?(ee(255),ee(0)):ee(w),T=7,w=0)}function ee(z){y.push(z)}function pe(z){ee(z>>8&255),ee(255&z)}function V(z,H,ne,te,me){for(var fe,Ae=me[0],xe=me[240],ae=(function(it,at){var ct,Ct,Ht,wn,Hn,qe,dt,Dt,yt,Mt,zt=0;for(yt=0;yt<8;++yt){ct=it[zt],Ct=it[zt+1],Ht=it[zt+2],wn=it[zt+3],Hn=it[zt+4],qe=it[zt+5],dt=it[zt+6];var ca=ct+(Dt=it[zt+7]),jn=ct-Dt,Qt=Ct+dt,xn=Ct-dt,bn=Ht+qe,rn=Ht-qe,He=wn+Hn,tt=wn-Hn,Ot=ca+He,Zn=ca-He,Tn=Qt+bn,qt=Qt-bn;it[zt]=Ot+Tn,it[zt+4]=Ot-Tn;var Vt=.707106781*(qt+Zn);it[zt+2]=Zn+Vt,it[zt+6]=Zn-Vt;var Ra=.382683433*((Ot=tt+rn)-(qt=xn+jn)),Pa=.5411961*Ot+Ra,Os=1.306562965*qt+Ra,mi=.707106781*(Tn=rn+xn),Wt=jn+mi,tr=jn-mi;it[zt+5]=tr+Pa,it[zt+3]=tr-Pa,it[zt+1]=Wt+Os,it[zt+7]=Wt-Os,zt+=8}for(zt=0,yt=0;yt<8;++yt){ct=it[zt],Ct=it[zt+8],Ht=it[zt+16],wn=it[zt+24],Hn=it[zt+32],qe=it[zt+40],dt=it[zt+48];var Wi=ct+(Dt=it[zt+56]),js=ct-Dt,As=Ct+dt,ds=Ct-dt,ss=Ht+qe,Ur=Ht-qe,_u=wn+Hn,Yi=wn-Hn,ms=Wi+_u,$s=Wi-_u,Ci=As+ss,jo=As-ss;it[zt]=ms+Ci,it[zt+32]=ms-Ci;var zo=.707106781*(jo+$s);it[zt+16]=$s+zo,it[zt+48]=$s-zo;var zd=.382683433*((ms=Yi+Ur)-(jo=ds+js)),Tc=.5411961*ms+zd,Nc=1.306562965*jo+zd,Pu=.707106781*(Ci=Ur+ds),kc=js+Pu,jc=js-Pu;it[zt+40]=jc+Tc,it[zt+24]=jc-Tc,it[zt+8]=kc+Nc,it[zt+56]=kc-Nc,zt++}for(yt=0;yt<64;++yt)Mt=it[yt]*at[yt],f[yt]=Mt>0?Mt+.5|0:Mt-.5|0;return f})(z,H),le=0;le<64;++le)b[L[le]]=ae[le];var ze=b[0]-ne;ne=b[0],ze==0?K(te[0]):(K(te[x[fe=32767+ze]]),K(h[fe]));for(var pt=63;pt>0&&b[pt]==0;)pt--;if(pt==0)return K(Ae),ne;for(var xt,be=1;be<=pt;){for(var Tt=be;b[be]==0&&be<=pt;)++be;var Xt=be-Tt;if(Xt>=16){xt=Xt>>4;for(var Jt=1;Jt<=xt;++Jt)K(xe);Xt&=15}fe=32767+b[be],K(me[(Xt<<4)+x[fe]]),K(h[fe]),be++}return pt!=63&&K(Ae),ne}function Y(z){z=Math.min(Math.max(z,1),100),i!=z&&((function(H){for(var ne=[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],te=0;te<64;te++){var me=o((ne[te]*H+50)/100);me=Math.min(Math.max(me,1),255),c[L[te]]=me}for(var fe=[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],Ae=0;Ae<64;Ae++){var xe=o((fe[Ae]*H+50)/100);xe=Math.min(Math.max(xe,1),255),l[L[Ae]]=xe}for(var ae=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],le=0,ze=0;ze<8;ze++)for(var pt=0;pt<8;pt++)d[le]=1/(c[L[le]]*ae[ze]*ae[pt]*8),m[le]=1/(l[L[le]]*ae[ze]*ae[pt]*8),le++})(z<50?Math.floor(5e3/z):Math.floor(200-2*z)),i=z)}this.encode=function(z,H){H&&Y(H),y=new Array,w=0,T=7,pe(65496),pe(65504),pe(16),ee(74),ee(70),ee(73),ee(70),ee(0),ee(1),ee(1),ee(0),pe(1),pe(1),ee(0),ee(0),(function(){pe(65499),pe(132),ee(0);for(var Ct=0;Ct<64;Ct++)ee(c[Ct]);ee(1);for(var Ht=0;Ht<64;Ht++)ee(l[Ht])})(),(function(Ct,Ht){pe(65472),pe(17),ee(8),pe(Ht),pe(Ct),ee(3),ee(1),ee(17),ee(0),ee(2),ee(17),ee(1),ee(3),ee(17),ee(1)})(z.width,z.height),(function(){pe(65476),pe(418),ee(0);for(var Ct=0;Ct<16;Ct++)ee(I[Ct+1]);for(var Ht=0;Ht<=11;Ht++)ee(F[Ht]);ee(16);for(var wn=0;wn<16;wn++)ee(_[wn+1]);for(var Hn=0;Hn<=161;Hn++)ee(U[Hn]);ee(1);for(var qe=0;qe<16;qe++)ee(O[qe+1]);for(var dt=0;dt<=11;dt++)ee(W[dt]);
vendor: 47,894 bytes, lines 1050-1056
1050ee(17);for(var Dt=0;Dt<16;Dt++)ee(J[Dt+1]);for(var yt=0;yt<=161;yt++)ee(oe[yt])})(),pe(65498),pe(12),ee(3),ee(1),ee(0),ee(2),ee(17),ee(3),ee(17),ee(0),ee(63),ee(0);var ne=0,te=0,me=0;w=0,T=7,this.encode.displayName="_encode_";for(var fe,Ae,xe,ae,le,ze,pt,xt,be,Tt=z.data,Xt=z.width,Jt=z.height,it=4*Xt,at=0;at<Jt;){for(fe=0;fe<it;){for(le=it*at+fe,pt=-1,xt=0,be=0;be<64;be++)ze=le+(xt=be>>3)*it+(pt=4*(7&be)),at+xt>=Jt&&(ze-=it*(at+1+xt-Jt)),fe+pt>=it&&(ze-=fe+pt-it+4),Ae=Tt[ze++],xe=Tt[ze++],ae=Tt[ze++],A[be]=(R[Ae]+R[xe+256|0]+R[ae+512|0]>>16)-128,E[be]=(R[Ae+768|0]+R[xe+1024|0]+R[ae+1280|0]>>16)-128,D[be]=(R[Ae+1280|0]+R[xe+1536|0]+R[ae+1792|0]>>16)-128;ne=V(A,d,ne,t,a),te=V(E,m,te,n,r),me=V(D,m,me,n,r),fe+=32}at+=8}if(T>=0){var ct=[];ct[1]=T+1,ct[0]=(1<<T+1)-1,K(ct)}return pe(65497),new Uint8Array(y)},e=e||50,(function(){for(var z=String.fromCharCode,H=0;H<256;H++)S[H]=z(H)})(),t=G(I,F),n=G(O,W),a=G(_,U),r=G(J,oe),(function(){for(var z=1,H=2,ne=1;ne<=15;ne++){for(var te=z;te<H;te++)x[32767+te]=ne,h[32767+te]=[],h[32767+te][1]=ne,h[32767+te][0]=te;for(var me=-(H-1);me<=-z;me++)x[32767+me]=ne,h[32767+me]=[],h[32767+me][1]=ne,h[32767+me][0]=H-1+me;z<<=1,H<<=1}})(),(function(){for(var z=0;z<256;z++)R[z]=19595*z,R[z+256|0]=38470*z,R[z+512|0]=7471*z+32768,R[z+768|0]=-11059*z,R[z+1024|0]=-21709*z,R[z+1280|0]=32768*z+8421375,R[z+1536|0]=-27439*z,R[z+1792|0]=-5329*z})(),Y(e)}/** 1051 * @license 1052 * Copyright (c) 2017 Aras Abbasi 1053 * 1054 * Licensed under the MIT License. 1055 * http://opensource.org/licenses/mit-license 1056 */function iu(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 yI(e){function t(F){if(!F)throw Error("assert :P")}function n(F,_,U){for(var O=0;4>O;O++)if(F[_+O]!=U.charCodeAt(O))return!0;return!1}function a(F,_,U,O,W){for(var J=0;J<W;J++)F[_+J]=U[O+J]}function r(F,_,U,O){for(var W=0;W<O;W++)F[_+W]=U}function i(F){return new Int32Array(F)}function o(F,_){for(var U=[],O=0;O<F;O++)U.push(new _);return U}function c(F,_){var U=[];return(function O(W,J,oe){for(var G=oe[J],K=0;K<G&&(W.push(oe.length>J+1?[]:new _),!(oe.length<J+1));K++)O(W[K],J+1,oe)})(U,0,F),U}var l=function(){var F=this;function _(N,C){for(var $=1<<C-1>>>0;N&$;)$>>>=1;return $?(N&$-1)+$:N}function U(N,C,$,Q,re){t(!(Q%$));do N[C+(Q-=$)]=re;while(0<Q)}function O(N,C,$,Q,re){if(t(2328>=re),512>=re)var ce=i(512);else if((ce=i(re))==null)return 0;return(function(ue,ge,ve,ke,Me,Xe){var Ne,Ue,Ge=ge,lt=1<<ve,Je=i(16),ot=i(16);for(t(Me!=0),t(ke!=null),t(ue!=null),t(0<ve),Ue=0;Ue<Me;++Ue){if(15<ke[Ue])return 0;++Je[ke[Ue]]}if(Je[0]==Me)return 0;for(ot[1]=0,Ne=1;15>Ne;++Ne){if(Je[Ne]>1<<Ne)return 0;ot[Ne+1]=ot[Ne]+Je[Ne]}for(Ue=0;Ue<Me;++Ue)Ne=ke[Ue],0<ke[Ue]&&(Xe[ot[Ne]++]=Ue);if(ot[15]==1)return(ke=new W).g=0,ke.value=Xe[0],U(ue,Ge,1,lt,ke),lt;var ht,Et=-1,vt=lt-1,pn=0,en=1,Xn=1,ln=1<<ve;for(Ue=0,Ne=1,Me=2;Ne<=ve;++Ne,Me<<=1){if(en+=Xn<<=1,0>(Xn-=Je[Ne]))return 0;for(;0<Je[Ne];--Je[Ne])(ke=new W).g=Ne,ke.value=Xe[Ue++],U(ue,Ge+pn,Me,ln,ke),pn=_(pn,Ne)}for(Ne=ve+1,Me=2;15>=Ne;++Ne,Me<<=1){if(en+=Xn<<=1,0>(Xn-=Je[Ne]))return 0;for(;0<Je[Ne];--Je[Ne]){if(ke=new W,(pn&vt)!=Et){for(Ge+=ln,ht=1<<(Et=Ne)-ve;15>Et&&!(0>=(ht-=Je[Et]));)++Et,ht<<=1;lt+=ln=1<<(ht=Et-ve),ue[ge+(Et=pn&vt)].g=ht+ve,ue[ge+Et].value=Ge-ge-Et}ke.g=Ne-ve,ke.value=Xe[Ue++],U(ue,Ge+(pn>>ve),Me,ln,ke),pn=_(pn,Ne)}}return en!=2*ot[15]-1?0:lt})(N,C,$,Q,re,ce)}function W(){this.value=this.g=0}function J(){this.value=this.g=0}function oe(){this.G=o(5,W),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(tm,J)}function G(N,C,$,Q){t(N!=null),t(C!=null),t(2147483648>Q),N.Ca=254,N.I=0,N.b=-8,N.Ka=0,N.oa=C,N.pa=$,N.Jd=C,N.Yc=$+Q,N.Zc=4<=Q?$+Q-4+1:$,Ae(N)}function K(N,C){for(var $=0;0<C--;)$|=ae(N,128)<<C;return $}function ee(N,C){var $=K(N,C);return xe(N)?-$:$}function pe(N,C,$,Q){var re,ce=0;for(t(N!=null),t(C!=null),t(4294967288>Q),N.Sb=Q,N.Ra=0,N.u=0,N.h=0,4<Q&&(Q=4),re=0;re<Q;++re)ce+=C[$+re]<<8*re;N.Ra=ce,N.bb=Q,N.oa=C,N.pa=$}function V(N){for(;8<=N.u&&N.bb<N.Sb;)N.Ra>>>=8,N.Ra+=N.oa[N.pa+N.bb]<<hi-8>>>0,++N.bb,N.u-=8;te(N)&&(N.h=1,N.u=0)}function Y(N,C){if(t(0<=C),!N.h&&C<=nm){var $=ne(N)&Uu[C];return N.u+=C,V(N),$}return N.h=1,N.u=0}function z(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function H(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function ne(N){return N.Ra>>>(N.u&hi-1)>>>0}function te(N){return t(N.bb<=N.Sb),N.h||N.bb==N.Sb&&N.u>hi}function me(N,C){N.u=C,N.h=te(N)}function fe(N){N.u>=Qi&&(t(N.u>=Qi),V(N))}function Ae(N){t(N!=null&&N.oa!=null),N.pa<N.Zc?(N.I=(N.oa[N.pa++]|N.I<<8)>>>0,N.b+=8):(t(N!=null&&N.oa!=null),N.pa<N.Yc?(N.b+=8,N.I=N.oa[N.pa++]|N.I<<8):N.Ka?N.b=0:(N.I<<=8,N.b+=8,N.Ka=1))}function xe(N){return K(N,1)}function ae(N,C){var $=N.Ca;0>N.b&&Ae(N);var Q=N.b,re=$*C>>>8,ce=(N.I>>>Q>re)+0;for(ce?($-=re,N.I-=re+1<<Q>>>0):$=re+1,Q=$,re=0;256<=Q;)re+=8,Q>>=8;return Q=7^re+am[Q],N.b-=Q,N.Ca=($<<Q)-1,ce}function le(N,C,$){N[C+0]=$>>24&255,N[C+1]=$>>16&255,N[C+2]=$>>8&255,N[C+3]=255&$}function ze(N,C){return N[C+0]|N[C+1]<<8}function pt(N,C){return ze(N,C)|N[C+2]<<16}function xt(N,C){return ze(N,C)|ze(N,C+2)<<16}function be(N,C){var $=1<<C;return t(N!=null),t(0<C),N.X=i($),N.X==null?0:(N.Mb=32-C,N.Xa=C,1)}function Tt(N,C){t(N!=null),t(C!=null),t(N.Xa==C.Xa),a(C.X,0,N.X,0,1<<C.Xa)}function Xt(){this.X=[],this.Xa=this.Mb=0}function Jt(N,C,$,Q){t($!=null),t(Q!=null);var re=$[0],ce=Q[0];return re==0&&(re=(N*ce+C/2)/C),ce==0&&(ce=(C*re+N/2)/N),0>=re||0>=ce?0:($[0]=re,Q[0]=ce,1)}function it(N,C){return N+(1<<C)-1>>>C}function at(N,C){return((4278255360&N)+(4278255360&C)>>>0&4278255360)+((16711935&N)+(16711935&C)>>>0&16711935)>>>0}function ct(N,C){F[C]=function($,Q,re,ce,ue,ge,ve){var ke;for(ke=0;ke<ue;++ke){var Me=F[N](ge[ve+ke-1],re,ce+ke);ge[ve+ke]=at($[Q+ke],Me)}}}function Ct(){this.ud=this.hd=this.jd=0}function Ht(N,C){return((4278124286&(N^C))>>>1)+(N&C)>>>0}function wn(N){return 0<=N&&256>N?N:0>N?0:255<N?255:void 0}function Hn(N,C){return wn(N+(N-C+.5>>1))}function qe(N,C,$){return Math.abs(C-$)-Math.abs(N-$)}function dt(N,C,$,Q,re,ce,ue){for(Q=ce[ue-1],$=0;$<re;++$)ce[ue+$]=Q=at(N[C+$],Q)}function Dt(N,C,$,Q,re){var ce;for(ce=0;ce<$;++ce){var ue=N[C+ce],ge=ue>>8&255,ve=16711935&(ve=(ve=16711935&ue)+((ge<<16)+ge));Q[re+ce]=(4278255360&ue)+ve>>>0}}function yt(N,C){C.jd=255&N,C.hd=N>>8&255,C.ud=N>>16&255}function Mt(N,C,$,Q,re,ce){var ue;for(ue=0;ue<Q;++ue){var ge=C[$+ue],ve=ge>>>8,ke=ge,Me=255&(Me=(Me=ge>>>16)+((N.jd<<24>>24)*(ve<<24>>24)>>>5));ke=255&(ke=(ke+=(N.hd<<24>>24)*(ve<<24>>24)>>>5)+((N.ud<<24>>24)*(Me<<24>>24)>>>5)),re[ce+ue]=(4278255360&ge)+(Me<<16)+ke}}function zt(N,C,$,Q,re){F[C]=function(ce,ue,ge,ve,ke,Me,Xe,Ne,Ue){for(ve=Xe;ve<Ne;++ve)for(Xe=0;Xe<Ue;++Xe)ke[Me++]=re(ge[Q(ce[ue++])])},F[N]=function(ce,ue,ge,ve,ke,Me,Xe){var Ne=8>>ce.b,Ue=ce.Ea,Ge=ce.K[0],lt=ce.w;if(8>Ne)for(ce=(1<<ce.b)-1,lt=(1<<Ne)-1;ue<ge;++ue){var Je,ot=0;for(Je=0;Je<Ue;++Je)Je&ce||(ot=Q(ve[ke++])),Me[Xe++]=re(Ge[ot<]),ot>>=Ne}else F["VP8LMapColor"+$](ve,ke,Ge,lt,Me,Xe,ue,ge,Ue)}}function ca(N,C,$,Q,re){for($=C+$;C<$;){var ce=N[C++];Q[re++]=ce>>16&255,Q[re++]=ce>>8&255,Q[re++]=255&ce}}function jn(N,C,$,Q,re){for($=C+$;C<$;){var ce=N[C++];Q[re++]=ce>>16&255,Q[re++]=ce>>8&255,Q[re++]=255&ce,Q[re++]=ce>>24&255}}function Qt(N,C,$,Q,re){for($=C+$;C<$;){var ce=(ue=N[C++])>>16&240|ue>>12&15,ue=240&ue|ue>>28&15;Q[re++]=ce,Q[re++]=ue}}function xn(N,C,$,Q,re){for($=C+$;C<$;){var ce=(ue=N[C++])>>16&248|ue>>13&7,ue=ue>>5&224|ue>>3&31;Q[re++]=ce,Q[re++]=ue}}function bn(N,C,$,Q,re){for($=C+$;C<$;){var ce=N[C++];Q[re++]=255&ce,Q[re++]=ce>>8&255,Q[re++]=ce>>16&255}}function rn(N,C,$,Q,re,ce){if(ce==0)for($=C+$;C<$;)le(Q,((ce=N[C++])[0]>>24|ce[1]>>8&65280|ce[2]<<8&16711680|ce[3]<<24)>>>0),re+=32;else a(Q,re,N,C,$)}function He(N,C){F[C][0]=F[N+"0"],F[C][1]=F[N+"1"],F[C][2]=F[N+"2"],F[C][3]=F[N+"3"],F[C][4]=F[N+"4"],F[C][5]=F[N+"5"],F[C][6]=F[N+"6"],F[C][7]=F[N+"7"],F[C][8]=F[N+"8"],F[C][9]=F[N+"9"],F[C][10]=F[N+"10"],F[C][11]=F[N+"11"],F[C][12]=F[N+"12"],F[C][13]=F[N+"13"],F[C][14]=F[N+"0"],F[C][15]=F[N+"0"]}function tt(N){return N==qh||N==kf||N==op||N==jf}function Ot(){this.eb=[],this.size=this.A=this.fb=0}function Zn(){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 Tn(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Ot,this.f.kb=new Zn,this.sd=null}function qt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Vt(){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 Ra(N){return alert("todo:WebPSamplerProcessPlane"),N.T}function Pa(N,C){var $=N.T,Q=C.ba.f.RGBA,re=Q.eb,ce=Q.fb+N.ka*Q.A,ue=bi[C.ba.S],ge=N.y,ve=N.O,ke=N.f,Me=N.N,Xe=N.ea,Ne=N.W,Ue=C.cc,Ge=C.dc,lt=C.Mc,Je=C.Nc,ot=N.ka,ht=N.ka+N.T,Et=N.U,vt=Et+1>>1;for(ot==0?ue(ge,ve,null,null,ke,Me,Xe,Ne,ke,Me,Xe,Ne,re,ce,null,null,Et):(ue(C.ec,C.fc,ge,ve,Ue,Ge,lt,Je,ke,Me,Xe,Ne,re,ce-Q.A,re,ce,Et),++$);ot+2<ht;ot+=2)Ue=ke,Ge=Me,lt=Xe,Je=Ne,Me+=N.Rc,Ne+=N.Rc,ce+=2*Q.A,ue(ge,(ve+=2*N.fa)-N.fa,ge,ve,Ue,Ge,lt,Je,ke,Me,Xe,Ne,re,ce-Q.A,re,ce,Et);return ve+=N.fa,N.j+ht<N.o?(a(C.ec,C.fc,ge,ve,Et),a(C.cc,C.dc,ke,Me,vt),a(C.Mc,C.Nc,Xe,Ne,vt),$--):1&ht||ue(ge,ve,null,null,ke,Me,Xe,Ne,ke,Me,Xe,Ne,re,ce+Q.A,null,null,Et),$}function Os(N,C,$){var Q=N.F,re=[N.J];if(Q!=null){var ce=N.U,ue=C.ba.S,ge=ue==$h||ue==op;C=C.ba.f.RGBA;var ve=[0],ke=N.ka;ve[0]=N.T,N.Kb&&(ke==0?--ve[0]:(--ke,re[0]-=N.width),N.j+N.ka+N.T==N.o&&(ve[0]=N.o-N.j-ke));var Me=C.eb;ke=C.fb+ke*C.A,N=Uh(Q,re[0],N.width,ce,ve,Me,ke+(ge?0:3),C.A),t($==ve),N&&tt(ue)&&cm(Me,ke,ge,ce,ve,C.A)}return 0}function mi(N){var C=N.ma,$=C.ba.S,Q=11>$,re=$==Mi||$==Yo||$==$h||$==ip||$==12||tt($);if(C.memory=null,C.Ib=null,C.Jb=null,C.Nd=null,!Di(C.Oa,N,re?11:12))return 0;if(re&&tt($)&&Wl(),N.da)alert("todo:use_scaling");else{if(Q){if(C.Ib=Ra,N.Kb){if($=N.U+1>>1,C.memory=i(N.U+2*$),C.memory==null)return 0;C.ec=C.memory,C.fc=0,C.cc=C.ec,C.dc=C.fc+N.U,C.Mc=C.cc,C.Nc=C.dc+$,C.Ib=Pa,Wl()}}else alert("todo:EmitYUV");re&&(C.Jb=Os,Q&&Gs())}if(Q&&!Xu){for(N=0;256>N;++N)vi[N]=89858*(N-128)+up>>tc,q6[N]=-22014*(N-128)+up,gv[N]=-45773*(N-128),_f[N]=113618*(N-128)+up>>tc;for(N=mm;N<Yu;++N)C=76283*(N-16)+up>>tc,G6[N-mm]=Eo(C,255),J6[N-mm]=Eo(C+8>>4,15);Xu=1}return 1}function Wt(N){var C=N.ma,$=N.U,Q=N.T;return t(!(1&N.ka)),0>=$||0>=Q?0:($=C.Ib(N,C),C.Jb!=null&&C.Jb(N,C,$),C.Dc+=$,1)}function tr(N){N.ma.memory=null}function Wi(N,C,$,Q){return Y(N,8)!=47?0:(C[0]=Y(N,14)+1,$[0]=Y(N,14)+1,Q[0]=Y(N,1),Y(N,3)!=0?0:!N.h)}function js(N,C){if(4>N)return N+1;var $=N-2>>1;return(2+(1&N)<<$)+Y(C,$)+1}function As(N,C){return 120<C?C-120:1<=($=(($=Qo[C-1])>>4)*N+(8-(15&$)))?$:1;var $}function ds(N,C,$){var Q=ne($),re=N[C+=255&Q].g-8;return 0<re&&(me($,$.u+8),Q=ne($),C+=N[C].value,C+=Q&(1<<re)-1),me($,$.u+N[C].g),N[C].value}function ss(N,C,$){return $.g+=N.g,$.value+=N.value<<C>>>0,t(8>=$.g),N.g}function Ur(N,C,$){var Q=N.xc;return t((C=Q==0?0:N.vc[N.md*($>>Q)+(C>>Q)])<N.Wb),N.Ya[C]}function _u(N,C,$,Q){var re=N.ab,ce=N.c*C,ue=N.C;C=ue+C;var ge=$,ve=Q;for(Q=N.Ta,$=N.Ua;0<re--;){var ke=N.gc[re],Me=ue,Xe=C,Ne=ge,Ue=ve,Ge=(ve=Q,ge=$,ke.Ea);switch(t(Me<Xe),t(Xe<=ke.nc),ke.hc){case 2:np(Ne,Ue,(Xe-Me)*Ge,ve,ge);break;case 0:var lt=Me,Je=Xe,ot=ve,ht=ge,Et=(ln=ke).Ea;lt==0&&(Xl(Ne,Ue,null,null,1,ot,ht),dt(Ne,Ue+1,0,0,Et-1,ot,ht+1),Ue+=Et,ht+=Et,++lt);for(var vt=1<<ln.b,pn=vt-1,en=it(Et,ln.b),Xn=ln.K,ln=ln.w+(lt>>ln.b)*en;lt<Je;){var ga=Xn,_s=ln,ta=1;for(Hu(Ne,Ue,ot,ht-Et,1,ot,ht);ta<Et;){var tn=(ta&~pn)+vt;tn>Et&&(tn=Et),(0,Ki[ga[_s++]>>8&15])(Ne,Ue+ +ta,ot,ht+ta-Et,tn-ta,ot,ht+ta),ta=tn}Ue+=Et,ht+=Et,++lt&pn||(ln+=en)}Xe!=ke.nc&&a(ve,ge-Ge,ve,ge+(Xe-Me-1)*Ge,Ge);break;case 1:for(Ge=Ne,Je=Ue,Et=(Ne=ke.Ea)-(ht=Ne&~(ot=(Ue=1<<ke.b)-1)),lt=it(Ne,ke.b),vt=ke.K,ke=ke.w+(Me>>ke.b)*lt;Me<Xe;){for(pn=vt,en=ke,Xn=new Ct,ln=Je+ht,ga=Je+Ne;Je<ln;)yt(pn[en++],Xn),Vu(Xn,Ge,Je,Ue,ve,ge),Je+=Ue,ge+=Ue;Je<ga&&(yt(pn[en++],Xn),Vu(Xn,Ge,Je,Et,ve,ge),Je+=Et,ge+=Et),++Me&ot||(ke+=lt)}break;case 3:if(Ne==ve&&Ue==ge&&0<ke.b){for(Je=ve,Ne=Ge=ge+(Xe-Me)*Ge-(ht=(Xe-Me)*it(ke.Ea,ke.b)),Ue=ve,ot=ge,lt=[],ht=(Et=ht)-1;0<=ht;--ht)lt[ht]=Ue[ot+ht];for(ht=Et-1;0<=ht;--ht)Je[Ne+ht]=lt[ht];sm(ke,Me,Xe,ve,Ge,ve,ge)}else sm(ke,Me,Xe,Ne,Ue,ve,ge)}ge=Q,ve=$}ve!=$&&a(Q,$,ge,ve,ce)}function Yi(N,C){var $=N.V,Q=N.Ba+N.c*N.C,re=C-N.C;if(t(C<=N.l.o),t(16>=re),0<re){var ce=N.l,ue=N.Ta,ge=N.Ua,ve=ce.width;if(_u(N,re,$,Q),re=ge=[ge],t(($=N.C)<(Q=C)),t(ce.v<ce.va),Q>ce.o&&(Q=ce.o),$<ce.j){var ke=ce.j-$;$=ce.j,re[0]+=ke*ve}if($>=Q?$=0:(re[0]+=4*ce.v,ce.ka=$-ce.j,ce.U=ce.va-ce.v,ce.T=Q-$,$=1),$){if(ge=ge[0],11>($=N.ca).S){var Me=$.f.RGBA,Xe=(Q=$.S,re=ce.U,ce=ce.T,ke=Me.eb,Me.A),Ne=ce;for(Me=Me.fb+N.Ma*Me.A;0<Ne--;){var Ue=ue,Ge=ge,lt=re,Je=ke,ot=Me;switch(Q){case Tf:ap(Ue,Ge,lt,Je,ot);break;case Mi:sp(Ue,Ge,lt,Je,ot);break;case qh:sp(Ue,Ge,lt,Je,ot),cm(Je,ot,0,lt,1,0);break;case Nf:im(Ue,Ge,lt,Je,ot);break;case Yo:rn(Ue,Ge,lt,Je,ot,1);break;case kf:rn(Ue,Ge,lt,Je,ot,1),cm(Je,ot,0,lt,1,0);break;case $h:rn(Ue,Ge,lt,Je,ot,0);break;case op:rn(Ue,Ge,lt,Je,ot,0),cm(Je,ot,1,lt,1,0);break;case ip:rm(Ue,Ge,lt,Je,ot);break;case jf:rm(Ue,Ge,lt,Je,ot),Wo(Je,ot,lt,1,0);break;case $u:Ql(Ue,Ge,lt,Je,ot);break;default:t(0)}ge+=ve,Me+=Xe}N.Ma+=ce}else alert("todo:EmitRescaledRowsYUVA");t(N.Ma<=$.height)}}N.C=C,t(N.C<=N.i)}function ms(N){var C;if(0<N.ua)return 0;for(C=0;C<N.Wb;++C){var $=N.Ya[C].G,Q=N.Ya[C].H;if(0<$[1][Q[1]+0].g||0<$[2][Q[2]+0].g||0<$[3][Q[3]+0].g)return 0}return 1}function $s(N,C,$,Q,re,ce){if(N.Z!=0){var ue=N.qd,ge=N.rd;for(t(Zl[N.Z]!=null);C<$;++C)Zl[N.Z](ue,ge,Q,re,Q,re,ce),ue=Q,ge=re,re+=ce;N.qd=ue,N.rd=ge}}function Ci(N,C){var $=N.l.ma,Q=$.Z==0||$.Z==1?N.l.j:N.C;if(Q=N.C<Q?Q:N.C,t(C<=N.l.o),C>Q){var re=N.l.width,ce=$.ca,ue=$.tb+re*Q,ge=N.V,ve=N.Ba+N.c*Q,ke=N.gc;t(N.ab==1),t(ke[0].hc==3),Fx(ke[0],Q,C,ge,ve,ce,ue),$s($,Q,C,ce,ue,re)}N.C=N.Ma=C}function jo(N,C,$,Q,re,ce,ue){var ge=N.$/Q,ve=N.$%Q,ke=N.m,Me=N.s,Xe=$+N.$,Ne=Xe;re=$+Q*re;var Ue=$+Q*ce,Ge=280+Me.ua,lt=N.Pb?ge:16777216,Je=0<Me.ua?Me.Wa:null,ot=Me.wc,ht=Xe<Ue?Ur(Me,ve,ge):null;t(N.C<ce),t(Ue<=re);var Et=!1;e:for(;;){for(;Et||Xe<Ue;){var vt=0;if(ge>=lt){var pn=Xe-$;t((lt=N).Pb),lt.wd=lt.m,lt.xd=pn,0<lt.s.ua&&Tt(lt.s.Wa,lt.s.vb),lt=ge+qu}if(ve&ot||(ht=Ur(Me,ve,ge)),t(ht!=null),ht.Qb&&(C[Xe]=ht.qb,Et=!0),!Et)if(fe(ke),ht.jc){vt=ke,pn=C;var en=Xe,Xn=ht.pd[ne(vt)&tm-1];t(ht.jc),256>Xn.g?(me(vt,vt.u+Xn.g),pn[en]=Xn.value,vt=0):(me(vt,vt.u+Xn.g-256),t(256<=Xn.value),vt=Xn.value),vt==0&&(Et=!0)}else vt=ds(ht.G[0],ht.H[0],ke);if(ke.h)break;if(Et||256>vt){if(!Et)if(ht.nd)C[Xe]=(ht.qb|vt<<8)>>>0;else{if(fe(ke),Et=ds(ht.G[1],ht.H[1],ke),fe(ke),pn=ds(ht.G[2],ht.H[2],ke),en=ds(ht.G[3],ht.H[3],ke),ke.h)break;C[Xe]=(en<<24|Et<<16|vt<<8|pn)>>>0}if(Et=!1,++Xe,++ve>=Q&&(ve=0,++ge,ue!=null&&ge<=ce&&!(ge%16)&&ue(N,ge),Je!=null))for(;Ne<Xe;)vt=C[Ne++],Je.X[(506832829*vt&4294967295)>>>Je.Mb]=vt}else if(280>vt){if(vt=js(vt-256,ke),pn=ds(ht.G[4],ht.H[4],ke),fe(ke),pn=As(Q,pn=js(pn,ke)),ke.h)break;if(Xe-$<pn||re-Xe<vt)break e;for(en=0;en<vt;++en)C[Xe+en]=C[Xe+en-pn];for(Xe+=vt,ve+=vt;ve>=Q;)ve-=Q,++ge,ue!=null&&ge<=ce&&!(ge%16)&&ue(N,ge);if(t(Xe<=re),ve&ot&&(ht=Ur(Me,ve,ge)),Je!=null)for(;Ne<Xe;)vt=C[Ne++],Je.X[(506832829*vt&4294967295)>>>Je.Mb]=vt}else{if(!(vt<Ge))break e;for(Et=vt-280,t(Je!=null);Ne<Xe;)vt=C[Ne++],Je.X[(506832829*vt&4294967295)>>>Je.Mb]=vt;vt=Xe,t(!(Et>>>(pn=Je).Xa)),C[vt]=pn.X[Et],Et=!0}Et||t(ke.h==te(ke))}if(N.Pb&&ke.h&&Xe<re)t(N.m.h),N.a=5,N.m=N.wd,N.$=N.xd,0<N.s.ua&&Tt(N.s.vb,N.s.Wa);else{if(ke.h)break e;ue?.(N,ge>ce?ce:ge),N.a=0,N.$=Xe-$}return 1}return N.a=3,0}function zo(N){t(N!=null),N.vc=null,N.yc=null,N.Ya=null;var C=N.Wa;C!=null&&(C.X=null),N.vb=null,t(N!=null)}function zd(){var N=new cn;return N==null?null:(N.a=0,N.xb=zx,He("Predictor","VP8LPredictors"),He("Predictor","VP8LPredictors_C"),He("PredictorAdd","VP8LPredictorsAdd"),He("PredictorAdd","VP8LPredictorsAdd_C"),np=Dt,Vu=Mt,ap=ca,sp=jn,rm=Qt,Ql=xn,im=bn,F.VP8LMapColor32b=Ar,F.VP8LMapColor8b=nr,N)}function Tc(N,C,$,Q,re){var ce=1,ue=[N],ge=[C],ve=Q.m,ke=Q.s,Me=null,Xe=0;e:for(;;){if($)for(;ce&&Y(ve,1);){var Ne=ue,Ue=ge,Ge=Q,lt=1,Je=Ge.m,ot=Ge.gc[Ge.ab],ht=Y(Je,2);if(Ge.Oc&1<<ht)ce=0;else{switch(Ge.Oc|=1<<ht,ot.hc=ht,ot.Ea=Ne[0],ot.nc=Ue[0],ot.K=[null],++Ge.ab,t(4>=Ge.ab),ht){case 0:case 1:ot.b=Y(Je,3)+2,lt=Tc(it(ot.Ea,ot.b),it(ot.nc,ot.b),0,Ge,ot.K),ot.K=ot.K[0];break;case 3:var Et,vt=Y(Je,8)+1,pn=16<vt?0:4<vt?1:2<vt?2:3;if(Ne[0]=it(ot.Ea,pn),ot.b=pn,Et=lt=Tc(vt,1,0,Ge,ot.K)){var en,Xn=vt,ln=ot,ga=1<<(8>>ln.b),_s=i(ga);if(_s==null)Et=0;else{var ta=ln.K[0],tn=ln.w;for(_s[0]=ln.K[0][0],en=1;en<1*Xn;++en)_s[en]=at(ta[tn+en],_s[en-1]);for(;en<4*ga;++en)_s[en]=0;ln.K[0]=null,ln.K[0]=_s,Et=1}}lt=Et;break;case 2:break;default:t(0)}ce=lt}}if(ue=ue[0],ge=ge[0],ce&&Y(ve,1)&&!(ce=1<=(Xe=Y(ve,4))&&11>=Xe)){Q.a=3;break e}var Ft;if(Ft=ce)t:{var Js,In,ra,Qa=Q,Vr=ue,yi=ge,bs=Xe,Er=$,Li=Qa.m,Cr=Qa.s,pa=[null],Ia=1,Ws=0,za=Ko[bs];n:for(;;){if(Er&&Y(Li,1)){var zr=Y(Li,3)+2,Ys=it(Vr,zr),Ma=it(yi,zr),xr=Ys*Ma;if(!Tc(Ys,Ma,0,Qa,pa))break n;for(pa=pa[0],Cr.xc=zr,Js=0;Js<xr;++Js){var Ka=pa[Js]>>8&65535;pa[Js]=Ka,Ka>=Ia&&(Ia=Ka+1)}}if(Li.h)break n;for(In=0;5>In;++In){var Sr=um[In];!In&&0<bs&&(Sr+=1<<bs),Ws<Sr&&(Ws=Sr)}var _r=o(Ia*za,W),hs=Ia,Da=o(hs,oe);if(Da==null)var Oi=null;else t(65536>=hs),Oi=Da;var rr=i(Ws);if(Oi==null||rr==null||_r==null){Qa.a=1;break n}var Cn=_r;for(Js=ra=0;Js<Ia;++Js){var Sn=Oi[Js],La=Sn.G,lo=Sn.H,nc=0,eo=1,Pr=0;for(In=0;5>In;++In){Sr=um[In],La[In]=Cn,lo[In]=ra,!In&&0<bs&&(Sr+=1<<bs);s:{var Qu,Ku=Sr,Df=Qa,vs=rr,qx=Cn,Gx=ra,Rf=0,eu=Df.m,W6=Y(eu,1);if(r(vs,0,0,Ku),W6){var Jx=Y(eu,1)+1,Wx=Y(eu,1),If=Y(eu,Wx==0?1:8);vs[If]=1,Jx==2&&(vs[If=Y(eu,8)]=1);var ni=1}else{var ir=i(19),Yh=Y(eu,4)+4;if(19<Yh){Df.a=3;var Zu=0;break s}for(Qu=0;Qu<Yh;++Qu)ir[Gh[Qu]]=Y(eu,3);var mp=void 0,pm=void 0,ll=Df,Mf=ir,pp=Ku,Lf=vs,Of=0,tu=ll.m,Yx=8,Xx=o(128,W);a:for(;O(Xx,0,7,Mf,19);){if(Y(tu,1)){var xv=2+2*Y(tu,3);if((mp=2+Y(tu,xv))>pp)break a}else mp=pp;for(pm=0;pm<pp&&mp--;){fe(tu);var Qx=Xx[0+(127&ne(tu))];me(tu,tu.u+Qx.g);var ed=Qx.value;if(16>ed)Lf[pm++]=ed,ed!=0&&(Yx=ed);else{var bv=ed==16,vv=ed-16,yv=cp[vv],Kx=Y(tu,Xo[vv])+yv;if(pm+Kx>pp)break a;for(var wv=bv?Yx:0;0<Kx--;)Lf[pm++]=wv}}Of=1;break a}Of||(ll.a=3),ni=Of}(ni=ni&&!eu.h)&&(Rf=O(qx,Gx,8,vs,Ku)),ni&&Rf!=0?Zu=Rf:(Df.a=3,Zu=0)}if(Zu==0)break n;if(eo&&Af[In]==1&&(eo=Cn[ra].g==0),nc+=Cn[ra].g,ra+=Zu,3>=In){var hm,Bf=rr[0];for(hm=1;hm<Sr;++hm)rr[hm]>Bf&&(Bf=rr[hm]);Pr+=Bf}}if(Sn.nd=eo,Sn.Qb=0,eo&&(Sn.qb=(La[3][lo[3]+0].value<<24|La[1][lo[1]+0].value<<16|La[2][lo[2]+0].value)>>>0,nc==0&&256>La[0][lo[0]+0].value&&(Sn.Qb=1,Sn.qb+=La[0][lo[0]+0].value<<8)),Sn.jc=!Sn.Qb&&6>Pr,Sn.jc){var Xh,ul=Sn;for(Xh=0;Xh<tm;++Xh){var nu=Xh,au=ul.pd[nu],Ff=ul.G[0][ul.H[0]+nu];256<=Ff.value?(au.g=Ff.g+256,au.value=Ff.value):(au.g=0,au.value=0,nu>>=ss(Ff,8,au),nu>>=ss(ul.G[1][ul.H[1]+nu],16,au),nu>>=ss(ul.G[2][ul.H[2]+nu],0,au),ss(ul.G[3][ul.H[3]+nu],24,au))}}}Cr.vc=pa,Cr.Wb=Ia,Cr.Ya=Oi,Cr.yc=_r,Ft=1;break t}Ft=0}if(!(ce=Ft)){Q.a=3;break e}if(0<Xe){if(ke.ua=1<<Xe,!be(ke.Wa,Xe)){Q.a=1,ce=0;break e}}else ke.ua=0;var Uf=Q,fm=ue,Tv=ge,hp=Uf.s,fp=hp.xc;if(Uf.c=fm,Uf.i=Tv,hp.md=it(fm,fp),hp.wc=fp==0?-1:(1<<fp)-1,$){Q.xb=Gu;break e}if((Me=i(ue*ge))==null){Q.a=1,ce=0;break e}ce=(ce=jo(Q,Me,0,ue,ge,ge,null))&&!ve.h;break e}return ce?(re!=null?re[0]=Me:(t(Me==null),t($)),Q.$=0,$||zo(ke)):zo(ke),ce}function Nc(N,C){var $=N.c*N.i,Q=$+C+16*C;return t(N.c<=C),N.V=i(Q),N.V==null?(N.Ta=null,N.Ua=0,N.a=1,0):(N.Ta=N.V,N.Ua=N.Ba+$+C,1)}function Pu(N,C){var $=N.C,Q=C-$,re=N.V,ce=N.Ba+N.c*$;for(t(C<=N.l.o);0<Q;){var ue=16<Q?16:Q,ge=N.l.ma,ve=N.l.width,ke=ve*ue,Me=ge.ca,Xe=ge.tb+ve*$,Ne=N.Ta,Ue=N.Ua;_u(N,ue,re,ce),Po(Ne,Ue,Me,Xe,ke),$s(ge,$,$+ue,Me,Xe,ve),Q-=ue,re+=ue*N.c,$+=ue}t($==C),N.C=N.Ma=C}function kc(){this.ub=this.yd=this.td=this.Rb=0}function jc(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function $d(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function nl(){this.Yb=(function(){var N=[];return(function C($,Q,re){for(var ce=re[Q],ue=0;ue<ce&&($.push(re.length>Q+1?[]:0),!(re.length<Q+1));ue++)C($[ue],Q+1,re)})(N,0,[3,11]),N})()}function fr(){this.jb=i(3),this.Wc=c([4,8],nl),this.Xc=c([4,17],nl)}function jh(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function Ao(){this.ld=this.La=this.dd=this.tc=0}function Ac(){this.Na=this.la=0}function Fl(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ah(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Eh(){this.uc=this.M=this.Nb=0,this.wa=Array(new Ao),this.Y=0,this.ya=Array(new Ah),this.aa=0,this.l=new Ul}function Ch(){this.y=i(16),this.f=i(8),this.ea=i(8)}function mf(){this.cb=this.a=0,this.sc="",this.m=new z,this.Od=new kc,this.Kc=new jc,this.ed=new jh,this.Qa=new $d,this.Ic=this.$c=this.Aa=0,this.D=new Eh,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,z),this.ia=0,this.pb=o(4,Fl),this.Pa=new fr,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ch),this.Hd=0,this.rb=Array(new Ac),this.sb=0,this.wa=Array(new Ao),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 Ah),this.L=this.aa=0,this.gd=c([4,2],Ao),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 Eo(N,C){return 0>N?0:N>C?C:N}function Ul(){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 Ec(){var N=new mf;return N!=null&&(N.a=0,N.sc="OK",N.cb=0,N.Xb=0,Do||(Do=Du)),N}function Ha(N,C,$){return N.a==0&&(N.a=C,N.sc=$,N.cb=0),0}function Sh(N,C,$){return 3<=$&&N[C+0]==157&&N[C+1]==1&&N[C+2]==42}function al(N,C){if(N==null)return 0;if(N.a=0,N.sc="OK",C==null)return Ha(N,2,"null VP8Io passed to VP8GetHeaders()");var $=C.data,Q=C.w,re=C.ha;if(4>re)return Ha(N,7,"Truncated header.");var ce=$[Q+0]|$[Q+1]<<8|$[Q+2]<<16,ue=N.Od;if(ue.Rb=!(1&ce),ue.td=ce>>1&7,ue.yd=ce>>4&1,ue.ub=ce>>5,3<ue.td)return Ha(N,3,"Incorrect keyframe parameters.");if(!ue.yd)return Ha(N,4,"Frame not displayable.");Q+=3,re-=3;var ge=N.Kc;if(ue.Rb){if(7>re)return Ha(N,7,"cannot parse picture header");if(!Sh($,Q,re))return Ha(N,3,"Bad code word");ge.c=16383&($[Q+4]<<8|$[Q+3]),ge.Td=$[Q+4]>>6,ge.i=16383&($[Q+6]<<8|$[Q+5]),ge.Ud=$[Q+6]>>6,Q+=7,re-=7,N.za=ge.c+15>>4,N.Ub=ge.i+15>>4,C.width=ge.c,C.height=ge.i,C.Da=0,C.j=0,C.v=0,C.va=C.width,C.o=C.height,C.da=0,C.ib=C.width,C.hb=C.height,C.U=C.width,C.T=C.height,r((ce=N.Pa).jb,0,255,ce.jb.length),t((ce=N.Qa)!=null),ce.Cb=0,ce.Bb=0,ce.Fb=1,r(ce.Zb,0,0,ce.Zb.length),r(ce.Lb,0,0,ce.Lb)}if(ue.ub>re)return Ha(N,7,"bad partition length");G(ce=N.m,$,Q,ue.ub),Q+=ue.ub,re-=ue.ub,ue.Rb&&(ge.Ld=xe(ce),ge.Kd=xe(ce)),ge=N.Qa;var ve,ke=N.Pa;if(t(ce!=null),t(ge!=null),ge.Cb=xe(ce),ge.Cb){if(ge.Bb=xe(ce),xe(ce)){for(ge.Fb=xe(ce),ve=0;4>ve;++ve)ge.Zb[ve]=xe(ce)?ee(ce,7):0;for(ve=0;4>ve;++ve)ge.Lb[ve]=xe(ce)?ee(ce,6):0}if(ge.Bb)for(ve=0;3>ve;++ve)ke.jb[ve]=xe(ce)?K(ce,8):255}else ge.Bb=0;if(ce.Ka)return Ha(N,3,"cannot parse segment header");if((ge=N.ed).zd=xe(ce),ge.Tb=K(ce,6),ge.wb=K(ce,3),ge.Pc=xe(ce),ge.Pc&&xe(ce)){for(ke=0;4>ke;++ke)xe(ce)&&(ge.vd[ke]=ee(ce,6));for(ke=0;4>ke;++ke)xe(ce)&&(ge.od[ke]=ee(ce,6))}if(N.L=ge.Tb==0?0:ge.zd?1:2,ce.Ka)return Ha(N,3,"cannot parse filter header");var Me=re;if(re=ve=Q,Q=ve+Me,ge=Me,N.Xb=(1<<K(N.m,2))-1,Me<3*(ke=N.Xb))$=7;else{for(ve+=3*ke,ge-=3*ke,Me=0;Me<ke;++Me){var Xe=$[re+0]|$[re+1]<<8|$[re+2]<<16;Xe>ge&&(Xe=ge),G(N.Jc[+Me],$,ve,Xe),ve+=Xe,ge-=Xe,re+=3}G(N.Jc[+ke],$,ve,ge),$=ve<Q?0:5}if($!=0)return Ha(N,$,"cannot parse partitions");for($=K(ve=N.m,7),re=xe(ve)?ee(ve,4):0,Q=xe(ve)?ee(ve,4):0,ge=xe(ve)?ee(ve,4):0,ke=xe(ve)?ee(ve,4):0,ve=xe(ve)?ee(ve,4):0,Me=N.Qa,Xe=0;4>Xe;++Xe){if(Me.Cb){var Ne=Me.Zb[Xe];Me.Fb||(Ne+=$)}else{if(0<Xe){N.pb[Xe]=N.pb[0];continue}Ne=$}var Ue=N.pb[Xe];Ue.Sc[0]=Zo[Eo(Ne+re,127)],Ue.Sc[1]=ec[Eo(Ne+0,127)],Ue.Eb[0]=2*Zo[Eo(Ne+Q,127)],Ue.Eb[1]=101581*ec[Eo(Ne+ge,127)]>>16,8>Ue.Eb[1]&&(Ue.Eb[1]=8),Ue.Qc[0]=Zo[Eo(Ne+ke,117)],Ue.Qc[1]=ec[Eo(Ne+ve,127)],Ue.lc=Ne+ve}if(!ue.Rb)return Ha(N,4,"Not a key frame.");for(xe(ce),ue=N.Pa,$=0;4>$;++$){for(re=0;8>re;++re)for(Q=0;3>Q;++Q)for(ge=0;11>ge;++ge)ke=ae(ce,Ss[$][re][Q][ge])?K(ce,8):fv[$][re][Q][ge],ue.Wc[$][re].Yb[Q][ge]=ke;for(re=0;17>re;++re)ue.Xc[$][re]=ue.Wc[$][Ta[re]]}return N.kc=xe(ce),N.kc&&(N.Bd=K(ce,8)),N.cb=1}function Du(N,C,$,Q,re,ce,ue){var ge=C[re].Yb[$];for($=0;16>re;++re){if(!ae(N,ge[$+0]))return re;for(;!ae(N,ge[$+1]);)if(ge=C[++re].Yb[0],$=0,re==16)return 16;var ve=C[re+1].Yb;if(ae(N,ge[$+2])){var ke=N,Me=0;if(ae(ke,(Ne=ge)[(Xe=$)+3]))if(ae(ke,Ne[Xe+6])){for(ge=0,Xe=2*(Me=ae(ke,Ne[Xe+8]))+(Ne=ae(ke,Ne[Xe+9+Me])),Me=0,Ne=hv[Xe];Ne[ge];++ge)Me+=Me+ae(ke,Ne[ge]);Me+=3+(8<<Xe)}else ae(ke,Ne[Xe+7])?(Me=7+2*ae(ke,165),Me+=ae(ke,145)):Me=5+ae(ke,159);else Me=ae(ke,Ne[Xe+4])?3+ae(ke,Ne[Xe+5]):2;ge=ve[2]}else Me=1,ge=ve[1];ve=ue+Vx[re],0>(ke=N).b&&Ae(ke);var Xe,Ne=ke.b,Ue=(Xe=ke.Ca>>1)-(ke.I>>Ne)>>31;--ke.b,ke.Ca+=Ue,ke.Ca|=1,ke.I-=(Xe+1&Ue)<<Ne,ce[ve]=((Me^Ue)-Ue)*Q[(0<re)+0]}return 16}function Ym(N){var C=N.rb[N.sb-1];C.la=0,C.Na=0,r(N.zc,0,0,N.zc.length),N.ja=0}function Si(N,C,$,Q,re){re=N[C+$+32*Q]+(re>>3),N[C+$+32*Q]=-256&re?0>re?0:255:re}function Xm(N,C,$,Q,re,ce){Si(N,C,0,$,Q+re),Si(N,C,1,$,Q+ce),Si(N,C,2,$,Q-ce),Si(N,C,3,$,Q-re)}function kr(N){return(20091*N>>16)+N}function Hr(N,C,$,Q){var re,ce=0,ue=i(16);for(re=0;4>re;++re){var ge=N[C+0]+N[C+8],ve=N[C+0]-N[C+8],ke=(35468*N[C+4]>>16)-kr(N[C+12]),Me=kr(N[C+4])+(35468*N[C+12]>>16);ue[ce+0]=ge+Me,ue[ce+1]=ve+ke,ue[ce+2]=ve-ke,ue[ce+3]=ge-Me,ce+=4,C++}for(re=ce=0;4>re;++re)ge=(N=ue[ce+0]+4)+ue[ce+8],ve=N-ue[ce+8],ke=(35468*ue[ce+4]>>16)-kr(ue[ce+12]),Si($,Q,0,0,ge+(Me=kr(ue[ce+4])+(35468*ue[ce+12]>>16))),Si($,Q,1,0,ve+ke),Si($,Q,2,0,ve-ke),Si($,Q,3,0,ge-Me),ce++,Q+=32}function _h(N,C,$,Q){var re=N[C+0]+4,ce=35468*N[C+4]>>16,ue=kr(N[C+4]),ge=35468*N[C+1]>>16;Xm($,Q,0,re+ue,N=kr(N[C+1]),ge),Xm($,Q,1,re+ce,N,ge),Xm($,Q,2,re-ce,N,ge),Xm($,Q,3,re-ue,N,ge)}function Ph(N,C,$,Q,re){Hr(N,C,$,Q),re&&Hr(N,C+16,$,Q+4)}function Ru(N,C,$,Q){Mc(N,C+0,$,Q,1),Mc(N,C+32,$,Q+128,1)}function pf(N,C,$,Q){var re;for(N=N[C+0]+4,re=0;4>re;++re)for(C=0;4>C;++C)Si($,Q,C,re,N)}function Cc(N,C,$,Q){N[C+0]&&fi(N,C+0,$,Q),N[C+16]&&fi(N,C+16,$,Q+4),N[C+32]&&fi(N,C+32,$,Q+128),N[C+48]&&fi(N,C+48,$,Q+128+4)}function Hl(N,C,$,Q){var re,ce=i(16);for(re=0;4>re;++re){var ue=N[C+0+re]+N[C+12+re],ge=N[C+4+re]+N[C+8+re],ve=N[C+4+re]-N[C+8+re],ke=N[C+0+re]-N[C+12+re];ce[0+re]=ue+ge,ce[8+re]=ue-ge,ce[4+re]=ke+ve,ce[12+re]=ke-ve}for(re=0;4>re;++re)ue=(N=ce[0+4*re]+3)+ce[3+4*re],ge=ce[1+4*re]+ce[2+4*re],ve=ce[1+4*re]-ce[2+4*re],ke=N-ce[3+4*re],$[Q+0]=ue+ge>>3,$[Q+16]=ke+ve>>3,$[Q+32]=ue-ge>>3,$[Q+48]=ke-ve>>3,Q+=64}function Qm(N,C,$){var Q,re=C-32,ce=Ii,ue=255-N[re-1];for(Q=0;Q<$;++Q){var ge,ve=ce,ke=ue+N[C-1];for(ge=0;ge<$;++ge)N[C+ge]=ve[ke+N[re+ge]];C+=32}}function qd(N,C){Qm(N,C,4)}function Km(N,C){Qm(N,C,8)}function Dh(N,C){Qm(N,C,16)}function Ox(N,C){var $;for($=0;16>$;++$)a(N,C+32*$,N,C-32,16)}function Bx(N,C){var $;for($=16;0<$;--$)r(N,C,N[C-1],16),C+=32}function Sc(N,C,$){var Q;for(Q=0;16>Q;++Q)r(C,$+32*Q,N,16)}function $o(N,C){var $,Q=16;for($=0;16>$;++$)Q+=N[C-1+32*$]+N[C+$-32];Sc(Q>>5,N,C)}function sl(N,C){var $,Q=8;for($=0;16>$;++$)Q+=N[C-1+32*$];Sc(Q>>4,N,C)}function Rh(N,C){var $,Q=8;for($=0;16>$;++$)Q+=N[C+$-32];Sc(Q>>4,N,C)}function qo(N,C){Sc(128,N,C)}function Dn(N,C,$){return N+2*C+$+2>>2}function hf(N,C){var $,Q=C-32;for(Q=new Uint8Array([Dn(N[Q-1],N[Q+0],N[Q+1]),Dn(N[Q+0],N[Q+1],N[Q+2]),Dn(N[Q+1],N[Q+2],N[Q+3]),Dn(N[Q+2],N[Q+3],N[Q+4])]),$=0;4>$;++$)a(N,C+32*$,Q,0,Q.length)}function Ih(N,C){var $=N[C-1],Q=N[C-1+32],re=N[C-1+64],ce=N[C-1+96];le(N,C+0,16843009*Dn(N[C-1-32],$,Q)),le(N,C+32,16843009*Dn($,Q,re)),le(N,C+64,16843009*Dn(Q,re,ce)),le(N,C+96,16843009*Dn(re,ce,ce))}function ff(N,C){var $,Q=4;for($=0;4>$;++$)Q+=N[C+$-32]+N[C-1+32*$];for(Q>>=3,$=0;4>$;++$)r(N,C+32*$,Q,4)}function Gd(N,C){var $=N[C-1+0],Q=N[C-1+32],re=N[C-1+64],ce=N[C-1-32],ue=N[C+0-32],ge=N[C+1-32],ve=N[C+2-32],ke=N[C+3-32];N[C+0+96]=Dn(Q,re,N[C-1+96]),N[C+1+96]=N[C+0+64]=Dn($,Q,re),N[C+2+96]=N[C+1+64]=N[C+0+32]=Dn(ce,$,Q),N[C+3+96]=N[C+2+64]=N[C+1+32]=N[C+0+0]=Dn(ue,ce,$),N[C+3+64]=N[C+2+32]=N[C+1+0]=Dn(ge,ue,ce),N[C+3+32]=N[C+2+0]=Dn(ve,ge,ue),N[C+3+0]=Dn(ke,ve,ge)}function _c(N,C){var $=N[C+1-32],Q=N[C+2-32],re=N[C+3-32],ce=N[C+4-32],ue=N[C+5-32],ge=N[C+6-32],ve=N[C+7-32];N[C+0+0]=Dn(N[C+0-32],$,Q),N[C+1+0]=N[C+0+32]=Dn($,Q,re),N[C+2+0]=N[C+1+32]=N[C+0+64]=Dn(Q,re,ce),N[C+3+0]=N[C+2+32]=N[C+1+64]=N[C+0+96]=Dn(re,ce,ue),N[C+3+32]=N[C+2+64]=N[C+1+96]=Dn(ce,ue,ge),N[C+3+64]=N[C+2+96]=Dn(ue,ge,ve),N[C+3+96]=Dn(ge,ve,ve)}function Pc(N,C){var $=N[C-1+0],Q=N[C-1+32],re=N[C-1+64],ce=N[C-1-32],ue=N[C+0-32],ge=N[C+1-32],ve=N[C+2-32],ke=N[C+3-32];N[C+0+0]=N[C+1+64]=ce+ue+1>>1,N[C+1+0]=N[C+2+64]=ue+ge+1>>1,N[C+2+0]=N[C+3+64]=ge+ve+1>>1,N[C+3+0]=ve+ke+1>>1,N[C+0+96]=Dn(re,Q,$),N[C+0+64]=Dn(Q,$,ce),N[C+0+32]=N[C+1+96]=Dn($,ce,ue),N[C+1+32]=N[C+2+96]=Dn(ce,ue,ge),N[C+2+32]=N[C+3+96]=Dn(ue,ge,ve),N[C+3+32]=Dn(ge,ve,ke)}function Co(N,C){var $=N[C+0-32],Q=N[C+1-32],re=N[C+2-32],ce=N[C+3-32],ue=N[C+4-32],ge=N[C+5-32],ve=N[C+6-32],ke=N[C+7-32];N[C+0+0]=$+Q+1>>1,N[C+1+0]=N[C+0+64]=Q+re+1>>1,N[C+2+0]=N[C+1+64]=re+ce+1>>1,N[C+3+0]=N[C+2+64]=ce+ue+1>>1,N[C+0+32]=Dn($,Q,re),N[C+1+32]=N[C+0+96]=Dn(Q,re,ce),N[C+2+32]=N[C+1+96]=Dn(re,ce,ue),N[C+3+32]=N[C+2+96]=Dn(ce,ue,ge),N[C+3+64]=Dn(ue,ge,ve),N[C+3+96]=Dn(ge,ve,ke)}function rl(N,C){var $=N[C-1+0],Q=N[C-1+32],re=N[C-1+64],ce=N[C-1+96];N[C+0+0]=$+Q+1>>1,N[C+2+0]=N[C+0+32]=Q+re+1>>1,N[C+2+32]=N[C+0+64]=re+ce+1>>1,N[C+1+0]=Dn($,Q,re),N[C+3+0]=N[C+1+32]=Dn(Q,re,ce),N[C+3+32]=N[C+1+64]=Dn(re,ce,ce),N[C+3+64]=N[C+2+64]=N[C+0+96]=N[C+1+96]=N[C+2+96]=N[C+3+96]=ce}function Mh(N,C){var $=N[C-1+0],Q=N[C-1+32],re=N[C-1+64],ce=N[C-1+96],ue=N[C-1-32],ge=N[C+0-32],ve=N[C+1-32],ke=N[C+2-32];N[C+0+0]=N[C+2+32]=$+ue+1>>1,N[C+0+32]=N[C+2+64]=Q+$+1>>1,N[C+0+64]=N[C+2+96]=re+Q+1>>1,N[C+0+96]=ce+re+1>>1,N[C+3+0]=Dn(ge,ve,ke),N[C+2+0]=Dn(ue,ge,ve),N[C+1+0]=N[C+3+32]=Dn($,ue,ge),N[C+1+32]=N[C+3+64]=Dn(Q,$,ue),N[C+1+64]=N[C+3+96]=Dn(re,Q,$),N[C+1+96]=Dn(ce,re,Q)}function Vl(N,C){var $;for($=0;8>$;++$)a(N,C+32*$,N,C-32,8)}function Zm(N,C){var $;for($=0;8>$;++$)r(N,C,N[C-1],8),C+=32}function So(N,C,$){var Q;for(Q=0;8>Q;++Q)r(C,$+32*Q,N,8)}function ep(N,C){var $,Q=8;for($=0;8>$;++$)Q+=N[C+$-32]+N[C-1+32*$];So(Q>>4,N,C)}function Jd(N,C){var $,Q=4;for($=0;8>$;++$)Q+=N[C+$-32];So(Q>>3,N,C)}function _i(N,C){var $,Q=4;for($=0;8>$;++$)Q+=N[C-1+32*$];So(Q>>3,N,C)}function Dc(N,C){So(128,N,C)}function Rc(N,C,$){var Q=N[C-$],re=N[C+0],ce=3*(re-Q)+Kl[1020+N[C-2*$]-N[C+$]],ue=zh[112+(ce+4>>3)];N[C-$]=Ii[255+Q+zh[112+(ce+3>>3)]],N[C+0]=Ii[255+re-ue]}function zl(N,C,$,Q){var re=N[C+0],ce=N[C+$];return gi[255+N[C-2*$]-N[C-$]]>Q||gi[255+ce-re]>Q}function Wd(N,C,$,Q){return 4*gi[255+N[C-$]-N[C+0]]+gi[255+N[C-2*$]-N[C+$]]<=Q}function Yd(N,C,$,Q,re){var ce=N[C-3*$],ue=N[C-2*$],ge=N[C-$],ve=N[C+0],ke=N[C+$],Me=N[C+2*$],Xe=N[C+3*$];return 4*gi[255+ge-ve]+gi[255+ue-ke]>Q?0:gi[255+N[C-4*$]-ce]<=re&&gi[255+ce-ue]<=re&&gi[255+ue-ge]<=re&&gi[255+Xe-Me]<=re&&gi[255+Me-ke]<=re&&gi[255+ke-ve]<=re}function Iu(N,C,$,Q){var re=2*Q+1;for(Q=0;16>Q;++Q)Wd(N,C+Q,$,re)&&Rc(N,C+Q,$)}function $l(N,C,$,Q){var re=2*Q+1;for(Q=0;16>Q;++Q)Wd(N,C+Q*$,1,re)&&Rc(N,C+Q*$,1)}function ql(N,C,$,Q){var re;for(re=3;0<re;--re)Iu(N,C+=4*$,$,Q)}function Lh(N,C,$,Q){var re;for(re=3;0<re;--re)$l(N,C+=4,$,Q)}function Gl(N,C,$,Q,re,ce,ue,ge){for(ce=2*ce+1;0<re--;){if(Yd(N,C,$,ce,ue))if(zl(N,C,$,ge))Rc(N,C,$);else{var ve=N,ke=C,Me=$,Xe=ve[ke-2*Me],Ne=ve[ke-Me],Ue=ve[ke+0],Ge=ve[ke+Me],lt=ve[ke+2*Me],Je=27*(ht=Kl[1020+3*(Ue-Ne)+Kl[1020+Xe-Ge]])+63>>7,ot=18*ht+63>>7,ht=9*ht+63>>7;ve[ke-3*Me]=Ii[255+ve[ke-3*Me]+ht],ve[ke-2*Me]=Ii[255+Xe+ot],ve[ke-Me]=Ii[255+Ne+Je],ve[ke+0]=Ii[255+Ue-Je],ve[ke+Me]=Ii[255+Ge-ot],ve[ke+2*Me]=Ii[255+lt-ht]}C+=Q}}function Jl(N,C,$,Q,re,ce,ue,ge){for(ce=2*ce+1;0<re--;){if(Yd(N,C,$,ce,ue))if(zl(N,C,$,ge))Rc(N,C,$);else{var ve=N,ke=C,Me=$,Xe=ve[ke-Me],Ne=ve[ke+0],Ue=ve[ke+Me],Ge=zh[112+(4+(lt=3*(Ne-Xe))>>3)],lt=zh[112+(lt+3>>3)],Je=Ge+1>>1;ve[ke-2*Me]=Ii[255+ve[ke-2*Me]+Je],ve[ke-Me]=Ii[255+Xe+lt],ve[ke+0]=Ii[255+Ne-Ge],ve[ke+Me]=Ii[255+Ue-Je]}C+=Q}}function gf(N,C,$,Q,re,ce){Gl(N,C,$,1,16,Q,re,ce)}function tp(N,C,$,Q,re,ce){Gl(N,C,1,$,16,Q,re,ce)}function xf(N,C,$,Q,re,ce){var ue;for(ue=3;0<ue;--ue)Jl(N,C+=4*$,$,1,16,Q,re,ce)}function Xd(N,C,$,Q,re,ce){var ue;for(ue=3;0<ue;--ue)Jl(N,C+=4,1,$,16,Q,re,ce)}function bf(N,C,$,Q,re,ce,ue,ge){Gl(N,C,re,1,8,ce,ue,ge),Gl($,Q,re,1,8,ce,ue,ge)}function B(N,C,$,Q,re,ce,ue,ge){Gl(N,C,1,re,8,ce,ue,ge),Gl($,Q,1,re,8,ce,ue,ge)}function se(N,C,$,Q,re,ce,ue,ge){Jl(N,C+4*re,re,1,8,ce,ue,ge),Jl($,Q+4*re,re,1,8,ce,ue,ge)}function Te(N,C,$,Q,re,ce,ue,ge){Jl(N,C+4,1,re,8,ce,ue,ge),Jl($,Q+4,1,re,8,ce,ue,ge)}function Re(){this.ba=new Tn,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Vt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Ve(){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 ut(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function wt(){this.ua=0,this.Wa=new Xt,this.vb=new Xt,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new oe,this.yc=new W}function cn(){this.xb=this.a=0,this.l=new Ul,this.ca=new Tn,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new H,this.Pb=0,this.wd=new H,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new wt,this.ab=0,this.gc=o(4,ut),this.Oc=0}function dn(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Ul,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Yn(N,C,$,Q,re,ce,ue){for(N=N==null?0:N[C+0],C=0;C<ue;++C)re[ce+C]=N+$[Q+C]&255,N=re[ce+C]}function ea(N,C,$,Q,re,ce,ue){var ge;if(N==null)Yn(null,null,$,Q,re,ce,ue);else for(ge=0;ge<ue;++ge)re[ce+ge]=N[C+ge]+$[Q+ge]&255}function wa(N,C,$,Q,re,ce,ue){if(N==null)Yn(null,null,$,Q,re,ce,ue);else{var ge,ve=N[C+0],ke=ve,Me=ve;for(ge=0;ge<ue;++ge)ke=Me+(ve=N[C+ge])-ke,Me=$[Q+ge]+(-256&ke?0>ke?0:255:ke)&255,ke=ve,re[ce+ge]=Me}}function jr(N,C,$,Q){var re=C.width,ce=C.o;if(t(N!=null&&C!=null),0>$||0>=Q||$+Q>ce)return null;if(!N.Cc){if(N.ga==null){var ue;if(N.ga=new dn,(ue=N.ga==null)||(ue=C.width*C.o,t(N.Gb.length==0),N.Gb=i(ue),N.Uc=0,N.Gb==null?ue=0:(N.mb=N.Gb,N.nb=N.Uc,N.rc=null,ue=1),ue=!ue),!ue){ue=N.ga;var ge=N.Fa,ve=N.P,ke=N.qc,Me=N.mb,Xe=N.nb,Ne=ve+1,Ue=ke-1,Ge=ue.l;if(t(ge!=null&&Me!=null&&C!=null),Zl[0]=null,Zl[1]=Yn,Zl[2]=ea,Zl[3]=wa,ue.ca=Me,ue.tb=Xe,ue.c=C.width,ue.i=C.height,t(0<ue.c&&0<ue.i),1>=ke)C=0;else if(ue.$a=3&ge[ve+0],ue.Z=ge[ve+0]>>2&3,ue.Lc=ge[ve+0]>>4&3,ve=ge[ve+0]>>6&3,0>ue.$a||1<ue.$a||4<=ue.Z||1<ue.Lc||ve)C=0;else if(Ge.put=Wt,Ge.ac=mi,Ge.bc=tr,Ge.ma=ue,Ge.width=C.width,Ge.height=C.height,Ge.Da=C.Da,Ge.v=C.v,Ge.va=C.va,Ge.j=C.j,Ge.o=C.o,ue.$a)e:{t(ue.$a==1),C=zd();t:for(;;){if(C==null){C=0;break e}if(t(ue!=null),ue.mc=C,C.c=ue.c,C.i=ue.i,C.l=ue.l,C.l.ma=ue,C.l.width=ue.c,C.l.height=ue.i,C.a=0,pe(C.m,ge,Ne,Ue),!Tc(ue.c,ue.i,1,C,null)||(C.ab==1&&C.gc[0].hc==3&&ms(C.s)?(ue.ic=1,ge=C.c*C.i,C.Ta=null,C.Ua=0,C.V=i(ge),C.Ba=0,C.V==null?(C.a=1,C=0):C=1):(ue.ic=0,C=Nc(C,ue.c)),!C))break t;C=1;break e}ue.mc=null,C=0}else C=Ue>=ue.c*ue.i;ue=!C}if(ue)return null;N.ga.Lc!=1?N.Ga=0:Q=ce-$}t(N.ga!=null),t($+Q<=ce);e:{if(C=(ge=N.ga).c,ce=ge.l.o,ge.$a==0){if(Ne=N.rc,Ue=N.Vc,Ge=N.Fa,ve=N.P+1+$*C,ke=N.mb,Me=N.nb+$*C,t(ve<=N.P+N.qc),ge.Z!=0)for(t(Zl[ge.Z]!=null),ue=0;ue<Q;++ue)Zl[ge.Z](Ne,Ue,Ge,ve,ke,Me,C),Ne=ke,Ue=Me,Me+=C,ve+=C;else for(ue=0;ue<Q;++ue)a(ke,Me,Ge,ve,C),Ne=ke,Ue=Me,Me+=C,ve+=C;N.rc=Ne,N.Vc=Ue}else{if(t(ge.mc!=null),C=$+Q,t((ue=ge.mc)!=null),t(C<=ue.i),ue.C>=C)C=1;else if(ge.ic||Gs(),ge.ic){ge=ue.V,Ne=ue.Ba,Ue=ue.c;var lt=ue.i,Je=(Ge=1,ve=ue.$/Ue,ke=ue.$%Ue,Me=ue.m,Xe=ue.s,ue.$),ot=Ue*lt,ht=Ue*C,Et=Xe.wc,vt=Je<ht?Ur(Xe,ke,ve):null;t(Je<=ot),t(C<=lt),t(ms(Xe));t:for(;;){for(;!Me.h&&Je<ht;){if(ke&Et||(vt=Ur(Xe,ke,ve)),t(vt!=null),fe(Me),256>(lt=ds(vt.G[0],vt.H[0],Me)))ge[Ne+Je]=lt,++Je,++ke>=Ue&&(ke=0,++ve<=C&&!(ve%16)&&Ci(ue,ve));else{if(!(280>lt)){Ge=0;break t}lt=js(lt-256,Me);var pn,en=ds(vt.G[4],vt.H[4],Me);if(fe(Me),!(Je>=(en=As(Ue,en=js(en,Me)))&&ot-Je>=lt)){Ge=0;break t}for(pn=0;pn<lt;++pn)ge[Ne+Je+pn]=ge[Ne+Je+pn-en];for(Je+=lt,ke+=lt;ke>=Ue;)ke-=Ue,++ve<=C&&!(ve%16)&&Ci(ue,ve);Je<ht&&ke&Et&&(vt=Ur(Xe,ke,ve))}t(Me.h==te(Me))}Ci(ue,ve>C?C:ve);break t}!Ge||Me.h&&Je<ot?(Ge=0,ue.a=Me.h?5:3):ue.$=Je,C=Ge}else C=jo(ue,ue.V,ue.Ba,ue.c,ue.i,C,Pu);if(!C){Q=0;break e}}$+Q>=ce&&(N.Cc=1),Q=1}if(!Q)return null;if(N.Cc&&((Q=N.ga)!=null&&(Q.mc=null),N.ga=null,0<N.Ga))return alert("todo:WebPDequantizeLevels"),null}return N.nb+$*re}function ps(N,C,$,Q,re,ce){for(;0<re--;){var ue,ge=N,ve=C+($?1:0),ke=N,Me=C+($?0:3);for(ue=0;ue<Q;++ue){var Xe=ke[Me+4*ue];Xe!=255&&(Xe*=32897,ge[ve+4*ue+0]=ge[ve+4*ue+0]*Xe>>23,ge[ve+4*ue+1]=ge[ve+4*ue+1]*Xe>>23,ge[ve+4*ue+2]=ge[ve+4*ue+2]*Xe>>23)}C+=ce}}function rs(N,C,$,Q,re){for(;0<Q--;){var ce;for(ce=0;ce<$;++ce){var ue=N[C+2*ce+0],ge=15&(ke=N[C+2*ce+1]),ve=4369*ge,ke=(240&ke|ke>>4)*ve>>16;N[C+2*ce+0]=(240&ue|ue>>4)*ve>>16&240|(15&ue|ue<<4)*ve>>16>>4&15,N[C+2*ce+1]=240&ke|ge}C+=re}}function Es(N,C,$,Q,re,ce,ue,ge){var ve,ke,Me=255;for(ke=0;ke<re;++ke){for(ve=0;ve<Q;++ve){var Xe=N[C+ve];ce[ue+4*ve]=Xe,Me&=Xe}C+=$,ue+=ge}return Me!=255}function qs(N,C,$,Q,re){var ce;for(ce=0;ce<re;++ce)$[Q+ce]=N[C+ce]>>8}function Gs(){cm=ps,Wo=rs,Uh=Es,Po=qs}function Pi(N,C,$){F[N]=function(Q,re,ce,ue,ge,ve,ke,Me,Xe,Ne,Ue,Ge,lt,Je,ot,ht,Et){var vt,pn=Et-1>>1,en=ge[ve+0]|ke[Me+0]<<16,Xn=Xe[Ne+0]|Ue[Ge+0]<<16;t(Q!=null);var ln=3*en+Xn+131074>>2;for(C(Q[re+0],255&ln,ln>>16,lt,Je),ce!=null&&(ln=3*Xn+en+131074>>2,C(ce[ue+0],255&ln,ln>>16,ot,ht)),vt=1;vt<=pn;++vt){var ga=ge[ve+vt]|ke[Me+vt]<<16,_s=Xe[Ne+vt]|Ue[Ge+vt]<<16,ta=en+ga+Xn+_s+524296,tn=ta+2*(ga+Xn)>>3;ln=tn+en>>1,en=(ta=ta+2*(en+_s)>>3)+ga>>1,C(Q[re+2*vt-1],255&ln,ln>>16,lt,Je+(2*vt-1)*$),C(Q[re+2*vt-0],255&en,en>>16,lt,Je+(2*vt-0)*$),ce!=null&&(ln=ta+Xn>>1,en=tn+_s>>1,C(ce[ue+2*vt-1],255&ln,ln>>16,ot,ht+(2*vt-1)*$),C(ce[ue+2*vt+0],255&en,en>>16,ot,ht+(2*vt+0)*$)),en=ga,Xn=_s}1&Et||(ln=3*en+Xn+131074>>2,C(Q[re+Et-1],255&ln,ln>>16,lt,Je+(Et-1)*$),ce!=null&&(ln=3*Xn+en+131074>>2,C(ce[ue+Et-1],255&ln,ln>>16,ot,ht+(Et-1)*$)))}}function Wl(){bi[Tf]=dm,bi[Mi]=lp,bi[Nf]=$x,bi[Yo]=Cf,bi[$h]=Ju,bi[ip]=cl,bi[$u]=Wu,bi[qh]=lp,bi[kf]=Cf,bi[op]=Ju,bi[jf]=cl}function Oh(N){return N&-16384?0>N?0:255:N>>Sf}function Yl(N,C){return Oh((19077*N>>8)+(26149*C>>8)-14234)}function Ic(N,C,$){return Oh((19077*N>>8)-(6419*C>>8)-(13320*$>>8)+8708)}function Mu(N,C){return Oh((19077*N>>8)+(33050*C>>8)-17685)}function Lu(N,C,$,Q,re){Q[re+0]=Yl(N,$),Q[re+1]=Ic(N,C,$),Q[re+2]=Mu(N,C)}function Qd(N,C,$,Q,re){Q[re+0]=Mu(N,C),Q[re+1]=Ic(N,C,$),Q[re+2]=Yl(N,$)}function Kd(N,C,$,Q,re){var ce=Ic(N,C,$);C=ce<<3&224|Mu(N,C)>>3,Q[re+0]=248&Yl(N,$)|ce>>5,Q[re+1]=C}function pi(N,C,$,Q,re){var ce=240&Mu(N,C)|15;Q[re+0]=240&Yl(N,$)|Ic(N,C,$)>>4,Q[re+1]=ce}function Ou(N,C,$,Q,re){Q[re+0]=255,Lu(N,C,$,Q,re+1)}function Go(N,C,$,Q,re){Qd(N,C,$,Q,re),Q[re+3]=255}function Bh(N,C,$,Q,re){Lu(N,C,$,Q,re),Q[re+3]=255}function il(N,C,$){F[N]=function(Q,re,ce,ue,ge,ve,ke,Me,Xe){for(var Ne=Me+(-2&Xe)*$;Me!=Ne;)C(Q[re+0],ce[ue+0],ge[ve+0],ke,Me),C(Q[re+1],ce[ue+0],ge[ve+0],ke,Me+$),re+=2,++ue,++ve,Me+=2*$;1&Xe&&C(Q[re+0],ce[ue+0],ge[ve+0],ke,Me)}}function Xi(N,C,$){return $==0?N==0?C==0?6:5:C==0?4:0:$}function Fh(N,C,$,Q,re){switch(N>>>30){case 3:Mc(C,$,Q,re,0);break;case 2:Jo(C,$,Q,re);break;case 1:fi(C,$,Q,re)}}function Zd(N,C){var $,Q,re=C.M,ce=C.Nb,ue=N.oc,ge=N.pc+40,ve=N.oc,ke=N.pc+584,Me=N.oc,Xe=N.pc+600;for($=0;16>$;++$)ue[ge+32*$-1]=129;for($=0;8>$;++$)ve[ke+32*$-1]=129,Me[Xe+32*$-1]=129;for(0<re?ue[ge-1-32]=ve[ke-1-32]=Me[Xe-1-32]=129:(r(ue,ge-32-1,127,21),r(ve,ke-32-1,127,9),r(Me,Xe-32-1,127,9)),Q=0;Q<N.za;++Q){var Ne=C.ya[C.aa+Q];if(0<Q){for($=-1;16>$;++$)a(ue,ge+32*$-4,ue,ge+32*$+12,4);for($=-1;8>$;++$)a(ve,ke+32*$-4,ve,ke+32*$+4,4),a(Me,Xe+32*$-4,Me,Xe+32*$+4,4)}var Ue=N.Gd,Ge=N.Hd+Q,lt=Ne.ad,Je=Ne.Hc;if(0<re&&(a(ue,ge-32,Ue[Ge].y,0,16),a(ve,ke-32,Ue[Ge].f,0,8),a(Me,Xe-32,Ue[Ge].ea,0,8)),Ne.Za){var ot=ue,ht=ge-32+16;for(0<re&&(Q>=N.za-1?r(ot,ht,Ue[Ge].y[15],4):a(ot,ht,Ue[Ge+1].y,0,4)),$=0;4>$;$++)ot[ht+128+$]=ot[ht+256+$]=ot[ht+384+$]=ot[ht+0+$];for($=0;16>$;++$,Je<<=2)ot=ue,ht=ge+gr[$],sr[Ne.Ob[$]](ot,ht),Fh(Je,lt,16*+$,ot,ht)}else if(ot=Xi(Q,re,Ne.Ob[0]),Zi[ot](ue,ge),Je!=0)for($=0;16>$;++$,Je<<=2)Fh(Je,lt,16*+$,ue,ge+gr[$]);for($=Ne.Gc,ot=Xi(Q,re,Ne.Dd),Lc[ot](ve,ke),Lc[ot](Me,Xe),Je=lt,ot=ve,ht=ke,255&(Ne=0|$)&&(170&Ne?zu(Je,256,ot,ht):Ri(Je,256,ot,ht)),Ne=Me,Je=Xe,255&($>>=8)&&(170&$?zu(lt,320,Ne,Je):Ri(lt,320,Ne,Je)),re<N.Ub-1&&(a(Ue[Ge].y,0,ue,ge+480,16),a(Ue[Ge].f,0,ve,ke+224,8),a(Ue[Ge].ea,0,Me,Xe+224,8)),$=8*ce*N.B,Ue=N.sa,Ge=N.ta+16*Q+16*ce*N.R,lt=N.qa,Ne=N.ra+8*Q+$,Je=N.Ha,ot=N.Ia+8*Q+$,$=0;16>$;++$)a(Ue,Ge+$*N.R,ue,ge+32*$,16);for($=0;8>$;++$)a(lt,Ne+$*N.B,ve,ke+32*$,8),a(Je,ot+$*N.B,Me,Xe+32*$,8)}}function Bu(N,C,$,Q,re,ce,ue,ge,ve){var ke=[0],Me=[0],Xe=0,Ne=ve!=null?ve.kd:0,Ue=ve??new Ve;if(N==null||12>$)return 7;Ue.data=N,Ue.w=C,Ue.ha=$,C=[C],$=[$],Ue.gb=[Ue.gb];e:{var Ge=C,lt=$,Je=Ue.gb;if(t(N!=null),t(lt!=null),t(Je!=null),Je[0]=0,12<=lt[0]&&!n(N,Ge[0],"RIFF")){if(n(N,Ge[0]+8,"WEBP")){Je=3;break e}var ot=xt(N,Ge[0]+4);if(12>ot||4294967286<ot){Je=3;break e}if(Ne&&ot>lt[0]-8){Je=7;break e}Je[0]=ot,Ge[0]+=12,lt[0]-=12}Je=0}if(Je!=0)return Je;for(ot=0<Ue.gb[0],$=$[0];;){e:{var ht=N;lt=C,Je=$;var Et=ke,vt=Me,pn=Ge=[0];if((ln=Xe=[Xe])[0]=0,8>Je[0])Je=7;else{if(!n(ht,lt[0],"VP8X")){if(xt(ht,lt[0]+4)!=10){Je=3;break e}if(18>Je[0]){Je=7;break e}var en=xt(ht,lt[0]+8),Xn=1+pt(ht,lt[0]+12);if(2147483648<=Xn*(ht=1+pt(ht,lt[0]+15))){Je=3;break e}pn!=null&&(pn[0]=en),Et!=null&&(Et[0]=Xn),vt!=null&&(vt[0]=ht),lt[0]+=18,Je[0]-=18,ln[0]=1}Je=0}}if(Xe=Xe[0],Ge=Ge[0],Je!=0)return Je;if(lt=!!(2&Ge),!ot&&Xe)return 3;if(ce!=null&&(ce[0]=!!(16&Ge)),ue!=null&&(ue[0]=lt),ge!=null&&(ge[0]=0),ue=ke[0],Ge=Me[0],Xe&<&&ve==null){Je=0;break}if(4>$){Je=7;break}if(ot&&Xe||!ot&&!Xe&&!n(N,C[0],"ALPH")){$=[$],Ue.na=[Ue.na],Ue.P=[Ue.P],Ue.Sa=[Ue.Sa];e:{en=N,Je=C,ot=$;var ln=Ue.gb;Et=Ue.na,vt=Ue.P,pn=Ue.Sa,Xn=22,t(en!=null),t(ot!=null),ht=Je[0];var ga=ot[0];for(t(Et!=null),t(pn!=null),Et[0]=null,vt[0]=null,pn[0]=0;;){if(Je[0]=ht,ot[0]=ga,8>ga){Je=7;break e}var _s=xt(en,ht+4);if(4294967286<_s){Je=3;break e}var ta=8+_s+1&-2;if(Xn+=ta,0<ln&&Xn>ln){Je=3;break e}if(!n(en,ht,"VP8 ")||!n(en,ht,"VP8L")){Je=0;break e}if(ga[0]<ta){Je=7;break e}n(en,ht,"ALPH")||(Et[0]=en,vt[0]=ht+8,pn[0]=_s),ht+=ta,ga-=ta}}if($=$[0],Ue.na=Ue.na[0],Ue.P=Ue.P[0],Ue.Sa=Ue.Sa[0],Je!=0)break}$=[$],Ue.Ja=[Ue.Ja],Ue.xa=[Ue.xa];e:if(ln=N,Je=C,ot=$,Et=Ue.gb[0],vt=Ue.Ja,pn=Ue.xa,en=Je[0],ht=!n(ln,en,"VP8 "),Xn=!n(ln,en,"VP8L"),t(ln!=null),t(ot!=null),t(vt!=null),t(pn!=null),8>ot[0])Je=7;else{if(ht||Xn){if(ln=xt(ln,en+4),12<=Et&&ln>Et-12){Je=3;break e}if(Ne&&ln>ot[0]-8){Je=7;break e}vt[0]=ln,Je[0]+=8,ot[0]-=8,pn[0]=Xn}else pn[0]=5<=ot[0]&&ln[en+0]==47&&!(ln[en+4]>>5),vt[0]=ot[0];Je=0}if($=$[0],Ue.Ja=Ue.Ja[0],Ue.xa=Ue.xa[0],C=C[0],Je!=0)break;if(4294967286<Ue.Ja)return 3;if(ge==null||lt||(ge[0]=Ue.xa?2:1),ue=[ue],Ge=[Ge],Ue.xa){if(5>$){Je=7;break}ge=ue,Ne=Ge,lt=ce,N==null||5>$?N=0:5<=$&&N[C+0]==47&&!(N[C+4]>>5)?(ot=[0],ln=[0],Et=[0],pe(vt=new H,N,C,$),Wi(vt,ot,ln,Et)?(ge!=null&&(ge[0]=ot[0]),Ne!=null&&(Ne[0]=ln[0]),lt!=null&&(lt[0]=Et[0]),N=1):N=0):N=0}else{if(10>$){Je=7;break}ge=Ge,N==null||10>$||!Sh(N,C+3,$-3)?N=0:(Ne=N[C+0]|N[C+1]<<8|N[C+2]<<16,lt=16383&(N[C+7]<<8|N[C+6]),N=16383&(N[C+9]<<8|N[C+8]),1&Ne||3<(Ne>>1&7)||!(Ne>>4&1)||Ne>>5>=Ue.Ja||!lt||!N?N=0:(ue&&(ue[0]=lt),ge&&(ge[0]=N),N=1))}if(!N||(ue=ue[0],Ge=Ge[0],Xe&&(ke[0]!=ue||Me[0]!=Ge)))return 3;ve!=null&&(ve[0]=Ue,ve.offset=C-ve.w,t(4294967286>C-ve.w),t(ve.offset==ve.ha-$));break}return Je==0||Je==7&&Xe&&ve==null?(ce!=null&&(ce[0]|=Ue.na!=null&&0<Ue.na.length),Q!=null&&(Q[0]=ue),re!=null&&(re[0]=Ge),0):Je}function Di(N,C,$){var Q=C.width,re=C.height,ce=0,ue=0,ge=Q,ve=re;if(C.Da=N!=null&&0<N.Da,C.Da&&(ge=N.cd,ve=N.bd,ce=N.v,ue=N.j,11>$||(ce&=-2,ue&=-2),0>ce||0>ue||0>=ge||0>=ve||ce+ge>Q||ue+ve>re))return 0;if(C.v=ce,C.j=ue,C.va=ce+ge,C.o=ue+ve,C.U=ge,C.T=ve,C.da=N!=null&&0<N.da,C.da){if(!Jt(ge,ve,$=[N.ib],ce=[N.hb]))return 0;C.ib=$[0],C.hb=ce[0]}return C.ob=N!=null&&N.ob,C.Kb=N==null||!N.Sd,C.da&&(C.ob=C.ib<3*Q/4&&C.hb<3*re/4,C.Kb=0),1}function em(N){if(N==null)return 2;if(11>N.S){var C=N.f.RGBA;C.fb+=(N.height-1)*C.A,C.A=-C.A}else C=N.f.kb,N=N.height,C.O+=(N-1)*C.fa,C.fa=-C.fa,C.N+=(N-1>>1)*C.Ab,C.Ab=-C.Ab,C.W+=(N-1>>1)*C.Db,C.Db=-C.Db,C.F!=null&&(C.J+=(N-1)*C.lb,C.lb=-C.lb);return 0}function Fu(N,C,$,Q){if(Q==null||0>=N||0>=C)return 2;if($!=null){if($.Da){var re=$.cd,ce=$.bd,ue=-2&$.v,ge=-2&$.j;if(0>ue||0>ge||0>=re||0>=ce||ue+re>N||ge+ce>C)return 2;N=re,C=ce}if($.da){if(!Jt(N,C,re=[$.ib],ce=[$.hb]))return 2;N=re[0],C=ce[0]}}Q.width=N,Q.height=C;e:{var ve=Q.width,ke=Q.height;if(N=Q.S,0>=ve||0>=ke||!(N>=Tf&&13>N))N=2;else{if(0>=Q.Rd&&Q.sd==null){ue=ce=re=C=0;var Me=(ge=ve*Pf[N])*ke;if(11>N||(ce=(ke+1)/2*(C=(ve+1)/2),N==12&&(ue=(re=ve)*ke)),(ke=i(Me+2*ce+ue))==null){N=1;break e}Q.sd=ke,11>N?((ve=Q.f.RGBA).eb=ke,ve.fb=0,ve.A=ge,ve.size=Me):((ve=Q.f.kb).y=ke,ve.O=0,ve.fa=ge,ve.Fd=Me,ve.f=ke,ve.N=0+Me,ve.Ab=C,ve.Cd=ce,ve.ea=ke,ve.W=0+Me+ce,ve.Db=C,ve.Ed=ce,N==12&&(ve.F=ke,ve.J=0+Me+2*ce),ve.Tc=ue,ve.lb=re)}if(C=1,re=Q.S,ce=Q.width,ue=Q.height,re>=Tf&&13>re)if(11>re)N=Q.f.RGBA,C&=(ge=Math.abs(N.A))*(ue-1)+ce<=N.size,C&=ge>=ce*Pf[re],C&=N.eb!=null;else{N=Q.f.kb,ge=(ce+1)/2,Me=(ue+1)/2,ve=Math.abs(N.fa),ke=Math.abs(N.Ab);var Xe=Math.abs(N.Db),Ne=Math.abs(N.lb),Ue=Ne*(ue-1)+ce;C&=ve*(ue-1)+ce<=N.Fd,C&=ke*(Me-1)+ge<=N.Cd,C=(C&=Xe*(Me-1)+ge<=N.Ed)&ve>=ce&ke>=ge&Xe>=ge,C&=N.y!=null,C&=N.f!=null,C&=N.ea!=null,re==12&&(C&=Ne>=ce,C&=Ue<=N.Tc,C&=N.F!=null)}else C=0;N=C?0:2}}return N!=0||$!=null&&$.fd&&(N=em(Q)),N}var tm=64,Uu=[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],nm=24,hi=32,Qi=8,am=[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];ct("Predictor0","PredictorAdd0"),F.Predictor0=function(){return 4278190080},F.Predictor1=function(N){return N},F.Predictor2=function(N,C,$){return C[$+0]},F.Predictor3=function(N,C,$){return C[$+1]},F.Predictor4=function(N,C,$){return C[$-1]},F.Predictor5=function(N,C,$){return Ht(Ht(N,C[$+1]),C[$+0])},F.Predictor6=function(N,C,$){return Ht(N,C[$-1])},F.Predictor7=function(N,C,$){return Ht(N,C[$+0])},F.Predictor8=function(N,C,$){return Ht(C[$-1],C[$+0])},F.Predictor9=function(N,C,$){return Ht(C[$+0],C[$+1])},F.Predictor10=function(N,C,$){return Ht(Ht(N,C[$-1]),Ht(C[$+0],C[$+1]))},F.Predictor11=function(N,C,$){var Q=C[$+0];return 0>=qe(Q>>24&255,N>>24&255,(C=C[$-1])>>24&255)+qe(Q>>16&255,N>>16&255,C>>16&255)+qe(Q>>8&255,N>>
vendor: 6,170 bytes, line 1056
10568&255,C>>8&255)+qe(255&Q,255&N,255&C)?Q:N},F.Predictor12=function(N,C,$){var Q=C[$+0];return(wn((N>>24&255)+(Q>>24&255)-((C=C[$-1])>>24&255))<<24|wn((N>>16&255)+(Q>>16&255)-(C>>16&255))<<16|wn((N>>8&255)+(Q>>8&255)-(C>>8&255))<<8|wn((255&N)+(255&Q)-(255&C)))>>>0},F.Predictor13=function(N,C,$){var Q=C[$-1];return(Hn((N=Ht(N,C[$+0]))>>24&255,Q>>24&255)<<24|Hn(N>>16&255,Q>>16&255)<<16|Hn(N>>8&255,Q>>8&255)<<8|Hn(255&N,255&Q))>>>0};var Xl=F.PredictorAdd0;F.PredictorAdd1=dt,ct("Predictor2","PredictorAdd2"),ct("Predictor3","PredictorAdd3"),ct("Predictor4","PredictorAdd4"),ct("Predictor5","PredictorAdd5"),ct("Predictor6","PredictorAdd6"),ct("Predictor7","PredictorAdd7"),ct("Predictor8","PredictorAdd8"),ct("Predictor9","PredictorAdd9"),ct("Predictor10","PredictorAdd10"),ct("Predictor11","PredictorAdd11"),ct("Predictor12","PredictorAdd12"),ct("Predictor13","PredictorAdd13");var Hu=F.PredictorAdd2;zt("ColorIndexInverseTransform","MapARGB","32b",function(N){return N>>8&255},function(N){return N}),zt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(N){return N},function(N){return N>>8&255});var np,sm=F.ColorIndexInverseTransform,Ar=F.MapARGB,Fx=F.VP8LColorIndexInverseTransformAlpha,nr=F.MapAlpha,Ki=F.VP8LPredictorsAdd=[];Ki.length=16,(F.VP8LPredictors=[]).length=16,(F.VP8LPredictorsAdd_C=[]).length=16,(F.VP8LPredictors_C=[]).length=16;var Vu,ap,sp,rm,Ql,im,_o,Mc,Jo,zu,fi,Ri,Va,is,ar,Cs,ol,rp,om,vf,mv,pv,Ux,Hx,cm,Wo,Uh,Po,lm=i(511),yf=i(2041),Hh=i(225),Vh=i(767),wf=0,Kl=yf,zh=Hh,Ii=Vh,gi=lm,Tf=0,Mi=1,Nf=2,Yo=3,$h=4,ip=5,$u=6,qh=7,kf=8,op=9,jf=10,Xo=[2,3,7],cp=[3,3,11],um=[280,256,256,256,40],Af=[0,1,1,1,0],Gh=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Qo=[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,36,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],Ko=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],qu=8,Zo=[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],ec=[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],Do=null,hv=[[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]],Vx=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Ef=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],fv=[[[[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
10565,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]]]],xi=[[[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,
10561,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]]],Ss=[[[[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: 15,841 bytes, lines 1056-1080
10565,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]]]],Ta=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Zi=[],sr=[],Lc=[],Gu=1,zx=2,Zl=[],bi=[];Pi("UpsampleRgbLinePair",Lu,3),Pi("UpsampleBgrLinePair",Qd,3),Pi("UpsampleRgbaLinePair",Bh,4),Pi("UpsampleBgraLinePair",Go,4),Pi("UpsampleArgbLinePair",Ou,4),Pi("UpsampleRgba4444LinePair",pi,2),Pi("UpsampleRgb565LinePair",Kd,2);var dm=F.UpsampleRgbLinePair,$x=F.UpsampleBgrLinePair,lp=F.UpsampleRgbaLinePair,Cf=F.UpsampleBgraLinePair,Ju=F.UpsampleArgbLinePair,cl=F.UpsampleRgba4444LinePair,Wu=F.UpsampleRgb565LinePair,tc=16,up=1<<tc-1,mm=-227,Yu=482,Sf=6,Xu=0,vi=i(256),_f=i(256),gv=i(256),q6=i(256),G6=i(Yu-mm),J6=i(Yu-mm);il("YuvToRgbRow",Lu,3),il("YuvToBgrRow",Qd,3),il("YuvToRgbaRow",Bh,4),il("YuvToBgraRow",Go,4),il("YuvToArgbRow",Ou,4),il("YuvToRgba4444Row",pi,2),il("YuvToRgb565Row",Kd,2);var gr=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],dp=[0,2,8],Jh=[8,7,6,4,4,2,2,2,1,1,1,1],Wh=1;this.WebPDecodeRGBA=function(N,C,$,Q,re){var ce=Mi,ue=new Re,ge=new Tn;ue.ba=ge,ge.S=ce,ge.width=[ge.width],ge.height=[ge.height];var ve=ge.width,ke=ge.height,Me=new qt;if(Me==null||N==null)var Xe=2;else t(Me!=null),Xe=Bu(N,C,$,Me.width,Me.height,Me.Pd,Me.Qd,Me.format,null);if(Xe!=0?ve=0:(ve!=null&&(ve[0]=Me.width[0]),ke!=null&&(ke[0]=Me.height[0]),ve=1),ve){ge.width=ge.width[0],ge.height=ge.height[0],Q!=null&&(Q[0]=ge.width),re!=null&&(re[0]=ge.height);e:{if(Q=new Ul,(re=new Ve).data=N,re.w=C,re.ha=$,re.kd=1,C=[0],t(re!=null),((N=Bu(re.data,re.w,re.ha,null,null,null,C,null,re))==0||N==7)&&C[0]&&(N=4),(C=N)==0){if(t(ue!=null),Q.data=re.data,Q.w=re.w+re.offset,Q.ha=re.ha-re.offset,Q.put=Wt,Q.ac=mi,Q.bc=tr,Q.ma=ue,re.xa){if((N=zd())==null){ue=1;break e}if((function(Ne,Ue){var Ge=[0],lt=[0],Je=[0];t:for(;;){if(Ne==null)return 0;if(Ue==null)return Ne.a=2,0;if(Ne.l=Ue,Ne.a=0,pe(Ne.m,Ue.data,Ue.w,Ue.ha),!Wi(Ne.m,Ge,lt,Je)){Ne.a=3;break t}if(Ne.xb=zx,Ue.width=Ge[0],Ue.height=lt[0],!Tc(Ge[0],lt[0],1,Ne,null))break t;return 1}return t(Ne.a!=0),0})(N,Q)){if(Q=(C=Fu(Q.width,Q.height,ue.Oa,ue.ba))==0){t:{Q=N;n:for(;;){if(Q==null){Q=0;break t}if(t(Q.s.yc!=null),t(Q.s.Ya!=null),t(0<Q.s.Wb),t(($=Q.l)!=null),t((re=$.ma)!=null),Q.xb!=0){if(Q.ca=re.ba,Q.tb=re.tb,t(Q.ca!=null),!Di(re.Oa,$,Yo)){Q.a=2;break n}if(!Nc(Q,$.width)||$.da)break n;if(($.da||tt(Q.ca.S))&&Gs(),11>Q.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),Q.ca.f.kb.F!=null&&Gs()),Q.Pb&&0<Q.s.ua&&Q.s.vb.X==null&&!be(Q.s.vb,Q.s.Wa.Xa)){Q.a=1;break n}Q.xb=0}if(!jo(Q,Q.V,Q.Ba,Q.c,Q.i,$.o,Yi))break n;re.Dc=Q.Ma,Q=1;break t}t(Q.a!=0),Q=0}Q=!Q}Q&&(C=N.a)}else C=N.a}else{if((N=new Ec)==null){ue=1;break e}if(N.Fa=re.na,N.P=re.P,N.qc=re.Sa,al(N,Q)){if((C=Fu(Q.width,Q.height,ue.Oa,ue.ba))==0){if(N.Aa=0,$=ue.Oa,t((re=N)!=null),$!=null){if(0<(ve=0>(ve=$.Md)?0:100<ve?255:255*ve/100)){for(ke=Me=0;4>ke;++ke)12>(Xe=re.pb[ke]).lc&&(Xe.ia=ve*Jh[0>Xe.lc?0:Xe.lc]>>3),Me|=Xe.ia;Me&&(alert("todo:VP8InitRandom"),re.ia=1)}re.Ga=$.Id,100<re.Ga?re.Ga=100:0>re.Ga&&(re.Ga=0)}(function(Ne,Ue){if(Ne==null)return 0;if(Ue==null)return Ha(Ne,2,"NULL VP8Io parameter in VP8Decode().");if(!Ne.cb&&!al(Ne,Ue))return 0;if(t(Ne.cb),Ue.ac==null||Ue.ac(Ue)){Ue.ob&&(Ne.L=0);var Ge=dp[Ne.L];if(Ne.L==2?(Ne.yb=0,Ne.zb=0):(Ne.yb=Ue.v-Ge>>4,Ne.zb=Ue.j-Ge>>4,0>Ne.yb&&(Ne.yb=0),0>Ne.zb&&(Ne.zb=0)),Ne.Va=Ue.o+15+Ge>>4,Ne.Hb=Ue.va+15+Ge>>4,Ne.Hb>Ne.za&&(Ne.Hb=Ne.za),Ne.Va>Ne.Ub&&(Ne.Va=Ne.Ub),0<Ne.L){var lt=Ne.ed;for(Ge=0;4>Ge;++Ge){var Je;if(Ne.Qa.Cb){var ot=Ne.Qa.Lb[Ge];Ne.Qa.Fb||(ot+=lt.Tb)}else ot=lt.Tb;for(Je=0;1>=Je;++Je){var ht=Ne.gd[Ge][Je],Et=ot;if(lt.Pc&&(Et+=lt.vd[0],Je&&(Et+=lt.od[0])),0<(Et=0>Et?0:63<Et?63:Et)){var vt=Et;0<lt.wb&&(vt=4<lt.wb?vt>>2:vt>>1)>9-lt.wb&&(vt=9-lt.wb),1>vt&&(vt=1),ht.dd=vt,ht.tc=2*Et+vt,ht.ld=40<=Et?2:15<=Et?1:0}else ht.tc=0;ht.La=Je}}}Ge=0}else Ha(Ne,6,"Frame setup failed"),Ge=Ne.a;if(Ge=Ge==0){if(Ge){Ne.$c=0,0<Ne.Aa||(Ne.Ic=Wh);t:{Ge=Ne.Ic,lt=4*(vt=Ne.za);var pn=32*vt,en=vt+1,Xn=0<Ne.L?vt*(0<Ne.Aa?2:1):0,ln=(Ne.Aa==2?2:1)*vt;if((ht=lt+832+(Je=3*(16*Ge+dp[Ne.L])/2*pn)+(ot=Ne.Fa!=null&&0<Ne.Fa.length?Ne.Kc.c*Ne.Kc.i:0))!=ht)Ge=0;else{if(ht>Ne.Vb){if(Ne.Vb=0,Ne.Ec=i(ht),Ne.Fc=0,Ne.Ec==null){Ge=Ha(Ne,1,"no memory during frame initialization.");break t}Ne.Vb=ht}ht=Ne.Ec,Et=Ne.Fc,Ne.Ac=ht,Ne.Bc=Et,Et+=lt,Ne.Gd=o(pn,Ch),Ne.Hd=0,Ne.rb=o(en+1,Ac),Ne.sb=1,Ne.wa=Xn?o(Xn,Ao):null,Ne.Y=0,Ne.D.Nb=0,Ne.D.wa=Ne.wa,Ne.D.Y=Ne.Y,0<Ne.Aa&&(Ne.D.Y+=vt),t(!0),Ne.oc=ht,Ne.pc=Et,Et+=832,Ne.ya=o(ln,Ah),Ne.aa=0,Ne.D.ya=Ne.ya,Ne.D.aa=Ne.aa,Ne.Aa==2&&(Ne.D.aa+=vt),Ne.R=16*vt,Ne.B=8*vt,vt=(pn=dp[Ne.L])*Ne.R,pn=pn/2*Ne.B,Ne.sa=ht,Ne.ta=Et+vt,Ne.qa=Ne.sa,Ne.ra=Ne.ta+16*Ge*Ne.R+pn,Ne.Ha=Ne.qa,Ne.Ia=Ne.ra+8*Ge*Ne.B+pn,Ne.$c=0,Et+=Je,Ne.mb=ot?ht:null,Ne.nb=ot?Et:null,t(Et+ot<=Ne.Fc+Ne.Vb),Ym(Ne),r(Ne.Ac,Ne.Bc,0,lt),Ge=1}}if(Ge){if(Ue.ka=0,Ue.y=Ne.sa,Ue.O=Ne.ta,Ue.f=Ne.qa,Ue.N=Ne.ra,Ue.ea=Ne.Ha,Ue.Vd=Ne.Ia,Ue.fa=Ne.R,Ue.Rc=Ne.B,Ue.F=null,Ue.J=0,!wf){for(Ge=-255;255>=Ge;++Ge)lm[255+Ge]=0>Ge?-Ge:Ge;for(Ge=-1020;1020>=Ge;++Ge)yf[1020+Ge]=-128>Ge?-128:127<Ge?127:Ge;for(Ge=-112;112>=Ge;++Ge)Hh[112+Ge]=-16>Ge?-16:15<Ge?15:Ge;for(Ge=-255;510>=Ge;++Ge)Vh[255+Ge]=0>Ge?0:255<Ge?255:Ge;wf=1}_o=Hl,Mc=Ph,zu=Ru,fi=pf,Ri=Cc,Jo=_h,Va=gf,is=tp,ar=bf,Cs=B,ol=xf,rp=Xd,om=se,vf=Te,mv=Iu,pv=$l,Ux=ql,Hx=Lh,sr[0]=ff,sr[1]=qd,sr[2]=hf,sr[3]=Ih,sr[4]=Gd,sr[5]=Pc,sr[6]=_c,sr[7]=Co,sr[8]=Mh,sr[9]=rl,Zi[0]=$o,Zi[1]=Dh,Zi[2]=Ox,Zi[3]=Bx,Zi[4]=sl,Zi[5]=Rh,Zi[6]=qo,Lc[0]=ep,Lc[1]=Km,Lc[2]=Vl,Lc[3]=Zm,Lc[4]=_i,Lc[5]=Jd,Lc[6]=Dc,Ge=1}else Ge=0}Ge&&(Ge=(function(ga,_s){for(ga.M=0;ga.M<ga.Va;++ga.M){var ta,tn=ga.Jc[ga.M&ga.Xb],Ft=ga.m,Js=ga;for(ta=0;ta<Js.za;++ta){var In=Ft,ra=Js,Qa=ra.Ac,Vr=ra.Bc+4*ta,yi=ra.zc,bs=ra.ya[ra.aa+ta];if(ra.Qa.Bb?bs.$b=ae(In,ra.Pa.jb[0])?2+ae(In,ra.Pa.jb[2]):ae(In,ra.Pa.jb[1]):bs.$b=0,ra.kc&&(bs.Ad=ae(In,ra.Bd)),bs.Za=!ae(In,145)+0,bs.Za){var Er=bs.Ob,Li=0;for(ra=0;4>ra;++ra){var Cr,pa=yi[0+ra];for(Cr=0;4>Cr;++Cr){pa=xi[Qa[Vr+Cr]][pa];for(var Ia=Ef[ae(In,pa[0])];0<Ia;)Ia=Ef[2*Ia+ae(In,pa[Ia])];pa=-Ia,Qa[Vr+Cr]=pa}a(Er,Li,Qa,Vr,4),Li+=4,yi[0+ra]=pa}}else pa=ae(In,156)?ae(In,128)?1:3:ae(In,163)?2:0,bs.Ob[0]=pa,r(Qa,Vr,pa,4),r(yi,0,pa,4);bs.Dd=ae(In,142)?ae(In,114)?ae(In,183)?1:3:2:0}if(Js.m.Ka)return Ha(ga,7,"Premature end-of-partition0 encountered.");for(;ga.ja<ga.za;++ga.ja){if(Js=tn,In=(Ft=ga).rb[Ft.sb-1],Qa=Ft.rb[Ft.sb+Ft.ja],ta=Ft.ya[Ft.aa+Ft.ja],Vr=Ft.kc?ta.Ad:0)In.la=Qa.la=0,ta.Za||(In.Na=Qa.Na=0),ta.Hc=0,ta.Gc=0,ta.ia=0;else{var Ws,za;if(In=Qa,Qa=Js,Vr=Ft.Pa.Xc,yi=Ft.ya[Ft.aa+Ft.ja],bs=Ft.pb[yi.$b],ra=yi.ad,Er=0,Li=Ft.rb[Ft.sb-1],pa=Cr=0,r(ra,Er,0,384),yi.Za)var zr=0,Ys=Vr[3];else{Ia=i(16);var Ma=In.Na+Li.Na;if(Ma=Do(Qa,Vr[1],Ma,bs.Eb,0,Ia,0),In.Na=Li.Na=(0<Ma)+0,1<Ma)_o(Ia,0,ra,Er);else{var xr=Ia[0]+3>>3;for(Ia=0;256>Ia;Ia+=16)ra[Er+Ia]=xr}zr=1,Ys=Vr[0]}var Ka=15&In.la,Sr=15&Li.la;for(Ia=0;4>Ia;++Ia){var _r=1&Sr;for(xr=za=0;4>xr;++xr)Ka=Ka>>1|(_r=(Ma=Do(Qa,Ys,Ma=_r+(1&Ka),bs.Sc,zr,ra,Er))>zr)<<7,za=za<<2|(3<Ma?3:1<Ma?2:ra[Er+0]!=0),Er+=16;Ka>>=4,Sr=Sr>>1|_r<<7,Cr=(Cr<<8|za)>>>0}for(Ys=Ka,zr=Sr>>4,Ws=0;4>Ws;Ws+=2){for(za=0,Ka=In.la>>4+Ws,Sr=Li.la>>4+Ws,Ia=0;2>Ia;++Ia){for(_r=1&Sr,xr=0;2>xr;++xr)Ma=_r+(1&Ka),Ka=Ka>>1|(_r=0<(Ma=Do(Qa,Vr[2],Ma,bs.Qc,0,ra,Er)))<<3,za=za<<2|(3<Ma?3:1<Ma?2:ra[Er+0]!=0),Er+=16;Ka>>=2,Sr=Sr>>1|_r<<5}pa|=za<<4*Ws,Ys|=Ka<<4<<Ws,zr|=(240&Sr)<<Ws}In.la=Ys,Li.la=zr,yi.Hc=Cr,yi.Gc=pa,yi.ia=43690&pa?0:bs.ia,Vr=!(Cr|pa)}if(0<Ft.L&&(Ft.wa[Ft.Y+Ft.ja]=Ft.gd[ta.$b][ta.Za],Ft.wa[Ft.Y+Ft.ja].La|=!Vr),Js.Ka)return Ha(ga,7,"Premature end-of-file encountered.")}if(Ym(ga),Ft=_s,Js=1,ta=(tn=ga).D,In=0<tn.L&&tn.M>=tn.zb&&tn.M<=tn.Va,tn.Aa==0)t:{if(ta.M=tn.M,ta.uc=In,Zd(tn,ta),Js=1,ta=(za=tn.D).Nb,In=(pa=dp[tn.L])*tn.R,Qa=pa/2*tn.B,Ia=16*ta*tn.R,xr=8*ta*tn.B,Vr=tn.sa,yi=tn.ta-In+Ia,bs=tn.qa,ra=tn.ra-Qa+xr,Er=tn.Ha,Li=tn.Ia-Qa+xr,Sr=(Ka=za.M)==0,Cr=Ka>=tn.Va-1,tn.Aa==2&&Zd(tn,za),za.uc)for(_r=(Ma=tn).D.M,t(Ma.D.uc),za=Ma.yb;za<Ma.Hb;++za){zr=za,Ys=_r;var hs=(Da=(Pr=Ma).D).Nb;Ws=Pr.R;var Da=Da.wa[Da.Y+zr],Oi=Pr.sa,rr=Pr.ta+16*hs*Ws+16*zr,Cn=Da.dd,Sn=Da.tc;if(Sn!=0)if(t(3<=Sn),Pr.L==1)0<zr&&pv(Oi,rr,Ws,Sn+4),Da.La&&Hx(Oi,rr,Ws,Sn),0<Ys&&mv(Oi,rr,Ws,Sn+4),Da.La&&Ux(Oi,rr,Ws,Sn);else{var La=Pr.B,lo=Pr.qa,nc=Pr.ra+8*hs*La+8*zr,eo=Pr.Ha,Pr=Pr.Ia+8*hs*La+8*zr;hs=Da.ld,0<zr&&(is(Oi,rr,Ws,Sn+4,Cn,hs),Cs(lo,nc,eo,Pr,La,Sn+4,Cn,hs)),Da.La&&(rp(Oi,rr,Ws,Sn,Cn,hs),vf(lo,nc,eo,Pr,La,Sn,Cn,hs)),0<Ys&&(Va(Oi,rr,Ws,Sn+4,Cn,hs),ar(lo,nc,eo,Pr,La,Sn+4,Cn,hs)),Da.La&&(ol(Oi,rr,Ws,Sn,Cn,hs),om(lo,nc,eo,Pr,La,Sn,Cn,hs))}}if(tn.ia&&alert("todo:DitherRow"),Ft.put!=null){if(za=16*Ka,Ka=16*(Ka+1),Sr?(Ft.y=tn.sa,Ft.O=tn.ta+Ia,Ft.f=tn.qa,Ft.N=tn.ra+xr,Ft.ea=tn.Ha,Ft.W=tn.Ia+xr):(za-=pa,Ft.y=Vr,Ft.O=yi,Ft.f=bs,Ft.N=ra,Ft.ea=Er,Ft.W=Li),Cr||(Ka-=pa),Ka>Ft.o&&(Ka=Ft.o),Ft.F=null,Ft.J=null,tn.Fa!=null&&0<tn.Fa.length&&za<Ka&&(Ft.J=jr(tn,Ft,za,Ka-za),Ft.F=tn.mb,Ft.F==null&&Ft.F.length==0)){Js=Ha(tn,3,"Could not decode alpha data.");break t}za<Ft.j&&(pa=Ft.j-za,za=Ft.j,t(!(1&pa)),Ft.O+=tn.R*pa,Ft.N+=tn.B*(pa>>1),Ft.W+=tn.B*(pa>>1),Ft.F!=null&&(Ft.J+=Ft.width*pa)),za<Ka&&(Ft.O+=Ft.v,Ft.N+=Ft.v>>1,Ft.W+=Ft.v>>1,Ft.F!=null&&(Ft.J+=Ft.v),Ft.ka=za-Ft.j,Ft.U=Ft.va-Ft.v,Ft.T=Ka-za,Js=Ft.put(Ft))}ta+1!=tn.Ic||Cr||(a(tn.sa,tn.ta-In,Vr,yi+16*tn.R,In),a(tn.qa,tn.ra-Qa,bs,ra+8*tn.B,Qa),a(tn.Ha,tn.Ia-Qa,Er,Li+8*tn.B,Qa))}if(!Js)return Ha(ga,6,"Output aborted.")}return 1})(Ne,Ue)),Ue.bc!=null&&Ue.bc(Ue),Ge&=1}return Ge?(Ne.cb=0,Ge):0})(N,Q)||(C=N.a)}}else C=N.a}C==0&&ue.Oa!=null&&ue.Oa.fd&&(C=em(ue.ba))}ue=C}ce=ue!=0?null:11>ce?ge.f.RGBA.eb:ge.f.kb.y}else ce=null;return ce};var Pf=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function d(F,_){for(var U="",O=0;O<4;O++)U+=String.fromCharCode(F[_++]);return U}function m(F,_){return F[_+0]|F[_+1]<<8}function h(F,_){return(F[_+0]|F[_+1]<<8|F[_+2]<<16)>>>0}function x(F,_){return(F[_+0]|F[_+1]<<8|F[_+2]<<16|F[_+3]<<24)>>>0}new l;var f=[0],b=[0],y=[],w=new l,T=e,A=(function(F,_){var U={},O=0,W=!1,J=0,oe=0;if(U.frames=[],!(function(z,H){for(var ne=0;ne<4;ne++)if(z[H+ne]!="RIFF".charCodeAt(ne))return!0;return!1})(F,_)){for(x(F,_+=4),_+=8;_<F.length;){var G=d(F,_),K=x(F,_+=4);_+=4;var ee=K+(1&K);switch(G){case"VP8 ":case"VP8L":U.frames[O]===void 0&&(U.frames[O]={}),(Y=U.frames[O]).src_off=W?oe:_-8,Y.src_size=J+K+8,O++,W&&(W=!1,J=0,oe=0);break;case"VP8X":(Y=U.header={}).feature_flags=F[_];var pe=_+4;Y.canvas_width=1+h(F,pe),pe+=3,Y.canvas_height=1+h(F,pe),pe+=3;break;case"ALPH":W=!0,J=ee+8,oe=_-8;break;case"ANIM":(Y=U.header).bgcolor=x(F,_),pe=_+4,Y.loop_count=m(F,pe),pe+=2;break;case"ANMF":var V,Y;(Y=U.frames[O]={}).offset_x=2*h(F,_),_+=3,Y.offset_y=2*h(F,_),_+=3,Y.width=1+h(F,_),_+=3,Y.height=1+h(F,_),_+=3,Y.duration=h(F,_),_+=3,V=F[_++],Y.dispose=1&V,Y.blend=V>>1&1}G!="ANMF"&&(_+=ee)}return U}})(T,0);A.response=T,A.rgbaoutput=!0,A.dataurl=!1;var E=A.header?A.header:null,D=A.frames?A.frames:null;if(E){E.loop_counter=E.loop_count,f=[E.canvas_height],b=[E.canvas_width];for(var S=0;S<D.length&&D[S].blend!=0;S++);}var R=D[0],L=w.WebPDecodeRGBA(T,R.src_off,R.src_size,b,f);R.rgba=L,R.imgwidth=b[0],R.imgheight=f[0];for(var I=0;I<b[0]*f[0]*4;I++)y[I]=L[I];return this.width=b,this.height=f,this.data=y,this}/** ==================================================================== 1057 * @license 1058 * jsPDF XMP metadata plugin 1059 * Copyright (c) 2016 Jussi Utunen, [email protected] 1060 * 1061 * Permission is hereby granted, free of charge, to any person obtaining 1062 * a copy of this software and associated documentation files (the 1063 * "Software"), to deal in the Software without restriction, including 1064 * without limitation the rights to use, copy, modify, merge, publish, 1065 * distribute, sublicense, and/or sell copies of the Software, and to 1066 * permit persons to whom the Software is furnished to do so, subject to 1067 * the following conditions: 1068 * 1069 * The above copyright notice and this permission notice shall be 1070 * included in all copies or substantial portions of the Software. 1071 * 1072 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 1073 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 1074 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 1075 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 1076 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 1077 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 1078 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 1079 * ==================================================================== 1080 */function Hge(){var e,t=this.internal.__metadata__.metadata,n=unescape(encodeURIComponent(t));e=this.internal.__metadata__.rawXml?n:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><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>'+n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+e.length+" >>"),this.internal.write("stream"),this.internal.write(e),this.internal.write("endstream"),this.internal.write("endobj")}function Vge(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(e){var t,n,a,r,i,o,c,l,d,m=function(z){return z=z||{},this.isStrokeTransparent=z.isStrokeTransparent||!1,this.strokeOpacity=z.strokeOpacity||1,this.strokeStyle=z.strokeStyle||"#000000",this.fillStyle=z.fillStyle||"#000000",this.isFillTransparent=z.isFillTransparent||!1,this.fillOpacity=z.fillOpacity||1,this.font=z.font||"10px sans-serif",this.textBaseline=z.textBaseline||"alphabetic",this.textAlign=z.textAlign||"left",this.lineWidth=z.lineWidth||1,this.lineJoin=z.lineJoin||"miter",this.lineCap=z.lineCap||"butt",this.path=z.path||[],this.transform=z.transform!==void 0?z.transform.clone():new l,this.globalCompositeOperation=z.globalCompositeOperation||"normal",this.globalAlpha=z.globalAlpha||1,this.clip_path=z.clip_path||[],this.currentPoint=z.currentPoint||new o,this.miterLimit=z.miterLimit||10,this.lastPoint=z.lastPoint||new o,this.lineDashOffset=z.lineDashOffset||0,this.lineDash=z.lineDash||[],this.margin=z.margin||[0,0,0,0],this.prevPageLastElemOffset=z.prevPageLastElemOffset||0,this.ignoreClearRect=typeof z.ignoreClearRect!="boolean"||z.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new h(this),t=this.internal.f2,n=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,r=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,o=this.internal.Point,c=this.internal.Rectangle,l=this.internal.Matrix,d=new m}]);var h=function(z){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var H=z;Object.defineProperty(this,"pdf",{get:function(){return H}});var ne=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return ne},set:function(be){ne=!!be}});var te=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return te},set:function(be){te=!!be}}
1080);var me=0;Object.defineProperty(this,"posX",{get:function(){return me},set:function(be){isNaN(be)||(me=be)}});var fe=0;Object.defineProperty(this,"posY",{get:function(){return fe},set:function(be){isNaN(be)||(fe=be)}}),Object.defineProperty(this,"margin",{get:function(){return d.margin},set:function(be){var Tt;typeof be=="number"?Tt=[be,be,be,be]:((Tt=new Array(4))[0]=be[0],Tt[1]=be.length>=2?be[1]:Tt[0],Tt[2]=be.length>=3?be[2]:Tt[0],Tt[3]=be.length>=4?be[3]:Tt[1]),d.margin=Tt}});var Ae=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Ae},set:function(be){Ae=be}});var xe=0;Object.defineProperty(this,"lastBreak",{get:function(){return xe},set:function(be){xe=be}});var ae=[];Object.defineProperty(this,"pageBreaks",{get:function(){return ae},set:function(be){ae=be}}),Object.defineProperty(this,"ctx",{get:function(){return d},set:function(be){be instanceof m&&(d=be)}}),Object.defineProperty(this,"path",{get:function(){return d.path},set:function(be){d.path=be}});var le=[];Object.defineProperty(this,"ctxStack",{get:function(){return le},set:function(be){le=be}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(be){var Tt;Tt=x(be),this.ctx.fillStyle=Tt.style,this.ctx.isFillTransparent=Tt.a===0,this.ctx.fillOpacity=Tt.a,this.pdf.setFillColor(Tt.r,Tt.g,Tt.b,{a:Tt.a}),this.pdf.setTextColor(Tt.r,Tt.g,Tt.b,{a:Tt.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(be){var Tt=x(be);this.ctx.strokeStyle=Tt.style,this.ctx.isStrokeTransparent=Tt.a===0,this.ctx.strokeOpacity=Tt.a,Tt.a===0?this.pdf.setDrawColor(255,255,255):(Tt.a,this.pdf.setDrawColor(Tt.r,Tt.g,Tt.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(be){["butt","round","square"].indexOf(be)!==-1&&(this.ctx.lineCap=be,this.pdf.setLineCap(be))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(be){isNaN(be)||(this.ctx.lineWidth=be,this.pdf.setLineWidth(be))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(be){["bevel","round","miter"].indexOf(be)!==-1&&(this.ctx.lineJoin=be,this.pdf.setLineJoin(be))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(be){isNaN(be)||(this.ctx.miterLimit=be,this.pdf.setMiterLimit(be))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(be){this.ctx.textBaseline=be}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(be){["right","end","center","left","start"].indexOf(be)!==-1&&(this.ctx.textAlign=be)}});var ze=null,pt=null,xt=null;Object.defineProperty(this,"fontFaces",{get:function(){return xt},set:function(be){ze=null,pt=null,xt=be}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(be){var Tt;if(this.ctx.font=be,(Tt=/^\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(be))!==null){var Xt=Tt[1];Tt[2];var Jt=Tt[3],it=Tt[4];Tt[5];var at=Tt[6],ct=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(it)[2];it=Math.floor(ct==="px"?parseFloat(it)*this.pdf.internal.scaleFactor:ct==="em"?parseFloat(it)*this.pdf.getFontSize():parseFloat(it)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(it);var Ct=(function(zt){var ca,jn,Qt=[],xn=zt.trim();if(xn==="")return hN;if(xn in oI)return[oI[xn]];for(;xn!=="";){switch(jn=null,ca=(xn=lI(xn)).charAt(0)){case'"':case"'":jn=Mge(xn.substring(1),ca);break;default:jn=Lge(xn)}if(jn===null||(Qt.push(jn[0]),(xn=lI(jn[1]))!==""&&xn.charAt(0)!==","))return hN;xn=xn.replace(/^,/,"")}return Qt})(at);if(this.fontFaces){var Ht=(function(zt,ca){var jn=zt.getFontList(),Qt=JSON.stringify(jn);if(ze===null||pt!==Qt){var xn=(function(bn){var rn=[];
vendor: 4,691 bytes, line 1080
1080return Object.keys(bn).forEach(function(He){bn[He].forEach(function(tt){var Ot=null;switch(tt){case"bold":Ot={family:He,weight:"bold"};break;case"italic":Ot={family:He,style:"italic"};break;case"bolditalic":Ot={family:He,weight:"bold",style:"italic"};break;case"":case"normal":Ot={family:He}}Ot!==null&&(Ot.ref={name:He,style:tt},rn.push(Ot))})}),rn})(jn);ze=(function(bn){for(var rn={},He=0;He<bn.length;++He){var tt=pN(bn[He]),Ot=tt.family,Zn=tt.stretch,Tn=tt.style,qt=tt.weight;rn[Ot]=rn[Ot]||{},rn[Ot][Zn]=rn[Ot][Zn]||{},rn[Ot][Zn][Tn]=rn[Ot][Zn][Tn]||{},rn[Ot][Zn][Tn][qt]=tt}return rn})(xn.concat(ca)),pt=Qt}return ze})(this.pdf,this.fontFaces),wn=Ct.map(function(zt){return{family:zt,stretch:"normal",weight:Jt,style:Xt}}),Hn=(function(zt,ca,jn){for(var Qt=(jn=jn||{}).defaultFontFamily||"times",xn=Object.assign({},Ige,jn.genericFontFamilies||{}),bn=null,rn=null,He=0;He<ca.length;++He)if(xn[(bn=pN(ca[He])).family]&&(bn.family=xn[bn.family]),zt.hasOwnProperty(bn.family)){rn=zt[bn.family];break}if(!(rn=rn||zt[Qt]))throw new Error("Could not find a font-family for the rule '"+cI(bn)+"' and default family '"+Qt+"'.");if(rn=(function(tt,Ot){if(Ot[tt])return Ot[tt];var Zn=f7[tt],Tn=Zn<=f7.normal?-1:1,qt=iI(Ot,J$,Zn,Tn);if(!qt)throw new Error("Could not find a matching font-stretch value for "+tt);return qt})(bn.stretch,rn),rn=(function(tt,Ot){if(Ot[tt])return Ot[tt];for(var Zn=G$[tt],Tn=0;Tn<Zn.length;++Tn)if(Ot[Zn[Tn]])return Ot[Zn[Tn]];throw new Error("Could not find a matching font-style for "+tt)})(bn.style,rn),!(rn=(function(tt,Ot){if(Ot[tt])return Ot[tt];if(tt===400&&Ot[500])return Ot[500];if(tt===500&&Ot[400])return Ot[400];var Zn=Rge[tt],Tn=iI(Ot,W$,Zn,tt<400?-1:1);if(!Tn)throw new Error("Could not find a matching font-weight for value "+tt);return Tn})(bn.weight,rn)))throw new Error("Failed to resolve a font for the rule '"+cI(bn)+"'.");return rn})(Ht,wn);this.pdf.setFont(Hn.ref.name,Hn.ref.style)}else{var qe="";(Jt==="bold"||parseInt(Jt,10)>=700||Xt==="bold")&&(qe="bold"),Xt==="italic"&&(qe+="italic"),qe.length===0&&(qe="normal");for(var dt="",Dt={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"},yt=0;yt<Ct.length;yt++){if(this.pdf.internal.getFont(Ct[yt],qe,{noFallback:!0,disableWarning:!0})!==void 0){dt=Ct[yt];break}if(qe==="bolditalic"&&this.pdf.internal.getFont(Ct[yt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)dt=Ct[yt],qe="bold";else if(this.pdf.internal.getFont(Ct[yt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){dt=Ct[yt],qe="normal";break}}if(dt===""){for(var Mt=0;Mt<Ct.length;Mt++)if(Dt[Ct[Mt]]){dt=Dt[Ct[Mt]];break}}dt=dt===""?"Times":dt,this.pdf.setFont(dt,qe)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(be){this.ctx.globalCompositeOperation=be}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(be){this.ctx.globalAlpha=be}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(be){this.ctx.lineDashOffset=be,Y.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(be){this.ctx.lineDash=be,Y.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(be){this.ctx.ignoreClearRect=!!be}})};h.prototype.setLineDash=function(z){this.lineDash=z},h.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},h.prototype.fill=function(){D.call(this,"fill",!1)},h.prototype.stroke=function(){D.call(this,"stroke",!1)},h.prototype.beginPath=function(){this.path=[{type:"begin"}]},h.prototype.moveTo=function(z,H){if(isNaN(z)||isNaN(H))throw Rs.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var ne=this.ctx.transform.applyToPoint(new o(z,H));this.path.push({type:"mt",x:ne.x,y:ne.y}),this.ctx.lastPoint=new o(z,H)},h.prototype.closePath=function(){var z=new o(0,0),H=0;for(H=this.path.length-1;H!==-1;H--)if(this.path[H].type==="begin"&&xs(this.path[H+1])==="object"&&typeof this.path[H+1].x=="number"){z=new o(this.path[H+1].x,this.path[H+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new o(z.x,z.y)},h.prototype.lineTo=function(z,H){if(isNaN(z)||isNaN(H))throw Rs.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to
1080jsPDF.context2d.lineTo");var ne=this.ctx.transform.applyToPoint(new o(z,H));this.path.push({type:"lt",x:ne.x,y:ne.y}),this.ctx.lastPoint=new o(ne.x,ne.y)},h.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),D.call(this,null,!0)},h.prototype.quadraticCurveTo=function(z,H,ne,te){if(isNaN(ne)||isNaN(te)||isNaN(z)||isNaN(H))throw Rs.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var me=this.ctx.transform.applyToPoint(new o(ne,te)),fe=this.ctx.transform.applyToPoint(new o(z,H));this.path.push({type:"qct",x1:fe.x,y1:fe.y,x:me.x,y:me.y}),this.ctx.lastPoint=new o(me.x,me.y)},h.prototype.bezierCurveTo=function(z,H,ne,te,me,fe){if(isNaN(me)||isNaN(fe)||isNaN(z)||isNaN(H)||isNaN(ne)||isNaN(te))throw Rs.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Ae=this.ctx.transform.applyToPoint(new o(me,fe)),xe=this.ctx.transform.applyToPoint(new o(z,H)),ae=this.ctx.transform.applyToPoint(new o(ne,te));this.path.push({type:"bct",x1:xe.x,y1:xe.y,x2:ae.x,y2:ae.y,x:Ae.x,y:Ae.y}),this.ctx.lastPoint=new o(Ae.x,Ae.y)},h.prototype.arc=function(z,H,ne,te,me,fe){if(isNaN(z)||isNaN(H)||isNaN(ne)||isNaN(te)||isNaN(me))throw Rs.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(fe=!!fe,!this.ctx.transform.isIdentity){var Ae=this.ctx.transform.applyToPoint(new o(z,H));z=Ae.x,H=Ae.y;var xe=this.ctx.transform.applyToPoint(new o(0,ne)),ae=this.ctx.transform.applyToPoint(new o(0,0));ne=Math.sqrt(Math.pow(xe.x-ae.x,2)+Math.pow(xe.y-ae.y,2))}Math.abs(me-te)>=2*Math.PI&&(te=0,me=2*Math.PI),this.path.push({type:"arc",x:z,y:H,radius:ne,startAngle:te,endAngle:me,counterclockwise:fe})},h.prototype.arcTo=function(z,H,ne,te,me){throw new Error("arcTo not implemented.")},h.prototype.rect=function(z,H,ne,te){if(isNaN(z)||isNaN(H)||isNaN(ne)||isNaN(te))throw Rs.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(z,H),this.lineTo(z+ne,H),this.lineTo(z+ne,H+te),this.lineTo(z,H+te),this.lineTo(z,H),this.lineTo(z+ne,H),this.lineTo(z,H)},h.prototype.fillRect=function(z,H,ne,te){if(isNaN(z)||isNaN(H)||isNaN(ne)||isNaN(te))throw Rs.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!f.call(this)){var me={};this.lineCap!=="butt"&&(me.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(me.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(z,H,ne,te),this.fill(),me.hasOwnProperty("lineCap")&&(this.lineCap=me.lineCap),me.hasOwnProperty("lineJoin")&&(this.lineJoin=me.lineJoin)}},h.prototype.strokeRect=function(z,H,ne,te){if(isNaN(z)||isNaN(H)||isNaN(ne)||isNaN(te))throw Rs.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");b.call(this)||(this.beginPath(),this.rect(z,H,ne,te),this.stroke())},h.prototype.clearRect=function(z,H,ne,te){if(isNaN(z)||isNaN(H)||isNaN(ne)||isNaN(te))throw Rs.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(z,H,ne,te))},h.prototype.save=function(z){z=typeof z!="boolean"||z;for(var H=this.pdf.internal.getCurrentPageInfo().pageNumber,ne=0;ne<this.pdf.internal.getNumberOfPages();ne++)this.pdf.setPage(ne+1),this.pdf.internal.out("q");if(this.pdf.setPage(H),z){this.ctx.fontSize=this.pdf.internal.getFontSize();var te=new m(this.ctx);this.ctxStack.push(this.ctx),this.ctx=te}},h.prototype.restore=function(z){z=typeof z!="boolean"||z;for(var H=this.pdf.internal.getCurrentPageInfo().pageNumber,ne=0;ne<this.pdf.internal.getNumberOfPages();ne++)this.pdf.setPage(ne+1),this.pdf.internal.out("Q");this.pdf.setPage(H),z&&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 x=function(z){var H,ne,te,me;if(z.isCanvasGradient===!0&&(z=z.getColor()),!z)return{r:0,g:0,b:0,a:0,style:z};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(z))H=0,ne=0,te=0,me=0;else{var fe=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(z);
vendor: 15,596 bytes, line 1080
1080if(fe!==null)H=parseInt(fe[1]),ne=parseInt(fe[2]),te=parseInt(fe[3]),me=1;else if((fe=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(z))!==null)H=parseInt(fe[1]),ne=parseInt(fe[2]),te=parseInt(fe[3]),me=parseFloat(fe[4]);else{if(me=1,typeof z=="string"&&z.charAt(0)!=="#"){var Ae=new F$(z);z=Ae.ok?Ae.toHex():"#000000"}z.length===4?(H=z.substring(1,2),H+=H,ne=z.substring(2,3),ne+=ne,te=z.substring(3,4),te+=te):(H=z.substring(1,3),ne=z.substring(3,5),te=z.substring(5,7)),H=parseInt(H,16),ne=parseInt(ne,16),te=parseInt(te,16)}}return{r:H,g:ne,b:te,a:me,style:z}},f=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},b=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};h.prototype.fillText=function(z,H,ne,te){if(isNaN(H)||isNaN(ne)||typeof z!="string")throw Rs.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(te=isNaN(te)?void 0:te,!f.call(this)){var me=ee(this.ctx.transform.rotation),fe=this.ctx.transform.scaleX;O.call(this,{text:z,x:H,y:ne,scale:fe,angle:me,align:this.textAlign,maxWidth:te})}},h.prototype.strokeText=function(z,H,ne,te){if(isNaN(H)||isNaN(ne)||typeof z!="string")throw Rs.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!b.call(this)){te=isNaN(te)?void 0:te;var me=ee(this.ctx.transform.rotation),fe=this.ctx.transform.scaleX;O.call(this,{text:z,x:H,y:ne,scale:fe,renderingMode:"stroke",angle:me,align:this.textAlign,maxWidth:te})}},h.prototype.measureText=function(z){if(typeof z!="string")throw Rs.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var H=this.pdf,ne=this.pdf.internal.scaleFactor,te=H.internal.getFontSize(),me=H.getStringUnitWidth(z)*te/H.internal.scaleFactor;return new function(fe){var Ae=(fe=fe||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Ae}}),this}({width:me*=Math.round(96*ne/72*1e4)/1e4})},h.prototype.scale=function(z,H){if(isNaN(z)||isNaN(H))throw Rs.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var ne=new l(z,0,0,H,0,0);this.ctx.transform=this.ctx.transform.multiply(ne)},h.prototype.rotate=function(z){if(isNaN(z))throw Rs.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var H=new l(Math.cos(z),Math.sin(z),-Math.sin(z),Math.cos(z),0,0);this.ctx.transform=this.ctx.transform.multiply(H)},h.prototype.translate=function(z,H){if(isNaN(z)||isNaN(H))throw Rs.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var ne=new l(1,0,0,1,z,H);this.ctx.transform=this.ctx.transform.multiply(ne)},h.prototype.transform=function(z,H,ne,te,me,fe){if(isNaN(z)||isNaN(H)||isNaN(ne)||isNaN(te)||isNaN(me)||isNaN(fe))throw Rs.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Ae=new l(z,H,ne,te,me,fe);this.ctx.transform=this.ctx.transform.multiply(Ae)},h.prototype.setTransform=function(z,H,ne,te,me,fe){z=isNaN(z)?1:z,H=isNaN(H)?0:H,ne=isNaN(ne)?0:ne,te=isNaN(te)?1:te,me=isNaN(me)?0:me,fe=isNaN(fe)?0:fe,this.ctx.transform=new l(z,H,ne,te,me,fe)};var y=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};h.prototype.drawImage=function(z,H,ne,te,me,fe,Ae,xe,ae){var le=this.pdf.getImageProperties(z),ze=1,pt=1,xt=1,be=1;te!==void 0&&xe!==void 0&&(xt=xe/te,be=ae/me,ze=le.width/te*xe/te,pt=le.height/me*ae/me),fe===void 0&&(fe=H,Ae=ne,H=0,ne=0),te!==void 0&&xe===void 0&&(xe=te,ae=me),te===void 0&&xe===void 0&&(xe=le.width,ae=le.height);var Tt=this.ctx.transform.decompose(),Xt=ee(Tt.rotate.shx),Jt=new l,it=(Jt=(Jt=(Jt=Jt.multiply(Tt.translate)).multiply(Tt.skew)).multiply(Tt.scale)).applyToRectangle(new c(fe-H*xt,Ae-ne*be,te*ze,me*pt));if(this.autoPaging){for(var at,ct=w.call(this,it),Ct=[],Ht=0;Ht<ct.length;Ht+=1)Ct.indexOf(ct[Ht])===-1&&Ct.push(ct[Ht]);E(Ct);for(var wn=Ct[0],Hn=Ct[Ct.length-1],qe=wn;qe<Hn+1;qe++){this.pdf.setPage(qe);var dt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Dt=qe===1?this.posY+this.margin[0]:this.margin[0],yt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Mt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],zt=qe===1?0:yt+(qe-2)*Mt;if(this.ctx.clip_path.length!==0){var ca=this.path;at=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=A(at,this.posX+this.margin[3],-zt+Dt+this.ctx.prevPageLastElemOffset),S.call(this,"fill",!0),this.path=ca}var jn=JSON.parse(JSON.stringify(it));jn=A([jn],this.posX+this.margin[3],-zt+Dt+this.ctx.prevPageLastElemOffset)[0];var Qt=(qe>wn||qe<Hn)&&y.call(this);Qt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],dt,Mt,null).clip().discardPath()),this.pdf.addImage(z,"JPEG",jn.x,jn.y,jn.w,jn.h,null,null,Xt),Qt&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(z,"JPEG",it.x,it.y,it.w,it.h,null,null,Xt)};var w=function(z,H,ne){var te=[];H=H||this.pdf.internal.pageSize.width,ne=ne||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var me=this.posY+this.ctx.prevPageLastElemOffset;switch(z.type){default:case"mt":case"lt":te.push(Math.floor((z.y+me)/ne)+1);break;case"arc":te.push(Math.floor((z.y+me-z.radius)/ne)+1),te.push(Math.floor((z.y+me+z.radius)/ne)+1);break;case"qct":var fe=pe(this.ctx.lastPoint.x,this.ctx.lastPoint.y,z.x1,z.y1,z.x,z.y);te.push(Math.floor((fe.y+me)/ne)+1),te.push(Math.floor((fe.y+fe.h+me)/ne)+1);break;case"bct":var Ae=V(this.ctx.lastPoint.x,this.ctx.lastPoint.y,z.x1,z.y1,z.x2,z.y2,z.x,z.y);te.push(Math.floor((Ae.y+me)/ne)+1),te.push(Math.floor((Ae.y+Ae.h+me)/ne)+1);break;case"rect":te.push(Math.floor((z.y+me)/ne)+1),te.push(Math.floor((z.y+z.h+me)/ne)+1)}for(var xe=0;xe<te.length;xe+=1)for(;this.pdf.internal.getNumberOfPages()<te[xe];)T.call(this);return te},T=function(){var z=this.fillStyle,H=this.strokeStyle,ne=this.font,te=this.lineCap,me=this.lineWidth,fe=this.lineJoin;this.pdf.addPage(),this.fillStyle=z,this.strokeStyle=H,this.font=ne,this.lineCap=te,this.lineWidth=me,this.lineJoin=fe},A=function(z,H,ne){for(var te=0;te<z.length;te++)switch(z[te].type){case"bct":z[te].x2+=H,z[te].y2+=ne;case"qct":z[te].x1+=H,z[te].y1+=ne;default:z[te].x+=H,z[te].y+=ne}return z},E=function(z){return z.sort(function(H,ne){return H-ne})},D=function(z,H){var ne=this.fillStyle,te=this.strokeStyle,me=this.lineCap,fe=this.lineWidth,Ae=Math.abs(fe*this.ctx.transform.scaleX),xe=this.lineJoin;if(this.autoPaging){for(var ae,le,ze=JSON.parse(JSON.stringify(this.path)),pt=JSON.parse(JSON.stringify(this.path)),xt=[],be=0;be<pt.length;be++)if(pt[be].x!==void 0)for(var Tt=w.call(this,pt[be]),Xt=0;Xt<Tt.length;Xt+=1)xt.indexOf(Tt[Xt])===-1&&xt.push(Tt[Xt]);for(var Jt=0;Jt<xt.length;Jt++)for(;this.pdf.internal.getNumberOfPages()<xt[Jt];)T.call(this);E(xt);for(var it=xt[0],at=xt[xt.length-1],ct=it;ct<at+1;ct++){this.pdf.setPage(ct),this.fillStyle=ne,this.strokeStyle=te,this.lineCap=me,this.lineWidth=Ae,this.lineJoin=xe;var Ct=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ht=ct===1?this.posY+this.margin[0]:this.margin[0],wn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Hn=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],qe=ct===1?0:wn+(ct-2)*Hn;if(this.ctx.clip_path.length!==0){var dt=this.path;ae=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=A(ae,this.posX+this.margin[3],-qe+Ht+this.ctx.prevPageLastElemOffset),S.call(this,z,!0),this.path=dt}if(le=JSON.parse(JSON.stringify(ze)),this.path=A(le,this.posX+this.margin[3],-qe+Ht+this.ctx.prevPageLastElemOffset),H===!1||ct===0){var Dt=(ct>it||ct<at)&&y.call(this);Dt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ct,Hn,null).clip().discardPath()),S.call(this,z,H),Dt&&this.pdf.restoreGraphicsState()}this.lineWidth=fe}this.path=ze}else this.lineWidth=Ae,S.call(this,z,H),this.lineWidth=fe},S=function(z,H){if((z!=="stroke"||H||!b.call(this))&&(z==="stroke"||H||!f.call(this))){for(var ne,te,me=[],fe=this.path,Ae=0;Ae<fe.length;Ae++){var xe=fe[Ae];switch(xe.type){case"begin":me.push({begin:!0});break;case"close":me.push({close:!0});break;case"mt":me.push({start:xe,deltas:[],abs:[]});break;case"lt":var ae=me.length;if(fe[Ae-1]&&!isNaN(fe[Ae-1].x)&&(ne=[xe.x-fe[Ae-1].x,xe.y-fe[Ae-1].y],ae>0)){for(;ae>=0;ae--)if(me[ae-1].close!==!0&&me[ae-1].begin!==!0){me[ae-1].deltas.push(ne),me[ae-1].abs.push(xe);break}}break;case"bct":ne=[xe.x1-fe[Ae-1].x,xe.y1-fe[Ae-1].y,xe.x2-fe[Ae-1].x,xe.y2-fe[Ae-1].y,xe.x-fe[Ae-1].x,xe.y-fe[Ae-1].y],me[me.length-1].deltas.push(ne);break;case"qct":var le=fe[Ae-1].x+2/3*(xe.x1-fe[Ae-1].x),ze=fe[Ae-1].y+2/3*(xe.y1-fe[Ae-1].y),pt=xe.x+2/3*(xe.x1-xe.x),xt=xe.y+2/3*(xe.y1-xe.y),be=xe.x,Tt=xe.y;ne=[le-fe[Ae-1].x,ze-fe[Ae-1].y,pt-fe[Ae-1].x,xt-fe[Ae-1].y,be-fe[Ae-1].x,Tt-fe[Ae-1].y],me[me.length-1].deltas.push(ne);break;case"arc":me.push({deltas:[],abs:[],arc:!0}),Array.isArray(me[me.length-1].abs)&&me[me.length-1].abs.push(xe)}}te=H?null:z==="stroke"?"stroke":"fill";for(var Xt=!1,Jt=0;Jt<me.length;Jt++)if(me[Jt].arc)for(var it=me[Jt].abs,at=0;at<it.length;at++){var ct=it[at];ct.type==="arc"?I.call(this,ct.x,ct.y,ct.radius,ct.startAngle,ct.endAngle,ct.counterclockwise,void 0,H,!Xt):W.call(this,ct.x,ct.y),Xt=!0}else if(me[Jt].close===!0)this.pdf.internal.out("h"),Xt=!1;else if(me[Jt].begin!==!0){var Ct=me[Jt].start.x,Ht=me[Jt].start.y;J.call(this,me[Jt].deltas,Ct,Ht),Xt=!0}te&&F.call(this,te),H&&_.call(this)}},R=function(z){var H=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,ne=H*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return z-ne;case"top":return z+H-ne;case"hanging":return z+H-2*ne;case"middle":return z+H/2-ne;default:return z}},L=function(z){return z+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};h.prototype.createLinearGradient=function(){var z=function(){};return z.colorStops=[],z.addColorStop=function(H,ne){this.colorStops.push([H,ne])},z.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},z.isCanvasGradient=!0,z},h.prototype.createPattern=function(){return this.createLinearGradient()},h.prototype.createRadialGradient=function(){return this.createLinearGradient()};var I=function(z,H,ne,te,me,fe,Ae,xe,ae){for(var le=G.call(this,ne,te,me,fe),ze=0;ze<le.length;ze++){var pt=le[ze];ze===0&&(ae?U.call(this,pt.x1+z,pt.y1+H):W.call(this,pt.x1+z,pt.y1+H)),oe.call(this,z,H,pt.x2,pt.y2,pt.x3,pt.y3,pt.x4,pt.y4)}xe?_.call(this):F.call(this,Ae)},F=function(z){switch(z){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},_=function(){this.pdf.clip(),this.pdf.discardPath()},U=function(z,H){this.pdf.internal.out(n(z)+" "+a(H)+" m")},O=function(z){var H;switch(z.align){case"right":case"end":H="right";break;case"center":H="center";break;default:H="left"}var ne,te,me,fe=this.pdf.getTextDimensions(z.text),Ae=R.call(this,z.y),xe=L.call(this,Ae)-fe.h,ae=this.ctx.transform.applyToPoint(new o(z.x,Ae));if(this.autoPaging){var le=this.ctx.transform.decompose(),ze=new l;ze=(ze=(ze=ze.multiply(le.translate)).multiply(le.skew)).multiply(le.scale);for(var pt=this.ctx.transform.applyToRectangle(new c(z.x,Ae,fe.w,fe.h)),xt=ze.applyToRectangle(new c(z.x,xe,fe.w,fe.h)),be=w.call(this,xt),Tt=[],Xt=0;Xt<be.length;Xt+=1)Tt.indexOf(be[Xt])===-1&&Tt.push(be[Xt]);E(Tt);for(var Jt=Tt[0],it=Tt[Tt.length-1],at=Jt;at<it+1;at++){this.pdf.setPage(at);var ct=at===1?this.posY+this.margin[0]:this.margin[0],Ct=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ht=this.pdf.internal.pageSize.height-this.margin[2],wn=Ht-this.margin[0],Hn=this.pdf.internal.pageSize.width-this.margin[1],qe=Hn-this.margin[3],dt=at===1?0:Ct+(at-2)*wn;if(this.ctx.clip_path.length!==0){var Dt=this.path;ne=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=A(ne,this.posX+this.margin[3],-1*dt+ct),S.call(this,"fill",!0),this.path=Dt}var yt=A([JSON.parse(JSON.stringify(xt))],this.posX+this.margin[3],-dt+ct+this.ctx.prevPageLastElemOffset)[0];z.scale>=.01&&(te=this.pdf.internal.getFontSize(),this.pdf.setFontSize(te*z.scale),me=this.lineWidth,this.lineWidth=me*z.scale);var Mt=this.autoPaging!=="text";if(Mt||yt.y+yt.h<=Ht){if(Mt||yt.y>=ct&&yt.x<=Hn){var zt=Mt?z.text:this.pdf.splitTextToSize(z.text,z.maxWidth||Hn-yt.x)[0],ca=A([JSON.parse(JSON.stringify(pt))],this.posX+this.margin[3],-dt+ct+this.ctx.prevPageLastElemOffset)[0],jn=Mt&&(at>Jt||at<it)&&y.call(this);jn&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],qe,wn,null).clip().discardPath()),this.pdf.text(zt,ca.x,ca.y,{angle:z.angle,align:H,renderingMode:z.renderingMode}),jn&&this.pdf.restoreGraphicsState()}}else yt.y<Ht&&(this.ctx.prevPageLastElemOffset+=Ht-yt.y);z.scale>=.01&&(this.pdf.setFontSize(te),this.lineWidth=me)}}else z.scale>=.01&&(te=this.pdf.internal.getFontSize(),this.pdf.setFontSize(te*z.scale),me=this.lineWidth,this.lineWidth=me*z.scale),this.pdf.text(z.text,ae.x+this.posX,ae.y+this.posY,{angle:z.angle,align:H,renderingMode:z.renderingMode,maxWidth:z.maxWidth}),z.scale>=.01&&(this.pdf.setFontSize(te),this.lineWidth=me)},W=function(z,H,ne,te){ne=ne||0,te=te||0,this.pdf.internal.out(n(z+ne)+" "+a(H+te)+" l")},J=function(z,H,ne){return this.pdf.lines(z,H,ne,null,null)},oe=function(z,H,ne,te,me,fe,Ae,xe){this.pdf.internal.out([t(r(ne+z)),t(i(te+H)),t(r(me+z)),t(i(fe+H)),t(r(Ae+z)),t(i(xe+H)),"c"].join(" "))},G=function(z,H,ne,te){for(var me=2*Math.PI,fe=Math.PI/2;H>ne;)H-=me;var Ae=Math.abs(ne-H);Ae<me&&te&&(Ae=me-Ae);for(var xe=[],ae=te?-1:1,le=H;Ae>1e-5;){var ze=le+ae*Math.min(Ae,fe);xe.push(K.call(this,z,le,ze)),Ae-=Math.abs(ze-le),le=ze}return xe},K=function(z,H,ne){var te=(ne-H)/2,me=z*Math.cos(te),fe=z*Math.sin(te),Ae=me,xe=-fe,ae=Ae*Ae+xe*xe,le=ae+Ae*me+xe*fe,ze=4/3*(Math.sqrt(2*ae*le)-le)/(Ae*fe-xe*me),pt=Ae-ze*xe,xt=xe+ze*Ae,be=pt,Tt=-xt,Xt=te+H,Jt=Math.cos(Xt),it=Math.sin(Xt);return{x1:z*Math.cos(H),y1:z*Math.sin(H),x2:pt*Jt-xt*it,y2:pt*it+xt*Jt,x3:be*Jt-Tt*it,y3:be*it+Tt*Jt,x4:z*Math.cos(ne),y4:z*Math.sin(ne)}},ee=function(z){return 180*z/Math.PI},pe=function(z,H,ne,te,me,fe){var Ae=z+.5*(ne-z),xe=H+.5*(te-H),ae=me+.5*(ne-me),le=fe+.5*(te-fe),ze=Math.min(z,me,Ae,ae),pt=Math.max(z,me,Ae,ae),xt=Math.min(H,fe,xe,le),be=Math.max(H,fe,xe,le);return new c(ze,xt,pt-ze,be-xt)},V=function(z,H,ne,te,me,fe,Ae,xe){var ae,le,ze,pt,xt,be,Tt,Xt,Jt,it,at,ct,Ct,Ht,wn=ne-z,Hn=te-H,qe=me-ne,dt=fe-te,Dt=Ae-me,yt=xe-fe;for(le=0;le<41;le++)Jt=(Tt=(ze=z+(ae=le/40)*wn)+ae*((xt=ne+ae*qe)-ze))+ae*(xt+ae*(me+ae*Dt-xt)-Tt),it=(Xt=(pt=H+ae*Hn)+ae*((be=te+ae*dt)-pt))+ae*(be+ae*(fe+ae*yt-be)-Xt),le==0?(at=Jt,ct=it,Ct=Jt,Ht=it):(at=Math.min(at,Jt),ct=Math.min(ct,it),Ct=Math.max(Ct,Jt),Ht=Math.max(Ht,it));return new c(Math.round(at),Math.round(ct),Math.round(Ct-at),Math.round(Ht-ct))},Y=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var z,H,ne=(z=this.ctx.lineDash,H=this.ctx.lineDashOffset,JSON.stringify({lineDash:z,lineDashOffset:H}));this.prevLineDash!==ne&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=ne)}}})(En.API),(function(e){var t=function(o){var c,l,d,m,h,x,f,b,y,w;for(l=[],d=0,m=(o+=c="\0\0\0\0".slice(o.length%4||4)).length;m>d;
1080d+=4)(h=(o.charCodeAt(d)<<24)+(o.charCodeAt(d+1)<<16)+(o.charCodeAt(d+2)<<8)+o.charCodeAt(d+3))!==0?(x=(h=((h=((h=((h=(h-(w=h%85))/85)-(y=h%85))/85)-(b=h%85))/85)-(f=h%85))/85)%85,l.push(x+33,f+33,b+33,y+33,w+33)):l.push(122);return(function(T,A){for(var E=A;E>0;E--)T.pop()})(l,c.length),String.fromCharCode.apply(String,l)+"~>"},n=function(o){var c,l,d,m,h,x=String,f="length",b=255,y="charCodeAt",w="slice",T="replace";for(o[w](-2),o=o[w](0,-2)[T](/\s/g,"")[T]("z","!!!!!"),d=[],m=0,h=(o+=c="uuuuu"[w](o[f]%5||5))[f];h>m;m+=5)l=52200625*(o[y](m)-33)+614125*(o[y](m+1)-33)+7225*(o[y](m+2)-33)+85*(o[y](m+3)-33)+(o[y](m+4)-33),d.push(b&l>>24,b&l>>16,b&l>>8,b&l);return(function(A,E){for(var D=E;D>0;D--)A.pop()})(d,c[f]),x.fromCharCode.apply(x,d)},a=function(o){return o.split("").map(function(c){return("0"+c.charCodeAt().toString(16)).slice(-2)}).join("")+">"},r=function(o){var c=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((o=o.replace(/\s/g,"")).indexOf(">")!==-1&&(o=o.substr(0,o.indexOf(">"))),o.length%2&&(o+="0"),c.test(o)===!1)return"";for(var l="",d=0;d<o.length;d+=2)l+=String.fromCharCode("0x"+(o[d]+o[d+1]));return l},i=function(o){for(var c=new Uint8Array(o.length),l=o.length;l--;)c[l]=o.charCodeAt(l);return(c=c7(c)).reduce(function(d,m){return d+String.fromCharCode(m)},"")};e.processDataByFilters=function(o,c){var l=0,d=o||"",m=[];for(typeof(c=c||[])=="string"&&(c=[c]),l=0;l<c.length;l+=1)switch(c[l]){case"ASCII85Decode":case"/ASCII85Decode":d=n(d),m.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":d=t(d),m.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":d=r(d),m.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":d=a(d),m.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":d=i(d),m.push("/FlateDecode");break;default:throw new Error('The filter: "'+c[l]+'" is not implemented')}return{data:d,reverseChain:m.reverse().join(" ")}}})(En.API),(function(e){e.loadFile=function(t,n,a){return(function(r,i,o){i=i!==!1,o=typeof o=="function"?o:function(){};var c=void 0;try{c=(function(l,d,m){var h=new XMLHttpRequest,x=0,f=function(b){var y=b.length,w=[],T=String.fromCharCode;for(x=0;x<y;x+=1)w.push(T(255&b.charCodeAt(x)));return w.join("")};if(h.open("GET",l,!d),h.overrideMimeType("text/plain; charset=x-user-defined"),d===!1&&(h.onload=function(){h.status===200?m(f(this.responseText)):m(void 0)}),h.send(null),d&&h.status===200)return f(h.responseText)})(r,i,o)}catch{}return c})(t,n,a)},e.allowFsRead=void 0,e.loadImageFile=e.loadFile})(En.API),(function(e){function t(){return(Kn.html2canvas?Promise.resolve(Kn.html2canvas):we(()=>import("./html2canvas.esm-B0tyYwQk.js"),[])).catch(function(c){return Promise.reject(new Error("Could not load html2canvas: "+c))}).then(function(c){return c.default?c.default:c})}function n(){return(Kn.DOMPurify?Promise.resolve(Kn.DOMPurify):we(()=>import("./purify.es-CKWrWwPe.js"),[])).catch(function(c){return Promise.reject(new Error("Could not load dompurify: "+c))}).then(function(c){return c.default?c.default:c})}var a=function(c){var l=xs(c);return l==="undefined"?"undefined":l==="string"||c instanceof String?"string":l==="number"||c instanceof Number?"number":l==="function"||c instanceof Function?"function":c&&c.constructor===Array?"array":c&&c.nodeType===1?"element":l==="object"?"object":"unknown"},r=function(c,l){var d=document.createElement(c);for(var m in l.className&&(d.className=l.className),l.innerHTML&&l.dompurify&&(d.innerHTML=l.dompurify.sanitize(l.innerHTML)),l.style)d.style[m]=l.style[m];return d},i=function c(l,d){for(var m=l.nodeType===3?document.createTextNode(l.nodeValue):l.cloneNode(!1),h=l.firstChild;h;h=h.nextSibling)d!==!0&&h.nodeType===1&&h.nodeName==="SCRIPT"||m.appendChild(c(h,d));return l.nodeType===1&&(l.nodeName==="CANVAS"?(m.width=l.width,m.height=l.height,m.getContext("2d").drawImage(l,0,0)):l.nodeName!=="TEXTAREA"&&l.nodeName!=="SELECT"||(m.value=l.value),m.addEventListener("load",function(){m.scrollTop=l.scrollTop,m.scrollLeft=l.scrollLeft},!0)),m},o=function c(l){var d=Object.assign(c.convert(Promise.resolve()),JSON.parse(JSON.stringify(c.template))),m=c.convert(Promise.resolve(),d);return(m=m.setProgress(1,c,1,[c])).set(l)};(o.prototype=Object.create(Promise.prototype)).constructor=o,o.convert=function(c,l){return c.__proto__=l||o.prototype,c},o.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"}},o.prototype.from=function(c,l){return this.then(function(){switch(l=l||(function(d){switch(a(d)){case"string":return"string";case"element":return d.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(c),l){case"string":return this.then(n).then(function(d){return this.set({src:r("div",{innerHTML:c,dompurify:d})})});case"element":return this.set({src:c});case"canvas":return this.set({canvas:c});case"img":return this.set({img:c});default:return this.error("Unknown source type.")}})},o.prototype.to=function(c){switch(c){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();
vendor: 13,811 bytes, lines 1080-1086
1080case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},o.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 c={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=i(this.prop.src,this.opt.html2canvas.javascriptEnabled);l.tagName==="BODY"&&(c.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=r("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=r("div",{className:"html2pdf__container",style:c}),this.prop.container.appendChild(l),this.prop.container.firstChild.appendChild(r("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"})},o.prototype.toCanvas=function(){var c=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(c).then(t).then(function(l){var d=Object.assign({},this.opt.html2canvas);return delete d.onrendered,l(this.prop.container,d)}).then(function(l){(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},o.prototype.toContext2d=function(){var c=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(c).then(t).then(function(l){var d=this.opt.jsPDF,m=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,x=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 x.onrendered,d.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,d.context2d.posX=this.opt.x,d.context2d.posY=this.opt.y,d.context2d.margin=this.opt.margin,d.context2d.fontFaces=m,m)for(var f=0;f<m.length;++f){var b=m[f],y=b.src.find(function(w){return w.format==="truetype"});y&&d.addFont(y.url,b.ref.name,b.ref.style)}return x.windowHeight=x.windowHeight||0,x.windowHeight=x.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):x.windowHeight,d.context2d.save(!0),l(this.prop.container,x)}).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)})},o.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var c=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=c})},o.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},o.prototype.output=function(c,l,d){return(d=d||"pdf").toLowerCase()==="img"||d.toLowerCase()==="image"?this.outputImg(c,l):this.outputPdf(c,l)},o.prototype.outputPdf=function(c,l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(c,l)})},o.prototype.outputImg=function(c){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(c){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 "'+c+'" is not supported.'}})},o.prototype.save=function(c){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(c?{filename:c}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},o.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},o.prototype.set=function(c){if(a(c)!=="object")return this;var l=Object.keys(c||{}).map(function(d){if(d in o.template.prop)return function(){this.prop[d]=c[d]};switch(d){case"margin":return this.setMargin.bind(this,c.margin);case"jsPDF":return function(){return this.opt.jsPDF=c.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,c.pageSize);default:return function(){this.opt[d]=c[d]}}},this);return this.then(function(){return this.thenList(l)})},o.prototype.get=function(c,l){return this.then(function(){var d=c in o.template.prop?this.prop[c]:this.opt[c];return l?l(d):d})},o.prototype.setMargin=function(c){return this.then(function(){switch(a(c)){case"number":c=[c,c,c,c];case"array":if(c.length===2&&(c=[c[0],c[1],c[0],c[1]]),c.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=c}).then(this.setPageSize)},o.prototype.setPageSize=function(c){function l(d,m){return Math.floor(d*m/72*96)}return this.then(function(){(c=c||En.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(c.inner={width:c.width-this.opt.margin[1]-this.opt.margin[3],height:c.height-this.opt.margin[0]-this.opt.margin[2]},c.inner.px={width:l(c.inner.width,c.k),height:l(c.inner.height,c.k)},c.inner.ratio=c.inner.height/c.inner.width),this.prop.pageSize=c})},o.prototype.setProgress=function(c,l,d,m){return c!=null&&(this.progress.val=c),l!=null&&(this.progress.state=l),d!=null&&(this.progress.n=d),m!=null&&(this.progress.stack=m),this.progress.ratio=this.progress.val/this.progress.state,this},o.prototype.updateProgress=function(c,l,d,m){return this.setProgress(c?this.progress.val+c:null,l||null,d?this.progress.n+d:null,m?this.progress.stack.concat(m):null)},o.prototype.then=function(c,l){var d=this;return this.thenCore(c,l,function(m,h){return d.updateProgress(null,null,1,[m]),Promise.prototype.then.call(this,function(x){return d.updateProgress(null,m),x}).then(m,h).then(function(x){return d.updateProgress(1),x})})},o.prototype.thenCore=function(c,l,d){d=d||Promise.prototype.then;var m=this;c&&(c=c.bind(m)),l&&(l=l.bind(m));var h=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?m:o.convert(Object.assign({},m),Promise.prototype),x=d.call(h,c,l);return o.convert(x,m.__proto__)},o.prototype.thenExternal=function(c,l){return Promise.prototype.then.call(this,c,l)},o.prototype.thenList=function(c){var l=this;return c.forEach(function(d){l=l.thenCore(d)}),l},o.prototype.catch=function(c){c&&(c=c.bind(this));var l=Promise.prototype.catch.call(this,c);return o.convert(l,this)},o.prototype.catchExternal=function(c){return Promise.prototype.catch.call(this,c)},o.prototype.error=function(c){return this.then(function(){throw new Error(c)})},o.prototype.using=o.prototype.set,o.prototype.saveAs=o.prototype.save,o.prototype.export=o.prototype.output,o.prototype.run=o.prototype.then,En.getPageSize=function(c,l,d){if(xs(c)==="object"){var m=c;c=m.orientation,l=m.unit||l,d=m.format||d}l=l||"mm",d=d||"a4",c=(""+(c||"P")).toLowerCase();var h,x=(""+d).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 b,y=0,w=0;if(f.hasOwnProperty(x))y=f[x][1]/h,w=f[x][0]/h;else try{y=d[1],w=d[0]}catch{throw new Error("Invalid format: "+d)}if(c==="p"||c==="portrait")c="p",w>y&&(b=w,w=y,y=b);else{if(c!=="l"&&c!=="landscape")throw"Invalid orientation: "+c;c="l",y>w&&(b=w,w=y,y=b)}return{width:w,height:y,unit:l,k:h,orientation:c}},e.html=function(c,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(pN):null;var d=new o(l);return l.worker?d:d.from(c).doCallback()}})(En.API),En.API.addJS=function(e){var t,n,a=(function(r){for(var i="",o=0;o<r.length;o++){var c=r[o];if(c==="("||c===")"){for(var l=0,d=o-1;d>=0&&r[d]==="\\";d--)l++;i+=l%2==0?"\\"+c:c}else i+=c}return i})(e);return this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(t+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),n=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+a+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){t!==void 0&&n!==void 0&&this.internal.out("/Names <</JavaScript "+t+" 0 R>>")}),this},(function(e){var t;e.events.push(["postPutResources",function(){var n=this,a=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var r=n.outline.render().split(/\r\n/),i=0;i<r.length;i++){var o=r[i],c=a.exec(o);if(c!=null){var l=c[1];n.internal.newObjectDeferredBegin(l,!1)}n.internal.write(o)}if(this.outline.createNamedDestinations){var d=this.internal.pages.length,m=[];for(i=0;i<d;i++){var h=n.internal.newObject();m.push(h);var x=n.internal.getPageInfo(i+1);n.internal.write("<< /D["+x.objId+" 0 R /XYZ null null null]>> endobj")}var f=n.internal.newObject();for(n.internal.write("<< /Names [ "),i=0;i<m.length;i++)n.internal.write("(page_"+(i+1)+")"+m[i]+" 0 R");n.internal.write(" ] >>","endobj"),t=n.internal.newObject(),n.internal.write("<< /Dests "+f+" 0 R"),n.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){var n=this;n.outline.root.children.length>0&&(n.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&n.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var n=this;n.outline={createNamedDestinations:!1,root:{children:[]}},n.outline.add=function(a,r,i){var o={title:r,options:i,children:[]};return a==null&&(a=this.root),a.children.push(o),o},n.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=n,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},n.outline.genIds_r=function(a){a.id=n.internal.newObjectDeferred();for(var r=0;r<a.children.length;r++)this.genIds_r(a.children[r])},n.outline.renderRoot=function(a){this.objStart(a),this.line("/Type /Outlines"),a.children.length>0&&(this.line("/First "+this.makeRef(a.children[0])),this.line("/Last "+this.makeRef(a.children[a.children.length-1]))),this.line("/Count "+this.count_r({count:0},a)),this.objEnd()},n.outline.renderItems=function(a){for(var r=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<a.children.length;i++){var o=a.children[i];this.objStart(o),this.line("/Title "+this.makeString(o.title)),this.line("/Parent "+this.makeRef(a)),i>0&&this.line("/Prev "+this.makeRef(a.children[i-1])),i<a.children.length-1&&this.line("/Next "+this.makeRef(a.children[i+1])),o.children.length>0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var c=this.count=this.count_r({count:0},o);if(c>0&&this.line("/Count "+c),o.options&&o.options.pageNumber){var l=n.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+l.objId+" 0 R /XYZ 0 "+r(0)+" 0]")}this.objEnd()}for(var d=0;d<a.children.length;d++)this.renderItems(a.children[d])},n.outline.line=function(a){this.ctx.val+=a+`\r 1081`},n.outline.makeRef=function(a){return a.id+" 0 R"},n.outline.makeString=function(a){return"("+n.internal.pdfEscape(a)+")"},n.outline.objStart=function(a){this.ctx.val+=`\r 1082`+a.id+` 0 obj\r 1083<<\r 1084`},n.outline.objEnd=function(){this.ctx.val+=`>> \r 1085endobj\r 1086`},n.outline.count_r=function(a,r){for(var i=0;i<r.children.length;i++)a.count++,this.count_r(a,r.children[i]);return a.count}}])})(En.API),(function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(n,a,r,i,o,c){var l,d=this.decode.DCT_DECODE,m=null;if(typeof n=="string"||this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n)){switch(n=o||n,n=this.__addimage__.isArrayBuffer(n)?new Uint8Array(n):n,l=(function(h){for(var x,f=256*h.charCo
1086deAt(4)+h.charCodeAt(5),b=h.length,y={width:0,height:0,numcomponents:1},w=4;w<b;w+=2){if(w+=f,t.indexOf(h.charCodeAt(w+1))!==-1){x=256*h.charCodeAt(w+5)+h.charCodeAt(w+6),y={width:256*h.charCodeAt(w+7)+h.charCodeAt(w+8),height:x,numcomponents:h.charCodeAt(w+9)};break}f=256*h.charCodeAt(w+2)+h.charCodeAt(w+3)}return y})(n=this.__addimage__.isArrayBufferView(n)?this.__addimage__.arrayBufferToBinaryString(n):n),l.numcomponents){case 1:c=this.color_spaces.DEVICE_GRAY;break;case 4:c=this.color_spaces.DEVICE_CMYK;break;case 3:c=this.color_spaces.DEVICE_RGB}m={data:n,width:l.width,height:l.height,colorSpace:c,bitsPerComponent:8,filter:d,index:a,alias:r}}return m}})(En.API),En.API.processPNG=function(e,t,n,a){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var r,i=vge(e,{checkCrc:!0}),o=i.width,c=i.height,l=i.channels,d=i.palette,m=i.depth;r=d&&l===1?(function(I){for(var F=I.width,_=I.height,U=I.data,O=I.palette,W=I.depth,J=!1,oe=[],G=[],K=void 0,ee=!1,pe=0,V=0;V<O.length;V++){var Y=fR(O[V],4),z=Y[0],H=Y[1],ne=Y[2],te=Y[3];oe.push(z,H,ne),te!=null&&(te===0?(pe++,G.length<1&&G.push(V)):te<255&&(ee=!0))}if(ee||pe>1){J=!0,G=void 0;var me=F*_;K=new Uint8Array(me);for(var fe=new DataView(U.buffer),Ae=0;Ae<me;Ae++){var xe=fN(fe,Ae,W),ae=fR(O[xe],4)[3];K[Ae]=ae}}else pe===0&&(G=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:J?8:void 0,colorBytes:U,alphaBytes:K,needSMask:J,palette:oe,mask:G}})(i):l===2||l===4?(function(I){for(var F=I.data,_=I.width,U=I.height,O=I.channels,W=I.depth,J=O===2?"DeviceGray":"DeviceRGB",oe=O-1,G=_*U,K=oe,ee=G*K,pe=1*G,V=Math.ceil(ee*W/8),Y=Math.ceil(pe*W/8),z=new Uint8Array(V),H=new Uint8Array(Y),ne=new DataView(F.buffer),te=new DataView(z.buffer),me=new DataView(H.buffer),fe=!1,Ae=0;Ae<G;Ae++){for(var xe=Ae*O,ae=0;ae<K;ae++)bI(te,fN(ne,xe+ae,W),Ae*K+ae,W);var le=fN(ne,xe+K,W);le<(1<<W)-1&&(fe=!0),bI(me,le,1*Ae,W)}return{colorSpace:J,colorsPerPixel:oe,sMaskBitsPerComponent:fe?W:void 0,colorBytes:z,alphaBytes:H,needSMask:fe}})(i):(function(I){var F=I.data,_=I.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:_,colorsPerPixel:_==="DeviceGray"?1:3,colorBytes:F instanceof Uint16Array?(function(U){for(var O=U.length,W=new Uint8Array(2*O),J=new DataView(W.buffer,W.byteOffset,W.byteLength),oe=0;oe<O;oe++)J.setUint16(2*oe,U[oe],!1);return W})(F):F,needSMask:!1}})(i);var h,x,f,b=r,y=b.colorSpace,w=b.colorsPerPixel,T=b.sMaskBitsPerComponent,A=b.colorBytes,E=b.alphaBytes,D=b.needSMask,S=b.palette,R=b.mask,L=null;return a!==En.API.image_compression.NONE&&typeof c7=="function"?(L=(function(I){var F;switch(I){case En.API.image_compression.FAST:F=11;break;case En.API.image_compression.MEDIUM:F=13;break;case En.API.image_compression.SLOW:F=14;break;default:F=12}return F})(a),h=this.decode.FLATE_DECODE,x="/Predictor ".concat(L," /Colors ").concat(w," /BitsPerComponent ").concat(m," /Columns ").concat(o),e=pI(A,Math.ceil(o*w*m/8),w,m,a),D&&(f=pI(E,Math.ceil(o*T/8),1,T,a))):(h=void 0,x=void 0,e=A,D&&(f=E)),(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:n,data:e,index:t,filter:h,decodeParameters:x,transparency:R,palette:S,sMask:f,predictor:L,width:o,height:c,bitsPerComponent:m,sMaskBitsPerComponent:T,colorSpace:y}}},(function(e){e.processGIF89A=function(t,n,a,r){var i=new Uge(t),o=i.width,c=i.height,l=[];i.decodeAndBlitFrameRGBA(0,l);var d={data:l,width:o,height:c},m=new gN(100).encode(d,100);return e.processJPEG.call(this,m,n,a,r)},e.processGIF87A=e.processGIF89A})(En.API),iu.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 n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:r,green:a,blue:n,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},iu.prototype.parseBGR=function(){this.pos=this.offset;var e="bit"+this.bitPP,t=this.width*this.height*4;if(t>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(t);try{this[e]()}catch(n){Rs.log("bit decode error:"+n)}},iu.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),n=t%4;
vendor: 4,884 bytes, line 1086
1086for(e=this.height-1;e>=0;e--){for(var a=this.bottom_up?e:this.height-1-e,r=0;r<t;r++)for(var i=this.datav.getUint8(this.pos++,!0),o=a*this.width*4+8*r*4,c=0;c<8&&8*r+c<this.width;c++){var l=this.palette[i>>7-c&1];this.data[o+4*c]=l.blue,this.data[o+4*c+1]=l.green,this.data[o+4*c+2]=l.red,this.data[o+4*c+3]=255}n!==0&&(this.pos+=4-n)}},iu.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;n>=0;n--){for(var a=this.bottom_up?n:this.height-1-n,r=0;r<e;r++){var i=this.datav.getUint8(this.pos++,!0),o=a*this.width*4+2*r*4,c=i>>4,l=15&i,d=this.palette[c];if(this.data[o]=d.blue,this.data[o+1]=d.green,this.data[o+2]=d.red,this.data[o+3]=255,2*r+1>=this.width)break;d=this.palette[l],this.data[o+4]=d.blue,this.data[o+4+1]=d.green,this.data[o+4+2]=d.red,this.data[o+4+3]=255}t!==0&&(this.pos+=4-t)}},iu.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,a=0;a<this.width;a++){var r=this.datav.getUint8(this.pos++,!0),i=n*this.width*4+4*a;if(r<this.palette.length){var o=this.palette[r];this.data[i]=o.red,this.data[i+1]=o.green,this.data[i+2]=o.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}e!==0&&(this.pos+=4-e)}},iu.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var a=this.bottom_up?n:this.height-1-n,r=0;r<this.width;r++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(i&t)/t*255|0,c=(i>>5&t)/t*255|0,l=(i>>10&t)/t*255|0,d=i>>15?255:0,m=a*this.width*4+4*r;this.data[m]=l,this.data[m+1]=c,this.data[m+2]=o,this.data[m+3]=d}this.pos+=e}},iu.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),n=parseInt("111111",2),a=this.height-1;a>=0;a--){for(var r=this.bottom_up?a:this.height-1-a,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var c=(o&t)/t*255|0,l=(o>>5&n)/n*255|0,d=(o>>11)/t*255|0,m=r*this.width*4+4*i;this.data[m]=d,this.data[m+1]=l,this.data[m+2]=c,this.data[m+3]=255}this.pos+=e}},iu.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var a=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*n;this.data[o]=i,this.data[o+1]=r,this.data[o+2]=a,this.data[o+3]=255}this.pos+=this.width%4}},iu.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var a=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),c=t*this.width*4+4*n;this.data[c]=i,this.data[c+1]=r,this.data[c+2]=a,this.data[c+3]=o}},iu.prototype.getData=function(){return this.data},(function(e){e.processBMP=function(t,n,a,r){var i=new iu(t,!1),o=i.width,c=i.height,l={data:i.getData(),width:o,height:c},d=new gN(100).encode(l,100);return e.processJPEG.call(this,d,n,a,r)}})(En.API),yI.prototype.getData=function(){return this.data},(function(e){e.processWEBP=function(t,n,a,r){var i=new yI(t),o=i.width,c=i.height,l={data:i.getData(),width:o,height:c},d=new gN(100).encode(l,100);return e.processJPEG.call(this,d,n,a,r)}})(En.API),En.API.processRGBA=function(e,t,n){for(var a=e.data,r=a.length,i=new Uint8Array(r/4*3),o=new Uint8Array(r/4),c=0,l=0,d=0;d<r;d+=4){var m=a[d],h=a[d+1],x=a[d+2],f=a[d+3];i[c++]=m,i[c++]=h,i[c++]=x,o[l++]=f}var b=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:b,index:t,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},En.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 (Canad
1086a)","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},ig=En.API,Sy=ig.getCharWidthsArray=function(e,t){var n,a,r=(t=t||{}).font||this.internal.getFont(),i=t.fontSize||this.internal.getFontSize(),o=t.charSpace||this.internal.getCharSpace(),c=t.widths?t.widths:r.metadata.Unicode.widths,l=c.fof?c.fof:1,d=t.kerning?t.kerning:r.metadata.Unicode.kerning,m=d.fof?d.fof:1,h=t.doKerning!==!1,x=0,f=e.length,b=0,y=c[0]||l,w=[];for(n=0;n<f;n++)a=e.charCodeAt(n),typeof r.metadata.widthOfString=="function"?w.push((r.metadata.widthOfGlyph(r.metadata.characterToGlyph(a))+o*(1e3/i)||0)/1e3):(x=h&&xs(d[a])==="object"&&!isNaN(parseInt(d[a][b],10))?d[a][b]/m:0,w.push((c[a]||y)/l+x)),b=a;return w},uI=ig.getStringUnitWidth=function(e,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),a=t.font||this.internal.getFont(),r=t.charSpace||this.internal.getCharSpace();return ig.processArabic&&(e=ig.processArabic(e)),typeof a.metadata.widthOfString=="function"?a.metadata.widthOfString(e,n,r)/n:Sy.apply(this,arguments).reduce(function(i,o){return i+o},0)},dI=function(e,t,n,a){for(var r=[],i=0,o=e.length,c=0;i!==o&&c+t[i]<n;)c+=t[i],i++;r.push(e.slice(0,i));var l=i;for(c=0;i!==o;)c+t[i]>
vendor: 3,231 bytes, lines 1086-1088
1086a&&(r.push(e.slice(l,i)),c=0,l=i),c+=t[i],i++;return l!==i&&r.push(e.slice(l,i)),r},mI=function(e,t,n){n||(n={});var a,r,i,o,c,l,d,m=[],h=[m],x=n.textIndent||0,f=0,b=0,y=e.split(" "),w=Sy.apply(this,[" ",n])[0];if(l=n.lineIndent===-1?y[0].length+2:n.lineIndent||0){var T=Array(l).join(" "),A=[];y.map(function(D){(D=D.split(/\s*\n/)).length>1?A=A.concat(D.map(function(S,R){return(R&&S.length?` 1087`:"")+S})):A.push(D[0])}),y=A,l=uI.apply(this,[T,n])}for(i=0,o=y.length;i<o;i++){var E=0;if(a=y[i],l&&a[0]==` 1088`&&(a=a.substr(1),E=1),x+f+(b=(r=Sy.apply(this,[a,n])).reduce(function(D,S){return D+S},0))>t||E){if(b>t){for(c=dI.apply(this,[a,r,t-(x+f),t]),m.push(c.shift()),m=[c.pop()];c.length;)h.push([c.shift()]);b=r.slice(a.length-(m[0]?m[0].length:0)).reduce(function(D,S){return D+S},0)}else m=[a];h.push(m),x=b+l,f=w}else m.push(a),x+=f+b,f=w}return d=l?function(D,S){return(S?T:"")+D.join(" ")}:function(D){return D.join(" ")},h.map(d)},ig.splitTextToSize=function(e,t,n){var a,r=(n=n||{}).fontSize||this.internal.getFontSize(),i=(function(m){if(m.widths&&m.kerning)return{widths:m.widths,kerning:m.kerning};var h=this.internal.getFont(m.fontName,m.fontStyle),x="Unicode";return h.metadata[x]?{widths:h.metadata[x].widths||{0:1},kerning:h.metadata[x].kerning||{}}:{font:h.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,n);a=Array.isArray(e)?e:String(e).split(/\r?\n/);var o=1*this.internal.scaleFactor*t/r;i.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/r:0,i.lineIndent=n.lineIndent;var c,l,d=[];for(c=0,l=a.length;c<l;c++)d=d.concat(mI.apply(this,[a[c],o,i]));return d},(function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",n="klmnopqrstuvwxyz",a={},r={},i=0;i<16;i++)a[n[i]]=t[i],r[t[i]]=n[i];var o=function(x){return"0x"+parseInt(x,10).toString(16)},c=e.__fontmetrics__.compress=function(x){var f,b,y,w,T=["{"];for(var A in x){if(f=x[A],isNaN(parseInt(A,10))?b="'"+A+"'":(A=parseInt(A,10),b=(b=o(A).slice(2)).slice(0,-1)+r[b.slice(-1)]),typeof f=="number")f<0?(y=o(f).slice(3),w="-"):(y=o(f).slice(2),w=""),y=w+y.slice(0,-1)+r[y.slice(-1)];else{if(xs(f)!=="object")throw new Error("Don't know what to do with value type "+xs(f)+".");y=c(f)}T.push(b+y)}return T.push("}"),T.join("")},l=e.__fontmetrics__.uncompress=function(x){if(typeof x!="string")throw new Error("Invalid argument passed to uncompress.");for(var f,b,y,w,T={},A=1,E=T,D=[],S="",R="",L=x.length-1,I=1;I<L;I+=1)(w=x[I])=="'"?f?(y=f.join(""),f=void 0):f=[]:f?f.push(w):w=="{"?(D.push([E,y]),E={},y=void 0):w=="}"?((b=D.pop())[0][b[1]]=E,y=void 0,E=b[0]):w=="-"?A=-1:y===void 0?a.hasOwnProperty(w)?(S+=a[w],y=parseInt(S,16)*A,A=1,S=""):S+=w:a.hasOwnProperty(w)?(R+=a[w],E[y]=parseInt(R,16)*A,A=1,y=void 0,R=""):R+=w;return T},d={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},m={Unicode:{Courier:d,"Courier-Bold":d,"Courier-BoldOblique":d,"Courier-Oblique":d,Helvetica:d,"Helvetica-Bold":d,"Helvetica-BoldOblique":d,"Helvetica-Oblique":d,"Times-Roman":d,"Times-Bold":d,"Times-BoldItalic":d,"Times-Italic":d
vendor: 14,731 bytes, line 1088
1088}},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: 33,310 bytes, lines 1088-1116
1088x){var f=x.font,b=h.Unicode[f.postScriptName];b&&(f.metadata.Unicode={},f.metadata.Unicode.widths=b.widths,f.metadata.Unicode.kerning=b.kerning);var y=m.Unicode[f.postScriptName];y&&(f.metadata.Unicode.encoding=y,f.encoding=y.codePages[0])}])})(En.API),(function(e){var t=function(n){for(var a=n.length,r=new Uint8Array(a),i=0;i<a;i++)r[i]=n.charCodeAt(i);return r};e.API.events.push(["addFont",function(n){var a=void 0,r=n.font,i=n.instance;if(!r.isStandardFont){if(i===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+r.postScriptName+"').");if(typeof(a=i.existsFileInVFS(r.postScriptName)===!1?i.loadFile(r.postScriptName):i.getFileFromVFS(r.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+r.postScriptName+"').");(function(o,c){c=/^\x00\x01\x00\x00/.test(c)?t(c):t(Q5(c)),o.metadata=e.API.TTFFont.open(c),o.metadata.Unicode=o.metadata.Unicode||{encoding:{},kerning:{},widths:[]},o.metadata.glyIdsUsed=[0]})(r,a)}}])})(En),En.API.addSvgAsImage=function(e,t,n,a,r,i,o,c){if(isNaN(t)||isNaN(n))throw Rs.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(a)||isNaN(r))throw Rs.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=a,l.height=r;var d=l.getContext("2d");d.fillStyle="#fff",d.fillRect(0,0,l.width,l.height);var m={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},h=this;return(Kn.canvg?Promise.resolve(Kn.canvg):we(()=>import("./index.es-BJDdhyaG.js"),[])).catch(function(x){return Promise.reject(new Error("Could not load canvg: "+x))}).then(function(x){return x.default?x.default:x}).then(function(x){return x.fromString(d,e,m)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(x){return x.render(m)}).then(function(){h.addImage(l.toDataURL("image/jpeg",1),t,n,a,r,o,c)})},En.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var a=1;a<=this.internal.getNumberOfPages();a++)for(var r=0;r<this.internal.pages[a].length;r++)this.internal.pages[a][r]=this.internal.pages[a][r].replace(t,n);return this},En.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var a,r,i,o={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}},c=Object.keys(o),l=[],d=0,m=0,h=0;function x(b,y){var w,T=!1;for(w=0;w<b.length;w+=1)b[w]===y&&(T=!0);return T}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var f=c.length;for(h=0;h<f;h+=1)n[c[h]].value=n[c[h]].defaultValue,n[c[h]].explicitSet=!1}if(xs(e)==="object"){for(r in e)if(i=e[r],x(c,r)&&i!==void 0){if(n[r].type==="boolean"&&typeof i=="boolean")n[r].value=i;else if(n[r].type==="name"&&x(n[r].valueSet,i))n[r].value=i;else if(n[r].type==="integer"&&Number.isInteger(i))n[r].value=i;else if(n[r].type==="array"){for(d=0;d<i.length;d+=1)if(a=!0,i[d].length===1&&typeof i[d][0]=="number")l.push(String(i[d]-1));else if(i[d].length>1){for(m=0;m<i[d].length;m+=1)typeof i[d][m]!="number"&&(a=!1);a===!0&&l.push([i[d][0]-1,i[d][1]-1].join(" "))}n[r].value="["+l.join(" ")+"]"}else n[r].value=n[r].defaultValue;n[r].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var b,y=[];for(b in n)n[b].explicitSet===!0&&(n[b].type==="name"?y.push("/"+b+" /"+n[b].value):y.push("/"+b+" "+n[b].value));y.length!==0&&this.internal.write(`/ViewerPreferences 1089<< 1090`+y.join(` 1091`)+` 1092>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},En.API.addMetadata=function(e,t){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:e,namespaceUri:t??"http://jspdf.default.namespaceuri/",rawXml:typeof t=="boolean"&&t},this.internal.events.subscribe("putCatalog",Vge),this.internal.events.subscribe("postPutResources",Hge)),this},(function(e){var t=e.API,n=t.pdfEscape16=function(i,o){for(var c,l=o.metadata.Unicode.widths,d=["","0","00","000","0000"],m=[""],h=0,x=i.length;h<x;++h){if(c=o.metadata.characterToGlyph(i.charCodeAt(h)),o.metadata.glyIdsUsed.push(c),o.metadata.toUnicode[c]=i.charCodeAt(h),l.indexOf(c)==-1&&(l.push(c),l.push([parseInt(o.metadata.widthOfGlyph(c),10)])),c=="0")return m.join("");c=c.toString(16),m.push(d[4-c.length],c)}return m.join("")},a=function(i){var o,c,l,d,m,h,x;for(m=`/CIDInit /ProcSet findresource begin 109312 dict begin 1094begincmap 1095/CIDSystemInfo << 1096 /Registry (Adobe) 1097 /Ordering (UCS) 1098 /Supplement 0 1099>> def 1100/CMapName /Adobe-Identity-UCS def 1101/CMapType 2 def 11021 begincodespacerange 1103<0000><ffff> 1104endcodespacerange`,l=[],h=0,x=(c=Object.keys(i).sort(function(f,b){return f-b})).length;h<x;h++)o=c[h],l.length>=100&&(m+=` 1105`+l.length+` beginbfchar 1106`+l.join(` 1107`)+` 1108endbfchar`,l=[]),i[o]!==void 0&&i[o]!==null&&typeof i[o].toString=="function"&&(d=("0000"+i[o].toString(16)).slice(-4),o=("0000"+(+o).toString(16)).slice(-4),l.push("<"+o+"><"+d+">"));return l.length&&(m+=` 1109`+l.length+` beginbfchar 1110`+l.join(` 1111`)+` 1112endbfchar 1113`),m+`endcmap 1114CMapName currentdict /CMap defineresource pop 1115end 1116end`};t.events.push(["putFont",function(i){(function(o){var c=o.font,l=o.out,d=o.newObject,m=o.putStream;if(c.metadata instanceof e.API.TTFFont&&c.encoding==="Identity-H"){for(var h=c.metadata.Unicode.widths,x=c.metadata.subset.encode(c.metadata.glyIdsUsed,1),f="",b=0;b<x.length;b++)f+=String.fromCharCode(x[b]);var y=d();m({data:f,addLength1:!0,objectId:y}),l("endobj");var w=d();m({data:a(c.metadata.toUnicode),addLength1:!0,objectId:w}),l("endobj");var T=d();l("<<"),l("/Type /FontDescriptor"),l("/FontName /"+Ag(c.fontName)),l("/FontFile2 "+y+" 0 R"),l("/FontBBox "+e.API.PDFObject.convert(c.metadata.bbox)),l("/Flags "+c.metadata.flags),l("/StemV "+c.metadata.stemV),l("/ItalicAngle "+c.metadata.italicAngle),l("/Ascent "+c.metadata.ascender),l("/Descent "+c.metadata.decender),l("/CapHeight "+c.metadata.capHeight),l(">>"),l("endobj");var A=d();l("<<"),l("/Type /Font"),l("/BaseFont /"+Ag(c.fontName)),l("/FontDescriptor "+T+" 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 ("+c.encoding+")"),l(">>"),l(">>"),l("endobj"),c.objectNumber=d(),l("<<"),l("/Type /Font"),l("/Subtype /Type0"),l("/ToUnicode "+w+" 0 R"),l("/BaseFont /"+Ag(c.fontName)),l("/Encoding /"+c.encoding),l("/DescendantFonts ["+A+" 0 R]"),l(">>"),l("endobj"),c.isAlreadyPutted=!0}})(i)}]),t.events.push(["putFont",function(i){(function(o){var c=o.font,l=o.out,d=o.newObject,m=o.putStream;if(c.metadata instanceof e.API.TTFFont&&c.encoding==="WinAnsiEncoding"){for(var h=c.metadata.rawData,x="",f=0;f<h.length;f++)x+=String.fromCharCode(h[f]);var b=d();m({data:x,addLength1:!0,objectId:b}),l("endobj");var y=d();m({data:a(c.metadata.toUnicode),addLength1:!0,objectId:y}),l("endobj");var w=d();l("<<"),l("/Descent "+c.metadata.decender),l("/CapHeight "+c.metadata.capHeight),l("/StemV "+c.metadata.stemV),l("/Type /FontDescriptor"),l("/FontFile2 "+b+" 0 R"),l("/Flags 96"),l("/FontBBox "+e.API.PDFObject.convert(c.metadata.bbox)),l("/FontName /"+Ag(c.fontName)),l("/ItalicAngle "+c.metadata.italicAngle),l("/Ascent "+c.metadata.ascender),l(">>"),l("endobj"),c.objectNumber=d();for(var T=0;T<c.metadata.hmtx.widths.length;T++)c.metadata.hmtx.widths[T]=parseInt(c.metadata.hmtx.widths[T]*(1e3/c.metadata.head.unitsPerEm));l("<</Subtype/TrueType/Type/Font/ToUnicode "+y+" 0 R/BaseFont/"+Ag(c.fontName)+"/FontDescriptor "+w+" 0 R/Encoding/"+c.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(c.metadata.hmtx.widths)+">>"),l("endobj"),c.isAlreadyPutted=!0}})(i)}]);var r=function(i){var o,c=i.text||"",l=i.x,d=i.y,m=i.options||{},h=i.mutex||{},x=h.pdfEscape,f=h.activeFontKey,b=h.fonts,y=f,w="",T=0,A="",E=b[y].encoding;if(b[y].encoding!=="Identity-H")return{text:c,x:l,y:d,options:m,mutex:h};for(A=c,y=f,Array.isArray(c)&&(A=c[0]),T=0;T<A.length;T+=1)b[y].metadata.hasOwnProperty("cmap")&&(o=b[y].metadata.cmap.unicode.codeMap[A[T].charCodeAt(0)]),o||A[T].charCodeAt(0)<256&&b[y].metadata.hasOwnProperty("Unicode")?w+=A[T]:w+="";var D="";return parseInt(y.slice(1))<14||E==="WinAnsiEncoding"?D=x(w,y).split("").map(function(S){return S.charCodeAt(0).toString(16)}).join(""):E==="Identity-H"&&(D=n(w,b[y])),h.isHex=!0,{text:D,x:l,y:d,options:m,mutex:h}};t.events.push(["postProcessText",function(i){var o=i.text||"",c=[],l={text:o,x:i.x,y:i.y,options:i.options,mutex:i.mutex};if(Array.isArray(o)){var d=0;for(d=0;d<o.length;d+=1)Array.isArray(o[d])&&o[d].length===3?c.push([r(Object.assign({},l,{text:o[d][0]})).text,o[d][1],o[d][2]]):c.push(r(Object.assign({},l,{text:o[d]})).text);i.text=c}else i.text=r(Object.assign({},l,{text:o})).text}])})(En),(function(e){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(n){return t.call(this),this.internal.vFS[n]!==void 0},e.addFileToVFS=function(n,a){return t.call(this),this.internal.vFS[n]=a,this},e.getFileFromVFS=function(n){return t.call(this),this.internal.vFS[n]!==void 0?this.internal.vFS[n]:null}})(En.API),(function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(a){var r,i,o,c,l,d,m,h=t,x=[[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]],b={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},y={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},w=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","â¹","âº","â¹","â ","â","â ","â½","â¾","â½","â","â","â","â¤","â¥","â¤","â©","âª","â©","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","﹤","ï¹¥","﹤"],T=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)$/),A=!1,E=0;this.__bidiEngine__={};var D=function(U){var O=U.charCodeAt(),W=O>>8,J=y[W];return J!==void 0?h[256*J+(255&O)]:W===252||W===253?"AL":T.test(W)?"L":W===8?"R":"N"},S=function(U){for(var O,W=0;W<U.length;W++){if((O=D(U.charAt(W)))==="L")return!1;if(O==="R")return!0}return!1},R=function(U,O,W,J){var oe,G,K,ee,pe=O[J];switch(pe){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":A=!1;break;case"N":case"AN":break;case"EN":A&&(pe="AN");break;case"AL":A=!0,pe="R";break;case"WS":case"BN":pe="N";break;case"CS":J<1||J+1>=O.length||(oe=W[J-1])!=="EN"&&oe!=="AN"||(G=O[J+1])!=="EN"&&G!=="AN"?pe="N":A&&(G="AN"),pe=G===oe?G:"N";break;case"ES":pe=(oe=J>0?W[J-1]:"B")==="EN"&&J+1<O.length&&O[J+1]==="EN"?"EN":"N";break;case"ET":if(J>0&&W[J-1]==="EN"){pe="EN";break}if(A){pe="N";break}for(K=J+1,ee=O.length;K<ee&&O[K]==="ET";)K++;pe=K<ee&&O[K]==="EN"?"EN":"N";break;case"NSM":if(o&&!c){for(ee=O.length,K=J+1;K<ee&&O[K]==="NSM";)K++;if(K<ee){var V=U[J],Y=V>=1425&&V<=2303||V===64286;if(oe=O[K],Y&&(oe==="R"||oe==="AL")){pe="R";break}}}pe=J<1||(oe=O[J-1])==="B"?"N":W[J-1];break;case"B":A=!1,r=!0,pe=E;break;case"S":i=!0,pe="N"}return pe},L=function(U,O,W){var J=U.split("");return W&&I(J,W,{hiLevel:E}),J.reverse(),O&&O.reverse(),J.join("")},I=function(U,O,W){var J,oe,G,K,ee,pe=-1,V=U.length,Y=0,z=[],H=E?f:x,ne=[];for(A=!1,r=!1,i=!1,oe=0;oe<V;oe++)ne[oe]=D(U[oe]);for(G=0;G<V;G++){if(ee=Y,z[G]=R(U,ne,z,G),J=240&(Y=H[ee][b[z[G]]]),Y&=15,O[G]=K=H[Y][5],J>0)if(J===16){for(oe=pe;oe<G;oe++)O[oe]=1;pe=-1}else pe=-1;if(H[Y][6])pe===-1&&(pe=G);else if(pe>-1){for(oe=pe;oe<G;oe++)O[oe]=K;pe=-1}ne[G]==="B"&&(O[G]=0),W.hiLevel|=K}i&&(function(te,me,fe){for(var Ae=0;Ae<fe;Ae++)if(te[Ae]==="S"){me[Ae]=E;for(var xe=Ae-1;xe>=0&&te[xe]==="WS";xe--)me[xe]=E}})(ne,O,V)},F=function(U,O,W,J,oe){if(!(oe.hiLevel<U)){if(U===1&&E===1&&!r)return O.reverse(),void(W&&W.reverse());for(var G,K,ee,pe,V=O.length,Y=0;Y<V;){if(J[Y]>=U){for(ee=Y+1;ee<V&&J[ee]>=U;)ee++;for(pe=Y,K=ee-1;pe<K;pe++,K--)G=O[pe],O[pe]=O[K],O[K]=G,W&&(G=W[pe],W[pe]=W[K],W[K]=G);Y=ee}Y++}}},_=function(U,O,W){var J=U.split(""),oe={hiLevel:E};return W||(W=[]),I(J,W,oe),(function(G,K,ee){if(ee.hiLevel!==0&&m)for(var pe,V=0;V<G.length;V++)K[V]===1&&(pe=w.indexOf(G[V]))>=0&&(G[V]=w[pe+1])})(J,W,oe),F(2,J,O,W,oe),F(1,J,O,W,oe),J.join("")};return this.__bidiEngine__.doBidiReorder=function(U,O,W){if((function(oe,G){if(G)for(var K=0;K<oe.length;K++)G[K]=K;c===void 0&&(c=S(oe)),d===void 0&&(d=S(oe))})(U,O),o||!l||d)if(o&&l&&c^d)E=c?1:0,U=L(U,O,W);else if(!o&&l&&d)E=c?1:0,U=_(U,O,W),U=L(U,O);else if(!o||c||l||d){if(o&&!l&&c^d)U=L(U,O),c?(E=0,U=_(U,O,W)):(E=1,U=_(U,O,W),U=L(U,O));else if(o&&c&&!l&&d)E=1,U=_(U,O,W),U=L(U,O);else if(!o&&!l&&c^d){var J=m;c?(E=1,U=_(U,O,W),E=0,m=!1,U=_(U,O,W),m=J):(E=0,U=_(U,O,W),U=L(U,O),E=1,m=!1,U=_(U,O,W),m=J,U=L(U,O))}}else E=0,U=_(U,O,W);else E=c?1:0,U=_(U,O,W);return U},this.__bidiEngine__.setOptions=function(U){U&&(o=U.isInputVisual,l=U.isOutputVisual,c=U.isInputRtl,d=U.isOutputRtl,m=U.isSymmetricSwapping)},this.__bidiEngine__.setOptions(a),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"],n=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(a){var r=a.text;a.x,a.y;var i=a.options||{};a.mutex,i.lang;var o=[];if(i.isInputVisual=typeof i.isInputVisual!="boolean"||i.isInputVisual,n.setOptions(i),Object.prototype.toString.call(r)==="[object Array]"){var c=0;for(o=[],c=0;c<r.length;c+=1)Object.prototype.toString.call(r[c])==="[object Array]"?o.push([n.doBidiReorder(r[c][0]),r[c][1],r[c][2]]):o.push([n.doBidiReorder(r[c])]);a.text=o}else a.text=n.doBidiReorder(r);n.setOptions({isInputVisual:!0})}])})(En),En.API.TTFFont=(function(){function e(t){var n;if(this.rawData=t,n=this.contents=new hh(t),this.contents.pos=4,n.readString(4)==="ttcf")throw new Error("TTCF not supported.");n.pos=0,this.parse(),this.subset=new axe(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new zge(this.contents),this.head=new qge(this),this.name=new Xge(this),this.cmap=new X$(this),this.toUnicode={},this.hhea=new Gge(this),this.maxp=new Qge(this),this.hmtx=new Kge(this),this.post=new Wge(this),this.os2=new Jge(this),this.loca=new nxe(this),this.glyf=new Zge(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,n,a,r,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var o,c,l,d;for(d=[],o=0,c=(l=this.bbox).length;o<c;o++)t=l[o],d.push(Math.round(t*this.scaleFactor));return d}).call(this),this.stemV=0,this.post.exists?(a=255&(r=this.post.italic_angle),32768&(n=r>>16)&&(n=-(1+(65535^n))),this.italicAngle=+(n+"."+a)):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=(i=this.familyClass)===1||i===2||i===3||i===4||i===5||i===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 n;return((n=this.cmap.unicode)!=null?n.codeMap[t]:void 0)||0},e.prototype.widthOfGlyph=function(t){var n;return n=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*n},e.prototype.widthOfString=function(t,n,a){var r,i,o,c;for(o=0,i=0,c=(t=""+t).length;0<=c?i<c:i>c;i=0<=c?++i:--i)r=t.charCodeAt(i),o+=this.widthOfGlyph(this.characterToGlyph(r))+a*(1e3/n)||0;return o*(n/1e3)},e.prototype.lineHeight=function(t,n){var a;return n==null&&(n=!1),a=n?this.lineGap:0,(this.ascender+a-this.decender)/1e3*t},e})();var Cu,hh=(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 n,a;for(a=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)a[n]=String.fromCharCode(this.readByte());return a.join("")},e.prototype.writeString=function(t){var n,a,r;for(r=[],n=0,a=t.length;0<=a?n<a:n>a;n=0<=a?++n:--n)r.push(this.writeByte(t.charCodeAt(n)));return r},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(t){return this.writeInt16(t)},e.prototype.readLongLong=function(){var t,n,a,r,i,o,c,l;return t=this.readByte(),n=this.readByte(),a=this.readByte(),r=this.readByte(),i=this.readByte(),o=this.readByte(),c=this.readByte(),l=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^n)+1099511627776*(255^a)+4294967296*(255^r)+16777216*(255^i)+65536*(255^o)+256*(255^c)+(255^l)+1):72057594037927940*t+281474976710656*n+1099511627776*a+4294967296*r+16777216*i+65536*o+256*c+l},e.prototype.writeLongLong=function(t){var n,a;return n=Math.floor(t/4294967296),a=4294967295&t,this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n),this.writeByte(a>>24&255),this.writeByte(a>>16&255),this.writeByte(a>>8&255),this.writeByte(255&a)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(t){return this.writeInt32(t)},e.prototype.read=function(t){var n,a;for(n=[],a=0;0<=t?a<t:a>t;a=0<=t?++a:--a)n.push(this.readByte());return n},e.prototype.write=function(t){var n,a,r,i;for(i=[],a=0,r=t.length;a<r;a++)n=t[a],i.push(this.writeByte(n));return i},e})(),zge=(function(){var e;function t(n){var a,r,i;for(this.scalarType=n.readInt(),this.tableCount=n.readShort(),this.searchRange=n.readShort(),this.entrySelector=n.readShort(),this.rangeShift=n.readShort(),this.tables={},r=0,i=this.tableCount;0<=i?r<i:r>i;r=0<=i?++r:--r)a={tag:n.readString(4),checksum:n.readInt(),offset:n.readInt(),length:n.readInt()},this.tables[a.tag]=a}return t.prototype.encode=function(n){var a,r,i,o,c,l,d,m,h,x,f,b,y;for(y in f=Object.keys(n).length,l=Math.log(2),h=16*Math.floor(Math.log(f)/l),o=Math.floor(h/l),m=16*f-h,(r=new hh).writeInt(this.scalarType),r.writeShort(f),r.writeShort(h),r.writeShort(o),r.writeShort(m),i=16*f,d=r.pos+i,c=null,b=[],n)for(x=n[y],r.writeString(y),r.writeInt(e(x)),r.writeInt(d),r.writeInt(x.length),b=b.concat(x),y==="head"&&(c=d),d+=x.length;d%4;)b.push(0),d++;return r.write(b),a=2981146554-e(r.data),r.pos=c+8,r.writeUInt32(a),r.data},e=function(n){var a,r,i,o;for(n=Q$.call(n);n.length%4;)n.push(0);for(i=new hh(n),r=0,a=0,o=n.length;a<o;a=a+=4)r+=i.readUInt32();return 4294967295&r},t})(),$ge={}.hasOwnProperty,Ld=function(e,t){for(var n in t)$ge.call(t,n)&&(e[n]=t[n]);function a(){this.constructor=e}return a.prototype=t.prototype,e.prototype=new a,e.__super__=t.prototype,e};Cu=(function(){function e(t){var n;this.file=t,n=this.file.directory.tables[this.tag],this.exists=!!n,n&&(this.offset=n.offset,this.length=n.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 qge=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Ld(e,Cu),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 n;return(n=new hh).writeInt(this.version),n.writeInt(this.revision),n.writeInt(this.checkSumAdjustment),n.writeInt(this.magicNumber),n.writeShort(this.flags),n.writeShort(this.unitsPerEm),n.writeLongLong(this.created),n.writeLongLong(this.modified),n.writeShort(this.xMin),n.writeShort(this.yMin),n.writeShort(this.xMax),n.writeShort(this.yMax
1116),n.writeShort(this.macStyle),n.writeShort(this.lowestRecPPEM),n.writeShort(this.fontDirectionHint),n.writeShort(t),n.writeShort(this.glyphDataFormat),n.data},e})(),wI=(function(){function e(t,n){var a,r,i,o,c,l,d,m,h,x,f,b,y,w,T,A,E;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=n+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(),x=f/2,t.pos+=6,i=(function(){var D,S;for(S=[],l=D=0;0<=x?D<x:D>x;l=0<=x?++D:--D)S.push(t.readUInt16());return S})(),t.pos+=2,y=(function(){var D,S;for(S=[],l=D=0;0<=x?D<x:D>x;l=0<=x?++D:--D)S.push(t.readUInt16());return S})(),d=(function(){var D,S;for(S=[],l=D=0;0<=x?D<x:D>x;l=0<=x?++D:--D)S.push(t.readUInt16());return S})(),m=(function(){var D,S;for(S=[],l=D=0;0<=x?D<x:D>x;l=0<=x?++D:--D)S.push(t.readUInt16());return S})(),r=(this.length-t.pos+this.offset)/2,c=(function(){var D,S;for(S=[],l=D=0;0<=r?D<r:D>r;l=0<=r?++D:--D)S.push(t.readUInt16());return S})(),l=T=0,E=i.length;T<E;l=++T)for(w=i[l],a=A=b=y[l];b<=w?A<=w:A>=w;a=b<=w?++A:--A)m[l]===0?o=a+d[l]:(o=c[m[l]/2+(a-b)-(x-l)]||0)!==0&&(o+=d[l]),this.codeMap[a]=65535&o}t.pos=h}return e.encode=function(t,n){var a,r,i,o,c,l,d,m,h,x,f,b,y,w,T,A,E,D,S,R,L,I,F,_,U,O,W,J,oe,G,K,ee,pe,V,Y,z,H,ne,te,me,fe,Ae,xe,ae,le,ze;switch(J=new hh,o=Object.keys(t).sort(function(pt,xt){return pt-xt}),n){case"macroman":for(y=0,w=(function(){var pt=[];for(b=0;b<256;++b)pt.push(0);return pt})(),A={0:0},i={},oe=0,pe=o.length;oe<pe;oe++)A[xe=t[r=o[oe]]]==null&&(A[xe]=++y),i[r]={old:t[r],new:A[t[r]]},w[r]=A[t[r]];return J.writeUInt16(1),J.writeUInt16(0),J.writeUInt32(12),J.writeUInt16(0),J.writeUInt16(262),J.writeUInt16(0),J.write(w),{charMap:i,subtable:J.data,maxGlyphID:y+1};case"unicode":for(O=[],h=[],E=0,A={},a={},T=d=null,G=0,V=o.length;G<V;G++)A[S=t[r=o[G]]]==null&&(A[S]=++E),a[r]={old:S,new:A[S]},c=A[S]-r,T!=null&&c===d||(T&&h.push(T),O.push(r),d=c),T=r;for(T&&h.push(T),h.push(65535),O.push(65535),_=2*(F=O.length),I=2*Math.pow(Math.log(F)/Math.LN2,2),x=Math.log(I/2)/Math.LN2,L=2*F-I,l=[],R=[],f=[],b=K=0,Y=O.length;K<Y;b=++K){if(U=O[b],m=h[b],U===65535){l.push(0),R.push(0);break}if(U-(W=a[U].new)>=32768)for(l.push(0),R.push(2*(f.length+F-b)),r=ee=U;U<=m?ee<=m:ee>=m;r=U<=m?++ee:--ee)f.push(a[r].new);else l.push(W-U),R.push(0)}for(J.writeUInt16(3),J.writeUInt16(1),J.writeUInt32(12),J.writeUInt16(4),J.writeUInt16(16+8*F+2*f.length),J.writeUInt16(0),J.writeUInt16(_),J.writeUInt16(I),J.writeUInt16(x),J.writeUInt16(L),fe=0,z=h.length;fe<z;fe++)r=h[fe],J.writeUInt16(r);for(J.writeUInt16(0),Ae=0,H=O.length;Ae<H;Ae++)r=O[Ae],J.writeUInt16(r);for(ae=0,ne=l.length;ae<ne;ae++)c=l[ae],J.writeUInt16(c);for(le=0,te=R.length;le<te;le++)D=R[le],J.writeUInt16(D);for(ze=0,me=f.length;ze<me;ze++)y=f[ze],J.writeUInt16(y);return{charMap:a,subtable:J.data,maxGlyphID:E+1}}},e})(),X$=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Ld(e,Cu),e.prototype.tag="cmap",e.prototype.parse=function(t){var n,a,r;for(t.pos=this.offset,this.version=t.readUInt16(),r=t.readUInt16(),this.tables=[],this.unicode=null,a=0;0<=r?a<r:a>r;a=0<=r?++a:--a)n=new wI(t,this.offset),this.tables.push(n),n.isUnicode&&this.unicode==null&&(this.unicode=n);return!0},e.encode=function(t,n){var a,r;return n==null&&(n="macroman"),a=wI.encode(t,n),(r=new hh).writeUInt16(0),r.writeUInt16(1),a.table=r.data.concat(a.subtable),a},e})(),Gge=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Ld(e,Cu),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})(),Jge=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Ld(e,Cu),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 n,a;for(a=[],n=0;n<10;++n)a.push(t.readByte());return a})(),this.charRange=(function(){var n,a;for(a=[],n=0;n<4;++n)a.push(t.readInt());return a})(),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 n,a;for(a=[],n=0;n<2;n=++n)a.push(t.readInt());return a})(),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})(),Wge=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Ld(e,Cu),e.prototype.tag="post",e.prototype.parse=function(t){var n,a,r;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 i;for(a=t.readUInt16(),this.glyphNameIndex=[],i=0;0<=a?i<a:i>a;i=0<=a?++i:--i)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],r=[];t.pos<this.offset+this.length;)n=t.readByte(),r.push(this.names.push(t.readString(n)));return r;case 151552:return a=t.readUInt16(),this.offsets=t.read(a);case 262144:return this.map=(function(){var o,c,l;
1116for(l=[],i=o=0,c=this.file.maxp.numGlyphs;0<=c?o<c:o>c;i=0<=c?++o:--o)l.push(t.readUInt32());return l}).call(this)}},e})(),Yge=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},Xge=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Ld(e,Cu),e.prototype.tag="name",e.prototype.parse=function(t){var n,a,r,i,o,c,l,d,m,h,x;for(t.pos=this.offset,t.readShort(),n=t.readShort(),c=t.readShort(),a=[],i=0;0<=n?i<n:i>n;i=0<=n?++i:--i)a.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+c+t.readShort()});for(l={},i=m=0,h=a.length;m<h;i=++m)r=a[i],t.pos=r.offset,d=t.readString(r.length),o=new Yge(d,r),l[x=r.nameID]==null&&(l[x]=[]),l[r.nameID].push(o);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})(),Qge=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Ld(e,Cu),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})(),Kge=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Ld(e,Cu),e.prototype.tag="hmtx",e.prototype.parse=function(t){var n,a,r,i,o,c,l;for(t.pos=this.offset,this.metrics=[],n=0,c=this.file.hhea.numberOfMetrics;0<=c?n<c:n>c;n=0<=c?++n:--n)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var d,m;for(m=[],n=d=0;0<=r?d<r:d>r;n=0<=r?++d:--d)m.push(t.readInt16());return m})(),this.widths=(function(){var d,m,h,x;for(x=[],d=0,m=(h=this.metrics).length;d<m;d++)i=h[d],x.push(i.advance);return x}).call(this),a=this.widths[this.widths.length-1],l=[],n=o=0;0<=r?o<r:o>r;n=0<=r?++o:--o)l.push(this.widths.push(a));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})(),Q$=[].slice,Zge=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Ld(e,Cu),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var n,a,r,i,o,c,l,d,m,h;return t in this.cache?this.cache[t]:(i=this.file.loca,n=this.file.contents,a=i.indexOf(t),(r=i.lengthOf(t))===0?this.cache[t]=null:(n.pos=this.offset+a,o=(c=new hh(n.read(r))).readShort(),d=c.readShort(),h=c.readShort(),l=c.readShort(),m=c.readShort(),this.cache[t]=o===-1?new txe(c,d,h,l,m):new exe(c,o,d,h,l,m),this.cache[t]))},e.prototype.encode=function(t,n,a){var r,i,o,c,l;for(o=[],i=[],c=0,l=n.length;c<l;c++)r=t[n[c]],i.push(o.length),r&&(o=o.concat(r.encode(a)));return i.push(o.length),{table:o,offsets:i}},e})(),exe=(function(){function e(t,n,a,r,i,o){this.raw=t,this.numberOfContours=n,this.xMin=a,this.yMin=r,this.xMax=i,this.yMax=o,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e})(),txe=(function(){function e(t,n,a,r,i){var o,c;for(this.raw=t,this.xMin=n,this.yMin=a,this.xMax=r,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;c=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readUInt16()),32&c;)o.pos+=1&c?4:2,128&c?o.pos+=8:64&c?o.pos+=4:8&c&&(o.pos+=2)}return e.prototype.encode=function(){var t,n,a;for(n=new hh(Q$.call(this.raw.data)),t=0,a=this.glyphIDs.length;t<a;++t)n.pos=this.glyphOffsets[t];return n.data},e})(),nxe=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Ld(e,Cu),e.prototype.tag="loca",e.prototype.parse=function(t){var n,a;return t.pos=this.offset,n=this.file.head.indexToLocFormat,this.offsets=n===0?(function(){var r,i;for(i=[],a=0,r=this.length;a<r;a+=2)i.push(2*t.readUInt16());return i}).call(this):(function(){var r,i;for(i=[],a=0,r=this.length;a<r;a+=4)i.push(t.readUInt32());return i}).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,n){for(var a=new Uint32Array(this.offsets.length),r=0,i=0,o=0;o<a.length;++o)if(a[o]=r,i<n.length&&n[i]==o){++i,a[o]=r;var c=this.offsets[o],l=this.offsets[o+1]-c;l>0&&(r+=l)}for(var d=new Array(4*a.length),m=0;m<a.length;++m)d[4*m+3]=255&a[m],d[4*m+2]=(65280&a[m])>>8,d[4*m+1]=(16711680&a[m])>>16,d[4*m]=(4278190080&a[m])>>24;return d},e})(),axe=(function(){function e(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var t,n,a,r,i;for(n in r=this.font.cmap.tables[0].codeMap,t={},i=this.subset)a=i[n],t[n]=r[a];return t},e.prototype.glyphsFor=function(t){var n,a,r,i,o,c,l;
1116for(r={},o=0,c=t.length;o<c;o++)r[i=t[o]]=this.font.glyf.glyphFor(i);for(i in n=[],r)(a=r[i])!=null&&a.compound&&n.push.apply(n,a.glyphIDs);if(n.length>0)for(i in l=this.glyphsFor(n))a=l[i],r[i]=a;return r},e.prototype.encode=function(t,n){var a,r,i,o,c,l,d,m,h,x,f,b,y,w,T;for(r in a=X$.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(t),f={0:0},T=a.charMap)f[(l=T[r]).old]=l.new;for(b in x=a.maxGlyphID,o)b in f||(f[b]=x++);return m=(function(A){var E,D;for(E in D={},A)D[A[E]]=E;return D})(f),h=Object.keys(m).sort(function(A,E){return A-E}),y=(function(){var A,E,D;for(D=[],A=0,E=h.length;A<E;A++)c=h[A],D.push(m[c]);return D})(),i=this.font.glyf.encode(o,y,f),d=this.font.loca.encode(i.offsets,y),w={cmap:this.font.cmap.raw(),glyf:i.table,loca:d,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(n)},this.font.os2.exists&&(w["OS/2"]=this.font.os2.raw()),this.font.directory.encode(w)},e})();En.API.PDFObject=(function(){var e;function t(){}return e=function(n,a){return(Array(a+1).join("0")+n).slice(-a)},t.convert=function(n){var a,r,i,o;if(Array.isArray(n))return"["+(function(){var c,l,d;for(d=[],c=0,l=n.length;c<l;c++)a=n[c],d.push(t.convert(a));return d})().join(" ")+"]";if(typeof n=="string")return"/"+n;if(n?.isString)return"("+n+")";if(n instanceof Date)return"(D:"+e(n.getUTCFullYear(),4)+e(n.getUTCMonth(),2)+e(n.getUTCDate(),2)+e(n.getUTCHours(),2)+e(n.getUTCMinutes(),2)+e(n.getUTCSeconds(),2)+"Z)";if({}.toString.call(n)==="[object Object]"){for(r in i=["<<"],n)o=n[r],i.push("/"+r+" "+t.convert(o));return i.push(">>"),i.join(` 1117`)}return""+n},t})();async function K$(e,t="en"){let n;if(String(e.category||"").toLowerCase()==="umrah"){const{openUmrahPrint:a}=await we(async()=>{const{openUmrahPrint:r}=await import("./umrahPdfPrint-DBJgFFuh.js");return{openUmrahPrint:r}},[]);n=a(e,t)}else{const{openProgramPrint:a}=await we(async()=>{const{openProgramPrint:r}=await import("./pdfPrint-UuvkOpft.js");return{openProgramPrint:r}},[]);n=a(e,t)}if(!n)throw new Error(t==="ar"?"ÙØ±Ø¬Ù Ø§ÙØ³Ù Ø§Ø Ø¨Ø§ÙÙÙØ§Ùذ اÙÙ ÙØ¨Ø«ÙØ© ÙØÙØ¸ Ù Ù٠اÙÙ PDF.":"Please allow pop-ups to save the PDF.")}const Jc={name:"IBRIX",url:"https://www.ibrix.digital",editionAr:"إصدار اÙ٠ؤسسات Ø§ÙØ³ÙاØÙØ©",editionEn:"Travel Enterprise Edition"},sxe=[{id:"overview",group:"workspace",labelAr:"Ù Ø±ÙØ² اÙÙÙØ§Ø¯Ø©",labelEn:"Command Center",descriptionAr:"٠ؤشرات Ø§ÙØ£Ø¯Ø§Ø¡ ÙØ§ÙØªÙØ¨ÙÙØ§Øª ÙØ§Ùاختصارات اÙÙÙÙ ÙØ©",descriptionEn:"KPIs, alerts, and daily shortcuts",roles:["admin","accountant"],shortcut:"G D"},{id:"costCalculator",group:"workspace",labelAr:"ÙÙØ¯Ø³Ø© Ø§ÙØªÙÙÙØ©",labelEn:"Cost Engineering",descriptionAr:"ØªØ³Ø¹ÙØ± Ø§ÙØ¨Ø±Ø§Ù ج ÙØªØÙÙ٠اÙÙØ§Ù Ø´ ÙØ¨Ù Ø§ÙØ¨Ùع",descriptionEn:"Program pricing and pre-sale margin analysis",roles:["admin","accountant"],shortcut:"G C"},{id:"staffPackages",group:"sales",labelAr:"برا٠ج IBRIX",labelEn:"IBRIX Programs",descriptionAr:"برا٠ج Ø§ÙØ¨ÙØ¹Ø Ø§ÙØªÙ Ø§Ù Ø§ÙØ¨ÙØ§ÙØ§ØªØ Ø§ÙØ£Ø³Ø¹Ø§Ø± اÙ٠عت٠دة ÙØ§ÙØØ¬Ø²",descriptionEn:"Sell-side programs, readiness, approved prices, and booking",roles:["admin","accountant","booking_agent"],shortcut:"G P"},{id:"jordanHotelQuotes",group:"sales",labelAr:"Ù ØØ±Ù ÙÙØ§Ø¯Ù Ø§ÙØ£Ø±Ø¯Ù",labelEn:"Jordan Hotel Engine",descriptionAr:"Ø¨ØØ« ÙØ§Ùتباس Ù Ù Ø§ÙØªØ¹Ø±ÙØ© اÙÙ ÙØ´Ùرة Ø¨Ø§ÙØ¯ÙÙØ§Ø± ٠ع Ø·ÙØ¨ تأÙÙØ¯ Ø§ÙØØ¬Ø²",descriptionEn:"Search and quote the published JOD tariff with reservation confirmation",roles:["admin","accountant","booking_agent"],shortcut:"G H"},{id:"bookings",group:"sales",labelAr:"Ø§ÙØØ¬ÙØ²Ø§Øª",labelEn:"Bookings",descriptionAr:"Ø¯ÙØ±Ø© Ø§ÙØØ¬Ø² Ù Ù Ø§ÙØ·Ùب ØØªÙ Ø§ÙØ¥ØµØ¯Ø§Ø±",descriptionEn:"Booking flow from request to issuance",roles:["admin","accountant","booking_agent"],shortcut:"G B"},{id:"messages",group:"sales",labelAr:"Ø³Ø¬Ù Ø§ÙØ±Ø³Ø§Ø¦Ù",labelEn:"Message Log",descriptionAr:"Ø§ÙØ±Ø³Ø§Ø¦Ù اÙÙØ§Ø±Ø¯Ø© ÙØØ§ÙØ§Øª تأÙÙØ¯ Ø§ÙØØ¬Ø² ÙØ§ÙتسÙÙÙ ",descriptionEn:"Inbound messages, booking confirmations, and delivery states",roles:["admin"],shortcut:"G E"},{id:"invoices",group:"sales",labelAr:"ÙÙØ§ØªÙر اÙÙ Ø¨ÙØ¹Ø§Øª",labelEn:"Sales Invoices",descriptionAr:"اÙÙÙØªØ±Ø© ÙØ§ÙØªØØµÙÙ ÙØØ§ÙØ© Ø§ÙØ°Ù Ù ",descriptionEn:"Billing, collections, and receivables",roles:["admin"],shortcut:"G I"},{id:"vouchers",group:"sales",labelAr:"اÙÙØ³Ø§Ø¦Ù ",labelEn:"Vouchers",descriptionAr:"ÙØ³Ø§Ø¦Ù Ø§ÙØ®Ø¯Ù ات ÙØªØªØ¨Ø¹ Ø§ÙØªÙÙÙØ°",descriptionEn:"Service vouchers and fulfillment tracking",roles:["admin"]},{id:"tickets",group:"sales",labelAr:"Ø§ÙØªØ°Ø§Ùر",labelEn:"Tickets",descriptionAr:"Ø¨ÙØ§Ùات Ø§ÙØ¥ØµØ¯Ø§Ø± ÙØ§ÙÙ Ø³Ø§ÙØ±ÙÙ ÙØ§ÙربØÙØ©",descriptionEn:"Issuance, passengers, and profitability",roles:["admin"]},{id:"manifests",group:"sales",labelAr:"ÙØ´ÙÙ Ø§ÙØ±Ùاب",labelEn:"Manifests",descriptionAr:"ÙÙØ§Ø¦Ù اÙÙ Ø¬Ù ÙØ¹Ø§Øª ÙØ§ÙØ³ÙØ± Ø§ÙØ¬Ù اعÙ",descriptionEn:"Group and collective travel lists",roles:["admin"]},{id:"payments",group:"finance",labelAr:"اÙÙ ÙØ¨Ùضات ÙØ§Ù٠دÙÙØ¹Ø§Øª",labelEn:"Cash & Payments",descriptionAr:"Ø§ÙØØ±ÙØ© اÙÙÙØ¯ÙØ© ÙØ§ÙتسÙÙØ§Øª",descriptionEn:"Cash movements and settlements",roles:["admin"]},{id:"expenses",group:"finance",labelAr:"اÙ٠صارÙÙ",labelEn:"Expenses",descriptionAr:"اÙ٠صرÙÙØ§Øª Ø§ÙØªØ´ØºÙÙÙØ© ÙØªØµÙÙÙÙØ§",descriptionEn:"Operating expenses and classification",roles:["admin"]},{id:"journal",group:"finance",labelAr:"اÙÙÙÙØ¯ اÙÙÙÙ ÙØ©",labelEn:"General Journal",descriptionAr:"اÙÙÙÙØ¯ اÙÙ Ø²Ø¯ÙØ¬Ø© Ù٠سار Ø§ÙØªØ¯ÙÙÙ",descriptionEn:"Double-entry posting and audit trail",roles:["admin"]},{id:"accounts",group:"finance",labelAr:"دÙÙÙ Ø§ÙØØ³Ø§Ø¨Ø§Øª",labelEn:"Chart of Accounts",descriptionAr:"ÙÙÙ٠٠اÙ٠٠تدرج ÙÙ ØªÙØ§Ù٠٠ع Ø§ÙØªÙØ§Ø±ÙØ±",descriptionEn:"Hierarchical financial reporting structure",roles:["admin"]},{id:"reports",group:"finance",labelAr:"Ù Ø±ÙØ² Ø§ÙØªÙØ§Ø±ÙØ±",labelEn:"Report Center",descriptionAr:"Ø£Ø±Ø¨Ø§Ø ÙØ®Ø³Ø§Ø¦Ø± ÙÙ Ø¨ÙØ¹Ø§Øª ÙÙ ÙØ²Ø§Ù ٠راجعة",descriptionEn:"P&L, sales, and trial balance",roles:["admin","accountant"],shortcut:"G R"},{id:"priceImports",group:"operations",labelAr:"ÙÙØ§Ø¦Ù Ø§ÙØ£Ø³Ø¹Ø§Ø±",labelEn:"Price Imports",descriptionAr:"Ø§Ø³ØªÙØ±Ø§Ø¯ ÙØªØ¯ÙÙ٠أسعار اÙÙ ÙØ±Ø¯ÙÙ",descriptionEn:"Import and validate supplier tariffs",roles:["admin","accountant"]},{id:"visaCompliance",group:"operations",labelAr:"Ø§Ù ØªØ«Ø§Ù Ø§ÙØªØ£Ø´Ùرات",labelEn:"Visa Compliance",descriptionAr:"٠صادر اÙÙÙØ§Ø¹Ø¯ ÙØªÙØ§Ø±ÙØ® اÙ٠راجعة ÙØ§ÙØØ§Ùات اÙÙ ØØ¬Ùبة",descriptionEn:"Rule sources, review dates, and blocked states",roles:["admin"],shortcut:"G V"},{id:"jordanHotelAdmin",group:"operations",labelAr:"ØÙÙÙ Ø© ØªØ¹Ø±ÙØ© Ø§ÙØ£Ø±Ø¯Ù",labelEn:"Jordan Tariff Governance",descriptionAr:"Ø±ÙØ¹ Excel ÙØ§Ù٠عاÙÙØ© ÙØ§ÙÙØ´Ø± ÙØ§ÙØ±Ø¬ÙØ¹ ÙØ³Ø¬Ù سعر Ø§ÙØµØ±Ù اÙ٠ؤرخ",descriptionEn:"Excel upload, preview, publish, rollback, and effective-dated FX history",roles:["admin"],shortcut:"G J"},{id:"hotels",group:"operations",labelAr:"اÙÙÙØ§Ø¯Ù",labelEn:"Hotels",descriptionAr:"Ù Ù٠اÙÙÙØ§Ø¯Ù ÙØ§Ùأسعار ÙØ§ÙÙØ¬Ùات",descriptionEn:"Hotel profiles, rates, and destinations",roles:["admin","accountant"]},{id:"referenceData",group:"master",labelAr:"اÙÙÙØ§Ø±Ø³ ÙØ§ÙØªØ³Ø¹ÙØ±",labelEn:"Master Data & Pricing",descriptionAr:"Ø§ÙØ¯ÙÙ ÙØ§ÙÙ Ø¯Ù ÙØ§Ù٠طارات ÙØ£Ø³Ø¹Ø§Ø± اÙÙ ÙØ§Ø³Ù اÙÙ ØÙÙÙ Ø©",descriptionEn:"Governed countries, cities, airports, and season prices",roles:["admin","accountant"],shortcut:"G M"},{id:"customers",group:"master",labelAr:"Ø§ÙØ¹Ù ÙØ§Ø¡",labelEn:"Customers",descriptionAr:"اÙÙ ÙÙØ§Øª ÙØ§ÙØ°Ù Ù ÙØ³Ø¬Ù Ø§ÙØªØ¹Ø§Ù Ù",descriptionEn:"Profiles, receivables, and activity",roles:["admin"]},{id:"suppliers",group:"master",labelAr:"اÙÙ ÙØ±Ø¯ÙÙ",labelEn:"Suppliers",descriptionAr:"Ø§ÙØ¹ÙÙØ¯ ÙØ§Ùأرصدة Ù٠تابعة Ø§ÙØ§Ùتزا٠ات",descriptionEn:"Contracts, balances, and obligations",roles:["admin"]},{id:"employees",group:"master",labelAr:"اÙ٠ستخد٠ÙÙ ÙØ§ÙØµÙØ§ØÙات",labelEn:"Users & Access",descriptionAr:"إدارة اÙ٠ستخد٠ÙÙ ÙØ§ÙØ£Ø¯ÙØ§Ø± ÙÙØ·Ø§Ù اÙÙØµÙÙ",descriptionEn:"User, role, and access management",roles:["admin"]}
1117],rxe=[{id:"workspace",ar:"Ù
Ø³Ø§ØØ© Ø§ÙØ¹Ù
Ù",en:"Workspace"},{id:"sales",ar:"اÙÙ
Ø¨ÙØ¹Ø§Øª ÙØ§ÙØØ¬Ùزات",en:"Sales & Booking"},{id:"finance",ar:"اÙÙ
اÙÙØ© ÙØ§ÙØ¯ÙØ§ØªØ±",en:"Finance & Ledger"},{id:"operations",ar:"Ø§ÙØªØ´ØºÙÙ ÙØ§ÙØªÙØ§ÙÙÙ",en:"Operations & Cost"},{id:"master",ar:"Ø§ÙØ¨ÙØ§ÙØ§Øª Ø§ÙØ£Ø³Ø§Ø³ÙØ©",en:"Master Data"}];function ixe(e){const t=e.trim();return t.includes("@")?t.toLowerCase():t.replace(/\s+/g," ")}function p9(e){return e?sxe.filter(t=>t.roles.includes(e)):[]}function oxe(e){return p9(e)[0]?.id??null}function I3(e,t){const n=new URLSearchParams({module:e}),a=Number.isInteger(t)&&Number(t)>0?Number(t):null;return e==="bookings"&&a&&n.set("packageId",String(a)),`/accounting?${n.toString()}`}function cxe(e){const t=e.trim().replace(/^\/+|\/+$/g,"");return t?`/packages/${encodeURIComponent(t)}?staffView=1`:"/destinations"}function lxe(e){return new URLSearchParams(e.startsWith("?")?e.slice(1):e).get("staffView")==="1"}const TI="ibrix-staff-package-view-v1",NI={search:"",category:"all",packageType:"all",readiness:"all",ticket:"all",scrollY:0};function Z$(e){if(!e)return{...NI};try{const t=JSON.parse(e),n=(r,i,o=120)=>typeof r=="string"&&r.length<=o?r:i,a=Number(t.scrollY);return{search:n(t.search,""),category:n(t.category,"all",60),packageType:n(t.packageType,"all",60),readiness:n(t.readiness,"all",30),ticket:n(t.ticket,"all",30),scrollY:Number.isFinite(a)&&a>0?Math.min(a,1e6):0}}catch{return{...NI}}}function uxe(e){return JSON.stringify(Z$(JSON.stringify(e)))}function kI(e){return{packageId:e.id,bookingType:"package",currency:e.currency||"JOD",sellingPrice:Math.max(0,Number(e.price)||0)}}function g7(e,t){const n=new URLSearchParams(e.startsWith("?")?e.slice(1):e),a=n.get("module"),r=p9(t).some(l=>l.id===a)?a:null,i=n.get("packageId"),o=i?Number(i):Number.NaN,c=r==="bookings"&&Number.isInteger(o)&&o>0?o:null;return{moduleId:r,packageId:c}}function dxe(e,t){const n={admin:{ar:"Ù
Ø¯ÙØ± اÙÙØ¸Ø§Ù
",en:"System Administrator"},accountant:{ar:"Ù
ØØ§Ø³Ø¨",en:"Accountant"},booking_agent:{ar:"Ù
ÙØ¸Ù ØØ¬Ùزات",en:"Booking Agent"},agent:{ar:"ÙÙÙÙ ØªØ£Ø´ÙØ±Ø§Øª",en:"Visa Agent"}};return e?n[e][t]:t==="ar"?"Ù
ستخدÙ
":"User"}function Vp(e,t){return t==="ar"?e.labelAr:e.labelEn}function x7(e,t){return t==="ar"?e.descriptionAr:e.descriptionEn}const mxe="962787789915";function xN({lang:e,isRTL:t,visible:n}){if(!n)return null;const a=t?dr:_l;return s.jsx("aside",{"data-loc":"client/src/pages/PackageDetail.tsx:55",dir:t?"rtl":"ltr",className:"fixed inset-x-0 top-[5.6rem] z-40 px-3 sm:top-[6.1rem]","aria-label":e==="ar"?"Ø£Ø¯ÙØ§Øª عرض Ø§ÙØ¹Ù
ÙÙ":"Guest-view controls",children:s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:56",className:"mx-auto flex max-w-4xl items-center justify-between gap-3 rounded-2xl border border-cyan-200/25 bg-[#071018]/95 px-3 py-2.5 text-white shadow-[0_18px_60px_-24px_rgba(7,16,24,.9)] backdrop-blur-xl sm:px-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:57",className:"flex min-w-0 items-center gap-3",children:[s.jsx("span",{"data-loc":"client/src/pages/PackageDetail.tsx:58",className:"grid h-9 w-9 shrink-0 place-items-center rounded-xl bg-cyan-300/12 text-cyan-200",children:s.jsx(b3,{"data-loc":"client/src/pages/PackageDetail.tsx:58",className:"h-4 w-4"})}),s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:59",className:"min-w-0",children:[s.jsx("p",{"data-loc":"client/src/pages/PackageDetail.tsx:60",className:"truncate text-sm font-semibold",children:e==="ar"?"عرض Ø§ÙØ¹Ù
ÙÙ":"Guest view"}),s.jsx("p",{"data-loc":"client/src/pages/PackageDetail.tsx:61",className:"hidden truncate text-[11px] text-slate-400 sm:block",children:e==="ar"?"Ø£ÙØª ØªØ´Ø§ÙØ¯ ØµÙØØ© Ø§ÙØ¨Ø±ÙاÙ
ج ÙÙ
ا ØªØ¸ÙØ± ÙÙØ¹Ù
ÙÙ.":"You are viewing this program as the customer sees it."})]})]}),s.jsxs(ls,{"data-loc":"client/src/pages/PackageDetail.tsx:64",href:I3("staffPackages"),className:"inline-flex h-10 shrink-0 items-center gap-2 rounded-xl bg-cyan-300 px-3 text-xs font-bold text-[#071018] transition hover:bg-cyan-200 active:scale-[0.97] sm:px-4",children:[s.jsx(a,{"data-loc":"client/src/pages/PackageDetail.tsx:65",className:"h-4 w-4"}),s.jsx("span",{"data-loc":"client/src/pages/PackageDetail.tsx:66",children:e==="ar"?"Ø§ÙØ¹Ùدة ÙÙÙ
ÙØ¸ÙÙÙ":"Back to staff"})]})]})})}function jI(e,t){return QA(e,t==="ar"?"ar-JO":"en-GB")}function pxe(){const t=Kj().slug||"",{lang:n,t:a,isRTL:r}=zs(),i=typeof window<"u"&&lxe(window.location.search),{data:o,isLoading:c,isError:l,error:d,refetch:m,isFetching:h}=Pe.packages.getBySlug.useQuery({slug:t},{enabled:!!t}),{scrollY:x}
1117=XA(),f=i2(x,[0,600],[0,160]),b=i2(x,[0,600],[1,1.12]),[y,w]=k.useState(!1),[T,A]=k.useState(!1),[E,D]=k.useState({name:"",phone:"",email:"",message:""}),S=Pe.inquiries.submit.useMutation({onSuccess:()=>{Le.success(a("inquiry.success")),D({name:"",phone:"",email:"",message:""})},onError:()=>Le.error(n==="ar"?"ØªØ¹Ø°ÙØ± Ø§ÙØ¥Ø±Ø³Ø§ÙØ ØØ§ÙÙ Ù
رة أخرÙ":"Could not send, please try again")}),R=(te,me)=>(n==="ar"?te:me)||me||te||"";async function L(){if(o){w(!0);try{await K$(o,n)}catch(te){const me=te instanceof Error&&te.message?te.message:n==="ar"?"ØªØ¹Ø°ÙØ± Ø¥ÙØ´Ø§Ø¡ Ù
ÙÙ PDF":"Could not generate PDF";Le.error(me)}finally{w(!1)}}}if(c&&!o)return s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:126",className:"enchanted-page min-h-screen flex flex-col",children:[s.jsx(io,{"data-loc":"client/src/pages/PackageDetail.tsx:127"}),s.jsx(xN,{"data-loc":"client/src/pages/PackageDetail.tsx:128",lang:n,isRTL:r,visible:i}),s.jsx("div",{"data-loc":"client/src/pages/PackageDetail.tsx:129",className:"flex-1 flex items-center justify-center pt-32",children:s.jsx(ft,{"data-loc":"client/src/pages/PackageDetail.tsx:130",className:"w-8 h-8 text-primary animate-spin"})}),s.jsx(oo,{"data-loc":"client/src/pages/PackageDetail.tsx:132"})]});if(l||!o){const te=d?.data?.code==="NOT_FOUND";return s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:145",className:"enchanted-page min-h-screen flex flex-col",children:[s.jsx(io,{"data-loc":"client/src/pages/PackageDetail.tsx:14
11176"}),s.jsx(xN,{"data-loc":"client/src/pages/PackageDetail.tsx:147",lang:n,isRTL:r,visible:i}),s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:148",className:"flex-1 flex flex-col items-center justify-center pt-32 pb-20 text-center",children:[s.jsx("h1",{"data-loc":"client/src/pages/PackageDetail.tsx:149",className:"font-display font-bold text-4xl text-foreground mb-3",children:te?n==="ar"?"Ø§ÙØ¨Ø±ÙاÙ
ج ØºÙØ± Ù
ÙØ¬Ùد":"Program not found":n==="ar"?"ØªØ¹Ø°ÙØ± تØÙ
ÙÙ Ø§ÙØ¨Ø±ÙاÙ
ج":"Could not load this program"}),!te&&s.jsx("p",{"data-loc":"client/src/pages/PackageDetail.tsx:159",className:"text-muted-foreground max-w-md mb-2",children:n==="ar"?"ÙØ¯ تÙÙÙ Ø§ÙØ´Ø¨ÙØ© Ø¨Ø·ÙØ¦Ø© Ø£Ù Ù
ÙÙØ·Ø¹Ø©. ØØ§Ù٠إعادة Ø§ÙØªØÙ
ÙÙ.":"The network may be slow or interrupted. Please try again."}),s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:165",className:"flex items-center gap-3 mt-4",children:[!te&&s.jsxs("button",{"data-loc":"client/src/pages/PackageDetail.tsx:167",type:"button",onClick:()=>m(),disabled:h,className:"inline-flex items-center gap-2 px-6 py-3 rounded-full bg-primary text-primary-foreground font-semibold disabled:opacity-60",children:[h&&s.jsx(ft,{"data-loc":"client/src/pages/PackageDetail.tsx:173",className:"w-4 h-4 animate-spin"}),n==="ar"?"إعادة اÙÙ
ØØ§ÙÙØ©":"Try again"]}),s.jsx(ls,{"data-loc":"client/src/pages/PackageDetail.tsx:177",href:"/destinations",className:"inline-flex items-center gap-2 px-6 py-3 rounded-full border border-border text-foreground font-semibold",children:a("pkg.backToDest")})]})]}),s.jsx(oo,{"data-loc":"client/src/pages/PackageDetail.tsx:185"})]})}const I=R(o.titleAr,o.titleEn),F=R(o.cityAr,o.cityEn),_=R(o.summaryAr,o.summaryEn),U=R(o.descriptionAr,o.descriptionEn),O=o.imageUrl||"",W=r?dr:_l,J=o,oe=Array.isArray(J.gallery)?J.gallery.filter(te=>typeof te=="string"&&te.length>0):[],G=Array.isArray(J.serviceDetails)?J.serviceDetails:[],K=J.validTo?jI(J.validTo,n):"",ee=J.bookingDeadline?jI(J.bookingDeadline,n):"",pe=Number(o.price),V=!Number.isFinite(pe)||pe<=0,Y=V?n==="ar"?"Ø§ÙØ³Ø¹Ø± Ø¹ÙØ¯ Ø§ÙØ·Ùب":"Price on request":`${pe.toLocaleString(n==="ar"?"ar-JO":"en-GB",{maximumFractionDigits:2})} ${o.currency||"JOD"}`,z=n==="ar"?`Ù
Ø±ØØ¨Ø§ÙØ Ø£Ø±ØºØ¨ Ø¨Ø§ÙØ§Ø³ØªÙسار Ø¹Ù Ø¨Ø±ÙØ§Ù
ج: ${I}`:`Hello, I'd like to inquire about: ${I}`,H=`https://wa.me/${mxe}?text=${encodeURIComponent(z)}`,ne=(()=>{if(o.pricingMode==="package"){const te=o.packagePricing?.rows,me=o.packagePricing?.cities;return Array.isArray(te)&&Array.isArray(me)?i$(te,me.length,n):[]}return Array.isArray(o.hotels)?o.hotels.map(te=>R(te.nameAr,te.nameEn)).filter(te=>te&&te.trim().length>0):[]})();return s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:256",className:"enchanted-page min-h-screen flex flex-col",children:[s.jsx(io,{"data-loc":"client/src/pages/PackageDetail.tsx:257"}),s.jsx(xN,{"data-loc":"client/src/pages/PackageDetail.tsx:258",lang:n,isRTL:r,visible:i}),s.jsxs("section",{"data-loc":"client/src/pages/PackageDetail.tsx:261",className:"enchanted-inner-hero h-[76vh] min-h-[560px] bg-[#2c212e]",children:[O?s.jsx(xc.img,{"data-loc":"client/src/pages/PackageDetail.tsx:263",src:O,alt:I,style:{y:f,scale:b},className:"enchanted-detail-hero-image absolute inset-0 h-full w-full object-cover"}):s.jsx(xc.div,{"data-loc":"client/src/pages/PackageDetail.tsx:270",style:{y:f,scale:b},className:"absolute inset-0 bg-[radial-gradient(circle_at_75%_20%,rgba(244,210,201,0.42),transparent_28%),linear-gradient(135deg,#4a3b53,#2c212e)]","aria-hidden":"true"}),s.jsx("div",{"data-loc":"client/src/pages/PackageDetail.tsx:276",className:"enchanted-detail-hero-wash absolute inset-0"}),s.jsx("span",{"data-loc":"client/src/pages/PackageDetail.tsx:277",className:"enchanted-bloom -right-16 top-24 opacity-25","aria-hidden":"true"}),s.jsx("span",{"data-loc":"client/src/pages/PackageDetail.tsx:278",className:"enchanted-inner-orbit -right-24 top-12","aria-hidden":"true"}),s.jsx("span",{"data-loc":"client/src/pages/PackageDetail.tsx:279",className:"enchanted-route-glimmer bottom-28 right-[18%] hidden lg:block","aria-hidden":"true"}),s.jsx("div",{"data-loc":"client/src/pages/PackageDetail.tsx:281",className:"relative z-10 h-full container flex flex-col justify-end pb-12",children:s.jsxs(ts,{"data-loc":"client/src/pages/PackageDetail.tsx:282",direction:"up",children:[s.jsxs(ls,{"data-loc":"client/src/pages/PackageDetail.tsx:283",href:i?I3("staffPackages"):"/destinations",className:"inline-flex items-center gap-2 text-white/80 hover:text-white text-sm mb-6 transition-colors",children:[s.jsx(W,{"data-loc":"client/src/pages/PackageDetail.tsx:287",className:"w-4 h-4"}),i?n==="ar"?"Ø§ÙØ¹Ùدة Ø¥Ù٠براÙ
ج اÙÙ
ÙØ¸ÙÙÙ":"Back to staff programs":a("pkg.backToDest")]}),s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:290",className:"flex items-center gap-3 mb-3",children:[s.jsx("span",{"data-loc":"client/src/pages/PackageDetail.tsx:291",className:"rounded-full border border-white/20 bg-[#fff9f4]/90 px-3 py-1 text-xs font-semibold uppercase tracking-wide text-[#4a3b53] shadow-lg backdrop-blur-md",children:a(`dest.${o.category}`)}),F&&s.jsxs("span",{"data-loc":"client/src/pages/PackageDetail.tsx:295",className:"inline-flex items-center gap-1.5 text-white/90 text-sm",children:[s.jsx(mr,{"data-loc":"client/src/pages/PackageDetail.tsx:296",className:"w-4 h-4"}),F]})]}),s.jsx("h1",{"data-loc":"client/src/pages/PackageDetail.tsx:301",className:"enchanted-title max-w-3xl text-4xl font-semibold leading-[1.02] text-white md:text-7xl",children:I}),s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:304",className:"flex flex-wrap items-center gap-5 mt-5 text-white/90 text-sm",children:[s.jsxs("span",{"data-loc":"client/src/pages/PackageDetail.tsx:305",className:"inline-flex items-center gap-2",children:[s.jsx(Pl,{"data-loc":"client/src/pages/PackageDetail.tsx:306",className:"w-4 h-4 text-[#f2cad5]"}),o.durationDays," ",a("common.days")," / ",o.durationNights," ",a("common.night")]}),s.jsxs("span",{"data-loc":"client/src/pages/PackageDetail.tsx:309",className:"inline-flex items-center gap-2",children:[s.jsx(pr,{"data-loc":"client/src/pages/PackageDetail.tsx:310",className:"w-4 h-4 text-[#f2cad5]"}),V?s.jsx("strong",{"data-loc":"client/src/pages/PackageDetail.tsx:312",className:"text-[#f5d5dd]",children:Y}):s.jsxs(s.Fragment,{children:[a("common.startingFrom")," "," ",s.jsx("strong",{"data-loc":"client/src/pages/PackageDetail.tsx:316",className:"text-[#f5d5dd]",children:Y})]})]}),s.jsxs("span",{"data-loc":"client/src/pages/PackageDetail.tsx:320",className:"inline-flex items-center gap-2 rounded-full border border-white/15 bg-white/[0.08] px-3 py-1.5",children:[s.jsx(fb,{"data-loc":"client/src/pages/PackageDetail.tsx:321",className:"w-4 h-4 text-[#f2cad5]"}),J.ticketIncluded?n==="ar"?"Ø§ÙØªØ°Ùرة Ù
Ø´Ù
ÙÙØ©":"Ticket included":n==="ar"?"Ø§ÙØªØ°Ùرة ØºÙØ± Ù
Ø´Ù
ÙÙØ©":"Ticket not included",J.ticketIncluded&&J.ticketRoute&&s.jsx("strong",{"data-loc":"client/src/pages/PackageDetail.tsx:326",className:"font-mono text-[11px] text-white/70",dir:"ltr",children:J.ticketRoute})]})]})]})})]}),s.jsx("section",{"data-loc":"client/src/pages/PackageDetail.tsx:334",className:"relative z-20 -mt-6 pb-4",children:s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:335",className:"container",children:[s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:33
11176",className:"enchanted-card grid overflow-hidden sm:grid-cols-2 lg:grid-cols-4",children:[s.jsx(_y,{"data-loc":"client/src/pages/PackageDetail.tsx:337",icon:Pl,label:n==="ar"?"Ù
دة Ø§ÙØ¨Ø±ÙاÙ
ج":"Program duration",value:`${o.durationDays} ${a("common.days")} · ${o.durationNights} ${a("common.night")}`}),s.jsx(_y,{"data-loc":"client/src/pages/PackageDetail.tsx:338",icon:Yb,label:n==="ar"?"ØµÙØ§ØÙØ© Ø§ÙØ³Ùر":"Travel validity",value:K||(n==="ar"?"ØªÙØ±Ø§Ø¬Ø¹ Ø¹ÙØ¯ Ø§ÙØ·Ùب":"Confirmed on request")}),s.jsx(_y,{"data-loc":"client/src/pages/PackageDetail.tsx:339",icon:mr,label:n==="ar"?"اÙÙØ¬ÙØ© Ø§ÙØ±Ø¦ÙØ³ÙØ©":"Main destination",value:F||a(`dest.${o.category}`)}),s.jsx(_y,{"data-loc":"client/src/pages/PackageDetail.tsx:340",icon:M0,label:V?n==="ar"?"ØØ§ÙØ© Ø§ÙØ³Ø¹Ø±":"Price status":n==="ar"?"Ø§ÙØ¥Ø¬Ù
اÙ٠اÙÙ
ÙØ´Ùر":"Published total",value:Y,last:!0})]}),(J.ticketRoute||Array.isArray(o.hotels)&&o.hotels.length>0)&&s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:344",className:"mt-3 flex flex-wrap gap-3",children:[J.ticketRoute&&s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:346",className:"enchanted-card flex items-center gap-3 px-5 py-3",children:[s.jsx("span",{"data-loc":"client/src/pages/PackageDetail.tsx:347",className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-[#C9A961]/12 text-[#C9A961]",children:s.jsx(fb,{"data-loc":"client/src/pages/PackageDetail.tsx:347",className:"h-4 w-4"})}),s.jsxs("span",{"data-loc":"client/src/pages/PackageDetail.tsx:348",className:"min-w-0",children:[s.jsx("span",{"data-loc":"client/src/pages/PackageDetail.tsx:349",className:"block text-[11px] font-medium text-muted-foreground",children:n==="ar"?"Ù
سار Ø§ÙØ·ÙراÙ":"Flight route"}),s.jsx("strong",{"data-loc":"client/src/pages/PackageDetail.tsx:350",className:"mt-0.5 block font-mono text-sm text-foreground",dir:"ltr",children:J.ticketRoute})]})]}),Array.isArray(o.hotels)&&o.hotels.length>0&&s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:355",className:"enchanted-card flex items-center gap-3 px-5 py-3",children:[s.jsx("span",{"data-loc":"client/src/pages/PackageDetail.tsx:356",className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-[#ae667c]/12 text-[#ae667c]",children:s.jsx(Cl,{"data-loc":"client/src/pages/PackageDetail.tsx:356",className:"h-4 w-4"})}),s.jsxs("span",{"data-loc":"client/src/pages/PackageDetail.tsx:357",className:"min-w-0",children:[s.jsx("span",{"data-loc":"client/src/pages/PackageDetail.tsx:358",className:"block text-[11px] font-medium text-muted-foreground",children:n==="ar"?"Ø®ÙØ§Ø±Ø§Øª Ø§ÙØ¥ÙاÙ
Ø©":"Stay options"}),s.jsxs("strong",{"data-loc":"client/src/pages/PackageDetail.tsx:359",className:"mt-0.5 block text-sm text-foreground",children:[o.hotels.length," ",n==="ar"?"ÙÙØ¯Ù":"hotels"]})]})]}),J.ticketIncluded&&s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:364",className:"enchanted-card flex items-center gap-3 px-5 py-3",children:[s.jsx("span",{"data-loc":"client/src/pages/PackageDetail.tsx:365",className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-emerald-500/12 text-emerald-600",children:s.jsx(sa,{"data-loc":"client/src/pages/PackageDetail.tsx:365",className:"h-4 w-4"})}),s.jsxs("span",{"data-loc":"client/src/pages/PackageDetail.tsx:366",className:"min-w-0",children:[s.jsx("span",{"data-loc":"client/src/pages/PackageDetail.tsx:367",className:"block text-[11px] font-medium text-muted-foreground",children:n==="ar"?"Ø´Ù
ÙÙ Ø§ÙØªØ°Ùرة":"Ticket inclusion"}),s.jsx("strong",{"data-loc":"client/src/pages/PackageDetail.tsx:368",className:"mt-0.5 block text-sm text-foreground",children:n==="ar"?"شاÙ
Ù â Ù
Ø¤ÙØ¯":"Included â confirmed"})]})]})]})]})}),s.jsxs("section",{"data-loc":"client/src/pages/PackageDetail.tsx:378",className:"section-spacing relative overflow-hidden pt-12 md:pt-16",children:[s.jsx("span",{"data-loc":"client/src/pages/PackageDetail.tsx:379",className:"enchanted-bloom -left-32 top-[30rem] scale-75 opacity-35","aria-hidden":"true"}),s.jsx("div",{"data-loc":"client/src/pages/PackageDetail.tsx:380",className:"container",children:s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:381",className:"grid lg:grid-cols-3 gap-12",children:[s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:383",className:"lg:col-span-2 space-y-14",children:[(_||U)&&s.jsxs(ts,{"data-loc":"client/src/pages/PackageDetail.tsx:386",children:[s.jsx("h2",{"data-loc":"client/src/pages/PackageDetail.tsx:387",className:"enchanted-title mb-4 text-3xl font-semibold text-foreground",children:a("pkg.overview")}),_&&s.jsx("p",{"data-loc":"client/src/pages/PackageDetail.tsx:390",className:"text-lg text-foreground
1117/80 leading-relaxed mb-4",children:_}),U&&s.jsx("p",{"data-loc":"client/src/pages/PackageDetail.tsx:391",className:"text-muted-foreground leading-relaxed",children:U})]}),oe.length>0&&s.jsxs(ts,{"data-loc":"client/src/pages/PackageDetail.tsx:396",children:[s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:397",className:"mb-6 flex items-end justify-between gap-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:398",children:[s.jsx("p",{"data-loc":"client/src/pages/PackageDetail.tsx:399",className:"enchanted-kicker",children:n==="ar"?"ØµÙØ± Ø§ÙØ¨Ø±ÙاÙ
ج":"Program gallery"}),s.jsx("h2",{"data-loc":"client/src/pages/PackageDetail.tsx:400",className:"enchanted-title mt-2 text-3xl font-semibold text-foreground",children:n==="ar"?"ÙÙ
ØØ© Ø¹Ù Ø§ÙØªØ¬Ø±Ø¨Ø©":"A glimpse of the experience"})]}),s.jsxs("span",{"data-loc":"client/src/pages/PackageDetail.tsx:402",className:"text-sm text-muted-foreground",children:[oe.length," ",n==="ar"?"ØµÙØ±":"images"]})]}),s.jsx("div",{"data-loc":"client/src/pages/PackageDetail.tsx:404",className:"grid grid-cols-2 gap-3 md:grid-cols-3",children:oe.slice(0,6).map((te,me)=>s.jsx("div",{"data-loc":"client/src/pages/PackageDetail.tsx:406",className:`enchanted-frame overflow-hidden bg-muted ${me===0?"col-span-2 row-span-2":""}`,children:s.jsx("img",{"data-loc":"client/src/pages/PackageDetail.tsx:407",src:te,alt:`${I} ${me+1}`,loading:"lazy",className:"aspect-[4/3] h-full w-full object-cover transition-transform duration-500 hover:scale-105"})},`${te}-${me}`))})]}),Array.isArray(o.highlights)&&o.highlights.length>0&&s.jsxs(ts,{"data-loc":"client/src/pages/PackageDetail.tsx:416",children:[s.jsx("h2",{"data-loc":"client/src/pages/PackageDetail.tsx:417",className:"enchanted-title mb-6 text-3xl font-semibold text-foreground",children:a("pkg.highlights")}),s.jsx(c2,{"data-loc":"client/src/pages/PackageDetail.tsx:420",className:"grid sm:grid-cols-2 gap-4",children:o.highlights.map((te,me)=>s.jsxs(l2,{"data-loc":"client/src/pages/PackageDetail.tsx:422",className:"enchanted-card flex items-start gap-3 p-4",children:[s.jsx(Tu,{"data-loc":"client/src/pages/PackageDetail.tsx:426",className:"w-5 h-5 text-primary mt-0.5 shrink-0 fill-primary/20"}),s.jsx("span",{"data-loc":"client/src/pages/PackageDetail.tsx:427",className:"text-foreground/90",children:R(te.ar,te.en)})]},me))})]}),G.length>0&&s.jsx(ts,{"data-loc":"client/src/pages/PackageDetail.tsx:435",children:s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:436",className:"enchanted-card bg-secondary/35 p-6 md:p-8",children:[s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:437",className:"mb-6 flex items-start gap-4",children:[s.jsx("div",{"data-loc":"client/src/pages/PackageDetail.tsx:438",className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-2xl bg-[#4a3b53] text-[#fff9f4]",children:s.jsx(fb,{"data-loc":"client/src/pages/PackageDetail.tsx:438",className:"h-5 w-5"})}),s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:439",children:[s.jsx("h2",{"data-loc":"client/src/pages/PackageDetail.tsx:440",className:"enchanted-title text-3xl font-semibold text-foreground",children:n==="ar"?"Ø§ÙØ®Ø¯Ù
ات اÙÙ
ÙØ«ÙØ©":"Listed program services"}),s.jsx("p",{"data-loc":"client/src/pages/PackageDetail.tsx:441",className:"mt-1 text-sm leading-6 text-muted-foreground",children:n==="ar"?"ØªÙØ§ØµÙÙ Ø§ÙØ®Ø¯Ù
Ø© ÙÙ
ا ÙØ±Ø¯Øª ÙÙ Ø§ÙØ¨Ø±ÙاÙ
ج اÙÙ
ÙØ´Ùر.":"Service details as stated in the published program."})]})]}),s.jsx("div",{"data-loc":"client/src/pages/PackageDetail.tsx:444",className:"grid gap-3 md:grid-cols-2",children:G.map((te,me)=>{const fe=R(String(te.labelAr||""),String(te.labelEn||"")),Ae=R(String(te.detailsAr||""),String(te.detailsEn||""));return s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:449",className:"rounded-[1.1rem] border border-border/70 bg-background/75 flex items-start gap-3 p-4",children:[s.jsx(ns,{"data-loc":"client/src/pages/PackageDetail.tsx:450",className:"mt-0.5 h-5 w-5 shrink-0 text-[#ae667c]"}),s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:451",children:[s.jsx("p",{"data-loc":"client/src/pages/PackageDetail.tsx:452",className:"text-sm font-bold text-foreground",children:fe||(n==="ar"?"خدÙ
Ø© Ø§ÙØ¨Ø±ÙاÙ
ج":"Program service")}),Ae&&s.jsx("p",{"data-loc":"client/src/pages/PackageDetail.tsx:453",className:"mt-1 text-sm leading-6 text-muted-foreground",children:Ae})]})]},`${String(te.type||"service")}-${me}`)})})]})}),Array.isArray(o.itinerary)&&o.itinerary.length>0&&s.jsxs(ts,{"data-loc":"client/src/pages/PackageDetail.tsx:465",children:[s.jsx("h2",{"data-loc":"client/src/pages/PackageDetail.tsx:466",className:"font-display font-bold text-3xl text-foreground mb-8",children:a("pkg.itinerary")}),s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:469",className:"relative ltr:pl-8 rtl:pr-8",children:[s.jsx("div",{"data-loc":"client/src/pages/PackageDetail.tsx:471",className:"absolute top-2 bottom-2 ltr:left-[7px] rtl:right-[7px] w-[2px] bg-gradient-to-b from-primary via-primary/40 to-transparent"}),s.jsx(c2,{"data-loc":"client/src/pages/PackageDetail.tsx:472",className:"space-y-8",stagger:.1,children:o.itinerary.map((te,me)=>s.jsxs(l2,{"data-loc":"client/src/pages/PackageDetail.tsx:474",direction:r?"right":"left",className:"relative",children:[s.jsx("span",{"data-loc":"client/src/pages/PackageDetail.tsx:475",className:"absolute ltr:-left-8 rtl:-right-8 top-1.5 w-4 h-4 rounded-full bg-primary ring-4 ring-primary/15"}),s.jsx("p",{"data-loc":"client/src/pages/PackageDetail.tsx:476",className:"text-xs font-bold uppercase tracking-wider text-primary mb-1",children:R(te.dayAr,te.dayEn)}),s.jsx("h3",{"data-loc":"client/src/pages/PackageDetail.tsx:479",className:"enchanted-title mb-1.5 text-xl font-semibold text-foreground",children:R(te.titleAr,te.titleEn)}),s.jsx("p",{"data-loc":"client/src/pages/PackageDetail.tsx:482",className:"text-muted-foreground leading-relaxed",children:R(te.descAr,te.descEn)})]},me))})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:493",className:"grid sm:grid-cols-2 gap-8",children:[Array.isArray(o.inclusions)&&o.inclusions.length>0&&s.jsxs(ts,{"data-loc":"client/src/pages/PackageDetail.tsx:495",direction:"right",children:[s.jsx("h3",{"data-loc":"client/src/pages/PackageDetail.tsx:496",className:"enchanted-title mb-4 text-2xl font-semibold text-foreground",children:a("pkg.inclusions")}),s.jsx("ul",{"data-loc":"client/src/pages/PackageDetail.tsx:499",className:"space-y-3",children:o.inclusions.map((te,me)=>s.jsxs("li",{"data-loc":"client/src/pages/PackageDetail.tsx:501",className:"flex items-start gap-3",children:[s.jsx("span",{"data-loc":"client/src/pages/PackageDetail.tsx:502",className:"w-5 h-5 rounded-full bg-green-600/15 flex items-center justify-center mt-0.5 shrink-0",children:s.jsx(bc,{"data-loc":"client/src/pages/PackageDetail.tsx:503",className:"w-3 h-3 text-green-600"})}),s.jsx("span",{"data-loc":"client/src/pages/PackageDetail.tsx:505",className:"text-foreground
1117/85 text-sm",children:R(te.ar,te.en)})]},me))})]}),Array.isArray(o.exclusions)&&o.exclusions.length>0&&s.jsxs(ts,{"data-loc":"client/src/pages/PackageDetail.tsx:512",direction:"left",children:[s.jsx("h3",{"data-loc":"client/src/pages/PackageDetail.tsx:513",className:"enchanted-title mb-4 text-2xl font-semibold text-foreground",children:a("pkg.exclusions")}),s.jsx("ul",{"data-loc":"client/src/pages/PackageDetail.tsx:516",className:"space-y-3",children:o.exclusions.map((te,me)=>s.jsxs("li",{"data-loc":"client/src/pages/PackageDetail.tsx:518",className:"flex items-start gap-3",children:[s.jsx("span",{"data-loc":"client/src/pages/PackageDetail.tsx:519",className:"w-5 h-5 rounded-full bg-destructive/15 flex items-center justify-center mt-0.5 shrink-0",children:s.jsx(ks,{"data-loc":"client/src/pages/PackageDetail.tsx:520",className:"w-3 h-3 text-destructive"})}),s.jsx("span",{"data-loc":"client/src/pages/PackageDetail.tsx:522",className:"text-foreground/85 text-sm",children:R(te.ar,te.en)})]},me))})]})]}),(R(J.cancellationPolicy?.ar,J.cancellationPolicy?.en)||R(J.paymentPolicy?.ar,J.paymentPolicy?.en)||R(J.childPolicy?.ar,J.childPolicy?.en))&&s.jsx(ts,{"data-loc":"client/src/pages/PackageDetail.tsx:531",children:s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:532",children:[s.jsx("p",{"data-loc":"client/src/pages/PackageDetail.tsx:533",className:"enchanted-kicker",children:n==="ar"?"ÙØ¨Ù Ø¥Ø±Ø³Ø§Ù Ø·ÙØ¨ Ø§ÙØØ¬Ø²":"Before requesting a reservation"}),s.jsx("h2",{"data-loc":"client/src/pages/PackageDetail.tsx:534",className:"enchanted-title mt-2 text-3xl font-semibold text-foreground",children:n==="ar"?"Ø³ÙØ§Ø³Ø§Øª Ø§ÙØ¨Ø±ÙاÙ
ج":"Program policies"}),s.jsx("div",{"data-loc":"client/src/pages/PackageDetail.tsx:535",className:"mt-6 grid gap-4 md:grid-cols-3",children:[{icon:sa,title:n==="ar"?"Ø§ÙØ¥Ùغاء":"Cancellation",text:R(J.cancellationPolicy?.ar,J.cancellationPolicy?.en)},{icon:M0,title:n==="ar"?"Ø§ÙØ¯Ùع":"Payment",text:R(J.paymentPolicy?.ar,J.paymentPolicy?.en)},{icon:Dk,title:n==="ar"?"Ø§ÙØ£Ø·ÙاÙ":"Children",text:R(J.childPolicy?.ar,J.childPolicy?.en)}].filter(te=>te.text).map(te=>s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:541",className:"enchanted-card enchanted-catalog-card p-5",children:[s.jsx(te.icon,{"data-loc":"client/src/pages/PackageDetail.tsx:542",className:"h-5 w-5 text-primary"}),s.jsx("h3",{"data-loc":"client/src/pages/PackageDetail.tsx:543",className:"mt-4 font-bold text-foreground",children:te.title}),s.jsx("p",{"data-loc":"client/src/pages/PackageDetail.tsx:544",className:"mt-2 text-sm leading-6 text-muted-foreground",children:te.text})]},te.title))})]})}),o.category==="umrah"&&s.jsx(d0e,{"data-loc":"client/src/pages/PackageDetail.tsx:554",details:o.umrahDetails,lang:n,currency:o.currency}),o.pricingMode==="package"&&o.packagePricing&&Array.isArray(o.packagePricing.rows)&&o.packagePricing.rows.length>0&&s.jsxs(ts,{"data-loc":"client/src/pages/PackageDetail.tsx:566",children:[s.jsx("h2",{"data-loc":"client/src/pages/PackageDetail.tsx:567",className:"enchanted-title mb-6 text-3xl font-semibold text-foreground",children:n==="ar"?"اÙÙÙØ§Ø¯Ù ÙØ³Ø¹Ø± Ø§ÙØ¨Ø±ÙاÙ
ج":"Hotels & Package Price"}),s.jsx(u0e,{"data-loc":"client/src/pages/PackageDetail.tsx:570",lang:n,currency:o.currency,data:o.packagePricing})]}),o.pricingMode!=="package"&&Array.isArray(o.hotels)&&o.hotels.length>0&&s.jsxs(ts,{"data-loc":"client/src/pages/PackageDetail.tsx:576",children:[s.jsx("h2",{"data-loc":"client/src/pages/PackageDetail.tsx:577",className:"enchanted-title mb-6 text-3xl font-semibold text-foreground",children:a("pkg.hotels")}),s.jsx("div",{"data-loc":"client/src/pages/PackageDetail.tsx:580",className:"space-y-4",children:o.hotels.map((te,me)=>{const fe=te,Ae=String(fe.ratingStars||""),xe=Number.parseInt(Ae,10),ae=Number.isFinite(xe)?Math.min(5,Math.max(0,xe)):Math.min(5,(Ae.match(/\*/g)||[]).length),le="",ze=` ${o.currency||"JOD"}`,pt=[3,4,5,6,7].map(ct=>({n:ct,price:(fe[`price${ct}`]||"").trim()})).filter(ct=>ct.price&&Number(ct.price)>0),xt=R(fe.nightsAr,fe.nightsEn),be=R(fe.cityAr,fe.cityEn),Tt=R(fe.roomTypeAr,fe.roomTypeEn),Xt=R(fe.mealPlanAr,fe.mealPlanEn),Jt=fe.rateCurrency||o.currency||"JOD",it=[{label:n==="ar"?"Ù
Ø²Ø¯ÙØ¬Ø©/Ø«ÙØ§Ø«ÙØ©":"Double / triple",value:fe.doubleOrTripleRoomRate},{label:n==="ar"?"ØºØ±ÙØ© Ù
Ø²Ø¯ÙØ¬Ø©":"Double room",value:fe.doubleRoomRate},{label:n==="ar"?"ØºØ±ÙØ© Ù
ÙØ±Ø¯Ø©":"Single room",value:fe.singleRoomRate},{label:n==="ar"?"Ø·ÙÙ 2â6":"Child 2â6",value:fe.childRate2to6},{label:n==="ar"?"Ø·ÙÙ 6â11":"Child 6â11",value:fe.childRate6to11}].filter(ct=>ct.value),at=ct=>/[A-Za-zØ£-Ù]/.test(ct)?ct:`${ct} ${Jt}`;return s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:607",className:"enchanted-card p-5",children:[s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:608",className:"flex items-center gap-4",children:[s.jsx("div",{"data-loc":"client/src/pages/PackageDetail.tsx:609",className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center shrink-0",children:s.jsx(Cl,{"data-loc":"client/src/pages/PackageDetail.tsx:610",className:"w-6 h-6 text-primary"})}),s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:612",className:"flex-1",children:[s.jsx("h4",{"data-loc":"client/src/pages/PackageDetail.tsx:613",className:"font-semibold text-foreground",children:R(fe.nameAr,fe.nameEn)}),pt.length===0&&xt&&s.jsxs("p",{"data-loc":"client/src/pages/PackageDetail.tsx:615",className:"text-sm text-muted-foreground inline-flex items-center gap-2",children:[s.jsx(Hre,{"data-loc":"client/src/pages/PackageDetail.tsx:616",className:"w-3.5 h-3.5"}),xt]})]}),ae>0&&s.jsx("div",{"data-loc":"client/src/pages/PackageDetail.tsx:622",className:"flex items-center gap-0.5",children:Array.from({length:ae}).map((ct,Ct)=>s.jsx(Tu,{"data-loc":"client/src/pages/PackageDetail.tsx:624",className:"w-4 h-4 text-[#C9A961] fill-[#C9A961]"},Ct))})]}),(be||Tt||Xt)&&s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:630",className:"mt-4 flex flex-wrap gap-2 text-xs text-muted-foreground",children:[be&&s.jsxs("span",{"data-loc":"client/src/pages/PackageDetail.tsx:631",className:"inline-flex items-center gap-1.5 rounded-full border border-border bg-background/70 px-3 py-1.5",children:[s.jsx(mr,{"data-loc":"client/src/pages/PackageDetail.tsx:631",className:"h-3.5 w-3.5 text-primary"}),be]}),Tt&&s.jsxs("span",{"data-loc":"client/src/pages/PackageDetail.tsx:632",className:"inline-flex items-center gap-1.5 rounded-full border border-border bg-background/70 px-3 py-1.5",children:[s.jsx(Dk,{"data-loc":"client/src/pages/PackageDetail.tsx:632",className:"h-3.5 w-3.5 text-primary"}),Tt]}),Xt&&s.jsxs("span",{"data-loc":"client/src/pages/PackageDetail.tsx:633",className:"inline-flex items-center gap-1.5 rounded-full border border-border bg-background/70 px-3 py-1.5",children:[s.jsx(pr,{"data-loc":"client/src/pages/PackageDetail.tsx:633",className:"h-3.5 w-3.5 text-primary"}),Xt]})]}),it.length>0&&s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:637",className:"mt-4",children:[s.jsx("p",{"data-loc":"client/src/pages/PackageDetail.tsx:638",className:"mb-2 text-xs font-semibold text-muted-foreground",children:n==="ar"?"Ø®ÙØ§Ø±Ø§Øª ÙØ£Ø³Ø¹Ø§Ø± IBRIX اÙÙ
عتÙ
دة ÙÙÙØ±Ø¯":"IBRIX approved per-person options & prices"}),s.jsx("div",{"data-loc":"client/src/pages/PackageDetail.tsx:639",className:"grid gap-2 sm:grid-cols-2 lg:grid-cols-3",children:it.map(ct=>s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:641",className:"rounded-lg border border-primary/10 bg-primary/[0.04] px-3 py-2",children:[s.jsx("div",{"data-loc":"client/src/pages/PackageDetail.tsx:642",className:"text-[11px] text-muted-foreground",children:ct.label}),s.jsx("div",{"data-loc":"client/src/pages/PackageDetail.tsx:643",className:"mt-0.5 text-sm font-bold text-primary",children:at(ct.value)})]},ct.label))})]}),pt.length>0&&s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:650",className:"mt-4",children:[s.jsx("p",{"data-loc":"client/src/pages/PackageDetail.tsx:651",className:"text-xs text-muted-foreground mb-2",children:n==="ar"?"سعر اÙÙØ±Ø¯ ÙÙ Ø§ÙØºØ±ÙØ© اÙÙ
Ø²Ø¯ÙØ¬Ø©":"Per-person price (double room)"}),s.jsx("div",{"data-loc":"client/src/pages/PackageDetail.tsx:656",className:"grid grid-cols-3 sm:grid-cols-5 ga
1117p-2",children:pt.map(ct=>s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:658",className:"rounded-lg border border-border bg-background/60 text-center py-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:659",className:"text-[11px] text-muted-foreground",children:[ct.n," ",n==="ar"?"ÙÙØ§ÙÙ":"nights"]}),s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:662",className:"text-sm font-bold text-primary mt-0.5",children:[le,ct.price,ze]})]},ct.n))})]})]},me)})})]})]}),s.jsx("div",{"data-loc":"client/src/pages/PackageDetail.tsx:679",className:"lg:col-span-1",children:s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:680",className:"lg:sticky lg:top-28 space-y-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:682",className:"enchanted-card enchanted-catalog-card overflow-hidden",children:[s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:683",className:"bg-[linear-gradient(135deg,#2c212e,#4a3b53)] p-5 text-white",children:[s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:684",className:"mb-3 flex items-center justify-between gap-3",children:[s.jsx("p",{"data-loc":"client/src/pages/PackageDetail.tsx:685",className:"text-xs font-bold uppercase tracking-[0.15em] text-white/55",children:n==="ar"?"ØªÙØµÙÙ Ø§ÙØ³Ø¹Ø±":"Price breakdown"}),s.jsx("span",{"data-loc":"client/src/pages/PackageDetail.tsx:686",className:"rounded-full bg-[#f4d2c9]/15 px-3 py-1 text-[11px] font-bold text-[#f4d2c9]",children:n==="ar"?"Ø·ÙØ¨ بدÙÙ Ø¯ÙØ¹":"No payment now"})]}),s.jsx(o9,{"data-loc":"client/src/pages/PackageDetail.tsx:688",lang:n,currency:o.currency,totalPrice:o.price,landPrice:J.landPrice,ticketIncluded:J.ticketIncluded,ticketPrice:J.ticketPrice,ticketRoute:J.ticketRoute,priceBasis:J.priceBasis,ticketPriceReviewRequired:J.ticketPriceReviewRequired,variant:"dark",className:"rounded-xl"}),s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:701",className:"mt-4 space-y-2.5 border-t border-white/10 pt-4 text-sm text-white/70",children:[s.jsxs("p",{"data-loc":"client/src/pages/PackageDetail.tsx:702",className:"flex items-center justify-between gap-3",children:[s.jsx("span",{"data-loc":"client/src/pages/PackageDetail.tsx:702",children:n==="ar"?"اÙ٠دة":"Duration"}),s.jsxs("strong",{"data-loc":"client/src/pages/PackageDetail.tsx:702",className:"text-white",children:[o.durationDays," ",a("common.days")]})]}),s.jsxs("p",{"data-loc":"client/src/pages/PackageDetail.tsx:703",className:"flex items-center justify-between gap-3",children:[s.jsx("span",{"data-loc":"client/src/pages/PackageDetail.tsx:703",children:n==="ar"?"Ø§ÙØµÙاØÙØ©":"Validity"}),s.jsx("strong",{"data-loc":"client/src/pages/PackageDetail.tsx:703",className:"text-white",children:K||(n==="ar"?"Ø¹ÙØ¯ Ø§ÙØ·Ùب":"On request")})]}),ee&&s.jsxs("p",{"data-loc":"client/src/pages/PackageDetail.tsx:704",className:"flex items-center justify-between gap-3",children:[s.jsx("span",{"data-loc":"client/src/pages/PackageDetail.tsx:704",children:n==="ar"?"آخر Ù ÙØ¹Ø¯ ÙÙØØ¬Ø²":"Book by"}),s.jsx("strong",{"data-loc":"client/src/pages/PackageDetail.tsx:704",className:"text-[#f2cad5]",children:ee})]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:707",className:"space-y-3 p-6",children:[s.jsxs("button",{"data-loc":"client/src/pages/PackageDetail.tsx:708",type:"button",onClick:()=>A(!0),className:"enchanted-button flex min-h-14 w-full items-center justify-center gap-2 bg-primary px-5 py-3.5 font-bold text-primary-foreground shadow-md transition-transform active:scale-[0.97]",children:[s.jsx(Yb,{"data-loc":"client/src/pages/PackageDetail.tsx:709",className:"h-5 w-5"}),a("pkg.bookThis")]}),s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:711",className:"flex items-start gap-2 rounded-xl bg-[#f3dde1]/35 p-3 text-xs leading-5 text-muted-foreground",children:[s.jsx(Kb,{"data-loc":"client/src/pages/PackageDetail.tsx:712",className:"mt-0.5 h-4 w-4 shrink-0 text-primary"}),s.jsx("span",{"data-loc":"client/src/pages/PackageDetail.tsx:713",children:n==="ar"?"ÙØ±Ø§Ø¬Ø¹ ÙØ±ÙÙÙØ§ Ø§ÙØªÙÙØ± ÙØ§Ùسعر اÙÙÙØ§Ø¦Ù Ø«Ù ÙØªÙØ§ØµÙ Ù Ø¹Ù ÙØ¨Ù Ø£Ù Ø§ÙØªØ²Ø§Ù ٠اÙÙ.":"Our team checks availability and the final price before any financial commitment."})]}),s.jsx("a",{"data-loc":"client/src/pages/PackageDetail.tsx:715",href:H,target:"_blank",rel:"noopener noreferrer",className:"flex min-h-12 w-full items-center justify-center gap-2 rounded-xl border border-green-600 px-5 py-3 font-semibold text-green-700 transition-all hover:bg-green-600/5 active:scale-[0.97] dark:text-green-400",children:n==="ar"?"Ø§Ø³ØªÙØ³Ø§Ø± عبر ÙØ§ØªØ³Ø§Ø¨":"Inquire on WhatsApp"}),s.jsxs("button",{"data-loc":"client/src/pages/PackageDetail.tsx:716",type:"button",onClick:L,disabled:y,className:"flex min-h-12 w-full items-center justify-center gap-2 rounded-xl border border-primary px-5 py-3 font-semibold text-primary transition-all hover:bg-primary/5 active:scale-[0.97] disabled:opacity-60",children:[y?s.jsx(ft,{"data-loc":"client/src/pages/PackageDetail.tsx:717",className:"h-4 w-4 animate-spin"}):s.jsx(Sd,{"data-loc":"client/src/pages/PackageDetail.tsx:717",className:"h-4 w-4"}),a("common.downloadPdf")]}),s.jsx(i9,{"data-loc":"client/src/pages/PackageDetail.tsx:719",url:`/packages/${o.slug}`,title:I,text:_||"",variant:"button",className:"w-full"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:724",className:"enchanted-card p-6",children:[s.jsx("h3",{"data-loc":"client/src/pages/PackageDetail.tsx:725",className:"enchanted-title mb-4 text-xl font-semibold text-foreground",children:a("common.inquire")}),s.jsxs("form",{"data-loc":"client/src/pages/PackageDetail.tsx:728",onSubmit:te=>{te.preventDefault(),E.name.trim()&&S.mutate({name:E.name,phone:E.phone||void 0,email:E.email||void 0,message:E.message||void 0,packageSlug:o.slug})},className:"space-y-3",children:[s.jsx("input",{"data-loc":"client/src/pages/PackageDetail.tsx:742",required:!0,value:E.name,onChange:te=>D({...E,name:te.target.value}),placeholder:a("inquiry.name"),className:"w-full px-4 py-2.5 rounded-lg border border-input bg-background text-foreground text-sm focus:outline-none focus:ring-2 focus:ring-ring"}),s.jsx("input",{"data-loc":"client/src/pages/PackageDetail.tsx:749",value:E.phone,onChange:te=>D({...E,phone:te.target.value}),placeholder:a("inquiry.phone"),className:"w-full px-4 py-2.5 rounded-lg border border-input bg-background text-foreground text-sm focus:outline-none focus:ring-2 focus:ring-ring"}),s.jsx("input",{"data-loc":"client/src/pages/PackageDetail.tsx:755",type:"email",value:E.email,onChange:te=>D({...E,email:te.target.value}),placeholder:a("inquiry.email"),className:"w-full px-4 py-2.5 rounded-lg border border-input bg-background text-foreground text-sm focus:outline-none focus:ring-2 focus:ring-ring"}),s.jsx("textarea",{"data-loc":"client/src/pages/PackageDetail.tsx:762",value:E.message,onChange:te=>D({...E,message:te.target.value}),placeholder:a("inquiry.message"),rows:3,className:"w-full px-4 py-2.5 rounded-lg border border-input bg-background text-foreground text-sm focus:outline-none focus:ring-2 focus:ring-ring resize-none"}),s.jsx("button",{"data-loc":"client/src/pages/PackageDetail.tsx:769",type:"submit",disabled:S.isPending,className:"enchanted-button flex w-full items-center justify-center gap-2 bg-primary px-5 py-3 font-semibold text-primary-foreground hover:scale-[0.98] active:scale-[0.96] disabled:opacity-60",children:S.isPending?s.jsxs(s.Fragment,{children:[s.jsx(ft,{"data-loc":"client/src/pages/PackageDetail.tsx:776",className:"w-4 h-4 animate-spin"}),a("inquiry.sending")]}):a("inquiry.send")})]})]})]})})]})})]}),s.jsx(r$,{"data-loc":"client/src/pages/PackageDetail.tsx:791",open:T,onOpenChange:A,lang:n,packageSlug:o.slug,packageTitle:I,currency:o.currency,hotelOptions:ne,packagePrice:o.price,landPrice:J.landPrice,ticketIncluded:J.ticketIncluded,ticketPrice:J.ticketPrice,ticketRoute:J.ticketRoute,priceBasis:J.priceBasis,ticketPriceReviewRequired:J.ticketPriceReviewRequired,packageCity:F,packageImage:O,durationDays:o.durationDays,durationNights:o.durationNights,validFrom:J.validFrom||void 0,validTo:J.validTo||void 0,bookingDeadline:J.bookingDeadline||void 0}),s.jsx(oo,{"data-loc":"client/src/pages/PackageDetail.tsx:815"})]})}function _y({icon:e,label:t,value:n,last:a=!1}){return s.jsxs("div",{"data-loc":"client/src/pages/PackageDetail.tsx:832",className:`flex min-h-28 items-center gap-4 p-5 md:p-6 ${a?"":"border-b border-border/70 sm:border-b-0 sm:border-e"}`,children:[s.jsx("span",{"data-loc":"client/src/pages/PackageDetail.tsx:833",className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-2xl bg-primary/10 text-primary",children:s.jsx(e,{"data-loc":"client/src/pages/PackageDetail.tsx:834",className:"h-5 w-5"})}),s.jsxs("span",{"data-loc":"client/src/pages/PackageDetail.tsx:836",className:"min-w-0",children:[s.jsx("span",{"data-loc":"client/src/pages/PackageDetail.tsx:837",className:"block text-xs font-medium text-muted-foreground",children:t}),s.jsx("strong",{"data-loc":"client/src/pages/PackageDetail.tsx:838",className:"mt-1 block truncate text-sm text-foreground md:text-base",children:n})]})]})}const M3={eyebrowAr:"رØÙات Ù ÙØ¯Ø³Ø©",eyebrowEn:"Sacred Journeys",titleAr:"برا٠ج Ø§ÙØ¹Ù رة ÙØ§ÙØØ¬",titleEn:"Umrah & Hajj Programs",descAr:"Ø¨Ø§ÙØ§Øª ع٠رة ÙØØ¬ Ù ØªÙØ§Ù ÙØ© ٠ع Ø¥ÙØ§Ù Ø© ÙØ§Ø®Ø±Ø© باÙÙØ±Ø¨ Ù Ù Ø§ÙØØ±Ù Ø ÙØ¨Ø±Ø§Ù ج Ø±ÙØØ§ÙÙØ© Ø¨Ø¥Ø±Ø´Ø§Ø¯Ø ÙØ¯Ø¹Ù عÙ٠٠دار Ø§ÙØ³Ø§Ø¹Ø© Ø·ÙØ§Ù رØÙت٠اÙÙ ÙØ¯Ø³Ø©.",descEn:"Complete Umrah and Hajj packages with premium accommodations near Al-Haram, guided spiritual programs, and 24/7 support throughout your sacred journey.",requirementsTitleAr:"Ù ØªØ·ÙØ¨Ø§Øª Ø§ÙØ¹Ù رة",requirementsTitleEn:"Umrah Requirements",requirements:[{ar:"Ø¬ÙØ§Ø² Ø³ÙØ± سار٠اÙÙ ÙØ¹ÙÙ Ù٠دة ÙØ§ تÙ٠ع٠٧ Ø£Ø´ÙØ±.",en:"Passport valid for at least 7 months."},{ar:"تعبئة Ø¨ÙØ§Ùات اÙ٠عت٠رÙÙ ÙØ§Ù ÙØ© ÙØ¨Ù إصدار Ø§ÙØªØ£Ø´Ùرة.",en:"Complete pilgrim details before visa issuance."}],requirementsNoteAr:"تختÙ٠بعض اÙÙ ØªØ·ÙØ¨Ø§Øª ØØ³Ø¨ Ø§ÙØ¬ÙØ³ÙØ© ÙÙØ¶Ø¹ Ø§ÙØ¥Ùا٠ة. ØªÙØ§ØµÙ Ù Ø¹ÙØ§ ÙØªØ£ÙÙØ¯ Ù ØªØ·ÙØ¨Ø§Øª ØØ§ÙتÙ.",requirementsNoteEn:"Some requirements vary by nationality and residency. Contact us to confirm your case."},hxe="/manus-storage/umrah-haram-cover_c9247ed2.jpg",Mn=e=>String(e??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""),fxe=["single","double","triple","quad","quint"],gxe={ar:{bismillah:"Ø¨ÙØ³Ù٠٠اÙÙÙÙÙÙ Ø§ÙØ±ÙÙØÙÙ ÙÙ°ÙÙ Ø§ÙØ±ÙÙØÙÙÙ Ù",welcome:"رØÙØ© Ø¥Ù٠اÙÙØ© Ø¥ÙÙ Ø¨ÙØª اÙÙÙ Ø§ÙØØ±Ø§Ù Ù٠سجد رسÙÙÙ ï·º",programKicker:"Ø¨Ø±ÙØ§Ù ج Ø§ÙØ¹Ù رة",tripType:"ÙÙØ¹ Ø§ÙØ±ØÙØ©",byAir:"جÙÙÙØ§ (Ø·ÙØ±Ø§Ù)",byLand:"برÙÙØ§ â Ø¨Ø§ÙØØ§ÙÙØ©",priceFrom:"ÙØ¨Ø¯Ø£ Ø§ÙØ³Ø¹Ø± Ù Ù",perPerson:"ÙÙÙØ±Ø¯ / Ø¨Ø§ÙØºØ±ÙØ© Ø§ÙØ«ÙØ§Ø¦ÙØ©",onRequest:"ØØ³Ø¨ Ø§ÙØ·Ùب",hotelsTitle:"اÙÙÙØ§Ø¯Ù ÙØ§Ùأسعار",makkah:"ÙÙØ¯Ù Ù ÙØ©",madinah:"ÙÙØ¯Ù اÙ٠دÙÙØ©",rating:"Ø§ÙØªØµÙÙÙ",location:"اÙÙ ÙÙØ¹ / اÙÙ Ø³Ø§ÙØ©",meals:"اÙÙØ¬Ø¨Ø§Øª",single:"Ù ÙØ±Ø¯",double:"Ø«ÙØ§Ø¦Ù",triple:"Ø«ÙØ§Ø«Ù",quad:"رباعÙ",quint:"خ٠اسÙ",flightsNote:"ØªØ´Ù Ù ØªØ°ÙØ±Ø© Ø§ÙØ·ÙØ±Ø§Ù Ø°ÙØ§Ø¨Ø§Ù ÙØ¥ÙØ§Ø¨Ø§Ù ÙØ§ÙØªØ£Ø´ÙØ±Ø© ÙØ§ÙØ¥ÙØ§Ù Ø© ÙØ§ÙتÙÙÙØ§Øª ØØ³Ø¨ Ø§ÙØ¨Ø±Ùا٠ج. Ø§ÙØ±ØÙات Ø§ÙØ¬ÙÙØ© ٠تعددة ÙØªÙØØ¯ÙÙØ¯ ØØ³Ø¨ Ø§ÙØªÙÙÙØ± Ø¹ÙØ¯ Ø§ÙØØ¬Ø².",landNote:"Ø§ÙØªÙÙ٠عبر ØØ§ÙÙØ§Øª Ø³ÙØ§ØÙØ© Ù ÙÙÙÙØ© ÙØ§Ø®Ø±Ø©Ø ٠ع Ø§ÙØªØ£Ø´Ùرة ÙØ§ÙØ¥ÙØ§Ù Ø© ÙØ§ÙتÙÙÙØ§Øª ØØ³Ø¨ Ø§ÙØ¨Ø±Ùا٠ج.",requirements:"Ù ØªØ·ÙØ¨Ø§Øª Ø§ÙØ¹Ù رة",reqList:["Ø¬ÙØ§Ø² Ø³ÙØ± سار٠اÙÙ ÙØ¹ÙÙ Ù٠دة ÙØ§ تÙ٠ع٠٧ Ø£Ø´ÙØ±.","تعبئة Ø¨ÙØ§Ùات اÙ٠عت٠رÙÙ ÙØ§Ù ÙØ© ÙØ¨Ù إصدار Ø§ÙØªØ£Ø´Ùرة."],bookingTitle:"Ù ÙØ®Ùص ØØ¬Ø²Ù",departure:"ØªØ§Ø±ÙØ® Ø§ÙØ°Ùاب",returnD:"ØªØ§Ø±ÙØ® Ø§ÙØ¹Ùدة",nights:"عدد اÙÙÙØ§ÙÙ",program:"Ø§ÙØ¨Ø±Ùا٠ج",room:"ÙÙØ¹ Ø§ÙØºØ±ÙØ©",adults:"Ø§ÙØ¨Ø§ÙغÙÙ",childrenH:"Ø§ÙØ£Ø·ÙاÙ",child:"Ø·ÙÙ",yrs:"Ø³ÙØ©",total:"Ø§ÙØ¥Ø¬Ù اÙÙ Ø§ÙØªÙØ¯ÙØ±Ù",estimateNote:"Ø§ÙØ£Ø³Ø¹Ø§Ø± ÙÙÙ ÙØ±Ø¯ Ø¨Ø§ÙØ¯ÙÙØ§Ø± Ø§ÙØ£Ø±Ø¯ÙÙ ØØ³Ø¨ ÙÙØ¹ Ø§ÙØºØ±ÙØ©. Ø§ÙØ³Ø¹Ø± ØªÙØ¯Ùر٠ÙÙÙØ¤ÙÙÙØ¯ ÙÙØ§Ø¦ÙØ§Ù Ø¹ÙØ¯ Ø§ÙØØ¬Ø².",tagline:"IBRIX â Ø§ÙØ³ÙØ± ÙØ§ÙتشغÙÙ ÙØ§Ùخد٠ة",booking:"ÙÙØØ¬Ø² Ø£Ù Ø§ÙØ§Ø³ØªÙسار",labbayk:"ÙÙØ¨ÙÙÙÙÙ٠اÙÙÙÙÙÙÙ ÙÙ ÙÙØ¨ÙÙÙÙÙ"},en:{bismillah:"In the Name of Allah, the Most Gracious, the Most Merciful",welcome:"A spiritual journey to the Sacred House of Allah and the Mosque of His Messenger ï·º",programKicker:"Umrah Program",tripType:"Trip type",byAir:"By Air (Flight)",byLand:"By Land â Coach",priceFrom:"PRICE FROM",perPerson:"per person / double room",onRequest:"On request",hotelsTitle:"Hotels & Pricing",makkah:"Makkah Hotel",madinah:"Madinah Hotel",rating:"Rating",location:"Location / Distance",meals:"Meals",single:"Single",double:"Double",triple:"Triple",quad:"Quad",quint:"Quint",flightsNote:"Includes round-trip flight, visa, accommodation and transfers per program. Flights are multiple and confirmed by availability at booking.",landNote:"Travel aboard premium air-conditioned coaches, with visa, accommodation and transfers per program.",requirements:"Umrah Requirements",reqList:["Passport valid for at least 7 months.","Complete pilgrim details before visa issuance."],bookingTitle:"Your Booking",departure:"Departure",returnD:"Return",nights:"Nights",program:"Program",room:"Room type",adults:"Adults",childrenH:"Children",child:"Child",yrs:"yrs",total:"Estimated total",estimateNote:"Per-person prices in Jordanian Dinar by room type. The estimate is confirmed at booking.",tagline:"IBRIX â Travel, operations, and service",booking:"Bookings & inquiries",labbayk:"Labbayk Allahumma Labbayk"}};function AI(e){if(!e)return"â";const t=String(e).match(/(\d+)/),n=t?parseInt(t[1],10):0;return n>=1&&n<=7?"â ".repeat(n):Mn(e)}function EI(){return`<div class="ornament"><svg width="180" height="22" viewBox="0 0 180 22" fill="none" xmlns="http://www.w3.org/2000/svg"> 1118 <path d="M2 11 H62" stroke="#C9A227" stroke-width="1"/> 1119 <path d="M178 11 H118" stroke="#C9A227" stroke-width="1"/> 1120 <path d="M90 2 L98 11 L90 20 L82 11 Z" stroke="#C9A227" stroke-width="1.2" fill="#F6ECCB"/> 1121 <circle cx="90" cy="11" r="2.4" fill="#C9A227"/> 1122 <circle cx="70" cy="11" r="2" fill="#C9A227"/> 1123 <circle cx="110" cy="11" r="2" fill="#C9A227"/> 1124 </svg></div>`}function xxe(e){const t=[];for(const n of e){const a=n.prices?.double||0;a>0&&t.push(a)}if(t.length)return Math.min(...t);for(const n of e)for(const a of fxe){const r=n.prices?.[a]||0;r>0&&t.push(r)}return t.length?Math.min(...t):0}function bxe({programName:e,rows:t,lang:n,booking:a}){const r=gxe[n],i=n==="ar"?"rtl":"ltr",o=n==="ar",c=t[0]?.currency||a?.currency||"JOD",l=t[0]?.tripType==="land"?"land":"flight",d=Mn(e),m=o?"'Noto Sans Arabic','Segoe UI',Tahoma,sans-serif":"'Manrope','Segoe UI',Arial,sans-serif",h=o?"'Amiri','Noto Sans Arabic','Segoe UI',serif":"'Manrope','Segoe UI',Arial,sans-serif",x=m,f="'Manrope','Segoe UI',Arial,sans-serif",b=_=>`<span class="ltr">${Mn(_)}</span>`,y=_=>_&&_>0?b(`${_} ${c}`):"â",w=xxe(t),T=t.some(_=>_.madinahHotel),A=t.map((_,U)=>{const O=AI(_.makkahRating),W=_.madinahHotel?`${Mn(_.madinahHotel)}${_.madinahRating?`<span class="sub-r">${AI(_.madinahRating)}</span>`:""}`:"â";return`<tr class="${U%2?"alt":""}"> 1125 <td class="h-name">${Mn(_.makkahHotel||"â")}</td> 1126 <td class="h-st">${O}</td> 1127 <td class="h-loc">${Mn(_.location||"â")}</td> 1128 ${T?`<td class="h-name">${W}</td>`:""} 1129 <td class="h-meals">${Mn(_.meals||"â")}</td> 1130 <td class="h-pr">${y(_.prices?.single)}</td> 1131 <td class="h-pr">${y(_.prices?.double)}</td> 1132 <td class="h-pr">${y(_.prices?.triple)}</td> 1133 <td class="h-pr">${y(_.prices?.quad)}</td> 1134 ${t.some(J=>(J.prices?.quint||0)>0)?`<td class="h-pr">${y(_.prices?.quint)}</td>`:""} 1135 </tr>`}).join(""),E=t.some(_=>(_.prices?.quint||0)>0),D=`<table class="lux-table"> 1136
1136<thead> 1137 <tr> 1138 <th>${Mn(r.makkah)}</th><th>${Mn(r.rating)}</th><th>${Mn(r.location)}</th> 1139 ${T?`<th>${Mn(r.madinah)}</th>`:""} 1140 <th>${Mn(r.meals)}</th> 1141 <th>${Mn(r.single)}</th><th>${Mn(r.double)}</th><th>${Mn(r.triple)}</th><th>${Mn(r.quad)}</th> 1142 ${E?`<th>${Mn(r.quint)}</th>`:""} 1143 </tr> 1144 </thead> 1145 <tbody>${A}</tbody> 1146 </table>`,S=l==="land"?r.landNote:r.flightsNote,R=l==="land"?r.byLand:r.byAir,L=r.reqList.map(_=>`<li>${Mn(_)}</li>`).join("");let I="";if(a){const _=a.children.map((O,W)=>`<tr><td class="bk-k">${Mn(r.child)} ${b(W+1)} <span class="bk-sub">(${b(O.age)} ${Mn(r.yrs)} · ${Mn(O.tierLabel)})</span></td><td class="bk-v">${b(`${O.amount} ${c}`)}</td></tr>`).join(""),U=[a.departDate?`${Mn(r.departure)}: ${b(a.departDate)}`:"",a.returnDate?`${Mn(r.returnD)}: ${b(a.returnDate)}`:"",a.airline?b(a.airline):"",a.nights?`${Mn(r.nights)}: ${b(a.nights)}`:""].filter(Boolean).join(" · ");I=` 1147 <h2 class="sec">${Mn(r.bookingTitle)}</h2> 1148 <div class="booking"> 1149 <div class="bk-meta"> 1150 <span class="bk-chip">${Mn(R)}</span> 1151 ${U?`<span class="bk-dates">${U}</span>`:""} 1152 </div> 1153 <table class="bk-table"> 1154 <tr><td class="bk-k">${Mn(r.program)}</td><td class="bk-v">${Mn(a.programName)}</td></tr> 1155 <tr><td class="bk-k">${Mn(r.makkah)}</td><td class="bk-v">${Mn(a.makkahHotel)}</td></tr> 1156 ${a.madinahHotel?`<tr><td class="bk-k">${Mn(r.madinah)}</td><td class="bk-v">${Mn(a.madinahHotel)}</td></tr>`:""} 1157 <tr><td class="bk-k">${Mn(r.room)}</td><td class="bk-v">${Mn(a.roomLabel)}</td></tr> 1158 <tr><td class="bk-k">${Mn(r.adults)} à ${b(a.adults)} <span class="bk-sub">(${b(`${a.adultPrice} ${c}`)})</span></td><td class="bk-v">${b(`${a.adultsTotal} ${c}`)}</td></tr> 1159 ${_} 1160 <tr class="bk-total"><td class="bk-k">${Mn(r.total)}</td><td class="bk-v">${b(`${a.grandTotal} ${c}`)}</td></tr> 1161 </table> 1162 </div>`}const F=`background-image:linear-gradient(180deg,rgba(20,28,22,.30) 0%,rgba(20,28,22,.78) 100%),url('${hxe}');`;return`<!doctype html><html lang="${n}" dir="${i}"><head> 1163<meta charset="utf-8"/> 1164<meta name="author" content="IBRIX"/> 1165<meta name="creator" content="IBRIX"/> 1166<title>${d} â IBRIX</title> 1167<link rel="preconnect" href="https://fonts.googleapis.com"> 1168<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> 1169<link href="https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Noto+Sans+Arabic:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap" rel="stylesheet"> 1170<style> 1171 :root{ 1172 --gold:#C9A227; --gold-d:#A8851A; --gold-l:#E7D196; 1173 --ink:#1B2A22; --olive:#2E4636; --body:#3D4A42; --mute:#8A8170; 1174 --cream:#FBF6EA; --cream-2:#F4EBD4; --line:#E4D6AE; 1175 } 1176 *{ box-sizing:border-box; margin:0; padding:0; } 1177 @page{ size:A4; margin:0; } 1178 html,body{ background:#fff; } 1179 body{ font-family:${m}; color:var(--body); font-size:9pt; line-height:${o?"1.46":"1.38"}; direction:${i}; 1180 -webkit-print-color-adjust:exact; print-color-adjust:exact; orphans:3; widows:3; } 1181 .sheet{ width:210mm; margin:0 auto; background:var(--cream); } 1182 .ltr{ direction:ltr; unicode-bidi:isolate; display:inline-block; font-family:${f}; } 1183 1184 /* ---------- Cover ---------- */ 1185 .cover{ position:relative; height:94mm; ${F} 1186 background-size:cover; background-position:center; color:#fff; 1187 display:flex; flex-direction:column; align-items:center; justify-content:center; 1188 text-align:center; padding:8mm 16mm; break-inside:avoid; } 1189 .cover .frame{ position:absolute; inset:8mm; border:1.4px solid rgba(231,209,150,.55); 1190 box-shadow:inset 0 0 0 3px rgba(231,209,150,.18); pointer-events:none; } 1191 .cover .logo-badge{ display:inline-flex; align-items:center; justify-content:center; 1192 background:rgba(18,26,21,.72); border:1.2px solid rgba(231,209,150,.55); 1193 border-radius:8px; padding:2.5mm 5mm; margin-bottom:3mm; 1194 box-shadow:0 4px 18px rgba(0,0,0,.35), inset 0 0 0 2px rgba(231,209,150,.12); } 1195 .cover .logo{ max-height:14mm; max-width:23mm; width:auto; height:auto; display:block; } 1196 .cover .bism{ font-family:${h}; font-size:13pt; color:var(--gold-l); letter-spacing:${o?"0":".3px"}; margin-bottom:3.5mm; 1197 text-shadow:0 1px 6px rgba(0,0,0,.5); } 1198 .cover .kicker{ font-family:${x}; font-size:7.5pt; letter-spacing:${o?"0":"4px"}; 1199 text-transform:${o?"none":"uppercase"}; color:var(--gold-l); margin-bottom:3mm; } 1200 .cover h1{ font-family:${h}; font-size:25pt; font-weight:700; line-height:1.12; margin-bottom:2.5mm; 1201 text-shadow:0 2px 12px rgba(0,0,0,.55); } 1202 .cover .chip{ display:inline-block; background:rgba(201,162,39,.92); color:#1B2A22; 1203 font-family:${x}; font-size:9pt; font-weight:600; 1204 letter-spacing:1px; padding:3px 14px; border-radius:30px; } 1205 .cover .welcome{ font-size:9.5pt; color:#F3EAD2; max-width:150mm; margin:3mm auto 0; 1206 text-shadow:0 1px 6px rgba(0,0,0,.5); } 1207 .cover .labbayk{ position:absolute; bottom:5mm; left:0; right:0; font-family:${h}; font-size:9.5pt; 1208 color:var(--gold-l); letter-spacing:1px; } 1209 1210 /* ---------- Body ---------- */ 1211 .body{ padding:5mm 12mm 2mm; } 1212 .ornament{ text-align:center; margin:3mm 0; } 1213 1214 .cards{ display:flex; gap:4mm; margin-bottom:2.5mm; break-inside:avoid; } 1215 .card{ flex:1; border:1px solid var(--line); border-radius:6px; padding:3mm; 1216 text-align:center; background:#fff; 1217 box-shadow:0 2px 8px rgba(168,133,26,.06); break-inside:avoid; } 1218 .card .lab{ font-family:${x}; font-size:8.5pt; color:var(--mute); 1219 letter-spacing:${o?"0":"1px"}; text-transform:${o?"none":"uppercase"}; } 1220 .card .val{ font-size:14pt; color:var(--gold-d); font-weight:700; margin-top:1px; } 1221 .card .sub{ font-size:8.5pt; color:var(--mute); margin-top:1px; } 1222 1223 .type-note{ font-family:${x}; font-size:9.5pt; color:var(--body); 1224 background:#fff; border:1px solid var(--line); border-radius:8px; 1225 padding:2.5mm 4mm; margin-bottom:1.5mm; break-inside:avoid; } 1226 1227 h2.sec{ font-family:${h}; font-size:14pt; color:var(--olive); margin:3.5mm 0 1.4mm; font-weight:700; 1228 display:flex; align-items:center; gap:8px; break-after:avoid; break-inside:avoid; } 1229 h2.sec:before{ content:""; width:5px; height:18px; background:linear-gradient(var(--gold),var(--gold-d)); 1230 border-radius:3px; display:inline-block; } 1231 1232 /* ---------- Hotels & pricing table ---------- */ 1233 .lux-table{ width:100%; border-collapse:collapse; margin:2mm 0 2mm; 1234 font-family:${x}; font-size:8.2pt; 1235 border:1px solid var(--line); border-radius:8px; overflow:hidden; break-inside:auto; } 1236 .lux-table thead{ display:table-header-group; } 1237 .lux-table tr{ break-inside:avoid; page-break-inside:avoid; } 1238 .lux-table thead th{ background:linear-gradient(135deg,var(--olive),var(--ink)); color:var(--gold-l); 1239 font-weight:600; padding:1.8mm 1.5mm; text-align:center; font-size:7.8pt; 1240 border-${o?"left":"right"}:1px solid rgba(231,209,150,.18); } 1241 .lux-table tbody td{ padding:1.7mm 1.5mm; text-align:center; border-top:1px solid var(--line); 1242 border-${o?"left":"right"}:1px solid #efe6cd; color:var(--body); } 1243 .lux-table tbody tr.alt{ background:#fbf4e1; } 1244 .lux-table .h-name{ text-align:${i==="rtl"?"right":"left"}; font-weight:600; color:var(--ink); } 1245 .lux-table .h-loc{ text-align:${i==="rtl"?"right":"left"}; color:var(--mute); font-size:7.6pt; } 1246 .lux-table .sub-r{ display:block; color:var(--gold-d); font-size:7.4pt; } 1247 .lux-table .h-st{ color:var(--gold-d); letter-spacing:1px; } 1248 .lux-table .h-meals{ color:var(--mute); font-size:7.6pt; } 1249 .lux-table .h-pr{ font-weight:700; color:var(--gold-d); direction:ltr; unicode-bidi:isolate; } 1250 .price-note{ font-family:${x}; font-size:8pt; color:var(--mute); margin-top:1mm; } 1251 1252 /* ---------- Booking summary ---------- */ 1253 .booking{ border:1.4px solid var(--gold); background:#fcf6e3; border-radius:8px; 1254 padding:3mm 4mm; break-inside:avoid; } 1255 .bk-meta{ display:flex; align-items:center; gap:5mm; margin-bottom:2.5mm; flex-wrap:wrap; } 1256 .bk-chip{ display:inline-block; background:var(--olive); color:var(--gold-l); 1257 font-family:${x}; font-size:8.5pt; font-weight:600; 1258 padding:1.5mm 4mm; border-radius:20px; } 1259 .bk-dates{ font-family:${x}; font-size:9pt; color:var(--gold-d); } 1260 .bk-table{ width:100%; border-collapse:collapse; font-size:9pt; } 1261 .bk-table td{ padding:1.4mm 1mm; border-bottom:1px solid #efe1bd; } 1262 .bk-k{ color:var(--body); text-align:start; } 1263 .bk-sub{ color:var(--mute); font-size:8.5pt; font-family:${x}; } 1264 .bk-v{ color:var(--ink); font-weight:700; text-align:start; font-family:${x}; } 1265 .bk-total td{ border-bottom:0; border-top:1.4px solid var(--gold); padding-top:3mm; } 1266 .bk-total .bk-k{ font-weight:700; color:var(--olive); font-size:12pt; } 1267 .bk-total .bk-v{ color:var(--gold-d); font-size:14pt; } 1268 1269 /* ---------- Requirements list ---------- */ 1270 ul{ list-style:none; margin-top:1mm; } 1271 ul li{ position:relative; padding-${o?"right":"left"}:16px; margin-bottom:3px; 1272 font-size:9pt; break-inside:avoid; } 1273 ul li:before{ content:"â"; color:var(--gold); font-size:7pt; position:absolute; 1274 ${o?"right":"left"}:0; top:3px; } 1275 1276 /* ---------- Footer ---------- */ 1277 .footer{ background:linear-gradient(135deg,var(--olive),var(--ink)); color:#e9e2cf; 1278 padding:4mm 12mm; display:flex; justify-content:space-between; align-items:center; gap:5mm; 1279 font-family:${x}; font-size:8pt; margin-top:3mm; break-inside:avoid; } 1280 .footer .tag{ color:var(--gold-l); font-weight:600; } 1281 .ibrix-signature{ display:block; margin-top:1mm; font-family:${f}; font-size:6.5pt; color:rgba(231,209,150,.58); } 1282 .ibrix-signature a{ color:var(--gold-l); text-decoration:none; font-weight:700; } 1283 @media print{ .sheet{ box-shadow:none; } .lux-table thead{display:table-header-group} } 1284</style></head> 1285<body> 1286 <div class="sheet"> 1287 <!-- Cover --> 1288 <div class="cover"> 1289 <div class="frame"></div> 1290 <div class="logo-badge"><img class="logo" src="/manus-storage/ibrix-logo_1fc1d3d8.png" alt="IBRIX"/></div> 1291 <div class="bism">${Mn(r.bismillah)}</div> 1292 <div class="kicker">${Mn(r.programKicker)}</div> 1293 <h1>${d}</h1> 1294 <div class="chip">${Mn(R)}</div> 1295 <div class="welcome">${Mn(r.welcome)}</div> 1296 <div class="labbayk">${Mn(r.labbayk)}</div> 1297 </div> 1298 1299 <div class="body"> 1300 <div class="cards"> 1301 <div class="card"><div class="lab">${Mn(r.tripType)}</div><div class="val" style="font-size:14pt">${Mn(R)}</div></div> 1302 <div class="card"><div class="lab">${Mn(r.priceFrom)}</div><div class="val">${w>0?b(`${w} ${c}`):Mn(r.onRequest)}</div>${w>0?`<div class="sub">${Mn(r.perPerson)}</div>`:""}</div> 1303 </div> 1304 1305 <div class="type-note">${Mn(S)}</div> 1306 1307 ${EI()} 1308 1309 ${I} 1310 1311 <h2 class="sec">${Mn(r.hotelsTitle)}</h2> 1312 ${D} 1313 <p class="price-note">${Mn(r.estimateNote)}</p> 1314 1315 ${EI()} 1316 1317 <h2 class="sec">${Mn(r.requirements)}</h2> 1318 <ul>${L}</ul> 1319 </div> 1320 1321 <div class="footer">
1322 <span><span class="tag">${Mn(r.tagline)}</span><span class="ibrix-signature"><a href="https://www.ibrix.digital">IBRIX</a> · www.ibrix.digital</span></span> 1323 <span>${Mn(r.booking)}: ${b("0787789915")} · ${b("[email protected]")} · ${b("www.ibrix.digital")}</span> 1324 </div> 1325 </div> 1326 <script> 1327 window.onload = function(){ 1328 setTimeout(function(){ window.focus(); window.print(); }, 700); 1329 }; 1330 window.onafterprint = function(){ setTimeout(function(){ window.close(); }, 200); }; 1331 <\/script> 1332</body></html>`}function h9(e){const t=bxe(e),n=window.open("","_blank","width=900,height=1100");return n?(n.document.open(),n.document.write(t),n.document.close(),!0):!1}const vxe=["single","double","triple","quad","quint"],b7={roundToWhole:!0,tiers:[{id:"infant",labelAr:"Ø±Ø¶ÙØ¹ (بدÙÙ Ù ÙØ¹Ø¯/Ø³Ø±ÙØ±)",labelEn:"Infant (no seat/bed)",minAge:0,maxAge:2,mode:"fixed",percent:0,fixed:0,occupiesBed:!1},{id:"child_nobed",labelAr:"Ø·Ù٠بدÙÙ Ø³Ø±ÙØ±",labelEn:"Child without bed",minAge:2,maxAge:6,mode:"percent",percent:50,fixed:0,occupiesBed:!1},{id:"child_bed",labelAr:"Ø·Ù٠٠ع Ø³Ø±ÙØ±",labelEn:"Child with bed",minAge:6,maxAge:12,mode:"percent",percent:75,fixed:0,occupiesBed:!0},{id:"adult_age",labelAr:"12 Ø³ÙØ© ÙØ£Ùثر (ÙÙØØªØ³Ø¨ ÙØ¨Ø§Ùغ)",labelEn:"12+ years (charged as adult)",minAge:12,maxAge:200,mode:"adult",percent:100,fixed:0,occupiesBed:!0}]};function eq(e,t){for(const n of e.tiers)if(t>=n.minAge&&t<n.maxAge)return n;return null}function yxe(e,t,n){const a=eq(e,t);return a?a.mode==="adult"?{amount:Py(e,n),tier:a,chargedAsAdult:!0}:a.mode==="fixed"?{amount:Py(e,a.fixed),tier:a,chargedAsAdult:!1}:{amount:Py(e,n*a.percent/100),tier:a,chargedAsAdult:!1}:{amount:Py(e,n),tier:null,chargedAsAdult:!0}}function Py(e,t){return e.roundToWhole?Math.round(t):Math.round(t*100)/100}function wxe(e){const t=Math.max(0,Math.floor(e.adults)),n=Math.max(0,Number(e.adultPrice)||0),a=t*n,r=(e.childAges||[]).map(o=>{const c=Math.max(0,Math.floor(Number(o)||0)),l=yxe(e.policy,c,n);return{age:c,amount:l.amount,tierId:l.tier?.id??null,chargedAsAdult:l.chargedAsAdult}}),i=r.reduce((o,c)=>o+c.amount,0);
1332return{adultPrice:n,adultsTotal:a,childrenTotal:i,grandTotal:a+i,perChild:r,travelersCount:t+r.length}}const Txe="962787789915",jb={TUE:2,WED:3};function tq(e){return e===jb.WED?"royal":e===jb.TUE?"flynas":null}function n3(e,t){return e==="royal"?t?"اÙÙ
ÙÙÙØ© Ø§ÙØ£Ø±Ø¯ÙÙØ© (Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡)":"Royal Jordanian (Wed)":e==="flynas"?t?"Ø·ÙØ±Ø§Ù ÙØ§Ø³ (Ø§ÙØ«Ùاثاء)":"Flynas (Tue)":""}function Nxe(e){return e==="land"?[jb.WED]:[jb.TUE,jb.WED]}function L3(e){const n=e.replace(/[\u0660-\u0669]/g,a=>String(a.charCodeAt(0)-1632)).match(/(\d+)/);return n?parseInt(n[1],10):null}function f2(e,t){return t?e>=3&&e<=10?"Ø£ÙØ§Ù
":"ÙÙÙ
ÙØ§":"days"}function nq(e){const t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0");return`${t}-${n}-${a}`}function O3(e){if(!e)return null;const[t,n,a]=e.split("-").map(Number);return!t||!n||!a?null:new Date(t,n-1,a)}function kxe(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}const aq=["ÙÙØ§Ùر","ÙØ¨Ø±Ø§Ùر","Ù
ارس","أبرÙÙ","Ù
اÙÙ","ÙÙÙÙÙ","ÙÙÙÙÙ","أغسطس","سبتÙ
بر","Ø£ÙØªÙبر","ÙÙÙÙ
بر","Ø¯ÙØ³Ù
بر"],sq=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],rq=["Ø§ÙØ£ØØ¯","Ø§ÙØ¥Ø«ÙÙÙ","Ø§ÙØ«Ùاثاء","Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡","Ø§ÙØ®Ù
ÙØ³","Ø§ÙØ¬Ù
عة","Ø§ÙØ³Ø¨Øª"],iq=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function S1(e,t){const n=O3(e);if(!n)return e;const a=t?rq[n.getDay()]:iq[n.getDay()],r=t?aq[n.getMonth()]:sq[n.getMonth()];return`${a} ${n.getDate()} ${r} ${n.getFullYear()}`}const og={single:{ar:"Ù
ÙØ±Ø¯",en:"Single"},double:{ar:"Ø«ÙØ§Ø¦Ù",en:"Double"},triple:{ar:"Ø«ÙØ§Ø«Ù",en:"Triple"},quad:{ar:"رباعÙ",en:"Quad"},quint:{ar:"Ø®Ù
اسÙ",en:"Quint"}};function jxe({rating:e}){if(!e)return s.jsx("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:155",className:"text-muted-foreground",children:"â"});const t=e.match(/(\d+)/),n=t?parseInt(t[1],10):0;return n>=1&&n<=7?s.jsx("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:160",className:"inline-flex items-center gap-0.5",children:Array.from({length:n}).map((a,r)=>s.jsx(Tu,{"data-loc":"client/src/components/UmrahPlanner.tsx:162",className:"w-3.5 h-3.5 text-[#C9A961] fill-[#C9A961]"},r))}):s.jsx("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:167",className:"text-xs text-muted-foreground",children:e})}function oq({program:e,rows:t,lang:n}){const a=n==="ar",r=(l,d)=>a?l:d,i=t.some(l=>l.madinahHotel),o=t[0]?.currency||"JOD",c=()=>{h9({programName:e,rows:t,lang:n})};return s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:187",className:"mb-8",children:[s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:188",className:"flex items-center justify-between gap-3 mb-4 flex-wrap",children:[s.jsxs("h4",{"data-loc":"client/src/components/UmrahPlanner.tsx:189",className:"font-display font-bold text-xl text-foreground flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:190",className:"w-1.5 h-6 rounded-full bg-[#C9A961]"}),e]}),s.jsxs("button",{"data-loc":"client/src/components/UmrahPlanner.tsx:193",type:"button",onClick:c,className:"inline-flex items-center gap-1.5 px-3.5 py-2 rounded-xl border-2 border-[#C9A961]/40 text-[#C9A961] text-sm font-semibold hover:bg-[#C9A961]/10 transition-colors active:scale-[0.98]",children:[s.jsx(LU,{"data-loc":"client/src/components/UmrahPlanner.tsx:198",className:"w-4 h-4"}),r("تØÙ
ÙÙ Ø§ÙØ¨Ø±ÙاÙ
ج PDF","Download program PDF")]})]}),s.jsx("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:202",className:"overflow-x-auto rounded-2xl border border-border shadow-sm",children:s.jsxs("table",{"data-loc":"client/src/components/UmrahPlanner.tsx:203",className:"w-full text-sm",style:{minWidth:i?"880px":"720px"},children:[s.jsx("thead",{"data-loc":"client/src/components/UmrahPlanner.tsx:204",className:"bg-gradient-to-br from-[#1a2233] to-[#0f1623] text-white",children:s.jsxs("tr",{"data-loc":"client/src/components/UmrahPlanner.tsx:205",children:[s.jsx("th",{"data-loc":"client/src/components/UmrahPlanner.tsx:206",className:"px-4 py-3 text-start font-semibold border-e border-white/10",children:r("ÙÙØ¯Ù Ù
ÙØ©","Makkah Hotel")}),s.jsx("th",{"data-loc":"client/src/components/UmrahPlanner.tsx:207",className:"px-3 py-3 text-center font-semibold border-e border-white/10",children:r("Ø§ÙØªØµÙÙÙ","Rating")}),s.jsx("th",{"data-loc":"client/src/components/UmrahPlanner.tsx:208",className:"px-4 py-3 text-start font-semibold border-e border-white/10",children:r("اÙÙ
ÙÙØ¹ / اÙÙ
Ø³Ø§ÙØ©","Location / Distance")}),i&&s.jsx("th",{"data-loc":"client/src/components/UmrahPlanner.tsx:210",className:"px-4 py-3 text-start font-semibold border-e border-white/10",children:r("ÙÙØ¯Ù اÙÙ
دÙÙØ©","Madinah Hotel")}),s.jsx("th",{"data-loc":"client/src/components/UmrahPlanner.tsx:212",className:"px-3 py-3 text-start font-semibold border-e border-white/10",children:r("اÙÙØ¬Ø¨Ø§Øª","Meals")}),s.jsx("th",{"data-loc":"client/src/components/UmrahPlanner.tsx:213",className:"px-3 py-3 text-center font-semibold border-e border-white/10",children:r("Ù
ÙØ±Ø¯","Single")}),s.jsx("th",{"data-loc":"client/src/components/UmrahPlanner.tsx:214",className:"px-3 py-3 text-center font-semibold border-e border-white/10",children:r("Ø«ÙØ§Ø¦Ù","Double")}),s.jsx("th",{"data-loc":"client/src/components/UmrahPlanner.tsx:215",className:"px-3 py-3 text-center font-semibold border-e border-white/10",children:r("Ø«ÙØ§Ø«Ù","Triple")}
1332),s.jsx("th",{"data-loc":"client/src/components/UmrahPlanner.tsx:216",className:"px-3 py-3 text-center font-semibold",children:r("رباعÙ","Quad")})]})}),s.jsx("tbody",{"data-loc":"client/src/components/UmrahPlanner.tsx:219",children:t.map((l,d)=>s.jsxs("tr",{"data-loc":"client/src/components/UmrahPlanner.tsx:221",className:`border-t border-border align-top ${d%2===1?"bg-muted/30":"bg-background"}`,children:[s.jsx("td",{"data-loc":"client/src/components/UmrahPlanner.tsx:222",className:"px-4 py-3 border-e border-border font-medium text-foreground",children:l.makkahHotel||"â"}),s.jsx("td",{"data-loc":"client/src/components/UmrahPlanner.tsx:223",className:"px-3 py-3 border-e border-border text-center",children:s.jsx(jxe,{"data-loc":"client/src/components/UmrahPlanner.tsx:223",rating:l.makkahRating})}),s.jsx("td",{"data-loc":"client/src/components/UmrahPlanner.tsx:224",className:"px-4 py-3 border-e border-border text-foreground/80 text-xs",children:l.location||"â"}),i&&s.jsxs("td",{"data-loc":"client/src/components/UmrahPlanner.tsx:226",className:"px-4 py-3 border-e border-border text-foreground/90 text-xs",children:[l.madinahHotel||"â",l.madinahRating?s.jsx("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:228",className:"block text-muted-foreground",children:l.madinahRating}):null]}),s.jsx("td",{"data-loc":"client/src/components/UmrahPlanner.tsx:231",className:"px-3 py-3 border-e border-border text-foreground/80 text-xs",children:l.meals||"â"}),["single","double","triple","quad"].map((m,h)=>{const x=l.prices?.[m];return s.jsx("td",{"data-loc":"client/src/components/UmrahPlanner.tsx:235",className:`px-3 py-3 text-center font-bold ${h<3?"border-e border-border":""} text-[#C9A961]`,children:x&&x>0?`${x} ${o}`:"â"},m)})]},l.id))})]})}),s.jsx("p",{"data-loc":"client/src/components/UmrahPlanner.tsx:245",className:"mt-2 text-[11px] text-muted-foreground",children:r("Ø§ÙØ£Ø³Ø¹Ø§Ø± ÙÙÙ ÙØ±Ø¯ Ø¨Ø§ÙØ¯ÙÙØ§Ø± Ø§ÙØ£Ø±Ø¯ÙÙ (JOD) ØØ³Ø¨ ÙÙØ¹ Ø§ÙØºØ±ÙØ© ÙÙØ¨Ø§ÙغÙÙ. أسعار Ø§ÙØ£Ø·ÙØ§Ù ØªÙØØªØ³Ø¨ Ù٠أداة Ø¨ÙØ§Ø¡ Ø§ÙØ¨Ø±ÙاÙ
ج Ø£Ø¯ÙØ§Ù.","Prices are per person in Jordanian Dinar (JOD) by room type, for adults. Child prices are computed in the Trip Builder below.")})]})}function Axe({rows:e,lang:t}){const n=t==="ar",a=(o,c)=>n?o:c,r=k.useMemo(()=>{const o={flight:{},land:{}};for(const c of e){const l=c.tripType==="land"?"land":"flight";(o[l][c.program]||=[]).push(c)}return o},[e]),i=[{type:"flight",icon:Hs,title:a("براÙ
ج Ø§ÙØ¹Ù
رة جÙÙÙØ§ (Ø·ÙØ±Ø§Ù)","Umrah by Air (Flights)"),note:a("تشÙ
Ù ØªØ°ÙØ±Ø© Ø§ÙØ·ÙØ±Ø§Ù Ø°ÙØ§Ø¨Ø§Ù ÙØ¥ÙØ§Ø¨Ø§Ù ÙØ§ÙØªØ£Ø´ÙØ±Ø© ÙØ§ÙØ¥ÙØ§Ù
Ø© ÙØ§ÙتÙÙÙØ§Øª ØØ³Ø¨ Ø§ÙØ¨Ø±ÙاÙ
ج.","Includes round-trip flight, visa, accommodation and transfers per program.")},{type:"land",icon:M4,title:a("Ø¨Ø±ÙØ§Ù
ج Ø§ÙØ¹Ù
رة برÙÙØ§ â Ø¨Ø§ÙØØ§ÙÙØ©","Umrah by Land â Coach"),note:a("Ø§ÙØªÙÙ٠عبر ØØ§ÙÙØ§Øª Ø³ÙØ§ØÙØ© Ù
ÙÙÙÙØ© ÙØ§Ø®Ø±Ø©Ø Ù
ع Ø§ÙØªØ£Ø´Ùرة ÙØ§ÙØ¥ÙØ§Ù
Ø© ÙØ§ÙتÙÙÙØ§Øª ØØ³Ø¨ Ø§ÙØ¨Ø±ÙاÙ
ج.","Travel aboard premium air-conditioned coaches, with visa, accommodation and transfers per program.")}];return s.jsx("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:290",className:"space-y-16",children:i.map(({type:o,icon:c,title:l,note:d})=>{const m=r[o],h=Object.keys(m);return h.length===0?null:s.jsxs(ts,{"data-loc":"client/src/components/UmrahPlanner.tsx:296",children:[s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:297",className:"flex items-start gap-3 mb-6",children:[s.jsx("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:298",className:"w-12 h-12 rounded-2xl bg-[#C9A961]/15 flex items-center justify-center shrink-0",children:s.jsx(c,{"data-loc":"client/src/components/UmrahPlanner.tsx:299",className:"w-6 h-6 text-[#C9A961]"})}),s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:301",children:[s.jsx("h3",{"data-loc":"client/src/components/UmrahPlanner.tsx:302",className:"font-display font-bold text-2xl md:text-3xl text-foreground",children:l}),s.jsx("p",{"data-loc":"client/src/components/UmrahPlanner.tsx:303",className:"text-sm text-muted-foreground mt-1",children:d})]})]}),h.map(x=>s.jsx(oq,{"data-loc":"client/src/components/UmrahPlanner.tsx:307",program:x,rows:m[x],lang:t},x))]},o)})})}function Exe({tripType:e,value:t,onPick:n,lang:a}){const r=a==="ar",i=(D,S)=>r?D:S,o=Nxe(e),c=new Date;c.setHours(0,0,0,0);const l=O3(t)||c,[d,m]=k.useState({y:l.getFullYear(),m:l.getMonth()}),x=new Date(d.y,d.m,1).getDay(),f=new Date(d.y,d.m+1,0).getDate(),b=`${r?aq[d.m]:sq[d.m]} ${d.y}`,y=[];for(let D=0;D<x;D++)y.push(null);for(let D=1;D<=f;D++)y.push(new Date(d.y,d.m,D));const w=()=>m(D=>D.m===0?{y:D.y-1,m:11}:{y:D.y,m:D.m-1}),T=()=>m(D=>D.m===11?{y:D.y+1,m:0}:{y:D.y,m:D.m+1}),A=d.y>c.getFullYear()||d.y===c.getFullYear()&&d.m>c.getMonth(),E=r?rq:iq;return s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:356",className:"rounded-2xl border border-border bg-background p-4 w-full max-w-xs",children:[s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:357",className:"flex items-center justify-between mb-3",children:[s.jsx("button",{"data-loc":"client/src/components/UmrahPlanner.tsx:358",type:"button",onClick:w,disabled:!A,className:`w-8 h-8 rounded-lg border border-border flex items-center justify-center transition-colors ${A?"text-foreground hover:border-[#C9A961]":"text-muted-foreground
1332/40 cursor-not-allowed"}`,"aria-label":i("Ø§ÙØ´Ùر Ø§ÙØ³Ø§Ø¨Ù","Previous month"),children:r?"âº":"â¹"}),s.jsx("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:367",className:"font-semibold text-foreground",children:b}),s.jsx("button",{"data-loc":"client/src/components/UmrahPlanner.tsx:368",type:"button",onClick:T,className:"w-8 h-8 rounded-lg border border-border flex items-center justify-center text-foreground hover:border-[#C9A961] transition-colors","aria-label":i("Ø§ÙØ´Ùر Ø§ÙØªØ§ÙÙ","Next month"),children:r?"â¹":"âº"})]}),s.jsx("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:377",className:"grid grid-cols-7 gap-1 text-center mb-1",children:E.map((D,S)=>s.jsx("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:379",className:`text-[10px] font-semibold py-1 ${o.includes(S)?"text-[#C9A961]":"text-muted-foreground/50"}`,children:D},S))}),s.jsx("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:387",className:"grid grid-cols-7 gap-1",children:y.map((D,S)=>{if(!D)return s.jsx("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:389"},S);const R=nq(D),L=D<c,I=o.includes(D.getDay())&&!L,F=R===t,_=tq(D.getDay());return s.jsxs("button",{"data-loc":"client/src/components/UmrahPlanner.tsx:396",type:"button",disabled:!I,onClick:()=>n(R),title:I&&e==="flight"&&_?n3(_,r):void 0,className:`relative h-9 rounded-lg text-[13px] flex items-center justify-center transition-all active:scale-95 ${F?"bg-[#C9A961] text-white font-bold":I?"bg-[#C9A961]/10 text-[#C9A961] font-semibold hover:bg-[#C9A961]/20":"text-muted-foreground/40 cursor-not-allowed"}`,children:[D.getDate(),I&&e==="flight"&&s.jsx("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:412",className:`absolute bottom-0.5 w-1 h-1 rounded-full ${_==="royal"?"bg-emerald-500":"bg-sky-500"}`})]},S)})}),e==="flight"&&s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:421",className:"flex items-center justify-center gap-4 mt-3 text-[11px] text-muted-foreground",children:[s.jsxs("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:422",className:"inline-flex items-center gap-1.5",children:[s.jsx("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:423",className:"w-2 h-2 rounded-full bg-emerald-500"})," ",i("اÙÙ
ÙÙÙØ© · Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡","Royal Jordanian · Wed")]}),s.jsxs("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:425",className:"inline-flex items-center gap-1.5",children:[s.jsx("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:426",className:"w-2 h-2 rounded-full bg-sky-500"})," ",i("Ø·ÙØ±Ø§Ù ÙØ§Ø³ · Ø§ÙØ«Ùاثاء","Flynas · Tue")]})]})]})}function Cxe({rows:e,policy:t,lang:n,isRTL:a}){const r=n==="ar",i=(xe,ae)=>r?xe:ae,[o,c]=k.useState("flight"),[l,d]=k.useState(null),[m,h]=k.useState(""),[x,f]=k.useState(2),[b,y]=k.useState([]),[w,T]=k.useState(null),[A,E]=k.useState("double"),D=k.useMemo(()=>e.filter(xe=>(xe.tripType==="land"?"land":"flight")===o),[e,o]),S=xe=>(xe.tripType==="land"?"land":"flight")=="land"?11:L3(xe.program)??0,R=k.useMemo(()=>{if(o==="land")return[11];const xe=new Set;return D.forEach(ae=>{const le=L3(ae.program);le&&xe.add(le)}),[5,8].filter(ae=>xe.has(ae))},[D,o]),L=k.useMemo(()=>l==null?[]:D.filter(xe=>S(xe)===l),[D,l]),I=L.find(xe=>xe.id===w)||null,F=xe=>{c(xe),d(null),T(null),h("")},_=xe=>{d(xe),T(null)},U=k.useMemo(()=>{const xe=O3(m);return xe?xe.getDay():null},[m]),O=o==="flight"&&U!=null?tq(U):null,W=k.useMemo(()=>{const xe=O3(m);if(!xe||l==null)return"";const ae=o==="land"?10:l-1;return nq(kxe(xe,ae))},[m,l,o]),J=I?.currency||e[0]?.currency||"JOD",oe=k.useMemo(()=>I?vxe.filter(xe=>(I.prices?.[xe]||0)>0):[],[I]),G=I?oe.includes(A)?A:oe[0]??null:null,K=I&&G&&I.prices?.[G]||0,ee=b.map(xe=>xe.age===""?0:Number(xe.age)),pe=k.useMemo(()=>
1332wxe({adultPrice:K,adults:x,childAges:ee,policy:t}),[K,x,ee,t]),V=l==null?null:o==="land"?8:l-1,Y=()=>y(xe=>[...xe,{id:Date.now()+Math.random(),age:""}]),z=xe=>y(ae=>ae.filter(le=>le.id!==xe)),H=(xe,ae)=>y(le=>le.map(ze=>ze.id===xe?{...ze,age:ae}:ze)),ne=xe=>{const ae=eq(t,xe);return ae?r?ae.labelAr:ae.labelEn:i("ÙÙØØªØ³Ø¨ ÙØ¨Ø§Ùغ","Charged as adult")},te=I&&G&&(x>0||b.length>0),me=()=>{const xe=[];return xe.push(r?"*Ø·ÙØ¨ Ø¨Ø±ÙØ§Ù ج ع٠رة â IBRIX*":"*Umrah Program Request â IBRIX*"),xe.push(""),xe.push(`${i("ÙÙØ¹ Ø§ÙØ±ØÙØ©","Trip type")}: ${o==="flight"?i("جÙÙÙØ§ (Ø·ÙØ±Ø§Ù)","By Air"):i("برÙÙØ§ â Ø¨Ø§ÙØØ§ÙÙØ©","By Land â Coach")}`),l!=null&&xe.push(`${i("اÙ٠دة","Duration")}: ${l} ${f2(l,r)}`),m&&xe.push(`${i("ØªØ§Ø±ÙØ® Ø§ÙØ°Ùاب","Departure")}: ${S1(m,r)}`),W&&xe.push(`${i("ØªØ§Ø±ÙØ® Ø§ÙØ¹Ùدة","Return")}: ${S1(W,r)}`),O&&xe.push(`${i("Ø´Ø±ÙØ© Ø§ÙØ·ÙراÙ","Airline")}: ${n3(O,r)}`),V&&xe.push(`${i("عدد اÙÙÙØ§ÙÙ","Nights")}: ${V}`),I&&(xe.push(""),xe.push(`${i("Ø§ÙØ¨Ø±Ùا٠ج","Program")}: ${I.program}`),xe.push(`${i("ÙÙØ¯Ù Ù ÙØ©","Makkah hotel")}: ${I.makkahHotel}`),I.madinahHotel&&xe.push(`${i("ÙÙØ¯Ù اÙ٠دÙÙØ©","Madinah hotel")}: ${I.madinahHotel}`),G&&xe.push(`${i("ÙÙØ¹ Ø§ÙØºØ±ÙØ©","Room type")}: ${r?og[G].ar:og[G].en}`)),xe.push(""),xe.push(`${i("Ø§ÙØ¨Ø§ÙغÙÙ","Adults")}: ${x} à ${K} ${J} = ${pe.adultsTotal} ${J}`),b.length&&(xe.push(i("Ø§ÙØ£Ø·ÙاÙ:","Children:")),pe.perChild.forEach((ae,le)=>{xe.push(` - ${i("Ø·ÙÙ","Child")} ${le+1} (${ae.age} ${i("Ø³ÙØ©","yrs")} â ${ne(ae.age)}): ${ae.amount} ${J}`)})),xe.push(""),xe.push(`*${i("Ø§ÙØ¥Ø¬Ù اÙÙ Ø§ÙØªÙØ¯ÙØ±Ù","Estimated total")}: ${pe.grandTotal} ${J}*`),xe.push(""),xe.push(i("(Ø§ÙØ³Ø¹Ø± ØªÙØ¯Ùر٠ÙÙÙØ¤ÙÙÙØ¯ Ø¹ÙØ¯ Ø§ÙØØ¬Ø²)","(Estimate â confirmed at booking)")),`https://wa.me/${Txe}?text=${encodeURIComponent(xe.join(` 1333`))}`},fe=()=>{if(!I||!G)return;const xe={tripType:o,departDate:m?S1(m,r):void 0,returnDate:W?S1(W,r):void 0,airline:O?n3(O,r):void 0,nights:V,programName:I.program,makkahHotel:I.makkahHotel,madinahHotel:I.madinahHotel,roomLabel:r?og[G].ar:og[G].en,adults:x,adultPrice:K,adultsTotal:pe.adultsTotal,children:pe.perChild.map(ae=>({age:ae.age,tierLabel:ne(ae.age),amount:ae.amount})),grandTotal:pe.grandTotal,currency:J};h9({programName:I.program,rows:[I],lang:n,booking:xe})},Ae="inline-flex items-center justify-center w-7 h-7 rounded-full bg-[#C9A961] text-white text-sm font-bold shrink-0";return s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:625",className:"grid lg:grid-cols-[1fr_380px] gap-8 items-start",children:[s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:627",className:"space-y-8",children:[s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:629",children:[s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:630",className:"flex items-center gap-2 mb-3",children:[s.jsx("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:631",className:Ae,children:"1"}),s.jsx("h4",{"data-loc":"client/src/components/UmrahPlanner.tsx:632",className:"font-semibold text-foreground",children:i("ÙÙØ¹ Ø§ÙØ±ØÙØ©","Trip type")})]}),s.jsx("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:634",className:"grid grid-cols-2 gap-3",children:[{key:"flight",icon:Hs,label:i("جÙÙÙØ§ (Ø·ÙØ±Ø§Ù)","By Air (Flight)")},{key:"land",icon:M4,label:i("برÙÙØ§ â Ø¨Ø§ÙØØ§ÙÙØ©","By Land â Coach")}].map(({key:xe,icon:ae,label:le})=>s.jsxs("button",{"data-loc":"client/src/components/UmrahPlanner.tsx:639",type:"button",onClick:()=>F(xe),className:`flex items-center justify-center gap-2 px-4 py-3.5 rounded-xl border-2 font-semibold transition-all active:scale-[0.98] ${o===xe?"border-[#C9A961] bg-[#C9A961]/10 text-[#C9A961]":"border-border bg-background text-foreground/70 hover:border-[#C9A961]/40"}`,children:[s.jsx(ae,{"data-loc":"client/src/components/UmrahPlanner.tsx:649",className:"w-5 h-5"}),le]},xe))})]}),s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:657",children:[s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:658",className:"flex items-center gap-2 mb-3",children:[s.jsx("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:659",className:Ae,children:"2"}),s.jsx("h4",{"data-loc":"client/src/components/UmrahPlanner.tsx:660",className:"font-semibold text-foreground",children:i("٠دة Ø§ÙØ¨Ø±Ùا٠ج","Program duration")})]}),s.jsx("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:662",className:"grid grid-cols-2 gap-3",children:R.map(xe=>{const ae=xe===5;return s.jsxs("button",{"data-loc":"client/src/components/UmrahPlanner.tsx:666",type:"button",onClick:()=>_(xe),className:`flex flex-col items-center justify-center gap-0.5 px-4 py-3.5 rounded-xl border-2 font-semibold transition-all active:scale-[0.98] ${l===xe?"border-[#C9A961] bg-[#C9A961]/10 text-[#C9A961]":"border-border bg-background text-foreground
1333/70 hover:border-[#C9A961]/40"}`,children:[s.jsxs("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:676",children:[xe," ",f2(xe,r)]}),s.jsx("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:677",className:"text-[11px] opacity-80 font-normal",children:ae?i("Ù
ÙØ© ÙÙØ·","Makkah only"):i("Ù
ÙØ© + اÙÙ
دÙÙØ©","Makkah + Madinah")})]},xe)})})]}),s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:687",children:[s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:688",className:"flex items-center gap-2 mb-3",children:[s.jsx("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:689",className:Ae,children:"3"}),s.jsx("h4",{"data-loc":"client/src/components/UmrahPlanner.tsx:690",className:"font-semibold text-foreground",children:i("ØªØ§Ø±ÙØ® Ø§ÙØ°Ùاب","Departure date")})]}),s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:692",className:"rounded-xl bg-[#C9A961]/10 border border-[#C9A961]/30 px-3.5 py-2.5 mb-3 flex items-start gap-2",children:[s.jsx(Kb,{"data-loc":"client/src/components/UmrahPlanner.tsx:693",className:"w-4 h-4 text-[#C9A961] mt-0.5 shrink-0"}),s.jsx("p",{"data-loc":"client/src/components/UmrahPlanner.tsx:694",className:"text-xs text-foreground/80 leading-relaxed",children:o==="flight"?i("رØÙات Ø§ÙØ·Ùرا٠Ù
ØªØ§ØØ© ÙÙ Ø£ÙØ§Ù
Ù
ØØ¯Ø¯Ø© ÙÙØ·: اÙÙ
ÙÙÙØ© Ø§ÙØ£Ø±Ø¯ÙÙØ© ÙÙ ÙÙÙ
Ø£Ø±Ø¨Ø¹Ø§Ø¡Ø ÙØ·ÙØ±Ø§Ù ÙØ§Ø³ ÙÙ ÙÙÙ
Ø«ÙØ§Ø«Ø§Ø¡. اختر ÙÙÙ
ÙØ§ Ù
تاØÙا Ù
Ù Ø§ÙØªÙÙÙÙ
.","Flights run on fixed days only: Royal Jordanian every Wednesday, and Flynas every Tuesday. Pick an available day from the calendar."):i("رØÙات Ø§ÙØ¨Ùر٠(Ø¨Ø§ÙØØ§ÙÙØ©) ØªÙØ·ÙÙ ÙÙ ÙÙÙ
أربعاء. اختر ÙÙÙ
ÙØ§ Ù
تاØÙا Ù
Ù Ø§ÙØªÙÙÙÙ
.","Land (coach) trips depart every Wednesday. Pick an available day from the calendar.")})]}),s.jsx(Exe,{"data-loc":"client/src/components/UmrahPlanner.tsx:706",tripType:o,value:m,onPick:h,lang:n}),m&&s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:708",className:"mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-sm",children:[o==="flight"&&O&&s.jsxs("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:710",className:"inline-flex items-center gap-1.5 font-semibold text-[#C9A961]",children:[s.jsx(Hs,{"data-loc":"client/src/components/UmrahPlanner.tsx:711",className:"w-4 h-4"})," ",n3(O,r)]}),W&&s.jsxs("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:715",className:"text-muted-foreground",children:[i("Ø§ÙØ¹Ùدة","Return"),": ",s.jsx("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:716",className:"text-foreground font-medium",children:S1(W,r)}),V?` · ${V} ${i("ÙÙÙØ©","nights")}`:""]})]})]}),s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:725",children:[s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:726",className:"flex items-center gap-2 mb-3",children:[s.jsx("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:727",className:Ae,children:"4"}),s.jsx("h4",{"data-loc":"client/src/components/UmrahPlanner.tsx:728",className:"font-semibold text-foreground",children:i("اÙÙ
Ø³Ø§ÙØ±ÙÙ","Travelers")})]}),s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:731",className:"flex items-center justify-between p-3.5 rounded-xl border border-border bg-background mb-3",children:[s.jsxs("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:732",className:"flex items-center gap-2 text-foreground font-medium",children:[s.jsx(Dl,{"data-loc":"client/src/components/UmrahPlanner.tsx:733",className:"w-5 h-5 text-[#C9A961]"})," ",i("Ø§ÙØ¨Ø§ÙغÙÙ","Adults")]}),s.jsx(Sxe,{"data-loc":"client/src/components/UmrahPlanner.tsx:735",value:x,min:0,onChange:f})]}),s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:738",className:"rounded-xl border border-border bg-background p-3.5",children:[s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:739",className:"flex items-center justify-between mb-1",children:[s.jsxs("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:740",className:"flex items-center gap-2 text-foreground font-medium",children:[s.jsx(IU,{"data-loc":"client/src/components/UmrahPlanner.tsx:741",className:"w-5 h-5 text-[#C9A961]"})," ",i("Ø§ÙØ£Ø·Ùا٠(Ø£ÙÙ Ù
Ù 6)","Children (under 6)")]}),s.jsxs("button",{"data-loc":"client/src/components/UmrahPlanner.tsx:743",type:"button",onClick:Y,className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-[#C9A961]/10 text-[#C9A961] text-sm font-semibold hover:bg-[#C9A961]/20 transition-colors active:scale-[0.98]",children:[s.jsx(oa,{"data-loc":"client/src/components/UmrahPlanner.tsx:748",className:"w-4 h-4"})," ",i("Ø¥Ø¶Ø§ÙØ© Ø·ÙÙ","Add child")]})]}),b.length===0?s.jsx("p",{"data-loc":"client/src/components/UmrahPlanner.tsx:752",className:"text-xs text-muted-foreground mt-2",children:i("ÙØ§ ÙÙØ¬Ø¯ Ø£Ø·ÙØ§Ù. أض٠طÙÙØ§Ù ÙØ£Ø¯Ø®Ù عÙ
Ø±Ù ÙØ§ØØªØ³Ø§Ø¨ سعرÙ.","No children. Add a child and enter the
1333ir age to price it.")}):s.jsx("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:756",className:"space-y-2 mt-3",children:b.map((xe,ae)=>{const le=xe.age===""?null:Number(xe.age);return s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:760",className:"flex items-center gap-2",children:[s.jsxs("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:761",className:"text-sm text-muted-foreground w-16 shrink-0",children:[i("Ø·ÙÙ","Child")," ",ae+1]}),s.jsx("input",{"data-loc":"client/src/components/UmrahPlanner.tsx:762",type:"number",min:0,max:6,placeholder:i("Ø§ÙØ¹Ù
ر","Age"),value:xe.age,onChange:ze=>H(xe.id,ze.target.value===""?"":Math.max(0,Math.min(6,Number(ze.target.value)))),className:"w-20 px-2.5 py-2 rounded-lg border border-border bg-background text-foreground text-center focus:border-[#C9A961] focus:ring-2 focus:ring-[#C9A961]/20 outline-none"}),s.jsx("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:771",className:"text-xs text-muted-foreground flex-1 truncate",children:le!==null?ne(le):i("Ø£Ø¯Ø®Ù Ø§ÙØ¹Ù
ر","Enter age")}),s.jsx("button",{"data-loc":"client/src/components/UmrahPlanner.tsx:774",type:"button",onClick:()=>z(xe.id),className:"w-8 h-8 rounded-lg border border-border flex items-center justify-center text-muted-foreground hover:text-red-500 hover:border-red-300 transition-colors","aria-label":i("ØØ°Ù","Remove"),children:s.jsx(sA,{"data-loc":"client/src/components/UmrahPlanner.tsx:780",className:"w-4 h-4"})})]},xe.id)})})]})]}),s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:791",children:[s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:792",className:"flex items-center gap-2 mb-3",children:[s.jsx("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:793",className:Ae,children:"5"}),s.jsx("h4",{"data-loc":"client/src/components/UmrahPlanner.tsx:794",className:"font-semibold text-foreground",children:i("Ø§ÙØ¨Ø±ÙاÙ
ج ÙØ§ÙÙÙØ¯Ù ÙÙÙØ¹ Ø§ÙØºØ±ÙØ©","Program, hotel & room type")})]}),s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:796",className:"space-y-3",children:[s.jsxs("label",{"data-loc":"client/src/components/UmrahPlanner.tsx:797",className:"block",children:[s.jsxs("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:798",className:"text-xs text-muted-foreground mb-1 flex items-center gap-1.5",children:[s.jsx(wu,{"data-loc":"client/src/components/UmrahPlanner.tsx:799",className:"w-3.5 h-3.5"})," ",i("اختر Ø§ÙØ¨Ø±ÙاÙ
ج / اÙÙÙØ¯Ù","Select program / hotel")]}),s.jsxs("select",{"data-loc":"client/src/components/UmrahPlanner.tsx:801",value:w??"",onChange:xe=>T(xe.target.value?Number(xe.target.value):null),className:"w-full px-3 py-2.5 rounded-xl border border-border bg-background text-foreground focus:border-[#C9A961] focus:ring-2 focus:ring-[#C9A961]/20 outline-none",children:[s.jsx("option",{"data-loc":"client/src/components/UmrahPlanner.tsx:806",value:"",children:i("â Ø§Ø®ØªØ± â","â Select â")}),L.map(xe=>s.jsxs("option",{"data-loc":"client/src/components/UmrahPlanner.tsx:808",value:xe.id,children:[xe.program," â ",xe.makkahHotel,xe.makkahRating?` (${xe.makkahRating})`:""]},xe.id))]})]}),I&&s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:817",children:[s.jsxs("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:818",className:"text-xs text-muted-foreground mb-1.5 flex items-center gap-1.5",children:[s.jsx(Cl,{"data-loc":"client/src/components/UmrahPlanner.tsx:819",className:"w-3.5 h-3.5"})," ",i("ÙÙØ¹ Ø§ÙØºØ±ÙØ©","Room type")]}),s.jsx("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:821",className:"flex flex-wrap gap-2",children:oe.map(xe=>s.jsxs("button",{"data-loc":"client/src/components/UmrahPlanner.tsx:823",type:"button",onClick:()=>E(xe),className:`px-3.5 py-2 rounded-xl border-2 text-sm font-semibold transition-all active:scale-[0.98] ${G===xe?"border-[#C9A961] bg-[#C9A961]/10 text-[#C9A961]":"border-border bg-background text-foreground/70 hover:border-[#C9A961]/40"}`,children:[r?og[xe].ar:og[xe].en,s.jsxs("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:834",className:"block text-[11px] opacity-80",children:[I.prices?.[xe]," ",J]})]},xe))})]})]})]})]}),s.jsx("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:845",className:"lg:sticky lg:top-24",children:s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:846",className:"ocean-card rounded-2xl overflow-hidden border border-border",children:[s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:847",className:"bg-gradient-to-br from-[#1a2233] to-[#0f1623] text-white p-5",children:[s.jsx("p",{"data-loc":"client/src/components/UmrahPlanner.tsx:848",className:"text-xs uppercase tracking-[0.15em] text-[#C9A961] font-semibold mb-1",children:i("Ù
ÙØ®Øµ Ø§ÙØªÙÙÙØ©","Cost summary")}
1333),s.jsx("p",{"data-loc":"client/src/components/UmrahPlanner.tsx:851",className:"text-3xl font-display font-bold",children:te?`${pe.grandTotal} ${J}`:`â ${J}`}),s.jsxs("p",{"data-loc":"client/src/components/UmrahPlanner.tsx:854",className:"text-xs text-white/60 mt-1",children:[pe.travelersCount," ",i("Ù
Ø³Ø§ÙØ±","travelers"),V?` · ${V} ${i("ÙÙÙØ©","nights")}`:""]})]}),s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:860",className:"p-5 space-y-3",children:[I?s.jsxs(s.Fragment,{children:[s.jsx("p",{"data-loc":"client/src/components/UmrahPlanner.tsx:869",className:"text-xs uppercase tracking-[0.12em] text-muted-foreground font-semibold",children:i("سعر اÙÙØ±Ø¯","Price per person")}),s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:872",className:"flex items-center justify-between text-sm",children:[s.jsx("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:873",className:"text-foreground/80",children:i("Ø¨Ø§ÙØº","Adult")}),s.jsxs("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:874",className:"font-semibold text-foreground",children:[K," ",J]})]}),pe.perChild.map((xe,ae)=>s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:877",className:"flex items-center justify-between text-sm",children:[s.jsxs("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:878",className:"text-foreground/80",children:[i("Ø·ÙÙ","Child")," ",ae+1,s.jsxs("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:880",className:"text-muted-foreground",children:[" (",xe.age," ",i("Ø³ÙØ©","yr")," · ",ne(xe.age),")"]})]}),s.jsxs("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:882",className:"font-semibold text-foreground",children:[xe.amount," ",J]})]},`pp-${ae}`)),s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:887",className:"border-t border-border pt-3 space-y-2",children:[s.jsx("p",{"data-loc":"client/src/components/UmrahPlanner.tsx:888",className:"text-xs uppercase tracking-[0.12em] text-muted-foreground font-semibold",children:i("ØªÙØ§ØµÙÙ Ø§ÙØ¥Ø¬Ù
اÙÙ","Totals")}),s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:891",className:"flex items-center justify-between text-sm",children:[s.jsxs("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:892",className:"text-foreground/80",children:[i("Ø§ÙØ¨Ø§ÙغÙÙ","Adults")," (",K," ",J," à ",x,")"]}),s.jsxs("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:895",className:"font-semibold text-foreground",children:[pe.adultsTotal," ",J]})]}),pe.perChild.length>0&&s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:898",className:"flex items-center justify-between text-sm",children:[s.jsxs("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:899",className:"text-foreground/80",children:[i("Ø§ÙØ£Ø·ÙاÙ","Children")," (",pe.perChild.length,")"]}),s.jsxs("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:902",className:"font-semibold text-foreground",children:[pe.childrenTotal," ",J]})]})]}),s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:908",className:"border-t-2 border-[#C9A961]/40 pt-3 flex items-center justify-between",children:[s.jsx("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:909",className:"font-semibold text-foreground",children:i("Ø§ÙØ¥Ø¬Ù
اÙ٠اÙÙØ§Ù
Ù","Grand total")}),s.jsxs("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:910",className:"font-display font-bold text-xl text-[#C9A961]",children:[pe.grandTotal," ",J]})]})]}):s.jsxs("p",{"data-loc":"client/src/components/UmrahPlanner.tsx:862",className:"text-sm text-muted-foreground flex items-start gap-2",children:[s.jsx(Kb,{"data-loc":"client/src/components/UmrahPlanner.tsx:863",className:"w-4 h-4 mt-0.5 shrink-0 text-[#C9A961]"}),i("اختر Ø§ÙØ¨Ø±ÙاÙ
ج ÙÙÙØ¹ Ø§ÙØºØ±ÙØ© ÙØ¹Ø±Ø¶ Ø§ÙØªÙÙÙØ© Ø§ÙØªÙصÙÙÙØ©.","Pick a program and room type to see the detailed cost.")]}),s.jsxs("a",{"data-loc":"client/src/components/UmrahPlanner.tsx:915",href:te?me():void 0,target:"_blank",rel:"noopener noreferrer","aria-disabled":!te,onClick:xe=>{te||xe.preventDefault()},className:`mt-2 w-full inline-flex items-center justify-center gap-2 px-5 py-3.5 rounded-xl font-semibold transition-all active:scale-[0.98] ${te?"bg-[#25D366] text-white hover:bg-[#1eb858]":"bg-muted text-muted-foreground cursor-not-allowed"}`,children:[s.jsx(Dd,{"data-loc":"client/src/components/UmrahPlanner.tsx:929",className:"w-5 h-5"}),i("Ø¥Ø±Ø³Ø§Ù Ø§ÙØ·Ùب عبر ÙØ§ØªØ³Ø§Ø¨","Send request via WhatsApp")]}),s.jsxs("button",{"data-loc":"client/src/components/UmrahPlanner.tsx:932",type:"button",onClick:fe,disabled:!te,className:`w-full inline-flex items-center justify-center gap-2 px-5 py-3 rounded-xl font-semibold transition-all active:scale-[0.98] ${te?"border-2 border-[#C9A961] text-[#C9A961] hover:bg-[#C9A961]/10":"border-2 border-border text-muted-foreground cursor-not-allowed"}`,children:[s.jsx(LU,{"data-loc":"client/src/components/UmrahPlanner.tsx:942",className:"w-5 h-5"}),i("تØÙ
ÙÙ Ø§ÙØ¨Ø±ÙاÙ
ج PDF","Download program PDF")]}),s.jsx("p",{"data-loc":"client/src/components/UmrahPlanner.tsx:945",className:"text-[11px] text-muted-foreground text-center leading-relaxed",children:i("Ø§ÙØ³Ø¹Ø± ØªÙØ¯Ùر٠ÙÙØ¨Ø§ÙغÙÙ Ù
Ù Ù
ÙÙ Ø§ÙØ£Ø³Ø¹Ø§Ø±Ø ÙØ£Ø³Ø¹Ø§Ø± Ø§ÙØ£Ø·Ùا٠Ù
ØØ³Ùبة ØØ³Ø¨ Ø³ÙØ§Ø³Ø© Ø§ÙØ´Ø±ÙØ©. ÙÙØ¤ÙÙÙØ¯ Ø§ÙØ³Ø¹Ø± اÙÙÙØ§Ø¦Ù Ø¹ÙØ¯ Ø§ÙØØ¬Ø².","Adult prices come from the price sheet; child prices follow company policy. The final price is confirmed at booking.")})]})]})})]})}function Sxe({value:e,min:t,onChange:n}){return s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:960",className:"inline-flex items-center gap-3",children:[s.jsx("button",{"data-loc":"client/src/components/UmrahPlanner.tsx:961",type:"button",onClick:()=>n(Math.max(t,e-1)),className:"w-8 h-8 rounded-lg border border-border flex items-center justify-center text-foreground hover:border-[#C9A961] transition-colors active:scale-95","aria-label":"â",children:s.jsx(sA,{"data-loc":"client/src/components/UmrahPlanner.tsx:967",className:"w-4 h-4"})}),s.jsx("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:969",className:"w-6 text-center font-semibold text-foreground tabular-nums",children:e}),s.jsx("button",{"data-loc":"client/src/components/UmrahPlanner.tsx:970",type:"button",onClick:()=>n(e+1),className:"w-8 h-8 rounded-lg border border-border flex items-center justify-center text-foreground hover:border-[#C9A961] transition-colors active:scale-95","aria-label":"+",children:s.jsx(oa,{"data-loc":"client/src/components/UmrahPlanner.tsx:976",className:"w-4 h-4"})})]})}function _xe(){const{lang:e,isRTL:t}=zs(),n=e==="ar",a=(d,m)=>n?d:m,{data:r,isLoading:i}=Pe.umrah.list.useQuery(),{data:o}=Pe.umrah.childPolicy.useQuery(),c=o||b7,l=r||[];return i?s.jsx("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:997",className:"flex items-center justify-center py-24",children:s.jsx(ft,{"data-loc":"client/src/components/UmrahPlanner.tsx:998",className:"w-8 h-8 text-[#C9A961] animate-spin"})}):l.length?s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:1006",className:"space-y-20",children:[s.jsxs("section",{"data-loc":"client/src/components/UmrahPlanner.tsx:1008",children:[s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:1009",className:"text-center mb-10",children:[s.jsx("p",{"data-loc":"client/src/components/UmrahPlanner.tsx:1010",className:"text-sm uppercase tracking-[0.2em] text-[#C9A961] font-semibold mb-3",children:a("صÙ
ÙÙ
رØÙتÙ","Build Your Trip")}),s.jsx("h2",{"data-loc":"client/src/components/UmrahPlanner.tsx:1013",className:"font-display font-bold text-3xl md:text-4xl text-foreground mb-3",children:a("ابÙÙÙ Ø¨Ø±ÙØ§Ù
ج عÙ
Ø±ØªÙ ÙØ§ØØ³Ø¨ Ø§ÙØªÙÙÙØ©","Build Your Umrah Program & Estimate the Cost")}),s.jsx("p",{"data-loc":"client/src/components/UmrahPlanner.tsx:1016",className:"text-muted-foreground max-w-2xl mx-auto",children:a("اختر ÙÙØ¹ Ø§ÙØ±ØÙØ© ÙØ§ÙØªÙØ§Ø±ÙØ® ÙØ¹Ø¯Ø¯ اÙÙ
Ø³Ø§ÙØ±ÙÙ ÙØ§ÙÙÙØ¯Ù ÙÙÙØ¹ Ø§ÙØºØ±ÙØ©Ø ÙÙØ¸Ùر Ù٠سعر ÙÙ ÙØ±Ø¯ (بÙ
ا Ù٠ذÙÙ Ø§ÙØ£Ø·ÙØ§Ù ØØ³Ø¨ أعÙ
ارÙÙ
) ÙØ§ÙإجÙ
اÙÙ ÙÙØ±Ø§Ù.","Choose trip type, dates, travelers, hotel and room type to instantly see the per-person price (including children by age) and the total.")})]}),s.jsx(Cxe,{"data-loc":"client/src/components/UmrahPlanner.tsx:1023",rows:l,policy:c,lang:e,isRTL:t})]}),s.jsx(Pxe,{"data-loc":"client/src/components/UmrahPlanner.tsx:1027",lang:e}),s.jsxs("section",{"data-loc":"client/src/components/UmrahPlanner.tsx:1030",children:[s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:1031",className:"text-center mb-12",children:[s.jsx("p",{"data-loc":"client/src/components/UmrahPlanner.tsx:1032",className:"text-sm uppercase tracking-[0.2em] text-[#C9A961] font-semibold mb-3",children:a("جداÙÙ Ø§ÙØ£Ø³Ø¹Ø§Ø±","Price Tables")}),s.jsx("h2",{"data-loc":"client/src/components/UmrahPlanner.tsx:1035",className:"font-display font-bold text-3xl md:text-4xl text-foreground mb-3",children:a("Ù٠براÙ
ج Ø§ÙØ¹Ù
رة ÙØ£Ø³Ø¹Ø§Ø±Ùا","All Umrah Programs & Prices")}),s.jsx("p",{"data-loc":"client/src/components/UmrahPlanner.tsx:1038",className:"text-muted-foreground max-w-2xl mx-auto",children:a("Ø§ÙØ£Ø³Ø¹Ø§Ø± ÙÙÙ ÙØ±Ø¯ Ø¨Ø§ÙØ¯ÙÙØ§Ø± Ø§ÙØ£Ø±Ø¯ÙÙ ØØ³Ø¨ ÙÙØ¹ Ø§ÙØºØ±ÙØ©. Ù
ÙØ³ÙÙ
Ø© ØØ³Ø¨ ÙÙØ¹ Ø§ÙØ±ØÙØ© (جÙÙÙØ§ / برÙÙØ§) Ø«Ù
Ù
دة Ø§ÙØ¨Ø±ÙاÙ
ج.","Per-person prices in Jordanian Dinar by room type, grouped by trip type (air / land) then program duration.")})]}),s.jsx(Axe,{"data-loc":"client/src/components/UmrahPlanner.tsx:1045",rows:l,lang:e})]})]}):null}function Pxe({lang:e}){const t=e==="ar",{data:n}=Pe.umrah.content.useQuery(),a=n??M3,r=a.requirements.map(i=>
1333t?i.ar:i.en).filter(Boolean);return s.jsx(ts,{"data-loc":"client/src/components/UmrahPlanner.tsx:1057",children:s.jsxs("div",{"data-loc":"client/src/components/UmrahPlanner.tsx:1058",className:"rounded-2xl border-2 border-[#C9A961]/30 bg-[#C9A961]/[0.05] p-6 md:p-8",children:[s.jsxs("h3",{"data-loc":"client/src/components/UmrahPlanner.tsx:1059",className:"font-display font-bold text-2xl text-foreground mb-5 flex items-center gap-2",children:[s.jsx(ns,{"data-loc":"client/src/components/UmrahPlanner.tsx:1060",className:"w-6 h-6 text-[#C9A961]"}),t?a.requirementsTitleAr:a.requirementsTitleEn]}),s.jsx("ul",{"data-loc":"client/src/components/UmrahPlanner.tsx:1063",className:"grid sm:grid-cols-2 gap-3",children:r.map((i,o)=>s.jsxs("li",{"data-loc":"client/src/components/UmrahPlanner.tsx:1065",className:"flex items-start gap-2.5 text-foreground/85",children:[s.jsx("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:1066",className:"w-2 h-2 rounded-full bg-[#C9A961] mt-2 shrink-0"}),s.jsx("span",{"data-loc":"client/src/components/UmrahPlanner.tsx:1067",className:"text-sm",children:i})]},o))}),s.jsxs("p",{"data-loc":"client/src/components/UmrahPlanner.tsx:1071",className:"mt-5 text-xs text-muted-foreground flex items-start gap-2",children:[s.jsx(mr,{"data-loc":"client/src/components/UmrahPlanner.tsx:1072",className:"w-4 h-4 mt-0.5 shrink-0 text-[#C9A961]"}),t?a.requirementsNoteAr:a.requirementsNoteEn]})]})})}function Dxe(e){return(e.tripType==="land"?"land":"flight")=="land"?11:L3(e.program)??0}function Rxe(e){const t=[];for(const n of e){const a=n.prices?.double||0;a>0&&t.push(a)}if(t.length)return Math.min(...t);for(const n of e)for(const a of["single","double","triple","quad","quint"]){const r=n.prices?.[a]||0;r>0&&t.push(r)}return t.length?Math.min(...t):0}function Ixe(){const{lang:e,isRTL:t}=zs(),n=e==="ar",a=(l,d)=>n?l:d,{data:r,isLoading:i}=Pe.umrah.list.useQuery(),o=r||[],c=k.useMemo(()=>{const l=new Map;for(const d of o){const m=d.tripType==="land"?"land":"flight",h=Dxe(d);if(!h)continue;const x=`${m}-${h}`;(l.get(x)||l.set(x,[]).get(x)).push(d)}return Array.from(l.entries()).map(([d,m])=>{const[h,x]=d.split("-"),f=parseInt(x,10),b=h==="land"?8:Math.max(0,f-1);return{group:d,tripType:h,days:f,nights:b,hotels:m.length,from:Rxe(m),currency:m[0]?.currency||"JOD",hasMadinah:m.some(y=>y.madinahHotel)}}).sort((d,m)=>d.tripType!==m.tripType?d.tripType==="flight"?-1:1:d.days-m.days)},[o]);if(i)return s.jsx("div",{"data-loc":"client/src/components/UmrahProgramCards.tsx:93",className:"flex items-center justify-center py-16",children:s.jsx(ft,{"data-loc":"client/src/components/UmrahProgramCards.tsx:94",className:"w-7 h-7 text-[#C9A961] animate-spin"})});if(c.length===0){const l=a("Ù
Ø±ØØ¨Ø§ÙØ Ø£Ø±ØºØ¨ ÙÙ Ø§ÙØ§Ø³ØªÙسار ع٠Ù
ÙØ¹Ø¯ ÙØ´Ø± براÙ
ج Ø§ÙØ¹Ù
رة اÙÙØ§Ø¯Ù
Ø©.","Hello, I would like to ask when the next Umrah programs will be published.");return s.jsxs("div",{"data-loc":"client/src/components/UmrahProgramCards.tsx:106",className:"mx-auto max-w-3xl rounded-[2rem] border border-[#C9A961]/25 bg-gradient-to-br from-card via-card to-[#C9A961]/5 px-6 py-10 text-center shadow-sm md:px-12 md:py-14",role:"status",children:[s.jsx("div",{"data-loc":"client/src/components/UmrahProgramCards.tsx:110",className:"mx-auto mb-5 flex h-14 w-14 items-center justify-center rounded-2xl bg-[#C9A961]/15 text-[#C9A961]",children:s.jsx(sx,{"data-loc":"client/src/components/UmrahProgramCards.tsx:111",className:"h-7 w-7","aria-hidden":"true"})}),s.jsx("p",{"data-loc":"client/src/components/UmrahProgramCards.tsx:113",className:"mb-3 text-xs font-semibold uppercase tracking-[0.2em] text-[#C9A961]",children:a("براÙ
ج Ø§ÙØ¹Ù
رة","Umrah Programs")}),s.jsx("h2",{"data-loc":"client/src/components/UmrahProgramCards.tsx:116",className:"font-display text-3xl font-bold text-foreground md:text-4xl",children:a("ÙØ§ ØªÙØ¬Ø¯ براÙ
ج Ù
ÙØ´Ùرة ØØ§ÙÙØ§Ù","No programs are published right now")}),s.jsx("p",{"data-loc":"client/src/components/UmrahProgramCards.tsx:119",className:"mx-auto mt-4 max-w-2xl leading-7 text-muted-foreground",children:a("ÙØØ¯ÙØ« براÙ
ج Ø§ÙØ¹Ù
رة ÙÙ
ÙØ§Ø¹ÙØ¯ÙØ§ ÙØ£Ø³Ø¹Ø§Ø±Ùا اÙÙ
عتÙ
دة. ÙÙ ÙØ¹Ø±Ø¶ Ø¨Ø±ÙØ§Ù
جا٠أ٠سعرا٠Ù
1333Ø¨Ù Ø§ÙØªØÙÙ Ù
ÙÙØ ØªÙØ§ØµÙ Ù
Ø¹ÙØ§ ÙØ³ÙØ¨ÙØºÙ Ø¨Ø£ÙØ±Ø¨ رØÙØ© Ù
ØªØ§ØØ©.","We are updating the next Umrah dates and approved prices. We do not publish a program or price before it is verified; contact us and we will share the nearest available departure.")}),s.jsxs("div",{"data-loc":"client/src/components/UmrahProgramCards.tsx:125",className:"mt-7 flex flex-col justify-center gap-3 sm:flex-row",children:[s.jsxs("a",{"data-loc":"client/src/components/UmrahProgramCards.tsx:126",href:`https://wa.me/962787789915?text=${encodeURIComponent(l)}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 rounded-full bg-[#C9A961] px-6 py-3 text-sm font-semibold text-white transition-[transform,background-color] duration-200 hover:bg-[#9A7209] active:scale-[0.97] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C9A961] focus-visible:ring-offset-2",children:[s.jsx(Dd,{"data-loc":"client/src/components/UmrahProgramCards.tsx:132",className:"h-4 w-4","aria-hidden":"true"}),a("Ø§Ø³ØªÙØ³Ø± عبر ÙØ§ØªØ³Ø§Ø¨","Ask on WhatsApp")]}),s.jsxs(ls,{"data-loc":"client/src/components/UmrahProgramCards.tsx:135",href:"/contact",className:"inline-flex items-center justify-center gap-2 rounded-full border border-border bg-background px-6 py-3 text-sm font-semibold text-foreground transition-[transform,border-color] duration-200 hover:border-[#C9A961] active:scale-[0.97] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C9A961] focus-visible:ring-offset-2",children:[a("ØµÙØØ© Ø§ÙØªÙاصÙ","Contact page"),s.jsx(dr,{"data-loc":"client/src/components/UmrahProgramCards.tsx:140",className:`h-4 w-4 ${t?"rotate-180":""}`,"aria-hidden":"true"})]})]}),s.jsxs("div",{"data-loc":"client/src/components/UmrahProgramCards.tsx:143",className:"mt-7 inline-flex items-center gap-2 rounded-full bg-muted/60 px-4 py-2 text-xs text-muted-foreground",children:[s.jsx(sa,{"data-loc":"client/src/components/UmrahProgramCards.tsx:144",className:"h-4 w-4 text-[#C9A961]","aria-hidden":"true"}),a("ØªÙØ¹Ø±Ø¶ Ø§ÙØ£Ø³Ø¹Ø§Ø± اÙÙ
عتÙ
دة ÙÙØ·","Only approved prices are published")]})]})}return s.jsxs("section",{"data-loc":"client/src/components/UmrahProgramCards.tsx:152",children:[s.jsxs("div",{"data-loc":"client/src/components/UmrahProgramCards.tsx:153",className:"text-center mb-10",children:[s.jsx("p",{"data-loc":"client/src/components/UmrahProgramCards.tsx:154",className:"text-sm uppercase tracking-[0.2em] text-[#C9A961] font-semibold mb-3",children:a("براÙ
ج Ø§ÙØ¹Ù
رة","Umrah Programs")}),s.jsx("h2",{"data-loc":"client/src/components/UmrahProgramCards.tsx:157",className:"font-display font-bold text-3xl md:text-4xl text-foreground mb-3",children:a("اختر Ø¨Ø±ÙØ§Ù
Ø¬Ù ÙØ§Ø·ÙÙØ¹ عÙÙ Ø§ÙØªÙاصÙÙ","Choose a Program & View the Details")}),s.jsx("p",{"data-loc":"client/src/components/UmrahProgramCards.tsx:160",className:"text-muted-foreground max-w-2xl mx-auto",children:a("براÙ
ج Ù
Ø±ØªÙØ¨Ø© ØØ³Ø¨ ÙÙØ¹ Ø§ÙØ±ØÙØ© (جÙÙÙØ§ / برÙÙØ§) ÙÙ
Ø¯ØªÙØ§. اضغط عÙÙ Ø£Ù Ø¨Ø·Ø§ÙØ© ÙØ¹Ø±Ø¶ اÙÙÙØ§Ø¯Ù ÙØ§Ùأسعار ÙØªØÙ
ÙÙ Ø§ÙØ¨Ø±ÙاÙ
ج.","Programs sorted by trip type (air / land) and duration. Tap any card to view hotels, prices and download the program.")})]}),s.jsx(c2,{"data-loc":"client/src/components/UmrahProgramCards.tsx:168",className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6",stagger:.06,children:c.map(l=>s.jsx(l2,{"data-loc":"client/src/components/UmrahProgramCards.tsx:170",children:s.jsx(Mxe,{"data-loc":"client/src/components/UmrahProgramCards.tsx:171",card:l,lang:e,isRTL:t})},l.group))})]})}function Mxe({card:e,lang:t,isRTL:n}){const a=t==="ar",r=(m,h)=>a?m:h,i=e.tripType==="land",o=i?M4:Hs,c=String(e.days).replace(/\d/g,m=>"٠١٢٣٤٥٦٧٨٩"[+m]),l=i?r("عÙ
رة برÙÙØ§ â Ø¨Ø§ÙØØ§ÙÙØ©","Umrah by Land â Coach"):r(`عÙ
رة جÙÙÙØ§ â ${c} Ø£ÙØ§Ù
`,`Umrah by Air â ${e.days} Days`),d=e.hasMadinah?r("Ù
ÙØ© + اÙÙ
دÙÙØ©","Makkah + Madinah"):r("Ù
ÙØ© اÙÙ
ÙØ±Ù
Ø©","Makkah");return s.jsxs(ls,{"data-loc":"client/src/components/UmrahProgramCards.tsx:193",href:`/umrah
1333/programs/${e.group}`,className:"group block h-full rounded-2xl border border-border bg-card overflow-hidden shadow-sm hover:shadow-lg hover:-translate-y-1 transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C9A961]",children:[s.jsxs("div",{"data-loc":"client/src/components/UmrahProgramCards.tsx:198",className:"relative h-28 bg-gradient-to-br from-[#1a2233] to-[#0f1623] flex items-center justify-between px-5",children:[s.jsxs("div",{"data-loc":"client/src/components/UmrahProgramCards.tsx:199",className:"flex items-center gap-3 text-white",children:[s.jsx("span",{"data-loc":"client/src/components/UmrahProgramCards.tsx:200",className:"w-11 h-11 rounded-2xl bg-[#C9A961]/25 flex items-center justify-center",children:s.jsx(o,{"data-loc":"client/src/components/UmrahProgramCards.tsx:201",className:"w-5 h-5 text-[#C9A961]"})}),s.jsxs("div",{"data-loc":"client/src/components/UmrahProgramCards.tsx:203",children:[s.jsx("p",{"data-loc":"client/src/components/UmrahProgramCards.tsx:204",className:"font-display font-bold text-lg leading-tight",children:l}),s.jsx("p",{"data-loc":"client/src/components/UmrahProgramCards.tsx:205",className:"text-white/60 text-xs mt-0.5",children:d})]})]}),s.jsx("span",{"data-loc":"client/src/components/UmrahProgramCards.tsx:208",className:"px-2.5 py-1 rounded-full bg-[#C9A961]/90 text-white text-[10px] font-semibold uppercase tracking-wide",children:i?r("برÙÙØ§","Land"):r("جÙÙÙØ§","Air")})]}),s.jsxs("div",{"data-loc":"client/src/components/UmrahProgramCards.tsx:214",className:"p-5",children:[s.jsxs("div",{"data-loc":"client/src/components/UmrahProgramCards.tsx:215",className:"flex items-center gap-4 text-sm text-foreground/80 mb-4",children:[s.jsxs("span",{"data-loc":"client/src/components/UmrahProgramCards.tsx:216",className:"inline-flex items-center gap-1.5",children:[s.jsx(Pl,{"data-loc":"client/src/components/UmrahProgramCards.tsx:217",className:"w-4 h-4 text-[#C9A961]"}),e.days," ",f2(e.days,a)," / ",e.nights," ",r("ÙÙØ§ÙÙ","nights")]}),s.jsxs("span",{"data-loc":"client/src/components/UmrahProgramCards.tsx:220",className:"inline-flex items-center gap-1.5",children:[s.jsx(wu,{"data-loc":"client/src/components/UmrahProgramCards.tsx:221",className:"w-4 h-4 text-[#C9A961]"}),e.hotels," ",r("ÙÙØ¯Ù","hotels")]})]}),s.jsxs("div",{"data-loc":"client/src/components/UmrahProgramCards.tsx:226",className:"flex items-end justify-between",children:[s.jsxs("div",{"data-loc":"client/src/components/UmrahProgramCards.tsx:227",children:[s.jsx("p",{"data-loc":"client/src/components/UmrahProgramCards.tsx:228",className:"text-xs text-muted-foreground",children:r("ÙØ¨Ø¯Ø£ Ù
Ù","From")}),s.jsxs("p",{"data-loc":"client/src/components/UmrahProgramCards.tsx:229",className:"font-display font-bold text-2xl text-[#C9A961]",children:[e.from," ",s.jsx("span",{"data-loc":"client/src/components/UmrahProgramCards.tsx:230",className:"text-sm font-sans text-muted-foreground",children:e.currency})]})]}),s.jsxs("span",{"data-loc":"client/src/components/UmrahProgramCards.tsx:233",className:"inline-flex items-center gap-1.5 text-sm font-semibold text-foreground group-hover:text-[#C9A961] transition-colors",children:[r("Ø§ÙØªÙاصÙÙ","View details"),s.jsx(dr,{"data-loc":"client/src/components/UmrahProgramCards.tsx:235",className:`w-4 h-4 transition-transform group-hover:translate-x-0.5 ${n?"rotate-180 group-hover:-translate-x-0.5":""}`})]})]})]})]})}const Lxe="https://d2xsxph8kpxj0f.cloudfront.net/310519663086127995/8XS8EAUNLJkfTwgiQZ76q3/hero-umrah-gzCzdrtUpFTxMhGvksYBF4.webp";function Oxe(){const{t:e,lang:t,isRTL:n}=zs(),{data:a}=Pe.umrah.content.useQuery(),r=a??M3,i=t==="ar",o=[{icon:y3,title:t==="ar"?"Ù
رخصÙ٠رسÙ
ÙØ§Ù":"Officially Licensed",desc:t==="ar"?"ØØ§ØµÙÙ٠عÙÙ ØªØ±Ø®ÙØµ رسÙ
Ù ÙØªÙظÙÙ
رØÙات Ø§ÙØ¹Ù
رة ÙØ§ÙØØ¬":"Officially licensed to organize Umrah and Hajj trips"},{icon:Tu,title:t==="ar"?"ÙÙØ§Ø¯Ù ÙØ±Ùبة Ù
Ù Ø§ÙØØ±Ù
":"Hotels Near Haram",desc:t==="ar"?"Ø¥ÙØ§Ù
Ø© ÙÙ Ø£ÙØ¶Ù اÙÙÙØ§Ø¯Ù عÙÙ Ø¨ÙØ¹Ø¯ Ø®Ø·ÙØ§Øª Ù
Ù Ø§ÙØØ±Ù
":"Stay at the best hotels steps away from Haram"},{icon:Dl,title:t==="ar"?"Ù
رشدÙÙ Ù
تخصصÙÙ":"Expert Guides",desc:t==="ar"?"Ù
رشدÙ٠دÙÙÙÙ٠ذÙ٠خبرة ÙÙ
راÙÙØªÙÙ
Ø·ÙØ§Ù Ø§ÙØ±ØÙØ©":"Experienced religious guides throughout your journey"},{icon:Pl,title:t==="ar"?"دعÙ
عÙÙ Ù
دار Ø§ÙØ³Ø§Ø¹Ø©":"24/7 Support",desc:t==="ar"?"ÙØ±Ù٠دعÙ
Ù
ØªØ§Ø Ù¢Ù¤ ساعة ÙØ®Ø¯Ù
تÙÙ
":"Support team available 24 hours to serve you"}];return s.jsxs("div",{"data-loc":"client/src/pages/Umrah.tsx:62",className:"min-h-screen",children:[s.jsx(io,{"data-loc":"client/src/pages/Umrah.tsx:63"}),s.jsxs("section",{"data-loc":"client/src/pages/Umrah.tsx:66",className:"relative min-h-[60vh] flex items-center overflow-hidden",children:[s.jsx("img",{"data-loc":"client/src/pages/Umrah.tsx:67",src:Lxe,alt:"Masjid al-Haram",className:"absolute inset-0 w-full h-full object-cover"}),s.jsx("div",{"data-loc":"client/src/pages/Umrah.tsx:68",className:"absolute inset-0 bg-black/50"}),s.jsx("div",{"data-loc":"client/src/pages/Umrah.tsx:69",className:"relative z-10 container pt-32 pb-16",children:s.jsxs("div",{"data-loc":"client/src/pages/Umrah.tsx:70",className:"max-w-2xl",children:[s.jsx("p",{"data-loc":"client/src/pages/Umrah.tsx:71",className:"text-sm uppercase tracking-[0.2em] text-[#C9A961] font-semibold mb-4",children:i?r.eyebrowAr:r.eyebrowEn}),s.jsx("h1",{"data-loc":"client/src/pages/Umrah.tsx:74",className:"font-display font-bold text-5xl md:text-6xl text-white mb-6",children:i?r.titleAr:r.titleEn}),s.jsx("p",{"data-loc":"client/src/pages/Umrah.tsx:75",className:"text-white/80 text-lg leading-relaxed",children:i?r.descAr:r.descEn})]})})]}),s.jsx("section",{"data-loc":"client/src/pages/Umrah.tsx:81",className:"py-16 section-ocean",children:s.jsx("div",{"data-loc":"client/src/pages/Umrah.tsx:82",className:"container",children:s.jsx("div",{"data-loc":"client/src/pages/Umrah.tsx:83",className:"grid md:grid-cols-4 gap-8",children:o.map(c=>s.jsxs("div",{"data-loc":"client/src/pages/Umrah.tsx:85",className:"text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/Umrah.tsx:86",className:"w-12 h-12 rounded-full bg-[#C9A961]/20 flex items-center justify-center mx-auto mb-4",children:s.jsx(c.icon,{"data-loc":"client/src/pages/Umrah.tsx:87",className:"w-5 h-5 text-[#C9A961]"})}),s.jsx("h3",{"data-loc":"client/src/pages/Umrah.tsx:89",className:"font-semibold text-white text-sm mb-2",children:c.title}),s.jsx("p",{"data-loc":"client/src/pages/Umrah.tsx:90",className:"text-xs text-white/60",children:c.desc})]},c.title))})})}),s.jsx("section",{"data-loc":"client/src/pages/Umrah.tsx:98",className:"section-spacing bg-background",children:s.jsx("div",{"data-loc":"client/src/pages/Umrah.tsx:99",className:"container",children:s.jsx(Ixe,{"data-loc":"client/src/pages/Umrah.tsx:100"})})}),s.jsx("section",{"data-loc":"client/src/pages/Umrah.tsx:105",id:"trip-builder",className:"bg-muted/20 scroll-mt-24",children:s.jsx("div",{"data-loc":"client/src/pages/Umrah.tsx:106",className:"container section-spacing empty:hidden",children:s.jsx(_xe,{"data-loc":"client/src/pages/Umrah.tsx:107"})})}),s.jsx("section",{"data-loc":"client/src/pages/Umrah.tsx:112",className:"py-20 section-ocean",children:s.jsxs("div",{"data-loc":"client/src/pages/Umrah.tsx:113",className:"container text-center",children:[s.jsx(FU,{"data-loc":"client/src/pages/Umrah.tsx:114",className:"w-8 h-8 text-[#C9A961] mx-auto mb-4"}),s.jsx("h2",{"data-loc":"client/src/pages/Umrah.tsx:115",className:"font-display font-bold text-3xl md:text-4xl text-white mb-4",children:t==="ar"?"ÙØ³Ø£Ù اÙÙÙ Ø£Ù ÙØªÙب٠عÙ
رتÙÙ
":"May Allah Accept Your Umrah"}),s.jsx("p",{"data-loc":"client/src/pages/Umrah.tsx:118",className:"text-white/60 text-lg mb-8 max-w-lg mx-auto",children:t==="ar"?"ØªÙØ§ØµÙ Ù
Ø¹ÙØ§ ÙØØ¬Ø² رØÙØ© Ø§ÙØ¹Ù
رة ÙØ³ÙÙØªÙ
بÙÙ Ø§ÙØªÙاصÙÙ":"Contact us to book your Umrah trip and we'll take care of every detail"}),s.jsxs("a",{"data-loc":"client/src/pages/Umrah.tsx:123",href:"https://wa.me/962787789915",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-8 py-4 rounded-full bg-[#C9A961] text-white font-semibold hover:bg-[#9A7209] transition-colors",children:[t==="ar"?"ØªÙØ§ØµÙ Ù
Ø¹ÙØ§ Ø§ÙØ¢Ù":"Contact Us Now",s.jsx(dr,{"data-loc":"client/src/pages/Umrah.tsx:130",className:`w-4 h-4 ${n?"rotate-180":""}`})]})]})}),s.jsx(oo,{"data-loc":"client/src/pages/Umrah.tsx:135"})]})}const Bxe="962787789915",Fxe="https://d2xsxph8kpxj0f.cloudfront.net/310519663086127995/8XS8EAUNLJkfTwgiQZ76q3/hero-umrah-gzCzdrtUpFTxMhGvksYBF4.webp";function Uxe(e){const t=e.match(/^(flight|land)-(\d+)$/);return t?{tripType:t[1],days:parseInt(t[2],10)}:null}function Hxe(e){return(e.tripType==="land"?"land":"flight")=="land"?11:L3(e.program)??0}function Vxe(e){const t=[];for(const n of e){const a=n.prices?.double||0;a>0&&t.push(a)}if(t.length)return Math.min(...t);for(const n of e)for(const a of["single","double","triple","quad","quint"]){const r=n.prices?.[a]||0;r>0&&t.push(r)}return t.length?Math.min(...t):0}function zxe(){const t=Kj().group||"",{lang:n,isRTL:a}=zs(),r=n==="ar",i=(J,oe)=>r?J:oe,{data:o,isLoading:c}=Pe.umrah.list.useQuery(),[l,d]=k.useState(!1),m=k.useMemo(()=>Uxe(t),[t]),h=o||[],x=k.useMemo(()=>m?h.filter(J=>(J.tripType==="land"?"land":"flight")===m.tripType&&Hxe(J)===m.days):[],[h,m?.tripType,m?.days]),f=a?dr:_l;if(c)return s.jsxs("div",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:106",className:"min-h-screen flex flex-col",children:[s.jsx(io,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:107"}),s.jsx("div",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:108",className:"flex-1 flex items-center justify-center pt-32",children:s.jsx(ft,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:109",className:"w-8 h-8 text-[#C9A961] animate-spin"})}),s.jsx(oo,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:111"})]});if(!m||x.length===0)return s.jsxs("div",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:118",className:"min-h-screen flex flex-col",children:[s.jsx(io,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:119"}),s.jsxs("div",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:120",className:"flex-1 flex flex-col items-center justify-center pt-32 pb-20 text-center",children:[s.jsx("h1",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:121",className:"font-display font-bold text-4xl text-foreground mb-3",children:i("Ø§ÙØ¨Ø±ÙاÙ
ج ØºÙØ± Ù
ÙØ¬Ùد","Program not found")}),s.jsxs(ls,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:124",href:"/umrah",className:"inline-flex items-center gap-2 mt-4 px-6 py-3 rounded-full bg-[#C9A961] text-white font-semibold",children:[s.jsx(f,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:128",className:"w-4 h-4"}),i("Ø§ÙØ¹Ùدة Ø¥ÙÙ Ø§ÙØ¹Ù
رة","Back to Umrah")]})]}),s.jsx(oo,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:132"})]});const b=m.tripType==="land",y=b?M4:Hs,w=x[0]?.program||"",T=b?8:Math.max(0,m.days-1),A=Vxe(x),E=x[0]?.currency||"JOD",D=x.some(J=>J.madinahHotel),S=String(m.days).replace(/\d/g,J=>"٠١٢٣٤٥٦٧٨٩"[+J]),R=D?" (Ù
ÙØ© + اÙÙ
دÙÙØ©)":" (Ù
ÙØ© ÙÙØ·)",L=D?" (Makkah + Madinah)":" (Makkah only)",I=b?i("Ø¨Ø±ÙØ§Ù
ج Ø§ÙØ¹Ù
رة برÙÙØ§ â Ø¨Ø§ÙØØ§ÙÙØ©","Umrah by Land â Coach"):i(`عÙ
رة جÙÙÙØ§ â ${S} Ø£ÙØ§Ù
${R}`,`Umrah by Air â ${m.days} Days${L}`),F=b?i("رØÙØ© عÙ
رة عبر ØØ§ÙÙØ§Øª Ø³ÙØ§ØÙØ© Ù
ÙÙÙÙØ© ÙØ§Ø®Ø±Ø©Ø Ù
ع Ø§ÙØªØ£Ø´Ùرة ÙØ§ÙØ¥ÙØ§Ù
Ø© ÙØ§ÙتÙÙÙØ§Øª.","An Umrah journey aboard premium air-conditioned coaches, with visa, accommodation and transfers."):i("تشÙ
Ù ØªØ°ÙØ±Ø© Ø§ÙØ·ÙØ±Ø§Ù Ø°ÙØ§Ø¨Ø§Ù ÙØ¥ÙØ§Ø¨Ø§Ù ÙØ§ÙØªØ£Ø´ÙØ±Ø© ÙØ§ÙØ¥ÙØ§Ù
Ø© ÙØ§ÙتÙÙÙØ§Øª ØØ³Ø¨ Ø§ÙØ¨Ø±ÙاÙ
ج.","Includes round-trip flight, visa, accommodation and transfers per program."),_=[i("Ø¬ÙØ§Ø² Ø³ÙØ± سار٠اÙÙ
ÙØ¹ÙÙ ÙÙ
دة ÙØ§ تÙ٠ع٠٧ Ø£Ø´ÙØ±.","Passport valid for at least 7 months."),i("تعبئة Ø¨ÙØ§Ùات اÙÙ
عتÙ
رÙÙ ÙØ§Ù
ÙØ© ÙØ¨Ù إصدار Ø§ÙØªØ£Ø´Ùرة.","Complete pilgrim details before visa issuance."),b?i("Ù
غادرة Ø§ÙØØ§ÙÙØ§Øª Ø£ÙØ§Ù
Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡.","Coaches depart on Wednesdays."):i("رØÙات Ø§ÙØ·ÙراÙ: اÙÙ
ÙÙÙØ© (Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡) ÙØ·ÙØ±Ø§Ù ÙØ§Ø³ (Ø§ÙØ«Ùاثاء).","Flights: Royal Jordanian (Wed) & Flynas (Tue).")],U=i(`Ù
Ø±ØØ¨Ø§ÙØ Ø£Ø±ØºØ¨ Ø¨Ø§ÙØ§Ø³ØªÙسار عÙ: ${I} (ÙØ¨Ø¯Ø£ Ù
Ù ${A} ${E})`,`Hello, I'd like to inquire about: ${I} (from ${A} ${E})`),O=`https://wa.me/${Bxe}?text=${encodeURIComponent(U)}`;function W(){d(!0);try{h9({programName:w,rows:x,lang:n})}finally{setTimeout(()=>d(!1),800)}}return s.jsxs("div",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:192",className:"min-h-screen flex flex-col",children:[s.jsx(io,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:193"}),s.jsx($xe,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:196",img:Fxe,title:I,badge:s.jsxs("span",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:200",className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-[#C9A961]/90 text-white text-xs font-semibold uppercase tracking-wide",children:[s.jsx(y,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:201",className:"w-3.5 h-3.5"}),b?i("برÙÙØ§","By Land"):i("جÙÙÙØ§","By Air")]}),meta:s.jsxs(s.Fragment,{children:[s.jsxs("span",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:207",className:"inline-flex items-center gap-2",children:[s.jsx(Pl,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:208",className:"w-4 h-4 text-[#C9A961]"}),m.days," ",f2(m.days,r)," / ",T," ",i("ÙÙØ§ÙÙ","nights")]}),s.jsxs("span",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:211",className:"inline-flex items-center gap-2",children:[s.jsx(pr,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:212",className:"w-4 h-4 text-[#C9A961]"}),i("ÙØ¨Ø¯Ø£ Ù
Ù","From")," ",s.jsxs("strong",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:214",className:"text-[#C9A961]",children:[A," ",E]})]}),s.jsxs("span",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:218",className:"inline-flex items-center gap-2",children:[s.jsx(wu,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:219",className:"w-4 h-4 text-[#C9A961]"}),x.length," ",i("ÙÙØ¯Ù/Ø®ÙØ§Ø±","hotel options")]})]}),backLabel:i("Ø§ÙØ¹Ùدة Ø¥ÙÙ Ø§ÙØ¹Ù
رة","Back to Umrah"),BackIcon:f}),s.jsx("section",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:229",className:"section-spacing",children:s.jsx("div",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:230",className:"container",children:s.jsxs("div",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:231",className:"grid lg:grid-cols-3 gap-12",children:[s.jsxs("div",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:233",className:"lg:col-span-2 space-y-14",children:[s.jsxs(ts,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:235",children:[s.jsxs("h2",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:236",className:"font-display font-bold text-3xl text-foreground mb-4 flex items-center gap-3",children:[s.jsx("span",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:237",className:"w-12 h-12 rounded-2xl bg-[#C9A961]/15 flex items-center justify-center shrink-0",children:s.jsx(y,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:238",className:"w-6 h-6 text-[#C9A961]"})}),i("ÙØ¸Ø±Ø© عاÙ
Ø©","Overview")]}),s.jsx("p",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:242",className:"text-lg text-foreground
1333/80 leading-relaxed",children:F}),!b&&s.jsx("p",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:244",className:"text-muted-foreground leading-relaxed mt-3",children:D?i("Ø¨Ø±ÙØ§Ù
ج Ù
ØªÙØ§Ù
Ù ÙØ¬Ù
ع بÙÙ Ø§ÙØ¥ÙاÙ
Ø© ÙÙ Ù
ÙØ© اÙÙ
ÙØ±Ù
Ø© ÙØ§ÙÙ
دÙÙØ© اÙÙ
ÙÙØ±Ø© ÙØ²Ùارة اÙÙ
سجد اÙÙØ¨ÙÙ.","A complete program combining Makkah and Madinah to visit the Prophet's Mosque."):i("Ø¨Ø±ÙØ§Ù
ج Ù
رÙÙØ² ÙÙØ¥ÙاÙ
Ø© ÙÙ Ù
ÙØ© اÙÙ
ÙØ±Ù
Ø© ÙØ±Ø¨ Ø§ÙØØ±Ù
Ø Ù
ثاÙÙ ÙÙ
Ù ÙØ±ØºØ¨ بعÙ
رة ÙØµÙرة.","A focused stay in Makkah near Al-Haram, ideal for a shorter Umrah.")})]}),s.jsxs(ts,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:259",children:[s.jsx("h2",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:260",className:"font-display font-bold text-3xl text-foreground mb-6",children:i("اÙÙÙØ§Ø¯Ù ÙØ§Ùأسعار","Hotels & Prices")}),s.jsx(oq,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:263",program:w,rows:x,lang:n})]}),s.jsx(ts,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:267",children:s.jsxs("div",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:268",className:"rounded-2xl border-2 border-[#C9A961]/30 bg-[#C9A961]/[0.05] p-6 md:p-8",children:[s.jsxs("h3",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:269",className:"font-display font-bold text-2xl text-foreground mb-5 flex items-center gap-2",children:[s.jsx(ns,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:270",className:"w-6 h-6 text-[#C9A961]"}),i("Ù
ØªØ·ÙØ¨Ø§Øª Ø§ÙØ¹Ù
رة","Umrah Requirements")]}),s.jsx("ul",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:273",className:"grid sm:grid-cols-2 gap-3",children:_.map((J,oe)=>s.jsxs("li",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:275",className:"flex items-start gap-2.5 text-foreground/85",children:[s.jsx("span",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:276",className:"w-2 h-2 rounded-full bg-[#C9A961] mt-2 shrink-0"}),s.jsx("span",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:277",className:"text-sm",children:J})]},oe))}),s.jsxs("p",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:281",className:"mt-5 text-xs text-muted-foreground flex items-start gap-2",children:[s.jsx(mr,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:282",className:"w-4 h-4 mt-0.5 shrink-0 text-[#C9A961]"}),i("تختÙ٠بعض اÙÙ
ØªØ·ÙØ¨Ø§Øª ØØ³Ø¨ Ø§ÙØ¬ÙØ³ÙØ© ÙÙØ¶Ø¹ Ø§ÙØ¥ÙاÙ
Ø©. ØªÙØ§ØµÙ Ù
Ø¹ÙØ§ ÙØªØ£ÙÙØ¯ Ù
ØªØ·ÙØ¨Ø§Øª ØØ§ÙتÙ.","Some requirements vary by nationality and residency. Contact us to confirm your case.")]})]})}),s.jsx(ts,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:292",children:s.jsxs("div",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:293",className:"rounded-2xl bg-gradient-to-br from-[#1a2233] to-[#0f1623] text-white p-6 md:p-8 flex flex-col sm:flex-row sm:items-center gap-4 justify-between",children:[s.jsxs("div",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:294",children:[s.jsx("h3",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:295",className:"font-display font-bold text-xl mb-1",children:i("Ø§ØØ³Ø¨ تÙÙÙØªÙ Ø¨Ø§ÙØªÙصÙÙ","Estimate your exact cost")}),s.jsx("p",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:298",className:"text-white/70 text-sm",children:i("أض٠عدد اÙÙ
Ø³Ø§ÙØ±ÙÙ ÙØ§ÙØ£Ø·ÙØ§Ù ÙØ§ÙØªÙØ§Ø±ÙØ® Ù٠أداة Ø¨ÙØ§Ø¡ Ø§ÙØ±ØÙØ©.","Add travelers, children and dates in the Trip Builder.")})]}),s.jsxs(ls,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:305",href:"/umrah#trip-builder",className:"inline-flex items-center justify-center gap-2 px-6 py-3 rounded-full bg-[#C9A961] text-white font-semibold hover:bg-[#9A7209] active:scale-[0.97] transition-all whitespace-nowrap",children:[i("Ø§ÙØªØ أداة Ø¨ÙØ§Ø¡ Ø§ÙØ±ØÙØ©","Open Trip Builder"),s.jsx(dr,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:310",className:`w-4 h-4 ${a?"rotate-180":""}`})]})]})})]}),s.jsx("div",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:317",className:"lg:col-span-1",children:s.jsxs("div",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:318",className:"lg:sticky lg:top-28 space-y-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:319",className:"ocean-card rounded-2xl p-6",children:[s.jsx("p",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:320",className:"text-sm text-muted-foreground",children:i("ÙØ¨Ø¯Ø£ Ù
Ù","Starting from")}),s.jsxs("p",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:321",className:"font-display font-bold text-4xl text-foreground mt-1",children:[A,s.jsxs("span",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:323",className:"text-base font-sans text-muted-foreground font-normal ms-2",children:[E," / ",i("ÙÙÙØ±Ø¯","per person")]})]}),s.jsx("div",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:327",className:"gold-rule my-5"}),s.jsxs("div",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:328",className:"space-y-3",children:[s.jsx("a",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:329",href:O,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 w-full px-5 py-3.5 rounded-full bg-[#25D366] text-white font-semibold hover:scale-[0.98] active:scale-[0.96] transition-transform shadow-md",children:i("Ø§ØØ¬Ø² عبر ÙØ§ØªØ³Ø§Ø¨","Book via WhatsApp")}),s.jsxs("button",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:337",onClick:W,disabled:l,className:"flex items-center justify-center gap-2 w-full px-5 py-3.5 rounded-full border border-[#C9A961] text-[#C9A961] font-semibold hover:bg-[#C9A961]/5 active:scale-[0.96] transition-all disabled:opacity-60",children:[l?s.jsx(ft,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:343",className:"w-4 h-4 animate-spin"}):s.jsx(Sd,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:345",className:"w-4 h-4"}),i("تØÙ
ÙÙ Ø§ÙØ¨Ø±ÙاÙ
ج PDF","Download program PDF")]}),s.jsx(i9,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:349",url:`/umrah
1333/programs/${t}`,title:I,text:F,variant:"button",className:"w-full"})]}),s.jsx("p",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:357",className:"mt-5 text-[11px] text-muted-foreground leading-relaxed",children:i("Ø§ÙØ£Ø³Ø¹Ø§Ø± ÙÙÙ ÙØ±Ø¯ Ø¨Ø§ÙØ¯ÙÙØ§Ø± Ø§ÙØ£Ø±Ø¯ÙÙ ØØ³Ø¨ ÙÙØ¹ Ø§ÙØºØ±ÙØ© ÙÙØ¨Ø§ÙغÙÙ. أسعار Ø§ÙØ£Ø·ÙØ§Ù ØªÙØØªØ³Ø¨ Ù٠أداة Ø¨ÙØ§Ø¡ Ø§ÙØ±ØÙØ©. ÙØªÙ
تأÙÙØ¯ Ø§ÙØ³Ø¹Ø± اÙÙÙØ§Ø¦Ù Ø¹ÙØ¯ Ø§ÙØØ¬Ø².","Per-person adult prices in JOD by room type. Child prices are computed in the Trip Builder. Final price confirmed at booking.")})]}),s.jsxs("div",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:366",className:"ocean-card rounded-2xl p-6",children:[s.jsx("h3",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:367",className:"font-display font-bold text-lg text-foreground mb-4",children:i("Ù
عÙÙÙ
ات Ø³Ø±ÙØ¹Ø©","Quick facts")}),s.jsxs("ul",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:370",className:"space-y-3 text-sm",children:[s.jsx(Dy,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:371",label:i("ÙÙØ¹ Ø§ÙØ±ØÙØ©","Trip type"),value:b?i("برÙÙØ§ (ØØ§ÙÙØ©)","By Land (Coach)"):i("جÙÙÙØ§ (Ø·ÙØ±Ø§Ù)","By Air (Flight)")}),s.jsx(Dy,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:372",label:i("اÙÙ
دة","Duration"),value:`${m.days} ${f2(m.days,r)} / ${T} ${i("ÙÙØ§ÙÙ","nights")}`}),s.jsx(Dy,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:373",label:i("اÙÙ
دÙ","Cities"),value:D?i("Ù
ÙØ© + اÙÙ
دÙÙØ©","Makkah + Madinah"):i("Ù
ÙØ© اÙÙ
ÙØ±Ù
Ø©","Makkah")}),s.jsx(Dy,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:374",label:i("Ø®ÙØ§Ø±Ø§Øª اÙÙÙØ§Ø¯Ù","Hotel options"),value:String(x.length)})]})]})]})})]})})}),s.jsx(oo,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:383"})]})}function Dy({label:e,value:t}){return s.jsxs("li",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:390",className:"flex items-center justify-between gap-3",children:[s.jsx("span",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:391",className:"text-muted-foreground",children:e}),s.jsx("span",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:392",className:"font-semibold text-foreground text-end",children:t})]})}function $xe({img:e,title:t,badge:n,meta:a,backLabel:r,BackIcon:i}){const{scrollY:o}=XA(),c=i2(o,[0,600],[0,160]),l=i2(o,[0,600],[1,1.12]);return s.jsxs("section",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:416",className:"relative h-[70vh] min-h-[480px] overflow-hidden",children:[s.jsx(xc.img,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:417",src:e,alt:t,style:{y:c,scale:l},className:"absolute inset-0 w-full h-full object-cover"}),s.jsx("div",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:423",className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/30 to-black/40"}),s.jsx("div",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:424",className:"relative z-10 h-full container flex flex-col justify-end pb-12",children:s.jsxs(ts,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:425",direction:"up",children:[s.jsxs(ls,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:426",href:"/umrah",className:"inline-flex items-center gap-2 text-white/80 hover:text-white text-sm mb-6 transition-colors",children:[s.jsx(i,{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:430",className:"w-4 h-4"}),r]}),s.jsx("div",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:433",className:"flex items-center gap-3 mb-3",children:n}),s.jsx("h1",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:434",className:"font-display font-bold text-4xl md:text-6xl text-white leading-tight max-w-3xl",children:t}),s.jsx("div",{"data-loc":"client/src/pages/UmrahProgramDetail.tsx:437",className:"flex flex-wrap items-center gap-5 mt-5 text-white/90 text-sm",children:a})]})})]})}function qxe(){const{t:e,lang:t}=zs(),n=[{icon:Hs,title:t==="ar"?"ØØ¬Ø² ØªØ°Ø§ÙØ± Ø§ÙØ·ÙراÙ":"Flight Booking",desc:t==="ar"?"ÙÙÙØ± ÙÙ Ø£ÙØ¶Ù Ø§ÙØ£Ø³Ø¹Ø§Ø± عÙ٠جÙ
ÙØ¹ Ø§ÙØ®Ø·ÙØ· Ø§ÙØ¬ÙÙØ© Ø§ÙØ¹Ø§ÙÙ
ÙØ© ÙØ§ÙÙ
ØÙÙØ©. ØØ¬Ø² سÙÙ ÙØ³Ø±Ùع Ù
ع Ø®ÙØ§Ø±Ø§Øª Ù
Ø±ÙØ© ÙÙØªØºÙÙØ± ÙØ§ÙØ¥ÙØºØ§Ø¡.":"We provide the best prices on all international and local airlines. Easy and fast booking with flexible change and cancellation options."},{icon:wu,title:t==="ar"?"ØØ¬Ø² اÙÙÙØ§Ø¯Ù":"Hotel Reservations",desc:t==="ar"?"ÙÙØ§Ø¯Ù Ù
ختارة Ø¨Ø¹ÙØ§ÙØ© Ù٠جÙ
ÙØ¹ اÙÙØ¬Ùات Ù
Ù ÙØ¦Ø© Ù£ Ø¥ÙÙ Ù¥ ÙØ¬ÙÙ
. ÙØ¶Ù
Ù ÙÙ Ø£ÙØ¶Ù Ø§ÙØ£Ø³Ø¹Ø§Ø± ÙØ£Ùض٠اÙÙ
ÙØ§Ùع.":"Carefully selected hotels at all destinations from 3 to 5 stars. We guarantee the best prices and best locations."},{icon:uie,title:t==="ar"?"براÙ
ج Ø³ÙØ§ØÙØ© Ù
ØªÙØ§Ù
ÙØ©":"Complete Tour Packages",desc:t==="ar"?"براÙ
ج Ø³ÙØ§ØÙØ© Ù
صÙ
Ù
Ø© Ø®ØµÙØµØ§Ù تشÙ
Ù Ø§ÙØ·ÙØ±Ø§Ù ÙØ§ÙØ¥ÙØ§Ù
Ø© ÙØ§ÙتÙÙÙØ§Øª ÙØ§ÙجÙÙØ§Øª Ø§ÙØ³ÙاØÙØ© Ù
ع Ù
رشدÙÙ Ù
ØØªØ±ÙÙÙ.":"Custom-designed tour packages including flights, accommodation, transfers, and guided tours with professional guides."},{icon:y3,title:t==="ar"?"تأÙ
ÙÙ Ø§ÙØ³Ùر":"Travel Insurance",desc:t==="ar"?"تأÙ
ÙÙ Ø³ÙØ± شاÙ
Ù ÙØºØ·Ù Ø§ÙØØ§ÙØ§Øª Ø§ÙØ·Ø¨ÙØ© ÙØ§ÙØ¥ÙØºØ§Ø¡ ÙÙÙØ¯Ø§Ù Ø§ÙØ£Ù
تعة ÙØ±Ø§ØØ© باÙÙ Ø£Ø«ÙØ§Ø¡ Ø§ÙØ³Ùر.":"Comprehensive travel insurance covering medical emergencie
1333s, cancellations, and lost luggage for peace of mind."},{icon:ji,title:t==="ar"?"خدÙ
ات Ø§ÙØªØ£Ø´Ùرات":"Visa Services",desc:t==="ar"?"ÙØ³Ø§Ø¹Ø¯Ù ÙÙ Ø§ÙØØµÙ٠عÙÙ ØªØ£Ø´ÙØ±Ø§Øª جÙ
ÙØ¹ Ø§ÙØ¯Ù٠بسرعة ÙÙÙØ§Ø¡Ø©. خبرة ÙØ§Ø³Ø¹Ø© ÙÙ Ù
ØªØ·ÙØ¨Ø§Øª Ø§ÙØ³Ùارات اÙÙ
ختÙÙØ©.":"We help you obtain visas for all countries quickly and efficiently. Extensive experience with different embassy requirements."},{icon:Ure,title:t==="ar"?"Ø³ÙØ§ØØ© Ø§ÙØ£Ø¹Ù
اÙ":"Business Travel",desc:t==="ar"?"خدÙ
ات Ù
تخصصة ÙØ±Ø¬Ø§Ù Ø§ÙØ£Ø¹Ù
ا٠تشÙ
Ù ØØ¬Ùزات اÙÙ
ؤتÙ
رات ÙØ§ÙÙØ¹Ø§ÙÙØ§Øª ÙØ§ÙÙÙÙ Ø§ÙØ®Ø§Øµ.":"Specialized services for business travelers including conference bookings, events, and private transportation."},{icon:aie,title:t==="ar"?"Ø§ÙØ³ÙØ§ØØ© Ø§ÙØ¹ÙØ§Ø¬ÙØ©":"Medical Tourism",desc:t==="ar"?"ØªÙØ³Ù٠رØÙات Ø§ÙØ¹Ùاج ÙÙ Ø£ÙØ¶Ù اÙÙ
ستشÙÙØ§Øª ÙØ§ÙÙ
Ø±Ø§ÙØ² Ø§ÙØ·Ø¨ÙØ© Ù٠ترÙÙØ§ ÙØ£ÙØ±ÙØ¨Ø§.":"Coordinating treatment trips to the best hospitals and medical centers in Turkey and Europe."},{icon:Vre,title:t==="ar"?"ØªØ£Ø¬ÙØ± Ø§ÙØ³Ùارات":"Car Rental",desc:t==="ar"?"خدÙ
Ø© ØªØ£Ø¬ÙØ± Ø³ÙØ§Ø±Ø§Øª Ù٠جÙ
ÙØ¹ اÙÙØ¬Ùات Ù
ع Ø®ÙØ§Ø±Ø§Øª Ù
تÙÙØ¹Ø© ØªÙØ§Ø³Ø¨ Ø§ØØªÙاجات٠ÙÙ
ÙØ²Ø§ÙÙØªÙ.":"Car rental service at all destinations with various options to suit your needs and budget."}];return s.jsxs("div",{"data-loc":"client/src/pages/Services.tsx:73",className:"min-h-screen",children:[s.jsx(io,{"data-loc":"client/src/pages/Services.tsx:74"}),s.jsx("section",{"data-loc":"client/src/pages/Services.tsx:77",className:"pt-32 pb-20 section-mist",children:s.jsxs("div",{"data-loc":"client/src/pages/Services.tsx:78",className:"container",children:[s.jsx("p",{"data-loc":"client/src/pages/Services.tsx:79",className:"text-sm uppercase tracking-[0.2em] text-[#C9A961] font-semibold mb-3",children:t==="ar"?"Ù
ا ÙÙØ¯Ù
Ù":"What We Offer"}),s.jsx("h1",{"data-loc":"client/src/pages/Services.tsx:82",className:"font-display font-bold text-5xl md:text-6xl text-foreground mb-4",children:e("services.title")}),s.jsx("p",{"data-loc":"client/src/pages/Services.tsx:85",className:"text-muted-foreground text-lg max-w-2xl",children:e("services.subtitle")})]})}),s.jsx("section",{"data-loc":"client/src/pages/Services.tsx:92",className:"section-spacing",children:s.jsx("div",{"data-loc":"client/src/pages/Services.tsx:93",className:"container",children:s.jsx("div",{"data-loc":"client/src/pages/Services.tsx:94",className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6",children:n.map(a=>s.jsxs("div",{"data-loc":"client/src/pages/Services.tsx:96",className:"ocean-card rounded-lg p-8 group",children:[s.jsx("div",{"data-loc":"client/src/pages/Services.tsx:97",className:"w-14 h-14 rounded-full bg-[#C9A961]/10 flex items-center justify-center mb-5 group-hover:bg-[#C9A961]/20 transition-colors",children:s.jsx(a.icon,{"data-loc":"client/src/pages/Services.tsx:98",className:"w-6 h-6 text-[#C9A961]"})}),s.jsx("h3",{"data-loc":"client/src/pages/Services.tsx:100",className:"font-semibold text-lg text-foreground mb-3",children:a.title}),s.jsx("p",{"data-loc":"client/src/pages/Services.tsx:101",className:"text-sm text-muted-foreground leading-relaxed",children:a.desc})]},a.title))})})}),s.jsx("section",{"data-loc":"client/src/pages/Services.tsx:109",className:"py-20 section-ocean",children:s.jsxs("div",{"data-loc":"client/src/pages/Services.tsx:110",className:"container text-center",children:[s.jsx("h2",{"data-loc":"client/src/pages/Services.tsx:111",className:"font-display font-bold text-3xl md:text-4xl text-white mb-4",children:t==="ar"?"ÙÙ ØªØØªØ§Ø¬ خدÙ
Ø© Ù
خصصةØ":"Need a Custom Service?"}),s.jsx("p",{"data-loc":"client/src/pages/Services.tsx:114",className:"text-white/60 text-lg mb-8 max-w-lg mx-auto",children:t==="ar"?"ØªÙØ§ØµÙ Ù
Ø¹ÙØ§ ÙØ³ÙصÙ
Ù
Ù٠خدÙ
Ø© ØªÙØ§Ø³Ø¨ Ø§ØØªÙØ§Ø¬Ø§ØªÙ Ø¨Ø§ÙØ¶Ø¨Ø·":"Contact us and we'll design a service that fits your exact needs"}),s.jsxs("a",{"data-loc":"client/src/pages/Services.tsx:117",href:"https://wa.me/962787789915",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-8 py-4 rounded-full bg-[#C9A961] text-white font-semibold hover:bg-[#9A7209] transition-colors",children:[t==="ar"?"ØªÙØ§ØµÙ Ù
Ø¹ÙØ§":"Contact Us",s.jsx(dr,{"data-loc":"client/src/pages/Services.tsx:124",className:"w-4 h-4"})]})]})}),s.jsx(oo,{"data-loc":"client/src/pages/Services.tsx:129"})]})}const Gxe="https://d2xsxph8kpxj0f.cloudfront.net/310519663086127995/8XS8EAUNLJkfTwgiQZ76q3/hero-main-D7VodBF
1333BLZSNzTxFaBTPva.webp";function Jxe(){const{t:e,lang:t}=zs(),n=[{icon:FU,title:t==="ar"?"Ø§ÙØ´ØºÙ":"Passion",desc:t==="ar"?"ÙØØ¨ Ù
ا ÙÙØ¹Ù ÙÙØ³Ø¹Ù دائÙ
Ø§Ù ÙØªÙدÙÙ
Ø§ÙØ£ÙضÙ":"We love what we do and always strive to deliver the best"},{icon:jie,title:t==="ar"?"Ø§ÙØ§ØØªØ±Ø§ÙÙØ©":"Professionalism",desc:t==="ar"?"Ù
عاÙÙØ± عاÙÙØ© ÙÙ ÙÙ ØªÙØµÙÙ Ù
٠خدÙ
Ø§ØªÙØ§":"High standards in every detail of our services"},{icon:Dl,title:t==="ar"?"Ø§ÙØ¹Ù
Ù٠أÙÙØ§Ù":"Client First",desc:t==="ar"?"رضا Ø§ÙØ¹Ù
ÙÙ Ù٠أÙÙÙÙØªÙا اÙÙØµÙÙ":"Client satisfaction is our top priority"},{icon:Ek,title:t==="ar"?"Ø§ÙØ§Ø¨ØªÙار":"Innovation",desc:t==="ar"?"ÙØ¨ØªÙر ØÙÙÙØ§Ù Ø³ÙØ§ØÙØ© ÙØ±Ùدة ÙÙ
Ù
ÙØ²Ø©":"We create unique and distinctive travel solutions"}],a=[{year:"01",event:t==="ar"?"Ø§ÙØªØ´Ø§Ù Ø§ÙØ®Ø¯Ù
ات ÙØ§ÙبراÙ
ج":"Discover services and programmes"},{year:"02",event:t==="ar"?"Ø·ÙØ¨ ÙØ§Ø¶Ø ÙØªÙاصÙÙ Ù
ÙØØ¯Ø©":"Create a clear request with unified details"},{year:"03",event:t==="ar"?"Ù
تابعة Ø§ÙØØ¬Ø² ÙØ§ÙÙ
Ø³ØªÙØ¯Ø§Øª":"Follow bookings and documents"},{year:"04",event:t==="ar"?"تشغÙÙ Ù
ÙØ¸Ù
ÙÙØ±ÙÙ Ø§ÙØ¹Ù
Ù":"Operate through an organized team workspace"}];return s.jsxs("div",{"data-loc":"client/src/pages/About.tsx:30",className:"min-h-screen",children:[s.jsx(io,{"data-loc":"client/src/pages/About.tsx:31"}),s.jsx("section",{"data-loc":"client/src/pages/About.tsx:34",className:"relative pt-32 pb-20 section-mist",children:s.jsxs("div",{"data-loc":"client/src/pages/About.tsx:35",className:"container",children:[s.jsx("p",{"data-loc":"client/src/pages/About.tsx:36",className:"text-sm uppercase tracking-[0.2em] text-[#C9A961] font-semibold mb-3",children:t==="ar"?"ÙØµØªÙا":"Our Story"}),s.jsx("h1",{"data-loc":"client/src/pages/About.tsx:39",className:"font-display font-bold text-5xl md:text-6xl text-foreground mb-4",children:e("about.title")}),s.jsx("p",{"data-loc":"client/src/pages/About.tsx:42",className:"text-muted-foreground text-lg max-w-2xl",children:e("about.subtitle")})]})}),s.jsx("section",{"data-loc":"client/src/pages/About.tsx:49",className:"section-spacing",children:s.jsx("div",{"data-loc":"client/src/pages/About.tsx:50",className:"container",children:s.jsxs("div",{"data-loc":"client/src/pages/About.tsx:51",className:"grid lg:grid-cols-2 gap-16 items-center",children:[s.jsxs("div",{"data-loc":"client/src/pages/About.tsx:52",children:[s.jsx("h2",{"data-loc":"client/src/pages/About.tsx:53",className:"font-display font-bold text-3xl md:text-4xl text-foreground mb-6",children:t==="ar"?"Ù
Ù ÙØÙ":"Who We Are"}),s.jsxs("div",{"data-loc":"client/src/pages/About.tsx:56",className:"space-y-4 text-muted-foreground leading-relaxed",children:[s.jsx("p",{"data-loc":"client/src/pages/About.tsx:57",children:t==="ar"?"IBRIX ÙÙ ÙÙÙØ© Ù
ÙØØ¯Ø© ÙØªØ¬Ø±Ø¨Ø© خدÙ
ات Ø§ÙØ³Ùر ÙØ§ÙØØ¬Ùزات ÙØ§ÙتشغÙÙØ صÙ
Ù
ت ÙØªØ¨Ù٠اÙÙ
عÙÙÙ
ات ÙØ§ÙØ®Ø·ÙØ§Øª ÙØ§Ø¶ØØ© ÙÙ ÙÙ Ù
رØÙØ©.":"IBRIX is a unified identity for travel services, bookings, and operations, designed to keep information and next steps clear at every stage."}),s.jsx("p",{"data-loc":"client/src/pages/About.tsx:63",children:t==="ar"?"تدعÙ
اÙÙ
ÙØµØ© Ø§Ø³ØªÙØ´Ø§Ù Ø§ÙØ¨Ø±Ø§Ù
ج ÙØ·Ùبات Ø§ÙØ®Ø¯Ù
ات ÙØ§ÙØØ¬Ùزات ÙØ§ÙÙ
Ø³ØªÙØ¯Ø§ØªØ Ù
ع ÙØ§Ø¬ÙØ© Ø¹Ø±Ø¨ÙØ© ÙØ¥ÙجÙÙØ²ÙØ© ÙÙ
Ø³Ø§ØØ§Øª عÙ
Ù Ù
خصصة ÙÙÙØ±ÙÙ.":"The platform supports programme discovery, service requests, bookings, and documents through Arabic and English interfaces and dedicated team workspaces."}),s.jsx("p",{"data-loc":"client/src/pages/About.tsx:69",children:t==="ar"?"ÙÙØªØ²Ù
Ø¨Ø¥Ø¸ÙØ§Ø± Ù
ا ÙÙ Ù
Ø¤ÙØ¯ ÙÙØ·Ø ÙØÙ
Ø§ÙØ© Ø§ÙØ¨ÙØ§ÙØ§Øª Ø§ÙØªØ´ØºÙÙÙØ©Ø ÙØªÙØ¶ÙØ Ø§ÙØ®Ø·ÙØ© Ø§ÙØªØ§ÙÙØ© ÙÙØ¹Ù
ÙÙ ÙØ§ÙÙØ±ÙÙ Ù
٠دÙÙ ÙØ¹Ùد ØºÙØ± Ù
ÙØ«ÙØ©.":"We focus on showing confirmed information, protecting operational data, and making the next step clear to customers and teams without unsupported promises."})]}),s.jsxs("div",{"data-loc":"client/src/pages/About.tsx:76",className:"grid grid-cols-3 gap-6 mt-8",children:[s.jsxs("div",{"data-loc":"client/src/pages/About.tsx:77",className:"text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/About.tsx:78",className:"font-display font-bold text-3xl text-[#C9A961]",children:"AR/EN"}),s.jsx("div",{"data-loc":"client/src/pages/About.tsx:79",className:"text-xs text-muted-foreground mt-1",children:t==="ar"?"تجربة Ø«ÙØ§Ø¦ÙØ© اÙÙØºØ©":"Bilingual experience"})]}),s.jsxs("div",{"data-loc":"client/src/pages/About.tsx:81",className:"text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/About.tsx:82",className:"font-display font-bold text-3xl text-[#C9A961]",children:"ONE"}),s.jsx("div",{"data-loc":"client/src/pages/About.tsx:83",className:"text-xs text-muted-foreground mt-1",children:t==="ar"?"ÙÙÙØ© ÙØ§ØØ¯Ø©":"One identity"})]}),s.jsxs("div",{"data-loc":"client/src/pages/About.tsx:85",className:"text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/About.tsx:86",className:"font-display font-bold text-3xl text-[#C9A961]",children:"CLEAR"}),s.jsx("div",{"data-loc":"client/src/pages/About.tsx:87",className:"text-xs text-muted-foreground mt-1",children:t==="ar"?"Ø®Ø·ÙØ§Øª ÙØ§Ø¶ØØ©":"Clear steps"})]})]})]}),s.jsx("div",{"data-loc":"client/src/pages/About.tsx:91",className:"relative",children:s.jsx("img",{"data-loc":"client/src/pages/About.tsx:92",src:Gxe,alt:"IBRIX",className:"rounded-lg shadow-2xl w-full aspect-[4/3] object-cover"})})]})})}),s.jsx("section",{"data-loc":"client/src/pages/About.tsx:103",className:"section-spacing section-mist",children:s.jsxs("div",{"data-loc":"client/src/pages/About.tsx:104",className:"container",children:[s.jsxs("div",{"data-loc":"client/src/pages/About.tsx:105",className:"text-center mb-16",children:[s.jsx("p",{"data-loc":"client/src/pages/About.tsx:106",className:"text-sm uppercase tracking-[0.2em] text-[#C9A961] font-semibold mb-3",children:t==="ar"?"ÙÙÙ
ÙØ§":"Our Values"}),s.jsx("h2",{"data-loc":"client/src/pages/About.tsx:109",className:"font-display font-bold text-4xl text-foreground",children:t==="ar"?"Ù
ا ÙÙ
ÙØ²Ùا":"What Sets Us Apart"})]}),s.jsx("div",{"data-loc":"client/src/pages/About.tsx:113",className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6",children:n.map(r=>s.jsxs("div",{"data-loc":"client/src/pages/About.tsx:115",className:"ocean-card rounded-lg p-8 text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/About.tsx:116",className:"w-14 h-14 roun
1333ded-full bg-[#C9A961]/10 flex items-center justify-center mx-auto mb-5",children:s.jsx(r.icon,{"data-loc":"client/src/pages/About.tsx:117",className:"w-6 h-6 text-[#C9A961]"})}),s.jsx("h3",{"data-loc":"client/src/pages/About.tsx:119",className:"font-semibold text-lg text-foreground mb-2",children:r.title}),s.jsx("p",{"data-loc":"client/src/pages/About.tsx:120",className:"text-sm text-muted-foreground",children:r.desc})]},r.title))})]})}),s.jsx("section",{"data-loc":"client/src/pages/About.tsx:128",className:"section-spacing",children:s.jsxs("div",{"data-loc":"client/src/pages/About.tsx:129",className:"container max-w-3xl",children:[s.jsxs("div",{"data-loc":"client/src/pages/About.tsx:130",className:"text-center mb-16",children:[s.jsx("p",{"data-loc":"client/src/pages/About.tsx:131",className:"text-sm uppercase tracking-[0.2em] text-[#C9A961] font-semibold mb-3",children:t==="ar"?"Ù Ø³ÙØ±ØªÙا":"Our Journey"}),s.jsx("h2",{"data-loc":"client/src/pages/About.tsx:134",className:"font-display font-bold text-4xl text-foreground",children:t==="ar"?"Ù ØØ·Ø§Øª بارزة":"Key Milestones"})]}),s.jsx("div",{"data-loc":"client/src/pages/About.tsx:138",className:"space-y-8",children:a.map((r,i)=>s.jsxs("div",{"data-loc":"client/src/pages/About.tsx:140",className:"flex items-center gap-6",children:[s.jsx("div",{"data-loc":"client/src/pages/About.tsx:141",className:"w-20 shrink-0 text-end",children:s.jsx("span",{"data-loc":"client/src/pages/About.tsx:142",className:"font-display font-bold text-2xl text-[#C9A961]",children:r.year})}),s.jsx("div",{"data-loc":"client/src/pages/About.tsx:144",className:"w-3 h-3 rounded-full bg-[#C9A961] shrink-0 relative",children:i<a.length-1&&s.jsx("div",{"data-loc":"client/src/pages/About.tsx:146",className:"absolute top-3 left-1/2 -translate-x-1/2 w-[1px] h-12 bg-[#C9A961]/20"})}),s.jsx("div",{"data-loc":"client/src/pages/About.tsx:149",className:"flex-1 panel-surface rounded-lg p-4 shadow-sm border border-border/50",children:s.jsx("p",{"data-loc":"client/src/pages/About.tsx:150",className:"text-foreground font-medium",children:r.event})})]},r.year))})]})}),s.jsx("section",{"data-loc":"client/src/pages/About.tsx:159",className:"py-16 section-ocean",children:s.jsxs("div",{"data-loc":"client/src/pages/About.tsx:160",className:"container text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/About.tsx:161",className:"flex items-center justify-center gap-3 mb-4",children:s.jsx(Ek,{"data-loc":"client/src/pages/About.tsx:161",className:"w-6 h-6 text-[#C9A961]"})}),s.jsx("h3",{"data-loc":"client/src/pages/About.tsx:162",className:"font-display font-bold text-2xl text-white mb-3",children:t==="ar"?"٠ص٠٠ة ÙØªØ¨ÙÙ ÙØ§Ø¶ØØ©":"Designed for clarity"}),s.jsx("p",{"data-loc":"client/src/pages/About.tsx:165",className:"text-white/60 max-w-lg mx-auto",children:t==="ar"?"IBRIX تج٠ع ÙØ§Ø¬Ùات Ø§ÙØ¹Ù ÙÙ ÙØ§ÙÙØ±Ù٠ض٠٠تجربة Ù ÙØØ¯Ø© ØªØØ§Ùظ عÙÙ ÙØ¶ÙØ Ø§ÙØ·Ùبات ÙØ§ÙØØ¬Ùزات ÙØ§ÙÙ Ø³ØªÙØ¯Ø§Øª.":"IBRIX brings customer and team interfaces together in one experience that keeps requests, bookings, and documents clear."})]})}),s.jsx(oo,{"data-loc":"client/src/pages/About.tsx:174"})]})}const Wxe={ar:{submitting:"Ø¬Ø§Ø±Ù Ø¥Ø±Ø³Ø§Ù Ø±Ø³Ø§ÙØªÙØ ÙØ±Ø¬Ù Ø§ÙØ§Ùتظارâ¦",success:"ØªÙ Ø¥Ø±Ø³Ø§Ù Ø±Ø³Ø§ÙØªÙ Ø¨ÙØ¬Ø§Ø. Ø³ÙØªÙØ§ØµÙ Ù Ø¹Ù ÙØ±ÙباÙ.",error:"ØªØ¹Ø°ÙØ± Ø¥Ø±Ø³Ø§Ù Ø§ÙØ±Ø³Ø§ÙØ© ØØ§ÙÙØ§Ù. ÙÙ ÙÙ٠اÙ٠تابعة ٠باشرة عبر ÙØ§ØªØ³Ø§Ø¨."},en:{submitting:"Sending your message, please waitâ¦",success:"Your message was sent successfully. We'll contact you shortly.",error:"We couldn't send your message right now. You can continue on WhatsApp."}};function Yxe(e,t){return e==="idle"?null:{text:Wxe[t][e],role:e==="error"?"alert":"status",tone:e==="submitting"?"progress":e}}function Xxe(e){return e!=="submitting"}function Qxe(){const{t:e,lang:t}=zs(),[n,a]=k.useState({name:"",email:"",phone:"",subject:"",message:""}),r=Pe.inquiries.submit.useMutation(),[i,o]=k.useState("idle"),[c,l]=k.useState(null),d=k.useRef(!1),m=Yxe(i,t),h=async f=>{if(f.preventDefault(),d.current||!Xxe(i)||r.isPending)return;d.current=!0,o("submitting");const b=encodeURIComponent(`${t==="ar"?"Ù Ø±ØØ¨Ø§ÙØ Ø£ÙØ§":"Hello, I'm"} ${n.name} 1334${t==="ar"?"اÙÙ ÙØ¶Ùع:":"Subject:"} ${n.subject} 1335${t==="ar"?"Ø§ÙØ±Ø³Ø§ÙØ©:":"Message:"} ${n.message} 1336${t==="ar"?"اÙÙØ§ØªÙ:":"Phone:"} ${n.phone} 1337${t==="ar"?"Ø§ÙØ¨Ø±Ùد:":"Email:"} ${n.email}`);try{const y=await r.mutateAsync({name:n.name,email:n.email||"",phone:n.phone,message:`[${n.subject}] ${n.message}`});l(y.reference),o("success"),Le.success(t==="ar"?"ØªÙ Ø§Ø³ØªÙØ§Ù Ø±Ø³Ø§ÙØªÙ! Ø³ÙØªÙØ§ØµÙ Ù Ø¹Ù ÙØ±ÙباÙ":"Your message was received! We'll be in touch shortly."),a({name:"",email:"",ph
1337one:"",subject:"",message:""})}catch{o("error"),Le.error(t==="ar"?"ØªØ¹Ø°ÙØ± ØÙظ Ø§ÙØ±Ø³Ø§ÙØ©Ø Ø³ÙØÙÙÙ٠إÙÙ ÙØ§ØªØ³Ø§Ø¨":"Could not save your message â opening WhatsApp instead.")}finally{d.current=!1}window.open(`https://wa.me/962787789915?text=${b}`,"_blank")},x=[{icon:I0,label:t==="ar"?"اÙÙØ§ØªÙ":"Phone",value:"0787789915",href:"tel:+962787789915",ltr:!0},{icon:Pd,label:t==="ar"?"Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ":"Email",value:Oa.email,href:`mailto:${Oa.email}`},{icon:uh,label:t==="ar"?"اÙÙ
ÙÙØ¹ Ø§ÙØ¥ÙÙØªØ±ÙÙÙ":"Website",value:"www.ibrix.digital",href:Oa.url},{icon:Pl,label:t==="ar"?"اÙÙ
تابعة":"Support",value:t==="ar"?"Ù
تابعة Ø§ÙØ·Ùبات ÙØ§ÙØØ¬Ùزات عبر اÙÙÙÙØ§Øª اÙÙ
عتÙ
دة":"Request and booking follow-up through approved channels",href:"#"}];return s.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:87",className:"min-h-screen",children:[s.jsx(io,{"data-loc":"client/src/pages/Contact.tsx:88"}),s.jsx("section",{"data-loc":"client/src/pages/Contact.tsx:91",className:"pt-32 pb-20 section-mist",children:s.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:92",className:"container",children:[s.jsx("p",{"data-loc":"client/src/pages/Contact.tsx:93",className:"text-sm uppercase tracking-[0.2em] text-[#C9A961] font-semibold mb-3",children:t==="ar"?"ÙØÙ ÙÙØ§ ÙÙ
ساعدتÙ":"We're Here to Help"}),s.jsx("h1",{"data-loc":"client/src/pages/Contact.tsx:96",className:"font-display font-bold text-5xl md:text-6xl text-foreground mb-4",children:e("contact.title")}),s.jsx("p",{"data-loc":"client/src/pages/Contact.tsx:99",className:"text-muted-foreground text-lg max-w-2xl",children:e("contact.subtitle")})]})}),s.jsx("section",{"data-loc":"client/src/pages/Contact.tsx:106",className:"section-spacing",children:s.jsx("div",{"data-loc":"client/src/pages/Contact.tsx:107",className:"container",children:s.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:108",className:"grid lg:grid-cols-5 gap-12",children:[s.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:110",className:"lg:col-span-2",children:[s.jsx("h2",{"data-loc":"client/src/pages/Contact.tsx:111",className:"font-display font-bold text-2xl text-foreground mb-6",children:t==="ar"?"Ù
عÙÙÙ
ات Ø§ÙØªÙاصÙ":"Contact Information"}),s.jsx("div",{"data-loc":"client/src/pages/Contact.tsx:114",className:"space-y-6 mb-10",children:x.map(f=>s.jsxs("a",{"data-loc":"client/src/pages/Contact.tsx:116",href:f.href,target:f.href.startsWith("http")?"_blank":void 0,rel:f.href.startsWith("http")?"noopener noreferrer":void 0,className:"flex items-start gap-4 group",children:[s.jsx("div",{"data-loc":"client/src/pages/Contact.tsx:123",className:"w-10 h-10 rounded-full bg-[#C9A961]/10 flex items-center justify-center shrink-0 group-hover:bg-[#C9A961]/20 transition-colors",children:s.jsx(f.icon,{"data-loc":"client/src/pages/Contact.tsx:124",className:"w-4 h-4 text-[#C9A961]"})}),s.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:126",children:[s.jsx("p",{"data-loc":"client/src/pages/Contact.tsx:127",className:"text-xs text-muted-foreground uppercase tracking-wider mb-1",children:f.label}),s.jsx("p",{"data-loc":"client/src/pages/Contact.tsx:128",className:"text-foreground font-medium",dir:f.ltr?"ltr":void 0,style:f.ltr?{unicodeBidi:"plaintext"}:void 0,children:f.value})]})]},f.label))}),s.jsxs("a",{"data-loc":"client/src/pages/Contact.tsx:141",href:"https://wa.me/962787789915",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 px-6 py-4 rounded-lg bg-[#25D366]/10 border border-[#25D366]/20 hover:bg-[#25D366]/20 transition-colors",children:[s.jsx(Dd,{"data-loc":"client/src/pages/Contact.tsx:147",className:"w-5 h-5 text-[#25D366]"}),s.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:148",children:[s.jsx("p",{"data-loc":"client/src/pages/Contact.tsx:149",className:"font-semibold text-foreground text-sm",children:t==="ar"?"ØªÙØ§ØµÙ عبر ÙØ§ØªØ³Ø§Ø¨":"Chat on WhatsApp"}),s.jsx("p",{"data-loc":"client/src/pages/Contact.tsx:150",className:"text-xs text-muted-foreground",children:t==="ar"?"رد ÙÙØ±Ù":"Instant reply"})]})]})]}),s.jsx("div",{"data-loc":"client/src/pages/Contact.tsx:156",className:"lg:col-span-3",children:s.jsx("div",{"data-loc":"client/src/pages/Contact.tsx:157",className:"ocean-card relative overflow-hidden rounded-2xl p-8 md:p-10",children:i==="success"?s.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:159",className:"relative py-5 text-center",role:"status","aria-live":"polite",children:[s.jsx("div",{"data-loc":"client/src/pages/Contact.tsx:160",className:"pointer-events-none absolute -end-16 -top-16 h-44 w-44 rounded-full bg-[#C9A961]/20 blur-3xl"}),s.jsx("div",{"data-loc":"client/src/pages/Contact.tsx:161",className:"pointer-events-none absolute -bottom-20 -start-16 h-48 w-48 rounded-full bg-emerald-500/15 blur-3xl"}),s.jsx("div",{"data-loc":"client/src/pages/Contact.tsx:162",className:"relative mx-auto mb-6 flex h-20 w-20 items-center justify-center rounded-full border border-emerald-500/25 bg-emerald-500/15 shadow-[0_14px_42px_rgba(16,185,129,0.18)]",children:s.jsx(ns,{"data-loc":"client/src/pages/Contact.tsx:163",className:"h-10 w-10 text-emerald-600","aria-hidden":"true"})}),s.jsx("p",{"data-loc":"client/src/pages/Contact.tsx:165",className:"text-xs font-bold uppercase tracking-[0.2em] text-emerald-700 dark:text-emerald-300",children:t==="ar"?"تÙ
Ø§ÙØ¥Ø±Ø³Ø§Ù Ø¨ÙØ¬Ø§Ø":"Successfully submitted"}),s.jsx("h2",{"data-loc":"client/src/pages/Contact.tsx:168",className:"mt-2 font-display text-3xl font-bold text-foreground md:text-4xl",children:t==="ar"?"ÙØµÙت Ø±Ø³Ø§ÙØªÙ Ø¥ÙÙ ÙØ±ÙÙ IBRIX":"Your message reached the IBRIX team"}),s.jsx("p",{"data-loc":"client/src/pages/Contact.tsx:171",className:"mx-auto mt-4 max-w-xl text-sm leading-7 text-muted-foreground",children:t==="ar"?"ØÙÙØ¸Øª ØªÙØ§ØµÙÙ Ø±Ø³Ø§ÙØªÙ بأÙ
Ø§Ù ÙØ£Ùرس٠إشعار Ø¥ÙÙ ÙØ±ÙÙ Ø§ÙØØ¬ÙØ²Ø§Øª. Ø³ÙØ±Ø§Ø¬Ø¹ Ø·ÙØ¨Ù ÙÙØªÙاص٠Ù
ع٠عبر اÙÙØ§ØªÙ Ø£Ù Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ.":"Your message was saved securely and the reservations team was notified. We will review your request and contact you by phone or email."}),c&&s.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:177",className:"mx-auto mt-6 max-w-md rounded-2xl border border-[#C9A961]/30 bg-[#C9A961]/10 px-5 py-4","aria-label":t==="ar"?"رÙÙ
Ù
رجع Ø§ÙØ±Ø³Ø§ÙØ©":"Message reference",children:[s.jsx("p",{"data-loc":"client/src/pages/Contact.tsx:178",className:"text-xs font-semibold uppercase tracking-[0.16em] text-muted-foreground",children:t==="ar"?"رÙÙ
اÙÙ
رجع":"Reference number"}),s.jsx("p",{"data-loc":"client/src/pages/Contact.tsx:181",className:"mt-1 font-mono text-lg font-bold tracking-[0.08em] text-foreground",dir:"ltr",children:c}),s.jsx("p",{"data-loc":"client/src/pages/Contact.tsx:182",className:"mt-1 text-xs leading-5 text-muted-foreground",children:t==="ar"?"Ø§ØØªÙظ Ø¨ÙØ°Ø§ Ø§ÙØ±ÙÙ
Ø¹ÙØ¯ اÙÙ
تابعة Ù
ع ÙØ±ÙÙÙØ§.":"Keep this number when following up with our team."})]}),s.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:187",className:"mx-auto mt-7 grid max-w-xl gap-3 text-start sm:grid-cols-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:188",className:"rounded-2xl border border-border/80 bg-background/80 p-4",children:[s.jsx("p",{"data-loc":"client/src/pages/Contact.tsx:189",className:"text-sm font-bold text-foreground",children:t==="ar"?"Ù
ا Ø§ÙØ®Ø·ÙØ© Ø§ÙØªØ§ÙÙØ©Ø":"What happens next?"}),s.jsx("p",{"data-loc":"client/src/pages/Contact.tsx:190",className:"mt-1 text-xs leading-5 text-muted-foreground",children:t==="ar"?"ÙØ±Ø§Ø¬Ø¹ Ù
ستشار Ø§ÙØ³Ùر Ø§ÙØªÙاصÙÙ ÙÙØØ¶ÙØ± Ø§ÙØ±Ø¯ اÙÙ
ÙØ§Ø³Ø¨.":"A travel consultant reviews the details and prepares the right response."})]}),s.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:194",className:"rounded-2xl border border-[#C9A961]/25 bg-[#C9A961]/10 p-4",children:[s.jsx("p",{"data-loc":"client/src/pages/Contact.tsx:195",className:"text-sm font-bold text-foreground",children:t==="ar"?"Ø¨ØØ§Ø¬Ø© Ø¥Ù٠رد ÙÙØ±ÙØ":"Need an immediate reply?"}),s.jsxs("a",{"data-loc":"client/src/pages/Contact.tsx:196",href:"https://wa.me/962787789915",target:"_blank",rel:"noopener noreferrer",className:"mt-1 inline-flex items-center gap-1.5 text-xs font-bold text-[#8F6D29] underline-offset-4 hover:underline",children:[s.jsx(Dd,{"data-loc":"client/src/pages/Contact.tsx:197",className:"h-3.5 w-3.5","aria-hidden":"true"}),t==="ar"?"ØªÙØ§ØµÙ Ù
Ø¹ÙØ§ عبر ÙØ§ØªØ³Ø§Ø¨":"Continue on WhatsApp"]})]})]}),s.jsxs("button",{"data-loc":"client/src/pages/Contact.tsx:202",type:"button",onClick:()=>{l(null),o("idle")},className:"mt-7 inline-flex items-center justify-center gap-2 rounded-full bg-[#C9A961] px-7 py-3 text-sm font-bold text-[#0f1623] transition-transform hover:scale-[0.98] active:scale-[0.96]",children:[s.jsx(Zb,{"data-loc":"client/src/pages/Contact.tsx:210",className:"h-4 w-4","aria-hidden":"true"}),t==="ar"?"Ø¥Ø±Ø³Ø§Ù Ø±Ø³Ø§ÙØ© أخرÙ":"Send another message"]})]}):s.jsxs(s.Fragment,{children:[s.jsx("h2",{"data-loc":"client/src/pages/Contact.tsx:216",className:"font-display font-bold text-2xl text-foreground mb-6",children:t==="ar"?"أرس٠ÙÙØ§ Ø±Ø³Ø§ÙØ©":"Send Us a Message"}),s.jsxs("form",{"data-loc":"client/src/pages/Contact.tsx:219",onSubmit:h,className:"space-y-5","aria-busy":i==="submitting",children:[i==="submitting"&&s.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:221",className:"relative overflow-hidden rounded-2xl border border-[#C9A961]/30 bg-[#C9A961]/10 p-4",role:"status","aria-live":"polite","aria-atomic":"true",children:[s.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:222",className:"flex items-start gap-3",children:[s.jsx("span",{"data-loc":"client/src/pages/Contact.tsx:223",className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-background shadow-sm",children:s.jsx(ft,{"data-loc":"client/src/pages/Contact.tsx:224",className:"h-5 w-5 animate-spin text-[#9A7209]","aria-hidden":"true"})}),s.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:226",children:[s.jsx("p",{"data-loc":"client/src/pages/Contact.tsx:227",className:"text-sm font-bold text-foreground",children:t==="ar"?"Ø¬Ø§Ø±Ù Ø¥Ø±Ø³Ø§Ù Ø±Ø³Ø§ÙØªÙ بأÙ
اÙ":"Sending your message securely"}),s.jsx("p",{"data-loc":"client/src/pages/Contact.tsx:228",className:"mt-1 text-xs leading-5 text-muted-foreground",children:t==="ar"?"ÙØÙØ¸ Ø§ÙØªÙاصÙÙ ÙÙÙØ´Ø¹Ø± ÙØ±ÙÙ Ø§ÙØØ¬ÙØ²Ø§Øª Ø§ÙØ¢Ù. ÙØ±Ø¬Ù عدÙ
Ø¥ØºÙØ§Ù Ø§ÙØµÙØØ©.":"We are saving the details and notifying the reservations team. Please keep this page open."})]})]}),s.jsx("div",{"data-loc":"client/src/pages/Contact.tsx:233",className:"mt-4 h-1.5 overflow-hidden rounded-full bg-background/80",children:s.jsx("div",{"data-loc":"client/src/pages/Contact.tsx:234",className:"h-full w-2/3 animate-pulse rounded-full bg-gradient-to-r from-[#9A7209] via-[#C9A961] to-[#E6D39A]"})})]}),s.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:238",className:"grid md:grid-cols-2 gap-5",children:[s.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:239",children:[s.jsx("label",{"data-loc":"client/src/pages/Contact.tsx:240",className:"text-sm font-medium text-foreground mb-2 block",children:t==="ar"?"Ø§ÙØ§Ø³Ù
":"Name"}),s.jsx("input",{"data-loc":"client/src/pages/Contact.tsx:243",type:"text",required:!0,value:n.name,onChange:f=>a({...n,name:f.target.value}),className:"w-full px-4 py-3 rounded-lg border border-border bg-background text-foreground text-sm focus:ring-2 focus:ring-[#C9A961]/30 focus:border-[#C9A961] outline-none transition-all",placeholder:t==="ar"?"اسÙ
٠اÙÙØ§Ù
Ù":"Your full name"})]}),s.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:252",children:[s.jsx("label",{"data-loc":"client/src/pages/Contact.tsx:253",className:"text-sm font-medium text-foreground mb-2 block",children:t==="ar"?"اÙÙØ§ØªÙ":"Phone"}),s.jsx("input",{"data-loc":"client/src/pages/Contact.tsx:256",type:"tel",required:!0,value:n.phone,onChange:f=>a({...n,phone:f.target.value}),className:"w-full px-4 py-3 rounded-lg border border-border bg-background text-foreground text-sm focus:ring-2 focus:ring-[#C9A961]/30 focus:border-[#C9A961] outline-none transition-all",placeholder:t==="ar"?"رÙÙ
ÙØ§ØªÙÙ":"Your phone number"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:266",children:[s.jsx("label",{"data-loc":"client/src/pages/Contact.tsx:267",className:"text-sm font-medium text-foreground mb-2 block",children:t==="ar"?"Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ":"Email"}),s.jsx("input",{"data-loc":"client/src/pages/Contact.tsx:270",type:"email",value:n.email,onChange:f=>a({...n,email:f.target.value}),className:"w-full px-4 py-3 rounded-lg border border-border bg-background text-foreground text-sm focus:ring-2 focus:ring-[#C9A961]/30 focus:border-[#C9A961] outline-none transition-all",placeholder:t==="ar"?"Ø¨Ø±ÙØ¯Ù Ø§ÙØ¥ÙÙØªØ±ÙÙÙ":"Your email address"})]}),s.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:278",children:[s.jsx("label",{"data-loc":"client/src/pages/Contact.tsx:279",className:"text-sm font-medium text-foreground mb-2 block",children:t==="ar"?"اÙÙ
ÙØ¶Ùع":"Subject"}),s.jsx("input",{"data-loc":"client/src/pages/Contact.tsx:282",type:"text",required:!0,value:n.subject,onChange:f=>a({...n,subject:f.target.value}),className:"w-full px-4 py-3 rounded-lg border border-border bg-background text-foreground text-sm focus:ring-2 focus:ring-[#C9A961]/30 focus:border-[#C9A961] outline-none transition-all",placeholder:t==="ar"?"Ù
ÙØ¶Ùع Ø§ÙØ±Ø³Ø§ÙØ©":"Message subject"})]}),s.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:291",children:[s.jsx("label",{"data-loc":"client/src/pages/Contact.tsx:292",className:"text-sm font-medium text-foreground mb-2 block",children:t==="ar"?"Ø§ÙØ±Ø³Ø§ÙØ©":"Message"}),s.jsx("textarea",{"data-loc":"client/src/pages/Contact.tsx:295",required:!0,rows:5,value:n.message,onChange:f=>a({...n,message:f.target.value}),className:"w-full px-4 py-3 rounded-lg border border-border bg-background text-foreground text-sm focus:ring-2 focus:ring-[#C9A961]/30 focus:border-[#C9A961] outline-none transition-all resize-none",placeholder:t==="ar"?"Ø§ÙØªØ¨ Ø±Ø³Ø§ÙØªÙ ÙÙØ§...":"Write your message here..."})]}),s.jsxs("button",{"data-loc":"client/src/pages/Contact.tsx:304",type:"submit",disabled:r.isPending||i==="submitting",className:"inline-flex min-w-44 items-center justify-center gap-2 px-8 py-3.5 rounded-full bg-[#C9A961] text-white font-semibold text-sm hover:bg-[#9A7209] transition-colors disabled:cursor-wait disabled:opacity-70",children:[i==="submitting"?s.jsx(ft,{"data-loc":"client/src/pages/Contact.tsx:310",className:"w-4 h-4 animate-spin","aria-hidden":"true"}):s.jsx(Zb,{"data-loc":"client/src/pages/Contact.tsx:312",className:"w-4 h-4","aria-hidden":"true"}),i==="submitting"?t==="ar"?"Ø¬Ø§Ø±Ù Ø§ÙØ¥Ø±Ø³Ø§Ùâ¦":"Sendingâ¦":t==="ar"?"Ø¥Ø±Ø³Ø§Ù Ø§ÙØ±Ø³Ø§ÙØ©":"Send Message"]}),m&&i==="error"&&s.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:323",role:m.role,"aria-live":m.role==="alert"?"assertive":"polite","aria-atomic":"true",className:`flex items-start gap-3 rounded-lg border px-4 py-3 text-sm font-medium ${m.tone==="success"?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":m.tone==="error"?"border-red-500/30 bg-red-500/10 text-red-700 dark:text-red-300":"border-[#C9A961]/35 bg-[#C9A961]/10 text-foreground"}`,children:[m.tone==="success"?s.jsx(ns,{"data-loc":"client/src/pages/Contact.tsx:336",className:"mt-0.5 h-5 w-5 shrink-0","aria-hidden":"true"}):m.tone==="error"?s.jsx(zi,{"data-loc":"client/src/pages/Contact.tsx:338",className:"mt-0.5 h-5 w-5 shrink-0","aria-hidden":"true"}):s.jsx(ft,{"data-loc":"client/src/pages/Contact.tsx:340",className:"mt-0.5 h-5 w-5 shrink-0 animate-spin","aria-hidden":"true"}),s.jsx("p",{"data-loc":"client/src/pages/Contact.tsx:342",children:m.text})]})]})]})})})]})})}),s.jsx("section",{"data-loc":"client/src/pages/Contact.tsx:354",className:"relative overflow-hidden border-y border-border bg-muted/45 py-16",children:s.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:355",className:"container flex flex-col items-center gap-5 text-center",children:[s.jsx("img",{"data-loc":"client/src/pages/Contact.tsx:356",
1337src:Oa.logoUrl,alt:"IBRIX",className:"h-20 w-20 rounded-3xl bg-white object-contain shadow-lg"}),s.jsxs("div",{"data-loc":"client/src/pages/Contact.tsx:357",children:[s.jsx("p",{"data-loc":"client/src/pages/Contact.tsx:358",className:"text-xs font-bold uppercase tracking-[0.2em] text-primary",children:"IBRIX"}),s.jsx("h2",{"data-loc":"client/src/pages/Contact.tsx:359",className:"mt-2 font-display text-3xl font-bold text-foreground",children:t==="ar"?"ØªÙØ§ØµÙ ÙØ§Ø¶Ø ÙØ¨Ø¯Ø£ Ù Ù ÙÙØ§":"Clear communication starts here"}),s.jsx("p",{"data-loc":"client/src/pages/Contact.tsx:360",className:"mx-auto mt-3 max-w-xl text-sm leading-7 text-muted-foreground",children:t==="ar"?"استخد٠اÙÙÙÙØ§Øª اÙ٠عت٠دة ÙØ¥Ø±Ø³Ø§Ù Ø·ÙØ¨Ù Ù٠تابعة ØªÙØ§ØµÙÙ٠٠ع ÙØ±ÙÙ IBRIX.":"Use the approved channels to submit your request and follow its details with the IBRIX team."})]}),s.jsxs("a",{"data-loc":"client/src/pages/Contact.tsx:362",href:Oa.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 rounded-full bg-primary px-5 py-2.5 text-sm font-semibold text-primary-foreground shadow-lg transition-transform hover:scale-[0.98] active:scale-[0.96]",children:[s.jsx(uh,{"data-loc":"client/src/pages/Contact.tsx:362",className:"h-4 w-4"}),"www.ibrix.digital"]})]})}),s.jsx(oo,{"data-loc":"client/src/pages/Contact.tsx:366"})]})}const Kxe={asia:{ar:"Ø¢Ø³ÙØ§",en:"Asia"},azerbaijan:{ar:"Ø£Ø°Ø±Ø¨ÙØ¬Ø§Ù",en:"Azerbaijan"},egypt:{ar:"٠صر",en:"Egypt"},georgia:{ar:"Ø¬ÙØ±Ø¬Ùا",en:"Georgia"},kosovo:{ar:"ÙÙØ³ÙÙÙ",en:"Kosovo"},mix:{ar:"٠تÙÙØ¹",en:"Mix"},turkey:{ar:"ترÙÙØ§",en:"Turkey"},umrah:{ar:"Ø§ÙØ¹Ù رة",en:"Umrah"}};function bN(e,t,n){return(e==="ar"?t||n:n||t)||""}function Zxe(e,t){const n=`${e.price||0} ${e.currency||"JOD"}`.trim(),a=e.durationDays||0,r=e.durationNights||0,i=t==="ar"?`${a} Ø£ÙØ§Ù / ${r} ÙÙØ§ÙÙ`:`${a}D / ${r}N`;return{dir:t==="ar"?"rtl":"ltr",title:bN(t,e.titleAr,e.titleEn),city:bN(t,e.cityAr,e.cityEn),summary:bN(t,e.summaryAr,e.summaryEn),category:Kxe[e.category]?.[t]??e.category,priceLabel:n,durationLabel:i,hasImage:!!e.imageUrl,imageUrl:e.imageUrl||"",featured:!!e.featured,hidden:!e.active}}const v7=e=>{if(e!=null){if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e)}},hl=e=>{if(typeof e=="number"&&Number.isFinite(e))return e;if(typeof e=="string"&&e.trim()!==""&&Number.isFinite(Number(e)))return Number(e)},Ry=e=>{if(typeof e=="boolean")return e;if(typeof e=="string"){const t=e.trim().toLowerCase();if(["true","1","yes","ÙØ¹Ù "].includes(t))return!0;if(["false","0","no","ÙØ§"].includes(t))return!1}};function e1e(e){if(!e)return;let t=String(e).trim();const n=t.match(/```(?:json)?\s*([\s\S]*?)```/i);n&&n[1]&&(t=n[1].trim());try{return JSON.parse(t)}catch{}const a=t.indexOf("{"),r=t.indexOf("[");let i=-1;if(a===-1?i=r:r===-1?i=a:i=Math.min(a,r),i===-1)return;const o=t.slice(i);for(let l=o.length;l>1;l--){const d=o.slice(0,l),m=d[d.length-1];if(!(m!=="}"&&m!=="]"))try{return JSON.parse(d)}catch{}}const c=t1e(o);if(c)try{return JSON.parse(c)}catch{}}function t1e(e){let t=!1,n=!1,a=-1;for(let o=0;o<e.length;o++){const c=e[o];if(t){n?n=!1:c==="\\"?n=!0:c==='"'&&(t=!1);continue}c==='"'&&(t=!0),!t&&(c==="}"||c==="]"||c==='"')&&(a=o+1)}if(a<=0)return;let r=e.slice(0,a);t=!1,n=!1;const i=[];for(let o=0;o<r.length;o++){const c=r[o];if(t){n?n=!1:c==="\\"?n=!0:c==='"'&&(t=!1);continue}c==='"'?t=!0:c==="{"?i.push("}"):c==="["?i.push("]"):(c==="}"||c==="]")&&i.pop()}for(r=r.replace(/,\s*$/,"");i.length;)r+=i.pop();return r}function _1(e,t){if(!Array.isArray(e))return;const n=[];for(const a of e){if(a==null)continue;if(typeof a=="string"||typeof a=="number"){const o={};for(const[c]of t)o[c]=String(a);n.push(o);continue}if(typeof a!="object")continue;const r=a,i={};for(const[o,c]of t)for(const l of c){const d=r[l],m=v7(d);if(m!==void 0){i[o]=m;break}}for(const[o,c]of Object.entries(r))if(i[o]===void 0){const l=v7(c);l!==void 0&&(i[o]=l)}Object.keys(i).length&&n.push(i)}return n}function n1e(e){const t={},n=(...E)=>{for(const D of E){const S=v7(e[D]);if(S!==void 0&&S!=="")return S}};t.slug=n("slug"),t.category=n("category"),t.titleAr=n("titleAr","title_ar","nameAr"),t.titleEn=n("titleEn","title_en","nameEn","title","name"),t.cityAr=n("cityAr","city_ar"),t.cityEn=n("cityEn","city_en","city"),t.summaryAr=n("summaryAr","summary_ar"),t.summaryEn=n("summaryEn","summary_en","summary"),t.descriptionAr=n("descriptionAr","description_ar","descAr"),t.descriptionEn=n("descriptionEn","description_en","descEn","description"),t.imageUrl=n("imageUrl","image_url","image","hero","heroImage"),t.contactPhone=n("contactPhone","contact_phone","phone"),t.currency=n("currency"),t.ticketRoute=n("ticketRoute","ticket_route","flightRoute","flight_route"),t.ticketCurrency=n("ticketCurrency","ticket_currency"),t.ticketPriceSource=n("ticketPriceSource","ticket_price_source","flightPriceSource"),t.ticketPricedAt=n("ticketPricedAt","ticket_priced_at","flightPricedAt"),t.ticketValidUntil=n("ticketValidUntil","ticket_valid_until","flightValidUntil"),t.ticketNotes=n("ticketNotes","ticket_notes","flightNotes");const a=n("priceBasis","price_basis");(a==="per_person"||a==="per_room"||a==="per_package")&&(t.priceBasis=a);const r=Ry(e.ticketIncluded)??Ry(e.ticket_included);r!==void 0&&(t.ticketIncluded=r);const i=hl(e.landPrice)??hl(e.land_price);i!==void 0&&(t.landPrice=i);const o=hl(e.ticketPrice)??hl(e.ticket_price);o!==void 0&&(t.ticketPrice=o);const c=hl(e.price)??hl(e.priceFrom);c!==void 0&&(t.price=c);const l=hl(e.durationDays)??hl(e.days);l!==void 0&&(t.durationDays=l);const d=hl(e.durationNights)??hl(e.nights);d!==void 0&&(t.durationNights=d);const m=hl(e.sortOrder)??hl(e.sort_order);m!==void 0&&(t.sortOrder=m);const h=Ry(e.featured);h!==void 0&&(t.featured=h);const x=Ry(e.active);x!==void 0&&(t.active=x);const f=_1(e.itinerary??e.days,[["dayAr",["dayAr","day_ar"]],["dayEn",["dayEn","day_en","day"]],["titleAr",["titleAr","title_ar"]],["titleEn",["titleEn","title_en","title"]],["descAr",["descAr","desc_ar","descriptionAr"]],["descEn",["descEn","desc_en","descriptionEn","description"]]]);f&&f.length&&(t.itinerary=f);const b=_1(e.highlights,[["ar",["ar","textAr","nameAr"]],["en",["en","textEn","nameEn","text"]]]);b&&b.length&&(t.highlights=b);const y=_1(e.inclusions??e.included,[["ar",["ar","textAr","nameAr"]],["en",["en","textEn","nameEn","text","code"]]]);y&&y.length&&(t.inclusions=y);const w=_1(e.exclusions??e.notIncluded,[["ar",["ar","textAr","nameAr"]],["en",["en","textEn","nameEn","text","code"]]]);w&&w.length&&(t.exclusions=w);const T=_1(e.hotels,[["nameAr",["nameAr","name_ar"]],["nameEn",["nameEn","name_en","name"]],["nightsAr",["nightsAr","nights_ar"]],["nightsEn",["nightsEn","nights_en","nights"]],["ratingStars",["ratingStars","stars","rating"]]]);T&&T.length&&(t.hotels=T);const A=n("pricingMode","pricing_mode");return(A==="package"||A==="per_hotel")&&(t.pricingMode=A),e.packagePricing&&typeof e.packagePricing=="object"&&(t.packagePricing=e.packagePricing,t.pricingMode||(t.pricingMode="package")),e.umrahDetails&&typeof e.umrahDetails=="object"&&(t.umrahDetails=e.umrahDetails),Object.keys(t).forEach(E=>{t[E]===void 0&&delete t[E]}),t}function a1e(e){const t=e1e(e);if(t===void 0)return{ok:!1,patch:{},appliedKeys:[],error:"NO_JSON"};let n;if(Array.isArray(t))n=t.find(i=>i&&typeof i=="object")??void 0;else if(t&&typeof t=="object"){const i=t;n=i.package||i.program||i.data||i}if(!n||typeof n!="object")return{ok:!1,patch:{},appliedKeys:[],error:"NOT_OBJECT"};const a=n1e(n),r=Object.keys(a);return{ok:r.length>0,patch:a,appliedKeys:r,error:r.length?void 0:"EMPTY"}}const s1e={"Ù ":"0","Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9"};function r1e(e){return e.replace(/[Ù -Ù©]/g,t=>s1e[t]??t)}const g2=e=>/[\u0600-\u06FF]/.test(e);function i1e(e){return r1e(e).replace(/\r\n?/g,` 1338`).split(` 1339`).map(t=>t.replace(/\s+$/g,"").trim()).filter(t=>t.length>0)}function o1e(e){const t=e.replace(/^[\sâ¢\-*#>\u2022]+/,""),n=t.match(/^day\s*\.?\s*(\d{1,2})\b\s*[:.\-ââ)]?\s*(.*)$/i);if(n)return{rest:n[2]??""};const a=t.match(/^(?:اÙ)?ÙÙÙ \s*(?:رÙÙ \s*)?(\d{1,2})\s*[:.\-ââ)]?\s*(.*)$/);if(a)return{rest:a[2]??""};const r="Ø§ÙØ£ÙÙ|Ø§ÙØ§ÙÙ|Ø§ÙØ«Ø§ÙÙ|Ø§ÙØ«Ø§ÙØ«|Ø§ÙØ±Ø§Ø¨Ø¹|Ø§ÙØ®Ø§Ù س|Ø§ÙØ³Ø§Ø¯Ø³|Ø§ÙØ³Ø§Ø¨Ø¹|Ø§ÙØ«Ø§Ù Ù|Ø§ÙØªØ§Ø³Ø¹|Ø§ÙØ¹Ø§Ø´Ø±|Ø§ÙØØ§Ø¯Ù Ø¹Ø´Ø±|Ø§ÙØ«Ø§Ù٠عشر|Ø§ÙØ«Ø§ÙØ« عشر|Ø§ÙØ±Ø§Ø¨Ø¹ عشر|Ø§ÙØ®Ø§Ù س عشر",i=t.match(new RegExp(`^(?:اÙ)?ÙÙÙ \\s+(?:${r})(?=\\s|$|[:.\\-ââ)])\\s*[:.\\-ââ)]?\\s*(.*)$`));return i?{rest:i[1]??""}:null}function c1e(e){const t=e.replace(/^[\sâ¢\-*#>\u2022]+/,"").replace(/[:ï¼].*$/,"").trim().toLowerCase(),n=/^(what'?s\s+)?includ(e|es|ed)?$|^inclusions?$|^the program includes$/,a=/^(what'?s\s+)?(not\s+includ(e|es|ed)?|exclud(e|es|ed)?)$|^exclusions?$/;if(n.test(t))return"inc";if(a.test(t))return"exc";const r=e.replace(/[:ï¼].*$/,"").trim();return/^(?:[â¢\-*#>\u2022]\s*)?(?:ÙØ§\s*ÙØ´Ù Ù|ÙØ§\s*ÙØªØ¶Ù Ù|ØºÙØ±\s*Ù Ø´Ù ÙÙ|Ø§ÙØ¨Ø±Ùا٠ج\s+ÙØ§\s+ÙØ´Ù Ù|Ø§ÙØ®Ø¯Ù ات\s+ØºÙØ±\s+اÙÙ Ø´Ù ÙÙØ©|ÙØ§\s+تش٠Ù)/.test(r)?"exc":/^(?:[â¢\-*#>\u2022]\s*)?(?:ÙØ´Ù Ù|ÙØªØ¶Ù Ù|Ø§ÙØ¨Ø±Ùا٠ج\s+ÙØ´Ù Ù|ÙØ´Ù Ù\s+Ø§ÙØ¨Ø±Ùا٠ج|Ø§ÙØ®Ø¯Ù ات\s+اÙÙ Ø´Ù ÙÙØ©|اÙÙ Ø´Ù ÙÙ|تش٠Ù)/.test(r)?"inc":null}function CI(e){const t=e.match(/^\s*(?:[â¢\-*\u2022·âââ¦â£ââ]|\d{1,2}[.)])\s+(.*)$/);return t&&t[1].trim()?t[1].trim():null}function l1e(e,t){const n={}
1339,a=e.trim(),r=t.join(" ").trim();return g2(a)?n.titleAr=a:n.titleEn=a,r&&(g2(r)?n.descAr=r:n.descEn=r),n}function vN(e){const t=e.trim();return g2(t)?{ar:t}:{en:t}}function u1e(e){const t={},n=e.match(/(\d{1,2})\s*(?:days?|Ø£ÙØ§Ù |Ø§ÙØ§Ù |ÙÙÙ )/i)??null;n&&(t.days=Number(n[1]));const a=e.match(/(\d{1,2})\s*(?:nights?|ÙÙØ§Ù[ÙÙ]?|ÙÙÙØ©|ÙÙØ§ÙÙ)/i)??null;return a&&(t.nights=Number(a[1])),t}function d1e(e){const t={},n=e.match(/(?:\$|usd|jd|eur|â¬|sar|aed|دÙÙØ§Ø±|Ø±ÙØ§Ù|درÙÙ |ÙÙØ±Ù|دÙÙØ§Ø±|سعر|ÙØ¨Ø¯Ø£ Ù Ù|Ù Ù)?\s*([0-9][0-9,\.]{1,7})\s*(\$|usd|jd|eur|â¬|sar|aed|دÙÙØ§Ø±|Ø±ÙØ§Ù|درÙÙ |ÙÙØ±Ù|دÙÙØ§Ø±)?/i);if(n){const a=n[1].replace(/,/g,""),r=Number(a);Number.isFinite(r)&&r>=10&&r<=1e6&&(t.price=r);const i=(n[2]||"").toLowerCase(),o={$:"USD",usd:"USD",دÙÙØ§Ø±:"USD",jd:"JD",دÙÙar:"JD",دÙÙØ§Ø±:"JD",eur:"EUR","â¬":"EUR",ÙÙØ±Ù:"EUR",sar:"SAR",Ø±ÙØ§Ù:"SAR",aed:"AED",درÙÙ :"AED"};o[i]&&(t.currency=o[i])}return t}function m1e(e){const t={},n=i1e(e);if(!n.length)return t;let a="intro";const r=[],i=[],o=[],c=[];let l=null,d=[];const m=()=>{l!==null&&i.push(l1e(l,d)),l=null,d=[]};for(const b of n){const y=o1e(b);if(y){m(),a="day",l=y.rest.trim()||"";continue}const w=c1e(b);if(w){m(),a=w==="inc"?"inc":"exc";const S=b.split(/[:ï¼]/).slice(1).join(":").trim();if(S)for(const R of S.split(/[Ø,Ø;]/).map(L=>L.trim()).filter(Boolean))(w==="inc"?o:c).push(vN(R));continue}if(a==="intro"){r.push(b);continue}if(a==="day"){const R=CI(b)??b;l?d.push(R):l=R;continue}const A=CI(b)??b,E=A.split(/[Ø,Ø;]/).map(S=>S.trim()).filter(Boolean),D=a==="inc"?o:c;E.length>1?E.forEach(S=>D.push(vN(S))):D.push(vN(A))}if(m(),r.length){const b=r[0];g2(b)?t.titleAr=b:t.titleEn=b;const y=r.slice(1).join(` 1340`).trim();y&&(g2(y)?t.summaryAr=y:t.summaryEn=y)}const h=r.join(" "),x=u1e(h||e);x.days!==void 0&&(t.durationDays=x.days),x.nights!==void 0&&(t.durationNights=x.nights);const f=d1e(h);return f.price!==void 0&&(t.price=f.price),f.currency&&(t.currency=f.currency),i.length&&(t.itinerary=i),o.length&&(t.inclusions=o),c.length&&(t.exclusions=c),Object.keys(t).forEach(b=>{t[b]===void 0&&delete t[b]}),t}function p1e(e){const t=(e||"").trim();if(!t)return{ok:!1,patch:{},appliedKeys:[],error:"EMPTY"};if(/^[\[{]/.test(t)||/```(?:json)?\s*[\[{]/i.test(t)){const i=a1e(t);if(i.ok)return i}const a=m1e(t),r=Object.keys(a);return{ok:r.length>0,patch:a,appliedKeys:r,error:r.length?void 0:"EMPTY"}}const h1e={istanbul:{ar:"Ø¥Ø³Ø·ÙØ¨ÙÙ",en:"Istanbul"},antalya:{ar:"Ø£ÙØ·Ø§ÙÙØ§",en:"Antalya"},trabzon:{ar:"طرابزÙÙ",en:"Trabzon"},sharm:{ar:"Ø´Ø±Ù Ø§ÙØ´ÙØ®",en:"Sharm El-Sheikh"},hurghada:{ar:"Ø§ÙØºØ±Ø¯ÙØ©",en:"Hurghada"},cairo:{ar:"اÙÙØ§Ùرة",en:"Cairo"},alexandria:{ar:"Ø§ÙØ¥Ø³ÙÙØ¯Ø±ÙØ©",en:"Alexandria"},taba:{ar:"طابا",en:"Taba"},batumi:{ar:"باتÙÙ Ù",en:"Batumi"},tbilisi:{ar:"تبÙÙØ³Ù",en:"Tbilisi"},baku:{ar:"باÙÙ",en:"Baku"},kosovo:{ar:"ÙÙØ³ÙÙÙ",en:"Kosovo"},asia:{ar:"Ø¢Ø³ÙØ§",en:"Asia"},umrah:{ar:"Ø§ÙØ¹Ù رة",en:"Umrah"}};function f1e(e,t){const n=h1e[e];return n?t==="ar"?n.ar:n.en:e}function g1e(e,t){const n=(e??"").toLowerCase(),a=[[/istanbul/,"istanbul"],[/antalya/,"antalya"],[/trabzon/,"trabzon"],[/sharm/,"sharm"],[/hurghada|ghardaqa/,"hurghada"],[/alexandria/,"alexandria"],[/cairo/,"cairo"],[/taba/,"taba"],[/batumi/,"batumi"],[/tbilisi/,"tbilisi"],[/baku/,"baku"],[/kosovo|prizren|pristina/,"kosovo"],[/mecca|makkah|medina|madinah|umrah/,"umrah"],[/malaysia|thailand|indonesia|bali|bangkok|kuala/,"asia"]];for(const[o,c]of a)if(o.test(n))return c;const r=(t??"").toLowerCase();return{asia:"asia",azerbaijan:"baku",kosovo:"kosovo",umrah:"umrah"}[r]}function x1e(e,t){return t==="all"?e:e.filter(n=>(n.destination||"other")===t)}function b1e(e){const t=new Map;for(const n of e){const a=n.destination||"other";t.set(a,(t.get(a)??0)+1)}return Array.from(t.entries()).sort((n,a)=>n[0].localeCompare(a[0]))}const v1e=[3,4,5,6,7],Iy=1e3,cq=[{code:"flight_round",ar:"ØªØ°Ø§ÙØ± Ø§ÙØ·ÙØ±Ø§Ù Ø°ÙØ§Ø¨Ø§Ù ÙØ¥ÙاباÙ",en:"Round-trip flight tickets"},{code:"flight_intl",ar:"Ø§ÙØ·ÙØ±Ø§Ù Ø§ÙØ¯ÙÙÙ",en:"International flights"},{code:"flight_domestic",ar:"Ø§ÙØ±ØÙات Ø§ÙØ¯Ø§Ø®ÙÙØ©",en:"Domestic flights"},{code:"airport_tax",ar:"رسÙÙ ÙØ¶Ø±Ø§Ø¦Ø¨ اÙ٠طارات",en:"Airport taxes & fees"},{code:"hotel_accommodation",ar:"Ø§ÙØ¥Ùا٠ة Ù٠اÙÙÙØ§Ø¯Ù",en:"Hotel accommodation"},{code:"breakfast",ar:"ÙØ¬Ø¨Ø© Ø§ÙØ¥Ùطار ÙÙÙ ÙØ§Ù",en:"Daily breakfast"},{code:"half_board",ar:"ÙØµÙ Ø¥ÙØ§Ù Ø© (Ø¥ÙØ·Ø§Ø± ÙØ¹Ø´Ø§Ø¡)",en:"Half board (breakfast & dinner)"},{code:"full_board",ar:"Ø¥ÙØ§Ù Ø© ÙØ§Ù ÙØ© (Ø«ÙØ§Ø« ÙØ¬Ø¨Ø§Øª)",en:"Full board (all meals)"},{code:"all_inclusive",ar:"ÙØ¸Ø§Ù اÙÙ٠شا٠Ù",en:"All-inclusive package"},{code:"airport_transfer",ar:"Ø§ÙØ§Ø³ØªÙØ¨Ø§Ù ÙØ§ÙØªÙØ¯Ùع Ù Ù ÙØ¥Ù٠اÙ٠طار",en:"Airport transfers (arrival & departure)"},{code:"ground_transport",ar:"Ø§ÙØªÙÙÙØ§Øª Ø§ÙØ¯Ø§Ø®ÙÙØ© Ø¨Ø³ÙØ§Ø±Ø§Øª ØØ¯Ùثة",en:"Ground transportation in modern vehicles"},{code:"private_transport",ar:"تÙÙÙØ§Øª خاصة",en:"Private transfers"},{code:"tour_guide",ar:"٠رشد Ø³ÙØ§ØÙ ÙØ§Ø·Ù Ø¨Ø§ÙØ¹Ø±Ø¨ÙØ©",en:"Arabic-speaking tour guide"},{code:"english_guide",ar:"٠رشد Ø³ÙØ§ØÙ ÙØ§Ø·Ù Ø¨Ø§ÙØ¥ÙجÙÙØ²ÙØ©",en:"English-speaking tour guide"},{code:"sightseeing",ar:"Ø§ÙØ¬ÙÙØ§Øª Ø§ÙØ³ÙاØÙØ© ØØ³Ø¨ Ø§ÙØ¨Ø±Ùا٠ج",en:"Sightseeing tours as per itinerary"},{code:"entrance_fees",ar:"رسÙ٠دخÙ٠اÙ٠عاÙÙ Ø§ÙØ³ÙاØÙØ©",en:"Entrance fees to attractions"},{code:"city_tour",ar:"جÙÙØ© Ù٠اÙ٠دÙÙØ©",en:"City tour"},{code:"boat_trip",ar:"رØÙØ© Ø¨ØØ±ÙØ©",en:"Boat / cruise trip"},{code:"visa",ar:"رسÙÙ Ø§ÙØªØ£Ø´Ùرة",en:"Visa fees"},{code:"visa_assist",ar:"اÙ٠ساعدة Ù٠إجراءات Ø§ÙØªØ£Ø´Ùرة",en:"Visa processing assistance"},{code:"travel_insurance",ar:"تأ٠ÙÙ Ø§ÙØ³Ùر",en:"Travel insurance"},{code:"medical_insurance",ar:"Ø§ÙØªØ£Ù ÙÙ Ø§ÙØ·Ø¨Ù",en:"Medical insurance"},{code:"sim_card",ar:"Ø´Ø±ÙØØ© اتصا٠٠ØÙÙØ©",en:"Local SIM card"},{code:"wifi",ar:"Ø¥ÙØªØ±Ùت / ÙØ§Ù ÙØ§Ù",en:"Internet / Wi-Fi"},{code:"welcome_kit",ar:"ØÙÙØ¨Ø© ترØÙØ¨ÙØ©",en:"Welcome kit"},{code:"taxes_service",ar:"Ø§ÙØ¶Ø±Ø§Ø¦Ø¨ ÙØ±Ø³ÙÙ Ø§ÙØ®Ø¯Ù Ø©",en:"Taxes & service charges"},{code:"umrah_visa",ar:"ØªØ£Ø´ÙØ±Ø© Ø§ÙØ¹Ù رة",en:"Umrah visa"},{code:"haram_transfer",ar:"Ø§ÙØªÙÙÙ Ù Ù ÙØ¥ÙÙ Ø§ÙØØ±Ù ",en:"Transfers to/from the Haram"},{code:"ziyarat",ar:"جÙÙØ§Øª Ø§ÙØ²Ùارات Ø§ÙØ¯ÙÙÙØ©",en:"Ziyarat (religious site visits)"},{code:"guide_religious",ar:"٠رشد دÙÙÙ",en:"Religious guide / mutawif"}],lq=[{code:"flight_not",ar:"ØªØ°Ø§ÙØ± Ø§ÙØ·ÙراÙ",en:"Flight tickets"},{code:"visa_not",ar:"رسÙÙ Ø§ÙØªØ£Ø´Ùرة",en:"Visa fees"},{code:"insurance_not",ar:"تأ٠ÙÙ Ø§ÙØ³Ùر",en:"Travel insurance"},{code:"lunch_dinner",ar:"ÙØ¬Ø¨Ø§Øª Ø§ÙØºØ¯Ø§Ø¡ ÙØ§Ùعشاء",en:"Lunch & dinner"},{code:"meals_not",ar:"اÙÙØ¬Ø¨Ø§Øª ØºÙØ± اÙ٠ذÙÙØ±Ø©",en:"Meals not mentioned"},{code:"personal_expenses",ar:"اÙ٠صارÙÙ Ø§ÙØ´Ø®ØµÙØ©",en:"Personal expenses"},{code:"tips",ar:"Ø§ÙØ¥ÙØ±Ø§Ù ÙØ§Øª (Ø§ÙØ¨ÙØ´ÙØ´)",en:"Tips & gratuities"},{code:"optional_tours",ar:"Ø§ÙØ¬ÙÙØ§Øª Ø§ÙØ§Ø®ØªÙØ§Ø±ÙØ©",en:"Optional tours"},{code:"entrance_not",ar:"رسÙ٠دخÙ٠اÙ٠عاÙÙ ØºÙØ± اÙ٠ذÙÙØ±Ø©",en:"Entrance fees not mentioned"},{code:"single_supplement",ar:"ÙØ±Ù Ø§ÙØºØ±ÙØ© اÙÙ ÙØ±Ø¯Ø©",en:"Single room supplement"},{code:"extra_nights",ar:"اÙÙÙØ§ÙÙ Ø§ÙØ¥Ø¶Ø§ÙÙØ©",en:"Additional nights"},{code:"laundry",ar:"خد٠ة غسÙ٠اÙÙ ÙØ§Ø¨Ø³",en:"Laundry service"},{code:"minibar",ar:"Ù Ø´Ø±ÙØ¨Ø§Øª اÙÙ ÙÙ٠بار",en:"Minibar consumption"},{code:"phone_calls",ar:"اÙÙ ÙØ§Ù٠ات اÙÙØ§ØªÙÙØ©",en:"Phone calls"},{code:"anything_not_mentioned",ar:"أ٠خد٠ة ØºÙØ± ٠ذÙÙØ±Ø© ÙÙ Ø§ÙØ¨Ø±Ùا٠ج",en:"Anything not mentioned in the program"},{code:"pcr_tests",ar:"ÙØÙØµØ§Øª PCR Ø¥Ù ÙØ²Ù ت",en:"PCR tests (if required)"},{code:"domestic_flights_not",ar:"Ø§ÙØ±ØÙات Ø§ÙØ¯Ø§Ø®ÙÙØ©",en:"Domestic flights"},{code:"sim_not",ar:"Ø´Ø±ÙØØ© Ø§ÙØ§ØªØµØ§Ù",en:"SIM card"}];new Map(cq.map(e=>[e.code,e]));new Map(lq.map(e=>[e.code,e]));const SI=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,_I=Jj,a6=(e,t)=>n=>{var a;if(t?.variants==null)return _I(e,n?.class,n?.className);const{variants:r,defaultVariants:i}=t,o=Object.keys(r).map(d=>{const m=n?.[d],h=i?.[d];if(m===null)return null;const x=SI(m)||SI(h);return r[d][x]}),c=n&&Object.entries(n).reduce((d,m)=>{let[h,x]=m;return x===void 0||(d[h]=x),d},{}),l=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((d,m)=>{let{class:h,className:x,...f}=m;return Object.entries(f).every(b=>{let[y,w]=b;return Array.isArray(w)?w.includes({...i,...c}[y]):{...i,...c}[y]===w})?[...d,h,x]:d},[]);return _I(e,o,l,n?.class,n?.className)},y1e=a6("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-transparent shadow-xs hover:bg-accent dark:bg-transparent dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Ie({className:e,variant:t,size:n,asChild:a=!1,...r}){const i=a?Dj:"button";return s.jsx(i,{"data-loc":"client/src/components/ui/button.tsx:52","data-slot":"button",className:an(y1e({variant:t,size:n,className:e})),...r})}function My(e){const t=k.useRef(e);t.current=e;const n=k.useRef(null);return n.current||(n.current=function(...a){return t.current.apply(this,a)}),n.current}function uq(e={}){const{onKeyDown:t,onCompositionStart:n,onCompositionEnd:a}=e,r=k.useRef(!1),i=k.useRef(null),o=k.useRef(null),c=My(h=>{i.current&&(clearTimeout(i.current),i.current=null),o.current&&(clearTimeout(o.current),o.current=null),r.current=!0,n?.(h)}),l=My(h=>{i.current=setTimeout(()=>{o.current=setTimeout(()=>{r.current=!1})}),a?.(h)}),d=My(h=>{if(r.current&&(h.key==="Escape"||h.key==="Enter"&&!h.shiftKey)){h.stopPropagation();return}t?.(h)}
1340),m=My(()=>r.current);return{onCompositionStart:c,onCompositionEnd:l,onKeyDown:d,isComposing:m}}function Ee({className:e,type:t,onKeyDown:n,onCompositionStart:a,onCompositionEnd:r,...i}){const o=pA(),{onCompositionStart:c,onCompositionEnd:l,onKeyDown:d}=uq({onKeyDown:m=>{const h=m.nativeEvent.isComposing||o.justEndedComposing();m.key==="Enter"&&h||n?.(m)},onCompositionStart:m=>{o.setComposing(!0),a?.(m)},onCompositionEnd:m=>{o.markCompositionEnd(),setTimeout(()=>{o.setComposing(!1)},100),r?.(m)}});return s.jsx("input",{"data-loc":"client/src/components/ui/input.tsx:53",type:t,"data-slot":"input",className:an("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),onCompositionStart:c,onCompositionEnd:l,onKeyDown:d,...i})}var w1e="Label",dq=k.forwardRef((e,t)=>s.jsx(Vn.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));dq.displayName=w1e;var T1e=dq;function nt({className:e,...t}){return s.jsx(T1e,{"data-loc":"client/src/components/ui/label.tsx:11","data-slot":"label",className:an("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}const PI="cyt-admin-lang";function f9(){const[e,t]=k.useState(()=>(typeof localStorage<"u"?localStorage.getItem(PI):null)==="en"?"en":"ar"),n=e==="ar",a=r=>{t(r);try{localStorage.setItem(PI,r)}catch{}};return k.useEffect(()=>{},[e]),{lang:e,setLang:a,isRTL:n}}function mq({onSuccess:e}){const{lang:t,setLang:n,isRTL:a}=f9(),[r,i]=k.useState(""),[o,c]=k.useState(""),[l,d]=k.useState(!1),m=(f,b)=>t==="ar"?f:b,h=Pe.adminAuth.login.useMutation({onSuccess:()=>{Le.success(m("Ù
Ø±ØØ¨Ø§Ù Ø¨Ø¹ÙØ¯ØªÙ","Welcome back")),e()},onError:()=>Le.error(m("Ø¨Ø±ÙØ¯ Ø¥ÙÙØªØ±ÙÙ٠أ٠ÙÙÙ
Ø© Ù
Ø±ÙØ± ØºÙØ± صØÙØØ©","Invalid email or password"))});function x(f){if(f.preventDefault(),!r||!o){Le.error(m("Ø§ÙØ±Ø¬Ø§Ø¡ Ø¥Ø¯Ø®Ø§Ù Ø§ÙØ¨Ø±Ùد ÙÙÙÙ
Ø© اÙÙ
Ø±ÙØ±.","Please enter your email and password."));return}h.mutate({email:r.trim().toLowerCase(),password:o})}return s.jsxs("div",{"data-loc":"client/src/components/AdminLogin.tsx:42",dir:a?"rtl":"ltr",className:"admin-login min-h-[100svh] flex items-center justify-center bg-[#0E0B07] px-4 py-16 sm:py-20 relative overflow-hidden",children:[s.jsx("div",{"data-loc":"client/src/components/AdminLogin.tsx:47",className:"pointer-events-none absolute -top-32 -right-24 w-[28rem] h-[28rem] rounded-full bg-[#C9A961]/10 blur-3xl"}),s.jsx("div",{"data-loc":"client/src/components/AdminLogin.tsx:48",className:"pointer-events-none absolute -bottom-40 -left-24 w-[28rem] h-[28rem] rounded-full bg-[#C8923A]/10 blur-3xl"}),s.jsxs("button",{"data-loc":"client/src/components/AdminLogin.tsx:51",type:"button",onClick:()=>n(t==="ar"?"en":"ar"),className:"absolute top-5 ltr:right-5 rtl:left-5 inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full border border-[#C9A961]/30 text-[#E9D9BC] text-sm hover:bg-[#C9A961]/10 transition-colors",children:[s.jsx(B2,{"data-loc":"client/src/components/AdminLogin.tsx:56",className:"w-4 h-4 text-[#C9A961]"}),t==="ar"?"English":"عربÙ"]}),s.jsxs("div",{"data-loc":"client/src/components/AdminLogin.tsx:60",className:"w-full max-w-md relative",children:[s.jsxs("div",{"data-loc":"client/src/components/AdminLogin.tsx:61",className:"bg-[#171108] border border-[#C9A961]/20 rounded-2xl shadow-2xl p-6 sm:p-8",children:[s.jsxs("div",{"data-loc":"client/src/components/AdminLogin.tsx:63",className:"flex flex-col items-center text-center mb-8",children:[s.jsx("a",{"data-loc":"client/src/components/AdminLogin.tsx:64",href:Oa.url,target:"_blank",rel:"noopener noreferrer",className:"mb-4 rounded-2xl focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#E9D9BC]","aria-label":m("Ø²ÙØ§Ø±Ø© Ù
ÙÙØ¹ IBRIX Ø§ÙØ±Ø³Ù
Ù","Visit the official IBRIX website"),children:s.jsx("img",{"data-loc":"client/src/components/AdminLogin.tsx:65",src:Oa.logoUrl,alt:"IBRIX",className:"h-16 w-16 rounded-2xl bg-white object-contain shadow-lg"})}),s.jsx("h1",{"data-loc":"client/src/components/AdminLogin.tsx:67",className:"font-display font-bold text-2xl tracking-[0.14em] text-[#F4E8D0]",children:"IBRIX"}),s.jsx("p",{"data-loc":"client/src/components/AdminLogin.tsx:68",className:"text-sm text-[#C9A961]/70 mt-1",children:m("ÙÙØØ© Ø§ÙØ¥Ø¯Ø§Ø±Ø© â ØªØ³Ø¬Ù٠دخÙ٠آÙ
Ù","Admin Console â Secure Sign In")})]}),s.jsxs("form",{"data-loc":"client/src/components/AdminLogin.tsx:73",onSubmit:x,className:"space-y-5",children:[s.jsxs("div",{"data-loc":"client/src/components/AdminLogin.tsx:74",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/AdminLogin.tsx:75",htmlFor:"email",className:"text-[#E9D9BC]",children:m("Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ","Email")}),s.jsxs("div",{"data-loc":"client/src/components/AdminLogin.tsx:76",className:"group relative",children:[s.jsx("span",{"data-loc":"client/src/components/AdminLogin.tsx:77",className:"pointer-events-none absolute inset-y-0 left-0 flex w-12 items-center justify-center text-[#C9A961]/60 transition-colors group-focus-within:text-[#C9A961]",children:s.jsx(Pd,{"data-loc":"client/src/components/AdminLogin.tsx:78",className:"h-4 w-4"})}),s.jsx(Ee,{"data-loc":"client/src/components/AdminLogin.tsx:80",id:"email",type:"email",autoComplete:"username",dir:"ltr",value:r,onChange:f=>i(f.target.value),placeholder:"[email protected]",className:"h-14 roun
1340ded-xl bg-[#0E0B07] border-[#C9A961]/25 pl-12 pr-4 text-base text-[#F4E8D0] placeholder:text-[#7A6A4C] focus-visible:border-[#C9A961]/70 focus-visible:ring-2 focus-visible:ring-[#C9A961]/25"})]})]}),s.jsxs("div",{"data-loc":"client/src/components/AdminLogin.tsx:93",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/AdminLogin.tsx:94",htmlFor:"password",className:"text-[#E9D9BC]",children:m("ÙÙÙ
Ø© اÙÙ
Ø±ÙØ±","Password")}),s.jsxs("div",{"data-loc":"client/src/components/AdminLogin.tsx:95",className:"group relative",children:[s.jsx("span",{"data-loc":"client/src/components/AdminLogin.tsx:96",className:"pointer-events-none absolute inset-y-0 left-0 flex w-12 items-center justify-center text-[#C9A961]/60 transition-colors group-focus-within:text-[#C9A961]",children:s.jsx(oie,{"data-loc":"client/src/components/AdminLogin.tsx:97",className:"h-4 w-4"})}),s.jsx(Ee,{"data-loc":"client/src/components/AdminLogin.tsx:99",id:"password",type:l?"text":"password",autoComplete:"current-password",dir:"ltr",value:o,onChange:f=>c(f.target.value),placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",className:"h-14 rounded-xl bg-[#0E0B07] border-[#C9A961]/25 pl-12 pr-16 text-base tracking-[0.08em] text-[#F4E8D0] placeholder:tracking-[0.16em] placeholder:text-[#7A6A4C] focus-visible:border-[#C9A961]/70 focus-visible:ring-2 focus-visible:ring-[#C9A961]/25"}),s.jsx("button",{"data-loc":"client/src/components/AdminLogin.tsx:109",type:"button",onClick:()=>d(f=>!f),className:"absolute inset-y-1 right-1 flex w-12 items-center justify-center rounded-lg border border-transparent text-[#C9A961]/65 transition-colors hover:border-[#C9A961]/15 hover:bg-[#C9A961]/10 hover:text-[#C9A961] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C9A961]/50","aria-label":l?m("Ø¥Ø®ÙØ§Ø¡ ÙÙÙ
Ø© اÙÙ
Ø±ÙØ±","Hide password"):m("Ø¥Ø¸ÙØ§Ø± ÙÙÙ
Ø© اÙÙ
Ø±ÙØ±","Show password"),"aria-pressed":l,title:l?m("Ø¥Ø®ÙØ§Ø¡ ÙÙÙ
Ø© اÙÙ
Ø±ÙØ±","Hide password"):m("Ø¥Ø¸ÙØ§Ø± ÙÙÙ
Ø© اÙÙ
Ø±ÙØ±","Show password"),children:l?s.jsx(Q0,{"data-loc":"client/src/components/AdminLogin.tsx:117",className:"w-4 h-4"}):s.jsx(Gi,{"data-loc":"client/src/components/AdminLogin.tsx:117",className:"w-4 h-4"})})]})]}),s.jsxs(Ie,{"data-loc":"client/src/components/AdminLogin.tsx:122",type:"submit",disabled:h.isPending,className:"h-12 w-full rounded-xl bg-gradient-to-r from-[#C9A961] to-[#B07C2E] text-[#0E0B07] font-semibold shadow-lg shadow-[#C9A961]/10 hover:opacity-95 focus-visible:ring-2 focus-visible:ring-[#E9D9BC]",children:[h.isPending?s.jsx(ft,{"data-loc":"client/src/components/AdminLogin.tsx:127",className:"w-4 h-4 mr-2 animate-spin"}):null,m("تسجÙÙ Ø§ÙØ¯Ø®ÙÙ","Sign In")]})]})]}),s.jsxs("p",{"data-loc":"client/src/components/AdminLogin.tsx:134",className:"text-center text-xs text-[#7A6A4C] mt-6",children:[m("تصÙ
ÙÙ
","Designed by")," ",s.jsx("a",{"data-loc":"client/src/components/AdminLogin.tsx:136",href:Oa.url,target:"_blank",rel:"noopener noreferrer",className:"text-[#C9A961]/80 hover:text-[#C9A961] font-medium",children:"IBRIX"})]})]})]})}const N1e=(e,t,n)=>e==="ar"?t:n;function k1e(e){return new Promise((t,n)=>{const a=new FileReader;a.onload=()=>t(String(a.result)),a.onerror=n,a.readAsDataURL(e)})}function j1e({lang:e,value:t,onChange:n,destination:a}){const r=(D,S)=>N1e(e,D,S),[i,o]=k.useState(!1),[c,l]=k.useState(""),[d,m]=k.useState(a??"all"),h=k.useRef(null),x=Pe.useUtils(),{data:f,isLoading:b}=Pe.admin.listMedia.useQuery(void 0,{enabled:i}),y=Pe.admin.uploadMedia.useMutation({onSuccess:D=>{Le.success(r("تÙ
Ø±ÙØ¹ Ø§ÙØµÙرة ÙØ¥Ø¶Ø§ÙØªÙØ§ ÙÙÙ
ÙØªØ¨Ø©.","Image uploaded and added to the library.")),x.admin.listMedia.invalidate(),D?.url&&(n(D.url),o(!1))},onError:D=>Le.error(D.message||r("ÙØ´Ù Ø§ÙØ±Ùع.","Upload failed."))}),w=Pe.admin.deleteMedia.useMutation({onSuccess:()=>{Le.success(r("تÙ
ØØ°Ù Ø§ÙØµÙرة Ù
٠اÙÙ
ÙØªØ¨Ø©.","Removed from library.")),x.admin.listMedia.invalidate()},onError:()=>Le.error(r("ÙØ´Ù Ø§ÙØØ°Ù.","Delete failed."))}),T=k.useMemo(()=>b1e(f??[]),[f]),A=k.useMemo(()=>x1e(f??[],d),[f,d]);async function E(D){const S=D.target.files?.[0];if(!S)return;if(!S.type.startsWith("image/")){Le.error(r("Ø§ÙØ±Ø¬Ø§Ø¡ Ø§Ø®ØªÙØ§Ø± Ù
ÙÙ ØµÙØ±Ø©.","Please choose an image file."));return}if(S.size>8*1024*1024){Le.error(r("Ø§ÙØØ¬Ù
Ø§ÙØ£Ùص٠8 Ù
ÙØ¬Ø§Ø¨Ø§Ùت.","Max size is 8MB."));return}const R=await k1e(S);y.mutate({dataBase64:R,fileName:S.name,mimeType:S.type,label:S.name,destination:d!=="all"?d:a}),h.current&&(h.current.value="")}return s.jsxs(s.Fragment,{children:[s.jsxs("div",{"data-loc":"client/src/components/ImagePicker.tsx:107",className:"flex items-center gap-3",children:[s.jsx("div",{"data-loc":"client/src/components/ImagePicker.tsx:108",className:"w-20 h-14 roun
1340ded-md border border-border bg-muted/40 overflow-hidden flex items-center justify-center shrink-0",children:t?s.jsx("img",{"data-loc":"client/src/components/ImagePicker.tsx:110",src:t,alt:"",className:"w-full h-full object-cover"}):s.jsx(xP,{"data-loc":"client/src/components/ImagePicker.tsx:112",className:"w-5 h-5 text-muted-foreground"})}),s.jsxs(Ie,{"data-loc":"client/src/components/ImagePicker.tsx:115",type:"button",variant:"outline",className:"bg-background",onClick:()=>o(!0),children:[s.jsx(xP,{"data-loc":"client/src/components/ImagePicker.tsx:116",className:"w-4 h-4 mx-1.5"}),t?r("تغÙÙØ± Ø§ÙØµÙرة","Change image"):r("اختر ØµÙØ±Ø©","Choose image")]}),t&&s.jsx(Ie,{"data-loc":"client/src/components/ImagePicker.tsx:120",type:"button",variant:"ghost",size:"sm",onClick:()=>n(""),children:r("Ø¥Ø²Ø§ÙØ©","Remove")})]}),s.jsx(Ba,{"data-loc":"client/src/components/ImagePicker.tsx:126",open:i,onOpenChange:o,children:s.jsxs(Fa,{"data-loc":"client/src/components/ImagePicker.tsx:127",dir:e==="ar"?"rtl":"ltr",className:"max-w-3xl w-[94vw] max-h-[88vh] overflow-hidden p-0",children:[s.jsx(as,{"data-loc":"client/src/components/ImagePicker.tsx:128",className:"px-6 pt-6",children:s.jsx(Ua,{"data-loc":"client/src/components/ImagePicker.tsx:129",children:r("Ù
ÙØªØ¨Ø© Ø§ÙØµÙر","Image Library")})}),s.jsxs("div",{"data-loc":"client/src/components/ImagePicker.tsx:132",className:"px-6 pb-6 pt-2 space-y-5 overflow-y-auto max-h-[calc(88vh-6rem)]",children:[s.jsxs("div",{"data-loc":"client/src/components/ImagePicker.tsx:134",className:"flex flex-col sm:flex-row gap-3",children:[s.jsx("input",{"data-loc":"client/src/components/ImagePicker.tsx:135",ref:h,type:"file",accept:"image/*",className:"hidden",onChange:E}),s.jsxs(Ie,{"data-loc":"client/src/components/ImagePicker.tsx:136",type:"button",onClick:()=>h.current?.click(),disabled:y.isPending,children:[y.isPending?s.jsx(ft,{"data-loc":"client/src/components/ImagePicker.tsx:142",className:"w-4 h-4 mx-1.5 animate-spin"}):s.jsx(dh,{"data-loc":"client/src/components/ImagePicker.tsx:144",className:"w-4 h-4 mx-1.5"}),r("Ø±ÙØ¹ ØµÙØ±Ø© Ø¬Ø¯ÙØ¯Ø©","Upload new image")]}),s.jsxs("div",{"data-loc":"client/src/components/ImagePicker.tsx:149",className:"flex items-center gap-2 flex-1",children:[s.jsx(aA,{"data-loc":"client/src/components/ImagePicker.tsx:150",className:"w-4 h-4 text-muted-foreground shrink-0"}),s.jsx(Ee,{"data-loc":"client/src/components/ImagePicker.tsx:151",dir:"ltr",placeholder:"https://...",value:c,onChange:D=>l(D.target.value)}),s.jsx(Ie,{"data-loc":"client/src/components/ImagePicker.tsx:157",type:"button",variant:"outline",className:"bg-background shrink-0",onClick:()=>{c.trim()&&(n(c.trim()),o(!1))},children:r("استخداÙ
Ø§ÙØ±Ø§Ø¨Ø·","Use URL")})]})]}),T.length>0&&s.jsxs("div",{"data-loc":"client/src/components/ImagePicker.tsx:174",className:"flex flex-wrap gap-2",children:[s.jsxs("button",{"data-loc":"client/src/components/ImagePicker.tsx:175",type:"button",onClick:()=>m("all"),className:`px-3 py-1 rounded-full text-xs font-medium border transition ${d==="all"?"bg-primary text-primary-foreground border-primary":"bg-background border-border hover:border-primary/60"}`,children:[r("اÙÙÙ","All")," (",(f??[]).length,")"]}),T.map(([D,S])=>s.jsxs("button",{"data-loc":"client/src/components/ImagePicker.tsx:187",type:"button",onClick:()=>m(D),className:`px-3 py-1 rounded-full text-xs font-medium border transition ${d===D?"bg-primary text-primary-foreground border-primary":"bg-background border-border hover:border-primary/60"}`,children:[f1e(D,e)," (",S,")"]},D))]}),s.jsxs("div",{"data-loc":"client/src/components/ImagePicker.tsx:204",children:[s.jsx("p",{"data-loc":"client/src/components/ImagePicker.tsx:205",className:"text-xs font-semibold text-muted-foreground mb-2",children:r("اختر Ù
٠اÙÙ
ÙØªØ¨Ø©","Pick from library")}),b?s.jsx("div",{"data-loc":"client/src/components/ImagePicker.tsx:209",className:"flex items-center justify-center py-12",children:s.jsx(ft,{"data-loc":"client/src/components/ImagePicker.tsx:210",className:"w-6 h-6 text-primary animate-spin"})}):A.length===0?s.jsx("div",{"data-loc":"client/src/components/ImagePicker.tsx:213",className:"text-center py-12 border border-dashed border-border rounded-lg text-sm text-muted-foreground",children:(f??[]).length===0?r("اÙÙ
ÙØªØ¨Ø© ÙØ§Ø±ØºØ© â Ø§Ø±Ùع ØµÙØ±Ø© ÙØªØ¸Ùر ÙÙØ§.","Library is empty â upload an image to see it here."):r("ÙØ§ ØªÙØ¬Ø¯ ØµÙØ± ÙÙØ°Ù اÙÙØ¬ÙØ©.","No images for this destination.")}):s.jsx("div",{"data-loc":"client/src/components/ImagePicker.tsx:219",className:"grid grid-cols-3 sm:grid-cols-4 gap-3",children:A.map(D=>{const S=t===D.url;return s.jsxs("div",{"data-loc":"client/src/components/ImagePicker.tsx:223",className:`group relative aspect-[4/3] rounded-lg overflow-hidden border cursor-pointer transition ${S?"border-primary ring-2 ring-primary":"border-border hover:border-primary/60"}`,onClick:()=>{n(D.url),o(!1)},title:D.label??"",children:[s.jsx("img",{"data-loc":"client/src/components/ImagePicker.tsx:234",src:D.url,alt:D.label??"",className:"w-full h-full object-cover"}),S&&s.jsx("div",{"data-loc":"client/src/components/ImagePicker.tsx:236",className:"absolute inset-0 bg-primary/20 flex items-center justify-center",children:s.jsx("span",{"data-loc":"client/src/components/ImagePicker.tsx:237",className:"bg-primary text-primary-foreground rounded-full p-1",children:s.jsx(bc,{"data-loc":"client/src/components/ImagePicker.tsx:238",className:"w-4 h-4"})})}),s.jsx("button",{"data-loc":"client/src/components/ImagePicker.tsx:242",type:"button",title:r("ØØ°Ù","Delete"),className:"absolute top-1 end-1 bg-black/55 text-white rounded p-1 opacity-0 group-hover:opacity-100 transition",onClick:R=>{R.stopPropagation(),confirm(r("ØØ°Ù ÙØ°Ù Ø§ÙØµÙرة Ù
٠اÙÙ
ÙØªØ¨Ø©Ø","Remove this image from the library?"))&&w.mutate({id:D.id})},children:s.jsx(ro,{"data-loc":"client/src/components/ImagePicker.tsx:252",className:"w-3.5 h-3.5"})})]},D.id)})})]})]})]})})]})}function A1e(){return s.jsxs(k.Fragment,{children:[s.jsx("col",{"data-loc":"client/src/components/PackagePricingEditor.tsx:18",style:{minWidth:"180px"}}),s.jsx("col",{"data-loc":"client/src/components/PackagePricingEditor.tsx:19",style:{width:"84px"}}),s.jsx("col",{"data-loc":"client/src/components/PackagePricingEditor.tsx:20",style:{width:"96px"}})]})}const E1e=(e,t,n)=>e==="ar"?t:n,C1e=["3","4","5","Apart","Boutique"];function B3(){return{cityCount:2,cities:[{labelAr:"",labelEn:""},{labelAr:"",labelEn:""}],rows:[]}}const S1e=e=>({hotel:`hotel${e}`,nights:`nights${e}`,stars:`stars${e}`});function _1e({lang:e,currency:t,value:n,onChange:a}){const r=(f,b)=>E1e(e,f,b),i=n??B3(),o=Array.isArray(i.cities)?i.cities:[],c=Array.isArray(i.rows)?i.rows:[],l=f=>{const b=Array.from({length:f},(y,w)=>o[w]??{labelAr:"",labelEn:""});a({...i,cityCount:f,cities:b})},d=(f,b,y)=>{const w=o.map((T,A)=>A===f?{...T,[b]:y}:T);a({...i,cities:w})},m=()=>a({...i,rows:[...c,{price:""}]}),h=f=>a({...i,rows:c.filter((b,y)=>y!==f)}),x=(f,b,y)=>{const w=c.map((T,A)=>A===f?{...T,[b]:y}:T);a({...i,rows:w})};return s.jsxs("div",{"data-loc":"client/src/components/PackagePricingEditor.tsx:92",className:"rounded-xl border border-border p-4 space-y-4 bg-muted/20",children:[s.jsxs("div",{"data-loc":"client/src/components/PackagePricingEditor.tsx:93",className:"flex items-center justify-between flex-wrap gap-3",children:[s.jsxs("div",{"data-loc":"client/src/components/PackagePricingEditor.tsx:94",children:[s.jsx("h4",{"data-loc":"client/src/components/PackagePricingEditor.tsx:95",className:"font-semibold text-foreground text-sm",children:r("ØªØ³Ø¹ÙØ± Ø§ÙØ¨Ø§ÙØ© (Ø¨Ø±ÙØ§Ù
ج Ù
ÙØ³)","Package Pricing (mix program)")}),s.jsx("p",{"data-loc":"client/src/components/PackagePricingEditor.tsx:98",className:"text-xs text-muted-foreground",children:r("سعر ÙØ§ØØ¯ ÙÙÙ Ø¨Ø§ÙØ© ÙÙØ¯ÙÙØ© (ÙÙÙØ³ ÙÙÙ ÙÙØ¯Ù عÙÙ ØØ¯Ø©).","One price per hotel combination (not per hotel).")})]}),s.jsxs("div",{"data-loc":"client/src/components/PackagePricingEditor.tsx:105",className:"flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/components/PackagePricingEditor.tsx:106",className:"text-xs text-muted-foreground",children:r("عدد اÙÙ
دÙ","Cities")}),[2,3].map(f=>s.jsx(Ie,{"data-loc":"client/src/components/PackagePricingEditor.tsx:108",type:"button",size:"sm",variant:i.cityCount===f?"default":"outline",className:i.cityCount===f?"":"bg-background",onClick:()=>l(f),children:f},f))]})]}),s.jsx("div",{"data-loc":"client/src/components/PackagePricingEditor.tsx:123",className:"grid gap-3",style:{gridTemplateColumns:`repeat(${i.cityCount}, minmax(0,1fr))`},children:Array.from({length:i.cityCount}).map((f,b)=>s.jsxs("div",{"data-loc":"client/src/components/PackagePricingEditor.tsx:125",className:"rounded-lg border border-border bg-background p-3 space-y-2",children:[s.jsx("p",{"data-loc":"client/src/components/PackagePricingEditor.tsx:126",className:"text-xs font-semibold text-muted-foreground",children:r(`اÙÙ
دÙÙØ© ${b+1}`,`City ${b+1}`)}),s.jsx(Ee,{"data-loc":"client/src/components/PackagePricingEditor.tsx:129",dir:"ltr",placeholder:r("اسÙ
اÙÙ
دÙÙØ© (Ø¥ÙØ¬ÙÙØ²Ù)","City name (EN)"),value:o[b]?.labelEn??"",onChange:y=>
1340d(b,"labelEn",y.target.value)}),s.jsx(Ee,{"data-loc":"client/src/components/PackagePricingEditor.tsx:135",dir:"rtl",placeholder:r("اسÙ
اÙÙ
دÙÙØ© (عربÙ)","City name (AR)"),value:o[b]?.labelAr??"",onChange:y=>d(b,"labelAr",y.target.value)})]},b))}),s.jsx("div",{"data-loc":"client/src/components/PackagePricingEditor.tsx:146",className:"overflow-x-auto rounded-lg border border-border bg-background",children:s.jsxs("table",{"data-loc":"client/src/components/PackagePricingEditor.tsx:147",className:"text-sm border-collapse table-fixed",style:{width:"100%",minWidth:i.cityCount*360+220+"px"},children:[s.jsxs("colgroup",{"data-loc":"client/src/components/PackagePricingEditor.tsx:151",children:[Array.from({length:i.cityCount}).map((f,b)=>s.jsx(A1e,{"data-loc":"client/src/components/PackagePricingEditor.tsx:153"},b)),s.jsx("col",{"data-loc":"client/src/components/PackagePricingEditor.tsx:156",style:{width:"140px"}}),s.jsx("col",{"data-loc":"client/src/components/PackagePricingEditor.tsx:157",style:{width:"52px"}})]}),s.jsxs("thead",{"data-loc":"client/src/components/PackagePricingEditor.tsx:159",className:"bg-muted/60",children:[s.jsxs("tr",{"data-loc":"client/src/components/PackagePricingEditor.tsx:160",children:[Array.from({length:i.cityCount}).map((f,b)=>{const w=(e==="ar"?o[b]?.labelAr:o[b]?.labelEn)||r(`اÙÙ
دÙÙØ© ${b+1}`,`City ${b+1}`);return s.jsx("th",{"data-loc":"client/src/components/PackagePricingEditor.tsx:165",className:"px-3 py-2 text-center font-semibold text-foreground border-e-2 border-border bg-muted",colSpan:3,children:w},b)}),s.jsxs("th",{"data-loc":"client/src/components/PackagePricingEditor.tsx:174",className:"px-3 py-2 text-center font-semibold text-foreground border-e-2 border-border",rowSpan:2,children:[r("سعر Ø§ÙØ¨Ø±ÙاÙ
ج","Package Price"),s.jsxs("span",{"data-loc":"client/src/components/PackagePricingEditor.tsx:176",className:"block text-muted-foreground font-normal",children:["(",t||"JOD",")"]})]}),s.jsx("th",{"data-loc":"client/src/components/PackagePricingEditor.tsx:178",rowSpan:2,className:"px-2"})]}),s.jsx("tr",{"data-loc":"client/src/components/PackagePricingEditor.tsx:180",children:Array.from({length:i.cityCount}).map((f,b)=>s.jsxs(k.Fragment,{children:[s.jsx("th",{"data-loc":"client/src/components/PackagePricingEditor.tsx:183",className:"px-2 py-1.5 text-start text-[11px] font-semibold uppercase tracking-wide text-muted-foreground border-e border-border/60",children:r("اÙÙÙØ¯Ù","Hotel")}),s.jsx("th",{"data-loc":"client/src/components/PackagePricingEditor.tsx:186",className:"px-2 py-1.5 text-center text-[11px] font-semibold uppercase tracking-wide text-muted-foreground border-e border-border/60",children:r("ÙÙØ§ÙÙ","Nights")}),s.jsx("th",{"data-loc":"client/src/components/PackagePricingEditor.tsx:189",className:"px-2 py-1.5 text-center text-[11px] font-semibold uppercase tracking-wide text-muted-foreground border-e-2 border-border",children:r("Ø§ÙØªØµÙÙÙ","Stars")})]},b))})]}),s.jsx("tbody",{"data-loc":"client/src/components/PackagePricingEditor.tsx:196",children:c.length===0?s.jsx("tr",{"data-loc":"client/src/components/PackagePricingEditor.tsx:198",children:s.jsx("td",{"data-loc":"client/src/components/PackagePricingEditor.tsx:199",colSpan:i.cityCount*3+2,className:"text-center py-6 text-muted-foreground",children:r("ÙØ§ ØªÙØ¬Ø¯ Ø¨Ø§ÙØ§Øª بعد. أض٠صÙÙØ§Ù.","No rows yet. Add a row.")})}):c.map((f,b)=>s.jsxs("tr",{"data-loc":"client/src/components/PackagePricingEditor.tsx:205",className:`border-t border-border ${b%2===1?"bg-muted/25":""}`,children:[Array.from({length:i.cityCount}).map((y,w)=>{const T=S1e(w);return s.jsxs(k.Fragment,{children:[s.jsx("td",{"data-loc":"client/src/components/PackagePricingEditor.tsx:210",className:"p-1.5 border-e border-border/60",children:s.jsx("input",{"data-loc":"client/src/components/PackagePricingEditor.tsx:211",dir:e==="ar"?"rtl":"ltr",className:"w-full rounded-md border border-border bg-background px-3 py-2 text-foreground shadow-sm outline-none transition focus:border-[#C9A961] focus:ring-2 focus:ring-[#C9A961]/30",placeholder:r("اسÙ
اÙÙÙØ¯Ù","Hotel name"),value:String(f[T.hotel]??""),onChange:A=>x(b,T.hotel,A.target.value)})}),s.jsx("td",{"data-loc":"client/src/components/PackagePricingEditor.tsx:219",className:"p-1.5 border-e border-border/60",children:s.jsx("input",{"data-loc":"client/src/components/PackagePricingEditor.tsx:220",dir:"ltr",type:"number",min:0,className:"w-full rounded-md border border-border bg-background px-2 py-2 text-center text-foreground shadow-sm outline-none transition focus:border-[#C9A961] focus:ring-2 focus:ring-[#C9A961]/30",placeholder:"0",value:String(f[T.nights]??""),onChange:A=>x(b,T.nights,A.target.value)})}),s.jsx("td",{"data-loc":"client/src/components/PackagePricingEditor.tsx:230",className:"p-1.5 border-e-2 border-border",children:s.jsxs("select",{"data-loc":"client/src/components/PackagePricingEditor.tsx:231",className:"w-full rounded-md border border-border bg-background px-2 py-2 text-center text-foreground shadow-sm outline-none transition focus:border-[#C9A961] focus:ring-2 focus:ring-[#C9A961]/30",value:String(f[T.stars]??""),onChange:A=>x(b,T.stars,A.target.value),children:[s.jsx("option",{"data-loc":"client/src/components/PackagePricingEditor.tsx:236",value:"",children:"â"}),C1e.map(A=>s.jsx("option",{"data-loc":"client/src/components/PackagePricingEditor.tsx:238",value:A,children:A},A))]})})]},w)}),s.jsx("td",{"data-loc":"client/src/components/PackagePricingEditor.tsx:247",className:"p-1.5 border-e-2 border-border",children:s.jsx("input",{"data-loc":"client/src/components/PackagePricingEditor.tsx:248",dir:"ltr",type:"number",min:0,className:"w-full rounded-md border border-border bg-background px-3 py-2 text-center font-bold text-foreground shadow-sm outline-none transition focus:border-[#C9A961] focus:ring-2 focus:ring-[#C9A961]/30",placeholder:"0",value:String(f.price??""),onChange:y=>x(b,"price",y.target.value)})}),s.jsx("td",{"data-loc":"client/src/components/PackagePricingEditor.tsx:258",className:"px-1 py-1.5 text-center",children:s.jsx(Ie,{"data-loc":"client/src/components/PackagePricingEditor.tsx:259",type:"button",variant:"ghost",size:"icon",onClick:()=>h(b),children:s.jsx(ro,{"data-loc":"client/src/components/PackagePricingEditor.tsx:260",className:"w-3.5 h-3.5 text-destructive"})})})]},b))})]})}),s.jsxs(Ie,{"data-loc":"client/src/components/PackagePricingEditor.tsx:270",type:"button",variant:"outline",size:"sm",className:"bg-background",onClick:m,children:[s.jsx(oa,{"data-loc":"client/src/components/PackagePricingEditor.tsx:271",className:"w-3.5 h-3.5 mx-1.5"}),r("Ø¥Ø¶Ø§ÙØ© Ø¨Ø§ÙØ©","Add row")]}),s.jsxs("div",{"data-loc":"client/src/components/PackagePricingEditor.tsx:275",className:"flex items-center gap-1 text-[11px] text-muted-foreground",children:[s.jsx(Tu,{"data-loc":"client/src/components/PackagePricingEditor.tsx:276",className:"w-3 h-3 text-[#C9A961]"}),r("ÙØ¸Ùر ÙØ°Ø§ Ø§ÙØ¬Ø¯ÙÙ ÙÙ
ا ÙÙ ÙÙ ØµÙØØ© Ø§ÙØªÙاصÙÙ ÙÙ
ÙÙ PDF بعÙÙØ§Ù «سعر Ø§ÙØ¨Ø±ÙاÙ
ج».","This table renders on the detail page and PDF under âPackage Priceâ.")]})]})}const P1e=(e,t,n)=>e==="ar"?t:n;function pq(){return{introAr:"",introEn:"",hotels:[],flightGroups:[],documentsText:"",notesText:"",importantNotesText:"",sponsorNoteAr:"",sponsorNoteEn:"",processingTimeAr:"",processingTimeEn:""}}function y7(e){const t=pq();return!e||typeof e!="object"?t:{...t,...e,hotels:Array.isArray(e.hotels)?e.hotels:[],flightGroups:Array.isArray(e.flightGroups)?e.flightGroups:[]}}const DI=["3","4","5","Apart"],Io="w-full rounded-md border border-border bg-background px-3 py-2 text-foreground shadow-sm outline-none transition focus:border-[#C9A961] focus:ring-2 focus:ring-[#C9A961]/30";function D1e({lang:e,currency:t,value:n,onChange:a}){const r=(E,D)=>P1e(e,E,D),i=e==="ar",o=y7(n),c=(E,D)=>a({...o,[E]:D}),l=()=>({makkahHotel:"",makkahStars:"",madinahHotel:"",madinahStars:"",meals:"",priceSingle:"",priceDouble:"",priceTriple:"",priceQuad:""}),d=()=>c("hotels",[...o.hotels,l()]),m=(E,D,S)=>c("hotels",o.hotels.map((R,L)=>L===E?{...R,[D]:S}:R)),h=E=>c("hotels",o.hotels.filter((D,S)=>S!==E)),x=(E,D)=>{const S=E+D;if(S<0||S>=o.hotels.length)return;const R=[...o.hotels];[R[E],R[S]]=[R[S],R[E]],c("hotels",R)},f=()=>c("flightGroups",[...o.flightGroups,{title:"",dates:"",legs:[{label:"",flightNo:"",depart:"",arrive:""}]}]),b=(E,D)=>c("flightGroups",o.flightGroups.map((S,R)=>R===E?{...S,...D}:S)),y=E=>c("flightGroups",o.flightGroups.filter((D,S)=>S!==E)),w=E=>b(E,{legs:[...o.flightGroups[E].legs,{label:"",flightNo:"",depart:"",arrive:""}]}),T=(E,D,S,R)=>b(E,{legs:o.flightGroups[E].legs.map((L,I)=>I===D?{...L,[S]:R}:L)}),A=(E,D)=>b(E,{legs:o.flightGroups[E].legs.filter((S,R)=>R!==D)});return s.jsxs("div",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:142",className:"rounded-xl border-2 border-[#C9A961]/40 p-4 space-y-6 bg-[#C9A961]/[0.04]",children:[s.jsxs("div",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:143",className:"flex items-center gap-2",children:[s.jsx(wu,{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:144",className:"w-5 h-5 text-[#C9A961]"}),s.jsxs("div",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:145",children:[s.jsx("h4",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:146",className:"font-semibold text-foreground text-sm",children:r("ØªÙØ§ØµÙÙ Ø¨Ø±ÙØ§Ù
ج Ø§ÙØ¹Ù
رة","Umrah Program Details")}),s.jsx("p",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:147",className:"text-xs text-muted-foreground",children:r("ÙÙ Ù
ا ØªÙØ¯Ø®ÙÙ Ù
1340ÙØ§ ÙØ¸Ùر ÙÙ ØµÙØØ© Ø§ÙØ¹Ù
رة. ÙØ§ ÙØ¸Ùر Ø´ÙØ¡ ÙÙ
ØªÙØ¯Ø®ÙÙ.","Everything entered here renders on the Umrah page. Nothing shows unless you enter it.")})]})]}),s.jsxs("div",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:157",className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[s.jsxs("label",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:158",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:159",className:"block text-xs font-medium mb-1 text-muted-foreground",children:r("Ù
ÙØ¯Ù
Ø© (عربÙ)","Intro (Arabic)")}),s.jsx("textarea",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:160",dir:"rtl",className:`${Io} min-h-20`,value:o.introAr,onChange:E=>c("introAr",E.target.value)})]}),s.jsxs("label",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:167",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:168",className:"block text-xs font-medium mb-1 text-muted-foreground",children:r("Ù
ÙØ¯Ù
Ø© (Ø¥ÙØ¬ÙÙØ²Ù)","Intro (English)")}),s.jsx("textarea",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:169",dir:"ltr",className:`${Io} min-h-20`,value:o.introEn,onChange:E=>c("introEn",E.target.value)})]})]}),s.jsxs("section",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:179",className:"space-y-2",children:[s.jsxs("div",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:180",className:"flex items-center gap-2 text-sm font-semibold text-foreground",children:[s.jsx(wu,{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:181",className:"w-4 h-4 text-[#C9A961]"}),r("جدÙ٠اÙÙÙØ§Ø¯Ù ÙØ§Ùأسعار","Hotels & Pricing Table")]}),s.jsx("div",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:184",className:"overflow-x-auto rounded-lg border border-border bg-background",children:s.jsxs("table",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:185",className:"w-full text-sm",style:{minWidth:"1080px"},children:[s.jsx("thead",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:186",className:"bg-muted/60",children:s.jsxs("tr",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:187",className:"text-muted-foreground font-semibold uppercase tracking-wide",children:[s.jsx("th",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:188",className:"px-2 py-2 text-start border-e border-border min-w-[180px]",children:r("ÙÙØ¯Ù Ù
ÙØ©","Makkah Hotel")}),s.jsx("th",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:189",className:"px-2 py-2 text-center border-e border-border w-[70px]",children:r("ÙØ¬ÙÙ
","Stars")}),s.jsx("th",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:190",className:"px-2 py-2 text-start border-e border-border min-w-[180px]",children:r("ÙÙØ¯Ù اÙÙ
دÙÙØ©","Madinah Hotel")}),s.jsx("th",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:191",className:"px-2 py-2 text-center border-e border-border w-[70px]",children:r("ÙØ¬ÙÙ
","Stars")}),s.jsx("th",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:192",className:"px-2 py-2 text-start border-e border-border min-w-[120px]",children:r("اÙÙØ¬Ø¨Ø§Øª","Meals")}),s.jsx("th",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:193",className:"px-2 py-2 text-center border-e border-border w-[80px]",children:r("Ù
ÙØ±Ø¯","Single")}),s.jsx("th",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:194",className:"px-2 py-2 text-center border-e border-border w-[80px]",children:r("Ø«ÙØ§Ø¦Ù","Double")}),s.jsx("th",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:195",className:"px-2 py-2 text-center border-e border-border w-[80px]",children:r("Ø«ÙØ§Ø«Ù","Triple")}),s.jsx("th",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:196",className:"px-2 py-2 text-center border-e border-border w-[80px]",children:r("رباعÙ","Quad")}),s.jsx("th",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:197",className:"px-1 py-2 w-[88px]"})]})}),s.jsx("tbody",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:200",children:o.hotels.length===0?s.jsx("tr",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:202",children:s.jsx("td",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:203",colSpan:10,className:"text-center py-6 text-muted-foreground",children:r("ÙØ§ ØªÙØ¬Ø¯ ÙÙØ§Ø¯Ù بعد. أض٠صÙÙØ§Ù.","No hotels yet. Add a row.")}
1340)}):o.hotels.map((E,D)=>s.jsxs("tr",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:209",className:`border-t border-border align-top ${D%2===1?"bg-muted/25":""}`,children:[s.jsx("td",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:210",className:"p-1.5 border-e border-border",children:s.jsx("textarea",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:211",dir:i?"rtl":"ltr",className:`${Io} min-h-[44px]`,placeholder:r("اسÙ
/Ø®ÙØ§Ø±Ø§Øª ÙÙØ¯Ù Ù
ÙØ©","Makkah hotel options"),value:E.makkahHotel,onChange:S=>m(D,"makkahHotel",S.target.value)})}),s.jsx("td",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:219",className:"p-1.5 border-e border-border",children:s.jsxs("select",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:220",className:Io,value:E.makkahStars,onChange:S=>m(D,"makkahStars",S.target.value),children:[s.jsx("option",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:221",value:"",children:"â"}),DI.map(S=>s.jsx("option",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:223",value:S,children:S},S))]})}),s.jsx("td",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:227",className:"p-1.5 border-e border-border",children:s.jsx("textarea",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:228",dir:i?"rtl":"ltr",className:`${Io} min-h-[44px]`,placeholder:r("اسÙ
ÙÙØ¯Ù اÙÙ
دÙÙØ© (Ø§Ø®ØªÙØ§Ø±Ù)","Madinah hotel (optional)"),value:E.madinahHotel,onChange:S=>m(D,"madinahHotel",S.target.value)})}),s.jsx("td",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:236",className:"p-1.5 border-e border-border",children:s.jsxs("select",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:237",className:Io,value:E.madinahStars,onChange:S=>m(D,"madinahStars",S.target.value),children:[s.jsx("option",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:238",value:"",children:"â"}),DI.map(S=>s.jsx("option",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:240",value:S,children:S},S))]})}),s.jsx("td",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:244",className:"p-1.5 border-e border-border",children:s.jsx("input",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:245",dir:i?"rtl":"ltr",className:Io,placeholder:r("بدÙÙ / ÙØ·Ùر","None / breakfast"),value:E.meals,onChange:S=>m(D,"meals",S.target.value)})}),["priceSingle","priceDouble","priceTriple","priceQuad"].map(S=>s.jsx("td",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:254",className:"p-1.5 border-e border-border",children:s.jsx("input",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:255",dir:"ltr",type:"number",min:0,className:`${Io} text-center font-semibold`,placeholder:"0",value:E[S],onChange:R=>m(D,S,R.target.value)})},S)),s.jsx("td",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:266",className:"px-1 py-1.5",children:s.jsxs("div",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:267",className:"flex items-center justify-center gap-0.5",children:[s.jsx(Ie,{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:268",type:"button",variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>x(D,-1),children:s.jsx(Mre,{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:269",className:"w-3.5 h-3.5"})}),s.jsx(Ie,{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:271",type:"button",variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>x(D,1),children:s.jsx(RU,{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:272",className:"w-3.5 h-3.5"})}),s.jsx(Ie,{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:274",type:"button",variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>h(D),children:s.jsx(ro,{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:275",className:"w-3.5 h-3.5 text-destructive"})})]})})]},D))})]})}),s.jsxs("div",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:285",className:"flex items-center justify-between",children:[s.jsxs(Ie,{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:286",type:"button",variant:"outline",size:"sm",className:"bg-background",onClick:d,children:[s.jsx(oa,{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:287",className:"w-3.5 h-3.5 mx-1.5"}),r("Ø¥Ø¶Ø§ÙØ© ÙÙØ¯Ù","Add hotel")]}),s.jsx("span",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:290",className:"text-[11px] text-muted-foreground",children:r(`Ø§ÙØ£Ø³Ø¹Ø§Ø± ب٠${t||"JOD"}
1340`,`Prices in ${t||"JOD"}`)})]})]}),s.jsxs("section",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:295",className:"space-y-3",children:[s.jsxs("div",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:296",className:"flex items-center gap-2 text-sm font-semibold text-foreground",children:[s.jsx(Hs,{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:297",className:"w-4 h-4 text-[#C9A961]"}),r("Ù
ÙØ§Ø¹Ùد Ø§ÙØ±ØÙات Ø§ÙØ¬ÙÙØ©","Flight Schedule")]}),o.flightGroups.map((E,D)=>s.jsxs("div",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:301",className:"rounded-lg border border-border bg-background p-3 space-y-2",children:[s.jsxs("div",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:302",className:"grid grid-cols-1 sm:grid-cols-[1fr_1fr_auto] gap-2 items-end",children:[s.jsxs("label",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:303",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:304",className:"block text-[11px] text-muted-foreground mb-1",children:r("عÙÙØ§Ù اÙÙ
جÙ
ÙØ¹Ø©","Group title")}),s.jsx(Ee,{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:305",dir:i?"rtl":"ltr",placeholder:r("Ù
ثاÙ: عÙ
ا٠â Ù
دÙÙØ© â Ø¬Ø¯Ø© â Ø¹Ù
اÙ","e.g. Amman â Madinah â Jeddah â Amman"),value:E.title,onChange:S=>b(D,{title:S.target.value})})]}),s.jsxs("label",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:312",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:313",className:"block text-[11px] text-muted-foreground mb-1",children:r("Ø§ÙØªÙØ§Ø±ÙØ®","Dates")}),s.jsx(Ee,{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:314",dir:"ltr",placeholder:"07/07, 07/21, 08/04",value:E.dates,onChange:S=>b(D,{dates:S.target.value})})]}),s.jsx(Ie,{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:321",type:"button",variant:"ghost",size:"icon",onClick:()=>y(D),children:s.jsx(ro,{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:322",className:"w-4 h-4 text-destructive"})})]}),s.jsx("div",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:325",className:"overflow-x-auto rounded-md border border-border",children:s.jsxs("table",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:326",className:"w-full text-sm",style:{minWidth:"640px"},children:[s.jsx("thead",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:327",className:"bg-muted/50 text-muted-foreground font-semibold",children:s.jsxs("tr",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:328",children:[s.jsx("th",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:329",className:"px-2 py-1.5 text-start border-e border-border min-w-[160px]",children:r("Ø§ÙØ¨ÙاÙ","Leg")}),s.jsx("th",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:330",className:"px-2 py-1.5 text-center border-e border-border w-[110px]",children:r("رÙÙ
Ø§ÙØ±ØÙØ©","Flight #")}),s.jsx("th",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:331",className:"px-2 py-1.5 text-center border-e border-border w-[100px]",children:r("Ø§ÙØ¥ÙÙØ§Ø¹","Departs")}),s.jsx("th",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:332",className:"px-2 py-1.5 text-center border-e border-border w-[100px]",children:r("اÙÙØµÙÙ","Arrives")}),s.jsx("th",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:333",className:"px-1 py-1.5 w-[44px]"})]})}),s.jsx("tbody",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:336",children:E.legs.map((S,R)=>s.jsxs("tr",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:338",className:"border-t border-border",children:[s.jsx("td",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:339",className:"p-1.5 border-e border-border",children:s.jsx("input",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:340",dir:i?"rtl":"ltr",className:Io,placeholder:r("عÙ
Ø§Ù â Ø¬Ø¯Ø©","Amman â Jeddah"),value:S.label,onChange:L=>T(D,R,"label",L.target.value)})}),s.jsx("td",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:342",className:"p-1.5 border-e border-border",children:s.jsx("input",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:343",dir:"ltr",className:`${Io} text-center`,placeholder:"RJ 706",value:S.flightNo,onChange:L=>T(D,R,"flightNo",L.target.value)})}),s.jsx("td",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:345",className:"p-1.5 border-e border-border",children:s.jsx("input",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:346",dir:"ltr",className:`${Io} text-center`,placeholder:"17:30",value:S.depart,onChange:L=>T(D,R,"depart",L.target.value)})}),s.jsx("td",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:348",className:"p-1.5 border-e border-border",children:s.jsx("input",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:349",dir:"ltr",className:`${Io} text-center`,placeholder:"19:40",value:S.arrive,onChange:L=>T(D,R,"arrive",L.target.value)})}),s.jsx("td",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:351",className:"px-1 py-1.5 text-center",children:s.jsx(Ie,{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:352",type:"button",variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>A(D,R),children:s.jsx(ro,{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:353",className:"w-3.5 h-3.5 text-destructive"})})})]},R))})]})}),s.jsxs(Ie,{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:361",type:"button",variant:"outline",size:"sm",className:"bg-background",onClick:()=>w(D),children:[s.jsx(oa,{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:362",className:"w-3.5 h-3.5 mx-1.5"}),r("Ø¥Ø¶Ø§ÙØ© رØÙØ©","Add leg")]})]},D)),s.jsxs(Ie,{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:367",type:"button",variant:"outline",size:"sm",className:"bg-background",onClick:f,children:[s.jsx(oa,{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:368",className:"w-3.5 h-3.5 mx-1.5"}),r("Ø¥Ø¶Ø§ÙØ© Ù
جÙ
ÙØ¹Ø© رØÙات","Add flight group")]})]}),s.jsxs("section",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:374",className:"space-y-3",children:[s.jsxs("div",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:375",className:"flex items-center gap-2 text-sm font-semibold text-foreground",children:[s.jsx(ji,{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:376",className:"w-4 h-4 text-[#C9A961]"}),r("اÙÙØ«Ø§Ø¦Ù ÙØ§ÙÙ
ÙØ§ØØ¸Ø§Øª","Documents & Notes")]}),s.jsx(yN,{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:379",label:r("اÙÙØ«Ø§Ø¦Ù اÙÙ
Ø·ÙÙØ¨Ø© (سطر ÙÙÙ Ø¨ÙØ¯: عرب٠| Ø¥ÙØ¬ÙÙØ²Ù)","Required documents (one per line: AR | EN)"),value:o.documentsText,onChange:E=>c("documentsText",E),placeholder:i?"Ø¬ÙØ§Ø² Ø³ÙØ± سار٠7 Ø£Ø´ÙØ± | Passport valid 7 months":"Passport valid 7 months | Ø¬ÙØ§Ø² Ø³ÙØ± سار٠7 Ø£Ø´ÙØ±"}),s.jsx(yN,{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:385",label:r("Ù
ÙØ§ØØ¸Ø§Øª (سطر ÙÙÙ Ø¨ÙØ¯: عرب٠| Ø¥ÙØ¬ÙÙØ²Ù)","Notes (one per line: AR | EN)"),value:o.notesText,onChange:E=>c("notesText",E)}),s.jsx(yN,{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:390",label:r("Ù
ÙØ§ØØ¸Ø§Øª ÙØ§Ù
Ø© (سطر ÙÙÙ Ø¨ÙØ¯: عرب٠| Ø¥ÙØ¬ÙÙØ²Ù)","Important notes (one per line: AR | EN)"),value:o.importantNotesText,onChange:E=>c("importantNotesText",E)})]}),s.jsxs("section",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:398",className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[s.jsxs("label",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:399",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:400",className:"block text-xs font-medium mb-1 text-muted-foreground",children:r("شرط اÙÙÙÙÙ (عربÙ)","Sponsor note (Arabic)")}),s.jsx("textarea",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:401",dir:"rtl",className:`${Io} min-h-16`,value:o.sponsorNoteAr,onChange:E=>c("sponsorNoteAr",E.target.value)})]}),s.jsxs("label",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:403",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:404",className:"block text-xs font-medium mb-1 text-muted-foreground",children:r("شرط اÙÙÙÙÙ (Ø¥ÙØ¬ÙÙØ²Ù)","Sponsor note (English)")}),s.jsx("textarea",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:405",dir:"ltr",className:`${Io} min-h-16`,value:o.sponsorNoteEn,onChange:E=>c("sponsorNoteEn",E.target.value)})]}),s.jsxs("label",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:407",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:408",className:"block text-xs font-medium mb-1 text-muted-foreground",children:r("Ù
دة إصدار Ø§ÙØªØ£Ø´Ùرة (عربÙ)","Visa processing time (Arabic)")}),s.jsx(Ee,{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:409",dir:"rtl",placeholder:"48-72 ساعة",value:o.processingTimeAr,onChange:E=>c("processingTimeAr",E.target.value)})]}),s.jsxs("label",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:411",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:412",className:"block text-xs font-medium mb-1 text-muted-foreground",children:r("Ù
دة إصدار Ø§ÙØªØ£Ø´Ùرة (Ø¥ÙØ¬ÙÙØ²Ù)","Visa processing time (English)")}),s.jsx(Ee,{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:413",dir:"ltr",placeholder:"48-72 hours",value:o.processingTimeEn,onChange:E=>c("processingTimeEn",E.target.value)})]})]})]})}function yN({label:e,value:t,onChange:n,placeholder:a}){return s.jsxs("label",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:432",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:433",className:"block text-xs font-medium mb-1 text-muted-foreground",children:e}),s.jsx("textarea",{"data-loc":"client/src/components/UmrahDetailsEditor.tsx:434",className:`${Io} min-h-24`,value:t,placeholder:a,onChange:r=>n(r.target.value)})]})}function Ly({source:e,from:t,to:n,uiLang:a,onResult:r,className:i}){const o=(d,m)=>a==="ar"?d:m,c=Pe.admin.translateFields.useMutation({onSuccess:d=>{const m=d?.items?.[0]??"";m?(r(m),Le.success(o("تÙ
ت Ø§ÙØªØ±Ø¬Ù
Ø©.","Translated."))):Le.error(o("ØªØ¹Ø°ÙØ±Øª Ø§ÙØªØ±Ø¬Ù
Ø©.","Could not translate."))},onError:d=>Le.error(d.message||o("ÙØ´Ùت Ø§ÙØªØ±Ø¬Ù
Ø©.","Translation failed."))}),l=n==="en"?o("ترجÙ
Ø© â Ø¥ÙجÙÙØ²Ù","â EN"):o("ترجÙ
Ø© â Ø¹Ø±Ø¨Ù","â AR");return s.jsxs(Ie,{"data-loc":"client/src/components/TranslateButton.tsx:47",type:"button",variant:"ghost",size:"sm",className:`h-6 px-2 text-[11px] text-primary hover:text-primary ${i??""}`,disabled:c.isPending,onClick:()=>{const d=(e??"").trim();if(!d){Le.error(o("ÙØ§ ÙÙØ¬Ø¯ ÙØµ Ù
صدر ÙÙØªØ±Ø¬Ù
Ø©.","No source text to translate."));return}c.mutate({texts:[d],from:t,to:n})},title:o("ترجÙ
Ø© تÙÙØ§Ø¦ÙØ© Ø¨Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ","AI auto-translate"),children:[c.isPending?s.jsx(ft,{"data-loc":"client/src/components/TranslateButton.tsx:64",className:"w-3 h-3 mx-1 animate-spin"}):s.jsx(kl,{"data-loc":"client/src/components/TranslateButton.tsx:66",className:"w-3 h-3 mx-1"}),l]})}const Om={visa_free:{ar:"بدÙÙ ØªØ£Ø´ÙØ±Ø©",en:"Visa-Free",badge:"bg-emerald-100 text-emerald-800 dark:bg-emerald-950 dark:text-emerald-300",dot:"bg-emerald-500",tone:"easy"},visa_on_arrival:{ar:"ØªØ£Ø´ÙØ±Ø© Ø¹ÙØ¯ اÙÙØµÙÙ",en:"Visa on Arrival",badge:"bg-teal-100 text-teal-800 dark:bg-teal-950 dar
1340k:text-teal-300",dot:"bg-teal-500",tone:"easy"},evisa:{ar:"ØªØ£Ø´ÙØ±Ø© Ø¥ÙÙØªØ±ÙÙÙØ©",en:"e-Visa",badge:"bg-sky-100 text-sky-800 dark:bg-sky-950 dark:text-sky-300",dot:"bg-sky-500",tone:"medium"},eta:{ar:"ØªØµØ±ÙØ Ø³ÙØ± Ø¥ÙÙØªØ±ÙÙÙ (ETA)",en:"Travel Authorization (ETA)",badge:"bg-cyan-100 text-cyan-800 dark:bg-cyan-950 dark:text-cyan-300",dot:"bg-cyan-500",tone:"medium"},conditional_evisa:{ar:"ØªØ£Ø´ÙØ±Ø© Ø¥ÙÙØªØ±ÙÙÙØ© Ù
Ø´Ø±ÙØ·Ø©",en:"Conditional e-Visa",badge:"bg-amber-100 text-amber-800 dark:bg-amber-950 dark:text-amber-300",dot:"bg-amber-500",tone:"medium"},visa_required:{ar:"ØªØ£Ø´ÙØ±Ø© Ù
Ø·ÙÙØ¨Ø©",en:"Visa Required",badge:"bg-orange-100 text-orange-800 dark:bg-orange-950 dark:text-orange-300",dot:"bg-orange-500",tone:"hard"},embassy_required:{ar:"ØªØ£Ø´ÙØ±Ø© عبر Ø§ÙØ³Ùارة",en:"Embassy Visa Required",badge:"bg-rose-100 text-rose-800 dark:bg-rose-950 dark:text-rose-300",dot:"bg-rose-500",tone:"hard"},not_supported:{ar:"ØºÙØ± Ù
ØªØ§Ø ØØ§ÙÙØ§Ù",en:"Not Available",badge:"bg-slate-200 text-slate-700 dark:bg-slate-800 dark:text-slate-300",dot:"bg-slate-400",tone:"neutral"},check_required:{ar:"ÙÙØ²Ù
Ø§ÙØªØÙÙ",en:"Check Required",badge:"bg-slate-200 text-slate-700 dark:bg-slate-800 dark:text-slate-300",dot:"bg-slate-400",tone:"neutral"}},yo={new:{ar:"Ø¬Ø¯ÙØ¯",en:"New",badge:"bg-sky-100 text-sky-800 dark:bg-sky-950 dark:text-sky-300"},in_review:{ar:"ÙÙØ¯ اÙÙ
راجعة",en:"In Review",badge:"bg-amber-100 text-amber-800 dark:bg-amber-950 dark:text-amber-300"},documents_requested:{ar:"Ø¨Ø§ÙØªØ¸Ø§Ø± Ù
Ø³ØªÙØ¯Ø§Øª",en:"Documents Requested",badge:"bg-orange-100 text-orange-800 dark:bg-orange-950 dar
1340k:text-orange-300"},processing:{ar:"ÙÙØ¯ اÙÙ
Ø¹Ø§ÙØ¬Ø©",en:"Processing",badge:"bg-indigo-100 text-indigo-800 dark:bg-indigo-950 dark:text-indigo-300"},issued:{ar:"صدرت Ø§ÙØªØ£Ø´Ùرة",en:"Issued",badge:"bg-emerald-100 text-emerald-800 dark:bg-emerald-950 dark:text-emerald-300"},rejected:{ar:"Ù
رÙÙØ¶",en:"Rejected",badge:"bg-rose-100 text-rose-800 dark:bg-rose-950 dark:text-rose-300"},closed:{ar:"Ù
غÙÙ",en:"Closed",badge:"bg-slate-200 text-slate-700 dark:bg-slate-800 dark:text-slate-300"}},Xg={verified:{ar:"Ù
ÙØ«ÙÙ",en:"Verified",badge:"bg-emerald-100 text-emerald-800 dark:bg-emerald-950 dark:text-emerald-300"},needs_update:{ar:"ÙØØªØ§Ø¬ ØªØØ¯ÙثاÙ",en:"Needs Update",badge:"bg-amber-100 text-amber-800 dark:bg-amber-950 dark:text-amber-300"},needs_manual_review:{ar:"Ù
راجعة ÙØ¯ÙÙØ©",en:"Manual Review",badge:"bg-amber-100 text-amber-800 dark:bg-amber-950 dark:text-amber-300"},source_expired:{ar:"اÙÙ
صدر Ù
ÙØªÙÙ",en:"Source Expired",badge:"bg-rose-100 text-rose-800 dark:bg-rose-950 dark:text-rose-300"},embassy_check_required:{ar:"ÙÙØ²Ù
تأÙÙØ¯ Ø§ÙØ³Ùارة",en:"Embassy Check",badge:"bg-orange-100 text-orange-800 dark:bg-orange-950 dar
1340k:text-orange-300"}},cg={gcc:{ar:"Ø§ÙØ®ÙÙØ¬ Ø§ÙØ¹Ø±Ø¨Ù",en:"GCC"},middle_east:{ar:"Ø§ÙØ´Ø±Ù Ø§ÙØ£Ùسط",en:"Middle East"},europe:{ar:"Ø£ÙØ±Ùبا",en:"Europe"},americas:{ar:"Ø§ÙØ£Ù
رÙÙØªØ§Ù",en:"Americas"},asia:{ar:"Ø¢Ø³ÙØ§",en:"Asia"},caucasus:{ar:"اÙÙÙÙØ§Ø²",en:"Caucasus"},africa:{ar:"Ø£ÙØ±ÙÙÙØ§",en:"Africa"}},R1e=["visa_free","visa_on_arrival","evisa","eta","conditional_evisa","visa_required","embassy_required","not_supported","check_required"],s6=["new","in_review","documents_requested","processing","issued","rejected","closed"],I1e=["verified","needs_update","needs_manual_review","source_expired","embassy_check_required"],Is=(e,t,n)=>e==="ar"?t:n;function M1e({lang:e}){const t=e==="ar",[n,a]=k.useState("all"),[r,i]=k.useState(""),[o,c]=k.useState(null),{data:l,isLoading:d}=Pe.visa.admin.listApplications.useQuery(n==="all"?void 0:{status:n}),m=k.useMemo(()=>{const h=r.trim().toLowerCase();return(l??[]).filter(x=>h?x.fullName?.toLowerCase().includes(h)||x.reference?.toLowerCase().includes(h)||x.phone?.toLowerCase().includes(h)||x.destinationCode?.toLowerCase().includes(h):!0)},[l,r]);return s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:43",children:[s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:44",className:"flex flex-wrap items-center gap-2 mb-5",children:s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:45",className:"relative flex-1 min-w-48",children:[s.jsx(so,{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:46",className:`absolute top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground ${t?"right-3":"left-3"}`}),s.jsx("input",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:47",value:r,onChange:h=>i(h.target.value),placeholder:Is(e,"Ø¨ØØ« Ø¨Ø§ÙØ§Ø³Ù
Ø£Ù Ø§ÙØ±ÙÙ
اÙÙ
رجعÙ...","Search by name or reference..."),className:`w-full h-10 rounded-lg border border-border bg-background text-sm outline-none focus:border-primary ${t?"pr-9 pl-3":"pl-9 pr-3"}`})]})}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:56",className:"flex flex-wrap gap-2 mb-5",children:[s.jsx(RI,{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:57",active:n==="all",onClick:()=>a("all"),children:Is(e,"اÙÙÙ","All")}),s6.map(h=>s.jsx(RI,{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:61",active:n===h,onClick:()=>a(h),children:t?yo[h].ar:yo[h].en},h))]}),d?s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:68",className:"flex justify-center py-16",children:s.jsx(ft,{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:69",className:"w-7 h-7 animate-spin text-primary"})}):m.length===0?s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:72",className:"text-center py-16 text-muted-foreground",children:Is(e,"ÙØ§ ØªÙØ¬Ø¯ Ø·ÙØ¨Ø§Øª.","No applications.")}):s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:74",className:"overflow-x-auto rounded-xl border border-border",children:s.jsxs("table",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:75",className:"w-full text-sm",children:[s.jsx("thead",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:76",className:"bg-muted/50 text-muted-foreground",children:s.jsxs("tr",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:77",children:[s.jsx(P1,{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:78",children:Is(e,"Ø§ÙØ±ÙÙ
اÙÙ
رجعÙ","Reference")}),s.jsx(P1,{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:79",children:Is(e,"Ø§ÙØ§Ø³Ù
","Name")}),s.jsx(P1,{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:80",children:Is(e,"اÙÙØ¬ÙØ©","Destination")}),s.jsx(P1,{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:81",children:Is(e,"Ø§ÙØØ§ÙØ©","Status")}),s.jsx(P1,{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:82",children:Is(e,"Ø§ÙØªØ§Ø±ÙØ®","Date")})]})}),s.jsx("tbody",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:85",children:m.map(h=>s.jsxs("tr",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:87",onClick:()=>c(h.id),className:"border-t border-border hover:bg-muted/40 cursor-pointer transition-colors",children:[s.jsx("td",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:92",className:"px-4 py-3 font-mono text-xs",children:h.reference}),s.jsx("td",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:93",className:"px-4 py-3 font-medium",children:h.fullName}),s.jsx("td",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:94",className:"px-4 py-3",children:h.destinationCode}),s.jsx("td",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:95",className:"px-4 py-3",children:s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:96",className:`inline-flex px-2 py-0.5 rounded-full text-xs font-semibold ${yo[h.status]?.badge??""}`,children:t?yo[h.status]?.ar:yo[h.status]?.en})}),s.jsx("td",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:100",className:"px-4 py-3 text-muted-foreground",children:h.createdAt?new Date(h.createdAt).toLocaleDateString():"â"})]}
1340,h.id))})]})}),o!==null&&s.jsx(L1e,{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:111",id:o,lang:e,onClose:()=>c(null)})]})}function L1e({id:e,lang:t,onClose:n}){const a=t==="ar",r=Pe.useUtils(),{data:i,isLoading:o}=Pe.visa.admin.getApplication.useQuery({id:e}),{data:c}=Pe.visa.admin.listAgents.useQuery(),l=Pe.visa.admin.updateApplication.useMutation({onSuccess:()=>{r.visa.admin.getApplication.invalidate({id:e}),r.visa.admin.listApplications.invalidate(),Le.success(Is(t,"تÙ
Ø§ÙØªØØ¯ÙØ«","Updated"))},onError:()=>Le.error(Is(t,"ØªØ¹Ø°ÙØ± Ø§ÙØªØØ¯ÙØ«","Update failed"))}),[d,m]=k.useState("");return s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:134",className:"fixed inset-0 z-50 flex",dir:a?"rtl":"ltr",children:[s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:135",className:"absolute inset-0 bg-black/40",onClick:n}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:136",className:`relative ml-auto h-full w-full max-w-md bg-card shadow-xl overflow-y-auto ${a?"mr-auto ml-0":""}`,children:[s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:137",className:"sticky top-0 bg-card border-b border-border p-4 flex items-center justify-between",children:[s.jsx("h3",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:138",className:"font-display text-xl font-bold",children:Is(t,"ØªÙØ§ØµÙÙ Ø§ÙØ·Ùب","Application Details")}),s.jsx("button",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:139",onClick:n,className:"p-1.5 rounded-lg hover:bg-muted",children:s.jsx(ks,{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:140",className:"w-5 h-5"})})]}),o||!i?s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:145",className:"flex justify-center py-16",children:s.jsx(ft,{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:146",className:"w-6 h-6 animate-spin text-primary"})}):s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:149",className:"p-4 space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:150",className:"rounded-lg bg-muted/50 p-3 space-y-1.5 text-sm",children:[s.jsx(Rp,{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:151",k:Is(t,"Ø§ÙØ±ÙÙ
اÙÙ
رجعÙ","Reference"),v:i.reference,mono:!0}),s.jsx(Rp,{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:152",k:Is(t,"Ø§ÙØ§Ø³Ù
","Name"),v:i.fullName}),s.jsx(Rp,{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:153",k:Is(t,"اÙÙØ§ØªÙ","Phone"),v:i.phone}),s.jsx(Rp,{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:154",k:Is(t,"Ø§ÙØ¨Ø±Ùد","Email"),v:i.email||"â"}),s.jsx(Rp,{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:155",k:Is(t,"اÙÙØ¬ÙØ©","Destination"),v:i.destinationCode}),s.jsx(Rp,{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:156",k:Is(t,"ÙÙØ¹ Ø§ÙØ¬Ùاز","Passport"),v:i.travelerProfileCode}),s.jsx(Rp,{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:157",k:Is(t,"رÙÙ
Ø§ÙØ¬Ùاز","Passport No."),v:i.passportNumber||"â"}),s.jsx(Rp,{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:158",k:Is(t,"ØªØ§Ø±ÙØ® Ø§ÙØ³Ùر","Travel Date"),v:i.travelDate||"â"})]}),i.customerNote&&s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:162",className:"text-sm",children:[s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:163",className:"font-semibold mb-1",children:Is(t,"Ù
ÙØ§ØØ¸Ø© Ø§ÙØ¹Ù
ÙÙ","Customer note")}),s.jsx("p",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:164",className:"text-muted-foreground",children:i.customerNote})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:169",children:[s.jsx("label",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:170",className:"block text-sm font-semibold mb-1",children:Is(t,"Ø§ÙØØ§ÙØ©","Status")}),s.jsx("select",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:171",className:"w-full h-10 rounded-lg border border-border bg-background px-3 text-sm",value:i.status,onChange:h=>l.mutate({id:e,status:h.target.value}),children:s6.map(h=>s.jsx("option",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:177",value:h,children:a?yo[h].ar:yo[h].en},h))})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:185",children:[s.jsx("label",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:186",className:"block text-sm font-semibold mb-1",children:Is(t,"Ø¥Ø³ÙØ§Ø¯ Ø¥ÙÙ ÙÙÙÙ","Assign to agent")}),s.jsxs("select",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:187",className:"w-full h-10 rounded-lg border border-border bg-background px-3 text-sm",value:i.assignedAgentId??"",onChange:h=>l.mutate({id:e,assignedAgentId:h.target.value?Number(h.target.value):null}),children:[s.jsx("option",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:194",value:"",children:Is(t,"بدÙÙ","Unassigned")}),(c??[]).map(h=>s.jsxs("option",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:196",value:h.id,children:[h.name," ",h.region?`â ${h.region}`:""]},h.id))]})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:204",children:[s.jsx("label",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:205",className:"block text-sm font-semibold mb-1",children:Is(t,"Ù
ÙØ§ØØ¸Ø© داخÙÙØ©","Internal note")}),s.jsx("textarea",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:206",className:"w-full min-h-20 rounded-lg border border-border bg-background p-3 text-sm",defaultValue:i.internalNote||"",onChange:h=>m(h.target.value)}),s.jsx("button",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:211",onClick:()=>l.mutate({id:e,internalNote:d}),disabled:l.isPending,className:"mt-2 px-4 py-2 rounded-full bg-primary text-primary-foreground text-sm font-semibold disabled:opacity-50",children:Is(t,"ØÙظ اÙÙ
ÙØ§ØØ¸Ø©","Save note")})]}),i.documents&&i.documents.length>0&&s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:222",children:[s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:223",className:"font-semibold text-sm mb-2",children:Is(t,"اÙÙ
Ø³ØªÙØ¯Ø§Øª","Documents")}),s.jsx("ul",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:224",className:"space-y-1.5",children:i.documents.map(h=>s.jsxs("li",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:226",className:"flex items-center gap-2 text-sm",children:[s.jsx(ji,{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:227",className:"w-4 h-4 text-muted-foreground"}),s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:228",className:"flex-1 truncate",children:h.fileName}),s.jsxs("a",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:229",href:h.url,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline inline-flex items-center gap-1",children:[s.jsx(Sd,{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:230",className:"w-3.5 h-3.5"}),Is(t,"تØÙ
ÙÙ","Open")]})]}
1340,h.id))})]})]})]})]})}function P1({children:e}){return s.jsx("th",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:246",className:"px-4 py-3 text-start font-semibold whitespace-nowrap",children:e})}function Rp({k:e,v:t,mono:n}){return s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:250",className:"flex items-center justify-between gap-3",children:[s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:251",className:"text-muted-foreground",children:e}),s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:252",className:`font-medium truncate ${n?"font-mono text-xs":""}`,children:t})]})}function RI({active:e,onClick:t,children:n}){return s.jsx("button",{"data-loc":"client/src/components/visa/admin/VisaApplicationsTab.tsx:258",onClick:t,className:`px-3 py-1.5 rounded-full text-xs font-medium border transition-colors ${e?"bg-foreground text-background border-foreground":"border-border hover:border-primary/50"}`,children:n})}const lr=(e,t,n)=>e==="ar"?t:n,O1e=[{value:"GCC",ar:"Ø§ÙØ®ÙÙØ¬",en:"GCC"},{value:"Turkey",ar:"ترÙÙØ§",en:"Turkey"},{value:"Europe",ar:"Ø£ÙØ±Ùبا",en:"Europe"},{value:"Americas",ar:"Ø§ÙØ£Ù
رÙÙØªØ§Ù",en:"Americas"},{value:"EastAsia",ar:"Ø´Ø±Ù Ø¢Ø³ÙØ§",en:"East Asia"},{value:"Caucasus",ar:"اÙÙÙÙØ§Ø²",en:"Caucasus"},{value:"Russia",ar:"Ø±ÙØ³Ùا",en:"Russia"},{value:"Africa",ar:"Ø£ÙØ±ÙÙÙØ§",en:"Africa"},{value:"Other",ar:"أخرÙ",en:"Other"}],B1e=()=>({countryCode:"",nameAr:"",nameEn:"",region:"Other",flag:"",sortOrder:0,active:!0,isNew:!0}),lg="w-full h-10 rounded-lg border border-border bg-background px-3 text-sm outline-none focus:border-primary";function F1e({lang:e}){const t=e==="ar",n=Pe.useUtils(),{data:a,isLoading:r}=Pe.visa.admin.listDestinations.useQuery(),[i,o]=k.useState(null),c=Pe.visa.admin.upsertDestination.useMutation(),l=()=>o(B1e()),d=x=>o({countryCode:x.countryCode,nameAr:x.nameAr||"",nameEn:x.nameEn||"",region:x.region||"Other",flag:x.flag||"",sortOrder:x.sortOrder||0,active:!!x.active,isNew:!1}),m=async()=>{if(!i)return;const x=i.countryCode.trim().toUpperCase();if(!x||!i.nameAr.trim()||!i.nameEn.trim()||!i.region){Le.error(lr(e,"رÙ
ز Ø§ÙØ¯ÙÙØ© ÙØ§ÙاسÙ
Ø§Ù ÙØ§ÙÙ
ÙØ·ÙØ© Ù
Ø·ÙÙØ¨Ø©.","Country code, both names, and region are required."));return}if(i.isNew&&a?.some(f=>f.countryCode.toUpperCase()===x)){Le.error(lr(e,`رÙ
ز Ø§ÙØ¯ÙÙØ© "${x}" Ù
ستخدÙ
باÙÙØ¹Ù. استخدÙ
زر Ø§ÙØªØ¹Ø¯ÙÙ Ø¨Ø¯ÙØ§Ù Ù
٠ذÙÙ.`,`Country code "${x}" already exists. Use Edit instead.`));return}try{await c.mutateAsync({countryCode:x,nameAr:i.nameAr.trim(),nameEn:i.nameEn.trim(),region:i.region,flag:i.flag.trim()||null,sortOrder:Number(i.sortOrder)||0,active:i.active}),n.visa.admin.listDestinations.invalidate(),n.visa.meta.invalidate(),n.visa.publicRules.invalidate(),Le.success(i.isNew?lr(e,"تÙ
ت Ø¥Ø¶Ø§ÙØ© Ø§ÙØ¯ÙÙØ©. Ø¹Ø¨ÙØ¦ Ù
ØªØ·ÙØ¨Ø§ØªÙا Ù
Ù Ø§ÙØ¬Ø¯ÙÙ Ø¨Ø§ÙØ£Ø³ÙÙ.","Country added. Fill its requirements in the table below."):lr(e,"تÙ
ØªØØ¯ÙØ« Ø§ÙØ¯ÙÙØ©.","Country updated.")),o(null)}catch{Le.error(lr(e,"ØªØ¹Ø°ÙØ± Ø§ÙØÙØ¸.","Save failed."))}},h=async x=>{try{await c.mutateAsync({countryCode:x.countryCode,nameAr:x.nameAr,nameEn:x.nameEn,region:x.region,flag:x.flag||null,sortOrder:x.sortOrder||0,active:!x.active}),n.visa.admin.listDestinations.invalidate(),n.visa.meta.invalidate(),Le.success(lr(e,"تÙ
ØªØØ¯ÙØ« Ø§ÙØØ§ÙØ©.","Status updated."))}catch{Le.error(lr(e,"ØªØ¹Ø°ÙØ± ØªØØ¯ÙØ« Ø§ÙØØ§ÙØ©.","Could not update status."))}};return s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:134",dir:t?"rtl":"ltr",className:"mb-6 rounded-xl border border-border bg-card",children:[s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:135",className:"flex items-center justify-between gap-3 flex-wrap px-4 py-3 border-b border-border",children:[s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:136",className:"flex items-center gap-2",children:[s.jsx(uh,{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:137",className:"w-4 h-4 text-primary"}),s.jsx("h3",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:138",className:"text-sm font-bold text-foreground",children:lr(e,"اÙÙØ¬Ùات / Ø§ÙØ¯Ù٠اÙÙ
ØªØ§ØØ© ÙÙØªØ£Ø´Ùرة","Visa destinations / countries")}),s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:141",className:"inline-flex items-center justify-center min-w-5 h-5 px-1.5 rounded-full text-[11px] font-bold bg-muted text-muted-foreground",children:a?.length??0})]}),s.jsxs("button",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:145",onClick:l,className:"inline-flex items-center gap-1.5 px-3.5 py-2 rounded-full bg-primary text-primary-foreground text-xs font-semibold active:scale-[0.97] transition-transform",children:[s.jsx(oa,{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:149",className:"w-3.5 h-3.5"}),lr(e,"Ø¥Ø¶Ø§ÙØ© دÙÙØ© Ø¬Ø¯ÙØ¯Ø©","Add new country")]})]}),r?s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:155",className:"flex justify-center py-8",children:s.jsx(ft,{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:156",className:"w-6 h-6 animate-spin text-primary"})}):s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:159",className:"flex flex-wrap gap-2 p-4",children:[(a??[]).map(x=>s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:161",className:`group inline-flex items-center gap-2 rounded-xl border px-3 py-2 text-sm ${x.active?"border-border bg-background":"border-dashed border-border bg-muted/40 opacity-70"}`,children:[s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:167",className:"text-base leading-none",children:x.flag||"ð³ï¸"}),s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:168",className:"font-semibold text-foreground",children:t?x.nameAr:x.nameEn}),s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:169",className:"text-[11px] text-muted-foreground",dir:"ltr",children:x.countryCode}),s.jsx("button",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:172",onClick:()=>h(x),title:x.active?lr(e,"Ø¥Ø®ÙØ§Ø¡","Hide"):lr(e,"Ø¥Ø¸ÙØ§Ø±","Show"),className:"p-1 rounded-md hover:bg-muted text-muted-foreground",children:x.active?s.jsx(Gi,{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:177",className:"w-3.5 h-3.5"}):s.jsx(Q0,{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:177",className:"w-3.5 h-3.5"})}),s.jsx("button",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:179",onClick:()=>d(x),title:lr(e,"تعدÙÙ","Edit"),className:"p-1 rounded-md hover:bg-muted text-primary",children:s.jsx(K0,{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:184",className:"w-3.5 h-3.5"})})]},x.countryCode)),(a??[]).length===0&&s.jsx("p",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:189",className:"text-sm text-muted-foreground py-2",children:lr(e,"ÙØ§ ØªÙØ¬Ø¯ دÙ٠بعد. أض٠أÙ٠دÙÙØ©.","No countries yet. Add the first one.")})]}),i&&s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:197",className:"fixed inset-0 z-50 flex items-center justify-center p-3 sm:p-6",dir:t?"rtl":"ltr",children:[s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:198",className:"absolute inset-0 bg-black/50",onClick:()=>o(null)}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:199",className:"relative w-full max-w-lg bg-card shadow-2xl rounded-2xl flex flex-col overflow-hidden",children:[s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:200",className:"shrink-0 border-b border-border px-5 py-4 flex items-center justify-between",children:[s.jsx("h3",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:201",className:"font-display text-lg font-bold",children:i.isNew?lr(e,"دÙÙØ© Ø¬Ø¯ÙØ¯Ø©","New country"):lr(e,"تعدÙ٠دÙÙØ©","Edit country")}),s.jsx("button",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:204",onClick:()=>o(null),className:"p-1.5 rounded-lg hover:bg-muted",children:s.jsx(ks,{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:205",className:"w-5 h-5"})})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:209",className:"px-5 py-5 space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:210",className:"grid grid-cols-2 gap-3",children:[s.jsxs("label",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:211",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:212",className:"block text-xs font-medium mb-1 text-muted-foreground",children:lr(e,"رÙ
ز Ø§ÙØ¯ÙÙØ© (ISO)","Country code (ISO)")}),s.jsx("input",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:215",dir:"ltr",className:lg,value:i.countryCode,disabled:!i.isNew,onChange:x=>o({...i,countryCode:x.target.value.toUpperCase()}),placeholder:"AE"})]}),s.jsxs("label",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:224",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:225",className:"block text-xs font-medium mb-1 text-muted-foreground",children:lr(e,"Ø§ÙØ¹ÙÙ
(Ø¥ÙÙ
ÙØ¬Ù)","Flag (emoji)")}),s.jsx("input",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:228",className:lg,value:i.flag,onChange:x=>o({...i,flag:x.target.value}),placeholder:"ð¦ðª"})]})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:237",className:"grid grid-cols-2 gap-3",children:[s.jsxs("label",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:238",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:239",className:"block text-xs font-medium mb-1 text-muted-foreground",children:lr(e,"Ø§ÙØ§Ø³Ù
(عربÙ)","Name (Arabic)")}),s.jsx("input",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:240",className:lg,value:i.nameAr,onChange:x=>o({...i,nameAr:x.target.value}),placeholder:"Ø§ÙØ¥Ù
ارات"})]}),s.jsxs("label",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:242",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:243",className:"block text-xs font-medium mb-1 text-muted-foreground",children:lr(e,"Ø§ÙØ§Ø³Ù
(Ø¥ÙØ¬ÙÙØ²Ù)","Name (English)")}),s.jsx("input",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:244",dir:"ltr",className:lg,value:i.nameEn,onChange:x=>o({...i,nameEn:x.target.value}),placeholder:"United Arab Emirates"})]})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:248",className:"grid grid-cols-2 gap-3",children:[s.jsxs("label",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:249",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:250",className:"block text-xs font-medium mb-1 text-muted-foreground",children:lr(e,"اÙÙ
ÙØ·ÙØ©","Region")}),s.jsx("select",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:251",className:lg,value:i.region,onChange:x=>o({...i,region:x.target.value}),children:O1e.map(x=>s.jsx("option",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:253",value:x.value,children:t?x.ar:x.en},x.value))})]}),s.jsxs("label",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:259",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:260",className:"block text-xs font-medium mb-1 text-muted-foreground",children:lr(e,"Ø§ÙØªØ±ØªÙب","Sort order")}),s.jsx("input",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:261",type:"number",className:lg,value:i.sortOrder,onChange:x=>o({...i,sortOrder:Number(x.target.value)||0})})]})]}),s.jsxs("label",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:265",className:"flex items-center gap-3 p-2.5 rounded-lg border border-border
1340cursor-pointer hover:border-primary/50 transition-colors",children:[s.jsx("input",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:266",type:"checkbox",checked:i.active,onChange:x=>o({...i,active:x.target.checked}),className:"w-4 h-4 accent-[var(--primary)]"}),s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:267",className:"text-sm",children:lr(e,"Ù
ÙØ¹ÙÙØ© ÙØªØ¸Ùر ÙÙØ¹Ù
ÙØ§Ø¡","Active (visible to customers)")})]})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:271",className:"shrink-0 border-t border-border px-5 py-4 flex gap-3",children:[s.jsx("button",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:272",onClick:()=>o(null),className:"flex-1 px-4 py-2.5 rounded-full border border-border text-sm font-semibold hover:bg-muted transition-colors",children:lr(e,"Ø¥ÙØºØ§Ø¡","Cancel")}),s.jsxs("button",{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:275",onClick:m,disabled:c.isPending,className:"flex-1 inline-flex items-center justify-center gap-2 px-4 py-2.5 rounded-full bg-primary text-primary-foreground text-sm font-semibold disabled:opacity-50 active:scale-[0.98] transition-transform",children:[c.isPending?s.jsx(ft,{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:280",className:"w-4 h-4 animate-spin"}):s.jsx(ef,{"data-loc":"client/src/components/visa/admin/VisaDestinationsManager.tsx:280",className:"w-4 h-4"}),lr(e,"ØÙظ","Save")]})]})]})]})]})}const Ds=(e,t,n)=>e==="ar"?t:n,II=[{value:"ordinary_passport",ar:"Ø¬ÙØ§Ø² عادÙ",en:"Ordinary passport"},{value:"temporary_passport",ar:"Ø¬ÙØ§Ø² Ù
Ø¤ÙØª",en:"Temporary passport"},{value:"travel_document",ar:"ÙØ«ÙÙØ© Ø³ÙØ±",en:"Travel document"},{value:"diplomatic_passport",ar:"Ø¬ÙØ§Ø² دبÙÙÙ
اسÙ",en:"Diplomatic passport"},{value:"service_passport",ar:"Ø¬ÙØ§Ø² خدÙ
Ø©",en:"Service passport"}],U1e=()=>({code:"",nameAr:"",nameEn:"",passportCountry:"",documentType:"ordinary_passport",residenceCountry:"",requiresResidenceCheck:!1,sortOrder:0,active:!0,isNew:!0}),n0="w-full h-10 rounded-lg border border-border bg-background px-3 text-sm outline-none focus:border-primary";function Oy(e,t){const n=e.trim().toUpperCase();if(!n)return"";const a=t.replace("_passport","").replace("_document","_DOC").toUpperCase();return`${n}_${a}`.replace(/[^A-Z0-9_]/g,"")}function H1e({lang:e}){const t=e==="ar",n=Pe.useUtils(),{data:a,isLoading:r}=Pe.visa.admin.listProfiles.useQuery(),[i,o]=k.useState(null),c=Pe.visa.admin.upsertProfile.useMutation(),l=()=>o(U1e()),d=f=>o({code:f.code,nameAr:f.nameAr||"",nameEn:f.nameEn||"",passportCountry:f.passportCountry||"",documentType:f.documentType||"ordinary_passport",residenceCountry:f.residenceCountry||"",requiresResidenceCheck:!!f.requiresResidenceCheck,sortOrder:f.sortOrder||0,active:!!f.active,isNew:!1}),m=f=>{const b=II.find(y=>y.value===f);return b?t?b.ar:b.en:f},h=async()=>{if(!i)return;const f=i.code.trim().toUpperCase();if(!f||!i.nameAr.trim()||!i.nameEn.trim()||!i.passportCountry.trim()){Le.error(Ds(e,"Ø§ÙØ±Ù
ز ÙØ§ÙاسÙ
Ø§Ù ÙØ¯ÙÙØ© Ø§ÙØ¬Ùاز Ù
Ø·ÙÙØ¨Ø©.","Code, both names, and passport country are required."));return}if(i.isNew&&a?.some(b=>b.code.toUpperCase()===f)){Le.error(Ds(e,`Ø§ÙØ±Ù
ز "${f}" Ù
ستخدÙ
باÙÙØ¹Ù. استخدÙ
زر Ø§ÙØªØ¹Ø¯ÙÙ Ø¨Ø¯ÙØ§Ù Ù
٠ذÙÙ.`,`Code "${f}" already exists. Use Edit instead.`));return}try{await c.mutateAsync({code:f,nameAr:i.nameAr.trim(),nameEn:i.nameEn.trim(),passportCountry:i.passportCountry.trim().toUpperCase(),documentType:i.documentType,residenceCountry:i.residenceCountry.trim().toUpperCase()||null,requiresResidenceCheck:i.requiresResidenceCheck,sortOrder:Number(i.sortOrder)||0,active:i.active}),n.visa.admin.listProfiles.invalidate(),n.visa.meta.invalidate(),Le.success(i.isNew?Ds(e,"تÙ
ت Ø¥Ø¶Ø§ÙØ© ÙÙØ¹ Ø§ÙØ¬Ùاز. اربط٠باÙÙÙØ§Ø¹Ø¯ Ù
Ù Ø§ÙØ¬Ø¯ÙÙ Ø¨Ø§ÙØ£Ø³ÙÙ.","Passport type added. Link it to rules in the table below."):Ds(e,"تÙ
ØªØØ¯ÙØ« ÙÙØ¹ Ø§ÙØ¬Ùاز.","Passport type updated.")),o(null)}catch{Le.error(Ds(e,"ØªØ¹Ø°ÙØ± Ø§ÙØÙØ¸.","Save failed."))}},x=async f=>{try{await c.mutateAsync({code:f.code,nameAr:f.nameAr,nameEn:f.nameEn,passportCountry:f.passportCountry,documentType:f.documentType,residenceCountry:f.residenceCountry||null,requiresResidenceCheck:!!f.requiresResidenceCheck,sortOrder:f.sortOrder||0,active:!f.active}),n.visa.admin.listProfiles.invalidate(),n.visa.meta.invalidate(),Le.success(Ds(e,"تÙ
ØªØØ¯ÙØ« Ø§ÙØØ§ÙØ©.","Status updated."))}catch{Le.error(Ds(e,"ØªØ¹Ø°ÙØ± ØªØØ¯ÙØ« Ø§ÙØØ§ÙØ©.","Could not update status."))}};return s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:167",dir:t?"rtl":"ltr",className:"mb-6 rounded-xl border border-border bg-card",children:[s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:168",className:"flex items-center justify-between gap-3 flex-wrap px-4 py-3 border-b border-border",children:[s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:169",className:"flex items-center gap-2",children:[s.jsx(g3,{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:170",className:"w-4 h-4 text-primary"}),s.jsx("h3",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:171",className:"text-sm font-bold text-foreground",children:Ds(e,"Ø£ÙÙØ§Ø¹ Ø§ÙØ¬Ùازات / ÙØ«Ø§Ø¦Ù Ø§ÙØ³Ùر","Passport / document types")}),s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:174",className:"inline-flex items-center justify-center min-w-5 h-5 px-1.5 rounded-full text-[11px] font-bold bg-muted text-muted-foreground",children:a?.length??0})]}),s.jsxs("button",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:178",onClick:l,className:"inline-flex items-center gap-1.5 px-3.5 py-2 rounded-full bg-primary text-primary-foreground text-xs font-semibold active:scale-[0.97] transition-transform",children:[s.jsx(oa,{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:182",className:"w-3.5 h-3.5"}),Ds(e,"Ø¥Ø¶Ø§ÙØ© ÙÙØ¹ Ø¬ÙØ§Ø² Ø¬Ø¯ÙØ¯","Add new passport type")]})]}),r?s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:188",className:"flex justify-center py-8",children:s.jsx(ft,{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:189",className:"w-6 h-6 animate-spin text-primary"})}):s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:192",className:"flex flex-wrap gap-2 p-4",children:[(a??[]).map(f=>s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:194",className:`group inline-flex items-center gap-2 rounded-xl border px-3 py-2 text-sm ${f.active?"border-border bg-background":"border-dashed border-border bg-muted/40 opacity-70"}`,children:[s.jsx(g3,{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:202",className:"w-4 h-4 text-muted-foreground"}),s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:203",className:"font-semibold text-foreground",children:t?f.nameAr:f.nameEn}),s.jsxs("span",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:204",className:"text-[11px] text-muted-foreground",dir:"ltr",children:[f.passportCountry," · ",m(f.documentType)]}),s.jsx("button",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:207",onClick:()=>x(f),title:f.active?Ds(e,"Ø¥Ø®ÙØ§Ø¡","Hide"):Ds(e,"Ø¥Ø¸ÙØ§Ø±","Show"),className:"p-1 rounded-md hover:bg-muted text-muted-foreground",children:f.active?s.jsx(Gi,{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:212",className:"w-3.5 h-3.5"}):s.jsx(Q0,{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:212",className:"w-3.5 h-3.5"})}),s.jsx("button",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:214",onClick:()=>d(f),title:Ds(e,"تعدÙÙ","Edit"),className:"p-1 rounded-md hover:bg-muted text-primary",children:s.jsx(K0,{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:219",className:"w-3.5 h-3.5"})})]},f.code)),(a??[]).length===0&&s.jsx("p",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:224",className:"text-sm text-muted-foreground py-2",children:Ds(e,"ÙØ§ ØªÙØ¬Ø¯ Ø£ÙÙØ§Ø¹ Ø¬ÙØ§Ø²Ø§Øª بعد. أض٠أÙÙ ÙÙØ¹.","No passport types yet. Add the first one.")})]}),i&&s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:232",className:"fixed inset-0 z-50 flex items-center justify-center p-3 sm:p-6",dir:t?"rtl":"ltr",children:[s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:236",className:"absolute inset-0 bg-black/50",onClick:()=>o(null)}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:237",className:"relative w-full max-w-lg bg-card shadow-2xl rounded-2xl flex flex-col overflow-hidden max-h-[90vh] overflow-y-auto",children:[s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:238",className:"shrink-0 border-b border-border px-5 py-4 flex items-center justify-between",children:[s.jsx("h3",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:239",className:"font-display text-lg font-bold",children:i.isNew?Ds(e,"ÙÙØ¹ Ø¬ÙØ§Ø² Ø¬Ø¯ÙØ¯","New passport type"):Ds(e,"تعدÙÙ ÙÙØ¹ Ø§ÙØ¬Ùاز","Edit passport type")}),s.jsx("button",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:244",onClick:()=>o(null),className:"p-1.5 rounded-lg hover:bg-muted",children:s.jsx(ks,{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:245",className:"w-5 h-5"})})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:249",className:"px-5 py-5 space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:250",className:"grid grid-cols-2 gap-3",children:[s.jsxs("label",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:251",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:252",className:"block text-xs font-medium mb-1 text-muted-foreground",children:Ds(e,"Ø§ÙØ§Ø³Ù
(عربÙ)","Name (Arabic)")}),s.jsx("input",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:255",className:n0,value:i.nameAr,onChange:f=>o({...i,nameAr:f.target.value}),placeholder:"Ø¬ÙØ§Ø² أردÙ٠عادÙ"})]}),s.jsxs("label",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:262",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:263",className:"block text-xs font-medium mb-1 text-muted-foreground",children:Ds(e,"Ø§ÙØ§Ø³Ù
(Ø¥ÙØ¬ÙÙØ²Ù)","Name (English)")}),s.jsx("input",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:266",dir:"ltr",className:n0,value:i.nameEn,onChange:f=>o({...i,nameEn:f.target.value}),placeholder:"Jordanian Ordinary Passport"})]})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:276",className:"grid grid-cols-2 gap-3",children:[s.jsxs("label",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:277",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:278",className:"block text-xs font-medium mb-1 text-muted-foreground",children:Ds(e,"دÙÙØ© Ø§ÙØ¬Ùاز
1340(ISO)","Passport country (ISO)")}),s.jsx("input",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:281",dir:"ltr",className:n0,value:i.passportCountry,onChange:f=>{const b=f.target.value.toUpperCase();o(y=>y&&{...y,passportCountry:b,code:y.isNew&&(!y.code||y.code===Oy(y.passportCountry,y.documentType))?Oy(b,y.documentType):y.code})},placeholder:"JO"})]}),s.jsxs("label",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:304",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:305",className:"block text-xs font-medium mb-1 text-muted-foreground",children:Ds(e,"ÙÙØ¹ اÙÙØ«ÙÙØ©","Document type")}),s.jsx("select",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:308",className:n0,value:i.documentType,onChange:f=>{const b=f.target.value;o(y=>y&&{...y,documentType:b,code:y.isNew&&(!y.code||y.code===Oy(y.passportCountry,y.documentType))?Oy(y.passportCountry,b):y.code})},children:II.map(f=>s.jsx("option",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:328",value:f.value,children:t?f.ar:f.en},f.value))})]})]}),s.jsxs("label",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:336",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:337",className:"block text-xs font-medium mb-1 text-muted-foreground",children:Ds(e,"Ø§ÙØ±Ù
ز (ÙØ±Ùد)","Code (unique)")}),s.jsx("input",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:340",dir:"ltr",className:n0,value:i.code,disabled:!i.isNew,onChange:f=>o({...i,code:f.target.value.toUpperCase().replace(/[^A-Z0-9_]/g,"")}),placeholder:"JOR_ORDINARY"}),s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:348",className:"block text-[11px] text-muted-foreground mt-1",children:Ds(e,"ÙÙÙÙÙØ¯ تÙÙØ§Ø¦Ùا٠Ù
Ù Ø§ÙØ¯ÙÙØ© ÙÙÙØ¹ اÙÙØ«ÙÙØ©Ø ÙÙÙ
ÙÙ٠تعدÙÙÙ.","Auto-generated from country & doc type; you can edit it.")})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:357",className:"grid grid-cols-2 gap-3",children:[s.jsxs("label",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:358",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:359",className:"block text-xs font-medium mb-1 text-muted-foreground",children:Ds(e,"دÙÙØ© Ø§ÙØ¥ÙاÙ
Ø© (Ø§Ø®ØªÙØ§Ø±Ù)","Residence country (optional)")}),s.jsx("input",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:362",dir:"ltr",className:n0,value:i.residenceCountry,onChange:f=>o({...i,residenceCountry:f.target.value.toUpperCase()}),placeholder:"JO"})]}),s.jsxs("label",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:370",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:371",className:"block text-xs font-medium mb-1 text-muted-foreground",children:Ds(e,"Ø§ÙØªØ±ØªÙب","Sort order")}),s.jsx("input",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:374",type:"number",className:n0,value:i.sortOrder,onChange:f=>o({...i,sortOrder:Number(f.target.value)||0})})]})]}),s.jsxs("label",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:383",className:"flex items-center gap-3 p-2.5 rounded-lg border border-border cursor-pointer hover:border-primary/50 transition-colors",children:[s.jsx("input",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:384",type:"checkbox",checked:i.requiresResidenceCheck,onChange:f=>o({...i,requiresResidenceCheck:f.target.checked}),className:"w-4 h-4 accent-[var(--primary)]"}),s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:390",className:"text-sm",children:Ds(e,"ÙØªØ·Ùب Ø§ÙØªØÙÙ Ù
Ù Ø§ÙØ¥ÙاÙ
Ø© ÙÙ Ø§ÙØ£Ø±Ø¯Ù","Requires Jordan residence check")})]}),s.jsxs("label",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:395",className:"flex items-center gap-3 p-2.5 rounded-lg border border-border
1340cursor-pointer hover:border-primary/50 transition-colors",children:[s.jsx("input",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:396",type:"checkbox",checked:i.active,onChange:f=>o({...i,active:f.target.checked}),className:"w-4 h-4 accent-[var(--primary)]"}),s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:402",className:"text-sm",children:Ds(e,"Ù ÙØ¹ÙÙ ÙÙØ¸Ùر ÙÙØ¹Ù ÙØ§Ø¡","Active (visible to customers)")})]})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:406",className:"shrink-0 border-t border-border px-5 py-4 flex gap-3",children:[s.jsx("button",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:407",onClick:()=>o(null),className:"flex-1 px-4 py-2.5 rounded-full border border-border text-sm font-semibold hover:bg-muted transition-colors",children:Ds(e,"Ø¥ÙØºØ§Ø¡","Cancel")}),s.jsxs("button",{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:413",onClick:h,disabled:c.isPending,className:"flex-1 inline-flex items-center justify-center gap-2 px-4 py-2.5 rounded-full bg-primary text-primary-foreground text-sm font-semibold disabled:opacity-50 active:scale-[0.98] transition-transform",children:[c.isPending?s.jsx(ft,{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:418",className:"w-4 h-4 animate-spin"}):s.jsx(ef,{"data-loc":"client/src/components/visa/admin/VisaPassportTypesManager.tsx:418",className:"w-4 h-4"}),Ds(e,"ØÙظ","Save")]})]})]})]})]})}const ha=(e,t,n)=>e==="ar"?t:n,V1e=(e,t)=>({travelerProfileCode:e,destinationCode:t,visaType:"tourism",visaStatus:"evisa",canApplyThroughAgency:!0,requiresResidenceInJordan:!1,requiresValidUsVisa:!1,requiresValidSchengenVisa:!1,processingTime:"",serviceFee:0,embassyFee:0,currency:"USD",documentsText:"",notesAr:"",notesEn:"",officialSourceUrl:"",sourceName:"",confidenceLevel:"needs_manual_review",active:!0});function z1e(e){return e.split(` 1341`).map(t=>t.trim()).filter(Boolean).map(t=>{const[n,a]=t.split("|").map(r=>r.trim());return{ar:n||a||"",en:a||n||""}})}function $1e(e){return Array.isArray(e)?e.map(t=>`${t.ar||""} | ${t.en||""}`).join(` 1342`):""}function q1e({lang:e}){const t=e==="ar",n=Pe.useUtils(),{data:a}=Pe.visa.admin.listProfiles.useQuery(),{data:r}=Pe.visa.admin.listDestinations.useQuery(),{data:i,isLoading:o}=Pe.visa.admin.listRules.useQuery(void 0),[c,l]=k.useState(""),[d,m]=k.useState(null);k.useEffect(()=>{!c&&a&&a.length>0&&l(a[0].code)},[a,c]);const h=R=>{const L=a?.find(I=>I.code===R);return L?t?L.nameAr:L.nameEn:R},x=Pe.visa.admin.createRule.useMutation(),f=Pe.visa.admin.updateRule.useMutation(),b=Pe.visa.admin.deleteRule.useMutation({onSuccess:()=>{n.visa.admin.listRules.invalidate(),Le.success(ha(e,"ØªÙ Ø§ÙØØ°Ù","Deleted"))}}),y=k.useMemo(()=>{const R=new Map;return(i??[]).forEach(L=>{L.travelerProfileCode===c&&R.set(L.destinationCode,L)}),R},[i,c]),w=k.useMemo(()=>{const R=new Map;return(i??[]).forEach(L=>{R.set(L.travelerProfileCode,(R.get(L.travelerProfileCode)??0)+1)}),R},[i]),T=y.size,A=r?.length??0,E=R=>{m({id:null,form:V1e(c,R)})},D=R=>{m({id:R.id,form:{travelerProfileCode:R.travelerProfileCode,destinationCode:R.destinationCode,visaType:R.visaType||"tourism",visaStatus:R.visaStatus,canApplyThroughAgency:!!R.canApplyThroughAgency,requiresResidenceInJordan:!!R.requiresResidenceInJordan,requiresValidUsVisa:!!R.requiresValidUsVisa,requiresValidSchengenVisa:!!R.requiresValidSchengenVisa,processingTime:R.processingTime||"",serviceFee:R.serviceFee||0,embassyFee:R.embassyFee||0,currency:R.currency||"USD",documentsText:$1e(R.documentsRequired),notesAr:R.notesAr||"",notesEn:R.notesEn||"",officialSourceUrl:R.officialSourceUrl||"",sourceName:R.sourceName||"",confidenceLevel:R.confidenceLevel,active:!!R.active}})},S=async()=>{if(!d)return;const R=d.form,L={travelerProfileCode:R.travelerProfileCode,destinationCode:R.destinationCode,visaType:R.visaType,visaStatus:R.visaStatus,canApplyThroughAgency:R.canApplyThroughAgency,requiresResidenceInJordan:R.requiresResidenceInJordan,requiresValidUsVisa:R.requiresValidUsVisa,requiresValidSchengenVisa:R.requiresValidSchengenVisa,processingTime:R.processingTime||null,serviceFee:Number(R.serviceFee)||0,embassyFee:Number(R.embassyFee)||0,currency:R.currency,documentsRequired:z1e(R.documentsText),notesAr:R.notesAr||null,notesEn:R.notesEn||null,officialSourceUrl:R.officialSourceUrl||null,sourceName:R.sourceName||null,confidenceLevel:R.confidenceLevel,active:R.active};try{d.id===null?(await x.mutateAsync(L),Le.success(ha(e,"ت٠ت Ø¥Ø¶Ø§ÙØ© اÙÙØ§Ø¹Ø¯Ø©","Rule created"))):(await f.mutateAsync({id:d.id,data:L}),Le.success(ha(e,"ØªÙ ØªØØ¯ÙØ« اÙÙØ§Ø¹Ø¯Ø©","Rule updated"))),n.visa.admin.listRules.invalidate(),m(null)}catch{Le.error(ha(e,"ØªØ¹Ø°ÙØ± Ø§ÙØÙØ¸","Save failed"))}};return s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:210",dir:t?"rtl":"ltr",children:[s.jsx(H1e,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:212",lang:e}),s.jsx(F1e,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:215",lang:e}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:218",className:"mb-5",children:[s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:219",className:"flex items-center gap-2 mb-3",children:[s.jsx(g3,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:220",className:"w-4 h-4 text-primary"}),s.jsx("h3",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:221",className:"text-sm font-bold text-foreground",children:ha(e,"اختر ÙÙØ¹ Ø§ÙØ¬Ùاز Ø£ÙÙÙØ§","Step 1 â Choose passport type")})]}),a?s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:230",className:"flex flex-wrap gap-2",children:a.map(R=>
1342{const L=R.code===c,I=w.get(R.code)??0;return s.jsxs("button",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:235",onClick:()=>l(R.code),className:`inline-flex items-center gap-2 px-4 py-2.5 rounded-xl border text-sm font-semibold transition-all active:scale-[0.97] ${L?"border-primary bg-primary/10 text-foreground shadow-sm":"border-border bg-background text-muted-foreground hover:border-primary/50"}`,children:[s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:244",children:t?R.nameAr:R.nameEn}),s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:245",className:`inline-flex items-center justify-center min-w-5 h-5 px-1.5 rounded-full text-[11px] font-bold ${L?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground"}`,children:I})]},R.code)})}):s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:226",className:"flex py-4",children:s.jsx(ft,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:227",className:"w-5 h-5 animate-spin text-primary"})})]}),c&&s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:261",children:[s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:262",className:"flex items-center justify-between gap-3 flex-wrap mb-4 rounded-xl border border-border bg-muted/30 px-4 py-3",children:[s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:263",className:"text-sm",children:[s.jsxs("span",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:264",className:"text-muted-foreground",children:[ha(e,"Ø´Ø±ÙØ· Ø¬ÙØ§Ø²:","Rules for passport:")," "]}),s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:267",className:"font-bold text-foreground",children:h(c)})]}),s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:269",className:"text-xs text-muted-foreground",children:ha(e,`${T} Ù
Ù ${A} ÙØ¬ÙØ© Ù
ØºØ·ÙØ§Ø©`,`${T} of ${A} destinations covered`)})]}),o||!r?s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:279",className:"flex justify-center py-16",children:s.jsx(ft,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:280",className:"w-7 h-7 animate-spin text-primary"})}):s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:283",className:"overflow-x-auto rounded-xl border border-border",children:s.jsxs("table",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:284",className:"w-full text-sm",children:[s.jsx("thead",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:285",className:"bg-muted/50 text-muted-foreground",children:s.jsxs("tr",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:286",children:[s.jsx("th",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:287",className:"px-4 py-3 text-start font-semibold",children:ha(e,"اÙÙØ¬ÙØ©","Destination")}),s.jsx("th",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:288",className:"px-4 py-3 text-start font-semibold",children:ha(e,"Ø§ÙØØ§ÙØ©","Status")}),s.jsx("th",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:289",className:"px-4 py-3 text-start font-semibold",children:ha(e,"Ø§ÙØ±Ø³ÙÙ
","Fees")}),s.jsx("th",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:290",className:"px-4 py-3 text-start font-semibold",children:ha(e,"Ø§ÙØ«ÙØ©","Confidence")}),s.jsx("th",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:291",className:"px-4 py-3 text-end font-semibold",children:ha(e,"إجراءات","Actions")})]})}),s.jsx("tbody",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:294",children:r.map(R=>{const L=y.get(R.countryCode),I=L?(Number(L.serviceFee)||0)+(Number(L.embassyFee)||0):0;return s.jsxs("tr",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:299",className:"border-t border-border hover:bg-muted/40 transition-colors",children:[s.jsx("td",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:300",className:"px-4 py-3 font-medium",children:s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:301",className:"flex items-center gap-2",children:[L?s.jsx(yu,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:303",className:"w-4 h-4 text-emerald-500 shrink-0"}):s.jsx(Jre,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:305",className:"w-4 h-4 text-muted-foreground
1342/50 shrink-0"}),t?R.nameAr:R.nameEn]})}),s.jsx("td",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:310",className:"px-4 py-3",children:L?s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:312",className:`inline-flex px-2 py-0.5 rounded-full text-xs font-semibold ${Om[L.visaStatus]?.badge??""}`,children:t?Om[L.visaStatus]?.ar:Om[L.visaStatus]?.en}):s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:322",className:"text-xs text-muted-foreground/60",children:ha(e,"ÙØ§ ØªÙØ¬Ø¯ ÙØ§Ø¹Ø¯Ø©","No rule")})}),s.jsx("td",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:327",className:"px-4 py-3 text-muted-foreground",children:L?`${I} ${L.currency||"USD"}`:"â"}),s.jsx("td",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:330",className:"px-4 py-3",children:L?s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:332",className:`inline-flex px-2 py-0.5 rounded-full text-xs font-medium ${Xg[L.confidenceLevel]?.badge??""}`,children:t?Xg[L.confidenceLevel]?.ar:Xg[L.confidenceLevel]?.en}):"â"}),s.jsx("td",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:345",className:"px-4 py-3",children:s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:346",className:"flex items-center justify-end gap-1",children:L?s.jsxs(s.Fragment,{children:[s.jsxs("button",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:349",onClick:()=>D(L),className:"inline-flex items-center gap-1 px-2.5 py-1.5 rounded-lg hover:bg-muted text-primary text-xs font-semibold",children:[s.jsx(K0,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:353",className:"w-3.5 h-3.5"}),ha(e,"تعدÙÙ","Edit")]}),s.jsx("button",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:356",onClick:()=>{confirm(ha(e,"ØØ°Ù ÙØ°Ù اÙÙØ§Ø¹Ø¯Ø©Ø","Delete this rule?"))&&b.mutate({id:L.id})},className:"p-1.5 rounded-lg hover:bg-muted text-rose-500",children:s.jsx(ro,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:363",className:"w-4 h-4"})})]}):s.jsxs("button",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:367",onClick:()=>E(R.countryCode),className:"inline-flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-primary/40 text-primary text-xs font-semibold hover:bg-primary/10",children:[s.jsx(oa,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:371",className:"w-3.5 h-3.5"}),ha(e,"Ø¥Ø¶Ø§ÙØ© ÙØ§Ø¹Ø¯Ø©","Add rule")]})})})]},R.countryCode)})})]})})]}),d&&s.jsx(G1e,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:388",lang:e,state:d,profiles:a??[],destinations:r??[],onChange:R=>m({...d,form:R}),onClose:()=>m(null),onSave:S,saving:x.isPending||f.isPending})]})}function G1e({lang:e,state:t,profiles:n,destinations:a,onChange:r,onClose:i,onSave:o,saving:c}){const l=e==="ar",d=t.form,m=(f,b)=>r({...d,[f]:b}),h=n.find(f=>f.code===d.travelerProfileCode)?.[l?"nameAr":"nameEn"]??d.travelerProfileCode,x=a.find(f=>f.countryCode===d.destinationCode)?.[l?"nameAr":"nameEn"]??d.destinationCode;return s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:431",className:"fixed inset-0 z-50 flex items-center justify-center p-3 sm:p-6",dir:l?"rtl":"ltr",children:[s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:432",className:"absolute inset-0 bg-black/50",onClick:i}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:435",className:"relative w-full max-w-5xl h-[92vh] bg-card shadow-2xl rounded-2xl flex flex-col overflow-hidden",children:[s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:437",className:"shrink-0 bg-card border-b border-border px-5 py-4 flex items-center justify-between",children:[s.jsx("h3",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:438",className:"font-display text-xl font-bold",children:t.id===null?ha(e,"ÙØ§Ø¹Ø¯Ø© ØªØ£Ø´ÙØ±Ø© Ø¬Ø¯ÙØ¯Ø©","New Visa Rule"):ha(e,"تعدÙÙ ÙØ§Ø¹Ø¯Ø© Ø§ÙØªØ£Ø´Ùرة","Edit Visa Rule")}),s.jsx("button",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:441",onClick:i,className:"p-1.5 rounded-lg hover:bg-muted",children:s.jsx(ks,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:442",className:"w-5 h-5"})})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:447",className:"flex-1 min-h-0 overflow-y-auto px-5 py-5 space-y-5",children:[s.jsxs("section",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:449",className:"rounded-xl border-2 border-primary/30 bg-primary/5 p-4",children:[s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:450",className:"flex items-center gap-2 mb-3",children:[s.jsx(g3,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:451",className:"w-4 h-4 text-primary"}),s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:452",className:"text-sm font-bold text-foreground",children:ha(e,"ÙÙØ¹ Ø§ÙØ¬Ùاز ÙØ§ÙÙØ¬ÙØ©","Passport type & destination")})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:456",className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[s.jsx(Vc,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:457",label:ha(e,"ÙÙØ¹ Ø§ÙØ¬Ùاز","Passport type"),children:s.jsx("select",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:458",className:Hc,value:d.travelerProfileCode,onChange:f=>m("travelerProfileCode",f.target.value),children:n.map(f=>s.jsx("option",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:464",value:f.code,children:l?f.nameAr:f.nameEn},f.code))})}),s.jsx(Vc,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:470",label:ha(e,"اÙÙØ¬ÙØ©","Destination"),children:s.jsx("select",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:471",className:Hc,value:d.destinationCode,onChange:f=>m("destinationCode",f.target.value),children:a.map(f=>s.jsx("option",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:473",value:f.countryCode,children:l?f.nameAr:f.nameEn},f.countryCode))})})]}),s.jsx("p",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:480",className:"text-xs text-muted-foreground mt-3 leading-relaxed",children:ha(e,`ÙØ°Ù Ø§ÙØ´Ø±ÙØ· تخص ØØ§Ù
Ù٠«${h}» اÙÙ
تجÙÙ٠إÙ٠«${x}
1342».`,`These conditions apply to "${h}" holders travelling to "${x}".`)})]}),s.jsx(Vc,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:489",label:ha(e,"ØØ§ÙØ© Ø§ÙØªØ£Ø´Ùرة","Visa Status"),children:s.jsx("select",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:490",className:Hc,value:d.visaStatus,onChange:f=>m("visaStatus",f.target.value),children:R1e.map(f=>s.jsx("option",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:492",value:f,children:l?Om[f].ar:Om[f].en},f))})}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:499",className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:[s.jsx(Vc,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:500",label:ha(e,"رسÙÙ
Ø§ÙØ®Ø¯Ù
Ø©","Service Fee"),children:s.jsx("input",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:501",type:"number",className:Hc,value:d.serviceFee,onChange:f=>m("serviceFee",f.target.value)})}),s.jsx(Vc,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:503",label:ha(e,"رسÙÙ
Ø§ÙØ³Ùارة","Embassy Fee"),children:s.jsx("input",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:504",type:"number",className:Hc,value:d.embassyFee,onChange:f=>m("embassyFee",f.target.value)})}),s.jsx(Vc,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:506",label:ha(e,"Ø§ÙØ¹Ù
ÙØ©","Currency"),children:s.jsx("input",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:507",className:Hc,value:d.currency,onChange:f=>m("currency",f.target.value)})})]}),s.jsx(Vc,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:511",label:ha(e,"Ù
دة اÙÙ
Ø¹Ø§ÙØ¬Ø©","Processing Time"),children:s.jsx("input",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:512",className:Hc,value:d.processingTime,onChange:f=>m("processingTime",f.target.value),placeholder:l?"Ù
ثاÙ: 5-7 Ø£ÙØ§Ù
عÙ
Ù":"e.g. 5-7 business days"})}),s.jsx(Vc,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:520",label:ha(e,"اÙÙ
Ø³ØªÙØ¯Ø§Øª (سطر ÙÙÙ Ù
Ø³ØªÙØ¯: عرب٠| Ø¥ÙØ¬ÙÙØ²Ù)","Documents (one per line: Arabic | English)"),children:s.jsx("textarea",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:521",className:`${Hc} h-auto min-h-28 py-2`,value:d.documentsText,onChange:f=>m("documentsText",f.target.value),placeholder:l?"Ø¬ÙØ§Ø² Ø³ÙØ± سار٠| Valid passport":"Valid passport | Ø¬ÙØ§Ø² Ø³ÙØ± سارÙ"})}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:529",className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[s.jsx(Vc,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:530",label:ha(e,"Ù
ÙØ§ØØ¸Ø§Øª (عربÙ)","Notes (Arabic)"),children:s.jsx("textarea",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:531",className:`${Hc} h-auto min-h-16 py-2`,value:d.notesAr,onChange:f=>m("notesAr",f.target.value)})}),s.jsx(Vc,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:533",label:ha(e,"Ù
ÙØ§ØØ¸Ø§Øª (Ø¥ÙØ¬ÙÙØ²Ù)","Notes (English)"),children:s.jsx("textarea",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:534",className:`${Hc} h-auto min-h-16 py-2`,value:d.notesEn,onChange:f=>m("notesEn",f.target.value)})})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:538",className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:[s.jsx(D1,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:539",label:ha(e,"ÙÙ
ÙÙ Ø§ÙØªÙدÙÙ
عبر اÙÙÙØ§ÙØ©","Can apply through agency"),v:d.canApplyThroughAgency,on:f=>m("canApplyThroughAgency",f)}),s.jsx(D1,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:540",label:ha(e,"ÙØªØ·Ùب Ø¥ÙØ§Ù
Ø© ÙÙ Ø§ÙØ£Ø±Ø¯Ù","Requires residence in Jordan"),v:d.requiresResidenceInJordan,on:f=>m("requiresResidenceInJordan",f)}),s.jsx(D1,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:541",label:ha(e,"ÙØªØ·Ùب ØªØ£Ø´ÙØ±Ø© Ø£Ù
رÙÙÙØ© Ø³Ø§Ø±ÙØ©","Requires valid US visa"),v:d.requiresValidUsVisa,on:f=>m("requiresValidUsVisa",f)}),s.jsx(D1,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:542",label:ha(e,"ÙØªØ·Ùب ØªØ£Ø´ÙØ±Ø© Ø´ÙØºÙ Ø³Ø§Ø±ÙØ©","Requires valid Schengen visa"),v:d.requiresValidSchengenVisa,on:f=>m("requiresValidSchengenVisa",f)})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:545",className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[s.jsx(Vc,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:546",label:ha(e,"اسÙ
اÙÙ
صدر","Source Name"),children:s.jsx("input",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:547",className:Hc,value:d.sourceName,onChange:f=>m("sourceName",f.target.value)})}),s.jsx(Vc,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:549",label:ha(e,"رابط اÙÙ
صدر Ø§ÙØ±Ø³Ù
Ù","Official Source URL"),children:s.jsx("input",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:550",className:Hc,value:d.officialSourceUrl,onChange:f=>m("officialSourceUrl",f.target.value)})})]}),s.jsx(Vc,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:554",label:ha(e,"Ù
ستÙÙ Ø§ÙØ«ÙØ©","Confidence Level"),children:s.jsx("select",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:555",className:Hc,value:d.confidenceLevel,onChange:f=>m("confidenceLevel",f.target.value),children:I1e.map(f=>s.jsx("option",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:557",value:f,children:l?Xg[f].ar:Xg[f].en},f))})}),s.jsx(D1,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:564",label:ha(e,"اÙÙØ§Ø¹Ø¯Ø© Ù
ÙØ¹ÙÙØ© ÙØªØ¸Ùر ÙÙØ¹Ù
ÙØ§Ø¡","Active (visible to customers)"),v:d.active,on:f=>m("active",f)})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:568",className:"shrink-0 bg-card border-t border-border px-5 py-4 flex gap-3",children:[s.jsx("button",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:569",onClick:i,className:"flex-1 px-4 py-2.5 rounded-full border border-border text-sm font-semibold hover:bg-muted transition-colors",children:ha(e,"Ø¥ÙØºØ§Ø¡","Cancel")}),s.jsxs("button",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:572",onClick:o,disabled:c,
1342className:"flex-1 inline-flex items-center justify-center gap-2 px-4 py-2.5 rounded-full bg-primary text-primary-foreground text-sm font-semibold disabled:opacity-50 active:scale-[0.98] transition-transform",children:[c?s.jsx(ft,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:577",className:"w-4 h-4 animate-spin"}):s.jsx(ef,{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:577",className:"w-4 h-4"}),ha(e,"ØÙظ","Save")]})]})]})]})}const Hc="w-full h-10 rounded-lg border border-border bg-background px-3 text-sm outline-none focus:border-primary";function Vc({label:e,children:t}){return s.jsxs("label",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:589",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:590",className:"block text-xs font-medium mb-1 text-muted-foreground",children:e}),t]})}function D1({label:e,v:t,on:n}){return s.jsxs("label",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:597",className:"flex items-center gap-3 p-2.5 rounded-lg border border-border cursor-pointer hover:border-primary/50 transition-colors",children:[s.jsx("input",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:598",type:"checkbox",checked:t,onChange:a=>n(a.target.checked),className:"w-4 h-4 accent-[var(--primary)]"}),s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaRulesTab.tsx:599",className:"text-sm",children:e})]})}const cc=(e,t,n)=>e==="ar"?t:n;function J1e({lang:e}){const t=e==="ar",n=Pe.useUtils(),{data:a,isLoading:r}=Pe.visa.admin.listAgents.useQuery(),[i,o]=k.useState(!1),[c,l]=k.useState({name:"",email:"",password:"",region:"",phone:""}),d=Pe.visa.admin.createAgent.useMutation({onSuccess:()=>{n.visa.admin.listAgents.invalidate(),Le.success(cc(e,"تÙ
Ø¥ÙØ´Ø§Ø¡ ØØ³Ø§Ø¨ اÙÙÙÙÙ","Agent created")),o(!1),l({name:"",email:"",password:"",region:"",phone:""})},onError:h=>Le.error(h.message||cc(e,"ØªØ¹Ø°ÙØ± Ø§ÙØ¥Ùشاء","Create failed"))}),m=Pe.visa.admin.updateAgent.useMutation({onSuccess:()=>{n.visa.admin.listAgents.invalidate(),Le.success(cc(e,"تÙ
Ø§ÙØªØØ¯ÙØ«","Updated"))}});return s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:38",children:[s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:39",className:"flex items-center justify-between mb-5",children:[s.jsx("p",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:40",className:"text-sm text-muted-foreground",children:cc(e,`${a?.length??0} ÙÙÙÙ`,`${a?.length??0} agents`)}),s.jsxs("button",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:43",onClick:()=>o(!0),className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-primary text-primary-foreground text-sm font-semibold active:scale-[0.97] transition-transform",children:[s.jsx(oa,{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:47",className:"w-4 h-4"}),cc(e,"ÙÙÙÙ Ø¬Ø¯ÙØ¯","New Agent")]})]}),r?s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:53",className:"flex justify-center py-16",children:s.jsx(ft,{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:54",className:"w-7 h-7 animate-spin text-primary"})}):(a?.length??0)===0?s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:57",className:"text-center py-16 text-muted-foreground",children:cc(e,"ÙØ§ ÙÙØ¬Ø¯ ÙÙÙØ§Ø¡ بعد. Ø£ÙØ´Ø¦ Ø£ÙÙ ØØ³Ø§Ø¨ ÙÙÙÙ.","No agents yet. Create the first agent account.")}):s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:61",className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:a.map(h=>s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:63",className:"rounded-xl border border-border bg-card p-4",children:[s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:64",className:"flex items-start justify-between",children:[s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:65",className:"flex items-center gap-2",children:[s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:66",className:"w-9 h-9 rounded-lg bg-primary/10 flex items-center justify-center",children:s.jsx(YU,{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:67",className:"w-5 h-5 text-primary"})}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:69",children:[s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:70",className:"font-semibold",children:h.name}),s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:71",className:"text-xs text-muted-foreground",children:h.email})]})]}),s.jsx("button",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:74",onClick:()=>m.mutate({id:h.id,active:!h.active}),title:cc(e,"ØªÙØ¹ÙÙ/تعطÙÙ","Toggle active"),children:h.active?s.jsx(ns,{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:79",className:"w-5 h-5 text-emerald-500"}):s.jsx(Ak,{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:81",className:"w-5 h-5 text-muted-foreground"})})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:85",className:"mt-3 flex items-center gap-2 text-xs",children:[h.region&&s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:87",className:"px-2 py-0.5 rounded-full bg-muted text-muted-foreground",children:h.region}),h.phone&&s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:89",className:"text-muted-foreground",children:h.phone})]})]}
1342,h.id))}),i&&s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:97",className:"fixed inset-0 z-50 flex items-center justify-center p-4",dir:t?"rtl":"ltr",children:[s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:98",className:"absolute inset-0 bg-black/40",onClick:()=>o(!1)}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:99",className:"relative w-full max-w-md bg-card rounded-2xl shadow-xl p-6",children:[s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:100",className:"flex items-center justify-between mb-4",children:[s.jsx("h3",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:101",className:"font-display text-xl font-bold",children:cc(e,"Ø¥ÙØ´Ø§Ø¡ ÙÙÙÙ","Create Agent")}),s.jsx("button",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:102",onClick:()=>o(!1),className:"p-1.5 rounded-lg hover:bg-muted",children:s.jsx(ks,{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:103",className:"w-5 h-5"})})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:106",className:"space-y-3",children:[s.jsx("input",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:107",className:R1,placeholder:cc(e,"Ø§ÙØ§Ø³Ù
","Name"),value:c.name,onChange:h=>l({...c,name:h.target.value})}),s.jsx("input",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:108",className:R1,type:"email",placeholder:cc(e,"Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ","Email"),value:c.email,onChange:h=>l({...c,email:h.target.value})}),s.jsx("input",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:109",className:R1,type:"password",placeholder:cc(e,"ÙÙÙ
Ø© اÙÙ
Ø±ÙØ± (8 Ø£ØØ±Ù عÙÙ Ø§ÙØ£ÙÙ)","Password (min 8 chars)"),value:c.password,onChange:h=>l({...c,password:h.target.value})}),s.jsx("input",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:110",className:R1,placeholder:cc(e,"اÙÙ
ÙØ·ÙØ© (Ù
ثاÙ: دبÙ)","Region (e.g. Dubai)"),value:c.region,onChange:h=>l({...c,region:h.target.value})}),s.jsx("input",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:111",className:R1,placeholder:cc(e,"اÙÙØ§ØªÙ","Phone"),value:c.phone,onChange:h=>l({...c,phone:h.target.value})})]}),s.jsxs("button",{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:113",onClick:()=>d.mutate(c),disabled:d.isPending||!c.name||!c.email||c.password.length<8,className:"mt-5 w-full inline-flex items-center justify-center gap-2 px-5 py-3 rounded-full bg-primary text-primary-foreground text-sm font-semibold disabled:opacity-50",children:[d.isPending&&s.jsx(ft,{"data-loc":"client/src/components/visa/admin/VisaAgentsTab.tsx:118",className:"w-4 h-4 animate-spin"}),cc(e,"Ø¥ÙØ´Ø§Ø¡ Ø§ÙØØ³Ø§Ø¨","Create Account")]})]})]})]})}const R1="w-full h-10 rounded-lg border border-border bg-background px-3 text-sm outline-none focus:border-primary",sb=(e,t,n)=>e==="ar"?t:n,By={charge:{ar:"استØÙاÙ",en:"Charge",cls:"text-amber-600",Icon:$re},payment:{ar:"Ø¯ÙØ¹Ø©",en:"Payment",cls:"text-emerald-600",Icon:zre},refund:{ar:"استرداد",en:"Refund",cls:"text-blue-600",Icon:Z0}},W1e=[{code:"service_fee",ar:"رسÙÙ
خدÙ
Ø©",en:"Service fee"},{code:"embassy_fee",ar:"رسÙÙ
Ø³ÙØ§Ø±Ø©",en:"Embassy fee"},{code:"appointment_fee",ar:"رسÙÙ
Ù
ÙØ¹Ø¯",en:"Appointment fee"},{code:"translation_fee",ar:"رسÙÙ
ترجÙ
Ø©",en:"Translation fee"},{code:"insurance_fee",ar:"رسÙÙ
تأÙ
ÙÙ",en:"Insurance fee"},{code:"cash",ar:"ÙÙØ¯Ø§Ù",en:"Cash"},{code:"card",ar:"Ø¨Ø·Ø§ÙØ©",en:"Card"},{code:"transfer",ar:"ØÙØ§ÙØ©",en:"Transfer"},{code:"other",ar:"أخرÙ",en:"Other"}];function Y1e({lang:e}){const t=(m,h)=>sb(e,m,h),n=e==="ar",[a,r]=k.useState(""),[i,o]=k.useState(null),{data:c,isLoading:l}=Pe.visa.admin.listApplications.useQuery(void 0),d=k.useMemo(()=>{const m=a.trim().toLowerCase();return(c??[]).filter(h=>m?h.fullName?.toLowerCase().includes(m)||h.reference?.toLowerCase().includes(m)||h.phone?.toLowerCase().includes(m)||h.destinationCode?.toLowerCase().includes(m):!0)},[c,a]);return s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:74",children:[s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:75",className:"flex flex-wrap items-center justify-between gap-3 mb-6",children:[s.jsxs("h2",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:76",className:"font-display text-xl font-bold flex items-center gap-2",children:[s.jsx(th,{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:77",className:"w-5 h-5 text-primary"}),t("اÙÙØ¸Ø±Ø© اÙÙ
اÙÙØ©","Finance Overview")]}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:80",className:"relative min-w-56",children:[s.jsx(so,{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:81",className:`absolute top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground ${n?"right-3":"left-3"}`}),s.jsx("input",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:82",value:a,onChange:m=>r(m.target.value),placeholder:t("Ø¨ØØ« Ø¨Ø§ÙØ§Ø³Ù
Ø£Ù Ø§ÙØ±ÙÙ
اÙÙ
رجعÙ...","Search by name or reference..."),className:`w-full h-10 rounded-lg border border-border bg-background text-sm outline-none focus:border-primary ${n?"pr-9 pl-3":"pl-9 pr-3"}`})]})]}),l?s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:92",className:"flex items-center justify-center py-20",children:s.jsx(ft,{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:93",className:"w-8 h-8 text-primary animate-spin"})}):d.length===0?s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:96",className:"text-center py-20 border border-dashed border-border rounded-xl",children:[s.jsx(th,{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:97",className:"w-10 h-10 text-muted-foreground mx-auto mb-3"}),s.jsx("p",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:98",className:"text-muted-foreground",children:t("ÙØ§ ØªÙØ¬Ø¯ Ø·ÙØ¨Ø§Øª ÙØ¹Ø±Ø¶ ØØ³Ø§Ø¨Ø§ØªÙا.","No applications to account for.")})]}):s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:101",className:"overflow-x-auto rounded-xl border border-border",children:s.jsxs("table",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:102",className:"w-full text-sm",children:[s.jsx("thead",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:103",className:"bg-muted/50 text-muted-foreground",children:s.jsxs("tr",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:104",children:[s.jsx("th",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:105",className:"text-start p-3 font-semibold",children:t("اÙÙ
رجع","Reference")}),s.jsx("th",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:106",className:"text-start p-3 font-semibold",children:t("Ø§ÙØ¹Ù
ÙÙ","Client")}
1342),s.jsx("th",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:107",className:"text-start p-3 font-semibold",children:t("اÙÙØ¬ÙØ©","Destination")}),s.jsx("th",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:108",className:"text-start p-3 font-semibold",children:t("Ø§ÙØØ³Ø§Ø¨","Account")})]})}),s.jsx("tbody",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:111",children:d.map(m=>s.jsxs("tr",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:113",onClick:()=>o(m.id),className:"border-t border-border cursor-pointer hover:bg-muted/40 transition-colors",children:[s.jsx("td",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:118",className:"p-3 font-mono text-xs",children:m.reference}),s.jsxs("td",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:119",className:"p-3",children:[s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:120",className:"font-medium",children:m.fullName}),s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:121",className:"text-xs text-muted-foreground",dir:"ltr",children:m.phone})]}),s.jsx("td",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:123",className:"p-3 uppercase text-xs",children:m.destinationCode}),s.jsx("td",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:124",className:"p-3",children:s.jsxs(Ie,{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:125",size:"sm",variant:"outline",onClick:h=>{h.stopPropagation(),o(m.id)},children:[s.jsx(th,{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:126",className:"w-3.5 h-3.5 mx-1"}),t("Ø³Ø¬Ù Ø§ÙØØ³Ø§Ø¨","Open ledger")]})})]},m.id))})]})}),i!==null&&s.jsx(X1e,{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:138",applicationId:i,lang:e,open:i!==null,onClose:()=>o(null)})]})}function X1e({applicationId:e,lang:t,open:n,onClose:a}){const r=(F,_)=>sb(t,F,_),i=Pe.useUtils(),{data:o,isLoading:c}=Pe.visa.finance.ledger.useQuery({applicationId:e}),[l,d]=k.useState("payment"),[m,h]=k.useState("cash"),[x,f]=k.useState(""),[b,y]=k.useState("JOD"),[w,T]=k.useState(""),[A,E]=k.useState(""),D=Pe.visa.finance.addEntry.useMutation({onSuccess:()=>{Le.success(r("تÙ
تسجÙ٠اÙÙÙØ¯.","Entry recorded.")),f(""),T(""),E(""),i.visa.finance.ledger.invalidate({applicationId:e})},onError:F=>Le.error(F.message||r("ØªØ¹Ø°ÙØ± Ø§ÙØªØ³Ø¬ÙÙ.","Failed to record."))}),S=Pe.visa.finance.deleteEntry.useMutation({onSuccess:()=>{Le.success(r("تÙ
ØØ°Ù اÙÙÙØ¯.","Entry removed.")),i.visa.finance.ledger.invalidate({applicationId:e})},onError:()=>Le.error(r("ØªØ¹Ø°ÙØ± Ø§ÙØØ°Ù.","Failed to remove."))}),R=o?.summary,L=o?.entries??[],I=()=>{const F=Math.round(Number(x));if(!F||F<=0){Le.error(r("أدخ٠Ù
Ø¨ÙØºØ§Ù صØÙØØ§Ù.","Enter a valid amount."));return}D.mutate({applicationId:e,entryType:l,category:m,amount:F,currency:b,descriptionAr:w||null,descriptionEn:A||null})};return s.jsx(Ba,{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:209",open:n,onOpenChange:F=>!F&&a(),children:s.jsxs(Fa,{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:210",className:"max-w-2xl max-h-[88vh] overflow-y-auto",children:[s.jsx(as,{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:211",children:s.jsxs(Ua,{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:212",className:"font-display text-2xl flex items-center gap-2",children:[s.jsx(th,{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:213",className:"w-5 h-5 text-primary"}),r("Ø³Ø¬Ù Ø§ÙØØ³Ø§Ø¨ اÙÙ
اÙÙ","Financial Ledger")]})}),c?s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:219",className:"flex items-center justify-center py-12",children:s.jsx(ft,{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:220",className:"w-7 h-7 text-primary animate-spin"})}):s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:223",className:"space-y-5",children:[R&&s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:226",className:"grid grid-cols-2 sm:grid-cols-4 gap-px rounded-xl overflow-hidden border border-border bg-border",children:[s.jsx(Fy,{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:227",label:r("إجÙ
اÙ٠اÙÙ
ستØÙ","Charged"),value:`${R.charged} ${R.currency}`}),s.jsx(Fy,{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:228",label:r("اÙÙ
دÙÙØ¹","Paid"),value:`${R.paid} ${R.currency}`}),s.jsx(Fy,{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:229",label:r("اÙÙ
ÙØ³ØªØ±Ø¯","Refunded"),value:`${R.refunded} ${R.currency}`}),s.jsx(Fy,{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:230",label:r("Ø§ÙØ±ØµÙد اÙÙ
تبÙÙ","Balance"),value:`${R.balance} ${R.currency}`,highlight:R.balance>0})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:239",className:"rounded-xl border border-border p-4 space-y-3",children:[s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:240",className:"font-semibold text-sm",children:r("Ø¥Ø
1342¶Ø§ÙØ© ÙÙØ¯","Add entry")}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:241",className:"grid grid-cols-2 sm:grid-cols-4 gap-2",children:[s.jsx("select",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:242",value:l,onChange:F=>d(F.target.value),className:"h-9 rounded-lg border border-border bg-background px-2 text-sm outline-none focus:border-primary",children:["charge","payment","refund"].map(F=>s.jsx("option",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:248",value:F,children:sb(t,By[F].ar,By[F].en)},F))}),s.jsx("select",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:251",value:m,onChange:F=>h(F.target.value),className:"h-9 rounded-lg border border-border bg-background px-2 text-sm outline-none focus:border-primary",children:W1e.map(F=>s.jsx("option",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:257",value:F.code,children:sb(t,F.ar,F.en)},F.code))}),s.jsx(Ee,{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:260",type:"number",min:1,value:x,onChange:F=>f(F.target.value),placeholder:r("اÙÙ
Ø¨ÙØº","Amount"),className:"h-9",dir:"ltr"}),s.jsx("select",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:269",value:b,onChange:F=>y(F.target.value),className:"h-9 rounded-lg border border-border bg-background px-2 text-sm outline-none focus:border-primary",children:["JOD","USD","EUR"].map(F=>s.jsx("option",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:275",value:F,children:F},F))})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:279",className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:[s.jsx(Ee,{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:280",value:w,onChange:F=>T(F.target.value),placeholder:r("ÙØµÙ (عربÙ)","Description (Arabic)"),className:"h-9",dir:"rtl"}),s.jsx(Ee,{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:281",value:A,onChange:F=>E(F.target.value),placeholder:r("ÙØµÙ (Ø¥ÙØ¬ÙÙØ²Ù)","Description (English)"),className:"h-9",dir:"ltr"})]}),s.jsxs(Ie,{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:283",onClick:I,disabled:D.isPending,size:"sm",children:[D.isPending?s.jsx(ft,{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:284",className:"w-4 h-4 mx-1.5 animate-spin"}):s.jsx(oa,{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:284",className:"w-4 h-4 mx-1.5"}),r("تسجÙ٠اÙÙÙØ¯","Record entry")]})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:290",children:[s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:291",className:"font-semibold text-sm mb-2",children:r("اÙÙÙÙØ¯","Entries")}),L.length===0?s.jsx("p",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:293",className:"text-sm text-muted-foreground py-4 text-center border border-dashed border-border rounded-lg",children:r("ÙØ§ ØªÙØ¬Ø¯ ÙÙÙØ¯ بعد.","No entries yet.")}):s.jsx("ul",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:297",className:"space-y-2",children:L.map(F=>{const _=By[F.entryType in By?F.entryType:"charge"],U=_.Icon;return s.jsxs("li",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:302",className:"flex items-center justify-between gap-3 rounded-lg border border-border p-3",children:[s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:303",className:"flex items-center gap-3 min-w-0",children:[s.jsx(U,{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:304",className:`w-5 h-5 shrink-0 ${_.cls}`}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:305",className:"min-w-0",children:[s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:306",className:"text-sm font-medium",children:[sb(t,_.ar,_.en),s.jsxs("span",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:308",className:"text-muted-foreground font-normal",children:[" · ",F.category]})]}),(F.descriptionAr||F.descriptionEn)&&s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:311",className:"text-xs text-muted-foreground truncate",children:t==="ar"?F.descriptionAr||F.descriptionEn:F.descriptionEn||F.descriptionAr}),F.recordedByName&&s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:316",className:"text-[11px] text-muted-foreground",children:F.recordedByName})]})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:320",className:"flex items-center gap-3 shrink-0",children:[s.jsxs("span",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:321",className:`font-semibold ${_.cls}`,children:[F.amount," ",F.currency]}),s.jsx("button",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:324",onClick:()=>S.mutate({id:F.id}),disabled:S.isPending,className:"p-1.5 rounded-md text-muted-foreground hover:text-red-600 hover:bg-red-50 dark:hover:bg-red-950/40 transition-colors","aria-label":"Delete entry",children:s.jsx(ro,{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:330",className:"w-4 h-4"})})]})]},F.id)})})]})]})]})})}function Fy({label:e,value:t,highlight:n}){return s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:348",className:`p-3 ${n?"bg-primary/10":"bg-card"}`,children:[s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:349",className:"text-[11px] text-muted-foreground mb-0.5",children:e}),s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaFinanceTab.tsx:350",className:`font-display text-lg font-bold ${n?"text-primary":""}`,children:t})]})}const wN=(e,t,n)=>e==="ar"?t:n,ug={new:{ar:"Ø¬Ø¯ÙØ¯",en:"New",cls:"bg-blue-50 text-blue-700 dark:bg-blue-950/40 dark:text-blue-300"},in_progress:{ar:"ÙÙØ¯ Ø§ÙØ¹Ù
Ù",en:"In progress",cls:"bg-amber-50 text-amber-700 dark:bg-amber-950/40 dark:text-amber-300"},delivered:{ar:"تÙ
Ø§ÙØªØ³ÙÙÙ
",en:"Delivered",cls:"bg-emerald-50 text-emerald-700 dark:bg-emerald-950/40 dark:text-emerald-300"},cancelled:{ar:"Ù
ÙØºÙ",en:"Cancelled",cls:"bg-red-50 text-red-700 dark:bg-red-950/40 dark:text-red-300"}};function Q1e(e){return new Promise((t,n)=>{const a=new FileReader;a.onload=()=>t(String(a.result)),a.onerror=n,a.readAsDataURL(e)})}function K1e({lang:e}){const t=(x,f)=>wN(e,x,f),n=Pe.useUtils(),[a,r]=k.useState("all"),{data:i,isLoading:o}=Pe.visa.translation.list.useQuery(a==="all"?void 0:{status:a}),c=Pe.visa.translation.update.useMutation({onSuccess:()=>{Le.success(t("تÙ
Ø§ÙØªØØ¯ÙØ«.","Updated.")),n.visa.translation.list.invali
1342date()},onError:()=>Le.error(t("ØªØ¹Ø°ÙØ± Ø§ÙØªØØ¯ÙØ«.","Update failed."))}),l=Pe.visa.translation.uploadDelivered.useMutation({onSuccess:()=>{Le.success(t("تÙ
Ø±ÙØ¹ اÙÙ
Ù٠اÙÙ
ترجÙ
ÙØªØ¹ÙÙÙ
Ø§ÙØ·Ùب ÙÙ
ÙØ³ÙÙÙÙ
.","Delivered file uploaded; marked as delivered.")),n.visa.translation.list.invalidate()},onError:x=>Le.error(x.message||t("ØªØ¹Ø°ÙØ± Ø§ÙØ±Ùع.","Upload failed."))}),d=k.useRef({}),m=async(x,f)=>{const b=await Q1e(f);l.mutate({id:x,dataBase64:b,fileName:f.name,mimeType:f.type||"application/octet-stream"})},h=["all","new","in_progress","delivered","cancelled"];return s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:88",children:[s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:89",className:"flex flex-wrap items-center justify-between gap-3 mb-6",children:[s.jsxs("h2",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:90",className:"font-display text-xl font-bold flex items-center gap-2",children:[s.jsx(kl,{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:91",className:"w-5 h-5 text-primary"}),t("Ø·ÙØ¨Ø§Øª Ø§ÙØªØ±Ø¬Ù
Ø© اÙÙ
عتÙ
دة","Certified Translation Requests")]}),s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:94",className:"flex flex-wrap gap-1.5",children:h.map(x=>s.jsx(Ie,{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:96",size:"sm",variant:a===x?"default":"outline",onClick:()=>r(x),children:x==="all"?t("اÙÙÙ","All"):wN(e,ug[x].ar,ug[x].en)},x))})]}),o?s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:109",className:"flex items-center justify-center py-20",children:s.jsx(ft,{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:110",className:"w-8 h-8 text-primary animate-spin"})}):!i||i.length===0?s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:113",className:"text-center py-20 border border-dashed border-border rounded-xl",children:[s.jsx(kl,{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:114",className:"w-10 h-10 text-muted-foreground mx-auto mb-3"}),s.jsx("p",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:115",className:"text-muted-foreground",children:t("ÙØ§ ØªÙØ¬Ø¯ Ø·ÙØ¨Ø§Øª ترجÙ
Ø©.","No translation requests yet.")})]}):s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:118",className:"overflow-x-auto rounded-xl border border-border",children:s.jsxs("table",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:119",className:"w-full text-sm",children:[s.jsx("thead",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:120",className:"bg-muted/50 text-muted-foreground",children:s.jsxs("tr",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:121",children:[s.jsx("th",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:122",className:"text-start p-3 font-semibold",children:t("اÙÙ
رجع","Reference")}),s.jsx("th",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:123",className:"text-start p-3 font-semibold",children:t("Ø§ÙØ¹Ù
ÙÙ","Client")}
1342),s.jsx("th",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:124",className:"text-start p-3 font-semibold",children:t("اÙÙØºØ§Øª","Languages")}),s.jsx("th",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:125",className:"text-start p-3 font-semibold",children:t("Ø§ÙØµÙØØ§Øª","Pages")}),s.jsx("th",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:126",className:"text-start p-3 font-semibold",children:t("Ø§ÙØ±Ø³ÙÙ
","Fee")}),s.jsx("th",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:127",className:"text-start p-3 font-semibold",children:t("Ø§ÙØØ§ÙØ©","Status")}),s.jsx("th",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:128",className:"text-start p-3 font-semibold",children:t("اÙÙ
ÙÙØ§Øª","Files")}),s.jsx("th",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:129",className:"text-start p-3 font-semibold",children:t("إجراءات","Actions")})]})}),s.jsx("tbody",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:132",children:i.map(x=>{const f=ug[x.status in ug?x.status:"new"];return s.jsxs("tr",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:136",className:"border-t border-border align-top",children:[s.jsx("td",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:137",className:"p-3 font-mono text-xs",children:x.reference}),s.jsxs("td",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:138",className:"p-3",children:[s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:139",className:"font-medium",children:x.fullName}),s.jsx("div",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:140",className:"text-xs text-muted-foreground",dir:"ltr",children:x.phone})]}),s.jsxs("td",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:142",className:"p-3 uppercase text-xs",children:[x.sourceLang," â ",x.targetLang]}),s.jsx("td",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:145",className:"p-3",children:x.pageCount}),s.jsxs("td",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:146",className:"p-3 whitespace-nowrap",children:[x.fee," ",x.currency]}),s.jsx("td",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:149",className:"p-3",children:s.jsx("select",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:150",value:x.status,onChange:b=>c.mutate({id:x.id,status:b.target.value}),className:`rounded-full px-2.5 py-1 text-xs font-semibold border-0 outline-none cursor-pointer ${f.cls}`,children:["new","in_progress","delivered","cancelled"].map(b=>s.jsx("option",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:158",value:b,children:wN(e,ug[b].ar,ug[b].en)},b))})}),s.jsx("td",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:164",className:"p-3",children:s.jsxs("div",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:165",className:"flex flex-col gap-1",children:[x.sourceFileUrl&&s.jsxs("a",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:167",href:x.sourceFileUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs text-primary hover:underline",children:[s.jsx(ji,{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:173",className:"w-3.5 h-3.5"}),t("اÙÙ
صدر","Source")]}),x.deliveredFileUrl?s.jsxs("a",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:178",href:x.deliveredFileUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs text-emerald-600 hover:underline",children:[s.jsx(Sd,{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:184",className:"w-3.5 h-3.5"}),t("اÙÙ
ÙØ³ÙÙÙÙ
","Delivered")]}):s.jsx("span",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:188",className:"text-xs text-muted-foreground",children:"â"})]})}),s.jsxs("td",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:192",className:"p-3",children:[s.jsx("input",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:193",ref:b=>{d.current[x.id]=b},type:"file",className:"hidden",onChange:b=>{const y=b.target.files?.[0];y&&m(x.id,y),b.target.value=""}}),s.jsxs(Ie,{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:205",size:"sm",variant:"outline",disabled:l.isPending,onClick:()=>d.current[x.id]?.click(),children:[l.isPending?s.jsx(ft,{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:212",className:"w-3.5 h-3.5 mx-1 animate-spin"}):s.jsx(dh,{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:214",className:"w-3.5 h-3.5 mx-1"}),t("Ø±ÙØ¹ اÙÙ
ترجÙ
","Upload translated")]})]})]},x.id)})})]})}),s.jsxs("p",{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:226",className:"text-xs text-muted-foreground mt-4 flex items-center gap-1.5",children:[s.jsx(O4,{"data-loc":"client/src/components/visa/admin/VisaTranslationTab.tsx:227",className:"w-3.5 h-3.5"}),t("Ø±ÙØ¹ اÙÙ
Ù٠اÙÙ
ترجÙ
ÙØ¹ÙÙÙ
Ø§ÙØ·Ùب تÙÙØ§Ø¦Ùا٠ÙÙ
ÙØ³ÙÙÙÙ
ÙÙÙØ±Ø³Ù إشعارا٠ÙÙØ¹Ù
ÙÙ Ø¹ÙØ¯ تÙÙØ± Ø¨Ø±ÙØ¯Ù.","Uploading the translated file auto-marks the request as delivered and emails the client when an address is on file.")]})]})}function kn({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:7","data-slot":"card",className:an("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function Xr({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:20","data-slot":"card-header",className:an("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function Qr({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:33","data-slot":"card-title",className:an("leading-none font-semibold",e),...t})}function Un({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:66","data-slot":"card-content",className:an("px-6",e),...t})}const Z1e=(e,t,n)=>e==="ar"?t:n;let ebe=1;function tbe(){return{id:`tier_${Date.now()}_${ebe++}`,labelAr:"",labelEn:"",minAge:0,maxAge:12,mode:"percent",percent:50,fixed:0,occupiesBed:!1}}function nbe({lang:e}){const t=(y,w)=>Z1e(e,y,w),n=Pe.useUtils(),{data:a,isLoading:r}=Pe.umrah.getChildPolicy.useQuery(),[i,o]=k.useState([]),[c,l]=k.useState(!0);k.useEffect(()=>{a&&(o(a.tiers.map(y=>({...y}))),l(a.roundToWhole))},[a]);const d=Pe.umrah.setChildPolicy.useMutation({onSuccess:()=>{Le.success(t("تÙ
ØÙظ Ø³ÙØ§Ø³Ø© أسعار Ø§ÙØ£Ø·ÙاÙ.","Child-pricing policy saved.")),n.umrah.getChildPolicy.invalidate(),n.umrah.childPolicy.invalidate()},onError:y=>Le.error(y.message)}),m=(y,w)=>o(T=>T.map(A=>A.id===y?{...A,...w}:A)),h=y=>o(w=>w.filter(T=>T.id!==y)),x=()=>o(y=>[...y,tbe()]),f=()=>{o(b7.tiers.map(y=>({...y}))),l(b7.roundToWhole)},b=()=>{if(i.length===0){Le.error(t("Ø£Ø¶Ù Ø´Ø±ÙØØ© ÙØ§ØØ¯Ø© عÙÙ Ø§ÙØ£ÙÙ.","Add at least one tier."));return}for(const y of i)if(y.maxAge<=y.minAge){Le.error(t(`Ø§ÙØ´Ø±ÙØØ© "${y.labelAr||y.id}": Ø§ÙØ¹Ù
ر Ø§ÙØ£ÙØµÙ ÙØ¬Ø¨ Ø£Ù ÙÙÙÙ Ø£ÙØ¨Ø± Ù
Ù Ø§ÙØ£Ø¯ÙÙ.`,`Tier "${y.labelEn||y.id}": max age must exceed min age.`));return}d.mutate({roundToWhole:c,tiers:i})};
1342return r?s.jsx(kn,{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:85",className:"p-5 flex items-center justify-center",children:s.jsx(ft,{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:86",className:"w-6 h-6 animate-spin text-primary"})}):s.jsxs(kn,{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:92",className:"p-5 space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:93",className:"flex items-start gap-3",children:[s.jsx(IU,{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:94",className:"w-6 h-6 text-primary shrink-0 mt-0.5"}),s.jsxs("div",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:95",children:[s.jsx("h3",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:96",className:"font-display font-bold text-lg text-foreground",children:t("Ø³ÙØ§Ø³Ø© أسعار Ø§ÙØ£Ø·ÙاÙ","Child-pricing policy")}),s.jsx("p",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:99",className:"text-sm text-muted-foreground leading-relaxed mt-1",children:t("Ù
ÙÙ Ø§ÙØ¥ÙØ³Ù ÙØÙ٠أسعار Ø§ÙØ¨Ø§ÙغÙÙ ÙÙØ·. ØØ¯Ùد ÙÙØ§ ÙÙÙ ÙÙØØªØ³Ø¨ سعر Ø§ÙØ·ÙÙ ØØ³Ø¨ عÙ
رÙ: ÙØ³Ø¨Ø© Ù
٠سعر Ø§ÙØ¨Ø§Ùغ ÙÙ ÙÙØ³ Ø§ÙØºØ±ÙØ©Ø Ø£Ù Ù
Ø¨ÙØº Ø«Ø§Ø¨ØªØ Ø£Ù ÙÙØØªØ³Ø¨ ÙØ¨Ø§Ùغ. ØªÙØ·Ø¨ÙÙÙ ÙØ°Ù Ø§ÙØ³Ùاسة عÙÙ Ù٠براÙ
ج Ø§ÙØ¹Ù
رة (Ø·ÙØ±Ø§Ù ÙØ¨ÙرÙ) Ù٠أداة Ø¨ÙØ§Ø¡ Ø§ÙØ¨Ø±ÙاÙ
ج.","The Excel carries adult prices only. Define how a child is priced by age: a percentage of the adult room price, a fixed amount, or charged as an adult. This policy applies to all Umrah programs (air & land) in the Trip Builder.")})]})]}),s.jsx("div",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:108",className:"space-y-3",children:i.map(y=>s.jsxs("div",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:110",className:"rounded-xl border border-border p-3.5 space-y-3 bg-muted/20",children:[s.jsxs("div",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:111",className:"grid sm:grid-cols-2 gap-3",children:[s.jsxs("label",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:112",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:113",className:"text-xs text-muted-foreground mb-1 block",children:t("Ø§ÙØ§Ø³Ù
(عربÙ)","Label (Arabic)")}),s.jsx("input",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:114",value:y.labelAr,onChange:w=>m(y.id,{labelAr:w.target.value}),className:"w-full px-3 py-2 rounded-lg border border-border bg-background text-foreground outline-none focus:border-primary",placeholder:t("Ø·Ù٠بدÙÙ Ø³Ø±ÙØ±","Child without bed")})]}),s.jsxs("label",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:121",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:122",className:"text-xs text-muted-foreground mb-1 block",children:t("Ø§ÙØ§Ø³Ù
(Ø¥ÙØ¬ÙÙØ²Ù)","Label (English)")}),s.jsx("input",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:123",value:y.labelEn,onChange:w=>m(y.id,{labelEn:w.target.value}),className:"w-full px-3 py-2 rounded-lg border border-border bg-background text-foreground outline-none focus:border-primary",placeholder:"Child without bed"})]})]}),s.jsxs("div",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:132",className:"grid grid-cols-2 sm:grid-cols-4 gap-3 items-end",children:[s.jsxs("label",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:133",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:134",className:"text-xs text-muted-foreground mb-1 block",children:t("Ù
٠عÙ
ر","Min age")}),s.jsx("input",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:135",type:"number",min:0,max:200,value:y.minAge,onChange:w=>m(y.id,{minAge:Math.max(0,Number(w.target.value)||0)}),className:"w-full px-3 py-2 rounded-lg border border-border bg-background text-foreground outline-none focus:border-primary"})]}
1342),s.jsxs("label",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:144",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:145",className:"text-xs text-muted-foreground mb-1 block",children:t("Ø¥ÙÙ (Ø£ÙÙ Ù
Ù)","Max (exclusive)")}),s.jsx("input",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:146",type:"number",min:1,max:200,value:y.maxAge,onChange:w=>m(y.id,{maxAge:Math.max(1,Number(w.target.value)||1)}),className:"w-full px-3 py-2 rounded-lg border border-border bg-background text-foreground outline-none focus:border-primary"})]}),s.jsxs("label",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:155",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:156",className:"text-xs text-muted-foreground mb-1 block",children:t("طرÙÙØ© Ø§ÙØ§ØØªØ³Ø§Ø¨","Mode")}),s.jsxs("select",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:157",value:y.mode,onChange:w=>m(y.id,{mode:w.target.value}),className:"w-full px-3 py-2 rounded-lg border border-border bg-background text-foreground outline-none focus:border-primary",children:[s.jsx("option",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:162",value:"percent",children:t("ÙØ³Ø¨Ø© Ù
Ù Ø§ÙØ¨Ø§Ùغ","% of adult")}),s.jsx("option",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:163",value:"fixed",children:t("Ù
Ø¨ÙØº ثابت","Fixed amount")}),s.jsx("option",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:164",value:"adult",children:t("ÙØ¨Ø§Ùغ","As adult")})]})]}),s.jsxs("label",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:167",className:"block",children:[s.jsx("span",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:168",className:"text-xs text-muted-foreground mb-1 block",children:y.mode==="fixed"?t("اÙÙ
Ø¨ÙØº (JOD)","Amount (JOD)"):y.mode==="percent"?t("اÙÙØ³Ø¨Ø© %","Percent %"):"â"}),s.jsx("input",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:171",type:"number",min:0,disabled:y.mode==="adult",value:y.mode==="fixed"?y.fixed:y.percent,onChange:w=>y.mode==="fixed"?m(y.id,{fixed:Math.max(0,Number(w.target.value)||0)}):m(y.id,{percent:Math.max(0,Math.min(100,Number(w.target.value)||0))}),className:"w-full px-3 py-2 rounded-lg border border-border bg-background text-foreground outline-none focus:border-primary disabled:opacity-50"})]})]}),s.jsxs("div",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:186",className:"flex items-center justify-between",children:[s.jsxs("label",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:187",className:"inline-flex items-center gap-2 text-sm text-foreground/80",children:[s.jsx("input",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:188",type:"checkbox",checked:y.occupiesBed,onChange:w=>m(y.id,{occupiesBed:w.target.checked}),className:"rounded border-border"}),t("ÙØ´ØºÙ Ø³Ø±ÙØ±Ø§Ù","Occupies a bed")]}),s.jsxs(Ie,{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:196",variant:"outline",size:"sm",onClick:()=>h(y.id),className:"text-red-600 border-red-300 hover:bg-red-50",children:[s.jsx(ro,{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:197",className:"w-3.5 h-3.5 mx-1"}),t("ØØ°Ù","Remove")]})]})]},y.id))}),s.jsxs("div",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:205",className:"flex flex-wrap items-center gap-3",children:[s.jsxs(Ie,{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:206",variant:"outline",size:"sm",onClick:x,children:[s.jsx(oa,{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:207",className:"w-4 h-4 mx-1"}),t("Ø¥Ø¶Ø§ÙØ© Ø´Ø±ÙØØ©","Add tier")]}),s.jsxs(Ie,{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:210",variant:"outline",size:"sm",onClick:f,children:[s.jsx(Z0,{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:211",className:"w-4 h-4 mx-1"}),t("استعادة Ø§ÙØ§ÙتراضÙ","Reset defaults")]}
1342),s.jsxs("label",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:214",className:"inline-flex items-center gap-2 text-sm text-foreground/80 mx-2",children:[s.jsx("input",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:215",type:"checkbox",checked:c,onChange:y=>l(y.target.checked),className:"rounded border-border"}),t("ØªÙØ±Ùب Ø§ÙØ£Ø³Ø¹Ø§Ø± ÙØ£Ùرب دÙÙØ§Ø±","Round prices to whole JOD")]}),s.jsx("div",{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:218",className:"grow"}),s.jsxs(Ie,{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:219",onClick:b,disabled:d.isPending,children:[d.isPending?s.jsx(ft,{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:220",className:"w-4 h-4 mx-1.5 animate-spin"}):s.jsx(ef,{"data-loc":"client/src/components/admin/ChildPolicyEditor.tsx:220",className:"w-4 h-4 mx-1.5"}),t("ØÙظ Ø§ÙØ³Ùاسة","Save policy")]})]})]})}function es({className:e,onKeyDown:t,onCompositionStart:n,onCompositionEnd:a,...r}){const i=pA(),{onCompositionStart:o,onCompositionEnd:c,onKeyDown:l}=uq({onKeyDown:d=>{const m=d.nativeEvent.isComposing||i.justEndedComposing();d.key==="Enter"&&!d.shiftKey&&m||t?.(d)},onCompositionStart:d=>{i.setComposing(!0),n?.(d)},onCompositionEnd:d=>{i.markCompositionEnd(),setTimeout(()=>{i.setComposing(!1)},100),a?.(d)}});return s.jsx("textarea",{"data-loc":"client/src/components/ui/textarea.tsx:53","data-slot":"textarea",className:an("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),onCompositionStart:o,onCompositionEnd:c,onKeyDown:l,...r})}const abe=(e,t,n)=>e==="ar"?t:n;function sbe({lang:e}){const t=(x,f)=>abe(e,x,f),n=Pe.useUtils(),{data:a,isLoading:r}=Pe.umrah.getContent.useQuery(),[i,o]=k.useState(M3);k.useEffect(()=>{a&&o(a)},[a]);const c=Pe.umrah.setContent.useMutation({onSuccess:async()=>{Le.success(t("تÙ
ØÙظ ÙØµÙص Ø§ÙØµÙØØ©.","Page text saved.")),await n.umrah.getContent.invalidate(),await n.umrah.content.invalidate()},onError:x=>Le.error(x.message)});function l(x,f){o(b=>({...b,[x]:f}))}function d(x,f,b){o(y=>{const w=y.requirements.map((T,A)=>A===x?{...T,[f]:b}:T);return{...y,requirements:w}})}function m(){o(x=>({...x,requirements:[...x.requirements,{ar:"",en:""}]}))}function h(x){o(f=>({...f,requirements:f.requirements.filter((b,y)=>y!==x)}))}return r?s.jsx(kn,{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:65",className:"p-8 flex justify-center",children:s.jsx(ft,{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:66",className:"w-6 h-6 animate-spin text-primary"})}):s.jsxs(kn,{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:72",className:"p-5 space-y-6",children:[s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:73",className:"flex items-center gap-2",children:[s.jsx(ji,{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:74",className:"w-5 h-5 text-primary"}),s.jsx("h3",{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:75",className:"font-display font-bold text-lg text-foreground",children:t("ÙØµÙص ØµÙØØ© Ø§ÙØ¹Ù
رة","Umrah page text")})]}),s.jsx("p",{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:79",className:"text-sm text-muted-foreground -mt-2",children:t("عدÙÙ Ø§ÙØ¹ÙاÙÙÙ ÙØ§ÙÙØµÙ ÙÙØ§Ø¦Ù
Ø© اÙÙ
ØªØ·ÙØ¨Ø§Øª Ø§ÙØªÙ ØªØ¸ÙØ± ÙÙØ²Ùار ÙÙ ØµÙØØ© Ø§ÙØ¹Ù
Ø±Ø©Ø Ø¨Ø§ÙØ¹Ø±Ø¨ÙØ© ÙØ§ÙØ¥ÙØ¬ÙÙØ²ÙØ©.","Edit the headings, description and requirements list shown to visitors on the Umrah page, in Arabic and English.")}),s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:87",className:"space-y-4",children:[s.jsx("h4",{"data-loc":"client/src/components/
1342admin/UmrahContentEditor.tsx:88",className:"font-semibold text-foreground text-sm border-b border-border pb-1",children:t("اÙÙØ³Ù
Ø§ÙØ¹ÙÙÙ (اÙÙÙØ±Ù)","Hero section")}),s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:91",className:"grid sm:grid-cols-2 gap-4",children:[s.jsx(dg,{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:92",label:t("ÙØµ عÙÙÙ ØµØºÙØ± (عربÙ)","Eyebrow (Arabic)"),value:i.eyebrowAr,onChange:x=>l("eyebrowAr",x)}),s.jsx(dg,{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:93",label:t("ÙØµ عÙÙÙ ØµØºÙØ± (Ø¥ÙØ¬ÙÙØ²Ù)","Eyebrow (English)"),value:i.eyebrowEn,onChange:x=>l("eyebrowEn",x)}),s.jsx(dg,{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:94",label:t("Ø§ÙØ¹ÙÙØ§Ù (عربÙ)","Title (Arabic)"),value:i.titleAr,onChange:x=>l("titleAr",x)}),s.jsx(dg,{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:95",label:t("Ø§ÙØ¹ÙÙØ§Ù (Ø¥ÙØ¬ÙÙØ²Ù)","Title (English)"),value:i.titleEn,onChange:x=>l("titleEn",x)})]}),s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:97",className:"grid sm:grid-cols-2 gap-4",children:[s.jsx(Uy,{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:98",label:t("اÙÙØµÙ (عربÙ)","Description (Arabic)"),value:i.descAr,onChange:x=>l("descAr",x)}),s.jsx(Uy,{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:99",label:t("اÙÙØµÙ (Ø¥ÙØ¬ÙÙØ²Ù)","Description (English)"),value:i.descEn,onChange:x=>l("descEn",x)})]})]}),s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:104",className:"space-y-4",children:[s.jsx("h4",{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:105",className:"font-semibold text-foreground text-sm border-b border-border pb-1",children:t("ÙØ³Ù
اÙÙ
ØªØ·ÙØ¨Ø§Øª","Requirements section")}),s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:108",className:"grid sm:grid-cols-2 gap-4",children:[s.jsx(dg,{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:109",label:t("عÙÙØ§Ù اÙÙØ³Ù
(عربÙ)","Heading (Arabic)"),value:i.requirementsTitleAr,onChange:x=>l("requirementsTitleAr",x)}),s.jsx(dg,{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:110",label:t("عÙÙØ§Ù اÙÙØ³Ù
(Ø¥ÙØ¬ÙÙØ²Ù)","Heading (English)"),value:i.requirementsTitleEn,onChange:x=>l("requirementsTitleEn",x)})]}),s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:113",className:"space-y-3",children:[i.requirements.map((x,f)=>s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:115",className:"rounded-lg border border-border p-3 space-y-2",children:[s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:116",className:"flex items-center justify-between",children:[s.jsx("span",{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:117",className:"text-xs font-medium text-muted-foreground",children:t(`Ù
ØªØ·ÙØ¨ ${f+1}`,`Requirement ${f+1}`)}),s.jsx(Ie,{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:120",variant:"outline",size:"sm",onClick:()=>h(f),children:s.jsx(ro,{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:121",className:"w-3.5 h-3.5 text-destructive"})})]}),s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:124",className:"grid sm:grid-cols-2 gap-3",children:[s.jsx(Ee,{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:125",value:x.ar,onChange:b=>d(f,"ar",b.target.value),placeholder:t("اÙÙØµ Ø¨Ø§ÙØ¹Ø±Ø¨ÙØ©","Arabic text"),dir:"rtl"}),s.jsx(Ee,{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:126",value:x.en,onChange:b=>d(f,"en",b.target.value),placeholder:t("اÙÙØµ Ø¨Ø§ÙØ¥ÙجÙÙØ²ÙØ©","English text"),dir:"ltr"})]})]},f)),s.jsxs(Ie,{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:130",variant:"outline",size:"sm",onClick:m,children:[s.jsx(oa,{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:131",className:"w-4 h-4 mx-1.5"}),t("Ø¥Ø¶Ø§ÙØ© Ù
ØªØ·ÙØ¨","Add requirement")]})]}
1342),s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:136",className:"grid sm:grid-cols-2 gap-4",children:[s.jsx(Uy,{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:137",label:t("Ù
ÙØ§ØØ¸Ø© أسÙ٠اÙÙ
ØªØ·ÙØ¨Ø§Øª (عربÙ)","Footnote (Arabic)"),value:i.requirementsNoteAr,onChange:x=>l("requirementsNoteAr",x)}),s.jsx(Uy,{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:138",label:t("Ù
ÙØ§ØØ¸Ø© أسÙ٠اÙÙ
ØªØ·ÙØ¨Ø§Øª (Ø¥ÙØ¬ÙÙØ²Ù)","Footnote (English)"),value:i.requirementsNoteEn,onChange:x=>l("requirementsNoteEn",x)})]})]}),s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:142",className:"flex justify-end gap-2",children:[s.jsx(Ie,{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:143",variant:"outline",onClick:()=>o(M3),disabled:c.isPending,children:t("إعادة Ø§ÙØ§ÙتراضÙ","Reset to default")}),s.jsxs(Ie,{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:150",onClick:()=>c.mutate(i),disabled:c.isPending,children:[c.isPending?s.jsx(ft,{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:151",className:"w-4 h-4 mx-1.5 animate-spin"}):s.jsx(ef,{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:151",className:"w-4 h-4 mx-1.5"}),t("ØÙظ اÙÙØµÙص","Save text")]})]})]})}function dg({label:e,value:t,onChange:n}){return s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:161",className:"space-y-1.5",children:[s.jsx(nt,{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:162",children:e}),s.jsx(Ee,{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:163",value:t,onChange:a=>n(a.target.value)})]})}function Uy({label:e,value:t,onChange:n}){return s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:170",className:"space-y-1.5",children:[s.jsx(nt,{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:171",children:e}),s.jsx(es,{"data-loc":"client/src/components/admin/UmrahContentEditor.tsx:172",value:t,onChange:a=>n(a.target.value),rows:3})]})}const rbe=(e,t,n)=>e==="ar"?t:n,TN=["single","double","triple","quad","quint"],MI={single:["Ù
ÙØ±Ø¯","Single"],double:["Ø«ÙØ§Ø¦Ù","Double"],triple:["Ø«ÙØ§Ø«Ù","Triple"],quad:["رباعÙ","Quad"],quint:["Ø®Ù
اسÙ","Quint"]};function w7(){return{program:"",tripType:"flight",madinahHotel:"",madinahRating:"",makkahHotel:"",location:"",makkahRating:"",meals:"",prices:{},active:!0}}function ibe({lang:e,open:t,onOpenChange:n,initial:a,onSaved:r}){const i=(A,E)=>rbe(e,A,E),o=Pe.useUtils(),[c,l]=k.useState(w7()),[d,m]=k.useState({});k.useEffect(()=>{if(t){const A=a??w7();l(A);const E={};for(const D of TN){const S=A.prices?.[D];E[D]=S!=null&&S>0?String(S):""}m(E)}},[t,a]);const h=c.id!=null,x=Pe.umrah.createRow.useMutation(),f=Pe.umrah.updateRow.useMutation(),b=x.isPending||f.isPending;function y(A,E){l(D=>({...D,[A]:E}))}function w(){const A={};for(const E of TN){const D=(d[E]??"").trim();if(!D)continue;const S=Number(D.replace(/[^\d.]/g,""));Number.isFinite(S)&&S>0&&(A[E]=S)}return A}async function T(){if(!c.program.trim()){Le.error(i("أدخ٠اسÙ
/Ù
دة Ø§ÙØ¨Ø±ÙاÙ
ج (Ù
Ø«Ù: 8 Ø£ÙØ§Ù
/ 7 ÙÙØ§ÙÙ).","Enter the program/duration (e.g. 8 days / 7 nights)."));return}if(!c.makkahHotel.trim()){Le.error(i("أدخ٠اسÙ
ÙÙØ¯Ù Ù
ÙØ©.","Enter the Makkah hotel name."));return}const A=w();if(Object.keys(A).length===0){Le.error(i("Ø£Ø¯Ø®Ù Ø³Ø¹Ø±Ø§Ù ÙØ§ØØ¯Ø§Ù عÙÙ Ø§ÙØ£ÙÙ ÙØ£ØØ¯ Ø£ÙÙØ§Ø¹ Ø§ÙØºØ±Ù.","Enter at least one room price."));return}const E={program:c.program.trim(),tripType:c.tripType,madinahHotel:c.madinahHotel.trim()||null,madinahRating:c.madinahRating.trim()||null,makkahHotel:c.makkahHotel.trim(),location:c.location.trim()||null,makkahRating:c.makkahRating.trim()||null,meals:c.meals.trim()||null,prices:A,active:c.active};try{h?(await f.mutateAsync({id:c.id,...E}),Le.success(i("تÙ
ØÙظ Ø§ÙØªØ¹Ø¯ÙÙØ§Øª.","Changes saved."))):(await x.mutateAsync(E),Le.success(i("تÙ
ت Ø¥Ø¶Ø§ÙØ© Ø§ÙØ¨Ø±ÙاÙ
ج.","Program added."))),await o.umrah.adminList.invali
1342date(),await o.umrah.list.invalidate(),await o.umrah.listBackups.invalidate(),r(),n(!1)}catch(D){Le.error(D?.message??i("ØªØ¹Ø°ÙØ± Ø§ÙØÙØ¸.","Could not save."))}}return s.jsx(Ba,{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:162",open:t,onOpenChange:n,children:s.jsxs(Fa,{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:163",className:"max-w-4xl w-[95vw] max-h-[92vh] overflow-y-auto sm:p-8",children:[s.jsx(as,{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:164",children:s.jsx(Ua,{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:165",children:h?i("تعدÙÙ Ø¨Ø±ÙØ§Ù
ج عÙ
رة","Edit Umrah program"):i("Ø¥Ø¶Ø§ÙØ© Ø¨Ø±ÙØ§Ù
ج عÙ
رة","Add Umrah program")})}),s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:170",className:"space-y-4 py-2",children:[s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:171",className:"grid sm:grid-cols-2 gap-4",children:[s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:172",className:"space-y-1.5",children:[s.jsx(nt,{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:173",children:i("اÙÙ
دة / اسÙ
Ø§ÙØ¨Ø±ÙاÙ
ج","Duration / program name")}),s.jsx(Ee,{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:174",value:c.program,onChange:A=>y("program",A.target.value),placeholder:i("8 Ø£ÙØ§Ù
/ 7 ÙÙØ§ÙÙ","8 days / 7 nights")})]}),s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:180",className:"space-y-1.5",children:[s.jsx(nt,{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:181",children:i("ÙÙØ¹ Ø§ÙØ±ØÙØ©","Trip type")}),s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:182",className:"flex gap-2",children:[s.jsx(Ie,{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:183",type:"button",variant:c.tripType==="flight"?"default":"outline",className:"flex-1",onClick:()=>y("tripType","flight"),children:i("Ø·ÙØ±Ø§Ù","Flight")}),s.jsx(Ie,{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:191",type:"button",variant:c.tripType==="land"?"default":"outline",className:"flex-1",onClick:()=>y("tripType","land"),children:i("ØØ§ÙÙØ© (برÙÙØ§)","Coach (land)")})]})]})]}),s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:203",className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-4",children:[s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:204",className:"space-y-1.5",children:[s.jsx(nt,{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:205",children:i("ÙÙØ¯Ù Ù
ÙØ©","Makkah hotel")}),s.jsx(Ee,{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:206",value:c.makkahHotel,onChange:A=>y("makkahHotel",A.target.value),placeholder:i("اسÙ
اÙÙÙØ¯Ù","Hotel name")}
1342)]}),s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:212",className:"space-y-1.5",children:[s.jsx(nt,{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:213",children:i("تصÙÙÙ ÙÙØ¯Ù Ù
ÙØ©","Makkah rating")}),s.jsx(Ee,{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:214",value:c.makkahRating,onChange:A=>y("makkahRating",A.target.value),placeholder:i("5 ÙØ¬ÙÙ
/ Ø§ÙØªØµØ§Ø¯Ù","5 stars / economy")})]}),s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:220",className:"space-y-1.5",children:[s.jsx(nt,{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:221",children:i("اÙÙ
ÙÙØ¹ / اÙÙ
Ø³Ø§ÙØ© Ù
Ù Ø§ÙØØ±Ù
","Location / distance from Haram")}),s.jsx(Ee,{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:222",value:c.location,onChange:A=>y("location",A.target.value),placeholder:i("عÙ٠بعد 300Ù
","300m away")})]})]}),s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:230",className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-4",children:[s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:231",className:"space-y-1.5",children:[s.jsx(nt,{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:232",children:i("ÙÙØ¯Ù اÙÙ
دÙÙØ© (Ø§Ø®ØªÙØ§Ø±Ù)","Madinah hotel (optional)")}),s.jsx(Ee,{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:233",value:c.madinahHotel,onChange:A=>y("madinahHotel",A.target.value),placeholder:i("اسÙ
اÙÙÙØ¯Ù","Hotel name")}
1342)]}),s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:239",className:"space-y-1.5",children:[s.jsx(nt,{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:240",children:i("تصÙÙÙ ÙÙØ¯Ù اÙÙ
دÙÙØ©","Madinah rating")}),s.jsx(Ee,{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:241",value:c.madinahRating,onChange:A=>y("madinahRating",A.target.value),placeholder:i("5 ÙØ¬ÙÙ
/ Ø§ÙØªØµØ§Ø¯Ù","5 stars / economy")})]}),s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:247",className:"space-y-1.5",children:[s.jsx(nt,{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:248",children:i("اÙÙØ¬Ø¨Ø§Øª","Meals")}),s.jsx(Ee,{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:249",value:c.meals,onChange:A=>y("meals",A.target.value),placeholder:i("بدÙÙ / Ø¥ÙØ·Ø§Ø±","None / breakfast")})]})]}),s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:257",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:258",children:i("Ø§ÙØ£Ø³Ø¹Ø§Ø± ÙÙØ´Ø®Øµ (ØØ³Ø¨ ÙÙØ¹ Ø§ÙØºØ±ÙØ©)","Per-person prices (by room type)")}),s.jsx("div",{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:259",className:"grid grid-cols-2 sm:grid-cols-5 gap-3",children:TN.map(A=>s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:261",className:"space-y-1",children:[s.jsx("span",{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:262",className:"text-xs text-muted-foreground",children:i(MI[A][0],MI[A][1])}),s.jsx(Ee,{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:263",inputMode:"decimal",value:d[A]??"",onChange:E=>m(D=>({...D,[A]:E.target.value})),placeholder:"â"})]},A))}),s.jsx("p",{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:272",className:"text-xs text-muted-foreground",children:i("Ø§ÙØ¹Ù
ÙØ©: دÙÙØ§Ø± أردÙÙ (JOD). Ø§ØªØ±Ù Ø§ÙØÙÙ ÙØ§Ø±ØºØ§Ù Ø¥Ù ÙÙ
ÙØªÙÙØ± ÙØ°Ø§ اÙÙÙØ¹.","Currency: JOD. Leave blank if a room type is unavailable.")})]}),s.jsxs("label",{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:275",className:"flex items-center gap-2 text-sm text-foreground cursor-pointer",children:[s.jsx("input",{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:276",type:"checkbox",checked:c.active,onChange:A=>y("active",A.target.checked),className:"w-4 h-4 accent-primary"}),i("Ø¸Ø§ÙØ± ÙÙØ²Ùار","Visible to visitors")]})]}),s.jsxs(ei,{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:286",children:[s.jsx(Ie,{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:287",variant:"outline",onClick:()=>n(!1),disabled:b,children:i("Ø¥ÙØºØ§Ø¡","Cancel")}),s.jsxs(Ie,{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:290",onClick:T,disabled:b,children:[b?s.jsx(ft,{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:291",className:"w-4 h-4 mx-1.5 animate-spin"}):s.jsx(ef,{"data-loc":"client/src/components/admin/UmrahRowEditor.tsx:291",className:"w-4 h-4 mx-1.5"}),i("ØÙظ","Save")]})]})]})})}const hq=(e,t,n)=>e==="ar"?t:n,LI={single:["Ù
ÙØ±Ø¯","Single"],double:["Ø«ÙØ§Ø¦Ù","Double"],triple:["Ø«ÙØ§Ø«Ù","Triple"],quad:["رباعÙ","Quad"],quint:["Ø®Ù
اسÙ","Quint"]};function Hy(e,t){if(!e)return"â";const n=Object.entries(e).map(([a,r])=>`${hq(t,LI[a]?.[0]??a,LI[a]?.[1]??a)}: ${r}`);return n.length?n.join(" · "):"â"}function obe({lang:e}){const t=(I,F)=>hq(e,I,F),n=Pe.useUtils(),a=k.useRef(null),{data:r,isLoading:i}=Pe.umrah.adminList.useQuery(),{data:o}=Pe.umrah.listBackups.useQuery(),[c,l]=k.useState(null),[d,m]=k.useState(null),h=Pe.umrah.preview.useMutation({onSuccess:I=>{l(I),I.errors.length?Le.error(t("اÙÙ
ÙÙ ÙØØªÙ٠عÙ٠أخطاء â Ø±Ø§Ø¬Ø¹Ùا ÙØ¨Ù Ø§ÙØªØ£ÙÙØ¯.","The file has errors â review before confirming.")):Le.success(t("تÙ
ت ÙØ±Ø§Ø¡Ø© اÙÙ
ÙÙ. راجع اÙÙ
عاÙÙØ© Ø«Ù
Ø£ÙÙØ¯.","File parsed. Review the preview, then confirm."))},onError:I=>Le.error(I.message)}),x=Pe.umrah.confirm.useMutation({onSuccess:I=>{Le.success(t(`تÙ
ØªØØ¯ÙØ« ${I.count} Ø¨Ø±ÙØ§Ù
ج عÙ
رة Ø¨ÙØ¬Ø§Ø.`,`Updated ${I.count} Umrah programs.`)),l(null),m(null),a.current&&(a.current.value=""),n.umrah.adminList.invali
1342date(),n.umrah.listBackups.invalidate()},onError:I=>Le.error(I.message)}),f=Pe.umrah.update.useMutation({onSuccess:()=>n.umrah.adminList.invalidate(),onError:I=>Le.error(I.message)}),[b,y]=k.useState(!1),[w,T]=k.useState(null);function A(){T(w7()),y(!0)}function E(I){T({id:I.id,program:I.program??"",tripType:I.tripType==="land"?"land":"flight",madinahHotel:I.madinahHotel??"",madinahRating:I.madinahRating??"",makkahHotel:I.makkahHotel??"",location:I.location??"",makkahRating:I.makkahRating??"",meals:I.meals??"",prices:I.prices??{},active:!!I.active}),y(!0)}const D=Pe.umrah.deleteRow.useMutation({onSuccess:()=>{Le.success(t("تÙ
ØØ°Ù Ø§ÙØ¨Ø±ÙاÙ
ج.","Program deleted.")),n.umrah.adminList.invalidate(),n.umrah.list.invalidate(),n.umrah.listBackups.invalidate()},onError:I=>Le.error(I.message)}),S=Pe.umrah.rollback.useMutation({onSuccess:I=>{Le.success(t(`تÙ
Ø§ÙØªØ±Ø§Ø¬Ø¹ ÙØ§Ø³ØªØ¹Ø§Ø¯Ø© ${I.count} Ø¨Ø±ÙØ§Ù
ج.`,`Rolled back ${I.count} programs.`)),n.umrah.adminList.invalidate(),n.umrah.listBackups.invalidate()},onError:I=>Le.error(I.message)});async function R(I){m(I.name);const F=await I.arrayBuffer();let _="";const U=new Uint8Array(F),O=32768;for(let J=0;J<U.length;J+=O){const oe=U.subarray(J,J+O);_+=String.fromCharCode.apply(null,Array.from(oe))}const W=btoa(_);h.mutate({fileBase64:W,fileName:I.name})}const L=c?.totals;return s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahTab.tsx:152",className:"space-y-6",children:[s.jsx(kn,{"data-loc":"client/src/components/admin/UmrahTab.tsx:154",className:"p-5 border-primary/30 bg-primary/5",children:s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahTab.tsx:155",className:"flex items-start gap-3",children:[s.jsx(nA,{"data-loc":"client/src/components/admin/UmrahTab.tsx:156",className:"w-6 h-6 text-primary shrink-0 mt-0.5"}),s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahTab.tsx:157",className:"space-y-1 text-sm",children:[s.jsx("p",{"data-loc":"client/src/components/admin/UmrahTab.tsx:158",className:"font-semibold text-foreground",children:t("ØªØØ¯ÙØ« براÙ
ج Ø§ÙØ¹Ù
رة Ù
Ù Ù
ÙÙ Ø§ÙØ¥ÙسÙ","Update Umrah programs from Excel")}),s.jsx("p",{"data-loc":"client/src/components/admin/UmrahTab.tsx:161",className:"text-muted-foreground leading-relaxed",children:t("Ø§Ø±ÙØ¹ ÙÙØ³ ÙØ§Ùب «تØÙÙ٠براÙ
ج Ø§ÙØ¹Ù
رة». ÙÙØ±Ø£ اÙÙØ¸Ø§Ù
Ø£ÙØ±Ø§Ù Ø§ÙØ®Ùاصة ÙØ±ØÙات Ø§ÙØ·Ùرا٠(8/5/4 Ø£ÙØ§Ù
) ÙÙØ°ÙÙ ÙØ±ÙØ© «Ù
ÙØ®Øµ Ø§ÙØ¨Ø±Â» ÙØ¨Ø±Ø§Ù
ج Ø§ÙØ¹Ù
رة برÙÙØ§ Ø¨Ø§ÙØØ§ÙÙØ©: اÙÙÙØ¯ÙØ Ø§ÙØªØµÙÙÙØ اÙÙ
ÙÙØ¹Ø اÙÙØ¬Ø¨Ø§ØªØ ÙØ§Ùأسعار ØØ³Ø¨ Ø§ÙØºØ±ÙØ©. Ø£ÙØ±Ø§Ù Ø§ÙØªÙاÙÙÙ/Ø§ÙØ£Ø±Ø¨Ø§Ø ØªÙØªØ¬Ø§Ù٠تÙ
اÙ
اÙ. Ø³ØªØ¸ÙØ± ÙÙ Ù
عاÙÙØ© Ø¨Ø§ÙØªØºÙÙØ±Ø§Øª ÙØ¨Ù Ø§ÙØÙØ¸.","Upload the same «تØÙÙ٠براÙ
ج Ø§ÙØ¹Ù
رة» template. The system reads the flight summary sheets (8/5/4 days) as well as the «Ù
ÙØ®Øµ Ø§ÙØ¨Ø±Â» land/bus sheet: hotel, rating, location, meals and per-room prices. Cost/profit sheets are ignored. You'll see a change preview before saving.")})]})]})}),s.jsx(kn,{"data-loc":"client/src/components/admin/UmrahTab.tsx:172",className:"p-5",children:s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahTab.tsx:173",className:"flex flex-wrap items-center gap-3",children:[s.jsx("input",{"data-loc":"client/src/components/admin/UmrahTab.tsx:174",ref:a,type:"file",accept:".xlsx,.xls",className:"hidden",onChange:I=>{const F=I.target.files?.[0];F&&R(F)}}),s.jsxs(Ie,{"data-loc":"client/src/components/admin/UmrahTab.tsx:184",onClick:()=>a.current?.click(),disabled:h.isPending,children:[h.isPending?s.jsx(ft,{"data-loc":"client/src/components/admin/UmrahTab.tsx:186",className:"w-4 h-4 mx-1.5 animate-spin"}):s.jsx(dh,{"data-loc":"client/src/components/admin/UmrahTab.tsx:188",className:"w-4 h-4 mx-1.5"}),t("اختر Ù
ÙÙ Ø¥ÙØ³Ù","Choose Excel file")]}),d&&s.jsx("span",{"data-loc":"client/src/components/admin/UmrahTab.tsx:192",className:"text-sm text-muted-foreground",children:d})]})}),c&&s.jsxs(kn,{"data-loc":"client/src/components/admin/UmrahTab.tsx:198",className:"p-5 space-y-5",children:[s.jsxs("div",{"data-loc":"client/src/components/
1342admin/UmrahTab.tsx:199",className:"flex items-center justify-between flex-wrap gap-3",children:[s.jsx("h3",{"data-loc":"client/src/components/admin/UmrahTab.tsx:200",className:"font-display font-bold text-lg text-foreground",children:t("Ù
عاÙÙØ© Ø§ÙØªØºÙÙØ±Ø§Øª","Change Preview")}),s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahTab.tsx:203",className:"flex items-center gap-2",children:[s.jsx(Ie,{"data-loc":"client/src/components/admin/UmrahTab.tsx:204",variant:"outline",onClick:()=>{l(null),m(null),a.current&&(a.current.value="")},disabled:x.isPending,children:t("Ø¥ÙØºØ§Ø¡","Cancel")}),s.jsxs(Ie,{"data-loc":"client/src/components/admin/UmrahTab.tsx:215",onClick:()=>x.mutate({rows:c.rows.map(I=>({program:I.program,tripType:I.tripType,madinahHotel:I.madinahHotel??null,madinahRating:I.madinahRating??null,makkahHotel:I.makkahHotel??"",location:I.location??null,makkahRating:I.makkahRating??null,meals:I.meals??null,prices:I.prices})),note:d?`Ø§Ø³ØªÙØ±Ø§Ø¯: ${d}`:void 0}),disabled:x.isPending||c.errors.length>0||c.rows.length===0,children:[x.isPending?s.jsx(ft,{"data-loc":"client/src/components/admin/UmrahTab.tsx:235",className:"w-4 h-4 mx-1.5 animate-spin"}):s.jsx(ns,{"data-loc":"client/src/components/admin/UmrahTab.tsx:237",className:"w-4 h-4 mx-1.5"}),t("تأÙÙØ¯ ÙØÙØ¸ Ø§ÙØªØØ¯ÙØ«","Confirm & save")]})]})]}),s.jsx("div",{"data-loc":"client/src/components/admin/UmrahTab.tsx:245",className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:c.perSheet.map(I=>s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahTab.tsx:247",className:"rounded-lg border border-border p-3 text-sm",children:[s.jsx("p",{"data-loc":"client/src/components/admin/UmrahTab.tsx:248",className:"font-semibold text-foreground",children:I.duration}),s.jsx("p",{"data-loc":"client/src/components/admin/UmrahTab.tsx:249",className:"text-muted-foreground text-xs mt-1",children:I.sheet}),s.jsx("p",{"data-loc":"client/src/components/admin/UmrahTab.tsx:250",className:`mt-1 ${I.found?"text-foreground":"text-destructive"}`,children:I.found?t(`${I.count} Ø¨Ø±ÙØ§Ù
ج`,`${I.count} programs`):t("اÙÙØ±ÙØ© Ù
ÙÙÙØ¯Ø©","Sheet missing")})]},I.sheet))}),L&&s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahTab.tsx:259",className:"flex flex-wrap gap-3 text-sm",children:[s.jsx(Vy,{"data-loc":"client/src/components/admin/UmrahTab.tsx:260",color:"green",icon:s.jsx(Gre,{"data-loc":"client/src/components/admin/UmrahTab.tsx:260",className:"w-3.5 h-3.5"}),label:t("Ø¥Ø¶Ø§ÙØ©","Added"),n:L.added}),s.jsx(Vy,{"data-loc":"client/src/components/admin/UmrahTab.tsx:261",color:"amber",icon:s.jsx(zU,{"data-loc":"client/src/components/admin/UmrahTab.tsx:261",className:"w-3.5 h-3.5"}),label:t("تعدÙÙ","Updated"),n:L.updated}),s.jsx(Vy,{"data-loc":"client/src/components/admin/UmrahTab.tsx:262",color:"red",icon:s.jsx(ro,{"data-loc":"client/src/components/admin/UmrahTab.tsx:262",className:"w-3.5 h-3.5"}),label:t("ØØ°Ù","Removed"),n:L.removed}),s.jsx(Vy,{"data-loc":"client/src/components/admin/UmrahTab.tsx:263",color:"gray",icon:s.jsx(ns,{"data-loc":"client/src/components/admin/UmrahTab.tsx:263",className:"w-3.5 h-3.5"}),label:t("بدÙ٠تغÙÙØ±","Unchanged"),n:L.unchanged})]}),c.errors.length>0&&s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahTab.tsx:269",className:"rounded-lg border border-destructive/40 bg-destructive/10 p-4 space-y-1",children:[s.jsxs("p",{"data-loc":"client/src/components/admin/UmrahTab.tsx:270",className:"flex items-center gap-2 font-semibold text-destructive",children:[s.jsx(zi,{"data-loc":"client/src/components/admin/UmrahTab.tsx:271",className:"w-4 h-4"})," ",t("أخطاء ÙØ¬Ø¨ Ø¥ØµÙØ§ØÙا","Errors to fix")]}),s.jsx("ul",{"data-loc":"client/src/components/admin/UmrahTab.tsx:273",className:"list-disc ms-5 text-sm text-destructive/90",children:c.errors.map((I,F)=>s.jsx("li",{"data-loc":"client/src/components/admin/UmrahTab.tsx:275",children:I},F))})]}),c.warnings.length>0&&s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahTab.tsx:281",className:"rounded-lg border border-amber-400/40 bg-amber-400/10 p-4 space-y-1",children:[s.jsxs("p",{"data-loc":"client/src/components/
1342admin/UmrahTab.tsx:282",className:"flex items-center gap-2 font-semibold text-amber-600",children:[s.jsx(zi,{"data-loc":"client/src/components/admin/UmrahTab.tsx:283",className:"w-4 h-4"})," ",t("ØªÙØ¨ÙÙØ§Øª","Warnings")]}),s.jsx("ul",{"data-loc":"client/src/components/admin/UmrahTab.tsx:285",className:"list-disc ms-5 text-sm text-amber-700",children:c.warnings.map((I,F)=>s.jsx("li",{"data-loc":"client/src/components/admin/UmrahTab.tsx:287",children:I},F))})]}),c.added.length>0&&s.jsx(NN,{"data-loc":"client/src/components/admin/UmrahTab.tsx:295",title:t("براÙ
ج Ø³ØªÙØ¶Ø§Ù","Programs to add"),tone:"green",children:c.added.map((I,F)=>s.jsx(kN,{"data-loc":"client/src/components/admin/UmrahTab.tsx:297",program:I.program,hotel:I.makkahHotel??"",prices:Hy(I.prices,e)},F))}),c.updated.length>0&&s.jsx(NN,{"data-loc":"client/src/components/admin/UmrahTab.tsx:303",title:t("براÙ
ج Ø³ØªÙØ¹Ø¯ÙÙÙ","Programs to update"),tone:"amber",children:c.updated.map((I,F)=>s.jsx(kN,{"data-loc":"client/src/components/admin/UmrahTab.tsx:305",program:I.after.program,hotel:I.after.makkahHotel??"",prices:Hy(I.after.prices,e)},F))}),c.removed.length>0&&s.jsx(NN,{"data-loc":"client/src/components/admin/UmrahTab.tsx:316",title:t("براÙ
ج Ø³ØªÙØØ°Ù (ØºÙØ± Ù
ÙØ¬Ùدة Ù٠اÙÙ
ÙÙ Ø§ÙØ¬Ø¯Ùد)","Programs to remove (not in new file)"),tone:"red",children:c.removed.map((I,F)=>s.jsx(kN,{"data-loc":"client/src/components/admin/UmrahTab.tsx:318",program:I.program,hotel:I.makkahHotel,prices:Hy(I.prices,e)},F))})]}),s.jsxs(kn,{"data-loc":"client/src/components/admin/UmrahTab.tsx:326",className:"p-5",children:[s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahTab.tsx:327",className:"flex items-center justify-between flex-wrap gap-3 mb-4",children:[s.jsxs("h3",{"data-loc":"client/src/components/admin/UmrahTab.tsx:328",className:"font-display font-bold text-lg text-foreground",children:[t("براÙ
ج Ø§ÙØ¹Ù
رة Ø§ÙØØ§ÙÙØ©","Current Umrah programs")," ",s.jsxs("span",{"data-loc":"client/src/components/admin/UmrahTab.tsx:330",className:"text-sm font-normal text-muted-foreground",children:["(",r?.length??0,")"]})]}),s.jsxs(Ie,{"data-loc":"client/src/components/admin/UmrahTab.tsx:334",onClick:A,children:[s.jsx(oa,{"data-loc":"client/src/components/admin/UmrahTab.tsx:335",className:"w-4 h-4 mx-1.5"}),t("Ø¥Ø¶Ø§ÙØ© Ø¨Ø±ÙØ§Ù
ج ÙØ¯ÙÙØ§Ù","Add program manually")]})]}),i?s.jsx("div",{"data-loc":"client/src/components/admin/UmrahTab.tsx:340",className:"py-8 flex justify-center",children:s.jsx(ft,{"data-loc":"client/src/components/admin/UmrahTab.tsx:341",className:"w-6 h-6 animate-spin text-primary"})}):!r||r.length===0?s.jsx("p",{"data-loc":"client/src/components/admin/UmrahTab.tsx:344",className:"text-sm text-muted-foreground py-6 text-center",children:t("ÙØ§ ØªÙØ¬Ø¯ براÙ
ج بعد. Ø§Ø±ÙØ¹ Ù
ÙÙ Ø§ÙØ¥ÙØ³Ù ÙØ¥Ø¶Ø§ÙØªÙØ§.","No programs yet. Upload the Excel file to add them.")}):s.jsx("div",{"data-loc":"client/src/components/admin/UmrahTab.tsx:348",className:"overflow-x-auto",children:s.jsxs("table",{"data-loc":"client/src/components/admin/UmrahTab.tsx:349",className:"w-full text-sm",children:[s.jsx("thead",{"data-loc":"client/src/components/admin/UmrahTab.tsx:350",children:s.jsxs("tr",{"data-loc":"client/src/components/admin/UmrahTab.tsx:351",className:"text-muted-foreground border-b border-border",children:[s.jsx("th",{"data-loc":"client/src/components/admin/UmrahTab.tsx:352",className:"text-start py-2 px-2",children:t("اÙÙ
دة","Duration")}),s.jsx("th",{"data-loc":"client/src/components/admin/UmrahTab.tsx:353",className:"text-start py-2 px-2",children:t("اÙÙÙØ¹","Type")}),s.jsx("th",{"data-loc":"client/src/components/admin/UmrahTab.tsx:354",className:"text-start py-2 px-2",children:t("ÙÙØ¯Ù Ù
ÙØ©","Makkah hotel")}),s.jsx("th",{"data-loc":"client/src/components/admin/UmrahTab.tsx:355",className:"text-start py-2 px-2",children:t("Ø§ÙØªØµÙÙÙ","Rating")}),s.jsx("th",{"data-loc":"client/src/components/admin/UmrahTab.tsx:356",className:"text-start py-2 px-2",children:t("Ø§ÙØ£Ø³Ø¹Ø§Ø± (ÙÙØ´Ø®Øµ)","Prices (per person)")}
1342),s.jsx("th",{"data-loc":"client/src/components/admin/UmrahTab.tsx:357",className:"text-start py-2 px-2",children:t("Ø§ÙØØ§ÙØ©","Status")}),s.jsx("th",{"data-loc":"client/src/components/admin/UmrahTab.tsx:358",className:"text-start py-2 px-2",children:t("إجراءات","Actions")})]})}),s.jsx("tbody",{"data-loc":"client/src/components/admin/UmrahTab.tsx:361",children:r.map(I=>s.jsxs("tr",{"data-loc":"client/src/components/admin/UmrahTab.tsx:363",className:"border-b border-border/50 align-top",children:[s.jsx("td",{"data-loc":"client/src/components/admin/UmrahTab.tsx:364",className:"py-2 px-2 whitespace-nowrap text-foreground",children:I.program}),s.jsx("td",{"data-loc":"client/src/components/admin/UmrahTab.tsx:365",className:"py-2 px-2 whitespace-nowrap",children:s.jsx("span",{"data-loc":"client/src/components/admin/UmrahTab.tsx:366",className:`inline-flex items-center rounded-full border px-2 py-0.5 text-xs ${I.tripType==="land"?"bg-amber-500/10 text-amber-600 border-amber-500/30":"bg-sky-500/10 text-sky-600 border-sky-500/30"}`,children:I.tripType==="land"?t("ØØ§ÙÙØ©","Coach"):t("Ø·ÙØ±Ø§Ù","Flight")})}),s.jsxs("td",{"data-loc":"client/src/components/admin/UmrahTab.tsx:376",className:"py-2 px-2 text-foreground",children:[I.makkahHotel,I.madinahHotel&&s.jsxs("span",{"data-loc":"client/src/components/admin/UmrahTab.tsx:379",className:"block text-xs text-muted-foreground",children:[t("اÙ٠دÙÙØ©:","Madinah:")," ",I.madinahHotel]})]}),s.jsx("td",{"data-loc":"client/src/components/admin/UmrahTab.tsx:384",className:"py-2 px-2 text-muted-foreground whitespace-nowrap",children:I.makkahRating||"â"}),s.jsx("td",{"data-loc":"client/src/components/admin/UmrahTab.tsx:385",className:"py-2 px-2 text-muted-foreground",children:Hy(I.prices,e)}),s.jsx("td",{"data-loc":"client/src/components/admin/UmrahTab.tsx:386",className:"py-2 px-2",children:s.jsx(Ie,{"data-loc":"client/src/components/admin/UmrahTab.tsx:387",variant:"outline",size:"sm",onClick:()=>f.mutate({id:I.id,active:!I.active}),children:I.active?s.jsxs(s.Fragment,{children:[s.jsx(Gi,{"data-loc":"client/src/components/admin/UmrahTab.tsx:394",className:"w-3.5 h-3.5 mx-1"})," ",t("Ø¸Ø§ÙØ±","Visible")]}):s.jsxs(s.Fragment,{children:[s.jsx(Q0,{"data-loc":"client/src/components/admin/UmrahTab.tsx:398",className:"w-3.5 h-3.5 mx-1"})," ",t("Ù Ø®ÙÙ","Hidden")]})})}),s.jsx("td",{"data-loc":"client/src/components/admin/UmrahTab.tsx:403",className:"py-2 px-2 whitespace-nowrap",children:s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahTab.tsx:404",className:"flex items-center gap-1.5",children:[s.jsx(Ie,{"data-loc":"client/src/components/admin/UmrahTab.tsx:405",variant:"outline",size:"sm",onClick:()=>E(I),children:s.jsx(K0,{"data-loc":"client/src/components/admin/UmrahTab.tsx:406",className:"w-3.5 h-3.5"})}),s.jsx(Ie,{"data-loc":"client/src/components/admin/UmrahTab.tsx:408",variant:"outline",size:"sm",onClick:()=>{window.confirm(t(`ÙÙ ØªØ±ÙØ¯ ØØ°Ù ÙØ°Ø§ Ø§ÙØ¨Ø±ÙØ§Ù Ø¬Ø 1343${I.program} â ${I.makkahHotel}`,`Delete this program? 1344${I.program} â ${I.makkahHotel}`))&&D.mutate({id:I.id})},disabled:D.isPending,children:s.jsx(ro,{"data-loc":"client/src/components/admin/UmrahTab.tsx:418",className:"w-3.5 h-3.5 text-destructive"})})]})})]},I.id))})]})})]}),s.jsx(ibe,{"data-loc":"client/src/components/admin/UmrahTab.tsx:431",lang:e,open:b,onOpenChange:y,initial:w,onSaved:()=>n.umrah.adminList.invalidate()}),s.jsx(sbe,{"data-loc":"client/src/components/admin/UmrahTab.tsx:440",lang:e}),s.jsx(nbe,{"data-loc":"client/src/components/admin/UmrahTab.tsx:443",lang:e}),o&&o.length>0&&s.jsxs(kn,{"data-loc":"client/src/components/admin/UmrahTab.tsx:447",className:"p-5",children:[s.jsx("h3",{"data-loc":"client/src/components/admin/UmrahTab.tsx:448",className:"font-display font-bold text-lg text-foreground mb-4",children:t("اÙÙØ³Ø® Ø§ÙØ§ØØªÙØ§Ø·ÙØ©","Backups")}),s.jsx("div",{"data-loc":"client/src/components/admin/UmrahTab.tsx:451",className:"space-y-2",children:o.map(I=>s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahTab.tsx:453",className:"flex items-center justify-between gap-3 border-b border-border/50 py-2 text-sm",children:[s.jsxs("div",{"data-loc":"client/src/components/
1344admin/UmrahTab.tsx:454",children:[s.jsx("p",{"data-loc":"client/src/components/admin/UmrahTab.tsx:455",className:"text-foreground",children:I.note||t("ÙØ³Ø®Ø© Ø§ØØªÙØ§Ø·ÙØ©","Backup")}),s.jsxs("p",{"data-loc":"client/src/components/admin/UmrahTab.tsx:456",className:"text-xs text-muted-foreground",children:[new Date(I.createdAt).toLocaleString(e==="ar"?"ar-JO":"en-US")," ·"," ",t(`${I.rowCount} Ø¨Ø±ÙØ§Ù
ج`,`${I.rowCount} programs`)]})]}),s.jsxs(Ie,{"data-loc":"client/src/components/admin/UmrahTab.tsx:461",variant:"outline",size:"sm",onClick:()=>S.mutate({backupId:I.id}),disabled:S.isPending,children:[s.jsx(Z0,{"data-loc":"client/src/components/admin/UmrahTab.tsx:467",className:"w-3.5 h-3.5 mx-1"}),t("استعادة","Restore")]})]},I.id))})]})]})}function Vy({color:e,icon:t,label:n,n:a}){const r={green:"bg-green-500/10 text-green-600 border-green-500/30",amber:"bg-amber-500/10 text-amber-600 border-amber-500/30",red:"bg-red-500/10 text-red-600 border-red-500/30",gray:"bg-muted text-muted-foreground border-border"};return s.jsxs("span",{"data-loc":"client/src/components/admin/UmrahTab.tsx:487",className:`inline-flex items-center gap-1.5 rounded-full border px-3 py-1 ${r[e]}`,children:[t,n,": ",s.jsx("strong",{"data-loc":"client/src/components/admin/UmrahTab.tsx:489",children:a})]})}function NN({title:e,tone:t,children:n}){const a={green:"border-green-500/30",amber:"border-amber-500/30",red:"border-red-500/30"};return s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahTab.tsx:501",className:`rounded-lg border ${a[t]} p-3`,children:[s.jsx("p",{"data-loc":"client/src/components/admin/UmrahTab.tsx:502",className:"font-semibold text-foreground text-sm mb-2",children:e}),s.jsx("div",{"data-loc":"client/src/components/admin/UmrahTab.tsx:503",className:"space-y-1",children:n})]})}function kN({program:e,hotel:t,prices:n}){return s.jsxs("div",{"data-loc":"client/src/components/admin/UmrahTab.tsx:510",className:"text-sm flex flex-wrap gap-x-3 gap-y-0.5 border-b border-border/30 pb-1",children:[s.jsx("span",{"data-loc":"client/src/components/admin/UmrahTab.tsx:511",className:"text-muted-foreground whitespace-nowrap",children:e}),s.jsx("span",{"data-loc":"client/src/components/admin/UmrahTab.tsx:512",className:"text-foreground font-medium",children:t}),s.jsx("span",{"data-loc":"client/src/components/admin/UmrahTab.tsx:513",className:"text-muted-foreground",children:n})]})}function fq(e){const t=k.useRef({value:e,previous:e});return k.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var r6="Switch",[cbe]=Ll(r6),[lbe,ube]=cbe(r6),gq=k.forwardRef((e,t)=>{const{__scopeSwitch:n,name:a,checked:r,defaultChecked:i,required:o,disabled:c,value:l="on",onCheckedChange:d,form:m,...h}=e,[x,f]=k.useState(null),b=Ea(t,E=>f(E)),y=k.useRef(!1),w=x?m||!!x.closest("form"):!0,[T,A]=oh({prop:r,defaultProp:i??!1,onChange:d,caller:r6});return s.jsxs(lbe,{scope:n,checked:T,disabled:c,children:[s.jsx(Vn.button,{type:"button",role:"switch","aria-checked":T,"aria-required":o,"data-state":yq(T),"data-disabled":c?"":void 0,disabled:c,value:l,...h,ref:b,onClick:Kt(e.onClick,E=>{A(D=>!D),w&&(y.current=E.isPropagationStopped(),y.current||E.stopPropagation())})}),w&&s.jsx(vq,{control:x,bubbles:!y.current,name:a,value:l,checked:T,required:o,disabled:c,form:m,style:{transform:"translateX(-100%)"}})]})});gq.displayName=r6;var xq="SwitchThumb",bq=k.forwardRef((e,t)=>{const{__scopeSwitch:n,...a}=e,r=ube(xq,n);return s.jsx(Vn.span,{"data-state":yq(r.checked),"data-disabled":r.disabled?"":void 0,...a,ref:t})});bq.displayName=xq;var dbe="SwitchBubbleInput",vq=k.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:a=!0,...r},i)=>{const o=k.useRef(null),c=Ea(o,i),l=fq(n),d=$F(t);return k.useEffect(()=>{const m=o.current;if(!m)return;const h=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(h,"checked").set;if(l!==n&&f){const b=new Event("click",{bubbles:a});f.call(m,n),m.dispatchEvent(b)}},[l,n,a]),s.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...r,tabIndex:-1,ref:c,style:{...r.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});vq.displayName=dbe;function yq(e){return e?"checked":"unchecked"}var mbe=gq,pbe=bq;function C0({className:e,...t}){return s.jsx(mbe,{"data-loc":"client/src/components/ui/switch.tsx:11","data-slot":"switch",className:an("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:s.jsx(pbe,{"data-loc":"client/src/components/ui/switch.tsx:19","data-slot":"switch-thumb",className:an("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})}var hbe="Separator",OI="horizontal",fbe=["horizontal","vertical"],wq=k.forwardRef((e,t)=>
1344{const{decorative:n,orientation:a=OI,...r}=e,i=gbe(a)?a:OI,c=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return s.jsx(Vn.div,{"data-orientation":i,...c,...r,ref:t})});wq.displayName=hbe;function gbe(e){return fbe.includes(e)}var xbe=wq;function F3({className:e,orientation:t="horizontal",decorative:n=!0,...a}){return s.jsx(xbe,{"data-loc":"client/src/components/ui/separator.tsx:13","data-slot":"separator",decorative:n,orientation:t,className:an("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...a})}function bbe({...e}){return s.jsx(NH,{"data-loc":"client/src/components/ui/sheet.tsx:10","data-slot":"sheet",...e})}function vbe({...e}){return s.jsx(kH,{"data-loc":"client/src/components/ui/sheet.tsx:28","data-slot":"sheet-portal",...e})}function ybe({className:e,...t}){return s.jsx(jH,{"data-loc":"client/src/components/ui/sheet.tsx:36","data-slot":"sheet-overlay",className:an("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function wbe({className:e,children:t,side:n="right",...a}){return s.jsxs(vbe,{"data-loc":"client/src/components/ui/sheet.tsx:56",children:[s.jsx(ybe,{"data-loc":"client/src/components/ui/sheet.tsx:57"}),s.jsxs(AH,{"data-loc":"client/src/components/ui/sheet.tsx:58","data-slot":"sheet-content",className:an("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...a,children:[t,s.jsxs(SH,{"data-loc":"client/src/components/ui/sheet.tsx:75",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[s.jsx(ks,{"data-loc":"client/src/components/ui/sheet.tsx:76",className:"size-4"}),s.jsx("span",{"data-loc":"client/src/components/ui/sheet.tsx:77",className:"sr-only",children:"Close"})]})]})]})}function Tbe({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/sheet.tsx:86","data-slot":"sheet-header",className:an("flex flex-col gap-1.5 p-4",e),...t})}function Nbe({className:e,...t}){return s.jsx(EH,{"data-loc":"client/src/components/ui/sheet.tsx:109","data-slot":"sheet-title",className:an("text-foreground font-semibold",e),...t})}function kbe({className:e,...t}){return s.jsx(CH,{"data-loc":"client/src/components/ui/sheet.tsx:122","data-slot":"sheet-description",className:an("text-muted-foreground text-sm",e),...t})}function jN({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/skeleton.tsx:5","data-slot":"skeleton",className:an("bg-accent animate-pulse rounded-md",e),...t})}const AN=768;function jbe(){const[e,t]=k.useState(void 0);return k.useEffect(()=>{const n=window.matchMedia(`(max-width: ${AN-1}px)`),a=()=>{t(window.innerWidth<AN)};
1344return n.addEventListener("change",a),t(window.innerWidth<AN),()=>n.removeEventListener("change",a)},[]),!!e}const Abe="sidebar_state",Ebe=3600*24*7,Cbe="16rem",Sbe="18rem",_be="3rem",Pbe="b",Tq=k.createContext(null);function i6(){const e=k.useContext(Tq);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Dbe({defaultOpen:e=!0,open:t,onOpenChange:n,className:a,style:r,children:i,...o}){const c=jbe(),[l,d]=k.useState(!1),[m,h]=k.useState(e),x=t??m,f=k.useCallback(T=>{const A=typeof T=="function"?T(x):T;n?n(A):h(A),document.cookie=`${Abe}=${A}; path=/; max-age=${Ebe}`},[n,x]),b=k.useCallback(()=>c?d(T=>!T):f(T=>!T),[c,f,d]);k.useEffect(()=>{const T=A=>{A.key===Pbe&&(A.metaKey||A.ctrlKey)&&(A.preventDefault(),b())};return window.addEventListener("keydown",T),()=>window.removeEventListener("keydown",T)},[b]);const y=x?"expanded":"collapsed",w=k.useMemo(()=>({state:y,open:x,setOpen:f,isMobile:c,openMobile:l,setOpenMobile:d,toggleSidebar:b}),[y,x,f,c,l,d,b]);return s.jsx(Tq.Provider,{"data-loc":"client/src/components/ui/sidebar.tsx:129",value:w,children:s.jsx(Yj,{"data-loc":"client/src/components/ui/sidebar.tsx:130",delayDuration:0,children:s.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:131","data-slot":"sidebar-wrapper",style:{"--sidebar-width":Cbe,"--sidebar-width-icon":_be,...r},className:an("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",a),...o,children:i})})})}function Rbe({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",disableTransition:a=!1,className:r,children:i,...o}){const{isMobile:c,state:l,openMobile:d,setOpenMobile:m}=i6();return n==="none"?s.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:171","data-slot":"sidebar",className:an("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",r),...o,children:i}):c?s.jsx(bbe,{"data-loc":"client/src/components/ui/sidebar.tsx:186",open:d,onOpenChange:m,...o,children:s.jsxs(wbe,{"data-loc":"client/src/components/ui/sidebar.tsx:187","data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":Sbe},side:e,children:[s.jsxs(Tbe,{"data-loc":"client/src/components/ui/sidebar.tsx:199",className:"sr-only",children:[s.jsx(Nbe,{"data-loc":"client/src/components/ui/sidebar.tsx:200",children:"Sidebar"}),s.jsx(kbe,{"data-loc":"client/src/components/ui/sidebar.tsx:201",children:"Displays the mobile sidebar."})]}),s.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:203",className:"flex h-full w-full flex-col",children:i})]})}):s.jsxs("div",{"data-loc":"client/src/components/ui/sidebar.tsx:210",className:"group peer text-sidebar-foreground hidden md:block","data-state":l,"data-collapsible":l==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[s.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:219","data-slot":"sidebar-gap",className:an("relative w-(--sidebar-width) bg-transparent",a?"transition-none":"transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),s.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:233","data-slot":"sidebar-container",className:an("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) md:flex",a?"transition-none":"transition-[left,right,width] duration-200 ease-linear",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...o,children:s.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:251","data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:i})})]})}function Ibe({className:e,onClick:t,...n}){const{toggleSidebar:a}=i6();return s.jsxs(Ie,{"data-loc":"client/src/components/ui/sidebar.tsx:271","data-sidebar":"trigger","data-slot":"sidebar-tr
1344igger",variant:"ghost",size:"icon",className:an("size-7",e),onClick:r=>{t?.(r),a()},...n,children:[s.jsx(hie,{"data-loc":"client/src/components/ui/sidebar.tsx:283"}),s.jsx("span",{"data-loc":"client/src/components/ui/sidebar.tsx:284",className:"sr-only",children:"Toggle Sidebar"})]})}function Mbe({className:e,...t}){const{toggleSidebar:n}=i6();return s.jsx("button",{"data-loc":"client/src/components/ui/sidebar.tsx:293","data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:an("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}function Lbe({className:e,...t}){return s.jsx("main",{"data-loc":"client/src/components/ui/sidebar.tsx:316","data-slot":"sidebar-inset",className:an("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...t})}function Obe({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:344","data-slot":"sidebar-header","data-sidebar":"header",className:an("flex flex-col gap-2 p-2",e),...t})}function Bbe({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:355","data-slot":"sidebar-footer","data-sidebar":"footer",className:an("flex flex-col gap-2 p-2",e),...t})}function BI({className:e,...t}){return s.jsx(F3,{"data-loc":"client/src/components/ui/sidebar.tsx:369","data-slot":"sidebar-separator","data-sidebar":"separator",className:an("bg-sidebar-border mx-2 w-auto",e),...t})}function Fbe({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:380","data-slot":"sidebar-content","data-sidebar":"content",className:an("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function Ube({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:394","data-slot":"sidebar-group","data-sidebar":"group",className:an("relative flex w-full min-w-0 flex-col p-2",e),...t})}function Hbe({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:452","data-slot":"sidebar-group-content","data-sidebar":"group-content",className:an("w-full text-sm",e),...t})}function Vbe({className:e,...t}){return s.jsx("ul",{"data-loc":"client/src/components/ui/sidebar.tsx:463","data-slot":"sidebar-menu","data-sidebar":"menu",className:an("flex w-full min-w-0 flex-col gap-1",e),...t})}function zbe({className:e,...t}){return s.jsx("li",{"data-loc":"client/src/components/ui/sidebar.tsx:474","data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:an("group/menu-item relative",e),...t})}const $be=a6("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function qbe({asChild:e=!1,isActive:t=!1,variant:n="default",size:a="default",tooltip:r,className:i,...o}){const c=e?Dj:"button",{isMobile:l,state:d}=i6(),m=s.jsx(c,{"data-loc":"client/src/components/ui/sidebar.tsx:522","data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":a,"data-active":t,className:an($be({variant:n,size:a}),i),...o});return r?(typeof r=="string"&&(r={children:r}),s.jsxs(ore,{"data-loc":"client/src/components/ui/sidebar.tsx:543",children:[s.jsx(cre,{"data-loc":"client/src/components/ui/sidebar.tsx:544",asChild:!0,children:m}),s.jsx(lre,{"data-loc":"client/src/components/ui/sidebar.tsx:545",side:"right",align:"center",hidden:d!=="collapsed"||l,...r})]})):m}const br=(e,t,n)=>e==="ar"?t:n;function Gbe({lang:e}){const t=Pe.useUtils(),{data:n,isLoading:a}=Pe.accounting.accounts.list.useQuery(),[r,i]=k.useState(!1),[o,c]=k.useState({code:"",nameAr:"",nameEn:"",category:"revenue",subCategory:"",normalBalance:"credit"}),l=Pe.accounting.accounts.create.useMutation({onSuccess:()=>
1344{t.accounting.accounts.list.invalidate(),Le.success(br(e,"تÙ
Ø¥ÙØ´Ø§Ø¡ Ø§ÙØØ³Ø§Ø¨","Account created")),i(!1),c({code:"",nameAr:"",nameEn:"",category:"revenue",subCategory:"",normalBalance:"credit"})},onError:h=>Le.error(h.message)}),d={revenue:"Ø¥ÙØ±Ø§Ø¯Ø§Øª",cost_of_sales:"تÙÙÙØ© اÙÙ
Ø¨ÙØ¹Ø§Øª",operating_expense:"Ù
صارÙ٠تشغÙÙÙØ©",asset:"أصÙÙ",liability:"خصÙÙ
",equity:"ØÙÙÙ Ù
ÙÙÙØ©"},m={revenue:"text-emerald-600",cost_of_sales:"text-orange-600",operating_expense:"text-red-600",asset:"text-blue-600",liability:"text-amber-600",equity:"text-purple-600"};return s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:29",className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:30",className:"flex items-center justify-between",children:[s.jsx("h3",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:31",className:"font-display text-lg font-bold",children:br(e,"دÙÙÙ Ø§ÙØØ³Ø§Ø¨Ø§Øª","Chart of Accounts")}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/AccountsTab.tsx:32",size:"sm",onClick:()=>i(!0),children:[s.jsx(oa,{"data-loc":"client/src/components/accounting/AccountsTab.tsx:32",className:"h-4 w-4"}),br(e,"ØØ³Ø§Ø¨ Ø¬Ø¯ÙØ¯","New Account")]})]}),a?s.jsx("div",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:34",className:"flex justify-center py-12",children:s.jsx(ft,{"data-loc":"client/src/components/accounting/AccountsTab.tsx:34",className:"w-6 h-6 animate-spin text-primary"})}):n?.length?s.jsx("div",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:37",className:"overflow-x-auto rounded-lg border border-border",children:s.jsxs("table",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:38",className:"w-full text-sm",children:[s.jsx("thead",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:39",className:"bg-muted/50",children:s.jsxs("tr",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:39",className:"text-start",children:[s.jsx("th",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:40",className:"px-4 py-3 font-medium",children:br(e,"Ø§ÙØ±Ù
ز","Code")}),s.jsx("th",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:41",className:"px-4 py-3 font-medium",children:br(e,"Ø§ÙØ§Ø³Ù
(عربÙ)","Name (AR)")}),s.jsx("th",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:42",className:"px-4 py-3 font-medium",children:br(e,"Ø§ÙØ§Ø³Ù
(Ø¥ÙØ¬ÙÙØ²Ù)","Name (EN)")}),s.jsx("th",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:43",className:"px-4 py-3 font-medium",children:br(e,"اÙÙØ¦Ø©","Category")}),s.jsx("th",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:44",className:"px-4 py-3 font-medium",children:br(e,"Ø§ÙØ±ØµÙد Ø§ÙØ·Ø¨ÙعÙ","Normal Balance")})]})}),s.jsx("tbody",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:46",children:n.map(h=>s.jsxs("tr",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:48",className:"border-t border-border hover:bg-muted/30",children:[s.jsx("td",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:49",className:"px-4 py-3 font-mono font-medium",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:49",children:h.code})}),s.jsx("td",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:50",className:"px-4 py-3",children:h.nameAr}),s.jsx("td",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:51",className:"px-4 py-3 text-muted-foreground",children:h.nameEn}),s.jsx("td",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:52",className:`px-4 py-3 font-medium ${m[h.category]||""}`,children:br(e,d[h.category]||h.category,h.category.replace(/_/g," "))}),s.jsx("td",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:53",className:"px-4 py-3",children:br(e,h.normalBalance==="debit"?"Ù
دÙÙ":"دائÙ",h.normalBalance)})]},h.id))})]})}):s.jsx(kn,{"data-loc":"client/src/components/accounting/AccountsTab.tsx:35",children:s.jsxs(Un,{"data-loc":"client/src/components/
1344accounting/AccountsTab.tsx:35",className:"py-12 text-center text-muted-foreground",children:[s.jsx(lh,{"data-loc":"client/src/components/accounting/AccountsTab.tsx:35",className:"w-10 h-10 mx-auto mb-3 opacity-40"}),br(e,"ÙØ§ ØªÙØ¬Ø¯ ØØ³Ø§Ø¨Ø§Øª","No accounts yet")]})}),s.jsx(Ba,{"data-loc":"client/src/components/accounting/AccountsTab.tsx:60",open:r,onOpenChange:i,children:s.jsxs(Fa,{"data-loc":"client/src/components/accounting/AccountsTab.tsx:61",children:[s.jsx(as,{"data-loc":"client/src/components/accounting/AccountsTab.tsx:62",children:s.jsx(Ua,{"data-loc":"client/src/components/accounting/AccountsTab.tsx:62",children:br(e,"ØØ³Ø§Ø¨ Ø¬Ø¯ÙØ¯","New Account")})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:63",className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:64",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/AccountsTab.tsx:64",children:br(e,"Ø§ÙØ±Ù
ز","Code")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/AccountsTab.tsx:64",dir:"ltr",className:"text-left",value:o.code,onChange:h=>c({...o,code:h.target.value}),placeholder:"4000"})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:65",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/AccountsTab.tsx:65",children:br(e,"اÙÙØ¦Ø©","Category")}),s.jsx("select",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:65",className:"w-full h-9 rounded-md border border-input bg-background px-3 text-sm",value:o.category,onChange:h=>c({...o,category:h.target.value}),children:Object.entries(d).map(([h,x])=>s.jsx("option",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:65",value:h,children:br(e,x,h.replace(/_/g," "))},h))})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:66",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/AccountsTab.tsx:66",children:br(e,"Ø§ÙØ§Ø³Ù
(عربÙ)","Name (Arabic)")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/AccountsTab.tsx:66",dir:"rtl",className:"text-right",value:o.nameAr,onChange:h=>c({...o,nameAr:h.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:67",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/AccountsTab.tsx:67",children:br(e,"Ø§ÙØ§Ø³Ù
(Ø¥ÙØ¬ÙÙØ²Ù)","Name (English)")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/AccountsTab.tsx:67",dir:"ltr",className:"text-left",value:o.nameEn,onChange:h=>c({...o,nameEn:h.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:68",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/AccountsTab.tsx:68",children:br(e,"Ø§ÙØ±ØµÙد Ø§ÙØ·Ø¨ÙعÙ","Normal Balance")}),s.jsxs("select",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:68",className:"w-full h-9 rounded-md border border-input bg-background px-3 text-sm",value:o.normalBalance,onChange:h=>c({...o,normalBalance:h.target.value}),children:[s.jsx("option",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:68",value:"debit",children:br(e,"Ù
دÙÙ","Debit")}),s.jsx("option",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:68",value:"credit",children:br(e,"دائÙ","Credit")})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountsTab.tsx:69",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/AccountsTab.tsx:69",children:br(e,"اÙÙØ¦Ø© اÙÙØ±Ø¹ÙØ©","Sub-Category")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/AccountsTab.tsx:69",value:o.subCategory,onChange:h=>c({...o,subCategory:h.target.value})})]})]}),s.jsxs(ei,{"data-loc":"client/src/components/accounting/AccountsTab.tsx:71",children:[s.jsx(Ie,{"data-loc":"client/src/components/accounting/AccountsTab.tsx:72",variant:"outline",onClick:()=>i(!1),children:br(e,"Ø¥ÙØºØ§Ø¡","Cancel")}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/AccountsTab.tsx:73",onClick:()=>l.mutate({...o,subCategory:o.subCategory||null}),disabled:l.isPending,children:[l.isPending&&s.jsx(ft,{"data-loc":"client/src/components/
1344accounting/AccountsTab.tsx:73",className:"h-4 w-4 animate-spin"}),br(e,"Ø¥ÙØ´Ø§Ø¡","Create")]})]})]})})]})}function T7(e,[t,n]){return Math.min(n,Math.max(t,e))}var Jbe=[" ","Enter","ArrowUp","ArrowDown"],Wbe=[" ","Enter"],U0="Select",[o6,c6,Ybe]=KA(U0),[jx]=Ll(U0,[Ybe,gx]),l6=gx(),[Xbe,yh]=jx(U0),[Qbe,Kbe]=jx(U0),Nq=e=>{const{__scopeSelect:t,children:n,open:a,defaultOpen:r,onOpenChange:i,value:o,defaultValue:c,onValueChange:l,dir:d,name:m,autoComplete:h,disabled:x,required:f,form:b}=e,y=l6(t),[w,T]=k.useState(null),[A,E]=k.useState(null),[D,S]=k.useState(!1),R=G2(d),[L,I]=oh({prop:a,defaultProp:r??!1,onChange:i,caller:U0}),[F,_]=oh({prop:o,defaultProp:c,onChange:l,caller:U0}),U=k.useRef(null),O=w?b||!!w.closest("form"):!0,[W,J]=k.useState(new Set),oe=Array.from(W).map(G=>G.props.value).join(";");return s.jsx(Hj,{...y,children:s.jsxs(Xbe,{required:f,scope:t,trigger:w,onTriggerChange:T,valueNode:A,onValueNodeChange:E,valueNodeHasChildren:D,onValueNodeHasChildrenChange:S,contentId:fu(),value:F,onValueChange:_,open:L,onOpenChange:I,dir:R,triggerPointerDownPosRef:U,disabled:x,children:[s.jsx(o6.Provider,{scope:t,children:s.jsx(Qbe,{scope:e.__scopeSelect,onNativeOptionAdd:k.useCallback(G=>{J(K=>new Set(K).add(G))},[]),onNativeOptionRemove:k.useCallback(G=>{J(K=>{const ee=new Set(K);return ee.delete(G),ee})},[]),children:n})}),O?s.jsxs(qq,{"aria-hidden":!0,required:f,tabIndex:-1,name:m,autoComplete:h,value:F,onChange:G=>_(G.target.value),disabled:x,form:b,children:[F===void 0?s.jsx("option",{value:""}):null,Array.from(W)]},oe):null]})})};Nq.displayName=U0;var kq="SelectTrigger",jq=k.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:a=!1,...r}=e,i=l6(n),o=yh(kq,n),c=o.disabled||a,l=Ea(t,o.onTriggerChange),d=c6(n),m=k.useRef("touch"),[h,x,f]=Jq(y=>{const w=d().filter(E=>!E.disabled),T=w.find(E=>E.value===o.value),A=Wq(w,y,T);A!==void 0&&o.onValueChange(A.value)}),b=y=>{c||(o.onOpenChange(!0),f()),y&&(o.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)})};return s.jsx(Vj,{asChild:!0,...i,children:s.jsx(Vn.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":Gq(o.value)?"":void 0,...r,ref:l,onClick:Kt(r.onClick,y=>{y.currentTarget.focus(),m.current!=="mouse"&&b(y)}),onPointerDown:Kt(r.onPointerDown,y=>{m.current=y.pointerType;const w=y.target;w.hasPointerCapture(y.pointerId)&&w.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&y.pointerType==="mouse"&&(b(y),y.preventDefault())}),onKeyDown:Kt(r.onKeyDown,y=>{const w=h.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&x(y.key),!(w&&y.key===" ")&&Jbe.includes(y.key)&&(b(),y.preventDefault())})})})});jq.displayName=kq;var Aq="SelectValue",Eq=k.forwardRef((e,t)=>{const{__scopeSelect:n,className:a,style:r,children:i,placeholder:o="",...c}=e,l=yh(Aq,n),{onValueNodeHasChildrenChange:d}=l,m=i!==void 0,h=Ea(t,l.onValueNodeChange);return co(()=>{d(m)},[d,m]),s.jsx(Vn.span,{...c,ref:h,style:{pointerEvents:"none"},children:Gq(l.value)?s.jsx(s.Fragment,{children:o}):i})});Eq.displayName=Aq;var Zbe="SelectIcon",Cq=k.forwardRef((e,t)=>{const{__scopeSelect:n,children:a,...r}=e;return s.jsx(Vn.span,{"aria-hidden":!0,...r,ref:t,children:a||"â¼"})});Cq.displayName=Zbe;var e2e="SelectPortal",Sq=e=>s.jsx(M2,{asChild:!0,...e});Sq.displayName=e2e;var H0="SelectContent",_q=k.forwardRef((e,t)=>{const n=yh(H0,e.__scopeSelect),[a,r]=k.useState();if(co(()=>{r(new DocumentFragment)},[]),!n.open){const i=a;return i?D2.createPortal(s.jsx(Pq,{scope:e.__scopeSelect,children:s.jsx(o6.Slot,{scope:e.__scopeSelect,children:s.jsx("div",{children:e.children})})}),i):null}return s.jsx(Dq,{...e,ref:t})});_q.displayName=H0;var uu=10,[Pq,wh]=jx(H0),t2e="SelectContentImpl",n2e=D0("SelectContent.RemoveScroll"),Dq=k.forwardRef((e,t)=>{const{__scopeSelect:n,position:a="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:i,onPointerDownOutside:o,side:c,sideOffset:l,align:d,alignOffset:m,arrowPadding:h,collisionBoundary:x,collisionPadding:f,sticky:b,hideWhenDetached:y,avoidCollisions:w,...T}=e,A=yh(H0,n),[E,D]=k.useState(null),[S,R]=k.useState(null),L=Ea(t,fe=>D(fe)),[I,F]=k.useState(null),[_,U]=k.useState(null),O=c6(n),[W,J]=k.useState(!1),oe=k.useRef(!1);k.useEffect(()=>{if(E)return lA(E)},[E]),cA();const G=k.useCallback(fe=>{const[Ae,...xe]=O().map(ze=>ze.ref.current),[ae]=xe.slice(-1),le=document.activeElement;for(const ze of fe)if(ze===le||(ze?.scrollIntoView({block:"nearest"}),ze===Ae&&S&&(S.scrollTop=0),ze===ae&&S&&(S.scrollTop=S.scrollHeight),ze?.focus(),document.activeElement!==le))return},[O,S]),K=k.useCallback(()=>G([I,E]),[G,I,E]);k.useEffect(()=>{W&&K()},[W,K]);const{onOpenChange:ee,triggerPointerDownPosRef:pe}=A;k.useEffect(()=>{if(E){let fe={x:0,y:0};const Ae=ae=>{fe={x:Math.abs(Math.round(ae.pageX)-(pe.current?.x??0)),y:Math.abs(Math.round(ae.pageY)-(pe.current?.y??0))}},xe=ae=>{fe.x<=10&&fe.y<=10?ae.preventDefault():E.contains(ae.target)||ee(!1),document.removeEventListener("pointermove",Ae),pe.current=null};return pe.current!==null&&(document.addEventListener("pointermove",Ae),document.addEventListener("pointerup",xe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Ae),document.removeEventListener("pointerup",xe,{capture:!0})}}},[E,ee,pe]),k.useEffect(()=>{const fe=()=>ee(!1);return window.addEventListener("blur",fe),window.addEventListener("resize",fe),()=>{window.removeEventListener("blur",fe),window.removeEventListener("resize",fe)}},[ee]);const[V,Y]=Jq(fe=>{const Ae=O().filter(le=>!le.disabled),xe=Ae.find(le=>le.ref.current===document.activeElement),ae=Wq(Ae,fe,xe);ae&&setTimeout(()=>ae.ref.current.focus())}),z=k.useCallback((fe,Ae,xe)=>{const ae=!oe.current&&!xe;(A.value!==void 0&&A.value===Ae||ae)&&(F(fe),ae&&(oe.current=!0))},[A.value]),H=k.useCallback(()=>E?.focus(),[E]),ne=k.useCallback((fe,Ae,xe)=>{const ae=!oe.current&&!xe;(A.value!==void 0&&A.value===Ae||ae)&&U(fe)},[A.value]),te=a==="popper"?N7:Rq,me=te===N7?{side:c,sideOffset:l,align:d,alignOffset:m,arrowPadding:h,collisionBoundary:x,collisionPadding:f,sticky:b,hideWhenDetached:y,avoidCollisions:w}:{};return s.jsx(Pq,{scope:n,content:E,viewport:S,onViewportChange:R,itemRefCallback:z,selectedItem:I,onItemLeave:H,itemTextRefCallback:ne,focu
vendor: 8,727 bytes, line 1344
1344sSelectedItem:K,selectedItemText:_,position:a,isPositioned:W,searchRef:V,children:s.jsx(z4,{as:n2e,allowPinchZoom:!0,children:s.jsx(H4,{asChild:!0,trapped:A.open,onMountAutoFocus:fe=>{fe.preventDefault()},onUnmountAutoFocus:Kt(r,fe=>{A.trigger?.focus({preventScroll:!0}),fe.preventDefault()}),children:s.jsx(R2,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:fe=>fe.preventDefault(),onDismiss:()=>A.onOpenChange(!1),children:s.jsx(te,{role:"listbox",id:A.contentId,"data-state":A.open?"open":"closed",dir:A.dir,onContextMenu:fe=>fe.preventDefault(),...T,...me,onPlaced:()=>J(!0),ref:L,style:{display:"flex",flexDirection:"column",outline:"none",...T.style},onKeyDown:Kt(T.onKeyDown,fe=>{const Ae=fe.ctrlKey||fe.altKey||fe.metaKey;if(fe.key==="Tab"&&fe.preventDefault(),!Ae&&fe.key.length===1&&Y(fe.key),["ArrowUp","ArrowDown","Home","End"].includes(fe.key)){let ae=O().filter(le=>!le.disabled).map(le=>le.ref.current);if(["ArrowUp","End"].includes(fe.key)&&(ae=ae.slice().reverse()),["ArrowUp","ArrowDown"].includes(fe.key)){const le=fe.target,ze=ae.indexOf(le);ae=ae.slice(ze+1)}setTimeout(()=>G(ae)),fe.preventDefault()}})})})})})})});Dq.displayName=t2e;var a2e="SelectItemAlignedPosition",Rq=k.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:a,...r}=e,i=yh(H0,n),o=wh(H0,n),[c,l]=k.useState(null),[d,m]=k.useState(null),h=Ea(t,L=>m(L)),x=c6(n),f=k.useRef(!1),b=k.useRef(!0),{viewport:y,selectedItem:w,selectedItemText:T,focusSelectedItem:A}=o,E=k.useCallback(()=>{if(i.trigger&&i.valueNode&&c&&d&&y&&w&&T){const L=i.trigger.getBoundingClientRect(),I=d.getBoundingClientRect(),F=i.valueNode.getBoundingClientRect(),_=T.getBoundingClientRect();if(i.dir!=="rtl"){const le=_.left-I.left,ze=F.left-le,pt=L.left-ze,xt=L.width+pt,be=Math.max(xt,I.width),Tt=window.innerWidth-uu,Xt=T7(ze,[uu,Math.max(uu,Tt-be)]);c.style.minWidth=xt+"px",c.style.left=Xt+"px"}else{const le=I.right-_.right,ze=window.innerWidth-F.right-le,pt=window.innerWidth-L.right-ze,xt=L.width+pt,be=Math.max(xt,I.width),Tt=window.innerWidth-uu,Xt=T7(ze,[uu,Math.max(uu,Tt-be)]);c.style.minWidth=xt+"px",c.style.right=Xt+"px"}const U=x(),O=window.innerHeight-uu*2,W=y.scrollHeight,J=window.getComputedStyle(d),oe=parseInt(J.borderTopWidth,10),G=parseInt(J.paddingTop,10),K=parseInt(J.borderBottomWidth,10),ee=parseInt(J.paddingBottom,10),pe=oe+G+W+ee+K,V=Math.min(w.offsetHeight*5,pe),Y=window.getComputedStyle(y),z=parseInt(Y.paddingTop,10),H=parseInt(Y.paddingBottom,10),ne=L.top+L.height/2-uu,te=O-ne,me=w.offsetHeight/2,fe=w.offsetTop+me,Ae=oe+G+fe,xe=pe-Ae;if(Ae<=ne){const le=U.length>0&&w===U[U.length-1].ref.current;c.style.bottom="0px";const ze=d.clientHeight-y.offsetTop-y.offsetHeight,pt=Math.max(te,me+(le?H:0)+ze+K),xt=Ae+pt;c.style.height=xt+"px"}else{const le=U.length>0&&w===U[0].ref.current;c.style.top="0px";const pt=Math.max(ne,oe+y.offsetTop+(le?z:0)+me)+xe;c.style.height=pt+"px",y.scrollTop=Ae-ne+y.offsetTop}c.style.margin=`${uu}px 0`,c.style.minHeight=V+"px",c.style.maxHeight=O+"px",a?.(),requestAnimationFrame(()=>f.current=!0)}},[x,i.trigger,i.valueNode,c,d,y,w,T,i.dir,a]);co(()=>E(),[E]);const[D,S]=k.useState();co(()=>{d&&S(window.getComputedStyle(d).zIndex)},[d]);const R=k.useCallback(L=>{L&&b.current===!0&&(E(),A?.(),b.current=!1)},[E,A]);return s.jsx(r2e,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:f,onScrollButtonChange:R,children:s.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:D},children:s.jsx(Vn.div,{...r,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});Rq.displayName=a2e;var s2e="SelectPopperPosition",N7=k.forwardRef((e,t)=>{const{__scopeSelect:n,align:a="start",collisionPadding:r=uu,...i}=e,o=l6(n);return s.jsx(zj,{...o,...i,ref:t,align:a,collisionPadding:r,style:{boxSizing:"border-box",...i.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)"}})});N7.displayName=s2e;var[r2e,g9]=jx(H0,{}),k7="SelectViewport",Iq=k.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:a,...r}=e,i=wh(k7,n),o=g9(k7,n),c=Ea(t,i.onViewportChange),l=k.useRef(0);return s.jsxs(s.Fragment,{children:[s.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:a}),s.jsx(o6.Slot,{scope:n,children:s.jsx(Vn.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:Kt(r.onScroll,d=>{const m=d.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:x}=o;if(x?.current&&h){const f=Math.abs(l.current-m.scrollTop);if(f>0){const b=window.innerHeight-uu*2,y=parseFloat(h.style.minHeight),w=parseFloat(h.style.height),T=Math.max(y,w);if(T<b){const A=T+f,E=Math.min(b,A),D=A-E;h.style.height=E+"px",h.style.bottom==="0px"&&(m.scrollTop=D>0?D:0,h.style.justifyContent="flex-end")}}}l.current=m.scrollTop})})})]})});Iq.displayName=k7;var Mq="SelectGroup",[i2e,o2e]=jx(Mq),c2e=k.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,r=fu();return s.jsx(i2e,{scope:n,id:r,children:s.jsx(Vn.div,{role:"group","aria-labelledby":r,...a,ref:t})})});c2e.displayName=Mq;var Lq="SelectLabel",l2e=k.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,r=o2e(Lq,n);return s.jsx(Vn.div,{id:r.id,...a,ref:t})});l2e.displayName=Lq;var U3="SelectItem",[u2e,Oq]=jx(U3),Bq=k.forwardRef((e,t)=>{const{__scopeSelect:n,value:a,disabled:r=!1,textValue:i,...o}=e,c=yh(U3,n),l=wh(U3,n),d=c.value===a,[m,h]=k.useState(i??""),[x,f]=k.useState(!1),b=Ea(t,A=>l.itemRefCallback?.(A,a,r)),y=fu(),w=k.useRef("touch"),T=()=>{r||(c.onValueChange(a),c.onOpenChange(!1))};if(a==="")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 s.jsx(u2e,{scope:n,value:a,disabled:r,textId:y,isSelected:d,onItemTextChange:k.useCallback(A=>{h(E=>E||(A?.textContent??"").trim())},[]),children:s.jsx(o6.ItemSlot,{scope:n,value:a,disabled:r,textValue:m,children:s.jsx(Vn.div,{role:"option","aria-labelledby":y,"data-highlighted":x?"":void 0,"aria-selected":d&&x,"data-state":d?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...o,ref:b,onFocus:Kt(o.onFocus,()=>f(!0)),onBlur:Kt(o.onBlur,()=>f(!1)),onClick:Kt(o.onClick,()=>{w.current!=="mouse"&&T()}),onPointerUp:Kt(o.onPointerUp,()=>{w.current==="mouse"&&T()}),onPointerDown:Kt(o.onPointerDown,A=>{w.current=A.pointerType}),onPointerMove:Kt(o.onPointerMove,A=>{w.current=A.pointerType,r?l.onItemLeave?.():w.current==="mouse"&&A.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Kt(o.onPointerLeave,A=>{A.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:Kt(o.onKeyDown,A=>{l.searchRef?.current!==""&&A.key===" "||(Wbe.includes(A.key)&&T(),A.key===" "&&A.preventDefault())})})})})});Bq.displayName=U3;var rb="SelectItemText",Fq=k.forwardRef((e,t)=>{const{__scopeSelect:n,className:a,style:r,...i}=e,o=yh(rb,n),c=wh(rb,n),l=Oq(rb,n),d=Kbe(rb,n),[m,h]=k.useState(null),x=Ea(t,T=>h(T),l.onItemTextChange,T=>c.itemTextRefCallback?.(T,l.value,l.disabled)),f=m?.textContent,b=k.useMemo(()=>s.jsx("option",{value:l.value,disabled:l.disabled,children:f},l.value),[l.disabled,l.value,f]),{onNativeOptionAdd:y,onNativeOptionRemove:w}=d;return co(()=>(y(b),()=>w(b)),[y,w,b]),s.jsxs(s.Fragment,{children:[s.jsx(Vn.span,{id:l.textId,...i,ref:x}),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?D2.createPortal(i.children,o.valueNode):null]})});Fq.displayName=rb;var Uq="SelectItemIndicator",Hq=k.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e;return Oq(Uq,n).isSelected?s.jsx(Vn.span,{"aria-hidden":!0,...a,ref:t}):null});Hq.displayName=Uq;var j7="SelectScrollUpButton",Vq=k.forwardRef((e,t)=>{const n=wh(j7,e.__scopeSelect),a=g9(j7,e.__scopeSelect),[r,i]=k.useState(!1),o=Ea(t,a.onScrollButtonChange);return co(()=>{if(n.viewport&&n.isPositioned){let c=function(){const d=l.scrollTop>0;i(d)};const l=n.viewport;return c(),l.addEventListener("scroll",c),()=>l.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),r?s.jsx($q,{...e,ref:o,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop-l.offsetHeight)}}):null});Vq.displayName=j7;var A7="SelectScrollDownButton",zq=k.forwardRef((e,t)=>
vendor: 4,863 bytes, line 1344
1344{const n=wh(A7,e.__scopeSelect),a=g9(A7,e.__scopeSelect),[r,i]=k.useState(!1),o=Ea(t,a.onScrollButtonChange);return co(()=>{if(n.viewport&&n.isPositioned){let c=function(){const d=l.scrollHeight-l.clientHeight,m=Math.ceil(l.scrollTop)<d;i(m)};const l=n.viewport;return c(),l.addEventListener("scroll",c),()=>l.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),r?s.jsx($q,{...e,ref:o,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop+l.offsetHeight)}}):null});zq.displayName=A7;var $q=k.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:a,...r}=e,i=wh("SelectScrollButton",n),o=k.useRef(null),c=c6(n),l=k.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return k.useEffect(()=>()=>l(),[l]),co(()=>{c().find(m=>m.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),s.jsx(Vn.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:Kt(r.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(a,50))}),onPointerMove:Kt(r.onPointerMove,()=>{i.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(a,50))}),onPointerLeave:Kt(r.onPointerLeave,()=>{l()})})}),d2e="SelectSeparator",m2e=k.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e;return s.jsx(Vn.div,{"aria-hidden":!0,...a,ref:t})});m2e.displayName=d2e;var E7="SelectArrow",p2e=k.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,r=l6(n),i=yh(E7,n),o=wh(E7,n);return i.open&&o.position==="popper"?s.jsx($j,{...r,...a,ref:t}):null});p2e.displayName=E7;var h2e="SelectBubbleInput",qq=k.forwardRef(({__scopeSelect:e,value:t,...n},a)=>{const r=k.useRef(null),i=Ea(a,r),o=fq(t);return k.useEffect(()=>{const c=r.current;if(!c)return;const l=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(l,"value").set;if(o!==t&&m){const h=new Event("change",{bubbles:!0});m.call(c,t),c.dispatchEvent(h)}},[o,t]),s.jsx(Vn.select,{...n,style:{...eU,...n.style},ref:i,defaultValue:t})});qq.displayName=h2e;function Gq(e){return e===""||e===void 0}function Jq(e){const t=ao(e),n=k.useRef(""),a=k.useRef(0),r=k.useCallback(o=>{const c=n.current+o;t(c),(function l(d){n.current=d,window.clearTimeout(a.current),d!==""&&(a.current=window.setTimeout(()=>l(""),1e3))})(c)},[t]),i=k.useCallback(()=>{n.current="",window.clearTimeout(a.current)},[]);return k.useEffect(()=>()=>window.clearTimeout(a.current),[]),[n,r,i]}function Wq(e,t,n){const r=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let o=f2e(e,Math.max(i,0));r.length===1&&(o=o.filter(d=>d!==n));const l=o.find(d=>d.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function f2e(e,t){return e.map((n,a)=>e[(t+a)%e.length])}var g2e=Nq,x2e=jq,b2e=Eq,v2e=Cq,y2e=Sq,w2e=_q,T2e=Iq,N2e=Bq,k2e=Fq,j2e=Hq,A2e=Vq,E2e=zq;function qn({...e}){return s.jsx(g2e,{"data-loc":"client/src/components/ui/select.tsx:10","data-slot":"select",...e})}function Gn({...e}){return s.jsx(b2e,{"data-loc":"client/src/components/ui/select.tsx:22","data-slot":"select-value",...e})}function Jn({className:e,size:t="default",children:n,...a}){return s.jsxs(x2e,{"data-loc":"client/src/components/ui/select.tsx:34","data-slot":"select-trigger","data-size":t,className:an("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...a,children:[n,s.jsx(v2e,{"data-loc":"client/src/components/ui/select.tsx:44",asChild:!0,children:s.jsx(Y0,{"data-loc":"client/src/components/ui/select.tsx:45",className:"size-4 opacity-50"})})]})}function Wn({className:e,children:t,position:n="popper",align:a="center",...r}){return s.jsx(y2e,{"data-loc":"client/src/components/ui/select.tsx:59",children:s.jsxs(w2e,{"data-loc":"client/src/components/ui/select.tsx:60","data-slot":"select-content",className:an("bg-popover text-popover-foreground 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]:sli
1344de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",n==="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:n,align:a,...r,children:[s.jsx(C2e,{"data-loc":"client/src/components/ui/select.tsx:72"}),s.jsx(T2e,{"data-loc":"client/src/components/ui/select.tsx:73",className:an("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),s.jsx(S2e,{"data-loc":"client/src/components/ui/select.tsx:82"})]})})}function At({className:e,children:t,...n}){return s.jsxs(N2e,{"data-loc":"client/src/components/ui/select.tsx:107","data-slot":"select-item",className:an("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[s.jsx("span",{"data-loc":"client/src/components/ui/select.tsx:115",className:"absolute right-2 flex size-3.5 items-center justify-center",children:s.jsx(j2e,{"data-loc":"client/src/components/ui/select.tsx:116",children:s.jsx(bc,{"data-loc":"client/src/components/ui/select.tsx:117",className:"size-4"})})}),s.jsx(k2e,{"data-loc":"client/src/components/ui/select.tsx:120",children:t})]})}function C2e({className:e,...t}){return s.jsx(A2e,{"data-loc":"client/src/components/ui/select.tsx:143","data-slot":"select-scroll-up-button",className:an("flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(tA,{"data-loc":"client/src/components/ui/select.tsx:151",className:"size-4"})})}function S2e({className:e,...t}){return s.jsx(E2e,{"data-loc":"client/src/components/ui/select.tsx:161","data-slot":"select-scroll-down-button",className:an("flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(Y0,{"data-loc":"client/src/components/ui/select.tsx:169",className:"size-4"})})}const _2e=a6("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Pn({className:e,variant:t,asChild:n=!1,...a}){const r=n?Dj:"span";return s.jsx(r,{"data-loc":"client/src/components/ui/badge.tsx:38","data-slot":"badge",className:an(_2e({variant:t}),e),...a})}const P2e=a6("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function xd({className:e,variant:t,...n}){return s.jsx("div",{"data-loc":"client/src/components/ui/alert.tsx:28","data-slot":"alert",role:"alert",className:an(P2e({variant:t}),e),...n})}function bd({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/alert.tsx:39","data-slot":"alert-title",className:an("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",e),...t})}function vd({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/alert.tsx:55","data-slot":"alert-description",className:an("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",e),...t})}const D2e=e=>Math.round(Number.isFinite(e)?e:0),Jp=e=>Math.max(0,D2e(e));function Ip(e,t,n,a={}){const r=n.map(c=>({...c,debit:Jp(c.debit),credit:Jp(c.credit)})).filter(c=>c.debit>0||c.credit>0),i=r.reduce((c,l)=>c+l.debit,0),o=r.reduce((c,l)=>c+l.credit,0);if(i!==o)throw new Error(`Unbalanced tourism accounting draft: ${e}`);return{eventType:e,triggerStatus:t,requiresApproval:a.requiresApproval??!1,controlOnly:a.controlOnly??r.length===0,lines:r,totalDebit:i,totalCredit:o}}function R2e(e){const t=Jp(e.effectiveSellingPrice),n=Jp(e.totalCost),a=Math.min(t,Jp(e.customerReceiptAmount||0)),r=Math.min(n,Jp(e.supplierSettlementAmount||0)),i=Math.min(t,Jp(e.customerRefundAmount||0)),o=Math.min(n,Jp(e.supplierRefundAmount||0)),c=[];return["confirmed","ticketed","operated","completed","financially_closed"].includes(e.status)&&c.push(Ip("reservation_confirmed","confirmed",[{accountRole:"customer_receivable",debit:t,credit:0,memoKey:"booking_customer_receivable"},{accountRole:"tourism_revenue",debit:0,credit:t,memoKey:"booking_revenue"},{accountRole:"tourism_cost",debit:n,credit:0,memoKey:"booking_supplier_cost"},{accountRole:"supplier_payable",debit:0,credit:n,memoKey:"booking_supplier_payable"}])),["ticketed","operated","completed","financially_closed"].includes(e.status)&&c.push(Ip("ticket_issued_control","ticketed",[],{controlOnly:!0})),a>0&&c.push(Ip("customer_receipt",e.status,[{accountRole:"cash_or_bank",debit:a,credit:0,memoKey:"customer_receipt"},{accountRole:"customer_receivable",debit:0,credit:a,memoKey:"settle_customer_receivable"}])),r>0&&c.push(Ip("supplier_settlement",e.status,[{accountRole:"supplier_payable",debit:r,credit:0,memoKey:"settle_supplier_payable"},{accountRole:"cash_or_bank",debit:0,credit:r,memoKey:"supplier_payment"}])),e.status==="cancelled"&&c.push(Ip("cancellation_reversal","cancelled",[{accountRole:"tourism_revenue",debit:t,credit:0,memoKey:"reverse_booking_revenue"},{accountRole:"customer_receivable",debit:0,credit:t,memoKey:"reverse_customer_receivable"},{accountRole:"supplier_payable",debit:n,credit:0,memoKey:"reverse_supplier_payable"},{accountRole:"tourism_cost",debit:0,credit:n,memoKey:"reverse_booking_cost"}],{requiresApproval:!0})),e.status==="refunded"&&i>0&&c.push(Ip("customer_refund","refunded",[{accountRole:"customer_refund_liability",debit:i,credit:0,memoKey:"customer_refund_due"},{accountRole:"cash_or_bank",debit:0,credit:i,memoKey:"customer_refund_paid"}],{requiresApproval:!0})),e.status==="refunded"&&o>0&&c.push(Ip("supplier_refund","refunded",[{accountRole:"supplier_refund_receivable",debit:o,credit:0,memoKey:"supplier_refund_due"},{accountRole:"tourism_cost",debit:0,credit:o,memoKey:"supplier_cost_recovery"}],{requiresApproval:!0})),e.status==="financially_closed"&&c.push(Ip("financial_close_control","financially_closed",[],{requiresApproval:!0,controlOnly:!0})),c}const I2e=[{type:"invoice",collection:"invoices",module:"invoices",icon:ji,ar:"ÙØ§ØªÙرة Ø§ÙØ¹Ù
ÙÙ",en:"Customer invoice"},{type:"voucher",collection:"vouchers",module:"vouchers",icon:vx,ar:"ÙØ³ÙÙ
Ø© Ø§ÙØ®Ø¯Ù
Ø©",en:"Service voucher"},{type:"ticket",collection:"tickets",module:"tickets",icon:U4,ar:"Ù
Ø³ÙØ¯Ø© Ø§ÙØªØ°Ùرة",en:"Ticket draft"},{type:"manifest",collection:"manifests",module:"manifests",icon:MU,ar:"ÙØ´Ù اÙÙ
Ø³Ø§ÙØ±ÙÙ",en:"Passenger manifest"}],qr=(e,t,n)=>e==="ar"?t:n;function M2e(e,t){return e==="invoice"?t.invoiceNumber:e==="voucher"?t.voucherNumber:e==="ticket"?t.ticketNumber||t.draftReference:t.manifestNumber}function L2e(e,t){const n={status_not_ready:["ÙØ¬Ø¨ تأÙÙØ¯ Ø§ÙØØ¬Ø² Ø£ÙÙØ§Ù.","Confirm the booking first."],booking_not_confirmed:["ÙØ¬Ø¨ تأÙÙØ¯ Ø§ÙØØ¬Ø² Ø£ÙÙØ§Ù.","Confirm the booking first."],approval_pending:["Ø§ÙØØ¬Ø² Ø¨Ø§ÙØªØ¸Ø§Ø± Ø§ÙØ§Ø¹ØªÙ
اد.","Booking approval is pending."],approval_rejected:["تÙ
Ø±ÙØ¶ اعتÙ
اد Ø§ÙØØ¬Ø².","Booking approval was rejected."],verified_service_required:["أض٠خدÙ
Ø© Ù
ÙØ«ÙØ© ÙØ¨Ù Ø¥ÙØ´Ø§Ø¡ اÙÙØ³ÙÙ
Ø©.","Add a verified service before creating the voucher."],lead_passenger_required:["اسÙ
اÙÙ
Ø³Ø§ÙØ± Ø§ÙØ±Ø¦Ùس٠Ù
Ø·ÙÙØ¨.","A lead-passenger name is required."]},a=n[t||"status_not_ready"]||n.status_not_ready;return e==="ar"?a[0]:a[1]}function O2e(e,t,n){return n!=="draft"?null:t==="ticket"?qr(e,"ØºÙØ± صادرة: أدخ٠رÙÙ
Ø§ÙØªØ°Ùرة ÙPNR ÙØ§ÙÙØ§ÙÙ Ø§ÙØÙÙÙÙÙÙ ÙØ¯ÙÙØ§Ù.","Not issued: enter the real ticket number, PNR and carrier manually."):t==="voucher"?qr(e,"Ø£ÙÙ
٠اÙÙ
ÙØ±Ø¯ ÙØ§ÙتÙÙÙØ© اÙÙØ¹ÙÙØ© ÙØ¨Ù Ø§ÙØ¥ØµØ¯Ø§Ø±.","Complete the actual supplier and cost before issuance."):t==="manifest"?qr(e,"Ø£ÙÙ
٠أسÙ
اء اÙÙ
Ø³Ø§ÙØ±ÙÙ ÙØ§ÙØ¬ÙØ§Ø²Ø§Øª ÙØ¨ÙØ§ÙØ§Øª Ø§ÙØ±ØÙØ© ÙØ¨Ù Ø§ÙØ§Ø¹ØªÙ
اد.","Complete passenger identities, passports and trip details before finalization."):qr(e,"ÙØ§ØªÙرة Ù
Ø³ÙØ¯Ø© Ù
رتبطة Ø¨Ø§ÙØØ¬Ø² اÙÙ
Ø¤ÙØ¯.","A draft invoice linked to the confirmed booking.")}function B2e({bookingId:e,lang:t,onOpenModule:n}){const[a,r]=k.useState(!1),[i,o]=k.useState(null),c=Pe.useUtils(),l=Pe.accounting.tourism.bookings.getDocuments.useQuery({bookingId:e},{enabled:a,retry:!1}),d=Pe.accounting.tourism.bookings.createDocumentFromBooking.useMutation(),m=async h=>{o(h);try{const x=await d.mutateAsync({bookingId:e,type:h});await c.accounting.tourism.bookings.getDocuments.invalidate({bookingId:e}),x.created?Le.success(qr(t,"تÙ
Ø¥ÙØ´Ø§Ø¡ اÙÙ
Ø³ØªÙØ¯","Document created"),{description:qr(t,"Ø£ÙÙØ´Ø¦ ÙØ³Ø¬Ù Ù
رتبط Ø¨Ø§ÙØØ¬Ø² ÙÙÙ Ø§ÙØ¨ÙØ§ÙØ§Øª اÙÙ
ØªØ§ØØ©.","Created as a booking-linked record using available verified data.")}):Le.info(qr(t,"اÙÙ
Ø³ØªÙØ¯ Ù
ÙØ¬Ùد Ù
Ø³Ø¨ÙØ§Ù","Document already exists"),{description:qr(t,"تÙ
ÙØªØ Ø§ÙØ³Ø¬Ù Ø§ÙØØ§ÙÙ ÙÙÙ
تÙÙØ´Ø£ ÙØ³Ø®Ø© Ù
ÙØ±Ø±Ø©.","The existing record was returned; no duplicate was created.")})}catch(x){Le.error(qr(t,"تعذر Ø¥ÙØ´Ø§Ø¡ اÙÙ
Ø³ØªÙØ¯","Document creation failed"),{description:x?.message||qr(t,"تØÙÙ Ù
Ù ØØ§ÙØ© Ø§ÙØØ¬Ø² ÙØ§ÙاعتÙ
اد.","Check booking status and approval.")})}finally{o(null)}};
1344return s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:119",className:"md:col-span-3",children:[s.jsxs("button",{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:120",type:"button",onClick:()=>r(h=>!h),className:"flex w-full items-center justify-between gap-3 rounded-xl border border-slate-200 bg-slate-50/80 px-4 py-3 text-start transition-colors hover:border-cyan-300/50 hover:bg-cyan-50/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cyan-500","aria-expanded":a,children:[s.jsxs("span",{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:126",className:"flex items-center gap-3",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:127",className:"flex h-8 w-8 items-center justify-center rounded-lg bg-slate-950 text-cyan-200",children:s.jsx(ji,{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:127",className:"h-4 w-4"})}),s.jsxs("span",{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:128",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:129",className:"block text-sm font-semibold text-slate-900",children:qr(t,"Ù
Ø±ÙØ² Ù
Ø³ØªÙØ¯Ø§Øª Ø§ÙØØ¬Ø²","Booking documents center")}),s.jsx("span",{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:130",className:"mt-0.5 block text-[11px] text-slate-500",children:qr(t,"اÙÙØ§ØªÙرة ÙØ§ÙÙØ³ÙÙ
Ø© ÙØ§ÙØªØ°ÙØ±Ø© ÙØ§ÙÙØ´Ù ÙÙ Ù
سار ÙØ§ØØ¯","Invoice, voucher, ticket and manifest in one controlled flow")})]})]}),a?s.jsx(tA,{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:133",className:"h-4 w-4 text-slate-500"}):s.jsx(Y0,{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:133",className:"h-4 w-4 text-slate-500"})]}),a&&s.jsx("div",{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:137",className:"mt-3 rounded-2xl border border-slate-200 bg-white p-4 shadow-sm",children:l.isLoading?s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:139",className:"flex items-center justify-center gap-2 py-8 text-sm text-slate-500",children:[s.jsx(ft,{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:139",className:"h-4 w-4 animate-spin"}),qr(t,"جار٠تØÙ
Ù٠اÙÙ
Ø³ØªÙØ¯Ø§Øªâ¦","Loading documentsâ¦")]}):l.isError?s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:141",className:"flex items-start gap-3 rounded-xl border border-rose-200 bg-rose-50 p-4 text-sm text-rose-800",children:[s.jsx(zi,{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:141",className:"mt-0.5 h-4 w-4 shrink-0"}),s.jsx("span",{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:141",children:qr(t,"تعذر تØÙ
ÙÙ Ù
Ø³ØªÙØ¯Ø§Øª ÙØ°Ø§ Ø§ÙØØ¬Ø². تØÙÙ Ù
Ù Ø§ÙØµÙاØÙØ© Ø«Ù
أعد اÙÙ
ØØ§ÙÙØ©.","This booking's documents could not be loaded. Check access and retry.")})]}):l.data?s.jsx("div",{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:143",className:"grid gap-3 sm:grid-cols-2 xl:grid-cols-4",children:I2e.map(h=>{const x=h.icon,b=l.data.documents[h.collection][0],y=l.data.actions[h.type],w=b?.status,T=b?O2e(t,h.type,w):null;return s.jsxs("section",{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:152",className:"flex min-h-[190px] flex-col rounded-2xl border border-slate-200 bg-slate-50/70 p-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:153",className:"flex items-start justify-between gap-3",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:154",className:"flex h-9 w-9 items-center justify-center rounded-xl bg-white text-slate-700 shadow-sm",children:s.jsx(x,{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:154",className:"h-4 w-4"})}
1344),b?s.jsx(Pn,{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:156",variant:"outline",className:w==="draft"?"border-amber-200 bg-amber-50 text-amber-800":"border-emerald-200 bg-emerald-50 text-emerald-800",children:w==="draft"?qr(t,"Ù
Ø³ÙØ¯Ø©","Draft"):w}):s.jsx(Pn,{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:160",variant:"outline",className:"border-slate-200 bg-white text-slate-500",children:qr(t,"ØºÙØ± Ù
ÙØ´Ø£","Not created")})]}),s.jsx("h4",{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:163",className:"mt-4 text-sm font-semibold text-slate-900",children:t==="ar"?h.ar:h.en}),b?s.jsxs(s.Fragment,{children:[s.jsx("p",{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:166",className:"mt-1 break-all font-mono text-[11px] text-slate-500",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:166",children:String(M2e(h.type,b)||"â")})}),T&&s.jsx("p",{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:167",className:"mt-2 text-[11px] leading-5 text-amber-800",children:T}),s.jsx("div",{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:168",className:"mt-auto pt-4",children:l.data.canCreateDocuments&&n?s.jsxs(Ie,{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:170",type:"button",variant:"outline",size:"sm",className:"w-full gap-2",onClick:()=>n(h.module),children:[s.jsx(O4,{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:171",className:"h-3.5 w-3.5"}),qr(t,"ÙØªØ Ø§ÙØ³Ø¬Ù","Open record")]}):s.jsxs("p",{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:174",className:"flex items-center gap-1.5 text-[11px] text-slate-500",children:[s.jsx(ns,{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:174",className:"h-3.5 w-3.5 text-emerald-600"}),qr(t,"Ø§ÙØ³Ø¬Ù Ù
رتبط Ø¨Ø§ÙØØ¬Ø²","Linked to booking")]})})]}):y?.canCreate?s.jsxs(s.Fragment,{children:[s.jsx("p",{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:180",className:"mt-2 text-[11px] leading-5 text-slate-500",children:qr(t,"سÙÙÙØ´Ø£ Ù
Ù Ø§ÙØ¨ÙØ§ÙØ§Øª اÙÙØ¹ÙÙØ© اÙÙ
ØªØ§ØØ©Ø ÙØªØ¨ÙÙ Ø§ÙØÙÙÙ ØºÙØ± اÙÙ
عرÙÙØ© Ù
Ø·ÙÙØ¨Ø©.","It will use available verified data; unknown fields remain explicitly required.")}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:181",type:"button",size:"sm",className:"mt-auto gap-2",onClick:()=>m(h.type),disabled:i!==null,children:[i===h.type?s.jsx(ft,{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:182",className:"h-3.5 w-3.5 animate-spin"}):s.jsx(oa,{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:182",className:"h-3.5 w-3.5"}),qr(t,"Ø¥ÙØ´Ø§Ø¡","Create")]})]}):y?.eligibility.allowed?s.jsxs("p",{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:187",className:"mt-3 flex items-start gap-2 text-[11px] leading-5 text-slate-500",children:[s.jsx(gu,{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:187",className:"mt-0.5 h-3.5 w-3.5 shrink-0"}),qr(t,"Ø§ÙØ¥Ùشاء Ù
ØªØ§Ø ÙØ¯Ùر اÙÙ
ØØ§Ø³Ø¨ أ٠اÙÙ
Ø¯ÙØ± ÙÙØ·.","Creation is available only to accountant or admin roles.")]}):s.jsxs("p",{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:189",className:"mt-3 flex items-start gap-2 text-[11px] leading-5 text-amber-800",children:[s.jsx(zi,{"data-loc":"client/src/components/accounting/BookingDocumentsCenter.tsx:189",className:"mt-0.5 h-3.5 w-3.5 shrink-0"}),L2e(t,y?.eligibility.reason)]})]},h.type)})}):null})]})}const Nt=(e,t,n)=>e==="ar"?t:n,ib=e=>Number(e||0),EN={draft:{ar:"Ù
Ø³ÙØ¯Ø©",en:"Draft",className:"bg-slate-100 text-slate-700 border-slate-200"},priced:{ar:"Ù
ÙØ³Ø¹Ùر",en:"Priced",className:"bg-blue-50 text-blue-700 border-blue-200"},awaiting_approval:{ar:"Ø¨Ø§ÙØªØ¸Ø§Ø± Ø§ÙØ§Ø¹ØªÙ
اد",en:"Awaiting approval",className:"bg-amber-50 text-amber-700 border-amber-200"},offered:{ar:"عرض ÙÙØ¹Ù
ÙÙ",en:"Offered",className:"bg-violet-50 text-violet-700 border-violet-200"},confirmed:{ar:"Ù
Ø¤ÙØ¯",en:"Confirmed",className:"bg-emerald-50 text-emerald-700 border-emerald-200"},ticketed:{ar:"تÙ
Ø§ÙØ¥ØµØ¯Ø§Ø±",en:"Ticketed",className:"bg-cyan-50 text-cyan-700 border-cyan-200"},operated:{ar:"ÙÙØ¯ Ø§ÙØªÙÙÙØ°",en:"In operation",className:"bg-indigo-50 text-indigo-700 border-indigo-200"},completed:{ar:"Ù
ÙØªÙ
Ù",en:"Completed",className:"bg-teal-50 text-teal-700 border-teal-200"},cancelled:{ar:"Ù
ÙØºÙ",en:"Cancelled",className:"bg-rose-50 text-rose-700 border-rose-200"},refunded:{ar:"Ù
سترد",en:"Refunded",className:"bg-orange-50 text-orange-700 border-orange-200"},financially_closed:{ar:"Ù
غÙÙ Ù
اÙÙØ§Ù",en:"Financially closed",className:"bg-zinc-900 text-white border-zinc-900"}},FI={draft:"priced",priced:"offered",offered:"confirmed",confirmed:"ticketed",ticketed:"operated",operated:"completed",completed:"financially_closed"},UI={prepaid:{ar:"Ø¯ÙØ¹ Ù
سبÙ",en:"Prepaid"},deposit:{ar:"Ø¯ÙØ¹Ø© Ù
ÙØ¯Ù
Ø©",en:"Deposit"},credit:{ar:"Ø¨ÙØ¹ آج٠â ÙØªØ·Ùب اعتÙ
اداÙ",en:"Credit â approval required"},installments:{ar:"Ø£ÙØ³Ø§Ø·",en:"Installments"},on_delivery:{ar:"Ø¹ÙØ¯ Ø§ÙØªØ³ÙÙÙ
",en:"On delivery"}},HI={customer_receivable:{ar:"ذÙ
Ù
Ø§ÙØ¹Ù
ÙØ§Ø¡",en:"Customer receivable"},supplier_payable:{ar:"ذÙ
Ù
اÙÙ
ÙØ±Ø¯ÙÙ",en:"Supplier payable"},tourism_revenue:{ar:"Ø¥ÙØ±Ø§Ø¯Ø§Øª Ø§ÙØ®Ø¯Ù
ات Ø§ÙØ³ÙاØÙØ©",en:"Tourism service revenue"},tourism_cost:{ar:"تÙÙÙØ© Ø§ÙØ®Ø¯Ù
ات Ø§ÙØ³ÙاØÙØ©",en:"Tourism service cost"},cash_or_bank:{ar:"Ø§ÙØµÙدÙÙ Ø£Ù Ø§ÙØ¨ÙÙ",en:"Cash or bank"},customer_refund_liability:{ar:"Ø§ÙØªØ²Ø§Ù
استرداد Ø§ÙØ¹Ù
ÙÙ",en:"Customer refund liability"},supplier_refund_receivable:{ar:"ذÙ
Ù
استرداد اÙÙ
ÙØ±Ø¯",en:"Supplier refund receivable"}},CN={customerId:0,packageId:0,bookingType:"package",countryId:0,cityId:0,arrivalAirportId:0,departureAirportId:0,leadPassengerName:"",travelStartDate:"",travelEnd
1344Date:"",adults:1,children:0,infants:0,serviceCategoryId:0,supplierId:0,serviceDescription:"",serviceQuantity:1,currency:"JOD",netSupplierCost:0,taxAmount:0,feeAmount:0,commissionAmount:0,discountAmount:0,sellingPrice:0,paymentTerms:"prepaid",notes:""};function F2e({lang:e,initialPackageId:t=null,onInitialPackageConsumed:n,onOpenModule:a}){const r=e==="ar",[i,o]=k.useState(!1),[c,l]=k.useState(1),[d,m]=k.useState(""),[h,x]=k.useState("all"),[f,b]=k.useState(CN),y=k.useRef(null),w=Pe.useUtils(),{data:T,isLoading:A}=Pe.accounting.tourism.referenceData.useQuery(),{data:E}=Pe.accounting.customers.list.useQuery(),D=h==="all"?void 0:{status:h},{data:S,isLoading:R,isError:L}=Pe.accounting.tourism.bookings.list.useQuery(D),I=Pe.accounting.tourism.bookings.create.useMutation(),F=Pe.accounting.tourism.bookings.transition.useMutation(),_=S?.permissions,U=S?.items||[],O=T?.countries||[],W=k.useMemo(()=>(T?.cities||[]).filter(le=>!f.countryId||le.countryId===f.countryId),[T?.cities,f.countryId]),J=k.useMemo(()=>(T?.airports||[]).filter(le=>!f.cityId||le.cityId===f.cityId),[T?.airports,f.cityId]),oe=k.useMemo(()=>(T?.suppliers||[]).filter(le=>!f.countryId||!le.countryId||le.countryId===f.countryId),[T?.suppliers,f.countryId]),G=k.useMemo(()=>{const le=f.netSupplierCost+f.taxAmount+f.feeAmount-f.commissionAmount,ze=f.sellingPrice-le-f.discountAmount,pt=f.sellingPrice>0?ze/f.sellingPrice*100:0;return{totalCost:le,profit:ze,margin:pt}},[f]),K=k.useMemo(()=>_?.viewCosts?R2e({status:"confirmed",effectiveSellingPrice:Math.max(0,f.sellingPrice-f.discountAmount),totalCost:Math.max(0,G.totalCost)}):[],[G.totalCost,f.discountAmount,f.sellingPrice,_?.viewCosts]),ee=k.useMemo(()=>{const le=d.trim().toLowerCase();return le?U.filter(ze=>[ze.bookingNumber,ze.leadPassengerName,ze.bookingType,ze.status].some(pt=>String(pt||"").toLowerCase().includes(le))):U},[U,d]),pe=()=>{l(1),b(CN)},V=le=>{const ze=le==="none"?0:Number(le),pt=T?.packages.find(xt=>xt.id===ze);b(xt=>ze&&pt?{...xt,...kI(pt)}:{...xt,packageId:0,sellingPrice:0})};k.useEffect(()=>{if(!t||A||y.current===t)return;const le=T?.packages.find(ze=>ze.id===t);y.current=t,le&&(l(1),b({...CN,...kI(le)}),o(!0)),n?.()},[t,n,T?.packages,A]);const Y=le=>{const ze=le==="none"?0:Number(le),pt=E?.find(xt=>xt.id===ze);b(xt=>({...xt,customerId:ze,leadPassengerName:pt?.name||xt.leadPassengerName}))},z=c===1?!!(f.leadPassengerName&&f.countryId&&f.cityId):c===2?!!(f.travelStartDate&&f.travelEndDate&&f.adults>0):!0,H=async()=>{const le=f.serviceCategoryId?[{serviceCategoryId:f.serviceCategoryId,supplierId:f.supplierId||null,description:f.serviceDescription,quantity:f.serviceQuantity}]:[];await I.mutateAsync({customerId:f.customerId||null,packageId:f.packageId||null,bookingType:f.bookingType,countryId:f.countryId,cityId:f.cityId,arrivalAirportId:f.arrivalAirportId||null,departureAirportId:f.departureAirportId||null,leadPassengerName:f.leadPassengerName,travelStartDate:f.travelStartDate||null,travelEnd
1344Date:f.travelEndDate||null,adults:f.adults,children:f.children,infants:f.infants,serviceItinerary:le,currency:f.currency,netSupplierCost:_?.editCosts?f.netSupplierCost:0,taxAmount:_?.editCosts?f.taxAmount:0,feeAmount:_?.editCosts?f.feeAmount:0,commissionAmount:_?.editCosts?f.commissionAmount:0,discountAmount:_?.editCosts?f.discountAmount:0,sellingPrice:_?.editSellingPrice?f.sellingPrice:0,paymentTerms:f.paymentTerms,notes:f.notes||null}),await w.accounting.tourism.bookings.list.invalidate(),o(!1),pe()},ne=async le=>{const ze=FI[le.status];!ze||le.approvalStatus==="pending"||(await F.mutateAsync({id:le.id,toStatus:ze,reason:Nt(e,"ØªÙØ¯Ù
تشغÙÙÙ Ù
عتÙ
د","Approved operational progression")}),await w.accounting.tourism.bookings.list.invalidate())},te=e==="ar"?"ar-JO":"en-JO",me=le=>new Intl.NumberFormat(te).format(le||0),fe=le=>new Intl.NumberFormat(te,{minimumFractionDigits:2,maximumFractionDigits:2}).format(le||0),Ae=(le,ze)=>new Intl.NumberFormat(te,{style:"currency",currency:ze,minimumFractionDigits:2,maximumFractionDigits:2}).format(le||0),xe=le=>O.find(ze=>ze.id===le),ae=le=>(T?.cities||[]).find(ze=>ze.id===le);return R||A?s.jsx("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:313",className:"flex items-center justify-center py-24",children:s.jsx(ft,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:313",className:"h-8 w-8 animate-spin text-primary"})}):s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:317",className:"space-y-6",dir:r?"rtl":"ltr",children:[s.jsxs("section",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:318",className:"relative overflow-hidden rounded-3xl border border-slate-200 bg-[linear-gradient(135deg,#071b33_0%,#0c3154_62%,#0f766e_130%)] p-6 text-white shadow-[0_24px_70px_-35px_rgba(2,23,45,.65)] md:p-8",children:[s.jsx("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:319",className:"absolute -end-16 -top-20 h-64 w-64 rounded-full bg-cyan-300/10 blur-3xl"}),s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:320",className:"relative flex flex-col justify-between gap-6 lg:flex-row lg:items-end",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:321",className:"max-w-3xl space-y-3",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:322",className:"flex items-center gap-2 text-xs font-semibold uppercase tracking-[0.2em] text-cyan-200",children:[s.jsx(sa,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:323",className:"h-4 w-4"}),Nt(e,"تشغÙÙ Ø³ÙØ§ØÙ Ù
ØÙÙÙ
Ù
اÙÙØ§Ù","Financially controlled tourism operations")]}),s.jsx("h2",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:326",className:"font-display text-2xl font-bold tracking-tight md:text-3xl",children:Nt(e,"Ù
Ø±ÙØ² Ø¥ÙØ´Ø§Ø¡ ÙØ¥Ø¯Ø§Ø±Ø© Ø§ÙØØ¬ÙØ²Ø§Øª","Booking Operations Command Center")}),s.jsx("p",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:327",className:"max-w-2xl text-sm leading-7 text-slate-300",children:Nt(e,"Ù
٠اÙÙØ¬ÙØ© ÙÙ
سار Ø§ÙØ®Ø¯Ù
ات Ø¥ÙÙ Ø§ÙØªØ³Ø¹Ùر ÙØ§ÙاعتÙ
اد ÙØ§ÙتÙÙÙØ° ÙØ§ÙØ¥ØºÙØ§Ù اÙÙ
اÙÙØ Ù
ع Ø¹Ø²Ù Ø§ÙØªÙÙÙØ© ÙØ§ÙØ±Ø¨Ø Ø¹Ù ØºÙØ± اÙÙ
Ø®ÙÙÙÙ Ù
Ù Ø§ÙØ®Ø§Ø¯Ù
.","From destination and service itinerary to pricing, approval, fulfillment and financial closeâwith server-side isolation of cost and profit data.")})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:331",className:"grid grid-cols-2 gap-3 sm:grid-cols-4 lg:min-w-[440px]",children:[s.jsx(zy,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:332",label:Nt(e,"Ø§ÙØØ¬ÙØ²Ø§Øª","Bookings"),value:me(U.length),icon:s.jsx(ji,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:332",className:"h-4 w-4"})}),s.jsx(zy,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:333",label:Nt(e,"Ø¨Ø§ÙØªØ¸Ø§Ø± اعتÙ
اد","Pending"),value:me(U.filter(le=>le.approvalStatus==="pending").length),icon:s.jsx(fP,{"data-loc":"client/src/components/
1344accounting/BookingsTab.tsx:333",className:"h-4 w-4"})}),s.jsx(zy,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:334",label:Nt(e,"Ù
Ø¤ÙØ¯Ø©","Confirmed"),value:me(U.filter(le=>le.status==="confirmed").length),icon:s.jsx(ns,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:334",className:"h-4 w-4"})}),s.jsx(zy,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:335",label:Nt(e,"ÙÙØ¯ Ø§ÙØªØ´ØºÙÙ","Operating"),value:me(U.filter(le=>["ticketed","operated"].includes(le.status)).length),icon:s.jsx(Hs,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:335",className:"h-4 w-4"})})]})]})]}),!O.length&&s.jsxs(xd,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:341",className:"border-amber-200 bg-amber-50 text-amber-950",children:[s.jsx(zi,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:342",className:"h-4 w-4"}),s.jsx(bd,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:343",children:Nt(e,"Ø§ÙØ¨ÙØ§ÙØ§Øª اÙÙ
Ø±Ø¬Ø¹ÙØ© ØºÙØ± Ù
ÙØªÙ
ÙØ©","Reference data is incomplete")}
1344),s.jsx(vd,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:344",children:Nt(e,"ÙØ¬Ø¨ Ø¥Ø¶Ø§ÙØ© Ø§ÙØ¯ÙÙ ÙØ§ÙÙ
Ø¯Ù ÙØ§ÙÙ
طارات ÙØ¨Ù Ø¥ÙØ´Ø§Ø¡ Ø£ÙÙ ØØ¬Ø² تشغÙÙÙ.","Countries, cities and airports must be configured before creating the first operational booking.")})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:348",className:"grid gap-4 xl:grid-cols-[1fr_auto]",children:[s.jsx(kn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:349",className:"border-slate-200 shadow-sm",children:s.jsxs(Un,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:350",className:"flex flex-col gap-3 p-4 md:flex-row md:items-center",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:351",className:"relative flex-1",children:[s.jsx(so,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:352",className:"absolute start-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:353",className:"ps-9",value:d,onChange:le=>m(le.target.value),placeholder:Nt(e,"Ø§Ø¨ØØ« برÙÙ
Ø§ÙØØ¬Ø² أ٠اسÙ
اÙÙ
Ø³Ø§ÙØ±...","Search booking number or passenger...")})]}),s.jsxs(qn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:355",value:h,onValueChange:x,children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:356",className:"w-full md:w-52",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:356"})}),s.jsxs(Wn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:357",children:[s.jsx(At,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:358",value:"all",children:Nt(e,"ÙÙ Ø§ÙØØ§ÙØ§Øª","All statuses")}),Object.entries(EN).map(([le,ze])=>s.jsx(At,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:359",value:le,children:e==="ar"?ze.ar:ze.en},le))]})]})]})}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:364",className:"h-full min-h-14 gap-2 rounded-2xl px-6 shadow-lg shadow-primary/20",onClick:()=>o(!0),disabled:!_?.createBooking||!O.length,children:[s.jsx(oa,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:365",className:"h-4 w-4"})," ",Nt(e,"Ø¥ÙØ´Ø§Ø¡ ØØ¬Ø² Ø§ØØªØ±Ø§ÙÙ","Create professional booking")]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:369",className:"grid gap-4 md:grid-cols-3",children:[s.jsx(SN,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:370",lang:e,icon:s.jsx(M0,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:370",className:"h-5 w-5"}),label:Nt(e,"سعر Ø§ÙØ¨Ùع","Selling price"),allowed:!!_?.viewSellingPrice}),s.jsx(SN,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:371",lang:e,icon:s.jsx(gu,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:371",className:"h-5 w-5"}),label:Nt(e,"تÙÙÙØ© اÙÙ
ÙØ±Ø¯","Supplier cost"),allowed:!!_?.viewCosts}),s.jsx(SN,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:372",lang:e,icon:s.jsx(Cd,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:372",className:"h-5 w-5"}),label:Nt(e,"Ø§ÙØ±Ø¨Ø ÙØ§ÙÙØ§Ù
Ø´","Profit & margin"),allowed:!!_?.viewProfit})]}),s.jsxs(kn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:375",className:"overflow-hidden border-slate-200 shadow-sm",children:[s.jsx(Xr,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:376",className:"border-b bg-slate-50/70 py-4",children:s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:377",className:"flex items-center justify-between gap-3",children:[s.jsx(Qr,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:378",className:"font-display text-base",children:Nt(e,"Ø³Ø¬Ù Ø§ÙØØ¬ÙØ²Ø§Øª Ø§ÙØªØ´ØºÙÙÙ","Operational booking register")}),s.jsx(Pn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:379",variant:"outline",className:"font-mono",children:ee.length})]})}),s.jsx(Un,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:382",className:"p-0",children:L?s.jsx("div",{"data-loc":"client/src/components/
1344accounting/BookingsTab.tsx:384",className:"p-10 text-center text-sm text-destructive",children:Nt(e,"تعذر تØÙ
ÙÙ Ø§ÙØØ¬ÙØ²Ø§Øª. ÙØ±Ø¬Ù إعادة اÙÙ
ØØ§ÙÙØ©.","Bookings could not be loaded. Please retry.")}):ee.length?s.jsx("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:386",className:"divide-y",children:ee.map(le=>{const ze=EN[le.status]||EN.draft,pt=xe(le.countryId),xt=ae(le.cityId),be=FI[le.status];return s.jsxs("article",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:393",className:"group grid gap-4 p-4 transition-colors hover:bg-slate-50/70 md:grid-cols-[1.4fr_1fr_auto] md:items-center md:p-5",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:394",className:"flex min-w-0 items-start gap-4",children:[s.jsx("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:395",className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-2xl bg-slate-950 text-cyan-200 shadow-sm",children:s.jsx(rA,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:395",className:"h-5 w-5"})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:396",className:"min-w-0",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:397",className:"flex flex-wrap items-center gap-2",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:398",className:"font-mono text-xs font-bold tracking-wide text-primary",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:398",children:le.bookingNumber})}),s.jsx(Pn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:399",variant:"outline",className:ze.className,children:e==="ar"?ze.ar:ze.en}),le.approvalStatus==="pending"&&s.jsx(Pn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:400",variant:"outline",className:"border-amber-300 bg-amber-50 text-amber-800",children:Nt(e,"ÙØªØ·Ùب اعتÙ
اداÙ","Approval required")})]}),s.jsx("h3",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:402",className:"mt-1 truncate font-semibold text-slate-950",children:le.leadPassengerName}),s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:403",className:"mt-2 flex flex-wrap gap-x-4 gap-y-1 text-xs text-muted-foreground",children:[s.jsxs("span",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:404",className:"flex items-center gap-1",children:[s.jsx(mr,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:404",className:"h-3.5 w-3.5"}),e==="ar"?pt?.nameAr:pt?.nameEn," · ",e==="ar"?xt?.nameAr:xt?.nameEn]}),s.jsxs("span",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:405",className:"flex items-center gap-1",children:[s.jsx(Xb,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:405",className:"h-3.5 w-3.5"}),s.jsx("bdi",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:405",dir:"ltr",children:le.travelStartDate||"â"})]}),s.jsxs("span",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:406",className:"flex items-center gap-1",children:[s.jsx(Dl,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:406",className:"h-3.5 w-3.5"}),s.jsx("bdi",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:406",children:me(le.adults+le.children+le.infants)})]})]})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:410",className:"grid grid-cols-2 gap-3 text-sm",children:[_?.viewSellingPrice&&s.jsx(VI,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:411",label:Nt(e,"سعر Ø§ÙØ¨Ùع","Selling"),value:Ae(le.sellingPrice,le.currency)}),_?.viewProfit&&s.jsx(VI,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:412",label:Nt(e,"Ø§ÙØ±Ø¨Ø","Profit"),value:Ae(le.profitAmount,le.currency),emphasis:!0}),!_?.viewSellingPrice&&s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:413",className:"col-span-2 flex items-center gap-2 rounded-xl bg-slate-100 px-3 py-2 text-xs text-slate-600",children:[s.jsx(gu,{"data-loc":"client/src/components/
1344accounting/BookingsTab.tsx:413",className:"h-4 w-4"}),Nt(e,"Ø§ÙØÙÙ٠اÙÙ
اÙÙØ© Ù
ØØ¬Ùبة","Financial fields are restricted")]})]}),s.jsx("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:415",className:"flex items-center justify-end gap-2",children:be&&s.jsxs(Ie,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:417",size:"sm",variant:"outline",className:"gap-2",onClick:()=>ne(le),disabled:F.isPending||le.approvalStatus==="pending"||be==="financially_closed"&&!_?.financiallyClose,children:[Nt(e,"ØªÙØ¯Ù
ÙÙÙ
رØÙØ© Ø§ÙØªØ§ÙÙØ©","Advance stage"),r?s.jsx(_l,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:419",className:"h-4 w-4"}):s.jsx(dr,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:419",className:"h-4 w-4"})]})}),s.jsx(B2e,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:423",bookingId:le.id,lang:e,onOpenModule:a})]},le.id)})}):s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:429",className:"flex flex-col items-center justify-center px-6 py-16 text-center",children:[s.jsx("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:430",className:"mb-4 flex h-14 w-14 items-center justify-center rounded-2xl bg-slate-100 text-slate-500",children:s.jsx(U4,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:430",className:"h-6 w-6"})}),s.jsx("h3",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:431",className:"font-semibold text-slate-900",children:Nt(e,"ÙØ§ ØªÙØ¬Ø¯ ØØ¬Ùزات Ù
Ø·Ø§Ø¨ÙØ©","No matching bookings")}),s.jsx("p",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:432",className:"mt-1 max-w-md text-sm text-muted-foreground",children:Nt(e,"ابدأ Ø¨ØØ¬Ø² Ø¬Ø¯ÙØ¯ Ù
بÙ٠عÙ٠اÙÙØ¬ÙØ© ÙØ§ÙخدÙ
Ø© ÙØ§ÙØªØ³Ø¹ÙØ± ÙØ§ÙØµÙØ§ØÙات اÙÙ
عتÙ
دة.","Start with a booking built around destination, service, pricing and approved access controls.")})]})})]}),s.jsx(Ba,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:438",open:i,onOpenChange:le=>{o(le),le||pe()},children:s.jsxs(Fa,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:439",className:"max-h-[92vh] max-w-5xl overflow-y-auto p-0",dir:r?"rtl":"ltr",children:[s.jsx(as,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:440",className:"border-b bg-slate-950 px-6 py-5 text-white",children:s.jsxs(Ua,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:441",className:"flex items-center gap-3 text-lg",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:442",className:"flex h-9 w-9 items-center justify-center rounded-xl bg-cyan-300/10 text-cyan-200",children:s.jsx(Hs,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:442",className:"h-4 w-4"})}),Nt(e,"Ù
ÙÙ ØØ¬Ø² Ø³ÙØ§ØÙ Ø¬Ø¯ÙØ¯","New tourism booking file")]})}),s.jsx("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:447",className:"border-b bg-slate-50 px-6 py-4",children:s.jsx("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:448",className:"grid grid-cols-4 gap-2",children:[[1,Nt(e,"Ø§ÙØ¹Ù
ÙÙ ÙØ§ÙÙØ¬ÙØ©","Customer & destination")],[2,Nt(e,"Ø§ÙØ±ØÙØ© ÙØ§ÙخدÙ
ات","Trip & services")],[3,Nt(e,"اÙÙ
Ø¹Ø§ÙØ¬Ø© اÙÙ
اÙÙØ©","Financial treatment")],[4,Nt(e,"Ø§ÙØªØ¯ÙÙÙ ÙØ§ÙØ¥ÙØ´Ø§Ø¡","Review & create")]].map(([le,ze])=>s.jsxs("button",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:455",type:"button",className:`rounded-xl border px-3 py-2 text-start text-xs transition-colors ${c===le?"border-primary bg-primary text-primary-foreground":Number(le)<c?"border-emerald-200 bg-emerald-50 text-emerald-800":"border-slate-200 bg-white text-slate-500"}`,onClick:()=>Number(le)<c&&l(Number(le)),children:[s.jsx("span",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:456",className:"mb-1 flex h-5 w-5 items-center justify-center rounded-full bg-black/10 font-mono text-[10px]",children:Number(le)<c?s.jsx(bc,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:456",className:"h-3 w-3"}):le}
1344),s.jsx("span",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:457",className:"hidden sm:block",children:ze})]},String(le)))})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:463",className:"min-h-[420px] space-y-5 px-6 py-6",children:[c===1&&s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:465",className:"grid gap-5 md:grid-cols-2",children:[s.jsx(ii,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:466",label:Nt(e,"عÙ
ÙÙ Ù
سجÙ","Existing customer"),children:s.jsxs(qn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:467",value:f.customerId?String(f.customerId):"none",onValueChange:Y,children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:468",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:468"})}),s.jsxs(Wn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:469",children:[s.jsx(At,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:469",value:"none",children:Nt(e,"عÙ
ÙÙ Ø¬Ø¯ÙØ¯ / ØºÙØ± Ù
سجÙ","New / unregistered customer")}),E?.map(le=>s.jsxs(At,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:469",value:String(le.id),children:[le.name," · ",le.code]},le.id))]})]})}),s.jsx(ii,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:472",label:Nt(e,"اسÙ
اÙÙ
Ø³Ø§ÙØ± Ø§ÙØ±Ø¦ÙسÙ","Lead passenger name"),required:!0,children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:473",value:f.leadPassengerName,onChange:le=>b({...f,leadPassengerName:le.target.value}),placeholder:Nt(e,"ÙÙ
ا ÙØ¸Ùر ÙÙ Ø¬ÙØ§Ø² Ø§ÙØ³Ùر","As shown on the passport")})}),s.jsx(ii,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:475",label:Nt(e,"ÙÙØ¹ Ø§ÙØØ¬Ø²","Booking type"),required:!0,children:s.jsxs(qn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:476",value:f.bookingType,onValueChange:le=>b({...f,bookingType:le}),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:477",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:477"})}),s.jsx(Wn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:478",children:[["package","Ø¨Ø±ÙØ§Ù
ج","Package"],["flight","Ø·ÙØ±Ø§Ù","Flight"],["hotel","ÙÙØ¯Ù","Hotel"],["transport","ÙÙÙ","Transport"],["tour","جÙÙØ©","Tour"],["visa","ØªØ£Ø´ÙØ±Ø©","Visa"],["umrah","عÙ
رة","Umrah"],["group","Ù
جÙ
ÙØ¹Ø©","Group"],["fit","Ù
Ø³Ø§ÙØ± ÙØ±Ø¯Ù","FIT"],["custom","Ù
خصص","Custom"]].map(([le,ze,pt])=>s.jsx(At,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:478",value:le,children:Nt(e,ze,pt)},le))})]})}),s.jsx(ii,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:481",label:Nt(e,"Ø§ÙØ¨Ø±ÙاÙ
ج Ø§ÙØ³ÙاØÙ","Tour program"),children:s.jsxs(qn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:482",value:f.packageId?String(f.packageId):"none",onValueChange:V,children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:483",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:483"})}),s.jsxs(Wn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:484",children:[s.jsx(At,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:484",value:"none",children:Nt(e,"بدÙÙ Ø¨Ø±ÙØ§Ù
ج","No program")}),T?.packages.map(le=>s.jsx(At,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:484",value:String(le.id),children:e==="ar"?le.titleAr:le.titleEn},le.id))]})]})}),s.jsx(ii,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:487",label:Nt(e,"Ø§ÙØ¯ÙÙØ©","Country"),required:!0,children:s.jsxs(qn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:488",value:f.countryId?String(f.countryId):"none",onValueChange:le=>b({...f,countryId:le==="none"?0:Number(le),cityId:0,arrivalAirportId:0,departureAirportId:0}),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:489",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:489",placeholder:Nt(e,"اختر Ø§ÙØ¯ÙÙØ©","Select country")})}
1344),s.jsxs(Wn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:490",children:[s.jsx(At,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:490",value:"none",children:Nt(e,"اختر Ø§ÙØ¯ÙÙØ©","Select country")}),O.map(le=>s.jsxs(At,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:490",value:String(le.id),children:[e==="ar"?le.nameAr:le.nameEn," · ",s.jsx("bdi",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:490",dir:"ltr",children:le.isoCode})]},le.id))]})]})}),s.jsx(ii,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:493",label:Nt(e,"اÙÙ
دÙÙØ©","City"),required:!0,children:s.jsxs(qn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:494",value:f.cityId?String(f.cityId):"none",onValueChange:le=>b({...f,cityId:le==="none"?0:Number(le),arrivalAirportId:0,departureAirportId:0}),disabled:!f.countryId,children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:495",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:495",placeholder:Nt(e,"اختر اÙÙ
دÙÙØ©","Select city")})}),s.jsxs(Wn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:496",children:[s.jsx(At,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:496",value:"none",children:Nt(e,"اختر اÙÙ
دÙÙØ©","Select city")}),W.map(le=>s.jsx(At,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:496",value:String(le.id),children:e==="ar"?le.nameAr:le.nameEn},le.id))]})]})})]}),c===2&&s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:503",className:"space-y-6",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:504",className:"grid gap-5 md:grid-cols-2",children:[s.jsx(ii,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:505",label:Nt(e,"ØªØ§Ø±ÙØ® بدء Ø§ÙØ³Ùر","Travel start date"),required:!0,children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:505",dir:"ltr",className:"text-left",type:"date",value:f.travelStartDate,onChange:le=>b({...f,travelStartDate:le.target.value})})}),s.jsx(ii,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:506",label:Nt(e,"ØªØ§Ø±ÙØ® Ø§ÙØ¹Ùدة","Travel end date"),required:!0,children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:506",dir:"ltr",className:"text-left",type:"date",min:f.travelStartDate,value:f.travelEnd
1344Date,onChange:le=>b({...f,travelEndDate:le.target.value})})}),s.jsx(ii,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:507",label:Nt(e,"Ù
طار اÙÙØµÙÙ","Arrival airport"),children:s.jsxs(qn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:507",value:f.arrivalAirportId?String(f.arrivalAirportId):"none",onValueChange:le=>b({...f,arrivalAirportId:le==="none"?0:Number(le)}),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:507",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:507"})}),s.jsxs(Wn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:507",children:[s.jsx(At,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:507",value:"none",children:Nt(e,"ØºÙØ± Ù
ØØ¯Ø¯","Not specified")}),J.map(le=>s.jsxs(At,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:507",value:String(le.id),children:[s.jsx("bdi",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:507",dir:"ltr",children:le.iataCode})," · ",e==="ar"?le.nameAr:le.nameEn]},le.id))]})]})}),s.jsx(ii,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:508",label:Nt(e,"Ù
طار اÙÙ
غادرة","Departure airport"),children:s.jsxs(qn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:508",value:f.departureAirportId?String(f.departureAirportId):"none",onValueChange:le=>b({...f,departureAirportId:le==="none"?0:Number(le)}),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:508",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:508"})}),s.jsxs(Wn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:508",children:[s.jsx(At,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:508",value:"none",children:Nt(e,"ØºÙØ± Ù
ØØ¯Ø¯","Not specified")}),J.map(le=>s.jsxs(At,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:508",value:String(le.id),children:[s.jsx("bdi",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:508",dir:"ltr",children:le.iataCode})," · ",e==="ar"?le.nameAr:le.nameEn]},le.id))]})]})})]}),s.jsx(F3,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:510"}),s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:511",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:512",className:"mb-4 flex items-center gap-2",children:[s.jsx(Im,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:512",className:"h-4 w-4 text-primary"}),s.jsx("h3",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:512",className:"font-semibold",children:Nt(e,"ØªÙØ²Ùع Ø§ÙØ±Ùاب ÙØ§ÙخدÙ
Ø© Ø§ÙØ±Ø¦ÙØ³ÙØ©","Passenger mix & primary service")})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:513",className:"grid gap-4 sm:grid-cols-3",children:[s.jsx(ii,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:514",label:Nt(e,"Ø¨Ø§ÙØºÙÙ","Adults"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:514",dir:"ltr",className:"text-left",type:"number",min:1,value:f.adults,onChange:le=>b({...f,adults:Math.max(1,ib(le.target.value))})})}),s.jsx(ii,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:515",label:Nt(e,"Ø£Ø·ÙØ§Ù","Children"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:515",dir:"ltr",className:"text-left",type:"number",min:0,value:f.children,onChange:le=>b({...f,children:Math.max(0,ib(le.target.value))})})}),s.jsx(ii,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:516",label:Nt(e,"Ø±Ø¶ÙØ¹","Infants"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:516",dir:"ltr",className:"text-left",type:"number",min:0,value:f.infants,onChange:le=>b({...f,infants:Math.max(0,ib(le.target.value))})})}),s.jsx(ii,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:517",label:Nt(e,"ÙØ¦Ø© Ø§ÙØ®Ø¯Ù
Ø©","Service category"),children:s.jsxs(qn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:517",value:f.serviceCategoryId?String(f.serviceCategoryId):"none",onValueChange:le=>b({...f,serviceCategoryId:le==="none"?0:Number(le)}
1344),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:517",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:517"})}),s.jsxs(Wn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:517",children:[s.jsx(At,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:517",value:"none",children:Nt(e,"Ø£Ø¶Ù ÙØ§ØÙاÙ","Add later")}),T?.services.map(le=>s.jsx(At,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:517",value:String(le.id),children:e==="ar"?le.nameAr:le.nameEn},le.id))]})]})}),s.jsx(ii,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:518",label:Nt(e,"اÙÙ
ÙØ±Ø¯","Supplier"),children:s.jsxs(qn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:518",value:f.supplierId?String(f.supplierId):"none",onValueChange:le=>b({...f,supplierId:le==="none"?0:Number(le)}),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:518",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:518"})}),s.jsxs(Wn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:518",children:[s.jsx(At,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:518",value:"none",children:Nt(e,"ÙØØ¯Ø¯ ÙØ§ØÙاÙ","Assign later")}),oe.map(le=>s.jsxs(At,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:518",value:String(le.id),children:[s.jsx("bdi",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:518",dir:"ltr",children:le.code})," · ",le.name]},le.id))]})]})}),s.jsx(ii,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:519",label:Nt(e,"اÙÙÙ
ÙØ©","Quantity"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:519",dir:"ltr",className:"text-left",type:"number",min:1,value:f.serviceQuantity,onChange:le=>b({...f,serviceQuantity:Math.max(1,ib(le.target.value))})})}),s.jsx("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:520",className:"sm:col-span-3",children:s.jsx(ii,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:520",label:Nt(e,"ÙØµÙ Ø§ÙØ®Ø¯Ù
Ø©","Service description"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:520",value:f.serviceDescription,onChange:le=>b({...f,serviceDescription:le.target.value}),placeholder:Nt(e,"Ù
ثاÙ: Ø¥ÙØ§Ù
Ø© 5 ÙÙØ§ÙÙ Ù
ع Ø¥ÙØ·Ø§Ø± ÙÙÙ٠خاص","Example: 5 nights with breakfast and private transfer")})})})]})]})]}),c===3&&s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:527",className:"space-y-5",children:[_?.viewCosts?s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:535",className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:[s.jsx(mg,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:536",label:Nt(e,"صاÙ٠تÙÙÙØ© اÙÙ
ÙØ±Ø¯","Net supplier cost"),value:f.netSupplierCost,onChange:le=>b({...f,netSupplierCost:le})}),s.jsx(mg,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:537",label:Nt(e,"Ø§ÙØ¶Ø±Ø§Ø¦Ø¨","Taxes"),value:f.taxAmount,onChange:le=>b({...f,taxAmount:le})}),s.jsx(mg,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:538",label:Nt(e,"Ø§ÙØ±Ø³ÙÙ
","Fees"),value:f.feeAmount,onChange:le=>b({...f,feeAmount:le})}),s.jsx(mg,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:539",label:Nt(e,"عÙ
ÙÙØ© Ù
ستØÙØ©","Earned commission"),value:f.commissionAmount,onChange:le=>b({...f,commissionAmount:le})}),s.jsx(mg,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:540",label:Nt(e,"Ø§ÙØ®ØµÙ
","Discount"),value:f.discountAmount,onChange:le=>b({...f,discountAmount:le})})]}):s.jsxs(xd,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:529",className:"border-cyan-200 bg-cyan-50 text-cyan-950",children:[s.jsx(gu,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:530",className:"h-4 w-4"}),s.jsx(bd,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:531",children:Nt(e,"ÙØµÙ اÙÙ
ÙØ§Ù
اÙÙ
اÙÙØ© Ù
ÙØ¹Ù","Financial segregation of duties is active")}
1344),s.jsx(vd,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:532",children:Nt(e,"ÙÙ
ÙÙÙ ØªØ«Ø¨ÙØª سعر Ø§ÙØ¨Ùع ÙÙØ·. ستÙÙÙ
اÙÙ
ØØ§Ø³Ø¨Ø© بإدخا٠تÙÙÙØ© اÙÙ
ÙØ±Ø¯ ÙØ§Ùضرائب ÙØ§ÙعÙ
ÙÙØ© ÙØØ³Ø§Ø¨ Ø§ÙØ±Ø¨Ø ÙØ§ØÙØ§ÙØ ÙÙÙ ØªØµÙ ÙØ°Ù اÙÙÙÙ
Ø¥ÙÙ ØØ³Ø§Ø¨Ù.","You may set the selling price only. Accounting will enter supplier cost, taxes and commission and calculate profit later; those fields are never sent to your account.")})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:543",className:"grid gap-4 sm:grid-cols-2",children:[_?.editSellingPrice&&s.jsx(mg,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:544",label:Nt(e,"سعر Ø§ÙØ¨Ùع ÙÙØ¹Ù
ÙÙ","Customer selling price"),value:f.sellingPrice,onChange:le=>b({...f,sellingPrice:le})}),s.jsx(ii,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:545",label:Nt(e,"Ø´Ø±ÙØ· Ø§ÙØ¯Ùع","Payment terms"),children:s.jsxs(qn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:545",value:f.paymentTerms,onValueChange:le=>b({...f,paymentTerms:le}),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:545",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:545"})}),s.jsxs(Wn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:545",children:[s.jsx(At,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:545",value:"prepaid",children:Nt(e,"Ø¯ÙØ¹ Ù
سبÙ","Prepaid")}),s.jsx(At,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:545",value:"deposit",children:Nt(e,"Ø¯ÙØ¹Ø© Ù
ÙØ¯Ù
Ø©","Deposit")}),s.jsx(At,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:545",value:"credit",children:Nt(e,"Ø¨ÙØ¹ آج٠â ÙØªØ·Ùب اعتÙ
اداÙ","Credit â approval required")}),s.jsx(At,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:545",value:"installments",children:Nt(e,"Ø£ÙØ³Ø§Ø·","Installments")}),s.jsx(At,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:545",value:"on_delivery",children:Nt(e,"Ø¹ÙØ¯ Ø§ÙØªØ³ÙÙÙ
","On delivery")})]})]})})]}),_?.viewProfit&&s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:548",className:"grid gap-3 rounded-2xl border border-slate-200 bg-slate-950 p-4 text-white sm:grid-cols-3",children:[s.jsx(_N,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:549",label:Nt(e,"إجÙ
اÙÙ Ø§ÙØªÙÙÙØ©","Total cost"),value:Ae(G.totalCost,f.currency)}),s.jsx(_N,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:550",label:Nt(e,"Ø§ÙØ±Ø¨Ø","Profit"),value:Ae(G.profit,f.currency)}),s.jsx(_N,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:551",label:Nt(e,"ÙØ§Ù
Ø´ Ø§ÙØ¨Ùع","Sales margin"),value:`${fe(G.margin)}%`,warning:G.margin>0&&G.margin<8})]}),(f.discountAmount>0||f.paymentTerms==="credit"||_?.viewProfit&&G.margin>0&&G.margin<8)&&s.jsxs(xd,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:555",className:"border-amber-200 bg-amber-50 text-amber-950",children:[s.jsx(fP,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:555",className:"h-4 w-4"}),s.jsx(bd,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:555",children:Nt(e,"Ø³ÙØªÙ
ÙØªØ Ø·ÙØ¨ اعتÙ
اد","An approval request will be opened")}),s.jsx(vd,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:555",children:Nt(e,"Ø§ÙØØ¬Ø² ÙÙ ÙÙØªÙ٠إÙÙ Ø§ÙØ¹Ø±Ø¶ Ø£Ù Ø§ÙØªØ£ÙÙØ¯ ÙØ¨Ù ÙØ±Ø§Ø± اÙÙ
سؤÙ٠اÙÙ
Ø®ÙÙ.","The booking cannot progress to offer or confirmation until an authorized manager decides.")})]})]}),c===4&&s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:561",className:"space-y-5",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:562",className:"grid gap-4 md:grid-cols-2",children:[s.jsx($y,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:563",icon:s.jsx(Dl,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:563",className:"h-4 w-4"}),title:Nt(e,"اÙÙ
Ø³Ø§ÙØ±","Passenger"),lines:[f.leadPassengerName,`${f.adults} ${Nt(e,"Ø¨Ø§ÙØº","adult")} · ${f.children} ${Nt(e,"Ø·ÙÙ","child")} · ${f.infants} ${Nt(e,"Ø±Ø¶ÙØ¹","infant")}`]}
1344),s.jsx($y,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:564",icon:s.jsx(mr,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:564",className:"h-4 w-4"}),title:Nt(e,"اÙÙØ¬ÙØ©","Destination"),lines:[e==="ar"?xe(f.countryId)?.nameAr:xe(f.countryId)?.nameEn,e==="ar"?ae(f.cityId)?.nameAr:ae(f.cityId)?.nameEn]}),s.jsx($y,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:565",icon:s.jsx(Xb,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:565",className:"h-4 w-4"}),title:Nt(e,"Ù
دة Ø§ÙØ³Ùر","Travel period"),lines:[f.travelStartDate,f.travelEndDate]}),s.jsx($y,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:566",icon:s.jsx(M0,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:566",className:"h-4 w-4"}),title:Nt(e,"اÙÙ
Ø¹Ø§ÙØ¬Ø© Ø§ÙØªØ¬Ø§Ø±ÙØ©","Commercial treatment"),lines:[Ae(f.sellingPrice,f.currency),`${Nt(e,"Ø´Ø±ÙØ· Ø§ÙØ¯Ùع:","Terms:")} ${Nt(e,UI[f.paymentTerms].ar,UI[f.paymentTerms].en)}`]})]}),s.jsx(ii,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:568",label:Nt(e,"Ù
ÙØ§ØØ¸Ø§Øª داخÙÙØ© ÙÙØØ¬Ø²","Internal booking notes"),children:s.jsx(es,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:568",rows:4,value:f.notes,onChange:le=>b({...f,notes:le.target.value}),placeholder:Nt(e,"تعÙÙÙ
ات Ø§ÙØªØ´ØºÙÙØ ØªÙØ¶ÙÙØ§Øª Ø§ÙØ¹Ù
ÙÙØ ÙÙØ§Ø· Ø§ÙØªØ¯ÙÙÙ...","Operational instructions, customer preferences, audit points...")})}),K.length>0&&s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:570",className:"overflow-hidden rounded-2xl border border-cyan-200 bg-cyan-50/60",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:571",className:"flex flex-col gap-2 border-b border-cyan-200 px-4 py-3 sm:flex-row sm:items-center sm:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:572",className:"flex items-center gap-2",children:[s.jsx(ji,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:573",className:"h-4 w-4 text-cyan-700"}),s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:574",children:[s.jsx("h3",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:575",className:"text-sm font-semibold text-cyan-950",children:Nt(e,"Ù
عاÙÙØ© Ø§ÙØØ¯Ø« اÙÙ
ØØ§Ø³Ø¨Ù Ø¹ÙØ¯ Ø§ÙØªØ£ÙÙØ¯","Accounting event preview on confirmation")}),s.jsx("p",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:576",className:"text-[11px] text-cyan-800",children:Nt(e,"Ù
Ø³ÙØ¯Ø© تعÙÙÙ
ÙØ© Ù
ØªÙØ§Ø²ÙØ©Ø ÙÙ ØªÙØ±ØÙÙ ÙØ¨Ù ربط Ø£Ø¯ÙØ§Ø± Ø§ÙØØ³Ø§Ø¨Ø§Øª بدÙÙÙ Ø§ÙØØ³Ø§Ø¨Ø§Øª ÙØ§Ø¹ØªÙ
اد اÙÙ
ØØ§Ø³Ø¨.","Balanced educational draft; it is not posted until account roles are mapped to the chart of accounts and approved by accounting.")})]})]}),s.jsx(Pn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:579",variant:"outline",className:"w-fit border-cyan-300 bg-white text-cyan-800",children:Nt(e,"ÙÙØ¯ Ù
Ø³ÙØ¯Ø©","Draft journal")})]}),s.jsx("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:581",className:"overflow-x-auto",children:s.jsxs("table",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:582",className:"w-full min-w-[520px] text-xs",children:[s.jsx("thead",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:583",className:"bg-white/70 text-slate-500",children:s.jsxs("tr",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:583",children:[s.jsx("th",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:583",className:"px-4 py-2 text-start",children:Nt(e,"Ø¯ÙØ± Ø§ÙØØ³Ø§Ø¨","Account role")}),s.jsx("th",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:583",className:"px-4 py-2 text-end",children:Nt(e,"Ù
دÙÙ","Debit")}),s.jsx("th",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:583",className:"px-4 py-2 text-end",children:Nt(e,"دائÙ","Credit")})]})}),s.jsx("tbody",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:584",children:K[0].lines.map(le=>
1344s.jsxs("tr",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:584",className:"border-t border-cyan-100",children:[s.jsx("td",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:584",className:"px-4 py-2.5 font-medium text-slate-800",children:Nt(e,HI[le.accountRole].ar,HI[le.accountRole].en)}),s.jsx("td",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:584",className:"px-4 py-2.5 text-end font-mono text-slate-700",dir:"auto",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:584",children:le.debit?Ae(le.debit,f.currency):"â"})}),s.jsx("td",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:584",className:"px-4 py-2.5 text-end font-mono text-slate-700",dir:"auto",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:584",children:le.credit?Ae(le.credit,f.currency):"â"})})]},`${le.accountRole}-${le.memoKey}`))}),s.jsx("tfoot",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:585",className:"border-t-2 border-cyan-200 bg-white/80 font-bold text-cyan-950",children:s.jsxs("tr",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:585",children:[s.jsx("td",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:585",className:"px-4 py-2.5",children:Nt(e,"Ø§ÙØ¥Ø¬Ù
اÙ٠اÙÙ
ØªÙØ§Ø²Ù","Balanced total")}),s.jsx("td",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:585",className:"px-4 py-2.5 text-end font-mono",dir:"auto",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:585",children:Ae(K[0].totalDebit,f.currency)})}),s.jsx("td",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:585",className:"px-4 py-2.5 text-end font-mono",dir:"auto",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:585",children:Ae(K[0].totalCredit,f.currency)})})]})})]})})]}),s.jsxs(xd,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:590",className:"border-emerald-200 bg-emerald-50 text-emerald-950",children:[s.jsx(sa,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:590",className:"h-4 w-4"}),s.jsx(bd,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:590",children:Nt(e,"Ø¬Ø§ÙØ² ÙÙØ¥Ùشاء Ù
ع سج٠تدÙÙÙ","Ready to create with audit trail")}),s.jsx(vd,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:590",children:Nt(e,"Ø³ÙØªÙ
تÙÙÙØ¯ رÙÙ
ØØ¬Ø² Ù
ØªØ³ÙØ³Ù ÙØªØ³Ø¬Ù٠اÙÙ
ÙØ´Ø¦ ÙØ§ÙØØ§ÙØ© Ø§ÙØ£ÙÙÙ. اÙÙÙÙ
اÙÙ
اÙÙØ© Ø³ØªØ¸ÙØ± ÙÙØ· ÙÙ
٠تسÙ
Ø ÙÙ Ù
صÙÙÙØ© Ø§ÙØµÙاØÙات.","A sequential booking number, creator and initial state will be recorded. Financial values remain visible only to staff allowed by the permission matrix.")})]})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:595",className:"flex items-center justify-between gap-3 border-t bg-slate-50 px-6 py-4",children:[s.jsx(Ie,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:596",variant:"ghost",onClick:()=>c===1?o(!1):l(c-1),children:c===1?Nt(e,"Ø¥ÙØºØ§Ø¡","Cancel"):Nt(e,"Ø§ÙØ³Ø§Ø¨Ù","Previous")}),c<4?s.jsxs(Ie,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:598",onClick:()=>l(c+1),disabled:!z,className:"gap-2",children:[Nt(e,"Ø§ÙØªØ§ÙÙ","Next"),r?s.jsx(_l,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:598",className:"h-4 w-4"}):s.jsx(dr,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:598",className:"h-4 w-4"})]}):s.jsxs(Ie,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:600",onClick:H,disabled:I.isPending,className:"gap-2 bg-emerald-600 hover:bg-emerald-700",children:[I.isPending?s.jsx(ft,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:601",className:"h-4 w-4 animate-spin"}):s.jsx(ns,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:601",className:"h-4 w-4"}),Nt(e,"اعتÙ
اد Ø¥ÙØ´Ø§Ø¡ Ø§ÙØØ¬Ø²","Create booking record")]})]})]})})]})}function zy({label:e,value:t,icon:n}){return s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:613",className:"rounded-2xl border border-white/10 bg-white/5 p-3 backdrop-blur-sm",children:[s.jsxs("div",{"data-loc":"client/src/components/
1344accounting/BookingsTab.tsx:613",className:"mb-2 flex items-center justify-between text-cyan-200",children:[n,s.jsx("span",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:613",className:"font-mono text-lg font-bold text-white",children:t})]}),s.jsx("p",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:613",className:"text-[11px] text-slate-300",children:e})]})}function SN({lang:e,icon:t,label:n,allowed:a}){return s.jsx(kn,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:617",className:`border shadow-sm ${a?"border-emerald-200 bg-emerald-50/60":"border-slate-200 bg-slate-50"}`,children:s.jsxs(Un,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:617",className:"flex items-center justify-between p-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:617",className:"flex items-center gap-3",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:617",className:`flex h-9 w-9 items-center justify-center rounded-xl ${a?"bg-emerald-100 text-emerald-700":"bg-slate-200 text-slate-500"}`,children:t}),s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:617",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:617",className:"text-xs text-muted-foreground",children:n}),s.jsx("p",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:617",className:`text-sm font-semibold ${a?"text-emerald-800":"text-slate-600"}`,children:a?Nt(e,"Ø¸Ø§ÙØ±","Visible"):Nt(e,"Ù
ØØ¬Ùب","Restricted")})]})]}),a?s.jsx(ns,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:617",className:"h-5 w-5 text-emerald-600"}):s.jsx(gu,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:617",className:"h-5 w-5 text-slate-400"})]})})}function ii({label:e,required:t,children:n}){return s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:621",className:"space-y-2",children:[s.jsxs(nt,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:621",className:"text-xs font-semibold text-slate-700",children:[e,t&&s.jsx("span",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:621",className:"ms-1 text-rose-500",children:"*"})]}),n]})}function mg({label:e,value:t,onChange:n}){return s.jsx(ii,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:625",label:e,children:s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:625",className:"relative",children:[s.jsx(Ee,{"data-loc":"client/src/components/accounting/BookingsTab.tsx:625",dir:"ltr",className:"pe-14 text-left font-mono",type:"number",min:0,value:t,onChange:a=>n(Math.max(0,ib(a.target.value)))}),s.jsx("span",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:625",className:"absolute end-3 top-1/2 -translate-y-1/2 text-[10px] font-bold text-muted-foreground",children:"JOD"})]})})}function VI({label:e,value:t,emphasis:n}){return s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:629",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:629",className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:e}),s.jsx("p",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:629",className:`mt-1 font-mono text-sm font-bold ${n?"text-emerald-700":"text-slate-900"}`,dir:"auto",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:629",children:t})})]})}function _N({label:e,value:t,warning:n}){return s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:633",className:`rounded-xl border p-3 ${n?"border-amber-400/50 bg-amber-400/10":"border-white/10 bg-white/5"}`,children:[s.jsx("p",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:633",className:"text-[10px] uppercase tracking-wider text-slate-400",children:e}),s.jsx("p",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:633",className:`mt-1 font-mono text-base font-bold ${n?"text-amber-300":"text-white"}`,dir:"auto",children:s.jsx("bdi",{"data-loc":"client/src/components/
1344accounting/BookingsTab.tsx:633",children:t})})]})}function $y({icon:e,title:t,lines:n}){return s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:637",className:"rounded-2xl border border-slate-200 bg-slate-50 p-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:637",className:"mb-3 flex items-center gap-2 text-primary",children:[e,s.jsx("h3",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:637",className:"text-sm font-semibold text-slate-900",children:t})]}),n.filter(Boolean).map((a,r)=>s.jsx("p",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:637",className:"text-sm leading-6 text-slate-600",dir:"auto",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/BookingsTab.tsx:637",children:a})},r))]})}const un=(e,t,n)=>e==="ar"?t:n,a0=(e,t)=>new Intl.NumberFormat(t==="ar"?"ar-JO":"en-JO",{style:"currency",currency:"JOD",minimumFractionDigits:2,maximumFractionDigits:2}).format(Number.isFinite(e)?e:0),zI=(e,t)=>new Intl.NumberFormat(t==="ar"?"ar-JO":"en-JO",{style:"percent",minimumFractionDigits:1,maximumFractionDigits:1}).format((Number.isFinite(e)?e:0)/100),U2e=(e,t)=>new Intl.NumberFormat(t==="ar"?"ar-JO":"en-JO").format(Number.isFinite(e)?e:0),fl=e=>Math.max(0,Number(e)||0),H2e={per_person:{ar:"ÙÙÙ Ù
Ø³Ø§ÙØ±",en:"Per traveller"},per_group:{ar:"ÙÙÙ Ù
جÙ
ÙØ¹Ø©",en:"Per group"},per_room:{ar:"ÙÙÙ ØºØ±ÙØ©",en:"Per room"},flat:{ar:"Ù
Ø¨ÙØº ثابت",en:"Flat amount"}},$I={draft:{ar:"Ù
Ø³ÙØ¯Ø©",en:"Draft",className:"bg-slate-500"},awaiting_approval:{ar:"Ø¨Ø§ÙØªØ¸Ø§Ø± Ø§ÙØ§Ø¹ØªÙ
اد",en:"Awaiting approval",className:"bg-amber-600"},confirmed:{ar:"Ù
عتÙ
د",en:"Confirmed",className:"bg-emerald-600"},rejected:{ar:"Ù
رÙÙØ¶",en:"Rejected",className:"bg-red-600"},archived:{ar:"Ù
ؤرشÙ",en:"Archived",className:"bg-slate-600"}};function V2e(e){return["hotel","accommodation"].includes(e)?"per_room":["transport","guide","tour","activity"].includes(e)?"per_group":["flight","visa","insurance","meal"].includes(e)?"per_person":"flat"}function z2e({lang:e}){const[t,n]=k.useState(""),[a,r]=k.useState(""),[i,o]=k.useState(""),[c,l]=k.useState(""),[d,m]=k.useState("custom"),[h,x]=k.useState(1),[f,b]=k.useState(0),[y,w]=k.useState(1),[T,A]=k.useState([]),[E,D]=k.useState(0),[S,R]=k.useState(0),[L,I]=k.useState(0),[F,_]=k.useState(0),[U,O]=k.useState(0),[W,J]=k.useState(""),[oe,G]=k.useState(""),K=Pe.accounting.tourism.referenceData.useQuery(),ee=Pe.accounting.costCalculations.list.useQuery(),pe=Pe.accounting.costCalculations.create.useMutation(),V=Pe.useUtils(),Y=K.data?.countries||[],z=K.data?.cities||[],H=K.data?.airports||[],ne=K.data?.services||[],te=Number(t)||0,me=Number(a)||0,fe=k.useMemo(()=>z.filter(at=>!te||at.countryId===te),[z,te]),Ae=k.useMemo(()=>H.filter(at=>(!te||at.countryId===te)&&(!me||at.cityId===me)),[H,te,me]);k.useEffect(()=>{if(T.length||!ne.length)return;const at=ne.filter(ct=>["flight","hotel","transport","visa","insurance","tour"].includes(ct.code));A((at.length?at:ne.slice(0,6)).map(ct=>({key:`${ct.code}-${ct.id}`,labelAr:ct.nameAr,labelEn:ct.nameEn,type:V2e(ct.code),quantity:ct.code==="hotel"?y:ct.code==="transport"||ct.code==="tour"?1:h+f,unitCost:0,totalCost:0})))},[ne,T.length,h,f,y]),k.useEffect(()=>{r(""),o("")},[t]),k.useEffect(()=>{o("")},[a]);const xe=h+f,ae=T.reduce((at,ct)=>at+ct.unitCost*ct.quantity,0),le=Math.max(0,ae+E+S-L),ze=U*xe,pt=Math.max(0,ze-F),xt=pt-le,be=pt>0?xt/pt*100:0,Tt=F>0||be<10,Xt=(at,ct)=>{A(Ct=>Ct.map((Ht,wn)=>wn===at?{...Ht,...ct,totalCost:fl(ct.unitCost??Ht.unitCost)*fl(ct.quantity??Ht.quantity)}:Ht))},Jt=()=>{A(at=>[...at,{key:`custom-${Date.now()}`,labelAr:"خدÙ
Ø© إضاÙÙØ©",labelEn:"Additional service",type:"flat",quantity:1,unitCost:0,totalCost:0}])},it=async()=>{if(G(""),!t||!a||!c.trim()||T.length===0){G(un(e,"Ø£ÙÙ
٠اÙÙØ¬ÙØ© ÙØ§ÙÙ
ÙØ³Ù
ÙØ£Ø¶Ù Ø¨ÙØ¯ تÙÙÙØ© ÙØ§ØØ¯Ø§Ù عÙÙ Ø§ÙØ£ÙÙ.","Complete the destination and season, and add at least one cost item."));return}try{const at=await pe.mutateAsync({category:d,destinationCountryId:Number(t),destinationCityId:Number(a),arrivalAirportId:i?Number(i):null,seasonName:c.trim(),adults:h,children:f,rooms:y,costItems:T.map(ct=>({...ct,totalCost:ct.unitCost*ct.quantity})),totalCost:le,taxAmount:E,feeAmount:S,commissionAmount:L,discountAmount:F,markupAmount:xt,baseCurrency:"JOD",exchangeRate:1,profitPerPerson:xe>0?xt/xe:0,totalProfit:xt,sellingPricePerPerson:U,totalSellingPrice:pt,marginPercent:be,currency:"JOD",status:"draft",notes:W||null});
1344await V.accounting.costCalculations.list.invalidate(),G(at?.requiresApproval?un(e,"ØÙÙØ¸ Ø§ÙØªØ³Ø¹Ùر ÙØ£Ùرس٠ÙÙØ§Ø¹ØªÙ
اد بسبب ÙØ¬Ùد خصÙ
Ø£Ù ÙØ§Ù
Ø´ Ø£ÙÙ Ù
Ù 10%.","Pricing saved and routed for approval because of a discount or margin below 10%."):un(e,"ØÙÙØ¸ Ø§ÙØªØ³Ø¹Ùر ÙØªØÙÙØª Ù
Ø¹Ø§Ø¯ÙØªÙ عÙÙ Ø§ÙØ®Ø§Ø¯Ù
.","Pricing saved and its formula was verified by the server."))}catch(at){G(at?.message||un(e,"تعذر ØÙظ Ø§ÙØªØ³Ø¹Ùر.","Unable to save pricing."))}};return K.isLoading?s.jsx("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:210",className:"flex items-center justify-center py-24",children:s.jsx(ft,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:210",className:"h-8 w-8 animate-spin text-primary"})}):s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:214",className:"space-y-6",dir:e==="ar"?"rtl":"ltr",children:[s.jsx(kn,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:215",className:"overflow-hidden border-primary/20 bg-[radial-gradient(circle_at_top_right,hsl(var(--primary)/0.18),transparent_48%)]",children:s.jsxs(Un,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:216",className:"grid gap-5 p-6 lg:grid-cols-[1fr_auto] lg:items-center",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:217",className:"flex items-start gap-4",children:[s.jsx("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:218",className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-2xl bg-primary text-primary-foreground shadow-lg shadow-primary/20",children:s.jsx(lh,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:218",className:"h-6 w-6"})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:219",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:220",className:"mb-2 flex flex-wrap gap-2",children:[s.jsx(Pn,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:220",variant:"secondary",children:un(e,"ØªØ³Ø¹ÙØ± Ø§ÙØ¨Ø±Ø§Ù
ج","Tour costing")}),s.jsx(Pn,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:220",variant:"outline",children:un(e,"Ù
ÙØªØÙÙ Ù
Ù٠خادÙ
ÙØ§Ù","Server-verified")})]}),s.jsx("h2",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:221",className:"font-display text-2xl font-bold",children:un(e,"Ù
ØØ·Ø© Ø§ÙØªØ³Ø¹Ùر ÙØ§ÙتدÙÙ٠اÙÙ
اÙÙ","Pricing & financial control desk")}),s.jsx("p",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:222",className:"mt-1 max-w-3xl text-sm leading-6 text-muted-foreground",children:un(e,"ÙÙÙÙ Ø§ÙØªÙÙÙØ© ØØ³Ø¨ اÙÙØ¬ÙØ© ÙØ§ÙÙ
ÙØ³Ù
ÙØ£Ø³Ø§Ø³ Ø§ÙØ§ØØªØ³Ø§Ø¨. ÙØ¹Ùد Ø§ÙØ®Ø§Ø¯Ù
ØØ³Ø§Ø¨ اÙÙ
جاÙ
ÙØ¹ ÙØ§ÙÙØ§Ù
Ø´ ÙÙØ§ ÙØ¹ØªÙ
د Ø£Ø±ÙØ§Ù
Ø§ÙØ±Ø¨Ø اÙÙ
Ø±Ø³ÙØ© Ù
٠اÙÙ
ØªØµÙØ.","Build cost by destination, season and charging basis. The server recalculates totals and margin rather than trusting profit figures from the browser.")})]})]}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:225",className:"h-11",onClick:it,disabled:pe.isPending,children:[pe.isPending?s.jsx(ft,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:225",className:"h-4 w-4 animate-spin"}):s.jsx(ef,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:225",className:"h-4 w-4"}),un(e,"ØÙظ Ø§ÙØªØ³Ø¹Ùر","Save pricing")]})]})}),oe&&s.jsx("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:229",className:"rounded-xl border border-primary/20 bg-primary/5 px-4 py-3 text-sm",children:oe}),s.jsxs(kn,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:231",children:[s.jsx(Xr,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:232",children:s.jsxs(Qr,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:232",className:"flex items-center gap-2 font-display",children:[s.jsx(mr,{"data-loc":"client/src/components/
1344accounting/CostCalculatorTab.tsx:232",className:"h-5 w-5 text-primary"}),un(e,"ÙØ·Ø§Ù Ø§ÙØªØ³Ø¹Ùر","Pricing scope")]})}),s.jsxs(Un,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:233",className:"grid gap-4 md:grid-cols-2 xl:grid-cols-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:234",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:234",children:un(e,"Ø§ÙØ¯ÙÙØ©","Country")}),s.jsxs(qn,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:234",value:t,onValueChange:n,children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:234",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:234",placeholder:un(e,"اختر Ø§ÙØ¯ÙÙØ©","Select country")})}),s.jsx(Wn,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:234",children:Y.map(at=>s.jsx(At,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:234",value:String(at.id),children:un(e,at.nameAr,at.nameEn)},at.id))})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:235",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:235",children:un(e,"اÙÙ
دÙÙØ©","City")}),s.jsxs(qn,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:235",value:a,onValueChange:r,disabled:!t,children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:235",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:235",placeholder:un(e,"اختر اÙÙ
دÙÙØ©","Select city")})}),s.jsx(Wn,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:235",children:fe.map(at=>s.jsx(At,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:235",value:String(at.id),children:un(e,at.nameAr,at.nameEn)},at.id))})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:236",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:236",children:un(e,"Ù
طار اÙÙØµÙÙ","Arrival airport")}),s.jsxs(qn,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:236",value:i,onValueChange:o,disabled:!a,children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:236",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:236",placeholder:un(e,"Ø§Ø®ØªÙØ§Ø±Ù","Optional")})}),s.jsx(Wn,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:236",children:Ae.map(at=>s.jsx(At,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:236",value:String(at.id),children:s.jsxs(s.Fragment,{children:[s.jsx("bdi",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:236",dir:"ltr",children:at.iataCode})," â ",un(e,at.nameAr,at.nameEn)]})},at.id))})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:237",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:237",children:un(e,"اÙÙ
ÙØ³Ù
Ø£Ù ÙØªØ±Ø© Ø§ÙØ¹Ùد","Season / contract period")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:237",value:c,onChange:at=>l(at.target.value),placeholder:un(e,"Ù
ثاÙ: صÙÙ 2026","Example: Summer 2026")})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:238",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:238",children:un(e,"ÙÙØ¹ اÙÙ
ÙÙ","File type")}),s.jsxs(qn,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:238",value:d,onValueChange:m,children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:238",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:238"})}),s.jsxs(Wn,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:238",children:[s.jsx(At,{"data-loc":"client/src/components/
1344accounting/CostCalculatorTab.tsx:238",value:"custom",children:un(e,"Ø¨Ø±ÙØ§Ù
ج Ù
خصص FIT","Custom FIT")}),s.jsx(At,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:238",value:"group",children:un(e,"Ù
جÙ
ÙØ¹Ø© Ø³ÙØ§ØÙØ©","Tour group")}),s.jsx(At,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:238",value:"umrah",children:un(e,"عÙ
رة","Umrah")}),s.jsx(At,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:238",value:"inbound",children:un(e,"Ø³ÙØ§ØØ© ÙØ§Ùدة","Inbound")}),s.jsx(At,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:238",value:"outbound",children:un(e,"Ø³ÙØ§ØØ© صادرة","Outbound")})]})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:239",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:239",children:un(e,"Ø§ÙØ¨Ø§ÙغÙÙ","Adults")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:239",dir:"ltr",className:"text-left",type:"number",min:1,value:h,onChange:at=>x(Math.max(1,fl(at.target.value)))})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:240",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:240",children:un(e,"Ø§ÙØ£Ø·ÙاÙ","Children")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:240",dir:"ltr",className:"text-left",type:"number",min:0,value:f,onChange:at=>b(fl(at.target.value))})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:241",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:241",children:un(e,"Ø§ÙØºØ±Ù","Rooms")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:241",dir:"ltr",className:"text-left",type:"number",min:1,value:y,onChange:at=>w(Math.max(1,fl(at.target.value)))})]})]})]}),s.jsxs(kn,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:245",children:[s.jsx(Xr,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:246",className:"border-b bg-muted/20",children:s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:246",className:"flex flex-wrap items-center justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:246",children:[s.jsxs(Qr,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:246",className:"flex items-center gap-2 font-display",children:[s.jsx(v3,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:246",className:"h-5 w-5 text-primary"}),un(e,"بÙÙØ¯ Ø§ÙØªÙÙÙØ©","Cost components")]}),s.jsx("p",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:246",className:"mt-1 text-sm text-muted-foreground",children:un(e,"ØØ¯Ùد أساس ÙÙ Ø¨ÙØ¯: ÙÙÙ
Ø³Ø§ÙØ± أ٠اÙÙ
جÙ
ÙØ¹Ø© Ø£Ù Ø§ÙØºØ±ÙØ© Ø£Ù Ù
Ø¨ÙØº ثابت.","Choose each charging basis: traveller, group, room or flat amount.")})]}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:246",size:"sm",variant:"outline",onClick:Jt,children:[s.jsx(oa,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:246",className:"h-4 w-4"}),un(e,"Ø¥Ø¶Ø§ÙØ© Ø¨ÙØ¯","Add item")]})]})}),s.jsx(Un,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:247",className:"p-0",children:s.jsx("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:248",className:"divide-y",children:T.map((at,ct)=>s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:250",className:"grid gap-3 p-4 lg:grid-cols-[1.4fr_1fr_0.65fr_0.8fr_0.8fr_auto] lg:items-end",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:251",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:251",children:un(e,"Ø§ÙØ®Ø¯Ù
Ø©","Service")}
1344),s.jsx(Ee,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:251",value:un(e,at.labelAr,at.labelEn),onChange:Ct=>Xt(ct,e==="ar"?{labelAr:Ct.target.value}:{labelEn:Ct.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:252",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:252",children:un(e,"أساس Ø§ÙØ§ØØªØ³Ø§Ø¨","Charging basis")}),s.jsxs(qn,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:252",value:at.type,onValueChange:Ct=>Xt(ct,{type:Ct}),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:252",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:252"})}),s.jsx(Wn,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:252",children:Object.entries(H2e).map(([Ct,Ht])=>s.jsx(At,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:252",value:Ct,children:un(e,Ht.ar,Ht.en)},Ct))})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:253",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:253",children:un(e,"اÙÙÙ
ÙØ©","Qty")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:253",dir:"ltr",className:"text-left",type:"number",min:0,value:at.quantity,onChange:Ct=>Xt(ct,{quantity:fl(Ct.target.value)})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:254",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:254",children:un(e,"تÙÙÙØ© اÙÙØØ¯Ø©","Unit cost")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:254",dir:"ltr",className:"text-left",type:"number",min:0,step:"0.01",value:at.unitCost,onChange:Ct=>Xt(ct,{unitCost:fl(Ct.target.value)})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:255",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:255",children:un(e,"Ø§ÙØ¥Ø¬Ù
اÙÙ","Total")}),s.jsx("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:255",className:"flex h-10 items-center rounded-md bg-muted px-3 font-bold tabular-nums",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:255",children:a0(at.unitCost*at.quantity,e)})})]}),s.jsx(Ie,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:256",size:"icon",variant:"ghost","aria-label":un(e,"ØØ°Ù Ø§ÙØ¨Ùد","Delete item"),onClick:()=>A(Ct=>Ct.filter((Ht,wn)=>wn!==ct)),children:s.jsx(ro,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:256",className:"h-4 w-4 text-destructive"})})]},at.key))})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:263",className:"grid gap-5 xl:grid-cols-[1fr_0.85fr]",children:[s.jsxs(kn,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:264",children:[s.jsx(Xr,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:265",children:s.jsxs(Qr,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:265",className:"flex items-center gap-2 font-display",children:[s.jsx(B4,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:265",className:"h-5 w-5 text-primary"}),un(e,"اÙÙ
Ø¹Ø§ÙØ¬Ø§Øª اÙÙ
اÙÙØ©","Financial treatments")]})}),s.jsxs(Un,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:266",className:"grid gap-4 sm:grid-cols-2",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:267",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:267",children:un(e,"ضرائب ØºÙØ± Ù
Ø´Ù
ÙÙØ© ÙÙ Ø§ÙØ¨ÙÙØ¯","Additional taxes")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:267",dir:"ltr",className:"text-left",type:"number",min:0,value:E,onChange:at=>D(fl(at.target.value))})]}
1344),s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:268",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:268",children:un(e,"رسÙÙ
خدÙ
Ø© أ٠إصدار","Service / issuance fees")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:268",dir:"ltr",className:"text-left",type:"number",min:0,value:S,onChange:at=>R(fl(at.target.value))})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:269",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:269",children:un(e,"عÙ
ÙÙØ© Ù
ÙØªØ³Ø¨Ø© تخÙÙØ¶ Ø§ÙØªÙÙÙØ©","Earned commission")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:269",dir:"ltr",className:"text-left",type:"number",min:0,value:L,onChange:at=>I(fl(at.target.value))})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:270",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:270",children:un(e,"خصÙ
عÙ٠إجÙ
اÙÙ Ø§ÙØ¨Ùع","Discount on total sale")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:270",dir:"ltr",className:"text-left",type:"number",min:0,value:F,onChange:at=>_(fl(at.target.value))})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:271",className:"space-y-2 sm:col-span-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:271",children:un(e,"سعر Ø§ÙØ¨Ùع ÙÙÙ Ù
Ø³Ø§ÙØ±","Selling price per traveller")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:271",dir:"ltr",className:"text-left",type:"number",min:0,value:U,onChange:at=>O(fl(at.target.value))})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:272",className:"space-y-2 sm:col-span-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:272",children:un(e,"Ù
ÙØ§ØØ¸Ø§Øª Ø§ÙØªØ³Ø¹Ùر","Pricing notes")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:272",value:W,onChange:at=>J(at.target.value),placeholder:un(e,"Ø´Ø±ÙØ· اÙÙ
ÙØ±Ø¯Ø ØµÙØ§ØÙØ© Ø§ÙØ¹Ø±Ø¶Ø Ø³ÙØ§Ø³Ø© Ø§ÙØ£Ø·ÙاÙ...","Supplier terms, offer validity, child policy...")})]})]})]}),s.jsxs(kn,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:276",className:"border-primary/20",children:[s.jsx(Xr,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:277",children:s.jsxs(Qr,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:277",className:"flex items-center gap-2 font-display",children:[s.jsx(iA,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:277",className:"h-5 w-5 text-primary"}),un(e,"ÙØªÙجة Ø§ÙØªØ¯ÙÙÙ","Control result")]})}),s.jsxs(Un,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:278",className:"space-y-3",children:[s.jsx(qy,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:279",icon:s.jsx(Cd,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:279",className:"h-4 w-4"}),label:un(e,"تÙÙÙØ© Ø§ÙØ®Ø¯Ù
ات","Component cost"),value:a0(ae,e)}),s.jsx(qy,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:280",icon:s.jsx(v3,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:280",className:"h-4 w-4"}),label:un(e,"Ø§ÙØªÙÙÙØ© اÙÙØ¹ÙÙØ© بعد اÙÙ
Ø¹Ø§ÙØ¬Ø§Øª","Effective cost after treatments"),value:a0(le,e),strong:!0}),s.jsx(qy,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:281",icon:s.jsx(Dl,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:281",className:"h-4 w-4"}),label:un(e,"إجÙ
اÙÙ Ø§ÙØ¨Ùع بعد Ø§ÙØ®ØµÙ
","Net sale after discount"),value:a0(pt,e)}),s.jsx(qy,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:282",icon:s.jsx(xie,{"data-loc":"client/src/components/
1344accounting/CostCalculatorTab.tsx:282",className:"h-4 w-4"}),label:un(e,"Ø§ÙØ±Ø¨Ø ÙØ§ÙÙØ§Ù
Ø´","Profit & margin"),value:`${a0(xt,e)} · ${zI(be,e)}`,strong:!0,tone:xt>=0?"positive":"negative"}),s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:283",className:`mt-4 flex items-start gap-3 rounded-xl border p-4 ${Tt?"border-amber-300/50 bg-amber-50 text-amber-950 dark:bg-amber-950/20 dark:text-amber-100":"border-emerald-300/50 bg-emerald-50 text-emerald-950 dark:bg-emerald-950/20 dark:text-emerald-100"}`,children:[Tt?s.jsx(zi,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:284",className:"mt-0.5 h-5 w-5 shrink-0"}):s.jsx(sa,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:284",className:"mt-0.5 h-5 w-5 shrink-0"}),s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:285",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:285",className:"font-semibold",children:Tt?un(e,"ÙØªØ·Ùب اعتÙ
اداÙ","Approval required"):un(e,"ضÙ
Ù Ø§ÙØ³Ùاسة","Within policy")}),s.jsx("p",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:285",className:"mt-1 text-xs leading-5",children:Tt?un(e,"Ø§ÙØ®ØµÙ
أ٠اÙÙØ§Ù
Ø´ دÙÙ 10% ÙÙØ¬ÙÙ Ø§ÙØªØ³Ø¹Ùر تÙÙØ§Ø¦Ùا٠ÙÙ
سار makerâchecker.","Discount or margin below 10% automatically routes pricing through makerâchecker approval."):un(e,"ÙØ§ ÙÙØ¬Ø¯ خصÙ
ÙØ§ÙÙØ§Ù
Ø´ 10% Ø£Ù Ø£ÙØ«Ø±.","No discount and margin is at least 10%.")})]})]})]})]})]}),s.jsxs(kn,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:291",children:[s.jsx(Xr,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:292",children:s.jsxs(Qr,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:292",className:"flex items-center gap-2 font-display",children:[s.jsx(_d,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:292",className:"h-5 w-5 text-primary"}),un(e,"Ø³Ø¬Ù Ø§ÙØªØ³Ø¹Ùرات","Pricing register")]})}),s.jsx(Un,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:293",children:ee.isLoading?s.jsx(ft,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:294",className:"mx-auto h-6 w-6 animate-spin text-primary"}):ee.data?.length?s.jsx("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:295",className:"grid gap-3 lg:grid-cols-2",children:ee.data.slice(0,8).map(at=>{const ct=$I[at.status]||$I.draft;return s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:298",className:"rounded-2xl border bg-card p-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:298",className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:298",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:298",className:"font-semibold",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:298",children:at.calcNumber})}),s.jsxs("p",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:298",className:"mt-1 text-xs text-muted-foreground",dir:"auto",children:[s.jsx("bdi",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:298",children:at.seasonName||un(e,"دÙÙ Ù
ÙØ³Ù
","No season")})," · ",s.jsx("bdi",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:298",children:U2e(at.adults+at.children,e)})," ",un(e,"Ù
Ø³Ø§ÙØ±","travellers")]})]}),s.jsx(Pn,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:298",className:ct.className,children:un(e,ct.ar,ct.en)})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:298",className:"mt-4 grid grid-cols-3 gap-2 text-center",children:[s.jsx(PN,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:298",label:un(e,"Ø§ÙØªÙÙÙØ©","Cost"),value:a0(at.totalCost,e)}
1344),s.jsx(PN,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:298",label:un(e,"Ø§ÙØ¨Ùع","Sale"),value:a0(at.totalSellingPrice,e)}),s.jsx(PN,{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:298",label:un(e,"اÙÙØ§Ù
Ø´","Margin"),value:zI(Number(at.marginPercent||0),e)})]})]},at.id)})}):s.jsx("p",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:301",className:"py-8 text-center text-sm text-muted-foreground",children:un(e,"ÙÙ
ØªÙØÙØ¸ ØªØ³Ø¹ÙØ±Ø§Øª بعد.","No pricing records saved yet.")})})]})]})}function qy({icon:e,label:t,value:n,strong:a,tone:r}){return s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:309",className:"flex items-center justify-between gap-3 rounded-xl bg-muted/40 px-4 py-3",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:309",className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e,s.jsx("span",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:309",children:t})]}),s.jsx("span",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:309",className:`${a?"font-bold":"font-semibold"} tabular-nums ${r==="positive"?"text-emerald-600":r==="negative"?"text-destructive":"text-foreground"}`,dir:"auto",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:309",children:n})})]})}function PN({label:e,value:t}){return s.jsxs("div",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:313",className:"rounded-xl bg-muted/50 p-2",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:313",className:"text-[11px] text-muted-foreground",children:e}),s.jsx("p",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:313",className:"mt-1 text-sm font-bold tabular-nums",dir:"auto",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/CostCalculatorTab.tsx:313",children:t})})]})}const Rr=(e,t,n)=>e==="ar"?t:n,qI={individual:{ar:"ÙØ±Ø¯",en:"Individual"},company:{ar:"Ø´Ø±ÙØ©",en:"Company"}};function $2e({lang:e}){const t=Pe.useUtils(),{data:n,isLoading:a}=Pe.accounting.customers.list.useQuery(),[r,i]=k.useState(!1),[o,c]=k.useState({code:"",name:"",type:"individual",phone:"",email:"",address:"",taxId:"",currency:"JOD",creditLimit:0}),l=Pe.accounting.customers.create.useMutation({onSuccess:()=>{t.accounting.customers.list.invalidate(),Le.success(Rr(e,"تÙ
Ø¥ÙØ´Ø§Ø¡ Ø§ÙØ¹Ù
ÙÙ","Customer created")),i(!1),c({code:"",name:"",type:"individual",phone:"",email:"",address:"",taxId:"",currency:"JOD",creditLimit:0})},onError:d=>Le.error(d.message)});return s.jsxs("div",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:30",className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:31",className:"flex items-center justify-between",children:[s.jsx("h3",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:32",className:"font-display text-lg font-bold",children:Rr(e,"Ø§ÙØ¹Ù
ÙØ§Ø¡","Customers")}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/CustomersTab.tsx:33",size:"sm",onClick:()=>i(!0),children:[s.jsx(oa,{"data-loc":"client/src/components/accounting/CustomersTab.tsx:33",className:"h-4 w-4"}),Rr(e,"عÙ
ÙÙ Ø¬Ø¯ÙØ¯","New Customer")]})]}),a?s.jsx("div",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:35",className:"flex justify-center py-12",children:s.jsx(ft,{"data-loc":"client/src/components/accounting/CustomersTab.tsx:35",className:"w-6 h-6 animate-spin text-primary"})}):n?.length?s.jsx("div",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:38",className:"overflow-x-auto rounded-lg border border-border",children:s.jsxs("table",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:39",className:"w-full text-sm",children:[s.jsx("thead",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:40",className:"bg-muted/50",children:s.jsxs("tr",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:40",className:"text-start",children:[s.jsx("th",{"data-loc":"client/src/components/
1344accounting/CustomersTab.tsx:41",className:"px-4 py-3 font-medium",children:Rr(e,"Ø§ÙØ±Ù
ز","Code")}),s.jsx("th",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:42",className:"px-4 py-3 font-medium",children:Rr(e,"Ø§ÙØ§Ø³Ù
","Name")}),s.jsx("th",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:43",className:"px-4 py-3 font-medium",children:Rr(e,"اÙÙÙØ¹","Type")}),s.jsx("th",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:44",className:"px-4 py-3 font-medium",children:Rr(e,"اÙÙØ§ØªÙ","Phone")}),s.jsx("th",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:45",className:"px-4 py-3 font-medium",children:Rr(e,"Ø§ÙØ¨Ø±Ùد","Email")})]})}),s.jsx("tbody",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:47",children:n.map(d=>s.jsxs("tr",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:49",className:"border-t border-border hover:bg-muted/30",children:[s.jsx("td",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:50",className:"px-4 py-3 font-mono text-xs",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:50",children:d.code})}),s.jsx("td",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:51",className:"px-4 py-3 font-medium",children:d.name}),s.jsx("td",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:52",className:"px-4 py-3",children:Rr(e,qI[d.type]?.ar||d.type,qI[d.type]?.en||d.type)}),s.jsx("td",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:53",className:"px-4 py-3 text-muted-foreground",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:53",children:d.phone||"â"})}),s.jsx("td",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:54",className:"px-4 py-3 text-muted-foreground",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:54",children:d.email||"â"})})]},d.id))})]})}):s.jsx(kn,{"data-loc":"client/src/components/accounting/CustomersTab.tsx:36",children:s.jsxs(Un,{"data-loc":"client/src/components/accounting/CustomersTab.tsx:36",className:"py-12 text-center text-muted-foreground",children:[s.jsx(Dl,{"data-loc":"client/src/components/accounting/CustomersTab.tsx:36",className:"w-10 h-10 mx-auto mb-3 opacity-40"}),Rr(e,"ÙØ§ ÙÙØ¬Ø¯ عÙ
ÙØ§Ø¡","No customers yet")]})}),s.jsx(Ba,{"data-loc":"client/src/components/accounting/CustomersTab.tsx:61",open:r,onOpenChange:i,children:s.jsxs(Fa,{"data-loc":"client/src/components/accounting/CustomersTab.tsx:62",children:[s.jsx(as,{"data-loc":"client/src/components/accounting/CustomersTab.tsx:63",children:s.jsx(Ua,{"data-loc":"client/src/components/accounting/CustomersTab.tsx:63",children:Rr(e,"عÙ
ÙÙ Ø¬Ø¯ÙØ¯","New Customer")})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:64",className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:65",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/CustomersTab.tsx:65",children:Rr(e,"Ø§ÙØ±Ù
ز","Code")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/CustomersTab.tsx:65",dir:"ltr",className:"text-left",value:o.code,onChange:d=>c({...o,code:d.target.value}),placeholder:"CUST-0001"})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:66",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/CustomersTab.tsx:66",children:Rr(e,"Ø§ÙØ§Ø³Ù
","Name")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/CustomersTab.tsx:66",value:o.name,onChange:d=>c({...o,name:d.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:67",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/CustomersTab.tsx:67",children:Rr(e,"اÙÙÙØ¹","Type")}),s.jsxs("select",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:67",className:"w-full h-9 rounded-md border border-input bg-background px-3 text-sm",value:o.type,onChange:d=>c({...o,type:d.target.value}
1344),children:[s.jsx("option",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:67",value:"individual",children:Rr(e,"ÙØ±Ø¯","Individual")}),s.jsx("option",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:67",value:"company",children:Rr(e,"Ø´Ø±ÙØ©","Company")})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:68",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/CustomersTab.tsx:68",children:Rr(e,"اÙÙØ§ØªÙ","Phone")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/CustomersTab.tsx:68",dir:"ltr",className:"text-left",inputMode:"tel",value:o.phone,onChange:d=>c({...o,phone:d.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:69",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/CustomersTab.tsx:69",children:Rr(e,"Ø§ÙØ¨Ø±Ùد","Email")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/CustomersTab.tsx:69",dir:"ltr",className:"text-left",type:"email",value:o.email,onChange:d=>c({...o,email:d.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:70",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/CustomersTab.tsx:70",children:Rr(e,"Ø§ÙØ±ÙÙ
Ø§ÙØ¶Ø±ÙبÙ","Tax ID")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/CustomersTab.tsx:70",dir:"ltr",className:"text-left",value:o.taxId,onChange:d=>c({...o,taxId:d.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/CustomersTab.tsx:71",className:"col-span-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/CustomersTab.tsx:71",children:Rr(e,"Ø§ÙØ¹ÙÙØ§Ù","Address")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/CustomersTab.tsx:71",value:o.address,onChange:d=>c({...o,address:d.target.value})})]})]}),s.jsxs(ei,{"data-loc":"client/src/components/accounting/CustomersTab.tsx:73",children:[s.jsx(Ie,{"data-loc":"client/src/components/accounting/CustomersTab.tsx:74",variant:"outline",onClick:()=>i(!1),children:Rr(e,"Ø¥ÙØºØ§Ø¡","Cancel")}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/CustomersTab.tsx:75",onClick:()=>l.mutate({...o,phone:o.phone||null,email:o.email||null,address:o.address||null,taxId:o.taxId||null}),disabled:l.isPending,children:[l.isPending&&s.jsx(ft,{"data-loc":"client/src/components/accounting/CustomersTab.tsx:75",className:"h-4 w-4 animate-spin"}),Rr(e,"Ø¥ÙØ´Ø§Ø¡","Create")]})]})]})})]})}const Rn=(e,t,n)=>e==="ar"?t:n,Gy={admin:{ar:"Ù
Ø¯ÙØ± اÙÙØ¸Ø§Ù
",en:"System Admin",color:"default"},accountant:{ar:"اÙÙ
ØØ§Ø³Ø¨Ø© ÙØ§ÙتدÙÙÙ",en:"Accounting & Audit",color:"secondary"},booking_agent:{ar:"Ø§ÙØØ¬ÙØ²Ø§Øª ÙØ§ÙعÙ
ÙÙØ§Øª",en:"Booking & Operations",color:"outline"},agent:{ar:"خدÙ
ات Ø§ÙØªØ£Ø´Ùرات",en:"Visa Services",color:"outline"}},Yq=[{key:"create",property:"createBooking",moduleKey:"bookings",action:"create",ar:"Ø¥ÙØ´Ø§Ø¡ Ø§ÙØØ¬Ø²",en:"Create bookings",hintAr:"ÙØªØ Ù
ÙÙ ØØ¬Ø² Ø¬Ø¯ÙØ¯ ÙØ¥Ø¯Ø®Ø§Ù Ø¨ÙØ§Ùات اÙÙ
Ø³Ø§ÙØ±",hintEn:"Open a new booking record and enter traveller data"},{key:"selling_price",property:"viewSellingPrice",moduleKey:"bookings",action:"view",ar:"عرض سعر Ø§ÙØ¨Ùع",en:"View selling price",hintAr:"Ø§ÙØ³Ø¹Ø± Ø§ÙØ°Ù ÙØ¹Ø±Ø¶ ÙÙØ¹Ù
ÙÙ",hintEn:"Customer-facing selling price"},{key:"edit_selling_price",property:"editSellingPrice",moduleKey:"bookings",action:"edit",ar:"تعدÙ٠سعر Ø§ÙØ¨Ùع",en:"Edit selling price",hintAr:"تغÙÙØ± Ø§ÙØ¹Ø±Ø¶ ÙØ¨Ù Ø§ÙØ¥Ø±Ø³Ø§Ù Ø£Ù Ø§ÙØªØ£ÙÙØ¯",hintEn:"Change the offer before sending or confirmation"},{key:"cost",property:"viewCosts",moduleKey:"bookings",action:"view",ar:"عرض Ø§ÙØªÙÙÙØ©",en:"View cost",hintAr:"صاÙ٠اÙÙ
ÙØ±Ø¯ ÙØ§Ùضرائب ÙØ§ÙرسÙÙ
ÙØ§ÙعÙ
ÙÙØ§Øª",hintEn:"Supplier net, taxes, fees and commissions",sensitive:!0},{key:"edit_cost",property:"editCosts",moduleKey:"bookings",action:"edit",ar:"تسجÙ٠أ٠تعدÙÙ Ø§ÙØªÙÙÙØ©",en:"Edit cost",hintAr:"Ù
ØØ§Ø³Ø¨Ù: إثبات تÙÙÙØ© اÙÙ
ÙØ±Ø¯ ÙØ¹ÙØ§ØµØ±ÙØ§",hintEn:"Accounting: record supplier cost components",sensitive:!0},{key:"profit",property:"viewProfit",moduleKey:"bookings",action:"view",ar:"عرض Ø§ÙØ±Ø¨Ø ÙØ§ÙÙØ§Ù
Ø´",en:"View profit & margin",hintAr:"Ø§ÙØ±Ø¨Ø اÙÙØ¹ÙÙ ÙÙØ³Ø¨Ø© اÙÙØ§Ù
Ø´ ÙØ§ÙخصÙ
",hintEn:"Actual profit, margin and discount",sensitive:!0},{key:"approve",property:"approveExceptions",moduleKey:"bookings",action:"approve",ar:"اعتÙ
اد Ø§ÙØ§Ø³ØªØ«Ùاءات",en:"Approve exceptions",hintAr:"خصÙ
Ø£Ù ÙØ§Ù
Ø´ Ù
ÙØ®Ùض Ø£Ù Ø¥ÙØºØ§Ø¡ أ٠استرداد",hintEn:"Discount, low margin, cancellation or refund",sensitive:!0},{key:"financial_close",property:"financiallyClose",moduleKey:"bookings",action:"post",ar:"Ø§ÙØ¥ØºÙا٠اÙÙ
اÙÙ",en:"Financial close",hintAr:"Ù
ÙØ¹ Ø§ÙØªØ¹Ø¯Ù٠بعد اÙÙ
Ø·Ø§Ø¨ÙØ© ÙØ§ÙتسÙÙØ©",hintEn:"Lock after reconciliation and settlement",sensitive:!0},{key:"permissions",property:"managePermissions",moduleKey:"bookings",action:"edit",ar:"إدارة Ø§ÙØµÙاØÙات",en:"Manage permissions",hintAr:"Ù
ÙØ Ø£Ù Ù
ÙØ¹ ÙØµÙ٠اÙÙ
ÙØ¸ÙÙÙ",hintEn:"Grant or revoke employee access",
1344sensitive:!0}],q2e=[{key:"ticket_price",property:"editTicketPrice",moduleKey:"pricing",action:"edit",ar:"تعدÙ٠سعر Ø§ÙØªØ°Ùرة",en:"Edit ticket price",hintAr:"تعدÙÙ Ù
Ø³ÙØ¯Ø© ØªØ°ÙØ±Ø© اÙÙ
سار ÙÙØ·Ø بÙÙÙ
ا ÙØ¨ÙÙ Ø§ÙØªÙعÙÙ ÙÙØ¥Ø¯Ø§Ø±Ø©",hintEn:"Edit a route-ticket draft only; activation remains admin-only",sensitive:!0},{key:"exchange_rate",property:"editExchangeRate",moduleKey:"pricing",action:"edit",ar:"تعدÙ٠سعر Ø§ÙØµØ±Ù",en:"Edit exchange rate",hintAr:"تعدÙÙ Ù
Ø³ÙØ¯Ø© سعر صر٠Ù
ÙØ«Ù ÙÙØ·",hintEn:"Edit a documented exchange-rate draft only",sensitive:!0},{key:"trabzon_profit",property:"editTrabzonProfit",moduleKey:"pricing",action:"edit",ar:"Ø±Ø¨Ø Ø·Ø±Ø§Ø¨Ø²ÙÙ",en:"Trabzon profit",hintAr:"تعدÙÙ Ø³ÙØ§Ø³Ø© Ø±Ø¨Ø Ø·Ø±Ø§Ø¨Ø²Ù٠اÙÙ
Ø³ÙØ¯Ø©",hintEn:"Edit Trabzon's draft profit policy",sensitive:!0},{key:"antalya_profit",property:"editAntalyaProfit",moduleKey:"pricing",action:"edit",ar:"Ø±Ø¨Ø Ø£ÙØ·Ø§ÙÙØ§",en:"Antalya profit",hintAr:"تعدÙÙ Ø³ÙØ§Ø³Ø© Ø±Ø¨Ø Ø£ÙØ·Ø§ÙÙØ§ اÙÙ
Ø³ÙØ¯Ø©",hintEn:"Edit Antalya's draft profit policy",sensitive:!0},{key:"package_price",property:"editPackagePrice",moduleKey:"pricing",action:"edit",ar:"سعر Ø§ÙØ¨Ùج",en:"Package price",hintAr:"تعدÙÙ Ù
Ø³ÙØ¯Ø© Ø§ÙØ³Ø¹Ø± اÙÙ
ÙØ³Ù
Ù ÙÙØ·",hintEn:"Edit a seasonal-price draft only",sensitive:!0}],DN=[...Yq,...q2e];function G2e({lang:e}){const[t,n]=k.useState(!1),[a,r]=k.useState(null),[i,o]=k.useState(null),[c,l]=k.useState(null),[d,m]=k.useState({fieldKey:"cost",allowed:!1,reason:"",expiresAt:""}),[h,x]=k.useState(""),[f,b]=k.useState({email:"",password:"",name:"",consoleRole:"booking_agent",region:"",phone:""}),y=Pe.accounting.employees.list.useQuery(),w=Pe.accounting.tourism.access.matrix.useQuery(),T=y.data,A=w.data,E=Pe.accounting.employees.create.useMutation(),D=Pe.accounting.employees.update.useMutation(),S=Pe.accounting.employees.delete.useMutation(),R=Pe.accounting.tourism.access.setRolePermission.useMutation(),L=Pe.accounting.tourism.access.setOverride.useMutation(),I=Pe.useUtils(),F=k.useMemo(()=>{const K=A?.roles||[];return K.find(ee=>ee.id===i)||K.find(ee=>ee.code==="booking_agent")||K[0]},[A?.roles,i]),_=()=>{b({email:"",password:"",name:"",consoleRole:"booking_agent",region:"",phone:""}),r(null),n(!1)},U=async()=>{await Promise.all([I.accounting.employees.list.invalidate(),I.accounting.tourism.access.matrix.invalidate()])},O=async()=>{x("");try{a?await D.mutateAsync({id:a.id,name:f.name||void 0,consoleRole:f.consoleRole,region:f.region||null,phone:f.phone||null,...f.password?{password:f.password}:{}}):await E.mutateAsync({email:f.email,password:f.password,name:f.name,consoleRole:f.consoleRole,region:f.region||null,phone:f.phone||null}),await U(),x(Rn(e,"تÙ
ØÙظ Ù
Ù٠اÙÙ
ÙØ¸Ù Ø¨ÙØ¬Ø§Ø.","Employee profile saved successfully.")),_()}catch(K){x(K?.message||Rn(e,"تعذر ØÙظ اÙÙ
ÙØ¸Ù.","Unable to save employee."))}},W=async K=>{confirm(Rn(e,"ÙÙ Ø£ÙØª Ù
ØªØ£ÙØ¯ Ù
Ù ØØ°Ù ÙØ°Ø§ اÙÙ
ÙØ¸ÙØ","Are you sure you want to delete this employee?"))&&(await S.mutateAsync({id:K}),await U())},J=K=>{r(K),b({email:K.email,password:"",name:K.name||"",consoleRole:K.consoleRole,region:K.region||"",phone:K.phone||""}),n(!0)},oe=async(K,ee)=>{!F||F.code==="admin"||(await R.mutateAsync({roleDefinitionId:F.id,moduleKey:K.moduleKey,fieldKey:K.key,action:K.action,allowed:ee}),await I.accounting.tourism.access.matrix.invalidate(),x(Rn(e,"تÙ
ØªØØ¯ÙØ« Ø³ÙØ§Ø³Ø© Ø§ÙØ¯Ùر. تسر٠عÙ٠جÙ
ÙØ¹ Ù
ÙØ¸ÙÙ ÙØ°Ø§ اÙÙÙØ¹.","Role policy updated for all employees in this role.")))},G=async()=>{if(!c||d.reason.trim().length<3)return;const K=DN.find(ee=>ee.key===d.fieldKey);await L.mutateAsync({adminUserId:c.id,moduleKey:K.moduleKey,fieldKey:d.fieldKey,action:K.action,allowed:d.allowed,reason:d.reason.trim(),expiresAt:d.expiresAt?new Date(`${d.expiresAt}T23:59:59`):null}),await I.accounting.tourism.access.matrix.invalidate(),x(Rn(e,"تÙ
تسجÙÙ Ø§ÙØ§Ø³ØªØ«Ùاء اÙÙØ±Ø¯Ù Ù
ع Ø§ÙØ³Ø¨Ø¨ ÙÙ Ø³Ø¬Ù Ø§ÙØµÙاØÙات.","Individual override recorded with its reason in the access log.")),l(null),m({fieldKey:"cost",allowed:!1,reason:"",expiresAt:""})};return y.isLoading||w.isLoading?s.jsx("div",{"data-loc":"client/src/components/
1344accounting/EmployeesTab.tsx:193",className:"flex items-center justify-center py-20",children:s.jsx(ft,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:193",className:"h-8 w-8 animate-spin text-primary"})}):s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:197",className:"space-y-6",dir:e==="ar"?"rtl":"ltr",children:[s.jsx(kn,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:198",className:"overflow-hidden border-primary/20 bg-[linear-gradient(135deg,hsl(var(--primary)/0.13),transparent_58%)]",children:s.jsxs(Un,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:199",className:"grid gap-5 p-6 lg:grid-cols-[1fr_auto] lg:items-center",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:200",className:"flex items-start gap-4",children:[s.jsx("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:201",className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-2xl bg-primary text-primary-foreground shadow-lg shadow-primary/20",children:s.jsx(sa,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:202",className:"h-6 w-6"})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:204",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:205",className:"mb-2 flex flex-wrap items-center gap-2",children:[s.jsx(Pn,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:206",variant:"secondary",children:"RBAC + Field Security"}),s.jsx(Pn,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:207",variant:"outline",children:"MakerâChecker"})]}),s.jsx("h2",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:209",className:"font-display text-2xl font-bold text-foreground",children:Rn(e,"Ù
Ø±ÙØ² اÙÙ
ÙØ¸ÙÙÙ ÙÙØµÙ Ø§ÙØµÙاØÙات","Employees & segregation of duties")}),s.jsx("p",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:210",className:"mt-1 max-w-3xl text-sm leading-6 text-muted-foreground",children:Rn(e,"Ø§ÙØµÙاØÙØ© ÙÙØ³Øª Ø¥Ø®ÙØ§Ø¡Ù Ø¨ØµØ±ÙØ§Ù ÙÙØ·Ø Ø§ÙØªÙÙÙØ© ÙØ§ÙØ±Ø¨Ø ØªÙØØ°Ù Ù
٠استجابة Ø§ÙØ®Ø§Ø¯Ù
ÙØ¨Ù ÙØµÙÙÙØ§ Ø¥ÙÙ Ù
ÙØ¸Ù ØºÙØ± Ù
Ø®ÙÙÙ. عدÙÙ Ø³ÙØ§Ø³Ø© Ø§ÙØ¯Ùر ÙÙØ¬Ù
ÙØ¹Ø أ٠سجÙÙ Ø§Ø³ØªØ«ÙØ§Ø¡Ù ÙÙ
ÙØ¸Ù Ù
ØØ¯Ø¯ Ù
ع Ø§ÙØ³Ø¨Ø¨ ÙØªØ§Ø±ÙØ® Ø§ÙØ§ÙØªÙØ§Ø¡.","Access is not visual hiding only: cost and profit are removed by the server before reaching an unauthorized employee. Change a role policy for everyone, or record a reasoned, expiring individual exception.")})]})]}),s.jsxs(Ba,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:215",open:t,onOpenChange:K=>{K?n(!0):_()},children:[s.jsx(hA,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:216",asChild:!0,children:s.jsxs(Ie,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:217",className:"h-11",children:[s.jsx(oa,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:217",className:"h-4 w-4"}),Rn(e,"Ø¥Ø¶Ø§ÙØ© Ù
ÙØ¸Ù","Add employee")]})}),s.jsxs(Fa,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:219",className:"sm:max-w-2xl",children:[s.jsx(as,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:220",children:s.jsx(Ua,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:220",children:a?Rn(e,"تعدÙÙ Ù
Ù٠اÙÙ
ÙØ¸Ù","Edit employee profile"):Rn(e,"Ø¥ÙØ´Ø§Ø¡ ØØ³Ø§Ø¨ Ù
ÙØ¸Ù","Create employee account")})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:221",className:"grid gap-4 py-4 sm:grid-cols-2",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:222",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:222",children:Rn(e,"Ø§ÙØ§Ø³Ù
","Name")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:222",value:f.name,onChange:K=>b({...f,name:K.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:223",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/
1344accounting/EmployeesTab.tsx:223",children:Rn(e,"Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ","Email")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:223",dir:"ltr",type:"email",value:f.email,onChange:K=>b({...f,email:K.target.value}),disabled:!!a})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:224",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:224",children:Rn(e,"ÙÙÙ
Ø© اÙÙ
Ø±ÙØ±","Password")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:224",dir:"ltr",type:"password",value:f.password,onChange:K=>b({...f,password:K.target.value}),placeholder:a?Rn(e,"اترÙÙØ§ ÙØ§Ø±ØºØ© ÙÙØ¥Ø¨Ùاء عÙÙÙØ§","Leave blank to keep it"):""})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:225",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:226",children:Rn(e,"ÙÙØ¹ اÙÙ
ÙØ¸Ù","Employee role")}),s.jsxs(qn,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:227",value:f.consoleRole,onValueChange:K=>b({...f,consoleRole:K}),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:228",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:228"})}),s.jsx(Wn,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:229",children:Object.entries(Gy).map(([K,ee])=>s.jsx(At,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:230",value:K,children:Rn(e,ee.ar,ee.en)},K))})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:234",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:234",children:Rn(e,"اÙÙ
ÙØ·ÙØ© أ٠اÙÙØ±Ø¹","Region or branch")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:234",value:f.region,onChange:K=>b({...f,region:K.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:235",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:235",children:Rn(e,"اÙÙØ§ØªÙ","Phone")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:235",dir:"ltr",inputMode:"tel",value:f.phone,onChange:K=>b({...f,phone:K.target.value})})]})]}),s.jsxs(ei,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:237",children:[s.jsx(Ie,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:238",variant:"outline",onClick:_,children:Rn(e,"Ø¥ÙØºØ§Ø¡","Cancel")}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:239",onClick:O,disabled:E.isPending||D.isPending||!f.name||!a&&(!f.email||!f.password),children:[E.isPending||D.isPending?s.jsx(ft,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:240",className:"h-4 w-4 animate-spin"}):s.jsx(bc,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:240",className:"h-4 w-4"}),Rn(e,"ØÙظ اÙÙ
ÙØ¸Ù","Save employee")]})]})]})]})]})}),h&&s.jsx("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:249",className:"rounded-xl border border-primary/20 bg-primary/5 px-4 py-3 text-sm text-foreground",children:h}),s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:251",className:"grid gap-4 md:grid-cols-3",children:[s.jsx(kn,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:252",children:s.jsxs(Un,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:252",className:"flex items-center gap-3 p-5",children:[s.jsx(Dk,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:252",className:"h-8 w-8 text-primary"}),s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:252",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:252",className:"text-2xl font-bold",children:T?.length||0}),s.jsx("p",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:252",className:"text-xs text-muted-foreground",children:Rn(e,"ØØ³Ø§Ø¨ Ù
ÙØ¸Ù","Employee accounts")})]})]})}
1344),s.jsx(kn,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:253",children:s.jsxs(Un,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:253",className:"flex items-center gap-3 p-5",children:[s.jsx(y3,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:253",className:"h-8 w-8 text-sky-600"}),s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:253",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:253",className:"text-2xl font-bold",children:A?.roles?.length||0}),s.jsx("p",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:253",className:"text-xs text-muted-foreground",children:Rn(e,"Ø£Ø¯ÙØ§Ø± تشغÙÙÙØ©","Operational roles")})]})]})}),s.jsx(kn,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:254",children:s.jsxs(Un,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:254",className:"flex items-center gap-3 p-5",children:[s.jsx(bP,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:254",className:"h-8 w-8 text-amber-600"}),s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:254",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:254",className:"text-2xl font-bold",children:A?.overrides?.length||0}),s.jsx("p",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:254",className:"text-xs text-muted-foreground",children:Rn(e,"Ø§Ø³ØªØ«ÙØ§Ø¡Ø§Øª Ù
Ø³Ø¬ÙØ©","Recorded overrides")})]})]})})]}),s.jsxs(kn,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:257",children:[s.jsx(Xr,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:258",className:"border-b bg-muted/20",children:s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:259",className:"flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:260",children:[s.jsx(Qr,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:260",className:"font-display",children:Rn(e,"Ø³ÙØ§Ø³Ø© اÙÙØµÙÙ ØØ³Ø¨ ÙÙØ¹ اÙÙ
ÙØ¸Ù","Role-based access policy")}),s.jsx("p",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:260",className:"mt-1 text-sm text-muted-foreground",children:Rn(e,"اختر Ø§ÙØ¯Ùر Ø«Ù
ÙØ¹ÙÙ ÙÙØ· Ù
ا ÙØØªØ§Ø¬Ù ÙØ¹ÙÙØ§Ù ÙØ£Ø¯Ø§Ø¡ عÙ
ÙÙ.","Select a role and enable only what it genuinely needs.")})]}),s.jsx("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:261",className:"flex flex-wrap gap-2",children:(A?.roles||[]).map(K=>s.jsx(Ie,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:263",size:"sm",variant:F?.id===K.id?"default":"outline",onClick:()=>o(K.id),children:Rn(e,K.nameAr,K.nameEn)},K.id))})]})}),s.jsxs(Un,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:270",className:"p-0",children:[F?.code==="admin"&&s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:272",className:"m-5 flex items-start gap-3 rounded-xl border border-amber-300/40 bg-amber-50 p-4 text-amber-950 dark:bg-amber-950/20 dark:text-amber-100",children:[s.jsx(gu,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:273",className:"mt-0.5 h-5 w-5 shrink-0"}),s.jsx("p",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:273",className:"text-sm",children:Rn(e,"Ù
Ø¯ÙØ± اÙÙØ¸Ø§Ù
Ø¯ÙØ± Ù
ØÙ
Ù ÙØ§Ù
Ù Ø§ÙØµÙاØÙات ØØªÙ ÙØ§ ÙÙÙØ¯ اÙÙØ¸Ø§Ù
Ø¬ÙØ© Ø§ÙØ¥Ø¯Ø§Ø±Ø© ÙØ§Ùاسترداد.","The system administrator is a protected full-access role so the platform always retains an administration and recovery authority.")})]}),s.jsx("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:276",className:"divide-y",children:DN.map((K,ee)=>{const pe=!!(K.moduleKey==="pricing"?F?.resolvedPricingPermissions?.[K.property]:F?.resolvedPermissions?.[K.property]);return s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:284",className:"contents",children:[ee===Yq.length&&s.jsx("div",{"data-loc":"client/src/components/
1344accounting/EmployeesTab.tsx:285",className:"border-y bg-slate-950 px-5 py-3 text-sm font-semibold text-cyan-100 dark:bg-slate-900",children:Rn(e,"تÙÙÙØ¶Ø§Øª Ø§ÙØªØ³Ø¹Ùر اÙÙ
اÙÙØ©","Financial pricing permissions")}),s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:286",className:"grid gap-4 p-5 transition-colors hover:bg-muted/20 md:grid-cols-[1fr_auto] md:items-center",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:287",className:"flex items-start gap-3",children:[s.jsx("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:288",className:`mt-0.5 flex h-9 w-9 shrink-0 items-center justify-center rounded-xl ${K.sensitive?"bg-amber-500/10 text-amber-600":"bg-primary/10 text-primary"}`,children:K.sensitive?s.jsx(Cd,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:289",className:"h-4 w-4"}):s.jsx(Gi,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:289",className:"h-4 w-4"})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:291",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:291",className:"font-semibold text-foreground",children:Rn(e,K.ar,K.en)}),s.jsx("p",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:291",className:"mt-1 text-xs leading-5 text-muted-foreground",children:Rn(e,K.hintAr,K.hintEn)})]})]}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:293",size:"sm",variant:pe?"default":"outline",className:pe?"min-w-28 bg-emerald-600 hover:bg-emerald-700":"min-w-28",disabled:F?.code==="admin"||R.isPending,onClick:()=>oe(K,!pe),children:[pe?s.jsx(Gi,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:300",className:"h-4 w-4"}):s.jsx(Q0,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:300",className:"h-4 w-4"}),pe?Rn(e,"Ù
سÙ
ÙØ","Allowed"):Rn(e,"Ù
ØØ¬Ùب","Blocked")]})]})]},K.key)})})]})]}),s.jsxs(kn,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:311",children:[s.jsx(Xr,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:312",children:s.jsx(Qr,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:312",className:"font-display",children:Rn(e,"اÙÙ
ÙØ¸ÙÙÙ ÙØ§ÙØ§Ø³ØªØ«ÙØ§Ø¡Ø§Øª اÙÙØ±Ø¯ÙØ©","Employees & individual overrides")})}),s.jsx(Un,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:313",children:T?.length?s.jsx("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:315",className:"grid gap-3 xl:grid-cols-2",children:T.map(K=>s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:317",className:"flex flex-col gap-4 roun
1344ded-2xl border bg-card p-4 sm:flex-row sm:items-center sm:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:318",className:"flex items-center gap-3",children:[s.jsx("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:319",className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-full bg-primary/10 font-bold text-primary",children:K.name?.charAt(0)?.toUpperCase()||K.email.charAt(0).toUpperCase()}),s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:320",className:"min-w-0",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:320",className:"truncate font-semibold text-foreground",children:K.name||K.email}),s.jsx("p",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:320",className:"truncate text-xs text-muted-foreground",children:K.email}),s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:320",className:"mt-2 flex flex-wrap gap-2",children:[s.jsxs(Pn,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:320",variant:Gy[K.consoleRole]?.color||"outline",children:[s.jsx(y3,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:320",className:"h-3 w-3"}),Rn(e,Gy[K.consoleRole]?.ar||K.consoleRole,Gy[K.consoleRole]?.en||K.consoleRole)]}),K.active?s.jsx(Pn,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:320",className:"bg-emerald-600",children:Rn(e,"ÙØ´Ø·","Active")}):s.jsx(Pn,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:320",variant:"destructive",children:Rn(e,"Ù
ÙÙÙÙ","Inactive")})]})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:322",className:"flex items-center gap-1 self-end sm:self-auto",children:[K.consoleRole!=="admin"&&s.jsxs(Ie,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:323",size:"sm",variant:"outline",onClick:()=>l(K),children:[s.jsx(bP,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:323",className:"h-4 w-4"}),Rn(e,"Ø§Ø³ØªØ«ÙØ§Ø¡","Override")]}),s.jsx(Ie,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:324",size:"icon",variant:"ghost","aria-label":Rn(e,"تعدÙÙ","Edit"),onClick:()=>J(K),children:s.jsx(Tie,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:324",className:"h-4 w-4"})}),s.jsx(Ie,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:325",size:"icon",variant:"ghost","aria-label":Rn(e,"ØØ°Ù","Delete"),onClick:()=>W(K.id),children:s.jsx(ro,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:325",className:"h-4 w-4 text-destructive"})})]})]},K.id))}):s.jsx("p",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:330",className:"py-8 text-center text-sm text-muted-foreground",children:Rn(e,"ÙØ§ ÙÙØ¬Ø¯ Ù
ÙØ¸ÙÙ٠بعد.","No employees yet.")})})]}),s.jsx(Ba,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:334",open:!!c,onOpenChange:K=>{K||l(null)},children:s.jsxs(Fa,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:335",className:"sm:max-w-xl",children:[s.jsx(as,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:336",children:s.jsx(Ua,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:336",children:Rn(e,"Ø§Ø³ØªØ«ÙØ§Ø¡ ØµÙØ§ØÙØ© ÙØ±Ø¯Ù","Individual permission override")})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:337",className:"flex items-start gap-3 rounded-xl border border-amber-300/40 bg-amber-50 p-4 text-amber-950 dark:bg-amber-950/20 dark:text-amber-100",children:[s.jsx(zi,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:337",className:"mt-0.5 h-5 w-5 shrink-0"}),s.jsx("p",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:337",className:"text-sm",children:Rn(e,"Ø§ÙØ§Ø³ØªØ«Ùاء ÙØªØºÙب عÙÙ Ø³ÙØ§Ø³Ø© Ø§ÙØ¯Ùر ÙÙØ°Ø§ اÙÙ
ÙØ¸Ù ÙÙØ·. ÙØ¬Ø¨ ØªÙØ«Ù٠سبب Ù
ÙÙÙ ÙØ§Ø¶ØØ ÙÙÙØ¶ÙÙ ØªØØ¯Ùد ØªØ§Ø±ÙØ® Ø§ÙØªÙاء.","An override supersedes the role policy for this employee only. Record a clear business reason and preferably an expiry date.")})]}
1344),s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:338",className:"space-y-4 py-2",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:339",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:339",children:Rn(e,"اÙÙ
ÙØ¸Ù","Employee")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:339",value:c?.name||c?.email||"",disabled:!0})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:340",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:341",children:Rn(e,"Ø§ÙØµÙاØÙØ©","Permission")}),s.jsxs(qn,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:342",value:d.fieldKey,onValueChange:K=>m({...d,fieldKey:K}),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:343",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:343"})}),s.jsx(Wn,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:344",children:DN.map(K=>s.jsx(At,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:344",value:K.key,children:Rn(e,K.ar,K.en)},K.key))})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:347",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:348",children:Rn(e,"اÙÙØ±Ø§Ø±","Decision")}),s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:349",className:"grid grid-cols-2 gap-2",children:[s.jsxs(Ie,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:349",type:"button",variant:d.allowed?"default":"outline",className:d.allowed?"bg-emerald-600 hover:bg-emerald-700":"",onClick:()=>m({...d,allowed:!0}),children:[s.jsx(bc,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:349",className:"h-4 w-4"}),Rn(e,"سÙ
اØ","Allow")]}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:349",type:"button",variant:d.allowed?"outline":"destructive",onClick:()=>m({...d,allowed:!1}),children:[s.jsx(ks,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:349",className:"h-4 w-4"}),Rn(e,"Ù
ÙØ¹","Deny")]})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:351",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:351",children:Rn(e,"Ø§ÙØ³Ø¨Ø¨ اÙÙ
ÙÙÙ Ø§ÙØ¥ÙزاÙ
Ù","Required business reason")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:351",value:d.reason,onChange:K=>m({...d,reason:K.target.value}),placeholder:Rn(e,"Ù
ثاÙ: ØªØºØ·ÙØ© Ù
ÙØ§Ù
اÙÙ
ØØ§Ø³Ø¨ Ø®ÙØ§Ù إجازتÙ","Example: cover the accountant during leave")})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:352",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:352",children:Rn(e,"ØªØ§Ø±ÙØ® Ø§ÙØ§ÙØªÙØ§Ø¡ (Ø§Ø®ØªÙØ§Ø±Ù)","Expiry date (optional)")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:352",type:"date",value:d.expiresAt,onChange:K=>m({...d,expiresAt:K.target.value})})]})]}),s.jsxs(ei,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:354",children:[s.jsx(Ie,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:354",variant:"outline",onClick:()=>l(null),children:Rn(e,"Ø¥ÙØºØ§Ø¡","Cancel")}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:354",onClick:G,disabled:L.isPending||d.reason.trim().length<3,children:[L.isPending?s.jsx(ft,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:354",className:"h-4 w-4 animate-spin"}):s.jsx(sa,{"data-loc":"client/src/components/accounting/EmployeesTab.tsx:354",className:"h-4 w-4"}),Rn(e,"تسجÙÙ Ø§ÙØ§Ø³ØªØ«Ùاء","Record override")]})]})]})})]})}const Ts=(e,t,n)=>e==="ar"?t:n,J2e=(e,t,n)=>new Intl.NumberFormat(e==="ar"?"ar-JO":"en-JO",{style:"currency",currency:n,maximumFractionDigits:2}).format(t||0),GI={cash:{ar:"ÙÙØ¯Ø§Ù",en:"Cash"},bank_transfer:{ar:"تØÙÙ٠بÙÙÙ",en:"Bank Transfer"},cheque:{ar:"Ø´ÙÙ",en:"Cheque"},credit_card:{ar:"Ø¨Ø·Ø§ÙØ© ائتÙ
اÙÙØ©",en:"Credit Card"}};function W2e({lang:e}){const t=Pe.useUtils(),{data:n,isLoading:a}=Pe.accounting.expenses.list.useQuery(),[r,i]=k.useState(!1),[o,c]=k.useState({expenseNumber:"",category:"rent",payee:"",expenseDate:new Date().toISOString().split("T")[0],amount:0,currency:"JOD",method:"cash",reference:"",description:""}),l=Pe.accounting.expenses.create.useMutation({onSuccess:()=>
1344{t.accounting.expenses.list.invalidate(),t.accounting.dashboard.invalidate(),Le.success(Ts(e,"تÙ
تسجÙ٠اÙÙ
صرÙÙ","Expense recorded")),i(!1),c({expenseNumber:"",category:"rent",payee:"",expenseDate:new Date().toISOString().split("T")[0],amount:0,currency:"JOD",method:"cash",reference:"",description:""})},onError:m=>Le.error(m.message)}),d={rent:"Ø¥ÙØ¬Ø§Ø±",salaries:"Ø±ÙØ§ØªØ¨",utilities:"Ù
راÙÙ",marketing:"تسÙÙÙ",office_supplies:"Ù
Ø³ØªÙØ²Ù
ات",travel_expense:"Ù
صارÙÙ Ø³ÙØ±",professional_fees:"أتعاب Ù
ÙÙÙØ©",insurance:"تأÙ
ÙÙ",other:"أخرÙ"};return s.jsxs("div",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:36",className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:37",className:"flex items-center justify-between",children:[s.jsx("h3",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:38",className:"font-display text-lg font-bold",children:Ts(e,"اÙÙ
صارÙÙ","Expenses")}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:39",size:"sm",onClick:()=>i(!0),children:[s.jsx(oa,{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:39",className:"h-4 w-4"}),Ts(e,"Ù
صرÙÙ Ø¬Ø¯ÙØ¯","New Expense")]})]}),a?s.jsx("div",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:41",className:"flex justify-center py-12",children:s.jsx(ft,{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:41",className:"w-6 h-6 animate-spin text-primary"})}):n?.length?s.jsx("div",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:44",className:"overflow-x-auto rounded-lg border border-border",children:s.jsxs("table",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:45",className:"w-full text-sm",children:[s.jsx("thead",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:46",className:"bg-muted/50",children:s.jsxs("tr",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:46",className:"text-start",children:[s.jsx("th",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:47",className:"px-4 py-3 font-medium",children:Ts(e,"رÙÙ
اÙÙ
صرÙÙ","Expense #")}),s.jsx("th",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:48",className:"px-4 py-3 font-medium",children:Ts(e,"اÙÙØ¦Ø©","Category")}),s.jsx("th",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:49",className:"px-4 py-3 font-medium",children:Ts(e,"اÙÙ
ستÙÙØ¯","Payee")}),s.jsx("th",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:50",className:"px-4 py-3 font-medium",children:Ts(e,"Ø§ÙØªØ§Ø±ÙØ®","Date")}),s.jsx("th",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:51",className:"px-4 py-3 font-medium",children:Ts(e,"اÙÙ
Ø¨ÙØº","Amount")}),s.jsx("th",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:52",className:"px-4 py-3 font-medium",children:Ts(e,"Ø§ÙØ·Ø±ÙÙØ©","Method")})]})}),s.jsx("tbody",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:54",children:n.map(m=>s.jsxs("tr",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:56",className:"border-t border-border hover:bg-muted/30",children:[s.jsx("td",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:57",className:"px-4 py-3 font-medium",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:57",children:m.expenseNumber})}),s.jsx("td",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:58",className:"px-4 py-3",children:Ts(e,d[m.category]||m.category,m.category)}),s.jsx("td",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:59",className:"px-4 py-3",children:m.payee}),s.jsx("td",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:60",className:"px-4 py-3 text-muted-foreground",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:60",children:m.expenseDate})}),s.jsx("td",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:61",className:"px-4 py-3 text-red-600 font-medium",dir:"auto",children:s.jsx("bdi",{"data-loc":"client/src/components/
1344accounting/ExpensesTab.tsx:61",children:J2e(e,m.amount,m.currency)})}),s.jsx("td",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:62",className:"px-4 py-3 text-muted-foreground",children:Ts(e,GI[m.paymentMethod]?.ar||m.paymentMethod,GI[m.paymentMethod]?.en||m.paymentMethod)})]},m.id))})]})}):s.jsx(kn,{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:42",children:s.jsxs(Un,{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:42",className:"py-12 text-center text-muted-foreground",children:[s.jsx(qU,{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:42",className:"w-10 h-10 mx-auto mb-3 opacity-40"}),Ts(e,"ÙØ§ ØªÙØ¬Ø¯ Ù
صارÙÙ","No expenses yet")]})}),s.jsx(Ba,{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:69",open:r,onOpenChange:i,children:s.jsxs(Fa,{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:70",children:[s.jsx(as,{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:71",children:s.jsx(Ua,{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:71",children:Ts(e,"تسجÙÙ Ù
صرÙÙ","Record Expense")})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:72",className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:73",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:73",children:Ts(e,"رÙÙ
اÙÙ
صرÙÙ","Expense Number")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:73",dir:"ltr",className:"text-left",value:o.expenseNumber,onChange:m=>c({...o,expenseNumber:m.target.value}),placeholder:"EXP-2026-000001"})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:74",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:74",children:Ts(e,"اÙÙØ¦Ø©","Category")}),s.jsx("select",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:74",className:"w-full h-9 rounded-md border border-input bg-background px-3 text-sm",value:o.category,onChange:m=>c({...o,category:m.target.value}),children:Object.entries(d).map(([m,h])=>s.jsx("option",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:74",value:m,children:Ts(e,h,m.replace(/_/g," "))},m))})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:75",className:"col-span-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:75",children:Ts(e,"اÙÙ
ستÙÙØ¯","Payee")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:75",value:o.payee,onChange:m=>c({...o,payee:m.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:76",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:76",children:Ts(e,"Ø§ÙØªØ§Ø±ÙØ®","Date")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:76",dir:"ltr",className:"text-left",type:"date",value:o.expenseDate,onChange:m=>c({...o,expenseDate:m.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:77",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:77",children:Ts(e,"اÙÙ
Ø¨ÙØº","Amount")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:77",dir:"ltr",className:"text-left",type:"number",value:o.amount,onChange:m=>c({...o,amount:Number(m.target.value)})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:78",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:78",children:Ts(e,"Ø§ÙØ¹Ù
ÙØ©","Currency")}),s.jsxs("select",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:78",className:"w-full h-9 rounded-md border border-input bg-background px-3 text-sm",value:o.currency,onChange:m=>c({...o,currency:m.target.value}),children:[s.jsx("option",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:78",value:"JOD",children:"JOD"}),s.jsx("option",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:78",value:"USD",children:"USD"}
1344),s.jsx("option",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:78",value:"SAR",children:"SAR"})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:79",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:79",children:Ts(e,"Ø§ÙØ·Ø±ÙÙØ©","Method")}),s.jsxs("select",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:79",className:"w-full h-9 rounded-md border border-input bg-background px-3 text-sm",value:o.method,onChange:m=>c({...o,method:m.target.value}),children:[s.jsx("option",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:79",value:"cash",children:Ts(e,"ÙÙØ¯Ø§Ù","Cash")}),s.jsx("option",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:79",value:"bank_transfer",children:Ts(e,"تØÙÙ٠بÙÙÙ","Bank Transfer")}),s.jsx("option",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:79",value:"cheque",children:Ts(e,"Ø´ÙÙ","Cheque")})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:80",className:"col-span-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:80",children:Ts(e,"Ù
رجع","Reference")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:80",dir:"ltr",className:"text-left",value:o.reference,onChange:m=>c({...o,reference:m.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:81",className:"col-span-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:81",children:Ts(e,"اÙÙØµÙ","Description")}),s.jsx(es,{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:81",value:o.description,onChange:m=>c({...o,description:m.target.value}),rows:2})]})]}),s.jsxs(ei,{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:83",children:[s.jsx(Ie,{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:84",variant:"outline",onClick:()=>i(!1),children:Ts(e,"Ø¥ÙØºØ§Ø¡","Cancel")}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:85",onClick:()=>l.mutate({...o,reference:o.reference||null,accountCode:"5000",description:o.description||null}),disabled:l.isPending,children:[l.isPending&&s.jsx(ft,{"data-loc":"client/src/components/accounting/ExpensesTab.tsx:85",className:"h-4 w-4 animate-spin"}),Ts(e,"تسجÙÙ","Record")]})]})]})})]})}const xa=(e,t,n)=>e==="ar"?t:n,JI=u2.map(e=>e.value);function Y2e({lang:e}){const{data:t}=Pe.adminAuth.me.useQuery(),n=t?.consoleRole==="admin",[a,r]=k.useState("all"),[i,o]=k.useState("all"),[c,l]=k.useState(!1),[d,m]=k.useState(null),[h,x]=k.useState({}),f=Pe.useUtils(),{data:b,isLoading:y}=Pe.accounting.hotels.list.useQuery({destination:a!=="all"?a:void 0,stars:i!=="all"?Number(i):void 0}),w=Pe.accounting.hotels.create.useMutation({onSuccess:()=>{f.accounting.hotels.list.invalidate(),l(!1)}}),T=Pe.accounting.hotels.update.useMutation({onSuccess:()=>{f.accounting.hotels.list.invalidate(),l(!1)}}),A=Pe.accounting.hotels.delete.useMutation({onSuccess:()=>{f.accounting.hotels.list.invalidate()}}),E=()=>{m(null),x({stars:3,currency:"JOD",featured:!1,active:!0,destination:"Turkey"}),l(!0)},D=_=>{m(_),x(_),l(!0)},S=()=>{d?T.mutate({id:d.id,data:h}):w.mutate(h)},R=_=>"â
".repeat(_)+"â".repeat(5-_),L=_=>ope(_,e),I=(_,U)=>new Intl.NumberFormat(e==="ar"?"ar-JO":"en-JO",{style:"currency",currency:U,maximumFractionDigits:2}).format(Number(_||0)),F=_=>new Intl.NumberFormat(e==="ar"?"ar-JO":"en-JO").format(_);return s.jsxs("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:97",className:"space-y-6",dir:e==="ar"?"rtl":"ltr",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:98",className:"flex items-center justify-between flex-wrap gap-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:99",children:[s.jsx("h2",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:100",className:"text-2xl font-bold tracking-tight",children:xa(e,"إدارة اÙÙÙØ§Ø¯Ù","Hotels management")}
1344),s.jsx("p",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:101",className:"text-sm text-muted-foreground",children:xa(e,"إدارة Ù
خزÙ٠اÙÙÙØ§Ø¯Ù Ù٠جÙ
ÙØ¹ اÙÙØ¬Ùات","Manage hotel inventory across all destinations")})]}),n&&s.jsxs(Ie,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:104",onClick:E,className:"gap-2",children:[s.jsx(oa,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:105",className:"w-4 h-4"})," ",xa(e,"Ø¥Ø¶Ø§ÙØ© ÙÙØ¯Ù","Add hotel")]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:111",className:"flex gap-3 flex-wrap",children:[s.jsxs(qn,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:112",value:a,onValueChange:r,children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:113",className:"w-[180px]",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:113",placeholder:xa(e,"اÙÙØ¬ÙØ©","Destination")})}),s.jsxs(Wn,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:114",children:[s.jsx(At,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:115",value:"all",children:xa(e,"Ù٠اÙÙØ¬Ùات","All destinations")}),JI.map(_=>s.jsx(At,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:116",value:_,children:L(_)},_))]})]}),s.jsxs(qn,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:119",value:i,onValueChange:o,children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:120",className:"w-[140px]",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:120",placeholder:xa(e,"Ø§ÙØªØµÙÙÙ","Stars")})}),s.jsxs(Wn,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:121",children:[s.jsx(At,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:122",value:"all",children:xa(e,"ÙÙ Ø§ÙØªØµÙÙÙØ§Øª","All ratings")}),[5,4,3,2,1].map(_=>s.jsx(At,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:123",value:String(_),children:xa(e,`${F(_)} ÙØ¬ÙÙ
`,`${_} stars`)},_))]})]})]}),y?s.jsx("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:130",className:"text-center py-12 text-muted-foreground",children:xa(e,"جار٠تØÙ
Ù٠اÙÙÙØ§Ø¯Ùâ¦","Loading hotelsâ¦")}):!b||b.length===0?s.jsx("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:132",className:"text-center py-12 text-muted-foreground",children:xa(e,"ÙÙ
ÙØªÙ
Ø§ÙØ¹Ø«Ùر عÙÙ ÙÙØ§Ø¯Ù","No hotels found")}):s.jsx("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:134",className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:b.map(_=>s.jsxs(kn,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:136",className:"overflow-hidden hover:shadow-lg transition-shadow",children:[_.imageUrl&&s.jsx("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:138",className:"h-40 bg-muted overflow-hidden",children:s.jsx("img",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:139",src:_.imageUrl,alt:e==="ar"&&_.nameAr||_.name,className:"w-full h-full object-cover"})}),s.jsx(Xr,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:142",className:"pb-2",children:s.jsxs("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:143",className:"flex items-start justify-between",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:144",className:"flex-1",children:[s.jsxs(Qr,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:145",className:"text-lg flex items-center gap-2",children:[s.jsx(wu,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:146",className:"w-4 h-4 text-primary"}),s.jsx("span",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:147",dir:"auto",children:e==="ar"&&_.nameAr||_.name})]}),e==="en"&&_.nameAr&&s.jsx("p",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:149",className:"text-sm text-muted-foreground mt-0.5",dir:"rtl",children:_.nameAr})]}),_.featured&&s.jsx(Pn,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:151",className:"bg-amber-500/20 text-amber-700 border-amber-500/30",children:xa(e,"Ù
Ù
ÙÙØ²","Featured")})]})}
1344),s.jsxs(Un,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:154",className:"space-y-2",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:155",className:"flex items-center gap-2 text-sm",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:156",className:"text-amber-500 text-lg",children:R(_.stars)}),s.jsxs("span",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:157",className:"text-muted-foreground",children:["· ",L(_.destination),_.city?s.jsxs(s.Fragment,{children:[s.jsx("span",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:157",children:e==="ar"?"Ø ":", "}),s.jsx("bdi",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:157",dir:"auto",children:_.city})]}):null]})]}),_.pricePerNight&&Number(_.pricePerNight)>0&&s.jsxs("p",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:160",className:"text-sm font-medium",children:[s.jsx("bdi",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:160",children:I(_.pricePerNight,_.currency)})," ",s.jsx("span",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:160",className:"text-muted-foreground font-normal",children:xa(e,"/ اÙÙÙÙØ©","/ night")})]}),_.amenities&&s.jsx("p",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:163",className:"text-xs text-muted-foreground line-clamp-2",dir:"auto",children:_.amenities}),s.jsxs("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:165",className:"flex items-center gap-3 text-xs text-muted-foreground",children:[_.phone&&s.jsxs("span",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:166",className:"flex items-center gap-1",children:[s.jsx(I0,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:166",className:"w-3 h-3"}),s.jsx("bdi",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:166",dir:"ltr",children:_.phone})]}),_.email&&s.jsxs("span",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:167",className:"flex items-center gap-1",children:[s.jsx(Pd,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:167",className:"w-3 h-3"}),s.jsx("bdi",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:167",dir:"ltr",children:_.email})]})]}),_.address&&s.jsxs("p",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:169",className:"text-xs text-muted-foreground flex items-center gap-1",children:[s.jsx(mr,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:169",className:"w-3 h-3"}),s.jsx("span",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:169",dir:"auto",children:_.address})]}),n&&s.jsxs("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:171",className:"flex gap-2 pt-2 border-t",children:[s.jsxs(Ie,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:172",size:"sm",variant:"outline",onClick:()=>D(_),className:"gap-1",children:[s.jsx(K0,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:173",className:"w-3 h-3"})," ",xa(e,"تعدÙÙ","Edit")]}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:175",size:"sm",variant:"destructive",onClick:()=>{confirm(xa(e,`ÙÙ ØªØ±ÙØ¯ ØØ°Ù ${_.nameAr||_.name}Ø`,`Delete ${_.name}?`))&&A.mutate({id:_.id})},className:"gap-1",children:[s.jsx(ro,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:176",className:"w-3 h-3"})," ",xa(e,"ØØ°Ù","Delete")]})]})]})]},_.id))}),s.jsx(Ba,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:187",open:c,onOpenChange:l,children:s.jsxs(Fa,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:188",className:"max-w-2xl max-h-[90vh] overflow-y-auto",dir:e==="ar"?"rtl":"ltr",children:[s.jsx(as,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:189",children:s.jsx(Ua,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:190",children:d?xa(e,`تعدÙÙ ${d.nameAr||d.name}`,`Edit ${d.name}`):xa(e,"Ø¥Ø¶Ø§ÙØ© ÙÙØ¯Ù Ø¬Ø¯ÙØ¯","Add new hotel")})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:192",className:"grid grid-cols-2 gap-4 py-2",children:[s.jsxs("div",{"data-loc":"client/src/components/
1344accounting/HotelsTab.tsx:193",className:"space-y-1.5",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:194",children:xa(e,"اسÙ
اÙÙÙØ¯Ù Ø¨Ø§ÙØ¥ÙجÙÙØ²ÙØ© *","Hotel name (English) *")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:195",dir:"ltr",className:"text-left",value:h.name||"",onChange:_=>x({...h,name:_.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:197",className:"space-y-1.5",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:198",children:xa(e,"اسÙ
اÙÙÙØ¯Ù Ø¨Ø§ÙØ¹Ø±Ø¨ÙØ©","Hotel name (Arabic)")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:199",value:h.nameAr||"",onChange:_=>x({...h,nameAr:_.target.value}),dir:"rtl",className:"text-right"})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:201",className:"space-y-1.5",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:202",children:xa(e,"اÙÙØ¬ÙØ© *","Destination *")}),s.jsxs(qn,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:203",value:h.destination||"Turkey",onValueChange:_=>x({...h,destination:_}),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:204",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:204"})}),s.jsx(Wn,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:205",children:JI.map(_=>s.jsx(At,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:206",value:_,children:L(_)},_))})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:210",className:"space-y-1.5",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:211",children:xa(e,"اÙÙ
دÙÙØ©","City")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:212",dir:"auto",value:h.city||"",onChange:_=>x({...h,city:_.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:214",className:"space-y-1.5",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:215",children:xa(e,"Ø§ÙØªØµÙÙ٠باÙÙØ¬ÙÙ
","Stars")}),s.jsxs(qn,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:216",value:String(h.stars||3),onValueChange:_=>x({...h,stars:Number(_)}),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:217",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:217"})}),s.jsx(Wn,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:218",children:[1,2,3,4,5].map(_=>s.jsx(At,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:219",value:String(_),children:xa(e,`${F(_)} ÙØ¬ÙÙ
`,`${_} stars`)},_))})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:223",className:"space-y-1.5",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:224",children:xa(e,"Ø§ÙØ³Ø¹Ø± ÙÙÙ ÙÙÙØ©","Price per night")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:225",dir:"ltr",className:"text-left",type:"number",value:h.pricePerNight||"",onChange:_=>x({...h,pricePerNight:_.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:227",className:"space-y-1.5",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:228",children:xa(e,"Ø§ÙØ¹Ù
ÙØ©","Currency")}),s.jsxs(qn,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:229",value:h.currency||"JOD",onValueChange:_=>x({...h,currency:_}),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:230",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:230"})}),s.jsxs(Wn,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:231",children:[s.jsx(At,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:232",value:"JOD",children:"JOD"}),s.jsx(At,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:233",value:"USD",children:"USD"}
1344),s.jsx(At,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:234",value:"EUR",children:"EUR"}),s.jsx(At,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:235",value:"SAR",children:"SAR"})]})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:239",className:"space-y-1.5",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:240",children:xa(e,"رابط Ø§ÙØµÙرة","Image URL")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:241",dir:"ltr",className:"text-left",value:h.imageUrl||"",onChange:_=>x({...h,imageUrl:_.target.value}),placeholder:"https://..."})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:243",className:"space-y-1.5 col-span-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:244",children:xa(e,"اÙÙØµÙ Ø¨Ø§ÙØ¥ÙجÙÙØ²ÙØ©","Description (English)")}),s.jsx(es,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:245",dir:"ltr",className:"text-left",value:h.descriptionEn||"",onChange:_=>x({...h,descriptionEn:_.target.value}),rows:2})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:247",className:"space-y-1.5 col-span-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:248",children:xa(e,"اÙÙØµÙ Ø¨Ø§ÙØ¹Ø±Ø¨ÙØ©","Description (Arabic)")}),s.jsx(es,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:249",value:h.descriptionAr||"",onChange:_=>x({...h,descriptionAr:_.target.value}),rows:2,dir:"rtl",className:"text-right"})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:251",className:"space-y-1.5 col-span-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:252",children:xa(e,"اÙÙ
راÙÙ (Ù
ÙØµÙÙØ© بÙÙØ§ØµÙ)","Amenities (comma-separated)")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:253",dir:"auto",value:h.amenities||"",onChange:_=>x({...h,amenities:_.target.value}),placeholder:xa(e,"Ù
Ø³Ø¨ØØ ÙØ§Ù ÙØ§ÙØ ÙØ§Ø¯Ù Ø±ÙØ§Ø¶ÙØ Ø³Ø¨Ø§â¦","Pool, WiFi, gym, spaâ¦")})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:255",className:"space-y-1.5",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:256",children:xa(e,"اÙÙØ§ØªÙ","Phone")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:257",dir:"ltr",className:"text-left",inputMode:"tel",value:h.phone||"",onChange:_=>x({...h,phone:_.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:259",className:"space-y-1.5",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:260",children:xa(e,"Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ","Email")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:261",dir:"ltr",className:"text-left",type:"email",value:h.email||"",onChange:_=>x({...h,email:_.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:263",className:"space-y-1.5 col-span-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:264",children:xa(e,"Ø§ÙØ¹ÙÙØ§Ù","Address")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:265",dir:"auto",value:h.address||"",onChange:_=>x({...h,address:_.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:267",className:"flex items-center gap-6 col-span-2",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:268",className:"flex items-center gap-2",children:[s.jsx(C0,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:269",checked:h.featured||!1,onCheckedChange:_=>x({...h,featured:_})}),s.jsx(nt,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:270",children:xa(e,"Ù
Ù
ÙÙØ²","Featured")})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/HotelsTab.tsx:272",className:"flex items-center gap-2",children:[s.jsx(C0,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:273",checked:h.active!==!1,onCheckedChange:_=>x({...h,active:_})}
1344),s.jsx(nt,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:274",children:xa(e,"ÙØ´Ø·","Active")})]})]})]}),s.jsxs(ei,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:278",children:[s.jsx(Ie,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:279",variant:"outline",onClick:()=>l(!1),children:xa(e,"Ø¥ÙØºØ§Ø¡","Cancel")}),s.jsx(Ie,{"data-loc":"client/src/components/accounting/HotelsTab.tsx:280",onClick:S,disabled:w.isPending||T.isPending,children:d?xa(e,"ØÙظ Ø§ÙØªØ¹Ø¯ÙÙØ§Øª","Save changes"):xa(e,"Ø¥ÙØ´Ø§Ø¡ اÙÙÙØ¯Ù","Create hotel")})]})]})})]})}const lc=(e,t,n)=>e==="ar"?t:n;function u6({open:e,onClose:t,title:n,htmlContent:a,lang:r,emailSubject:i,customerEmail:o,customerName:c,onSendEmail:l}){const[d,m]=k.useState(!1),[h,x]=k.useState(o||""),[f,b]=k.useState(i),[y,w]=k.useState(!1),T=k.useRef(null),A=()=>{const S=T.current;if(S)try{S.contentWindow?.document&&(S.contentWindow?.focus(),S.contentWindow?.print())}catch{const L=window.open("","_blank");L&&(L.document.write(a),L.document.close(),L.onload=()=>L.print())}},E=()=>{const S=new Blob([a],{type:"text/html"}),R=URL.createObjectURL(S),L=document.createElement("a");L.href=R,L.download=`${n}.html`,L.click(),URL.revokeObjectURL(R),Le.success(lc(r,"تÙ
Ø§ÙØªØÙ
ÙÙ","Downloaded"))},D=async()=>{if(!h){Le.error(lc(r,"ÙØ±Ø¬Ù Ø¥Ø¯Ø®Ø§Ù Ø¨Ø±ÙØ¯ Ø¥ÙÙØªØ±ÙÙÙ","Please enter an email"));return}w(!0);try{l&&await l(h,f,a),Le.success(lc(r,`تÙ
Ø¥Ø±Ø³Ø§Ù Ø§ÙØ¨Ø±Ùد Ø¥ÙÙ â${h}â`,`Email sent to ${h}`)),m(!1)}catch{Le.error(lc(r,"ÙØ´Ù Ø¥Ø±Ø³Ø§Ù Ø§ÙØ¥ÙÙ
ÙÙ","Failed to send email"))}finally{w(!1)}};return s.jsxs(s.Fragment,{children:[s.jsx(Ba,{"data-loc":"client/src/components/accounting/DocumentPreview.tsx:99",open:e,onOpenChange:S=>!S&&t(),children:s.jsxs(Fa,{"data-loc":"client/src/components/accounting/DocumentPreview.tsx:100",className:"max-w-5xl max-h-[95vh] flex flex-col",dir:r==="ar"?"rtl":"ltr",children:[s.jsxs(as,{"data-loc":"client/src/components/accounting/DocumentPreview.tsx:101",className:"flex-row items-center justify-between",children:[s.jsx(Ua,{"data-loc":"client/src/components/accounting/DocumentPreview.tsx:102",className:"text-xl",dir:"auto",children:n}),s.jsxs("div",{"data-loc":"client/src/components/accounting/DocumentPreview.tsx:103",className:"flex gap-2",children:[s.jsxs(Ie,{"data-loc":"client/src/components/accounting/DocumentPreview.tsx:104",size:"sm",variant:"outline",onClick:A,children:[s.jsx(bie,{"data-loc":"client/src/components/accounting/DocumentPreview.tsx:105",className:"me-1 h-4 w-4"}),lc(r,"طباعة","Print")]}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/DocumentPreview.tsx:108",size:"sm",variant:"outline",onClick:E,children:[s.jsx(Sd,{"data-loc":"client/src/components/accounting/DocumentPreview.tsx:109",className:"me-1 h-4 w-4"}),lc(r,"تØÙ
ÙÙ","Download")]}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/DocumentPreview.tsx:112",size:"sm",variant:"default",onClick:()=>m(!0),children:[s.jsx(Pd,{"data-loc":"client/src/components/accounting/DocumentPreview.tsx:113",className:"me-1 h-4 w-4"}),lc(r,"إرسا٠إÙÙ
ÙÙ","Send Email")]}),s.jsx(Ie,{"data-loc":"client/src/components/accounting/DocumentPreview.tsx:116",size:"sm",variant:"ghost",onClick:t,children:s.jsx(ks,{"data-loc":"client/src/components/accounting/DocumentPreview.tsx:117",className:"w-4 h-4"})})]})]}),s.jsx("div",{"data-loc":"client/src/components/accounting/DocumentPreview.tsx:121",className:"flex-1 overflow-hidden rounded-lg border border-border bg-muted/20",children:s.jsx("iframe",{"data-loc":"client/src/components/accounting/DocumentPreview.tsx:122",ref:T,title:lc(r,"Ù
عاÙÙØ© اÙÙ
Ø³ØªÙØ¯","Document preview"),className:"w-full h-full min-h-[500px] border-0",srcDoc:a})})]})}),s.jsx(Ba,{"data-loc":"client/src/components/accounting/DocumentPreview.tsx:133",open:d,onOpenChange:m,children:s.jsxs(Fa,{"data-loc":"client/src/components/accounting/DocumentPreview.tsx:134",className:"max-w-md",dir:r==="ar"?"rtl":"ltr",children:[s.jsx(as,{"data-loc":"client/src/components/accounting/DocumentPreview.tsx:135",children:s.jsx(Ua,{"data-loc":"client/src/components/
1344accounting/DocumentPreview.tsx:136",children:lc(r,"إرسا٠اÙÙØ«ÙÙØ© عبر Ø§ÙØ¥ÙÙ ÙÙ","Send Document via Email")})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/DocumentPreview.tsx:138",className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/DocumentPreview.tsx:139",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/DocumentPreview.tsx:140",children:lc(r,"Ø¥ÙÙ","To")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/DocumentPreview.tsx:141",type:"email",dir:"ltr",className:"text-left",value:h,onChange:S=>x(S.target.value),placeholder:"[email protected]"})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/DocumentPreview.tsx:150",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/DocumentPreview.tsx:151",children:lc(r,"اÙÙ ÙØ¶Ùع","Subject")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/DocumentPreview.tsx:152",dir:"auto",value:f,onChange:S=>b(S.target.value)})]}),c&&s.jsx("p",{"data-loc":"client/src/components/accounting/DocumentPreview.tsx:155",className:"text-sm text-muted-foreground",children:lc(r,"Ø³ÙØªÙ Ø¥Ø±Ø³Ø§Ù ÙØ³Ø®Ø© Ø¥ÙÙ Ø§ÙØ¥Ø¯Ø§Ø±Ø© Ø£ÙØ¶Ø§Ù","A copy will also be sent to admin")})]}),s.jsxs(ei,{"data-loc":"client/src/components/accounting/DocumentPreview.tsx:160",children:[s.jsx(Ie,{"data-loc":"client/src/components/accounting/DocumentPreview.tsx:161",variant:"outline",onClick:()=>m(!1),children:lc(r,"Ø¥ÙØºØ§Ø¡","Cancel")}),s.jsx(Ie,{"data-loc":"client/src/components/accounting/DocumentPreview.tsx:164",onClick:D,disabled:y,children:y?"...":lc(r,"إرساÙ","Send")})]})]})})]})}const d6='<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Noto+Sans+Arabic:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap" rel="stylesheet">';function m6(e,t="standard"){const n=e==="ar",a=t==="compact"||t==="dense",r=t==="dense";return` 1345 :root{ 1346 --orbit-ink:#071923;--orbit-navy:#0B2430;--orbit-teal:#0F5A5E;--orbit-teal-2:#167178; 1347 --orbit-gold:#C6A15B;--orbit-gold-soft:#E8D6AE;--orbit-paper:#F7F3EA;--orbit-panel:#FCFBF7; 1348 --orbit-line:#D9D2C4;--orbit-muted:#66747A;--orbit-positive:#176B55;--orbit-danger:#A33B3B; 1349 } 1350 *{box-sizing:border-box;margin:0;padding:0} 1351 @page{size:A4 portrait;margin:7mm} 1352 html,body{background:#E7E9E8} 1353 body{font-family:${n?"'Noto Sans Arabic','Segoe UI',Tahoma,sans-serif":"'Manrope','Segoe UI',Arial,sans-serif"};font-size:${r?"7.8pt":a?"8.4pt":"9pt"};line-height:${n?"1.42":"1.35"};color:var(--orbit-ink);direction:${n?"rtl":"ltr"};text-align:start;padding:8mm;-webkit-print-color-adjust:exact;print-color-adjust:exact;orphans:3;widows:3} 1354 .print-shell{width:194mm;min-height:279mm;margin:0 auto;background:#fff;border:1px solid rgba(11,36,48,.10);box-shadow:0 18px 55px rgba(7,25,35,.14);display:flex;flex-direction:column;overflow:hidden;position:relative} 1355 .print-shell:before{content:"";position:absolute;inset-inline-start:0;top:0;width:2.2mm;height:100%;background:linear-gradient(180deg,var(--orbit-gold),var(--orbit-teal));z-index:2} 1356 .doc-header{min-height:35mm;padding:7mm 9mm 6mm;background:linear-gradient(118deg,var(--orbit-ink),var(--orbit-navy) 58%,var(--orbit-teal));color:#fff;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,.9fr);gap:7mm;align-items:center;position:relative;overflow:hidden} 1357 .doc-header:after{content:"";position:absolute;width:70mm;height:70mm;border:1px solid rgba(232,214,174,.18);border-radius:50%;inset-inline-end:-18mm;top:-26mm;box-shadow:0 0 0 10mm rgba(232,214,174,.035),0 0 0 20mm rgba(232,214,174,.025)} 1358 .brand-lockup{display:flex;align-items:center;gap:4mm;min-width:0;position:relative;z-index:1} 1359 .brand-mark{width:16mm;height:19mm;object-fit:contain;flex:0 0 auto;filter:drop-shadow(0 3px 7px rgba(0,0,0,.25))} 1360 .brand-name{font-family:'Manrope','Noto Sans Arabic',sans-serif;font-size:15pt;font-weight:800;letter-spacing:${n?".2px":"1.6px"};line-height:1.05} 1361 .brand-sub{font-size:7.2pt;color:rgba(255,255,255,.72);margin-top:1.5mm;font-weight:500} 1362 .doc-identity{text-align:end;position:relative;z-index:1;min-width:0} 1363 .doc-kicker{display:inline-flex;align-items:center;gap:2mm;padding:1.2mm 3mm;border:1px solid rgba(232,214,174,.46);background:rgba(198,161,91,.13);color:var(--orbit-gold-soft);font-size:7.2pt;font-weight:800;letter-spacing:${n?"0":"1.3px"};text-transform:${n?"none":"uppercase"}} 1364 .doc-number{font-family:'Manrope','Noto Sans Arabic',sans-serif;font-size:15pt;font-weight:800;margin-top:2.2mm;line-height:1.1;overflow-wrap:anywhere} 1365 .doc-date{font-size:7.5pt;color:rgba(255,255,255,.7);margin-top:1.5mm} 1366 .doc-body{padding:${r?"4.5mm":a?"6.5mm":"8mm"} 9mm 5mm;flex:1} 1367 .section-label{font-size:6.8pt;line-height:1.2;color:var(--orbit-teal);font-weight:800;letter-spacing:${n?"0":".9px"};text-transform:${n?"none":"uppercase"};margin-bottom:1.4mm} 1368 .section-title{font-family:${n?"'Amiri','Noto Sans Arabic',serif":"'Manrope','Segoe UI',sans-serif"};font-size:14pt;line-height:1.2;color:var(--orbit-ink);font-weight:700} 1369 .info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3mm;margin-bottom:5mm} 1370 .info-card{padding:${r?"2.4mm":a?"3mm":"3.8mm"};background:var(--orbit-panel);border:1px solid var(--orbit-line);border-top:1.2mm solid var(--orbit-gold);min-width:0;break-inside:avoid} 1371 .info-card strong{display:block;font-size:10pt;line-height:1.3;overflow-wrap:anywhere} 1372 .info-card .muted{font-size:7.5pt;color:var(--orbit-muted);margin-top:1mm} 1373 .status-pill{display:inline-flex;align-items:center;gap:1.3mm;padding:1.1mm 2.6mm;border-radius:99px;background:#E8F2EF;color:var(--orbit-positive);font-size:7pt;font-weight:800;white-space:nowrap} 1374 .status-pill:before{content:"";width:1.5mm;height:1.5mm;border-radius:50%;background:currentColor} 1375 .status-pill.warn{background:#F5EEDA;color:#84621F}.status-pill.danger{background:#F7E4E1;color:var(--orbit-danger)} 1376 .data-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--orbit-line);font-size:${r?"7.1pt":a?"7.8pt":"8.3pt"};margin:2mm 0 4.5mm;table-layout:fixed} 1377 .data-table thead{display:table-header-group} 1378 .data-table thead th{background:var(--orbit-navy);color:#fff;padding:2.2mm 2.5mm;font-size:6.9pt;font-weight:700;text-align:start;border-inline-end:1px solid rgba(255,255,255,.12)} 1379 .data-table tbody td{padding:${r?"1.35mm 1.5mm":a?"2.1mm 2.5mm":"2.7mm 3mm"};border-top:1px solid var(--orbit-line);vertical-align:top;text-align:start;overflow-wrap:anywhere} 1380 .data-table tbody tr:nth-child(even){background:#FAF8F3} 1381 .data-table tr{break-inside:avoid;page-break-inside:avoid} 1382 .num{text-align:end!important;font-variant-numeric:tabular-nums}.center{text-align:center!important} 1383 .summary-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(58mm,72mm);gap:6mm;align-items:start;break-inside:avoid} 1384 .note-box{border-inline-start:1.2mm solid var(--orbit-gold);background:var(--orbit-paper);padding:3mm 4mm;color:#44545A;font-size:7.8pt;min-height:13mm;overflow-wrap:anywhere} 1385 .totals{border:1px solid var(--orbit-line);background:#fff;break-inside:avoid} 1386 .totals-row{display:flex;justify-content:space-between;gap:5mm;padding:2mm 3mm;border-bottom:1px solid var(--orbit-line);font-size:8.2pt} 1387 .totals-row:last-child{border-bottom:0}.totals-row strong{font-variant-numeric:tabular-nums} 1388 .totals-row.grand{background:linear-gradient(118deg,var(--orbit-ink),var(--orbit-teal));color:#fff;padding:3mm;font-size:11.5pt;font-weight:800} 1389 .totals-row.grand strong{color:var(--orbit-gold-soft)} 1390 .route-band{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:5mm;margin:4mm 0;padding:4.5mm 5mm;border-block:1px solid var(--orbit-line);background:linear-gradient(90deg,transparent,var(--orbit-paper),transparent);break-inside:avoid} 1391 .route-point{text-align:center}.route-code{font-family:'Manrope',sans-serif;font-size:22pt;line-height:1;font-weight:800;color:var(--orbit-ink);letter-spacing:1px}.route-caption{font-size:6.8pt;color:var(--orbit-muted);margin-top:1.4mm} 1392 .route-arrow{font-family:'Manrope',sans-serif;color:var(--orbit-gold);font-size:18pt;font-weight:400} 1393 .reference-box{border:1px solid var(--orbit-gold);background:#FBF7EC;padding:3.5mm;text-align:center;break-inside:avoid}.reference-box strong{display:block;font-family:'Manrope',monospace;font-size:18pt;letter-spacing:3.5px;margin-top:1mm} 1394 .signature-row{display:grid;grid-template-columns:1fr 1fr;gap:14mm;margin-top:7mm;break-inside:avoid}.signature{padding-top:8mm;border-top:1px solid var(--orbit-line);text-align:center;font-size:7pt;color:var(--orbit-muted)} 1395 .doc-footer{padding:3.5mm 9mm;background:var(--orbit-paper);border-top:1px solid var(--orbit-line);display:flex;justify-content:space-between;gap:5mm;align-items:center;font-size:6.5pt;color:var(--orbit-muted);break-inside:avoid} 1396 .doc-footer strong,.doc-footer a{color:var(--orbit-teal);text-decoration:none;font-weight:800}.doc-footer .legal{max-width:120mm}.doc-footer .signature-mark{white-space:nowrap;text-align:end} 1397 .ltr,.latin,[dir="ltr"]{direction:ltr;unicode-bidi:isolate}.latin{font-family:'Manrope','Segoe UI',Arial,sans-serif}
1397.auto,[dir="auto"]{unicode-bidi:plaintext} 1398 .keep{break-inside:avoid;page-break-inside:avoid}.page-break{break-before:page;page-break-before:always} 1399 @media print{ 1400 html,body{background:#fff}body{padding:0}.print-shell{width:100%;min-height:279mm;border:0;box-shadow:none} 1401 .print-shell:before{width:1.8mm}.doc-header{min-height:33mm;padding-top:6mm;padding-bottom:5mm} 1402 .doc-body{padding-top:${r?"4mm":a?"5.5mm":"7mm"}} 1403 .data-table,.info-card,.totals,.route-band,.reference-box,.signature-row,.doc-footer{break-inside:avoid;page-break-inside:avoid} 1404 } 1405 `}function x9(e){return["cancelled","overdue","refunded"].includes(e)?"status-pill danger":["draft","issued","sent","partially_paid"].includes(e)?"status-pill warn":"status-pill"}const yn=(e,t,n)=>e==="ar"?t:n,vo=(e,t)=>new Intl.NumberFormat(t==="ar"?"ar-JO":"en-GB",{maximumFractionDigits:2}).format(e||0),Xq=(e,t)=>({draft:yn(e,"Ù Ø³ÙØ¯Ø©","Draft"),sent:yn(e,"Ù Ø±Ø³ÙØ©","Sent"),paid:yn(e,"٠دÙÙØ¹Ø©","Paid"),partially_paid:yn(e,"٠دÙÙØ¹Ø© Ø¬Ø²Ø¦ÙØ§Ù","Partially paid"),overdue:yn(e,"٠تأخرة","Overdue"),cancelled:yn(e,"Ù ÙØºØ§Ø©","Cancelled")})[t]||t.replace(/_/g," ");function X2e(e,t){const n=h=>String(h??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""),a=Array.isArray(e.lineItems)?e.lineItems:[],r=a.length>6?"compact":"standard",i=n(e.currency||"JOD"),o=n(e.customerName||e.customer?.name||yn(t,"ع٠ÙÙ ÙÙØ¯Ù","Walk-in Customer")),c=a.map((h,x)=>`<tr> 1406 <td class="center latin">${x+1}</td> 1407 <td dir="auto">${n(h.description||"â")}</td> 1408 <td class="center latin"><bdi>${vo(h.quantity||1,t)}</bdi></td> 1409 <td class="num latin"><bdi>${vo(h.unitPrice||0,t)}</bdi></td> 1410 <td class="num latin"><bdi>${vo(h.total||0,t)}</bdi></td> 1411 </tr>`).join(""),l=String(e.status||"draft"),d=x9(l),m=e.notes?n(e.notes):yn(t,"Ø´ÙØ±Ø§Ù ÙØ§Ø®ØªÙارÙÙ IBRIX.","Thank you for choosing IBRIX.");return`<!doctype html><html lang="${t}" dir="${t==="ar"?"rtl":"ltr"}"><head><meta charset="utf-8"><meta name="author" content="IBRIX"><meta name="creator" content="IBRIX"><title>${n(e.invoiceNumber||yn(t,"ÙØ§ØªÙرة","Invoice"))} â IBRIX</title>${d6}<style>${m6(t,r)} 1412 .invoice-table col:nth-child(1){width:8%}.invoice-table col:nth-child(2){width:44%}.invoice-table col:nth-child(3){width:12%}.invoice-table col:nth-child(4),.invoice-table col:nth-child(5){width:18%} 1413 </style></head><body> 1414 <main class="print-shell"> 1415 <header class="doc-header"> 1416 <div class="brand-lockup"> 1417 <img class="brand-mark" src="/manus-storage/ibrix-logo_1fc1d3d8.png" alt="IBRIX"> 1418 <div><div class="brand-name latin">IBRIX</div><div class="brand-sub">${yn(t,"Ø§ÙØ³Ùر ÙØ§ÙتشغÙÙ ÙØ§Ùخد٠ة","Travel, operations, and service")}</div></div> 1419 </div> 1420 <div class="doc-identity"> 1421 <div class="doc-kicker">${yn(t,"ÙØ§ØªÙرة Ø¶Ø±ÙØ¨ÙØ©","Tax invoice")}</div> 1422 <div class="doc-number" dir="ltr"><bdi>${n(e.invoiceNumber||"â")}</bdi></div> 1423 <div class="doc-date" dir="ltr"><bdi>${n(e.invoiceDate||"â")}</bdi></div> 1424 </div> 1425 </header> 1426 1427 <section class="doc-body"> 1428 <div class="info-grid"> 1429 <div class="info-card"> 1430 <div class="section-label">${yn(t,"اÙÙØ§ØªÙرة Ø¥ÙÙ","Bill to")}</div> 1431 <strong dir="auto">${o}</strong> 1432 <div class="muted">${yn(t,"Ø§ÙØ¹Ù ÙÙ / Ø§ÙØ¬ÙØ© اÙ٠ستÙÙØ¯Ø©","Customer / beneficiary")}</div> 1433 </div> 1434 <div class="info-card"> 1435 <div class="section-label">${yn(t,"Ø§ÙØ§Ø³ØªØÙØ§Ù ÙØ§ÙØØ§ÙØ©","Due date & status")}</div> 1436 <strong class="latin" dir="ltr"><bdi>${n(e.dueDate||"â")}</bdi></strong> 1437 <div class="muted"><span class="${d}">${n(Xq(t,l))}</span></div> 1438 </div> 1439 </div> 1440 1441 <div class="section-label">${yn(t,"ØªÙØ§ØµÙÙ Ø§ÙØ®Ø¯Ù ات","Service details")}</div> 1442 <table class="data-table invoice-table"> 1443 <colgroup><col><col><col><col><col></colgroup> 1444 <thead><tr><th class="center">#</th><th>${yn(t,"اÙÙØµÙ","Description")}</th><th class="center">${yn(t,"اÙÙÙ ÙØ©","Qty")}</th><th class="num">${yn(t,"Ø§ÙØ³Ø¹Ø±","Price")}</th><th class="num">${yn(t,"اÙÙ Ø¬Ù ÙØ¹","Total")}</th></tr></thead> 1445 <tbody>${c||`<tr><td colspan="5" class="center">${yn(t,"ÙØ§ ØªÙØ¬Ø¯ بÙÙØ¯","No items")}</td></tr>`}</tbody> 1446 </table> 1447 1448 <div class="summary-grid"> 1449 <div> 1450 <div class="section-label">${yn(t,"Ù ÙØ§ØØ¸Ø§Øª","Notes")}</div> 1451 <div class="note-box" dir="auto">${m}</div> 1452 </div> 1453 <div class="totals"> 1454 <div class="totals-row"><span>${yn(t,"اÙÙ Ø¬Ù ÙØ¹ اÙÙØ±Ø¹Ù","Subtotal")}</span><strong dir="ltr"><bdi>${vo(e.subtotal,t)} ${i}</bdi></strong></div> 1455 <div class="totals-row"><span>${yn(t,"Ø§ÙØ¶Ø±Ùبة","Tax")}</span><strong dir="ltr"><bdi>${vo(e.taxAmount,t)} ${i}</bdi></strong></div> 1456 <div class="totals-row grand"><span>${yn(t,"Ø§ÙØ¥Ø¬Ù اÙÙ","Total")}</span><strong dir="ltr"><bdi>${vo(e.total,t)} ${i}</bdi></strong></div> 1457 <div class="totals-row"><span>${yn(t,"اÙ٠دÙÙØ¹","Paid")}</span><strong dir="ltr"><bdi>${vo(e.paidAmount,t)} ${i}</bdi></strong></div> 1458 <div class="totals-row"><span>${yn(t,"Ø§ÙØ±ØµÙد","Balance")}</span><strong dir="ltr"><bdi>${vo(e.balance,t)} ${i}</bdi></strong></div> 1459 </div> 1460 </div> 1461 </section> 1462 1463 <footer class="doc-footer"> 1464 <div class="legal">${yn(t,"تخضع Ø§ÙØ®Ø¯Ù ات ÙØ´Ø±ÙØ· Ù Ø²ÙØ¯Ù Ø§ÙØ®Ø¯Ù Ø© ÙØ§ÙتأÙÙØ¯ اÙÙØªØ§Ø¨Ù","Services are subject to provider terms and written confirmation.")} · <span class="latin" dir="ltr">[email protected]</span></div> 1465 <div class="signature-mark"><span dir="ltr">Designed by <a href="https://www.ibrix.digital">IBRIX</a> · www.ibrix.digital</span></div> 1466 </footer> 1467 </main> 1468 </body></html>`}function Q2e({lang:e}){const t=Pe.useUtils(),{data:n,isLoading:a}=Pe.accounting.invoices.list.useQuery(),{data:r}=Pe.accounting.customers.list.useQuery(),[i,o]=k.useState(!1),[c,l]=k.useState(null),[d,m]=k.useState({invoiceNumber:"",customerId:"",invoiceDate:new Date().toISOString().split("T")[0],dueDate:"",currency:"JOD",taxRate:0,notes:""}),[h,x]=k.useState([{description:"",quantity:1,unitPrice:0,total:0,accountCode:"4000"}]),f=Pe.accounting.invoices.create.useMutation({onSuccess:()=>
1468{t.accounting.invoices.list.invalidate(),t.accounting.dashboard.invalidate(),Le.success(yn(e,"تÙ
Ø¥ÙØ´Ø§Ø¡ اÙÙØ§ØªÙرة","Invoice created")),o(!1),m({invoiceNumber:"",customerId:"",invoiceDate:new Date().toISOString().split("T")[0],dueDate:"",currency:"JOD",taxRate:0,notes:""}),x([{description:"",quantity:1,unitPrice:0,total:0,accountCode:"4000"}])},onError:R=>Le.error(R.message)}),b=h.reduce((R,L)=>R+(L.total||0),0),y=Math.round(b*(d.taxRate||0)/100),w=b+y,T=(R,L,I)=>{const F=[...h];F[R][L]=I,F[R].total=F[R].quantity*F[R].unitPrice,x(F)},A=()=>x([...h,{description:"",quantity:1,unitPrice:0,total:0,accountCode:"4000"}]),E=R=>x(h.filter((L,I)=>I!==R)),D=()=>{if(!d.invoiceNumber){Le.error(yn(e,"رÙÙ
اÙÙØ§ØªÙرة Ù
Ø·ÙÙØ¨","Invoice number required"));return}f.mutate({...d,customerId:d.customerId?Number(d.customerId):null,dueDate:d.dueDate||null,taxRate:Number(d.taxRate),lineItems:h,subtotal:b,taxAmount:y,total:w,paidAmount:0,balance:w,status:"draft",notes:d.notes||null})},S={draft:"bg-gray-100 text-gray-700 dark:bg-gray-800 dark:text-gray-300",sent:"bg-blue-100 text-blue-700 dark:bg-blue-900 dark:text-blue-300",paid:"bg-emerald-100 text-emerald-700 dark:bg-emerald-900 dark:text-emerald-300",partially_paid:"bg-amber-100 text-amber-700 dark:bg-amber-900 dark:text-amber-300",overdue:"bg-red-100 text-red-700 dark:bg-red-900 dark:text-red-300",cancelled:"bg-gray-100 text-gray-500 dark:bg-gray-800 dark:text-gray-500"};return s.jsxs("div",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:179",className:"space-y-4",dir:e==="ar"?"rtl":"ltr",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:180",className:"flex items-center justify-between",children:[s.jsx("h3",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:181",className:"font-display text-lg font-bold",children:yn(e,"اÙÙÙØ§ØªÙر","Invoices")}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:182",size:"sm",onClick:()=>o(!0),children:[s.jsx(oa,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:183",className:"me-1.5 h-4 w-4"}),yn(e,"ÙØ§ØªÙرة Ø¬Ø¯ÙØ¯Ø©","New Invoice")]})]}),a?s.jsx("div",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:189",className:"flex justify-center py-12",children:s.jsx(ft,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:189",className:"w-6 h-6 animate-spin text-primary"})}):n?.length?s.jsx("div",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:196",className:"overflow-x-auto rounded-lg border border-border",children:s.jsxs("table",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:197",className:"w-full text-sm",children:[s.jsx("thead",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:198",className:"bg-muted/50",children:s.jsxs("tr",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:199",className:"text-start",children:[s.jsx("th",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:200",className:"px-4 py-3 font-medium",children:yn(e,"رÙÙ
اÙÙØ§ØªÙرة","Invoice #")}),s.jsx("th",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:201",className:"px-4 py-3 font-medium",children:yn(e,"Ø§ÙØªØ§Ø±ÙØ®","Date")}),s.jsx("th",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:202",className:"px-4 py-3 font-medium",children:yn(e,"Ø§ÙØ¥Ø¬Ù
اÙÙ","Total")}),s.jsx("th",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:203",className:"px-4 py-3 font-medium",children:yn(e,"اÙÙ
دÙÙØ¹","Paid")}),s.jsx("th",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:204",className:"px-4 py-3 font-medium",children:yn(e,"Ø§ÙØ±ØµÙد","Balance")}),s.jsx("th",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:205",className:"px-4 py-3 font-medium",children:yn(e,"Ø§ÙØØ§ÙØ©","Status")}),s.jsx("th",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:206",className:"px-4 py-3 font-medium",children:yn(e,"إجراءات","Actions")})]})}),s.jsx("tbody",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:209",children:n.map(R=>
1468s.jsxs("tr",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:211",className:"border-t border-border hover:bg-muted/30",children:[s.jsx("td",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:212",className:"px-4 py-3 font-medium text-start",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:212",children:R.invoiceNumber})}),s.jsx("td",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:213",className:"px-4 py-3 text-start text-muted-foreground",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:213",children:R.invoiceDate})}),s.jsx("td",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:214",className:"px-4 py-3 text-start tabular-nums",dir:"ltr",children:s.jsxs("bdi",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:214",children:[vo(R.total,e)," ",R.currency]})}),s.jsx("td",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:215",className:"px-4 py-3 text-start text-emerald-600 tabular-nums",dir:"ltr",children:s.jsxs("bdi",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:215",children:[vo(R.paidAmount,e)," ",R.currency]})}),s.jsx("td",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:216",className:"px-4 py-3 text-start text-amber-600 tabular-nums",dir:"ltr",children:s.jsxs("bdi",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:216",children:[vo(R.balance,e)," ",R.currency]})}),s.jsx("td",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:217",className:"px-4 py-3",children:s.jsx("span",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:218",className:`px-2 py-1 rounded-full text-xs font-medium ${S[R.status]||S.draft}`,children:Xq(e,R.status)})}),s.jsx("td",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:222",className:"px-4 py-3",children:s.jsx(Ie,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:223",size:"sm",variant:"ghost",onClick:()=>l(R),title:yn(e,"Ù
عاÙÙØ©","Preview"),children:s.jsx(Gi,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:224",className:"w-4 h-4"})})})]},R.id))})]})}):s.jsx(kn,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:191",children:s.jsxs(Un,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:191",className:"py-12 text-center text-muted-foreground",children:[s.jsx(ji,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:192",className:"w-10 h-10 mx-auto mb-3 opacity-40"}),yn(e,"ÙØ§ ØªÙØ¬Ø¯ ÙÙØ§ØªÙر بعد","No invoices yet")]})}),s.jsx(Ba,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:235",open:i,onOpenChange:o,children:s.jsxs(Fa,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:236",className:"max-w-3xl max-h-[90vh] overflow-y-auto",dir:e==="ar"?"rtl":"ltr",children:[s.jsx(as,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:237",children:s.jsx(Ua,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:238",children:yn(e,"Ø¥ÙØ´Ø§Ø¡ ÙØ§ØªÙرة Ø¬Ø¯ÙØ¯Ø©","Create New Invoice")})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:240",className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:241",className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:242",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:243",children:yn(e,"رÙÙ
اÙÙØ§ØªÙرة","Invoice Number")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:244",dir:"ltr",className:"text-left",value:d.invoiceNumber,onChange:R=>m({...d,invoiceNumber:R.target.value}),placeholder:"INV-2026-000001"})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:246",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:247",children:yn(e,"Ø§ÙØ¹Ù
ÙÙ","Customer")}),s.jsxs("select",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:248",className:"w-full h-9 rounded-md border border-input bg-background px-3 text-sm",value:d.customerId,onChange:R=>m({...d,customerId:R.target.value}
1468),children:[s.jsx("option",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:249",value:"",children:yn(e,"â Ø§Ø®ØªØ± â","â Select â")}),r?.map(R=>s.jsx("option",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:250",value:R.id,children:R.name},R.id))]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:253",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:254",children:yn(e,"ØªØ§Ø±ÙØ® اÙÙØ§ØªÙرة","Invoice Date")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:255",type:"date",dir:"ltr",value:d.invoiceDate,onChange:R=>m({...d,invoiceDate:R.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:257",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:258",children:yn(e,"ØªØ§Ø±ÙØ® Ø§ÙØ§Ø³ØªØÙاÙ","Due Date")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:259",type:"date",dir:"ltr",value:d.dueDate,onChange:R=>m({...d,dueDate:R.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:261",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:262",children:yn(e,"Ø§ÙØ¹Ù
ÙØ©","Currency")}),s.jsxs("select",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:263",dir:"ltr",className:"h-9 w-full rounded-md border border-input bg-background px-3 text-left text-sm",value:d.currency,onChange:R=>m({...d,currency:R.target.value}),children:[s.jsx("option",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:264",value:"JOD",children:"JOD"}),s.jsx("option",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:264",value:"USD",children:"USD"}),s.jsx("option",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:264",value:"EUR",children:"EUR"}),s.jsx("option",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:264",value:"SAR",children:"SAR"})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:267",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:268",children:yn(e,"ÙØ³Ø¨Ø© Ø§ÙØ¶Ø±Ùبة %","Tax Rate %")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:269",type:"number",dir:"ltr",className:"text-left",value:d.taxRate,onChange:R=>m({...d,taxRate:Number(R.target.value)})})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:274",className:"space-y-2",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:275",className:"flex items-center justify-between",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:276",className:"text-base font-semibold",children:yn(e,"بÙÙØ¯ اÙÙØ§ØªÙرة","Line Items")}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:277",size:"sm",variant:"outline",onClick:A,children:[s.jsx(oa,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:277",className:"me-1 h-3 w-3"}),yn(e,"Ø¥Ø¶Ø§ÙØ©","Add")]})]}),h.map((R,L)=>s.jsxs("div",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:280",className:"grid grid-cols-12 gap-2 items-end",children:[s.jsx("div",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:281",className:"col-span-5",children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:282",placeholder:yn(e,"اÙÙØµÙ","Description"),value:R.description,onChange:I=>T(L,"description",I.target.value)})}),s.jsx("div",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:284",className:"col-span-2",children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:285",type:"number",dir:"ltr",className:"text-left",placeholder:yn(e,"اÙÙÙ
ÙØ©","Qty"),value:R.quantity,onChange:I=>T(L,"quantity",Number(I.target.value))})}),s.jsx("div",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:287",className:"col-span-2",children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:288",type:"number",dir:"ltr",className:"text-left",placeholder:yn(e,"Ø§ÙØ³Ø¹Ø±","Price"),value:R.unitPrice,onChange:I=>T(L,"unitPrice",Number(I.target.value))})}
1468),s.jsx("div",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:290",className:"col-span-2",children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:291",readOnly:!0,dir:"ltr",value:vo(R.total,e),className:"bg-muted/50 text-left tabular-nums"})}),s.jsx("div",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:293",className:"col-span-1",children:h.length>1&&s.jsx(Ie,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:294",size:"sm",variant:"ghost",onClick:()=>E(L),children:s.jsx(ks,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:294",className:"w-4 h-4 text-red-500"})})})]},L))]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:301",className:"ms-auto w-64 space-y-2",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:302",className:"flex justify-between text-sm",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:302",children:yn(e,"اÙÙ
جÙ
ÙØ¹ اÙÙØ±Ø¹Ù","Subtotal")}),s.jsxs("bdi",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:302",dir:"ltr",children:[vo(b,e)," ",d.currency]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:303",className:"flex justify-between text-sm",children:[s.jsxs("span",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:303",children:[yn(e,"Ø§ÙØ¶Ø±Ùبة","Tax")," ",s.jsxs("bdi",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:303",dir:"ltr",children:["(",vo(d.taxRate,e),"%)"]})]}),s.jsxs("bdi",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:303",dir:"ltr",children:[vo(y,e)," ",d.currency]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:304",className:"flex justify-between border-t border-border pt-2 font-bold",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:304",children:yn(e,"Ø§ÙØ¥Ø¬Ù
اÙÙ","Total")}),s.jsxs("bdi",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:304",dir:"ltr",children:[vo(w,e)," ",d.currency]})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:307",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:308",children:yn(e,"Ù
ÙØ§ØØ¸Ø§Øª","Notes")}),s.jsx(es,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:309",value:d.notes,onChange:R=>m({...d,notes:R.target.value}),rows:2})]})]}),s.jsxs(ei,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:312",children:[s.jsx(Ie,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:313",variant:"outline",onClick:()=>o(!1),children:yn(e,"Ø¥ÙØºØ§Ø¡","Cancel")}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:314",onClick:D,disabled:f.isPending,children:[f.isPending&&s.jsx(ft,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:315",className:"me-1.5 h-4 w-4 animate-spin"}),yn(e,"Ø¥ÙØ´Ø§Ø¡","Create")]})]})]})}),s.jsx(u6,{"data-loc":"client/src/components/accounting/InvoicesTab.tsx:323",open:!!c,onClose:()=>l(null),title:yn(e,`ÙØ§ØªÙرة â${c?.invoiceNumber||""}â`,`Invoice ${c?.invoiceNumber||""}`),htmlContent:c?X2e(c,e):"",lang:e,emailSubject:yn(e,`ÙØ§ØªÙرة â${c?.invoiceNumber||""}â â IBRIX`,`Invoice ${c?.invoiceNumber||""} â IBRIX`),customerEmail:c?.customer?.email||c?.customerEmail,customerName:c?.customerName||c?.customer?.name})]})}const nn=(e,t,n)=>e==="ar"?t:n,Jy=(e,t)=>new Intl.NumberFormat(t==="ar"?"ar-JO":"en-JO",{minimumFractionDigits:2,maximumFractionDigits:2}).format(e||0),WI=(e,t)=>new Intl.NumberFormat(t==="ar"?"ar-JO":"en-JO").format(e||0),Wy=()=>new Date().toISOString().split("T")[0],I1=()=>({accountCode:"",debit:0,credit:0,memo:""}),YI={draft:{ar:"Ù
Ø³ÙØ¯Ø©",en:"Draft",className:"border-slate-400/20 bg-slate-400/10 text-slate-300"},pending_approval:{ar:"Ø¨Ø§ÙØªØ¸Ø§Ø± Ø§ÙØ§Ø¹ØªÙ
اد",en:"Pending approval",className:"border-amber-300/20 bg-amber-300/10 text-amber-200"},approved:{ar:"Ù
عتÙ
د",en:"Approved",className:"border-sky-300/20 bg-sky-300/10 text-sky-200"},posted:{ar:"Ù
رØÙÙ",en:"Posted",className:"border-emerald-300/20 bg-emerald-300/10 text-emerald-200"},rejected:{ar:"Ù
رÙÙØ¶",en:"Rejected",className:"border-rose-300/20 bg-rose-300/10 text-rose-200"},voided:{ar:"Ù
ÙØºÙ",en:"Voided",className:"border-rose-300/20 bg-rose-300/10 text-rose-200"}},K2e={open:{ar:"Ù
ÙØªÙØØ©",en:"Open",className:"bg-emerald-300/10 text-emerald-200"},soft_closed:{ar:"Ø¥ÙÙØ§Ù تÙ
ÙÙØ¯Ù",en:"Soft closed",className:"bg-amber-300/10 text-amber-200"},closed:{ar:"Ù
ÙÙÙØ©",en:"Closed",className:"bg-rose-300/10 text-rose-200"}};function Z2e({lang:e,role:t="accountant"}){const n=Pe.useUtils(),a=t==="admin",{data:r,isLoading:i}=Pe.accounting.journal.list.useQuery(),{data:o,isLoading:c}=Pe.accounting.accountingPeriods.list.useQuery(),[l,d]=k.useState(!1),[m,h]=k.useState(!1),[x,f]=k.useState(null),[b,y]=k.useState(""),[w,T]=k.useState({entryNumber:"",entryDate:Wy(),description:""}),[A,E]=k.useState({periodCode:"",nameAr:"",nameEn:"",startDate:Wy().slice(0,7)+"-01",endD
1468ate:Wy()}),[D,S]=k.useState([I1(),I1()]),R=async()=>{await Promise.all([n.accounting.journal.list.invalidate(),n.accounting.accountingPeriods.list.invalidate()])},L=Pe.accounting.journal.create.useMutation({onSuccess:async()=>{await R(),Le.success(nn(e,"ØÙÙØ¸ اÙÙÙØ¯ ÙÙ
Ø³ÙØ¯Ø© ÙØ§Ø¨ÙØ© ÙÙÙ
راجعة","Journal saved as a reviewable draft")),d(!1),T({entryNumber:"",entryDate:Wy(),description:""}),S([I1(),I1()])},onError:Y=>Le.error(Y.message)}),I=Pe.accounting.journal.submitForApproval.useMutation({onSuccess:async()=>{await R(),Le.success(nn(e,"Ø£ÙØ±Ø³Ù اÙÙÙØ¯ ÙÙØ§Ø¹ØªÙ
اد","Journal sent for approval"))},onError:Y=>Le.error(Y.message)}),F=Pe.accounting.journal.post.useMutation({onSuccess:async()=>{await R(),Le.success(nn(e,"اعتÙ
د اÙÙÙØ¯ ÙØ±ÙØÙ٠إÙ٠اÙÙØªØ±Ø© اÙÙ
ÙØªÙØØ©","Journal approved and posted to the open period"))},onError:Y=>Le.error(Y.message)}),_=Pe.accounting.journal.reject.useMutation({onSuccess:async()=>{await R(),Le.success(nn(e,"Ø£Ø¹ÙØ¯ اÙÙÙØ¯ Ø¥Ù٠اÙÙ
ÙØ´Ø¦ Ù
ع سبب Ø§ÙØ±Ùض","Journal returned to its creator with a rejection reason")),f(null),y("")},onError:Y=>Le.error(Y.message)}),U=Pe.accounting.accountingPeriods.create.useMutation({onSuccess:async()=>{await n.accounting.accountingPeriods.list.invalidate(),Le.success(nn(e,"Ø£ÙÙØ´Ø¦Øª اÙÙØªØ±Ø© اÙÙ
ØØ§Ø³Ø¨ÙØ©","Accounting period created")),h(!1)},onError:Y=>Le.error(Y.message)}),O=Pe.accounting.accountingPeriods.setStatus.useMutation({onSuccess:async()=>{await n.accounting.accountingPeriods.list.invalidate(),Le.success(nn(e,"ØÙدثت ØØ§ÙØ© اÙÙØªØ±Ø© ÙØ³ÙØ¬Ù Ø§ÙØ¥Ø¬Ø±Ø§Ø¡","Period status updated and audited"))},onError:Y=>Le.error(Y.message)}),W=k.useMemo(()=>D.reduce((Y,z)=>Y+(z.debit||0),0),[D]),J=k.useMemo(()=>D.reduce((Y,z)=>Y+(z.credit||0),0),[D]),oe=D.filter(Y=>Y.accountCode.trim()),G=W===J&&W>0&&oe.length>=2,K=o?.filter(Y=>Y.status==="open").length??0,ee=r?.filter(Y=>Y.status==="pending_approval").length??0,pe=(Y,z,H)=>{S(ne=>ne.map((te,me)=>
1468me===Y?{...te,[z]:H}:te))},V=(Y,z)=>{const H=z==="open"?null:nn(e,"ØªØØ¯ÙØ« ØØ§ÙØ© اÙÙØªØ±Ø© Ù
٠شاشة Ø§ÙØ±Ùابة","Period status updated from the control center");O.mutate({id:Y,status:z,reason:H})};return s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:131",className:"space-y-5",children:[s.jsxs("section",{"data-loc":"client/src/components/accounting/JournalTab.tsx:132",className:"grid gap-3 sm:grid-cols-3",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:133",className:"rounded-2xl border border-cyan-300/10 bg-cyan-300/[0.045] p-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:134",className:"flex items-center justify-between",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/JournalTab.tsx:134",className:"text-xs text-slate-400",children:nn(e,"ÙØªØ±Ø§Øª Ù
ÙØªÙØØ©","Open periods")}),s.jsx(jk,{"data-loc":"client/src/components/accounting/JournalTab.tsx:134",className:"h-4 w-4 text-cyan-300"})]}),s.jsx("p",{"data-loc":"client/src/components/accounting/JournalTab.tsx:135",className:"mt-2 text-2xl font-semibold text-white",children:c?"â":WI(K,e)})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:137",className:"rounded-2xl border border-amber-300/10 bg-amber-300/[0.045] p-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:138",className:"flex items-center justify-between",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/JournalTab.tsx:138",className:"text-xs text-slate-400",children:nn(e,"Ø¨Ø§ÙØªØ¸Ø§Ø± Ø§ÙØ§Ø¹ØªÙ
اد","Pending approval")}),s.jsx(X0,{"data-loc":"client/src/components/accounting/JournalTab.tsx:138",className:"h-4 w-4 text-amber-300"})]}),s.jsx("p",{"data-loc":"client/src/components/accounting/JournalTab.tsx:139",className:"mt-2 text-2xl font-semibold text-white",children:i?"â":WI(ee,e)})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:141",className:"rounded-2xl border border-emerald-300/10 bg-emerald-300/[0.045] p-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:142",className:"flex items-center justify-between",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/JournalTab.tsx:142",className:"text-xs text-slate-400",children:nn(e,"Ø±ÙØ§Ø¨Ø© Ø§ÙØªØ±ØÙÙ","Posting control")}),s.jsx(sa,{"data-loc":"client/src/components/accounting/JournalTab.tsx:142",className:"h-4 w-4 text-emerald-300"})]}),s.jsx("p",{"data-loc":"client/src/components/accounting/JournalTab.tsx:143",className:"mt-2 text-sm font-semibold text-emerald-100",children:nn(e,"Ù
ÙØ´Ø¦ اÙÙÙØ¯ ÙØ§ ÙØ±ØÙÙÙ","Creator cannot post own entry")})]})]}),s.jsxs("section",{"data-loc":"client/src/components/accounting/JournalTab.tsx:147",className:"rounded-2xl border border-white/[0.07] bg-white/[0.025] p-4 md:p-5",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:148",className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:149",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:150",className:"flex items-center gap-2",children:[s.jsx(jk,{"data-loc":"client/src/components/accounting/JournalTab.tsx:150",className:"h-5 w-5 text-cyan-300"}),s.jsx("h3",{"data-loc":"client/src/components/accounting/JournalTab.tsx:150",className:"font-display text-lg font-bold text-white",children:nn(e,"اÙÙØªØ±Ø§Øª اÙÙ
ØØ§Ø³Ø¨ÙØ©","Accounting periods")})]}),s.jsx("p",{"data-loc":"client/src/components/accounting/JournalTab.tsx:151",className:"mt-1 text-xs leading-5 text-slate-500",children:nn(e,"Ø§ÙØ¥ÙÙØ§Ù ÙÙ
ÙØ¹ أ٠ترØÙÙ Ø¬Ø¯ÙØ¯Ø ÙØ§ÙØ¥ÙÙØ§Ù Ø§ÙØªÙ
ÙÙØ¯Ù ÙØªØ·Ùب ÙØªØ اÙÙØªØ±Ø© ÙØ¨Ù Ø§ÙØªØ±ØÙÙ.","Closed and soft-closed periods block new postings until an administrator reopens them.")})]}),a&&s.jsxs(Ie,{"data-loc":"client/src/components/accounting/JournalTab.tsx:153",size:"sm",variant:"outline",onClick:()=>h(!0),className:"border-white/10 bg-white/[0.03]",children:[s.jsx(oa,{"data-loc":"client/src/components/
1468accounting/JournalTab.tsx:153",className:"h-4 w-4"}),nn(e,"ÙØªØ±Ø© Ø¬Ø¯ÙØ¯Ø©","New period")]})]}),c?s.jsx("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:155",className:"flex justify-center py-8",children:s.jsx(ft,{"data-loc":"client/src/components/accounting/JournalTab.tsx:155",className:"h-5 w-5 animate-spin text-cyan-300"})}):o?.length?s.jsx("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:158",className:"mt-4 grid gap-3 lg:grid-cols-2",children:o.map(Y=>{const z=K2e[Y.status||"open"];return s.jsxs("article",{"data-loc":"client/src/components/accounting/JournalTab.tsx:161",className:"rounded-xl border border-white/[0.07] bg-black/10 p-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:162",className:"flex flex-wrap items-start justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:163",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/JournalTab.tsx:163",className:"font-semibold text-white",dir:"auto",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/JournalTab.tsx:163",children:e==="ar"?Y.nameAr:Y.nameEn})}),s.jsx("p",{"data-loc":"client/src/components/accounting/JournalTab.tsx:163",className:"mt-1 font-mono text-xs text-slate-600",dir:"ltr",children:s.jsxs("bdi",{"data-loc":"client/src/components/accounting/JournalTab.tsx:163",children:[Y.periodCode," · ",Y.startDate," â ",Y.endDate]})})]}),s.jsx("span",{"data-loc":"client/src/components/accounting/JournalTab.tsx:164",className:`rounded-full px-2.5 py-1 text-[11px] font-semibold ${z.className}`,children:nn(e,z.ar,z.en)})]}),a&&s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:166",className:"mt-4 flex flex-wrap gap-2",children:[Y.status!=="open"&&s.jsxs(Ie,{"data-loc":"client/src/components/accounting/JournalTab.tsx:167",size:"sm",variant:"outline",disabled:O.isPending,onClick:()=>V(Y.id,"open"),children:[s.jsx(Z0,{"data-loc":"client/src/components/accounting/JournalTab.tsx:167",className:"h-3.5 w-3.5"}),nn(e,"ÙØªØ","Open")]}),Y.status==="open"&&s.jsxs(Ie,{"data-loc":"client/src/components/accounting/JournalTab.tsx:168",size:"sm",variant:"outline",disabled:O.isPending,onClick:()=>V(Y.id,"soft_closed"),children:[s.jsx(gu,{"data-loc":"client/src/components/accounting/JournalTab.tsx:168",className:"h-3.5 w-3.5"}),nn(e,"Ø¥ÙÙØ§Ù تÙ
ÙÙØ¯Ù","Soft close")]}),Y.status!=="closed"&&s.jsxs(Ie,{"data-loc":"client/src/components/accounting/JournalTab.tsx:169",size:"sm",variant:"outline",disabled:O.isPending,onClick:()=>V(Y.id,"closed"),className:"border-rose-300/15 text-rose-200",children:[s.jsx(pP,{"data-loc":"client/src/components/accounting/JournalTab.tsx:169",className:"h-3.5 w-3.5"}),nn(e,"Ø¥ÙÙØ§Ù ÙÙØ§Ø¦Ù","Close")]})]})]},Y.id)})}):s.jsx("p",{"data-loc":"client/src/components/accounting/JournalTab.tsx:156",className:"mt-4 rounded-xl border border-dashed border-white/10 px-4 py-8 text-center text-sm text-slate-500",children:nn(e,"ÙØ§ ØªÙØ¬Ø¯ ÙØªØ±Ø© Ù
Ø¹Ø±ÙØ©. ÙØ¬Ø¨ عÙ٠اÙÙ
Ø¯ÙØ± Ø¥ÙØ´Ø§Ø¡ ÙØªØ±Ø© ÙØ¨Ù ترØÙ٠اÙÙÙÙØ¯.","No period is configured. An administrator must create one before journals can be posted.")})]}),s.jsxs("section",{"data-loc":"client/src/components/accounting/JournalTab.tsx:177",className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:178",className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:179",children:[s.jsx("h3",{"data-loc":"client/src/components/accounting/JournalTab.tsx:179",className:"font-display text-lg font-bold text-white",children:nn(e,"اÙÙÙÙØ¯ اÙÙÙÙ
ÙØ©","Journal entries")}),s.jsx("p",{"data-loc":"client/src/components/accounting/JournalTab.tsx:179",className:"mt-1 text-xs text-slate-500",children:nn(e,"ÙÙ ÙÙØ¯ ÙØ¨Ø¯Ø£ Ù
Ø³ÙØ¯Ø©Ø Ø«Ù
ÙØ±Ø³ÙÙ Ù
ÙØ´Ø¦Ù ÙÙØ§Ø¹ØªÙ
اد ÙØ¨Ù Ø§ÙØªØ±ØÙÙ.","Every entry starts as a draft and must be submitted for independent approval before posting.")})]}
1468),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/JournalTab.tsx:180",size:"sm",onClick:()=>d(!0),children:[s.jsx(oa,{"data-loc":"client/src/components/accounting/JournalTab.tsx:180",className:"h-4 w-4"}),nn(e,"ÙÙØ¯ Ø¬Ø¯ÙØ¯","New entry")]})]}),i?s.jsx("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:183",className:"flex justify-center py-12",children:s.jsx(ft,{"data-loc":"client/src/components/accounting/JournalTab.tsx:183",className:"h-6 w-6 animate-spin text-primary"})}):r?.length?s.jsx("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:186",className:"space-y-3",children:r.map(Y=>{const z=Y.status||(Y.isPosted?"posted":"draft"),H=YI[z]??YI.draft;return s.jsx(kn,{"data-loc":"client/src/components/accounting/JournalTab.tsx:190",className:"overflow-hidden",children:s.jsxs(Un,{"data-loc":"client/src/components/accounting/JournalTab.tsx:191",className:"p-0",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:192",className:"flex flex-col gap-3 border-b border-border/50 p-4 sm:flex-row sm:items-start sm:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:193",className:"min-w-0",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:194",className:"flex flex-wrap items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/JournalTab.tsx:194",className:"font-semibold text-foreground",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/JournalTab.tsx:194",children:Y.entryNumber})}),s.jsx("span",{"data-loc":"client/src/components/accounting/JournalTab.tsx:194",className:`rounded-full border px-2.5 py-1 text-[11px] font-semibold ${H.className}`,children:nn(e,H.ar,H.en)}),s.jsx("span",{"data-loc":"client/src/components/accounting/JournalTab.tsx:194",className:"text-xs text-muted-foreground",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/JournalTab.tsx:194",children:Y.entryDate})})]}),s.jsx("p",{"data-loc":"client/src/components/accounting/JournalTab.tsx:195",className:"mt-2 break-words text-sm text-muted-foreground",children:Y.description||nn(e,"Ù
٠دÙÙ ÙØµÙ","No description")}),s.jsxs("p",{"data-loc":"client/src/components/accounting/JournalTab.tsx:196",className:"mt-2 text-[11px] text-muted-foreground",children:[nn(e,"اÙÙ
ÙØ´Ø¦","Creator"),": ",Y.createdBy||"â",Y.periodId?` · ${nn(e,"اÙÙØªØ±Ø©","Period")} #${Y.periodId}`:""]}),Y.rejectionReason&&s.jsxs("p",{"data-loc":"client/src/components/accounting/JournalTab.tsx:197",className:"mt-2 rounded-lg bg-rose-500/10 px-3 py-2 text-xs text-rose-600 dar
1468k:text-rose-300",children:[nn(e,"سبب Ø§ÙØ±Ùض","Rejection reason"),": ",Y.rejectionReason]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:199",className:"flex shrink-0 flex-wrap gap-2",children:[(z==="draft"||z==="rejected")&&s.jsxs(Ie,{"data-loc":"client/src/components/accounting/JournalTab.tsx:200",size:"sm",variant:"outline",disabled:I.isPending,onClick:()=>I.mutate({id:Y.id}),children:[s.jsx(Zb,{"data-loc":"client/src/components/accounting/JournalTab.tsx:200",className:"h-3.5 w-3.5"}),nn(e,"Ø·ÙØ¨ اعتÙ
اد","Submit")]}),z==="pending_approval"&&s.jsxs(s.Fragment,{children:[s.jsxs(Ie,{"data-loc":"client/src/components/accounting/JournalTab.tsx:202",size:"sm",disabled:F.isPending||K===0,onClick:()=>F.mutate({id:Y.id}),children:[s.jsx(ns,{"data-loc":"client/src/components/accounting/JournalTab.tsx:202",className:"h-3.5 w-3.5"}),nn(e,"اعتÙ
اد ÙØªØ±ØÙÙ","Approve & post")]}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/JournalTab.tsx:203",size:"sm",variant:"outline",onClick:()=>
1468f(Y.id),className:"border-rose-300/20 text-rose-600 dark:text-rose-200",children:[s.jsx(pP,{"data-loc":"client/src/components/accounting/JournalTab.tsx:203",className:"h-3.5 w-3.5"}),nn(e,"Ø±ÙØ¶","Reject")]})]})]})]}),Y.lines?.length>0&&s.jsx("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:207",className:"overflow-x-auto",children:s.jsxs("table",{"data-loc":"client/src/components/accounting/JournalTab.tsx:207",className:"w-full min-w-[560px] text-sm",children:[s.jsx("thead",{"data-loc":"client/src/components/accounting/JournalTab.tsx:207",className:"bg-muted/35 text-muted-foreground",children:s.jsxs("tr",{"data-loc":"client/src/components/accounting/JournalTab.tsx:207",className:"text-start",children:[s.jsx("th",{"data-loc":"client/src/components/accounting/JournalTab.tsx:207",className:"px-4 py-2.5 text-start font-medium",children:nn(e,"Ø§ÙØØ³Ø§Ø¨","Account")}),s.jsx("th",{"data-loc":"client/src/components/accounting/JournalTab.tsx:207",className:"px-4 py-2.5 text-end font-medium",children:nn(e,"Ù
دÙÙ","Debit")}),s.jsx("th",{"data-loc":"client/src/components/accounting/JournalTab.tsx:207",className:"px-4 py-2.5 text-end font-medium",children:nn(e,"دائÙ","Credit")})]})}),s.jsx("tbody",{"data-loc":"client/src/components/accounting/JournalTab.tsx:207",children:Y.lines.map((ne,te)=>s.jsxs("tr",{"data-loc":"client/src/components/accounting/JournalTab.tsx:207",className:"border-t border-border/40",children:[s.jsx("td",{"data-loc":"client/src/components/accounting/JournalTab.tsx:207",className:"px-4 py-2.5 font-mono",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/JournalTab.tsx:207",children:ne.accountCode})}),s.jsx("td",{"data-loc":"client/src/components/accounting/JournalTab.tsx:207",className:"px-4 py-2.5 text-end tabular-nums",dir:"auto",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/JournalTab.tsx:207",children:ne.debit?Jy(ne.debit,e):"â"})}),s.jsx("td",{"data-loc":"client/src/components/accounting/JournalTab.tsx:207",className:"px-4 py-2.5 text-end tabular-nums",dir:"auto",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/JournalTab.tsx:207",children:ne.credit?Jy(ne.credit,e):"â"})})]},`${Y.id}-${te}`))})]})})]})},Y.id)})}):s.jsx(kn,{"data-loc":"client/src/components/accounting/JournalTab.tsx:184",children:s.jsxs(Un,{"data-loc":"client/src/components/accounting/JournalTab.tsx:184",className:"py-12 text-center text-muted-foreground",children:[s.jsx(Bre,{"data-loc":"client/src/components/accounting/JournalTab.tsx:184",className:"mx-auto mb-3 h-10 w-10 opacity-40"}),nn(e,"ÙØ§ ØªÙØ¬Ø¯ ÙÙÙØ¯ بعد","No journal entries yet")]})})]}),s.jsx(Ba,{"data-loc":"client/src/components/accounting/JournalTab.tsx:215",open:l,onOpenChange:d,children:s.jsxs(Fa,{"data-loc":"client/src/components/accounting/JournalTab.tsx:216",className:"max-h-[90vh] max-w-2xl overflow-y-auto",children:[s.jsx(as,{"data-loc":"client/src/components/accounting/JournalTab.tsx:217",children:s.jsx(Ua,{"data-loc":"client/src/components/accounting/JournalTab.tsx:217",children:nn(e,"Ø¥ÙØ´Ø§Ø¡ ÙÙØ¯ Ù
Ø³ÙØ¯Ø©","Create draft journal")})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:218",className:"space-y-4",children:[s.jsx("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:219",className:"rounded-xl border border-cyan-500/15 bg-cyan-500/5 px-4 py-3 text-xs leading-5 text-cyan-800 dark:text-cyan-100",children:nn(e,"ÙÙ ÙÙØ±ØÙ٠اÙÙÙØ¯ Ø¹ÙØ¯ Ø§ÙØÙØ¸. أرسÙÙ ÙÙØ§Ø¹ØªÙ
اد بعد اÙÙ
Ø±Ø§Ø¬Ø¹Ø©Ø ÙØ³ÙÙ
ÙØ¹ اÙÙØ¸Ø§Ù
Ù
ÙØ´Ø¦Ù Ù
٠اعتÙ
اد٠بÙÙØ³Ù.","Saving never posts the entry. Submit it after review; the system prevents its creator from approving it.")}),s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:220",className:"grid gap-4 sm:grid-cols-2",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:221",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/JournalTab.tsx:221",children:nn(e,"رÙÙ
اÙÙÙØ¯","Entry number")}
1468),s.jsx(Ee,{"data-loc":"client/src/components/accounting/JournalTab.tsx:221",dir:"ltr",className:"text-left",value:w.entryNumber,onChange:Y=>T({...w,entryNumber:Y.target.value}),placeholder:"JE-2026-000001"})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:222",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/JournalTab.tsx:222",children:nn(e,"Ø§ÙØªØ§Ø±ÙØ®","Date")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/JournalTab.tsx:222",dir:"ltr",className:"text-left",type:"date",value:w.entryDate,onChange:Y=>T({...w,entryDate:Y.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:223",className:"sm:col-span-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/JournalTab.tsx:223",children:nn(e,"اÙÙØµÙ","Description")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/JournalTab.tsx:223",value:w.description,onChange:Y=>T({...w,description:Y.target.value})})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:225",className:"space-y-2",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:226",className:"flex items-center justify-between",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/JournalTab.tsx:226",className:"text-base font-semibold",children:nn(e,"بÙÙØ¯ اÙÙÙØ¯","Entry lines")}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/JournalTab.tsx:226",size:"sm",variant:"outline",onClick:()=>S(Y=>[...Y,I1()]),children:[s.jsx(oa,{"data-loc":"client/src/components/accounting/JournalTab.tsx:226",className:"h-3.5 w-3.5"}),nn(e,"Ø¥Ø¶Ø§ÙØ©","Add")]})]}),D.map((Y,z)=>s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:227",className:"grid grid-cols-12 items-end gap-2 rounded-xl border border-border/50 p-2",children:[s.jsx("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:228",className:"col-span-12 sm:col-span-4",children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/JournalTab.tsx:228",dir:"ltr",className:"text-left","aria-label":nn(e,"رÙ
ز Ø§ÙØØ³Ø§Ø¨","Account code"),placeholder:nn(e,"رÙ
ز Ø§ÙØØ³Ø§Ø¨","Account code"),value:Y.accountCode,onChange:H=>pe(z,"accountCode",H.target.value)})}),s.jsx("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:229",className:"col-span-5 sm:col-span-3",children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/JournalTab.tsx:229",dir:"ltr",className:"text-left","aria-label":nn(e,"Ù
دÙÙ","Debit"),type:"number",min:"0",placeholder:nn(e,"Ù
دÙÙ","Debit"),value:Y.debit,onChange:H=>pe(z,"debit",Number(H.target.value))})}),s.jsx("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:230",className:"col-span-5 sm:col-span-3",children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/JournalTab.tsx:230",dir:"ltr",className:"text-left","aria-label":nn(e,"دائÙ","Credit"),type:"number",min:"0",placeholder:nn(e,"دائÙ","Credit"),value:Y.credit,onChange:H=>pe(z,"credit",Number(H.target.value))})}),s.jsx("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:231",className:"col-span-2 flex justify-end",children:D.length>2&&s.jsx(Ie,{"data-loc":"client/src/components/accounting/JournalTab.tsx:231",size:"icon",variant:"ghost","aria-label":nn(e,"ØØ°Ù Ø§ÙØ¨Ùد","Remove line"),onClick:()=>S(H=>H.filter((ne,te)=>te!==z)),children:s.jsx(ks,{"data-loc":"client/src/components/accounting/JournalTab.tsx:231",className:"h-4 w-4 text-rose-500"})})}),s.jsx("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:232",className:"col-span-12",children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/JournalTab.tsx:232","aria-label":nn(e,"Ù
ÙØ§ØØ¸Ø© Ø§ÙØ¨Ùد","Line memo"),placeholder:nn(e,"Ù
ÙØ§ØØ¸Ø© Ø§Ø®ØªÙØ§Ø±ÙØ©","Optional memo"),value:Y.memo,onChange:H=>pe(z,"memo",H.target.value)})})]},z))]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:235",className:"flex flex-col gap-2 border-t pt-3 sm:flex-row sm:items-center sm:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/components/
1468accounting/JournalTab.tsx:235",className:"flex flex-wrap gap-4 text-sm",children:[s.jsxs("span",{"data-loc":"client/src/components/accounting/JournalTab.tsx:235",children:[nn(e,"Ù
دÙÙ","Debit"),": ",s.jsx("strong",{"data-loc":"client/src/components/accounting/JournalTab.tsx:235",dir:"auto",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/JournalTab.tsx:235",children:Jy(W,e)})})]}),s.jsxs("span",{"data-loc":"client/src/components/accounting/JournalTab.tsx:235",children:[nn(e,"دائÙ","Credit"),": ",s.jsx("strong",{"data-loc":"client/src/components/accounting/JournalTab.tsx:235",dir:"auto",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/JournalTab.tsx:235",children:Jy(J,e)})})]})]}),s.jsx("span",{"data-loc":"client/src/components/accounting/JournalTab.tsx:235",className:`text-sm font-semibold ${G?"text-emerald-600":"text-rose-600"}`,children:G?nn(e,"Ù
ØªÙØ§Ø²Ù","Balanced"):nn(e,"ÙÙØ²Ù
سطرا٠Ù
ØªÙØ§Ø²ÙاÙ","Two balanced lines required")})]})]}),s.jsxs(ei,{"data-loc":"client/src/components/accounting/JournalTab.tsx:237",children:[s.jsx(Ie,{"data-loc":"client/src/components/accounting/JournalTab.tsx:237",variant:"outline",onClick:()=>d(!1),children:nn(e,"Ø¥ÙØºØ§Ø¡","Cancel")}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/JournalTab.tsx:237",onClick:()=>L.mutate({...w,description:w.description||null,lines:oe.map(Y=>({accountCode:Y.accountCode,debit:Y.debit,credit:Y.credit,description:Y.memo||null}))}),disabled:L.isPending||!G,children:[L.isPending&&s.jsx(ft,{"data-loc":"client/src/components/accounting/JournalTab.tsx:237",className:"h-4 w-4 animate-spin"}),nn(e,"ØÙظ Ù
Ø³ÙØ¯Ø©","Save draft")]})]})]})}),s.jsx(Ba,{"data-loc":"client/src/components/accounting/JournalTab.tsx:241",open:m,onOpenChange:h,children:s.jsxs(Fa,{"data-loc":"client/src/components/accounting/JournalTab.tsx:242",className:"max-w-lg",children:[s.jsx(as,{"data-loc":"client/src/components/accounting/JournalTab.tsx:243",children:s.jsx(Ua,{"data-loc":"client/src/components/accounting/JournalTab.tsx:243",children:nn(e,"ÙØªØ±Ø© Ù
ØØ§Ø³Ø¨ÙØ© Ø¬Ø¯ÙØ¯Ø©","New accounting period")})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:244",className:"grid gap-4 sm:grid-cols-2",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:245",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/JournalTab.tsx:245",children:nn(e,"رÙ
ز اÙÙØªØ±Ø©","Period code")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/JournalTab.tsx:245",dir:"ltr",className:"text-left",value:A.periodCode,onChange:Y=>E({...A,periodCode:Y.target.value}),placeholder:"2026-07"})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:246",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/JournalTab.tsx:246",children:nn(e,"Ø§ÙØ§Ø³Ù
Ø¨Ø§ÙØ¹Ø±Ø¨ÙØ©","Arabic name")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/JournalTab.tsx:246",dir:"rtl",className:"text-right",value:A.nameAr,onChange:Y=>E({...A,nameAr:Y.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:247",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/JournalTab.tsx:247",children:nn(e,"Ø§ÙØ§Ø³Ù
Ø¨Ø§ÙØ¥ÙجÙÙØ²ÙØ©","English name")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/JournalTab.tsx:247",dir:"ltr",className:"text-left",value:A.nameEn,onChange:Y=>E({...A,nameEn:Y.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:248",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/JournalTab.tsx:248",children:nn(e,"Ù
Ù","Start")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/JournalTab.tsx:248",dir:"ltr",className:"text-left",type:"date",value:A.startDate,onChange:Y=>E({...A,startDate:Y.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:249",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/JournalTab.tsx:249",children:nn(e,"Ø¥ÙÙ","End")}
1468),s.jsx(Ee,{"data-loc":"client/src/components/accounting/JournalTab.tsx:249",dir:"ltr",className:"text-left",type:"date",value:A.endDate,onChange:Y=>E({...A,endDate:Y.target.value})})]})]}),s.jsxs(ei,{"data-loc":"client/src/components/accounting/JournalTab.tsx:251",children:[s.jsx(Ie,{"data-loc":"client/src/components/accounting/JournalTab.tsx:251",variant:"outline",onClick:()=>h(!1),children:nn(e,"Ø¥ÙØºØ§Ø¡","Cancel")}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/JournalTab.tsx:251",disabled:U.isPending||!A.periodCode||!A.nameAr||!A.nameEn,onClick:()=>U.mutate(A),children:[U.isPending&&s.jsx(ft,{"data-loc":"client/src/components/accounting/JournalTab.tsx:251",className:"h-4 w-4 animate-spin"}),nn(e,"Ø¥ÙØ´Ø§Ø¡ اÙÙØªØ±Ø©","Create period")]})]})]})}),s.jsx(Ba,{"data-loc":"client/src/components/accounting/JournalTab.tsx:255",open:x!==null,onOpenChange:Y=>{Y||(f(null),y(""))},children:s.jsxs(Fa,{"data-loc":"client/src/components/accounting/JournalTab.tsx:256",className:"max-w-md",children:[s.jsx(as,{"data-loc":"client/src/components/accounting/JournalTab.tsx:257",children:s.jsx(Ua,{"data-loc":"client/src/components/accounting/JournalTab.tsx:257",children:nn(e,"Ø±ÙØ¶ اÙÙÙØ¯ ÙØ¥Ø¹Ø§Ø¯ØªÙ","Reject and return journal")})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/JournalTab.tsx:258",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/JournalTab.tsx:258",children:nn(e,"سبب Ø§ÙØ±Ùض","Rejection reason")}),s.jsx(es,{"data-loc":"client/src/components/accounting/JournalTab.tsx:258",value:b,onChange:Y=>y(Y.target.value),placeholder:nn(e,"Ø§ÙØªØ¨ Ø³Ø¨Ø¨Ø§Ù ÙØ§Ø¶ØØ§Ù ÙØ³Ø§Ø¹Ø¯ اÙÙ
ÙØ´Ø¦ عÙÙ Ø§ÙØªØµØÙØ","Provide a clear reason so the creator can correct the entry")})]}),s.jsxs(ei,{"data-loc":"client/src/components/accounting/JournalTab.tsx:259",children:[s.jsx(Ie,{"data-loc":"client/src/components/accounting/JournalTab.tsx:259",variant:"outline",onClick:()=>f(null),children:nn(e,"Ø¥ÙØºØ§Ø¡","Cancel")}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/JournalTab.tsx:259",variant:"destructive",disabled:_.isPending||b.trim().length<3,onClick:()=>x&&_.mutate({id:x,reason:b.trim()}),children:[_.isPending&&s.jsx(ft,{"data-loc":"client/src/components/accounting/JournalTab.tsx:259",className:"h-4 w-4 animate-spin"}),nn(e,"تأÙÙØ¯ Ø§ÙØ±Ùض","Confirm rejection")]})]})]})})]})}function eve(e){return["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel","text/csv","application/csv","application/octet-stream"].includes(e)?e:"application/octet-stream"}function tve(e){return new Promise((t,n)=>{const a=new FileReader;a.onload=()=>typeof a.result=="string"?t(a.result):n(new Error("تعذر ÙØ±Ø§Ø¡Ø© اÙÙ
ÙÙ.")),a.onerror=()=>n(new Error("تعذر ÙØ±Ø§Ø¡Ø© اÙÙ
ÙÙ.")),a.readAsDataURL(e)})}function RN(e,t,n=!1){if(!e)return"â";const a=e instanceof Date?e:new Date(e);return Number.isNaN(a.getTime())?String(e):new Intl.DateTimeFormat(t==="ar"?"ar-JO":"en-GB",n?{dateStyle:"medium",timeStyle:"short"}:{dateStyle:"medium"}).format(a)}const nve={draft:{ar:"Ù
Ø³ÙØ¯Ø©",en:"Draft",tone:"border-slate-500/25 bg-slate-500/10 text-slate-300"},validation_failed:{ar:"ÙØ´Ù Ø§ÙØªØÙÙ",en:"Validation failed",tone:"border-rose-400/25 bg-rose-400/10 text-rose-200"},ready_for_review:{ar:"Ø¬Ø§ÙØ² ÙÙÙ
راجعة",en:"Ready for review",tone:"border-amber-300/25 bg-amber-300/10 text-amber-100"},approved:{ar:"Ù
عتÙ
د",en:"Approved",tone:"border-blue-300/25 bg-blue-300/10 text-blue-100"},published:{ar:"Ù
ÙØ´Ùر",en:"Published",tone:"border-emerald-300/25 bg-emerald-300/10 text-emerald-100"},superseded:{ar:"إصدار سابÙ",en:"Superseded",tone:"border-violet-300/25 bg-violet-300/10 text-violet-100"},rolled_back:{ar:"تÙ
Ø§ÙØ±Ø¬Ùع عÙÙ",en:"Rolled back",tone:"border-slate-400/25 bg-slate-400/10 text-slate-200"},rejected:{ar:"Ù
رÙÙØ¶",en:"Rejected",tone:"border-rose-400/25 bg-rose-400/10 text-rose-200"}};function ave({lang:e}){const t=e==="ar",n=Pe.useUtils(),a=Pe.jordanHotels.adminVersions.useQuery(void 0,{retry:!1}),r=Pe.jordanHotels.adminExchangeRates.useQuery(void 0,{retry:!1}),[i,o]=k.useState(null),[c,l]=k.useState(null),[d,m]=k.useState({sourceCurrency:"USD",rateJod:"0.70900000",providerMinimumJod:"0.70800000",providerMaximumJod:"0.71000000",sourceRateDate:new Date().toISOString().slice(0,10),sourceName:"Central Bank of Jordan",sourceUrl:"https://www.cbj.gov.j
1468o/en/Pages/foreignexchangerates",note:""}),h=()=>n.jordanHotels.adminVersions.invalidate(),x=Pe.jordanHotels.adminPreviewUpload.useMutation({onError:L=>Le.error(L.message)}),f=Pe.jordanHotels.adminCreateVersion.useMutation({onSuccess:async()=>{Le.success(t?"تÙ
Ø¥ÙØ´Ø§Ø¡ إصدار ØªØ¹Ø±ÙØ© Ø¬Ø¯ÙØ¯ ÙÙÙ
راجعة.":"A new tariff version was created for review."),o(null),x.reset(),await h()},onError:L=>Le.error(L.message)}),b=Pe.jordanHotels.adminApproveVersion.useMutation({onSuccess:async()=>{Le.success(t?"تÙ
اعتÙ
اد Ø§ÙØ¥ØµØ¯Ø§Ø±.":"Version approved."),await h()},onError:L=>Le.error(L.message)}),y=Pe.jordanHotels.adminPublishVersion.useMutation({onSuccess:async()=>{Le.success(t?"تÙ
ÙØ´Ø± Ø§ÙØ¥ØµØ¯Ø§Ø± ÙØ£ØµØ¨Ø Ù
ØØ±Ù Ø§ÙØ¨ØØ« ÙØ³ØªØ®Ø¯Ù
Ù.":"Version published and now powers search."),await h()},onError:L=>Le.error(L.message)}),w=Pe.jordanHotels.adminRollbackVersion.useMutation({onSuccess:async()=>{Le.success(t?"تÙ
ت استعادة Ø§ÙØ¥ØµØ¯Ø§Ø± Ø§ÙØ³Ø§Ø¨Ù.":"Previous version restored."),await h()},onError:L=>Le.error(L.message)}),T=Pe.jordanHotels.adminRejectVersion.useMutation({onSuccess:async()=>{Le.success(t?"تÙ
Ø±ÙØ¶ Ø§ÙØ¥ØµØ¯Ø§Ø±.":"Version rejected."),await h()},onError:L=>Le.error(L.message)}),A=Pe.jordanHotels.adminAddExchangeRate.useMutation({onSuccess:async()=>{Le.success(t?"تÙ
ت Ø¥Ø¶Ø§ÙØ© ÙÙÙ
Ø© ØµØ±Ù Ø¬Ø¯ÙØ¯Ø© Ø¨ØªØ§Ø±ÙØ® Ø³Ø±ÙØ§ÙÙØ§.":"A new effective-dated FX rate was added."),await n.jordanHotels.adminExchangeRates.invalidate()},onError:L=>Le.error(L.message)}),E=k.useMemo(()=>{const L=r.data??[];return{USD:L.find(I=>I.sourceCurrency==="USD"),EUR:L.find(I=>I.sourceCurrency==="EUR")}},[r.data]);async function D(L){const I=L.target.files?.[0];if(L.target.value="",l(null),x.reset(),!!I){if(I.size>12*1024*1024){l(t?"Ø§ÙØØ¯ Ø§ÙØ£Ùص٠ÙÙÙ
ÙÙ 12 Ù
ÙØºØ§Ø¨Ø§Ùت.":"The maximum file size is 12 MB.");return}if(!/\.(xlsx|xls|csv)$/i.test(I.name)){l(t?"اÙÙ
ÙÙØ§Øª اÙÙ
ÙØ¨ÙÙØ©: Excel Ø£Ù CSV ÙÙØ·.":"Accepted files: Excel or CSV only.");return}try{const F={fileBase64:await tve(I),fileName:I.name,contentType:eve(I.type)};o(F),x.mutate(F)}catch(F){l(F instanceof Error?F.message:t?"تعذر ÙØ±Ø§Ø¡Ø© اÙÙ
ÙÙ.":"Could not read the file.")}}}function S(){A.mutate({sourceCurrency:d.sourceCurrency,rateJod:d.rateJod,providerMinimumJod:d.providerMinimumJod||null,providerMaximumJod:d.providerMaximumJod||null,effectiveFrom:Date.parse(`${d.sourceRateDate}T00:00:00.000Z`),sourceRateDate:d.sourceRateDate,sourceName:d.sourceName,sourceUrl:d.sourceUrl,note:d.note||null})}const R=b.isPending||y.isPending||w.isPending||T.isPending;return s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:108",className:"space-y-6 text-slate-100",dir:t?"rtl":"ltr",children:[s.jsx("section",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:109",className:"relative overflow-hidden rounded-[26px] border border-cyan-300/10 bg-gradient-to-br from-cyan-300/[.10] via-white/[.025] to-amber-300/[.06] p-6 md:p-8",children:s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:110",className:"relative flex flex-col gap-5 lg:flex-row lg:items-end lg:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:111",className:"flex items-start gap-4",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:112",className:"grid h-14 w-14 shrink-0 place-items-center rounded-2xl bg-cyan-300/10 text-cyan-200",children:s.jsx(ph,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:112",className:"h-8 w-8"})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:113",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:113",className:"text-xs font-black uppercase tracking-[.18em] text-cyan-300",children:"AUDITED TARIFF CONTROL"}),s.jsx("h2",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:113",className:"mt-2 text-2xl font-semibold md:text-3xl",children:t?"ØÙÙÙ
Ø© ØªØ¹Ø±ÙØ© ÙÙØ§Ø¯Ù Ø§ÙØ£Ø±Ø¯Ù":"Jordan hotel tariff governance"}
1468),s.jsx("p",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:113",className:"mt-2 max-w-3xl text-sm leading-6 text-slate-400",children:t?"Ø±ÙØ¹ ÙÙ
عاÙÙØ© ÙØ§Ø¹ØªÙ
اد ÙÙØ´Ø± إصدارات ØºÙØ± ÙØ§Ø¨ÙØ© ÙÙÙØªØ§Ø¨Ø© ÙÙÙÙØ§Ø Ù
ع سج٠صر٠Ù
ؤرخ. ÙØ§ ØªØµÙ Ø¨ÙØ§Ùات اÙÙ
ÙØ±Ø¯ Ø¥ÙÙ ÙØ§Ø¬ÙØ© Ø§ÙØ²Ø¨ÙÙ.":"Upload, preview, approve, and publish immutable versions with effective-dated FX history. Supplier data never reaches the public UI."})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:115",className:"flex flex-wrap gap-2 text-xs font-semibold",children:[s.jsxs("span",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:115",className:"inline-flex items-center gap-2 rounded-full border border-emerald-300/15 bg-emerald-300/[.06] px-3 py-2 text-emerald-100",children:[s.jsx(sa,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:115",className:"h-4 w-4"}),t?"ÙÙÙ
Ø¯ÙØ± ÙÙØ·":"Administrator only"]}),s.jsxs("span",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:115",className:"inline-flex items-center gap-2 rounded-full border border-cyan-300/15 bg-cyan-300/[.06] px-3 py-2 text-cyan-100",children:[s.jsx(wT,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:115",className:"h-4 w-4"}),t?"Ø³Ø¬Ù ØºÙØ± ÙØ§Ø¨Ù ÙÙÙ
ØÙ":"Immutable history"]})]})]})}),s.jsxs("section",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:119",className:"grid gap-5 xl:grid-cols-[.82fr_1.18fr]",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:120",className:"rounded-2xl border border-white/[.075] bg-white/[.032] p-5 md:p-6",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:121",className:"flex items-center gap-3",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:121",className:"grid h-10 w-10 place-items-center rounded-xl bg-cyan-300/10 text-cyan-300",children:s.jsx(Wre,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:121",className:"h-5 w-5"})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:121",children:[s.jsx("h3",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:121",className:"font-semibold",children:t?"Ø±ÙØ¹ ØªØ¹Ø±ÙØ© Ø¬Ø¯ÙØ¯Ø©":"Upload a new tariff"}),s.jsx("p",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:121",className:"mt-1 text-xs text-slate-500",children:"Excel .xlsx / .xls · CSV · 12 MB max"})]})]}),s.jsxs("label",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:122",className:"mt-5 flex min-h-36 cursor-pointer flex-col items-center justify-center rounded-2xl border border-dashed border-white/15 bg-black/10 p-5 text-center transition hover:border-cyan-300/35 hover:bg-cyan-300/[.035]",children:[s.jsx(nA,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:123",className:"h-8 w-8 text-cyan-300"}),s.jsx("span",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:123",className:"mt-3 text-sm font-semibold",children:i?.fileName??(t?"اختر Ù
ÙÙ Excel Ø£Ù CSV":"Choose an Excel or CSV file")}),s.jsx("span",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:123",className:"mt-1 text-xs text-slate-600",children:t?"تتÙ
اÙÙ
عاÙÙØ© Ø£ÙÙØ§Ù ÙÙØ§ ÙÙÙØ´Ø± Ø´ÙØ¡ تÙÙØ§Ø¦ÙاÙ":"Preview first; nothing is published automatically"}),s.jsx("input",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:123",type:"file",accept:".xlsx,.xls,.csv",className:"sr-only",onChange:D})]}),c?s.jsx("p",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:125",className:"mt-3 rounded-xl border border-rose-400/20 bg-rose-400/[.07] p-3 text-xs text-rose-200",children:c}):null,x.isPending?s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:126",className:"mt-4 flex items-center gap-2 text-sm text-cyan-200",children:[s.jsx(ft,{"data-loc":"client/src/components/
1468accounting/JordanHotelAdminTab.tsx:126",className:"h-4 w-4 animate-spin"}),t?"جار٠تØÙÙ٠اÙÙ
ÙÙ ÙØÙØ¸ Ù
رجع Ø§ÙØ®ÙØ§ÙØ§â¦":"Analysing the file and preserving cell lineageâ¦"]}):null,x.data?s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:127",className:"mt-5 space-y-4 rounded-2xl border border-white/[.08] bg-black/10 p-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:128",className:"grid grid-cols-2 gap-3 text-center sm:grid-cols-4",children:[s.jsx(Yy,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:128",value:x.data.entityCount,label:t?"Ù
ÙØ´Ø£Ø©":"Properties"}),s.jsx(Yy,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:128",value:x.data.rateLineCount,label:t?"سطر سعر":"Rate lines"}),s.jsx(Yy,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:128",value:x.data.warningCount,label:t?"ØªÙØ¨ÙÙ":"Warnings",tone:"text-amber-200"}),s.jsx(Yy,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:128",value:x.data.blockerCount,label:t?"Ù
Ø§ÙØ¹":"Blockers",tone:x.data.blockerCount?"text-rose-200":"text-emerald-200"})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:129",className:"text-xs leading-5 text-slate-500",children:[s.jsxs("p",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:129",children:[t?"Ø§ÙØ³Ø±ÙاÙ":"Validity",": ",x.data.validFrom||"â"," â ",x.data.validTo||"â"]}),x.data.blockers.slice(0,4).map((L,I)=>s.jsxs("p",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:129",className:"mt-1 flex items-start gap-2 text-rose-200",children:[s.jsx(ks,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:129",className:"mt-0.5 h-3.5 w-3.5 shrink-0"}),L]},I)),x.data.warnings.slice(0,4).map((L,I)=>s.jsxs("p",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:129",className:"mt-1 flex items-start gap-2 text-amber-200",children:[s.jsx(zi,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:129",className:"mt-0.5 h-3.5 w-3.5 shrink-0"}),L]},I))]}),s.jsxs("button",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:130",type:"button",disabled:!i||f.isPending,onClick:()=>i&&f.mutate(i),className:"flex h-11 w-full items-center justify-center gap-2 rounded-xl bg-cyan-300 px-4 text-sm font-black text-[#061018] transition hover:bg-cyan-200 active:scale-[.98] disabled:cursor-not-allowed disabled:opacity-50",children:[f.isPending?s.jsx(ft,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:130",className:"h-4 w-4 animate-spin"}):s.jsx(_d,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:130",className:"h-4 w-4"}),x.data.blockerCount?t?"ØÙظ ÙØ¥ØµØ¯Ø§Ø± ÙØ´Ù Ø§ÙØªØÙÙ":"Save as validation-failed version":t?"Ø¥ÙØ´Ø§Ø¡ إصدار ÙÙÙ
راجعة":"Create version for review"]})]}):null]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:134",className:"rounded-2xl border border-white/[.075] bg-white/[.032] p-5 md:p-6",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:135",className:"flex items-center justify-between gap-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:135",className:"flex items-center gap-3",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:135",className:"grid h-10 w-10 place-items-center rounded-xl bg-violet-300/10 text-violet-200",children:s.jsx(wT,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:135",className:"h-5 w-5"})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:135",children:[s.jsx("h3",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:135",className:"font-semibold",children:t?"سج٠إصدارات Ø§ÙØªØ¹Ø±ÙØ©":"Tariff version history"}),s.jsx("p",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:135",className:"mt-1 text-xs text-slate-500",children:t?"ÙØ§ ÙÙÙØªØ¨ إصدار ÙÙ٠آخر":"Versions are never overwritten"})]})]}
1468),s.jsx("button",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:135",type:"button",onClick:()=>a.refetch(),className:"grid h-9 w-9 place-items-center rounded-xl border border-white/10 text-slate-400 hover:bg-white/[.06] hover:text-white",children:s.jsx(GU,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:135",className:`h-4 w-4 ${a.isFetching?"animate-spin":""}`})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:136",className:"mt-5 max-h-[650px] space-y-3 overflow-y-auto pe-1",children:[a.isLoading?s.jsx("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:137",className:"flex justify-center py-16",children:s.jsx(ft,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:137",className:"h-6 w-6 animate-spin text-cyan-300"})}):null,a.data?.map(L=>{const I=nve[L.status]??{ar:L.status,en:L.status,tone:"border-slate-500/20 bg-slate-500/10 text-slate-300"};return s.jsxs("article",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:140",className:`rounded-2xl border p-4 ${L.status==="published"?"border-emerald-300/20 bg-emerald-300/[.035]":"border-white/[.075] bg-black/10"}`,children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:141",className:"flex flex-wrap items-start justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:141",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:141",className:"flex flex-wrap items-center gap-2",children:[s.jsx("strong",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:141",className:"text-sm text-white",children:L.versionNumber}),s.jsx("span",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:141",className:`rounded-full border px-2.5 py-1 text-[10px] font-bold ${I.tone}`,children:t?I.ar:I.en})]}),s.jsx("p",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:141",className:"mt-2 line-clamp-2 text-xs leading-5 text-slate-500",children:L.title})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:141",className:"text-end text-[11px] text-slate-600",children:[s.jsxs("p",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:141",children:[L.entityCount," ",t?"Ù
ÙØ´Ø£Ø©":"properties"]}),s.jsxs("p",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:141",children:[L.rateLineCount," ",t?"سطر":"lines"]})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:142",className:"mt-3 grid gap-2 text-[11px] text-slate-600 sm:grid-cols-2",children:[s.jsxs("p",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:142",children:[t?"Ø§ÙØ³Ø±ÙاÙ":"Validity",": ",L.validFrom||"â"," â ",L.validTo||"â"]}),s.jsxs("p",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:142",children:[t?"Ø§ÙØ±Ùع":"Uploaded",": ",RN(L.createdAt,e,!0)]}),s.jsxs("p",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:142",children:[t?"Ø¨ÙØ§Ø³Ø·Ø©":"By",": ",L.uploadedBy||"â"]}),s.jsxs("p",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:142",className:L.blockerCount?"text-rose-300":"",children:[L.warningCount," ",t?"ØªÙØ¨ÙÙ":"warnings"," · ",L.blockerCount," ",t?"Ù
Ø§ÙØ¹":"blockers"]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:143",className:"mt-4 flex flex-wrap gap-2",children:[L.status==="ready_for_review"?s.jsx(Xy,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:143",onClick:()=>b.mutate({versionId:L.id}),disabled:R,icon:bc,label:t?"اعتÙ
اد":"Approve",tone:"cyan"}):null,L.status==="approved"?s.jsx(Xy,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:143",onClick:()=>y.mutate({versionId:L.id}),disabled:R,icon:yu,label:t?"ÙØ´Ø±":"Publish",tone:"emerald"}):null,["superseded","rolled_back"].includes(L.status)&&L.blockerCount===0?s.jsx(Xy,{"data-loc":"client/src/components/
1468accounting/JordanHotelAdminTab.tsx:143",onClick:()=>w.mutate({versionId:L.id}),disabled:R,icon:Z0,label:t?"استعادة":"Restore",tone:"violet"}):null,["published","superseded","rolled_back","rejected"].includes(L.status)?null:s.jsx(Xy,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:143",onClick:()=>T.mutate({versionId:L.id}),disabled:R,icon:ks,label:t?"Ø±ÙØ¶":"Reject",tone:"rose"})]})]},L.id)}),!a.isLoading&&!a.data?.length?s.jsx("p",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:146",className:"py-16 text-center text-sm text-slate-600",children:t?"ÙØ§ ØªÙØ¬Ø¯ إصدارات ØªØ¹Ø±ÙØ©.":"No tariff versions."}):null]})]})]}),s.jsxs("section",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:151",className:"rounded-2xl border border-white/[.075] bg-white/[.032] p-5 md:p-6",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:152",className:"flex flex-col gap-5 xl:flex-row xl:items-start xl:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:153",className:"flex items-start gap-3",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:153",className:"grid h-10 w-10 shrink-0 place-items-center rounded-xl bg-amber-300/10 text-amber-200",children:s.jsx(Cd,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:153",className:"h-5 w-5"})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:153",children:[s.jsx("h3",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:153",className:"font-semibold",children:t?"سج٠سعر ØµØ±Ù Ø§ÙØ¹Ù
ÙØ©":"Currency exchange-rate history"}),s.jsx("p",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:153",className:"mt-1 max-w-2xl text-xs leading-5 text-slate-500",children:t?"ÙÙ ÙÙÙ
Ø© Ø¬Ø¯ÙØ¯Ø© تبدأ Ù
Ù ØªØ§Ø±ÙØ® Ø³Ø±ÙØ§ÙÙØ§Ø ÙØ§ ÙØªÙ
تعدÙ٠اÙÙÙÙ
Ø§ÙØªØ§Ø±ÙØ®ÙØ© Ø£Ù ØØ°ÙÙØ§. اÙÙØªØ§Ø¦Ø¬ اÙÙÙØ§Ø¦ÙØ© تبÙÙ Ø¨Ø§ÙØ¯ÙÙØ§Ø± Ø§ÙØ£Ø±Ø¯ÙÙ.":"Each new value starts at its effective date; historical values are never edited or deleted. Final results remain in JOD."})]})]}),s.jsx("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:154",className:"grid w-full gap-3 sm:grid-cols-2 xl:w-auto",children:["USD","EUR"].map(L=>{const I=E[L];return s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:154",className:"min-w-48 rounded-2xl border border-amber-300/10 bg-amber-300/[.035] p-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:154",className:"flex items-center justify-between",children:[s.jsxs("strong",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:154",children:[L," â JOD"]}),s.jsx(sx,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:154",className:"h-4 w-4 text-amber-200"})]}),s.jsx("p",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:154",className:"mt-3 text-2xl font-black text-amber-100",children:I?Number(I.rateJod).toFixed(4):"â"}),s.jsx("p",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:154",className:"mt-1 text-[11px] text-slate-600",children:I?RN(I.effectiveFrom,e):t?"ÙØ§ ØªÙØ¬Ø¯ ÙÙÙ
Ø©":"No rate"})]},L)})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:156",className:"mt-6 grid gap-4 rounded-2xl border border-white/[.07] bg-black/10 p-4 md:grid-cols-2 xl:grid-cols-4",children:[s.jsx(Mp,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:157",label:t?"Ø§ÙØ¹Ù
ÙØ©":"Currency",children:s.jsxs("select",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:157",value:d.sourceCurrency,onChange:L=>m(I=>({...I,sourceCurrency:L.target.value})),className:"h-11 w-full rounded-xl border border-white/10 bg-[#08131d] px-3 text-sm text-white",children:[s.jsx("option",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:157",value:"USD",children:"USD"}
1468),s.jsx("option",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:157",value:"EUR",children:"EUR"})]})}),s.jsx(Mp,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:158",label:t?"1 عÙ
ÙØ© = دÙÙØ§Ø±":"1 currency = JOD",children:s.jsx("input",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:158",value:d.rateJod,onChange:L=>m(I=>({...I,rateJod:L.target.value})),inputMode:"decimal",className:"h-11 w-full rounded-xl border border-white/10 bg-[#08131d] px-3 text-sm text-white"})}),s.jsx(Mp,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:159",label:t?"Ø§ÙØØ¯ Ø§ÙØ£Ø¯ÙÙ ÙÙÙ
صدر":"Provider minimum",children:s.jsx("input",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:159",value:d.providerMinimumJod,onChange:L=>m(I=>({...I,providerMinimumJod:L.target.value})),inputMode:"decimal",className:"h-11 w-full rounded-xl border border-white/10 bg-[#08131d] px-3 text-sm text-white"})}),s.jsx(Mp,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:160",label:t?"Ø§ÙØØ¯ Ø§ÙØ£Ø¹ÙÙ ÙÙÙ
صدر":"Provider maximum",children:s.jsx("input",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:160",value:d.providerMaximumJod,onChange:L=>m(I=>({...I,providerMaximumJod:L.target.value})),inputMode:"decimal",className:"h-11 w-full rounded-xl border border-white/10 bg-[#08131d] px-3 text-sm text-white"})}),s.jsx(Mp,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:161",label:t?"ØªØ§Ø±ÙØ® Ø§ÙØ³Ø±ÙاÙ":"Effective date",children:s.jsx("input",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:161",type:"date",value:d.sourceRateDate,onChange:L=>m(I=>({...I,sourceRateDate:L.target.value})),className:"h-11 w-full rounded-xl border border-white/10 bg-[#08131d] px-3 text-sm text-white [color-scheme:dark]"})}),s.jsx(Mp,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:162",label:t?"اسÙ
اÙÙ
صدر":"Source name",children:s.jsx("input",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:162",value:d.sourceName,onChange:L=>m(I=>({...I,sourceName:L.target.value})),className:"h-11 w-full rounded-xl border border-white/10 bg-[#08131d] px-3 text-sm text-white"})}),s.jsx(Mp,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:163",label:t?"رابط اÙÙ
صدر":"Source URL",wide:!0,children:s.jsx("input",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:163",value:d.sourceUrl,onChange:L=>m(I=>({...I,sourceUrl:L.target.value})),className:"h-11 w-full rounded-xl border border-white/10 bg-[#08131d] px-3 text-sm text-white"})}),s.jsx(Mp,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:164",label:t?"Ù
ÙØ§ØØ¸Ø©":"Note",wide:!0,children:s.jsx("input",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:164",value:d.note,onChange:L=>m(I=>({...I,note:L.target.value})),className:"h-11 w-full rounded-xl border border-white/10 bg-[#08131d] px-3 text-sm text-white",placeholder:t?"سبب Ø§ÙØªØ¹Ø¯Ù٠أ٠Ù
رجعÙ":"Reason or reference"})}),s.jsx("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:165",className:"flex items-end xl:col-span-4",children:s.jsxs("button",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:165",type:"button",onClick:S,disabled:A.isPending,className:"flex h-11 items-center justify-center gap-2 rounded-xl bg-amber-300 px-5 text-sm font-black text-[#161004] transition hover:bg-amber-200 active:scale-[.98] disabled:opacity-50",children:[A.isPending?s.jsx(ft,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:165",className:"h-4 w-4 animate-spin"}):s.jsx(X0,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:165",className:"h-4 w-4"}),t?"Ø¥Ø¶Ø§ÙØ© ÙÙÙ
Ø© Ù
ؤرخة":"Add effective-dated rate"]})})]}),s.jsxs("details",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:167",className:"mt-5 rounded-2xl border border-white/[.07] bg-black/10 p-4",children:[s.jsxs("summary",{"data-loc":"client/src/components/
1468accounting/JordanHotelAdminTab.tsx:167",className:"flex cursor-pointer list-none items-center justify-between gap-3 text-sm font-semibold",children:[s.jsxs("span",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:167",className:"inline-flex items-center gap-2",children:[s.jsx(wT,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:167",className:"h-4 w-4 text-amber-200"}),t?"عرض ÙØ§Ù
Ù Ø³Ø¬Ù Ø§ÙØµØ±Ù":"View full FX history"]}),s.jsx(Y0,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:167",className:"h-4 w-4 text-slate-500"})]}),s.jsx("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:167",className:"mt-4 overflow-x-auto",children:s.jsxs("table",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:167",className:"w-full min-w-[760px] text-start text-xs",children:[s.jsx("thead",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:167",className:"text-slate-600",children:s.jsxs("tr",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:167",children:[s.jsx("th",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:167",className:"px-3 py-2 text-start",children:t?"Ø§ÙØ¹Ù
ÙØ©":"Currency"}),s.jsx("th",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:167",className:"px-3 py-2 text-start",children:t?"اÙÙÙÙ
Ø©":"Rate"}),s.jsx("th",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:167",className:"px-3 py-2 text-start",children:t?"Ø§ÙØ³Ø±ÙاÙ":"Effective"}),s.jsx("th",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:167",className:"px-3 py-2 text-start",children:t?"اÙÙ
صدر":"Source"}),s.jsx("th",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:167",className:"px-3 py-2 text-start",children:t?"عدÙÙ Ø¨ÙØ§Ø³Ø·Ø©":"Changed by"})]})}),s.jsx("tbody",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:167",children:r.data?.map(L=>s.jsxs("tr",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:167",className:"border-t border-white/[.06] text-slate-400",children:[s.jsxs("td",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:167",className:"px-3 py-3 font-bold text-white",children:[L.sourceCurrency," â JOD"]}),s.jsx("td",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:167",className:"px-3 py-3",children:Number(L.rateJod).toFixed(8)}),s.jsx("td",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:167",className:"px-3 py-3",children:RN(L.effectiveFrom,e,!0)}),s.jsx("td",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:167",className:"px-3 py-3",children:s.jsx("a",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:167",href:L.sourceUrl,target:"_blank",rel:"noreferrer",className:"text-cyan-300 hover:underline",children:L.sourceName})}),s.jsx("td",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:167",className:"px-3 py-3",children:L.changedByName||"â"})]},L.id))})]})})]})]})]})}function Yy({value:e,label:t,tone:n="text-white"}){return s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:173",className:"rounded-xl border border-white/[.07] bg-white/[.025] p-3",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:173",className:`text-xl font-black ${n}`,children:e}),s.jsx("p",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:173",className:"mt-1 text-[10px] text-slate-600",children:t})]})}function Xy({onClick:e,disabled:t,icon:n,label:a,tone:r}){const i={cyan:"border-cyan-300/15 bg-cyan-300/[.07] text-cyan-100",emerald:"border-emerald-300/15 bg-emerald-300/[.07] text-emerald-100",violet:"border-violet-300/15 bg-violet-300/[.07] text-violet-100",rose:"border-rose-300/15 bg-rose-300/[.07] text-rose-100"};return s.jsxs("button",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:176",type:"button",onClick:e,disabled:t,className:`inline-flex h-9 items-center gap-2 rounded-xl border px-3 text-xs font-bold transition hover:brightness-125 active:scale-[.97] disabled:opacity-40 ${i[r]}
1468`,children:[s.jsx(n,{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:176",className:"h-3.5 w-3.5"}),a]})}function Mp({label:e,children:t,wide:n=!1}){return s.jsxs("label",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:178",className:n?"md:col-span-2":"",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/JordanHotelAdminTab.tsx:178",className:"mb-2 block text-[11px] font-semibold text-slate-500",children:e}),t]})}const IN=[{value:"all",ar:"Ù٠اÙÙØ¬Ùات",en:"All destinations"},{value:"amman",ar:"Ø¹Ù ÙØ§Ù",en:"Amman"},{value:"dead_sea",ar:"Ø§ÙØ¨ØØ± اÙÙ ÙØª",en:"Dead Sea"},{value:"petra",ar:"Ø§ÙØ¨ØªØ±Ø§Ø¡",en:"Petra"},{value:"wadi_rum",ar:"ÙØ§Ø¯Ù ر٠",en:"Wadi Rum"},{value:"aqaba",ar:"Ø§ÙØ¹Ùبة",en:"Aqaba"}];function MN(e){const t=new Date;return t.setHours(12,0,0,0),t.setDate(t.getDate()+e),t.toISOString().slice(0,10)}function LN(e,t){return new Intl.NumberFormat(t==="ar"?"ar-JO":"en-JO",{style:"currency",currency:"JOD",minimumFractionDigits:2,maximumFractionDigits:2}).format(e)}function Qq({lang:e="ar",mode:t="public",className:n=""}){const a=e==="ar",[r,i]=k.useState("all"),[o,c]=k.useState(()=>MN(7)),[l,d]=k.useState(()=>MN(9)),[m,h]=k.useState(2),[x,f]=k.useState(1),[b,y]=k.useState([]),[w,T]=k.useState("jordanian"),[A,E]=k.useState(null),D=k.useMemo(()=>({destination:r==="all"?void 0:r,checkIn:o,checkOut:l,nationality:w,adults:m,rooms:x,childAges:b}),[r,o,l,w,m,x,b]),S=Pe.jordanHotels.search.useQuery(D,{enabled:!1,retry:!1}),R=Pe.jordanHotels.staffSearch.useQuery(D,{enabled:!1,retry:!1}),L=t==="staff"?R:S,I=L.data,F=I?I.results.flatMap(G=>G.options.map(K=>({property:G,option:K}))):[],_=G=>G.price.kind==="exact"&&typeof G.price.amountJod=="number"?LN(G.price.amountJod,e):G.price.kind==="range"&&typeof G.price.minimumAmountJod=="number"&&typeof G.price.maximumAmountJod=="number"?`${LN(G.price.minimumAmountJod,e)} â ${LN(G.price.maximumAmountJod,e)}`:a?"ØØ³Ø¨ Ø§ÙØ·Ùب":"On request",U=async(G,K)=>{const ee=_(K),pe=a?G.nameAr||G.name:G.name||G.nameAr,V=a?`عرض ÙÙØ¯Ù Ø§ÙØ£Ø±Ø¯Ù â ${pe} 1469${o} Ø¥ÙÙ ${l} 1470${m} Ø¨Ø§ÙØºØ ${x} ØºØ±ÙØ© 1471Ø§ÙØ¥Ø¬Ù اÙÙ: ${ee} 1472Ø§ÙØ³Ø¹Ø± خاضع ÙØªØ£ÙÙØ¯ Ø§ÙØØ¬Ø² ÙØ§ÙتÙÙØ±.`:`Jordan hotel quote â ${pe} 1473${o} to ${l} 1474${m} adult(s), ${x} room(s) 1475Total: ${ee} 1476Rate is subject to final availability confirmation.`;await navigator.clipboard.writeText(V),E(G.propertyId),window.setTimeout(()=>E(null),1800)},O=(G,K)=>{const ee=_(K),pe=a?G.nameAr||G.name:G.name||G.nameAr,V=a?`Ù Ø±ØØ¨Ø§Ù IBRIXØ Ø£Ø·ÙØ¨ تأÙÙØ¯ ØØ¬Ø² ÙÙØ¯Ù ${pe} Ù Ù ${o} Ø¥ÙÙ ${l} ÙØ¹Ø¯Ø¯ ${m} Ø¨Ø§ÙØº Ù${b.length} Ø·ÙÙ ÙÙ ${x} ØºØ±ÙØ©. Ø§ÙØ³Ø¹Ø± Ø§ÙØ¸Ø§Ùر ${ee}.`:`Hello IBRIX, please confirm ${pe} from ${o} to ${l} for ${m} adult(s), ${b.length} child(ren), ${x} room(s). Displayed price: ${ee}.`;window.open(`https://wa.me/962787789915?text=${encodeURIComponent(V)}`,"_blank","noopener,noreferrer")},W=G=>{const K=Math.min(4,Math.max(0,G));y(ee=>Array.from({length:K},(pe,V)=>ee[V]??6))},J=async G=>{G.preventDefault(),t==="staff"?await R.refetch():await S.refetch()},oe={title:a?"Ø§Ø¨ØØ« ÙÙ ØªØ¹Ø±ÙØ© ÙÙØ§Ø¯Ù Ø§ÙØ£Ø±Ø¯Ù اÙ٠عت٠دة":"Search approved Jordan hotel rates",subtitle:a?"ÙØªØ§Ø¦Ø¬ ٠باشرة Ø¨Ø§ÙØ¯ÙÙØ§Ø± Ø§ÙØ£Ø±Ø¯ÙÙ Ù Ù Ø£ØØ¯Ø« ÙØ³Ø®Ø© Ù ÙØ´ÙØ±Ø©Ø Ù Ø¹ ØÙ Ø§ÙØ© ÙÙØ§Ø¹Ø¯ اÙÙ ÙØ³Ù ÙØ§ÙØ¥Ø´ØºØ§Ù ÙØ§ÙØ¬ÙØ³ÙØ©.":"Live JOD results from the latest published tariff, with season, occupancy, and nationality rules protected.",destination:a?"اÙÙØ¬ÙØ©":"Destination",checkIn:a?"ØªØ§Ø±ÙØ® Ø§ÙØ¯Ø®ÙÙ":"Check-in",checkOut:a?"ØªØ§Ø±ÙØ® Ø§ÙØ®Ø±Ùج":"Check-out",adults:a?"Ø§ÙØ¨Ø§ÙغÙÙ":"Adults",children:a?"Ø§ÙØ£Ø·ÙاÙ":"Children",rooms:a?"Ø§ÙØºØ±Ù":"Rooms",nationality:a?"Ø§ÙØ¬ÙØ³ÙØ© / Ø§ÙØ³ÙÙ":"Nationality / market",jordanian:a?"أردÙÙ":"Jordanian",nonJordanian:a?"ØºÙØ± أردÙÙ":"Non-Jordanian",gcc:a?"دÙÙ Ø§ÙØ®ÙÙØ¬":"GCC",search:a?"عرض Ø§ÙØ£Ø³Ø¹Ø§Ø± اÙÙ ØªØ§ØØ©":"Show available rates",searching:a?"Ø¬Ø§Ø±Ù ÙØØµ Ø§ÙØªØ¹Ø±ÙØ©â¦":"Checking tariffâ¦",empty:a?"ÙØ§ ØªÙØ¬Ø¯ ÙØªÙجة Ù Ø·Ø§Ø¨ÙØ© ÙÙØ°Ù Ø§ÙØªÙØ§Ø±ÙØ® ÙØ§ÙØ¨ÙØ§Ùات Ù٠اÙÙØ³Ø®Ø© اÙÙ ÙØ´Ùرة.":"No published rate matches these dates and stay details."};return s.jsx("section",{"data-loc":"client/src/components/JordanHotelQuoteWorksp
1476ace.tsx:143",className:`relative ${n}`,dir:a?"rtl":"ltr",children:s.jsxs(kn,{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:144",className:"overflow-hidden border-white/10 bg-[#101921]/95 text-white shadow-[0_32px_100px_rgba(0,0,0,.35)] backdrop-blur-xl",children:[s.jsx("div",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:145",className:"border-b border-white/10 bg-[linear-gradient(120deg,rgba(21,128,119,.28),rgba(202,160,76,.12),transparent)] px-5 py-6 sm:px-8",children:s.jsxs("div",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:146",className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:147",className:"flex items-center gap-4",children:[s.jsx("span",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:148",className:"grid h-14 w-14 shrink-0 place-items-center rounded-2xl border border-[#d8b15b]/40 bg-[#d8b15b]/10 text-[#e6c878] shadow-inner","aria-hidden":"true",children:s.jsx(ph,{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:149",className:"h-8 w-8"})}),s.jsxs("div",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:151",children:[s.jsx("p",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:152",className:"text-xs font-semibold uppercase tracking-[.22em] text-[#d8b15b]",children:"IBRIX JORDAN FIT"}),s.jsx("h2",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:153",className:"mt-1 font-serif text-2xl font-semibold sm:text-3xl",children:oe.title}),s.jsx("p",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:154",className:"mt-2 max-w-3xl text-sm leading-6 text-slate-300",children:oe.subtitle})]})]}),s.jsxs("div",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:157",className:"inline-flex w-fit items-center gap-2 rounded-full border border-emerald-400/25 bg-emerald-400/10 px-3 py-2 text-xs font-semibold text-emerald-200",children:[s.jsx(sa,{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:158",className:"h-4 w-4"}),a?"ØªØ¹Ø±ÙØ© Ù
ÙØ´Ùرة ÙÙØ·":"Published tariff only"]})]})}),s.jsxs(Un,{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:164",className:"p-5 sm:p-8",children:[s.jsxs("form",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:165",onSubmit:J,className:"grid gap-5 lg:grid-cols-12",children:[s.jsxs("label",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:166",className:"grid gap-2 text-sm font-medium text-slate-200 lg:col-span-3",children:[oe.destination,s.jsx("select",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:168",value:r,onChange:G=>i(G.target.value),className:"h-11 rounded-xl border border-white/15 bg-[#0a1219] px-3 text-sm text-white outline-none transition focus:border-[#d8b15b] focus:ring-2 focus:ring-[#d8b15b]/20",children:IN.map(G=>s.jsx("option",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:169",value:G.value,children:a?G.ar:G.en},G.value))})]}),s.jsxs("label",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:173",className:"grid gap-2 text-sm font-medium text-slate-200 lg:col-span-3",children:[oe.checkIn,s.jsx(Ee,{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:175",type:"date",min:MN(1),value:o,onChange:G=>c(G.target.value),required:!0,className:"border-white/15 bg-[#0a1219] text-white [color-scheme:dark]"})]}),s.jsxs("label",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:178",className:"grid gap-2 text-sm font-medium text-slate-200 lg:col-span-3",children:[oe.checkOut,s.jsx(Ee,{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:180",type:"date",min:o,value:l,onChange:G=>d(G.target.value),required:!0,className:"border-white/15 bg-[#0a1219] text-white [color-scheme:dark]"})]}),s.jsxs("label",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:183",className:"grid gap-2 text-sm font-medium text-slate-200 lg:col-span-3",children:[oe.nationality,s.jsxs("select",{"data-loc":"client/src/components/JordanHotelQuoteWorksp
1476ace.tsx:185",value:w,onChange:G=>T(G.target.value),className:"h-11 rounded-xl border border-white/15 bg-[#0a1219] px-3 text-sm text-white outline-none transition focus:border-[#d8b15b] focus:ring-2 focus:ring-[#d8b15b]/20",children:[s.jsx("option",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:186",value:"jordanian",children:oe.jordanian}),s.jsx("option",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:187",value:"non_jordanian",children:oe.nonJordanian}),s.jsx("option",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:188",value:"gcc",children:oe.gcc})]})]}),s.jsxs("label",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:192",className:"grid gap-2 text-sm font-medium text-slate-200 lg:col-span-2",children:[oe.adults,s.jsx(Ee,{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:194",type:"number",min:1,max:12,value:m,onChange:G=>h(Number(G.target.value)),required:!0,className:"border-white/15 bg-[#0a1219] text-white"})]}),s.jsxs("label",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:197",className:"grid gap-2 text-sm font-medium text-slate-200 lg:col-span-2",children:[oe.children,s.jsx(Ee,{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:199",type:"number",min:0,max:4,value:b.length,onChange:G=>W(Number(G.target.value)),className:"border-white/15 bg-[#0a1219] text-white"})]}),s.jsxs("label",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:202",className:"grid gap-2 text-sm font-medium text-slate-200 lg:col-span-2",children:[oe.rooms,s.jsx(Ee,{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:204",type:"number",min:1,max:6,value:x,onChange:G=>f(Number(G.target.value)),required:!0,className:"border-white/15 bg-[#0a1219] text-white"})]}),s.jsxs("div",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:207",className:"grid gap-2 lg:col-span-6",children:[s.jsx("span",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:208",className:"text-sm font-medium text-slate-200",children:a?"أعÙ
ار Ø§ÙØ£Ø·ÙØ§Ù Ø¹ÙØ¯ اÙÙØµÙÙ":"Child ages at arrival"}),s.jsx("div",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:209",className:"grid min-h-11 grid-cols-2 gap-2 sm:grid-cols-4",children:b.length===0?s.jsx("div",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:211",className:"col-span-full flex items-center rounded-xl border border-dashed border-white/10 px-3 text-xs text-slate-500",children:a?"ÙØ§ ÙÙØ¬Ø¯ Ø£Ø·ÙØ§Ù ÙÙ Ø§ÙØ·Ùب":"No children in this request"}):b.map((G,K)=>s.jsxs("label",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:213",className:"relative",children:[s.jsx("span",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:214",className:"sr-only",children:a?`عÙ
ر Ø§ÙØ·ÙÙ ${K+1}`:`Child ${K+1} age`}),s.jsx(Ee,{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:215",type:"number",min:0,max:17,value:G,onChange:ee=>y(pe=>pe.map((V,Y)=>Y===K?Number(ee.target.value):V)),className:"border-white/15 bg-[#0a1219] pe-10 text-white"}),s.jsx("span",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:216",className:"pointer-events-none absolute inset-y-0 end-3 grid place-items-center text-[10px] text-slate-500",children:a?"Ø³ÙØ©":"yr"})]},K))})]}),s.jsx("div",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:222",className:"lg:col-span-12",children:s.jsxs(Ie,{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:223",type:"submit",disabled:L.isFetching,className:"h-12 w-full rounded-xl bg-[#d8b15b] font-bold text-[#0b141b] hover:bg-[#e7c976] sm:w-auto sm:min-w-64",children:[L.isFetching?s.jsx(ft,{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:224",className:"h-4 w-4 animate-spin"}):s.jsx(ph,{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:224",className:"h-5 w-5"}),L.isFetching?oe.searching:oe.search]})})]}),s.jsxs("div",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:230",className:"mt-6 flex gap-3 rounded-2xl border border-amber-300/20 bg-amber-300/[.06] p-4 text-sm leading-6 text-amber-100",children:[s.jsx(Yp,{"data-loc":"client/src/components/JordanHotelQuoteWorksp
1476ace.tsx:231",className:"mt-0.5 h-5 w-5 shrink-0 text-amber-300"}),s.jsx("p",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:232",children:a?"Ø§ÙØ³Ø¹Ø± ÙØªÙجة ØØ³Ø§Ø¨ÙØ© Ù
Ù Ø§ÙØªØ¹Ø±ÙØ© اÙÙ
ÙØ´Ùرة ÙÙÙØ³ تأÙÙØ¯ ØØ¬Ø². Ø§ÙØªÙÙØ± ÙØ§Ùسعر اÙÙÙØ§Ø¦Ù ÙØ´Ø±ÙØ· Ø§ÙØ¥Ùغاء ØªÙØ¹ØªÙ
د ØØµØ±Ø§Ù بعد تأÙÙØ¯ ÙØ±ÙÙ Ø§ÙØØ¬ÙØ²Ø§Øª.":"The displayed amount is calculated from the published tariff and is not a booking confirmation. Availability, final price, and cancellation terms require confirmation by the reservations team."})]}),L.error&&s.jsx("div",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:236",role:"alert",className:"mt-6 rounded-2xl border border-red-400/25 bg-red-400/10 p-4 text-sm text-red-100",children:L.error.message}),I&&s.jsxs("div",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:240",className:"mt-8","aria-live":"polite",children:[s.jsxs("div",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:241",className:"mb-4 flex flex-wrap items-center justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:242",children:[s.jsx("p",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:243",className:"text-xs uppercase tracking-[.2em] text-[#d8b15b]",children:a?"ÙØªØ§Ø¦Ø¬ اÙÙØ³Ø®Ø© اÙÙ
ÙØ´Ùرة":"Published-version results"}),s.jsx("h3",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:244",className:"mt-1 text-xl font-semibold",children:a?`${F.length} Ø®ÙØ§Ø± Ù
ØªØ§Ø ÙÙÙ
راجعة`:`${F.length} options for review`})]}),s.jsx("p",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:246",className:"text-xs text-slate-400",children:a?`ÙØ³Ø®Ø© ${I.version?.versionNumber??"â"}`:`Version ${I.version?.versionNumber??"â"}`})]}),F.length===0?s.jsx("div",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:250",className:"rounded-2xl border border-dashed border-white/15 bg-white/[.02] p-8 text-center text-slate-300",children:oe.empty}):s.jsx("div",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:252",className:"grid gap-4 xl:grid-cols-2",children:F.map(({property:G,option:K})=>s.jsxs("article",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:254",className:"group rounded-2xl border border-white/10 bg-white/[.035] p-5 transition duration-200 hover:-translate-y-0.5 hover:border-[#d8b15b]/40 hover:bg-white/[.055]",children:[s.jsxs("div",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:255",className:"flex items-start justify-between gap-4",children:[s.jsxs("div",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:256",children:[s.jsxs("div",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:257",className:"flex flex-wrap items-center gap-2",children:[s.jsx("h4",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:258",className:"font-serif text-xl font-semibold text-white",children:a?G.nameAr||G.name:G.name||G.nameAr}),G.stars&&s.jsxs("span",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:259",className:"rounded-full bg-[#d8b15b]/10 px-2 py-1 text-[11px] font-semibold text-[#e8cd8d]",children:[G.stars," â
"]})]}),s.jsx("p",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:261",className:"mt-1 text-sm text-slate-400",children:a?IN.find(ee=>ee.value===G.destination)?.ar:IN.find(ee=>ee.value===G.destination)?.en}),s.jsxs("p",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:262",className:"mt-1 text-xs text-slate-500",children:[K.roomType||(a?"ÙÙØ¹ Ø§ÙØºØ±ÙØ© ØØ³Ø¨ Ø§ÙØªØ¹Ø±ÙØ©":"Room type per tariff")," · ",K.mealPlan]})]}),s.jsx("span",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:264",className:`rounded-full px-2.5 py-1 text-[11px] font-bold ${K.price.kind==="exact"?"bg-emerald-400/10 text-emerald-200":K.price.kind==="range"?"bg-sky-400/10 text-sky-200":"bg-amber-300/10 text-amber-200"}`,children:K.price.kind==="exact"?a?"سعر Ù
ØØ³Ùب":"Calculated":K.price.kind==="range"?a?"ÙØ·Ø§Ù سعر":"Price range":a?"ØØ³Ø¨ Ø§ÙØ·Ùب":"On request"})]}),s.jsxs("div",{"data-loc":"client/src/components/JordanHotelQuoteWorksp
1476ace.tsx:269",className:"mt-5 grid grid-cols-3 gap-2 text-center",children:[s.jsxs("div",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:270",className:"rounded-xl bg-black/20 p-3",children:[s.jsx(Xb,{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:270",className:"mx-auto h-4 w-4 text-[#d8b15b]"}),s.jsx("p",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:270",className:"mt-1 text-xs text-slate-400",children:a?"اÙÙÙØ§ÙÙ":"Nights"}),s.jsx("strong",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:270",className:"text-sm",children:K.nights})]}),s.jsxs("div",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:271",className:"rounded-xl bg-black/20 p-3",children:[s.jsx(Dl,{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:271",className:"mx-auto h-4 w-4 text-[#d8b15b]"}),s.jsx("p",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:271",className:"mt-1 text-xs text-slate-400",children:a?"Ø§ÙØ¶ÙÙÙ":"Guests"}),s.jsx("strong",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:271",className:"text-sm",children:m+b.length})]}),s.jsxs("div",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:272",className:"rounded-xl bg-black/20 p-3",children:[s.jsx(Cl,{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:272",className:"mx-auto h-4 w-4 text-[#d8b15b]"}),s.jsx("p",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:272",className:"mt-1 text-xs text-slate-400",children:a?"Ø§ÙØºØ±Ù":"Rooms"}),s.jsx("strong",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:272",className:"text-sm",children:K.rooms})]})]}),K.price.kind!=="on_request"?s.jsxs("div",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:276",className:"mt-5 flex items-end justify-between gap-4 border-t border-white/10 pt-4",children:[s.jsxs("div",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:277",children:[s.jsx("p",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:278",className:"text-xs text-slate-400",children:a?"Ø§ÙØ¥Ø¬Ù
اÙÙ ÙÙØ¥ÙاÙ
Ø©":"Stay total"}),s.jsx("p",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:279",className:"mt-1 text-2xl font-black text-[#e8cd8d]",children:_(K)}),s.jsx("p",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:280",className:"mt-1 text-[11px] text-slate-500",children:a?"Ø¨Ø§ÙØ¯ÙÙØ§Ø± Ø§ÙØ£Ø±Ø¯ÙÙ ÙÙØ·":"Jordanian dinar only"})]}),s.jsx(ns,{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:282",className:"h-7 w-7 text-emerald-300"})]}):s.jsx("div",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:285",className:"mt-5 rounded-xl border border-amber-300/15 bg-amber-300/[.05] p-3 text-sm text-amber-100",children:a?"اÙÙ
ÙØ±Ùد ØØ¯Ùد ÙØ°Ø§ Ø§ÙØ®Ùار ØØ³Ø¨ Ø§ÙØ·ÙØ¨Ø ÙÙ ÙØ¹Ø±Ø¶ اÙÙØ¸Ø§Ù
Ø³Ø¹Ø±Ø§Ù Ø§ÙØªØ±Ø§Ø¶ÙاÙ.":"The supplier marked this option on request; the system will not invent a price."}),G.notices.length>0&&s.jsx("p",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:288",className:"mt-4 text-xs leading-5 text-slate-400",children:a?G.notices[0].ar:G.notices[0].en}),K.warnings.length>0&&s.jsx("p",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:289",className:"mt-2 text-xs leading-5 text-amber-200/80",children:K.warnings[0]}),s.jsxs("div",{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:291",className:"mt-5 flex flex-wrap gap-2",children:[s.jsxs(Ie,{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:292",type:"button",onClick:()=>O(G,K),className:"rounded-xl bg-emerald-600 text-white hover:bg-emerald-500",children:[s.jsx(Dd,{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:293",className:"h-4 w-4"}),a?"Ø·ÙØ¨ تأÙÙØ¯ Ø§ÙØØ¬Ø²":"Request confirmation"]}),t==="staff"&&s.jsxs(Ie,{"data-loc":"client/src/components/JordanHotelQuoteWorkspace.tsx:297",type:"button",variant:"outline",onClick:()=>U(G,K),className:"rounded-xl border-white/15 bg-white/[.03] text-white hover:bg-white/10",children:[s.jsx(L4,{"data-loc":"client/src/components/JordanHotelQuoteWorksp
1476ace.tsx:298",className:"h-4 w-4"}),A===G.propertyId?a?"ت٠اÙÙØ³Ø®":"Copied":a?"ÙØ³Ø® Ø§ÙØ§Ùتباس":"Copy quote"]})]})]},`${G.propertyId}-${K.rateLineId}`))})]})]})]})})}function sve({lang:e}){const t=e==="ar";return s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelQuotesTab.tsx:13",className:"space-y-6",dir:t?"rtl":"ltr",children:[s.jsx("section",{"data-loc":"client/src/components/accounting/JordanHotelQuotesTab.tsx:14",className:"overflow-hidden rounded-[28px] border border-border bg-card shadow-sm",children:s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelQuotesTab.tsx:15",className:"grid gap-6 bg-[linear-gradient(120deg,rgba(13,127,114,.12),rgba(216,177,91,.08),transparent)] p-6 md:grid-cols-[1fr_auto] md:items-center md:p-8",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelQuotesTab.tsx:16",className:"flex items-start gap-4",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/JordanHotelQuotesTab.tsx:17",className:"grid h-14 w-14 shrink-0 place-items-center rounded-2xl bg-[#0d7f72]/10 text-[#0d7f72]",children:s.jsx(ph,{"data-loc":"client/src/components/accounting/JordanHotelQuotesTab.tsx:18",className:"h-8 w-8"})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelQuotesTab.tsx:20",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/JordanHotelQuotesTab.tsx:21",className:"text-xs font-black uppercase tracking-[.18em] text-[#0d7f72]",children:"IBRIX JORDAN FIT"}),s.jsx("h2",{"data-loc":"client/src/components/accounting/JordanHotelQuotesTab.tsx:22",className:"mt-2 text-2xl font-bold text-foreground md:text-3xl",children:t?"Ù ØØ±Ù Ø§ÙØªØ¨Ø§Ø³ ÙÙØ§Ø¯Ù Ø§ÙØ£Ø±Ø¯Ù":"Jordan hotel quotation engine"}),s.jsx("p",{"data-loc":"client/src/components/accounting/JordanHotelQuotesTab.tsx:23",className:"mt-2 max-w-3xl text-sm leading-6 text-muted-foreground",children:t?"Ø§Ø¨ØØ« Ù Ù Ø§ÙØªØ¹Ø±ÙØ© اÙÙ ÙØ´Ùرة ÙÙØ·Ø Ø§ÙØ³Ø® Ø§ÙØ§Ùتباس ÙÙØ¹Ù ÙÙØ Ø«Ù Ø£Ø±Ø³Ù Ø·ÙØ¨ Ø§ÙØªØ£ÙÙØ¯ Ø¥ÙÙ ÙØ±ÙÙ Ø§ÙØØ¬ÙØ²Ø§Øª.":"Search the published tariff only, copy the client quote, then send a confirmation request to reservations."})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/JordanHotelQuotesTab.tsx:26",className:"grid gap-2 text-xs font-semibold text-muted-foreground sm:grid-cols-2 md:grid-cols-1",children:[s.jsxs("span",{"data-loc":"client/src/components/accounting/JordanHotelQuotesTab.tsx:27",className:"inline-flex items-center gap-2 rounded-full border border-border bg-background/70 px-3 py-2",children:[s.jsx(yu,{"data-loc":"client/src/components/accounting/JordanHotelQuotesTab.tsx:27",className:"h-4 w-4 text-emerald-600"}),t?"Ø§ÙØ¹Ù ÙØ© اÙÙÙØ§Ø¦ÙØ© JOD":"Final currency: JOD"]}),s.jsxs("span",{"data-loc":"client/src/components/accounting/JordanHotelQuotesTab.tsx:28",className:"inline-flex items-center gap-2 rounded-full border border-border bg-background/70 px-3 py-2",children:[s.jsx(sa,{"data-loc":"client/src/components/accounting/JordanHotelQuotesTab.tsx:28",className:"h-4 w-4 text-amber-600"}),t?"Ø§ÙØªØ£ÙÙØ¯ Ø¥ÙØ²Ø§Ù Ù ÙØ¨Ù Ø§ÙØ¨Ùع":"Confirmation required before sale"]})]})]})}),s.jsx(Qq,{"data-loc":"client/src/components/accounting/JordanHotelQuotesTab.tsx:32",lang:e,mode:"staff"})]})}const rve="/manus-storage/ibrix-logo_1fc1d3d8.png",Qn=(e,t,n)=>e==="ar"?t:n,Zs=e=>String(e??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""),f0=(e,t)=>new Intl.NumberFormat(t==="ar"?"ar-JO":"en-GB",{maximumFractionDigits:2}).format(e||0);function Kq(e,t,n,a){return`<header class="doc-header"> 1477 <div class="brand-lockup"> 1478 <img class="brand-mark" src="${rve}" alt="IBRIX"> 1479 <div><div class="brand-name latin">IBRIX</div><div class="brand-sub">${Qn(e,"Ø§ÙØ³Ùر ÙØ§ÙتشغÙÙ ÙØ§Ùخد٠ة","Travel, operations, and service")}</div></div> 1480 </div> 1481 <div class="doc-identity"> 1482 <div class="doc-kicker">${t}</div> 1483 <div class="doc-number" dir="ltr"><bdi>${n}</bdi></div> 1484 <div class="doc-date">${a}</div> 1485 </div> 1486 </header>`}function Zq(e){return`<footer class="doc-footer footer ltr"> 1487 <div class="legal">${Qn(e,"IBRIX · Ø§ÙØ³Ùر ÙØ§ÙتشغÙÙ ÙØ§Ùخد٠ة","IBRIX · Travel, operations, and service")} · <span dir="ltr">www.ibrix.digital</span></div> 1488 <div class="signature-mark"><a href="https://www.ibrix.digital">IBRIX</a> · www.ibrix.digital</div> 1489 </footer>`}const XI=(e,t)=>({hotel:Qn(e,"Ø¥ÙØ§Ù Ø© ÙÙØ¯ÙÙØ©","Hotel"),transport:Qn(e,"ÙÙÙ","Transport"),guide:Qn(e,"دÙÙÙ Ø³ÙØ§ØÙ","Guide"),tour:Qn(e,"جÙÙØ© Ø³ÙØ§ØÙØ©","Tour"),flight:Qn(e,"Ø·ÙØ±Ø§Ù","Flight"),other:Qn(e,"خد٠ة أخرÙ","Other service")})[t]||t,ive=(e,t)=>
1489({issued:Qn(e,"صادرة","Issued"),confirmed:Qn(e,"Ù Ø¤ÙØ¯Ø©","Confirmed"),used:Qn(e,"٠ستخد٠ة","Used"),cancelled:Qn(e,"Ù ÙØºØ§Ø©","Cancelled")})[t]||t;function ove(e,t){const n=String(e.status||"issued"),a=Zs(e.currency||"JOD"),r=Number(e.totalCost??(e.units||1)*(e.ratePerUnit||0)),i=[e.serviceDate,e.serviceEndDate].filter(Boolean).map(Zs).join(" â ")||"â",o=x9(n);return`<!doctype html><html lang="${t}" dir="${t==="ar"?"rtl":"ltr"}"><head><meta charset="utf-8"><meta name="author" content="IBRIX"><meta name="creator" content="IBRIX"><title>${Zs(e.voucherNumber||"Voucher")} â IBRIX</title>${d6}<style>${m6(t,"standard")} 1490 .voucher-hero{display:grid;grid-template-columns:1.25fr .75fr;gap:4mm;margin-bottom:4mm}.service-panel{padding:5mm;background:linear-gradient(135deg,var(--orbit-ink),var(--orbit-teal));color:#fff;border-radius:2mm}.service-panel .section-label{color:var(--orbit-gold-soft)}.service-panel strong{display:block;margin-top:2mm;font-size:15pt;line-height:1.45}.status-panel{display:flex;flex-direction:column;justify-content:space-between;padding:5mm;border:1px solid var(--orbit-line);border-top:3px solid var(--orbit-gold);border-radius:2mm}.voucher-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3mm;margin-bottom:4mm}.voucher-facts .info-card{padding:3.3mm}.voucher-facts strong{font-size:9.4pt}.cost-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:4mm;border:1px solid var(--orbit-line);border-radius:2mm;overflow:hidden}.cost-cell{padding:3.5mm;border-inline-end:1px solid var(--orbit-line);background:var(--orbit-paper-soft)}.cost-cell:last-child{border-inline-end:0;background:var(--orbit-ink);color:#fff}.cost-cell strong{display:block;margin-top:1.5mm;font-family:'Manrope',sans-serif;font-size:11pt;font-variant-numeric:tabular-nums}.cost-cell:last-child strong{color:var(--orbit-gold-soft);font-size:14pt}.copy-note{text-align:center;margin-top:3mm;font-size:7pt;color:var(--orbit-muted);letter-spacing:.08em} 1491 @media print{.service-panel,.cost-cell:last-child{-webkit-print-color-adjust:exact;print-color-adjust:exact}} 1492 </style></head><body><main class="print-shell"> 1493 ${Kq(t,Qn(t,"ÙØ³ÙÙ Ø© خد٠ات","Service voucher"),Zs(e.voucherNumber||"â"),`<span class="${o}">${Zs(ive(t,n))}</span>`)} 1494 <section class="doc-body"> 1495 <div class="voucher-hero"> 1496 <div class="service-panel"><div class="section-label">${Qn(t,"Ø§ÙØ®Ø¯Ù Ø© اÙÙ ÙØ¯Ù Ø©","Service provided")}</div><strong dir="auto">${Zs(e.serviceDescription||XI(t,e.type||"other"))}</strong></div> 1497 <div class="status-panel"><div><div class="section-label">${Qn(t,"ÙÙØ¹ اÙÙØ³ÙÙ Ø©","Voucher type")}</div><strong>${Zs(XI(t,e.type||"other"))}</strong></div><div class="muted">${Qn(t,"ÙÙØ±Ø¬Ù ØªÙØ¯ÙÙ ÙØ°Ù اÙÙØ³ÙÙ Ø© Ø¥ÙÙ Ù Ø²ÙØ¯ Ø§ÙØ®Ø¯Ù Ø©","Please present this voucher to the service provider")}</div></div> 1498 </div> 1499 <div class="info-grid"> 1500 <div class="info-card"><div class="section-label">${Qn(t,"اس٠اÙÙ Ø³Ø§ÙØ± / Ø§ÙØ¹Ù ÙÙ","Traveler / customer")}</div><strong dir="auto">${Zs(e.customerName||"â")}</strong><div class="muted">${Qn(t,"اÙ٠ستÙÙØ¯ Ù Ù Ø§ÙØ®Ø¯Ù Ø©","Service beneficiary")}</div></div> 1501 <div class="info-card"><div class="section-label">${Qn(t,"ØªØ§Ø±ÙØ® Ø§ÙØ®Ø¯Ù Ø©","Service dates")}</div><strong class="latin" dir="ltr"><bdi>${i}</bdi></strong><div class="muted">${Qn(t,"Ø¨Ø¯Ø§ÙØ© ÙÙÙØ§ÙØ© Ø§ÙØ®Ø¯Ù Ø©","Service start and end")}</div></div> 1502 </div> 1503 <div class="voucher-facts"> 1504 <div class="info-card"><div class="section-label">${Qn(t,"عدد اÙÙ Ø³Ø§ÙØ±ÙÙ","Passengers")}</div><strong class="latin">${f0(e.pax||1,t)}</strong></div> 1505 <div class="info-card"><div class="section-label">${Qn(t,"عدد اÙÙØØ¯Ø§Øª","Units")}</div><strong class="latin">${f0(e.units||1,t)}</strong></div> 1506 <div class="info-card"><div class="section-label">${Qn(t,"Ø§ÙØ¹Ù ÙØ©","Currency")}</div><strong class="latin">${a}</strong></div> 1507 </div> 1508 <div class="section-label">${Qn(t,"Ù ÙØ§ØØ¸Ø§Øª ÙØªØ¹ÙÙ٠ات","Notes & instructions")}</div> 1509 <div class="note-box" dir="auto">${Zs(e.notes||Qn(t,"تخضع Ø§ÙØ®Ø¯Ù Ø© ÙØªØ£ÙÙØ¯ اÙÙ Ø²ÙØ¯ ÙØ´Ø±ÙØ· Ø§ÙØØ¬Ø² ÙØ§ÙØ¥ÙØºØ§Ø¡ اÙ٠عت٠دة.","Service is subject to supplier confirmation and the applicable booking and cancellation conditions."))}</div> 1510 <div class="cost-strip"> 1511 <div class="cost-cell"><div class="section-label">${Qn(t,"Ø§ÙØ³Ø¹Ø± ÙÙÙØØ¯Ø©","Rate / unit")}</div><strong dir="ltr"><bdi>${f0(e.ratePerUnit,t)} ${a}</bdi></strong></div> 1512 <div class="cost-cell"><div class="section-label">${Qn(t,"اÙÙØØ¯Ø§Øª","Units")}</div><strong>${f0(e.units||1,t)}</strong></div> 1513 <div class="cost-cell"><div class="section-label">${Qn(t,"اÙÙ Ø³Ø§ÙØ±ÙÙ","Pax")}</div><strong>${f0(e.pax||1,t)}</strong></div> 1514 <div class="cost-cell"><div class="section-label">${Qn(t,"Ø§ÙØ¥Ø¬Ù اÙÙ","Total")}</div><strong dir="ltr"><bdi>${f0(r,t)} ${a}</bdi></strong></div> 1515 </div> 1516 <div class="copy-note latin">OFFICE COPY · SUPPLIER COPY · CLIENT COPY</div> 1517 </section> 1518 ${Zq(t)} 1519 </main></body></html>`}const cve=(e,t)=>
1519({flight:Qn(e,"Ø·ÙØ±Ø§Ù","Flight"),bus:Qn(e,"ØØ§ÙÙØ©","Bus"),private_vehicle:Qn(e,"Ù Ø±ÙØ¨Ø© خاصة","Private vehicle")})[t]||t;function lve(e,t){const n=Array.isArray(e.passengers)?e.passengers:[],a=n.length>=16?"dense":n.length>10?"compact":"standard",r=n.map((o,c)=>`<tr> 1520 <td class="center latin">${c+1}</td> 1521 <td dir="auto">${Zs(o.name||"â")}</td> 1522 <td class="latin" dir="ltr"><bdi>${Zs(o.passportNumber||"â")}</bdi></td> 1523 <td dir="auto">${Zs(o.nationality||"â")}</td> 1524 <td class="latin" dir="ltr"><bdi>${Zs(o.dateOfBirth||"â")}</bdi></td> 1525 <td dir="auto">${Zs(o.roomType||"â")}</td> 1526 <td dir="auto">${Zs(o.notes||"â")}</td> 1527 </tr>`).join(""),i=`${Zs(e.origin||"â")} â ${Zs(e.destination||"â")}`;return`<!doctype html><html lang="${t}" dir="${t==="ar"?"rtl":"ltr"}"><head><meta charset="utf-8"><meta name="author" content="IBRIX"><meta name="creator" content="IBRIX"><title>${Zs(e.manifestNumber||"Manifest")} â IBRIX</title>${d6}<style>${m6(t,a)} 1528 .manifest-title{margin-bottom:${a==="dense"?"2mm":"3.5mm"};padding:${a==="dense"?"2.3mm 3mm":"3.5mm 4mm"};border-inline-start:3px solid var(--orbit-gold);background:var(--orbit-paper-soft)}.manifest-title strong{display:block;font-size:${a==="dense"?"11pt":"13pt"};line-height:1.3}.manifest-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:${a==="dense"?"1.8mm":"2.5mm"};margin-bottom:${a==="dense"?"2mm":"3.5mm"}}.manifest-meta .info-card{padding:${a==="dense"?"1.8mm":"2.8mm"}}.manifest-meta strong{font-size:${a==="dense"?"7.7pt":"8.8pt"}}.manifest-table{font-size:${a==="dense"?"6.5pt":a==="compact"?"7.3pt":"8pt"};margin-top:${a==="dense"?"1mm":"2mm"};margin-bottom:${a==="dense"?"1.5mm":"4.5mm"}}.manifest-table th,.manifest-table td{padding:${a==="dense"?".85mm 1mm":a==="compact"?"1.65mm 1.3mm":"2.2mm 1.6mm"}}.manifest-table col:nth-child(1){width:4%}.manifest-table col:nth-child(2){width:21%}.manifest-table col:nth-child(3){width:15%}.manifest-table col:nth-child(4){width:12%}.manifest-table col:nth-child(5){width:13%}.manifest-table col:nth-child(6){width:13%}.manifest-table col:nth-child(7){width:22%}.manifest-summary{display:grid;grid-template-columns:1fr auto;gap:${a==="dense"?"2mm":"4mm"};align-items:stretch;margin-top:${a==="dense"?"1.5mm":"3.5mm"}}.manifest-summary .note-box{min-height:${a==="dense"?"9mm":"13mm"};padding:${a==="dense"?"2mm 3mm":"3mm 4mm"}}.pax-total{display:flex;min-width:${a==="dense"?"31mm":"36mm"};flex-direction:column;align-items:center;justify-content:center;padding:${a==="dense"?"2mm":"3mm"};background:var(--orbit-ink);color:#fff;border-radius:2mm}.pax-total strong{font-family:'Manrope',sans-serif;color:var(--orbit-gold-soft);font-size:${a==="dense"?"14pt":"17pt"}}.manifest-table thead{display:table-header-group}.manifest-table tr{break-inside:avoid;page-break-inside:avoid}.manifest-table tbody{break-inside:auto} 1529 @media print{.manifest-table thead{display:table-header-group}.manifest-table tfoot{display:table-footer-group}.manifest-title,.manifest-meta,.manifest-summary{break-inside:avoid}} 1530 </style></head><body><main class="print-shell manifest-shell"> 1531 ${Kq(t,Qn(t,"ÙØ´Ù اÙÙ Ø³Ø§ÙØ±ÙÙ","Passenger manifest"),Zs(e.manifestNumber||"â"),Zs(e.departDate||"â"))} 1532 <section class="doc-body"> 1533 <div class="manifest-title"><div class="section-label">${Qn(t,"اس٠اÙÙ Ø¬Ù ÙØ¹Ø© / Ø§ÙØ±ØÙØ©","Group / trip title")}</div><strong dir="auto">${Zs(e.title||"â")}</strong></div> 1534 <div class="manifest-meta"> 1535 <div class="info-card"><div class="section-label">${Qn(t,"ÙÙØ¹ اÙÙÙÙ","Transport")}</div><strong>${Zs(cve(t,e.transportType||"bus"))}</strong></div> 1536 <div class="info-card"><div class="section-label">${Qn(t,"اÙÙØ§ÙÙ","Carrier")}</div><strong dir="auto">${Zs(e.carrier||"â")}</strong></div> 1537 <div class="info-card"><div class="section-label">${Qn(t,"رÙÙ Ø§ÙØ±ØÙØ©","Trip number")}</div><strong class="latin" dir="ltr"><bdi>${Zs(e.tripNumber||"â")}</bdi></strong></div> 1538 <div class="info-card"><div class="section-label">${Qn(t,"اÙ٠سار","Route")}</div><strong class="latin" dir="ltr"><bdi>${i}</bdi></strong></div> 1539 </div> 1540 <table class="data-table manifest-table"> 1541 <colgroup><col><col><col><col><col><col><col></colgroup> 1542 <thead><tr><th class="center">#</th><th>${Qn(t,"اس٠اÙÙ Ø³Ø§ÙØ±","Passenger")}</th><th>${Qn(t,"رÙÙ Ø§ÙØ¬Ùاز","Passport")}</th><th>${Qn(t,"Ø§ÙØ¬ÙØ³ÙØ©","Nationality")}</th><th>${Qn(t,"ØªØ§Ø±ÙØ® اÙÙ ÙÙØ§Ø¯","Date of birth")}</th><th>${Qn(t,"ÙÙØ¹ Ø§ÙØºØ±ÙØ©","Room type")}</th><th>${Qn(t,"Ù ÙØ§ØØ¸Ø§Øª","Notes")}</th></tr></thead> 1543 <tbody>${r||`<tr><td colspan="7" class="center">${Qn(t,"ÙØ§ ÙÙØ¬Ø¯ Ù Ø³Ø§ÙØ±Ù٠٠سجÙÙÙ","No passengers recorded")}</td></tr>`}</tbody> 1544 </table> 1545 <div class="manifest-summary"> 1546 <div class="note-box" dir="auto">${Zs(e.notes||Qn(t,"ÙØ¬Ø¨ Ù Ø·Ø§Ø¨ÙØ© أس٠اء اÙÙ Ø³Ø§ÙØ±ÙÙ ÙØ£Ø±ÙØ§Ù Ø¬ÙØ§Ø²Ø§ØªÙ٠٠ع ÙØ«Ø§Ø¦Ù Ø§ÙØ³Ùر Ø§ÙØ£ØµÙÙØ© ÙØ¨Ù اÙ٠غادرة.","Passenger names and passport numbers must be verified against original travel documents before departure."))}</div> 1547 <div class="pax-total"><span>${Qn(t,"إج٠اÙ٠اÙÙ Ø³Ø§ÙØ±ÙÙ","Total pax")}</span><strong>${f0(e.paxCount??n.length,t)}</strong></div> 1548 </div> 1549 </section> 1550 ${Zq(t)} 1551 </main></body></html>`}const ba=(e,t,n)=>e==="ar"?t:n,ON={flight:{ar:"Ø·ÙØ±Ø§Ù",en:"Flight"},bus:{ar:"ØØ§ÙÙØ©",en:"Bus"},private_vehicle:{ar:"Ù Ø±ÙØ¨Ø© خاصة",en:"Private vehicle"}},uve=(e,t)=>
1551new Intl.NumberFormat(t==="ar"?"ar-JO":"en-JO").format(e||0);function dve({lang:e}){const t=Pe.useUtils(),{data:n,isLoading:a}=Pe.accounting.manifests.list.useQuery(),[r,i]=k.useState(!1),[o,c]=k.useState(null),[l,d]=k.useState({manifestNumber:"",title:"",transportType:"bus",carrier:"",tripNumber:"",origin:"",destination:"",departDate:"",notes:""}),[m,h]=k.useState([{name:"",passportNumber:"",nationality:"",dateOfBirth:"",roomType:"",notes:""}]),x=Pe.accounting.manifests.create.useMutation({onSuccess:()=>{t.accounting.manifests.list.invalidate(),Le.success(ba(e,"تÙ
Ø¥ÙØ´Ø§Ø¡ ÙØ´Ù Ø§ÙØ±Ùاب","Manifest created")),i(!1),d({manifestNumber:"",title:"",transportType:"bus",carrier:"",tripNumber:"",origin:"",destination:"",departDate:"",notes:""}),h([{name:"",passportNumber:"",nationality:"",dateOfBirth:"",roomType:"",notes:""}])},onError:w=>Le.error(w.message)}),f=()=>h([...m,{name:"",passportNumber:"",nationality:"",dateOfBirth:"",roomType:"",notes:""}]),b=w=>h(m.filter((T,A)=>A!==w)),y=(w,T,A)=>{const E=[...m];E[w][T]=A,h(E)};return s.jsxs("div",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:44",className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:45",className:"flex items-center justify-between",children:[s.jsx("h3",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:46",className:"font-display text-lg font-bold",children:ba(e,"ÙØ´ÙÙ Ø§ÙØ±Ùاب","Manifests")}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:47",size:"sm",onClick:()=>i(!0),children:[s.jsx(oa,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:47",className:"w-4 h-4 mx-1.5"}),ba(e,"ÙØ´Ù Ø¬Ø¯ÙØ¯","New Manifest")]})]}),a?s.jsx("div",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:49",className:"flex justify-center py-12",children:s.jsx(ft,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:49",className:"w-6 h-6 animate-spin text-primary"})}):n?.length?s.jsx("div",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:52",className:"overflow-x-auto rounded-lg border border-border",children:s.jsxs("table",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:53",className:"w-full text-sm",children:[s.jsx("thead",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:54",className:"bg-muted/50",children:s.jsxs("tr",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:54",className:"text-start",children:[s.jsx("th",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:55",className:"px-4 py-3 font-medium",children:ba(e,"رÙÙ
اÙÙØ´Ù","Manifest #")}),s.jsx("th",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:56",className:"px-4 py-3 font-medium",children:ba(e,"Ø§ÙØ¹ÙÙØ§Ù","Title")}),s.jsx("th",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:57",className:"px-4 py-3 font-medium",children:ba(e,"اÙÙÙØ¹","Type")}),s.jsx("th",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:58",className:"px-4 py-3 font-medium",children:ba(e,"اÙÙØ§ÙÙ","Carrier")}),s.jsx("th",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:59",className:"px-4 py-3 font-medium",children:ba(e,"اÙÙ
سار","Route")}),s.jsx("th",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:60",className:"px-4 py-3 font-medium",children:ba(e,"اÙÙ
غادرة","Departure")}),s.jsx("th",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:61",className:"px-4 py-3 font-medium",children:ba(e,"Ø§ÙØ±Ùاب","PAX")}),s.jsx("th",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:62",className:"px-4 py-3 text-center font-medium",children:ba(e,"اÙÙ
Ø³ØªÙØ¯","Document")})]})}),s.jsx("tbody",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:64",children:n.map(w=>s.jsxs("tr",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:66",className:"border-t border-border hover:bg-muted/30",children:[s.jsx("td",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:67",className:"px-4 py-3 font-medium",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/
1551accounting/ManifestsTab.tsx:67",children:w.manifestNumber})}),s.jsx("td",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:68",className:"px-4 py-3",dir:"auto",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:68",children:w.title})}),s.jsx("td",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:69",className:"px-4 py-3",children:ON[w.transportType]?ba(e,ON[w.transportType].ar,ON[w.transportType].en):w.transportType}),s.jsx("td",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:70",className:"px-4 py-3 text-muted-foreground",dir:"auto",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:70",children:w.carrier||"â"})}),s.jsx("td",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:71",className:"px-4 py-3 text-muted-foreground",dir:"auto",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:71",children:w.origin&&w.destination?`${w.origin} â ${w.destination}`:"â"})}),s.jsx("td",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:72",className:"px-4 py-3 text-muted-foreground",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:72",children:w.departDate||"â"})}),s.jsx("td",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:73",className:"px-4 py-3 font-medium",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:73",children:uve(w.paxCount,e)})}),s.jsx("td",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:74",className:"px-4 py-3 text-center",children:s.jsxs(Ie,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:74",type:"button",variant:"outline",size:"sm",onClick:()=>c(w),children:[s.jsx(Gi,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:74",className:"h-4 w-4"}),ba(e,"Ù
عاÙÙØ©","Preview")]})})]},w.id))})]})}):s.jsx(kn,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:50",children:s.jsxs(Un,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:50",className:"py-12 text-center text-muted-foreground",children:[s.jsx(Dl,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:50",className:"w-10 h-10 mx-auto mb-3 opacity-40"}),ba(e,"ÙØ§ ØªÙØ¬Ø¯ ÙØ´Ù٠بعد","No manifests yet")]})}),s.jsx(Ba,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:81",open:r,onOpenChange:i,children:s.jsxs(Fa,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:82",className:"max-w-3xl max-h-[90vh] overflow-y-auto",children:[s.jsx(as,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:83",children:s.jsx(Ua,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:83",children:ba(e,"Ø¥ÙØ´Ø§Ø¡ ÙØ´Ù Ø±ÙØ§Ø¨","Create Manifest")})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:84",className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:85",className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:86",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:86",children:ba(e,"رÙÙ
اÙÙØ´Ù","Manifest Number")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:86",dir:"ltr",className:"text-left",value:l.manifestNumber,onChange:w=>d({...l,manifestNumber:w.target.value}),placeholder:"MAN-2026-000001"})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:87",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:87",children:ba(e,"Ø§ÙØ¹ÙÙØ§Ù","Title")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:87",value:l.title,onChange:w=>d({...l,title:w.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:88",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:88",children:ba(e,"ÙÙØ¹ اÙÙÙÙ","Transport Type")}
1551),s.jsxs("select",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:88",className:"w-full h-9 rounded-md border border-input bg-background px-3 text-sm",value:l.transportType,onChange:w=>d({...l,transportType:w.target.value}),children:[s.jsx("option",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:88",value:"flight",children:ba(e,"Ø·ÙØ±Ø§Ù","Flight")}),s.jsx("option",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:88",value:"bus",children:ba(e,"ØØ§ÙÙØ©","Bus")}),s.jsx("option",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:88",value:"private_vehicle",children:ba(e,"Ù
Ø±ÙØ¨Ø© خاصة","Private Vehicle")})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:89",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:89",children:ba(e,"اÙÙØ§ÙÙ","Carrier")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:89",value:l.carrier,onChange:w=>d({...l,carrier:w.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:90",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:90",children:ba(e,"رÙÙ
Ø§ÙØ±ØÙØ©","Trip Number")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:90",dir:"ltr",className:"text-left",value:l.tripNumber,onChange:w=>d({...l,tripNumber:w.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:91",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:91",children:ba(e,"ØªØ§Ø±ÙØ® اÙÙ
غادرة","Departure Date")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:91",dir:"ltr",className:"text-left",type:"date",value:l.departDate,onChange:w=>d({...l,departDate:w.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:92",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:92",children:ba(e,"Ù
Ù","Origin")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:92",value:l.origin,onChange:w=>d({...l,origin:w.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:93",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:93",children:ba(e,"Ø¥ÙÙ","Destination")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:93",value:l.destination,onChange:w=>d({...l,destination:w.target.value})})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:95",className:"space-y-2",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:96",className:"flex items-center justify-between",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:96",className:"text-base font-semibold",children:ba(e,"ÙØ§Ø¦Ù
Ø© Ø§ÙØ±Ùاب","Passenger List")}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:96",size:"sm",variant:"outline",onClick:f,children:[s.jsx(oa,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:96",className:"w-3 h-3 mx-1"}),ba(e,"Ø¥Ø¶Ø§ÙØ© Ø±Ø§ÙØ¨","Add Passenger")]})]}),m.map((w,T)=>s.jsxs("div",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:98",className:"grid grid-cols-12 gap-2 items-end p-2 rounded-lg bg-muted/30",children:[s.jsx("div",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:99",className:"col-span-3",children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:99",placeholder:ba(e,"Ø§ÙØ§Ø³Ù
","Name"),value:w.name,onChange:A=>y(T,"name",A.target.value)})}),s.jsx("div",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:100",className:"col-span-2",children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:100",dir:"ltr",className:"text-left",placeholder:ba(e,"رÙÙ
Ø§ÙØ¬Ùاز","Passport"),value:w.passportNumber,onChange:A=>y(T,"passportNumber",A.target.value)})}
1551),s.jsx("div",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:101",className:"col-span-2",children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:101",placeholder:ba(e,"Ø§ÙØ¬ÙØ³ÙØ©","Nationality"),value:w.nationality,onChange:A=>y(T,"nationality",A.target.value)})}),s.jsx("div",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:102",className:"col-span-2",children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:102",dir:"ltr",className:"text-left",type:"date",placeholder:ba(e,"ØªØ§Ø±ÙØ® اÙÙ
ÙÙØ§Ø¯","DOB"),value:w.dateOfBirth,onChange:A=>y(T,"dateOfBirth",A.target.value)})}),s.jsx("div",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:103",className:"col-span-2",children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:103",placeholder:ba(e,"ÙÙØ¹ Ø§ÙØºØ±ÙØ©","Room"),value:w.roomType,onChange:A=>y(T,"roomType",A.target.value)})}),s.jsx("div",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:104",className:"col-span-1",children:m.length>1&&s.jsx(Ie,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:104",size:"sm",variant:"ghost",onClick:()=>b(T),children:s.jsx(ks,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:104",className:"w-4 h-4 text-red-500"})})})]},T))]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:108",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:108",children:ba(e,"Ù
ÙØ§ØØ¸Ø§Øª","Notes")}),s.jsx(es,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:108",value:l.notes,onChange:w=>d({...l,notes:w.target.value}),rows:2})]})]}),s.jsxs(ei,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:110",children:[s.jsx(Ie,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:111",variant:"outline",onClick:()=>i(!1),children:ba(e,"Ø¥ÙØºØ§Ø¡","Cancel")}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:112",onClick:()=>x.mutate({...l,bookingId:null,carrier:l.carrier||null,tripNumber:l.tripNumber||null,origin:l.origin||null,destination:l.destination||null,departDate:l.departDate||null,passengers:m,notes:l.notes||null}),disabled:x.isPending,children:[x.isPending&&s.jsx(ft,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:112",className:"w-4 h-4 mx-1.5 animate-spin"}),ba(e,"Ø¥ÙØ´Ø§Ø¡","Create")]})]})]})}),s.jsx(u6,{"data-loc":"client/src/components/accounting/ManifestsTab.tsx:116",open:!!o,onClose:()=>c(null),title:ba(e,`ÙØ´Ù Ù
Ø³Ø§ÙØ±ÙÙ â${o?.manifestNumber||""}â`,`Passenger Manifest ${o?.manifestNumber||""}`),htmlContent:o?lve(o,e):"",lang:e,emailSubject:ba(e,`ÙØ´Ù Ù
Ø³Ø§ÙØ±ÙÙ â${o?.manifestNumber||""}â â IBRIX`,`Passenger Manifest ${o?.manifestNumber||""} â IBRIX`)})]})}function mve({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/table.tsx:7","data-slot":"table-container",className:"relative w-full overflow-x-auto",children:s.jsx("table",{"data-loc":"client/src/components/ui/table.tsx:11","data-slot":"table",className:an("w-full caption-bottom text-sm",e),...t})})}function pve({className:e,...t}){return s.jsx("thead",{"data-loc":"client/src/components/ui/table.tsx:22","data-slot":"table-header",className:an("[&_tr]:border-b",e),...t})}function hve({className:e,...t}){return s.jsx("tbody",{"data-loc":"client/src/components/ui/table.tsx:32","data-slot":"table-body",className:an("[&_tr:last-child]:border-0",e),...t})}function QI({className:e,...t}){return s.jsx("tr",{"data-loc":"client/src/components/ui/table.tsx:55","data-slot":"table-row",className:an("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",e),...t})}function pg({className:e,...t}){return s.jsx("th",{"data-loc":"client/src/components/ui/table.tsx:68","data-slot":"table-head",className:an("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function hg({className:e,...t}){return s.jsx("td",{"data-loc":"client/src/components/ui/table.tsx:81","data-slot":"table-cell",className:an("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}const KI={received:"border-sky-300/20 bg-sky-300/10 text-sky-200",pending:"border-amber-300/20 bg-amber-300/10 text-amber-200",sent:"border-emerald-300/20 bg-emerald-300/10 text-emerald-200",failed:"border-rose-300/20 bg-rose-300/10 text-rose-200"};function ZI(e,t){if(!e)return"â";const n=new Date(e);return Number.isNaN(n.getTime())?"â":new Intl.DateTimeFormat(t==="ar"?"ar-JO":"en-GB",{dateStyle:"medium",timeStyle:"short"}).format(n)}function fve(e){return(e||"").replace(/<style[\s\S]*?<\/style>/gi," ").replace(/<[^>]+>/g," ").replace(/ /g," ").replace(/&/g,"&").replace(/\s+/g," ").trim()}function gve({lang:e}){const t=e==="ar",n=Pe.useUtils(),[a,r]=k.useState(""),[i,o]=k.useState(""),[c,l]=k.useState("all"),[d,m]=k.useState("all"),[h,x]=k.useState(null),[f,b]=k.useState(null),y=k.useMemo(()=>({limit:250,...i?{search:i}:{},...c!=="all"?{status:c}:{},...d!=="all"?{direction:d}:{}}),[d,i,c]),w=Pe.accounting.emailNotifications.list.useQuery(y,{retry:!1}),T=Pe.accounting.emailNotifications.summary.useQuery(void 0,{retry:!1}),A=Pe.accounting.emailNotifications.detail.useQuery({id:h??0},{enabled:h!==null,retry:!1}),E=Pe.accounting.emailNotifications.retry.useMutation({onSuccess:async()=>{b({tone:"success",text:t?"تÙ
ت إعادة Ø§ÙØ¥Ø±Ø³Ø§Ù Ø¨ÙØ¬Ø§Ø ÙØªØØ¯ÙØ« ØØ§ÙØ© Ø§ÙØªØ³ÙÙÙ
.":"Message resent and delivery status updated."}),await Promise.all([n.accounting.emailNotifications.list.invali
1551date(),n.accounting.emailNotifications.summary.invalidate(),n.accounting.emailNotifications.detail.invalidate()])},onError:F=>b({tone:"error",text:F.message})}),D={title:t?"Ø³Ø¬Ù Ø§ÙØ±Ø³Ø§Ø¦Ù":"Message delivery log",intro:t?"Ù
تابعة Ø±Ø³Ø§Ø¦Ù Ø§ÙØ¹Ù
ÙØ§Ø¡ ÙØªØ£ÙÙØ¯Ø§Øª Ø§ÙØØ¬Ø² ÙÙ
ØØ§ÙÙØ§Øª Ø§ÙØªØ³ÙÙÙ
Ù
Ù Ù
ÙØ§Ù ÙØ§ØØ¯.":"Track customer messages, booking confirmations, and delivery attempts in one place.",search:t?"Ø§Ø¨ØØ« Ø¨Ø§ÙØ¨Ø±Ùد أ٠اÙÙ
ÙØ¶Ùع أ٠اÙÙ
رجع":"Search email, subject, or reference",allStatuses:t?"ÙÙ Ø§ÙØØ§ÙØ§Øª":"All statuses",allDirections:t?"ÙÙ Ø§ÙØ§ØªØ¬Ø§Ùات":"All directions",incoming:t?"ÙØ§Ø±Ø¯Ø©":"Inbound",outgoing:t?"صادرة":"Outbound",received:t?"Ù
ستÙÙ
Ø©":"Received",pending:t?"ÙÙØ¯ Ø§ÙØ¥Ø±Ø³Ø§Ù":"Pending",sent:t?"تÙ
Ø§ÙØªØ³ÙÙÙ
":"Delivered",failed:t?"Ù
تعذرة":"Failed"},S=F=>D[F],R=w.data??[],L=T.data??{total:0,received:0,pending:0,sent:0,failed:0},I=F=>{F.preventDefault(),o(a.trim())};return s.jsxs("div",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:119",className:"space-y-6",children:[s.jsx("section",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:120",className:"orbit-enter overflow-hidden rounded-[26px] border border-cyan-300/10 bg-gradient-to-br from-cyan-300/[0.10] via-white/[0.035] to-violet-400/[0.06] p-6 md:p-8",children:s.jsxs("div",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:121",className:"flex flex-col gap-5 lg:flex-row lg:items-end lg:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:122",className:"max-w-2xl",children:[s.jsxs("span",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:123",className:"inline-flex items-center gap-2 rounded-full border border-cyan-300/15 bg-cyan-300/[0.07] px-3 py-1.5 text-xs font-medium text-cyan-200",children:[s.jsx(Pd,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:123",className:"h-3.5 w-3.5"}),t?"Ù
Ø±Ø§ÙØ¨Ø© Ø§ÙØªØ³ÙÙÙ
":"DELIVERY CONTROL"]}),s.jsx("h1",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:124",className:"mt-4 text-2xl font-semibold tracking-tight text-white md:text-3xl",children:D.title}),s.jsx("p",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:125",className:"mt-2 text-sm leading-7 text-slate-400",children:D.intro})]}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:127",variant:"outline",onClick:()=>Promise.all([w.refetch(),T.refetch()]),disabled:w.isFetching||T.isFetching,className:"border-white/10 bg-white/[0.04] text-slate-200 hover:bg-white/[0.08] hover:text-white",children:[s.jsx(JU,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:133",className:`h-4 w-4 ${w.isFetching||T.isFetching?"animate-spin":""}`}),t?"ØªØØ¯ÙØ« Ø§ÙØ³Ø¬Ù":"Refresh log"]})]})}),s.jsx("section",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:139",className:"grid gap-3 sm:grid-cols-2 xl:grid-cols-5",children:[{label:t?"إجÙ
اÙÙ Ø§ÙØ³Ø¬Ù":"Total records",value:L.total,icon:x3,color:"text-cyan-200"},{label:D.received,value:L.received,icon:mP,color:"text-sky-200"},{label:D.sent,value:L.sent,icon:ns,color:"text-emerald-200"},{label:D.pending,value:L.pending,icon:X0,color:"text-amber-200"},{label:D.failed,value:L.failed,icon:Ak,color:"text-rose-200"}].map(({label:F,value:_,icon:U,color:O})=>s.jsx(kn,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:147",className:"border-white/[0.07] bg-white/[0.035] text-white shadow-none",children:s.jsxs(Un,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:148",className:"flex items-center justify-between gap-3 p-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:149",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:149",className:"text-xs text-slate-500",children:F}),s.jsx("p",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:149",className:"mt-1 text-2xl font-semibold",children:T.isLoading?"â":_})]}
1551),s.jsx("span",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:150",className:`flex h-10 w-10 items-center justify-center rounded-xl border border-current/10 bg-current/[0.06] ${O}`,children:s.jsx(U,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:150",className:"h-5 w-5"})})]})},F))}),s.jsx(kn,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:156",className:"border-white/[0.07] bg-white/[0.035] text-white shadow-none",children:s.jsxs(Un,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:157",className:"p-4 md:p-5",children:[s.jsxs("form",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:158",onSubmit:I,className:"grid gap-3 lg:grid-cols-[minmax(260px,1fr)_190px_190px_auto]",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:159",className:"relative",children:[s.jsx(so,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:160",className:`absolute top-1/2 h-4 w-4 -translate-y-1/2 text-slate-500 ${t?"right-3":"left-3"}`}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:161",value:a,onChange:F=>r(F.target.value),placeholder:D.search,className:`border-white/10 bg-[#071018]/55 text-white placeholder:text-slate-600 ${t?"pr-10":"pl-10"}`})]}),s.jsxs(qn,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:163",value:c,onValueChange:F=>l(F),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:164",className:"border-white/10 bg-[#071018]/55 text-slate-200",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:164"})}),s.jsxs(Wn,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:165",children:[s.jsx(At,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:165",value:"all",children:D.allStatuses}),s.jsx(At,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:165",value:"received",children:D.received}),s.jsx(At,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:165",value:"pending",children:D.pending}),s.jsx(At,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:165",value:"sent",children:D.sent}),s.jsx(At,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:165",value:"failed",children:D.failed})]})]}),s.jsxs(qn,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:167",value:d,onValueChange:F=>m(F),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:168",className:"border-white/10 bg-[#071018]/55 text-slate-200",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:168"})}),s.jsxs(Wn,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:169",children:[s.jsx(At,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:169",value:"all",children:D.allDirections}),s.jsx(At,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:169",value:"inbound",children:D.incoming}),s.jsx(At,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:169",value:"outbound",children:D.outgoing})]})]}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:171",type:"submit",className:"bg-cyan-300 text-[#061019] hover:bg-cyan-200",children:[s.jsx(so,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:171",className:"h-4 w-4"}),t?"Ø¨ØØ«":"Search"]})]}),f&&s.jsx("div",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:173",role:"status",className:`mt-4 rounded-xl border px-4 py-3 text-sm ${f.tone==="success"?"border-emerald-300/20 bg-emerald-300/[0.07] text-emerald-100":"border-rose-300/20 bg-rose-300/[0.07] text-rose-100"}`,children:f.text})]})}),s.jsx(kn,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:177",className:"overflow-hidden border-white/[0.07] bg-white/[0.035] text-white shadow-none",children:s.jsx(Un,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:178",className:"p-0",children:w.isLoading?s.jsx("div",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:180",className:"space-y-3 p-5",children:Array.from({length:5}).map((F,_)=>
1551s.jsx(jN,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:180",className:"h-14 bg-white/[0.06]"},_))}):w.isError?s.jsxs("div",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:182",className:"p-8 text-center",children:[s.jsx(Ak,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:182",className:"mx-auto h-8 w-8 text-rose-300"}),s.jsx("p",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:182",className:"mt-3 text-sm text-rose-100",children:t?"تعذر تØÙ
ÙÙ Ø§ÙØ³Ø¬Ù. تØÙÙ Ù
Ù ØµÙØ§ØÙØ© Ù
Ø¯ÙØ± اÙÙØ¸Ø§Ù
Ø«Ù
أعد اÙÙ
ØØ§ÙÙØ©.":"The log could not be loaded. Verify administrator access and retry."})]}):R.length===0?s.jsxs("div",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:184",className:"p-10 text-center",children:[s.jsx(x3,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:184",className:"mx-auto h-9 w-9 text-slate-600"}),s.jsx("p",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:184",className:"mt-3 text-sm text-slate-400",children:t?"ÙØ§ ØªÙØ¬Ø¯ رسائ٠Ù
Ø·Ø§Ø¨ÙØ© ÙÙÙÙØ§ØªØ± Ø§ÙØØ§ÙÙØ©.":"No messages match the current filters."})]}):s.jsx("div",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:186",className:"overflow-x-auto",children:s.jsxs(mve,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:187",children:[s.jsx(pve,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:188",children:s.jsxs(QI,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:188",className:"border-white/[0.07] hover:bg-transparent",children:[s.jsx(pg,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:188",className:"text-slate-500",children:t?"Ø§ÙØ§ØªØ¬Ø§Ù":"Direction"}),s.jsx(pg,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:188",className:"text-slate-500",children:t?"اÙÙ
ÙØ¶Ùع ÙØ§ÙÙ
رجع":"Subject & reference"}),s.jsx(pg,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:188",className:"text-slate-500",children:t?"Ø§ÙØ¨Ø±Ùد":"Email"}),s.jsx(pg,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:188",className:"text-slate-500",children:t?"Ø§ÙØØ§ÙØ©":"Status"}),s.jsx(pg,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:188",className:"text-slate-500",children:t?"آخر Ù
ØØ§ÙÙØ©":"Last attempt"}),s.jsx(pg,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:188",className:"text-slate-500",children:t?"إجراء":"Action"})]})}),s.jsx(hve,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:189",children:R.map(F=>{const _=F.status,U=F.direction;return s.jsxs(QI,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:193",className:"border-white/[0.06] hover:bg-white/[0.025]",children:[s.jsx(hg,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:194",children:s.jsxs("span",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:194",className:"inline-flex items-center gap-1.5 text-xs text-slate-300",children:[U==="inbound"?s.jsx(mP,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:194",className:"h-4 w-4 text-sky-300"}):s.jsx(ch,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:194",className:"h-4 w-4 text-violet-300"}),U==="inbound"?D.incoming:D.outgoing]})}),s.jsxs(hg,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:195",className:"min-w-[240px]",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:195",className:"max-w-[360px] truncate text-sm font-medium text-white",children:F.subject}),s.jsxs("p",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:195",className:"mt-1 text-xs text-slate-600",children:[F.entityType||"â",F.entityId?` · #${F.entityId}`:""]})]}),s.jsx(hg,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:196",className:"max-w-[220px] truncate text-xs text-slate-400",children:U==="inbound"?F.fromEmail:F.toEmail}),s.jsx(hg,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:197",children:s.jsx(Pn,{"data-loc":"client/src/components/
1551accounting/MessageLogTab.tsx:197",variant:"outline",className:KI[_],children:S(_)})}),s.jsxs(hg,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:198",className:"whitespace-nowrap text-xs text-slate-500",children:[ZI(F.lastAttemptAt||F.createdAt,e),s.jsxs("p",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:198",className:"mt-1 text-[10px] text-slate-700",children:[t?"Ù
ØØ§ÙÙØ§Øª":"Attempts",": ",F.attemptCount??0]})]}),s.jsx(hg,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:199",children:s.jsxs(Ie,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:199",size:"sm",variant:"ghost",onClick:()=>{x(F.id),b(null)},className:"text-cyan-200 hover:bg-cyan-300/10 hover:text-cyan-100",children:[s.jsx(Gi,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:199",className:"h-4 w-4"}),s.jsx("span",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:199",className:"sr-only",children:t?"عرض":"View"})]})})]},F.id)})})]})})})}),s.jsx(Ba,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:209",open:h!==null,onOpenChange:F=>!F&&x(null),children:s.jsxs(Fa,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:210",className:"max-h-[88vh] max-w-2xl overflow-y-auto border-white/10 bg-[#0b1721] text-white",dir:t?"rtl":"ltr",children:[s.jsxs(as,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:211",children:[s.jsx(Ua,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:211",children:t?"ØªÙØ§ØµÙÙ Ø§ÙØ±Ø³Ø§ÙØ©":"Message details"}),s.jsx(F2,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:211",className:"text-slate-500",children:t?"Ø¨ÙØ§Ùات اÙÙ
Ø±Ø§Ø³ÙØ© ÙØØ§ÙØ© Ø§ÙØªØ³ÙÙÙ
دÙ٠عرض Ø¨ÙØ§Ùات اعتÙ
اد SMTP.":"Message and delivery data without exposing SMTP credentials."})]}),A.isLoading?s.jsxs("div",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:212",className:"space-y-3 py-4",children:[s.jsx(jN,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:212",className:"h-9 bg-white/[0.06]"}),s.jsx(jN,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:212",className:"h-32 bg-white/[0.06]"})]}):A.data?s.jsxs("div",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:213",className:"space-y-5",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:214",className:"grid gap-3 rounded-2xl border border-white/[0.07] bg-white/[0.03] p-4 sm:grid-cols-2",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:215",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:215",className:"text-[11px] text-slate-600",children:t?"Ø§ÙØØ§ÙØ©":"Status"}),s.jsx(Pn,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:215",variant:"outline",className:`mt-1 ${KI[A.data.status]}`,children:S(A.data.status)})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:216",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:216",className:"text-[11px] text-slate-600",children:t?"اÙÙÙØ¹":"Type"}),s.jsx("p",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:216",className:"mt-1 text-sm text-slate-300",children:A.data.type})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:217",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:217",className:"text-[11px] text-slate-600",children:t?"Ù
Ù":"From"}),s.jsx("p",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:217",className:"mt-1 break-all text-sm text-slate-300",children:A.data.fromEmail||"â"})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:218",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:218",className:"text-[11px] text-slate-600",children:t?"Ø¥ÙÙ":"To"}),s.jsx("p",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:218",className:"mt-1 break-all text-sm text-slate-300",children:A.data.toEmail})]}
1551),s.jsxs("div",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:219",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:219",className:"text-[11px] text-slate-600",children:t?"ØªØ§Ø±ÙØ® Ø§ÙØ¥Ùشاء":"Created"}),s.jsx("p",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:219",className:"mt-1 text-sm text-slate-300",children:ZI(A.data.createdAt,e)})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:220",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:220",className:"text-[11px] text-slate-600",children:t?"عدد اÙÙ
ØØ§ÙÙØ§Øª":"Attempts"}),s.jsx("p",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:220",className:"mt-1 text-sm text-slate-300",children:A.data.attemptCount??0})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:222",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:222",className:"text-xs text-slate-600",children:t?"اÙÙ
ÙØ¶Ùع":"Subject"}),s.jsx("p",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:222",className:"mt-1 text-base font-medium text-white",children:A.data.subject})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:223",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:223",className:"text-xs text-slate-600",children:t?"اÙÙ
ØØªÙÙ":"Content"}),s.jsx("div",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:223",className:"mt-2 whitespace-pre-wrap rounded-2xl border border-white/[0.07] bg-[#071018] p-4 text-sm leading-7 text-slate-300",children:fve(A.data.body)||(t?"ÙØ§ ÙÙØ¬Ø¯ Ù
ØØªÙÙ Ù
ØÙÙØ¸.":"No stored content.")})]}),A.data.errorMessage&&s.jsxs("div",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:224",className:"rounded-xl border border-rose-300/20 bg-rose-300/[0.07] p-4 text-sm text-rose-100",children:[s.jsx("strong",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:224",children:t?"سبب Ø§ÙØªØ¹Ø«Ø±: ":"Failure reason: "}),A.data.errorMessage]}),A.data.direction==="outbound"&&(A.data.status==="failed"||A.data.status==="pending")&&s.jsxs(Ie,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:225",onClick:()=>E.mutate({id:A.data.id}),disabled:E.isPending,className:"w-full bg-cyan-300 text-[#061019] hover:bg-cyan-200",children:[s.jsx(Zb,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:225",className:"h-4 w-4"}),E.isPending?t?"جار٠إعادة Ø§ÙØ¥Ø±Ø³Ø§Ù...":"Resending...":t?"إعادة Ø§ÙØ¥Ø±Ø³Ø§Ù Ø§ÙØ¢Ù":"Retry delivery",E.isPending&&s.jsx(ft,{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:225",className:"h-4 w-4 animate-spin"})]})]}):s.jsx("p",{"data-loc":"client/src/components/accounting/MessageLogTab.tsx:227",className:"py-6 text-sm text-slate-400",children:t?"تعذر تØÙ
ÙÙ ØªÙØ§ØµÙÙ Ø§ÙØ±Ø³Ø§ÙØ©.":"Message details could not be loaded."})]})})]})}const Wa=(e,t,n)=>e==="ar"?t:n,xve=(e,t,n)=>new Intl.NumberFormat(e==="ar"?"ar-JO":"en-JO",{style:"currency",currency:n,maximumFractionDigits:2}).format(t||0),eM={cash:{ar:"ÙÙØ¯Ø§Ù",en:"Cash"},bank_transfer:{ar:"تØÙÙ٠بÙÙÙ",en:"Bank Transfer"},credit_card:{ar:"Ø¨Ø·Ø§ÙØ© ائتÙ
اÙÙØ©",en:"Credit Card"},cheque:{ar:"Ø´ÙÙ",en:"Cheque"},online:{ar:"Ø¥ÙÙØªØ±ÙÙÙ",en:"Online"}};function bve({lang:e}){const t=Pe.useUtils(),{data:n,isLoading:a}=Pe.accounting.payments.list.useQuery(),[r,i]=k.useState(!1),[o,c]=k.useState({paymentNumber:"",direction:"receipt",partyName:"",paymentDate:new Date().toISOString().split("T")[0],amount:0,currency:"JOD",method:"cash",reference:"",notes:""}),l=Pe.accounting.payments.create.useMutation({onSuccess:()=>{t.accounting.payments.list.invalidate(),t.accounting.dashboard.invalidate(),Le.success(Wa(e,"تÙ
تسجÙÙ Ø§ÙØ¯Ùعة","Payment recorded")),i(!1),c({paymentNumber:"",direction:"receipt",partyName:"",paymentDate:new Date().toISOString().split("T")[0],amount:0,currency:"JOD",method:"cash",reference:"",n
1551otes:""})},onError:d=>Le.error(d.message)});return s.jsxs("div",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:35",className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:36",className:"flex items-center justify-between",children:[s.jsx("h3",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:37",className:"font-display text-lg font-bold",children:Wa(e,"اÙÙ
دÙÙØ¹Ø§Øª","Payments")}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:38",size:"sm",onClick:()=>i(!0),children:[s.jsx(oa,{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:38",className:"h-4 w-4"}),Wa(e,"Ø¯ÙØ¹Ø© Ø¬Ø¯ÙØ¯Ø©","New Payment")]})]}),a?s.jsx("div",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:40",className:"flex justify-center py-12",children:s.jsx(ft,{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:40",className:"w-6 h-6 animate-spin text-primary"})}):n?.length?s.jsx("div",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:43",className:"overflow-x-auto rounded-lg border border-border",children:s.jsxs("table",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:44",className:"w-full text-sm",children:[s.jsx("thead",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:45",className:"bg-muted/50",children:s.jsxs("tr",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:45",className:"text-start",children:[s.jsx("th",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:46",className:"px-4 py-3 font-medium",children:Wa(e,"رÙÙ
Ø§ÙØ¯Ùعة","Payment #")}),s.jsx("th",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:47",className:"px-4 py-3 font-medium",children:Wa(e,"اÙÙÙØ¹","Direction")}),s.jsx("th",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:48",className:"px-4 py-3 font-medium",children:Wa(e,"Ø§ÙØ·Ø±Ù","Party")}),s.jsx("th",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:49",className:"px-4 py-3 font-medium",children:Wa(e,"Ø§ÙØªØ§Ø±ÙØ®","Date")}),s.jsx("th",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:50",className:"px-4 py-3 font-medium",children:Wa(e,"اÙÙ
Ø¨ÙØº","Amount")}),s.jsx("th",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:51",className:"px-4 py-3 font-medium",children:Wa(e,"Ø§ÙØ·Ø±ÙÙØ©","Method")})]})}),s.jsx("tbody",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:53",children:n.map(d=>s.jsxs("tr",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:55",className:"border-t border-border hover:bg-muted/30",children:[s.jsx("td",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:56",className:"px-4 py-3 font-medium",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:56",children:d.paymentNumber})}),s.jsx("td",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:57",className:"px-4 py-3",children:s.jsx("span",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:57",className:`px-2 py-0.5 rounded-full text-xs ${d.direction==="receipt"?"bg-emerald-100 text-emerald-700 dark:bg-emerald-900 dark:text-emerald-300":"bg-red-100 text-red-700 dark:bg-red-900 dark:text-red-300"}`,children:d.direction==="receipt"?Wa(e,"ÙØ¨Ø¶","Receipt"):Wa(e,"صرÙ","Disbursement")})}),s.jsx("td",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:58",className:"px-4 py-3",children:d.partyName}),s.jsx("td",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:59",className:"px-4 py-3 text-muted-foreground",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:59",children:d.paymentDate})}),s.jsx("td",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:60",className:`px-4 py-3 font-medium ${d.direction==="receipt"?"text-emerald-600":"text-red-600"}`,dir:"ltr",children:s.jsxs("bdi",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:60",children:[d.direction==="receipt"?"+":"â",xve(e,d.amount,d.currency)]})}
1551),s.jsx("td",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:61",className:"px-4 py-3 text-muted-foreground",children:Wa(e,eM[d.method]?.ar||d.method,eM[d.method]?.en||d.method)})]},d.id))})]})}):s.jsx(kn,{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:41",children:s.jsxs(Un,{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:41",className:"py-12 text-center text-muted-foreground",children:[s.jsx(th,{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:41",className:"w-10 h-10 mx-auto mb-3 opacity-40"}),Wa(e,"ÙØ§ ØªÙØ¬Ø¯ Ù
دÙÙØ¹Ø§Øª","No payments yet")]})}),s.jsx(Ba,{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:68",open:r,onOpenChange:i,children:s.jsxs(Fa,{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:69",children:[s.jsx(as,{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:70",children:s.jsx(Ua,{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:70",children:Wa(e,"تسجÙÙ Ø¯ÙØ¹Ø©","Record Payment")})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:71",className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:72",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:72",children:Wa(e,"رÙÙ
Ø§ÙØ¯Ùعة","Payment Number")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:72",dir:"ltr",className:"text-left",value:o.paymentNumber,onChange:d=>c({...o,paymentNumber:d.target.value}),placeholder:"PAY-2026-000001"})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:73",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:73",children:Wa(e,"اÙÙÙØ¹","Direction")}),s.jsxs("select",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:73",className:"w-full h-9 rounded-md border border-input bg-background px-3 text-sm",value:o.direction,onChange:d=>c({...o,direction:d.target.value}),children:[s.jsx("option",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:73",value:"receipt",children:Wa(e,"ÙØ¨Ø¶ (ÙØ§Ø±Ø¯)","Receipt (In)")}),s.jsx("option",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:73",value:"disbursement",children:Wa(e,"صر٠(صادر)","Disbursement (Out)")})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:74",className:"col-span-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:74",children:Wa(e,"اسÙ
Ø§ÙØ·Ø±Ù","Party Name")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:74",value:o.partyName,onChange:d=>c({...o,partyName:d.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:75",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:75",children:Wa(e,"Ø§ÙØªØ§Ø±ÙØ®","Date")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:75",dir:"ltr",className:"text-left",type:"date",value:o.paymentDate,onChange:d=>c({...o,paymentDate:d.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:76",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:76",children:Wa(e,"اÙÙ
Ø¨ÙØº","Amount")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:76",dir:"ltr",className:"text-left",type:"number",value:o.amount,onChange:d=>c({...o,amount:Number(d.target.value)})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:77",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:77",children:Wa(e,"Ø§ÙØ¹Ù
ÙØ©","Currency")}),s.jsxs("select",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:77",className:"w-full h-9 rounded-md border border-input bg-background px-3 text-sm",value:o.currency,onChange:d=>c({...o,currency:d.target.value}),children:[s.jsx("option",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:77",value:"JOD",children:"JOD"}
1551),s.jsx("option",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:77",value:"USD",children:"USD"}),s.jsx("option",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:77",value:"SAR",children:"SAR"})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:78",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:78",children:Wa(e,"Ø§ÙØ·Ø±ÙÙØ©","Method")}),s.jsxs("select",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:78",className:"w-full h-9 rounded-md border border-input bg-background px-3 text-sm",value:o.method,onChange:d=>c({...o,method:d.target.value}),children:[s.jsx("option",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:78",value:"cash",children:Wa(e,"ÙÙØ¯Ø§Ù","Cash")}),s.jsx("option",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:78",value:"bank_transfer",children:Wa(e,"تØÙÙ٠بÙÙÙ","Bank Transfer")}),s.jsx("option",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:78",value:"credit_card",children:Wa(e,"Ø¨Ø·Ø§ÙØ© ائتÙ
اÙ","Credit Card")}),s.jsx("option",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:78",value:"cheque",children:Wa(e,"Ø´ÙÙ","Cheque")}),s.jsx("option",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:78",value:"online",children:Wa(e,"Ø¥ÙÙØªØ±ÙÙÙ","Online")})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:79",className:"col-span-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:79",children:Wa(e,"Ù
رجع","Reference")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:79",dir:"ltr",className:"text-left",value:o.reference,onChange:d=>c({...o,reference:d.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:80",className:"col-span-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:80",children:Wa(e,"Ù
ÙØ§ØØ¸Ø§Øª","Notes")}),s.jsx(es,{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:80",value:o.notes,onChange:d=>c({...o,notes:d.target.value}),rows:2})]})]}),s.jsxs(ei,{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:82",children:[s.jsx(Ie,{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:83",variant:"outline",onClick:()=>i(!1),children:Wa(e,"Ø¥ÙØºØ§Ø¡","Cancel")}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:84",onClick:()=>l.mutate({...o,invoiceId:null,supplierInvoiceId:null,bookingId:null,reference:o.reference||null,accountCode:null,notes:o.notes||null}),disabled:l.isPending,children:[l.isPending&&s.jsx(ft,{"data-loc":"client/src/components/accounting/PaymentsTab.tsx:84",className:"h-4 w-4 animate-spin"}),Wa(e,"تسجÙÙ","Record")]})]})]})})]})}function BN(e,t=""){return typeof e=="string"&&e.trim()?e.trim().toUpperCase():t}function fg(e){if(typeof e=="number"&&Number.isFinite(e))return e;if(typeof e=="string"&&e.trim()){const t=Number(e.replace(/,/g,"").trim());return Number.isFinite(t)?t:null}return null}function gg(e){return e!==null&&e>=0}function tM(e){return e==="JOD"?3:2}function xg(e,t){if(e===null)return!0;const n=10**t;return Math.abs(e*n-Math.round(e*n))<1e-8}function M1(e,t,n){const a=10**n;return Math.round(e*a)===Math.round(t*a)}function s0(e){if(typeof e!="string"||!/^\d{4}-\d{2}-\d{2}$/.test(e.trim()))return null;const t=new Date(`${e.trim()}T00:00:00.000Z`);return Number.isNaN(t.getTime())?null:t}function Qy(e,t){return e.getTime()<t.getTime()}function vve(e,t){const n=String(e.labelEn||e.labelAr||"").trim().toLowerCase(),a=String(e.occupancy||"").trim().toLowerCase(),r=String(e.basis||"").trim().toLowerCase();return n||a||r?`${n}|${a}|${r}`:`line-${t+1}`}function yve(e){const t=[],n=[],a=BN(e.currency,"JOD"),r=tM(a),i=fg(e.price),o=fg(e.landPrice),c=fg(e.ticketPrice),l=e.ticketPriceIndexId,d=s0(e.validFrom),m=s0(e.validTo),h=e.bookingDeadline?.trim()?s0(e.bookingDeadline):null,x=e.ticketPricedAt?.trim()?s0(e.ticketPricedAt):null,f=e.ticketValidUntil?.trim()?s0(e.ticketValidUntil):null,b=e.asOfDate?.trim()?s0(e.asOfDate):s0(new Date().toISOString().slice(0,10)),y=e.sourceReference?.trim()||"";gg(i)||t.push("Package selling price must be a finite non-negative amount."),i!==null&&i<=0&&t.push("Package selling price must be greater than zero before approval."),gg(o)||t.pu
1551sh("Land selling price must be a finite non-negative amount."),gg(c)||t.push("Ticket selling price must be a finite non-negative amount."),xg(i,r)||t.push(`Package selling price exceeds ${a} currency precision.`),xg(o,r)||t.push(`Land selling price exceeds ${a} currency precision.`),xg(c,r)||t.push(`Ticket selling price exceeds ${a} currency precision.`),e.ticketIncluded&&BN(e.ticketCurrency,a)!==a&&t.push("Ticket currency must match package currency; automatic conversion is not permitted."),!e.ticketIncluded&&c&&c>0&&t.push("A package without an included ticket cannot carry a ticket price."),y||t.push("A source reference is required before approval."),d||t.push("A valid package start date (YYYY-MM-DD) is required before approval."),m||t.push("A valid package end date (YYYY-MM-DD) is required before approval."),d&&m&&Qy(m,d)&&t.push("Package end date cannot precede its start date."),e.bookingDeadline?.trim()&&!h&&t.push("Booking deadline must use YYYY-MM-DD."),h&&m&&Qy(m,h)&&t.push("Booking deadline cannot be later than the package end date."),e.ticketIncluded&&c!==null&&c>0&&((!Number.isInteger(l)||(l||0)<=0)&&t.push("Included ticket must be linked to a documented flight-route price record before approval."),e.ticketRoute?.trim()||t.pu
1551sh("Included ticket route is required before approval."),e.operatingDays?.some(D=>D.trim())||t.push("Included ticket operating days are required before approval."),e.ticketPriceSource?.trim()||t.push("Included ticket price source is required before approval."),x||t.push("Included ticket priced-at date must use YYYY-MM-DD."),f||t.push("Included ticket validity date must use YYYY-MM-DD."),x&&f&&Qy(f,x)&&t.push("Included ticket validity cannot precede its priced-at date."),f&&b&&Qy(f,b)&&t.push("Included ticket price has expired and must be refreshed before approval."));const w=[],T=new Map;e.pricingDetails.forEach((D,S)=>{const R=BN(D.currency,a),L=tM(R),I=fg(D.amount),F=fg(D.sellingPrice),_=fg(D.netCost),U=vve(D,S),O=String(D.occupancy||"").trim(),W=String(D.basis||"").trim(),J=D.amount!==void 0&&D.amount!==null&&String(D.amount).trim()!=="",oe=D.sellingPrice!==void 0&&D.sellingPrice!==null&&String(D.sellingPrice).trim()!=="",G=D.netCost!==void 0&&D.netCost!==null&&String(D.netCost).trim()!=="";R!==a&&t.push(`Pricing line ${S+1} currency (${R}) differs from package currency (${a}); add a separately reviewed conversion before publishing.`),(J&&I===null||I!==null&&!gg(I))&&t.push(`Pricing line ${S+1} amount is invalid.`),(oe&&F===null||F!==null&&!gg(F))&&t.push(`Pricing line ${S+1} selling price is invalid.`),(G&&_===null||_!==null&&!gg(_))&&t.push(`Pricing line ${S+1}
1551 net cost is invalid.`),(!xg(I,L)||!xg(F,L)||!xg(_,L))&&t.push(`Pricing line ${S+1} exceeds ${R} currency precision.`),I!==null&&F!==null&&!M1(I,F,L)&&t.push(`Pricing line ${S+1} amount must equal its explicit selling price.`);const K=F??I;K!==null&&(!O&&!W&&t.push(`Pricing line ${S+1} requires an explicit occupancy classification or price basis before approval.`),T.has(U)&&(M1(T.get(U),K,L)?t.push(`Duplicate pricing identity "${U}" repeats the same selling price and must be consolidated before approval.`):t.push(`Duplicate pricing identity "${U}" has conflicting selling prices.`)),T.set(U,K),w.push(K),_!==null&&K<_&&t.push(`Pricing line ${S+1} has a negative margin; it requires correction before approval.`))}),e.ticketIncluded&&i!==null&&o!==null&&c!==null&&!M1(i,o+c,r)&&t.push("Package total must equal land selling price plus ticket selling price."),!e.ticketIncluded&&i!==null&&o!==null&&!M1(i,o,r)&&t.push("A land-only package total must equal its land selling price.");const A=w.length?Math.min(...w):null,E=w.length?Math.max(...w):null;return w.length&&i!==null&&!w.some(D=>M1(D,i,r))&&t.push("Package headline price must equal one explicit reviewed pricing-line selling price."),{errors:t,warnings:n,minimumExplicitSellingPrice:A,maximumExplicitSellingPrice:E}}var b9="Progress",v9=100,[wve]=Ll(b9),[Tve,Nve]=wve(b9),eG=k.forwardRef((e,t)=>{const{__scopeProgress:n,value:a=null,max:r,getValueLabel:i=kve,...o}=e;(r||r===0)&&!nM(r)&&console.error(jve(`${r}`,"Progress"));const c=nM(r)?r:v9;a!==null&&!aM(a,c)&&console.error(Ave(`${a}`,"Progress"));const l=aM(a,c)?a:null,d=H3(l)?i(l,c):void 0;return s.jsx(Tve,{scope:n,value:l,max:c,children:s.jsx(Vn.div,{"aria-valuemax":c,"aria-valuemin":0,"aria-valuenow":H3(l)?l:void 0,"aria-valuetext":d,role:"progressbar","data-state":aG(l,c),"data-value":l??void 0,"data-max":c,...o,ref:t})})});eG.displayName=b9;var tG="ProgressIndicator",nG=k.forwardRef((e,t)=>{const{__scopeProgress:n,...a}=e,r=Nve(tG,n);return s.jsx(Vn.div,{"data-state":aG(r.value,r.max),"data-value":r.value??void 0,"data-max":r.max,...a,ref:t})});nG.displayName=tG;function kve(e,t){return`${Math.round(e/t*100)}%`}function aG(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function H3(e){return typeof e=="number"}function nM(e){return H3(e)&&!isNaN(e)&&e>0}function aM(e,t){return H3(e)&&!isNaN(e)&&e<=t&&e>=0}function jve(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${v9}\`.`}function Ave(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: 1552 - a positive number 1553 - less than the value passed to \`max\` (or ${v9} if no \`max\` prop is set) 1554 - \`null\` or \`undefined\` if the progress is indeterminate. 1555 1556Defaulting to \`null\`.`}var Eve=eG,Cve=nG;function Sve({className:e,value:t,...n}){return s.jsx(Eve,{"data-loc":"client/src/components/ui/progress.tsx:12","data-slot":"progress",className:an("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",e),...n,children:s.jsx(Cve,{"data-loc":"client/src/components/ui/progress.tsx:20","data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})})}var p6="Tabs",[_ve]=Ll(p6,[Q4]),sG=Q4(),[Pve,y9]=_ve(p6),rG=k.forwardRef((e,t)=>{const{__scopeTabs:n,value:a,onValueChange:r,defaultValue:i,orientation:o="horizontal",dir:c,activationMode:l="automatic",...d}=e,m=G2(c),[h,x]=oh({prop:a,onChange:r,defaultProp:i??"",caller:p6});return s.jsx(Pve,{scope:n,baseId:fu(),value:h,onValueChange:x,orientation:o,dir:m,activationMode:l,children:s.jsx(Vn.div,{dir:m,"data-orientation":o,...d,ref:t})})});rG.displayName=p6;var iG="TabsList",oG=k.forwardRef((e,t)=>{const{__scopeTabs:n,loop:a=!0,...r}=e,i=y9(iG,n),o=sG(n);return s.jsx(kz,{asChild:!0,...o,orientation:i.orientation,dir:i.dir,loop:a,children:s.jsx(Vn.div,{role:"tablist","aria-orientation":i.orientation,...r,ref:t})})});oG.displayName=iG;var cG="TabsTrigger",lG=k.forwardRef((e,t)=>{const{__scopeTabs:n,value:a,disabled:r=!1,...i}=e,o=y9(cG,n),c=sG(n),l=mG(o.baseId,a),d=pG(o.baseId,a),m=a===o.value;return s.jsx(jz,{asChild:!0,...c,focusable:!r,active:m,children:s.jsx(Vn.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":d,"data-state":m?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...i,ref:t,onMouseDown:Kt(e.onMouseDown,h=>{!r&&h.button===0&&h.ctrlKey===!1?o.onValueChange(a):h.preventDefault()}),onKeyDown:Kt(e.onKeyDown,h=>{[" ","Enter"].includes(h.key)&&o.onValueChange(a)}),onFocus:Kt(e.onFocus,()=>{const h=o.activationMode!=="manual";!m&&!r&&h&&o.onValueChange(a)})})})});lG.displayName=cG;var uG="TabsContent",dG=k.forwardRef((e,t)=>
1556{const{__scopeTabs:n,value:a,forceMount:r,children:i,...o}=e,c=y9(uG,n),l=mG(c.baseId,a),d=pG(c.baseId,a),m=a===c.value,h=k.useRef(m);return k.useEffect(()=>{const x=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(x)},[]),s.jsx(Uo,{present:r||m,children:({present:x})=>s.jsx(Vn.div,{"data-state":m?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":l,hidden:!x,id:d,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:h.current?"0s":void 0},children:x&&i})})});dG.displayName=uG;function mG(e,t){return`${e}-trigger-${t}`}function pG(e,t){return`${e}-content-${t}`}var Dve=rG,Rve=oG,Ive=lG,Mve=dG;function Lve({className:e,...t}){return s.jsx(Dve,{"data-loc":"client/src/components/ui/tabs.tsx:11","data-slot":"tabs",className:an("flex flex-col gap-2",e),...t})}function Ove({className:e,...t}){return s.jsx(Rve,{"data-loc":"client/src/components/ui/tabs.tsx:24","data-slot":"tabs-list",className:an("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function L1({className:e,...t}){return s.jsx(Ive,{"data-loc":"client/src/components/ui/tabs.tsx:40","data-slot":"tabs-trigger",className:an("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function O1({className:e,...t}){return s.jsx(Mve,{"data-loc":"client/src/components/ui/tabs.tsx:56","data-slot":"tabs-content",className:an("flex-1 outline-none",e),...t})}const Fe=(e,t,n)=>e==="ar"?t:n,sM=e=>e==="ar"?"ar-JO":"en-GB",Bve=(e,t)=>String(e?.[t]||e?.[t==="ar"?"en":"ar"]||""),Fve={uploaded:{ar:"Ù
رÙÙØ¹",en:"Uploaded",className:"border-sky-300 bg-sky-50 text-sky-700"},extracting:{ar:"Ø¬Ø§Ø±Ù Ø§ÙØ§Ø³ØªØ®Ø±Ø§Ø¬",en:"Extracting",className:"border-violet-300 bg-violet-50 text-violet-700"},review_required:{ar:"Ø¨Ø§ÙØªØ¸Ø§Ø± اÙÙ
راجعة",en:"Review required",className:"border-amber-300 bg-amber-50 text-amber-800"},ready_for_review:{ar:"Ø¬Ø§ÙØ² ÙÙÙ
راجعة",en:"Ready for review",className:"border-amber-300 bg-amber-50 text-amber-800"},validation_failed:{ar:"ÙØªØ·Ùب تصØÙØØ§Ù",en:"Needs correction",className:"border-rose-300 bg-rose-50 text-rose-700"},approved:{ar:"Ù
عتÙ
د",en:"Approved",className:"border-emerald-300 bg-emerald-50 text-emerald-700"},published:{ar:"Ù
ÙØ´Ùر",en:"Published",className:"border-teal-300 bg-teal-50 text-teal-700"},rejected:{ar:"Ù
رÙÙØ¶",en:"Rejected",className:"border-slate-300 bg-slate-50 text-slate-700"},rolled_back:{ar:"تÙ
Ø§ÙØ±Ø¬Ùع",en:"Rolled back",className:"border-rose-300 bg-rose-50 text-rose-700"},superseded:{ar:"إصدار سابÙ",en:"Superseded",className:"border-slate-300 bg-slate-50 text-slate-700"},error:{ar:"خطأ",en:"Error",className:"border-red-300 bg-red-50 text-red-700"}},Uve={pending:{ar:"Ø¬Ø¯ÙØ¯",en:"New",className:"border-sky-300 bg-sky-50 text-sky-700"},reviewed:{ar:"تÙ
ت اÙÙ
راجعة",en:"Reviewed",className:"border-amber-300 bg-amber-50 text-amber-800"},approved:{ar:"Ù
عتÙ
د",en:"Approved",className:"border-emerald-300 bg-emerald-50 text-emerald-700"},rejected:{ar:"Ù
رÙÙØ¶",en:"Rejected",className:"border-slate-300 bg-slate-50 text-slate-700"},published:{ar:"Ù
ÙØ´Ùر",en:"Published",className:"border-teal-300 bg-teal-50 text-teal-700"}},rM={packageType:"family",travelDirection:"outbound",titleAr:"",titleEn:"",cityAr:"",cityEn:"",summaryAr:"",summaryEn:"",descriptionAr:"",descriptionEn:"",currency:"JOD",price:"",durationNights:"",validFrom:"",validTo:"",bookingDeadline:""};function Ky({status:e,lang:t,review:n=!1}){const a=(n?Uve:Fve)[e]||{ar:e,en:e,className:""};
1556return s.jsx(Pn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:108",variant:"outline",className:a.className,children:Fe(t,a.ar,a.en)})}function Fn({label:e,children:t}){return s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:112",className:"space-y-1.5",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:112",children:e}),t]})}function FN({active:e,icon:t,title:n,description:a,onClick:r}){return s.jsxs("button",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:123",type:"button","aria-pressed":e,onClick:r,className:`group rounded-2xl border p-4 text-start transition-[transform,box-shadow,border-color,background-color] duration-200 active:scale-[.98] ${e?"border-primary bg-primary/5 shadow-sm ring-1 ring-primary/20":"border-border bg-card hover:border-primary/40 hover:shadow-sm"}`,children:[s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:131",className:`mb-3 flex h-10 w-10 items-center justify-center rounded-xl ${e?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground group-hover:text-primary"}`,children:s.jsx(t,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:132",className:"h-5 w-5"})}),s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:134",className:"block font-semibold text-foreground",children:n}),s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:135",className:"mt-1 block text-xs leading-5 text-muted-foreground",children:a})]})}function Zy({icon:e,label:t,value:n,tone:a="primary"}){const r={primary:"bg-primary/10 text-primary",emerald:"bg-emerald-100 text-emerald-700",amber:"bg-amber-100 text-amber-700",violet:"bg-violet-100 text-violet-700"};return s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:153",className:"flex items-center gap-3 rounded-2xl border bg-card p-4 shadow-sm",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:154",className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-xl ${r[a]}`,children:s.jsx(e,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:154",className:"h-5 w-5"})}),s.jsxs("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:155",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:155",className:"block text-xl font-bold text-foreground",children:n}),s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:155",className:"text-xs text-muted-foreground",children:t})]})]})}function Hve(e,t){const n=Number(e||0),a=typeof t=="string"&&t.trim()?t.trim().toUpperCase():"JOD";return Number.isFinite(n)?`${n.toFixed(2)} ${a}`:`â ${a}`}function Vve({data:e,lang:t}){const n=yve({currency:String(e.currency||"JOD"),price:Number(e.price||0),landPrice:Number(e.landPrice||0),ticketIncluded:!!e.ticketIncluded,ticketPrice:Number(e.ticketPrice||0),ticketCurrency:String(e.ticketCurrency||e.currency||"JOD"),ticketRoute:String(e.ticketRoute||""),ticketPriceSource:String(e.ticketPriceSource||""),ticketPricedAt:String(e.ticketPricedAt||""),ticketValidUntil:String(e.ticketValidUntil||""),validFrom:String(e.validFrom||""),validTo:String(e.validTo||""),bookingDeadline:String(e.bookingDeadline||""),sourceReference:String(e.sourceReference||""),pricingDetails:Array.isArray(e.pricingDetails)?e.pricingDetails:[]}),a=n.errors.length>0,r=n.warnings.length>0,i=a?Fe(t,"Ù
ÙÙÙÙ ÙØÙ٠تصØÙØ Ø§ÙØ£Ø±ÙاÙ
","Blocked pending numeric correction"):r?Fe(t,"ØªØØªØ§Ø¬ Ù
راجعة Ù
ØØ§Ø³Ø¨ÙØ©","Accounting review required"):Fe(t,"Ù
ØªØ³Ù ØØ³Ø§Ø¨ÙاÙ","Financially consistent");return s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:193",className:`rounded-2xl border p-3 ${a?"border-rose-300 bg-rose-50/70":r?"border-amber-300 bg-amber-50/70":"border-emerald-300 bg-emerald-50/70"}`,children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:194",className:"flex flex-wrap items-center justify-between gap-2",children:[s.jsxs("span",{"data-loc":"client/src/components/
1556accounting/PriceImportsTab.tsx:195",className:"flex items-center gap-1.5 text-xs font-semibold",children:[s.jsx(sa,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:195",className:"h-3.5 w-3.5"}),Fe(t,"تدÙÙÙ Ø§ÙØ£Ø±ÙاÙ
","Financial audit")]}),s.jsx(Pn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:196",variant:"outline",className:a?"border-rose-300 bg-white text-rose-700":r?"border-amber-300 bg-white text-amber-800":"border-emerald-300 bg-white text-emerald-700",children:i})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:198",className:"mt-2 grid gap-2 text-xs sm:grid-cols-3",children:[s.jsxs("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:199",children:[Fe(t,"سعر Ø§ÙØ¨Ùع","Selling price"),": ",s.jsx("bdi",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:199",dir:"ltr",className:"font-semibold",children:Hve(e.price,e.currency)})]}),s.jsxs("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:200",children:[Fe(t,"ØØ¯ Ø§ÙØ£Ø³Ø¹Ø§Ø± Ø§ÙØµØ±ÙØØ©","Explicit price range"),": ",s.jsx("bdi",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:200",dir:"ltr",className:"font-semibold",children:n.minimumExplicitSellingPrice===null?"â":`${n.minimumExplicitSellingPrice}â${n.maximumExplicitSellingPrice} ${String(e.currency||"JOD")}`})]}),s.jsxs("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:201",children:[Fe(t,"Ø®ÙØ§Ø±Ø§Øª Ø§ÙØ³Ø¹Ø±","Price options"),": ",s.jsx("bdi",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:201",dir:"ltr",className:"font-semibold",children:Array.isArray(e.pricingDetails)?e.pricingDetails.length:0})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:203",className:"mt-2 grid gap-2 border-t border-current/10 pt-2 text-xs sm:grid-cols-3",children:[s.jsxs("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:204",children:[Fe(t,"Ù
رجع اÙÙ
صدر","Source reference"),": ",s.jsx("bdi",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:204",dir:"ltr",className:"font-semibold",children:e.sourceReference||"â"})]}),s.jsxs("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:205",children:[Fe(t,"ÙØªØ±Ø© Ø§ÙØµÙاØÙØ©","Validity"),": ",s.jsx("bdi",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:205",dir:"ltr",className:"font-semibold",children:e.validFrom&&e.validTo?`${e.validFrom} â ${e.validTo}`:"â"})]}),s.jsxs("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:206",children:[Fe(t,"آخر Ù
ÙØ¹Ø¯ ÙÙØØ¬Ø²","Booking deadline"),": ",s.jsx("bdi",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:206",dir:"ltr",className:"font-semibold",children:e.bookingDeadline||"â"})]}),e.ticketIncluded&&s.jsxs("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:207",className:"sm:col-span-3",children:[Fe(t,"ØªÙØ«ÙÙ Ø§ÙØªØ°Ùرة","Ticket evidence"),": ",s.jsx("bdi",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:207",dir:"ltr",className:"font-semibold",children:e.ticketRoute&&e.ticketPriceSource&&e.ticketPricedAt&&e.ticketValidUntil?`${e.ticketRoute} · ${e.ticketPricedAt} â ${e.ticketValidUntil}`:Fe(t,"ØºÙØ± Ù
ÙØªÙ
Ù","Incomplete")}
1556)]})]}),(a||r)&&s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:209",className:"mt-2 space-y-1 border-t border-current/10 pt-2 text-xs",children:[n.errors.map(o=>s.jsx("p",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:209",className:"text-rose-700",children:o},o)),n.warnings.map(o=>s.jsx("p",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:209",className:"text-amber-800",children:o},o))]})]})}function zve({open:e,row:t,lang:n,onClose:a,onSave:r}){const[i,o]=k.useState(()=>({...t?.normalizedData||{}})),[c,l]=k.useState(!1);k.useEffect(()=>{e&&t?.normalizedData&&o({...t.normalizedData})},[e,t?.id,t?.normalizedData]);const d=(E,D)=>o(S=>({...S,[E]:D})),m=[{key:"inclusions",ar:"اÙÙ Ø´Ù ÙÙ",en:"Inclusions"},{key:"exclusions",ar:"ØºÙØ± اÙÙ Ø´Ù ÙÙ",en:"Exclusions"},{key:"highlights",ar:"أبرز اÙÙ Ø²Ø§ÙØ§",en:"Highlights"}],h=E=>Array.isArray(E)?E.map(D=>`${D?.ar||""} || ${D?.en||""}`).join(` 1557`):"",x=E=>E.split(` 1558`).map(D=>D.trim()).filter(Boolean).map(D=>{const[S,R]=D.split("||").map(L=>L.trim());return{ar:S||R||"",en:R||S||""}}),f=(E,D)=>Array.isArray(E)?E.map(S=>D.map(R=>String(S?.[R]??"")).join(" || ")).join(` 1559`):"",b=(E,D,S=[])=>E.split(` 1560`).map(R=>R.trim()).filter(Boolean).map(R=>{const L=R.split("||").map(I=>I.trim());return Object.fromEntries(D.map((I,F)=>[I,S.includes(I)?Number(L[F]||0):L[F]||""]))}),y=E=>Array.isArray(E)?E.join(` 1561`):"",w=E=>E.split(` 1562`).map(D=>D.trim()).filter(Boolean),A=(Array.isArray(i.pricingDetails)?i.pricingDetails:[]).reduce((E,D)=>{const S=Number(D?.netCost||0),R=Number(D?.sellingPrice||D?.amount||0);return{net:E.net+S,selling:E.selling+R,profit:E.profit+(R-S)}},{net:0,selling:0,profit:0});return s.jsx(Ba,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:257",open:e,onOpenChange:E=>!E&&a(),children:s.jsxs(Fa,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:258",className:"max-h-[92vh] max-w-5xl overflow-y-auto",dir:n==="ar"?"rtl":"ltr",children:[s.jsxs(as,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:259",children:[s.jsxs(Ua,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:260",className:"flex items-center gap-2",children:[s.jsx(Pk,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:260",className:"h-5 w-5 text-primary"}),Fe(n,"٠راجعة Ø§ÙØ¨Ø±Ùا٠ج اÙ٠ستخرج","Review extracted program")]}),s.jsx(F2,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:261",children:Fe(n,"صØÙØ Ø§ÙØÙÙÙ Ø¹ÙØ¯ Ø§ÙØØ§Ø¬Ø©Ø Ø«Ù Ø§ØÙظ اÙ٠راجعة ÙØ¨Ù Ø§ÙØ§Ø¹ØªÙ اد ÙØ§ÙÙØ´Ø±.","Correct any fields, then save the review before approval and publication.")})]}),s.jsxs(Lve,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:263",defaultValue:"identity",className:"mt-2",children:[s.jsxs(Ove,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:264",className:"grid h-auto w-full grid-cols-2 sm:grid-cols-5",children:[s.jsx(L1,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:265",value:"identity",children:Fe(n,"Ø§ÙØ¨ÙØ§ÙØ§Øª Ø§ÙØ£Ø³Ø§Ø³ÙØ©","Essentials")}),s.jsx(L1,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:266",value:"commercial",children:Fe(n,"Ø§ÙØªØ³Ø¹Ùر ÙØ§ÙØµÙØ§ØÙØ©","Pricing & validity")}),s.jsx(L1,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:267",value:"logistics",children:Fe(n,"Ø§ÙØ±ØÙØ© ÙØ§ÙتشغÙÙ","Trip & operation")}),s.jsx(L1,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:268",value:"inventory",children:Fe(n,"اÙÙÙØ§Ø¯Ù ÙØ§Ùخد٠ات","Hotels & services")}),s.jsx(L1,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:269",value:"content",children:Fe(n,"اÙÙ ØØªÙÙ ÙØ§ÙØ³ÙØ§Ø³Ø§Øª","Content & policies")})]}),s.jsxs(O1,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:271",value:"identity",className:"mt-5 space-y-5",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:272",className:"grid gap-4 md:grid-cols-2",children:[s.jsx(Fn,{"data-loc":"client/src/components/
1562accounting/PriceImportsTab.tsx:273",label:Fe(n,"اسÙ
Ø§ÙØ¨Ø±ÙاÙ
ج Ø¨Ø§ÙØ¹Ø±Ø¨ÙØ©","Arabic program title"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:273",dir:"rtl",value:i.titleAr||"",onChange:E=>d("titleAr",E.target.value)})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:274",label:Fe(n,"اسÙ
Ø§ÙØ¨Ø±ÙاÙ
ج Ø¨Ø§ÙØ¥ÙجÙÙØ²ÙØ©","English program title"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:274",dir:"ltr",value:i.titleEn||"",onChange:E=>d("titleEn",E.target.value)})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:275",label:Fe(n,"اÙÙØ¬ÙØ© Ø¨Ø§ÙØ¹Ø±Ø¨ÙØ©","Arabic destination"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:275",dir:"rtl",value:i.cityAr||"",onChange:E=>d("cityAr",E.target.value)})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:276",label:Fe(n,"اÙÙØ¬ÙØ© Ø¨Ø§ÙØ¥ÙجÙÙØ²ÙØ©","English destination"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:276",dir:"ltr",value:i.cityEn||"",onChange:E=>d("cityEn",E.target.value)})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:277",label:Fe(n,"ÙÙØ¹ Ø§ÙØ¨Ø±ÙاÙ
ج","Package type"),children:s.jsxs(qn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:278",value:i.packageType||"family",onValueChange:E=>d("packageType",E),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:278",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:278"})}),s.jsxs(Wn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:278",children:[s.jsx(At,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:278",value:"family",children:Fe(n,"عائÙÙ","Family")}),s.jsx(At,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:278",value:"honeymoon",children:Fe(n,"Ø´ÙØ± عسÙ","Honeymoon")}),s.jsx(At,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:278",value:"group",children:Fe(n,"Ù
جÙ
ÙØ¹Ø§Øª","Group")}),s.jsx(At,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:278",value:"umrah",children:Fe(n,"عÙ
رة","Umrah")}),s.jsx(At,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:278",value:"business",children:Fe(n,"أعÙ
اÙ","Business")})]})]})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:280",label:Fe(n,"Ø§ØªØ¬Ø§Ù Ø§ÙØ³Ùر","Travel direction"),children:s.jsxs(qn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:281",value:i.travelDirection||"outbound",onValueChange:E=>d("travelDirection",E),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:281",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:281"})}),s.jsxs(Wn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:281",children:[s.jsx(At,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:281",value:"outbound",children:Fe(n,"Ø³ÙØ§ØØ© صادرة","Outbound")}),s.jsx(At,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:281",value:"inbound",children:Fe(n,"Ø³ÙØ§ØØ© ÙØ§Ùدة","Inbound")}),s.jsx(At,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:281",value:"domestic",children:Fe(n,"Ø³ÙØ§ØØ© داخÙÙØ©","Domestic")})]})]})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:284",className:"grid gap-4 md:grid-cols-2",children:[s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:285",label:Fe(n,"اÙÙ
ÙØ®Øµ Ø¨Ø§ÙØ¹Ø±Ø¨ÙØ©","Arabic summary"),children:s.jsx(es,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:285",dir:"rtl",value:i.summaryAr||"",onChange:E=>d("summaryAr",E.target.value)})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:286",label:Fe(n,"اÙÙ
ÙØ®Øµ Ø¨Ø§ÙØ¥ÙجÙÙØ²ÙØ©","English summary"),children:s.jsx(es,{"data-loc":"client/src/components/
1562accounting/PriceImportsTab.tsx:286",dir:"ltr",value:i.summaryEn||"",onChange:E=>d("summaryEn",E.target.value)})})]})]}),s.jsxs(O1,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:289",value:"commercial",className:"mt-5 space-y-5",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:290",className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-4",children:[s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:291",label:Fe(n,"سعر Ø§ÙØ¨Ùع Ø§ÙØ¥Ø¬Ù
اÙÙ","Total selling price"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:291",dir:"ltr",type:"number",min:"0",value:i.price??"",onChange:E=>d("price",Number(E.target.value))})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:292",label:Fe(n,"سعر Ø§ÙØ£Ø±Ø¶ اÙÙ
عÙÙ","Explicit land selling price"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:292",dir:"ltr",type:"number",min:"0",value:i.landPrice??"",onChange:E=>d("landPrice",Number(E.target.value))})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:293",label:Fe(n,"Ø§ÙØ¹Ù
ÙØ©","Currency"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:293",dir:"ltr",maxLength:3,value:i.currency||"JOD",onChange:E=>d("currency",E.target.value.toUpperCase())})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:294",label:Fe(n,"ÙÙ Ø§ÙØªØ°Ùرة Ù
Ø´Ù
ÙÙØ©Ø","Ticket included?"),children:s.jsxs(qn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:294",value:i.ticketIncluded?"yes":"no",onValueChange:E=>d("ticketIncluded",E==="yes"),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:294",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:294"})}),s.jsxs(Wn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:294",children:[s.jsx(At,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:294",value:"no",children:Fe(n,"ÙØ§","No")}),s.jsx(At,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:294",value:"yes",children:Fe(n,"ÙØ¹Ù
","Yes")})]})]})}),i.ticketIncluded&&s.jsxs(s.Fragment,{children:[s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:295",label:Fe(n,"سعر Ø§ÙØªØ°Ùرة اÙÙ
عÙÙ","Explicit ticket price"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:295",dir:"ltr",type:"number",min:"0",value:i.ticketPrice??"",onChange:E=>d("ticketPrice",Number(E.target.value))})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:295",label:Fe(n,"عÙ
ÙØ© Ø§ÙØªØ°Ùرة","Ticket currency"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:295",dir:"ltr",maxLength:3,value:i.ticketCurrency||i.currency||"JOD",onChange:E=>d("ticketCurrency",E.target.value.toUpperCase())})})]}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:296",label:Fe(n,"عدد اÙÙÙØ§ÙÙ","Nights"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:296",dir:"ltr",type:"number",min:"0",value:i.durationNights??"",onChange:E=>{const D=Number(E.target.value);o(S=>({...S,durationNights:D,durationDays:D?D+1:0}))}})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:297",label:Fe(n,"عدد Ø§ÙØ£ÙاÙ
","Days"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:297",dir:"ltr",type:"number",min:"0",value:i.durationDays??"",onChange:E=>d("durationDays",Number(E.target.value))})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:298",label:Fe(n,"ØµØ§ÙØ Ù
Ù","Valid from"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:298",dir:"ltr",type:"date",value:i.validFrom||"",onChange:E=>d("validFrom",E.target.value)})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:299",label:Fe(n,"ØµØ§ÙØ ØØªÙ","Valid to"),children:s.jsx(Ee,{"data-loc":"client/src/components/
1562accounting/PriceImportsTab.tsx:299",dir:"ltr",type:"date",value:i.validTo||"",onChange:E=>d("validTo",E.target.value)})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:300",label:Fe(n,"آخر Ù ÙØ¹Ø¯ ÙÙØØ¬Ø²","Booking deadline"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:300",dir:"ltr",type:"date",value:i.bookingDeadline||"",onChange:E=>d("bookingDeadline",E.target.value)})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:301",label:Fe(n,"٠رجع اÙ٠صدر","Source reference"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:301",dir:"auto",value:i.sourceReference||"",onChange:E=>d("sourceReference",E.target.value)})})]}),s.jsxs(xd,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:303",children:[s.jsx(sa,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:303",className:"h-4 w-4"}),s.jsx(bd,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:303",children:Fe(n,"ÙØ§Ø¹Ø¯Ø© Ø§ÙØªØ³Ø¹Ùر","Pricing safeguard")}),s.jsx(vd,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:303",children:Fe(n,"Ø§ÙØ´Ø± سعر Ø§ÙØ¨Ùع Ø§ÙØµØ±ÙØ ÙÙØ·. ÙØ§ تØÙÙ٠صاÙ٠تÙÙÙØ© اÙÙ ÙØ±Ø¯ Ø¥Ù٠سعر Ø¨ÙØ¹ تÙÙØ§Ø¦ÙاÙ.","Publish only an explicit selling price. Never convert supplier net cost into a selling price automatically.")})]})]}),s.jsxs(O1,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:305",value:"logistics",className:"mt-5 space-y-5",children:[s.jsxs(xd,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:306",children:[s.jsx(mr,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:307",className:"h-4 w-4"}),s.jsx(bd,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:308",children:Fe(n,"إرشاد Ø¥Ø¯Ø®Ø§Ù Ø§ÙØ±ØÙØ©","Trip entry guide")}),s.jsx(vd,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:309",children:Fe(n,"ضع ÙÙ ÙÙÙ Ø£Ù ØªØ§Ø±ÙØ® Ù٠سطر ٠ستÙÙ. استخد٠اÙÙØ§ØµÙ || بÙÙ Ø§ÙØÙÙÙ Ø§ÙØ«ÙØ§Ø¦ÙØ© Ø¯Ø§Ø®Ù Ø§ÙØ®Ø· Ø§ÙØ²Ù ÙÙ.","Enter each day or date on a separate line. Use || between bilingual itinerary fields.")})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:311",className:"grid gap-4 md:grid-cols-2",children:[s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:312",label:Fe(n,"Ø£ÙØ§Ù Ø§ÙØªØ´ØºÙÙ","Operating days"),children:s.jsx(es,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:312",dir:"auto",className:"min-h-28",value:y(i.operatingDays),onChange:E=>d("operatingDays",w(E.target.value)),placeholder:Fe(n,`Ø§ÙØ£ØØ¯ 1563Ø§ÙØ«Ùاثاء`,`Sunday 1564Tuesday`)})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:313",label:Fe(n,"Ø§ÙØªÙØ§Ø±ÙØ® اÙÙ ØØ¬Ùبة","Blackout dates"),children:s.jsx(es,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:313",dir:"ltr",className:"min-h-28",value:y(i.blackoutDates),onChange:E=>d("blackoutDates",w(E.target.value)),placeholder:"2026-12-24\\n2026-12-31"})})]}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:315",label:Fe(n,"Ø§ÙØ¨Ø±Ùا٠ج اÙÙÙÙ Ù: اÙÙÙ٠عرب٠|| اÙÙÙÙ English || Ø§ÙØ¹ÙÙØ§Ù عرب٠|| English title || اÙÙØµÙ عرب٠|| English description","Itinerary: Arabic day || English day || Arabic title || English title || Arabic description || English description"),children:s.jsx(es,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:316",dir:"auto",className:"min-h-52 font-mono text-xs leading-6",value:f(i.itinerary,["dayAr","dayEn","titleAr","titleEn","descAr","descEn"]),onChange:E=>d("itinerary",b(E.target.value,["dayAr","dayEn","titleAr","titleEn","descAr","descEn"])),placeholder:Fe(n,"اÙÙÙÙ Ø§ÙØ£ÙÙ || Day 1 || اÙÙØµÙÙ || Arrival || Ø§Ø³ØªÙØ¨Ø§Ù ÙØªÙصÙÙ ÙÙÙÙØ¯Ù || Airport welcome and hotel transfer","اÙÙÙÙ Ø§ÙØ£ÙÙ || Day 1 || اÙÙØµÙÙ || Arrival || Ø§Ø³ØªÙØ¨Ø§Ù ÙØªÙصÙÙ ÙÙÙÙØ¯Ù || Airport welcome and hotel transfer")})})]}
1564),s.jsxs(O1,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:319",value:"inventory",className:"mt-5 space-y-5",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:320",className:"grid gap-3 sm:grid-cols-3",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:321",className:"rounded-2xl border bg-muted/20 p-4",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:321",className:"text-xs text-muted-foreground",children:Fe(n,"صاÙÙ Ø§ÙØªÙÙÙØ©","Net cost")}),s.jsx("strong",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:321",className:"mt-1 block text-lg",children:s.jsxs("bdi",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:321",dir:"ltr",children:[A.net.toFixed(2)," ",i.currency||"JOD"]})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:322",className:"rounded-2xl border bg-muted/20 p-4",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:322",className:"text-xs text-muted-foreground",children:Fe(n,"إجÙ
اÙ٠سعر Ø§ÙØ¨Ùع","Total selling")}),s.jsx("strong",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:322",className:"mt-1 block text-lg",children:s.jsxs("bdi",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:322",dir:"ltr",children:[A.selling.toFixed(2)," ",i.currency||"JOD"]})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:323",className:`rounded-2xl border p-4 ${A.profit>=0?"border-emerald-200 bg-emerald-50":"border-rose-200 bg-rose-50"}`,children:[s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:323",className:"text-xs text-muted-foreground",children:Fe(n,"Ø§ÙØ±Ø¨Ø اÙÙ
تÙÙØ¹","Expected profit")}),s.jsx("strong",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:323",className:`mt-1 block text-lg ${A.profit>=0?"text-emerald-700":"text-rose-700"}`,children:s.jsxs("bdi",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:323",dir:"ltr",children:[A.profit.toFixed(2)," ",i.currency||"JOD"]})})]})]}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:325",label:Fe(n,"اÙÙÙØ§Ø¯Ù: Ø§ÙØ§Ø³Ù
عرب٠|| English name || اÙÙÙØ§Ù٠عرب٠|| English nights || Ø§ÙØªØµÙÙÙ","Hotels: Arabic name || English name || Arabic nights || English nights || rating"),children:s.jsx(es,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:326",dir:"auto",className:"min-h-36 font-mono text-xs leading-6",value:f(i.hotels,["nameAr","nameEn","nightsAr","nightsEn","ratingStars"]),onChange:E=>d("hotels",b(E.target.value,["nameAr","nameEn","nightsAr","nightsEn","ratingStars"])),placeholder:Fe(n,"ÙÙØ¯Ù اÙÙØ§ØØ© || Oasis Hotel || 3 ÙÙØ§ÙÙ || 3 nights || 5","ÙÙØ¯Ù اÙÙØ§ØØ© || Oasis Hotel || 3 ÙÙØ§ÙÙ || 3 nights || 5")})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:328",label:Fe(n,"Ø§ÙØ®Ø¯Ù
ات: اÙÙÙØ¹ || اÙÙ
سÙ
٠عرب٠|| English label || Ø§ÙØªÙاصÙ٠عرب٠|| English details","Services: type || Arabic label || English label || Arabic details || English details"),children:s.jsx(es,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:329",dir:"auto",className:"min-h-36 font-mono text-xs leading-6",value:f(i.serviceDetails,["type","labelAr","labelEn","detailsAr","detailsEn"]),onChange:E=>d("serviceDetails",b(E.target.value,["type","labelAr","labelEn","detailsAr","detailsEn"])),placeholder:"transfer || ÙÙ٠خاص || Private transfer || Ù
Ù ÙØ¥Ù٠اÙÙ
طار || Airport round trip"})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:331",label:Fe(n,"Ø®ÙØ§Ø±Ø§Øª Ø§ÙØ³Ø¹Ø±: اÙÙ
سÙ
٠عرب٠|| English label || Ø§ÙØ³Ø¹Ø± || Ø§ÙØ¹Ù
ÙØ© || Ø§ÙØ£Ø³Ø§Ø³ || Ø§ÙØ¥Ø´ØºØ§Ù || صاÙÙ Ø§ÙØªÙÙÙØ© || سعر Ø§ÙØ¨Ùع","Pricing: Arabic label || English label || amount || currency || basis || occupancy || net cost || selling price"),children:s.jsx(es,{"data-loc":"client/src/components/
1564accounting/PriceImportsTab.tsx:332",dir:"ltr",className:"min-h-40 font-mono text-xs leading-6",value:f(i.pricingDetails,["labelAr","labelEn","amount","currency","basis","occupancy","netCost","sellingPrice"]),onChange:E=>d("pricingDetails",b(E.target.value,["labelAr","labelEn","amount","currency","basis","occupancy","netCost","sellingPrice"],["amount","netCost","sellingPrice"])),placeholder:"ÙÙØ´Ø®Øµ Ø¨Ø§ÙØºØ±ÙØ© اÙÙ Ø²Ø¯ÙØ¬Ø© || Per person sharing double || 495 || JOD || per_person || double || 410 || 495"})}),s.jsxs(xd,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:334",children:[s.jsx(sa,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:334",className:"h-4 w-4"}),s.jsx(bd,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:334",children:Fe(n,"ÙØµÙ Ø§ÙØªÙÙÙØ© Ø¹Ù Ø§ÙØ¨Ùع","Cost and selling separation")}),s.jsx(vd,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:334",children:Fe(n,"صاÙÙ Ø§ÙØªÙÙÙØ© ÙÙÙ ØØ§Ø³Ø¨Ø© Ø§ÙØ¯Ø§Ø®ÙÙØ© ÙÙØ·. ÙØ§ ÙØ¸Ùر ÙÙÙ ÙØ¸ÙÙÙ Ø£Ù Ø§ÙØ¹Ù ÙØ§Ø¡Ø ÙÙØ¬Ø¨ إدخا٠سعر Ø§ÙØ¨Ùع ØµØ±Ø§ØØ©Ù ÙØ¨Ù اÙÙØ´Ø±.","Net cost remains internal to accounting. It is never exposed to staff or customers, and selling price must be entered explicitly before publication.")})]})]}),s.jsxs(O1,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:336",value:"content",className:"mt-5 space-y-5",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:337",className:"grid gap-4 md:grid-cols-2",children:[s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:338",label:Fe(n,"اÙÙØµÙ Ø¨Ø§ÙØ¹Ø±Ø¨ÙØ©","Arabic description"),children:s.jsx(es,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:338",className:"min-h-28",dir:"rtl",value:i.descriptionAr||"",onChange:E=>d("descriptionAr",E.target.value)})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:339",label:Fe(n,"اÙÙØµÙ Ø¨Ø§ÙØ¥ÙجÙÙØ²ÙØ©","English description"),children:s.jsx(es,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:339",className:"min-h-28",dir:"ltr",value:i.descriptionEn||"",onChange:E=>d("descriptionEn",E.target.value)})})]}),s.jsx("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:341",className:"grid gap-4 md:grid-cols-3",children:m.map(E=>s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:342",label:Fe(n,E.ar,E.en),children:s.jsx(es,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:342",dir:"auto",className:"min-h-36",value:h(i[E.key]),onChange:D=>d(E.key,x(D.target.value)),placeholder:Fe(n,`Ø§ÙØ¹Ø±Ø¨ÙØ© || English 1565Ø¹ÙØµØ± آخر || Another item`,`Arabic || English 1566Another item || Ø¹ÙØµØ± آخر`)})},E.key))}),s.jsx("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:344",className:"grid gap-4 md:grid-cols-2",children:[["cancellationPolicy","Ø³ÙØ§Ø³Ø© Ø§ÙØ¥Ùغاء","Cancellation policy"],["paymentPolicy","Ø³ÙØ§Ø³Ø© Ø§ÙØ¯Ùع","Payment policy"],["childPolicy","Ø³ÙØ§Ø³Ø© Ø§ÙØ£Ø·ÙاÙ","Child policy"],["bookingTerms","Ø´Ø±ÙØ· Ø§ÙØØ¬Ø²","Booking terms"]].map(([E,D,S])=>s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:350",label:Fe(n,D,S),children:s.jsx(es,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:350",dir:"auto",value:Bve(i[E],n),onChange:R=>d(E,{...i[E]||{},[n]:R.target.value})})},E))})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:354",className:"mt-4 flex justify-end gap-2 border-t pt-4",children:[s.jsx(Ie,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:355",variant:"outline",onClick:a,children:Fe(n,"Ø¥ÙØºØ§Ø¡","Cancel")}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:356",disabled:c,onClick:async()=>{l(!0);try{await r(i),a()}finally{l(!1)}},children:[c?s.jsx(ft,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:357",className:"h-4 w-4 animate-spin"}
1566):s.jsx(bc,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:357",className:"h-4 w-4"}),Fe(n,"ØÙظ اÙÙ
راجعة","Save review")]})]})]})})}function $ve({lang:e}){const t=k.useRef(null),[n,a]=k.useState("file"),[r,i]=k.useState(""),[o,c]=k.useState("unmatched"),[l,d]=k.useState("trips"),[m,h]=k.useState(null),[x,f]=k.useState(null),[b,y]=k.useState({...rM}),[w,T]=k.useState(0),A=Pe.useUtils(),E=Pe.accounting.priceImports.list.useQuery(),D=Pe.accounting.suppliers.list.useQuery(),S=Pe.accounting.priceImports.getById.useQuery({id:m||1},{enabled:!!m}),R=Pe.accounting.destinationPricingPolicies.list.useQuery(),L=Pe.jordanHotels.adminExchangeRates.useQuery(),I=Pe.jordanHotels.adminVersions.useQuery(),F=Pe.accounting.flightRoutePricing.list.useQuery(),_=E.data||[],U=S.data,O=U?.rows||[],W=(I.data||[])[0]||null,J=(R.data||[]).find(He=>He.destinationKey==="trabzon"),[oe,G]=k.useState("40"),[K,ee]=k.useState("draft"),[pe,V]=k.useState(""),[Y,z]=k.useState(""),[H,ne]=k.useState(""),[te,me]=k.useState("AMM-TZX-AMM"),[fe,Ae]=k.useState(""),[xe,ae]=k.useState("");k.useEffect(()=>{J&&(G(String(J.initialProfitJod??"0")),ee(J.status))},[J?.id,J?.initialProfitJod,J?.status]);const le=async He=>{await A.accounting.priceImports.list.invalidate(),(He||m)&&await A.accounting.priceImports.getById.invalidate({id:He||m||1})},ze=He=>Le.error(He.message),pt=Pe.accounting.priceImports.create.useMutation({onError:ze}),xt=Pe.accounting.priceImports.extract.useMutation({onError:ze}),be=Pe.accounting.priceImports.updateRow.useMutation({onError:ze}),Tt=Pe.accounting.priceImports.approveRow.useMutation({onError:ze}),Xt=Pe.accounting.priceImports.rejectRow.useMutation({onError:ze}),Jt=Pe.accounting.priceImports.publishRow.useMutation({onError:ze}),it=Pe.accounting.priceImports.rollback.useMutation({onError:ze}),at=Pe.accounting.priceImports.delete.useMutation({onError:ze}),ct=Pe.accounting.priceImports.update.useMutation({onError:ze}),Ct=Pe.accounting.destinationPricingPolicies.upsert.useMutation({onError:ze}),Ht=Pe.jordanHotels.adminAddExchangeRate.useMutation({onError:ze}),wn=Pe.accounting.flightRoutePricing.create.useMutation({onError:ze}),Hn=k.useMemo(()=>({total:_.length,review:_.filter(He=>["review_required","validation_failed"].includes(He.status)).length,approved:_.filter(He=>He.status==="approved").length,published:_.filter(He=>He.status==="published").length}),[_]),qe=He=>new Promise((tt,Ot)=>{const Zn=new FileReader;Zn.onload=()=>tt(String(Zn.result)),Zn.onerror=()=>Ot(new Error(Fe(e,"تعذر ÙØ±Ø§Ø¡Ø© اÙÙ
ÙÙ.","The file could not be read."))),Zn.readAsDataURL(He)}),dt=He=>{const tt=He.name.toLowerCase();return tt.endsWith(".pdf")?"pdf":tt.endsWith(".docx")?"word":tt.endsWith(".csv")?"csv":/\.(png|jpe?g|webp)$/.test(tt)?"image":"excel"},Dt=async()=>{try{let He;if(n==="manual"){if(!b.titleAr&&!b.titleEn)return Le.error(Fe(e,"أدخ٠اسÙ
Ø§ÙØ¨Ø±ÙاÙ
ج.","Enter the program title."));He={fileName:b.titleEn||b.titleAr||"manual-package",sourceType:"manual",supplierId:o==="unmatched"?null:Number(o),category:l,manualPackage:{...b,price:Number(b.price),durationNights:Number(b.durationNights),durationDays:Number(b.durationNights)?Number(b.durationNights)+1:0,sourceReference:"manual-entry",confidence:100}}}else if(n==="link"){if(!r.trim())return Le.error(Fe(e,"Ø£ÙØµÙ رابط Google Sheets Ø£Ù Drive.","Paste a Google Sheets or Drive link."));const Ot=r.includes("docs.google.com/spreadsheets");He={fileName:Ot?"google-sheet":"google-drive-source",sourceType:Ot?"google_sheet":"google_drive",sourceUrl:r.trim(),supplierId:o==="unmatched"?null:Number(o),category:l}}else{const Ot=t.current?.files?.[0];if(!Ot)return Le.error(Fe(e,"اختر Ù
ÙÙØ§Ù Ø£ÙÙØ§Ù.","Choose a file first."));He={fileName:Ot.name,sourceType:dt(Ot),fileData:await qe(Ot),mimeType:Ot.type||null,supplierId:o==="unmatched"?null:Number(o),category:l}}const tt=await pt.mutateAsync(He);h(tt.id),await le(tt.id),He.sourceType!=="manual"?(Le.info(Fe(e,"تÙ
Ø§ÙØ±Ùع. جار٠استخراج Ø§ÙØ¨Ø±Ø§Ù
ج Ø§ÙØ¢Ùâ¦","Uploaded. Extracting programs nowâ¦")),await xt.mutateAsync({id:tt.id}),await le(tt.id),Le.success(Fe(e,"Ø§ÙØªÙ
Ù Ø§ÙØ§Ø³ØªØ®Ø±Ø§Ø¬ ÙØ£ØµØ¨ØØª Ø§ÙØ¨Ø±Ø§Ù
ج Ø¬Ø§ÙØ²Ø© ÙÙÙ
راجعة.","Extraction is complete and the programs are ready for review."))):(y({...rM}),Le.success(Fe(e,"تÙ
Ø¥ÙØ´Ø§Ø¡ Ù
Ø³ÙØ¯Ø© Ø§ÙØ¨Ø±ÙاÙ
ج اÙÙØ¯ÙÙØ©.","Manual program draft created."))),i(""),t.current&&(t.current.value=""),T(Ot=>Ot+1)}catch{}},yt=async He=>{try{await xt.mutateAsync({id:He}),await le(He),Le.success(Fe(e,"Ø§ÙØªÙ
Ù Ø§ÙØ§Ø³ØªØ®Ø±Ø§Ø¬.","Extraction completed."))}catch{}},Mt=async He=>{if(window.confirm(Fe(e,"ØØ°Ù Ø³Ø¬Ù Ø§ÙØ§Ø³ØªÙراد ÙÙ
Ø³ÙØ¯Ø§ØªÙØ","Delete this import and its drafts?")))try{await at.mutateAsync({id:He}),m===He&&h(null),await le(),Le.success(Fe(e,"تÙ
ØØ°Ù Ø³Ø¬Ù Ø§ÙØ§Ø³ØªÙراد.","Import deleted."))}catch{}},zt=async He=>{const tt=window.prompt(Fe(e,"سبب Ø§ÙØ±Ø¬Ùع (ÙÙ ÙØØ°Ù Ø§ÙÙ
صدر Ø£Ù Ø§ÙØ³Ø¬Ù)","Rollback reason (the source and audit record will be retained)"));if(tt?.trim())try{await it.mutateAsync({id:He,reason:tt.trim()}),await le(He),Le.success(Fe(e,"تÙ
تعطÙÙ Ø§ÙØ¨Ø±Ø§Ù
ج اÙÙ
ÙØ´Ùرة ÙØÙØ¸ Ø³Ø¬Ù Ø§ÙØ±Ø¬Ùع.","Published programs were deactivated and the rollback was recorded."))}catch{}},ca=async()=>{try{await Ct.mutateAsync({destinationKey:"trabzon",destinationNameAr:"طرابزÙÙ",destinationNameEn:"Trabzon",sourceCurrency:"USD",saleCurrency:"JOD",initialProfitJod:Number(oe||0),requiresReviewedExchangeRate:!0,requiresReviewedFlight:!0,sourceReference:"IBRIX reviewed Trabzon source catalog",status:K}
1566),await A.accounting.destinationPricingPolicies.list.invalidate(),Le.success(Fe(e,"تÙ
ØÙظ Ø³ÙØ§Ø³Ø© طرابزÙÙ Ø§ÙØªØ¬Ø±ÙØ¨ÙØ©. ÙØ§ تعÙ٠اÙÙØ´Ø± أ٠تأÙÙØ¯ Ø§ÙØØ¬Ø².","Trabzon test policy saved. It does not publish or confirm a booking."))}catch{}},jn=async()=>{try{await Ht.mutateAsync({sourceCurrency:"USD",rateJod:pe,effectiveFrom:Date.now(),sourceRateDate:new Date().toISOString().slice(0,10),sourceName:Y,sourceUrl:H}),V(""),z(""),ne(""),await A.jordanHotels.adminExchangeRates.invalidate(),Le.success(Fe(e,"تÙ
ØÙظ ÙØ³Ø®Ø© سعر Ø§ÙØµØ±Ù ÙÙÙ
راجعة.","Exchange-rate version saved for review."))}catch{}},Qt=async()=>{try{await wn.mutateAsync({routeCode:te,sellingPrice:Number(fe),currency:"JOD",sourceType:"manual",sourceReference:xe,pricedAt:new Date().toISOString().slice(0,10),status:"draft",requiresReview:!0,validUntil:null,notesAr:"Ù
Ø³ÙØ¯Ø© ØªØ¬Ø±ÙØ¨ÙØ© ÙØ·Ø±Ø§Ø¨Ø²ÙÙ â ÙØ§ ØªØ¤ÙØ¯ رØÙØ© Ø£Ù Ù
ÙØ¹Ø¯Ø§Ù.",notesEn:"Trabzon test draft â does not confirm a flight or seat."}),Ae(""),ae(""),await A.accounting.flightRoutePricing.list.invalidate(),Le.success(Fe(e,"تÙ
ØÙظ سعر Ø§ÙØ·Ùرا٠ÙÙ
Ø³ÙØ¯Ø© Ù
راجعة.","Flight price saved as a review draft."))}catch{}},xn=pt.isPending||xt.isPending,bn=He=>He?new Intl.DateTimeFormat(sM(e),{dateStyle:"medium",timeStyle:"short"}).format(new Date(He)):"â",rn=(He,tt="JOD")=>new Intl.NumberFormat(sM(e),{style:"currency",currency:tt,maximumFractionDigits:0}).format(Number(He||0));return s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:571",className:"space-y-7",dir:e==="ar"?"rtl":"ltr",children:[s.jsxs("section",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:572",className:"relative overflow-hidden rounded-3xl border border-primary/15 bg-[radial-gradient(circle_at_top_right,hsl(var(--primary)/0.18),transparent_35%),linear-gradient(135deg,hsl(var(--card)),hsl(var(--muted)/0.55))] p-6 shadow-sm md:p-8",children:[s.jsx("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:573",className:"absolute -end-14 -top-16 h-48 w-48 rounded-full border border-primary/10","aria-hidden":"true"}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:574",className:"relative flex flex-col justify-between gap-6 lg:flex-row lg:items-end",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:575",className:"max-w-3xl",children:[s.jsxs(Pn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:576",className:"mb-4 gap-1.5 rounded-full px-3 py-1",children:[s.jsx(pr,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:576",className:"h-3.5 w-3.5"}),"IBRIX Import Studio"]}),s.jsx("h2",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:577",className:"font-display text-2xl font-bold tracking-tight text-foreground md:text-3xl",children:Fe(e,"Ù
٠اÙÙ
صدر Ø¥ÙÙ Ø¨Ø±ÙØ§Ù
ج ÙØ§Ø¨Ù ÙÙØØ¬Ø²","From source to bookable program")}),s.jsx("p",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:578",className:"mt-3 max-w-2xl text-sm leading-7 text-muted-foreground md:text-base",children:Fe(e,"Ø§Ø±ÙØ¹ Ù
ÙÙØ§Øª اÙÙ
ÙØ±Ø¯ÙÙ Ø£Ù Ø§Ø³ØªÙØ±Ø¯ Ù
Ù Google Ø£Ù Ø£Ø¯Ø®Ù Ø§ÙØ¨Ø±ÙاÙ
ج ÙØ¯ÙÙØ§Ù. ÙÙÙÙ
Orbit Ø¨Ø§ÙØªØ·Ø¨Ùع ÙØ§ÙتØÙÙØ ÙØªØ¨Ù٠اÙÙ
ÙØ§ÙÙØ© ÙØ§ÙÙØ´Ø± ØªØØª Ø³ÙØ·Ø±ØªÙ.","Upload supplier files, import from Google, or enter a program manually. Orbit normalizes and validates the data while approval and publication remain under your control.")})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:580",className:"flex items-center gap-3 rounded-2xl border bg-background/80 p-3 backdrop-blur-sm",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:581",className:"flex h-11 w-11 items-center justify-center rounded-xl bg-emerald-100 text-emerald-700",children:s.jsx(sa,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:581",className:"h-5 w-5"})}
1566),s.jsxs("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:582",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:582",className:"block text-sm font-semibold",children:Fe(e,"Ù
راجعة Ø¨Ø´Ø±ÙØ© Ø¥ÙØ²Ø§Ù
ÙØ©","Human review required")}),s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:582",className:"text-xs text-muted-foreground",children:Fe(e,"ÙØ§ ÙØ´Ø± تÙÙØ§Ø¦Ù ÙÙØ¨ÙØ§ÙØ§Øª اÙÙ
ستخرجة","No automatic publication of extracted data")})]})]})]})]}),s.jsxs(kn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:587",className:"border-sky-400/30 bg-sky-50/45 shadow-sm dark:bg-sky-950/10",children:[s.jsxs(Xr,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:588",className:"pb-3",children:[s.jsxs(Qr,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:588",className:"flex items-center gap-2 text-lg",children:[s.jsx(wu,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:588",className:"h-5 w-5 text-sky-700"}),Fe(e,"ØªØ¹Ø±ÙØ© ÙÙØ§Ø¯Ù Ø§ÙØ£Ø±Ø¯Ù FIT","Jordan Hotels FIT tariff")]}),s.jsx("p",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:588",className:"text-sm leading-6 text-muted-foreground",children:Fe(e,"ÙØªØªØ¨Ø¹ ÙØ°Ø§ اÙÙ
ÙØ®Øµ ÙØ³Ø®Ø© Ø§ÙØªØ¹Ø±ÙØ© ÙÙ
ØµØ¯Ø±ÙØ§ ÙØØ§ÙØ© اÙÙ
راجعة ÙÙØ·Ø ÙØ§ ÙØ¹Ø±Ø¶ تÙÙÙØ© اÙÙ
ÙØ±Ø¯ Ø£Ù Ø¨ÙØ§ÙاتÙ.","This summary tracks tariff version, source lineage, and review state only; supplier cost and identity remain hidden.")})]}),s.jsx(Un,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:589",children:I.isLoading?s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:589",className:"flex items-center gap-2 text-sm text-muted-foreground",children:[s.jsx(ft,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:589",className:"h-4 w-4 animate-spin"}),Fe(e,"جار٠تØÙ
ÙÙ ÙØ³Ø®Ø© Ø§ÙØªØ¹Ø±ÙØ©â¦","Loading tariff versionâ¦")]}):W?s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:589",className:"grid gap-3 md:grid-cols-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:589",className:"rounded-xl border bg-background/70 p-3",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:589",className:"text-xs text-muted-foreground",children:Fe(e,"Ø§ÙØ¥ØµØ¯Ø§Ø±","Version")}),s.jsx("strong",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:589",className:"mt-1 block",dir:"ltr",children:W.versionNumber})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:589",className:"rounded-xl border bg-background/70 p-3",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:589",className:"text-xs text-muted-foreground",children:Fe(e,"Ø§ÙØØ§ÙØ©","State")}),s.jsx("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:589",className:"mt-1",children:s.jsx(Ky,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:589",status:W.status,lang:e})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:589",className:"rounded-xl border bg-background/70 p-3",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:589",className:"text-xs text-muted-foreground",children:Fe(e,"اÙÙØªØ±Ø©","Validity")}),s.jsxs("strong",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:589",className:"mt-1 block text-sm",dir:"ltr",children:[W.validFrom||"â"," â ",W.validTo||"â"]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:589",className:"rounded-xl border bg-background/70 p-3",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:589",className:"text-xs text-muted-foreground",children:Fe(e,"سج٠اÙÙ
صدر","Source record")}),s.jsx("strong",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:589",className:"mt-1 block text-sm",dir:"ltr",children:W.priceImportId?`#${W.priceImportId}`:"â"})]})]}
1566):s.jsxs(xd,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:589",children:[s.jsx(Yp,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:589",className:"h-4 w-4"}),s.jsx(bd,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:589",children:Fe(e,"ÙØ§ ØªÙØ¬Ø¯ ÙØ³Ø®Ø© ØªØ¹Ø±ÙØ© ØØ§ÙÙØ§Ù","No tariff version yet")}),s.jsx(vd,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:589",children:Fe(e,"Ø§Ø±ÙØ¹ Ù
ÙÙ ØªØ¹Ø±ÙØ© ÙÙØ§Ø¯Ù Ø§ÙØ£Ø±Ø¯Ù Ù
Ù Ù
سار Ø§ÙØ§Ø³ØªÙراد ÙØ¥Ùشاء Ù
Ø³ÙØ¯Ø© Ù
راجعة ÙØ§Ø¨ÙØ© ÙÙØªØ¯ÙÙÙ.","Upload a Jordan hotel tariff file through Import Studio to create an auditable review draft.")})]})})]}),s.jsxs(kn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:592",className:"border-amber-400/30 bg-amber-50/40 shadow-sm dark:bg-amber-950/10",children:[s.jsxs(Xr,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:593",children:[s.jsxs(Qr,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:593",className:"flex items-center gap-2 text-lg",children:[s.jsx(Cd,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:593",className:"h-5 w-5 text-amber-700"}),Fe(e,"Ù
ختبر طرابزÙÙ Ø§ÙØªØ¬Ø±ÙبÙ","Trabzon test lab")]}),s.jsx("p",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:593",className:"text-sm leading-6 text-muted-foreground",children:Fe(e,"ØªÙØÙØ¸ اÙÙÙÙ
ÙÙØ§ ÙÙÙ
راجعة Ø§ÙØ¥Ø¯Ø§Ø±ÙØ© ÙÙØ·. ÙØ§ ÙØªÙ
ÙØ´Ø± Ø¨Ø±ÙØ§Ù
ج أ٠تأÙÙØ¯ ØØ¬Ø² Ø£Ù ØªØ°ÙØ±Ø© ÙØ¨Ù اعتÙ
اد اÙÙ
صدر ÙØ§ØÙاÙ.","Values here are for administrative review only. No program, booking, or ticket is published or confirmed before later source approval.")})]}),s.jsxs(Un,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:594",className:"space-y-5",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:595",className:"grid gap-4 lg:grid-cols-3",children:[s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:595",label:Fe(e,"Ø§ÙØ±Ø¨Ø Ø§ÙØ£ÙÙÙ JOD","Initial profit JOD"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:595",dir:"ltr",min:"0",type:"number",value:oe,onChange:He=>G(He.target.value)})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:595",label:Fe(e,"ØØ§ÙØ© Ø§ÙØ³Ùاسة","Policy state"),children:s.jsxs(qn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:595",value:K,onValueChange:He=>ee(He),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:595",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:595"})}),s.jsxs(Wn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:595",children:[s.jsx(At,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:595",value:"draft",children:Fe(e,"ØªØ¬Ø±ÙØ¨Ù / Ù
Ø³ÙØ¯Ø©","Test draft")}),s.jsx(At,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:595",value:"active",children:Fe(e,"ÙØ´Ø· بعد اعتÙ
اد اÙÙ
Ø¯ÙØ±","Active after administrator approval")}),s.jsx(At,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:595",value:"inactive",children:Fe(e,"Ù
عطÙ","Inactive")})]})]})}),s.jsx("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:595",className:"flex items-end",children:s.jsxs(Ie,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:595",className:"w-full",onClick:ca,disabled:Ct.
1566isPending,children:[Ct.isPending&&s.jsx(ft,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:595",className:"h-4 w-4 animate-spin"}),Fe(e,"ØÙظ Ø³ÙØ§Ø³Ø© Ø§ÙØªØ¬Ø±Ø¨Ø©","Save test policy")]})})]}),s.jsx(F3,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:596"}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:597",className:"grid gap-4 lg:grid-cols-4",children:[s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:597",label:Fe(e,"USD â JOD","USD â JOD"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:597",dir:"ltr",inputMode:"decimal",value:pe,onChange:He=>V(He.target.value),placeholder:"0.000000"})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:597",label:Fe(e,"اسÙ
Ù
صدر Ø§ÙØµØ±Ù","FX source name"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:597",value:Y,onChange:He=>z(He.target.value)})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:597",label:Fe(e,"رابط Ù
صدر Ø§ÙØµØ±Ù","FX source URL"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:597",dir:"ltr",value:H,onChange:He=>ne(He.target.value),placeholder:"https://"})}),s.jsx("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:597",className:"flex items-end",children:s.jsx(Ie,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:597",variant:"outline",className:"w-full",onClick:jn,disabled:Ht.isPending,children:Fe(e,"Ø¥Ø¶Ø§ÙØ© ÙØ³Ø®Ø© صرÙ","Add FX version")})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:598",className:"grid gap-4 lg:grid-cols-4",children:[s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:598",label:Fe(e,"خط Ø³ÙØ± Ø§ÙØ·ÙراÙ","Flight route"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:598",dir:"ltr",value:te,onChange:He=>me(He.target.value)})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:598",label:Fe(e,"سعر Ø§ÙØªØ°Ùرة JOD","Ticket price JOD"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:598",dir:"ltr",min:"1",type:"number",value:fe,onChange:He=>Ae(He.target.value)})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:598",label:Fe(e,"Ù
رجع سعر Ø§ÙØªØ°Ùرة","Ticket source reference"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:598",dir:"ltr",value:xe,onChange:He=>ae(He.target.value),placeholder:"https://"})}),s.jsx("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:598",className:"flex items-end",children:s.jsx(Ie,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:598",variant:"outline",className:"w-full",onClick:Qt,disabled:wn.isPending,children:Fe(e,"Ø¥Ø¶Ø§ÙØ© Ù
Ø³ÙØ¯Ø© ØªØ°ÙØ±Ø©","Add ticket draft")})})]}),s.jsx("p",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:599",className:"text-xs text-muted-foreground",children:Fe(e,`Ø³Ø¬Ù Ø§ÙØµØ±Ù: ${(L.data||[]).filter(He=>He.sourceCurrency==="USD").length} ÙØ³Ø®Ø© USD. Ø³Ø¬Ù ØªØ°Ø§ÙØ± اÙÙ
Ø³ÙØ¯Ø©: ${(F.data||[]).filter(He=>He.status==="draft").length}.`,`FX history: ${(L.data||[]).filter(He=>He.sourceCurrency==="USD").length} USD versions. Ticket drafts: ${(F.data||[]).filter(He=>He.status==="draft").length}.`)})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:603",className:"grid gap-3 sm:grid-cols-2 xl:grid-cols-4",children:[s.jsx(Zy,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:604",icon:gP,label:Fe(e,"إجÙ
اÙ٠اÙÙ
صادر","Total sources"),value:Hn.total}),s.jsx(Zy,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:605",icon:Pk,label:Fe(e,"Ø¨Ø§ÙØªØ¸Ø§Ø± اÙÙ
راجعة","Awaiting review"),value:Hn.review,tone:"amber"}),s.jsx(Zy,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:606",icon:yu,label:Fe(e,"Ø¬Ø§ÙØ² ÙÙÙØ´Ø±","Approved"),value:Hn.approved,tone:"emerald"}
1566),s.jsx(Zy,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:607",icon:vP,label:Fe(e,"براÙ
ج Ù
ÙØ´Ùرة","Published programs"),value:Hn.published,tone:"violet"})]}),s.jsxs(kn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:610",className:"overflow-hidden border-primary/15 shadow-sm",children:[s.jsx(Xr,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:611",className:"border-b bg-muted/20",children:s.jsxs(Qr,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:612",className:"flex items-center gap-2 text-lg",children:[s.jsx(oa,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:612",className:"h-5 w-5 text-primary"}),Fe(e,"Ø§Ø³ØªÙØ±Ø§Ø¯ Ø¬Ø¯ÙØ¯","New import")]})}),s.jsxs(Un,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:614",className:"space-y-6 p-5 md:p-6",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:615",className:"grid gap-3 md:grid-cols-3",children:[s.jsx(FN,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:616",active:n==="file",icon:dh,title:Fe(e,"Ø±ÙØ¹ Ù
ÙÙ","Upload file"),description:Fe(e,"PDFØ ExcelØ CSVØ Word Ø£Ù ØµÙØ±Ø©","PDF, Excel, CSV, Word, or image"),onClick:()=>a("file")}),s.jsx(FN,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:617",active:n==="link",icon:aA,title:Fe(e,"رابط Google","Google link"),description:Fe(e,"Google Sheets Ø£Ù Ù
ÙÙ Drive عاÙ
","Google Sheets or a public Drive file"),onClick:()=>a("link")}),s.jsx(FN,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:618",active:n==="manual",icon:vT,title:Fe(e,"Ø¥Ø¯Ø®Ø§Ù ÙØ¯ÙÙ","Manual entry"),description:Fe(e,"Ø£ÙØ´Ø¦ Ø¨Ø±ÙØ§Ù
Ø¬Ø§Ù Ø¹ÙØ¯Ù
ا ÙØ§ ÙØªÙÙØ± Ù
Ø³ØªÙØ¯","Create a program when no document is available"),onClick:()=>a("manual")})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:621",className:"grid gap-4 md:grid-cols-2",children:[s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:622",label:Fe(e,"اÙÙ
ÙØ±Ø¯ اÙÙ
رتبط","Linked supplier"),children:s.jsxs(qn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:623",value:o,onValueChange:c,children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:623",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:623"})}),s.jsxs(Wn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:623",children:[s.jsx(At,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:623",value:"unmatched",children:Fe(e,"ØºÙØ± Ù
طاب٠â ÙÙÙ
راجعة ÙØ§ØÙاÙ","Unmatched â review later")}),(D.data||[]).map(He=>s.jsx(At,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:623",value:String(He.id),children:e==="ar"?He.nameAr||He.nameEn:He.nameEn||He.nameAr},He.id))]})]})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:625",label:Fe(e,"تصÙÙ٠اÙÙØ´Ø±","Publication category"),children:s.jsxs(qn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:626",value:l,onValueChange:d,children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:626",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:626"})}),s.jsxs(Wn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:626",children:[s.jsx(At,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:626",value:"trips",children:Fe(e,"براÙ
ج Ø³ÙØ§ØÙØ©","Travel programs")}),s.jsx(At,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:626",value:"umrah",children:Fe(e,"براÙ
ج Ø§ÙØ¹Ù
رة","Umrah programs")}),s.jsx(At,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:626",value:"offers",children:Fe(e,"Ø¹Ø±ÙØ¶ Ù
ÙØ³Ù
ÙØ©","Seasonal offers")}),s.jsx(At,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:626",value:"trabzon_usd_tariff",children:Fe(e,"ØªØ¹Ø±ÙØ© طرابزÙÙ USD â Ù
راجعة ÙÙØ·","Trabzon USD tariff â review only")})]})]})})]}),n==="file"&&s.jsxs("label",{"data-loc":"client/src/components/
1566accounting/PriceImportsTab.tsx:631",className:"flex min-h-36 cursor-pointer flex-col items-center justify-center rounded-2xl border-2 border-dashed border-primary/25 bg-primary/[0.025] p-6 text-center transition-colors hover:border-primary/50 hover:bg-primary/5",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:632",className:"mb-3 flex h-12 w-12 items-center justify-center rounded-2xl bg-primary/10 text-primary",children:s.jsx(dh,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:632",className:"h-6 w-6"})}),s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:633",className:"font-semibold text-foreground",children:Fe(e,"اختر Ù
Ø³ØªÙØ¯ اÙÙ
ÙØ±Ø¯","Choose supplier document")}),s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:634",className:"mt-1 text-xs text-muted-foreground",children:Fe(e,"Ø§ÙØØ¯ Ø§ÙØ£Ùص٠25 MB â PDF / XLSX / CSV / DOCX / JPG / PNG","Maximum 25 MB â PDF / XLSX / CSV / DOCX / JPG / PNG")}),s.jsx("input",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:635",ref:t,type:"file",accept:".pdf,.xlsx,.xls,.csv,.docx,.jpg,.jpeg,.png,.webp",className:"mt-4 block max-w-full text-sm"},w)]}),n==="link"&&s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:639",className:"rounded-2xl border bg-muted/20 p-5",children:[s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:640",label:Fe(e,"رابط Google Sheets Ø£Ù Google Drive","Google Sheets or Google Drive URL"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:640",dir:"ltr",value:r,onChange:He=>i(He.target.value),placeholder:"https://docs.google.com/spreadsheets/d/..."})}),s.jsx("p",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:641",className:"mt-2 text-xs leading-5 text-muted-foreground",children:Fe(e,"ÙØ¬Ø¨ Ø£Ù ÙÙÙ٠اÙÙ
Ø³ØªÙØ¯ ÙØ§Ø¨Ùا٠ÙÙÙØ±Ø§Ø¡Ø© عبر Ø§ÙØ±Ø§Ø¨Ø·. Ø±ÙØ§Ø¨Ø· اÙÙ
Ø¬ÙØ¯Ø§Øª Ù
Ø±Ø¬Ø¹ÙØ© ÙÙØ·Ø اختر Ù
ÙÙØ§Ù Ù
ØØ¯Ø¯Ø§Ù ÙÙØ§Ø³ØªÙراد.","The document must be readable through the link. Folder links are references only; select a specific file to import.")})]}),n==="manual"&&s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:645",className:"space-y-5 rounded-2xl border bg-muted/20 p-5",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:646",className:"grid gap-4 md:grid-cols-2",children:[s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:646",label:Fe(e,"اسÙ
Ø§ÙØ¨Ø±ÙاÙ
ج Ø¨Ø§ÙØ¹Ø±Ø¨ÙØ©","Arabic program title"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:646",dir:"rtl",value:b.titleAr,onChange:He=>y({...b,titleAr:He.target.value})})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:646",label:Fe(e,"اسÙ
Ø§ÙØ¨Ø±ÙاÙ
ج Ø¨Ø§ÙØ¥ÙجÙÙØ²ÙØ©","English program title"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:646",dir:"ltr",value:b.titleEn,onChange:He=>y({...b,titleEn:He.target.value})})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:646",label:Fe(e,"اÙÙØ¬ÙØ© Ø¨Ø§ÙØ¹Ø±Ø¨ÙØ©","Arabic destination"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:646",dir:"rtl",value:b.cityAr,onChange:He=>y({...b,cityAr:He.target.value})})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:646",label:Fe(e,"اÙÙØ¬ÙØ© Ø¨Ø§ÙØ¥ÙجÙÙØ²ÙØ©","English destination"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:646",dir:"ltr",value:b.cityEn,onChange:He=>y({...b,cityEn:He.target.value})})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:647",className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-4",children:[s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:647",label:Fe(e,"سعر Ø§ÙØ¨Ùع","Selling price"),children:s.jsx(Ee,{"data-loc":"client/src/components/
1566accounting/PriceImportsTab.tsx:647",dir:"ltr",type:"number",min:"0",value:b.price,onChange:He=>y({...b,price:He.target.value})})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:647",label:Fe(e,"Ø§ÙØ¹Ù
ÙØ©","Currency"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:647",dir:"ltr",maxLength:3,value:b.currency,onChange:He=>y({...b,currency:He.target.value.toUpperCase()})})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:647",label:Fe(e,"عدد اÙÙÙØ§ÙÙ","Nights"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:647",dir:"ltr",type:"number",min:"0",value:b.durationNights,onChange:He=>y({...b,durationNights:He.target.value})})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:647",label:Fe(e,"ØµØ§ÙØ ØØªÙ","Valid to"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:647",dir:"ltr",type:"date",value:b.validTo,onChange:He=>y({...b,validTo:He.target.value})})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:648",className:"grid gap-4 md:grid-cols-2",children:[s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:648",label:Fe(e,"Ù
ÙØ®Øµ عربÙ","Arabic summary"),children:s.jsx(es,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:648",dir:"rtl",value:b.summaryAr,onChange:He=>y({...b,summaryAr:He.target.value})})}),s.jsx(Fn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:648",label:Fe(e,"Ù
ÙØ®Øµ Ø¥ÙØ¬ÙÙØ²Ù","English summary"),children:s.jsx(es,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:648",dir:"ltr",value:b.summaryEn,onChange:He=>y({...b,summaryEn:He.target.value})})})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:652",className:"flex flex-col items-stretch justify-between gap-3 border-t pt-5 sm:flex-row sm:items-center",children:[s.jsxs("p",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:653",className:"flex items-center gap-2 text-xs text-muted-foreground",children:[s.jsx(kk,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:653",className:"h-4 w-4 text-primary"}),Fe(e,"IBRIX ÙØÙØ¸ اÙÙ
صدر Ø§ÙØ£ØµÙÙ ÙÙ
ÙÙØ¹ ÙÙ Ø¨Ø±ÙØ§Ù
ج ÙØ¥Ù
ÙØ§ÙÙØ© Ø§ÙØªØ¯ÙÙÙ.","IBRIX preserves the original source and each program location for auditability.")]}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:654",className:"min-w-44",size:"lg",disabled:xn,onClick:Dt,children:[xn?s.jsx(ft,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:654",className:"h-4 w-4 animate-spin"}):n==="manual"?s.jsx(vT,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:654",className:"h-4 w-4"}):s.jsx(pr,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:654",className:"h-4 w-4"}),n==="manual"?Fe(e,"Ø¥ÙØ´Ø§Ø¡ Ù
Ø³ÙØ¯Ø©","Create draft"):Fe(e,"Ø±ÙØ¹ ÙØ§Ø³ØªØ®Ø±Ø§Ø¬","Upload & extract")]})]})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:659",className:"grid gap-6 xl:grid-cols-[minmax(0,0.9fr)_minmax(0,1.4fr)]",children:[s.jsxs(kn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:660",className:"min-w-0 shadow-sm",children:[s.jsxs(Xr,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:661",className:"flex flex-row items-center justify-between border-b",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:662",children:[s.jsx(Qr,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:662",className:"text-lg",children:Fe(e,"Ù
صادر Ø§ÙØ§Ø³ØªÙراد","Import sources")}),s.jsx("p",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:662",className:"mt-1 text-xs text-muted-foreground",children:Fe(e,"اختر Ù
صدرا٠ÙÙ
راجعة براÙ
جÙ","Select a source to review its programs")})]}),s.jsx(Ie,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:663",size:"icon",variant:"ghost","aria-label":Fe(e,"ØªØØ¯ÙØ«","Refresh"),onClick:()=>
1566le(),children:s.jsx(JU,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:663",className:`h-4 w-4 ${E.isFetching?"animate-spin":""}`})})]}),s.jsx(Un,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:665",className:"p-3",children:E.isLoading?s.jsx("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:666",className:"flex justify-center py-16",children:s.jsx(ft,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:666",className:"h-6 w-6 animate-spin text-primary"})}):_.length?s.jsx("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:666",className:"space-y-2",children:_.map(He=>{const tt=m===He.id,Ot=He.fileType==="pdf"?ji:He.fileType==="image"?Kre:He.fileType==="manual"?vT:He.fileType?.includes("google")?uh:nA;return s.jsxs("button",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:669",type:"button",onClick:()=>h(He.id),className:`flex w-full items-center gap-3 rounded-2xl border p-3 text-start transition-colors ${tt?"border-primary bg-primary/5 ring-1 ring-primary/15":"border-transparent hover:bg-muted/50"}`,children:[s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:670",className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground",children:s.jsx(Ot,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:670",className:"h-5 w-5"})}),s.jsxs("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:671",className:"min-w-0 flex-1",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:671",className:"block truncate text-sm font-semibold",dir:"auto",children:He.fileName}),s.jsxs("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:671",className:"mt-1 flex flex-wrap items-center gap-1.5 text-[11px] text-muted-foreground",children:[s.jsx("bdi",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:671",dir:"ltr",children:He.importNumber}),s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:671",children:"â¢"}),s.jsxs("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:671",children:[He.rowCount||0," ",Fe(e,"Ø¨Ø±ÙØ§Ù
ج","programs")]}),s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:671",children:"â¢"}),s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:671",children:bn(He.createdAt)})]})]}),s.jsxs("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:672",className:"flex shrink-0 flex-col items-end gap-2",children:[s.jsx(Ky,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:672",status:He.status,lang:e}),s.jsx(Qb,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:672",className:`h-4 w-4 text-muted-foreground ${e==="ar"?"rotate-180":""}`})]})]},He.id)})}):s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:674",className:"py-16 text-center",children:[s.jsx(gP,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:674",className:"mx-auto h-10 w-10 text-muted-foreground/40"}),s.jsx("p",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:674",className:"mt-3 text-sm font-medium",children:Fe(e,"ÙØ§ ØªÙØ¬Ø¯ Ù
صادر بعد","No sources yet")}),s.jsx("p",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:674",className:"mt-1 text-xs text-muted-foreground",children:Fe(e,"ابدأ Ø¨Ø£ØØ¯ Ø®ÙØ§Ø±Ø§Øª Ø§ÙØ§Ø³ØªÙراد Ø£Ø¹ÙØ§Ù","Start with one of the import options above")})]})})]}),s.jsx(kn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:678",className:"min-w-0 shadow-sm",children:m?S.isLoading?s.jsx(Un,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:679",className:"flex min-h-[420px] items-center justify-center",children:s.jsx(ft,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:679",className:"h-7 w-7 animate-spin text-primary"})}):U?s.jsxs(s.Fragment,{children:[s.jsxs(Xr,{"data-loc":"client/src/components/
1566accounting/PriceImportsTab.tsx:680",className:"border-b bg-muted/15",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:681",className:"flex flex-col justify-between gap-4 lg:flex-row lg:items-start",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:682",className:"min-w-0",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:682",className:"flex flex-wrap items-center gap-2",children:[s.jsx(Qr,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:682",className:"truncate text-lg",dir:"auto",children:U.fileName}),s.jsx(Ky,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:682",status:U.status,lang:e})]}),s.jsxs("p",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:682",className:"mt-2 flex flex-wrap gap-x-3 gap-y-1 text-xs text-muted-foreground",children:[s.jsx("bdi",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:682",dir:"ltr",children:U.importNumber}),s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:682",children:bn(U.createdAt)}),U.versionNumber&&s.jsxs("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:682",children:[Fe(e,"إصدار","Version")," ",s.jsxs("bdi",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:682",dir:"ltr",children:["v",U.versionNumber]})]}),U.sourceFingerprint&&s.jsxs("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:682",title:U.sourceFingerprint,children:[Fe(e,"بصÙ
Ø©","Fingerprint")," ",s.jsxs("bdi",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:682",dir:"ltr",children:[String(U.sourceFingerprint).slice(0,12),"â¦"]})]}),U.extractionModel&&s.jsxs("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:682",children:["AI: ",s.jsx("bdi",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:682",dir:"ltr",children:U.extractionModel})]})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:683",className:"flex flex-wrap gap-2",children:[U.fileUrl&&s.jsx(Ie,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:683",size:"sm",variant:"outline",asChild:!0,children:s.jsxs("a",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:683",href:U.fileUrl,target:"_blank",rel:"noreferrer",children:[s.jsx(Sd,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:683",className:"h-4 w-4"}),Fe(e,"اÙÙ
صدر","Source")]})}),U.fileType!=="manual"&&!["extracting","published","rolled_back"].includes(U.status)&&s.jsxs(Ie,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:683",size:"sm",variant:"outline",disabled:xt.isPending,onClick:()=>yt(U.id),children:[xt.isPending?s.jsx(ft,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:683",className:"h-4 w-4 animate-spin"}):s.jsx(pr,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:683",className:"h-4 w-4"}),Fe(e,"إعادة Ø§ÙØ§Ø³ØªØ®Ø±Ø§Ø¬","Re-extract")]}),U.status==="published"&&s.jsxs(Ie,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:683",size:"sm",variant:"outline",disabled:it.isPending,onClick:()=>zt(U.id),children:[s.jsx(Z0,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:683",className:"h-4 w-4"}),Fe(e,"Ø±Ø¬ÙØ¹ â Ù
Ø¯ÙØ± ÙÙØ·","Rollback â admin only")]}),s.jsx(Ie,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:683",size:"icon",variant:"ghost","aria-label":Fe(e,"ØØ°Ù","Delete"),onClick:()=>Mt(U.id),children:s.jsx(ro,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:683",className:"h-4 w-4 text-destructive"})})]})]}),U.status==="extracting"&&s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:685",className:"mt-4 space-y-2",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:685",className:"flex justify-between text-xs",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:685",children:Fe(e,"جار٠تØÙÙ٠اÙÙ
Ø³ØªÙØ¯â¦","Analyzing documentâ¦")}
1566),s.jsxs("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:685",children:[U.progress||0,"%"]})]}),s.jsx(Sve,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:685",value:U.progress||0})]})]}),s.jsxs(Un,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:687",className:"space-y-5 p-4 md:p-5",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:688",className:"grid gap-3 sm:grid-cols-3",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:688",className:"rounded-xl bg-muted/40 p-3",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:688",className:"text-xs text-muted-foreground",children:Fe(e,"عدد Ø§ÙØ¨Ø±Ø§Ù
ج","Programs")}),s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:688",className:"mt-1 block text-lg font-bold",children:O.length})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:688",className:"rounded-xl bg-muted/40 p-3",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:688",className:"text-xs text-muted-foreground",children:Fe(e,"Ù
ØªÙØ³Ø· Ø§ÙØ«ÙØ©","Average confidence")}),s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:688",className:"mt-1 block text-lg font-bold",children:s.jsxs("bdi",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:688",dir:"ltr",children:[Number(U.confidence||0).toFixed(0),"%"]})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:688",className:"rounded-xl bg-muted/40 p-3",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:688",className:"text-xs text-muted-foreground",children:Fe(e,"اÙÙ
ÙØ±Ø¯","Supplier")}),s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:688",className:"mt-1 block truncate text-sm font-semibold",children:(D.data||[]).find(He=>He.id===U.supplierId)?.name||Fe(e,"ØºÙØ± Ù
طابÙ","Unmatched")})]})]}),!U.supplierId&&s.jsxs(xd,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:690",className:"border-amber-300 bg-amber-50/70 text-amber-950",children:[s.jsx(Yp,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:690",className:"h-4 w-4"}),s.jsx(bd,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:690",children:Fe(e,"Ù
Ø·ÙÙØ¨ Ù
Ø·Ø§Ø¨ÙØ© اÙÙ
ÙØ±Ø¯","Supplier matching required")}),s.jsx(vd,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:690",className:"mt-2",children:s.jsx("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:690",className:"flex flex-col gap-2 sm:flex-row",children:s.jsxs(qn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:690",value:"unmatched",onValueChange:async He=>{He!=="unmatched"&&(await ct.mutateAsync({id:U.id,supplierId:Number(He)}),await le(U.id))},children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:690",className:"bg-white sm:max-w-xs",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:690",placeholder:Fe(e,"اختر اÙÙ
ÙØ±Ø¯","Choose supplier")})}),s.jsxs(Wn,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:690",children:[s.jsx(At,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:690",value:"unmatched",children:Fe(e,"اختر اÙÙ
ÙØ±Ø¯","Choose supplier")}),(D.data||[]).map(He=>s.jsx(At,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:690",value:String(He.id),children:e==="ar"?He.nameAr||He.nameEn:He.nameEn||He.nameAr},He.id))]})]})})})]}),U.errorMessage&&s.jsxs(xd,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:691",variant:"destructive",children:[s.jsx(Yp,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:691",className:"h-4 w-4"}),s.jsx(bd,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:691",children:Fe(e,"تعذر Ø§ÙØ§Ø³ØªØ®Ø±Ø§Ø¬","Extraction failed")}
1566),s.jsx(vd,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:691",children:U.errorMessage})]}),Array.isArray(U.events)&&U.events.length>0&&s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:692",className:"rounded-2xl border bg-muted/20 p-3",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:692",className:"mb-2 text-xs font-semibold text-muted-foreground",children:Fe(e,"آخر Ø³Ø¬Ù Ø§ÙØÙÙÙ
Ø©","Latest governance events")}),s.jsx("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:692",className:"space-y-1.5",children:U.events.slice(0,4).map(He=>s.jsxs("p",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:692",className:"text-xs text-foreground",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:692",className:"font-medium",children:He.summary}),s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:692",className:"ms-2 text-muted-foreground",children:bn(He.createdAt)})]},He.id))})]}),s.jsx("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:694",className:"space-y-3",children:O.length?O.map(He=>{const tt=He.normalizedData||{},Ot=He.errors||[],Zn=He.warnings||[];return s.jsxs("article",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:698",className:"overflow-hidden rounded-2xl border bg-card shadow-sm",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:699",className:"flex flex-col gap-4 p-4 lg:flex-row lg:items-start lg:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:700",className:"flex min-w-0 gap-3",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:700",className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-primary/10 text-sm font-bold text-primary",children:He.rowNumber}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:700",className:"min-w-0",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:700",className:"flex flex-wrap items-center gap-2",children:[s.jsx("h4",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:700",className:"font-semibold text-foreground",dir:"auto",children:e==="ar"?tt.titleAr||tt.titleEn:tt.titleEn||tt.titleAr||Fe(e,"Ø¨Ø±ÙØ§Ù
ج Ø¨ÙØ§ عÙÙØ§Ù","Untitled program")}),s.jsx(Ky,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:700",status:He.reviewStatus,lang:e,review:!0})]}),s.jsxs("p",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:700",className:"mt-1 flex flex-wrap items-center gap-2 text-xs text-muted-foreground",children:[s.jsxs("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:700",className:"inline-flex items-center gap-1",children:[s.jsx(mr,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:700",className:"h-3.5 w-3.5"}),e==="ar"?tt.cityAr||tt.cityEn:tt.cityEn||tt.cityAr||"â"]}),s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:700",children:"â¢"}),s.jsxs("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:700",children:[tt.durationNights||0," ",Fe(e,"ÙÙØ§ÙÙ","nights")]}),s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:700",children:"â¢"}),s.jsx("bdi",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:700",dir:"ltr",children:rn(tt.price,tt.currency)}),He.sourceLocator&&s.jsxs(s.Fragment,{children:[s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:700",children:"â¢"}),s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:700",dir:"auto",children:He.sourceLocator})]})]})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:701",className:"flex flex-wrap gap-2",children:[s.jsxs(Ie,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:701",size:"sm",variant:"outline",onClick:()=>f(He),disabled:He.reviewStatus==="published",children:[He.reviewStatus==="published"?s.jsx(Gi,{"data-loc":"client/src/components/
1566accounting/PriceImportsTab.tsx:701",className:"h-4 w-4"}):s.jsx(K0,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:701",className:"h-4 w-4"}),He.reviewStatus==="published"?Fe(e,"عرض","View"):Fe(e,"Ù
راجعة","Review")]}),!Ot.length&&!["approved","published","rejected"].includes(He.reviewStatus)&&s.jsxs(Ie,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:701",size:"sm",variant:"outline",disabled:Tt.isPending,onClick:async()=>{await Tt.mutateAsync({id:He.id}),await le(U.id),Le.success(Fe(e,"تÙ
اعتÙ
اد Ø§ÙØ¨Ø±ÙاÙ
ج.","Program approved."))},children:[s.jsx(ns,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:701",className:"h-4 w-4 text-emerald-600"}),Fe(e,"اعتÙ
اد","Approve")]}),He.reviewStatus==="approved"&&s.jsxs(Ie,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:701",size:"sm",disabled:Jt.isPending,onClick:async()=>{await Jt.mutateAsync({id:He.id}),await le(U.id),Le.success(Fe(e,"ÙÙØ´Ø± Ø§ÙØ¨Ø±ÙاÙ
ج Ù٠اÙÙØ§Ø¬ÙØ© اÙÙØ¹ÙÙØ©.","Program published to the live catalog."))},children:[s.jsx(vP,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:701",className:"h-4 w-4"}),Fe(e,"ÙØ´Ø±","Publish")]}),!["published","rejected"].includes(He.reviewStatus)&&s.jsx(Ie,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:701",size:"icon",variant:"ghost","aria-label":Fe(e,"Ø±ÙØ¶","Reject"),onClick:async()=>{await Xt.mutateAsync({id:He.id}),await le(U.id)},children:s.jsx(ks,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:701",className:"h-4 w-4 text-muted-foreground"})})]})]}),s.jsx(F3,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:703"}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:704",className:"grid gap-px bg-border sm:grid-cols-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:704",className:"bg-background p-3",children:[s.jsxs("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:704",className:"flex items-center gap-1 text-[11px] text-muted-foreground",children:[s.jsx(Cd,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:704",className:"h-3.5 w-3.5"}),Fe(e,"Ø®ÙØ§Ø±Ø§Øª Ø§ÙØ³Ø¹Ø±","Price options")]}),s.jsx("strong",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:704",className:"mt-1 block",children:tt.pricingDetails?.length||0})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:704",className:"bg-background p-3",children:[s.jsxs("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:704",className:"flex items-center gap-1 text-[11px] text-muted-foreground",children:[s.jsx(wu,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:704",className:"h-3.5 w-3.5"}),Fe(e,"اÙÙÙØ§Ø¯Ù","Hotels")]}),s.jsx("strong",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:704",className:"mt-1 block",children:tt.hotels?.length||0})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:704",className:"bg-background p-3",children:[s.jsxs("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:704",className:"flex items-center gap-1 text-[11px] text-muted-foreground",children:[s.jsx(Hs,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:704",className:"h-3.5 w-3.5"}),Fe(e,"Ø§ÙØ®Ø¯Ù
ات","Services")]}),s.jsx("strong",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:704",className:"mt-1 block",children:tt.serviceDetails?.length||0})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:704",className:"bg-background p-3",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:704",className:"text-[11px] text-muted-foreground",children:Fe(e,"Ø«ÙØ© Ø§ÙØ§Ø³ØªØ®Ø±Ø§Ø¬","Extraction confidence")}),s.jsx("strong",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:704",className:"mt-1 block",children:s.jsxs("bdi",{"data-loc":"client/src/components/
1566accounting/PriceImportsTab.tsx:704",dir:"ltr",children:[Number(He.confidence||0).toFixed(0),"%"]})})]})]}),s.jsx("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:705",className:"border-t bg-muted/10 px-4 py-3",children:s.jsx(Vve,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:705",data:tt,lang:e})}),(Ot.length>0||Zn.length>0)&&s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:706",className:"space-y-1 border-t bg-muted/20 px-4 py-3 text-xs",children:[Ot.map((Tn,qt)=>s.jsxs("p",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:706",className:"flex gap-2 text-destructive",children:[s.jsx(Yp,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:706",className:"mt-0.5 h-3.5 w-3.5 shrink-0"}),Tn]},`e-${qt}`)),Zn.map((Tn,qt)=>s.jsxs("p",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:706",className:"flex gap-2 text-amber-700",children:[s.jsx(Yp,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:706",className:"mt-0.5 h-3.5 w-3.5 shrink-0"}),Tn]},`w-${qt}`))]})]},He.id)}):s.jsxs("div",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:708",className:"rounded-2xl border border-dashed py-12 text-center",children:[s.jsx(kk,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:708",className:"mx-auto h-9 w-9 text-muted-foreground/40"}),s.jsx("p",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:708",className:"mt-3 text-sm font-medium",children:Fe(e,"ÙØ§ ØªÙØ¬Ø¯ براÙ
ج Ù
ستخرجة","No extracted programs")}),U.fileType!=="manual"&&s.jsx(Ie,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:708",className:"mt-4",size:"sm",variant:"outline",onClick:()=>yt(U.id),children:Fe(e,"بدء Ø§ÙØ§Ø³ØªØ®Ø±Ø§Ø¬","Start extraction")})]})})]})]}):null:s.jsxs(Un,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:679",className:"flex min-h-[420px] flex-col items-center justify-center text-center",children:[s.jsx(Pk,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:679",className:"h-12 w-12 text-primary/30"}),s.jsx("h3",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:679",className:"mt-4 font-semibold",children:Fe(e,"اختر Ù
صدر Ø§Ø³ØªÙØ±Ø§Ø¯","Select an import source")}),s.jsx("p",{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:679",className:"mt-2 max-w-sm text-sm leading-6 text-muted-foreground",children:Fe(e,"Ø³ØªØ¸ÙØ± ÙÙØ§ Ø§ÙØ¨Ø±Ø§Ù
ج اÙÙ
ستخرجة ÙØØ§ÙØ© Ø§ÙØªØÙÙ ÙØ£Ø¯Ùات اÙÙ
راجعة ÙØ§ÙاعتÙ
اد ÙØ§ÙÙØ´Ø±.","Extracted programs, validation status, and review, approval, and publication controls will appear here.")})]})})]}),x&&s.jsx(zve,{"data-loc":"client/src/components/accounting/PriceImportsTab.tsx:714",open:!0,row:x,lang:e,onClose:()=>f(null),onSave:async He=>{await be.mutateAsync({id:x.id,normalizedData:He}),await le(U.id),Le.success(Fe(e,"تÙ
ØÙظ اÙÙ
راجعة ÙØ¥Ø¹Ø§Ø¯Ø© Ø§ÙØªØÙÙ.","Review saved and validation rerun."))}},x.id)]})}function qve(e,t=Date.now()){const n=e?.trim();if(!n)return!1;const a=n.match(/^(\d{4})-(\d{2})-(\d{2})$/),r=a?Date.UTC(Number(a[1]),Number(a[2])-1,Number(a[3]),23,59,59,999):Date.parse(n);return Number.isFinite(r)&&r<t}const An=(e,t,n)=>e==="ar"?t:n;function e5(){return{routeCode:"",carrier:"royal_jordanian",sellingPrice:"",currency:"JOD",sourceType:"manual",sourceReference:"",pricedAt:new Date().toISOString().slice(0,10),validUntil:"",notesAr:"",notesEn:"",status:"draft",requiresReview:!0}}const B1={draft:{ar:"Ù
Ø³ÙØ¯Ø©",en:"Draft"},active:{ar:"Ù
عتÙ
د",en:"Active"},inactive:{ar:"Ù
عطÙÙ",en:"Inactive"},expired:{ar:"Ù
ÙØªÙÙ",en:"Expired"}},F1={user_provided:{ar:"Ù
ÙØ«ÙÙ Ù
٠اÙÙ
ستخدÙ
",en:"User provided"},source_file:{ar:"Ù
ÙÙ Ù
صدر",en:"Source file"},supplier:{ar:"Ù
ÙØ±Ø¯",en:"Supplier"},manual:{ar:"Ø¥Ø¯Ø®Ø§Ù ÙØ¯ÙÙ",en:"Manual entry"}},U1={royal_jordanian:{ar:"اÙÙ
ÙÙÙØ© Ø§ÙØ£Ø±Ø¯ÙÙØ©",en:"Royal Jordanian"},jordan_aviation:{ar:"Ø§ÙØ£Ø±Ø¯ÙÙØ© ÙÙØ·ÙراÙ",en:"Jordan Aviation"}};function Gve(e,t,n){try{return new Intl.NumberFormat(n==="ar"?"ar-JO":"en-JO",{style:"currency",currency:t,maximumFractionDigits:0}).format(e)}
1566catch{return`${e.toLocaleString(n==="ar"?"ar-JO":"en-JO")} ${t}`}}function iM(e,t){if(!e)return"â";const n=e instanceof Date?e:new Date(e);return Number.isNaN(n.getTime())?String(e).slice(0,10):new Intl.DateTimeFormat(t==="ar"?"ar-JO":"en-GB",{day:"numeric",month:"short",year:"numeric"}).format(n)}function UN(e){return e?qve(e instanceof Date?e.toISOString():e):!1}function Jve({lang:e,role:t}){const n=t==="admin",a=Pe.useUtils(),[r,i]=k.useState(""),[o,c]=k.useState("all"),[l,d]=k.useState(!1),[m,h]=k.useState(e5),x=Pe.accounting.tourism.flightRoutePricing.list.useQuery(),f=async()=>a.accounting.tourism.flightRoutePricing.list.invalidate(),b=Pe.accounting.tourism.flightRoutePricing.create.useMutation({onSuccess:async()=>{await f(),d(!1),h(e5()),Le.success(An(e,"ØÙÙØ¸ سعر اÙÙ
سار Ù٠سج٠اÙÙ
راجعة","Route price saved to the review register"))},onError:S=>Le.error(S.message)}),y=Pe.accounting.tourism.flightRoutePricing.update.useMutation({onSuccess:async()=>{await f(),Le.success(An(e,"ØÙØ¯ÙØ«Øª ØØ§ÙØ© سعر اÙÙ
سار","Route price status updated"))},onError:S=>Le.error(S.message)}),w=x.data??[],T=k.useMemo(()=>{const S=r.trim().toLocaleLowerCase();return w.filter(R=>o!=="all"&&R.status!==o?!1:S?[R.routeCode,R.currency,R.sourceReference,R.notesAr,R.notesEn].filter(Boolean).some(L=>String(L).toLocaleLowerCase().includes(S)):!0)},[w,r,o]),A=k.useMemo(()=>({total:w.length,active:w.filter(S=>S.status==="active"&&!UN(S.validUntil)).length,review:w.filter(S=>S.requiresReview||S.status==="draft").length}),[w]);function E(){const S=Number(m.sellingPrice);if(!m.routeCode.trim()||!Number.isFinite(S)||S<=0||!m.sourceReference.trim()||!m.pricedAt){Le.error(An(e,"Ø£ÙÙ
٠اÙÙ
سار ÙØ§Ùسعر ÙØ§ÙÙ
صدر ÙØªØ§Ø±ÙØ® Ø§ÙØªØ³Ø¹Ùر","Complete the route, price, source, and pricing date"));return}if(m.status==="active"&&(!m.validUntil||m.requiresReview)){Le.error(An(e,"ÙØ§ ÙÙ
ÙÙ Ø§ÙØªÙعÙ٠دÙÙ ØµÙØ§ØÙØ© Ù
Ø³ØªÙØ¨ÙÙØ© ÙØ¥ØºÙØ§Ù ØØ§ÙØ© اÙÙ
راجعة","Activation requires a future expiry date and a cleared review flag"));return}b.mutate({routeCode:m.routeCode,carrier:m.carrier,sellingPrice:S,currency:m.currency,sourceType:m.sourceType,sourceReference:m.sourceReference,pricedAt:m.pricedAt,validUntil:m.validUntil||null,notesAr:m.notesAr||null,notesEn:m.notesEn||null,status:m.status,requiresReview:m.requiresReview})}function D(S){const R=S.status!=="active";if(R&&(!S.validUntil||UN(S.validUntil))){Le.error(An(e,"Ø£Ø¶Ù ØªØ§Ø±ÙØ® ØµÙØ§ØÙØ© Ù
Ø³ØªÙØ¨ÙÙØ§Ù ÙØ¨Ù Ø§ÙØ§Ø¹ØªÙ
اد","Add a future validity date before approval"));return}y.mutate({id:S.id,data:{status:R?"active":"inactive",requiresReview:R?!1:S.requiresReview}})}return s.jsxs(kn,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:200",className:"overflow-hidden border-cyan-300/15 bg-[radial-gradient(circle_at_top_left,rgba(34,211,238,0.12),transparent_46%)]",children:[s.jsx(Xr,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:201",className:"border-b border-white/8 bg-black/10",children:s.jsxs("div",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:202",className:"flex flex-col gap-5 xl:flex-row xl:items-start xl:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:203",className:"flex items-start gap-4",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:204",className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-2xl bg-cyan-300/12 text-cyan-300",children:s.jsx(fb,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:205",className:"h-6 w-6"})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:207",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:208",className:"flex flex-wrap gap-2",children:[s.jsx(Pn,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:209",variant:"secondary",children:An(e,"سعر Ø¨ÙØ¹ ÙÙØ·","Selling price only")}
1566),s.jsx(Pn,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:210",variant:"outline",children:An(e,"Ù
صدر ÙØªØ§Ø±ÙØ® Ø¥ÙØ²Ø§Ù
ÙØ§Ù","Source and date required")})]}),s.jsx(Qr,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:212",className:"mt-3 font-display text-2xl",children:An(e,"ÙÙØ±Ø³ أسعار Ù
سارات Ø§ÙØ·ÙراÙ","Flight Route Price Index")}),s.jsx("p",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:213",className:"mt-2 max-w-3xl text-sm leading-6 text-muted-foreground",children:An(e,"أسعار ØªØ°Ø§ÙØ± Ù
ÙØ«ÙÙØ© ÙÙÙ
سارات اÙÙ
ستخدÙ
Ø© ÙÙ Ø§ÙØ¨Ø±Ø§Ù
ج. ÙØ§ ØªÙØÙÙÙ Ø§ÙØ¹Ù
ÙØ§Øª ÙÙØ§ ØªÙØ´ØªÙ Ø§ÙØ£Ø³Ø¹Ø§Ø± Ù
٠تÙÙÙØ© Ù
ÙØ±Ø¯Ø ÙÙ٠اعتÙ
اد ÙØ¨ÙÙ Ù
ØØµÙØ±Ø§Ù Ø¨Ø§ÙØ£Ø¯Ù
Ù.","Documented ticket selling prices for package routes. Currency is never converted and prices are never inferred from supplier cost; approval remains admin-only.")})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:218",className:"flex flex-wrap items-center gap-2",children:[n?null:s.jsxs(Pn,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:219",variant:"outline",className:"gap-1.5",children:[s.jsx(gu,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:219",className:"h-3.5 w-3.5"}),An(e,"ÙØ±Ø§Ø¡Ø© ÙÙØ·","Read only")]}),n?s.jsxs(Ie,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:220",onClick:()=>{h(e5()),d(!0)},children:[s.jsx(oa,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:220",className:"h-4 w-4"}),An(e,"Ø¥Ø¶Ø§ÙØ© سعر Ù
ÙØ«ÙÙ","Add documented price")]}):null]})]})}),s.jsxs(Un,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:225",className:"space-y-5 p-5 md:p-6",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:226",className:"grid gap-3 sm:grid-cols-3",children:[s.jsx(HN,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:227",icon:_d,value:A.total,label:An(e,"إجÙ
اÙÙ Ø§ÙØ³Ø¬Ùات","Total records")}),s.jsx(HN,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:228",icon:ns,value:A.active,label:An(e,"أسعار Ù
عتÙ
دة","Approved prices"),tone:"emerald"}),s.jsx(HN,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:229",icon:zi,value:A.review,label:An(e,"ØªØØªØ§Ø¬ Ù
راجعة","Need review"),tone:"amber"})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:232",className:"grid gap-3 md:grid-cols-[minmax(0,1fr)_220px]",children:[s.jsxs("label",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:233",className:"relative block",children:[s.jsx(so,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:234",className:"pointer-events-none absolute start-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:235",value:r,onChange:S=>i(S.target.value),className:"ps-9",placeholder:An(e,"Ø§Ø¨ØØ« باÙÙ
سار أ٠اÙÙ
صدر","Search route or source")})]}),s.jsxs(qn,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:237",value:o,onValueChange:S=>c(S),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:238",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:238"})}),s.jsxs(Wn,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:239",children:[s.jsx(At,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:240",value:"all",children:An(e,"ÙÙ Ø§ÙØØ§ÙØ§Øª","All statuses")}),Object.keys(B1).map(S=>s.jsx(At,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:241",value:S,children:An(e,B1[S].ar,B1[S].en)},S))]})]})]}),x.isLoading?s.jsx("div",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:247",className:"flex justify-center py-16",children:s.jsx(ft,{"data-loc":"client/src/components/
1566accounting/FlightRoutePricingPanel.tsx:247",className:"h-7 w-7 animate-spin text-cyan-300"})}):x.isError?s.jsx("div",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:249",className:"rounded-2xl border border-rose-300/20 bg-rose-300/8 p-6 text-center text-sm text-rose-100",children:An(e,"تعذر تØÙ
ÙÙ ÙÙØ±Ø³ اÙÙ
سارات. أعد اÙÙ
ØØ§ÙÙØ©.","The route register could not be loaded. Please try again.")}):T.length===0?s.jsx("div",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:253",className:"rounded-2xl border border-dashed border-white/10 bg-white/[0.02] p-10 text-center text-sm text-muted-foreground",children:An(e,"ÙØ§ ØªÙØ¬Ø¯ Ù
سارات Ù
Ø·Ø§Ø¨ÙØ© ÙØ¹ÙاÙ
Ù Ø§ÙØªØµÙÙØ©.","No routes match the current filters.")}):s.jsx("div",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:257",className:"overflow-x-auto rounded-2xl border border-white/8",children:s.jsxs("table",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:258",className:"w-full min-w-[1180px] text-sm",children:[s.jsx("thead",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:259",className:"bg-muted/30 text-xs text-muted-foreground",children:s.jsxs("tr",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:260",children:[s.jsx(r0,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:261",children:An(e,"اÙÙ
سار","Route")}),s.jsx(r0,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:262",children:An(e,"اÙÙØ§ÙÙ","Carrier")}),s.jsx(r0,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:263",children:An(e,"سعر Ø§ÙØ¨Ùع","Selling price")}),s.jsx(r0,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:264",children:An(e,"اÙÙ
صدر","Source")}),s.jsx(r0,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:265",children:An(e,"Ø§ÙØªØ³Ø¹Ùر / Ø§ÙØµÙاØÙØ©","Priced / valid until")}),s.jsx(r0,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:266",children:An(e,"اÙÙ
راجعة","Review")}),s.jsx(r0,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:267",children:An(e,"Ø§ÙØØ§ÙØ©","Status")})]})}),s.jsx("tbody",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:270",children:T.map(S=>{const R=UN(S.validUntil),L=S.requiresReview||!S.validUntil||R;return s.jsxs("tr",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:275",className:"border-t border-white/8 align-top hover:bg-white/[0.025]",children:[s.jsxs(i0,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:276",children:[s.jsx("code",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:276",dir:"ltr",className:"text-sm font-bold tracking-[0.08em] text-cyan-200",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:276",children:S.routeCode})}),s.jsx("p",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:276",className:"mt-1 text-xs text-muted-foreground",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:276",children:Array.isArray(S.routeSegments)?S.routeSegments.join(" â "):S.routeCode.replaceAll("-"," â ")})})]}),s.jsx(i0,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:277",children:S.carrier?s.jsx(Pn,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:277",variant:"outline",children:An(e,U1[S.carrier]?.ar||S.carrier,U1[S.carrier]?.en||S.carrier)}):s.jsx("span",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:277",className:"text-xs text-amber-300",children:An(e,"ØºÙØ± Ù
ÙØ«ÙÙ","Not documented")})}),s.jsxs(i0,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:278",children:[s.jsx("strong",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:278",className:"text-base text-foreground",children:s.jsx("bdi",{"data-loc":"client/src/components/
1566accounting/FlightRoutePricingPanel.tsx:278",children:Gve(S.sellingPrice,S.currency,e)})}),s.jsx("p",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:278",className:"mt-1 text-xs text-muted-foreground",children:An(e,"ÙÙÙ ØªØ°ÙØ±Ø©","Per ticket")})]}),s.jsxs(i0,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:279",children:[s.jsx(Pn,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:279",variant:"outline",children:An(e,F1[S.sourceType]?.ar||S.sourceType,F1[S.sourceType]?.en||S.sourceType)}),s.jsx("p",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:279",className:"mt-2 max-w-[260px] truncate text-xs text-muted-foreground",title:S.sourceReference||void 0,children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:279",children:S.sourceReference})})]}),s.jsxs(i0,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:280",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:280",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:280",children:iM(S.pricedAt,e)})}),s.jsxs("p",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:280",className:`mt-1 text-xs ${R?"text-rose-300":S.validUntil?"text-muted-foreground":"text-amber-300"}`,children:[s.jsx(sx,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:280",className:"me-1 inline h-3.5 w-3.5"}),s.jsx("bdi",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:280",children:iM(S.validUntil,e)})]})]}),s.jsx(i0,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:281",children:L?s.jsx(Pn,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:281",className:"border border-amber-300/20 bg-amber-300/10 text-amber-200",children:An(e,"Ù
راجعة Ù
Ø·ÙÙØ¨Ø©","Review required")}):s.jsx(Pn,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:281",className:"border border-emerald-300/20 bg-emerald-300/10 text-emerald-200",children:An(e,"Ù
ÙØ«ÙÙ","Documented")})}),s.jsx(i0,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:282",children:s.jsxs("div",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:282",className:"flex flex-col items-start gap-2",children:[s.jsx(Pn,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:282",variant:S.status==="active"?"default":"outline",children:An(e,B1[S.status]?.ar||S.status,B1[S.status]?.en||S.status)}),n?s.jsx(Ie,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:282",size:"sm",variant:"outline",disabled:y.isPending||R,onClick:()=>D(S),children:S.status==="active"?An(e,"تعطÙÙ","Deactivate"):An(e,"اعتÙ
اد","Approve")}):null]})})]},S.id)})})]})})]}),s.jsx(Ba,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:292",open:l,onOpenChange:S=>{d(S),S||h(e5())},children:s.jsxs(Fa,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:293",className:"max-h-[92vh] max-w-3xl overflow-y-auto",dir:e==="ar"?"rtl":"ltr",children:[s.jsx(as,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:294",children:s.jsx(Ua,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:294",children:An(e,"Ø¥Ø¶Ø§ÙØ© سعر Ù
سار Ù
ÙØ«ÙÙ","Add a documented route price")})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:295",className:"rounded-2xl border border-cyan-300/15 bg-cyan-300/5 p-4 text-sm leading-6 text-muted-foreground",children:[s.jsx(sa,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:296",className:"me-2 inline h-4 w-4 text-cyan-300"}),An(e,"أدخ٠سعر Ø§ÙØ¨Ùع ÙÙØ· ÙÙ
ا ÙØ±Ø¯ Ù٠اÙÙ
صدر. ÙØ§ تدخ٠تÙÙÙØ© Ù
ÙØ±Ø¯ ÙÙØ§ تطب٠تØÙÙ٠عÙ
ÙØ© Ø£Ù ØªÙØ¯Ùرا٠آÙÙØ§Ù.","Enter only the documented selling price. Do not enter supplier cost, convert currency, or estimate automatically.")]}
1566),s.jsxs("div",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:299",className:"grid gap-4 py-2 sm:grid-cols-2",children:[s.jsx(ou,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:300",label:An(e,"خط Ø§ÙØ³Ùر (IATA)","Route (IATA)"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:300",dir:"ltr",className:"text-left uppercase",value:m.routeCode,onChange:S=>h({...m,routeCode:S.target.value.toUpperCase()}),placeholder:"AMM-IST-AMM"})}),s.jsx(ou,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:301",label:An(e,"اÙÙØ§Ù٠اÙÙ
عتÙ
د","Approved carrier"),children:s.jsxs(qn,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:301",value:m.carrier,onValueChange:S=>h({...m,carrier:S}),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:301",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:301"})}),s.jsx(Wn,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:301",children:Object.keys(U1).map(S=>s.jsx(At,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:301",value:S,children:An(e,U1[S].ar,U1[S].en)},S))})]})}),s.jsx(ou,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:302",label:An(e,"سعر Ø§ÙØ¨Ùع","Selling price"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:302",dir:"ltr",className:"text-left",type:"number",min:"1",value:m.sellingPrice,onChange:S=>h({...m,sellingPrice:S.target.value})})}),s.jsx(ou,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:303",label:An(e,"Ø§ÙØ¹Ù
ÙØ©","Currency"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:303",dir:"ltr",className:"text-left uppercase",value:m.currency,onChange:S=>h({...m,currency:S.target.value.toUpperCase()})})}),s.jsx(ou,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:304",label:An(e,"ÙÙØ¹ اÙÙ
صدر","Source type"),children:s.jsxs(qn,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:304",value:m.sourceType,onValueChange:S=>h({...m,sourceType:S}),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:304",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:304"})}),s.jsx(Wn,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:304",children:Object.keys(F1).map(S=>s.jsx(At,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:304",value:S,children:An(e,F1[S].ar,F1[S].en)},S))})]})}),s.jsx(ou,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:305",label:An(e,"Ù
رجع اÙÙ
صدر","Source reference"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:305",value:m.sourceReference,onChange:S=>h({...m,sourceReference:S.target.value}),placeholder:An(e,"Ù
ثاÙ: Ø±Ø³Ø§ÙØ© اÙÙ
ستخدÙ
Ø¨ØªØ§Ø±ÙØ®â¦","Example: user message datedâ¦")})}),s.jsx(ou,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:306",label:An(e,"ØªØ§Ø±ÙØ® Ø§ÙØªØ³Ø¹Ùر","Pricing date"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:306",dir:"ltr",className:"text-left",type:"date",value:m.pricedAt,onChange:S=>h({...m,pricedAt:S.target.value})})}),s.jsx(ou,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:307",label:An(e,"ØµØ§ÙØ ØØªÙ","Valid until"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:307",dir:"ltr",className:"text-left",type:"date",value:m.validUntil,onChange:S=>h({...m,validUntil:S.target.value})})}),s.jsx(ou,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:308",label:An(e,"Ø§ÙØØ§ÙØ©","Status"),children:s.jsxs(qn,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:308",value:m.status,onValueChange:S=>h({...m,status:S,requiresReview:S==="active"?!1:m.requiresReview}
1566),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:308",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:308"})}),s.jsxs(Wn,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:308",children:[s.jsx(At,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:308",value:"draft",children:An(e,"Ù
Ø³ÙØ¯Ø©","Draft")}),s.jsx(At,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:308",value:"active",children:An(e,"Ù
عتÙ
د","Active")}),s.jsx(At,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:308",value:"inactive",children:An(e,"Ù
عطÙÙ","Inactive")})]})]})}),s.jsx(ou,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:309",label:An(e,"Ù
ÙØ§ØØ¸Ø§Øª Ø¹Ø±Ø¨ÙØ©","Arabic notes"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:309",dir:"rtl",className:"text-right",value:m.notesAr,onChange:S=>h({...m,notesAr:S.target.value})})}),s.jsx(ou,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:310",label:An(e,"Ù
ÙØ§ØØ¸Ø§Øª Ø¥ÙØ¬ÙÙØ²ÙØ©","English notes"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:310",dir:"ltr",className:"text-left",value:m.notesEn,onChange:S=>h({...m,notesEn:S.target.value})})}),s.jsxs("label",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:311",className:"flex min-h-11 items-center gap-3 rounded-xl border border-white/10 bg-white/[0.02] px-4 sm:col-span-2",children:[s.jsx("input",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:312",type:"checkbox",checked:m.requiresReview,onChange:S=>h({...m,requiresReview:S.target.checked,status:S.target.checked&&m.status==="active"?"draft":m.status}),className:"h-4 w-4 accent-cyan-400"}),s.jsx("span",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:313",className:"text-sm",children:An(e,"ÙØªØ·Ùب Ù
راجعة Ø§ÙØ£Ø¯Ù
Ù ÙØ¨Ù Ø§ÙØ§Ø³ØªØ®Ø¯Ø§Ù
","Requires admin review before use")})]})]}),s.jsxs(ei,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:316",children:[s.jsx(Ie,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:316",variant:"outline",onClick:()=>d(!1),children:An(e,"Ø¥ÙØºØ§Ø¡","Cancel")}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:316",onClick:E,disabled:b.isPending,children:[b.isPending?s.jsx(ft,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:316",className:"h-4 w-4 animate-spin"}):s.jsx(_d,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:316",className:"h-4 w-4"}),An(e,"ØÙظ Ø§ÙØ³Ø¬Ù","Save record")]})]})]})})]})}function HN({icon:e,value:t,label:n,tone:a="cyan"}){const r=a==="emerald"?"text-emerald-300 bg-emerald-300/10":a==="amber"?"text-amber-300 bg-amber-300/10":"text-cyan-300 bg-cyan-300/10";return s.jsxs("div",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:325",className:"rounded-2xl border border-white/8 bg-white/[0.025] p-4",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:325",className:`flex h-9 w-9 items-center justify-center rounded-xl ${r}`,children:s.jsx(e,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:325",className:"h-4 w-4"})}),s.jsx("p",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:325",className:"mt-3 text-2xl font-bold text-foreground",children:t}),s.jsx("p",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:325",className:"mt-1 text-xs text-muted-foreground",children:n})]})}function r0({children:e}){return s.jsx("th",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:327",className:"px-4 py-3 text-start font-semibold",children:e})}function i0({children:e}){return s.jsx("td",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:328",className:"px-4 py-4",children:e})}function ou({label:e,children:t}
1566){return s.jsxs("div",{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:329",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/FlightRoutePricingPanel.tsx:329",children:e}),t]})}const $t=(e,t,n)=>e==="ar"?t:n,VN={active:"true",defaultCurrency:"JOD",timezone:"Asia/Amman",airportType:"international",status:"draft",pricingBasis:"per_person",commissionType:"none",commissionValue:"0",markupType:"percent",markupValue:"15",taxAmount:"0",feeAmount:"0",minPax:"1",netCost:"0",publishedSellingPrice:"0"},oM={international:{ar:"دÙÙÙ",en:"International"},domestic:{ar:"داخÙÙ",en:"Domestic"},regional:{ar:"Ø¥ÙÙÙÙ
Ù",en:"Regional"},military:{ar:"Ø¹Ø³ÙØ±Ù",en:"Military"}},cM={draft:{ar:"Ù
Ø³ÙØ¯Ø©",en:"Draft"},active:{ar:"ÙØ´Ø·",en:"Active"},inactive:{ar:"Ù
عطÙÙ",en:"Inactive"},expired:{ar:"Ù
ÙØªÙÙ",en:"Expired"}},lM={Asia:{ar:"Ø¢Ø³ÙØ§",en:"Asia"},Africa:{ar:"Ø£ÙØ±ÙÙÙØ§",en:"Africa"},Europe:{ar:"Ø£ÙØ±Ùبا",en:"Europe"},"North America":{ar:"Ø£Ù
رÙÙØ§ Ø§ÙØ´Ù
اÙÙØ©",en:"North America"},"South America":{ar:"Ø£Ù
رÙÙØ§ Ø§ÙØ¬ÙÙØ¨ÙØ©",en:"South America"},Oceania:{ar:"Ø£ÙÙÙØ§ÙÙØ³Ùا",en:"Oceania"},Antarctica:{ar:"اÙÙØ§Ø±Ø© اÙÙØ·Ø¨ÙØ© Ø§ÙØ¬ÙÙØ¨ÙØ©",en:"Antarctica"}};function H1(e,t,n="JOD"){return new Intl.NumberFormat(t==="ar"?"ar-JO":"en-JO",{style:"currency",currency:n,maximumFractionDigits:2}).format(Number(e||0))}function Wve({lang:e,role:t}){const n=Pe.useUtils(),[a,r]=k.useState("countries"),[i,o]=k.useState(""),[c,l]=k.useState(!1),[d,m]=k.useState(VN),h=Pe.accounting.tourism.masterData.list.useQuery({includeInactive:!0}),x=Pe.accounting.tourism.referenceData.useQuery(),f=Pe.accounting.tourism.seasonPricing.list.useQuery(),b=async()=>{await Promise.all([n.accounting.tourism.masterData.list.invalidate(),n.accounting.tourism.referenceData.invalidate()])},y=async()=>n.accounting.tourism.seasonPricing.list.invalidate(),w=Pe.accounting.tourism.masterData.countries.create.useMutation({onSuccess:async()=>{await b(),te(),Le.success($t(e,"أضÙÙØª Ø§ÙØ¯ÙÙØ© Ø¥Ù٠اÙÙÙØ±Ø³","Country added to the master index"))},onError:ae=>Le.error(ae.message)}),T=Pe.accounting.tourism.masterData.countries.update.useMutation({onSuccess:b,onError:ae=>Le.error(ae.message)}),A=Pe.accounting.tourism.masterData.cities.create.useMutation({onSuccess:async()=>{await b(),te(),Le.success($t(e,"أضÙÙØª اÙÙ
دÙÙØ© Ø¥Ù٠اÙÙÙØ±Ø³","City added to the master index"))},onError:ae=>Le.error(ae.message)}),E=Pe.accounting.tourism.masterData.cities.update.useMutation({onSuccess:b,onError:ae=>Le.error(ae.message)}),D=Pe.accounting.tourism.masterData.airports.create.useMutation({onSuccess:async()=>{await b(),te(),Le.success($t(e,"أضÙ٠اÙÙ
طار Ø¥Ù٠اÙÙÙØ±Ø³","Airport added to the master index"))},onError:ae=>Le.error(ae.message)}),S=Pe.accounting.tourism.masterData.airports.update.useMutation({onSuccess:b,onError:ae=>Le.error(ae.message)}),R=Pe.accounting.tourism.seasonPricing.create.useMutation({onSuccess:async()=>{await y(),te(),Le.success($t(e,"ØÙÙØ¸ سعر اÙÙ
ÙØ³Ù
ÙÙ
Ø³ÙØ¯Ø© ÙØ§Ø¨ÙØ© ÙÙÙ
راجعة","Season price saved as a reviewable draft"))},onError:ae=>Le.error(ae.message)}),L=Pe.accounting.tourism.seasonPricing.update.useMutation({onSuccess:y,onError:ae=>Le.error(ae.message)}),I=h.data,F=I?.countries||[],_=I?.cities||[],U=I?.airports||[],O=I?.suppliers||[],W=x.data?.services||[],J=k.useMemo(()=>new Map(F.map(ae=>[ae.id,ae])),[F]),oe=k.useMemo(()=>new Map(_.map(ae=>[ae.id,ae])),[_]),G=k.useMemo(()=>new Map(O.map(ae=>[ae.id,ae])),[O]),K=k.useMemo(()=>new Map(W.map(ae=>[ae.id,ae])),[W]),ee=i.trim().toLowerCase(),pe=ae=>!ee||ae.some(le=>String(le||"").toLowerCase().includes(ee)),V=F.filter(ae=>pe([ae.isoCode,ae.iso3Code,ae.nameAr,ae.nameEn])),Y=_.filter(ae=>pe([ae.code,ae.nameAr,ae.nameEn,J.get(ae.countryId)?.nameEn])),z=U.filter(ae=>pe([ae.iataCode,ae.icaoCode,ae.nameAr,ae.nameEn,oe.get(ae.cityId)?.nameEn])),H=(f.data||[]).filter(ae=>pe([ae.priceCode,ae.seasonNameAr,ae.seasonNameEn,G.get(ae.supplierId)?.name])),ne=w.isPending||A.isPending||D.isPending||R.isPending;function te(){l(!1),m(VN)}function me(){m({...VN}),l(!0)}function fe(){if(a==="countries"){w.mutate({isoCode:d.isoCode||"",iso3Code:d.iso3Code||"",nameAr:d.nameAr||"",nameEn:d.nameEn||"",phoneCode:d.phoneCode||null,defaultCurrency:d.defaultCurrency||"JOD",continent:d.continent||null,active:!0,sortOrder:Number(d.sortOrder||0)});return}if(a==="cities"){A.mutate({countryId:Number(d.countryId),code:d.code||"",nameAr:d.nameAr||"",nameEn:d.nameEn||"",timezone:d.timezone||"Asia/Amman",latitude:d.latitude||null,longitude:d.longitude||null,active:!0,sortOrder:Number(d.sortOrder||0)});return}if(a==="airports"){D.mutate({countryId:Number(d.countryId),cityId:Number(d.cityId),iataCode:d.iataCode||"",icaoCode:d.icaoCode||null,nameAr:d.nameAr||"",nameEn:d.nameEn||"",airportType:d.airportType||"international",timezone:d.timezone||null,latitude:d.latitude||null,longitude:d.longitude||null,active:!0});return}R.mutate({priceCode:d.priceCode||`SEA-${Date.now().toString().slice(-7)}`,supplierId:Number(d.supplierId),serviceCategoryId:Number(d.serviceCategoryId),countryId:Number(d.countryId),cityId:Number(d.cityId),airportId:d.airportId?Number(d.airportId):null,
1566seasonNameAr:d.seasonNameAr||"",seasonNameEn:d.seasonNameEn||"",validFrom:d.validFrom||"",validTo:d.validTo||"",blackoutDates:[],pricingBasis:d.pricingBasis||"per_person",roomType:d.roomType||null,boardBasis:d.boardBasis||null,minPax:Number(d.minPax||1),maxPax:d.maxPax?Number(d.maxPax):null,netCost:Number(d.netCost||0),taxAmount:Number(d.taxAmount||0),feeAmount:Number(d.feeAmount||0),commissionType:d.commissionType||"none",commissionValue:d.commissionValue||"0",markupType:d.markupType||"percent",markupValue:d.markupValue||"0",publishedSellingPrice:Number(d.publishedSellingPrice||0),currency:d.defaultCurrency||"JOD",terms:d.terms||null,status:"draft"})}const Ae={countries:{icon:uh,ar:"Ø§ÙØ¯ÙÙ",en:"Countries",noteAr:"رÙ
ÙØ² ISO ÙØ§ÙعÙ
ÙØ§Øª ÙÙ
ÙØ§ØªÙØ Ø§ÙØ§ØªØµØ§Ù",noteEn:"ISO codes, currencies, and calling codes"},cities:{icon:mr,ar:"اÙÙ
دÙ",en:"Cities",noteAr:"اÙÙØ¬Ùات ÙØ§ÙÙ
ÙØ§Ø·Ù Ø§ÙØ²Ù
ÙÙØ© ÙØ§ÙÙ
ÙÙØ¹",noteEn:"Destinations, time zones, and location"},airports:{icon:Hs,ar:"اÙÙ
طارات",en:"Airports",noteAr:"IATA ÙICAO ÙØ§ÙÙ
دÙÙØ© Ø§ÙØªØ´ØºÙÙÙØ©",noteEn:"IATA, ICAO, and operational city"},pricing:{icon:lh,ar:"Ø§ÙØªØ³Ø¹Ùر اÙÙ
ÙØ³Ù
Ù",en:"Season Pricing",noteAr:"صاÙÙ Ø§ÙØªÙÙÙØ© ÙØ§Ùضرائب ÙØ§ÙÙØ§Ù
Ø´ ÙØ³Ø¹Ø± Ø§ÙØ¨Ùع",noteEn:"Net cost, tax, margin, and selling price"}},xe=Ae[a].icon;return s.jsxs("div",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:112",className:"space-y-6",dir:e==="ar"?"rtl":"ltr",children:[s.jsx(kn,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:113",className:"overflow-hidden border-cyan-300/15 bg-[radial-gradient(circle_at_top_right,rgba(34,211,238,0.15),transparent_48%)]",children:s.jsxs(Un,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:114",className:"grid gap-5 p-6 lg:grid-cols-[1fr_auto] lg:items-center",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:115",className:"flex items-start gap-4",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:115",className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-2xl bg-cyan-300/12 text-cyan-300",children:s.jsx(sa,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:115",className:"h-6 w-6"})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:115",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:115",className:"mb-2 flex flex-wrap gap-2",children:[s.jsx(Pn,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:115",variant:"secondary",children:$t(e,"Ø¨ÙØ§Ùات Ù
Ø±Ø¬Ø¹ÙØ© Ù
ØÙÙÙ
Ø©","Governed master data")}),s.jsx(Pn,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:115",variant:"outline",children:$t(e,"Ù
ÙØ«ÙÙ ÙÙ Ø³Ø¬Ù Ø§ÙØªØ¯ÙÙÙ","Audit logged")})]}),s.jsx("h2",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:115",className:"font-display text-2xl font-bold",children:$t(e,"Ù
Ø±ÙØ² اÙÙÙØ§Ø±Ø³ ÙØ§ÙØªØ³Ø¹ÙØ±","Master Data & Pricing Center")}),s.jsx("p",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:115",className:"mt-1 max-w-3xl text-sm leading-6 text-muted-foreground",children:$t(e,"إدارة Ù
ÙØÙØ¯Ø© ÙÙÙØ¬Ùات ÙØ§ÙÙ
طارات ÙØ£Ø³Ø¹Ø§Ø± اÙÙ
ÙØ§Ø³Ù
Ø Ù
ع تعطÙÙ Ù
ÙØ·ÙÙ ÙØ³Ø¬Ù تدÙÙÙ Ø¨Ø¯ÙØ§Ù Ù
Ù Ø§ÙØØ°Ù Ø§ÙÙ
باشر.","A unified destination, airport, and seasonal pricing register with soft deactivation and audit logging instead of destructive deletion.")})]})]}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:116",className:"h-11",onClick:me,children:[s.jsx(oa,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:116",className:"h-4 w-4"}),$t(e,"Ø¥Ø¶Ø§ÙØ© سجÙ","Add record")]})]})}),s.jsx(Jve,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:120",lang:e,role:t}),s.jsx("div",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:122",className:"grid gap-3 sm:grid-cols-2 xl:grid-cols-4",children:Object.keys(Ae).map(ae=>{const le=Ae[ae],ze=le.icon;
1566return s.jsxs("button",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:122",type:"button",onClick:()=>{r(ae),o("")},className:`rounded-2xl border p-4 text-start transition ${a===ae?"border-cyan-300/35 bg-cyan-300/10 text-cyan-100 shadow-lg shadow-cyan-950/20":"border-white/8 bg-white/[0.025] text-muted-foreground hover:border-cyan-300/20 hover:bg-white/[0.05]"}`,children:[s.jsx("span",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:122",className:"flex h-10 w-10 items-center justify-center rounded-xl bg-black/15 text-cyan-300",children:s.jsx(ze,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:122",className:"h-5 w-5"})}),s.jsx("p",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:122",className:"mt-3 font-semibold",children:$t(e,le.ar,le.en)}),s.jsx("p",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:122",className:"mt-1 text-xs leading-5 opacity-70",children:$t(e,le.noteAr,le.noteEn)})]},ae)})}),s.jsxs(kn,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:124",children:[s.jsx(Xr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:125",className:"border-b bg-muted/15",children:s.jsxs("div",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:125",className:"flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between",children:[s.jsxs(Qr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:125",className:"flex items-center gap-2",children:[s.jsx(xe,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:125",className:"h-5 w-5 text-cyan-300"}),$t(e,Ae[a].ar,Ae[a].en)]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:125",className:"relative w-full lg:w-80",children:[s.jsx(so,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:125",className:"absolute start-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:125",value:i,onChange:ae=>o(ae.target.value),className:"ps-9",placeholder:$t(e,"Ø¨ØØ« Ù٠اÙÙÙØ±Ø³","Search this register")})]})]})}),s.jsx(Un,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:126",className:"p-0",children:h.isLoading||x.isLoading||a==="pricing"&&f.isLoading?s.jsx("div",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:127",className:"flex justify-center py-20",children:s.jsx(ft,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:127",className:"h-7 w-7 animate-spin text-cyan-300"})}):s.jsxs("div",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:128",className:"overflow-x-auto",children:[a==="countries"&&s.jsxs("table",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:129",className:"w-full min-w-[760px] text-sm",children:[s.jsx("thead",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:129",children:s.jsxs("tr",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:129",children:[s.jsx(vr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:129",children:$t(e,"Ø§ÙØ¯ÙÙØ©","Country")}),s.jsx(vr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:129",children:"ISO"}),s.jsx(vr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:129",children:$t(e,"Ø§ÙØ¹Ù
ÙØ©","Currency")}),s.jsx(vr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:129",children:$t(e,"اÙÙØ§Ø±Ø©","Continent")}),s.jsx(vr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:129",children:$t(e,"Ø§ÙØØ§ÙØ©","Status")})]})}),s.jsx("tbody",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:129",children:V.map(ae=>s.jsxs("tr",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:129",className:"border-t",children:[s.jsxs(yr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:129",children:[s.jsx("strong",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:129",children:$t(e,ae.nameAr,ae.nameEn)}
1566),s.jsx("p",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:129",className:"text-xs text-muted-foreground",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:129",children:ae.phoneCode||"â"})})]}),s.jsx(yr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:129",children:s.jsx("code",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:129",dir:"ltr",children:s.jsxs("bdi",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:129",children:[ae.isoCode," / ",ae.iso3Code]})})}),s.jsx(yr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:129",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:129",dir:"ltr",children:ae.defaultCurrency})}),s.jsx(yr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:129",children:ae.continent?$t(e,lM[ae.continent]?.ar||ae.continent,lM[ae.continent]?.en||ae.continent):"â"}),s.jsx(yr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:129",children:s.jsx($N,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:129",active:ae.active,lang:e,onClick:()=>T.mutate({id:ae.id,data:{active:!ae.active}})})})]},ae.id))})]}),a==="cities"&&s.jsxs("table",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:130",className:"w-full min-w-[820px] text-sm",children:[s.jsx("thead",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:130",children:s.jsxs("tr",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:130",children:[s.jsx(vr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:130",children:$t(e,"اÙÙ
دÙÙØ©","City")}),s.jsx(vr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:130",children:$t(e,"Ø§ÙØ¯ÙÙØ©","Country")}),s.jsx(vr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:130",children:$t(e,"اÙÙ
ÙØ·ÙØ© Ø§ÙØ²Ù
ÙÙØ©","Time zone")}),s.jsx(vr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:130",children:$t(e,"Ø§ÙØ¥ØØ¯Ø§Ø«Ùات","Coordinates")}),s.jsx(vr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:130",children:$t(e,"Ø§ÙØØ§ÙØ©","Status")})]})}),s.jsx("tbody",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:130",children:Y.map(ae=>s.jsxs("tr",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:130",className:"border-t",children:[s.jsxs(yr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:130",children:[s.jsx("strong",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:130",children:$t(e,ae.nameAr,ae.nameEn)}),s.jsx("p",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:130",className:"font-mono text-xs text-muted-foreground",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:130",children:ae.code})})]}),s.jsx(yr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:130",children:$t(e,J.get(ae.countryId)?.nameAr||"â",J.get(ae.countryId)?.nameEn||"â")}),s.jsx(yr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:130",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:130",dir:"ltr",children:ae.timezone||"â"})}),s.jsx(yr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:130",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:130",dir:"ltr",children:ae.latitude&&ae.longitude?`${ae.latitude}, ${ae.longitude}`:"â"})}),s.jsx(yr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:130",children:s.jsx($N,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:130",active:ae.active,lang:e,onClick:()=>E.mutate({id:ae.id,data:{active:!ae.active}})})})]},ae.id))})]}),a==="airports"&&s.jsxs("table",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:131",className:"w-full min-w-[880px] text-sm",children:[s.jsx("thead",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:131",children:s.jsxs("tr",{"data-loc":"client/src/components/
1566accounting/ReferenceDataTab.tsx:131",children:[s.jsx(vr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:131",children:$t(e,"اÙÙ
طار","Airport")}),s.jsx(vr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:131",children:"IATA / ICAO"}),s.jsx(vr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:131",children:$t(e,"اÙÙ
دÙÙØ©","City")}),s.jsx(vr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:131",children:$t(e,"اÙÙÙØ¹","Type")}),s.jsx(vr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:131",children:$t(e,"Ø§ÙØØ§ÙØ©","Status")})]})}),s.jsx("tbody",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:131",children:z.map(ae=>s.jsxs("tr",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:131",className:"border-t",children:[s.jsx(yr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:131",children:s.jsx("strong",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:131",children:$t(e,ae.nameAr,ae.nameEn)})}),s.jsx(yr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:131",children:s.jsx("code",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:131",dir:"ltr",children:s.jsxs("bdi",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:131",children:[ae.iataCode," / ",ae.icaoCode||"â"]})})}),s.jsx(yr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:131",children:$t(e,oe.get(ae.cityId)?.nameAr||"â",oe.get(ae.cityId)?.nameEn||"â")}),s.jsx(yr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:131",children:s.jsx(Pn,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:131",variant:"outline",children:$t(e,oM[ae.airportType]?.ar||ae.airportType,oM[ae.airportType]?.en||ae.airportType)})}),s.jsx(yr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:131",children:s.jsx($N,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:131",active:ae.active,lang:e,onClick:()=>S.mutate({id:ae.id,data:{active:!ae.active}})})})]},ae.id))})]}),a==="pricing"&&s.jsxs("table",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",className:"w-full min-w-[1180px] text-sm",children:[s.jsx("thead",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",children:s.jsxs("tr",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",children:[s.jsx(vr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",children:$t(e,"اÙÙ
ÙØ³Ù
/ اÙÙ
ÙØ±Ø¯","Season / supplier")}),s.jsx(vr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",children:$t(e,"Ø§ÙØµÙاØÙØ©","Validity")}),s.jsx(vr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",children:$t(e,"صاÙÙ Ø§ÙØªÙÙÙØ©","Net cost")}),s.jsx(vr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",children:$t(e,"Ø¶Ø±ÙØ¨Ø© + رسÙÙ
","Tax + fees")}),s.jsx(vr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",children:$t(e,"اÙÙØ§Ù
Ø´","Markup")}),s.jsx(vr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",children:$t(e,"سعر Ø§ÙØ¨Ùع","Selling price")}),s.jsx(vr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",children:$t(e,"Ø§ÙØ±Ø¨Ø Ø§ÙØ¥Ø¬Ù
اÙÙ","Gross profit")}),s.jsx(vr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",children:$t(e,"Ø§ÙØØ§ÙØ©","Status")})]})}),s.jsx("tbody",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",children:H.map(ae=>{const le=Number(ae.publishedSellingPrice||0)-Number(ae.netCost||0)-Number(ae.taxAmount||0)-Number(ae.feeAmount||0);return s.jsxs("tr",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",className:"border-t align-top",children:[s.jsxs(yr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",children:[s.jsx("strong",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",children:$t(e,ae.seasonNameAr,ae.seasonNameEn)}
1566),s.jsxs("p",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",className:"mt-1 text-xs text-muted-foreground",children:[G.get(ae.supplierId)?.name||"â"," · ",$t(e,K.get(ae.serviceCategoryId)?.nameAr||"â",K.get(ae.serviceCategoryId)?.nameEn||"â")]}),s.jsx("code",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",className:"mt-1 block text-[11px]",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",children:ae.priceCode})})]}),s.jsxs(yr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",children:[s.jsx("bdi",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",dir:"ltr",children:ae.validFrom}),s.jsx("br",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132"}),s.jsx("bdi",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",dir:"ltr",children:ae.validTo})]}),s.jsx(yr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",children:H1(ae.netCost,e,ae.currency)})}),s.jsx(yr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",children:H1(Number(ae.taxAmount||0)+Number(ae.feeAmount||0),e,ae.currency)})}),s.jsx(yr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",children:ae.markupType==="percent"?new Intl.NumberFormat(e==="ar"?"ar-JO":"en-JO",{style:"percent",maximumFractionDigits:2}).format(Number(ae.markupValue||0)/100):H1(ae.markupValue,e,ae.currency)})}),s.jsx(yr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",className:"font-semibold text-cyan-200",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",children:H1(ae.publishedSellingPrice,e,ae.currency)})}),s.jsx(yr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",className:le>=0?"font-semibold text-emerald-300":"font-semibold text-rose-300",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",children:H1(le,e,ae.currency)})}),s.jsx(yr,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",children:s.jsx("button",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",type:"button",onClick:()=>L.mutate({id:ae.id,data:{status:ae.status==="active"?"inactive":"active"}}),children:s.jsx(Pn,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:132",variant:ae.status==="active"?"default":"outline",children:$t(e,cM[ae.status]?.ar||ae.status,cM[ae.status]?.en||ae.status)})})})]},ae.id)})})]})]})})]}),s.jsx(Ba,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:138",open:c,onOpenChange:ae=>ae?l(!0):te(),children:s.jsxs(Fa,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:139",className:"max-h-[92vh] max-w-4xl overflow-y-auto",dir:e==="ar"?"rtl":"ltr",children:[s.jsx(as,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:140",children:s.jsx(Ua,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:140",children:$t(e,`Ø¥Ø¶Ø§ÙØ© ${Ae[a].ar}`,`Add ${Ae[a].en}`)})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:141",className:"grid gap-4 py-2 sm:grid-cols-2",children:[a==="countries"&&s.jsxs(s.Fragment,{children:[s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:142",label:"ISO-2",children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:142",dir:"ltr",className:"text-left",value:d.isoCode||"",onChange:ae=>m({...d,isoCode:ae.target.value})})}),s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:142",label:"ISO-3",children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:142",dir:"ltr",className:"text-left",value:d.iso3Code||"",onChange:ae=>m({...d,iso3Code:ae.target.value})})}
1566),s.jsx(zN,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:142",form:d,setForm:m,lang:e}),s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:142",label:$t(e,"Ø§ÙØ¹Ù
ÙØ© Ø§ÙØ§ÙØªØ±Ø§Ø¶ÙØ©","Default currency"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:142",dir:"ltr",className:"text-left",value:d.defaultCurrency||"JOD",onChange:ae=>m({...d,defaultCurrency:ae.target.value})})}),s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:142",label:$t(e,"Ù
ÙØªØ§Ø Ø§ÙØ§ØªØµØ§Ù","Calling code"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:142",dir:"ltr",className:"text-left",value:d.phoneCode||"",onChange:ae=>m({...d,phoneCode:ae.target.value})})}),s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:142",label:$t(e,"اÙÙØ§Ø±Ø©","Continent"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:142",value:d.continent||"",onChange:ae=>m({...d,continent:ae.target.value})})})]}),a==="cities"&&s.jsxs(s.Fragment,{children:[s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:143",label:$t(e,"Ø§ÙØ¯ÙÙØ©","Country"),children:s.jsx(V1,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:143",value:d.countryId,onChange:ae=>m({...d,countryId:ae}),items:F,lang:e})}),s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:143",label:$t(e,"رÙ
ز اÙÙ
دÙÙØ©","City code"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:143",dir:"ltr",className:"text-left",value:d.code||"",onChange:ae=>m({...d,code:ae.target.value})})}),s.jsx(zN,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:143",form:d,setForm:m,lang:e}),s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:143",label:$t(e,"اÙÙ
ÙØ·ÙØ© Ø§ÙØ²Ù
ÙÙØ©","Time zone"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:143",dir:"ltr",className:"text-left",value:d.timezone||"",onChange:ae=>m({...d,timezone:ae.target.value})})}),s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:143",label:$t(e,"خط Ø§ÙØ¹Ø±Ø¶","Latitude"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:143",dir:"ltr",className:"text-left",value:d.latitude||"",onChange:ae=>m({...d,latitude:ae.target.value})})}),s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:143",label:$t(e,"خط Ø§ÙØ·ÙÙ","Longitude"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:143",dir:"ltr",className:"text-left",value:d.longitude||"",onChange:ae=>m({...d,longitude:ae.target.value})})})]}),a==="airports"&&s.jsxs(s.Fragment,{children:[s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:144",label:$t(e,"Ø§ÙØ¯ÙÙØ©","Country"),children:s.jsx(V1,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:144",value:d.countryId,onChange:ae=>m({...d,countryId:ae,cityId:""}),items:F,lang:e})}),s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:144",label:$t(e,"اÙÙ
دÙÙØ©","City"),children:s.jsx(V1,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:144",value:d.cityId,onChange:ae=>m({...d,cityId:ae}),items:_.filter(ae=>!d.countryId||ae.countryId===Number(d.countryId)),lang:e})}),s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:144",label:"IATA",children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:144",dir:"ltr",className:"text-left",value:d.iataCode||"",onChange:ae=>m({...d,iataCode:ae.target.value})})}),s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:144",label:"ICAO",children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:144",dir:"ltr",className:"text-left",value:d.icaoCode||"",onChange:ae=>m({...d,icaoCode:ae.target.value})})}
1566),s.jsx(zN,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:144",form:d,setForm:m,lang:e})]}),a==="pricing"&&s.jsxs(s.Fragment,{children:[s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:145",label:$t(e,"اÙÙ
ÙØ±Ø¯","Supplier"),children:s.jsx(C7,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:145",value:d.supplierId,onChange:ae=>m({...d,supplierId:ae}),items:O,label:ae=>ae.name})}),s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:145",label:$t(e,"ÙØ¦Ø© Ø§ÙØ®Ø¯Ù
Ø©","Service category"),children:s.jsx(C7,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:145",value:d.serviceCategoryId,onChange:ae=>m({...d,serviceCategoryId:ae}),items:W,label:ae=>$t(e,ae.nameAr,ae.nameEn)})}),s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:145",label:$t(e,"Ø§ÙØ¯ÙÙØ©","Country"),children:s.jsx(V1,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:145",value:d.countryId,onChange:ae=>m({...d,countryId:ae,cityId:""}),items:F,lang:e})}),s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:145",label:$t(e,"اÙÙ
دÙÙØ©","City"),children:s.jsx(V1,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:145",value:d.cityId,onChange:ae=>m({...d,cityId:ae}),items:_.filter(ae=>!d.countryId||ae.countryId===Number(d.countryId)),lang:e})}),s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:145",label:$t(e,"اسÙ
اÙÙ
ÙØ³Ù
Ø¨Ø§ÙØ¹Ø±Ø¨ÙØ©","Season name in Arabic"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:145",dir:"rtl",className:"text-right",value:d.seasonNameAr||"",onChange:ae=>m({...d,seasonNameAr:ae.target.value})})}),s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:145",label:$t(e,"اسÙ
اÙÙ
ÙØ³Ù
Ø¨Ø§ÙØ¥ÙجÙÙØ²ÙØ©","Season name in English"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:145",dir:"ltr",className:"text-left",value:d.seasonNameEn||"",onChange:ae=>m({...d,seasonNameEn:ae.target.value})})}),s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:145",label:$t(e,"Ù
Ù","Valid from"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:145",dir:"ltr",className:"text-left",type:"date",value:d.validFrom||"",onChange:ae=>m({...d,validFrom:ae.target.value})})}),s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:145",label:$t(e,"Ø¥ÙÙ","Valid to"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:145",dir:"ltr",className:"text-left",type:"date",value:d.validTo||"",onChange:ae=>m({...d,validTo:ae.target.value})})}),s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:145",label:$t(e,"صاÙÙ Ø§ÙØªÙÙÙØ©","Net cost"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:145",dir:"ltr",className:"text-left",type:"number",min:"0",value:d.netCost||"0",onChange:ae=>m({...d,netCost:ae.target.value})})}),s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:145",label:$t(e,"Ø§ÙØ¶Ø±Ùبة","Tax"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:145",dir:"ltr",className:"text-left",type:"number",min:"0",value:d.taxAmount||"0",onChange:ae=>m({...d,taxAmount:ae.target.value})})}),s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:145",label:$t(e,"Ø§ÙØ±Ø³ÙÙ
","Fees"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:145",dir:"ltr",className:"text-left",type:"number",min:"0",value:d.feeAmount||"0",onChange:ae=>m({...d,feeAmount:ae.target.value})})}),s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:145",label:$t(e,"ÙØ³Ø¨Ø© اÙÙØ§Ù
Ø´ %","Markup %"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:145",dir:"ltr",className:"text-left",type:"number",min:"0",value:d.markupValue||"0",onChange:ae=>m({...d,markupValue:ae.target.value})})}
1566),s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:145",label:$t(e,"سعر Ø§ÙØ¨Ùع اÙÙ
ÙØ´Ùر","Published selling price"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:145",dir:"ltr",className:"text-left",type:"number",min:"0",value:d.publishedSellingPrice||"0",onChange:ae=>m({...d,publishedSellingPrice:ae.target.value})})}),s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:145",label:$t(e,"Ø´Ø±ÙØ· Ø§ÙØ³Ø¹Ø±","Price terms"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:145",value:d.terms||"",onChange:ae=>m({...d,terms:ae.target.value})})})]})]}),s.jsxs(ei,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:147",children:[s.jsx(Ie,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:147",variant:"outline",onClick:te,children:$t(e,"Ø¥ÙØºØ§Ø¡","Cancel")}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:147",onClick:fe,disabled:ne,children:[ne&&s.jsx(ft,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:147",className:"h-4 w-4 animate-spin"}),$t(e,"ØÙظ Ø§ÙØ³Ø¬Ù","Save record")]})]})]})})]})}function vr({children:e}){return s.jsx("th",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:154",className:"bg-muted/35 px-4 py-3 text-start text-xs font-semibold text-muted-foreground",children:e})}function yr({children:e,className:t=""}){return s.jsx("td",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:155",className:`px-4 py-4 ${t}`,children:e})}function os({label:e,children:t}){return s.jsxs("div",{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:156",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:156",children:e}),t]})}function zN({form:e,setForm:t,lang:n}){return s.jsxs(s.Fragment,{children:[s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:157",label:$t(n,"Ø§ÙØ§Ø³Ù
Ø¨Ø§ÙØ¹Ø±Ø¨ÙØ©","Arabic name"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:157",dir:"rtl",className:"text-right",value:e.nameAr||"",onChange:a=>t({...e,nameAr:a.target.value})})}),s.jsx(os,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:157",label:$t(n,"Ø§ÙØ§Ø³Ù
Ø¨Ø§ÙØ¥ÙجÙÙØ²ÙØ©","English name"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:157",dir:"ltr",className:"text-left",value:e.nameEn||"",onChange:a=>t({...e,nameEn:a.target.value})})})]})}function V1({value:e,onChange:t,items:n,lang:a}){return s.jsx(C7,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:158",value:e,onChange:t,items:n,label:r=>$t(a,r.nameAr,r.nameEn)})}function C7({value:e,onChange:t,items:n,label:a}){return s.jsxs(qn,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:159",value:e||void 0,onValueChange:t,children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:159",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:159",placeholder:"â"})}),s.jsx(Wn,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:159",children:n.filter(r=>r.active!==!1).map(r=>s.jsx(At,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:159",value:String(r.id),children:a(r)},r.id))})]})}function $N({active:e,lang:t,onClick:n}){return s.jsx(Ie,{"data-loc":"client/src/components/accounting/ReferenceDataTab.tsx:160",type:"button",size:"sm",variant:e?"outline":"ghost",className:e?"border-emerald-400/25 text-emerald-300":"text-muted-foreground",onClick:n,children:e?$t(t,"ÙØ´Ø·","Active"):$t(t,"Ù
عطÙÙ","Inactive")})}const Qs=(e,t,n)=>e==="ar"?t:n,S7=(e,t)=>new Intl.NumberFormat(e==="ar"?"ar-JO":"en-JO").format(t||0),uM=(e,t)=>new Intl.NumberFormat(e==="ar"?"ar-JO":"en-JO",{style:"currency",currency:"JOD",maximumFractionDigits:2}).format(t||0);function Yve({lang:e}){const[t,n]=k.useState(""),[a,r]=k.useState(""),i={fromDate:t||null,toDate:a||null},{data:o,isLoading:c}=Pe.accounting.reports.profitLoss.useQuery(i),{data:l,isLoading:d}=Pe.accounting.reports.sales.useQuery(i),{data:m,isLoading:h}=Pe.accounting.reports.trialBalance.useQuery();
1566return s.jsxs("div",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:24",className:"space-y-6",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:25",className:"flex items-center justify-between",children:[s.jsx("h3",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:26",className:"font-display text-lg font-bold",children:Qs(e,"Ø§ÙØªÙØ§Ø±ÙØ± اÙÙ
اÙÙØ©","Financial Reports")}),s.jsxs("div",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:27",className:"flex items-center gap-2",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:28",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:28",className:"text-xs",children:Qs(e,"Ù
Ù ØªØ§Ø±ÙØ®","From")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:28",dir:"ltr",type:"date",value:t,onChange:x=>n(x.target.value),className:"w-36 text-left"})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:29",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:29",className:"text-xs",children:Qs(e,"Ø¥ÙÙ ØªØ§Ø±ÙØ®","To")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:29",dir:"ltr",type:"date",value:a,onChange:x=>r(x.target.value),className:"w-36 text-left"})]})]})]}),s.jsxs(kn,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:34",children:[s.jsx(Xr,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:35",children:s.jsxs(Qr,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:35",className:"flex items-center gap-2 text-base",children:[s.jsx(iA,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:35",className:"w-4 h-4 text-primary"}),Qs(e,"ÙØ§Ø¦Ù
Ø© Ø§ÙØ£Ø±Ø¨Ø§Ø ÙØ§Ùخسائر","Profit & Loss Statement")]})}),s.jsx(Un,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:36",children:c?s.jsx(ft,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:37",className:"w-5 h-5 animate-spin text-primary"}):o?s.jsxs("div",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:38",className:"space-y-2 text-sm",children:[s.jsx(cu,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:39",label:Qs(e,"Ø¥ÙØ±Ø§Ø¯Ø§Øª اÙÙ
Ø¨ÙØ¹Ø§Øª","Sales Revenue"),value:o.totalRevenue,lang:e}),s.jsx(cu,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:40",label:Qs(e,"تÙÙÙØ© Ø§ÙØ®Ø¯Ù
ات (Ù
ÙØ±Ø¯ÙÙ)","Cost of Services (Suppliers)"),value:-o.totalSupplierCosts,lang:e,isNegative:!0}),s.jsx("div",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:41",className:"border-t border-border pt-2",children:s.jsx(cu,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:41",label:Qs(e,"إجÙ
اÙÙ Ø§ÙØ±Ø¨Ø","Gross Profit"),value:o.grossProfit,lang:e,isBold:!0})}),s.jsx(cu,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:42",label:Qs(e,"اÙÙ
صارÙÙ Ø§ÙØªØ´ØºÙÙÙØ©","Operating Expenses"),value:-o.totalExpenses,lang:e,isNegative:!0}),s.jsx("div",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:43",className:"border-t border-border pt-2",children:s.jsx(cu,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:43",label:Qs(e,"صاÙÙ Ø§ÙØ±Ø¨Ø","Net Profit"),value:o.netProfit,lang:e,isBold:!0})})]}):s.jsx("p",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:45",className:"text-muted-foreground",children:Qs(e,"ÙØ§ ØªÙØ¬Ø¯ Ø¨ÙØ§Ùات","No data")})})]}),s.jsxs(kn,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:50",children:[s.jsx(Xr,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:51",children:s.jsxs(Qr,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:51",className:"flex items-center gap-2 text-base",children:[s.jsx(eA,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:51",className:"w-4 h-4 text-primary"}),Qs(e,"ØªÙØ±Ùر اÙÙ
Ø¨ÙØ¹Ø§Øª","Sales Report")]})}),s.jsx(Un,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:52",children:d?s.jsx(ft,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:53",className:"w-5 h-5 animate-spin text-primary"}
1566):l?s.jsxs("div",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:54",className:"space-y-2 text-sm",children:[s.jsx(cu,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:55",label:Qs(e,"عدد اÙÙÙØ§ØªÙر","Invoice Count"),value:l.invoiceCount,lang:e,isCount:!0}),s.jsx(cu,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:56",label:Qs(e,"إجÙ
اÙ٠اÙÙ
Ø¨ÙØ¹Ø§Øª","Total Sales"),value:l.totalSales,lang:e}),s.jsx(cu,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:57",label:Qs(e,"اÙÙ
ØØµÙÙ","Collected"),value:l.totalCollected,lang:e}),s.jsx(cu,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:58",label:Qs(e,"اÙÙ
ستØÙات","Outstanding"),value:l.totalOutstanding,lang:e}),s.jsx(cu,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:59",label:Qs(e,"Ù
Ø¨ÙØ¹Ø§Øª Ø§ÙØªØ°Ø§Ùر","Ticket Sales"),value:l.ticketSales,lang:e}),s.jsx(cu,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:60",label:Qs(e,"Ø±Ø¨Ø Ø§ÙØªØ°Ø§Ùر","Ticket Profit"),value:l.ticketProfit,lang:e})]}):s.jsx("p",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:62",className:"text-muted-foreground",children:Qs(e,"ÙØ§ ØªÙØ¬Ø¯ Ø¨ÙØ§Ùات","No data")})})]}),s.jsxs(kn,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:67",children:[s.jsx(Xr,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:68",children:s.jsxs(Qr,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:68",className:"flex items-center gap-2 text-base",children:[s.jsx(ji,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:68",className:"w-4 h-4 text-primary"}),Qs(e,"Ù
ÙØ²Ø§Ù اÙÙ
راجعة","Trial Balance")]})}),s.jsx(Un,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:69",children:h?s.jsx(ft,{"data-loc":"client/src/components/accounting/ReportsTab.tsx:70",className:"w-5 h-5 animate-spin text-primary"}):m?.length?s.jsx("div",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:71",className:"overflow-x-auto",children:s.jsxs("table",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:72",className:"w-full text-sm",children:[s.jsx("thead",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:73",className:"bg-muted/50",children:s.jsxs("tr",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:73",className:"text-start",children:[s.jsx("th",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:74",className:"px-3 py-2 font-medium",children:Qs(e,"رÙ
ز Ø§ÙØØ³Ø§Ø¨","Code")}),s.jsx("th",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:75",className:"px-3 py-2 font-medium",children:Qs(e,"اسÙ
Ø§ÙØØ³Ø§Ø¨","Account")}),s.jsx("th",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:76",className:"px-3 py-2 text-end font-medium",children:Qs(e,"Ù
دÙÙ","Debit")}),s.jsx("th",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:77",className:"px-3 py-2 text-end font-medium",children:Qs(e,"دائÙ","Credit")})]})}),s.jsx("tbody",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:79",children:m.map((x,f)=>s.jsxs("tr",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:81",className:"border-t border-border",children:[s.jsx("td",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:82",className:"px-3 py-2 font-mono text-xs",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:82",children:x.code})}),s.jsx("td",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:83",className:"px-3 py-2",children:Qs(e,x.nameAr||x.name,x.name)}),s.jsx("td",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:84",className:"px-3 py-2 text-end",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:84",children:x.debit?S7(e,x.debit):"â"})}),s.jsx("td",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:85",className:"px-3 py-2 text-end",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:85",children:x.credit?S7(e,x.credit):"â"})})]},f))})]})}
1566):s.jsx("p",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:91",className:"text-muted-foreground",children:Qs(e,"ÙØ§ ØªÙØ¬Ø¯ Ø¨ÙØ§Ùات","No data")})})]})]})}function cu({label:e,value:t,lang:n,isNegative:a,isBold:r,isCount:i}){return s.jsxs("div",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:100",className:`flex items-center justify-between ${r?"font-bold text-base":""}`,children:[s.jsx("span",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:101",className:r?"text-foreground":"text-muted-foreground",children:e}),s.jsx("span",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:102",className:`${r?"font-bold":"font-medium"} ${a?"text-red-600 dark:text-red-400":t>=0?"text-foreground":"text-red-600 dark:text-red-400"}`,dir:"auto",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/ReportsTab.tsx:103",children:i?S7(n,t):t<0?`(${uM(n,Math.abs(t))})`:uM(n,t)})})]})}const on=(e,t,n)=>e==="ar"?t:n,z1=(e,t)=>new Intl.NumberFormat(t==="ar"?"ar-JO":"en-JO").format(e||0),t5={hotel:{ar:"ÙÙØ¯Ù Ø£Ù Ø¥ÙØ§Ù
Ø©",en:"Hotel / accommodation"},airline:{ar:"Ø´Ø±ÙØ© Ø·ÙØ±Ø§Ù",en:"Airline"},tour_operator:{ar:"Ù
ÙØ¸Ù
جÙÙØ§Øª / DMC",en:"Tour operator / DMC"},transport:{ar:"ÙÙÙ Ø³ÙØ§ØÙ",en:"Tour transport"},guide:{ar:"Ù
رشد Ø³ÙØ§ØÙ",en:"Tour guide"},other:{ar:"خدÙ
ات أخرÙ",en:"Other services"}},dM={code:"",name:"",legalName:"",type:"hotel",phone:"",email:"",address:"",taxId:"",registrationNumber:"",licenseNumber:"",countryId:"",cityId:"",serviceTypes:[],contractStart:"",contractEnd:"",paymentTermsDays:0,currency:"JOD",bankName:"",accountName:"",iban:"",swift:"",taxRegistered:!1,taxRate:0,withholdingRate:0};function Xve({lang:e}){const t=Pe.useUtils(),n=Pe.accounting.suppliers.list.useQuery(),a=Pe.accounting.tourism.referenceData.useQuery(),[r,i]=k.useState(!1),[o,c]=k.useState(dM),[l,d]=k.useState(""),[m,h]=k.useState("all"),x=Pe.accounting.suppliers.create.useMutation({onSuccess:async()=>{await t.accounting.suppliers.list.invalidate(),Le.success(on(e,"ØÙÙØ¸ سج٠اÙÙ
ÙØ±Ø¯ ÙØ§ÙتزاÙ
اتÙ","Supplier and obligations saved")),i(!1),c(dM)},onError:_=>Le.error(_.message)}),f=a.data?.countries||[],b=a.data?.cities||[],y=a.data?.services||[],w=n.data||[],T=Number(o.countryId)||0,A=b.filter(_=>!T||_.countryId===T),E=new Map(f.map(_=>[_.id,_])),D=new Map(b.map(_=>[_.id,_])),S=new Map(y.map(_=>[_.code,_])),R=k.useMemo(()=>{const _=l.trim().toLowerCase();return w.filter(U=>(!_||[U.code,U.name,U.legalName,U.registrationNumber,U.phone,U.email].some(W=>String(W||"").toLowerCase().includes(_)))&&(m==="all"||U.type===m))},[w,l,m]),L=w.filter(_=>{if(!_.contractEnd)return!1;const U=(new Date(_.contractEnd).getTime()-Date.now())/864e5;return U>=0&&U<=60}).length,I=_=>{c(U=>({...U,serviceTypes:U.serviceTypes.includes(_)?U.serviceTypes.filter(O=>O!==_):[...U.serviceTypes,_]}))},F=()=>{if(!o.name.trim()||!o.countryId||!o.cityId||o.serviceTypes.length===0){Le.error(on(e,"Ø§ÙØ§Ø³Ù
ÙØ§ÙÙØ¬ÙØ© ÙØ®Ø¯Ù
Ø© ÙØ§ØØ¯Ø© عÙÙ Ø§ÙØ£ÙÙ ØÙÙÙ Ø¥ÙØ²Ø§Ù
ÙØ©.","Name, destination, and at least one service are required."));return}const _=f.find(U=>U.id===Number(o.countryId));x.mutate({code:o.code.trim()||`SUP-${Date.now().toString().slice(-8)}`,name:o.name.trim(),legalName:o.legalName.trim()||null,type:o.type,phone:o.phone.trim()||null,email:o.email.trim()||null,address:o.address.trim()||null,taxId:o.taxId.trim()||null,registrationNumber:o.registrationNumber.trim()||null,licenseNumber:o.licenseNumber.trim()||null,countryId:Number(o.countryId),cityId:Number(o.cityId),serviceTypes:o.serviceTypes,bankDetails:{bankName:o.bankName||void 0,accountName:o.accountName||void 0,iban:o.iban||void 0,swift:o.swift||void 0},taxSettings:{taxRegistered:o.taxRegistered,taxRate:o.taxRate,withholdingRate:o.withholdingRate,taxNumber:o.taxId||void 0},contractStart:o.contractStart||null,contractEnd:o.contractEnd||null,paymentTermsDays:o.paymentTermsDays,isJordanian:_?.isoCode==="JO",currency:o.currency})};return s.jsxs("div",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:160",className:"space-y-6",dir:e==="ar"?"rtl":"ltr",children:[s.jsx(kn,{"data-loc":"client/src/components/
1566accounting/SuppliersTab.tsx:161",className:"overflow-hidden border-primary/20 bg-[radial-gradient(circle_at_top_right,hsl(var(--primary)/0.16),transparent_50%)]",children:s.jsxs(Un,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:162",className:"grid gap-5 p-6 lg:grid-cols-[1fr_auto] lg:items-center",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:163",className:"flex items-start gap-4",children:[s.jsx("div",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:164",className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-2xl bg-primary text-primary-foreground shadow-lg shadow-primary/20",children:s.jsx(Im,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:164",className:"h-6 w-6"})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:165",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:165",className:"mb-2 flex flex-wrap gap-2",children:[s.jsx(Pn,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:165",variant:"secondary",children:on(e,"Ø§ÙØ³Ø¬Ù Ø§ÙØ±Ø¦Ùس٠ÙÙÙ
ÙØ±Ø¯ÙÙ","Supplier master")}),s.jsx(Pn,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:165",variant:"outline",children:on(e,"Ø±ÙØ§Ø¨Ø© Ø§ÙØ¹ÙÙØ¯","Contract control")})]}),s.jsx("h2",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:165",className:"font-display text-2xl font-bold",children:on(e,"سج٠اÙÙ
ÙØ±Ø¯ÙÙ ÙØ§ÙØªØ¹Ø§ÙØ¯Ø§Øª","Supplier & contracting register")}),s.jsx("p",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:165",className:"mt-1 max-w-3xl text-sm leading-6 text-muted-foreground",children:on(e,"ÙÙØ±Ø³ Ù
ÙØÙØ¯ ÙÙÙÙÙØ© اÙÙØ§ÙÙÙÙØ©Ø اÙÙØ¬ÙØ§ØªØ Ø§ÙØ®Ø¯Ù
Ø§ØªØ Ø§ÙØ¹ÙÙØ¯Ø Ø§ÙØ¶Ø±Ø§Ø¦Ø¨Ø Ø§ÙØ¨ÙÙ ÙØ´Ø±ÙØ· Ø§ÙØ¯ÙØ¹Ø ÙÙØ³ Ù
جرد ÙØ§Ø¦Ù
Ø© Ø£Ø±ÙØ§Ù
ÙØ§ØªÙ.","A governed master for legal identity, destinations, services, contracts, tax, banking and payment termsânot just a contact list.")})]})]}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:167",className:"h-11",onClick:()=>i(!0),children:[s.jsx(oa,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:167",className:"h-4 w-4"}),on(e,"تسجÙÙ Ù
ÙØ±Ø¯","Register supplier")]})]})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:171",className:"grid gap-4 sm:grid-cols-2 xl:grid-cols-4",children:[s.jsx(n5,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:172",icon:s.jsx(Im,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:172",className:"h-5 w-5"}),label:on(e,"إجÙ
اÙ٠اÙÙ
ÙØ±Ø¯ÙÙ","Total suppliers"),value:z1(w.length,e)}),s.jsx(n5,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:173",icon:s.jsx(mr,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:173",className:"h-5 w-5"}),label:on(e,"Ù
ÙØ±Ø¯Ù٠أردÙÙÙÙ","Jordanian suppliers"),value:z1(w.filter(_=>_.isJordanian).length,e)}),s.jsx(n5,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:174",icon:s.jsx(sx,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:174",className:"h-5 w-5"}),label:on(e,"عÙÙØ¯ ØªÙØªÙÙ Ø®ÙØ§Ù 60 ÙÙÙ
اÙ","Contracts expiring in 60 days"),value:z1(L,e),tone:L?"warning":void 0}),s.jsx(n5,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:175",icon:s.jsx(sa,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:175",className:"h-5 w-5"}),label:on(e,"Ø³Ø¬ÙØ§Øª ÙØ´Ø·Ø©","Active records"),value:z1(w.filter(_=>_.active).length,e)})]}),s.jsxs(kn,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:178",children:[s.jsx(Xr,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:179",className:"border-b bg-muted/20",children:s.jsxs("div",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:179",className:"flex flex-col gap-3 lg:flex-row lg:items-center lg:justify-between",children:[s.jsxs(Qr,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:179",className:"flex items-center gap-2 font-display",children:[s.jsx(_d,{"data-loc":"client/src/components/
1566accounting/SuppliersTab.tsx:179",className:"h-5 w-5 text-primary"}),on(e,"اÙÙÙØ±Ø³ Ø§ÙØªØ¹Ø§ÙدÙ","Contract index")]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:179",className:"flex flex-col gap-2 sm:flex-row",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:179",className:"relative",children:[s.jsx(so,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:179",className:`absolute top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground ${e==="ar"?"right-3":"left-3"}`}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:179",className:e==="ar"?"pr-9":"pl-9",value:l,onChange:_=>d(_.target.value),placeholder:on(e,"Ø¨ØØ« Ø¨Ø§ÙØ§Ø³Ù
Ø£Ù Ø§ÙØ±Ù
ز Ø£Ù Ø§ÙØªØ³Ø¬ÙÙ","Search name, code or registration")})]}),s.jsxs(qn,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:179",value:m,onValueChange:h,children:[s.jsxs(Jn,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:179",className:"sm:w-48",children:[s.jsx(eie,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:179",className:"h-4 w-4"}),s.jsx(Gn,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:179"})]}),s.jsxs(Wn,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:179",children:[s.jsx(At,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:179",value:"all",children:on(e,"ÙÙ Ø§ÙØ£ÙÙØ§Ø¹","All types")}),Object.entries(t5).map(([_,U])=>s.jsx(At,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:179",value:_,children:on(e,U.ar,U.en)},_))]})]})]})]})}),s.jsx(Un,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:180",className:"p-0",children:n.isLoading||a.isLoading?s.jsx("div",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:181",className:"flex justify-center py-20",children:s.jsx(ft,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:181",className:"h-7 w-7 animate-spin text-primary"})}):R.length?s.jsx("div",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:182",className:"overflow-x-auto",children:s.jsxs("table",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:182",className:"w-full min-w-[980px] text-sm",children:[s.jsx("thead",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:182",className:"bg-muted/40 text-muted-foreground",children:s.jsxs("tr",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:182",children:[s.jsx("th",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:182",className:"px-4 py-3 text-start font-medium",children:on(e,"اÙÙ
ÙØ±Ø¯","Supplier")}),s.jsx("th",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:182",className:"px-4 py-3 text-start font-medium",children:on(e,"Ø§ÙØªØ®ØµØµ","Specialization")}),s.jsx("th",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:182",className:"px-4 py-3 text-start font-medium",children:on(e,"اÙÙØ¬ÙØ©","Destination")}),s.jsx("th",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:182",className:"px-4 py-3 text-start font-medium",children:on(e,"Ø§ÙØ¹Ùد","Contract")}),s.jsx("th",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:182",className:"px-4 py-3 text-start font-medium",children:on(e,"Ø§ÙØ¯Ùع","Payment")}),s.jsx("th",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:182",className:"px-4 py-3 text-start font-medium",children:on(e,"Ø§ÙØ§Ù
تثاÙ","Compliance")})]})}),s.jsx("tbody",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:182",children:R.map(_=>{const U=E.get(_.countryId),O=D.get(_.cityId),W=t5[_.type]||t5.other,J=_.contractEnd&&new Date(_.contractEnd).getTime()<Date.now();return s.jsxs("tr",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",className:"border-t align-top transition-colors hover:bg-muted/25",children:[s.jsx("td",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",className:"px-4 py-4",children:s.jsxs("div",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",className:"flex gap-3",children:[s.jsx("div",{"data-loc":"client/src/components/
1566accounting/SuppliersTab.tsx:187",className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-primary/10 text-primary",children:s.jsx(Im,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",className:"h-4 w-4"})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",className:"font-semibold",dir:"auto",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",children:_.name})}),s.jsx("p",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",className:"mt-0.5 font-mono text-[11px] text-muted-foreground",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",children:_.code})}),s.jsx("p",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",className:"mt-1 text-xs text-muted-foreground",dir:"auto",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",children:_.registrationNumber||_.legalName||"â"})})]})]})}),s.jsxs("td",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",className:"px-4 py-4",children:[s.jsx(Pn,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",variant:"outline",children:on(e,W.ar,W.en)}),s.jsx("div",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",className:"mt-2 flex max-w-64 flex-wrap gap-1",children:(_.serviceTypes||[]).slice(0,3).map(oe=>{const G=S.get(oe);return s.jsx("span",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",className:"rounded bg-muted px-1.5 py-0.5 text-[10px]",children:G?on(e,G.nameAr,G.nameEn):oe},oe)})})]}),s.jsxs("td",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",className:"px-4 py-4",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",className:"font-medium",children:O?on(e,O.nameAr,O.nameEn):"â"}),s.jsx("p",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",className:"mt-1 text-xs text-muted-foreground",children:U?on(e,U.nameAr,U.nameEn):"â"})]}),s.jsxs("td",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",className:"px-4 py-4",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",className:`font-medium ${J?"text-destructive":""}`,children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",dir:_.contractEnd?"ltr":void 0,children:_.contractEnd||on(e,"ØºÙØ± Ù
ØØ¯Ø¯","Not set")})}),s.jsx("p",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",className:"mt-1 text-xs text-muted-foreground",children:_.contractStart?s.jsxs(s.Fragment,{children:[on(e,"Ù
Ù","From")," ",s.jsx("bdi",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",dir:"ltr",children:_.contractStart})]}):"â"})]}),s.jsxs("td",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",className:"px-4 py-4",children:[s.jsxs("p",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",className:"font-semibold tabular-nums",children:[s.jsx("bdi",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",children:z1(_.paymentTermsDays,e)})," ",on(e,"ÙÙÙ
","days")]}),s.jsx("p",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",className:"mt-1 text-xs text-muted-foreground",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",children:_.currency})})]}),s.jsx("td",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",className:"px-4 py-4",children:s.jsxs("div",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",className:"flex flex-wrap gap-1",children:[s.jsx(Pn,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",variant:_.taxId?"secondary":"outline",children:_.taxId?on(e,"Ø¶Ø±ÙØ¨Ù","Tax record"):on(e,"Ø¶Ø±ÙØ¨Ø© ÙØ§Ùصة","Tax missing")}),_.isJordanian&&s.jsx(Pn,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:187",className:"bg-emerald-600",children:"JO"})]})})]},_.id)})})]})}
1566):s.jsxs("div",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:189",className:"py-16 text-center",children:[s.jsx(Im,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:189",className:"mx-auto h-10 w-10 text-muted-foreground/40"}),s.jsx("p",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:189",className:"mt-3 text-sm text-muted-foreground",children:on(e,"ÙØ§ ØªÙØ¬Ø¯ Ø³Ø¬ÙØ§Øª ØªØ·Ø§Ø¨Ù Ø§ÙØ¨ØØ«.","No records match the current search.")})]})})]}),s.jsx(Ba,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:193",open:r,onOpenChange:i,children:s.jsxs(Fa,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:194",className:"max-h-[92vh] max-w-5xl overflow-y-auto",children:[s.jsx(as,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:195",children:s.jsx(Ua,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:195",className:"font-display text-xl",children:on(e,"تسجÙÙ Ù
ÙØ±Ø¯ ÙØªØ¹Ø§Ùد","Register supplier & contract")})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:196",className:"space-y-6 py-2",children:[s.jsxs(a5,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:197",icon:s.jsx(Im,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:197",className:"h-4 w-4"}),title:on(e,"اÙÙÙÙØ© اÙÙØ§ÙÙÙÙØ© ÙØ§ÙØªÙØ§ØµÙ","Legal identity & contact"),children:[s.jsx(Ir,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:198",label:on(e,"Ø§ÙØ§Ø³Ù
Ø§ÙØªØ¬Ø§Ø±Ù *","Trading name *"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:198",value:o.name,onChange:_=>c({...o,name:_.target.value})})}),s.jsx(Ir,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:199",label:on(e,"Ø§ÙØ§Ø³Ù
اÙÙØ§ÙÙÙÙ","Legal name"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:199",value:o.legalName,onChange:_=>c({...o,legalName:_.target.value})})}),s.jsx(Ir,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:200",label:on(e,"رÙ
ز اÙÙ
ÙØ±Ø¯","Supplier code"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:200",dir:"ltr",className:"text-left",value:o.code,onChange:_=>c({...o,code:_.target.value}),placeholder:on(e,"ÙÙÙØ´Ø£ تÙÙØ§Ø¦ÙØ§Ù Ø¹ÙØ¯ ترÙÙ ÙØ§Ø±ØºØ§Ù","Auto-generated when blank")})}),s.jsx(Ir,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:201",label:on(e,"ÙÙØ¹ اÙÙ
ÙØ±Ø¯","Supplier type"),children:s.jsxs(qn,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:201",value:o.type,onValueChange:_=>c({...o,type:_}),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:201",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:201"})}),s.jsx(Wn,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:201",children:Object.entries(t5).map(([_,U])=>s.jsx(At,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:201",value:_,children:on(e,U.ar,U.en)},_))})]})}),s.jsx(Ir,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:202",label:on(e,"رÙÙ
Ø§ÙØªØ³Ø¬ÙÙ","Registration no."),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:202",dir:"ltr",className:"text-left",value:o.registrationNumber,onChange:_=>c({...o,registrationNumber:_.target.value})})}),s.jsx(Ir,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:203",label:on(e,"رÙÙ
Ø§ÙØªØ±Ø®Ùص","Licence no."),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:203",dir:"ltr",className:"text-left",value:o.licenseNumber,onChange:_=>c({...o,licenseNumber:_.target.value})})}),s.jsx(Ir,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:204",label:on(e,"اÙÙØ§ØªÙ","Phone"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:204",dir:"ltr",className:"text-left",value:o.phone,onChange:_=>c({...o,phone:_.target.value})})}),s.jsx(Ir,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:205",label:on(e,"Ø§ÙØ¨Ø±Ùد","Email"),children:s.jsx(Ee,{"data-loc":"client/src/components/
1566accounting/SuppliersTab.tsx:205",dir:"ltr",className:"text-left",type:"email",value:o.email,onChange:_=>c({...o,email:_.target.value})})}),s.jsx("div",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:206",className:"sm:col-span-2",children:s.jsx(Ir,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:206",label:on(e,"Ø§ÙØ¹ÙÙØ§Ù","Address"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:206",value:o.address,onChange:_=>c({...o,address:_.target.value})})})})]}),s.jsxs(a5,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:209",icon:s.jsx(mr,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:209",className:"h-4 w-4"}),title:on(e,"Ø§ÙØªØºØ·ÙØ© ÙØ§ÙخدÙ
ات","Coverage & services"),children:[s.jsx(Ir,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:210",label:on(e,"Ø§ÙØ¯ÙÙØ© *","Country *"),children:s.jsxs(qn,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:210",value:o.countryId,onValueChange:_=>c({...o,countryId:_,cityId:""}),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:210",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:210",placeholder:on(e,"اختر Ø§ÙØ¯ÙÙØ©","Select country")})}),s.jsx(Wn,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:210",children:f.map(_=>s.jsx(At,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:210",value:String(_.id),children:on(e,_.nameAr,_.nameEn)},_.id))})]})}),s.jsx(Ir,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:211",label:on(e,"اÙÙ
دÙÙØ© *","City *"),children:s.jsxs(qn,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:211",value:o.cityId,onValueChange:_=>c({...o,cityId:_}),disabled:!o.countryId,children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:211",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:211",placeholder:on(e,"اختر اÙÙ
دÙÙØ©","Select city")})}),s.jsx(Wn,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:211",children:A.map(_=>s.jsx(At,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:211",value:String(_.id),children:on(e,_.nameAr,_.nameEn)},_.id))})]})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:212",className:"sm:col-span-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:212",children:on(e,"Ø§ÙØ®Ø¯Ù
ات اÙÙ
عتÙ
دة *","Approved services *")}),s.jsx("div",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:212",className:"mt-2 flex flex-wrap gap-2",children:y.map(_=>s.jsxs(Ie,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:212",type:"button",size:"sm",variant:o.serviceTypes.includes(_.code)?"default":"outline",onClick:()=>I(_.code),children:[o.serviceTypes.includes(_.code)&&s.jsx(yu,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:212",className:"h-4 w-4"}),on(e,_.nameAr,_.nameEn)]},_.id))})]})]}),s.jsxs(a5,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:215",icon:s.jsx(sx,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:215",className:"h-4 w-4"}),title:on(e,"Ø§ÙØ¹Ùد ÙØ´Ø±ÙØ· Ø§ÙØ³Ø¯Ø§Ø¯","Contract & settlement terms"),children:[s.jsx(Ir,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:216",label:on(e,"Ø¨Ø¯Ø§ÙØ© Ø§ÙØ¹Ùد","Contract start"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:216",dir:"ltr",className:"text-left",type:"date",value:o.contractStart,onChange:_=>c({...o,contractStart:_.target.value})})}),s.jsx(Ir,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:217",label:on(e,"ÙÙØ§ÙØ© Ø§ÙØ¹Ùد","Contract end"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:217",dir:"ltr",className:"text-left",type:"date",value:o.contractEnd,onChange:_=>c({...o,contractEnd:_.target.value})})}),s.jsx(Ir,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:218",label:on(e,"Ø£Ø¬Ù Ø§ÙØ¯Ùع Ø¨Ø§ÙØ£ÙاÙ
","Payment terms (days)"),children:s.jsx(Ee,{"data-loc":"client/src/components/
1566accounting/SuppliersTab.tsx:218",dir:"ltr",className:"text-left",type:"number",min:0,max:365,value:o.paymentTermsDays,onChange:_=>c({...o,paymentTermsDays:Math.max(0,Number(_.target.value)||0)})})}),s.jsx(Ir,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:219",label:on(e,"عÙ
ÙØ© Ø§ÙØ¹Ùد","Contract currency"),children:s.jsxs(qn,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:219",value:o.currency,onValueChange:_=>c({...o,currency:_}),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:219",dir:"ltr",className:"text-left",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:219"})}),s.jsx(Wn,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:219",dir:"ltr",children:["JOD","USD","EUR","SAR","AED","TRY"].map(_=>s.jsx(At,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:219",value:_,children:_},_))})]})})]}),s.jsxs(a5,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:222",icon:s.jsx(B4,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:222",className:"h-4 w-4"}),title:on(e,"Ø§ÙØ¨ÙÙ ÙØ§ÙØ¶Ø±ÙØ¨Ø©","Banking & tax"),children:[s.jsx(Ir,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:223",label:on(e,"اسÙ
Ø§ÙØ¨ÙÙ","Bank name"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:223",value:o.bankName,onChange:_=>c({...o,bankName:_.target.value})})}),s.jsx(Ir,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:224",label:on(e,"اسÙ
Ø§ÙØØ³Ø§Ø¨","Account name"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:224",value:o.accountName,onChange:_=>c({...o,accountName:_.target.value})})}),s.jsx(Ir,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:225",label:"IBAN",children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:225",dir:"ltr",className:"text-left",value:o.iban,onChange:_=>c({...o,iban:_.target.value})})}),s.jsx(Ir,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:226",label:"SWIFT",children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:226",dir:"ltr",className:"text-left",value:o.swift,onChange:_=>c({...o,swift:_.target.value})})}),s.jsx(Ir,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:227",label:on(e,"Ø§ÙØ±ÙÙ
Ø§ÙØ¶Ø±ÙبÙ","Tax number"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:227",dir:"ltr",className:"text-left",value:o.taxId,onChange:_=>c({...o,taxId:_.target.value})})}),s.jsx(Ir,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:228",label:on(e,"ÙØ³Ø¨Ø© Ø§ÙØ¶Ø±Ùبة %","Tax rate %"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:228",dir:"ltr",className:"text-left",type:"number",min:0,max:100,value:o.taxRate,onChange:_=>c({...o,taxRate:Number(_.target.value)||0})})}),s.jsx(Ir,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:229",label:on(e,"Ø§Ø³ØªÙØ·Ø§Ø¹ %","Withholding %"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:229",dir:"ltr",className:"text-left",type:"number",min:0,max:100,value:o.withholdingRate,onChange:_=>c({...o,withholdingRate:Number(_.target.value)||0})})}),s.jsxs("label",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:230",className:"flex h-10 cursor-pointer items-center gap-3 self-end rounded-md border px-3 text-sm",children:[s.jsx("input",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:230",type:"checkbox",checked:o.taxRegistered,onChange:_=>c({...o,taxRegistered:_.target.checked})}),on(e,"Ù
Ø³Ø¬Ù Ø¶Ø±ÙØ¨ÙاÙ","Tax registered")]})]})]}),s.jsxs(ei,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:233",children:[s.jsx(Ie,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:233",variant:"outline",onClick:()=>i(!1),children:on(e,"Ø¥ÙØºØ§Ø¡","Cancel")}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:233",onClick:F,disabled:x.isPending,children:[x.isPending?s.jsx(ft,{"data-loc":"client/src/components/
1566accounting/SuppliersTab.tsx:233",className:"h-4 w-4 animate-spin"}):s.jsx(_d,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:233",className:"h-4 w-4"}),on(e,"ØÙظ Ø§ÙØ³Ø¬Ù","Save record")]})]})]})})]})}function n5({icon:e,label:t,value:n,tone:a}){return s.jsx(kn,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:241",children:s.jsxs(Un,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:241",className:"flex items-center gap-4 p-4",children:[s.jsx("div",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:241",className:`flex h-10 w-10 items-center justify-center rounded-xl ${a==="warning"?"bg-amber-500/10 text-amber-600":"bg-primary/10 text-primary"}`,children:e}),s.jsxs("div",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:241",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:241",className:"text-xs text-muted-foreground",children:t}),s.jsx("p",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:241",className:"mt-1 text-xl font-bold tabular-nums",dir:"auto",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:241",children:n})})]})]})})}function a5({icon:e,title:t,children:n}){return s.jsxs("section",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:245",className:"rounded-2xl border bg-muted/10 p-4",children:[s.jsxs("h3",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:245",className:"mb-4 flex items-center gap-2 font-semibold text-primary",children:[e,t]}),s.jsx("div",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:245",className:"grid gap-4 sm:grid-cols-2",children:n})]})}function Ir({label:e,children:t}){return s.jsxs("div",{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:249",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/SuppliersTab.tsx:249",children:e}),t]})}const Qve={title:{ar:"Ø§ÙØ¹ÙÙØ§Ù Ø§ÙØ«ÙائÙ",en:"Bilingual title"},destination:{ar:"اÙÙØ¬ÙØ©",en:"Destination"},summary:{ar:"اÙÙ
ÙØ®Øµ",en:"Summary"},description:{ar:"اÙÙØµÙ",en:"Description"},image:{ar:"ØµÙØ±Ø© Ø§ÙØºÙاÙ",en:"Cover image"},duration:{ar:"اÙÙ
دة",en:"Duration"},price:{ar:"سعر Ø§ÙØ¨Ùع",en:"Selling price"},validity:{ar:"Ø§ÙØµÙاØÙØ© ÙØ§ÙØØ¬Ø²",en:"Validity and booking"},itinerary:{ar:"خط Ø§ÙØ³Ùر",en:"Itinerary"},inclusions:{ar:"Ø§ÙØ®Ø¯Ù
ات اÙÙ
Ø´Ù
ÙÙØ©",en:"Inclusions"},hotel:{ar:"اÙÙÙØ¯Ù",en:"Hotel"},ticket_details:{ar:"ØªÙØ§ØµÙÙ Ø§ÙØªØ°Ùرة",en:"Ticket details"}};function Bt(e,t,n){return e==="ar"?t:n}function Wp(e,t,n){return e==="ar"?t||n||"â":n||t||"â"}function s5(e,t,n){const a=(t||"JOD").toUpperCase();try{return new Intl.NumberFormat(n==="ar"?"ar-JO":"en-JO",{style:"currency",currency:a,maximumFractionDigits:0}).format(Number(e||0))}catch{return`${Number(e||0).toLocaleString(n==="ar"?"ar-JO":"en-JO")} ${a}`}}function Kve(e,t){if(!e)return"â";const n=new Date(e);return Number.isNaN(n.getTime())?e:new Intl.DateTimeFormat(t==="ar"?"ar-JO":"en-GB",{day:"numeric",month:"short",year:"numeric"}).format(n)}function Zve(e,t){return Wp(t,String(e.nameAr||e.hotelAr||""),String(e.nameEn||e.hotelEn||e.name||""))}function eye(e){const t=String(e.ratingStars||e.stars||e.starRating||""),n=Number.parseInt(t,10);return Number.isFinite(n)&&n>0?Math.min(5,Math.max(1,Math.round(n))):Math.min(5,(t.match(/\*/g)||[]).length)}function qN(e,t,n,a,r){const i=String(e[n]||"").trim(),o=String(e[a]||e[r||""]||"").trim();return t==="ar"?i||o:o||i}function tye(e,t){const n=String(e.rateCurrency||"").trim();return[[Bt(t,"Ù
Ø²Ø¯ÙØ¬Ø©/Ø«ÙØ§Ø«ÙØ©","Double / triple"),e.doubleOrTripleRoomRate],[Bt(t,"Ù
Ø²Ø¯ÙØ¬Ø©","Double"),e.doubleRoomRate],[Bt(t,"Ù
ÙØ±Ø¯Ø©","Single"),e.singleRoomRate],[Bt(t,"Ø·ÙÙ 2â6","Child 2â6"),e.childRate2to6],[Bt(t,"Ø·ÙÙ 6â11","Child 6â11"),e.childRate6to11]].map(([r,i])=>({label:r,value:String(i||"").trim()})).filter(r=>r.value).map(r=>({...r,value:/[A-Za-zØ£-Ù]/.test(r.value)||!n?r.value:`${r.value} ${n}`}))}function r5(e,t){return Array.isArray(e)?e.map(n=>{if(typeof n=="string")return n.trim();if(!n||typeof n!="object")return"";const a=n;return Wp(t,String(a.ar||a.titleAr||a.nameAr||a.serviceAr||""),String(a.en||a.titleEn||a.nameEn||a.serviceEn||""))}).filter(n=>n&&n!=="â"):[]}function mM(e,t){const n=String(t||"family").trim().toLowerCase(),a={family:{ar:"Ø¹Ø§Ø¦ÙØ§Øª",en:"Family"},leisure:{ar:"ترÙÙÙ",en:"Leisure"},honeymoon:{ar:"Ø´ÙØ± عسÙ",en:"Honeymoon"},business:{ar:"أعÙ
اÙ",en:"Business"},corporate:{ar:"Ø´Ø±ÙØ§Øª",en:"Corporate"},mice:{ar:"اجتÙ
اعات ÙÙØ¹Ø§ÙÙØ§Øª",en:"MICE"},medical:{ar:"Ø¹ÙØ§Ø¬Ù",en:"Medical"},religious:{ar:"دÙÙÙ",en:"Religious"},umrah:{ar:"عÙ
رة",en:"Umrah"},adventure:{ar:"Ù
غاÙ
رات",en:"Adventure"},education:{ar:"تعÙÙÙ
Ù",en:"Educational"},inbound:{ar:"ÙØ§Ùد",en:"Inbound"},outbound:{ar:"صادر",en:"Outbound"}};return a[n]?Bt(e,a[n].ar,a[n].en):t||Bt(e,"ØºÙØ± Ù
صÙÙ","Unclassified")}function nye({lang:e,role:t,onStartBooking:n}){const[a]=k.useState(()=>Z$(typeof window>"u"?null:window.sessionStorage.getItem(TI))),[r,i]=k.useState(a.search),[o,c]=k.useState(a.category),[l,d]=k.useState(a.packageType),[m,h]=k.useState(a.readiness),[x,f]=k.useState(a.ticket),[b,y]=k.useState(null),[w,T]=k.useState(null),A=Pe.accounting.tourism.staffPackages.useQuery({availableOnly:t!=="admin"},{retry:!1}),E=A.data||[],D=r.trim().toLowerCase();k.useEffect(()=>{if(!A.isSuccess||a.scrollY<=0)return;const O=window.requestAnimationFrame(()=>window.scrollTo({top:a.scrollY,behavior:"auto"}));return()=>window.cancelAnimationFrame(O)},[a.scrollY,A.isSuccess]);const S=()=>{window.sessionStorage.setItem(TI,uxe({search:r,category:o,packageType:l,readiness:m,ticket:x,scrollY:window.scrollY}))},R=k.useMemo(()=>Array.from(new Set(E.map(O=>
1566O.category).filter(Boolean))).sort(),[E]),L=k.useMemo(()=>Array.from(new Set(E.map(O=>O.packageType).filter(Boolean))).sort(),[E]),I=k.useMemo(()=>E.filter(O=>{const W=[O.titleAr,O.titleEn,O.cityAr,O.cityEn,O.category,O.packageType,O.ticketRoute].filter(Boolean).join(" ").toLowerCase();return!(D&&!W.includes(D)||o!=="all"&&O.category!==o||l!=="all"&&O.packageType!==l||m==="ready"&&!O.complete||m==="review"&&O.complete||x==="included"&&!O.ticketIncluded||x==="land"&&O.ticketIncluded)}),[E,D,o,l,m,x]),F=k.useMemo(()=>({published:E.length,ready:E.filter(O=>O.complete).length,review:E.filter(O=>!O.complete).length,flightIncluded:E.filter(O=>O.ticketIncluded).length}),[E]),_=async O=>{y(O.id);try{await K$(O,e),Le.success(Bt(e,"تÙ
تجÙÙØ² عرض Ø§ÙØ¨Ø±ÙاÙ
ج","Program offer is ready"))}catch(W){Le.error(W instanceof Error?W.message:Bt(e,"تعذر Ø¥ÙØ´Ø§Ø¡ Ø§ÙØ¹Ø±Ø¶","Offer generation failed"))}finally{y(null)}},U=O=>{T(O.id);const W=`orbit-start-booking-${O.id}`;Le.loading(Bt(e,"Ø¬Ø§Ø±Ù ÙØªØ ÙÙ
ÙØ°Ø¬ Ø§ÙØØ¬Ø²â¦","Opening the booking formâ¦"),{id:W});try{n(O.id),Le.success(Bt(e,"تÙ
ÙØªØ ÙÙ
ÙØ°Ø¬ Ø§ÙØØ¬Ø² ÙØ±Ø¨Ø· Ø§ÙØ¨Ø±ÙاÙ
ج","Booking form opened and program linked"),{id:W})}catch(J){T(null),Le.error(J instanceof Error?J.message:Bt(e,"تعذر ÙØªØ Ø§ÙØØ¬Ø². ØØ§ÙÙ Ù
رة أخرÙ.","Could not open the booking. Please try again."),{id:W})}};return A.isLoading?s.jsx("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:239",className:"flex min-h-[420px] items-center justify-center",children:s.jsx(ft,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:239",className:"h-8 w-8 animate-spin text-[#C9A961]"})}):A.isError?s.jsx(kn,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:244",className:"border-rose-300/15 bg-rose-300/[0.06]",children:s.jsxs(Un,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:245",className:"flex items-start gap-3 p-6 text-rose-100",children:[s.jsx(zi,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:245",className:"mt-0.5 h-5 w-5 shrink-0"}),s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:245",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:245",className:"font-semibold",children:Bt(e,"تعذر تØÙ
Ù٠براÙ
ج اÙÙ
ÙØ¸ÙÙÙ","Staff programs could not be loaded")}),s.jsx("p",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:245",className:"mt-1 text-sm opacity-75",children:A.error.message})]})]})}):s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:251",className:"space-y-6",dir:e==="ar"?"rtl":"ltr",children:[s.jsxs("section",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:252",className:"relative overflow-hidden rounded-[28px] border border-[#C9A961]/15 bg-[radial-gradient(circle_at_top_right,rgba(201,169,97,.15),transparent_36%),linear-gradient(135deg,rgba(244,210,201,.055),rgba(244,210,201,.018))] p-6 md:p-8",children:[s.jsx("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:253",className:"pointer-events-none absolute inset-0 opacity-[0.07]",style:{backgroundImage:"radial-gradient(circle at 20% 50%, rgba(174,102,124,.15) 0%, transparent 50%)"}}),s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:254",className:"relative grid gap-6 xl:grid-cols-[1fr_auto] xl:items-end",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:255",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:256",className:"flex flex-wrap items-center gap-2",children:[s.jsxs(Pn,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:257",className:"border-[#C9A961]/20 bg-[#C9A961]/10 text-[#C9A961]",children:[s.jsx(pr,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:257",className:"me-1 h-3.5 w-3.5"}),"IBRIX"]}),s.jsxs(Pn,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:258",variant:"outline",className:"border-white/10 text-slate-300",children:[s.jsx(sa,{"data-loc":"client/src/components/
1566accounting/StaffPackagesTab.tsx:258",className:"me-1 h-3.5 w-3.5"}),Bt(e,"Ø¨ÙØ§Ùات Ø¨ÙØ¹ Ø¢Ù
ÙØ©","Safe sell-side data")]})]}),s.jsx("h1",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:260",className:"mt-5 font-display text-3xl font-semibold tracking-tight text-white md:text-4xl",children:Bt(e,"ØºØ±ÙØ© عÙ
ÙÙØ§Øª Ø§ÙØ¨Ø±Ø§Ù
ج","Program Operations Room")}),s.jsx("p",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:261",className:"mt-3 max-w-3xl text-sm leading-7 text-slate-400",children:Bt(e,"اعرض براÙ
ج Ø§ÙØ¨Ùع Ø§ÙØÙÙÙÙØ©Ø Ø±Ø§ÙØ¨ Ø§ÙØªÙ
Ø§Ù Ø§ÙØÙÙÙØ راجع Ø´Ù
ÙÙ Ø§ÙØªØ°ÙØ±Ø©Ø ÙØ§Ø¨Ø¯Ø£ Ø§ÙØØ¬Ø² Ù
Ù Ø¨Ø·Ø§ÙØ© ÙØ§ØØ¯Ø©. ÙØ§ ØªÙØ¹Ø±Ø¶ ØªÙØ§ÙÙ٠اÙÙ
ÙØ±Ø¯ أ٠اÙÙÙØ§Ù
Ø´ ÙÙ ÙØ°Ù اÙÙ
Ø³Ø§ØØ©.","Work from real sell-side programs, monitor field readiness, review ticket inclusion, and start a booking from one card. Supplier costs and margins are never exposed here.")})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:263",className:"flex items-center gap-3 rounded-2xl border border-white/[0.07] bg-black/15 px-4 py-3 text-xs text-slate-400",children:[s.jsx(_d,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:263",className:"h-5 w-5 text-emerald-300"}),s.jsx("span",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:263",children:Bt(e,"Ø§ÙØ¬Ø§ÙØ²ÙØ© ÙØ§ تعÙ٠اÙÙØ´Ø± ÙÙØ·Ø ÙØ¬Ø¨ Ø§ÙØªÙ
Ø§Ù Ø§ÙØÙÙÙ Ø§ÙØ£Ø³Ø§Ø³ÙØ©.","Published is not automatically ready; core fields must be complete.")})]})]})]}),s.jsxs("section",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:267",className:"grid gap-3 sm:grid-cols-2 xl:grid-cols-4",children:[s.jsx(i5,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:268",icon:ji,label:Bt(e,"Ø§ÙØ¨Ø±Ø§Ù
ج اÙÙ
ÙØ´Ùرة","Published programs"),value:F.published,color:"text-[#C9A961]"}),s.jsx(i5,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:269",icon:ns,label:Bt(e,"Ø¬Ø§ÙØ²Ø© ÙÙØ¨Ùع","Sell-ready"),value:F.ready,color:"text-emerald-300"}),s.jsx(i5,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:270",icon:zi,label:Bt(e,"ØªØØªØ§Ø¬ Ù
راجعة","Needs review"),value:F.review,color:"text-amber-300"}),s.jsx(i5,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:271",icon:Hs,label:Bt(e,"شاÙ
ÙØ© Ø§ÙØªØ°Ùرة","Flight included"),value:F.flightIncluded,color:"text-[#ae667c]"})]}),s.jsxs("section",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:274",className:"grid gap-3 rounded-2xl border border-white/[0.07] bg-white/[0.028] p-4 md:grid-cols-2 xl:grid-cols-[minmax(240px,1fr)_160px_160px_160px_160px]",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:275",className:"relative",children:[s.jsx(so,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:275",className:"absolute start-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-500"}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:275",value:r,onChange:O=>i(O.target.value),className:"h-11 border-white/10 bg-black/15 ps-9 text-slate-100 placeholder:text-slate-600",placeholder:Bt(e,"Ø§Ø¨ØØ« Ø¹Ù Ø¨Ø±ÙØ§Ù
ج Ø£Ù ÙØ¬ÙØ© Ø£Ù Ù
سار","Search program, destination, or route")})]}),s.jsx(l5,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:276",value:o,onChange:c,placeholder:Bt(e,"Ù٠اÙÙØ¬Ùات","All destinations"),options:[{value:"all",label:Bt(e,"Ù٠اÙÙØ¬Ùات","All destinations")},...R.map(O=>({value:O,label:O}))]}),s.jsx(l5,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:277",value:l,onChange:d,placeholder:Bt(e,"Ù٠أÙÙØ§Ø¹ Ø§ÙØ±ØÙات","All trip types"),options:[{value:"all",label:Bt(e,"Ù٠أÙÙØ§Ø¹ Ø§ÙØ±ØÙات","All trip types")},...L.map(O=>({value:O,label:mM(e,O)}))]}),s.jsx(l5,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:278",value:m,onChange:h,placeholder:Bt(e,"ÙÙ Ø§ÙØØ§ÙØ§Øª","All readiness"),options:[{value:"all",label:Bt(e,"ÙÙ Ø§ÙØØ§ÙØ§Øª","All readiness")},{value:"ready",label:Bt(e,"Ø¬Ø§ÙØ² ÙÙØ¨Ùع","Sell-ready")},{value:"review",label:Bt(e,"ÙØØªØ§Ø¬ Ù
راجعة","Needs review")}]}
1566),s.jsx(l5,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:279",value:x,onChange:f,placeholder:Bt(e,"ÙÙ Ø§ÙØ¨Ø±Ø§Ù
ج","All programs"),options:[{value:"all",label:Bt(e,"ÙÙ Ø§ÙØ¨Ø±Ø§Ù
ج","All programs")},{value:"included",label:Bt(e,"شاÙ
Ù Ø§ÙØªØ°Ùرة","Flight included")},{value:"land",label:Bt(e,"أرض٠ÙÙØ·","Land only")}]})]}),I.length===0?s.jsx(kn,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:283",className:"border-dashed border-white/10 bg-white/[0.02]",children:s.jsxs(Un,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:283",className:"py-16 text-center",children:[s.jsx(so,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:283",className:"mx-auto h-8 w-8 text-slate-600"}),s.jsx("p",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:283",className:"mt-4 font-semibold text-slate-200",children:Bt(e,"ÙØ§ ØªÙØ¬Ø¯ براÙ
ج تطاب٠اÙÙ
Ø±Ø´ØØ§Øª","No programs match these filters")}),s.jsx("p",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:283",className:"mt-2 text-sm text-slate-500",children:Bt(e,"غÙÙØ± Ø§ÙØ¨ØØ« Ø£Ù ØØ§ÙØ© Ø§ÙØ¬Ø§ÙØ²ÙØ©.","Adjust the search or readiness filter.")})]})}):s.jsx("section",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:285",className:"grid gap-5 xl:grid-cols-2 2xl:grid-cols-3",children:I.map(O=>{const W=Array.isArray(O.hotels)?O.hotels:[],J=r5(O.itinerary,e),oe=r5(O.inclusions,e),G=r5(O.exclusions,e),K=r5(O.serviceDetails,e),ee=J.length,pe=O.missingFields||[],V=[{label:Bt(e,"Ø§ÙØ§Ø³ØªØ®Ø±Ø§Ø¬","Extraction"),value:O.lifecycle.extractionState},{label:Bt(e,"اÙÙ
راجعة","Review"),value:O.lifecycle.reviewState},{label:Bt(e,"Ø§ÙØ§Ø¹ØªÙ
اد","Approval"),value:O.lifecycle.approvalState},{label:Bt(e,"اÙÙØ´Ø±","Publication"),value:O.lifecycle.publicationState}],Y=O.blockReason==="missing_sell_price"?Bt(e,"ÙØ§ ÙÙØ¬Ø¯ سعر Ø¨ÙØ¹ Ù
عتÙ
د","No approved sell price"):O.blockReason==="source_not_approved"?Bt(e,"اÙÙ
صدر Ø¨Ø§ÙØªØ¸Ø§Ø± Ø§ÙØ§Ø¹ØªÙ
اد","Source approval is pending"):O.blockReason==="expired_validity"||O.blockReason==="expired_booking_deadline"?Bt(e,"Ø§ÙØªÙت ØµÙØ§ØÙØ© Ø§ÙØ¨Ùع","Selling validity has expired"):Bt(e,"Ø§ÙØ¨Ø±ÙاÙ
ج ØºÙØ± Ù
ØªØ§Ø ÙÙØ¨Ùع","Package is not available for sale");return s.jsxs("article",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:308",className:"group flex min-h-[620px] flex-col overflow-hidden rounded-[26px] border border-[#C9A961]/[0.08] bg-white/[0.035] shadow-[0_28px_75px_-55px_rgba(0,0,0,.9)] transition duration-200 hover:-translate-y-1 hover:border-[#C9A961]/20 hover:bg-white/[0.048]",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:309",className:"relative h-56 overflow-hidden bg-[#2c212e]",children:[O.imageUrl?s.jsx("img",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:310",src:O.imageUrl,alt:Wp(e,O.titleAr,O.titleEn),loading:"lazy",className:"h-full w-full object-cover transition duration-500 group-hover:scale-[1.035]"}):s.jsx("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:310",className:"absolute inset-0 flex items-center justify-center bg-[radial-gradient(circle_at_65%_20%,rgba(201,169,97,.2),transparent_32%),linear-gradient(135deg,#2c212e,#1a1218)]",children:s.jsx(sie,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:310",className:"h-10 w-10 text-[#C9A961]/35"})}),s.jsx("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:311",className:"absolute inset-0 bg-gradient-to-t from-[#1a1218] via-[#1a1218]/10 to-black/45"}),s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:312",className:"absolute inset-x-0 top-0 flex flex-wrap items-center justify-between gap-2 p-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:313",className:"flex flex-wrap gap-2",children:[s.jsxs(Pn,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:313",className:O.complete?"border-emerald-300/25 bg-emerald-300/15 text-emerald-100":"border-amber-300/25 bg-amber-300/15 text-amber-100",children:[O.complete?s.jsx(ns,{"data-loc":"client/src/components/
1566accounting/StaffPackagesTab.tsx:313",className:"me-1 h-3.5 w-3.5"}):s.jsx(zi,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:313",className:"me-1 h-3.5 w-3.5"}),O.complete?Bt(e,"Ø¬Ø§ÙØ² ÙÙØ¨Ùع","Sell-ready"):Bt(e,"ÙØØªØ§Ø¬ Ù
راجعة","Needs review")]}),s.jsx(Pn,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:313",variant:"outline",className:"border-white/15 bg-black/25 text-white",children:O.sourceType==="source_file"?Bt(e,"Ù
ÙÙ Ù
صدر","Source file"):Bt(e,"Ø¥Ø¯Ø®Ø§Ù ÙØ¯ÙÙ","Manual")})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:314",className:"flex flex-wrap justify-end gap-2",children:[s.jsx(Pn,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:314",variant:"outline",className:"border-white/15 bg-black/25 text-white",children:mM(e,O.packageType)}),s.jsx(Pn,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:314",className:"bg-[#C9A961] text-[#2c212e]",children:O.category})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:316",className:"absolute inset-x-0 bottom-0 flex items-end justify-between gap-4 p-5",children:[s.jsxs("p",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:316",className:"flex items-center gap-1.5 text-xs font-semibold text-[#C9A961]",children:[s.jsx(mr,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:316",className:"h-4 w-4"}),Wp(e,O.cityAr,O.cityEn)]}),s.jsx("p",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:316",dir:"ltr",className:"text-xl font-bold text-white",children:s5(O.price,O.currency,e)})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:319",className:"flex flex-1 flex-col p-5 md:p-6",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:320",className:"flex items-start justify-between gap-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:320",children:[s.jsx("h2",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:320",className:"font-display text-2xl font-semibold leading-tight text-white",children:Wp(e,O.titleAr,O.titleEn)}),s.jsx("p",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:320",className:"mt-2 line-clamp-2 min-h-10 text-sm leading-6 text-slate-400",children:Wp(e,O.summaryAr,O.summaryEn)})]}),s.jsxs("span",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:320",className:`shrink-0 rounded-full border px-3 py-1.5 text-xs font-bold ${O.completenessScore===100?"border-emerald-300/20 bg-emerald-300/10 text-emerald-200":"border-amber-300/20 bg-amber-300/10 text-amber-200"}`,children:[O.completenessScore,"%"]})]}),s.jsx("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:322",className:"mt-4 h-1.5 overflow-hidden rounded-full bg-white/[0.06]","aria-label":Bt(e,"ÙØ³Ø¨Ø© Ø§ÙØªÙ
Ø§Ù Ø§ÙØ¨Ø±ÙاÙ
ج","Program completeness"),children:s.jsx("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:322",className:O.completenessScore===100?"h-full rounded-full bg-emerald-300":"h-full rounded-full bg-amber-300",style:{width:`${O.completenessScore}%`}})}),s.jsx("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:324",className:"mt-4 grid grid-cols-2 gap-2 sm:grid-cols-4","aria-label":Bt(e,"Ø¯ÙØ±Ø© ØØ§ÙØ© Ø§ÙØ¨Ø±ÙاÙ
ج","Program lifecycle"),children:V.map(z=>s.jsx(aye,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:325",label:z.label,value:z.value,lang:e},z.label))}),s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:328",className:"mt-5 grid grid-cols-2 gap-2 text-xs text-slate-300",children:[s.jsx(o5,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:329",icon:Xb,value:`${O.durationDays} ${Bt(e,"Ø£ÙØ§Ù
","days")} · ${O.durationNights} ${Bt(e,"ÙÙØ§ÙÙ","nights")}`}),s.jsx(o5,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:330",icon:sx,value:Kve(O.bookingDeadline,e)}
1566),s.jsx(o5,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:331",icon:Cl,value:W.length?`${W.length} ${Bt(e,"ÙÙØ¯Ù/Ø®ÙØ§Ø±","hotel option(s)")}`:Bt(e,"ÙØ§ ÙÙØ¯Ù","No hotel")}),s.jsx(o5,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:332",icon:Sk,value:`${ee} ${Bt(e,"ÙÙÙ
Ø¨Ø±ÙØ§Ù
ج","itinerary day(s)")}`})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:335",className:"mt-5 rounded-2xl border border-white/[0.07] bg-black/15 p-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:336",className:"flex items-center justify-between gap-3",children:[s.jsxs("p",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:336",className:"flex items-center gap-2 text-xs font-semibold uppercase tracking-[0.12em] text-[#C9A961]",children:[s.jsx(Cd,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:336",className:"h-4 w-4"}),Bt(e,"ØªÙØµÙ٠سعر Ø§ÙØ¨Ùع","Selling price breakdown")]}),s.jsx(Pn,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:336",variant:"outline",className:"border-white/10 text-slate-300",children:O.priceBasis==="per_room"?Bt(e,"ÙÙØºØ±ÙØ©","Per room"):O.priceBasis==="per_package"?Bt(e,"ÙÙØ¨Ø±ÙاÙ
ج","Per package"):Bt(e,"ÙÙÙØ±Ø¯","Per person")})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:337",className:"mt-4 grid grid-cols-3 gap-2 text-center",children:[s.jsx(GN,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:337",label:Bt(e,"أرضÙ","Land"),value:s5(O.landPrice,O.currency,e)}),s.jsx(GN,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:337",label:Bt(e,"ØªØ°ÙØ±Ø©","Ticket"),value:O.ticketIncluded?s5(O.ticketPrice,O.ticketCurrency||O.currency,e):"â"}),s.jsx(GN,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:337",label:Bt(e,"Ø§ÙØ¥Ø¬Ù
اÙÙ","Total"),value:s5(O.price,O.currency,e),emphasis:!0})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:338",className:"mt-3 flex items-center gap-2 rounded-xl bg-white/[0.035] px-3 py-2.5 text-xs text-slate-400",children:[s.jsx(Hs,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:338",className:`h-4 w-4 ${O.ticketIncluded?"text-[#C9A961]":"text-slate-600"}`}),s.jsx("span",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:338",children:O.ticketIncluded?`${Bt(e,"Ø§ÙØªØ°Ùرة Ù
Ø´Ù
ÙÙØ©","Ticket included")} · ${O.ticketRoute||"â"}`:Bt(e,"Ø¨Ø±ÙØ§Ù
ج أرض٠دÙÙ ØªØ°ÙØ±Ø©","Land-only program")}),O.ticketNeedsReview&&s.jsx(zi,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:338",className:"ms-auto h-4 w-4 text-amber-300","aria-label":Bt(e,"سعر Ø§ÙØªØ°Ùرة ÙØØªØ§Ø¬ Ù
راجعة","Ticket price needs review")})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:341",className:"mt-4 grid gap-3 sm:grid-cols-2",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:342",className:"rounded-xl border border-white/[0.06] bg-white/[0.02] p-3 sm:col-span-2",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:343",className:"flex items-center justify-between gap-3",children:[s.jsxs("p",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:344",className:"flex items-center gap-2 text-xs font-semibold text-slate-300",children:[s.jsx(Cl,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:344",className:"h-4 w-4 text-[#C9A961]"}),Bt(e,"ÙÙ Ø®ÙØ§Ø±Ø§Øª Ø§ÙØ¥ÙاÙ
Ø©","All stay options")]}),W.length>0&&s.jsxs(Pn,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:345",variant:"outline",className:"border-white/10 text-[10px] text-slate-400",children:[W.length," ",Bt(e,"ÙÙØ¯Ù","hotels")]})]}),s.jsx("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:347",className:"mt-3 max-h-[28rem] space-y-2 overflow-y-auto pe-1 text-xs text-slate-400",children:W.length?W.map((z,H)=>{const ne=eye(z),te=qN(z,e,"cityAr","cityEn","city"),me=qN(z,e,"roomTypeAr","roomTypeEn","roomType"),fe=qN(z,e,"mealPlanAr","mealPlanEn","mealPlan"),Ae=tye(z,e),xe=String(z.sourceLocator||"").trim();
1566return s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:356",className:"rounded-xl border border-white/[0.06] bg-black/10 p-3",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:357",className:"flex items-start gap-2",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:358",className:"min-w-0 flex-1 font-semibold text-slate-200",children:Zve(z,e)}),ne>0&&s.jsxs("span",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:359",className:"flex shrink-0 items-center gap-1 text-[#C9A961]",children:[s.jsx(Tu,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:359",className:"h-3 w-3 fill-current"}),ne]})]}),(te||me||fe)&&s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:361",className:"mt-2 flex flex-wrap gap-1.5 text-[10px] text-slate-400",children:[te&&s.jsxs("span",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:362",className:"inline-flex items-center gap-1 rounded-full bg-white/[0.04] px-2 py-1",children:[s.jsx(mr,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:362",className:"h-3 w-3 text-[#C9A961]"}),te]}),me&&s.jsxs("span",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:363",className:"inline-flex items-center gap-1 rounded-full bg-white/[0.04] px-2 py-1",children:[s.jsx(Cl,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:363",className:"h-3 w-3 text-[#C9A961]"}),me]}),fe&&s.jsxs("span",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:364",className:"inline-flex items-center gap-1 rounded-full bg-white/[0.04] px-2 py-1",children:[s.jsx(pr,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:364",className:"h-3 w-3 text-[#C9A961]"}),fe]})]}),Ae.length>0&&s.jsx("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:366",className:"mt-2 grid gap-1.5 sm:grid-cols-2 lg:grid-cols-3",children:Ae.map(ae=>s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:366",className:"rounded-lg bg-[#C9A961]/[0.05] px-2 py-1.5",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:366",className:"text-[9px] text-slate-500",children:ae.label}),s.jsx("p",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:366",className:"font-semibold text-[#C9A961]",children:ae.value})]},ae.label))}),xe&&s.jsxs("p",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:367",className:"mt-2 text-[9px] text-slate-600",children:[Bt(e,"اÙÙ
صدر","Source"),": ",xe]})]},`${O.id}-hotel-${H}`)}):s.jsx("p",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:370",children:Bt(e,"ÙÙ
ÙØØ¯Ø¯ اÙÙÙØ¯Ù","Hotel not specified")})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:373",className:"rounded-xl border border-white/[0.06] bg-white/[0.02] p-3",children:[s.jsxs("p",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:373",className:"flex items-center gap-2 text-xs font-semibold text-slate-300",children:[s.jsx(fie,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:373",className:"h-4 w-4 text-[#C9A961]"}),Bt(e,"اÙÙ
رÙÙØ§Øª","Attachments")]}),s.jsx("p",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:373",className:"mt-2 text-xs text-slate-500",children:O.attachmentCount?`${O.attachmentCount} ${Bt(e,"ØµÙØ±Ø©/Ù
ÙÙ Ù
رتبط","linked image(s)")}`:Bt(e,"ÙØ§ Ù
رÙÙØ§Øª إضاÙÙØ©","No extra attachments")})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:376",className:"mt-4 grid gap-3 sm:grid-cols-2",children:[s.jsx(c5,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:377",icon:Sk,title:Bt(e,"خط Ø§ÙØ³Ùر","Itinerary"),items:J,empty:Bt(e,"ÙÙ
ÙØØ¯Ø¯ خط Ø§ÙØ³Ùر","No itinerary specified")}),s.jsx(c5,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:378",icon:pr,title:Bt(e,"Ø§ÙØ®Ø¯Ù
ات","Services"),items:K,empty:Bt(e,"ÙÙ
ØªØØ¯Ø¯ خدÙ
ات إضاÙÙØ©","No extra services specified")}
1566),s.jsx(c5,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:379",icon:ns,title:Bt(e,"ÙØ´Ù
Ù","Included"),items:oe,empty:Bt(e,"ÙÙ
ØªØØ¯Ø¯ Ø§ÙØªØ¶Ù
ÙÙØ§Øª","Inclusions not specified"),tone:"success"}),s.jsx(c5,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:380",icon:zi,title:Bt(e,"ÙØ§ ÙØ´Ù
Ù","Excluded"),items:G,empty:Bt(e,"ÙÙ
ØªØØ¯Ø¯ Ø§ÙØ§Ø³ØªØ«Ùاءات","Exclusions not specified"),tone:"warning"})]}),!O.complete&&s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:383",className:"mt-4 rounded-xl border border-amber-300/15 bg-amber-300/[0.06] p-3",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:383",className:"text-xs font-semibold text-amber-100",children:Bt(e,"ØÙÙÙ ØªØØªØ§Ø¬ Ø¥ÙÙ
اÙ","Fields to complete")}),s.jsx("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:383",className:"mt-2 flex flex-wrap gap-1.5",children:pe.slice(0,6).map(z=>s.jsx(Pn,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:383",variant:"outline",className:"border-amber-300/15 text-[10px] text-amber-200",children:Qve[z]?.[e]||z},z))})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:385",className:"mt-auto grid gap-2 pt-5 sm:grid-cols-2",children:[O.sellable?s.jsxs(s.Fragment,{children:[(t==="booking_agent"||t==="admin")&&s.jsxs(Ie,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:387",type:"button",disabled:w===O.id,onClick:()=>U(O),className:"h-11 bg-[#C9A961] font-semibold text-[#2c212e] hover:bg-[#C9A961]/90 disabled:opacity-70",children:[w===O.id?s.jsx(ft,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:387",className:"me-2 h-4 w-4 animate-spin"}):null,Bt(e,"ابدأ Ø§ÙØØ¬Ø²","Start booking"),w!==O.id&&(e==="ar"?s.jsx(_l,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:387",className:"ms-2 h-4 w-4"}):s.jsx(dr,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:387",className:"ms-2 h-4 w-4"}))]}),s.jsx(Ie,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:388",asChild:!0,variant:"outline",className:"h-11 border-[#ae667c]/20 bg-[#ae667c]/5 text-[#ae667c] hover:bg-[#ae667c]/10 hover:text-white",children:s.jsx(ls,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:388",href:cxe(O.slug),onClick:S,children:Bt(e,"عرض Ø§ÙØ¹Ù
ÙÙ","Guest view")})}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:389",type:"button",variant:"outline",disabled:b===O.id,onClick:()=>_(O),className:"h-11 border-white/10 bg-white/[0.025] text-slate-200 hover:bg-white/[0.07] hover:text-white",children:[b===O.id?s.jsx(ft,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:389",className:"me-2 h-4 w-4 animate-spin"}):s.jsx(Sd,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:389",className:"me-2 h-4 w-4"}),Bt(e,"ØªÙØ²ÙÙ Ø§ÙØ¹Ø±Ø¶","Download offer")]}),s.jsx(i9,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:390",url:`/packages/${O.slug}`,title:Wp(e,O.titleAr,O.titleEn),text:Wp(e,O.summaryAr,O.summaryEn),className:"h-11 w-full justify-center rounded-md border-[#ae667c]/20 bg-[#ae667c]/5 text-[#ae667c] hover:bg-[#ae667c]/10 hover:text-white"})]}):s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:391",className:"rounded-xl border border-amber-300/15 bg-amber-300/[0.06] p-3 text-xs text-amber-100 sm:col-span-2",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:391",className:"font-semibold",children:Bt(e,"Ù
راجعة Ø¥Ø¯Ø§Ø±ÙØ© ÙÙØ·","Admin review only")}),s.jsx("p",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:391",className:"mt-1 text-amber-200/75",children:Y})]}),t==="admin"&&s.jsx(Ie,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:392",asChild:!0,variant:"outline",className:"h-11 border-[#C9A961]/30 bg-[#C9A961]/5 text-[#C9A961] hover:bg-[#C9A961]/10 hover:text-white sm:col-span-2",children:s.jsx(ls,{"data-loc":"client/src/components/
1566accounting/StaffPackagesTab.tsx:392",href:"/admin",children:Bt(e,"Ù
راجعة ÙØªØØ±Ùر Ø§ÙØ¨Ø±ÙاÙ
ج","Review and edit program")})})]})]})]},O.id)})})]})}function i5({icon:e,label:t,value:n,color:a}){return s.jsxs("article",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:405",className:"rounded-2xl border border-white/[0.07] bg-white/[0.03] p-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:405",className:"flex items-center justify-between gap-4",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:405",className:`flex h-10 w-10 items-center justify-center rounded-xl bg-white/[0.035] ${a}`,children:s.jsx(e,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:405",className:"h-5 w-5"})}),s.jsx("strong",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:405",className:"text-2xl text-white",children:n})]}),s.jsx("p",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:405",className:"mt-3 text-xs text-slate-500",children:t})]})}function o5({icon:e,value:t}){return s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:409",className:"flex items-center gap-2 rounded-xl bg-white/[0.035] p-3",children:[s.jsx(e,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:409",className:"h-4 w-4 shrink-0 text-[#C9A961]"}),s.jsx("span",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:409",className:"min-w-0 truncate",children:t})]})}function GN({label:e,value:t,emphasis:n=!1}){return s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:413",className:`rounded-xl px-2 py-3 ${n?"bg-[#C9A961]/10":"bg-white/[0.025]"}`,children:[s.jsx("p",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:413",className:"text-[10px] text-slate-500",children:e}),s.jsx("p",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:413",dir:"ltr",className:`mt-1 truncate text-xs font-semibold ${n?"text-[#C9A961]":"text-slate-200"}`,children:t})]})}function c5({icon:e,title:t,items:n,empty:a,tone:r="default"}){const i=r==="success"?"text-emerald-300":r==="warning"?"text-amber-300":"text-[#C9A961]";return s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:418",className:"rounded-xl border border-white/[0.06] bg-white/[0.02] p-3",children:[s.jsxs("p",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:418",className:"flex items-center gap-2 text-xs font-semibold text-slate-300",children:[s.jsx(e,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:418",className:`h-4 w-4 ${i}`}),t]}),n.length?s.jsx("ul",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:418",className:"mt-2 space-y-1.5 text-xs leading-5 text-slate-500",children:n.slice(0,3).map((o,c)=>s.jsx("li",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:418",className:"line-clamp-2",children:o},`${t}-${c}`))}):s.jsx("p",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:418",className:"mt-2 text-xs text-slate-600",children:a})]})}function aye({label:e,value:t,lang:n}){const a=["completed","reviewed","approved","published","not_required","manual"].includes(t),i=["failed","rejected"].includes(t)?"border-rose-300/15 bg-rose-300/[0.06] text-rose-200":a?"border-emerald-300/15 bg-emerald-300/[0.06] text-emerald-200":"border-amber-300/15 bg-amber-300/[0.06] text-amber-200",o={manual:{ar:"ÙØ¯ÙÙ",en:"Manual"},pending:{ar:"ÙÙØ¯ Ø§ÙØ§Ùتظار",en:"Pending"},extracting:{ar:"Ø¬Ø§Ø±Ù Ø§ÙØ§Ø³ØªØ®Ø±Ø§Ø¬",en:"Extracting"},completed:{ar:"Ù
ÙØªÙ
Ù",en:"Completed"},failed:{ar:"Ù
تعثر",en:"Failed"},needs_review:{ar:"ÙØØªØ§Ø¬ Ù
راجعة",en:"Needs review"},reviewed:{ar:"تÙ
ت اÙÙ
راجعة",en:"Reviewed"},rejected:{ar:"Ù
رÙÙØ¶",en:"Rejected"},not_required:{ar:"ØºÙØ± Ù
Ø·ÙÙØ¨",en:"Not required"},approved:{ar:"Ù
عتÙ
د",en:"Approved"},published:{ar:"Ù
ÙØ´Ùر",en:"Published"},draft:{ar:"Ù
Ø³ÙØ¯Ø©",en:"Draft"}};
1566return s.jsxs("div",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:428",className:`rounded-xl border px-3 py-2.5 ${i}`,children:[s.jsx("p",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:428",className:"text-[9px] uppercase tracking-[0.12em] opacity-65",children:e}),s.jsx("p",{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:428",className:"mt-1 text-xs font-semibold",children:o[t]?.[n]||t})]})}function l5({value:e,onChange:t,placeholder:n,options:a}){return s.jsxs(qn,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:432",value:e,onValueChange:t,children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:432",className:"h-11 border-white/10 bg-black/15 text-slate-200",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:432",placeholder:n})}),s.jsx(Wn,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:432",children:a.map(r=>s.jsx(At,{"data-loc":"client/src/components/accounting/StaffPackagesTab.tsx:432",value:r.value,children:r.label},r.value))})]})}const Gt=(e,t,n)=>e==="ar"?t:n,Ab=(e,t)=>new Intl.NumberFormat(t==="ar"?"ar-JO":"en-GB",{maximumFractionDigits:2}).format(e||0),$1=(e,t,n)=>`â¦${Ab(e,n)} ${t}â©`,sye=(e,t)=>({issued:Gt(e,"صادرة","Issued"),used:Gt(e,"٠ستخد٠ة","Used"),refunded:Gt(e,"٠ستردة","Refunded"),cancelled:Gt(e,"Ù ÙØºØ§Ø©","Cancelled")})[t]||t,pM={ticketNumber:"",passengerName:"",pnr:"",carrier:"",validatingCarrier:"",flightNumber:"",originAirportId:"",destinationAirportId:"",departDate:"",returnDate:"",airDocumentType:"ticket",originalTicketNumber:"",fare:0,taxes:0,serviceFee:0,commission:0,reissueDifference:0,settlementType:"bsp",voidDeadline:"",currency:"JOD"};function rye(e,t){const n=m=>String(m??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""),a=n(e.origin||"â"),r=n(e.destination||"â"),i=n(e.currency||"JOD"),o=String(e.status||"issued"),c=x9(o),l=n(e.airDocumentType?.toUpperCase()||"TICKET"),d=n(e.carrier||e.validatingCarrier||"â");return`<!doctype html><html lang="${t}" dir="${t==="ar"?"rtl":"ltr"}"><head><meta charset="utf-8"><meta name="author" content="IBRIX"><meta name="creator" content="IBRIX"><title>${n(e.ticketNumber||"Ticket")} â IBRIX</title>${d6}<style>${m6(t,"standard")} 1567 .ticket-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3mm;margin-bottom:4.5mm}.ticket-grid .info-card{border-top-color:var(--orbit-teal);padding:3.2mm}.ticket-grid .info-card strong{font-size:9.4pt}.passenger-card{display:flex;justify-content:space-between;gap:6mm;align-items:center;margin-bottom:1.5mm}.passenger-card strong{font-family:${t==="ar"?"'Amiri','Noto Sans Arabic',serif":"'Manrope',sans-serif"};font-size:17pt}.paid-box{display:flex;justify-content:space-between;align-items:center;gap:5mm;padding:4mm 5mm;background:linear-gradient(118deg,var(--orbit-ink),var(--orbit-teal));color:#fff;break-inside:avoid}.paid-box span{font-size:8pt}.paid-box strong{font-family:'Manrope',sans-serif;font-size:17pt;color:var(--orbit-gold-soft);font-variant-numeric:tabular-nums} 1568 @media print{.ticket-grid{gap:2.5mm}.passenger-card strong{font-size:15pt}} 1569 </style></head><body> 1570 <main class="print-shell"> 1571 <header class="doc-header"> 1572 <div class="brand-lockup"> 1573 <img class="brand-mark" src="/manus-storage/ibrix-logo_1fc1d3d8.png" alt="IBRIX"> 1574 <div><div class="brand-name latin">IBRIX</div><div class="brand-sub">${Gt(t,"Ø§ÙØ³Ùر ÙØ§ÙتشغÙÙ ÙØ§Ùخد٠ة","Travel, operations, and service")}</div></div> 1575 </div> 1576 <div class="doc-identity"> 1577 <div class="doc-kicker latin">${l}</div> 1578 <div class="doc-number" dir="ltr"><bdi>${n(e.ticketNumber||"â")}</bdi></div> 1579 <div class="doc-date"><span class="${c}">${n(sye(t,o))}</span></div> 1580 </div> 1581 </header> 1582 1583 <section class="doc-body"> 1584 <div class="info-card passenger-card"> 1585 <div><div class="section-label">${Gt(t,"Ø§Ø³Ù Ø§ÙØ±Ø§Ùب","Passenger")}</div><strong dir="auto">${n(e.passengerName||"â")}</strong></div> 1586 <div class="section-label latin">E-TICKET / ITINERARY RECEIPT</div> 1587 </div> 1588 1589 <div class="route-band route ltr"> 1590 <div class="route-point"><div class="route-code"><bdi>${a}</bdi></div><div class="route-caption">${Gt(t,"اÙ٠غادرة","Origin")}</div></div> 1591 <div class="route-arrow">â</div> 1592 <div class="route-point"><div class="route-code"><bdi>${r}</bdi></div><div class="route-caption">${Gt(t,"اÙÙØµÙÙ","Destination")}</div></div> 1593 </div> 1594 1595 <div class="ticket-grid"> 1596 <div class="info-card"><div class="section-label">${Gt(t,"رÙÙ Ø§ÙØªØ°Ùرة","Ticket number")}</div><strong class="latin" dir="ltr"><bdi>${n(e.ticketNumber||"â")}</bdi></strong></div> 1597 <div class="info-card"><div class="section-label latin">PNR</div><strong class="latin" dir="ltr"><bdi>${n(e.pnr||"â")}</bdi></strong></div> 1598 <div class="info-card"><div class="section-label">${Gt(t,"اÙÙØ§ÙÙ","Carrier")}</div><strong class="latin" dir="ltr"><bdi>${d}</bdi></strong></div> 1599 <div class="info-card"><div class="section-label">${Gt(t,"Ø§ÙØ±ØÙØ©","Flight")}</div><strong class="latin" dir="ltr"><bdi>${n(e.flightNumber||"â")}</bdi></strong></div> 1600 <div class="info-card"><div class="section-label">${Gt(t,"اÙ٠غادرة","Departure")}</div><strong class="latin" dir="ltr"><bdi>${n(e.departDate||"â")}</bdi></strong></div> 1601 <div class="info-card"><div class="section-label">${Gt(t,"Ø§ÙØ¹Ùدة","Return")}</div><strong class="latin" dir="ltr"><bdi>${n(e.returnDate||"â")}</bdi></strong></div> 1602 </div> 1603 1604 <div class="reference-box"> 1605 <div class="section-label latin">BOOKING REFERENCE / PNR</div> 1606 <strong class="ltr"><bdi>${n(e.pnr||"â")}</bdi></strong> 1607 </div> 1608 1609 <div class="summary-grid" style="margin-top:5mm"> 1610 <div class="note-box">${Gt(t,"ÙØ±Ø¬Ù Ø§ÙØªØÙÙ Ù Ù Ø¨ÙØ§Ùات Ø§ÙØ±Ø§Ùب ÙÙ ÙØ§Ø¹Ùد Ø§ÙØ±ØÙات ÙØ´Ø±ÙØ· Ø´Ø±ÙØ© Ø§ÙØ·ÙØ±Ø§Ù ÙØ¨Ù Ø§ÙØ³Ùر. ÙØØªÙØ¸ ÙØ°Ø§ اÙÙ Ø³ØªÙØ¯ Ø¨ØªØ±ØªÙØ¨ Ø§ÙØ±Ù ÙØ² ÙØ§ÙØ£Ø±ÙØ§Ù Ø§ÙØ¯ÙÙÙØ© Ù٠ا صدرت.","Please verify passenger details, flight times and airline conditions before travel. International codes and numbers are preserved as issued.")}</div> 1611 <div class="paid-box"><span>${Gt(t,"Ø§ÙØ¥Ø¬Ù اÙ٠اÙ٠دÙÙØ¹","Total paid")}</span><strong dir="ltr"><bdi>${Ab(e.salePrice,t)} ${i}</bdi></strong></div> 1612 </div> 1613 </section> 1614 1615 <footer class="doc-footer footer ltr"> 1616 <div class="legal">Services are subject to provider terms and written confirmation · <span dir="ltr">[email protected]</span></div> 1617 <div class="signature-mark">Designed by <a href="https://www.ibrix.digital">IBRIX</a> · www.ibrix.digital</div> 1618 </footer> 1619 </main> 1620 </body></html>`}function iye({lang:e}){const t=Pe.useUtils(),n=Pe.accounting.tickets.list.useQuery(),a=Pe.accounting.tourism.referenceData.useQuery(),r=Pe.accounting.tourism.myPermissions.useQuery(),[i,o]=k.useState(!1),[c,l]=k.useState(null),[d,m]=k.useState(""),[h,x]=k.useState(pM),f=r.data,b=f?.viewCosts??!1,y=f?.viewProfit??!1,w=f?.viewSellingPrice??!0,T=f?.editCosts||f?.approveExceptions||f?.managePermissions,A=n.data||[],E=a.data?.airports||[],D=new Map(E.map(W=>[W.id,W])),S=Math.max(0,h.fare+h.taxes+h.reissueDifference-h.commission),R=Math.max(0,h.fare+h.taxes+h.reissueDifference+h.serviceFee),L=R-S,I=k.useMemo(()=>{const W=d.trim().toLowerCase();return A.filter(J=>!W||[J.ticketNumber,J.passengerName,J.pnr,J.carrier,J.flightNumber,J.origin,J.destination].some(oe=>String(oe||"").toLowerCase().includes(W)))},[A,d]),F=Pe.accounting.tickets.create.useMutation({onSuccess:async()=>
1620{await Promise.all([t.accounting.tickets.list.invalidate(),t.accounting.dashboard.invalidate()]),Le.success(Gt(e,"Ø£ÙØµØ¯Ø±Øª Ø§ÙØªØ°Ùرة ÙØ³Ùج٠ÙÙØ¯Ùا اÙÙ
اÙÙ","Ticket issued and financial record posted")),o(!1),x(pM)},onError:W=>Le.error(W.message)}),_=()=>{if(!h.ticketNumber.trim()||!h.passengerName.trim()||!h.originAirportId||!h.destinationAirportId||!h.validatingCarrier.trim()){Le.error(Gt(e,"رÙÙ
Ø§ÙØªØ°Ùرة ÙØ§ÙØ±Ø§ÙØ¨ ÙÙ
سار IATA ÙØ§ÙÙØ§Ù٠اÙÙ
عتÙ
د ØÙÙÙ Ø¥ÙØ²Ø§Ù
ÙØ©.","Ticket number, passenger, IATA route and validating carrier are required."));return}if(h.originAirportId===h.destinationAirportId){Le.error(Gt(e,"Ù
طار اÙÙ
غادرة ÙØ§ÙÙØµÙÙ ÙØ§ ÙÙ
Ù٠أ٠ÙÙÙÙØ§ Ù
تطابÙÙÙ.","Origin and destination airports cannot be the same."));return}const W=D.get(Number(h.originAirportId)),J=D.get(Number(h.destinationAirportId));F.mutate({ticketNumber:h.ticketNumber.trim(),type:"flight",bookingId:null,passengerName:h.passengerName.trim(),carrier:h.carrier.trim()||h.validatingCarrier.toUpperCase(),validatingCarrier:h.validatingCarrier.trim().toUpperCase(),flightNumber:h.flightNumber.trim()||null,origin:W?.iataCode||null,destination:J?.iataCode||null,originAirportId:Number(h.originAirportId),destinationAirportId:Number(h.destinationAirportId),departDate:h.departDate||null,returnDate:h.returnDate||null,pnr:h.pnr.trim().toUpperCase()||null,airDocumentType:h.airDocumentType,originalTicketNumber:h.originalTicketNumber.trim()||null,fare:h.fare,taxes:h.taxes,serviceFee:h.serviceFee,commission:h.commission,reissueDifference:h.reissueDifference,settlementType:h.settlementType,settlementStatus:"unsettled",bspRemittanceAmount:h.settlementType==="bsp"?S:0,refundAmount:0,refundPenalty:0,voidDeadline:h.voidDeadline||null,issuedAt:new Date().toISOString(),cost:S,salePrice:R,profit:L,currency:h.currency,status:"issued"})},U={issued:["صادرة","Issued"],used:["Ù
ستخدÙ
Ø©","Used"],refunded:["Ù
ستردة","Refunded"],cancelled:["Ù
ÙØºØ§Ø©","Cancelled"]},O={unsettled:["ØºÙØ± Ù
سÙÙØ§Ø©","Unsettled"],reported:["Ù
بÙÙØº عÙÙØ§","Reported"],remitted:["Ù
ØÙÙØ©","Remitted"],disputed:["ÙÙØ¯ Ø§ÙØ§Ø¹ØªØ±Ø§Ø¶","Disputed"],reconciled:["Ù
Ø·Ø§Ø¨ÙØ©","Reconciled"]};return s.jsxs("div",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:228",className:"space-y-6",dir:e==="ar"?"rtl":"ltr",children:[s.jsx(kn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:229",className:"overflow-hidden border-primary/20 bg-[linear-gradient(120deg,hsl(var(--primary)/0.14),transparent_62%)]",children:s.jsxs(Un,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:230",className:"grid gap-5 p-6 lg:grid-cols-[1fr_auto] lg:items-center",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:230",className:"flex items-start gap-4",children:[s.jsx("div",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:230",className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-2xl bg-primary text-primary-foreground shadow-lg shadow-primary/20",children:s.jsx(Hs,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:230",className:"h-6 w-6"})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:230",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:230",className:"mb-2 flex flex-wrap gap-2",children:[s.jsx(Pn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:230",variant:"secondary",children:"IATA"}),s.jsx(Pn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:230",variant:"secondary",children:"BSP Control"}),s.jsx(Pn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:230",variant:"outline",children:"Fare Audit"})]}),s.jsx("h2",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:230",className:"font-display text-2xl font-bold",children:Gt(e,"Ø¯ÙØªØ± Ø§ÙØªØ°Ø§Ùر ÙÙ
ØØ§Ø³Ø¨Ø© Ø§ÙØ·ÙراÙ","Ticketing & aviation accounting")}),s.jsx("p",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:230",className:"mt-1 max-w-3xl text-sm leading-6 text-muted-foreground",children:Gt(e,"ÙØµÙ Ø§ÙØ£Ø¬Ø±Ø© ÙØ§Ùضرائب ÙØ±Ø³ÙÙ
Ø§ÙØ®Ø¯Ù
Ø© ÙØ¹Ù
ÙÙØ© اÙÙÙØ§ÙØ©Ø ÙÙ
تابعة صاÙÙ Ø§ÙØªØÙÙÙ ÙÙÙØ§ÙÙ ÙØØ§ÙØ© Ø§ÙØªØ³ÙÙØ© دÙÙ ÙØ´Ù ØÙÙÙ Ù
اÙÙØ© ÙØºÙر اÙÙ
ØµØ±Ø ÙÙÙ
.","Separate fare, taxes, service fee and agency commission; track net carrier remittance and reconciliation without exposing restricted financial fields.")})]})]}
1620),T?s.jsxs(Ie,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:230",className:"h-11",onClick:()=>o(!0),children:[s.jsx(oa,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:230",className:"h-4 w-4"}),Gt(e,"إصدار Ù
Ø³ØªÙØ¯ جÙÙ","Issue air document")]}):s.jsxs(Pn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:230",variant:"outline",className:"w-fit",children:[s.jsx(sa,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:230",className:"h-4 w-4"}),Gt(e,"عرض تشغÙÙÙ ÙÙØ·","Operational view only")]})]})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:233",className:"grid gap-4 sm:grid-cols-2 xl:grid-cols-4",children:[s.jsx(bg,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:234",icon:s.jsx(TT,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:234",className:"h-5 w-5"}),label:Gt(e,"اÙÙ
Ø³ØªÙØ¯Ø§Øª Ø§ÙØ¬ÙÙØ©","Air documents"),value:String(A.length)}),s.jsx(bg,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:235",icon:s.jsx(GU,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:235",className:"h-5 w-5"}),label:Gt(e,"Ø¨Ø§ÙØªØ¸Ø§Ø± Ø§ÙØªØ³ÙÙØ©","Awaiting settlement"),value:String(A.filter(W=>W.settlementStatus==="unsettled").length),tone:"warning"}),b?s.jsx(bg,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:236",icon:s.jsx(Lre,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:236",className:"h-5 w-5"}),label:Gt(e,"صاÙÙ BSP","Net BSP exposure"),value:$1(A.reduce((W,J)=>W+(J.bspRemittanceAmount||0),0),"JOD",e)}):s.jsx(bg,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:236",icon:s.jsx(sa,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:236",className:"h-5 w-5"}),label:Gt(e,"ØÙÙÙ Ø§ÙØªÙÙÙØ©","Cost fields"),value:Gt(e,"Ù
ØØ¬Ùبة","Restricted")}),y?s.jsx(bg,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:237",icon:s.jsx(Cd,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:237",className:"h-5 w-5"}),label:Gt(e,"دخ٠اÙÙÙØ§ÙØ©","Agency income"),value:$1(A.reduce((W,J)=>W+(J.profit||0),0),"JOD",e)}):s.jsx(bg,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:237",icon:s.jsx(sa,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:237",className:"h-5 w-5"}),label:Gt(e,"ØÙÙ Ø§ÙØ±Ø¨Ø","Profit field"),value:Gt(e,"Ù
ØØ¬Ùب","Restricted")})]}),s.jsxs(kn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:240",children:[s.jsx(Xr,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:241",className:"border-b bg-muted/20",children:s.jsxs("div",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:241",className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[s.jsxs(Qr,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:241",className:"flex items-center gap-2 font-display",children:[s.jsx(v3,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:241",className:"h-5 w-5 text-primary"}),Gt(e,"سج٠اÙÙ
Ø³ØªÙØ¯Ø§Øª","Document register")]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:241",className:"relative sm:w-80",children:[s.jsx(so,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:241",className:"absolute start-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:241",className:"ps-9",value:d,onChange:W=>m(W.target.value),placeholder:Gt(e,"Ø¨ØØ« Ø¨Ø§ÙØªØ°Ùرة Ø£Ù Ø§ÙØ±Ø§Ùب Ø£Ù PNR","Search ticket, passenger or PNR")})]})]})}),s.jsx(Un,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"p-0",children:n.isLoading||r.isLoading?s.jsx("div",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"flex justify-center py-20",children:s.jsx(ft,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"h-7 w-7 animate-spin text-primary"})}):I.length?s.jsx("div",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"overflow-x-auto",children:s.jsxs("table",{"data-loc":"client/src/components/
1620accounting/TicketsTab.tsx:242",className:"w-full min-w-[980px] text-sm",children:[s.jsx("thead",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"bg-muted/40 text-muted-foreground",children:s.jsxs("tr",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",children:[s.jsx("th",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"px-4 py-3 text-start font-medium",children:Gt(e,"اÙÙ
Ø³ØªÙØ¯","Document")}),s.jsx("th",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"px-4 py-3 text-start font-medium",children:Gt(e,"Ø§ÙØ±Ø§Ùب / PNR","Passenger / PNR")}),s.jsx("th",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"px-4 py-3 text-start font-medium",children:Gt(e,"اÙÙ
سار","Route")}),b&&s.jsx("th",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"px-4 py-3 text-end font-medium",children:Gt(e,"أجرة + ضرائب","Fare + taxes")}),w&&s.jsx("th",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"px-4 py-3 text-end font-medium",children:Gt(e,"Ø§ÙØ¨Ùع","Sale")}),y&&s.jsx("th",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"px-4 py-3 text-end font-medium",children:Gt(e,"دخ٠اÙÙÙØ§ÙØ©","Agency income")}),s.jsx("th",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"px-4 py-3 text-start font-medium",children:Gt(e,"Ø§ÙØªØ³ÙÙØ©","Settlement")}),s.jsx("th",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"px-4 py-3 text-center font-medium",children:Gt(e,"اÙÙ
Ø³ØªÙØ¯","Document")})]})}),s.jsx("tbody",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",children:I.map(W=>s.jsxs("tr",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"border-t transition-colors hover:bg-muted/25",children:[s.jsxs("td",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"px-4 py-4",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"text-start font-mono text-xs font-semibold",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",children:W.ticketNumber})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"mt-2 flex gap-1",children:[s.jsx(Pn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",variant:"outline",children:W.airDocumentType?.toUpperCase()||"TKT"}),s.jsx(Pn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",variant:"secondary",children:Gt(e,...U[W.status]||[W.status,W.status])})]})]}),s.jsxs("td",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"px-4 py-4",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"font-semibold",children:W.passengerName}),s.jsx("p",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"mt-1 text-start font-mono text-xs text-muted-foreground",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",children:W.pnr||"â"})})]}),s.jsxs("td",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"px-4 py-4",children:[s.jsxs("p",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"text-start font-bold text-primary",dir:"ltr",children:[s.jsx("bdi",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",children:W.origin||"â"})," ",s.jsx("span",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"mx-1 text-muted-foreground",children:"â"})," ",s.jsx("bdi",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",children:W.destination||"â"})]}),s.jsxs("p",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"mt-1 text-start text-xs text-muted-foreground",dir:"ltr",children:[s.jsx("bdi",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",children:W.validatingCarrier||W.carrier||"â"}
1620)," · ",s.jsx("bdi",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",children:W.flightNumber||"â"})]})]}),b&&s.jsx("td",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"px-4 py-4 text-end tabular-nums",dir:"ltr",children:s.jsxs("bdi",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"font-semibold",children:[Ab((W.fare||0)+(W.taxes||0),e)," ",W.currency]})}),w&&s.jsx("td",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"px-4 py-4 text-end font-semibold tabular-nums",dir:"ltr",children:s.jsxs("bdi",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",children:[Ab(W.salePrice,e)," ",W.currency]})}),y&&s.jsx("td",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"px-4 py-4 text-end font-bold tabular-nums text-emerald-600",dir:"ltr",children:s.jsxs("bdi",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",children:[Ab(W.profit,e)," ",W.currency]})}),s.jsxs("td",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"px-4 py-4",children:[s.jsx(Pn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",variant:W.settlementStatus==="reconciled"?"default":"outline",children:Gt(e,...O[W.settlementStatus]||[W.settlementStatus,W.settlementStatus])}),s.jsx("p",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"mt-2 text-start text-xs text-muted-foreground",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",children:String(W.settlementType||"non_bsp").toUpperCase()})})]}),s.jsx("td",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"px-4 py-4 text-center",children:s.jsx(Ie,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",size:"icon",variant:"ghost",onClick:()=>l(W),"aria-label":Gt(e,"Ù
عاÙÙØ©","Preview"),children:s.jsx(Gi,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"h-4 w-4"})})})]},W.id))})]})}):s.jsxs("div",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"py-16 text-center",children:[s.jsx(TT,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"mx-auto h-10 w-10 text-muted-foreground/40"}),s.jsx("p",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:242",className:"mt-3 text-sm text-muted-foreground",children:Gt(e,"ÙØ§ ØªÙØ¬Ø¯ Ù
Ø³ØªÙØ¯Ø§Øª Ù
Ø·Ø§Ø¨ÙØ©.","No matching documents.")})]})})]}),s.jsx(Ba,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:245",open:i,onOpenChange:o,children:s.jsxs(Fa,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:246",className:"max-h-[92vh] max-w-5xl overflow-y-auto",dir:e==="ar"?"rtl":"ltr",children:[s.jsx(as,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:247",children:s.jsx(Ua,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:247",className:"font-display text-xl",children:Gt(e,"إصدار Ù
Ø³ØªÙØ¯ جÙÙ ÙØªØ³Ø¬ÙÙÙ Ù
اÙÙØ§Ù","Issue and account for air document")})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:248",className:"space-y-6 py-2",children:[s.jsxs(JN,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:249",title:Gt(e,"اÙÙ
Ø³ØªÙØ¯ ÙØ§ÙØ±Ø§ÙØ¨","Document & passenger"),icon:s.jsx(TT,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:249",className:"h-4 w-4"}),children:[s.jsx(go,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:250",label:Gt(e,"رÙÙ
Ø§ÙØªØ°Ùرة *","Ticket number *"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:250",dir:"ltr",className:"text-left",value:h.ticketNumber,onChange:W=>x({...h,ticketNumber:W.target.value}),placeholder:"TKT-2026-000001"})}),s.jsx(go,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:251",label:Gt(e,"ÙÙØ¹ اÙÙ
Ø³ØªÙØ¯","Document type"),children:s.jsxs(qn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:251",value:h.airDocumentType,onValueChange:W=>x({...h,airDocumentType:W}
1620),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:251",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:251"})}),s.jsxs(Wn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:251",children:[s.jsx(At,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:251",value:"ticket",children:"TICKET"}),s.jsx(At,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:251",value:"emd",children:"EMD"}),s.jsx(At,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:251",value:"adm",children:"ADM"}),s.jsx(At,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:251",value:"acm",children:"ACM"}),s.jsx(At,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:251",value:"other",children:"OTHER"})]})]})}),s.jsx(go,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:252",label:Gt(e,"اسÙ
Ø§ÙØ±Ø§Ùب *","Passenger name *"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:252",value:h.passengerName,onChange:W=>x({...h,passengerName:W.target.value})})}),s.jsx(go,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:253",label:"PNR",children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:253",dir:"ltr",className:"text-left",value:h.pnr,onChange:W=>x({...h,pnr:W.target.value.toUpperCase()}),maxLength:20})}),s.jsx(go,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:254",label:Gt(e,"Ø§ÙØªØ°Ùرة Ø§ÙØ£ØµÙÙØ© / إعادة Ø§ÙØ¥ØµØ¯Ø§Ø±","Original / reissued ticket"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:254",dir:"ltr",className:"text-left",value:h.originalTicketNumber,onChange:W=>x({...h,originalTicketNumber:W.target.value})})}),s.jsx(go,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:255",label:Gt(e,"اÙÙ
ÙØ¹Ø¯ اÙÙÙØ§Ø¦Ù ÙÙØ¥Ùغاء","Void deadline"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:255",type:"datetime-local",dir:"ltr",value:h.voidDeadline,onChange:W=>x({...h,voidDeadline:W.target.value})})})]}),s.jsxs(JN,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:258",title:Gt(e,"اÙÙ
سار ÙØ§ÙÙØ§ÙÙ","Route & carrier"),icon:s.jsx(Hs,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:258",className:"h-4 w-4"}),children:[s.jsx(go,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:259",label:Gt(e,"Ù
طار اÙÙ
غادرة *","Origin airport *"),children:s.jsxs(qn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:259",value:h.originAirportId,onValueChange:W=>x({...h,originAirportId:W}),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:259",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:259",placeholder:"IATA"})}),s.jsx(Wn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:259",children:E.map(W=>s.jsx(At,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:259",value:String(W.id),children:s.jsxs("span",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:259",className:"inline-flex items-baseline gap-2",children:[s.jsx("bdi",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:259",dir:"ltr",children:W.iataCode}),s.jsx("span",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:259","aria-hidden":"true",children:"â"}),s.jsx("span",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:259",dir:e==="ar"?"rtl":"ltr",children:Gt(e,W.nameAr,W.nameEn)})]})},W.id))})]})}),s.jsx(go,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:260",label:Gt(e,"Ù
طار اÙÙØµÙÙ *","Destination airport *"),children:s.jsxs(qn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:260",value:h.destinationAirportId,onValueChange:W=>x({...h,destinationAirportId:W}),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:260",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:260",placeholder:"IATA"})}),s.jsx(Wn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:260",children:E.map(W=>
1620s.jsx(At,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:260",value:String(W.id),children:s.jsxs("span",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:260",className:"inline-flex items-baseline gap-2",children:[s.jsx("bdi",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:260",dir:"ltr",children:W.iataCode}),s.jsx("span",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:260","aria-hidden":"true",children:"â"}),s.jsx("span",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:260",dir:e==="ar"?"rtl":"ltr",children:Gt(e,W.nameAr,W.nameEn)})]})},W.id))})]})}),s.jsx(go,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:261",label:Gt(e,"اÙÙØ§Ù٠اÙÙ
عتÙ
د *","Validating carrier *"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:261",dir:"ltr",className:"text-left",value:h.validatingCarrier,onChange:W=>x({...h,validatingCarrier:W.target.value.toUpperCase().slice(0,3)}),placeholder:"RJ"})}),s.jsx(go,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:262",label:Gt(e,"اسÙ
اÙÙØ§ÙÙ","Carrier name"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:262",value:h.carrier,onChange:W=>x({...h,carrier:W.target.value})})}),s.jsx(go,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:263",label:Gt(e,"رÙÙ
Ø§ÙØ±ØÙØ©","Flight number"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:263",dir:"ltr",className:"text-left",value:h.flightNumber,onChange:W=>x({...h,flightNumber:W.target.value.toUpperCase()})})}),s.jsx(go,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:264",label:Gt(e,"اÙÙ
غادرة","Departure"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:264",type:"datetime-local",dir:"ltr",value:h.departDate,onChange:W=>x({...h,departDate:W.target.value})})}),s.jsx(go,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:265",label:Gt(e,"Ø§ÙØ¹Ùدة","Return"),children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:265",type:"datetime-local",dir:"ltr",value:h.returnDate,onChange:W=>x({...h,returnDate:W.target.value})})}),s.jsx(go,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:266",label:Gt(e,"Ø§ÙØ¹Ù
ÙØ©","Currency"),children:s.jsxs(qn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:266",value:h.currency,onValueChange:W=>x({...h,currency:W}),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:266",dir:"ltr",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:266"})}),s.jsx(Wn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:266",dir:"ltr",children:["JOD","USD","EUR","SAR","AED"].map(W=>s.jsx(At,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:266",value:W,children:W},W))})]})})]}),s.jsxs(JN,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:269",title:Gt(e,"ØªÙØµÙÙ Ø§ÙØ£Ø¬Ø±Ø© ÙØ§ÙÙÙØ¯","Fare construction & posting"),icon:s.jsx(Cd,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:269",className:"h-4 w-4"}),children:[s.jsx(q1,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:270",label:Gt(e,"Ø§ÙØ£Ø¬Ø±Ø© Ø§ÙØ£Ø³Ø§Ø³ÙØ©","Base fare"),value:h.fare,onChange:W=>x({...h,fare:W})}),s.jsx(q1,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:271",label:Gt(e,"Ø§ÙØ¶Ø±Ø§Ø¦Ø¨","Taxes"),value:h.taxes,onChange:W=>x({...h,taxes:W})}),s.jsx(q1,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:272",label:Gt(e,"رسÙÙ
خدÙ
Ø© اÙÙÙØ§ÙØ©","Agency service fee"),value:h.serviceFee,onChange:W=>x({...h,serviceFee:W})}),s.jsx(q1,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:273",label:Gt(e,"عÙ
ÙÙØ© اÙÙÙØ§ÙØ©","Agency commission"),value:h.commission,onChange:W=>x({...h,commission:W})}),s.jsx(q1,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:274",label:Gt(e,"ÙØ±Ù إعادة Ø§ÙØ¥ØµØ¯Ø§Ø±","Reissue difference"),value:h.reissueDifference,onChange:W=>x({...h,reissueDifference:W})}
1620),s.jsx(go,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:275",label:Gt(e,"طرÙÙØ© Ø§ÙØªØ³ÙÙØ©","Settlement method"),children:s.jsxs(qn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:275",value:h.settlementType,onValueChange:W=>x({...h,settlementType:W}),children:[s.jsx(Jn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:275",children:s.jsx(Gn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:275"})}),s.jsxs(Wn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:275",children:[s.jsx(At,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:275",value:"bsp",children:"BSP"}),s.jsx(At,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:275",value:"non_bsp",children:"NON-BSP"}),s.jsx(At,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:275",value:"direct",children:"DIRECT"}),s.jsx(At,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:275",value:"cash",children:"CASH"})]})]})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:276",className:"sm:col-span-2 grid gap-3 rounded-xl border bg-background p-4 sm:grid-cols-3",children:[s.jsx(WN,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:276",label:Gt(e,"صاÙ٠تÙÙÙØ© اÙÙØ§ÙÙ","Net carrier cost"),value:$1(S,h.currency,e)}),s.jsx(WN,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:276",label:Gt(e,"إجÙ
اÙÙ Ø§ÙØ¹Ù
ÙÙ","Customer total"),value:$1(R,h.currency,e)}),s.jsx(WN,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:276",label:Gt(e,"دخ٠اÙÙÙØ§ÙØ©","Agency income"),value:$1(L,h.currency,e),positive:!0})]})]})]}),s.jsxs(ei,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:279",children:[s.jsx(Ie,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:279",variant:"outline",onClick:()=>o(!1),children:Gt(e,"Ø¥ÙØºØ§Ø¡","Cancel")}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:279",onClick:_,disabled:F.isPending,children:[F.isPending?s.jsx(ft,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:279",className:"h-4 w-4 animate-spin"}):s.jsx(_d,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:279",className:"h-4 w-4"}),Gt(e,"إصدار ÙØªØ³Ø¬ÙÙ","Issue & post")]})]})]})}),s.jsx(u6,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:283",open:!!c,onClose:()=>l(null),title:Gt(e,`ØªØ°ÙØ±Ø© â${c?.ticketNumber||""}â`,`Ticket ${c?.ticketNumber||""}`),htmlContent:c?rye(c,e):"",lang:e,emailSubject:Gt(e,`ØªØ°ÙØ±Ø© â${c?.ticketNumber||""}â â IBRIX`,`Ticket ${c?.ticketNumber||""} â IBRIX`),customerEmail:c?.customerEmail,customerName:c?.passengerName})]})}function bg({icon:e,label:t,value:n,tone:a}){return s.jsx(kn,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:289",children:s.jsxs(Un,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:289",className:"flex items-center gap-4 p-4",children:[s.jsx("div",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:289",className:`flex h-10 w-10 items-center justify-center rounded-xl ${a==="warning"?"bg-amber-500/10 text-amber-600":"bg-primary/10 text-primary"}`,children:e}),s.jsxs("div",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:289",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:289",className:"text-xs text-muted-foreground",children:t}),s.jsx("p",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:289",className:"mt-1 text-lg font-bold tabular-nums",children:n})]})]})})}function JN({title:e,icon:t,children:n}){return s.jsxs("section",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:292",className:"rounded-2xl border bg-muted/10 p-4",children:[s.jsxs("h3",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:292",className:"mb-4 flex items-center gap-2 font-semibold text-primary",children:[t,e]}),s.jsx("div",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:292",className:"grid gap-4 sm:grid-cols-2",children:n})]})}function go({label:e,children:t}
1620){return s.jsxs("div",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:294",className:"space-y-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:294",children:e}),t]})}function q1({label:e,value:t,onChange:n}){return s.jsx(go,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:295",label:e,children:s.jsx(Ee,{"data-loc":"client/src/components/accounting/TicketsTab.tsx:295",type:"number",dir:"ltr",min:0,value:t,onChange:a=>n(Math.max(0,Number(a.target.value)||0)),className:"text-left tabular-nums"})})}function WN({label:e,value:t,positive:n}){return s.jsxs("div",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:296",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:296",className:"text-xs text-muted-foreground",children:e}),s.jsx("p",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:296",className:`mt-1 text-start text-lg font-bold tabular-nums ${n?"text-emerald-600":""}`,dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/TicketsTab.tsx:296",children:t})})]})}const ja=(e,t,n)=>e==="ar"?t:n,hM=(e,t,n)=>new Intl.NumberFormat(n==="ar"?"ar-JO":"en-JO",{style:"currency",currency:t,minimumFractionDigits:2,maximumFractionDigits:2}).format(e||0),oye=(e,t)=>new Intl.NumberFormat(t==="ar"?"ar-JO":"en-JO").format(e||0),YN={hotel:{ar:"ÙÙØ¯Ù",en:"Hotel"},transport:{ar:"ÙÙÙ",en:"Transport"},guide:{ar:"Ù
رشد",en:"Guide"},tour:{ar:"جÙÙØ©",en:"Tour"},flight:{ar:"Ø·ÙØ±Ø§Ù",en:"Flight"}},XN={issued:{ar:"صادرة",en:"Issued"},confirmed:{ar:"Ù
Ø¤ÙØ¯Ø©",en:"Confirmed"},used:{ar:"Ù
ستخدÙ
Ø©",en:"Used"},cancelled:{ar:"Ù
ÙØºØ§Ø©",en:"Cancelled"}};function cye({lang:e}){const t=Pe.useUtils(),{data:n,isLoading:a}=Pe.accounting.vouchers.list.useQuery(),{data:r}=Pe.accounting.suppliers.list.useQuery(),[i,o]=k.useState(!1),[c,l]=k.useState(null),[d,m]=k.useState({voucherNumber:"",type:"hotel",supplierId:"",customerName:"",serviceDescription:"",serviceDate:"",serviceEndDate:"",pax:1,units:1,ratePerUnit:0,currency:"JOD",notes:""}),h=Pe.accounting.vouchers.create.useMutation({onSuccess:()=>{t.accounting.vouchers.list.invalidate(),Le.success(ja(e,"تÙ
Ø¥ÙØ´Ø§Ø¡ اÙÙØ³ÙÙ
Ø©","Voucher created")),o(!1),m({voucherNumber:"",type:"hotel",supplierId:"",customerName:"",serviceDescription:"",serviceDate:"",serviceEndDate:"",pax:1,units:1,ratePerUnit:0,currency:"JOD",notes:""})},onError:b=>Le.error(b.message)}),x=d.units*d.ratePerUnit,f={issued:"bg-blue-100 text-blue-700 dark:bg-blue-900 dark:text-blue-300",confirmed:"bg-emerald-100 text-emerald-700 dark:bg-emerald-900 dark:text-emerald-300",used:"bg-gray-100 text-gray-600 dark:bg-gray-800 dark:text-gray-400",cancelled:"bg-red-100 text-red-700 dark:bg-red-900 dark:text-red-300"};return s.jsxs("div",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:52",className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:53",className:"flex items-center justify-between",children:[s.jsx("h3",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:54",className:"font-display text-lg font-bold",children:ja(e,"اÙÙØ³Ø§Ø¦Ù
","Vouchers")}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:55",size:"sm",onClick:()=>o(!0),children:[s.jsx(oa,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:55",className:"w-4 h-4 mx-1.5"}),ja(e,"ÙØ³ÙÙ
Ø© Ø¬Ø¯ÙØ¯Ø©","New Voucher")]})]}),a?s.jsx("div",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:57",className:"flex justify-center py-12",children:s.jsx(ft,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:57",className:"w-6 h-6 animate-spin text-primary"})}):n?.length?s.jsx("div",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:60",className:"overflow-x-auto rounded-lg border border-border",children:s.jsxs("table",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:61",className:"w-full text-sm",children:[s.jsx("thead",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:62",className:"bg-muted/50",children:s.jsxs("tr",{"data-loc":"client/src/components/
1620accounting/VouchersTab.tsx:62",className:"text-start",children:[s.jsx("th",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:63",className:"px-4 py-3 font-medium",children:ja(e,"رÙÙ
اÙÙØ³ÙÙ
Ø©","Voucher #")}),s.jsx("th",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:64",className:"px-4 py-3 font-medium",children:ja(e,"اÙÙÙØ¹","Type")}),s.jsx("th",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:65",className:"px-4 py-3 font-medium",children:ja(e,"Ø§ÙØ¹Ù
ÙÙ","Customer")}),s.jsx("th",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:66",className:"px-4 py-3 font-medium",children:ja(e,"Ø§ÙØªØ§Ø±ÙØ®","Date")}),s.jsx("th",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:67",className:"px-4 py-3 font-medium",children:ja(e,"Ø§ÙØ±Ùاب","PAX")}),s.jsx("th",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:68",className:"px-4 py-3 font-medium",children:ja(e,"Ø§ÙØªÙÙÙØ©","Cost")}),s.jsx("th",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:69",className:"px-4 py-3 font-medium",children:ja(e,"Ø§ÙØØ§ÙØ©","Status")}),s.jsx("th",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:70",className:"px-4 py-3 text-center font-medium",children:ja(e,"اÙÙ
Ø³ØªÙØ¯","Document")})]})}),s.jsx("tbody",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:72",children:n.map(b=>s.jsxs("tr",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:74",className:"border-t border-border hover:bg-muted/30",children:[s.jsx("td",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:75",className:"px-4 py-3 font-medium",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:75",children:b.voucherNumber})}),s.jsx("td",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:76",className:"px-4 py-3",children:YN[b.type]?ja(e,YN[b.type].ar,YN[b.type].en):b.type}),s.jsx("td",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:77",className:"px-4 py-3",dir:"auto",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:77",children:b.customerName})}),s.jsx("td",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:78",className:"px-4 py-3 text-muted-foreground",dir:"ltr",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:78",children:b.serviceDate||"â"})}),s.jsx("td",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:79",className:"px-4 py-3",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:79",children:oye(b.pax,e)})}),s.jsx("td",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:80",className:"px-4 py-3",dir:"auto",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:80",children:hM(b.totalCost,b.currency,e)})}),s.jsx("td",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:81",className:"px-4 py-3",children:s.jsx("span",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:81",className:`px-2 py-1 rounded-full text-xs ${f[b.status]}`,children:XN[b.status]?ja(e,XN[b.status].ar,XN[b.status].en):b.status})}),s.jsx("td",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:82",className:"px-4 py-3 text-center",children:s.jsxs(Ie,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:82",type:"button",variant:"outline",size:"sm",onClick:()=>l(b),children:[s.jsx(Gi,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:82",className:"h-4 w-4"}),ja(e,"Ù
عاÙÙØ©","Preview")]})})]},b.id))})]})}):s.jsx(kn,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:58",children:s.jsxs(Un,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:58",className:"py-12 text-center text-muted-foreground",children:[s.jsx(qU,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:58",className:"w-10 h-10 mx-auto mb-3 opacity-40"}),ja(e,"ÙØ§ ØªÙØ¬Ø¯ ÙØ³Ø§Ø¦Ù
بعد","No vouchers yet")]})}),s.jsx(Ba,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:89",open:i,onOpenChange:o,children:s.jsxs(Fa,{"data-loc":"client/src/components/
1620accounting/VouchersTab.tsx:90",className:"max-w-2xl max-h-[90vh] overflow-y-auto",children:[s.jsx(as,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:91",children:s.jsx(Ua,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:91",children:ja(e,"Ø¥ÙØ´Ø§Ø¡ ÙØ³ÙÙ
Ø©","Create Voucher")})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:92",className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:93",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:93",children:ja(e,"رÙÙ
اÙÙØ³ÙÙ
Ø©","Voucher Number")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:93",dir:"ltr",className:"text-left",value:d.voucherNumber,onChange:b=>m({...d,voucherNumber:b.target.value}),placeholder:"VCH-2026-000001"})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:94",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:94",children:ja(e,"اÙÙÙØ¹","Type")}),s.jsxs("select",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:94",className:"w-full h-9 rounded-md border border-input bg-background px-3 text-sm",value:d.type,onChange:b=>m({...d,type:b.target.value}),children:[s.jsx("option",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:94",value:"hotel",children:ja(e,"ÙÙØ¯Ù","Hotel")}),s.jsx("option",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:94",value:"transport",children:ja(e,"ÙÙÙ","Transport")}),s.jsx("option",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:94",value:"guide",children:ja(e,"Ù
رشد","Guide")}),s.jsx("option",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:94",value:"tour",children:ja(e,"جÙÙØ©","Tour")}),s.jsx("option",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:94",value:"flight",children:ja(e,"Ø·ÙØ±Ø§Ù","Flight")})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:95",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:95",children:ja(e,"اÙÙ
ÙØ±Ø¯","Supplier")}),s.jsxs("select",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:95",className:"w-full h-9 rounded-md border border-input bg-background px-3 text-sm",value:d.supplierId,onChange:b=>m({...d,supplierId:b.target.value}),children:[s.jsx("option",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:95",value:"",children:"â"}),r?.map(b=>s.jsx("option",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:95",value:b.id,children:b.name},b.id))]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:96",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:96",children:ja(e,"اسÙ
Ø§ÙØ¹Ù
ÙÙ","Customer Name")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:96",value:d.customerName,onChange:b=>m({...d,customerName:b.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:97",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:97",children:ja(e,"ØªØ§Ø±ÙØ® Ø§ÙØ®Ø¯Ù
Ø©","Service Date")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:97",dir:"ltr",className:"text-left",type:"date",value:d.serviceDate,onChange:b=>m({...d,serviceDate:b.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:98",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:98",children:ja(e,"ØªØ§Ø±ÙØ® Ø§ÙØ§ÙØªÙØ§Ø¡","End Date")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:98",dir:"ltr",className:"text-left",type:"date",value:d.serviceEndDate,onChange:b=>m({...d,serviceEndDate:b.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:99",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:99",children:ja(e,"عدد Ø§ÙØ±Ùاب","PAX")}
1620),s.jsx(Ee,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:99",dir:"ltr",className:"text-left",type:"number",value:d.pax,onChange:b=>m({...d,pax:Number(b.target.value)})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:100",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:100",children:ja(e,"اÙÙØØ¯Ø§Øª","Units")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:100",dir:"ltr",className:"text-left",type:"number",value:d.units,onChange:b=>m({...d,units:Number(b.target.value)})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:101",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:101",children:ja(e,"Ø§ÙØ³Ø¹Ø± ÙÙÙØØ¯Ø©","Rate per Unit")}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:101",dir:"ltr",className:"text-left",type:"number",value:d.ratePerUnit,onChange:b=>m({...d,ratePerUnit:Number(b.target.value)})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:102",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:102",children:ja(e,"Ø§ÙØ¹Ù
ÙØ©","Currency")}),s.jsxs("select",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:102",dir:"ltr",className:"w-full h-9 rounded-md border border-input bg-background px-3 text-left text-sm",value:d.currency,onChange:b=>m({...d,currency:b.target.value}),children:[s.jsx("option",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:102",value:"JOD",children:"JOD"}),s.jsx("option",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:102",value:"USD",children:"USD"}),s.jsx("option",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:102",value:"SAR",children:"SAR"})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:103",className:"col-span-2",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:103",children:ja(e,"ÙØµÙ Ø§ÙØ®Ø¯Ù
Ø©","Service Description")}),s.jsx(es,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:103",value:d.serviceDescription,onChange:b=>m({...d,serviceDescription:b.target.value}),rows:2})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:104",className:"col-span-2 flex justify-between items-center pt-2 border-t",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:104",className:"text-sm text-muted-foreground",children:ja(e,"إجÙ
اÙÙ Ø§ÙØªÙÙÙØ©","Total Cost")}),s.jsx("span",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:104",className:"font-bold text-lg",dir:"auto",children:s.jsx("bdi",{"data-loc":"client/src/components/accounting/VouchersTab.tsx:104",children:hM(x,d.currency,e)})})]})]}),s.jsxs(ei,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:106",children:[s.jsx(Ie,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:107",variant:"outline",onClick:()=>o(!1),children:ja(e,"Ø¥ÙØºØ§Ø¡","Cancel")}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:108",onClick:()=>h.mutate({...d,supplierId:d.supplierId?Number(d.supplierId):null,totalCost:x,bookingId:null,invoiceId:null,serviceDescription:d.serviceDescription||null,serviceDate:d.serviceDate||null,serviceEndDate:d.serviceEndDate||null,notes:d.notes||null}),disabled:h.isPending,children:[h.isPending&&s.jsx(ft,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:108",className:"w-4 h-4 mx-1.5 animate-spin"}),ja(e,"Ø¥ÙØ´Ø§Ø¡","Create")]})]})]})}),s.jsx(u6,{"data-loc":"client/src/components/accounting/VouchersTab.tsx:112",open:!!c,onClose:()=>l(null),title:ja(e,`ÙØ³ÙÙ
Ø© â${c?.voucherNumber||""}â`,`Voucher ${c?.voucherNumber||""}`),htmlContent:c?ove(c,e):"",lang:e,emailSubject:ja(e,`ÙØ³ÙÙ
Ø© خدÙ
ات â${c?.voucherNumber||""}â â IBRIX`,`Service Voucher ${c?.voucherNumber||""} â IBRIX`),customerName:c?.customerName})]})}function lye({lang:e}){const t=e==="ar",n=Pe.visa.admin.complianceSummary.useQuery(void 0,{retry:!1}),a=n.data,r=(c,l)=>t?c:l,i=c=>c?new Intl.DateTimeFormat(t?"ar-JO":"en-GB",{dateStyle:"medium"}).format(new Date(c)):r("ØºÙØ± Ù
ÙØ«Ù","Unverified"),o=[[r("إجÙ
اÙ٠اÙÙÙØ§Ø¹Ø¯","Total rules"),a?.totals.total??"â","text-cyan-300",sa],[r("Ù
ÙØ«ÙØ©","Verified"),a?.totals.verified??"â","text-emerald-300",sa],[r("ÙØ±Ùبة اÙÙ
راجعة","Review due"),a?.totals.reviewDue??"â","text-amber-300",X0],[r("Ù
ØØ¬Ùبة","Blocked"),a?.totals.blocked??"â","text-rose-300",gb]];
1620return s.jsxs("div",{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:16",dir:t?"rtl":"ltr",className:"space-y-5 p-4 md:p-6",children:[s.jsxs("section",{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:17",className:"flex flex-col gap-4 rounded-2xl border border-cyan-300/15 bg-cyan-300/[0.05] p-5 md:flex-row md:items-center md:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:18",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:18",className:"text-xs font-semibold tracking-[0.18em] text-cyan-300",children:"IBRIX / VISA COMPLIANCE"}),s.jsx("h2",{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:18",className:"mt-2 text-xl font-semibold text-white",children:r("اÙ
تثا٠ÙÙØ§Ø¹Ø¯ Ø§ÙØªØ£Ø´Ùرات","Visa rule compliance")}),s.jsx("p",{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:18",className:"mt-2 max-w-2xl text-sm leading-6 text-slate-400",children:r(`تذÙÙØ± Ù
راجعة ÙØ¨Ù ${a?.reviewWindowDays??7} Ø£ÙØ§Ù
Ù
Ù Ø§ÙØªÙاء ØµÙØ§ØÙØ© Ø§ÙØªØÙÙ. اÙÙÙØ§Ø¹Ø¯ ØºÙØ± اÙÙ
ÙØ«ÙØ© ÙØ§ ØªÙØªØ Ø·ÙØ¨Ø§Øª ÙÙØ§ÙØ©.`,`Review reminder ${a?.reviewWindowDays??7} days before verification expiry. Unverified rules cannot open agency applications.`)})]}),s.jsxs("span",{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:19",className:"inline-flex items-center gap-2 self-start rounded-full border border-cyan-300/20 bg-cyan-300/10 px-3 py-1.5 text-xs font-medium text-cyan-100",children:[s.jsx(sa,{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:19",className:"h-4 w-4"}),r("ØÙÙÙ
Ø© Ù
ÙØ¹ÙØ©","Governed")]})]}),s.jsx("section",{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:21",className:"grid gap-3 sm:grid-cols-2 xl:grid-cols-4",children:o.map(([c,l,d,m])=>s.jsxs("div",{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:21",className:"rounded-2xl border border-white/[0.07] bg-white/[0.03] p-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:21",className:"flex items-center justify-between",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:21",className:"text-xs text-slate-500",children:c}),s.jsx(m,{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:21",className:`h-4 w-4 ${d}`})]}),s.jsx("p",{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:21",className:"mt-3 text-2xl font-semibold text-white",children:l})]},c))}),s.jsxs("section",{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:22",className:"overflow-hidden rounded-2xl border border-white/[0.07] bg-white/[0.025]",children:[s.jsx("div",{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:23",className:"border-b border-white/[0.07] px-5 py-4",children:s.jsx("p",{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:23",className:"text-sm font-semibold text-white",children:r("سج٠اÙÙÙØ§Ø¹Ø¯","Rule register")})}),s.jsx("div",{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:24",className:"divide-y divide-white/[0.06]",children:n.isLoading?s.jsx("p",{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:24",className:"p-6 text-sm text-slate-500",children:r("جار٠تØÙ
ÙÙ ØØ§ÙØ© Ø§ÙØ§Ù
تثاÙâ¦","Loading compliance statusâ¦")}):a?.rules.map(c=>s.jsxs("div",{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:24",className:"flex flex-col gap-3 p-4 md:flex-row md:items-center md:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:24",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:24",className:"flex items-center gap-2",children:[s.jsxs("p",{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:24",className:"font-medium text-white",children:[c.destinationCode," / ",c.travelerProfileCode]}
1620),c.blocked&&s.jsx("span",{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:24",className:"rounded-full bg-rose-300/10 px-2 py-0.5 text-[10px] font-semibold text-rose-200",children:r("Ù
ØØ¬Ùبة","Blocked")}),c.reviewDue&&s.jsx("span",{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:24",className:"rounded-full bg-amber-300/10 px-2 py-0.5 text-[10px] font-semibold text-amber-200",children:r("Ù
راجعة","Review")})]}),s.jsxs("p",{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:24",className:"mt-1 text-xs text-slate-500",children:[c.sourceName||r("ÙØ§ ÙÙØ¬Ø¯ Ù
صدر Ù
ÙØ«Ù","No verified source")," · ",r("آخر تØÙÙ","Last verified"),": ",i(c.lastVerifiedAt)]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:24",className:"flex items-center gap-3 text-xs text-slate-400",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:24",children:c.ageDays===null?r("ØºÙØ± Ù
ÙØ«Ù","Unverified"):`${c.ageDays} ${r("ÙÙÙ
اÙ","days")}`}),c.officialSourceUrl&&s.jsxs("a",{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:24",href:c.officialSourceUrl,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 text-cyan-300 hover:text-cyan-200",children:[r("اÙÙ
صدر","Source"),s.jsx(O4,{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:24",className:"h-3.5 w-3.5"})]}),c.expired&&s.jsx(Yp,{"data-loc":"client/src/components/accounting/VisaComplianceTab.tsx:24",className:"h-4 w-4 text-rose-300"})]})]},c.id))})]})]})}function w9({compact:e=!1}){return s.jsx("a",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:33",href:Oa.url,target:"_blank",rel:"noopener noreferrer",className:`block shrink-0 rounded-2xl focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C9A961] ${e?"h-10 w-10":"h-16 w-16"}`,"aria-label":"IBRIX",children:s.jsx("img",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:34",src:Oa.logoUrl,alt:"IBRIX",className:"h-full w-full rounded-2xl bg-white object-contain shadow-lg"})})}function uye({lang:e,onLanguageChange:t,onSuccess:n}){const a=e==="ar",r=(R,L)=>a?R:L,[i,o]=k.useState(""),[c,l]=k.useState(""),[d,m]=k.useState(!1),[h,x]=k.useState(!1),[f,b]=k.useState(0),[y,w]=k.useState(0),T=k.useRef(null);k.useEffect(()=>{if(y<=0)return;const R=window.setInterval(()=>w(L=>Math.max(0,L-1)),1e3);return()=>window.clearInterval(R)},[y]);const A=Pe.adminAuth.login.useMutation({onSuccess:()=>{b(0),Le.success(r("تÙ
Ø§ÙØªØÙÙ Ù
Ù ÙÙÙØªÙ. Ø£ÙÙØ§Ù ب٠ÙÙ IBRIX.","Identity verified. Welcome to IBRIX.")),n()},onError:()=>{const R=f+1;b(R),R>=5&&(w(30),b(0)),Le.error(r("تعذر تسجÙÙ Ø§ÙØ¯Ø®ÙÙ. تØÙÙ Ù
٠اسÙ
اÙÙ
ستخدÙ
ÙÙÙÙ
Ø© اÙÙ
Ø±ÙØ±.","Sign in failed. Check your username and password."))}});function E(R){if(R.preventDefault(),y>0)return;const L=ixe(i);if(!L||!c){Le.error(r("أدخ٠اسÙ
اÙÙ
ستخدÙ
ÙÙÙÙ
Ø© اÙÙ
Ø±ÙØ±.","Enter your username and password."));return}A.mutate({identifier:L,password:c})}function D(){const R=T.current,L=R?.selectionStart??c.length,I=R?.selectionEnd??L;m(F=>!F),window.requestAnimationFrame(()=>{T.current?.focus({preventScroll:!0}),T.current?.setSelectionRange(L,I)})}const S=[{icon:eA,ar:"Ø±Ø¤ÙØ© Ù
اÙÙØ© ÙØØ¸ÙØ©",en:"Live financial intelligence"},{icon:rie,ar:"تشغÙÙ Ù
ترابط Ù
Ù Ø§ÙØØ¬Ø² ØØªÙ اÙÙÙØ¯",en:"Connected booking-to-ledger flow"},{icon:sa,ar:"ØµÙØ§ØÙات دÙÙÙØ© ÙÙ
سار تدÙÙÙ",en:"Granular access and auditability"}];return s.jsxs("main",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:102",dir:a?"rtl":"ltr",className:"orbit-login orbit-login--ibrix orbit-login--polar relative min-h-[100svh] overflow-hidden bg-[#0E0B07] text-[#F4E8D0]",children:[s.jsx("div",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:104",className:"pointer-events-none absolute -top-32 ltr:-right-24 rtl:-left-24 w-[32rem] h-[32rem] rounded-full bg-[#C9A961]/[0.07] blur-3xl"}
1620),s.jsx("div",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:105",className:"pointer-events-none absolute -bottom-40 ltr:-left-24 rtl:-right-24 w-[32rem] h-[32rem] rounded-full bg-[#8B3343]/[0.06] blur-3xl"}),s.jsx("div",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:106",className:"orbit-grid-ibrix pointer-events-none absolute inset-0 opacity-[0.04]"}),s.jsxs("button",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:108",type:"button",onClick:()=>t(a?"en":"ar"),className:"absolute z-20 top-5 ltr:right-5 rtl:left-5 inline-flex items-center gap-2 rounded-full border border-[#C9A961]/25 bg-[#C9A961]/[0.06] px-4 py-2 text-sm text-[#E9D9BC] backdrop-blur-xl transition duration-200 hover:border-[#C9A961]/40 hover:bg-[#C9A961]/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C9A961]/40","aria-label":r("Ø§ÙØªØ¨Ø¯Ù٠إÙÙ Ø§ÙØ¥ÙجÙÙØ²ÙØ©","Switch to Arabic"),children:[s.jsx(uh,{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:114",className:"h-4 w-4 text-[#C9A961]"}),a?"English":"Ø§ÙØ¹Ø±Ø¨ÙØ©"]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:118",className:"relative z-10 mx-auto grid min-h-screen w-full max-w-[1600px] lg:grid-cols-[1.08fr_0.92fr]",children:[s.jsxs("section",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:120",className:"orbit-enter hidden border-[#C9A961]/12 px-10 py-12 lg:flex lg:flex-col lg:justify-between xl:px-20 xl:py-16 ltr:border-r rtl:border-l",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:121",className:"flex items-center gap-4",children:[s.jsx("img",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:122",src:Oa.logoUrl,alt:"IBRIX",className:"h-14 w-14 rounded-2xl bg-white object-contain",loading:"eager"}),s.jsx("div",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:128",className:"h-12 w-px bg-[#C9A961]/20"}),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:129",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:130",className:"text-xs font-semibold uppercase tracking-[0.28em] text-[#C9A961]",children:"IBRIX"}),s.jsx("h1",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:131",className:"mt-1 text-2xl font-semibold tracking-tight text-[#F4E8D0]",children:Jc.name}),s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:132",className:"mt-1 text-sm text-[#E9D9BC]/55",children:a?Jc.editionAr:Jc.editionEn})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:136",className:"max-w-2xl py-16",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:137",className:"inline-flex items-center gap-2 rounded-full border border-[#C9A961]/20 bg-[#C9A961]/[0.07] px-3 py-1.5 text-xs font-medium text-[#E9D9BC]",children:[s.jsx(pr,{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:138",className:"h-3.5 w-3.5 text-[#C9A961]"}),r("ÙØ¸Ø§Ù
Ù
Ø¤Ø³Ø³Ù ÙØµÙاعة Ø§ÙØ³Ùر","An operating system for travel finance")]}),s.jsx("h2",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:141",className:"mt-7 max-w-xl text-5xl font-semibold leading-[1.08] tracking-normal text-[#F4E8D0] ltr:tracking-[-0.045em] xl:text-6xl",children:r("اÙÙ
Ø§ÙØ Ø§ÙØªØ´ØºÙÙØ ÙØ§ÙÙØ±Ø§Ø± ÙÙ ÙØ¸Ø§Ù
IBRIX ÙØ§ØØ¯.","Finance, operations, and decisions in one IBRIX system.")}),s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:144",className:"mt-6 max-w-xl text-lg leading-8 text-[#E9D9BC]/50",children:r("Ù
ÙØµØ© Ù
ØØ§Ø³Ø¨ÙØ© Ù
صÙ
Ù
Ø© ÙÙÙØ§Ùات Ø§ÙØ³Ùر ÙØªÙØÙد Ø§ÙØØ¬ÙØ²Ø§Øª ÙØ§ÙØªÙØ§ÙÙÙ ÙØ§ÙØªØØµÙÙ ÙØ§ÙØªÙØ§Ø±Ùر Ù٠تجربة تÙÙÙØ°ÙØ© ÙØ§Ø¶ØØ©.","A travel-first accounting platform that unifies bookings, cost control, collections, and reporting in one executive experience.")}
1620),s.jsx("div",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:151",className:"mt-10 grid gap-3 sm:grid-cols-3",children:S.map(({icon:R,ar:L,en:I},F)=>s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:153",className:"orbit-enter rounded-2xl border border-[#C9A961]/12 bg-[#C9A961]/[0.035] p-4 backdrop-blur-xl",style:{animationDelay:`${110+F*70}ms`},children:[s.jsx(R,{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:158",className:"h-5 w-5 text-[#C9A961]"}),s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:159",className:"mt-4 text-sm font-medium leading-6 text-[#E9D9BC]/80",children:r(L,I)})]},I))})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:165",className:"flex items-end justify-between gap-8 text-xs text-[#E9D9BC]/35",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:166",children:r("اتصا٠Ù
Ø´ÙÙØ± · Ø¬ÙØ³Ø© Ø¢Ù
ÙØ© · تØÙÙ
ØØ³Ø¨ Ø§ÙØ¯Ùر","Encrypted connection · Secure session · Role-based access")}),s.jsxs("a",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:167",href:Jc.url,target:"_blank",rel:"noopener noreferrer",dir:"ltr",className:"group inline-flex items-center gap-1.5 text-[#E9D9BC]/45 transition hover:text-[#C9A961]",children:["Designed by IBRIX",s.jsx(ch,{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:175",className:"h-3.5 w-3.5 transition-transform group-hover:-translate-y-0.5 group-hover:translate-x-0.5"})]})]})]}),s.jsx("section",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:181",className:"flex min-h-screen items-center justify-center px-5 py-24 sm:px-10 lg:px-14",children:s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:182",className:"orbit-enter w-full max-w-[470px]",style:{animationDelay:"90ms"},children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:183",className:"mb-8 flex items-center gap-3 lg:hidden",children:[s.jsx("img",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:184",src:Oa.logoUrl,alt:"IBRIX",className:"h-12 w-12 rounded-xl bg-white object-contain",loading:"eager"}),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:190",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:191",className:"text-xs font-semibold tracking-[0.22em] text-[#C9A961]",children:"IBRIX"}),s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:192",className:"font-semibold text-[#F4E8D0]",children:Jc.name})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:196",className:"rounded-[28px] border border-[#C9A961]/15 bg-[#171108]/90 p-6 shadow-[0_40px_100px_-35px_rgba(201,169,97,0.25)] backdrop-blur-2xl sm:p-9",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:197",className:"flex items-start justify-between gap-6",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:198",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:199",className:"text-sm font-medium text-[#C9A961]",children:r("Ø¨ÙØ§Ø¨Ø© اÙÙØ±ÙÙ","Team Portal")}),s.jsx("h2",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:200",className:"mt-2 text-3xl font-semibold tracking-tight text-[#F4E8D0]",children:r("تسجÙÙ Ø§ÙØ¯Ø®ÙÙ","Sign in")}),s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:201",className:"mt-3 text-sm leading-6 text-[#E9D9BC]/50",children:r("Ø£Ø¯Ø®Ù Ø¨ÙØ§Ùات ØØ³Ø§Ø¨Ù اÙÙ
عتÙ
د ÙÙÙ
تابعة.","Use your authorized account to continue.")})]}),s.jsx("div",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:203",className:"rounded-2xl border border-[#C9A961]/20 bg-[#C9A961]/[0.08] p-3 text-[#C9A961]",children:s.jsx(tie,{"data-loc":"client/src/components/
1620accounting/AccountingPortalLogin.tsx:204",className:"h-6 w-6"})})]}),s.jsxs("form",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:208",onSubmit:E,className:"mt-8 space-y-5",noValidate:!0,children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:209",className:"space-y-2.5",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:210",htmlFor:"orbit-identifier",className:"text-sm text-[#E9D9BC]/85",children:r("اسÙ
اÙÙ
ستخدÙ
Ø£Ù Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ","Username or email")}),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:211",className:"group relative",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:212",className:"pointer-events-none absolute inset-y-0 left-0 flex w-12 items-center justify-center text-[#C9A961]/45 transition group-focus-within:text-[#C9A961]",children:s.jsx(Eie,{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:213",className:"h-4 w-4"})}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:215",id:"orbit-identifier",value:i,onChange:R=>o(R.target.value),autoComplete:"username",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,autoFocus:!0,dir:"ltr",inputMode:"email",enterKeyHint:"next",placeholder:r("Ø§ÙØ§Ø³Ù
Ø£Ù Ø§ÙØ¨Ø±Ùد","name or email"),className:"h-14 rounded-xl border-[#C9A961]/15 bg-[#0E0B07]/60 pl-12 pr-4 text-base text-[#F4E8D0] placeholder:text-[#7A6A4C] focus-visible:border-[#C9A961]/50 focus-visible:ring-2 focus-visible:ring-[#C9A961]/20"})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:233",className:"space-y-2.5",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:234",className:"flex items-center justify-between gap-4",children:[s.jsx(nt,{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:235",htmlFor:"orbit-password",className:"text-sm text-[#E9D9BC]/85",children:r("ÙÙÙ
Ø© اÙÙ
Ø±ÙØ±","Password")}),s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:236",className:"text-xs text-[#E9D9BC]/35",children:r("ØØ³Ø§Ø³Ø© ÙØØ§ÙØ© Ø§ÙØ£ØØ±Ù","Case sensitive")})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:238",className:"group relative",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:239",className:"pointer-events-none absolute inset-y-0 left-0 flex w-12 items-center justify-center text-[#C9A961]/45 transition group-focus-within:text-[#C9A961]",children:s.jsx(gu,{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:240",className:"h-4 w-4"})}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:242",ref:T,id:"orbit-password",type:d?"text":"password",value:c,onChange:R=>l(R.target.value),onKeyUp:R=>x(R.getModifierState("CapsLock")),onKeyDown:R=>x(R.getModifierState("CapsLock")),onBlur:()=>x(!1),autoComplete:"current-password",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,dir:"ltr",enterKeyHint:"go","aria-describedby":h?"orbit-password-hint orbit-password-caps":"orbit-password-hint","aria-invalid":f>0,placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",className:"h-14 rounded-xl border-[#C9A961]/15 bg-[#0E0B07]/60 pl-12 pr-16 text-base tracking-[0.08em] text-[#F4E8D0] placeholder:tracking-[0.16em] placeholder:text-[#7A6A4C] focus-visible:border-[#C9A961]/50 focus-visible:ring-2 focus-visible:ring-[#C9A961]/20"}),s.jsx("button",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:262",type:"button",onClick:D,className:"absolute inset-y-1 right-1 flex w-12 min-w-12 touch-manipulation items-center justify-center rounded-lg border border-transparent text-[#C9A961]/55 transition duration-150 hover:border-[#C9A961]/15 hover:bg-[#C9A961]/10 hover:text-[#C9A961] active:scale-[0.96] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C9A961]/40 focu
1620s-visible:ring-offset-2 focus-visible:ring-offset-[#171108]","aria-label":d?r("Ø¥Ø®ÙØ§Ø¡ ÙÙÙ
Ø© اÙÙ
Ø±ÙØ±","Hide password"):r("Ø¥Ø¸ÙØ§Ø± ÙÙÙ
Ø© اÙÙ
Ø±ÙØ±","Show password"),"aria-pressed":d,title:d?r("Ø¥Ø®ÙØ§Ø¡ ÙÙÙ
Ø© اÙÙ
Ø±ÙØ±","Hide password"):r("Ø¥Ø¸ÙØ§Ø± ÙÙÙ
Ø© اÙÙ
Ø±ÙØ±","Show password"),children:d?s.jsx(Q0,{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:270",className:"h-5 w-5"}):s.jsx(Gi,{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:270",className:"h-5 w-5"})})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:273",id:"orbit-password-hint",className:"flex min-h-5 items-center justify-between gap-3 text-xs leading-5 text-[#E9D9BC]/35",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:274",children:r("اضغط Enter ÙÙØ¯Ø®ÙÙ","Press Enter to sign in")}),h&&s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:276",id:"orbit-password-caps",role:"status",className:"font-medium text-amber-300",children:r("Caps Lock Ù
ÙØ¹ÙÙ","Caps Lock is on")})]})]}),y>0&&s.jsx("div",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:284",role:"status",className:"rounded-xl border border-amber-300/20 bg-amber-300/[0.08] px-4 py-3 text-sm leading-6 text-amber-100",children:r(`تÙ
Ø¥ÙÙØ§Ù اÙÙ
ØØ§ÙÙØ© Ù
Ø¤ÙØªØ§Ù. أعد اÙÙ
ØØ§ÙÙØ© بعد ${y} ثاÙÙØ©.`,`Sign in is temporarily paused. Try again in ${y} seconds.`)}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:289",type:"submit",disabled:A.isPending||y>0,className:"orbit-primary-button orbit-primary-button--ibrix h-13 min-h-12 w-full rounded-xl bg-gradient-to-r from-[#C9A961] to-[#B07C2E] font-semibold text-[#0E0B07] shadow-[0_18px_35px_-18px_rgba(201,169,97,0.7)] hover:opacity-95 focus-visible:ring-2 focus-visible:ring-[#E9D9BC]",children:[A.isPending?s.jsx(ft,{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:294",className:"h-4 w-4 animate-spin"}):s.jsx(ns,{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:294",className:"h-4 w-4"}),s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:295",className:"mx-2",children:A.isPending?r("Ø¬Ø§Ø±Ù Ø§ÙØªØÙÙâ¦","Verifyingâ¦"):r("دخÙ٠آÙ
٠إÙÙ IBRIX","Secure sign in to IBRIX")})]})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:299",className:"mt-7 flex items-center gap-3 rounded-xl border border-[#C9A961]/[0.08] bg-black/15 px-4 py-3 text-xs leading-5 text-[#E9D9BC]/40",children:[s.jsx(sa,{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:300",className:"h-4 w-4 shrink-0 text-[#C9A961]/70"}),r("ÙØ§ تتÙ
Ù
Ø´Ø§Ø±ÙØ© Ø¨ÙØ§Ùات Ø§ÙØ¯Ø®ÙÙØ ÙØªÙطبÙÙ Ø§ÙØµÙاØÙات ØØ³Ø¨ Ø¯ÙØ± ÙÙ Ù
ستخدÙ
.","Credentials remain private and access is limited by each user's assigned role.")]})]}),s.jsxs("p",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:305",className:"mt-6 text-center text-xs text-[#7A6A4C] lg:hidden",children:["Designed by"," ",s.jsx("a",{"data-loc":"client/src/components/accounting/AccountingPortalLogin.tsx:307",href:Jc.url,target:"_blank",rel:"noopener noreferrer",className:"font-semibold text-[#C9A961]/80 hover:text-[#C9A961]",children:"IBRIX"})]})]})})]})]})}function dye(e,t){return k.useReducer((n,a)=>t[n][a]??n,e)}var T9="ScrollArea",[hG]=Ll(T9),[mye,Ol]=hG(T9),fG=k.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:a="hover",dir:r,scrollHideDelay:i=600,...o}=e,[c,l]=k.useState(null),[d,m]=k.useState(null),[h,x]=k.useState(null),[f,b]=k.useState(null),[y,w]=k.useState(null),[T,A]=k.useState(0),[E,D]=k.useState(0),[S,R]=k.useState(!1),[L,I]=k.useState(!1),F=Ea(t,U=>l(U)),_=G2(r);return s.jsx(mye,{scope:n,type:a,dir:_,scrollHideDelay:i,scrollArea:c,viewport:d,onViewportChange:m,content:h,onContentChange:x,scrollbarX:f,onScrollbarXChange:b,scrollbarXEnabled:S,onScrollbarXEnabledChange:R,scrollbarY:y,onScrollbarYChange:w,scrollbarYEnabled:L,onScrollbarYEnabledChange:I,onCornerWidthChange:A,onCornerHeight
vendor: 4,362 bytes, line 1620
1620Change:D,children:s.jsx(Vn.div,{dir:_,...o,ref:F,style:{position:"relative","--radix-scroll-area-corner-width":T+"px","--radix-scroll-area-corner-height":E+"px",...e.style}})})});fG.displayName=T9;var gG="ScrollAreaViewport",xG=k.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:a,nonce:r,...i}=e,o=Ol(gG,n),c=k.useRef(null),l=Ea(t,c,o.onViewportChange);return s.jsxs(s.Fragment,{children:[s.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:r}),s.jsx(Vn.div,{"data-radix-scroll-area-viewport":"",...i,ref:l,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style},children:s.jsx("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"},children:a})})]})});xG.displayName=gG;var Od="ScrollAreaScrollbar",bG=k.forwardRef((e,t)=>{const{forceMount:n,...a}=e,r=Ol(Od,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:o}=r,c=e.orientation==="horizontal";return k.useEffect(()=>(c?i(!0):o(!0),()=>{c?i(!1):o(!1)}),[c,i,o]),r.type==="hover"?s.jsx(pye,{...a,ref:t,forceMount:n}):r.type==="scroll"?s.jsx(hye,{...a,ref:t,forceMount:n}):r.type==="auto"?s.jsx(vG,{...a,ref:t,forceMount:n}):r.type==="always"?s.jsx(N9,{...a,ref:t}):null});bG.displayName=Od;var pye=k.forwardRef((e,t)=>{const{forceMount:n,...a}=e,r=Ol(Od,e.__scopeScrollArea),[i,o]=k.useState(!1);return k.useEffect(()=>{const c=r.scrollArea;let l=0;if(c){const d=()=>{window.clearTimeout(l),o(!0)},m=()=>{l=window.setTimeout(()=>o(!1),r.scrollHideDelay)};return c.addEventListener("pointerenter",d),c.addEventListener("pointerleave",m),()=>{window.clearTimeout(l),c.removeEventListener("pointerenter",d),c.removeEventListener("pointerleave",m)}}},[r.scrollArea,r.scrollHideDelay]),s.jsx(Uo,{present:n||i,children:s.jsx(vG,{"data-state":i?"visible":"hidden",...a,ref:t})})}),hye=k.forwardRef((e,t)=>{const{forceMount:n,...a}=e,r=Ol(Od,e.__scopeScrollArea),i=e.orientation==="horizontal",o=f6(()=>l("SCROLL_END"),100),[c,l]=dye("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 k.useEffect(()=>{if(c==="idle"){const d=window.setTimeout(()=>l("HIDE"),r.scrollHideDelay);return()=>window.clearTimeout(d)}},[c,r.scrollHideDelay,l]),k.useEffect(()=>{const d=r.viewport,m=i?"scrollLeft":"scrollTop";if(d){let h=d[m];const x=()=>{const f=d[m];h!==f&&(l("SCROLL"),o()),h=f};return d.addEventListener("scroll",x),()=>d.removeEventListener("scroll",x)}},[r.viewport,i,l,o]),s.jsx(Uo,{present:n||c!=="hidden",children:s.jsx(N9,{"data-state":c==="hidden"?"hidden":"visible",...a,ref:t,onPointerEnter:Kt(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:Kt(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),vG=k.forwardRef((e,t)=>{const n=Ol(Od,e.__scopeScrollArea),{forceMount:a,...r}=e,[i,o]=k.useState(!1),c=e.orientation==="horizontal",l=f6(()=>{if(n.viewport){const d=n.viewport.offsetWidth<n.viewport.scrollWidth,m=n.viewport.offsetHeight<n.viewport.scrollHeight;o(c?d:m)}},10);return ox(n.viewport,l),ox(n.content,l),s.jsx(Uo,{present:a||i,children:s.jsx(N9,{"data-state":i?"visible":"hidden",...r,ref:t})})}),N9=k.forwardRef((e,t)=>{const{orientation:n="vertical",...a}=e,r=Ol(Od,e.__scopeScrollArea),i=k.useRef(null),o=k.useRef(0),[c,l]=k.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=kG(c.viewport,c.content),m={...a,sizes:c,onSizesChange:l,hasThumb:d>0&&d<1,onThumbChange:x=>i.current=x,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:x=>o.current=x};function h(x,f){return yye(x,o.current,c,f)}return n==="horizontal"?s.jsx(fye,{...m,ref:t,onThumbPositionChange:()=>{if(r.viewport&&i.current){const x=r.viewport.scrollLeft,f=fM(x,c,r.dir);i.current.style.transform=`translate3d(${f}px, 0, 0)`}},onWheelScroll:x=>{r.viewport&&(r.viewport.scrollLeft=x)},onDragScroll:x=>{r.viewport&&(r.viewport.scrollLeft=h(x,r.dir))}}):n==="vertical"?s.jsx(gye,{...m,ref:t,onThumbPositionChange:()=>{if(r.viewport&&i.current){const x=r.viewport.scrollTop,f=fM(x,c);i.current.style.transform=`translate3d(0, ${f}px, 0)`}}
vendor: 4,467 bytes, line 1620
1620,onWheelScroll:x=>{r.viewport&&(r.viewport.scrollTop=x)},onDragScroll:x=>{r.viewport&&(r.viewport.scrollTop=h(x))}}):null}),fye=k.forwardRef((e,t)=>{const{sizes:n,onSizesChange:a,...r}=e,i=Ol(Od,e.__scopeScrollArea),[o,c]=k.useState(),l=k.useRef(null),d=Ea(t,l,i.onScrollbarXChange);return k.useEffect(()=>{l.current&&c(getComputedStyle(l.current))},[l]),s.jsx(wG,{"data-orientation":"horizontal",...r,ref:d,sizes:n,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":h6(n)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.x),onDragScroll:m=>e.onDragScroll(m.x),onWheelScroll:(m,h)=>{if(i.viewport){const x=i.viewport.scrollLeft+m.deltaX;e.onWheelScroll(x),AG(x,h)&&m.preventDefault()}},onResize:()=>{l.current&&i.viewport&&o&&a({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:z3(o.paddingLeft),paddingEnd:z3(o.paddingRight)}})}})}),gye=k.forwardRef((e,t)=>{const{sizes:n,onSizesChange:a,...r}=e,i=Ol(Od,e.__scopeScrollArea),[o,c]=k.useState(),l=k.useRef(null),d=Ea(t,l,i.onScrollbarYChange);return k.useEffect(()=>{l.current&&c(getComputedStyle(l.current))},[l]),s.jsx(wG,{"data-orientation":"vertical",...r,ref:d,sizes:n,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":h6(n)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.y),onDragScroll:m=>e.onDragScroll(m.y),onWheelScroll:(m,h)=>{if(i.viewport){const x=i.viewport.scrollTop+m.deltaY;e.onWheelScroll(x),AG(x,h)&&m.preventDefault()}},onResize:()=>{l.current&&i.viewport&&o&&a({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:z3(o.paddingTop),paddingEnd:z3(o.paddingBottom)}})}})}),[xye,yG]=hG(Od),wG=k.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:a,hasThumb:r,onThumbChange:i,onThumbPointerUp:o,onThumbPointerDown:c,onThumbPositionChange:l,onDragScroll:d,onWheelScroll:m,onResize:h,...x}=e,f=Ol(Od,n),[b,y]=k.useState(null),w=Ea(t,F=>y(F)),T=k.useRef(null),A=k.useRef(""),E=f.viewport,D=a.content-a.viewport,S=ao(m),R=ao(l),L=f6(h,10);function I(F){if(T.current){const _=F.clientX-T.current.left,U=F.clientY-T.current.top;d({x:_,y:U})}}return k.useEffect(()=>{const F=_=>{const U=_.target;b?.contains(U)&&S(_,D)};return document.addEventListener("wheel",F,{passive:!1}),()=>document.removeEventListener("wheel",F,{passive:!1})},[E,b,D,S]),k.useEffect(R,[a,R]),ox(b,L),ox(f.content,L),s.jsx(xye,{scope:n,scrollbar:b,hasThumb:r,onThumbChange:ao(i),onThumbPointerUp:ao(o),onThumbPositionChange:R,onThumbPointerDown:ao(c),children:s.jsx(Vn.div,{...x,ref:w,style:{position:"absolute",...x.style},onPointerDown:Kt(e.onPointerDown,F=>{F.button===0&&(F.target.setPointerCapture(F.pointerId),T.current=b.getBoundingClientRect(),A.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",f.viewport&&(f.viewport.style.scrollBehavior="auto"),I(F))}),onPointerMove:Kt(e.onPointerMove,I),onPointerUp:Kt(e.onPointerUp,F=>{const _=F.target;_.hasPointerCapture(F.pointerId)&&_.releasePointerCapture(F.pointerId),document.body.style.webkitUserSelect=A.current,f.viewport&&(f.viewport.style.scrollBehavior=""),T.current=null})})})}),V3="ScrollAreaThumb",TG=k.forwardRef((e,t)=>{const{forceMount:n,...a}=e,r=yG(V3,e.__scopeScrollArea);return s.jsx(Uo,{present:n||r.hasThumb,children:s.jsx(bye,{ref:t,...a})})}),bye=k.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:a,...r}=e,i=Ol(V3,n),o=yG(V3,n),{onThumbPositionChange:c}=o,l=Ea(t,h=>o.onThumbChange(h)),d=k.useRef(void 0),m=f6(()=>{d.current&&(d.current(),d.current=void 0)},100);return k.useEffect(()=>{const h=i.viewport;if(h){const x=()=>{if(m(),!d.current){const f=wye(h,c);d.current=f,c()}};return c(),h.addEventListener("scroll",x),()=>h.removeEventListener("scroll",x)}},[i.viewport,m,c]),s.jsx(Vn.div,{"data-state":o.hasThumb?"visible":"hidden",...r,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...a},onPointerDownCapture:Kt(e.onPointerDownCapture,h=>{const f=h.target.getBoundingClientRect(),b=h.clientX-f.left,y=h.clientY-f.top;o.onThumbPointerDown({x:b,y})}),onPointerUp:Kt(e.onPointerUp,o.onThumbPointerUp)})});TG.displayName=V3;var k9="ScrollAreaCorner",NG=k.forwardRef((e,t)=>
vendor: 8,823 bytes, line 1620
1620{const n=Ol(k9,e.__scopeScrollArea),a=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&a?s.jsx(vye,{...e,ref:t}):null});NG.displayName=k9;var vye=k.forwardRef((e,t)=>{const{__scopeScrollArea:n,...a}=e,r=Ol(k9,n),[i,o]=k.useState(0),[c,l]=k.useState(0),d=!!(i&&c);return ox(r.scrollbarX,()=>{const m=r.scrollbarX?.offsetHeight||0;r.onCornerHeightChange(m),l(m)}),ox(r.scrollbarY,()=>{const m=r.scrollbarY?.offsetWidth||0;r.onCornerWidthChange(m),o(m)}),d?s.jsx(Vn.div,{...a,ref:t,style:{width:i,height:c,position:"absolute",right:r.dir==="ltr"?0:void 0,left:r.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function z3(e){return e?parseInt(e,10):0}function kG(e,t){const n=e/t;return isNaN(n)?0:n}function h6(e){const t=kG(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,a=(e.scrollbar.size-n)*t;return Math.max(a,18)}function yye(e,t,n,a="ltr"){const r=h6(n),i=r/2,o=t||i,c=r-o,l=n.scrollbar.paddingStart+o,d=n.scrollbar.size-n.scrollbar.paddingEnd-c,m=n.content-n.viewport,h=a==="ltr"?[0,m]:[m*-1,0];return jG([l,d],h)(e)}function fM(e,t,n="ltr"){const a=h6(t),r=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-r,o=t.content-t.viewport,c=i-a,l=n==="ltr"?[0,o]:[o*-1,0],d=T7(e,l);return jG([0,o],[0,c])(d)}function jG(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const a=(t[1]-t[0])/(e[1]-e[0]);return t[0]+a*(n-e[0])}}function AG(e,t){return e>0&&e<t}var wye=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},a=0;return(function r(){const i={left:e.scrollLeft,top:e.scrollTop},o=n.left!==i.left,c=n.top!==i.top;(o||c)&&t(),n=i,a=window.requestAnimationFrame(r)})(),()=>window.cancelAnimationFrame(a)};function f6(e,t){const n=ao(e),a=k.useRef(0);return k.useEffect(()=>()=>window.clearTimeout(a.current),[]),k.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(n,t)},[n,t])}function ox(e,t){const n=ao(t);co(()=>{let a=0;if(e){const r=new ResizeObserver(()=>{cancelAnimationFrame(a),a=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(a),r.unobserve(e)}}},[e,n])}var Tye=fG,Nye=xG,kye=NG;function EG({className:e,children:t,...n}){return s.jsxs(Tye,{"data-loc":"client/src/components/ui/scroll-area.tsx:12","data-slot":"scroll-area",className:an("relative",e),...n,children:[s.jsx(Nye,{"data-loc":"client/src/components/ui/scroll-area.tsx:17","data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:t}),s.jsx(jye,{"data-loc":"client/src/components/ui/scroll-area.tsx:23"}),s.jsx(kye,{"data-loc":"client/src/components/ui/scroll-area.tsx:24"})]})}function jye({className:e,orientation:t="vertical",...n}){return s.jsx(bG,{"data-loc":"client/src/components/ui/scroll-area.tsx:35","data-slot":"scroll-area-scrollbar",orientation:t,className:an("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...n,children:s.jsx(TG,{"data-loc":"client/src/components/ui/scroll-area.tsx:48","data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}const Aye={overview:{purposeAr:"ابدأ ÙÙÙ
Ù Ø¨ØµÙØ±Ø© Ù
ÙØØ¯Ø© Ø¹Ù Ø§ÙØ¥Ùراد ÙØ§ÙÙ
صرÙÙ ÙØ§ÙربØÙØ© ÙØ§ÙØ³Ø¬ÙØ§Øª Ø§ÙØªÙ ØªØØªØ§Ø¬ Ù
تابعة.",purposeEn:"Start the day with one view of revenue, expense, profitability, and records requiring attention.",stepsAr:["راجع Ù
ؤشرات Ø§ÙØ´Ùر Ø§ÙØØ§ÙÙ.","Ø§ÙØªÙ٠إÙ٠اÙÙØØ¯Ø© Ø§ÙØªÙ ØªØØªØ§Ø¬ إجراءÙ.","تØÙÙ Ù
Ù Ø¬Ø§ÙØ²ÙØ© اÙÙÙØ§ØªÙر ÙØ§ÙÙ
دÙÙØ¹Ø§Øª ÙØ§ÙØªÙØ§ÙÙÙ."],stepsEn:["Review the current-month indicators.","Open the module that requires action.","Check invoice, payment, and costing readiness."],exampleAr:"Ù
ثا٠إرشادÙ: Ø§ÙØ®Ùاض اÙÙØ§Ù
Ø´ ÙÙÙØ¯Ù Ø£ÙÙØ§Ù Ø¥ÙÙ ÙÙØ¯Ø³Ø© Ø§ÙØªÙÙÙØ© Ø«Ù
ØªÙØ±Ùر Ø§ÙØ±Ø¨ØÙØ©.",exampleEn:"Guided example: a declining margin should lead first to Cost Engineering, then profitability reporting.",controlAr:"اÙÙ
ؤشرات Ù
ÙØ®ØµØ§Øª تشغÙÙÙØ©Ø ارجع Ø¥ÙÙ Ø§ÙØ³Ø¬Ù Ø§ÙØ£ØµÙÙ ÙØ¨Ù اتخاذ ÙØ±Ø§Ø± Ù
اÙÙ.",controlEn:"Indicators are operational summaries; verify the source record before making a financial decision."},messages:{purposeAr:"تابع Ø±Ø³Ø§Ø¦Ù Ø§ÙØ¹Ù
ÙØ§Ø¡ ÙØªØ£ÙÙØ¯Ø§Øª Ø§ÙØØ¬Ø² ÙØØ§ÙØ© ÙÙ Ù
ØØ§ÙÙØ© تسÙÙÙ
Ù
٠سج٠Ù
Ø±ÙØ²Ù Ù
ØÙ
Ù.",purposeEn:"Monitor customer messages, booking confirmations, and every delivery attempt from one protected log.",stepsAr:["راجع Ù
ÙØ®Øµ Ø§ÙØØ§ÙØ§Øª.","استخدÙ
Ø§ÙØ¨ØØ« ÙØ§ÙÙÙØ§ØªØ± ÙÙÙØµÙ٠إÙÙ Ø§ÙØ±Ø³Ø§ÙØ©.","Ø§ÙØªØ Ø§ÙØªÙاصÙÙ ÙØ£Ø¹Ø¯ Ø¥Ø±Ø³Ø§Ù Ø§ÙØ±Ø³Ø§Ø¦Ù اÙÙ
تعثرة Ø¹ÙØ¯ Ø§ÙØØ§Ø¬Ø©."],stepsEn:["Review delivery totals.","Use search and filters to locate a message.","Open details and retry failed messages when appropriate."],exampleAr:"Ù
ثا٠إرشادÙ: Ø±Ø³Ø§ÙØ© تأÙÙØ¯ Ù
تعثرة ØªØ¸ÙØ± Ø¨ØØ§ÙØ© ÙØ´Ù ÙÙÙ
ÙÙ ÙÙ
Ø¯ÙØ± اÙÙØ¸Ø§Ù
إعادة إرساÙÙØ§ بعد Ù
راجعة عÙÙØ§Ù Ø§ÙØ¹Ù
ÙÙ.",exampleEn:"Guided example: a failed booking confirmation can be reviewed and retried by a system administrator after verifying the customer address.",controlAr:"إعادة Ø§ÙØ¥Ø±Ø³Ø§Ù Ù
ØªØ§ØØ© ÙÙ
Ø¯ÙØ± اÙÙØ¸Ø§Ù
ÙÙØ·Ø ÙÙØ§ ÙØ¹Ø±Ø¶ Ø§ÙØ³Ø¬Ù ÙÙÙ
ات Ù
Ø±ÙØ± SMTP Ø£Ù Ø£Ù Ø¨ÙØ§Ùات اعتÙ
اد.",controlEn:"Retry is restricted to system administrators, and the log never exposes SMTP passwords or credentials."},costCalculator:{purposeAr:"ÙÙÙ٠تÙÙÙØ© Ø¨Ø±ÙØ§Ù
ج Ø³ÙØ§ØÙ ÙØ¨Ù Ø§ÙØ¨Ùع Ù
ع Ø±Ø¤ÙØ© اÙÙØ§Ù
Ø´ ÙØ§ÙØ¶Ø±ÙØ¨Ø© ÙØ¹Ùاصر اÙÙ
ÙØ±Ø¯ÙÙ.",purposeEn:"Build a travel-program cost before sale with visibility into margin, tax, and supplier components.",stepsAr:["ØØ¯Ø¯ اÙÙ
ÙØ³Ù
ÙØ§ÙعÙ
ÙØ© ÙØ¹Ø¯Ø¯ اÙÙ
Ø³Ø§ÙØ±ÙÙ.","Ø£Ø¶Ù Ø¹ÙØ§ØµØ± Ø§ÙØ®Ø¯Ù
Ø© ÙØªÙÙÙØ© ÙÙ Ù
ÙØ±Ø¯.","راجع Ø§ÙØ³Ø¹Ø± اÙÙ
ÙØªØ±Ø ÙØ§ÙÙØ§Ù
Ø´ ÙØ¨Ù Ø§ÙØÙØ¸."],stepsEn:["Select season, currency, and traveler count.","Add service items and each supplier cost.","Review proposed price and margin before saving."],exampleAr:"Ù
ثا٠إرشادÙ: Ø¨Ø±ÙØ§Ù
ج 5 ÙÙØ§ÙÙ ÙØ´Ù
Ù ÙÙØ¯Ùا٠ÙÙÙÙØ§Ù ÙØ¬ÙÙØ©Ø ÙØªØ¸Ùر Ù
ساÙÙ
Ø© ÙÙ Ø¹ÙØµØ± ÙÙ Ø§ÙØ³Ø¹Ø± اÙÙÙØ§Ø¦Ù.",exampleEn:"Guided example: a five-night program with hotel, transfer, and tour shows each item's contribution to final price.",controlAr:"ÙØ§ تعتÙ
د سعر Ø§ÙØ¨Ùع ÙØ¨Ù Ù
Ø·Ø§Ø¨ÙØ© ØµÙØ§ØÙØ© Ø¹Ø±ÙØ¶ اÙÙ
ÙØ±Ø¯ÙÙ ÙØ§Ùضرائب.",controlEn:"Do not approve a selling price before validating supplier-offer dates and taxes."},staffPackages:{purposeAr:"راجع براÙ
ج IBRIX اÙÙØ§Ø¨ÙØ© ÙÙØ¨Ùع Ù
٠شاشة Ù
ÙØØ¯Ø© ØªÙØ¸Ùر Ø¬Ø§ÙØ²ÙØ© اÙÙ
ØØªÙÙ ÙØ§Ùسعر ÙØØ§ÙØ© اÙÙ
راجعة دÙÙ ÙØ´Ù ØªÙØ§ÙÙ٠اÙÙ
ÙØ±Ø¯.",purposeEn:"Review sellable IBRIX programs from one workspace showing content, pricing, and review readiness without exposing supplier cost.",stepsAr:["استخدÙ
Ø§ÙØ¨ØØ« ÙØ§ÙÙÙØ§ØªØ± ÙÙÙØµÙ٠إÙÙ Ø§ÙØ¨Ø±ÙاÙ
ج.","راجع Ù
ؤشر Ø§ÙØ§ÙتÙ
Ø§Ù ÙØ§ÙØªÙØ¨ÙÙØ§Øª ÙØ¨Ù ÙØªØ Ø§ÙØªÙاصÙÙ.","ابدأ Ø§ÙØØ¬Ø² Ù
Ù Ø§ÙØ³Ø¹Ø± اÙÙ
ÙØ´Ùر اÙÙ
عتÙ
د ÙÙØ·."],stepsEn:["Use search and filters to locate the program.","Review completeness and alerts before opening details.","Start booking only from the approved published price."],exampleAr:"Ù
ثا٠إرشادÙ: Ø¨Ø±ÙØ§Ù
ج Ù
ÙØªÙ
Ù Ø¨ÙØ³Ø¨Ø© 100% ÙØ³Ø¹Ø±Ù Ù
ÙØ«Ù ÙÙ
ÙÙ ÙÙÙÙ Ù
باشرة Ø¥ÙÙ Ø§ÙØØ¬Ø²Ø Ø¨ÙÙÙ
ا تبÙ٠اÙÙ
Ø³ÙØ¯Ø© Ø£Ù Ø§ÙØªØ°Ùرة اÙÙØ¯ÙÙ
Ø© ÙÙÙ
راجعة.",exampleEn:"Guided example: a 100% complete program with documented pricing can move directly to booking, while drafts or stale ticket prices remain under review.",controlAr:"اÙÙ
ÙØ¸Ù ÙØ±Ù سعر Ø§ÙØ¨Ùع ÙØ§ÙÙ
صدر Ø§ÙØ¹Ø§Ù
ÙÙØ·Ø Ù
Ø¹Ø±ÙØ§Øª اÙÙ
ÙØ±Ø¯ ÙØ§ÙتÙÙÙØ© ÙØ§ÙÙØ§Ù
Ø´ ÙÙ
رجع Ø§ÙØ§Ø³ØªÙراد تبÙÙ Ù
ØØ¬Ùبة.",controlEn:"Staff see only selling price and a safe public source label; supplier IDs, cost, margin, and import references remain hidden."},bookings:{purposeAr:"أدر Ø¯ÙØ±Ø© Ø§ÙØØ¬Ø² Ù
Ù Ø§ÙØ·Ùب ØØªÙ Ø§ÙØªØ£ÙÙØ¯ ÙØ§Ùإصدار ÙØ§ÙØ¥ØºÙØ§Ù اÙÙ
اÙÙ Ù
ع Ø³Ø¬Ù ØØ§ÙØ© ÙØ§Ø¶Ø.",purposeEn:"Manage the booking lifecycle from request through confirmation, issuance, and financial close with a clear status trail.",stepsAr:["Ø£ÙØ´Ø¦ Ø§ÙØ·Ùب Ø¨Ø¨ÙØ§Ùات Ø§ÙØ¹Ù
ÙÙ ÙØ§ÙخدÙ
Ø©.","راجع Ø§ÙØªÙÙÙØ© ÙØ§Ùسعر ÙØ¨Ù Ø§ÙØªØ£ÙÙØ¯.","Ù
1620ÙÙØ° Ø§ÙØªÙØ§ÙØ§Øª Ø§ÙØØ§ÙØ© Ø¨Ø§ÙØªØ±ØªÙب اÙÙ
صرØ."],stepsEn:["Create the request with customer and service details.","Review cost and selling price before confirmation.","Apply authorized status transitions in sequence."],exampleAr:"Ù
ثا٠إرشادÙ: Ø·ÙØ¨ Ø¬Ø¯ÙØ¯ â Ù
Ø¤ÙØ¯ â ØµØ§Ø¯Ø± â Ù
ÙØªÙ
Ù â Ù
غÙÙ Ù
اÙÙØ§Ù.",exampleEn:"Guided example: new request â confirmed â issued â completed â financially closed.",controlAr:"Ø§ÙØªØ£ÙÙØ¯ Ø£Ù Ø§ÙØ¥Ùغاء ÙØ¯ ÙÙØ´Ø¦ ÙÙØ¯Ø§Ù Ù
ØØ§Ø³Ø¨Ùا٠Ù
Ø³ÙØ¯Ø© ÙÙÙ
Ø±Ø§Ø¬Ø¹Ø©Ø ÙÙØ§ ÙØªÙ
Ø§ÙØªØ±ØÙ٠تÙÙØ§Ø¦ÙاÙ.",controlEn:"Confirmation or cancellation may create a reviewable draft journal; posting is never automatic."},invoices:{purposeAr:"Ø£ÙØ´Ø¦ ÙÙØ§ØªÙر اÙÙ
Ø¨ÙØ¹Ø§Øª ÙØªØ§Ø¨Ø¹ Ø§ÙØªØØµÙÙ ÙØ§ÙØ±ØµÙØ¯ اÙÙ
ستØÙ ÙÙ٠عÙ
ÙÙ.",purposeEn:"Create sales invoices and monitor collections and outstanding customer balances.",stepsAr:["اختر Ø§ÙØ¹Ù
ÙÙ ÙÙ
رجع Ø§ÙØØ¬Ø².","راجع Ø§ÙØ¨ÙÙØ¯ ÙØ§Ùضرائب ÙØ§ÙإجÙ
اÙÙ.","اØÙظ اÙÙØ§ØªÙرة Ø«Ù
تابع Ø§ÙØªØØµÙÙ."],stepsEn:["Select the customer and booking reference.","Review lines, taxes, and total.","Save the invoice, then monitor collection."],exampleAr:"Ù
ثا٠إرشادÙ: ÙØ§ØªÙرة Ø¨Ø±ÙØ§Ù
ج Ø³ÙØ§ØÙ Ù
رتبطة Ø¨Ø§ÙØØ¬Ø² ÙØªØ³ÙÙ٠اÙÙ
Ø·Ø§Ø¨ÙØ© ÙØ§ÙØªØØµÙÙ.",exampleEn:"Guided example: a travel-program invoice linked to its booking for reconciliation and collection.",controlAr:"ØªØ£ÙØ¯ Ù
Ù ØªØ·Ø§Ø¨Ù Ø§ÙØ¹Ù
ÙØ© ÙØ§ÙØ¶Ø±ÙØ¨Ø© ÙÙ
رجع Ø§ÙØØ¬Ø² ÙØ¨Ù Ø§ÙØ§Ø¹ØªÙ
اد.",controlEn:"Confirm currency, tax, and booking reference before approval."},vouchers:{purposeAr:"أصدر ÙØ³Ø§Ø¦Ù
Ø§ÙØ®Ø¯Ù
Ø© ÙÙÙ
ÙØ±Ø¯ÙÙ ÙØªØ§Ø¨Ø¹ ØØ§ÙØ© Ø§ÙØªÙÙÙØ° ÙÙÙ ØØ¬Ø².",purposeEn:"Issue supplier service vouchers and track fulfillment for each booking.",stepsAr:["اختر Ø§ÙØØ¬Ø² ÙØ§ÙخدÙ
Ø©.","تØÙÙ Ù
٠اÙÙ
ÙØ±Ø¯ ÙØ§ÙØªØ§Ø±ÙØ® ÙØ§ÙتعÙÙÙ
ات.","أصدر اÙÙØ³ÙÙ
Ø© ÙØ³Ø¬Ù ØØ§ÙØ© Ø§ÙØªÙÙÙØ°."],stepsEn:["Choose the booking and service.","Verify supplier, date, and instructions.","Issue the voucher and record fulfillment status."],exampleAr:"Ù
ثا٠إرشادÙ: ÙØ³ÙÙ
Ø© ÙÙÙ Ù
طار Ù
رتبطة Ø¨ØØ¬Ø² ÙØªØ§Ø±ÙØ® ÙØµÙÙ Ù
ØØ¯Ø¯ÙÙ.",exampleEn:"Guided example: an airport-transfer voucher linked to a specific booking and arrival date.",controlAr:"ÙØ§ ØªÙØµØ¯Ø± ÙØ³ÙÙ
Ø© ÙØ¨Ù تأÙÙØ¯ Ø§ÙØ®Ø¯Ù
Ø© Ù
ع اÙÙ
ÙØ±Ø¯.",controlEn:"Do not issue a voucher before supplier confirmation."},tickets:{purposeAr:"سج٠إصدار Ø§ÙØªØ°Ø§Ùر ÙØ§ÙÙ
Ø³Ø§ÙØ±ÙÙ ÙØ§ÙتÙÙÙØ© ÙØ§ÙربØÙØ© بÙ
رجع ØØ¬Ø² Ù
ÙØØ¯.",purposeEn:"Record ticket issuance, passengers, cost, and profitability under one booking reference.",stepsAr:["اختر Ø§ÙØØ¬Ø² ÙØ§ÙÙ
Ø³Ø§ÙØ±.","Ø£Ø¯Ø®Ù Ø´Ø±ÙØ© Ø§ÙØ·ÙØ±Ø§Ù ÙØ±ÙÙ
Ø§ÙØªØ°Ùرة ÙØ§ÙتÙÙÙØ©.","راجع Ø§ÙØ±Ø¨ØÙØ© Ø«Ù
Ø«Ø¨ÙØª Ø§ÙØ¥ØµØ¯Ø§Ø±."],stepsEn:["Select the booking and passenger.","Enter airline, ticket number, and cost.","Review profitability, then confirm issuance."],exampleAr:"Ù
ثا٠إرشادÙ: ØªØ°ÙØ±Ø© Ø°ÙØ§Ø¨ ÙØ¹Ùدة ØªÙØ±Ø¨Ø· Ø¨Ø§ÙØØ¬Ø² ÙØªØ¬Ù
ÙØ¹ Ø§ÙØªÙÙÙØ© اÙÙÙÙØ© ÙÙØ±ØÙØ©.",exampleEn:"Guided example: a return ticket linked to the booking to consolidate total trip cost.",controlAr:"تØÙÙ Ù
٠رÙÙ
Ø§ÙØªØ°Ùرة ÙØ§ÙعÙ
ÙØ© ÙØ¨Ù Ø§ÙØÙØ¸Ø ØØ¯Ø« Ø§ÙØ¥ØµØ¯Ø§Ø± ÙÙÙØ¯ Ø£Ø«Ø±Ø§Ù Ø±ÙØ§Ø¨Ùا٠Ù
Ø³ÙØ¯Ø© ÙÙØ·.",controlEn:"Verify ticket number and currency before saving; issuance creates a draft control trail only."},manifests:{purposeAr:"ÙØ¸ÙÙ
ÙÙØ§Ø¦Ù
اÙÙ
Ø³Ø§ÙØ±ÙÙ ÙÙÙ
جÙ
ÙØ¹Ø§Øª Ù
ع ØªÙØ§ØµÙÙ Ø§ÙØ±ØÙØ© ÙØ§ÙخدÙ
Ø©.",purposeEn:"Organize group passenger lists with trip and service details.",stepsAr:["ØØ¯Ø¯ اÙÙ
جÙ
ÙØ¹Ø© Ø£Ù Ø§ÙØØ¬Ø².","راجع أسÙ
اء اÙÙ
Ø³Ø§ÙØ±ÙÙ ÙØ§ÙÙØ«Ø§Ø¦Ù.","ØµØ¯ÙØ± أ٠شار٠اÙÙØ´Ù Ø§ÙØªØ´ØºÙÙÙ."],stepsEn:["Select the group or booking.","Review passenger names and documents.","Export or share the operational manifest."],exampleAr:"Ù
ثا٠إرشادÙ: ÙØ´Ù Ù
جÙ
ÙØ¹Ø© Ù
ÙØØ¯ ÙØ®Ø¯Ù
Ø© اÙÙÙÙ ÙØ§ÙÙÙØ¯Ù ÙØ§ÙجÙÙØ©.",exampleEn:"Guided example: one group manifest for transfer, hotel, and tour services.",controlAr:"راجع ØªÙØ¬Ø¦Ø© Ø§ÙØ£Ø³Ù
اء Ù
ÙØ§Ø¨Ù ÙØ«Ø§Ø¦Ù Ø§ÙØ³Ùر ÙØ¨Ù Ù
Ø´Ø§Ø±ÙØ© اÙÙØ´Ù.",controlEn:"Match name spelling to travel documents before sharing the manifest."},payments:{purposeAr:"سج٠اÙÙ
ÙØ¨Ùضات ÙØ§ÙÙ
دÙÙØ¹Ø§Øª ÙØ§Ø±Ø¨Ø·Ùا Ø¨Ø§ÙØØ¬Ø² أ٠اÙÙØ§ØªÙرة أ٠اÙÙ
ÙØ±Ø¯ ÙÙÙ
Ø·Ø§Ø¨ÙØ©.",purposeEn:"Record receipts and payments and link them to bookings, invoices, or suppliers for reconciliation.",stepsAr:["اختر ÙÙØ¹ Ø§ÙØØ±ÙØ© ÙØ§ÙطرÙ.","أدخ٠اÙÙ
Ø¨ÙØº ÙØ§ÙعÙ
ÙØ© ÙØ§ÙÙ
رجع.","اØÙظ Ø§ÙØØ±ÙØ© ÙØ±Ø§Ø¬Ø¹ اÙÙÙØ¯ اÙÙ
Ø³ÙØ¯Ø© اÙÙØ§ØªØ¬."],stepsEn:["Choose movement type and counterparty.","Enter amount, currency, and reference.","Save the movement and review the resulting draft journal."],exampleAr:"Ù
ثا٠إرشادÙ: Ø¯ÙØ¹Ø© عÙ
ÙÙ Ù
رتبطة Ø¨ØØ¬Ø² ÙØªØ®ÙÙØ¶ Ø§ÙØ°Ù
Ø© ÙØ¥Ø¸Ùار Ø§ÙØ±ØµÙد اÙÙ
تبÙÙ.",exampleEn:"Guided example: a customer receipt linked to a booking to reduce receivables and show the remaining balance.",controlAr:"ÙØ§ ØªØ³Ø¬Ù ØØ±ÙØ© دÙÙ Ù
رجع Ù
صرÙ٠أ٠Ù
Ø³ØªÙØ¯ داعÙ
Ø¹ÙØ¯ تÙÙØ±Ù.",controlEn:"Do not record a movement without a bank reference or supporting document when available."},expenses:{purposeAr:"صÙÙ٠اÙÙ
صرÙÙØ§Øª Ø§ÙØªØ´ØºÙÙÙØ© ÙØ§Ø±Ø¨Ø·Ùا باÙÙØªØ±Ø© ÙÙ
Ø±ÙØ² Ø§ÙØªÙÙÙØ© اÙÙ
ÙØ§Ø³Ø¨.",purposeEn:"Classify operating expenses and assign the proper period and cost context.",stepsAr:["اختر ÙØ¦Ø© اÙÙ
صرÙÙ ÙØ§ÙÙ
ÙØ±Ø¯.","Ø£Ø¯Ø®Ù Ø§ÙØªØ§Ø±ÙØ® ÙØ§ÙÙ
Ø¨ÙØº ÙØ§ÙØ¶Ø±ÙØ¨Ø©.","أرÙ٠اÙÙ
رجع ÙØ±Ø§Ø¬Ø¹ Ø§ÙØªØµÙÙÙ."],stepsEn:["Select expense category and supplier.","Enter date, amount, and tax.","Add the reference and review classification."],exampleAr:"Ù
ثا٠إرشادÙ: Ù
صرÙ٠تشغÙÙ Ù
رتبط بÙ
ÙØ±Ø¯ ÙÙØªØ±Ø© Ù
ØØ§Ø³Ø¨ÙØ© Ù
ÙØªÙØØ©.",exampleEn:"Guided example: an operating expense linked to a supplier and an open accounting period.",controlAr:"ØªØ¬ÙØ¨ ØªÙØ±Ø§Ø± اÙÙ
صرÙ٠عبر Ù
راجعة رÙÙ
اÙÙ
رجع ÙØ§ÙØªØ§Ø±ÙØ® ÙØ§ÙÙ
Ø¨ÙØº.",controlEn:"Avoid duplicate expense entry by checking reference, date, and amount."},priceImports:{purposeAr:"Ø§Ø³ØªÙØ±Ø¯ ÙÙØ§Ø¦Ù
أسعار اÙÙ
ÙØ±Ø¯ÙÙ ÙØ§ÙØØµ بÙÙØªÙا ÙØ¨Ù اعتÙ
Ø§Ø¯ÙØ§ ÙÙ Ø§ÙØªØ³Ø¹Ùر.",purposeEn:"Import supplier tariffs and validate structure before using them in pricing.",stepsAr:["اختر اÙÙ
ÙØ±Ø¯ ÙÙÙØ¹ اÙÙ
ÙÙ.","Ø§Ø±ÙØ¹ اÙÙ
ÙÙ ÙØ±Ø§Ø¬Ø¹ أخطاء Ø§ÙØ£Ø¹Ù
دة.","اعتÙ
د Ø§ÙØ³Ø¬Ùات Ø§ÙØ³ÙÙÙ
Ø© ÙÙØ·."],stepsEn:["Select supplier and file type.","Upload the file and review column errors.","Approve valid rows only."],exampleAr:"Ù
ثا٠إرشادÙ: Ù
Ù٠أسعار ÙÙØ¯ÙÙØ© Ù
ÙØ³Ù
ÙØ© ÙÙØ±Ø§Ø¬Ø¹ ÙØ¨Ù ظÙÙØ±Ù ÙÙ ÙÙØ¯Ø³Ø© Ø§ÙØªÙÙÙØ©.",exampleEn:"Guided example: a seasonal hotel tariff reviewed before appearing in Cost Engineering.",controlAr:"ÙØ§ تعتÙ
د Ù
ÙÙØ§Ù ÙØØªÙ٠عÙ
ÙØ§Øª Ø£Ù ØªÙØ§Ø±ÙØ® أ٠ضرائب ØºÙØ± Ù
ØØ¯Ø¯Ø©.",controlEn:"Do not approve a file with undefined currencies, dates, or taxes."},journal:{purposeAr:"Ø£ÙØ´Ø¦ ÙÙÙØ¯Ø§Ù Ù
ØªÙØ§Ø²ÙØ© ÙÙ
Ø±Ø±ÙØ§ عبر Ø·ÙØ¨ اعتÙ
اد ÙÙ
راجعة Ù
ÙÙØµÙØ© ضÙ
Ù ÙØªØ±Ø© Ù
ÙØªÙØØ©.",purposeEn:"Create balanced journals and move them through separate approval and posting within an open period.",stepsAr:["Ø£ÙØ´Ø¦ Ù
Ø³ÙØ¯Ø© Ø¨Ø®Ø·ÙØ· Ù
دÙÙØ© ÙØ¯Ø§Ø¦ÙØ© Ù
ØªÙØ§Ø²ÙØ©.","أرس٠اÙÙ
Ø³ÙØ¯Ø© ÙÙØ§Ø¹ØªÙ
اد.","ÙÙÙÙ
Ù
ستخدÙ
آخر Ù
Ø®Ù٠باÙÙ
راجعة ÙØ§ÙترØÙÙ Ø£Ù Ø§ÙØ±Ùض."],stepsEn:["Create a draft with balanced debit and credit lines.","Submit the draft for approval.","Another authorized user reviews and posts or rejects it."],exampleAr:"Ù
ثا٠إرشادÙ: ÙÙØ¯ ØªØØµÙ٠عÙ
ÙÙ ÙØ¨ÙÙ Ù
Ø³ÙØ¯Ø© ØØªÙ ÙØ±Ø§Ø¬Ø¹Ù شخص ØºÙØ± Ù
ÙØ´Ø¦Ù.",exampleEn:"Guided example: a customer-receipt journal remains draft until reviewed by someone other than
1620its creator.",controlAr:"ÙÙÙ
ÙØ¹ Ø§ÙØªØ±ØÙÙ Ø§ÙØ°Ø§ØªÙ Ø£Ù Ø§ÙØªØ±ØÙ٠إÙÙ ÙØªØ±Ø© Ù
غÙÙØ©Ø ÙØªÙØ³Ø¬Ù Ø§ÙØ¥Ø¬Ø±Ø§Ø¡Ø§Øª ÙÙ Ø³Ø¬Ù Ø§ÙØªØ¯ÙÙÙ.",controlEn:"Self-posting and posting into a closed period are blocked, and actions are audit logged."},reports:{purposeAr:"ØÙÙ Ø§ÙØ£Ø¯Ø§Ø¡ اÙÙ
اÙÙ ÙØ§ÙتشغÙÙÙ Ù
Ù ØªÙØ§Ø±Ùر Ù
ترابطة ÙØ§Ø¨ÙØ© ÙÙØªØµÙÙØ©.",purposeEn:"Analyze financial and operating performance through connected, filterable reports.",stepsAr:["اختر Ø§ÙØªÙØ±ÙØ± ÙØ§ÙÙØªØ±Ø©.","طبÙÙ Ø§ÙØ¹Ù
ÙØ© أ٠اÙÙØØ¯Ø© Ø£Ù Ø§ÙØØ§ÙØ©.","راجع Ø§ÙØ¥Ø¬Ù
اÙÙØ§Øª Ø«Ù
ØµØ¯ÙØ± Ø¹ÙØ¯ Ø§ÙØØ§Ø¬Ø©."],stepsEn:["Select report and period.","Apply currency, unit, or status filters.","Review totals, then export if needed."],exampleAr:"Ù
ثا٠إرشادÙ: Ù
ÙØ§Ø±ÙØ© ربØÙØ© Ø§ÙØ¨Ø±Ø§Ù
ج ØØ³Ø¨ اÙÙØ¬ÙØ© Ø®ÙØ§Ù ÙØªØ±Ø© Ù
ØØ¯Ø¯Ø©.",exampleEn:"Guided example: compare program profitability by destination for a selected period.",controlAr:"ØªØ£ÙØ¯ Ù
Ù ÙØ·Ø§Ù اÙÙØªØ±Ø© ÙØØ§ÙØ© Ø§ÙØ³Ø¬Ùات ÙØ¨Ù Ù
Ø´Ø§Ø±ÙØ© Ø§ÙØ£Ø±ÙاÙ
.",controlEn:"Confirm period scope and record status before sharing figures."},customers:{purposeAr:"ØØ§Ùظ عÙÙ Ù
ÙÙ Ù
ÙØØ¯ ÙÙØ¹Ù
ÙÙ ÙØ°Ù
ØªÙ ÙØ³Ø¬Ù تعاÙ
ÙØ§ØªÙ.",purposeEn:"Maintain one customer profile with receivables and activity history.",stepsAr:["Ø£ÙØ´Ø¦ اÙÙ
ÙÙ Ø¨Ø¨ÙØ§Ùات Ø§ÙØ§ØªØµØ§Ù Ø§ÙØ£Ø³Ø§Ø³ÙØ©.","راجع Ø§ÙØØ¬ÙØ²Ø§Øª ÙØ§ÙÙÙØ§ØªÙر اÙÙ
رتبطة.","تابع Ø§ÙØ±ØµÙد ÙØ³Ø¬Ù Ø§ÙØªÙاصÙ."],stepsEn:["Create the profile with core contact details.","Review linked bookings and invoices.","Monitor balance and interaction history."],exampleAr:"Ù
ثا٠إرشادÙ: Ù
ÙÙ Ø´Ø±ÙØ© ÙØ±Ø¨Ø· عدة ØØ¬Ùزات ÙÙÙØ§ØªÙر ØªØØª ذÙ
Ø© ÙØ§ØØ¯Ø©.",exampleEn:"Guided example: a corporate profile connects multiple bookings and invoices under one receivable account.",controlAr:"ØªØ¬ÙØ¨ Ø¥ÙØ´Ø§Ø¡ عÙ
ÙÙ Ù
ÙØ±Ø± Ø¨Ø§ÙØ¨ØØ« Ø¨Ø§ÙØ§Ø³Ù
ÙØ§ÙÙØ§ØªÙ ÙØ§ÙØ¨Ø±ÙØ¯ Ø£ÙÙØ§Ù.",controlEn:"Avoid duplicate customers by searching name, phone, and email first."},suppliers:{purposeAr:"أدر Ù
Ù٠اÙÙ
ÙØ±Ø¯ اÙÙØ§ÙÙÙÙ ÙØ§ÙØ¶Ø±ÙØ¨Ù ÙØ§ÙÙ
صرÙÙ ÙØ¹ÙÙØ¯Ù ÙØ§ÙتزاÙ
اتÙ.",purposeEn:"Manage supplier legal, tax, banking, contract, and obligation data.",stepsAr:["Ø£ÙØ´Ø¦ اÙÙ
ÙÙ ÙØØ¯Ø¯ ÙÙØ¹ اÙÙ
ÙØ±Ø¯.","Ø£Ø¯Ø®Ù Ø§ÙØ¨ÙØ§ÙØ§Øª اÙÙØ§ÙÙÙÙØ© ÙØ§ÙØ¶Ø±ÙØ¨ÙØ©.","راجع Ø§ÙØØ³Ø§Ø¨Ø§Øª ÙØ§ÙعÙÙØ¯ ÙØ¨Ù Ø§ÙØªÙعÙÙ."],stepsEn:["Create the profile and select supplier type.","Enter legal and tax data.","Review accounts and contracts before activation."],exampleAr:"Ù
ثا٠إرشادÙ: Ù
ÙØ±Ø¯ ÙÙØ¯ÙÙ Ù
رتبط بÙ
ÙØ§Ø³Ù
أسعار ÙØ¨ÙØ§ÙØ§Øª Ø¶Ø±ÙØ¨ÙØ© Ù
عتÙ
دة.",exampleEn:"Guided example: a hotel supplier linked to seasonal prices and validated tax data.",controlAr:"Ø§ÙØ¨ÙØ§ÙØ§Øª اÙÙ
صرÙÙØ© ÙØ§ÙØ¶Ø±ÙØ¨ÙØ© Ù
ØªØ§ØØ© ÙÙØ· ÙÙÙ
سارات Ø§ÙØ¥Ø¯Ø§Ø±ÙØ© اÙÙ
Ø®ÙÙØ© ÙÙ
Ø³Ø¬ÙØ© تدÙÙÙÙØ§Ù.",controlEn:"Banking and tax data is restricted to authorized administration paths and audit logged."},accounts:{purposeAr:"ÙØ¸ÙÙ
دÙÙÙ Ø§ÙØØ³Ø§Ø¨Ø§Øª اÙÙ
تدرج اÙÙ
ستخدÙ
Ù٠اÙÙÙÙØ¯ ÙØ§ÙØªÙØ§Ø±Ùر.",purposeEn:"Organize the hierarchical chart of accounts used by journals and reports.",stepsAr:["اختر ÙÙØ¹ Ø§ÙØØ³Ø§Ø¨ ÙØ§Ùأب.","ØØ¯Ø¯ Ø§ÙØ±Ù
ز ÙØ§ÙاسÙ
باÙÙØºØªÙÙ.","ÙØ¹ÙÙ Ø§ÙØØ³Ø§Ø¨ بعد Ù
راجعة Ù
ÙÙØ¹Ù ÙÙ Ø§ÙØ¯ÙÙÙ."],stepsEn:["Choose account type and parent.","Set code and bilingual name.","Activate after reviewing its place in the hierarchy."],exampleAr:"Ù
ثا٠إرشادÙ: ØØ³Ø§Ø¨ ÙØ±Ø¹Ù ÙÙ
ÙØ¨Ùضات Ø§ÙØ¹Ù
ÙØ§Ø¡ ØªØØª Ø§ÙØ£ØµÙ٠اÙÙ
تداÙÙØ©.",exampleEn:"Guided example: a customer-receipts subaccount under current assets.",controlAr:"ÙØ§ تغÙÙØ± Ø·Ø¨ÙØ¹Ø© ØØ³Ø§Ø¨ Ù
ستخدÙ
ÙÙ ÙÙÙØ¯ Ù
رØÙØ© دÙÙ Ù
راجعة Ù
ØØ§Ø³Ø¨ÙØ©.",controlEn:"Do not change the nature of an account used in posted journals without accounting review."},employees:{purposeAr:"أدر اÙÙ
ستخدÙ
ÙÙ ÙØ§ÙØ£Ø¯ÙØ§Ø± ÙÙØ·Ø§Ù اÙÙØµÙÙ Ù
ع Ø§Ø³ØªØ«ÙØ§Ø¡Ø§Øª Ù
ÙØ«ÙØ© ÙÙ
ØØ¯Ùدة.",purposeEn:"Manage users, roles, and access scope with documented, limited exceptions.",stepsAr:["اختر اÙÙ
ستخدÙ
ÙØ§ÙØ¯ÙØ± اÙÙ
ÙØ§Ø³Ø¨.","راجع اÙÙØØ¯Ø§Øª ÙØ§Ùإجراءات اÙÙ
سÙ
ÙØØ©.","سج٠سبب Ø£Ù Ø§Ø³ØªØ«ÙØ§Ø¡ ÙØØ¯Ø¯ Ù
دتÙ."],stepsEn:["Select the user and appropriate role.","Review permitted modules and actions.","Document any exception and set its duration."],exampleAr:"Ù
ثا٠إرشادÙ: Ù
ÙØ ØªØºØ·ÙØ© Ù
Ø¤ÙØªØ© ÙÙ
ÙÙ
Ø© Ù
ØØ¯Ø¯Ø© Ø®ÙØ§Ù إجازة Ù
ÙØ¸Ù.",exampleEn:"Guided example: grant temporary coverage for a specific duty during an employee leave.",controlAr:"طب٠أÙÙ ØµÙØ§ØÙØ© ÙØ§Ø²Ù
Ø©Ø ÙØ§Ùص٠بÙÙ Ø¥ÙØ´Ø§Ø¡ اÙÙ
عاÙ
ÙØ© ÙØ§Ø¹ØªÙ
Ø§Ø¯ÙØ§ ÙÙÙ
ا Ø£Ù
ÙÙ.",controlEn:"Apply least privilege and separate transaction creation from approval whenever possible."},hotels:{purposeAr:"ØØ§Ùظ عÙÙ Ù
ÙÙØ§Øª اÙÙÙØ§Ø¯Ù ÙÙØ¬ÙØ§ØªÙØ§ ÙØªØµÙÙÙØ§ØªÙا ÙÙ
عÙÙÙ
ات Ø§ÙØ§ØªØµØ§Ù Ø§ÙØªØ´ØºÙÙÙØ©.",purposeEn:"Maintain hotel profiles, destinations, classifications, and operational contacts.",stepsAr:["اختر اÙÙ
دÙÙØ© ÙØ§ÙتصÙÙÙ.","Ø£Ø¯Ø®Ù Ø§ÙØ§Ø³Ù
ÙØ¨ÙØ§ÙØ§Øª Ø§ÙØ§ØªØµØ§Ù.","اربط اÙÙÙØ¯Ù باÙÙ
ÙØ±Ø¯ ÙØ§Ùأسعار Ø§ÙØµØÙØØ©."],stepsEn:["Select city and classification.","Enter name and contact details.","Link the hotel to the correct supplier and prices."],exampleAr:"Ù
ثا٠إرشادÙ: ÙÙØ¯Ù ÙÙ Ù
دÙÙØ© Ù
ØØ¯Ø¯Ø© Ù
رتبط بÙ
ÙØ±Ø¯ ÙÙ
ÙØ³Ù
أسعار ÙØ¹Ø§Ù.",exampleEn:"Guided example: a hotel in a selected city linked to a supplier and active price season.",controlAr:"تØÙÙ Ù
٠اÙÙ
دÙÙØ© ÙØ§ÙتصÙÙÙ ÙØ¨Ù استخداÙ
اÙÙÙØ¯Ù ÙÙ Ø¨Ø±ÙØ§Ù
ج Ù
باع.",controlEn:"Verify city and classification before using the hotel in a sold program."},jordanHotelQuotes:{purposeAr:"Ø§Ø¨ØØ« ÙÙ ØªØ¹Ø±ÙØ© ÙÙØ§Ø¯Ù Ø§ÙØ£Ø±Ø¯Ù اÙÙ
ÙØ´Ùرة ÙÙØ¯ÙÙ
Ø§ÙØªØ¨Ø§Ø³Ø§Ù داخÙÙØ§Ù Ø¨Ø§ÙØ¯ÙÙØ§Ø± Ù
ع ØªÙØ¨ÙÙ Ø§ÙØªØ£ÙÙØ¯ Ø§ÙØ¥ÙزاÙ
Ù.",purposeEn:"Search the published Jordan hotel tariff and prepare an internal JOD quote with mandatory confirmation notice.",stepsAr:["ØØ¯Ø¯ اÙÙØ¬ÙØ© ÙØ§ÙØªÙØ§Ø±ÙØ® ÙØ§ÙØ¬ÙØ³ÙØ© ÙØ§ÙإشغاÙ.","راجع ÙÙ ÙÙØ¯Ù ÙØ®Ùار سعر ÙØ§ÙØªÙØ¨ÙÙØ§Øª اÙÙ
رتبطة بÙ.","Ø§ÙØ³Ø® Ù
ÙØ®Øµ Ø§ÙØ§Ùتباس ÙØ£Ø±Ø³Ù Ø·ÙØ¨ Ø§ÙØªØ£ÙÙØ¯ ÙÙØ±ÙÙ Ø§ÙØØ¬Ø² ÙØ¨Ù Ø§ÙØ§ÙتزاÙ
."],stepsEn:["Select destination, dates, nationality, and occupancy.","Review every hotel, rate option, and attached warning.","Copy the quote summary and request booking-team confirmation before committing."],exampleAr:"Ù
ثا٠إرشادÙ: Ø¥ÙØ§Ù
Ø© ÙÙÙØªÙÙ Ù٠عÙ
ÙØ§Ù ØªÙØØªØ³Ø¨ Ù
Ù Ø§ÙØ¥ØµØ¯Ø§Ø± اÙÙ
ÙØ´Ùر ÙØªØ¨ÙÙ ØºÙØ± Ù
Ø¤ÙØ¯Ø© ØØªÙ ÙØ±Ø§Ø¬Ø¹ ÙØ±ÙÙ Ø§ÙØØ¬Ø² Ø§ÙØªÙÙØ±.",exampleEn:"Guided example: a two-night Amman stay is priced from the published version and remains unconfirmed until availability is reviewed.",controlAr:"ÙØ§ تعرض Ù
عر٠اÙÙ
ÙØ±Ø¯ Ø£Ù Ø§ÙØªÙÙÙØ© Ø§ÙØ¯Ø§Ø®ÙÙØ©Ø ÙÙØ§ ØªØ¤ÙØ¯ Ø§ÙØØ¬Ø² اعتÙ
ادا٠عÙÙ ÙØªÙجة Ø§ÙØ¨ØØ« ÙØØ¯ÙØ§.",controlEn:"Never expose supplier IDs or internal
1620cost, and never confirm a booking from search output alone."},jordanHotelAdmin:{purposeAr:"أدر Ø±ÙØ¹ ØªØ¹Ø±ÙØ© ÙÙØ§Ø¯Ù Ø§ÙØ£Ø±Ø¯Ù ÙÙ
عاÙÙØªÙا ÙØ§Ø¹ØªÙ
Ø§Ø¯ÙØ§ ÙÙØ´Ø±Ùا ÙØ§ÙØ±Ø¬ÙØ¹ بÙÙ Ø¥ØµØ¯Ø§Ø±Ø§ØªÙØ§Ø ÙØ£Ø¶Ù ÙÙÙ
ا٠Ù
ؤرخة ÙØ³Ø¹Ø± Ø§ÙØµØ±Ù.",purposeEn:"Govern Jordan hotel tariff upload, preview, approval, publication, rollback, and effective-dated FX entries.",stepsAr:["Ø§Ø±ÙØ¹ Ù
ÙÙ Excel Ø£Ù CSV ÙØ±Ø§Ø¬Ø¹ اÙÙ
ÙØ§Ùع ÙØ§ÙØªØØ°Ùرات.","Ø£ÙØ´Ø¦ إصدارا٠ÙÙÙ
راجعة Ø«Ù
اعتÙ
Ø¯Ù ÙØ§ÙØ´Ø±Ù ØØ³Ø¨ اÙÙØµÙ بÙÙ Ø§ÙØµÙاØÙات.","أض٠سعر Ø§ÙØµØ±Ù ÙØªØ³Ø¬ÙÙ Ø¬Ø¯ÙØ¯ Ø¨ØªØ§Ø±ÙØ® Ø³Ø±ÙØ§Ù Ø¨Ø¯ÙØ§Ù Ù
٠تعدÙÙ Ø§ÙØ³Ø¬Ù Ø§ÙØ³Ø§Ø¨Ù."],stepsEn:["Upload Excel or CSV and review blockers and warnings.","Create a review version, then approve and publish through separated permissions.","Add FX as a new effective-dated record rather than editing history."],exampleAr:"Ù
ثا٠إرشادÙ: Ù
ÙÙ Ø¨ÙØ§ Ù
ÙØ§Ùع ÙÙÙØ´Ø¦ Ø¥ØµØ¯Ø§Ø±Ø§Ù Ø¬Ø§ÙØ²Ø§Ù ÙÙÙ
Ø±Ø§Ø¬Ø¹Ø©Ø Ø§ÙÙØ´Ø± ÙØ³ØªØ¨Ø¯Ù Ø§ÙØ¥ØµØ¯Ø§Ø± اÙÙØ¹Ùا٠دÙÙ ØØ°Ù اÙÙØ¯ÙÙ
.",exampleEn:"Guided example: a blocker-free file creates a review-ready version; publishing supersedes the active version without deleting history.",controlAr:"اÙÙØØ¯Ø© ÙÙÙ
Ø¯ÙØ± ÙÙØ·Ø Ù
ÙÙØ§Øª اÙÙ
ÙØ±Ø¯ ÙØ³Ø¬Ù Ø§ÙØµØ±Ù ÙØ§Ùإصدارات اÙÙ
ÙØ´Ùرة ØºÙØ± ÙØ§Ø¨ÙØ© ÙÙÙØªØ§Ø¨Ø© ÙÙÙÙØ§ Ø£Ù Ø§ÙØØ°Ù.",controlEn:"Administrator only; supplier files, FX history, and published versions must never be overwritten or deleted."},referenceData:{purposeAr:"أدر ÙÙØ§Ø±Ø³ Ø§ÙØ¯ÙÙ ÙØ§ÙÙ
Ø¯Ù ÙØ§ÙÙ
طارات ÙØ£Ø³Ø¹Ø§Ø± اÙÙ
ÙØ§Ø³Ù
Ø§ÙØªÙ تعتÙ
د عÙÙÙØ§ بÙÙØ© اÙÙØØ¯Ø§Øª.",purposeEn:"Govern the countries, cities, airports, and seasonal prices used across the platform.",stepsAr:["Ø£ÙØ´Ø¦ Ø§ÙØ¯ÙÙØ© Ø«Ù
اÙÙ
دÙÙØ© Ø«Ù
اÙÙ
طار Ø¨Ø§ÙØªØ³ÙسÙ.","أض٠أسعار اÙÙ
ÙØ³Ù
ÙÙÙ
ÙØ±Ø¯ ÙØ§ÙخدÙ
Ø©.","راجع Ø§ÙØªÙÙÙØ© ÙØ§ÙØ¶Ø±ÙØ¨Ø© ÙØ§ÙÙØ§Ù
Ø´ ÙØØ§ÙØ© Ø§ÙØªÙعÙÙ."],stepsEn:["Create country, then city, then airport in sequence.","Add seasonal prices for supplier and service.","Review cost, tax, margin, and activation status."],exampleAr:"Ù
ثا٠إرشادÙ: Ù
دÙÙØ© Ù
رتبطة بدÙÙØ© ÙÙ
طار IATAØ Ø«Ù
Ù
ÙØ³Ù
سعر ÙØ®Ø¯Ù
Ø© اÙÙ
ÙØ±Ø¯.",exampleEn:"Guided example: a city linked to a country and IATA airport, followed by a supplier service-price season.",controlAr:"تعطÙÙ Ø§ÙØ³Ø¬Ù Ù
ÙØ·ÙÙ ÙÙØ§ ÙØØ°Ù ØªØ§Ø±ÙØ®ÙØ ØªØ¹Ø¯ÙÙØ§Øª Ø§ÙØ¥Ø¯Ø§Ø±Ø© تسج٠بÙÙØ·Ø§Øª ÙØ¨Ù ÙØ¨Ø¹Ø¯.",controlEn:"Deactivation is logical and preserves history; administrative changes are logged with before-and-after snapshots."},visaCompliance:{purposeAr:"Ø±Ø§ÙØ¨ Ù
صادر ÙÙØ§Ø¹Ø¯ Ø§ÙØªØ£Ø´Ùرات ÙØªÙØ§Ø±ÙØ® تØÙÙÙØ§ ÙØ§ÙÙÙØ§Ø¹Ø¯ اÙÙ
ØØ¬Ùبة ÙØ¨Ù أ٠تتØÙ٠إÙÙ Ù
خاطرة تشغÙÙÙØ©.",purposeEn:"Monitor visa-rule sources, verification dates, and blocked rules before they become an operational risk.",stepsAr:["راجع اÙÙÙØ§Ø¹Ø¯ اÙÙØ±Ùبة Ù
٠اÙÙ
راجعة أ٠اÙÙ
ÙØªÙÙØ©.","Ø§ÙØªØ اÙÙ
صدر Ø§ÙØ±Ø³Ù
Ù ÙÙØ§Ø±Ù اÙÙØªÙجة ÙØ¨Ù Ø§ÙØªØ¹Ø¯ÙÙ.","ØØ¯ÙØ« اÙÙØ§Ø¹Ø¯Ø© أ٠أبÙÙØ§ Ù
ØØ¬Ùبة ØØªÙ ÙÙØªÙ
Ù Ø§ÙØªØÙÙ."],stepsEn:["Review rules that are due or expired.","Open the official source and compare before editing.","Update the rule or keep it blocked until verification is complete."],exampleAr:"Ù
ثا٠إرشادÙ: ÙØ§Ø¹Ø¯Ø© Ø¨ÙØ§ Ù
صدر Ù
ÙØ«Ù ØªØ¸ÙØ± Ù
ØØ¬Ùبة ÙÙØ§ ÙÙ
Ù٠استخداÙ
ÙØ§ ÙØ¨Ø¯Ø¡ Ø·ÙØ¨ ÙÙØ§ÙØ©.",exampleEn:"Guided example: a rule without a verified source appears blocked and cannot start an agency application.",controlAr:"Passport Index Ù
رجع Ù
ÙØ§Ø±ÙØ© ÙÙØ·Ø ÙØ§ تعتÙ
د ÙØ§Ø¹Ø¯Ø© Ù
ÙØ´Ùرة Ù
٠دÙÙ Ù
صدر ØÙÙÙ
٠أ٠ÙÙØµÙÙ ÙØªØ§Ø±ÙØ® Ù
راجعة.",controlEn:"Passport Index is comparison-only; never publish a rule without a government or consular source and review date."}};function CG(e){return Aye[e]}function Eye({module:e,lang:t,open:n,trainingMode:a,onOpenChange:r,onTrainingModeChange:i}){const o=t==="ar",c=CG(e.id),l=o?c.stepsAr:c.stepsEn;
1620return s.jsx(Ba,{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:53",open:n,onOpenChange:r,children:s.jsxs(Fa,{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:54",dir:o?"rtl":"ltr",className:"max-h-[90vh] max-w-2xl overflow-hidden border-white/10 bg-[#0a1721] p-0 text-slate-100 shadow-[0_40px_120px_-30px_rgba(34,211,238,0.28)]",children:[s.jsxs(as,{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:58",className:"border-b border-white/[0.07] px-6 pb-5 pt-6 text-start",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:59",className:"mb-3 flex items-center gap-3",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:60",className:"flex h-11 w-11 items-center justify-center rounded-xl bg-cyan-300/10 text-cyan-300",children:s.jsx(vx,{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:61",className:"h-5 w-5"})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:63",className:"min-w-0",children:[s.jsx(Pn,{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:64",className:"mb-1 border-cyan-300/20 bg-cyan-300/10 text-cyan-200 hover:bg-cyan-300/10",children:o?"Ù
ساعدة Ø³ÙØ§ÙÙØ©":"Context help"}),s.jsx(Ua,{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:67",className:"text-lg text-white",children:o?e.labelAr:e.labelEn})]})]}),s.jsx(F2,{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:72",className:"text-start text-sm leading-6 text-slate-400",children:o?c.purposeAr:c.purposeEn})]}),s.jsx(EG,{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:77",className:"max-h-[58vh]",children:s.jsxs("div",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:78",className:"space-y-4 px-6 py-5",children:[s.jsxs("section",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:79",className:"rounded-2xl border border-white/[0.07] bg-white/[0.025] p-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:80",className:"mb-3 flex items-center gap-2 text-sm font-semibold text-white",children:[s.jsx(Sk,{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:81",className:"h-4 w-4 text-cyan-300"}),s.jsx("span",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:82",children:o?"Ø®Ø·ÙØ§Øª Ø§ÙØ¹Ù
٠اÙÙ
ÙØªØ±ØØ©":"Suggested workflow"})]}),s.jsx("ol",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:84",className:"space-y-2.5",children:l.map((d,m)=>s.jsxs("li",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:86",className:"flex items-start gap-3 text-sm leading-6 text-slate-300",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:87",className:"mt-0.5 flex h-6 w-6 shrink-0 items-center justify-center rounded-lg bg-cyan-300/10 text-[11px] font-bold text-cyan-200",children:m+1}),s.jsx("span",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:90",children:d})]},d))})]}),s.jsxs("section",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:96",className:"rounded-2xl border border-amber-300/15 bg-amber-300/[0.045] p-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:97",className:"mb-2 flex items-center gap-2 text-sm font-semibold text-amber-100",children:[s.jsx(iie,{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:98",className:"h-4 w-4 text-amber-300"}),s.jsx("span",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:99",children:o?"Ù
ثا٠إرشادÙ":"Guided example"})]}),s.jsx("p",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:101",className:"text-sm leading-6 text-amber-50/75",children:o?c.exampleAr:c.exampleEn})]}),s.jsxs("section",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:106",className:"rounded-2xl border border-emerald-300/15 bg-emerald-300/[0.04] p-4",children:[s.jsxs("div",{"data-loc":"client/src/components/
1620accounting/OrbitContextHelp.tsx:107",className:"mb-2 flex items-center gap-2 text-sm font-semibold text-emerald-100",children:[s.jsx(sa,{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:108",className:"h-4 w-4 text-emerald-300"}),s.jsx("span",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:109",children:o?"ضابط Ù
ÙÙ
":"Important control"})]}),s.jsx("p",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:111",className:"text-sm leading-6 text-emerald-50/70",children:o?c.controlAr:c.controlEn})]})]})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:118",className:"flex flex-col gap-3 border-t border-white/[0.07] bg-black/10 px-6 py-4 sm:flex-row sm:items-center sm:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:119",className:"flex min-w-0 items-start gap-3",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:120",className:"mt-0.5 flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-violet-300/10 text-violet-200",children:s.jsx(OU,{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:121",className:"h-4 w-4"})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:123",className:"min-w-0",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:124",className:"text-sm font-semibold text-white",children:o?"ÙØ¶Ø¹ Ø§ÙØªØ¯Ø±Ùب":"Training mode"}),s.jsx("p",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:125",className:"mt-0.5 text-xs leading-5 text-slate-500",children:o?"ÙØ¹Ø±Ø¶ Ù
Ø«Ø§ÙØ§Ù ÙØ¶Ø§Ø¨Ø·Ø§Ù Ù
ختصرا٠أعÙ٠اÙÙØØ¯Ø© Ù
٠دÙÙ Ø¥ÙØ´Ø§Ø¡ Ø£Ù Ø¨ÙØ§Ùات.":"Shows a short example and control above the module without creating any data."})]})]}),s.jsx(C0,{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:132",checked:a,onCheckedChange:i,"aria-label":o?"ØªÙØ¹ÙÙ ÙØ¶Ø¹ Ø§ÙØªØ¯Ø±Ùب":"Enable training mode"})]})]})})}function Cye({module:e,lang:t,onDismiss:n,onOpenHelp:a}){const r=t==="ar",i=CG(e.id);return s.jsx("section",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:148",className:"orbit-enter mb-5 rounded-2xl border border-violet-300/15 bg-gradient-to-br from-violet-300/[0.075] to-cyan-300/[0.035] p-4 shadow-[0_20px_55px_-45px_rgba(167,139,250,0.8)]",children:s.jsxs("div",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:149",className:"flex items-start gap-3",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:150",className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-violet-300/10 text-violet-200",children:s.jsx(OU,{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:151",className:"h-5 w-5"})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:153",className:"min-w-0 flex-1",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:154",className:"flex flex-wrap items-center gap-2",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:155",className:"text-sm font-semibold text-white",children:r?"ÙØ¶Ø¹ Ø§ÙØªØ¯Ø±Ùب ÙØ´Ø·":"Training mode is active"}),s.jsxs(Pn,{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:156",className:"border-violet-300/20 bg-violet-300/10 text-violet-100 hover:bg-violet-300/10",children:[s.jsx(pr,{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:157",className:"me-1 h-3 w-3"}),r?"ÙØ§ ÙÙØ´Ø¦ Ø¨ÙØ§Ùات":"No data is created"]})]}),s.jsx("p",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:161",className:"mt-2 text-sm leading-6 text-slate-300",children:r?i.exampleAr:i.exampleEn}),s.jsxs("div",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:164",className:"mt-3 flex flex-wrap items-center gap-2",children:[s.jsxs(Ie,{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:165",type:"button",size:"sm",variant:"outline",onClick:a,className:"rounded-xl border-white/10 bg-white/[0.035] text-slate-200 hover:bg-white/[0.07] hover:text-white",children:[s.jsx(vx,{"data-loc":"client/src/components/
1620accounting/OrbitContextHelp.tsx:172",className:"h-4 w-4"}),s.jsx("span",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:173",className:"mx-1.5",children:r?"عرض Ø§ÙØ¯ÙÙ٠اÙÙØ§Ù
Ù":"Open full guide"})]}),s.jsxs("p",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:175",className:"flex min-w-0 items-start gap-2 text-xs leading-5 text-emerald-100/70",children:[s.jsx(sa,{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:176",className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-emerald-300"}),s.jsx("span",{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:177",children:r?i.controlAr:i.controlEn})]})]})]}),s.jsx(Ie,{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:181",type:"button",variant:"ghost",size:"icon",onClick:n,className:"h-9 w-9 shrink-0 rounded-xl text-slate-500 hover:bg-white/[0.06] hover:text-white","aria-label":r?"Ø¥ÙÙØ§Ù ÙØ¶Ø¹ Ø§ÙØªØ¯Ø±Ùب":"Disable training mode",children:s.jsx(ks,{"data-loc":"client/src/components/accounting/OrbitContextHelp.tsx:189",className:"h-4 w-4"})})]})})}const ob={overview:nie,costCalculator:lh,staffPackages:b3,bookings:Zj,invoices:v3,vouchers:vx,tickets:U4,manifests:MU,payments:Xre,expenses:M0,priceImports:Zre,journal:B4,reports:Qre,customers:Yre,suppliers:Im,accounts:Fre,employees:YU,hotels:wu,jordanHotelQuotes:ph,jordanHotelAdmin:sa,messages:lie,referenceData:b3,visaCompliance:sa};function QN(e,t){return new Intl.NumberFormat(t==="ar"?"ar-JO":"en-JO",{style:"currency",currency:"JOD",maximumFractionDigits:0}).format(Number(e??0))}function Sye({lang:e}){const t=e==="ar";return s.jsx(kn,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:159",dir:t?"rtl":"ltr",className:"overflow-hidden border-slate-800 bg-[#08131d] text-white shadow-2xl",children:s.jsxs(Un,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:160",className:"relative p-0",children:[s.jsx("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:161",className:"orbit-grid pointer-events-none absolute inset-0 opacity-30"}),s.jsx("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:162",className:"orbit-aurora orbit-aurora--one pointer-events-none"}),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:163",className:"relative grid gap-8 p-7 md:grid-cols-[1fr_auto] md:items-center md:p-10",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:164",className:"flex items-start gap-5",children:[s.jsx(w9,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:165"}),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:166",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:167",className:"text-xs font-semibold tracking-[0.24em] text-cyan-300",children:"IBRIX"}),s.jsx("h2",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:168",className:"mt-2 text-3xl font-semibold tracking-tight",children:Jc.name}),s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:169",className:"mt-3 max-w-2xl leading-7 text-slate-400",children:t?"Ø£ØµØ¨Ø Ø§ÙÙØ¸Ø§Ù
اÙÙ
ØØ§Ø³Ø¨Ù Ù
Ø³Ø§ØØ© عÙ
Ù Ù
ستÙÙØ© ÙØ¢Ù
ÙØ©Ø Ø§ÙØªØÙ بÙ
ÙØ¡ Ø§ÙØ´Ø§Ø´Ø© ÙÙÙØµÙ٠إÙÙ Ù
Ø±ÙØ² اÙÙÙØ§Ø¯Ø© ÙØ§ÙÙØØ¯Ø§Øª اÙÙ
اÙÙØ© ÙØ§ÙتشغÙÙÙØ©.":"Accounting now runs in a secure standalone workspace. Open the full portal to access the command center and connected finance modules."})]})]}),s.jsx(Ie,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:176",asChild:!0,className:"orbit-primary-button h-12 rounded-xl bg-cyan-300 px-6 font-semibold text-[#061018] hover:bg-cyan-200",children:s.jsxs("a",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:177",href:"/accounting",children:[t?"ÙØªØ IBRIX":"Open IBRIX",t?s.jsx(_l,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:179",className:"ms-2 h-4 w-4"}
1620):s.jsx(dr,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:179",className:"ms-2 h-4 w-4"})]})})]})]})})}function u5({icon:e,label:t,value:n,note:a,color:r,delay:i}){return s.jsxs("article",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:190",className:"orbit-kpi-card orbit-enter rounded-2xl border border-white/[0.07] bg-white/[0.035] p-5",style:{animationDelay:`${i}ms`},children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:191",className:"flex items-start justify-between gap-4",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:192",className:`flex h-10 w-10 items-center justify-center rounded-xl border border-current/10 bg-current/[0.07] ${r}`,children:s.jsx(e,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:192",className:"h-5 w-5"})}),s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:193",className:"rounded-full bg-white/[0.04] px-2.5 py-1 text-[10px] font-semibold tracking-wider text-slate-600",children:"LIVE"})]}),s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:195",className:"mt-5 text-sm text-slate-400",children:t}),s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:196",className:"mt-1 text-2xl font-semibold tracking-tight text-white",children:n}),s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:197",className:"mt-2 text-xs leading-5 text-slate-600",children:a})]})}function _ye({module:e,lang:t,onOpen:n,delay:a}){const r=ob[e.id];return s.jsxs("button",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:205",type:"button",onClick:n,className:"orbit-module-card orbit-enter group rounded-2xl border border-white/[0.075] bg-white/[0.032] p-5 text-start transition duration-200 hover:-translate-y-1 hover:border-cyan-300/20 hover:bg-white/[0.055] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cyan-300",style:{animationDelay:`${a}ms`},children:[s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:206",className:"flex h-11 w-11 items-center justify-center rounded-xl bg-gradient-to-br from-cyan-300/20 to-blue-500/5 text-cyan-300",children:s.jsx(r,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:206",className:"h-5 w-5"})}),s.jsx("h3",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:207",className:"mt-5 font-semibold text-slate-100",children:Vp(e,t)}),s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:208",className:"mt-2 min-h-10 text-xs leading-5 text-slate-500",children:x7(e,t)}),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:209",className:"mt-5 flex items-center justify-between text-xs text-slate-700",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:209",children:e.shortcut??"ERP"}),s.jsx(ch,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:209",className:"h-4 w-4 transition group-hover:-translate-y-0.5 group-hover:translate-x-0.5 group-hover:text-cyan-300"})]})]})}function Pye({lang:e,visibleModules:t,onOpen:n}){const a=e==="ar",r=Pe.accounting.dashboard.useQuery(void 0,{retry:!1}),i=r.data,o=t.filter(l=>["costCalculator","bookings","invoices","reports","hotels","suppliers"].includes(l.id)).slice(0,6),c=new Intl.DateTimeFormat(a?"ar-JO":"en-GB",{month:"long",year:"numeric"}).format(new Date);return s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:222",className:"space-y-7",children:[s.jsxs("section",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:223",className:"orbit-command-deck orbit-enter relative overflow-hidden rounded-[26px] border border-cyan-300/10 bg-gradient-to-br from-cyan-300/[0.10] via-white/[0.035] to-violet-400/[0.06] p-6 md:p-8",children:[s.jsx("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:224",className:"orbit-grid pointer-events-none absolute inset-0 opacity-25"}
1620),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:225",className:"relative flex flex-col gap-6 xl:flex-row xl:items-end xl:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:226",children:[s.jsxs("span",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:227",className:"inline-flex items-center gap-2 rounded-full border border-cyan-300/15 bg-cyan-300/[0.07] px-3 py-1.5 text-xs font-medium text-cyan-200",children:[s.jsx(pr,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:227",className:"h-3.5 w-3.5"}),a?"Ù
ÙØ®Øµ تشغÙÙ٠ذÙÙ":"Executive operating snapshot"]}),s.jsx("h1",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:228",className:"mt-5 max-w-3xl text-3xl font-semibold leading-tight tracking-[-0.035em] text-white md:text-4xl",children:a?"ÙÙ ÙØ±Ø§Ø± Ù
اÙÙ ÙØ¨Ø¯Ø£ Ù
Ù ØµÙØ±Ø© Ø£ÙØ¶Ø.":"Every financial decision starts with a clearer picture."}),s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:229",className:"mt-3 max-w-2xl leading-7 text-slate-400",children:a?`أداء ${c}Ø ØØ§ÙØ© Ø§ÙØªØ¯Ù٠اÙÙÙØ¯ÙØ ÙØ£ÙÙ
ÙÙØ§Ø· Ø§ÙØ¹Ù
Ù ÙÙ Ù
ÙØ§Ù ÙØ§ØØ¯.`:`${c} performance, cash position, and priority actions in one place.`})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:231",className:"flex flex-wrap gap-3",children:[t.some(l=>l.id==="costCalculator")&&s.jsxs(Ie,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:232",onClick:()=>n("costCalculator"),className:"orbit-primary-button h-11 rounded-xl bg-cyan-300 px-5 font-semibold text-[#061018] hover:bg-cyan-200",children:[s.jsx(lh,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:232",className:"h-4 w-4"}),s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:232",className:"mx-2",children:a?"ØªØ³Ø¹ÙØ± Ø¨Ø±ÙØ§Ù
ج":"Price a program"})]}),t.some(l=>l.id==="reports")&&s.jsxs(Ie,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:233",onClick:()=>n("reports"),variant:"outline",className:"h-11 rounded-xl border-white/10 bg-white/[0.035] px-5 text-slate-200 hover:bg-white/[0.07] hover:text-white",children:[s.jsx(eA,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:233",className:"h-4 w-4"}),s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:233",className:"mx-2",children:a?"Ø§ÙØªÙØ§Ø±ÙØ±":"Reports"})]})]})]})]}),s.jsxs("section",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:238",className:"grid gap-4 sm:grid-cols-2 xl:grid-cols-4",children:[s.jsx(u5,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:239",icon:Cd,label:a?"إجÙ
اÙÙ Ø§ÙØ¥Ùراد":"Total revenue",value:r.isLoading?"â":QN(i?.totalRevenue,e),note:a?"Ø¥ÙØ±Ø§Ø¯ اÙÙÙØ§ØªÙر اÙÙ
سجÙÙØ©":"Revenue from posted invoices",color:"text-cyan-300",delay:50}),s.jsx(u5,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:240",icon:Aie,label:a?"إجÙ
اÙ٠اÙÙ
صرÙÙ":"Total expenses",value:r.
1620isLoading?"â":QN(i?.totalExpenses,e),note:a?"Ù
صرÙÙØ§Øª Ø§ÙØªØ´ØºÙ٠اÙÙ
ثبتة":"Posted operating expenses",color:"text-amber-300",delay:100}),s.jsx(u5,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:241",icon:iA,label:a?"صاÙÙ Ø§ÙØ±Ø¨Ø":"Net profit",value:r.isLoading?"â":QN(i?.netProfit,e),note:a?"بعد تÙÙÙØ© اÙÙ
ÙØ±Ø¯ÙÙ ÙØ§ÙÙ
صارÙÙ":"After supplier and operating costs",color:"text-emerald-300",delay:150}),s.jsx(u5,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:242",icon:ji,label:a?"عدد اÙÙÙØ§ØªÙر":"Invoice count",value:r.isLoading?"â":String(i?.invoiceCount??0),note:a?"إجÙ
اÙ٠اÙÙÙØ§ØªÙر Ù٠اÙÙØ¸Ø§Ù
":"All invoices in the ledger",color:"text-violet-300",delay:200})]}),r.isError&&s.jsx("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:245",className:"rounded-2xl border border-amber-300/15 bg-amber-300/[0.06] p-4 text-sm leading-6 text-amber-100",children:a?"تعذر ØªØØ¯ÙØ« Ù
ؤشرات اÙÙ
Ø¯ÙØ± ÙÙØ°Ø§ Ø§ÙØ¯ÙØ±Ø ÙÙ٠اÙÙØØ¯Ø§Øª اÙÙ
ØµØ±ÙØ Ø¨ÙØ§ Ù
ØªØ§ØØ© ÙÙØ¹Ù
Ù.":"Executive indicators are not available for this role, but authorized modules remain accessible."}),o.length>0&&s.jsxs("section",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:247",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:248",className:"mb-4 flex items-end justify-between gap-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:248",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:248",className:"text-xs font-semibold uppercase tracking-[0.2em] text-cyan-300/80",children:a?"اختصارات":"LAUNCHPAD"}),s.jsx("h2",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:248",className:"mt-1 text-xl font-semibold text-white",children:a?"Ø§ÙØªÙÙ Ù
باشرة Ø¥ÙÙ Ø§ÙØ¹Ù
Ù":"Move straight into the work"})]}),s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:248",className:"hidden text-xs text-slate-600 sm:block",children:a?"ÙØØ¯Ø§Øª Ù
ترابطة ØØ³Ø¨ Ø§ÙØµÙاØÙØ©":"Connected modules, filtered by access"})]}),s.jsx("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:249",className:"grid gap-4 sm:grid-cols-2 xl:grid-cols-3",children:o.map((l,d)=>s.jsx(_ye,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:249",module:l,lang:e,onOpen:()=>n(l.id),delay:70+d*45},l.id))})]}),s.jsxs("section",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:252",className:"grid gap-4 xl:grid-cols-[1.15fr_0.85fr]",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:253",className:"rounded-2xl border border-white/[0.07] bg-white/[0.028] p-5 md:p-6",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:254",className:"flex items-center justify-between gap-4",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:254",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:254",className:"text-sm font-semibold text-white",children:a?"ÙØ¨Ø¶ Ø§ÙØ¯Ùرة اÙÙ
اÙÙØ©":"Financial cycle pulse"}),s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:254",className:"mt-1 text-xs text-slate-500",children:a?"Ø¬Ø§ÙØ²ÙØ© Ø§ÙØ³Ø¬Ùات Ø§ÙØ±Ø¦ÙØ³ÙØ©":"Readiness of core records"})]}),s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:254",className:"flex h-10 w-10 items-center justify-center rounded-xl bg-emerald-300/10 text-emerald-300",children:s.jsx(sa,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:254",className:"h-5 w-5"})})]}),s.jsx("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:255",className:"mt-6 grid gap-3 sm:grid-cols-3",children:[[a?"اÙÙÙØªØ±Ø©":"Billing",i?.invoiceCount],[a?"Ø§ÙØ¹Ù
ÙØ§Ø¡":"Customers",i?.customerCount],[a?"Ø§ÙØØ¬ÙØ²Ø§Øª":"Bookings",i?.bookingCount]].map(([l,d])=>
1620s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:256",className:"rounded-xl border border-white/[0.06] bg-black/10 p-4",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:256",className:"text-xs text-slate-500",children:l}),s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:256",className:"mt-2 text-xl font-semibold text-white",children:r.isLoading?"â":String(d??0)})]},String(l)))})]}),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:259",className:"rounded-2xl border border-white/[0.07] bg-white/[0.028] p-5 md:p-6",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:260",className:"flex items-center gap-3",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:260",className:"flex h-10 w-10 items-center justify-center rounded-xl bg-cyan-300/10 text-cyan-300",children:s.jsx(ns,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:260",className:"h-5 w-5"})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:260",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:260",className:"text-sm font-semibold text-white",children:a?"Ø¬Ø§ÙØ²ÙØ© اÙÙÙÙ
":"Today's readiness"}),s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:260",className:"mt-1 text-xs text-slate-500",children:a?"Ø«ÙØ§Ø« Ø®Ø·ÙØ§Øª ÙÙØ§Ùضباط اÙÙÙÙ
Ù":"Three steps for daily control"})]})]}),s.jsx("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:261",className:"mt-5 space-y-3 text-sm text-slate-400",children:[a?"راجع ÙÙØ§ØªÙر اÙÙÙÙ
":"Review today's invoices",a?"طاب٠اÙÙ
ÙØ¨Ùضات ÙØ§ÙÙ
دÙÙØ¹Ø§Øª":"Reconcile cash and payments",a?"اعتÙ
د ØªÙØ§ÙÙÙ Ø§ÙØ¨Ø±Ø§Ù
ج Ø§ÙØ¬Ø¯Ùدة":"Approve new program costs"].map(l=>s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:261",className:"flex items-center gap-3 rounded-xl bg-white/[0.025] px-3 py-2.5",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:261",className:"h-1.5 w-1.5 rounded-full bg-cyan-300"}),l]},l))})]})]})]})}function gM(e,t,n,a,r,i,o){switch(e){case"overview":return s.jsx(Pye,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:278",lang:t,visibleModules:n,onOpen:a});case"costCalculator":return s.jsx(z2e,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:279",lang:t});case"staffPackages":return s.jsx(nye,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:280",lang:t,role:r,onStartBooking:c=>a("bookings",c)});case"bookings":return s.jsx(F2e,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:281",lang:t,initialPackageId:i,onInitialPackageConsumed:o,onOpenModule:a});case"messages":return s.jsx(gve,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:282",lang:t});case"invoices":return s.jsx(Q2e,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:283",lang:t});case"vouchers":return s.jsx(cye,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:284",lang:t});case"tickets":return s.jsx(iye,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:285",lang:t});case"manifests":return s.jsx(dve,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:286",lang:t});case"payments":return s.jsx(bve,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:287",lang:t});case"expenses":return s.jsx(W2e,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:288",lang:t});case"priceImports":return s.jsx($ve,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:289",lang:t});case"referenceData":return s.jsx(Wve,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:290",lang:t,role:r});case"visaCompliance":return s.jsx(lye,{"data-loc":"client/src/components/
1620accounting/AccountingDashboard.tsx:291",lang:t});case"journal":return s.jsx(Z2e,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:292",lang:t,role:r});case"reports":return s.jsx(Yve,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:293",lang:t});case"customers":return s.jsx($2e,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:294",lang:t});case"suppliers":return s.jsx(Xve,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:295",lang:t});case"accounts":return s.jsx(Gbe,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:296",lang:t});case"employees":return s.jsx(G2e,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:297",lang:t});case"hotels":return s.jsx(Y2e,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:298",lang:t});case"jordanHotelQuotes":return s.jsx(sve,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:299",lang:t});case"jordanHotelAdmin":return s.jsx(ave,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:300",lang:t})}}function SG({lang:e,admin:t,standalone:n=!1,onLanguageChange:a,onLogout:r,logoutPending:i=!1,initialModuleId:o,initialPackageId:c=null}){if(!n)return s.jsx(Sye,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:314",lang:e});const l=e==="ar",d=t?.consoleRole??"admin",m=k.useMemo(()=>p9(d),[d]),h=oxe(d)??"overview",x=o&&m.some(J=>J.id===o)?o:h,[f,b]=k.useState(x),[y,w]=k.useState(c),[T,A]=k.useState(!1),[E,D]=k.useState(!1),[S,R]=k.useState(()=>{if(typeof window>"u")return!1;const J=window.localStorage.getItem(Xc.trainingMode);return J&&window.localStorage.setItem(Xc.trainingMode,J),J==="enabled"}),[L,I]=k.useState(""),F=k.useRef(null);k.useEffect(()=>{m.some(J=>J.id===f)||b(h)},[f,h,m]),k.useEffect(()=>{!o||!m.some(J=>J.id===o)||(b(o),w(o==="bookings"?c:null))},[o,c,m]),k.useEffect(()=>{const J=()=>{const G=g7(window.location.search,d);G.moduleId&&(b(G.moduleId),w(G.packageId),window.scrollTo({top:0,behavior:"auto"}))};return g7(window.location.search,d).moduleId||window.history.replaceState({},"",I3(h)),window.addEventListener("popstate",J),()=>window.removeEventListener("popstate",J)},[h,d]),k.useEffect(()=>{window.localStorage.setItem(Xc.trainingMode,S?"enabled":"disabled")},[S]),k.useEffect(()=>{const J=oe=>{(oe.ctrlKey||oe.metaKey)&&oe.key.toLowerCase()==="k"&&(oe.preventDefault(),A(!0),window.setTimeout(()=>F.current?.focus(),20)),oe.key==="Escape"&&A(!1)};return window.addEventListener("keydown",J),()=>window.removeEventListener("keydown",J)},[]);const _=m.find(J=>J.id===f)??m[0],U=m.filter(J=>`${J.labelAr} ${J.labelEn} ${J.descriptionAr} ${J.descriptionEn}`.toLowerCase().includes(L.trim().toLowerCase())),O=new Intl.DateTimeFormat(l?"ar-JO":"en-GB",{weekday:"long",day:"numeric",month:"long"}).format(new Date),W=(J,oe=null)=>{if(!m.some(ee=>ee.id===J))return;const G=J==="bookings"&&Number.isInteger(oe)&&Number(oe)>0?Number(oe):null;b(J),w(G),A(!1),I("");const K=I3(J,G);`${window.location.pathname}${window.location.search}`!==K&&window.history.pushState({},"",K),window.scrollTo({top:0,behavior:"smooth"})};return s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:396",dir:l?"rtl":"ltr",className:"orbit-app orbit-app--polar min-h-screen bg-[#071018] text-slate-100",children:[s.jsxs(Dbe,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:397",defaultOpen:!0,children:[s.jsxs(Rbe,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:398",side:l?"right":"left",collapsible:"icon",className:"orbit-sidebar-shell border-white/[0.07] bg-[#08131d]",children:[s.jsx(Obe,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:399",className:"p-3",children:s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:399",className:"flex h-16 items-center gap-3 overflow-hidden rounded-xl border border-white/[0.06] bg-white/[0.035] px-3 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-1",children:[s.jsx(w9,{"data-loc":"client/src/components/
1620accounting/AccountingDashboard.tsx:399",compact:!0}),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:399",className:"min-w-0 group-data-[collapsible=icon]:hidden",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:399",className:"truncate text-[10px] font-semibold tracking-[0.2em] text-cyan-300",children:"IBRIX"}),s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:399",className:"truncate text-sm font-semibold text-white",children:"IBRIX"})]})]})}),s.jsx(BI,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:400",className:"bg-white/[0.07]"}),s.jsx(Fbe,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:401",className:"gap-0 overflow-x-hidden overflow-y-auto! overscroll-contain px-1 py-3 [scrollbar-gutter:stable] group-data-[collapsible=icon]:overflow-y-auto! group-data-[collapsible=icon]:px-0","aria-label":l?"ÙØØ¯Ø§Øª IBRIX":"IBRIX modules",children:s.jsx("nav",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:405",className:"flex w-full min-w-0 flex-none flex-col","aria-label":l?"Ø§ÙØªÙÙ٠بÙÙ ÙØØ¯Ø§Øª اÙÙØ¸Ø§Ù
":"System module navigation",children:rxe.map(J=>{const oe=m.filter(K=>K.group===J.id);if(!oe.length)return null;const G=`orbit-sidebar-group-${J.id}`;return s.jsxs(Ube,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:411",role:"group","aria-labelledby":G,className:"static flex-none px-2 pb-4 pt-1 group-data-[collapsible=icon]:px-0 group-data-[collapsible=icon]:pb-2",children:[s.jsx("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:417",id:G,role:"heading","aria-level":2,className:"static mb-2 flex h-auto min-h-8 flex-none items-center border-b border-white/[0.05] px-2 py-2 text-[10px] font-semibold leading-4 text-slate-500 group-data-[collapsible=icon]:hidden",children:s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:423",className:`min-w-0 break-words ${l?"tracking-normal":"uppercase tracking-[0.14em]"}`,children:l?J.ar:J.en})}),s.jsx(Hbe,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:427",className:"flex-none",children:s.jsx(Vbe,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:428",className:"flex-none gap-1.5 group-data-[collapsible=icon]:items-center group-data-[collapsible=icon]:gap-2",children:oe.map(K=>{const ee=ob[K.id];return s.jsx(zbe,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:432",className:"flex-none group-data-[collapsible=icon]:flex group-data-[collapsible=icon]:justify-center",children:s.jsxs(qbe,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:433",isActive:f===K.id,"aria-current":f===K.id?"page":void 0,tooltip:Vp(K,e),onClick:()=>W(K.id),className:`relative h-auto min-h-[52px] flex-none gap-3.5 rounded-xl border border-transparent px-3 py-3 text-slate-400 transition-[color,background-color,border-color,box-shadow,transform] duration-150 ease-out before:absolute before:inset-y-3 before:w-0.5 before:rounded-full before:bg-transparent hover:border-white/[0.07] hover:bg-white/[0.06] hover:text-white active:scale-[0.98] focus-visible:ring-2 focus-visible:ring-cyan-300/70 data-[active=true]:border-cyan-300/20 data-[active=true]:from-cyan-300/[0.14] data-[active=true]:to-cyan-300/[0.04] data-[active=true]:text-cyan-100 data-[active=true]:shadow-[inset_0_0_18px_rgba(34,211,238,0.035)] data-[active=true]:before:bg-cyan-300 group-data-[collapsible=icon]:size-[44px]! group-data-[collapsible=icon]:min-h-[44px]! group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:rounded-xl group-data-[collapsible=icon]:p-0! ${l?"before:right-0 data-[active=true]:bg-gradient-to-l":"before:left-0 data-[active=true]:bg-gradient-to-r"}`,children:[s.jsx(ee,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:440",className:"size-5! shrink-0 transition-transform duration-150 group-hover/menu-item:scale-105"}
1620),s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:441",className:"min-w-0 truncate text-[13px] font-medium leading-5 group-data-[collapsible=icon]:hidden",children:Vp(K,e)})]})},K.id)})})})]},J.id)})})}),s.jsx(BI,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:453",className:"bg-white/[0.07]"}),s.jsxs(Bbe,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:454",className:"p-3",children:[s.jsx("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:455",className:"rounded-xl border border-white/[0.06] bg-white/[0.028] p-3 group-data-[collapsible=icon]:p-2",children:s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:455",className:"flex items-center gap-3",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:455",className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-gradient-to-br from-cyan-300 to-blue-500 text-xs font-bold text-[#071018]",children:(t?.name||t?.email||"U").slice(0,2).toUpperCase()}),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:455",className:"min-w-0 group-data-[collapsible=icon]:hidden",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:455",className:"truncate text-xs font-semibold text-white",children:t?.name||t?.email}),s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:455",className:"mt-0.5 truncate text-[10px] text-slate-500",children:dxe(d,e)})]})]})}),s.jsx("a",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:456",href:Jc.url,target:"_blank",rel:"noopener noreferrer",className:"mt-1 truncate px-2 text-center text-[10px] text-slate-700 transition hover:text-cyan-300 group-data-[collapsible=icon]:hidden",children:"Designed by IBRIX"})]}),s.jsx(Mbe,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:458"})]}),s.jsxs(Lbe,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:461",className:"orbit-workspace min-w-0 bg-[#071018] text-slate-100",children:[s.jsxs("header",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:462",className:"orbit-topbar sticky top-0 z-30 flex h-16 items-center gap-3 border-b border-white/[0.065] bg-[#071018]/85 px-4 backdrop-blur-xl md:px-6",children:[s.jsx(Ibe,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:463",className:"h-10 w-10 rounded-xl border border-white/[0.07] bg-white/[0.035] text-slate-400 transition duration-150 hover:border-cyan-300/15 hover:bg-white/[0.07] hover:text-white active:scale-[0.97]"}),s.jsx("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:464",className:"hidden h-5 w-px bg-white/[0.08] sm:block"}),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:465",className:"min-w-0 flex-1",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:465",className:"truncate text-sm font-semibold text-white",children:_?Vp(_,e):Jc.name}),s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:465",className:"hidden truncate text-[11px] text-slate-600 sm:block",children:O})]}),s.jsxs("button",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:466",type:"button",onClick:()=>{A(!0),window.setTimeout(()=>F.current?.focus(),20)},className:"hidden h-9 min-w-[250px] items-center gap-2 rounded-xl border border-white/[0.07] bg-white/[0.035] px-3 text-start text-xs text-slate-600 transition hover:border-cyan-300/20 hover:bg-white/[0.05] lg:flex",children:[s.jsx(so,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:466",className:"h-3.5 w-3.5"}),s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:466",className:"flex-1",children:l?"Ø§Ø¨ØØ« Ø¹Ù ÙØØ¯Ø© Ø£Ù Ù
ÙÙ
Ø©â¦":"Search modules and actionsâ¦"}),s.jsx("kbd",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:466",className:"rounded-md border border-white/[0.08] bg-black/20 px-1.5 py-0.5 text-[10px]",children:"âK"})]}
1620),s.jsx(Ie,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:467",onClick:()=>A(!0),variant:"ghost",size:"icon",className:"rounded-xl text-slate-500 hover:bg-white/[0.05] hover:text-white lg:hidden","aria-label":l?"Ø¨ØØ«":"Search",children:s.jsx(so,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:467",className:"h-4 w-4"})}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:468",variant:"ghost",size:"icon",className:"relative rounded-xl text-slate-500 hover:bg-white/[0.05] hover:text-white","aria-label":l?"Ø§ÙØªÙبÙÙØ§Øª":"Notifications",children:[s.jsx(Ore,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:468",className:"h-4 w-4"}),s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:468",className:"absolute right-2 top-2 h-1.5 w-1.5 rounded-full bg-cyan-300"})]}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:469",onClick:()=>D(!0),variant:"ghost",size:"icon",className:"relative rounded-xl text-slate-500 hover:bg-white/[0.05] hover:text-white","aria-label":l?"Ù
ساعدة اÙÙØØ¯Ø© ÙÙØ¶Ø¹ Ø§ÙØªØ¯Ø±Ùب":"Module help and training mode",children:[s.jsx(vx,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:469",className:"h-4 w-4"}),S&&s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:469",className:"absolute right-1.5 top-1.5 h-1.5 w-1.5 rounded-full bg-violet-300 ring-2 ring-[#071018]"})]}),d==="admin"&&s.jsx(Ie,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:470",asChild:!0,variant:"ghost",size:"icon",className:"rounded-xl text-slate-500 hover:bg-cyan-300/10 hover:text-cyan-200",title:l?"ÙÙØØ© Ø§ÙØ¥Ø¯Ø§Ø±Ø©":"Admin console",children:s.jsx("a",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:470",href:"/admin","aria-label":l?"Ø§ÙØ¹Ùدة Ø¥ÙÙ ÙÙØØ© Ø§ÙØ¥Ø¯Ø§Ø±Ø©":"Return to admin console",children:s.jsx(sa,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:470",className:"h-4 w-4"})})}),s.jsx(Ie,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:471",onClick:()=>a?.(l?"en":"ar"),variant:"ghost",size:"icon",className:"rounded-xl text-slate-500 hover:bg-white/[0.05] hover:text-white","aria-label":l?"English":"Ø§ÙØ¹Ø±Ø¨ÙØ©",children:s.jsx(kl,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:471",className:"h-4 w-4"})}),s.jsx(Ie,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:472",onClick:r,disabled:i,variant:"ghost",size:"icon",className:"rounded-xl text-slate-500 hover:bg-rose-400/10 hover:text-rose-300","aria-label":l?"تسجÙÙ Ø§ÙØ®Ø±Ùج":"Sign out",children:s.jsx(F4,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:472",className:"h-4 w-4"})})]}),s.jsxs("main",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:475",className:"relative min-w-0 flex-1 overflow-x-hidden px-4 py-5 md:px-6 md:py-7 xl:px-8",children:[s.jsx("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:476",className:"orbit-grid pointer-events-none absolute inset-0 opacity-[0.13]"}),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:477",className:"relative mx-auto w-full max-w-[1500px]",children:[s.jsx("nav",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:478","aria-label":l?"اختصارات ÙØØ¯Ø§Øª IBRIX":"IBRIX module shortcuts",className:"mb-5 overflow-x-auto rounded-2xl border border-white/[0.07] bg-white/[0.028] p-2 [scrollbar-width:thin]",children:s.jsx("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:479",className:"flex min-w-max items-center gap-1.5",children:m.map(J=>{const oe=ob[J.id],G=J.id===f;return s.jsxs("button",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:483",type:"button",onClick:()=>W(J.id),"aria-current":G?"page":void 0,title:Vp(J,e),className:`flex h-10 items-center gap-2 rounded-xl border px-3 text-xs font-medium transition duration-150 active:scale-[0.97] ${G?"border-cyan-300/20 bg-cyan-300/10 text-cyan-100":"border-transparent text-slate-500 hover:border-white/[0.08] hover:bg-white/[0.05] hover:text-slate-200"}
1620`,children:[s.jsx(oe,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:483",className:"h-4 w-4 shrink-0"}),s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:483",children:Vp(J,e)})]},J.id)})})}),S&&_&&s.jsx(Cye,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:487",module:_,lang:e,onDismiss:()=>R(!1),onOpenHelp:()=>D(!0)}),f==="overview"?gM(f,e,m,W,d,y,()=>w(null)):s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:488",className:"orbit-enter space-y-5",children:[s.jsxs("section",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:489",className:"flex flex-col gap-4 rounded-2xl border border-white/[0.07] bg-white/[0.028] p-5 sm:flex-row sm:items-center sm:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:489",className:"flex min-w-0 items-start gap-4",children:[_&&(()=>{const J=ob[_.id];return s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:489",className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-xl bg-cyan-300/10 text-cyan-300",children:s.jsx(J,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:489",className:"h-5 w-5"})})})(),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:489",className:"min-w-0",children:[s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:489",className:"break-words text-lg font-semibold leading-7 text-white",children:_&&Vp(_,e)}),s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:489",className:"mt-1 break-words text-sm leading-6 text-slate-500",children:_&&x7(_,e)})]})]}),s.jsxs(Ie,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:489",onClick:()=>W(h),variant:"outline",className:"rounded-xl border-white/[0.08] bg-white/[0.025] text-slate-400 hover:bg-white/[0.055] hover:text-white",children:[s.jsx(b3,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:489",className:"h-4 w-4"}),s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:489",className:"mx-2",children:l?"Ù
Ø±ÙØ² اÙÙÙØ§Ø¯Ø©":"Command center"})]})]}),s.jsx("section",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:490",className:"orbit-module-surface rounded-2xl border border-white/[0.07] bg-[#0a1620] p-2 shadow-[0_30px_80px_-60px_rgba(34,211,238,0.65)]",children:gM(f,e,m,W,d,y,()=>w(null))})]})]})]})]})]}),T&&s.jsx("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:497",className:"fixed inset-0 z-[100] flex items-start justify-center bg-black/65 px-4 pt-[12vh] backdrop-blur-sm",onMouseDown:J=>{J.target===J.currentTarget&&A(!1)},children:s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:497",className:"orbit-enter w-full max-w-2xl overflow-hidden rounded-2xl border border-white/10 bg-[#0b1822] shadow-[0_40px_120px_-30px_rgba(34,211,238,0.35)]",children:[s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:497",className:"flex items-center gap-3 border-b border-white/[0.07] px-4",children:[s.jsx(so,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:497",className:"h-4 w-4 text-cyan-300"}),s.jsx(Ee,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:497",ref:F,value:L,onChange:J=>I(J.target.value),placeholder:l?"Ø§Ø¨ØØ« باسÙ
اÙÙØØ¯Ø© أ٠اÙÙ
ÙÙ
Ø©â¦":"Search by module or taskâ¦",className:"h-14 flex-1 border-0 bg-transparent px-0 text-white shadow-none placeholder:text-slate-600 focus-visible:ring-0"}),s.jsx("button",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:497",type:"button",onClick:()=>A(!1),className:"rounded-lg p-2 text-slate-600 hover:bg-white/5 hover:text-white",children:s.jsx(ks,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:497",className:"h-4 w-4"})})]}),s.jsx("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:497",className:"max-h-[55vh] overflow-y-auto p-2",children:U.length?U.map(J=>{const oe=ob[J.id];
1620return s.jsxs("button",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:497",type:"button",onClick:()=>W(J.id),className:"group flex w-full items-center gap-4 rounded-xl px-3 py-3 text-start transition hover:bg-white/[0.055] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cyan-300",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:497",className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-white/[0.045] text-slate-400 group-hover:text-cyan-300",children:s.jsx(oe,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:497",className:"h-4 w-4"})}),s.jsxs("span",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:497",className:"min-w-0 flex-1",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:497",className:"block text-sm font-medium text-slate-200",children:Vp(J,e)}),s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:497",className:"mt-1 block truncate text-xs text-slate-600",children:x7(J,e)})]}),s.jsx(Qb,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:497",className:`h-4 w-4 text-slate-700 group-hover:text-cyan-300 ${l?"rotate-180":""}`})]},J.id)}):s.jsx("p",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:497",className:"px-4 py-10 text-center text-sm text-slate-600",children:l?"ÙØ§ ØªÙØ¬Ø¯ ÙØªØ§Ø¦Ø¬ Ù
Ø·Ø§Ø¨ÙØ©.":"No matching results."})}),s.jsxs("div",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:497",className:"flex items-center justify-between border-t border-white/[0.07] px-4 py-3 text-[11px] text-slate-700",children:[s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:497",children:l?"Esc ÙÙØ¥ØºÙاÙ":"Esc to close"}),s.jsx("span",{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:497",children:Jc.name})]})]})}),_&&s.jsx(Eye,{"data-loc":"client/src/components/accounting/AccountingDashboard.tsx:498",module:_,lang:e,open:E,trainingMode:S,onOpenChange:D,onTrainingModeChange:R})]})}const Us=(e,t,n)=>e==="ar"?t:n;function Dye(e,t){const n=new Date(e).getTime();if(!Number.isFinite(n))return"";const a=Math.max(0,Math.round((Date.now()-n)/1e3)),r=Math.floor(a/60),i=Math.floor(r/60),o=Math.floor(i/24);return a<60?t==="ar"?"Ø§ÙØ¢Ù":"just now":r<60?t==="ar"?`ÙØ¨Ù ${r} دÙÙÙØ©`:`${r} min ago`:i<24?t==="ar"?`ÙØ¨Ù ${i} ساعة`:`${i} hr ago`:o<7?t==="ar"?`ÙØ¨Ù ${o} ÙÙÙ
`:`${o} day${o>1?"s":""} ago`:new Date(n).toLocaleDateString(t==="ar"?"ar-JO":"en-GB",{year:"numeric",month:"short",day:"numeric"})}const xM=$g,bM={slug:"",category:"turkey",titleAr:"",titleEn:"",cityAr:"",cityEn:"",summaryAr:"",summaryEn:"",descriptionAr:"",descriptionEn:"",imageUrl:"",price:0,landPrice:0,currency:"JOD",priceBasis:"per_person",ticketIncluded:!1,ticketRoute:"",ticketPrice:0,ticketCurrency:"JOD",ticketPriceSource:"",ticketPricedAt:"",ticketValidUntil:"",ticketNotes:"",durationDays:0,durationNights:0,contactPhone:"",featured:!1,active:!0,sortOrder:0,itinerary:[],inclusions:[],exclusions:[],hotels:[],highlights:[],pricingMode:"per_hotel",packagePricing:B3(),umrahDetails:pq()},Rye=n7;function Iye(){const e=Pe.useUtils(),{lang:t,setLang:n,isRTL:a}=f9(),{data:r,isLoading:i}=Pe.adminAuth.me.useQuery(),[o,c]=k.useState("packages"),l=Pe.adminAuth.logout.useMutation({onSuccess:()=>{e.adminAuth.me.invalidate()}});return i?s.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:230",className:"min-h-screen flex items-center justify-center bg-background",children:s.jsx(ft,{"data-loc":"client/src/pages/Admin.tsx:231",className:"w-8 h-8 text-primary animate-spin"})}):r?s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:241",dir:a?"rtl":"ltr",className:"min-h-screen bg-background",children:[s.jsx("header",{"data-loc":"client/src/pages/Admin.tsx:243",className:"border-b border-border bg-card sticky top-0 z-30",children:s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:244",className:"container flex items-center justify-between h-16",children:[s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:245",className:"flex items-center gap-3",children:[s.jsx("a",{"data-loc":"client/src/pages/Admin.tsx:246",href:Oa.url,target:"_blank",rel:"noopener noreferrer",className:"rounded-lg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary",children:s.jsx("img",{"data-loc":"client/src/pages/Admin.tsx:246",src:Oa.logoUrl,alt:"IBRIX",className:"h-9 w-9 rounded-lg bg-white object-contain"})}),s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:247",children:[s.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:248",className:"font-display font-bold tracking-[0.12em] text-foreground leading-tight",children:"IBRIX"}),s.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:249",className:"text-xs text-muted-foreground leading-tight",children:Us(t,"ÙÙØØ© Ø§ÙØ¥Ø¯Ø§Ø±Ø©","Admin Console")})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:254",className:"flex items-center gap-2",children:[s.jsxs("button",{"data-loc":"client/src/pages/Admin.tsx:255",type:"button",onClick:()=>n(t==="ar"?"en":"ar"),className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full border border-border text-sm text-foreground hover:bg-muted transition-colors",children:[s.jsx(B2,{"data-loc":"client/src/pages/Admin.tsx:260",className:"w-4 h-4 text-primary"}),t==="ar"?"English":"عربÙ"]}),s.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:263",className:"hidden lg:inline text-sm text-muted-foreground",children:r.email}),s.jsx(Ie,{"data-loc":"client/src/pages/Admin.tsx:264",asChild:!0,variant:"outline",size:"icon",className:"h-9 w-9",title:Us(t,"Ù
Ø±ÙØ² ÙÙØ§Ø¯Ø© IBRIX","IBRIX command center"),children:s.jsx("a",{"data-loc":"client/src/pages/Admin.tsx:265",href:"/accounting?module=overview","aria-label":Us(t,"ÙØªØ Ù
Ø±ÙØ² ÙÙØ§Ø¯Ø© IBRIX","Open IBRIX command center"),children:s.jsx(lh,{"data-loc":"client/src/pages/Admin.tsx:265",className:"h-4 w-4"})})}),s.jsx(Ie,{"data-loc":"client/src/pages/Admin.tsx:267",asChild:!0,variant:"outline",size:"icon",className:"h-9 w-9",title:Us(t,"براÙ
ج اÙÙ
ÙØ¸ÙÙÙ","Staff programs"),children:s.jsx("a",{"data-loc":"client/src/pages/Admin.tsx:268",href:"/accounting?module=staffPackages","aria-label":Us(t,"ÙØªØ شاشة براÙ
ج اÙÙ
ÙØ¸ÙÙÙ","Open staff programs"),children:s.jsx(_k,{"data-loc":"client/src/pages/Admin.tsx:268",className:"h-4 w-4"})})}),s.jsxs(Ie,{"data-loc":"client/src/pages/Admin.tsx:270",variant:"outline",size:"sm",onClick:()=>l.mutate(),disabled:l.isPending,children:[s.jsx(F4,{"data-loc":"client/src/pages/Admin.tsx:276",className:"w-4 h-4 mx-1.5"}),Us(t,"تسجÙÙ Ø§ÙØ®Ø±Ùج","Sign Out")]})]})]})}),s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:283",className:"container py-8",children:[s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:285",className:"flex flex-wrap gap-2 mb-8",children:[s.jsxs(Ie,{"data-loc":"client/src/pages/Admin.tsx:286",variant:o==="packages"?"default":"outline",onClick:()=>c("packages"),children:[s.jsx(_k,{"data-loc":"client/src/pages/Admin.tsx:287",className:"w-4 h-4 mx-1.5"}),Us(t,"Ø§ÙØ¨Ø±Ø§Ù
ج","Packages")]}),s.jsxs(Ie,{"data-loc":"client/src/pages/Admin.tsx:290",variant:o==="inquiries"?"default":"outline",onClick:()=>c("inquiries"),children:[s.jsx(x3,{"data-loc":"client/src/pages/Admin.tsx:291",className:"w-4 h-4 mx-1.5"}),Us(t,"Ø§ÙØ·Ùبات","Inquiries")]}),s.jsxs(Ie,{"data-loc":"client/src/pages/Admin.tsx:294",variant:o==="umrah"?"default":"outline",onClick:()=>c("umrah"),children:[s.jsx(VU,{"data-loc":"client/src/pages/Admin.tsx:295",className:"w-4 h-4 mx-1.5"}),Us(t,"براÙ
ج Ø§ÙØ¹Ù
رة","Umrah Programs")]}),s.jsxs(Ie,{"data-loc":"client/src/pages/Admin.tsx:298",variant:o==="visa_apps"?"default":"outline",onClick:()=>c("visa_apps"),children:[s.jsx(WU,{"data-loc":"client/src/pages/Admin.tsx:299",className:"w-4 h-4 mx-1.5"}),Us(t,"Ø·ÙØ¨Ø§Øª Ø§ÙØªØ£Ø´Ùرات","Visa Applications")]}),s.jsxs(Ie,{"data-loc":"client/src/pages/Admin.tsx:302",variant:o==="visa_rules"?"default":"outline",onClick:()=>c("visa_rules"),children:[s.jsx(B5,{"data-loc":"client/src/pages/Admin.tsx:303",className:"w-4 h-4 mx-1.5"}),Us(t,"ÙÙØ§Ø¹Ø¯ Ø§ÙØªØ£Ø´Ùرات","Visa Rules")]}),s.jsxs(Ie,{"data-loc":"client/src/pages/Admin.tsx:306",variant:o==="visa_agents"?"default":"outline",onClick:()=>c("visa_agents"),children:[s.jsx(Dl,{"data-loc":"client/src/pages/Admin.tsx:307",className:"w-4 h-4 mx-1.5"}),Us(t,"اÙÙÙÙØ§Ø¡","Agents")]}),s.jsxs(Ie,{"data-loc":"client/src/pages/Admin.tsx:310",variant:o==="visa_finance"?"default":"outline",onClick:()=>c("visa_finance"),children:[s.jsx(th,{"data-loc":"client/src/pages/Admin.tsx:311",className:"w-4 h-4 mx-1.5"}),Us(t,"اÙÙ
اÙÙØ©","Finance")]}),s.jsxs(Ie,{"data-loc":"client/src/pages/Admin.tsx:314",variant:o==="visa_translation"?"default":"outline",onClick:()=>c("visa_translation"),children:[s.jsx(kl,{"data-loc":"client/src/pages/Admin.tsx:315",className:"w-4 h-4 mx-1.5"}),Us(t,"Ø§ÙØªØ±Ø¬Ù
Ø©","Translation")]}),s.jsxs(Ie,{"data-loc":"client/src/pages/Admin.tsx:318",variant:o==="accounting"?"default":"outline",onClick:()=>c("accounting"),children:[s.jsx(lh,{"data-loc":"client/src/pages/Admin.tsx:319",className:"w-4 h-4 mx-1.5"}),Us(t,"اÙÙØ¸Ø§Ù
اÙÙ
ØØ§Ø³Ø¨Ù","Accounting")]})]}),o==="packages"&&s.jsx(Mye,{"data-loc":"client/src/pages/Admin.tsx:324",lang:t}),o==="inquiries"&&s.jsx(Oye,{"data-loc":"client/src/pages/Admin.tsx:325",lang:t}),o==="umrah"&&s.jsx(obe,{"data-loc":"client/src/pages/Admin.tsx:326",lang:t}),o==="visa_apps"&&s.jsx(M1e,{"data-loc":"client/src/pages/Admin.tsx:327",lang:t}),o==="visa_rules"&&s.jsx(q1e,{"data-loc":"client/src/pages/Admin.tsx:328",lang:t}),o==="visa_agents"&&s.jsx(J1e,{"data-loc":"client/src/pages/Admin.tsx:329",lang:t}),o==="visa_finance"&&s.jsx(Y1e,{"data-loc":"client/src/pages/Admin.tsx:330",lang:t}),o==="visa_translation"&&s.jsx(K1e,{"data-loc":"client/src/pages/Admin.tsx:331",lang:t}),o==="accounting"&&s.jsx(SG,{"data-loc":"client/src/pages/Admin.tsx:332",lang:t})]})]}):s.jsx(mq,{"data-loc":"client/src/pages/Admin.tsx:237",onSuccess:()=>
1620e.adminAuth.me.invalidate()})}function Mye({lang:e}){const t=(V,Y)=>Us(e,V,Y),n=Pe.useUtils(),{data:a,isLoading:r}=Pe.admin.listPackages.useQuery(void 0),[i,o]=k.useState(!1),[c,l]=k.useState(bM),[d,m]=k.useState("edit"),[h,x]=k.useState("edit"),[f,b]=k.useState(()=>typeof window>"u"?!1:window.localStorage.getItem(Xc.adminLivePreview)==="1");k.useEffect(()=>{typeof window>"u"||window.localStorage.setItem(Xc.adminLivePreview,f?"1":"0")},[f]);const[y,w]=k.useState(!1),[T,A]=k.useState(""),E=V=>{const z={slug:["اÙÙ
عرÙÙ","slug"],category:["Ø§ÙØªØµÙÙÙ","category"],titleAr:["Ø§ÙØ¹ÙÙØ§Ù (عربÙ)","Title AR"],titleEn:["Ø§ÙØ¹ÙÙØ§Ù (Ø¥ÙØ¬ÙÙØ²Ù)","Title EN"],cityAr:["اÙÙ
دÙÙØ© (عربÙ)","City AR"],cityEn:["اÙÙ
دÙÙØ© (Ø¥ÙØ¬ÙÙØ²Ù)","City EN"],summaryAr:["اÙÙØ¨Ø°Ø© (عربÙ)","Summary AR"],summaryEn:["اÙÙØ¨Ø°Ø© (Ø¥ÙØ¬ÙÙØ²Ù)","Summary EN"],descriptionAr:["اÙÙØµÙ (عربÙ)","Description AR"],descriptionEn:["اÙÙØµÙ (Ø¥ÙØ¬ÙÙØ²Ù)","Description EN"],imageUrl:["Ø§ÙØµÙرة","Image"],price:["Ø§ÙØ¥Ø¬Ù
اÙÙ","Total price"],landPrice:["Ø§ÙØ³Ø¹Ø± Ø§ÙØ£Ø±Ø¶Ù","Land price"],currency:["Ø§ÙØ¹Ù
ÙØ©","Currency"],priceBasis:["ÙØØ¯Ø© Ø§ÙØªØ³Ø¹Ùر","Price basis"],ticketIncluded:["Ø´Ù
ÙÙ Ø§ÙØªØ°Ùرة","Ticket included"],ticketRoute:["Ù
سار Ø§ÙØ·ÙراÙ","Flight route"],ticketPrice:["سعر Ø§ÙØªØ°Ùرة","Ticket price"],ticketCurrency:["عÙ
ÙØ© Ø§ÙØªØ°Ùرة","Ticket currency"],ticketPriceSource:["Ù
صدر سعر Ø§ÙØªØ°Ùرة","Ticket price source"],ticketPricedAt:["ØªØ§Ø±ÙØ® Ø§ÙØªØ³Ø¹Ùر","Pricing date"],ticketValidUntil:["ØµÙØ§ØÙØ© Ø§ÙØ³Ø¹Ø±","Valid until"],ticketNotes:["Ù
ÙØ§ØØ¸Ø§Øª Ø§ÙØ·ÙراÙ","Flight notes"],durationDays:["Ø§ÙØ£ÙاÙ
","Days"],durationNights:["اÙÙÙØ§ÙÙ","Nights"],contactPhone:["اÙÙØ§ØªÙ","Phone"],featured:["Ù
Ù
ÙÙØ²","Featured"],active:["Ø§ÙØ¸ÙÙØ±","Active"],sortOrder:["Ø§ÙØªØ±ØªÙب","Sort"],itinerary:["Ø§ÙØ¨Ø±ÙاÙ
ج اÙÙÙÙ
Ù","Itinerary"],inclusions:["ÙØ´Ù
Ù","Inclusions"],exclusions:["ÙØ§ ÙØ´Ù
Ù","Exclusions"],hotels:["اÙÙÙØ§Ø¯Ù","Hotels"],highlights:["اÙÙ
عاÙÙ
","Highlights"],pricingMode:["طرÙÙØ© Ø§ÙØªØ³Ø¹Ùر","Pricing mode"],packagePricing:["ØªØ³Ø¹ÙØ± Ø§ÙØ¨Ø§ÙØ©","Package pricing"],umrahDetails:["ØªÙØ§ØµÙÙ Ø§ÙØ¹Ù
رة","Umrah details"]}[V];return z?t(z[0],z[1]):V};function D(V){l(Y=>{const z={...Y},H=["slug","category","titleAr","titleEn","cityAr","cityEn","summaryAr","summaryEn","descriptionAr","descriptionEn","imageUrl","price","landPrice","currency","priceBasis","ticketIncluded","ticketRoute","ticketPrice","ticketCurrency","ticketPriceSource","ticketPricedAt","ticketValidUntil","ticketNotes","durationDays","durationNights","contactPhone","featured","active","sortOrder","pricingMode"];for(const me of H){const fe=V[me];fe!==void 0&&(z[me]=fe)}const ne=Number(z.landPrice??z.price)||0,te=z.ticketIncluded&&Number(z.ticketPrice)||0;if(z.landPrice=ne,z.price=ne+te,z.ticketCurrency||(z.ticketCurrency=z.currency||"JOD"),V.itinerary&&(z.itinerary=V.itinerary),V.inclusions&&(z.inclusions=V.inclusions),V.exclusions&&(z.exclusions=V.exclusions),V.hotels&&(z.hotels=V.hotels),V.highlights&&(z.highlights=V.highlights),V.packagePricing&&typeof V.packagePricing=="object"){const me=V.packagePricing;z.packagePricing={cityCount:typeof me.cityCount=="number"?me.cityCount:2,cities:Array.isArray(me.cities)?me.cities:[],rows:Array.isArray(me.rows)?me.rows:[]},V.pricingMode||(z.pricingMode="package")}return V.umrahDetails&&typeof V.umrahDetails=="object"&&(z.umrahDetails=y7(V.umrahDetails)),z})}function S(){const V=p1e(T);if(!V.ok){Le.error(t("ØªØ¹Ø°ÙØ± Ø§ÙØªØ¹Ø±Ù عÙ٠أ٠ØÙÙÙ ÙØ§Ø¨ÙØ© ÙÙØ§Ø³ØªÙراد. تأÙÙØ¯ Ù
Ù ÙØµÙ ÙØµÙ Ø§ÙØ¨Ø±ÙاÙ
ج (Ø§ÙØ¹ÙÙØ§ÙØ Ø§ÙØ£ÙاÙ
Ø ÙØ´Ù
Ù...).","Could not detect any importable fields. Make sure you pasted the program description (title, days, includes...)."));return}D(V.patch);const Y=V.appliedKeys.map(E),z=Y.slice(0,8).join("Ø "),H=Y.length>8?t(` Ù${Y.length-8} أخرÙ`,` +${Y.length-8} more`):"";Le.success(t(`تÙ
Ø§Ø³ØªÙØ±Ø§Ø¯ ${Y.length} ØÙÙØ§Ù: ${z}${H}`,`Imported ${Y.length} field(s): ${z}${H}`)),w(!1),A("")}const R=Pe.admin.seedPackages.useMutation({onSuccess:V=>{Le.success(t(`تÙ
ت Ø¥Ø¶Ø§ÙØ© ${V.inserted} Ø¨Ø±ÙØ§Ù
ج Ø¬Ø¯ÙØ¯.`,`Seeded ${V.inserted} new package(s).`)),n.admin.listPackages.invalidate(),n.packages.list.invali
1620date()},onError:()=>Le.error(t("ÙØ´Ùت Ø¥Ø¶Ø§ÙØ© Ø§ÙØ¨ÙØ§ÙØ§Øª.","Seeding failed."))}),L=Pe.admin.createPackage.useMutation({onSuccess:()=>{Le.success(t("تÙ
Ø¥ÙØ´Ø§Ø¡ Ø§ÙØ¨Ø±ÙاÙ
ج.","Package created.")),o(!1),n.admin.listPackages.invalidate(),n.packages.list.invalidate()},onError:V=>Le.error(V.message||t("ÙØ´Ù Ø§ÙØ¥Ùشاء.","Create failed."))}),I=Pe.admin.updatePackage.useMutation({onSuccess:()=>{Le.success(t("تÙ
ØªØØ¯ÙØ« Ø§ÙØ¨Ø±ÙاÙ
ج.","Package updated.")),o(!1),n.admin.listPackages.invalidate(),n.packages.list.invalidate()},onError:V=>Le.error(V.message||t("ÙØ´Ù Ø§ÙØªØØ¯ÙØ«.","Update failed."))}),F=Pe.admin.deletePackage.useMutation({onSuccess:()=>{Le.success(t("تÙ
ØØ°Ù Ø§ÙØ¨Ø±ÙاÙ
ج.","Package deleted.")),n.admin.listPackages.invalidate(),n.packages.list.invalidate()},onError:()=>Le.error(t("ÙØ´Ù Ø§ÙØØ°Ù.","Delete failed."))}),_=Pe.admin.translateAllMissing.useMutation({onSuccess:V=>{V.fieldsFilled===0?Le.success(t("ÙÙ Ø§ÙØ¨Ø±Ø§Ù
ج Ù
ÙØªÙ
ÙØ© باÙÙØºØªÙÙ â ÙØ§ ÙÙØ¬Ø¯ ÙÙØ§Ùص.","All programs are complete in both languages â nothing missing.")):Le.success(t(`تÙ
ت ترجÙ
Ø© ${V.fieldsFilled} ØÙÙØ§Ù ÙØ§Ùصا٠ÙÙ ${V.updated} Ø¨Ø±ÙØ§Ù
ج.`,`Filled ${V.fieldsFilled} missing field(s) across ${V.updated} program(s).`)),n.admin.listPackages.invalidate(),n.packages.list.invalidate()},onError:V=>Le.error(V.message||t("ÙØ´Ùت Ø§ÙØªØ±Ø¬Ù
Ø© Ø§ÙØ´Ø§Ù
ÙØ©.","Bulk translation failed."))}),U=Pe.admin.translatePackageFields.useMutation();async function O(V,Y){try{const z=await U.mutateAsync({from:V,to:Y,pkg:{titleAr:c.titleAr,titleEn:c.titleEn,cityAr:c.cityAr,cityEn:c.cityEn,summaryAr:c.summaryAr,summaryEn:c.summaryEn,descriptionAr:c.descriptionAr,descriptionEn:c.descriptionEn,itinerary:c.itinerary,hotels:c.hotels,highlights:c.highlights,inclusions:c.inclusions,exclusions:c.exclusions}});l(H=>({...H,titleAr:z.titleAr??H.titleAr,titleEn:z.titleEn??H.titleEn,cityAr:z.cityAr??H.cityAr,cityEn:z.cityEn??H.cityEn,summaryAr:z.summaryAr??H.summaryAr,summaryEn:z.summaryEn??H.summaryEn,descriptionAr:z.descriptionAr??H.descriptionAr,descriptionEn:z.descriptionEn??H.descriptionEn,itinerary:Array.isArray(z.itinerary)?z.itinerary:H.itinerary,hotels:Array.isArray(z.hotels)?z.hotels:H.hotels,highlights:Array.isArray(z.highlights)?z.highlights:H.highlights,inclusions:Array.isArray(z.inclusions)?z.inclusions:H.inclusions,exclusions:Array.isArray(z.exclusions)?z.exclusions:H.exclusions})),Le.success(t("تÙ
ت ترجÙ
Ø© Ø§ÙØÙÙ٠اÙÙØ§Ùصة.","Missing fields translated."))}catch(z){Le.error(z?.message||t("ÙØ´Ùت Ø§ÙØªØ±Ø¬Ù
Ø©.","Translation failed."))}}function W(){l(bM),x("edit"),o(!0)}function J(V){l({id:V.id,slug:V.slug??"",category:V.category??"turkey",titleAr:V.titleAr??"",titleEn:V.titleEn??"",cityAr:V.cityAr??"",cityEn:V.cityEn??"",summaryAr:V.summaryAr??"",summaryEn:V.summaryEn??"",descriptionAr:V.descriptionAr??"",descriptionEn:V.descriptionEn??"",imageUrl:V.imageUrl??"",price:V.price??0,landPrice:V.landPrice??V.price??0,currency:V.currency??"JOD",priceBasis:V.priceBasis==="per_room"||V.priceBasis==="per_package"?V.priceBasis:"per_person",ticketIncluded:!!V.ticketIncluded,ticketRoute:V.ticketRoute??"",ticketPrice:V.ticketPrice??0,ticketCurrency:V.ticketCurrency??V.currency??"JOD",ticketPriceSource:V.ticketPriceSource??"",ticketPricedAt:V.ticketPricedAt??"",ticketValidUntil:V.ticketValidUntil??"",ticketNotes:V.ticketNotes??"",durationDays:V.durationDays??0,durationNights:V.durationNights??0,contactPhone:V.contactPhone??"",featured:!!V.featured,active:!!V.active,sortOrder:V.sortOrder??0,itinerary:Array.isArray(V.itinerary)?V.itinerary:[],inclusions:Array.isArray(V.inclusions)?V.inclusions:[],exclusions:Array.isArray(V.exclusions)?V.exclusions:[],hotels:Array.isArray(V.hotels)?V.hotels:[],highlights:Array.isArray(V.highlights)?V.highlights:[],pricingMode:V.pricingMode==="package"?"package":"per_hotel",packagePricing:V.packagePricing&&typeof V.packagePricing=="object"?{cityCount:V.packagePricing.cityCount??2,cities:Array.isArray(V.packagePricing.cities)?V.packagePricing.cities:[],rows:Array.isArray(V.packagePricing.rows)?V.packagePricing.rows:[]}:B3(),umrahDetails:y7(V.umrahDetails)}),x("edit"),o(!0)}function oe(){const V=(c.slug||"").trim();if(!V||!a)return null;const Y=a.find(z=>z.slug===V&&z.id!==c.id);return Y?Y.titleAr||Y.titleEn||Y.slug:null}function G(V){const Y=new Set((a??[]).filter(H=>H.id!==c.id).map(H=>H.slug));if(!Y.has(V))return V;let z=2;for(;Y.has(`${V}-${z}`);)z++;return`${V}-${z}`}function K(){if(!c.slug||!c.titleEn||!c.titleAr){Le.error(t("اÙÙ
عرÙÙ ÙØ§ÙØ¹ÙØ§ÙÙÙ (عربÙ/Ø¥ÙØ¬ÙÙØ²Ù) Ù
Ø·ÙÙØ¨Ø©.","Slug and titles (AR/EN) are required."));return}const V=oe();if(V){const Y=G((c.slug||"").trim());Le.error(t(`اÙÙ
عرÙÙ "${c.slug}" Ù
ستخدÙ
باÙÙØ¹Ù (${V}). Ø¬Ø±ÙØ¨ "${Y}".`,`Slug "${c.slug}" is already used (${V}). Try "${Y}".`)),l(z=>({...z,slug:Y}));return}x("preview")}function ee(){if(!c.slug||!c.titleEn||!c.titleAr){Le.error(t("اÙÙ
عرÙÙ ÙØ§ÙØ¹ÙØ§ÙÙÙ (عربÙ/Ø¥ÙØ¬ÙÙØ²Ù) Ù
Ø·ÙÙØ¨Ø©.","Slug and titles (AR/EN) are required."));return}if(c.ticketIncluded){const te=(c.ticketCurrency||c.currency).trim().toUpperCase(),me=(c.currency||"JOD").trim().toUpperCase();if(!c.ticketRoute.trim()||Number(c.ticketPrice)<=0||!c.ticketPriceSource.trim()||!c.ticketPricedAt){Le.error(t("Ø¹ÙØ¯ Ø´Ù
ÙÙ Ø§ÙØªØ°Ùرة ÙØ¬Ø¨ إدخا٠اÙÙ
سار ÙØ§Ùسعر ÙØ§ÙÙ
صدر ÙØªØ§Ø±ÙØ® Ø§ÙØªØ³Ø¹Ùر.","Ticket-inclusive programs require route, price, source, and pricing date."));return}if(te!==me){Le.error(t("ÙØ¬Ø¨ أ٠تطاب٠عÙ
ÙØ© Ø§ÙØªØ°Ùرة عÙ
ÙØ© Ø§ÙØ¨Ø±ÙاÙ
Ø¬Ø ÙØ§ ÙØ¬Ø±Ù اÙÙØ¸Ø§Ù
تØÙÙ٠عÙ
ÙØ§Øª تÙÙØ§Ø¦ÙاÙ.","Ticket currency must match the program currency; automatic FX conversion is not allowed."));return}}const V=oe();if(V){const te=G((c.slug||"").trim());Le.error(t(`اÙÙ
عرÙÙ "${c.slug}" Ù
ستخدÙ
باÙÙØ¹Ù (${V}). Ø¬Ø±ÙØ¨ "${te}".`,`Slug "${c.slug}" is already used (${V}). Try "${te}".`)),l(me=>({...me,slug:te}));return}const Y=Math.max(0,Number(c.landPrice)||0),z=c.ticketIncluded?Math.max(0,Number(c.ticketPrice)||0):0,H=Y+z,ne={slug:c.slug,category:c.category,titleAr:c.titleAr,titleEn:c.titleEn,cityAr:c.cityAr||null,cityEn:c.cityEn||null,summaryAr:c.summaryAr||null,summaryEn:c.summaryEn||null,descriptionAr:c.descriptionAr||null,descriptionEn:c.descriptionEn||null,imageUrl:c.imageUrl||null,landPrice:Y,price:H,currency:(c.currency||"JOD").trim().toUpperCase(),priceBasis:c.priceBasis,ticketIncluded:c.ticketIncluded,ticketRoute:c.ticketIncluded?c.ticketRoute.trim().toUpperCase():null,ticketPrice:z,ticketCurrency:c.ticketIncluded?(c.ticketCurrency||c.currency||"JOD").trim().toUpperCase():null,ticketPriceSource:c.ticketIncluded?c.ticketPriceSource.trim():null,ticketPricedAt:c.ticketIncluded?c.ticketPricedAt:null,ticketValidUntil:c.ticketIncluded&&c.ticketValidUntil?c.ticketValidUntil:null,ticketNotes:c.ticketIncluded&&c.ticketNotes.trim()?c.ticketNotes.trim():null,durationDays:Number(c.durationDays)||0,durationNights:Number(c.durationNights)||0,contactPhone:c.contactPhone||null,featured:c.featured,active:c.active,sortOrder:Number(c.sortOrder)||0,itinerary:c.itinerary,inclusions:c.inclusions,exclusions:c.exclusions,hotels:c.hotels,highlights:c.highlights,pricingMode:c.pricingMode,packagePricing:c.pricingMode==="package"?c.packagePricing:null,umrahDetails:c.category==="umrah"?c.umrahDetails:null};c.id?I.mutate({id:c.id,data:ne}):L.mutate(ne)}const pe=L.isPending||I.isPending;return s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:751",children:[s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:752",className:"flex items-center justify-between mb-5 flex-wrap gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:753",children:[s.jsx("h2",{"data-loc":"client/src/pages/Admin.tsx:754",className:"font-display font-bold text-2xl text-foreground",children:t("Ø§ÙØ¨Ø±Ø§Ù
ج Ø§ÙØ³ÙاØÙØ©","Travel Programs")}),s.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:757",className:"text-sm text-muted-foreground",children:t("Ø§ÙØªØ¹Ø¯ÙÙØ§Øª ÙÙØ§ ØªØ¸ÙØ± عÙ٠اÙÙ
ÙÙØ¹ ÙÙ
ÙÙ PDF اÙÙØ§Ø¨Ù ÙÙØªØÙ
ÙÙ ÙÙØ±Ø§Ù.","Edits here update the live site and the downloadable PDF instantly.")})]}),s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:764",className:"flex gap-2",children:[(!a||a.length===0)&&s.jsxs(Ie,{"data-loc":"client/src/pages/Admin.tsx:766",variant:"outline",onClick:()=>R.mutate(),disabled:R.isPending,children:[R.isPending?s.jsx(ft,{"data-loc":"client/src/pages/Admin.tsx:767",className:"w-4 h-4 mx-1.5 animate-spin"}):s.jsx(Ck,{"data-loc":"client/src/pages/Admin.tsx:767",className:"w-4 h-4 mx-1.5"}),t("Ø¥Ø¶Ø§ÙØ© Ø¨ÙØ§Ùات ØªØ¬Ø±ÙØ¨ÙØ©","Seed sample data")]}),a&&a.length>0&&s.jsxs(Ie,{"data-loc":"client/src/pages/Admin.tsx:772",variant:"outline",onClick:()=>_.mutate(),disabled:_.isPending,title:t("ÙØØµ ÙÙ Ø§ÙØ¨Ø±Ø§Ù
ج ÙÙ
ÙØ¡ أ٠ترجÙ
Ø© ÙØ§Ùصة تÙÙØ§Ø¦ÙاÙ","Scan all programs and auto-fill any missing translation"),children:[_.isPending?s.jsx(ft,{"data-loc":"client/src/pages/Admin.tsx:779",className:"w-4 h-4 mx-1.5 animate-spin"}):s.jsx(kl,{"data-loc":"client/src/pages/Admin.tsx:781",className:"w-4 h-4 mx-1.5"}),t("ÙØØµ ÙØªØ±Ø¬Ù
Ø© ÙÙ Ø§ÙØ¨Ø±Ø§Ù
ج","Scan & translate all")]}),s.jsxs(Ie,{"data-loc":"client/src/pages/Admin.tsx:786",onClick:W,children:[s.jsx(oa,{"data-loc":"client/src/pages/Admin.tsx:787",className:"w-4 h-4 mx-1.5"}),t("Ø¨Ø±ÙØ§Ù
ج Ø¬Ø¯ÙØ¯","New Program")]})]})]}),r?s.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:794",className:"flex items-center justify-center py-20",children:s.jsx(ft,{"data-loc":"client/src/pages/Admin.tsx:795",className:"w-8 h-8 text-primary animate-spin"})}):!a||a.length===0?s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:798",className:"text-center py-20 border border-dashed border-border rounded-xl",children:[s.jsx(_k,{"data-loc":"client/src/pages/Admin.tsx:799",className:"w-10 h-10 text-muted-foreground mx-auto mb-3"}),s.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:800",className:"text-muted-foreground",children:t("ÙØ§ ØªÙØ¬Ø¯ براÙ
ج بعد. Ø£Ø¶Ù Ø¨ÙØ§Ùات ØªØ¬Ø±ÙØ¨ÙØ© Ø£Ù Ø£ÙØ´Ø¦ Ø¨Ø±ÙØ§Ù
جاÙ.","No programs yet. Seed sample data or create one.")})]}):s.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:805",className:"overflow-x-auto rounded-xl border border-border",children:s.jsxs("table",{"data-loc":"client/src/pages/Admin.tsx:806",className:"w-full text-sm",children:[s.jsx("thead",{"data-loc":"client/src/pages/Admin.tsx:807",className:"bg-muted/60",children:s.jsxs("tr",{"data-loc":"client/src/pages/Admin.tsx:808",className:Lye(e),children:[s.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:809",className:"px-4 py-3 font-semibold text-foreground",children:t("Ø§ÙØ¨Ø±ÙاÙ
ج","Program")}),s.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:810",className:"px-4 py-3 font-semibold text-foreground",children:t("Ø§ÙØªØµÙÙÙ","Category")}),s.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:811",className:"px-4 py-3 font-semibold text-foreground",children:t("Ø§ÙØ³Ø¹Ø±","Price")}),s.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:812",className:"px-4 py-3 font-semibold text-foreground",children:t("اÙÙ
دة","Duration")}),s.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:813",className:"px-4 py-3 font-semibold text-foreground",children:t("Ø§ÙØØ§ÙØ©","Status")}),s.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:814",className:"px-4 py-3 font-semibold text-foreground text-end",children:t("إجراءات","A
1620ctions")})]})}),s.jsx("tbody",{"data-loc":"client/src/pages/Admin.tsx:817",children:a.map(V=>s.jsxs("tr",{"data-loc":"client/src/pages/Admin.tsx:819",className:"border-t border-border hover:bg-muted/30",children:[s.jsx("td",{"data-loc":"client/src/pages/Admin.tsx:820",className:"px-4 py-3",children:s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:821",className:"flex items-center gap-3",children:[V.imageUrl&&s.jsx("img",{"data-loc":"client/src/pages/Admin.tsx:823",src:V.imageUrl,alt:"",className:"w-12 h-9 rounded object-cover"}),s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:825",children:[s.jsxs("p",{"data-loc":"client/src/pages/Admin.tsx:826",className:"font-medium text-foreground flex items-center gap-1.5",children:[e==="ar"&&V.titleAr||V.titleEn,V.featured&&s.jsx(Tu,{"data-loc":"client/src/pages/Admin.tsx:828",className:"w-3.5 h-3.5 text-[#C9A961] fill-[#C9A961]"})]}),s.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:830",className:"text-xs text-muted-foreground",dir:"ltr",children:V.slug})]})]})}),s.jsx("td",{"data-loc":"client/src/pages/Admin.tsx:834",className:"px-4 py-3 text-muted-foreground",children:xM[V.category]?.[e]??V.category}),s.jsxs("td",{"data-loc":"client/src/pages/Admin.tsx:837",className:"px-4 py-3 text-foreground",dir:"ltr",children:[V.price," ",V.currency||"JOD"]}),s.jsx("td",{"data-loc":"client/src/pages/Admin.tsx:840",className:"px-4 py-3 text-muted-foreground",children:t(`${V.durationDays} Ø£ÙØ§Ù
/ ${V.durationNights} ÙÙØ§ÙÙ`,`${V.durationDays}D / ${V.durationNights}N`)}),s.jsx("td",{"data-loc":"client/src/pages/Admin.tsx:843",className:"px-4 py-3",children:s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:844",className:"flex flex-col gap-1",children:[s.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:845",className:`inline-block w-fit px-2 py-0.5 rounded-full text-xs font-medium ${V.active?"bg-green-100 text-green-700":"bg-muted text-muted-foreground"}`,children:V.active?t("Ø¸Ø§ÙØ±","Active"):t("Ù
Ø®ÙÙ","Hidden")}),V.updatedAt&&s.jsxs("span",{"data-loc":"client/src/pages/Admin.tsx:849",className:"inline-flex items-center gap-1 text-[11px] text-muted-foreground",title:new Date(V.updatedAt).toLocaleString(e==="ar"?"ar-JO":"en-GB"),children:[s.jsx(Pl,{"data-loc":"client/src/pages/Admin.tsx:853",className:"w-3 h-3"}),t("آخر ØªØØ¯ÙØ«:","Updated:")," ",Dye(V.updatedAt,e)]})]})}),s.jsx("td",{"data-loc":"client/src/pages/Admin.tsx:859",className:"px-4 py-3",children:s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:860",className:"flex items-center justify-end gap-1",children:[s.jsx(Ie,{"data-loc":"client/src/pages/Admin.tsx:861",variant:"ghost",size:"icon",onClick:()=>J(V),title:t("تعدÙÙ","Edit"),children:s.jsx(K0,{"data-loc":"client/src/pages/Admin.tsx:862",className:"w-4 h-4"})}),s.jsx(Ie,{"data-loc":"client/src/pages/Admin.tsx:864",variant:"ghost",size:"icon",title:t("ØØ°Ù","Delete"),onClick:()=>{const Y=e==="ar"&&V.titleAr||V.titleEn;confirm(t(`ØØ°Ù "${Y}"Ø ÙØ§ ÙÙ
ÙÙ Ø§ÙØªØ±Ø§Ø¬Ø¹ Ø¹Ù ÙØ°Ø§ Ø§ÙØ¥Ø¬Ø±Ø§Ø¡.`,`Delete "${Y}"? This cannot be undone.`))&&F.mutate({id:V.id})},children:s.jsx(ro,{"data-loc":"client/src/pages/Admin.tsx:874",className:"w-4 h-4 text-destructive"})})]})})]},V.id))})]})}),s.jsx(Ba,{"data-loc":"client/src/pages/Admin.tsx:886",open:i,onOpenChange:o,children:s.jsxs(Fa,{"data-loc":"client/src/pages/Admin.tsx:887",dir:e==="ar"?"rtl":"ltr",className:"max-w-none sm:max-w-none w-[97vw] sm:w-[96vw] !max-w-[1500px] h-[95vh] max-h-[95vh] overflow-hidden p-0 flex flex-col",children:[s.jsx(as,{"data-loc":"client/src/pages/Admin.tsx:888",className:"px-6 pt-6",children:s.jsxs(Ua,{"data-loc":"client/src/pages/Admin.tsx:889",className:"flex items-center justify-between gap-3 flex-wrap",children:[s.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:890",children:h==="preview"?t("Ù
عاÙÙØ© ÙØ¨Ù Ø§ÙØÙØ¸","Preview before saving"):c.id?t("تعدÙÙ Ø§ÙØ¨Ø±ÙاÙ
ج","Edit Program"):t("Ø¨Ø±ÙØ§Ù
ج Ø¬Ø¯ÙØ¯","New Program")}),h==="edit"&&s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:898",className:"flex items-center gap-2 me-8",children:[s.jsxs(Ie,{"data-loc":"client/src/pages/Admin.tsx:899",type:"button",size:"sm",variant:"outline",className:"bg-background",onClick:()=>{A(""),w(!0)},title:t("Ø§Ø³ØªÙØ±Ø§Ø¯ Ø¨Ø±ÙØ§Ù
ج Ø¨ÙØµÙ اÙÙØµ","Import a program by pasting text"),children:[s.jsx(yT,{"data-loc":"client/src/pages/Admin.tsx:907",className:"w-3.5 h-3.5 mx-1.5"}),t("Ø§Ø³ØªÙØ±Ø§Ø¯ باÙÙØµÙ","Paste & import")]}),s.jsxs(Ie,{"data-loc":"client/src/pages/Admin.tsx:910",type:"button",size:"sm",variant:"outline",className:"bg-background hidden lg:inline-flex",onClick:()=>b(V=>!V),title:t("Ø¥Ø¸ÙØ§Ø±/Ø¥Ø®ÙØ§Ø¡ اÙÙ
عاÙÙØ© Ø§ÙØÙÙØ©","Toggle live preview"),children:[f?s.jsx(Q0,{"data-loc":"client/src/pages/Admin.tsx:918",className:"w-3.5 h-3.5 mx-1.5"}):s.jsx(Gi,{"data-loc":"client/src/pages/Admin.tsx:918",className:"w-3.5 h-3.5 mx-1.5"}),f?t("Ø¥Ø®ÙØ§Ø¡ اÙÙ
عاÙÙØ© Ø§ÙØÙÙØ©","Hide live preview"):t("Ø¥Ø¸ÙØ§Ø± اÙÙ
عاÙÙØ© Ø§ÙØÙÙØ©","Show live preview")]})]})]})}),s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:926",className:"overflow-hidden flex-1 min-h-0 flex",children:[s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:928",className:`space-y-6 px-6 pb-6 pt-2 overflow-y-auto max-h-[calc(95vh-9rem)] flex-1 min-w-0 ${h==="preview"?"hidden":""} ${f&&h==="edit"?"lg:border-e lg:border-border":""}`,children:[s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:930",className:"flex items-center justify-between gap-3 flex-wrap rounded-lg border border-primary/30 bg-primary/5 px-4 py-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:931",className:"flex items-center gap-2 text-sm text-foreground",children:[s.jsx(kl,{"data-loc":"client/src/pages/Admin.tsx:932",className:"w-4 h-4 text-primary"}),s.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:933",children:t("اÙ
ÙØ£ Ø§ÙØÙÙ٠اÙÙØ§Ùصة Ø¨Ø§ÙØªØ±Ø¬Ù
Ø© Ø§ÙØªÙÙØ§Ø¦ÙØ© بضغطة ÙØ§ØØ¯Ø©.","Fill missing fields with one-click AI translation.")})]}),s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:940",className:"flex items-center gap-2",children:[s.jsxs(Ie,{"data-loc":"client/src/pages/Admin.tsx:941",type:"button",size:"sm",variant:"outline",className:"bg-background",disabled:U.isPending,onClick:()=>O("ar","en"),children:[U.isPending?s.jsx(ft,{"data-loc":"client/src/pages/Admin.tsx:949",className:"w-3.5 h-3.5 mx-1.5 animate-spin"}):s.jsx(kl,{"data-loc":"client/src/pages/Admin.tsx:949",className:"w-3.5 h-3.5 mx-1.5"}),t("ترجÙ
Ø© اÙÙÙØ§Ùص â Ø¥ÙجÙÙØ²Ù","Fill missing â EN")]}),s.jsxs(Ie,{"data-loc":"client/src/pages/Admin.tsx:952",type:"button",size:"sm",variant:"outline",className:"bg-background",disabled:U.isPending,onClick:()=>O("en","ar"),children:[U.isPending?s.jsx(ft,{"data-loc":"client/src/pages/Admin.tsx:960",className:"w-3.5 h-3.5 mx-1.5 animate-spin"}):s.jsx(kl,{"data-loc":"client/src/pages/Admin.tsx:960",className:"w-3.5 h-3.5 mx-1.5"}),t("ترجÙ
Ø© اÙÙÙØ§Ùص â Ø¹Ø±Ø¨Ù","Fill missing â AR")]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:967",className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-4",children:[s.jsx(cs,{"data-loc":"client/src/pages/Admin.tsx:968",label:t("اÙÙ
عرÙÙ (ÙØ±Ùد)","Slug (unique)"),children:s.jsx(Ee,{"data-loc":"client/src/pages/Admin.tsx:969",dir:"ltr",value:c.slug,onChange:V=>l({...c,slug:V.target.value}),placeholder:"turkey-istanbul-7d"})}),s.jsx(cs,{"data-loc":"client/src/pages/Admin.tsx:971",label:t("Ø§ÙØªØµÙÙÙ","Category"),children:s.jsx("select",{"data-loc":"client/src/pages/Admin.tsx:972",value:c.category,onChange:V=>l({...c,category:V.target.value}),className:"w-full h-9 px-3 rounded-md border border-input bg-background text-foreground text-sm",children:Rye.map(V=>s.jsx("option",{"data-loc":"client/src/pages/Admin.tsx:978",value:V,children:xM[V]?.[e]??V},V))})}),s.jsx(cs,{"data-loc":"client/src/pages/Admin.tsx:982",label:t("Ø§ÙØ¹ÙÙØ§Ù (Ø¥ÙØ¬ÙÙØ²Ù)","Title (English)"),action:s.jsx(Ly,{"data-loc":"client/src/pages/Admin.tsx:985",uiLang:e,from:"ar",to:"en",source:c.titleAr,onResult:V=>l(Y=>({...Y,titleEn:V}))}),children:s.jsx(Ee,{"data-loc":"client/src/pages/Admin.tsx:988",dir:"ltr",value:c.titleEn,onChange:V=>l({...c,titleEn:V.target.value})})}),s.jsx(cs,{"data-loc":"client/src/pages/Admin.tsx:990",label:t("Ø§ÙØ¹ÙÙØ§Ù (عربÙ)","Title (Arabic)"),children:s.jsx(Ee,{"data-loc":"client/src/pages/Admin.tsx:991",dir:"rtl",value:c.titleAr,onChange:V=>l({...c,titleAr:V.target.value})})}),s.jsxs(cs,{"data-loc":"client/src/pages/Admin.tsx:993",label:t("اÙÙ
دÙÙØ© (Ø¥ÙØ¬ÙÙØ²Ù)","City (English)"),action:s.jsx(Ly,{"data-loc":"client/src/pages/Admin.tsx:996",uiLang:e,from:"ar",to:"en",source:c.cityAr,onResult:V=>l(Y=>({...Y,cityEn:V}))}),children:[s.jsx(Ee,{"data-loc":"client/src/pages/Admin.tsx:999",list:"destination-cities-en",dir:"ltr",value:c.cityEn,onChange:V=>l({...c,cityEn:V.target.value})}),s.jsx("datalist",{"data-loc":"client/src/pages/Admin.tsx:1000",id:"destination-cities-en",children:u2.filter(V=>V.category===c.category).map(V=>s.jsx("option",{"data-loc":"client/src/pages/Admin.tsx:1002",value:V.en},V.value))})]}),s.jsxs(cs,{"data-loc":"client/src/pages/Admin.tsx:1006",label:t("اÙÙ
دÙÙØ© (عربÙ)","City (Arabic)"),children:[s.jsx(Ee,{"data-loc":"client/src/pages/Admin.tsx:1007",list:"destination-cities-ar",dir:"rtl",value:c.cityAr,onCh
1620ange:V=>l({...c,cityAr:V.target.value})}),s.jsx("datalist",{"data-loc":"client/src/pages/Admin.tsx:1008",id:"destination-cities-ar",children:u2.filter(V=>V.category===c.category).map(V=>s.jsx("option",{"data-loc":"client/src/pages/Admin.tsx:1010",value:V.ar},V.value))})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1017",className:"grid grid-cols-2 sm:grid-cols-4 lg:grid-cols-6 gap-4",children:[s.jsx(cs,{"data-loc":"client/src/pages/Admin.tsx:1018",label:t("Ø§ÙØ³Ø¹Ø± Ø§ÙØ£Ø±Ø¶Ù","Land price"),children:s.jsx(Ee,{"data-loc":"client/src/pages/Admin.tsx:1019",dir:"ltr",type:"number",min:0,value:c.landPrice,onChange:V=>{const Y=Math.max(0,Number(V.target.value)||0);l(z=>({...z,landPrice:Y,price:Y+(z.ticketIncluded&&Number(z.ticketPrice)||0)}))}})}),s.jsx(cs,{"data-loc":"client/src/pages/Admin.tsx:1030",label:t("Ø§ÙØ¹Ù
ÙØ©","Currency"),children:s.jsx(Ee,{"data-loc":"client/src/pages/Admin.tsx:1031",dir:"ltr",maxLength:8,value:c.currency,onChange:V=>{const Y=V.target.value.toUpperCase();l(z=>({...z,currency:Y,ticketCurrency:!z.ticketCurrency||z.ticketCurrency===z.currency?Y:z.ticketCurrency}))}})}),s.jsx(cs,{"data-loc":"client/src/pages/Admin.tsx:1041",label:t("ÙØØ¯Ø© Ø§ÙØªØ³Ø¹Ùر","Price basis"),children:s.jsxs("select",{"data-loc":"client/src/pages/Admin.tsx:1042",value:c.priceBasis,onChange:V=>l({...c,priceBasis:V.target.value}),className:"w-full h-9 px-3 rounded-md border border-input bg-background text-foreground text-sm",children:[s.jsx("option",{"data-loc":"client/src/pages/Admin.tsx:1047",value:"per_person",children:t("ÙÙØ´Ø®Øµ","Per person")}),s.jsx("option",{"data-loc":"client/src/pages/Admin.tsx:1048",value:"per_room",children:t("ÙÙØºØ±ÙØ©","Per room")}),s.jsx("option",{"data-loc":"client/src/pages/Admin.tsx:1049",value:"per_package",children:t("ÙÙØ¨Ø§ÙØ©","Per package")})]})}),s.jsx(cs,{"data-loc":"client/src/pages/Admin.tsx:1052",label:t("Ø£ÙØ§Ù
","Days"),children:s.jsx(Ee,{"data-loc":"client/src/pages/Admin.tsx:1053",dir:"ltr",type:"number",value:c.durationDays,onChange:V=>l({...c,durationDays:Number(V.target.value)})})}),s.jsx(cs,{"data-loc":"client/src/pages/Admin.tsx:1055",label:t("ÙÙØ§ÙÙ","Nights"),children:s.jsx(Ee,{"data-loc":"client/src/pages/Admin.tsx:1056",dir:"ltr",type:"number",value:c.durationNights,onChange:V=>l({...c,durationNights:Number(V.target.value)})})}),s.jsx(cs,{"data-loc":"client/src/pages/Admin.tsx:1058",label:t("Ø§ÙØ¥Ø¬Ù
اÙ٠اÙÙ
ÙØ´Ùر","Published total"),children:s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1059",className:"flex h-9 items-center rounded-md border border-primary/25 bg-primary/5 px-3 font-mono text-sm font-semibold text-foreground",dir:"ltr",children:[(c.landPrice+(c.ticketIncluded&&Number(c.ticketPrice)||0)).toLocaleString()," ",c.currency||"JOD"]})})]}),s.jsxs("section",{"data-loc":"client/src/pages/Admin.tsx:1065",className:"rounded-2xl border border-primary/25 bg-primary/[0.035] p-4 sm:p-5 space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1066",className:"flex items-start justify-between gap-4 flex-wrap",children:[s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1067",className:"space-y-1",children:[s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1068",className:"flex items-center gap-2",children:[s.jsx(Hs,{"data-loc":"client/src/pages/Admin.tsx:1069",className:"h-4 w-4 text-primary","aria-hidden":"true"}),s.jsx("h4",{"data-loc":"client/src/pages/Admin.tsx:1070",className:"font-semibold text-foreground",children:t("ØªØ³Ø¹ÙØ± ØªØ°ÙØ±Ø© Ø§ÙØ·ÙراÙ","Flight ticket pricing")})]}),s.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1072",className:"text-xs leading-5 text-muted-foreground",children:t("ÙØ§ ØªÙØ¯Ø®Ù Ø³Ø¹Ø±Ø§Ù ØªÙØ¯ÙØ±ÙØ§Ù. ÙÙØ²Ù
اÙÙ
سار ÙØ§ÙÙ
صدر ÙØªØ§Ø±ÙØ® Ø§ÙØ³Ø¹Ø± Ø¹ÙØ¯ Ø´Ù
ÙÙ Ø§ÙØªØ°Ùرة.","Do not enter estimated fares. Route, source, and pricing date are required when the ticket is included.")})]}),s.jsxs("label",{"data-loc":"client/src/pages/Admin.tsx:1076",className:"flex items-center gap-2 cursor-pointer rounded-full border border-border bg-background px-3 py-2",children:[s.jsx(C0,{"data-loc":"client/src/pages/Admin.tsx:1077",checked:c.ticketIncluded,onCheckedChange:V=>l(Y=>({...Y,ticketIncluded:V,price:Y.landPrice+(V&&Number(Y.ticketPrice)||0),ticketCurrency:Y.ticketCurrency||Y.currency||"JOD"}))}),s.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:1086",className:"text-sm font-semibold text-foreground",children:c.ticketIncluded?t("شاÙ
Ù Ø§ÙØªØ°Ùرة","Ticket included"):t("ØºÙØ± شاÙ
Ù Ø§ÙØªØ°Ùرة","Ticket not included")})]})]}),c.ticketIncluded&&s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1093",className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-4",children:[s.jsx(cs,{"data-loc":"client/src/pages/Admin.tsx:1094",label:t("خط Ø§ÙØ³Ùر *","Flight route *"),children:s.jsx(Ee,{"data-loc":"client/src/pages/Admin.tsx:1095",dir:"ltr",value:c.ticketRoute,onChange:V=>l({...c,ticketRoute:V.target.value.toUpperCase()}),placeholder:"AMM-IST-AMM"})}),s.jsx(cs,{"data-loc":"client/src/pages/Admin.tsx:1097",label:t("سعر Ø§ÙØªØ°Ùرة *","Ticket price *"),
1620children:s.jsx(Ee,{"data-loc":"client/src/pages/Admin.tsx:1098",dir:"ltr",type:"number",min:0,value:c.ticketPrice,onChange:V=>{const Y=Math.max(0,Number(V.target.value)||0);l(z=>({...z,ticketPrice:Y,price:z.landPrice+Y}))}})}),s.jsx(cs,{"data-loc":"client/src/pages/Admin.tsx:1109",label:t("Ø¹Ù ÙØ© Ø§ÙØªØ°Ùرة *","Ticket currency *"),children:s.jsx(Ee,{"data-loc":"client/src/pages/Admin.tsx:1110",dir:"ltr",maxLength:8,value:c.ticketCurrency,onChange:V=>l({...c,ticketCurrency:V.target.value.toUpperCase()})})}),s.jsx(cs,{"data-loc":"client/src/pages/Admin.tsx:1112",label:t("٠صدر Ø§ÙØ³Ø¹Ø± *","Price source *"),children:s.jsx(Ee,{"data-loc":"client/src/pages/Admin.tsx:1113",value:c.ticketPriceSource,onChange:V=>l({...c,ticketPriceSource:V.target.value}),placeholder:t("عرض Ù ÙØ±Ø¯ Ø£Ù Ù ÙÙ Ù ÙØ«ÙÙ","Supplier quote or documented file")})}),s.jsx(cs,{"data-loc":"client/src/pages/Admin.tsx:1115",label:t("ØªØ§Ø±ÙØ® Ø§ÙØªØ³Ø¹Ùر *","Pricing date *"),children:s.jsx(Ee,{"data-loc":"client/src/pages/Admin.tsx:1116",dir:"ltr",type:"date",value:c.ticketPricedAt,onChange:V=>l({...c,ticketPricedAt:V.target.value})})}),s.jsx(cs,{"data-loc":"client/src/pages/Admin.tsx:1118",label:t("ØµØ§ÙØ ØØªÙ","Valid until"),children:s.jsx(Ee,{"data-loc":"client/src/pages/Admin.tsx:1119",dir:"ltr",type:"date",value:c.ticketValidUntil,onChange:V=>l({...c,ticketValidUntil:V.target.value})})}),s.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1121",className:"sm:col-span-2",children:s.jsx(cs,{"data-loc":"client/src/pages/Admin.tsx:1122",label:t("Ù ÙØ§ØØ¸Ø§Øª Ø§ÙØ·ÙراÙ","Flight notes"),children:s.jsx(Ee,{"data-loc":"client/src/pages/Admin.tsx:1123",value:c.ticketNotes,onChange:V=>l({...c,ticketNotes:V.target.value}),placeholder:t("Ø´Ø±ÙØ© Ø§ÙØ·ÙØ±Ø§Ù Ø£Ù Ø´Ø±ÙØ· Ø§ÙØ³Ø¹Ø± Ø¹ÙØ¯ ØªÙØ«ÙÙÙØ§","Airline or fare conditions when documented")})})})]})]}),s.jsx(cs,{"data-loc":"client/src/pages/Admin.tsx:1130",label:t("ØµÙØ±Ø© Ø§ÙØ¨Ø±Ùا٠ج Ø§ÙØ±Ø¦ÙØ³ÙØ©","Program Hero Image"),children:s.jsx(j1e,{"data-loc":"client/src/pages/Admin.tsx:1131",lang:e,value:c.imageUrl,destination:g1e(c.cityEn,c.category),onChange:V=>l(Y=>({...Y,imageUrl:V}))})}),s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1139",className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-4",children:[s.jsx(cs,{"data-loc":"client/src/pages/Admin.tsx:1140",label:t("ÙØ§ØªÙ Ø§ÙØªÙاصÙ","Contact Phone"),children:s.jsx(Ee,{"data-loc":"client/src/pages/Admin.tsx:1141",dir:"ltr",value:c.contactPhone,onChange:V=>l({...c,contactPhone:V.target.value}),placeholder:"+962..."})}),s.jsx(cs,{"data-loc":"client/src/pages/Admin.tsx:1143",label:t("ØªØ±ØªÙØ¨ Ø§ÙØ¹Ø±Ø¶","Sort Order"),children:s.jsx(Ee,{"data-loc":"client/src/pages/Admin.tsx:1144",dir:"ltr",type:"number",value:c.sortOrder,onChange:V=>l({...c,sortOrder:Number(V.target.value)})})})]}),s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1149",className:"grid sm:grid-cols-2 gap-4",children:[s.jsx(cs,{"data-loc":"client/src/pages/Admin.tsx:1150",label:t("ÙØ¨Ø°Ø© (Ø¥ÙØ¬ÙÙØ²Ù)","Summary (English)"),action:s.jsx(Ly,{"data-loc":"client/src/pages/Admin.tsx:1153",uiLang:e,from:"ar",to:"en",source:c.summaryAr,onResult:V=>l(Y=>({...Y,summaryEn:V}))}),children:s.jsx(es,{"data-loc":"client/src/pages/Admin.tsx:1156",dir:"ltr",rows:2,value:c.summaryEn,onChange:V=>l({...c,summaryEn:V.target.value})})}),s.jsx(cs,{"data-loc":"client/src/pages/Admin.tsx:1158",label:t("ÙØ¨Ø°Ø© (عربÙ)","Summary (Arabic)"),children:s.jsx(es,{"data-loc":"client/src/pages/Admin.tsx:1159",dir:"rtl",rows:2,value:c.summaryAr,onChange:V=>l({...c,summaryAr:V.target.value})})}),s.jsx(cs,{"data-loc":"client/src/pages/Admin.tsx:1161",label:t("اÙÙØµÙ (Ø¥ÙØ¬ÙÙØ²Ù)","Description (English)"),action:s.jsx(Ly,{"data-loc":"client/src/pages/Admin.tsx:1164",uiLang:e,from:"ar",to:"en",source:c.descriptionAr,onResult:V=>l(Y=>({...Y,descriptionEn:V}))}),children:s.jsx(es,{"data-loc":"client/src/pages/Admin.tsx:1167",dir:"ltr",rows:3,value:c.descriptionEn,onChange:V=>l({...c,descriptionEn:V.target.value})})}),s.jsx(cs,{"data-loc":"client/src/pages/Admin.tsx:1169",label:t("اÙÙØµÙ (عربÙ)","Description (Arabic)"),children:s.jsx(es,{"data-loc":"client/src/pages/Admin.tsx:1170",dir:"rtl",rows:3,value:c.descriptionAr,onChange:V=>l({...c,descriptionAr:V.target.value})})})]}),s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1175",className:"flex items-center gap-8",children:[s.jsxs("label",{"data-loc":"client/src/pages/Admin.tsx:1176",className:"flex items-center gap-2 cursor-pointer",children:[s.jsx(C0,{"data-loc":"client/src/pages/Admin.tsx:1177",checked:c.featured,onCheckedChange:V=>l({...c,featured:V})}),s.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:1178",className:"text-sm text-foreground",children:t("Ù Ù ÙÙØ²","Featured")})]}),s.jsxs("label",{"data-loc":"client/src/pages/Admin.tsx:1180",className:"flex items-center gap-2 cursor-pointer",children:[s.jsx(C0,{"data-loc":"client/src/pages/Admin.tsx:1181",checked:c.active,onCheckedChange:V=>l({...c,active:V})}),s.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:1182",className:"text-sm text-foreground",children:t("Ø¸Ø§ÙØ± (Ù ÙØ¹ÙÙ)","Active (visible)")})]})]}),s.jsx(_G,{"data-loc":"client/src/pages/Admin.tsx:1187",lang:e,title:t("Ø§ÙØ¨Ø±Ùا٠ج اÙÙÙÙ Ù (ÙÙ٠ا٠بÙÙÙ )","Itinerary (day by day)"),rows:c.itinerary,fields:[{key:"dayEn",label:t("اÙÙÙÙ (Ø¥ÙØ¬ÙÙØ²Ù)","Day (EN)")},{key:"dayAr",label:t("اÙÙÙÙ (عربÙ)","Day (AR)"),rtl:!0},{key:"titleEn",label:t("Ø§ÙØ¹ÙÙØ§Ù (Ø¥ÙØ¬ÙÙØ²Ù)","Title (EN)")},{key:"titleAr",label:t("Ø§ÙØ¹ÙÙØ§Ù (عربÙ)","Title (AR)"),rtl:!0},{key:"descEn",label:t("اÙÙØµÙ (Ø¥ÙØ¬ÙÙØ²Ù)","Description (EN)"),area:!0},{key:"descAr",label:t("اÙÙØµÙ (عربÙ)","Description (AR)"),rtl:!0,area:!0}],onChange:V=>l({...c,itinerary:V})}),s.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1203",className:"rounded-xl border border-border p-4 space-y-3 bg-card",children:s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1204",className:"flex items-center justify-between flex-wrap gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1205",children:[s.jsx("h4",{"data-loc":"client/src/pages/Admin.tsx:1206",className:"font-semibold text-foreground text-sm",children:t("طرÙÙØ© Ø§ÙØªØ³Ø¹Ùر","Pricing Mode")}),s.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1207",className:"text-xs text-muted-foreground",children:t("اختر Â«ØØ³Ø¨ اÙÙÙØ¯Ù/اÙÙÙØ§ÙÙ» ÙÙØ¨Ø±Ø§Ù ج Ø§ÙØ¹Ø§Ø¯ÙØ©Ø Ø£Ù Â«ØªØ³Ø¹ÙØ± Ø§ÙØ¨Ø§Ùة» ÙØ¨Ø±Ø§Ù ج اÙÙ ÙØ³.","Use âPer hotel/nightsâ for normal programs, or âPackage priceâ for mix programs.")})]}),s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1214",className:"flex items-center gap-2",children:[s.jsx(Ie,{"data-loc":"client/src/pages/Admin.tsx:1215",type:"button",size:"sm",variant:c.pricingMode==="per_hotel"?"default":"outline",className:c.pricingMode==="per_hotel"?"":"bg-background",onClick:()=>l(V=>({...V,pricingMode:"per_hotel"})),children:t("ØØ³Ø¨ اÙÙÙØ¯Ù/اÙÙÙØ§ÙÙ","Per hotel/nights")}),s.jsx(Ie,{"data-loc":"client/src/pages/Admin.tsx:1224",type:"button",size:"sm",variant:c.pricingMode==="package"?"default":"outline",className:c.pricingMode==="package"?"":"bg-background",onClick:()=>l(V=>({...V,pricingMode:"package",packagePricing:V.packagePricing&&Array.isArray(V.packagePricing.cities)&&V.packagePricing.cities.length?V.packagePricing:B3()})),children:t("ØªØ³Ø¹ÙØ± Ø§ÙØ¨Ø§ÙØ© (Ù ÙØ³)","Package price (mix)")})]})]})}),c.pricingMode==="package"?s.jsx(_1e,{"data-loc":"client/src/pages/Admin.tsx:1247",lang:e,currency:c.currency,value:c.packagePricing,onChange:V=>l(Y=>({...Y,packagePricing:V}))}):s.jsx(Fye,{"data-loc":"client/src/pages/Admin.tsx:1254",lang:e,currency:c.currency,rows:c.hotels,onChange:V=>l({...c,hotels:V})}),c.category==="umrah"&&s.jsx(D1e,{"data-loc":"client/src/pages/Admin.tsx:1263",lang:e,currency:c.currency,value:c.umrahDetails,onChange:V=>l(Y=>({...Y,umrahDetails:V}))}),s.jsx(Bye,{"data-loc":"client/src/pages/Admin.tsx:1271",lang:e,title:t("أبرز اÙ٠عاÙÙ ","Highlights"),rows:c.highlights,onChange:V=>l({...c,highlights:V})}),s.jsx(wM,{"data-loc":"client/src/pages/Admin.tsx:1273",lang:e,kind:"inclusion",title:t("ÙØ´Ù Ù Ø§ÙØ¨Ø±Ùا٠ج","Inclusions"),catalog:cq,rows:c.inclusions,onChange:V=>l({...c,inclusions:V})}),s.jsx(wM,{"data-loc":"client/src/pages/Admin.tsx:1281",lang:e,kind:"exclusion",title:t("ÙØ§ ÙØ´Ù Ù Ø§ÙØ¨Ø±Ùا٠ج","Exclusions"),catalog:lq,rows:c.exclusions,onChange:V=>l({...c,exclusions:V})})]}),h==="edit"&&f&&s.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1293",className:"hidden lg:block w-[380px] shrink-0 overflow-y-auto max-h-[calc(95vh-9rem)] bg-muted/30 px-5 py-4",children:s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1294",className:"sticky top-0",children:[s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1295",className:"flex items-center gap-1.5 text-xs font-semibold text-muted-foreground mb-3",children:[s.jsx(Gi,{"data-loc":"client/src/pages/Admin.tsx:1296",className:"w-3.5 h-3.5 text-primary"}),t("٠عاÙÙØ© ØÙÙØ© â Ù٠ا ØªØ¸ÙØ± ÙÙØ²Ø§Ø¦Ø±","Live preview â as visitors see it")]}),s.jsx(vM,{"data-loc":"client/src/pages/Admin.tsx:1299",form:c,lang:e}),s.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1300",className:"text-[11px] text-muted-foreground mt-3 leading-relaxed",children:t("ØªØªØØ¯ÙØ« ÙØ°Ù Ø§ÙØ¨Ø·Ø§ÙØ© ÙÙØ±Ø§Ù ٠ع Ù٠تغÙÙØ± Ù٠اÙÙÙ ÙØ°Ø¬.","This card updates instantly as you edit the form.")})]})}),h==="preview"&&s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1312",className:"px-6 pb-6 pt-2 overflow-y-auto max-h-[calc(95vh-9rem)]",children:[s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1313",className:"flex items-center gap-1.5 text-xs font-semibold text-muted-foreground mb-3",children:[s.jsx(Gi,{"data-loc":"client/src/pages/Admin.tsx:1314",className:"w-3.5 h-3.5 text-primary"}),t("٠عاÙÙØ© ØÙÙØ© â Ù٠ا ØªØ¸ÙØ± ÙÙØ²Ø§Ø¦Ø±","Live preview â as visitors see it")]}),s.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1317",className:"max-w-md mx-auto",children:s.jsx(vM,{"data-loc":"client/src/pages/Admin.tsx:1318",form:c,lang:e})}),s.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1320",className:"text-[11px] text-muted-foreground mt-3 leading-relaxed text-center",children:t("اضغط «ØÙظ» ÙØªØ£ÙÙØ¯ Ø§ÙØªØºÙÙØ±Ø§ØªØ Ø£Ù Â«Ø±Ø¬ÙØ¹ ÙÙØªØ¹Ø¯ÙÙ» ÙÙØªØ¹Ø¯ÙÙ Ø£ÙØ«Ø±.","Press âSaveâ to confirm, or âBack to editâ to keep editing.")})]})]}),s.jsx(ei,{"data-loc":"client/src/pages/Admin.tsx:1331",className:"px-6 pb-6 pt-2 border-t border-border",children:h==="edit"?s.jsxs(s.Fragment,{children:[s.jsx(Ie,{"data-loc":"client/src/pages/Admin.tsx:1334",variant:"outline",onClick:()=>o(!1),children:t("Ø¥ÙØºØ§Ø¡","Cancel")}),s.jsxs(Ie,{"data-loc":"client/src/pages/Admin.tsx:1335",onClick:K,children:[s.jsx(Gi,{"data-loc":"client/src/pages/Admin.tsx:1336",className:"w-4 h-4 mx-1.5"}),t("٠عاÙÙØ©","Preview")]})]}):s.jsxs(s.Fragment,{children:[s.jsxs(Ie,{"data-loc":"client/src/pages/Admin.tsx:1342",variant:"outline",onClick:()=>x("edit"),children:[s.jsx(zU,{"data-loc":"client/src/pages/Admin.tsx:1343",className:"w-4 h-4 mx-1.5"}),t("Ø±Ø¬ÙØ¹ ÙÙØªØ¹Ø¯ÙÙ","Back to edit")]}),s.jsxs(Ie,{"data-loc":"client/src/pages/Admin.tsx:1346",onClick:ee,disabled:pe,children:[pe&&s.jsx(ft,{"data-loc":"client/src/pages/Admin.tsx:1347",className:"w-4 h-4 mx-1.5 animate-spin"}),c.id?t("ØÙظ Ø§ÙØªØºÙÙØ±Ø§Øª","Save Changes"):t("Ø¥ÙØ´Ø§Ø¡ Ø§ÙØ¨Ø±Ùا٠ج","Create Program")]})]})})]})}),s.jsx(Ba,{"data-loc":"client/src/pages/Admin.tsx:1357",open:y,onOpenChange:w,children:s.jsxs(Fa,{"data-loc":"client/src/pages/Admin.tsx:1358",dir:e==="ar"?"rtl":"ltr",className:"max-w-2xl",children:[s.jsx(as,{"data-loc":"client/src/pages/Admin.tsx:1359",children:s.jsxs(Ua,{"data-loc":"client/src/pages/Admin.tsx:1360",className:"flex items-center gap-2",children:[s.jsx(yT,{"data-loc":"client/src/pages/Admin.tsx:1361",className:"w-4 h-4"}),t("Ø§Ø³ØªÙØ±Ø§Ø¯ Ø¨Ø±ÙØ§Ù ج باÙÙØµÙ","Import program by paste")]})}),s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1365",className:"space-y-3",children:[s.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1366",className:"text-sm text-muted-foreground leading-relaxed",children:t("Ø§ÙØµÙ ÙØµÙ Ø¨Ø±ÙØ§Ù ج ساب٠ÙÙØµ عاد٠(Ø¹Ø±Ø¨Ù Ø£Ù Ø¥ÙØ¬ÙÙØ²Ù)Ø ÙØ³ØªÙØ¹Ø¨ÙØ£ Ø§ÙØÙÙ٠تÙÙØ§Ø¦ÙاÙ: Ø§ÙØ¹ÙÙØ§ÙØ Ø§ÙÙØ¨Ø°Ø©Ø Ø§ÙØ¨Ø±Ùا٠ج ÙÙ٠ا٠بÙÙÙ («اÙÙÙÙ Ø§ÙØ£ÙÙ» / «Day 1»)Ø ÙØ´Ù Ù/ÙØ§ ÙØ´Ù ÙØ ÙØ§Ù٠دة/Ø§ÙØ³Ø¹Ø± Ø¥Ù ÙÙØ¬Ø¯Øª. ÙØ¯Ø¹Ù Ø£ÙØ¶Ø§Ù ÙØµÙ JSON.","Paste a previous program's description as plain text (Arabic or English) and the fields fill automatically: title, summary, day-by-day itinerary (âDay 1â / âØ§ÙÙÙÙ Ø§ÙØ£ÙÙâ), includes/excludes, and duration/price if present. JSON paste also works.")}),s.jsx(es,{"data-loc":"client/src/pages/Admin.tsx:1372",dir:e==="ar"?"rtl":"ltr",rows:12,className:"text-sm",placeholder:t(`اÙÙÙÙ Ø§ÙØ£ÙÙ 1621اÙÙØµÙÙ 1622٠غادرة ٠طار اÙÙ ÙÙØ© عÙÙØ§Ø¡ ÙØ§ÙÙØµÙ٠إÙ٠بÙÙÙØª... 1623 1624اÙÙÙÙ Ø§ÙØ«Ø§ÙÙ 1625جÙÙØ© جزر ÙÙ ÙÙ 1626...`,`Day 1 1627Arrival 1628Depart from the airport and transfer to the hotel... 1629 1630Day 2 1631City Tour 1632...`),value:T,onChange:V=>A(V.target.value)}),s.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1383",className:"text-xs text-muted-foreground",children:t("Ù ÙØ§ØØ¸Ø©: ÙÙ ÙØªÙ اÙÙ Ø³ØØ Ø§ÙØÙÙ٠اÙÙ ÙØ¬Ùدة ØªÙØ³ØªØ¨Ø¯Ù ÙÙØ· باÙÙÙ٠اÙÙ ÙØªØ´ÙØ©Ø ÙÙØ§ Ø´ÙØ¡ ÙÙØÙØ¸ ØØªÙ تضغط ØÙظ/Ø¥ÙØ´Ø§Ø¡.","Note: existing fields are only overwritten by detected values, and nothing is saved until you click Save/Create.")})]}),s.jsxs(ei,{"data-loc":"client/src/pages/Admin.tsx:1390",children:[s.jsx(Ie,{"data-loc":"client/src/pages/Admin.tsx:1391",variant:"outline",onClick:()=>w(!1),children:t("Ø¥ÙØºØ§Ø¡","Cancel")}),s.jsxs(Ie,{"data-loc":"client/src/pages/Admin.tsx:1392",onClick:S,disabled:!T.trim(),children:[s.jsx(yT,{"data-loc":"client/src/pages/Admin.tsx:1393",className:"w-4 h-4 mx-1.5"}),t("Ø§Ø³ØªÙØ±Ø§Ø¯ ÙØªØ¹Ø¨Ø¦Ø© Ø§ÙØÙÙÙ","Import & fill fields")]})]})]})})]})}function Lye(e){return e==="ar"?"text-right":"text-left"}function Oye({lang:e}){const t=(l,d)=>Us(e,l,d),n=Pe.useUtils(),{data:a,isLoading:r}=Pe.admin.listInquiries.useQuery(),i=Pe.admin.updateInquiryStatus.useMutation({onSuccess:()=>{n.admin.listInquiries.invalidate()},onError:()=>Le.error(t("ØªØ¹Ø°ÙØ± ØªØØ¯ÙØ« Ø§ÙØØ§ÙØ©.","Could not update status."))});if(r)return s.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1421",className:"flex items-center justify-center py-20",children:s.jsx(ft,{"data-loc":"client/src/pages/Admin.tsx:1422",className:"w-8 h-8 text-primary animate-spin"})});if(!a||a.length===0)return s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1429",className:"text-center py-20 border border-dashed border-border rounded-xl",children:[s.jsx(x3,{"data-loc":"client/src/pages/Admin.tsx:1430",className:"w-10 h-10 text-muted-foreground mx-auto mb-3"}),s.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1431",className:"text-muted-foreground",children:t("ÙØ§ ØªÙØ¬Ø¯ Ø·ÙØ¨Ø§Øª بعد.","No inquiries yet.")})]});const o=["new","contacted","closed"],c={new:{ar:"Ø¬Ø¯ÙØ¯",en:"New"},contacted:{ar:"ØªÙ Ø§ÙØªÙاصÙ",en:"Contacted"},closed:{ar:"٠غÙÙ",en:"Closed"}};return s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1444",className:"space-y-4",children:[s.jsx("h2",{"data-loc":"client/src/pages/Admin.tsx:1445",className:"font-display font-bold text-2xl text-foreground",children:t("Ø·ÙØ¨Ø§Øª Ø§ÙØ¹Ù ÙØ§Ø¡","Customer Inquiries")}),a.map(l=>s.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1447",className:"rounded-xl border border-border bg-card p-5",children:s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1448",className:"flex items-start justify-between gap-4 flex-wrap",children:[s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1449",children:[s.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1450",className:"font-semibold text-foreground",children:l.name}),s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1451",className:"flex flex-wrap gap-x-4 gap-y-1 mt-1 text-sm text-muted-foreground",children:[l.phone&&s.jsxs("a",
1632{"data-loc":"client/src/pages/Admin.tsx:1453",href:`tel:${l.phone}`,dir:"ltr",className:"inline-flex items-center gap-1 hover:text-primary",children:[s.jsx(I0,{"data-loc":"client/src/pages/Admin.tsx:1454",className:"w-3.5 h-3.5"})," ",l.phone]}),l.email&&s.jsxs("a",{"data-loc":"client/src/pages/Admin.tsx:1458",href:`mailto:${l.email}`,dir:"ltr",className:"inline-flex items-center gap-1 hover:text-primary",children:[s.jsx(Pd,{"data-loc":"client/src/pages/Admin.tsx:1459",className:"w-3.5 h-3.5"})," ",l.email]}),l.packageSlug&&s.jsxs("span",{"data-loc":"client/src/pages/Admin.tsx:1462",className:"inline-flex items-center gap-1",dir:"ltr",children:["· ",l.packageSlug]})]}),l.message&&s.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1464",className:"mt-2 text-sm text-foreground/80",children:l.message}),s.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1465",className:"mt-2 text-xs text-muted-foreground",children:l.createdAt?new Date(l.createdAt).toLocaleString(e==="ar"?"ar-JO":"en-US"):""})]}),s.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1469",className:"flex gap-1.5",children:o.map(d=>s.jsx("button",{"data-loc":"client/src/pages/Admin.tsx:1471",onClick:()=>i.mutate({id:l.id,status:d}),className:`px-2.5 py-1 rounded-full text-xs font-medium transition-colors ${l.status===d?d==="new"?"bg-blue-600 text-white":d==="contacted"?"bg-amber-500 text-white":"bg-green-600 text-white":"bg-muted text-muted-foreground hover:bg-muted/70"}`,children:c[d][e]},d))})]})},l.id))]})}function vM({form:e,lang:t}){const n=(d,m)=>Us(t,d,m),a=Zxe(e,t),r=a.title,i=a.city,o=a.summary,c=a.category,l=a.priceLabel;return s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1506",dir:a.dir,className:"rounded-2xl overflow-hidden bg-card border border-border shadow-sm",children:[s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1507",className:"relative aspect-[4/3] bg-muted",children:[a.hasImage?s.jsx("img",{"data-loc":"client/src/pages/Admin.tsx:1509",src:a.imageUrl,alt:r,className:"w-full h-full object-cover"}):s.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1511",className:"w-full h-full flex items-center justify-center text-muted-foreground text-xs",children:n("ÙØ§ ØªÙØ¬Ø¯ ØµÙØ±Ø©","No image")}),a.featured&&s.jsxs("span",{"data-loc":"client/src/pages/Admin.tsx:1516",className:"absolute top-3 ltr:left-3 rtl:right-3 inline-flex items-center gap-1 px-2.5 py-1 rounded-full bg-[#C9A961] text-white text-[11px] font-semibold shadow",children:[s.jsx(Tu,{"data-loc":"client/src/pages/Admin.tsx:1517",className:"w-3 h-3 fill-white"})," ",n("Ù
Ù
ÙÙØ²","Featured")]}),s.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:1520",className:"absolute top-3 ltr:right-3 rtl:left-3 px-2.5 py-1 rounded-full bg-black/55 text-white text-[11px] font-medium backdrop-blur-sm",children:c})]}),s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1524",className:"p-4",children:[s.jsx("h3",{"data-loc":"client/src/pages/Admin.tsx:1525",className:"font-display font-bold text-foreground text-lg leading-snug line-clamp-2",children:r||n("عÙÙØ§Ù Ø§ÙØ¨Ø±ÙاÙ
ج","Program title")}),i&&s.jsxs("p",{"data-loc":"client/src/pages/Admin.tsx:1529",className:"mt-1 inline-flex items-center gap-1 text-sm text-muted-foreground",children:[s.jsx(mr,{"data-loc":"client/src/pages/Admin.tsx:1530",className:"w-3.5 h-3.5 text-primary"})," ",i]}),o&&s.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1533",className:"mt-2 text-sm text-foreground/70 line-clamp-2",children:o}),s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1534",className:"mt-3 flex items-center justify-between",children:[s.jsxs("span",{"data-loc":"client/src/pages/Admin.tsx:1535",className:"inline-flex items-center gap-1 text-sm text-muted-foreground",children:[s.jsx(Pl,{"data-loc":"client/src/pages/Admin.tsx:1536",className:"w-3.5 h-3.5 text-primary"}),a.durationLabel]}),s.jsxs("span",{"data-loc":"client/src/pages/Admin.tsx:1539",className:"text-right",children:[s.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:1540",className:"block text-[10px] text-muted-foreground leading-none",children:n("ÙØ¨Ø¯Ø£ Ù
Ù","from")}),s.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:1541",className:"font-display font-bold text-primary text-lg",dir:"ltr",children:l})]})]}),a.hidden&&s.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1545",className:"mt-3 text-center text-[11px] py-1 rounded-md bg-muted text-muted-foreground",children:n("Ù
Ø®ÙÙ ØØ§ÙÙØ§Ù Ø¹Ù Ø§ÙØ²Ùار","Currently hidden from visitors")})]})]})}function cs({label:e,children:t,action:n}){return s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1565",className:"space-y-1.5",children:[s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1566",className:"flex items-center justify-between gap-2 min-h-[1.25rem]",children:[s.jsx(nt,{"data-loc":"client/src/pages/Admin.tsx:156
16327",className:"text-xs text-muted-foreground",children:e}),n]}),t]})}function _G({lang:e,title:t,rows:n,fields:a,onChange:r}){const i=(d,m)=>Us(e,d,m),o=()=>r([...n,{}]),c=d=>r(n.filter((m,h)=>h!==d)),l=(d,m,h)=>{const x=n.map((f,b)=>b===d?{...f,[m]:h}:f);r(x)};return s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1596",className:"rounded-lg border border-border p-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1597",className:"flex items-center justify-between mb-3",children:[s.jsx("h4",{"data-loc":"client/src/pages/Admin.tsx:1598",className:"font-semibold text-foreground text-sm",children:t}),s.jsxs(Ie,{"data-loc":"client/src/pages/Admin.tsx:1599",type:"button",variant:"outline",size:"sm",onClick:o,children:[s.jsx(oa,{"data-loc":"client/src/pages/Admin.tsx:1600",className:"w-3.5 h-3.5 mx-1"})," ",i("Ø¥Ø¶Ø§ÙØ©","Add")]})]}),n.length===0?s.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1604",className:"text-xs text-muted-foreground",children:i("ÙØ§ ØªÙØ¬Ø¯ Ø¹ÙØ§ØµØ±.","None added.")}):s.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1606",className:"space-y-4",children:n.map((d,m)=>s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1608",className:"rounded-md bg-muted/40 p-3 relative",children:[s.jsx("button",{"data-loc":"client/src/pages/Admin.tsx:1609",type:"button",onClick:()=>c(m),className:"absolute top-2 ltr:right-2 rtl:left-2 text-muted-foreground hover:text-destructive",title:i("ØØ°Ù","Remove"),children:s.jsx(ks,{"data-loc":"client/src/pages/Admin.tsx:1615",className:"w-4 h-4"})}),s.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1617",className:"grid sm:grid-cols-2 gap-3 pe-6",children:a.map(h=>h.area?s.jsx(es,{"data-loc":"client/src/pages/Admin.tsx:1620",dir:h.rtl?"rtl":"ltr",rows:2,placeholder:h.label,value:d[h.key]||"",onChange:x=>l(m,h.key,x.target.value)},h.key):s.jsx(Ee,{"data-loc":"client/src/pages/Admin.tsx:1629",dir:h.rtl?"rtl":"ltr",placeholder:h.label,value:d[h.key]||"",onChange:x=>l(m,h.key,x.target.value)},h.key))})]},m))})]})}function Bye({lang:e,title:t,rows:n,onChange:a}){return s.jsx(_G,{"data-loc":"client/src/pages/Admin.tsx:1659",lang:e,title:t,rows:n,fields:[{key:"en",label:Us(e,"Ø¥ÙØ¬ÙÙØ²Ù","English")},{key:"ar",label:Us(e,"عربÙ","Arabic"),rtl:!0}],onChange:a})}function Fye({lang:e,currency:t,rows:n,onChange:a}){const r=(m,h)=>Us(e,m,h),i=n.length,o=(m,h,x)=>{a(n.map((f,b)=>b===m?{...f,[h]:x}:f))},c=m=>a(n.filter((h,x)=>x!==m)),l=m=>{if(n.length>=Iy)return;const h=Math.max(0,Math.min(m,n.length)),x=[...n.slice(0,h),{},...n.slice(h)];a(x)},d=(m,h)=>{const x=m+h;if(x<0||x>=n.length)return;const f=[...n];[f[m],f[x]]=[f[x],f[m]],a(f)};return s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1718",className:"rounded-lg border border-border p-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1719",className:"flex items-center justify-between mb-4 flex-wrap gap-3",children:[s.jsxs("h4",{"data-loc":"client/src/pages/Admin.tsx:1720",className:"font-semibold text-foreground text-sm inline-flex items-center gap-2",children:[s.jsx(Cl,{"data-loc":"client/src/pages/Admin.tsx:1721",className:"w-4 h-4 text-primary"}),r("اÙÙÙØ§Ø¯Ù / Ø§ÙØ¥ÙاÙ
Ø©","Hotels / Accommodation")]}),s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1724",className:"flex items-center gap-2",children:[s.jsxs("span",{"data-loc":"client/src/pages/Admin.tsx:1725",className:"text-xs text-muted-foreground",children:[i," ",i===1?r("ÙÙØ¯Ù","hotel"):r("ÙÙØ¯Ù","hotels")]}),s.jsxs(Ie,{"data-loc":"client/src/pages/Admin.tsx:1728",type:"button",size:"sm",variant:"outline",className:"bg-background",disabled:i>=Iy,onClick:()=>l(n.length),children:[s.jsx(oa,{"data-loc":"client/src/pages/Admin.tsx:1736",className:"w-3.5 h-3.5 ltr:mr-1 rtl:ml-1"}),r("أض٠ÙÙØ¯Ùا٠ÙÙ Ø§ÙØ£Ø®Ùر","Add hotel at end")]})]})]}),i===0?s.jsxs("button",{"data-loc":"client/src/pages/Admin.tsx:1743",type:"button",onClick:()=>l(0),className:"w-full rounded-lg border-2 border-dashed border-border py-6 text-sm text-muted-foreground hover:border-primary hover:text-primary transition-colors",children:[s.jsx(oa,{"data-loc":"client/src/pages/Admin.tsx:1748",className:"w-4 h-4 inline-block ltr:mr-1.5 rtl:ml-1.5"}),r("أض٠أÙÙ ÙÙØ¯Ù ÙÙØ¨Ø±ÙاÙ
ج","Add the first hotel")]}):s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1752",className:"space-y-3",children:[s.jsx(yM,{"data-loc":"client/src/pages/Admin.tsx:1754",label:r("إدراج ÙÙØ¯Ù ÙÙ Ø§ÙØ¨Ø¯Ø§ÙØ©","Insert hotel at the beginning"),disabled:i>=Iy,onClick:()=>l(0)}),n.map((m,h)=>s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1760",children:[s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1761",className:"rounded-lg bg-muted/40 p-4 relative",children:[s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1762",className:"absolute top-3 ltr:right-3 rtl:left-3 flex items-center gap-1",children:[s.jsx("button",{"data-loc":"client/src/pages/Admin.tsx:1763",type:"button",onClick:()=>d(h,-1),disabled:h===0,className:"text-muted-foreground hover:text-primary disabled:opacity-30 disabled:hover:text-muted-foreground",title:r("ØªØØ±ÙÙ ÙØ£Ø¹ÙÙ","Move up"),children:s.jsx(tA,{"data-loc":"client/src/pages/Admin.tsx:1770",className:"w-4 h-4"})}),s.jsx("button",{"data-loc":"client/src/pages/Admin.tsx:1772",type:"button",onClick:()=>d(h,1),disabled:h===n.length-1,className:"text-muted-foreground hover:text-primary disabled:opacity-30 disabled:hover:text-muted-foreground",title:r("ØªØØ±ÙÙ ÙØ£Ø³ÙÙ","Move down"),children:s.jsx(Y0,{"data-loc":"client/src/pages/Admin.tsx:1779",className:"w-4 h-4"})}),s.jsx("button",{"data-loc":"client/src/pages/Admin.tsx:1781",type:"button",onClick:()=>c(h),className:"text-muted-foreground hover:text-destructive",title:r("ØØ°Ù اÙÙÙØ¯Ù","Remove hotel"),children:s.jsx(ks,{"data-loc":"client/src/pages/Admin.tsx:1787",className:"w-4 h-4"})})]}),s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1790",className:"flex items-center gap-2 mb-3",children:[s.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:1791",className:"inline-flex items-center justify-center w-6 h-6 rounded-full bg-primary text-primary-foreground text-xs font-bold",children:h+1}),s.jsxs("span",{"data-loc":"client/src/pages/Admin.tsx:1794",className:"text-sm font-semibold text-foreground",children:[r("ÙÙØ¯Ù","Hotel")," ",h+1]})]}),s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1799",className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-3",children:[s.jsx(cs,{"data-loc":"client/src/pages/Admin.tsx:1800",label:r("اسÙ
اÙÙÙØ¯Ù (عربÙ)","Hotel name (AR)"),children:s.jsx(Ee,{"data-loc":"client/src/pages/Admin.tsx:1801",dir:"rtl",value:m.nameAr||"",onChange:x=>o(h,"nameAr",x.target.value)})}),s.jsx(cs,{"data-loc":"client/src/pages/Admin.tsx:1803",label:r("اسÙ
اÙÙÙØ¯Ù (Ø¥ÙØ¬ÙÙØ²Ù)","Hotel name (EN)"),children:s.jsx(Ee,{"data-loc":"client/src/pages/Admin.tsx:1804",dir:"ltr",value:m.nameEn||"",onChange:x=>o(h,"nameEn",x.target.value)})}),s.jsx(cs,{"data-loc":"client/src/pages/Admin.tsx:1806",label:r("تصÙÙ٠اÙÙØ¬ÙÙ
","Star rating"),children:s.jsxs("select",{"data-loc":"client/src/pages/Admin.tsx:1807",value:m.ratingStars||"",onChange:x=>o(h,"ratingStars",x.target.value),className:"w-full h-9 px-3 rounded-md border border-input bg-background text-foreground text-sm",children:[s.jsx("option",{"data-loc":"client/src/pages/Admin.tsx:1812",value:"",children:r("بدÙÙ","None")}),[3,4,5].map(x=>s.jsxs("option",{"data-loc":"client/src/pages/Admin.tsx:1814",value:x,children:["â
".repeat(x)," (",x,")"]},x))]})})]}),s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1820",className:"mt-4",children:[s.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1821",className:"text-xs font-semibold text-muted-foreground mb-2",children:r(`سعر اÙÙØ±Ø¯ ÙÙ Ø§ÙØºØ±ÙØ© اÙÙ
Ø²Ø¯ÙØ¬Ø© ØØ³Ø¨ عدد اÙÙÙØ§ÙÙ (${t||"JOD"})`,`Per-person price in a double room by nights (${t||"JOD"})`)}),s.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1827",className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 ga
1632p-3",children:v1e.map(x=>{const f=`price${x}`;return s.jsx(cs,{"data-loc":"client/src/pages/Admin.tsx:1831",label:r(`${x} ÙÙØ§ÙÙ`,`${x} nights`),children:s.jsx(Ee,{"data-loc":"client/src/pages/Admin.tsx:1835",dir:"ltr",type:"number",min:0,placeholder:"0",value:m[f]||"",onChange:b=>o(h,f,b.target.value)})},f)})})]})]}),s.jsx(yM,{"data-loc":"client/src/pages/Admin.tsx:1850",label:r(`إدراج ÙÙØ¯Ù بعد ÙÙØ¯Ù ${h+1}`,`Insert hotel after #${h+1}`),disabled:i>=Iy,onClick:()=>l(h+1)})]},h))]})]})}function yM({label:e,onClick:t,disabled:n}){return n?null:s.jsxs("button",{"data-loc":"client/src/pages/Admin.tsx:1867",type:"button",onClick:t,className:"group w-full flex items-center gap-2 py-1.5 text-[11px] text-muted-foreground/70 hover:text-primary transition-colors",children:[s.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:1872",className:"h-px flex-1 bg-border group-hover:bg-primary/40 transition-colors"}),s.jsxs("span",{"data-loc":"client/src/pages/Admin.tsx:1873",className:"inline-flex items-center gap-1 rounded-full border border-border group-hover:border-primary/50 px-2 py-0.5",children:[s.jsx(oa,{"data-loc":"client/src/pages/Admin.tsx:1874",className:"w-3 h-3"}),e]}),s.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:1877",className:"h-px flex-1 bg-border group-hover:bg-primary/40 transition-colors"})]})}function wM({lang:e,kind:t,title:n,catalog:a,rows:r,onChange:i}){const o=(S,R)=>Us(e,S,R),[c,l]=k.useState(""),[d,m]=k.useState(""),h=S=>r.some(R=>R.code===S),x=S=>{h(S.code)?i(r.filter(R=>R.code!==S.code)):i([...r,{code:S.code,ar:S.ar,en:S.en}])},f=()=>{const S=c.trim(),R=d.trim();if(!S&&!R)return;const L=`custom-${Date.now()}`;i([...r,{code:L,ar:S||R,en:R||S}]),l(""),m("")},b=S=>i(r.filter(R=>R.code!==S)),y=()=>i([]),w=new Set(a.map(S=>S.code)),T=r.filter(S=>(S.code||"").startsWith("custom-")),A=r.filter(S=>!(S.code||"").startsWith("custom-")&&!w.has(S.code||"")),E=t==="inclusion"?"text-green-600":"text-destructive",D=r.length;return s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1942",className:"rounded-lg border border-border p-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1943",className:"flex items-center justify-between mb-3 flex-wrap gap-2",children:[s.jsxs("h4",{"data-loc":"client/src/pages/Admin.tsx:1944",className:"font-semibold text-foreground text-sm inline-flex items-center gap-2",children:[s.jsx(bc,{"data-loc":"client/src/pages/Admin.tsx:1945",className:`w-4 h-4 ${E}`}),n]}),s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1948",className:"flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:1949",className:"text-xs text-muted-foreground",children:o(`Ù
ختار: ${D}`,`Selected: ${D}`)}),D>0&&s.jsxs("button",{"data-loc":"client/src/pages/Admin.tsx:1953",type:"button",onClick:y,className:"inline-flex items-center gap-1 text-[11px] text-destructive hover:underline",children:[s.jsx(ro,{"data-loc":"client/src/pages/Admin.tsx:1958",className:"w-3 h-3"}),o("Ù
Ø³Ø Ø§ÙÙÙ","Clear all")]})]})]}),s.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1965",className:"text-[11px] text-muted-foreground mb-3",children:o("ÙØ§ ÙØ¸Ùر Ø£Ù Ø¨ÙØ¯ عÙ٠اÙÙ
ÙÙØ¹ Ø¥ÙØ§ Ù
ا تختار٠ÙÙØ§. اضغط عÙÙ Ø§ÙØ¨Ùد ÙØ¥Ø¶Ø§ÙØªÙ Ø£Ù Ø¥Ø²Ø§ÙØªÙ.","Nothing shows on the site unless you pick it here. Click an item to add or remove it.")}),A.length>0&&s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1973",className:"mb-3 rounded-md border border-amber-300/60 bg-amber-50 dark:bg-amber-950/20 p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1974",className:"text-[11px] font-semibold text-amber-700 dark:text-amber-400 mb-2",children:o(`بÙÙØ¯ Ù
ÙØ±Ùثة Ù
Ù Ø§ÙØ¥Ø¹Ø¯Ø§Ø¯ Ø§ÙØ§Ùتراض٠(${A.length}) â Ø§ØØ°ÙÙØ§ Ø¥Ù ÙÙ
ØªØ±Ø¯ÙØ§`,`Inherited from defaults (${A.length}) â remove any you don't want`)}),s.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1980",className:"flex flex-wrap gap-2",children:A.map(S=>s.jsxs("span",{"data-loc":"client/src/pages/Admin.tsx:1982",className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-background border border-amber-300/60 text-xs text-foreground",children:[Us(e,S.ar,S.en),s.jsx("button",{"data-loc":"client/src/pages/Admin.tsx:1984",type:"button",onClick:()=>b(S.code),className:"text-muted-foreground hover:text-destructive",children:s.jsx(ks,{"data-loc":"client/src/pages/Admin.tsx:1985",className:"w-3 h-3"})})]},S.code))})]}),s.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1993",className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-2",children:a.map(S=>
1632{const R=h(S.code);return s.jsxs("button",{"data-loc":"client/src/pages/Admin.tsx:1997",type:"button",onClick:()=>x(S),className:`flex items-center gap-2 text-start px-3 py-2 rounded-md border text-xs transition-colors ${R?"border-primary bg-primary/10 text-foreground":"border-border bg-background text-muted-foreground hover:bg-muted"}`,children:[s.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:2007",className:`w-4 h-4 rounded-[4px] border flex items-center justify-center shrink-0 ${R?"bg-primary border-primary":"border-input"}`,children:R&&s.jsx(bc,{"data-loc":"client/src/pages/Admin.tsx:2012",className:"w-3 h-3 text-primary-foreground"})}),s.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:2014",className:"leading-tight",children:Us(e,S.ar,S.en)})]},S.code)})}),s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:2021",className:"mt-4 pt-3 border-t border-border",children:[s.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:2022",className:"text-[11px] font-semibold text-muted-foreground mb-2",children:o("Ø¥Ø¶Ø§ÙØ© Ø¨ÙØ¯ Ù
خصص (Ø§Ø®ØªÙØ§Ø±Ù)","Add a custom item (optional)")}),s.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:2025",className:"grid sm:grid-cols-2 gap-2",children:[s.jsx(Ee,{"data-loc":"client/src/pages/Admin.tsx:2026",dir:"rtl",placeholder:o("Ø¨Ø§ÙØ¹Ø±Ø¨Ù","Arabic"),value:c,onChange:S=>l(S.target.value)}),s.jsx(Ee,{"data-loc":"client/src/pages/Admin.tsx:2027",dir:"ltr",placeholder:o("Ø¨Ø§ÙØ¥ÙجÙÙØ²Ù","English"),value:d,onChange:S=>m(S.target.value)})]}),s.jsxs(Ie,{"data-loc":"client/src/pages/Admin.tsx:2029",type:"button",variant:"outline",size:"sm",className:"mt-2",onClick:f,children:[s.jsx(oa,{"data-loc":"client/src/pages/Admin.tsx:2030",className:"w-3.5 h-3.5 mx-1"})," ",o("Ø¥Ø¶Ø§ÙØ©","Add")]}),T.length>0&&s.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:2033",className:"flex flex-wrap gap-2 mt-3",children:T.map(S=>s.jsxs("span",{"data-loc":"client/src/pages/Admin.tsx:2035",className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-muted text-xs text-foreground",children:[Us(e,S.ar,S.en),s.jsx("button",{"data-loc":"client/src/pages/Admin.tsx:2037",type:"button",onClick:()=>b(S.code),className:"text-muted-foreground hover:text-destructive",children:s.jsx(ks,{"data-loc":"client/src/pages/Admin.tsx:2038",className:"w-3 h-3"})})]},S.code))})]})]})}function Uye({ar:e,kind:t}){const n=q2(),a=t==="visa",r=e?a?"ÙØ¹Ø§Ùج Ø·ÙØ¨ Ø§ÙØªØ£Ø´Ùرة Ø§ÙØ¢Ù":"ÙØ¹Ø§Ùج Ø·ÙØ¨ ØØ¬Ø²Ù Ø§ÙØ¢Ù":a?"Processing your visa request":"Processing your booking request",i=e?a?"ÙØÙØ¸ Ø§ÙØªÙاصÙ٠بأÙ
ا٠ÙÙØ¬ÙÙØ² Ø§ÙØ±ÙÙ
اÙÙ
رجع٠ÙÙØªÙ
ÙÙ ÙØ±ÙÙ IBRIX Ù
٠اÙÙ
تابعة Ù
عÙ.":"ÙØÙØ¸ Ø§ÙØªÙاصÙ٠بأÙ
ا٠ÙÙØ¬ÙÙØ² رÙÙ
اÙÙ
رجع ÙØ±Ø³Ø§ÙØ© Ø§ÙØªØ£ÙÙØ¯.":a?"We are securely saving your details and preparing a reference for the IBRIX team to follow up.":"We are securely saving your details and preparing your reference and confirmation.";return s.jsx(xc.div,{"data-loc":"client/src/components/RequestProcessingOverlay.tsx:32",initial:n?!1:{opacity:0},animate:{opacity:1},exit:n?void 0:{opacity:0},transition:{duration:n?0:.18,ease:[.23,1,.32,1]},className:"absolute inset-0 z-30 flex items-center justify-center bg-background/92 px-6 text-center backdrop-blur-sm",role:"status","aria-live":"polite","aria-atomic":"true",children:s.jsxs("div",{"data-loc":"client/src/components/RequestProcessingOverlay.tsx:42",className:"w-full max-w-sm rounded-3xl border border-[#C9A961]/30 bg-card p-7 text-card-foreground shadow-2xl",children:[s.jsxs("div",{"data-loc":"client/src/components/RequestProcessingOverlay.tsx:43",className:"relative mx-auto mb-5 flex h-16 w-16 items-center justify-center rounded-full bg-[#C9A961]/12",children:[s.jsx("span",{"data-loc":"client/src/components/RequestProcessingOverlay.tsx:44",className:"absolute inset-1 rounded-full border border-[#C9A961]/30"}),s.jsx(sa,{"data-loc":"client/src/components/RequestProcessingOverlay.tsx:45",className:"absolute h-5 w-5 text-[#C9A961]/50","aria-hidden":"true"}),s.jsx(ft,{"data-loc":"client/src/components/RequestProcessingOverlay.tsx:46",className:"relative h-7 w-7 animate-spin text-[#C9A961] motion-reduce:animate-none","aria-hidden":"true"})]}),s.jsx("h3",{"data-loc":"client/src/components/RequestProcessingOverlay.tsx:48",className:"font-display text-xl font-bold",children:r}),s.jsx("p",{"data-loc":"client/src/components/RequestProcessingOverlay.tsx:49",className:"mt-2 text-sm leading-6 text-muted-foreground",children:i}),s.jsx("div",{"data-loc":"client/src/components/RequestProcessingOverlay.tsx:50",className:"mt-5 h-1.5 overflow-hidden rounded-full bg-muted","aria-hidden":"true",children:s.jsx(xc.div,{"data-loc":"client/src/components/RequestProcessingOverlay.tsx:51",className:"h-full w-2/3 rounded-full bg-gradient-to-r from-[#9A7209] via-[#C9A961] to-[#E6D39A]",initial:n?{x:0}:{x:e?"50%":"-50%"},animate:n?{x:0}:{x:e?"-25%":"25%"},transition:n?{duration:0}:{duration:1.1,repeat:1/0,repeatType:"reverse",ease:"easeInOut"}})})]})})}const d5=4;function Hye(e,t,n,a){const r=[];return t===1&&(e.fullName.trim()||r.push(a?"Ø£Ø¯Ø®Ù Ø§ÙØ§Ø³Ù
اÙÙØ§Ù
Ù ÙÙ
ا ÙÙ ÙÙ Ø§ÙØ¬Ùاز.":"Enter the full name exactly as it appears in the passport."),e.phone.trim()||r.push(a?"أدخ٠رÙÙ
ÙØ§ØªÙ ØµØ§ÙØØ§Ù ÙÙÙ
تابعة.":"Enter a valid phone number for follow-up."),e.passportNumber.trim()||r.push(a?"أدخ٠رÙÙ
Ø¬ÙØ§Ø² Ø§ÙØ³Ùر.":"Enter the passport number."),e.passportExpiry||r.push(a?"ØØ¯Ùد ØªØ§Ø±ÙØ® Ø§ÙØªÙاء Ø¬ÙØ§Ø² Ø§ÙØ³Ùر.":"Select the passport expiry date.")),t===2&&(e.travelDate||r.push(a?"ØØ¯Ùد ØªØ§Ø±ÙØ® Ø§ÙØ³Ùر اÙÙ
تÙÙØ¹.":"Select the expected travel date."),e.stayDuration.trim()||r.push(a?"أدخ٠Ù
دة Ø§ÙØ¥ÙاÙ
Ø© اÙÙ
تÙÙØ¹Ø©."
1632:"Enter the expected stay duration."),n&&e.residentInJordan&&(!e.residenceType.trim()||!e.residenceNumber.trim()||!e.residenceExpiry)&&r.push(a?"Ø£ÙÙ
Ù ÙÙØ¹ Ø§ÙØ¥ÙاÙ
Ø© ÙØ±ÙÙ
ÙØ§ ÙØªØ§Ø±ÙØ® Ø§ÙØªÙØ§Ø¦ÙØ§.":"Complete residence type, number, and expiry date.")),r}const Vye=[{ar:"Ø¨ÙØ§Ùات Ø§ÙØ¬Ùاز ÙØ§ÙØªÙØ§ØµÙ",en:"Passport and contact details",arHint:"ÙØ°Ù Ø§ÙØ¨ÙØ§ÙØ§Øª ØªÙØªØ Ù
ÙÙ Ø§ÙØ·Ùب باسÙ
اÙÙ
Ø³Ø§ÙØ± Ø§ÙØµØÙØ.",enHint:"These details open the application under the travellerâs correct identity."},{ar:"خطة Ø§ÙØ³Ùر ÙØ§ÙØ¥ÙØ§Ù
Ø©",en:"Travel plan and residence",arHint:"ÙØØªØ§Ø¬ ØªØ§Ø±ÙØ® Ø§ÙØ³Ùر ÙØ§ÙÙ
دة ÙØªÙجÙ٠اÙÙ
راجعة Ø§ÙØµØÙØØ©.",enHint:"Travel date and duration guide the right review path."},{ar:"Ø§ÙØ´Ø±ÙØ· Ø§ÙØ¥Ø¶Ø§ÙÙØ©",en:"Additional eligibility conditions",arHint:"أجب Ø¨Ø¯ÙØ©Ø ÙØ°Ù Ø§ÙØ®Ùارات ÙØ§ تعÙÙ ÙØ¨ÙÙØ§Ù تÙÙØ§Ø¦ÙاÙ.",enHint:"Answer accurately; these options never mean automatic approval."},{ar:"راجع Ø«Ù
أرس٠ÙÙÙ
راجعة",en:"Review then send for review",arHint:"تØÙÙ Ù
Ù Ø§ÙØ¨ÙØ§ÙØ§Øª ÙØ¨Ù إرساÙÙØ§ Ø¥ÙÙ ÙØ±ÙÙ IBRIX.",enHint:"Verify the details before they are sent to the IBRIX team."}];function zye({open:e,onOpenChange:t,destinationCode:n,destinations:a,profiles:r,defaultProfileCode:i,defaultPurpose:o="tourism"}){const{lang:c}=zs(),l=c==="ar",d=Pe.visa.submitApplication.useMutation(),[m,h]=k.useState(1),[x,f]=k.useState(null),[b,y]=k.useState(!1),[w,T]=k.useState({fullName:"",email:"",phone:"",travelerProfileCode:i,passportNumber:"",passportExpiry:"",residentInJordan:!1,residenceType:"",residenceNumber:"",residenceExpiry:"",travelDate:"",stayDuration:"",hasUsVisa:!1,hasSchengenVisa:!1,hasUkVisa:!1,hasGccResidency:!1,previouslyRejected:!1,customerNote:""}),[A,E]=k.useState(null),[D,S]=k.useState(null),R=(G,K)=>T(ee=>({...ee,[G]:K})),L=G=>new Promise((K,ee)=>{const pe=new FileReader;pe.onload=()=>
1632K(String(pe.result)),pe.onerror=ee,pe.readAsDataURL(G)}),I=G=>K=>{const ee=K.target.files?.[0]??null;if(ee&&ee.size>12*1024*1024){Le.error(l?"Ø§ÙØØ¯ Ø§ÙØ£Ùص٠12 Ù
ÙØ¬Ø§Ø¨Ø§Ùت":"Max 12MB"),K.target.value="";return}G(ee)},F=k.useMemo(()=>r.find(G=>G.code===w.travelerProfileCode),[r,w.travelerProfileCode]),_=a.find(G=>G.countryCode===n),U=!!F?.requiresResidenceCheck,O=Hye(w,m,U,l),W=Vye[m-1],J=async()=>{try{const G={};A&&(G.passportPhotoBase64=await L(A),G.passportPhotoFileName=A.name,G.passportPhotoMimeType=A.type||"application/octet-stream"),D&&(G.personalPhotoBase64=await L(D),G.personalPhotoFileName=D.name,G.personalPhotoMimeType=D.type||"application/octet-stream");const K=await d.mutateAsync({...w,destinationCode:n,visaType:o,...G});f(K.reference),Le.success(l?"تÙ
Ø§Ø³ØªÙØ§Ù
Ø·ÙØ¨Ù Ø¨ÙØ¬Ø§Ø":"Your application was received")}catch{Le.error(l?"ØªØ¹Ø°ÙØ± Ø¥Ø±Ø³Ø§Ù Ø§ÙØ·ÙØ¨Ø ØØ§ÙÙ Ù
جدداÙ":"Could not submit, please try again")}},oe=()=>{h(1),y(!1),f(null),E(null),S(null)};return s.jsx(Ba,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:189",open:e,onOpenChange:G=>{d.isPending||(G||oe(),t(G))},children:s.jsxs(Fa,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:197","aria-busy":d.isPending,className:"relative max-w-lg max-h-[90vh] overflow-y-auto",children:[s.jsx(as,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:198",children:s.jsxs(Ua,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:199",className:"font-display text-2xl",children:[l?"Ø·ÙØ¨ ØªØ£Ø´ÙØ±Ø©":"Visa Application"," â"," ",_?l?_.nameAr:_.nameEn:n]})}),x?s.jsx($ye,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:206",reference:x,ar:l,onClose:()=>t(!1)}):s.jsxs(s.Fragment,{children:[s.jsx("div",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:210",className:"flex items-center gap-1.5 mb-2",children:Array.from({length:d5}).map((G,K)=>s.jsx("div",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:212",className:`h-1.5 flex-1 rounded-full transition-colors ${K+1<=m?"bg-primary":"bg-muted"}`},K))}),s.jsx("div",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:220",className:"text-xs text-muted-foreground mb-4",children:l?`Ø§ÙØ®Ø·ÙØ© ${m} Ù
Ù ${d5}`:`Step ${m} of ${d5}`}),s.jsxs("div",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:223",className:"mb-4 rounded-lg border border-primary/20 bg-primary/5 px-4 py-3",children:[s.jsx("p",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:224",className:"text-sm font-semibold",children:l?W.ar:W.en}),s.jsx("p",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:225",className:"mt-1 text-xs leading-5 text-muted-foreground",children:l?W.arHint:W.enHint})]}),b&&O.length>0&&s.jsxs("div",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:228",className:"mb-4 rounded-lg border border-rose-200 bg-rose-50 px-4 py-3 text-sm text-rose-900",role:"alert",children:[s.jsx("p",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:229",className:"font-semibold",children:l?"Ø£ÙÙ
Ù Ø§ÙØ¨ÙØ§ÙØ§Øª Ø§ÙØªØ§ÙÙØ© ÙÙÙ
تابعة:":"Complete the following to continue:"}),s.jsx("ul",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:230",className:"mt-1 list-disc space-y-1 ps-5",children:O.map(G=>s.jsx("li",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:230",children:G},G))})]}),m===1&&s.jsxs("div",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:235",className:"space-y-3",children:[s.jsx(xl,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:236",label:l?"Ø§ÙØ§Ø³Ù
اÙÙØ§Ù
Ù (ÙÙ
ا ÙÙ Ø§ÙØ¬Ùاز)":"Full Name (as in passport)",required:!0,children:s.jsx("input",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:237",className:gl,value:w.fullName,onChange:G=>R("fullName",G.target.value)})}),s.jsx(xl,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:239",label:l?"رÙÙ
اÙÙØ§ØªÙ":"Phone",required:!0,children:s.jsx("input",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:240",className:gl,value:w.phone,onChange:G=>R("phone",G.target.value),placeholder:"+962..."})}),s.jsx(xl,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:242",label:l?"Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ (Ø§Ø®ØªÙØ§Ø±Ù)":"Email (optional)",children:s.jsx("input",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:243",type:"email",className:gl,value:w.email,onChange:G=>R("email",G.target.value)})}),s.jsx(xl,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:245",label:l?"ÙÙØ¹ Ø¬ÙØ§Ø² Ø§ÙØ³Ùر":"Passport Type",children:s.jsx("select",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:246",className:gl,value:w.travelerProfileCode,onChange:G=>R("travelerProfileCode",G.target.value),children:r.map(G=>s.jsx("option",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:248",value:G.code,children:l?G.nameAr:G.nameEn},G.code))})}),s.jsxs("div",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:254",className:"grid grid-cols-2 gap-3",children:[s.jsx(xl,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:255",label:l?"رÙÙ
Ø§ÙØ¬Ùاز":"Passport No.",children:s.jsx("input",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:256",className:gl,value:w.passportNumber,onChange:G=>R("passportNumber",G.target.value)})}),s.jsx(xl,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:258",label:l?"ØªØ§Ø±ÙØ® Ø§ÙØªÙاء Ø§ÙØ¬Ùاز":"Passport Expiry",children:s.jsx("input",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:259",type:"date",className:gl,value:w.passportExpiry,onChange:G=>R("passportExpiry",G.target.value)})})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:264",className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[s.jsx(TM,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:265",label:l?"ØµÙØ±Ø© Ø¬ÙØ§Ø² Ø§ÙØ³Ùر (Ø§Ø®ØªÙØ§Ø±Ù)":"Passport photo / scan (optional)",file:A,onChange:I(E),ar:l}),s.jsx(TM,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:271",label:l?"Ø§ÙØµÙرة Ø§ÙØ´Ø®ØµÙØ© (Ø§Ø®ØªÙØ§Ø±Ù)":"Personal photo (optional)",file:D,onChange:I(S),ar:l})]}),s.jsx("p",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:278",className:"text-xs text-muted-foreground",children:l?"ØªÙØ³ØªØ®Ø¯Ù
ØµÙØ±ØªØ§ Ø§ÙØ¬Ùاز ÙØ§ÙØµÙØ±Ø© Ø§ÙØ´Ø®ØµÙØ© ÙØºØ±Ø¶ Ù
Ø¹Ø§ÙØ¬Ø© Ø·ÙØ¨ Ø§ÙØªØ£Ø´Ùرة ÙÙØ·Ø ÙØªÙرس٠بأÙ
ا٠إÙÙ ÙØ±ÙÙÙØ§.":"Your passport and personal photos are used only to process your visa request and are sent securely to our team."})]}),m===2&&s.jsxs("div",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:287",className:"space-y-3",children:[U?s.jsxs(s.Fragment,{children:[s.jsx(vg,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:290",label:l?"Ø£ÙØ§ Ù
ÙÙÙ
ÙÙ Ø§ÙØ£Ø±Ø¯Ù":"I am a resident in Jordan",checked:w.residentInJordan,onChange:G=>R("residentInJordan",G)}),w.residentInJordan&&s.jsxs(s.Fragment,{children:[s.jsx(xl,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:293",label:l?"ÙÙØ¹ Ø§ÙØ¥ÙاÙ
Ø©":"Residence Type",children:s.jsx("input",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:294",className:gl,value:w.residenceType,onCh
1632ange:G=>R("residenceType",G.target.value)})}),s.jsxs("div",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:296",className:"grid grid-cols-2 gap-3",children:[s.jsx(xl,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:297",label:l?"رÙÙ
Ø§ÙØ¥ÙاÙ
Ø©":"Residence No.",children:s.jsx("input",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:298",className:gl,value:w.residenceNumber,onChange:G=>R("residenceNumber",G.target.value)})}),s.jsx(xl,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:300",label:l?"Ø§ÙØªÙاء Ø§ÙØ¥ÙاÙ
Ø©":"Residence Expiry",children:s.jsx("input",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:301",type:"date",className:gl,value:w.residenceExpiry,onChange:G=>R("residenceExpiry",G.target.value)})})]})]})]}):s.jsx("p",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:308",className:"text-sm text-muted-foreground py-4",children:l?"ÙØ§ ØªØªØ·ÙØ¨ ÙØ¦Ø© Ø¬ÙØ§Ø²Ù Ø¨ÙØ§Ùات Ø¥ÙØ§Ù
Ø© إضاÙÙØ©. ÙÙ
ÙÙ٠اÙÙ
تابعة.":"Your passport type does not require additional residence details. You may continue."}),s.jsx(xl,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:314",label:l?"ØªØ§Ø±ÙØ® Ø§ÙØ³Ùر اÙÙ
تÙÙØ¹":"Expected Travel Date",children:s.jsx("input",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:315",type:"date",className:gl,value:w.travelDate,onChange:G=>R("travelDate",G.target.value)})}),s.jsx(xl,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:317",label:l?"Ù
دة Ø§ÙØ¥ÙاÙ
Ø©":"Stay Duration",children:s.jsx("input",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:318",className:gl,value:w.stayDuration,onChange:G=>R("stayDuration",G.target.value),placeholder:l?"Ù
ثاÙ: 7 Ø£ÙØ§Ù
":"e.g. 7 days"})})]}),m===3&&s.jsxs("div",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:324",className:"space-y-2",children:[s.jsx("p",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:325",className:"text-sm text-muted-foreground mb-2",children:l?"ÙÙ ÙØ¯Ù٠أ٠Ù
Ù Ø§ÙØªØ§ÙÙØ (ÙØ¯ ÙØ³Ø±Ùع إصدار Ø§ÙØªØ£Ø´Ùرة)":"Do you hold any of the following? (may speed up issuance)"}),s.jsx(vg,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:328",label:l?"ØªØ£Ø´ÙØ±Ø© Ø£Ù
رÙÙÙØ© Ø³Ø§Ø±ÙØ©":"Valid US visa",checked:w.hasUsVisa,onChange:G=>R("hasUsVisa",G)}),s.jsx(vg,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:329",label:l?"ØªØ£Ø´ÙØ±Ø© Ø´ÙØºÙ Ø³Ø§Ø±ÙØ©":"Valid Schengen visa",checked:w.hasSchengenVisa,onChange:G=>R("hasSchengenVisa",G)}),s.jsx(vg,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:330",label:l?"ØªØ£Ø´ÙØ±Ø© Ø¨Ø±ÙØ·Ø§ÙÙØ© Ø³Ø§Ø±ÙØ©":"Valid UK visa",checked:w.hasUkVisa,onChange:G=>R("hasUkVisa",G)}),s.jsx(vg,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:331",label:l?"Ø¥ÙØ§Ù
Ø© Ù٠دÙÙ Ø§ÙØ®ÙÙØ¬":"GCC residency",checked:w.hasGccResidency,onChange:G=>R("hasGccResidency",G)}),s.jsx(vg,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:332",label:l?"Ø³Ø¨Ù Ø±ÙØ¶ Ø·ÙØ¨ ØªØ£Ø´ÙØ±Ø© ÙÙ":"I had a visa rejected before",checked:w.previouslyRejected,onChange:G=>R("previouslyRejected",G)})]}),m===4&&s.jsxs("div",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:337",className:"space-y-3",children:[s.jsx(xl,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:338",label:l?"Ù
ÙØ§ØØ¸Ø§Øª إضاÙÙØ© (Ø§Ø®ØªÙØ§Ø±Ù)":"Additional notes (optional)",children:s.jsx("textarea",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:339",className:`${gl} min-h-24 py-2`,value:w.customerNote,onChange:G=>R("customerNote",G.target.value)})}),s.jsxs("div",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:341",className:"rounded-lg bg-muted/50 p-4 text-sm space-y-1",children:[s.jsx(o0,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:342",k:l?"Ø§ÙØ§Ø³Ù
":"Name",v:w.fullName}),s.jsx(o0,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:343",k:l?"اÙÙØ§ØªÙ":"Phone",v:w.phone}),s.jsx(o0,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:344",k:l?"اÙÙØ¬ÙØ©":"Destination",v:_?l?_.nameAr:_.nameEn:n}),s.jsx(o0,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:345",k:l?"ÙÙØ¹ Ø§ÙØ¬Ùاز":"Passport",v:F?l?F.nameAr:F.nameEn:""}),s.jsx(o0,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:346",k:l?"ØªØ§Ø±ÙØ® Ø§ÙØ³Ùر":"Travel date",v:w.travelDate||"â"}),s.jsx(o0,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:347",k:l?"Ù
دة Ø§ÙØ¥ÙاÙ
Ø©":"Stay duration",v:w.stayDuration||"â"}),s.jsx(o0,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:348",k:l?"ÙØ«ÙÙØ© Ø§ÙØ¬Ùاز":"Passport file",v:A?.name||(l?"ÙÙ
ØªÙØ±ÙÙ":"Not attached")})]}),s.jsx("p",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:350",className:"text-xs text-muted-foreground",children:l?"Ø¨Ø§ÙØ¶ØºØ· عÙÙ Ø¥Ø±Ø³Ø§ÙØ ÙØ¥ÙÙ ØªÙØ§Ù٠عÙÙ ØªÙØ§ØµÙ ÙØ±ÙÙÙØ§ Ù
Ø¹Ù ÙØ§Ø³ØªÙÙ
Ø§Ù Ø§ÙØ¥Ø¬Ø±Ø§Ø¡Ø§Øª.":"By submitting, you agree that our team may contact you to complete the process."})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:359",className:"flex items-center justify-between gap-3 pt-4 mt-2 border-t border-border",children:[s.jsxs("button",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:360",onClick:()=>m>1?(h(m-1),y(!1)):t(!1),className:"inline-flex items-center gap-1.5 px-4 py-2 rounded-full border border-border text-sm font-medium hover:border-primary/50 transition-colors",children:[l?s.jsx(dr,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:364",className:"w-4 h-4"}):s.jsx(_l,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:364",className:"w-4 h-4"}),m>1?l?"Ø§ÙØ³Ø§Ø¨Ù":"Back":l?"Ø¥ÙØºØ§Ø¡":"Cancel"]}),m<d5?s.jsxs("button",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:368",onClick:()=>{y(!0),O.length===0&&(h(m+1),y(!1))},className:"inline-flex items-center gap-1.5 px-5 py-2 rounded-full bg-primary text-primary-foreground text-sm font-semibold active:scale-[0.97] transition-transform",children:[l?"اØÙظ ÙØ°Ù Ø§ÙØ®Ø·ÙØ© ÙØ§ÙتÙÙ":"Save this step and continue",l?s.jsx(_l,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:379",className:"w-4 h-4"}):s.jsx(dr,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:379",className:"w-4 h-4"})]}):s.jsxs("button",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:382",disabled:d.isPending,onClick:J,className:"inline-flex items-center gap-2 px-6 py-2 rounded-full bg-primary text-primary-foreground text-sm font-semibold disabled:opacity-50 active:scale-[0.97] transition-transform",children:[d.isPending&&s.jsx(ft,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:387",className:"w-4 h-4 animate-spin"}),l?"أرس٠ÙÙÙ
راجعة ÙØ¯Ù IBRIX":"Send to IBRIX for review"]})]})]}),d.isPending&&s.jsx(Uye,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:394",ar:l,kind:"visa"})]})})}function $ye({reference:e,ar:t,onClose:n}){const[a,r]=k.useState(!1),i=Pe.visa.uploadDocument.useMutation(),o=async c=>{const l=c.target.files?.[0];if(l){if(l.size>12*1024*1024){Le.error(t?"Ø§ÙØØ¯ Ø§ÙØ£Ùص٠12 Ù
ÙØ¬Ø§Ø¨Ø§Ùت":"Max 12MB");return}r(!0);try{const d=await new Promise((m,h)=>{const x=new FileReader;x.onload=()=>m(String(x.result)),x.onerror=h,x.readAsDataURL(l)});await i.mutateAsync({reference:e,kind:"passport",dataBase64:d,fileName:l.name,mimeType:l.type||"application/octet-stream"}),Le.success(t?"تÙ
Ø±ÙØ¹ اÙÙ
Ø³ØªÙØ¯":"Document uploaded")}catch{Le.error(t?"ØªØ¹Ø°ÙØ± Ø±ÙØ¹ اÙÙ
Ø³ØªÙØ¯":"Upload failed")}finally{r(!1),c.target.value=""}}};return s.jsxs("div",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:436",className:"py-4 text-center",children:[s.jsx(ns,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:437",className:"w-14 h-14 text-emerald-500 mx-auto mb-3"}),s.jsx("h3",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:438",className:"font-display text-2xl font-bold mb-1",children:t?"تÙ
Ø§Ø³ØªÙØ§Ù
Ø·ÙØ¨Ù!":"Application Received!"}),s.jsx("p",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:441",className:"text-sm text-muted-foreground mb-4",children:t?"Ø§ØØªÙظ برÙÙ
٠اÙÙ
رجع٠ÙÙ
تابعة ØØ§ÙØ© Ø§ÙØ·Ùب.":"Keep your reference number to track y
1632our application."}),s.jsxs("button",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:444",onClick:()=>{navigator.clipboard?.writeText(e),Le.success(t?"تÙ
ÙØ³Ø® Ø§ÙØ±ÙÙ
":"Copied")},className:"inline-flex items-center gap-2 px-5 py-3 rounded-xl bg-primary/10 text-primary font-mono font-bold text-lg mb-5",children:[e,s.jsx(L4,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:452",className:"w-4 h-4"})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:455",className:"rounded-xl border border-dashed border-border p-4 text-start",children:[s.jsx("div",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:456",className:"text-sm font-semibold mb-2",children:t?"Ø§Ø±ÙØ¹ Ø¬ÙØ§Ø² Ø³ÙØ±Ù Ø§ÙØ¢Ù (Ø§Ø®ØªÙØ§Ø±Ù)":"Upload your passport now (optional)"}),s.jsxs("label",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:459",className:"inline-flex items-center gap-2 px-4 py-2 rounded-full border border-border text-sm font-medium cursor-pointer hover:border-primary/50 transition-colors",children:[a?s.jsx(ft,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:460",className:"w-4 h-4 animate-spin"}):s.jsx(dh,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:460",className:"w-4 h-4"}),t?"اختر Ù
ÙÙØ§Ù":"Choose file",s.jsx("input",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:462",type:"file",className:"hidden",onChange:o,accept:"image/*,application/pdf",disabled:a})]})]}),s.jsx("button",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:466",onClick:n,className:"mt-5 w-full px-5 py-3 rounded-full bg-foreground text-background text-sm font-semibold active:scale-[0.98] transition-transform",children:t?"Ø¥ØºÙØ§Ù":"Done"})]})}const gl="w-full h-10 rounded-lg border border-border bg-background px-3 text-sm outline-none focus:border-primary transition-colors";function xl({label:e,required:t,children:n}){return s.jsxs("label",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:481",className:"block",children:[s.jsxs("span",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:482",className:"block text-sm font-medium mb-1",children:[e," ",t&&s.jsx("span",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:483",className:"text-rose-500",children:"*"})]}),n]})}function vg({label:e,checked:t,onChange:n}){return s.jsxs("label",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:492",className:"flex items-center gap-3 p-3 rounded-lg border border-border cursor-pointer hover:border-primary/50 transition-colors",children:[s.jsx("input",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:493",type:"checkbox",checked:t,onChange:a=>n(a.target.checked),className:"w-4 h-4 accent-[var(--primary)]"}),s.jsx("span",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:494",className:"text-sm",children:e})]})}function TM({label:e,file:t,onChange:n,ar:a}){return s.jsxs("div",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:511",className:"rounded-lg border border-dashed border-border p-3",children:[s.jsx("div",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:512",className:"text-sm font-medium mb-2",children:e}),s.jsxs("label",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:513",className:"inline-flex items-center gap-2 px-4 py-2 rounded-full border border-border text-sm font-medium cursor-pointer hover:border-primary/50 transition-colors",children:[s.jsx(dh,{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:514",className:"w-4 h-4"}),t?a?"تغÙÙØ± اÙÙ
ÙÙ":"Change file":a?"اختر Ù
ÙÙØ§Ù":"Choose file",s.jsx("input",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:516",type:"file",className:"hidden",accept:"image/*,application/pdf",onChange:n})]}),t&&s.jsx("div",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:518",className:"mt-2 text-xs text-foreground/80 truncate",children:t.name})]})}function o0({k:e,v:t}){return s.jsxs("div",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:525",className:"flex items-center justify-between gap-3",children:[s.jsx("span",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:526",className:"text-muted-foreground",children:e}),s.jsx("span",{"data-loc":"client/src/components/visa/VisaApplyDialog.tsx:527",className:"font-medium truncate",children:t||"â"})]})}
1632function qye(e){return e.trim().toUpperCase().startsWith("CYT")?"translation":"visa"}const NM={new:{ar:"Ø¬Ø¯ÙØ¯",en:"New",badge:"bg-blue-100 text-blue-700"},in_progress:{ar:"ÙÙØ¯ Ø§ÙØªØ±Ø¬Ù
Ø©",en:"In Progress",badge:"bg-amber-100 text-amber-700"},delivered:{ar:"تÙ
Ø§ÙØªØ³ÙÙÙ
",en:"Delivered",badge:"bg-emerald-100 text-emerald-700"},cancelled:{ar:"Ù
ÙØºÙ",en:"Cancelled",badge:"bg-rose-100 text-rose-700"}};function Gye(){const{lang:e}=zs(),t=e==="ar",[n,a]=k.useState(!1),[r,i]=k.useState(""),[o,c]=k.useState(null),l=k.useMemo(()=>qye(o??""),[o]),d=Pe.visa.trackApplication.useQuery({reference:o??""},{enabled:!!o&&l==="visa",retry:!1}),m=Pe.visa.translation.track.useQuery({reference:o??""},{enabled:!!o&&l==="translation",retry:!1}),h=l==="visa"?d:m,x=y=>yo[y in yo?y:"new"],f=y=>NM[y]??NM.new,b=y=>y?new Date(y).toLocaleDateString(t?"ar-JO":"en-GB"):"â";return s.jsxs(Ba,{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:73",open:n,onOpenChange:a,children:[s.jsx(hA,{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:74",asChild:!0,children:s.jsxs("button",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:75",className:"inline-flex items-center gap-2 px-5 py-2.5 rounded-full border border-border text-sm font-semibold hover:border-primary/50 transition-colors",children:[s.jsx(so,{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:76",className:"w-4 h-4"}),t?"ØªØªØ¨ÙØ¹ Ù
عاÙ
ÙØ§ØªÙ":"Track my requests"]})}),s.jsxs(Fa,{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:80",className:"max-w-md",children:[s.jsx(as,{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:81",children:s.jsx(Ua,{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:82",className:"font-display text-2xl",children:t?"ØªØªØ¨ÙØ¹ Ù
عاÙ
ÙØ§ØªÙ":"Track My Requests"})}),s.jsx("p",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:87",className:"text-xs text-muted-foreground -mt-2",children:t?"أدخ٠رÙÙ
Ø·ÙØ¨ Ø§ÙØªØ£Ø´Ùرة (DTV-) Ø£Ù Ø·ÙØ¨ Ø§ÙØªØ±Ø¬Ù
Ø© (DTT-) â ÙÙØªØ´Ù اÙÙÙØ¹ تÙÙØ§Ø¦ÙاÙ.":"Enter a visa (DTV-) or translation (DTT-) reference â we detect the type automatically."}),s.jsxs("div",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:93",className:"flex gap-2",children:[s.jsx("input",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:94",value:r,onChange:y=>i(y.target.value),placeholder:"DTV-2026-XXXXXX / DTT-2026-XXXXXX",className:"flex-1 h-10 rounded-lg border border-border bg-background px-3 text-sm font-mono outline-none focus:border-primary transition-colors"}),s.jsx("button",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:100",onClick:()=>c(r.trim().toUpperCase()),disabled:!r.trim(),className:"px-4 py-2 rounded-lg bg-primary text-primary-foreground text-sm font-semibold disabled:opacity-50 active:scale-[0.97] transition-transform",children:t?"Ø¨ØØ«":"Track"})]}),h.isFetching&&s.jsx("div",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:110",className:"flex items-center justify-center py-8",children:s.jsx(ft,{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:111",className:"w-6 h-6 animate-spin text-muted-foreground"})}),o&&!h.isFetching&&h.isError&&s.jsx("div",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:116",className:"text-center py-6 text-sm text-muted-foreground",children:t?"ÙÙ
ÙØ¹Ø«Ø± عÙÙ Ù
عاÙ
ÙØ© Ø¨ÙØ°Ø§ Ø§ÙØ±ÙÙ
.":"No request found with that reference."}),l==="visa"&&d.data&&s.jsxs("div",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:123",className:"space-y-3 pt-2",children:[s.jsxs("div",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:124",className:"flex items-center justify-between",children:[s.jsx("span",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:125",className:"text-sm text-muted-foreground",children:t?"Ø§ÙØ§Ø³Ù
":"Name"}),s.jsx("span",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:126",className:"font-medium",children:d.data.fullName})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:128",className:"flex items-center justify-between",children:[s.jsx("span",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:129",className:"text-sm text-muted-foreground",children:t?"Ø§ÙØØ§ÙØ©":"Status"}),s.jsx("span",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:130",className:`inline-flex items-center px-2.5 py-1 rounded-full text-xs font-semibold ${x(d.data.status).badge}`,children:t?x(d.data.status).ar:x(d.data.status).en})]}),d.data.documents.length>0&&s.jsxs("div",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:137",className:"pt-2 border-t border-border",children:[s.jsx("div",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:138",className:"text-sm font-semibold mb-2",children:t?"اÙÙ
Ø³ØªÙØ¯Ø§Øª":"Documents"}),s.jsx("ul",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:139",className:"space-y-1",children:d.data.documents.map((y,w)=>s.jsxs("li",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:141",className:"flex items-center gap-2 text-sm",children:[s.jsx(ji,{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:142",className:"w-4 h-4 text-muted-foreground"}),s.jsx("span",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:143",className:"truncate flex-1",children:y.fileName})]},w))})]}),d.data.status==="issued"&&d.data.issuedVisaUrl&&s.jsxs("a",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:150",href:d.data.issuedVisaUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 w-full px-5 py-3 rounded-full bg-emerald-600 text-white text-sm font-semibold active:scale-[0.98] transition-transform",children:[s.jsx(Sd,{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:156",className:"w-4 h-4"}),t?"تØÙ
ÙÙ Ø§ÙØªØ£Ø´Ùرة Ø§ÙØµØ§Ø¯Ø±Ø©":"Download Issued Visa"]})]}),l==="translation"&&m.data&&s.jsxs("div",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:165",className:"space-y-3 pt-2",children:[s.jsxs("div",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:166",className:"flex items-center gap-2 text-sm font-semibold text-primary",children:[s.jsx(kl,{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:167",className:"w-4 h-4"}),t?"Ø·ÙØ¨ ترجÙ
Ø© Ù
عتÙ
دة":"Certified Translation Request"]}),s.jsxs("div",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:170",className:"flex items-center justify-between",children:[s.jsx("span",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:171",className:"text-sm text-muted-foreground",children:t?"Ø§ÙØ§Ø³Ù
":"Name"}),s.jsx("span",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:172",className:"font-medium",children:m.data.fullName})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:174",className:"flex items-center justify-between",children:[s.jsx("span",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:175",className:"text-sm text-muted-foreground",children:t?"اÙÙØºØ©":"Language"}),s.jsxs("span",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:176",className:"font-medium uppercase",children:[m.data.sourceLang," â ",m.data.targetLang]})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:180",className:"flex items-center justify-between",children:[s.jsx("span",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:181",className:"text-sm text-muted-foreground",children:t?"عدد Ø§ÙØµÙØØ§Øª":"Pages"}),s.jsx("span",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:182",className:"font-medium",children:m.data.pageCount})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:184",className:"flex items-center justify-between",children:[s.jsx("span",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:185",className:"text-sm text-muted-foreground",children:t?"Ø§ÙØ±Ø³ÙÙ
":"Fee"}),s.jsxs("span",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:186",className:"font-semibold",children:[m.data.fee," ",m.data.currency]})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:190",className:"flex items-center justify-between",children:[s.jsx("span",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:191",className:"text-sm text-muted-foreground",children:t?"Ø§ÙØØ§ÙØ©":"Status"}),s.jsx("span",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:192",className:`inline-flex items-center px-2.5 py-1 rounded-full text-xs font-semibold ${f(m.data.status).badge}`,children:t?f(m.data.status).ar:f(m.data.status).en})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:198",className:"flex items-center justify-between",children:[s.jsx("span",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:199",className:"text-sm text-muted-foreground",children:t?"ØªØ§Ø±ÙØ® Ø§ÙØ·Ùب":"Requested"}),s.jsx("span",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:200",className:"text-sm",children:b(m.data.createdAt)})]}),m.data.status==="delivered"&&m.data.deliveredFileUrl&&s.jsxs("a",{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:203",href:m.data.deliveredFileUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 w-full px-5 py-3 rounded-full bg-emerald-600 text-white text-sm font-semibold active:scale-[0.98] transition-transform",children:[s.jsx(Sd,{"data-loc":"client/src/components/visa/VisaTrackDialog.tsx:209",className:"w-4 h-4"}),t?"تØÙ
ÙÙ Ø§ÙØªØ±Ø¬Ù
Ø© اÙÙ
عتÙ
دة":"Download Certified Translation"]})]})]})]})}const kM=3,Jye=[{code:"certificate",ar:"Ø´ÙØ§Ø¯Ø© (Ù
ÙÙØ§Ø¯/Ø²ÙØ§Ø¬/ØªØ®Ø±ÙØ¬)",en:"Certificate (birth/marriage/degree)"},{code:"contract",ar:"Ø¹ÙØ¯",en:"Contract"},{code:"bank_statement",ar:"ÙØ´Ù ØØ³Ø§Ø¨ بÙÙÙ",en:"Bank statement"},{code:"other",ar:"أخرÙ",en:"Other"}],jM=[{code:"ar",ar:"Ø§ÙØ¹Ø±Ø¨ÙØ©",en:"Arabic"},{code:"en",ar:"Ø§ÙØ¥ÙجÙÙØ²ÙØ©",en:"English"},{code:"fr",ar:"اÙÙØ±ÙØ³ÙØ©",en:"French"},{code:"de",ar:"Ø§ÙØ£ÙÙ
اÙÙØ©",en:"German"},{code:"es",ar:"Ø§ÙØ¥Ø³Ø¨Ø§ÙÙØ©",en:"Spanish"},{code:"tr",ar:"Ø§ÙØªØ±ÙÙØ©",en:"Turkish"}];function PG({trigger:e,applicationReference:t}){const{lang:n,isRTL:a}=zs(),r=n==="ar",[i,o]=k.useState(!1),[c,l]=k.useState(""),[d,m]=k.useState(""),[h,x]=k.useState(""),[f,b]=k.useState("ar"),[y,w]=k.useState("en"),[T,A]=k.useState("certificate"),[E,D]=k.useState(1),[S,R]=k.useState(""),[L,I]=k.useState(null),[F,_]=k.useState(!1),U=Pe.visa.translation.create.useMutation({onSuccess:G=>I({reference:G.reference,fee:G.fee})}),O=Math.max(1,E)*kM,W=c.trim().length>1&&d.trim().length>3&&E>=1,J=()=>{l(""),m(""),x(""),b("ar"),w("en"),A("certificate"),D(1),R(""),I(null),_(!1)},oe="w-full h-10 rounded-lg border border-border bg-background px-3 text-sm outline-none focus:border-primary transition-colors";return s.jsxs(Ba,{"data-loc":"client/src/components/visa/TranslationDialog.tsx:77",open:i,onOpenChange:G=>{o(G),G||setTimeout(J,200)},children:[s.jsx(hA,{"data-loc":"client/src/components/visa/TranslationDialog.tsx:84",asChild:!0,children:e??s.jsxs("button",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:86",className:"inline-flex items-center gap-2 px-5 py-2.5 rounded-full border border-border text-sm font-semibold hover:border-primary/50 transition-colors",children:[s.jsx(kl,{"data-loc":"client/src/components/visa/TranslationDialog.tsx:87",className:"w-4 h-4"}),r?"ترجÙ
Ø© Ù
عتÙ
دة":"Certified Translation"]})}),s.jsxs(Fa,{"data-loc":"client/src/components/visa/TranslationDialog.tsx:92",className:"max-w-lg max-h-[88vh] overflow-y-auto",children:[s.jsx(as,{"data-loc":"client/src/components/visa/TranslationDialog.tsx:93",children:s.jsx(Ua,{"data-loc":"client/src/components/visa/TranslationDialog.tsx:94",className:"font-display text-2xl",children:r?"Ø·ÙØ¨ ترجÙ
Ø© Ù
عتÙ
دة":"Certified Translation Request"})}),L?s.jsxs("div",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:100",className:"space-y-4 py-2 text-center",children:[s.jsx(ns,{"data-loc":"client/src/components/visa/TranslationDialog.tsx:101",className:"w-12 h-12 text-emerald-500 mx-auto"}),s.jsx("p",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:102",className:"text-sm text-muted-foreground",children:r?"تÙ
Ø§Ø³ØªÙØ§Ù
Ø·ÙØ¨ Ø§ÙØªØ±Ø¬Ù
Ø©. Ø§ØØªÙظ برÙÙ
اÙÙ
تابعة Ø§ÙØªØ§ÙÙ:":"Your translation request was received. Keep this tracking reference:"}),s.jsxs("div",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:107",className:"flex items-center justify-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:108",className:"font-mono text-lg font-bold tracking-wide",children:L.reference}),s.jsx("button",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:109",onClick:()=>{navigator.clipboard?.writeText(L.reference),_(!0),setTimeout(()=>_(!1),1500)},className:"p-1.5 rounded-md border border-border hover:border-primary/50 transition-colors","aria-label":"Copy reference",children:s.jsx(L4,{"data-loc":"client/src/components/visa/TranslationDialog.tsx:118",className:"w-4 h-4"})})]}),F&&s.jsx("div",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:122",className:"text-xs text-emerald-600",children:r?"تÙ
اÙÙØ³Ø®":"Copied"}),s.jsxs("div",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:124",className:"rounded-lg bg-muted/60 p-3 text-sm",children:[r?"Ø§ÙØ±Ø³ÙÙ
Ø§ÙØªÙØ¯ÙØ±ÙØ©:":"Estimated fee:"," ",s.jsxs("span",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:126",className:"font-bold",children:[L.fee," ",r?"د.Ø£":"JOD"]})]}),s.jsx("p",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:128",className:"text-xs text-muted-foreground",children:r?"Ø³ÙØªÙاص٠Ù
Ø¹Ù ÙØ±ÙÙÙØ§ ÙØ§Ø³ØªÙاÙ
اÙÙ
Ø³ØªÙØ¯ ÙØªØ£ÙÙØ¯ Ø§ÙØªÙاصÙÙ.":"Our team will c
1632ontact you to collect the document and confirm details."}),s.jsx("button",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:133",onClick:()=>o(!1),className:"w-full px-5 py-2.5 rounded-full bg-primary text-primary-foreground text-sm font-semibold active:scale-[0.97] transition-transform",children:r?"تÙ
":"Done"})]}):s.jsxs("div",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:141",className:"space-y-3 py-1",dir:a?"rtl":"ltr",children:[s.jsxs("div",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:142",className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:143",children:[s.jsx("label",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:144",className:"block text-xs font-semibold mb-1",children:r?"Ø§ÙØ§Ø³Ù
اÙÙØ§Ù
Ù":"Full name"}),s.jsx("input",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:145",value:c,onChange:G=>l(G.target.value),className:oe})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:147",children:[s.jsx("label",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:148",className:"block text-xs font-semibold mb-1",children:r?"رÙÙ
اÙÙØ§ØªÙ":"Phone"}),s.jsx("input",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:149",value:d,onChange:G=>m(G.target.value),className:oe,dir:"ltr"})]})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:153",children:[s.jsx("label",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:154",className:"block text-xs font-semibold mb-1",children:r?"Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ (Ø§Ø®ØªÙØ§Ø±Ù)":"Email (optional)"}),s.jsx("input",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:157",value:h,onChange:G=>x(G.target.value),className:oe,dir:"ltr"})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:160",className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:161",children:[s.jsx("label",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:162",className:"block text-xs font-semibold mb-1",children:r?"Ù
Ù ÙØºØ©":"From"}),s.jsx("select",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:163",value:f,onChange:G=>b(G.target.value),className:oe,children:jM.map(G=>s.jsx("option",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:165",value:G.code,children:r?G.ar:G.en},G.code))})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:169",children:[s.jsx("label",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:170",className:"block text-xs font-semibold mb-1",children:r?"Ø¥ÙÙ ÙØºØ©":"To"}),s.jsx("select",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:171",value:y,onChange:G=>w(G.target.value),className:oe,children:jM.map(G=>s.jsx("option",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:173",value:G.code,children:r?G.ar:G.en},G.code))})]})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:179",className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:180",children:[s.jsx("label",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:181",className:"block text-xs font-semibold mb-1",children:r?"ÙÙØ¹ اÙÙ
Ø³ØªÙØ¯":"Document type"}),s.jsx("select",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:182",value:T,onChange:G=>A(G.target.value),className:oe,children:Jye.map(G=>s.jsx("option",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:184",value:G.code,children:r?G.ar:G.en},G.code))})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:188",children:[s.jsx("label",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:189",className:"block text-xs font-semibold mb-1",children:r?"عدد Ø§ÙØµÙØØ§Øª":"Pages"}),s.jsx("input",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:190",type:"number",min:1,max:200,value:E,onChange:G=>D(Math.max(1,Number(G.target.value)||1)),className:oe,dir:"ltr"})]})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:202",children:[s.jsx("label",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:203",className:"block text-xs font-semibold mb-1",children:r?"Ù
ÙØ§ØØ¸Ø§Øª (Ø§Ø®ØªÙØ§Ø±Ù)":"Notes (optional)"}),s.jsx("textarea",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:204",value:S,onChange:G=>R(G.target.value),rows:2,className:"w-full rounded-lg border border-border bg-background px-3 py-2 text-sm outline-none focus:border-primary transition-colors resize-none"})]}),s.jsxs("div",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:212",className:"flex items-center justify-between rounded-lg bg-primary/10 px-4 py-3",children:[s.jsx("span",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:213",className:"text-sm font-medium",children:r?"Ø§ÙØ±Ø³ÙÙ
Ø§ÙØªÙØ¯ÙØ±ÙØ©":"Estimated fee"}),s.jsxs("span",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:214",className:"text-lg font-bold text-primary",children:[O," ",r?"د.Ø£":"JOD",s.jsxs("span",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:216",className:"text-xs font-normal text-muted-foreground ms-1",children:["(",E," à ",kM,")"]})]})]}),U.isError&&s.jsx("div",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:223",className:"text-sm text-red-600",children:r?"ØØ¯Ø« Ø®Ø·Ø£Ø ÙØ±Ø¬Ù اÙÙ
ØØ§ÙÙØ© Ù
جدداÙ.":"Something went wrong, please try again."}),s.jsxs("button",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:228",onClick:()=>U.mutate({fullName:c.trim(),phone:d.trim(),email:h.trim()||void 0,applicationReference:t||void 0,sourceLang:f,targetLang:y,documentType:T,pageCount:E,notes:S.trim()||void 0}),disabled:!W||U.isPending,className:"w-full inline-flex items-center justify-center gap-2 px-5 py-3 rounded-full bg-primary text-primary-foreground text-sm font-semibold disabled:opacity-50 active:scale-[0.97] transition-transform",children:[U.isPending&&s.jsx(ft,{"data-loc":"client/src/components/visa/TranslationDialog.tsx:245",className:"w-4 h-4 animate-spin"}),r?"Ø¥Ø±Ø³Ø§Ù Ø·ÙØ¨ Ø§ÙØªØ±Ø¬Ù
Ø©":"Submit translation request"]}),s.jsx("p",{"data-loc":"client/src/components/visa/TranslationDialog.tsx:248",className:"text-[11px] text-muted-foreground text-center",children:r?"Ø§ÙØ±Ø³ÙÙ
ØªÙØ¯ÙØ±ÙØ© ÙÙØ¯ ØªÙØ¹Ø¯ÙÙ Ø¨ØØ³Ø¨ ÙÙØ¹ اÙÙ
Ø³ØªÙØ¯ ÙØ¹Ø¯Ø¯ اÙÙÙÙ
ات اÙÙØ¹ÙÙ.":"Fee is an estimate and may be adju
1632sted based on document type and actual word count."})]})]})]})}function Wye(e,t){return e.length?e.some(n=>n.code===t)?t:e[0].code:t}function DG(e){return!!(e&&e.confidenceLevel==="verified"&&e.officialSourceUrl&&e.lastVerifiedAt)}function Yye(e){return!!(DG(e)&&e?.canApplyThroughAgency&&e?.visaStatus!=="visa_free"&&e?.visaStatus!=="check_required")}function Xye(){const{lang:e,isRTL:t}=zs(),n=e==="ar",{data:a,isLoading:r}=Pe.visa.meta.useQuery(),{data:i,isLoading:o}=Pe.visa.publicRules.useQuery(),c=a?.profiles??[],l=a?.destinations??[],[d,m]=k.useState(""),[h,x]=k.useState("tourism"),[f,b]=k.useState("all"),[y,w]=k.useState(""),[T,A]=k.useState(null),[E,D]=k.useState(null),S=k.useMemo(()=>{const O=new Set(l.map(W=>W.region));return Array.from(O)},[l]);k.useEffect(()=>{const O=Wye(c,d);O!==d&&(m(O),A(null))},[a?.profiles,d]);const R=c.find(O=>O.code===d)??null,L=k.useMemo(()=>{const O=new Map;(i??[]).forEach(J=>{if(J.travelerProfileCode!==d)return;const oe=O.get(J.destinationCode)??[];oe.push(J),O.set(J.destinationCode,oe)});const W=new Map;return O.forEach((J,oe)=>{const G=J.find(ee=>ee.visaType===h),K=J.find(ee=>ee.visaType==="tourism");W.set(oe,G??K??J[0])}),W},[i,d,h]),I=k.useMemo(()=>{const O=y.trim().toLowerCase();return l.filter(W=>f!=="all"&&W.region!==f?!1:O?W.nameAr.toLowerCase().includes(O)||W.nameEn.toLowerCase().includes(O)||W.countryCode.toLowerCase().includes(O):!0)},[l,f,y]),F=T?L.get(T):null,_=l.find(O=>O.countryCode===T)||null,U=O=>Om[O in Om?O:"check_required"];return s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:124",className:"min-h-screen bg-background text-foreground",children:[s.jsx(io,{"data-loc":"client/src/pages/Visa.tsx:125"}),s.jsxs("section",{"data-loc":"client/src/pages/Visa.tsx:128",className:"relative pt-32 pb-16 overflow-hidden",children:[s.jsx("div",{"data-loc":"client/src/pages/Visa.tsx:129","aria-hidden":!0,className:"absolute inset-0 -z-10 bg-gradient-to-br from-primary/10 via-background to-background"}),s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:133",className:"container",children:[s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:134",className:"flex items-center gap-2 text-primary text-sm font-semibold mb-3",children:[s.jsx(Hs,{"data-loc":"client/src/pages/Visa.tsx:135",className:"w-4 h-4"}),s.jsx("span",{"data-loc":"client/src/pages/Visa.tsx:136",children:n?"Ù
ØØ±Ù Ø£ÙÙÙØ© Ø§ÙØªØ£Ø´Ùرات":"Visa Eligibility Engine"})]}),s.jsx("h1",{"data-loc":"client/src/pages/Visa.tsx:138",className:"font-display text-4xl md:text-5xl font-bold mb-4 max-w-3xl",children:n?"اعر٠Ù
ØªØ·ÙØ¨Ø§Øª ØªØ£Ø´ÙØ±ØªÙ ÙÙ Ø«ÙØ§ÙÙ":"Know Your Visa Requirements in Seconds"}),s.jsx("p",{"data-loc":"client/src/pages/Visa.tsx:143",className:"text-muted-foreground text-lg max-w-2xl",children:n?"اختر ÙÙØ¹ Ø¬ÙØ§Ø² Ø³ÙØ±Ù ÙÙØ¬ÙØªÙ ÙØ¹Ø±Ø¶ ØØ§ÙØ© Ø§ÙØªØ£Ø´Ùرة ÙØ§ÙÙ
Ø³ØªÙØ¯Ø§Øª اÙÙ
Ø·ÙÙØ¨Ø© ÙÙ
دة اÙÙ
Ø¹Ø§ÙØ¬Ø© â Ø«Ù
ÙØ¯ÙÙ
Ø·ÙØ¨Ù Ù
باشرة عبر IBRIX.":"Pick your passport type and destination to see the visa status, required documents, and processing time â then apply directly through IBRIX."}),s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:148",className:"mt-6 flex flex-wrap gap-3",children:[s.jsx(Gye,{"data-loc":"client/src/pages/Visa.tsx:149"}),s.jsx(PG,{"data-loc":"client/src/pages/Visa.tsx:150"})]})]})]}),s.jsx("section",{"data-loc":"client/src/pages/Visa.tsx:156",className:"container pb-6",children:s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:157",className:"rounded-2xl border border-border bg-card p-5 shadow-sm",children:[s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:158",className:"mb-5 flex flex-wrap items-center gap-2 text-xs font-semibold text-muted-foreground",children:[s.jsxs("span",{"data-loc":"client/src/pages/Visa.tsx:159",className:"rounded-full bg-primary/10 px-3 py-1.5 text-primary",children:["1 · ",n?"ÙÙØ¹ Ø§ÙØ¬Ùاز":"Passport"]}),s.jsxs("span",{"data-loc":"client/src/pages/Visa.tsx:160",className:"rounded-full bg-primary/10 px-3 py-1.5 text-primary",children:["2 · ",n?"غرض Ø§ÙØ³Ùر":"Purpose"]}),s.jsxs("span",{"data-loc":"client/src/pages/Visa.tsx:161",className:"rounded-full bg-primary/10 px-3 py-1.5 text-primary",children:["3 · ",n?"اختر Ø§ÙØ¯ÙÙØ©":"Choose country"]}),R?s.jsxs("span",{"data-loc":"client/src/pages/Visa.tsx:163",className:"ms-auto text-foreground
1632/75",children:[n?"Ø§ÙØ§Ø®ØªÙار Ø§ÙØØ§ÙÙ: ":"Current selection: ",n?R.nameAr:R.nameEn]}):null]}),s.jsx("label",{"data-loc":"client/src/pages/Visa.tsx:170",className:"block text-sm font-semibold mb-2",children:n?"ÙÙØ¹ Ø¬ÙØ§Ø² Ø§ÙØ³Ùر":"Passport / Document Type"}),r?s.jsx("div",{"data-loc":"client/src/pages/Visa.tsx:174",className:"h-10 rounded-lg bg-muted animate-pulse"}):s.jsx("div",{"data-loc":"client/src/pages/Visa.tsx:176",className:"flex flex-wrap gap-2",children:c.map(O=>s.jsx("button",{"data-loc":"client/src/pages/Visa.tsx:178",onClick:()=>{m(O.code),A(null)},className:`px-4 py-2 rounded-full text-sm font-medium border transition-all active:scale-[0.97] ${d===O.code?"bg-primary text-primary-foreground border-primary shadow-sm":"bg-background text-foreground/80 border-border hover:border-primary/50"}`,children:n?O.nameAr:O.nameEn},O.code))}),s.jsx("label",{"data-loc":"client/src/pages/Visa.tsx:197",className:"block text-sm font-semibold mt-5 mb-2 text-foreground/90",children:n?"Ø§ÙØºØ±Ø¶ Ù
Ù Ø§ÙØ³Ùر":"Purpose of Travel"}),s.jsx("div",{"data-loc":"client/src/pages/Visa.tsx:200",className:"flex flex-wrap gap-2",children:[{code:"tourism",ar:"Ø³ÙØ§ØØ©",en:"Tourism"},{code:"business",ar:"أعÙ
اÙ",en:"Business"},{code:"visit",ar:"Ø²ÙØ§Ø±Ø©",en:"Visit"},{code:"medical",ar:"Ø¹ÙØ§Ø¬",en:"Medical"},{code:"study",ar:"دراسة",en:"Study"}].map(O=>s.jsx("button",{"data-loc":"client/src/pages/Visa.tsx:208",onClick:()=>{x(O.code),A(null)},className:`px-4 py-2 rounded-full text-sm font-medium border transition-all active:scale-[0.97] ${h===O.code?"bg-primary text-primary-foreground border-primary shadow-sm":"bg-background text-foreground/80 border-border hover:border-primary/50"}`,children:n?O.ar:O.en},O.code))}),s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:226",className:"mt-5 grid gap-3 md:grid-cols-[1fr_auto]",children:[s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:227",className:"relative",children:[s.jsx(so,{"data-loc":"client/src/pages/Visa.tsx:228",className:`absolute top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground ${t?"right-3":"left-3"}`}),s.jsx("input",{"data-loc":"client/src/pages/Visa.tsx:233",value:y,onChange:O=>w(O.target.value),placeholder:n?"Ø§Ø¨ØØ« ع٠دÙÙØ©...":"Search for a country...",className:`w-full h-11 rounded-lg border border-border bg-background text-sm outline-none focus:border-primary transition-colors ${t?"pr-9 pl-3":"pl-9 pr-3"}`})]}),s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:242",className:"flex flex-wrap gap-2",children:[s.jsx("button",{"data-loc":"client/src/pages/Visa.tsx:243",onClick:()=>b("all"),className:`px-3 py-2 rounded-lg text-xs font-medium border transition-colors ${f==="all"?"bg-foreground text-background border-foreground":"border-border hover:border-primary/50"}`,children:n?"اÙÙÙ":"All"}),S.map(O=>s.jsx("button",{"data-loc":"client/src/pages/Visa.tsx:254",onClick:()=>b(O),className:`px-3 py-2 rounded-lg text-xs font-medium border transition-colors ${f===O?"bg-foreground text-background border-foreground":"border-border hover:border-primary/50"}`,children:cg[O]?n?cg[O].ar:cg[O].en:O},O))]})]})]})}),s.jsx("section",{"data-loc":"client/src/pages/Visa.tsx:272",className:"container pb-16",children:o?s.jsx("div",{"data-loc":"client/src/pages/Visa.tsx:274",className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:Array.from({length:6}).map((O,W)=>s.jsx("div",{"data-loc":"client/src/pages/Visa.tsx:276",className:"h-32 rounded-xl bg-muted animate-pulse"},W))}):I.length===0?s.jsx("div",{"data-loc":"client/src/pages/Visa.tsx:280",className:"text-center py-16 text-muted-foreground",children:n?"ÙØ§ ØªÙØ¬Ø¯ ÙØ¬Ùات Ù
Ø·Ø§Ø¨ÙØ©.":"No matching destinations."}):s.jsx("div",{"data-loc":"client/src/pages/Visa.tsx:284",className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:I.map(O=>{const J=L.get(O.countryCode)?.visaStatus??"check_required",oe=U(J);return s.jsxs("button",{"data-loc":"client/src/pages/Visa.tsx:290",onClick:()=>A(O.countryCode),className:`group text-start rounded-xl border bg-card p-5 shadow-sm transition-all hover:shadow-md hover:-translate-y-0.5 active:scale-[0.99] ${T===O.countryCode?"border-primary ring-1 ring-primary":"border-border"}`,children:[s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:297",className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:298",className:"min-w-0",children:[s.jsx("div",{"data-loc":"client/src/pages/Visa.tsx:299",className:"font-display text-xl font-bold truncate",children:n?O.nameAr:O.nameEn}),s.jsx("div",{"data-loc":"client/src/pages/Visa.tsx:302",className:"text-xs text-muted-foreground mt-0.5",children:cg[O.region]?n?cg[O.region].ar:cg[O.region].en:O.region})]}),s.jsx("span",{"data-loc":"client/src/pages/Visa.tsx:310",className:`shrink-0 w-2.5 h-2.5 rounded-full mt-2 ${oe.dot}`})]}),s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:312",className:"mt-4 flex items-center justify-between",children:[s.jsx("span",{"data-loc":"client/src/pages/Visa.tsx:313",className:`inline-flex items-center px-2.5 py-1 rounded-full text-xs font-semibold ${oe.badge}`,children:n?oe.ar:oe.en}),s.jsxs("span",{"data-loc":"client/src/pages/Visa.tsx:318",className:"inline-flex items-center gap-1 text-xs font-semibold text-primary",children:[n?"عرض Ø§ÙØªÙاصÙÙ":"View details",s.jsx(dr,{"data-loc":"client/src/pages/Visa.tsx:320",className:`w-4 h-4 text-primary transition-transform group-hover:translate-x-0.5 ${t?"rotate-180":""}`})]})]})]},O.countryCode)}
1632)})}),T&&_&&s.jsx(Qye,{"data-loc":"client/src/pages/Visa.tsx:336",rule:F,dest:_,ar:n,onClose:()=>A(null),onApply:()=>D(_.countryCode)}),s.jsx("section",{"data-loc":"client/src/pages/Visa.tsx:346",className:"container pb-20",children:s.jsx("p",{"data-loc":"client/src/pages/Visa.tsx:347",className:"text-xs text-muted-foreground leading-relaxed border-t border-border pt-6",children:n?"تÙÙÙÙ: اÙÙ
عÙÙÙ
ات اÙÙ
Ø¹Ø±ÙØ¶Ø© Ø¥Ø±Ø´Ø§Ø¯ÙØ© ÙÙØ§Ø¨ÙØ© ÙÙØªØºÙÙØ± ÙÙÙ Ø£ÙØ¸Ù
Ø© Ø§ÙØ¯ÙÙ ÙØ§ÙØ³ÙØ§Ø±Ø§Øª. اÙÙØ±Ø§Ø± اÙÙÙØ§Ø¦Ù ÙØ¹Ùد ÙÙØ¬ÙØ© اÙÙ
Ø§ÙØØ© ÙÙØªØ£Ø´Ùرة. ÙØ±Ø¬Ù تأÙÙØ¯ Ø§ÙØªÙاصÙÙ Ù
ع ÙØ±ÙÙ IBRIX ÙØ¨Ù Ø§ÙØ³Ùر.":"Disclaimer: The information shown is indicative and subject to change per each country's and embassy's regulations. The final decision rests with the issuing authority. Please confirm details with the IBRIX team before traveling."})}),s.jsx(oo,{"data-loc":"client/src/pages/Visa.tsx:354"}),E&&s.jsx(zye,{"data-loc":"client/src/pages/Visa.tsx:358",open:!!E,onOpenChange:O=>!O&&D(null),destinationCode:E,destinations:l,profiles:c,defaultProfileCode:d,defaultPurpose:h})]})}function Qye({rule:e,dest:t,ar:n,onClose:a,onApply:r}){if(k.useEffect(()=>{const w=document.body.style.overflow;document.body.style.overflow="hidden";const T=A=>{A.key==="Escape"&&a()};return window.addEventListener("keydown",T),()=>{document.body.style.overflow=w,window.removeEventListener("keydown",T)}},[a]),!e)return s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:402",className:"fixed inset-0 z-50 flex items-center justify-center p-3 sm:p-6",dir:n?"rtl":"ltr",children:[s.jsx("div",{"data-loc":"client/src/pages/Visa.tsx:403",className:"absolute inset-0 bg-black/55 backdrop-blur-[2px]",onClick:a}),s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:404",className:"relative w-full max-w-md bg-card shadow-2xl rounded-2xl overflow-hidden",children:[s.jsx("button",{"data-loc":"client/src/pages/Visa.tsx:405",onClick:a,"aria-label":n?"Ø¥ØºÙØ§Ù":"Close",className:`absolute top-3 ${n?"left-3":"right-3"} p-2 rounded-lg hover:bg-muted text-muted-foreground z-10`,children:s.jsx(ks,{"data-loc":"client/src/pages/Visa.tsx:410",className:"w-5 h-5"})}),s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:412",className:"p-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:413",className:"flex items-center gap-2 text-amber-600 dark:text-amber-300 font-semibold mb-2",children:[s.jsx(gb,{"data-loc":"client/src/pages/Visa.tsx:414",className:"w-5 h-5"}),n?"ÙÙØ²Ù
Ø§ÙØªØÙÙ":"Check Required"]}),s.jsx("h2",{"data-loc":"client/src/pages/Visa.tsx:417",className:"font-display text-2xl font-bold mb-2",children:n?t.nameAr:t.nameEn}),s.jsx("p",{"data-loc":"client/src/pages/Visa.tsx:418",className:"text-sm text-muted-foreground leading-relaxed",children:n?"ÙÙ
ÙØ³Ø¬Ù٠بعد ÙØ§Ø¹Ø¯Ø© ÙÙØ°Ù اÙÙØ¬ÙØ© ÙÙÙØ¹ Ø§ÙØ¬Ùاز اÙÙ
ختار. ØªÙØ§ØµÙ Ù
Ø¹ÙØ§ ÙØ³ÙÙØ§ÙÙÙ Ø¨Ø§ÙØªÙاصÙÙ Ø®ÙØ§Ù ساعات.":`We have not yet recorded a rule for ${t.nameEn} with the selected passport. Contact us and we'll get back to you shortly.`}),s.jsx("button",{"data-loc":"client/src/pages/Visa.tsx:423",onClick:r,className:"mt-5 w-full inline-flex items-center justify-center gap-2 px-5 py-2.5 rounded-full bg-primary text-primary-foreground text-sm font-semibold active:scale-[0.97] transition-transform",children:n?"Ø§Ø·ÙØ¨ Ù
راجعة":"Request Review"})]})]})]});const i=Om[e.visaStatus in Om?e.visaStatus:"check_required"],o=Xg[e.confidenceLevel],c=Array.isArray(e.documentsRequired)?e.documentsRequired:[],l=Number(e.serviceFee)||0,d=Number(e.embassyFee)||0,m=l+d,h=e.currency||"JOD",x=e.visaStatus==="visa_free",f=!x&&m>0,b=DG(e),y=Yye(e);return s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:452",className:"fixed inset-0 z-50 flex items-start sm:items-center justify-center p-3 sm:p-6 overflow-y-auto",dir:n?"rtl":"ltr",children:[s.jsx("div",{"data-loc":"client/src/pages/Visa.tsx:453",className:"absolute inset-0 bg-black/55 backdrop-blur-[2px]",onClick:a}),s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:454",className:"relative w-full max-w-2xl my-auto rounded-2xl border border-border bg-card shadow-2xl overflow-hidden",children:[s.jsx("button",{"data-loc":"client/src/pages/Visa.tsx:455",onClick:a,"aria-label":n?"Ø¥ØºÙØ§Ù":"Close",className:`absolute top-3 ${n?"left-3":"right-3"} p-2 rounded-lg hover:bg-muted text-muted-foreground z-10`,children:s.jsx(ks,{"data-loc":"client/src/pages/Visa.tsx:460",className:"w-5 h-5"})}),s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:462",className:"p-6 border-b border-border flex flex-wrap items-center justify-between gap-4 pe-12",children:[s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:463",children:[s.jsx("div",{"data-loc":"client/src/pages/Visa.tsx:464",className:"text-xs text-muted-foreground mb-1",children:n?"ØªÙØ§ØµÙÙ Ø§ÙØ£ÙÙÙØ© Ù
Ù ÙØ¸Ø§Ù
IBRIX":"Eligibility details from IBRIX"}),s.jsx("h2",{"data-loc":"client/src/pages/Visa.tsx:467",className:"font-display text-3xl font-bold",children:n?t.nameAr:t.nameEn})]}),s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:469",className:"flex flex-col items-end gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/Visa.tsx:470",className:`inline-flex items-center px-3 py-1.5 rounded-full text-sm font-semibold ${i.badge}`,children:n?i.ar:i.en}),o&&s.jsx("span",{"data-loc":"client/src/pages/Visa.tsx:474",className:`inline-flex items-center px-2 py-0.5 rounded-full text-[11px] font-medium ${o.badge}`,children:n?o.ar:o.en})]})]}),f?s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:482",className:"grid md:grid-cols-3 gap-px bg-border",children:[s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:483",className:"bg-card p-5",children:[s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:484",className:"flex items-center gap-2 text-muted-foreground text-xs mb-1",children:[s.jsx(Pl,{"data-loc":"client/src/pages/Visa.tsx:485",className:"w-4 h-4"}),n?"Ù
دة اÙÙ
Ø¹Ø§ÙØ¬Ø©":"Processing Time"]}),s.jsx("div",{"data-loc":"client/src/pages/Visa.tsx:488",className:"font-semibold",children:e.processingTime||(n?"ØØ³Ø¨ Ø§ÙØØ§ÙØ©":"Varies")})]}),s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:490",className:"bg-card p-5",children:[s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:491",className:"flex items-center gap-2 text-muted-foreground text-xs mb-1",children:[s.jsx(th,{"data-loc":"client/src/pages/Visa.tsx:492",className:"w-4 h-4"}),n?"رسÙÙ
خدÙ
ØªÙØ§":"Our Service Fee"]}),s.jsx("div",{"data-loc":"client/src/pages/Visa.tsx:495",className:"font-semibold",children:l?`${l} ${h}`:n?"ØªÙØ§ØµÙ Ù
Ø¹ÙØ§":"Contact us"})]}),s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:499",className:"bg-card p-5",children:[s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:500",className:"flex items-center gap-2 text-muted-foreground text-xs mb-1",children:[s.jsx(Im,{"data-loc":"client/src/pages/Visa.tsx:501",className:"w-4 h-4"}),n?"رسÙÙ
Ø§ÙØ³Ùارة/Ø§ÙØªØ£Ø´Ùرة":"Embassy / Visa Fee"]}),s.jsx("div",{"data-loc":"client/src/pages/Visa.tsx:504",className:"font-semibold",children:d?`${d} ${h}`:"â"})]})]}):s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:510",className:"grid md:grid-cols-2 gap-px bg-border",children:[s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:511",className:"bg-card p-5",children:[s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:512",className:"flex items-center gap-2 text-muted-foreground text-xs mb-1",children:[s.jsx(Pl,{"data-loc":"client/src/pages/Visa.tsx:513",className:"w-4 h-4"}),n?"Ù
دة اÙÙ
Ø¹Ø§ÙØ¬Ø©":"Processing Time"]}),s.jsx("div",{"data-loc":"client/src/pages/Visa.tsx:516",className:"font-semibold",children:e.processingTime||(n?"ØØ³Ø¨ Ø§ÙØØ§ÙØ©":"Varies")})]}),s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:518",className:"bg-card p-5",children:[s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:519",className:"flex items-center gap-2 text-muted-foreground text-xs mb-1",children:[s.jsx(th,{"data-loc":"client/src/pages/Visa.tsx:520",className:"w-4 h-4"}),n?"Ø§ÙØ±Ø³ÙÙ
":"Fees"]}),s.jsx("div",{"data-loc":"client/src/pages/Visa.tsx:523",className:"font-semibold text-emerald-700 dark:text-emerald-300",children:x?n?"ÙØ§ ØªÙØ¬Ø¯ رسÙÙ
ØªØ£Ø´ÙØ±Ø© ÙÙØ°Ù اÙÙØ¬ÙØ©":"No visa fees for this destination":n?"ØªÙØ§ØµÙ Ù
Ø¹ÙØ§ ÙÙ
Ø¹Ø±ÙØ© Ø§ÙØ±Ø³ÙÙ
":"Contact us for fees"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:537",className:"px-6 py-4 border-t border-border flex flex-wrap items-center justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:538",className:"flex flex-wrap items-center gap-2",children:[e.canApplyThroughAgency?s.jsxs("span",{"data-loc":"client/src/pages/Visa.tsx:540",className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-semibold bg-emerald-50 text-emerald-700 dark:bg-emerald-950/40 dark:text-emerald-300",children:[s.jsx(yu,{"data-loc":"client/src/pages/Visa.tsx:541",className:"w-3.5 h-3.5"}),n?"ÙÙ
ÙÙ Ø§ÙØªÙدÙÙ
Ø¹Ø¨Ø±ÙØ§":"We can process this"]}):s.jsxs("span",{"data-loc":"client/src/pages/Visa.tsx:545",className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-semibold bg-amber-50 text-amber-700 dark:bg-amber-950/40 dark:text-amber-300",children:[s.jsx(gb,{"data-loc":"client/src/pages/Visa.tsx:546",className:"w-3.5 h-3.5"}),n?"ÙØªØ·Ùب Ù
راجعة خاصة":"Special review needed"]}),e.requiresResidenceInJordan&&s.jsx("span",{"data-loc":"client/src/pages/Visa.tsx:551",className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-semibold bg-blue-50 text-blue-700 dark:bg-blue-950/40 dark:text-blue-300",children:n?"ÙÙØ²Ù
Ø¥ÙØ§Ù
Ø© أردÙÙØ© Ø³Ø§Ø±ÙØ©":"Valid Jordanian residence required"})]}),f&&s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:557",className:"text-end",children:[s.jsx("div",{"data-loc":"client/src/pages/Visa.tsx:558",className:"text-[11px] text-muted-foreground",children:n?"Ø§ÙØ¥Ø¬Ù
اÙÙ Ø§ÙØªÙØ¯ÙØ±Ù":"Estimated total"}),s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:561",className:"font-display text-2xl font-bold text-primary",children:[m," ",h]})]})]}),c.length>0&&s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:569",className:"p-6 border-t border-border",children:[s.jsx("h3",{"data-loc":"client/src/pages/Visa.tsx:570",className:"font-semibold mb-1",children:n?"اÙÙ
Ø³ØªÙØ¯Ø§Øª اÙÙ
Ø·ÙÙØ¨Ø©":"Required Documents"}),s.jsx("p",{"data-loc":"client/src/pages/Visa.tsx:571",className:"mb-3 text-xs text-muted-foreground",children:n?"جÙÙØ² ÙØ°Ù اÙÙØ«Ø§Ø¦Ù ÙØ¨Ù Ø§ÙØ¶ØºØ· عÙÙ Â«ÙØ¯ÙÙ
Ø·ÙØ¨ Ø§ÙØªØ£Ø´Ùرة Ø§ÙØ¢Ù».":"Prepare these documents before selecting âApply for This Visaâ."}),s.jsx("ul",{"data-loc":"client/src/pages/Visa.tsx:574",className:"grid sm:grid-cols-2 gap-2",children:c.map((w,T)=>s.jsxs("li",{"data-loc":"client/src/pages/Visa.tsx:576",className:"flex items-start gap-2 text-sm",children:[s.jsx(ns,{"data-loc":"client/src/pages/Visa.tsx:577",className:"w-4 h-4 text-emerald-500 mt-0.5 shrink-0"}),s.jsx("span",{"data-loc":"client/src/pages/Visa.tsx:578",children:n?w.ar||w.en:w.en||w.ar})]},T))})]}),(e.notesAr||e.notesEn)&&s.jsx("div",{"data-loc":"client/src/pages/Visa.tsx:586",className:"px-6 pb-2 text-sm text-muted-foreground",children:n?e.notesAr||e.notesEn:e.notesEn||e.notesAr}),b?s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:592",className:"mx-6 mt-4 flex flex-wrap items-center justify-between gap-3 rounded-xl border border-emerald-200 bg-emerald-50/60 px-4 py-3 text-xs dar
1632k:border-emerald-900 dark:bg-emerald-950/30",children:[s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:593",className:"flex items-center gap-2 text-emerald-800 dark:text-emerald-200",children:[s.jsx(yu,{"data-loc":"client/src/pages/Visa.tsx:594",className:"h-4 w-4 shrink-0"}),s.jsxs("span",{"data-loc":"client/src/pages/Visa.tsx:595",children:[n?"Ù
صدر Ù
ÙØ«Ù: ":"Verified source: ",e.sourceName||(n?"Ù
صدر رسÙ
Ù":"Official source"),e.lastVerifiedAt?` · ${new Date(e.lastVerifiedAt).toLocaleDateString(n?"ar-JO":"en-GB")}`:""]})]}),s.jsx("a",{"data-loc":"client/src/pages/Visa.tsx:601",className:"font-semibold text-primary underline-offset-4 hover:underline",href:e.officialSourceUrl,target:"_blank",rel:"noreferrer",children:n?"ÙØªØ اÙÙ
صدر":"Open source"})]}):s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:606",className:"mx-6 mt-4 flex items-start gap-2 rounded-xl border border-amber-200 bg-amber-50/70 px-4 py-3 text-xs text-amber-900 dark:border-amber-900 dark:bg-amber-950/30 dark:text-amber-100",children:[s.jsx(gb,{"data-loc":"client/src/pages/Visa.tsx:607",className:"h-4 w-4 shrink-0"}),s.jsx("span",{"data-loc":"client/src/pages/Visa.tsx:608",children:n?"ÙØ°Ù اÙÙØ¬ÙØ© ØªØØªØ§Ø¬ Ù
راجعة Ù
Ù ÙØ±ÙÙ IBRIX ÙØ¨Ù Ø§ÙØ³ÙØ±Ø ÙØ§ ØªØ¸ÙØ± أ٠رسÙÙ
Ø£Ù Ù
دة Ø£Ù Ù
ØªØ·ÙØ¨Ø§Øª ØºÙØ± Ù
ÙØ«ÙØ©.":"This destination requires IBRIX review before travel; no unverified fee, time, or requirement is presented."})]}),x&&s.jsx("div",{"data-loc":"client/src/pages/Visa.tsx:613",className:"px-6 pt-4",children:s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:614",className:"flex items-start gap-2 rounded-xl bg-emerald-50 dark:bg-emerald-950/40 text-emerald-800 dark:text-emerald-200 px-4 py-3 text-sm",children:[s.jsx(ns,{"data-loc":"client/src/pages/Visa.tsx:615",className:"w-4 h-4 mt-0.5 shrink-0"}),s.jsx("span",{"data-loc":"client/src/pages/Visa.tsx:616",children:n?"ÙØ§ ØªØØªØ§Ø¬ ØªØ£Ø´ÙØ±Ø© ÙÙØ°Ù اÙÙØ¬ÙØ© â ÙÙ
ÙÙÙ Ø§ÙØ³Ùر Ø¨Ø¬ÙØ§Ø²Ù Ù
باشرة. ØªÙØ§ØµÙ Ù
Ø¹ÙØ§ ÙØØ¬Ø² Ø§ÙØ·ÙØ±Ø§Ù ÙØ§ÙÙÙØ§Ø¯Ù.":"No visa is required for this destination â you can travel on your passport directly. Contact us to book flights and hotels."})]})}),s.jsxs("div",{"data-loc":"client/src/pages/Visa.tsx:625",className:"p-6 flex flex-wrap gap-3",children:[y&&s.jsxs("button",{"data-loc":"client/src/pages/Visa.tsx:627",onClick:r,className:"inline-flex items-center gap-2 px-6 py-3 rounded-full bg-primary text-primary-foreground text-sm font-semibold active:scale-[0.97] transition-transform shadow-sm",children:[n?"ابدأ Ø·ÙØ¨ Ø§ÙØªØ£Ø´Ùرة":"Start visa application",s.jsx(dr,{"data-loc":"client/src/pages/Visa.tsx:632",className:`w-4 h-4 ${n?"rotate-180":""}`})]}),s.jsx(PG,{"data-loc":"client/src/pages/Visa.tsx:635",trigger:s.jsxs("button",{"data-loc":"client/src/pages/Visa.tsx:637",className:"inline-flex items-center gap-2 px-6 py-3 rounded-full border border-border text-sm font-semibold hover:border-primary/50 transition-colors",children:[s.jsx(kl,{"data-loc":"client/src/pages/Visa.tsx:638",className:"w-4 h-4"}),n?"أض٠ترجÙ
Ø© Ù
عتÙ
دة":"Add Certified Translation"]})}),s.jsx("a",{"data-loc":"client/src/pages/Visa.tsx:643",href:"https://wa.me/962787789915",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-6 py-3 rounded-full border border-border text-sm font-semibold hover:border-primary/50 transition-colors",children:!b&&!x?n?"Ø§Ø·ÙØ¨ Ù
راجعة عبر ÙØ§ØªØ³Ø§Ø¨":"Request review via WhatsApp":n?"استشر عبر ÙØ§ØªØ³Ø§Ø¨":"Ask via WhatsApp"})]})]})]})}const Ks=(e,t,n)=>e==="ar"?t:n;function Kye(){const e=Pe.useUtils(),{lang:t,setLang:n,isRTL:a}=f9(),{data:r,isLoading:i}=Pe.visa.agent.me.useQuery(void 0,{retry:!1}),o=Pe.adminAuth.logout.useMutation({onSuccess:()=>e.visa.agent.me.invalidate()});return i?s.jsx("div",{"data-loc":"client/src/pages/AgentPortal.tsx:40",className:"min-h-screen flex items-center justify-center bg-background",children:s.jsx(ft,{"data-loc":"client/src/pages/AgentPortal.tsx:41",className:"w-8 h-8 text-primary animate-spin"})}
1632):r?s.jsxs("div",{"data-loc":"client/src/pages/AgentPortal.tsx:51",dir:a?"rtl":"ltr",className:"min-h-screen bg-background",children:[s.jsx("header",{"data-loc":"client/src/pages/AgentPortal.tsx:52",className:"border-b border-border bg-card sticky top-0 z-30",children:s.jsxs("div",{"data-loc":"client/src/pages/AgentPortal.tsx:53",className:"container flex items-center justify-between h-16",children:[s.jsxs("div",{"data-loc":"client/src/pages/AgentPortal.tsx:54",className:"flex items-center gap-3",children:[s.jsx("div",{"data-loc":"client/src/pages/AgentPortal.tsx:55",className:"w-9 h-9 rounded-lg bg-primary flex items-center justify-center",children:s.jsx(WU,{"data-loc":"client/src/pages/AgentPortal.tsx:56",className:"w-5 h-5 text-primary-foreground"})}),s.jsxs("div",{"data-loc":"client/src/pages/AgentPortal.tsx:58",children:[s.jsx("p",{"data-loc":"client/src/pages/AgentPortal.tsx:59",className:"font-display font-bold text-foreground leading-tight",children:Ks(t,"Ø¨ÙØ§Ø¨Ø© اÙÙÙÙØ§Ø¡","Agent Portal")}),s.jsxs("p",{"data-loc":"client/src/pages/AgentPortal.tsx:62",className:"text-xs text-muted-foreground leading-tight",children:[r.name,r.region?` â ${r.region}
1632`:"",r.consoleRole==="admin"?Ks(t," (Ù
Ø¯ÙØ±)"," (admin)"):""]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AgentPortal.tsx:69",className:"flex items-center gap-2",children:[s.jsxs("button",{"data-loc":"client/src/pages/AgentPortal.tsx:70",type:"button",onClick:()=>n(t==="ar"?"en":"ar"),className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full border border-border text-sm text-foreground hover:bg-muted transition-colors",children:[s.jsx(B2,{"data-loc":"client/src/pages/AgentPortal.tsx:75",className:"w-4 h-4 text-primary"}),t==="ar"?"English":"عربÙ"]}),s.jsxs("button",{"data-loc":"client/src/pages/AgentPortal.tsx:78",onClick:()=>o.mutate(),disabled:o.isPending,className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full border border-border text-sm hover:bg-muted transition-colors",children:[s.jsx(F4,{"data-loc":"client/src/pages/AgentPortal.tsx:83",className:"w-4 h-4"}),Ks(t,"Ø®Ø±ÙØ¬","Sign Out")]})]})]})}),s.jsx("div",{"data-loc":"client/src/pages/AgentPortal.tsx:90",className:"container py-8",children:s.jsx(Zye,{"data-loc":"client/src/pages/AgentPortal.tsx:91",lang:t})})]}):s.jsx(mq,{"data-loc":"client/src/pages/AgentPortal.tsx:47",onSuccess:()=>e.visa.agent.me.invalidate()})}function Zye({lang:e}){const t=e==="ar",[n,a]=k.useState("all"),[r,i]=k.useState(null),{data:o,isLoading:c}=Pe.visa.agent.myApplications.useQuery(n==="all"?void 0:{status:n});return s.jsxs("div",{"data-loc":"client/src/pages/AgentPortal.tsx:107",children:[s.jsx("h1",{"data-loc":"client/src/pages/AgentPortal.tsx:108",className:"font-display text-2xl font-bold mb-1",children:Ks(e,"Ø§ÙØ·Ùبات اÙÙ
ÙØ³Ùدة Ø¥ÙÙÙ","My Assigned Applications")}),s.jsx("p",{"data-loc":"client/src/pages/AgentPortal.tsx:111",className:"text-sm text-muted-foreground mb-5",children:Ks(e,"Ø£ÙÙ
Ù Ø§ÙØ·Ùبات ÙØ§Ø±Ùع Ø§ÙØªØ£Ø´Ùرة Ø§ÙØµØ§Ø¯Ø±Ø©.","Complete applications and upload the issued visa.")}),s.jsxs("div",{"data-loc":"client/src/pages/AgentPortal.tsx:115",className:"flex flex-wrap gap-2 mb-5",children:[s.jsx(AM,{"data-loc":"client/src/pages/AgentPortal.tsx:116",active:n==="all",onClick:()=>a("all"),children:Ks(e,"اÙÙÙ","All")}),s6.map(l=>s.jsx(AM,{"data-loc":"client/src/pages/AgentPortal.tsx:120",active:n===l,onClick:()=>a(l),children:t?yo[l].ar:yo[l].en},l))]}),c?s.jsx("div",{"data-loc":"client/src/pages/AgentPortal.tsx:127",className:"flex justify-center py-16",children:s.jsx(ft,{"data-loc":"client/src/pages/AgentPortal.tsx:128",className:"w-7 h-7 animate-spin text-primary"})}):(o?.length??0)===0?s.jsx("div",{"data-loc":"client/src/pages/AgentPortal.tsx:131",className:"text-center py-16 text-muted-foreground",children:Ks(e,"ÙØ§ ØªÙØ¬Ø¯ Ø·ÙØ¨Ø§Øª Ù
ÙØ³Ùدة Ø¥ÙÙÙ ØØ§ÙÙØ§Ù.","No applications assigned to you yet.")}):s.jsx("div",{"data-loc":"client/src/pages/AgentPortal.tsx:135",className:"grid gap-3 md:grid-cols-2 lg:grid-cols-3",children:o.map(l=>s.jsxs("button",{"data-loc":"client/src/pages/AgentPortal.tsx:137",onClick:()=>i(l.id),className:"text-start rounded-xl border border-border bg-card p-4 hover:border-primary/50 transition-colors",children:[s.jsxs("div",{"data-loc":"client/src/pages/AgentPortal.tsx:142",className:"flex items-center justify-between mb-2",children:[s.jsx("span",{"data-loc":"client/src/pages/AgentPortal.tsx:143",className:"font-mono text-xs text-muted-foreground",children:l.reference}),s.jsx("span",{"data-loc":"client/src/pages/AgentPortal.tsx:144",className:`inline-flex px-2 py-0.5 rounded-full text-xs font-semibold ${yo[l.status]?.badge??""}`,children:t?yo[l.status]?.ar:yo[l.status]?.en})]}),s.jsx("div",{"data-loc":"client/src/pages/AgentPortal.tsx:148",className:"font-semibold",children:l.fullName}),s.jsx("div",{"data-loc":"client/src/pages/AgentPortal.tsx:149",className:"text-sm text-muted-foreground",children:l.destinationCode})]},l.id))}),r!==null&&s.jsx(e5e,{"data-loc":"client/src/pages/AgentPortal.tsx:155",id:r,lang:e,onClose:()=>i(null)})]})}function e5e({id:e,lang:t,onClose:n}){const a=t==="ar",r=Pe.useUtils(),{data:i,isLoading:o}=Pe.visa.agent.getApplication.useQuery({id:e}),c=Pe.visa.agent.updateApplication.useMutation({onSuccess:()=>{r.visa.agent.getApplication.invalidate({id:e}),r.visa.agent.myApplications.invalidate(),Le.success(Ks(t,"تÙ
Ø§ÙØªØØ¯ÙØ«","Updated"))}}),l=Pe.visa.agent.uploadIssuedVisa.useMutation({onSuccess:()=>{r.visa.agent.getApplication.invalidate({id:e}),r.visa.agent.myApplications.invalidate(),Le.success(Ks(t,"تÙ
Ø±ÙØ¹ Ø§ÙØªØ£Ø´Ùرة Ø§ÙØµØ§Ø¯Ø±Ø©","Issued visa uploaded"))},onError:x=>Le.error(x.message||Ks(t,"ØªØ¹Ø°ÙØ± Ø§ÙØ±Ùع","Upload failed"))}),[d,m]=k.useState(!1);async function h(x){const f=x.target.files?.[0];if(f){if(f.size>15*1024*1024){Le.error(Ks(t,"Ø§ÙØØ¬Ù
Ø§ÙØ£Ùص٠15 Ù
ÙØ¬Ø§Ø¨Ø§Ùت","Max size is 15MB"));return}m(!0);try{const b=await new Promise((y,w)=>{const T=new FileReader;T.onload=()=>
1632y(T.result),T.onerror=w,T.readAsDataURL(f)});await l.mutateAsync({id:e,dataBase64:b,fileName:f.name,mimeType:f.type||"application/octet-stream"})}finally{m(!1)}}}return s.jsxs("div",{"data-loc":"client/src/pages/AgentPortal.tsx:206",className:"fixed inset-0 z-50 flex",dir:a?"rtl":"ltr",children:[s.jsx("div",{"data-loc":"client/src/pages/AgentPortal.tsx:207",className:"absolute inset-0 bg-black/40",onClick:n}),s.jsxs("div",{"data-loc":"client/src/pages/AgentPortal.tsx:208",className:"relative ml-auto h-full w-full max-w-md bg-card shadow-xl overflow-y-auto",children:[s.jsxs("div",{"data-loc":"client/src/pages/AgentPortal.tsx:209",className:"sticky top-0 bg-card border-b border-border p-4 flex items-center justify-between",children:[s.jsx("h3",{"data-loc":"client/src/pages/AgentPortal.tsx:210",className:"font-display text-xl font-bold",children:Ks(t,"ØªÙØ§ØµÙÙ Ø§ÙØ·Ùب","Application Details")}),s.jsx("button",{"data-loc":"client/src/pages/AgentPortal.tsx:211",onClick:n,className:"p-1.5 rounded-lg hover:bg-muted",children:s.jsx(ks,{"data-loc":"client/src/pages/AgentPortal.tsx:212",className:"w-5 h-5"})})]}),o||!i?s.jsx("div",{"data-loc":"client/src/pages/AgentPortal.tsx:217",className:"flex justify-center py-16",children:s.jsx(ft,{"data-loc":"client/src/pages/AgentPortal.tsx:218",className:"w-6 h-6 animate-spin text-primary"})}):s.jsxs("div",{"data-loc":"client/src/pages/AgentPortal.tsx:221",className:"p-4 space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/AgentPortal.tsx:222",className:"rounded-lg bg-muted/50 p-3 space-y-1.5 text-sm",children:[s.jsx(c0,{"data-loc":"client/src/pages/AgentPortal.tsx:223",k:Ks(t,"Ø§ÙØ±ÙÙ
اÙÙ
رجعÙ","Reference"),v:i.reference,mono:!0}),s.jsx(c0,{"data-loc":"client/src/pages/AgentPortal.tsx:224",k:Ks(t,"Ø§ÙØ§Ø³Ù
","Name"),v:i.fullName}),s.jsx(c0,{"data-loc":"client/src/pages/AgentPortal.tsx:225",k:Ks(t,"اÙÙØ§ØªÙ","Phone"),v:i.phone}),s.jsx(c0,{"data-loc":"client/src/pages/AgentPortal.tsx:226",k:Ks(t,"Ø§ÙØ¨Ø±Ùد","Email"),v:i.email||"â"}),s.jsx(c0,{"data-loc":"client/src/pages/AgentPortal.tsx:227",k:Ks(t,"اÙÙØ¬ÙØ©","Destination"),v:i.destinationCode}),s.jsx(c0,{"data-loc":"client/src/pages/AgentPortal.tsx:228",k:Ks(t,"رÙÙ
Ø§ÙØ¬Ùاز","Passport No."),v:i.passportNumber||"â"}),s.jsx(c0,{"data-loc":"client/src/pages/AgentPortal.tsx:229",k:Ks(t,"ØªØ§Ø±ÙØ® Ø§ÙØ³Ùر","Travel Date"),v:i.travelDate||"â"})]}),i.documents&&i.documents.filter(x=>x.kind!=="issued_visa").length>0&&s.jsxs("div",{"data-loc":"client/src/pages/AgentPortal.tsx:234",children:[s.jsx("div",{"data-loc":"client/src/pages/AgentPortal.tsx:235",className:"font-semibold text-sm mb-2",children:Ks(t,"Ù
Ø³ØªÙØ¯Ø§Øª Ø§ÙØ¹Ù
ÙÙ","Customer documents")}),s.jsx("ul",{"data-loc":"client/src/pages/AgentPortal.tsx:236",className:"space-y-1.5",children:i.documents.filter(x=>x.kind!=="issued_visa").map(x=>s.jsxs("li",{"data-loc":"client/src/pages/AgentPortal.tsx:238",className:"flex items-center gap-2 text-sm",children:[s.jsx(ji,{"data-loc":"client/src/pages/AgentPortal.tsx:239",className:"w-4 h-4 text-muted-foreground"}),s.jsx("span",{"data-loc":"client/src/pages/AgentPortal.tsx:240",className:"flex-1 truncate",children:x.fileName}),s.jsxs("a",{"data-loc":"client/src/pages/AgentPortal.tsx:241",href:x.url,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline inline-flex items-center gap-1",children:[s.jsx(Sd,{"data-loc":"client/src/pages/AgentPortal.tsx:242",className:"w-3.5 h-3.5"}),Ks(t,"ÙØªØ","Open")]})]},x.id))})]}),s.jsxs("div",{"data-loc":"client/src/pages/AgentPortal.tsx:252",children:[s.jsx("label",{"data-loc":"client/src/pages/AgentPortal.tsx:253",className:"block text-sm font-semibold mb-1",children:Ks(t,"ØªØØ¯ÙØ« Ø§ÙØØ§ÙØ©","Update status")}),s.jsx("select",{"data-loc":"client/src/pages/AgentPortal.tsx:254",className:"w-full h-10 rounded-lg border border-border bg-background px-3 text-sm",value:i.status,onChange:x=>c.mutate({id:e,status:x.target.value}),children:s6.map(x=>s.jsx("option",{"data-loc":"client/src/pages/AgentPortal.tsx:260",value:x,children:a?yo[x].ar:yo[x].en},x))})]}
1632),s.jsxs("div",{"data-loc":"client/src/pages/AgentPortal.tsx:268",className:"rounded-lg border border-border p-3",children:[s.jsx("div",{"data-loc":"client/src/pages/AgentPortal.tsx:269",className:"font-semibold text-sm mb-2",children:Ks(t,"Ø§ÙØªØ£Ø´Ùرة Ø§ÙØµØ§Ø¯Ø±Ø©","Issued visa")}),i.status==="issued"&&i.issuedVisaUrl?s.jsxs("a",{"data-loc":"client/src/pages/AgentPortal.tsx:271",href:i.issuedVisaUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 w-full px-4 py-2.5 rounded-full bg-emerald-600 text-white text-sm font-semibold",children:[s.jsx(ns,{"data-loc":"client/src/pages/AgentPortal.tsx:277",className:"w-4 h-4"}),Ks(t,"تÙ
Ø§ÙØ¥ØµØ¯Ø§Ø± â ØªØÙ
ÙÙ","Issued â Download")]}):s.jsxs("label",{"data-loc":"client/src/pages/AgentPortal.tsx:281",className:"flex items-center justify-center gap-2 w-full px-4 py-2.5 rounded-full bg-primary text-primary-foreground text-sm font-semibold cursor-pointer active:scale-[0.98] transition-transform",children:[d||l.isPending?s.jsx(ft,{"data-loc":"client/src/pages/AgentPortal.tsx:283",className:"w-4 h-4 animate-spin"}):s.jsx(dh,{"data-loc":"client/src/pages/AgentPortal.tsx:285",className:"w-4 h-4"}),Ks(t,"Ø±ÙØ¹ Ø§ÙØªØ£Ø´Ùرة Ø§ÙØµØ§Ø¯Ø±Ø© (PDF/ØµÙØ±Ø©)","Upload issued visa (PDF/image)"),s.jsx("input",{"data-loc":"client/src/pages/AgentPortal.tsx:288",type:"file",accept:"application/pdf,image/*",className:"hidden",onChange:h,disabled:d||l.isPending})]})]})]})]})]})}function c0({k:e,v:t,mono:n}){return s.jsxs("div",{"data-loc":"client/src/pages/AgentPortal.tsx:301",className:"flex items-center justify-between gap-3",children:[s.jsx("span",{"data-loc":"client/src/pages/AgentPortal.tsx:302",className:"text-muted-foreground",children:e}),s.jsx("span",{"data-loc":"client/src/pages/AgentPortal.tsx:303",className:`font-medium truncate ${n?"font-mono text-xs":""}`,children:t})]})}function AM({active:e,onClick:t,children:n}){return s.jsx("button",{"data-loc":"client/src/pages/AgentPortal.tsx:309",onClick:t,className:`px-3 py-1.5 rounded-full text-xs font-medium border transition-colors ${e?"bg-foreground text-background border-foreground":"border-border hover:border-primary/50"}`,children:n})}function t5e(){return typeof window>"u"?"ar":window.localStorage.getItem(Xc.systemLanguage)==="en"?"en":"ar"}function n5e(){const[e,t]=k.useState(t5e),n=Pe.useUtils(),a=Pe.adminAuth.me.useQuery(void 0,{retry:!1}),r=Pe.adminAuth.logout.useMutation({onSuccess:async()=>{await n.adminAuth.me.invalidate()}}),i=l=>{t(l),window.localStorage.setItem(Xc.systemLanguage,l)};if(a.isLoading)return s.jsx("main",{"data-loc":"client/src/pages/AccountingPortal.tsx:60",dir:e==="ar"?"rtl":"ltr",className:"flex min-h-screen items-center justify-center bg-[#071018] text-white",children:s.jsxs("div",{"data-loc":"client/src/pages/AccountingPortal.tsx:61",className:"orbit-enter flex flex-col items-center gap-5",children:[s.jsx(w9,{"data-loc":"client/src/pages/AccountingPortal.tsx:62"}),s.jsxs("div",{"data-loc":"client/src/pages/AccountingPortal.tsx:63",className:"text-center",children:[s.jsx("p",{"data-loc":"client/src/pages/AccountingPortal.tsx:64",className:"text-sm font-semibold tracking-[0.24em] text-cyan-300",children:"IBRIX"}),s.jsx("p",{"data-loc":"client/src/pages/AccountingPortal.tsx:65",className:"mt-2 text-lg text-slate-300",children:Jc.name})]})]})});if(!a.data)return s.jsx(uye,{"data-loc":"client/src/pages/AccountingPortal.tsx:74",lang:e,onLanguageChange:i,onSuccess:()=>n.adminAuth.me.invalidate()});const o=a.data.consoleRole??"admin",c=g7(typeof window>"u"?"":window.location.search,o);if(o!=="admin"&&o!=="accountant"&&o!=="booking_agent"){const l=e==="ar";return s.jsx("main",{"data-loc":"client/src/pages/AccountingPortal.tsx:87",dir:l?"rtl":"ltr",className:"flex min-h-screen items-center justify-center bg-[#071018] px-5 text-white",children:s.jsxs("div",{"data-loc":"client/src/pages/AccountingPortal.tsx:88",className:"orbit-enter w-full max-w-lg rounded-[28px] border border-white/10 bg-white/[0.045] p-8 text-center shadow-2xl backdrop-blur-xl",children:[s.jsx("div",{"data-loc":"client/src/pages/AccountingPortal.t
1632sx:89",className:"mx-auto flex h-16 w-16 items-center justify-center rounded-2xl border border-amber-300/20 bg-amber-300/10 text-amber-300",children:s.jsx(gb,{"data-loc":"client/src/pages/AccountingPortal.tsx:90",className:"h-8 w-8"})}),s.jsx("h1",{"data-loc":"client/src/pages/AccountingPortal.tsx:92",className:"mt-6 text-2xl font-semibold",children:l?"ÙØ°Ø§ Ø§ÙØØ³Ø§Ø¨ ØºÙØ± Ù
Ø®ÙÙÙ ÙÙÙ
ØØ§Ø³Ø¨Ø©":"This account is not authorized for accounting"}),s.jsx("p",{"data-loc":"client/src/pages/AccountingPortal.tsx:93",className:"mt-3 leading-7 text-slate-400",children:l?"Ø§Ø·ÙØ¨ Ù
Ù Ù
Ø¯ÙØ± اÙÙØ¸Ø§Ù
Ø¥Ø³ÙØ§Ø¯ Ø¯ÙØ± Ù
ØØ§Ø³Ø¨ Ø£Ù Ù
ÙØ¸Ù ØØ¬Ùزات Ø¥ÙÙ ØØ³Ø§Ø¨Ù.":"Ask your system administrator to assign an accountant or booking role to your account."}),s.jsxs(Ie,{"data-loc":"client/src/pages/AccountingPortal.tsx:96",onClick:()=>r.mutate(),disabled:r.isPending,className:"mt-7 rounded-xl bg-cyan-300 text-[#071018] hover:bg-cyan-200",children:[s.jsx(F4,{"data-loc":"client/src/pages/AccountingPortal.tsx:97",className:`h-4 w-4 ${l?"rotate-180":""}`}),s.jsx("span",{"data-loc":"client/src/pages/AccountingPortal.tsx:98",className:"mx-2",children:l?"تسجÙÙ Ø§ÙØ®Ø±Ùج":"Sign out"})]}),s.jsxs("p",{"data-loc":"client/src/pages/AccountingPortal.tsx:100",className:"mt-8 text-xs text-slate-600",dir:"ltr",children:["Designed by ",s.jsx("a",{"data-loc":"client/src/pages/AccountingPortal.tsx:100",href:Jc.url,className:"text-cyan-300/80",children:"IBRIX"})]})]})})}return s.jsx(SG,{"data-loc":"client/src/pages/AccountingPortal.tsx:107",lang:e,admin:a.data,standalone:!0,onLanguageChange:i,onLogout:()=>r.mutate(),logoutPending:r.isPending,initialModuleId:c.moduleId??void 0,initialPackageId:c.packageId})}const EM="/accounting?module=staffPackages";function CM(){return k.useEffect(()=>{window.location.replace(EM)},[]),s.jsx("main",{"data-loc":"client/src/pages/StaffPackages.tsx:13",className:"flex min-h-screen items-center justify-center bg-[#071018] px-6 text-center text-slate-100",children:s.jsxs("section",{"data-loc":"client/src/pages/StaffPackages.tsx:14",className:"max-w-md rounded-3xl border border-white/[0.08] bg-white/[0.035] p-8 shadow-2xl",children:[s.jsx(ft,{"data-loc":"client/src/pages/StaffPackages.tsx:15",className:"mx-auto h-8 w-8 animate-spin text-cyan-300"}),s.jsxs("p",{"data-loc":"client/src/pages/StaffPackages.tsx:16",className:"mt-5 font-semibold",children:["Opening IBRIX Programs in ",Jc.name]}),s.jsx("a",{"data-loc":"client/src/pages/StaffPackages.tsx:17",href:EM,className:"mt-3 inline-flex text-sm text-cyan-300 underline-offset-4 hover:underline",children:"Continue to IBRIX"})]})})}function a5e(...e){return e.some(t=>/(?:أردÙÙØ§|اردÙÙØ§)\s*(?:جÙÙÙØ©|Ø¬ÙØ©)|urdunna\s*jannah|jordan\s*jannah/i.test(t||""))}function s5e(){if(typeof window>"u")return"";const e=new URLSearchParams(window.location.search);return(e.get("package")||e.get("packageId")||e.get("slug")||"").trim()}function r5e(){const{lang:e,isRTL:t}=zs(),n=e==="ar",a=(S,R)=>(n?S:R)||R||S||"",r=t?dr:_l,i=k.useMemo(s5e,[]),{data:o=[],isLoading:c,isError:l,refetch:d,isFetching:m}=Pe.packages.list.useQuery({}),[h,x]=k.useState(i),[f,b]=k.useState(!1),y=k.useRef(!1),w=k.useMemo(()=>{if(h)return o.find(S=>String(S.id)===h||S.slug===h)},[o,h]);k.useEffect(()=>{!w||y.current||(y.current=!0,b(!0))},[w]);const T=S=>{x(S),y.current=!0;const R=new URL(window.location.href);R.searchParams.set("package",S),R.searchParams.delete("packageId"),R.searchParams.delete("slug"),window.history.replaceState({},"",`${R.pathname}${R.search}${R.hash}`),b(!0)},A=S=>{const R=S;if(R.pricingMode==="package"){const L=R.packagePricing?.rows,I=R.packagePricing?.cities;return Array.isArray(L)&&Array.isArray(I)?i$(L,I.length,e):[]}return Array.isArray(S.hotels)?S.hotels.map(L=>a(L.nameAr,L.nameEn)).filter(Boolean):[]},E=(S,R)=>{const L=Number(S);return!Number.isFinite(L)||L<=0?n?"Ø§ÙØ³Ø¹Ø± Ø¹ÙØ¯ Ø§ÙØ·Ùب":"Price on request":`${L.toLocaleString(n?"ar-JO":"en-JO",{maximumFractionDigits:2})} ${R||"JOD"}`},D=w;return s.jsxs("div",{"data-loc":"client/src/pages/BookingPortal.t
1632sx:113",className:"enchanted-page min-h-screen text-foreground",children:[s.jsx(io,{"data-loc":"client/src/pages/BookingPortal.tsx:114"}),s.jsxs("main",{"data-loc":"client/src/pages/BookingPortal.tsx:116",className:"pt-24 sm:pt-28",dir:t?"rtl":"ltr",children:[s.jsxs("section",{"data-loc":"client/src/pages/BookingPortal.tsx:117",className:"enchanted-inner-hero px-4 pb-20 pt-14 text-white sm:px-6 lg:px-8 lg:pb-24 lg:pt-20",children:[s.jsx("div",{"data-loc":"client/src/pages/BookingPortal.tsx:118",className:"absolute inset-0 opacity-70 [background-image:radial-gradient(circle_at_15%_20%,rgba(244,210,201,0.3),transparent_28%),radial-gradient(circle_at_85%_0%,rgba(202,199,243,0.22),transparent_31%)]"}),s.jsx("span",{"data-loc":"client/src/pages/BookingPortal.tsx:119",className:"enchanted-bloom -right-20 top-8 opacity-25","aria-hidden":"true"}),s.jsx("span",{"data-loc":"client/src/pages/BookingPortal.tsx:120",className:"enchanted-inner-orbit -left-28 bottom-[-14rem]","aria-hidden":"true"}),s.jsx("span",{"data-loc":"client/src/pages/BookingPortal.tsx:121",className:"enchanted-route-glimmer right-[16%] top-24 hidden lg:block","aria-hidden":"true"}),s.jsxs("div",{"data-loc":"client/src/pages/BookingPortal.tsx:122",className:"relative mx-auto grid max-w-7xl gap-10 lg:grid-cols-[1.18fr_0.82fr] lg:items-end",children:[s.jsxs("div",{"data-loc":"client/src/pages/BookingPortal.tsx:123",children:[s.jsxs(ls,{"data-loc":"client/src/pages/BookingPortal.tsx:124",href:"/destinations",className:"mb-8 inline-flex items-center gap-2 text-sm font-semibold text-white/70 transition-colors hover:text-[#f5d5dd]",children:[s.jsx(r,{"data-loc":"client/src/pages/BookingPortal.tsx:128",className:"h-4 w-4","aria-hidden":"true"}),n?"Ø§ÙØ¹Ùدة Ø¥ÙÙ Ø§ÙØ¨Ø±Ø§Ù
ج":"Back to programs"]}),s.jsxs("div",{"data-loc":"client/src/pages/BookingPortal.tsx:131",className:"mb-5 inline-flex items-center gap-2 rounded-full border border-[#f2cad5]/45 bg-[#f2cad5]/10 px-4 py-2 text-xs font-bold uppercase tracking-[0.18em] text-[#f5d5dd]",children:[s.jsx(pr,{"data-loc":"client/src/pages/BookingPortal.tsx:132",className:"h-4 w-4","aria-hidden":"true"}),n?"Ø¨ÙØ§Ø¨Ø© Ø§ÙØØ¬Ø² Ø§ÙØ¢Ù
Ù":"Secure booking portal"]}),s.jsx("h1",{"data-loc":"client/src/pages/BookingPortal.tsx:135",className:"enchanted-title max-w-4xl text-4xl font-semibold leading-[1.04] text-white sm:text-5xl lg:text-7xl",children:n?"Ø±ØªÙØ¨ رØÙØªÙ Ø¨Ø«ÙØ©Ø Ø®Ø·ÙØ© Ø¨Ø®Ø·ÙØ©.":"Plan your journey with confidence, step by step."}),s.jsx("p",{"data-loc":"client/src/pages/BookingPortal.tsx:138",className:"mt-6 max-w-2xl text-base leading-8 text-white/65 sm:text-lg",children:n?"اختر Ø§ÙØ¨Ø±ÙاÙ
Ø¬Ø ØØ¯Ùد Ø§ÙØªÙØ§Ø±ÙØ® ÙØ§ÙØ¥ÙØ§Ù
Ø© ÙØ§ÙÙ
Ø³Ø§ÙØ±ÙÙØ Ø«Ù
Ø£Ø±Ø³Ù Ø·ÙØ¨Ù Ø§ÙØ¢Ù
Ù. Ø³ÙØ±Ø§Ø¬Ø¹ ÙØ±ÙÙ IBRIX Ø§ÙØªÙاصÙÙ ÙÙØªÙاص٠Ù
Ø¹Ù ÙØªØ£ÙÙØ¯ Ø§ÙØªÙØ§ÙØ± ÙØ§Ùسعر اÙÙÙØ§Ø¦Ù.":"Choose a program, confirm dates, stay and travellers, then send your secure request. IBRIX will review the details and contact you to confirm availability and the final price."})]}),s.jsx("div",{"data-loc":"client/src/pages/BookingPortal.tsx:145",className:"grid gap-3 sm:grid-cols-3 lg:grid-cols-1",children:[{icon:Yb,ar:"ØªÙØ§Ø±ÙØ® Ù
Ø±ÙØ©",en:"Flexible dates"},{icon:Dl,ar:"ØªÙØ§ØµÙÙ Ù٠اÙÙ
Ø³Ø§ÙØ±ÙÙ",en:"Traveller details"},{icon:sa,ar:"Ø·ÙØ¨ Ù
ÙØ«ÙÙ ÙØ¢Ù
Ù",en:"Secure documented request"}].map(({icon:S,ar:R,en:L},I)=>s.jsxs("div",{"data-loc":"client/src/pages/BookingPortal.tsx:151",className:"enchanted-float-ticket flex items-center gap-4 p-4",children:[s.jsx("span",{"data-loc":"client/src/pages/BookingPortal.tsx:152",className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-[#f2cad5]/15 text-[#f5d5dd]",children:s.jsx(S,{"data-loc":"client/src/pages/BookingPortal.tsx:153",className:"h-5 w-5","aria-hidden":"true"})}),s.jsxs("span",{"data-loc":"client/src/pages/BookingPortal.tsx:155",children:[s.jsxs("span",{"data-loc":"client/src/pages/BookingPortal.tsx:156",className:"block text-[10px] font-bold uppercase tracking-[0.16em] text-white/40",children:["0",I+1]}
1632),s.jsx("strong",{"data-loc":"client/src/pages/BookingPortal.tsx:157",className:"mt-1 block text-sm",children:n?R:L})]})]},L))})]})]}),s.jsxs("section",{"data-loc":"client/src/pages/BookingPortal.tsx:165",className:"enchanted-booking-ledger relative overflow-hidden px-4 py-14 sm:px-6 lg:px-8 lg:py-20",children:[s.jsx("span",{"data-loc":"client/src/pages/BookingPortal.tsx:166",className:"enchanted-bloom -left-32 top-16 scale-75 opacity-30","aria-hidden":"true"}),s.jsxs("div",{"data-loc":"client/src/pages/BookingPortal.tsx:167",className:"mx-auto max-w-7xl",children:[s.jsxs("div",{"data-loc":"client/src/pages/BookingPortal.tsx:168",className:"mb-8 flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/pages/BookingPortal.tsx:169",children:[s.jsx("p",{"data-loc":"client/src/pages/BookingPortal.tsx:170",className:"enchanted-kicker",children:n?"ابدأ Ù
Ù ÙÙØ§":"Start here"}),s.jsx("h2",{"data-loc":"client/src/pages/BookingPortal.tsx:173",className:"enchanted-title mt-2 text-3xl font-semibold text-foreground sm:text-4xl",children:w?n?"Ø¨Ø±ÙØ§Ù
Ø¬Ù Ø¬Ø§ÙØ² ÙÙÙ
تابعة":"Your program is ready":n?"اختر Ø¨Ø±ÙØ§Ù
ج Ø§ÙØ³Ùر":"Choose your travel program"}),s.jsx("p",{"data-loc":"client/src/pages/BookingPortal.tsx:178",className:"mt-2 max-w-2xl text-sm leading-7 text-[#101826]/60",children:w?n?"راجع اÙÙ
ÙØ®Øµ Ø«Ù
تابع Ø¥ÙÙ ÙÙ
ÙØ°Ø¬ Ø§ÙØØ¬Ø² Ù
تعدد Ø§ÙØ®Ø·Ùات.":"Review the summary, then continue to the guided booking form.":n?"ØªØ¸ÙØ± ÙÙØ§ Ø§ÙØ¨Ø±Ø§Ù
ج اÙÙ
ÙØ´Ùرة ÙØ§ÙÙ
ØªØ§ØØ© ØØ§ÙÙØ§Ù ÙÙØ·.":"Only currently published and available programs are shown here."})]}),!c&&o.length>0&&s.jsxs("label",{"data-loc":"client/src/pages/BookingPortal.tsx:186",className:"relative min-w-64",children:[s.jsx("span",{"data-loc":"client/src/pages/BookingPortal.tsx:187",className:"sr-only",children:n?"اختر Ø§ÙØ¨Ø±ÙاÙ
ج":"Choose a program"}),s.jsxs("select",{"data-loc":"client/src/pages/BookingPortal.tsx:188",value:w?String(w.id):"",onChange:S=>S.target.value&&T(S.target.value),className:"enchanted-search-paper w-full appearance-none rounded-[1.2rem] px-4 py-3 pe-11 text-sm font-semibold outline-none transition focus:border-[#ae667c] focus:ring-2 focus:ring-[#ae667c]/20",children:[s.jsx("option",{"data-loc":"client/src/pages/BookingPortal.tsx:193",value:"",children:n?"اختر Ø¨Ø±ÙØ§Ù
جاÙ":"Select a program"}),o.map(S=>s.jsx("option",{"data-loc":"client/src/pages/BookingPortal.tsx:195",value:String(S.id),children:a(S.titleAr,S.titleEn)},S.id))]}),s.jsx(Y0,{"data-loc":"client/src/pages/BookingPortal.tsx:200",className:"pointer-events-none absolute end-4 top-1/2 h-4 w-4 -translate-y-1/2 text-[#101826]/50","aria-hidden":"true"})]})]}),c?s.jsx("div",{"data-loc":"client/src/pages/BookingPortal.tsx:206",className:"flex min-h-72 items-center justify-center rounded-3xl border border-[#101826]/10 bg-white",children:s.jsx(ft,{"data-loc":"client/src/pages/BookingPortal.tsx:207",className:"h-8 w-8 animate-spin text-[#9a7209]","aria-label":n?"جار٠تØÙ
ÙÙ Ø§ÙØ¨Ø±Ø§Ù
ج":"Loading programs"})}):l?s.jsxs("div",{"data-loc":"client/src/pages/BookingPortal.tsx:210",className:"rounded-3xl border border-red-200 bg-white p-10 text-center shadow-sm",children:[s.jsx("h3",{"data-loc":"client/src/pages/BookingPortal.tsx:211",className:"font-display text-2xl font-bold",children:n?"ØªØ¹Ø°ÙØ± تØÙ
ÙÙ Ø§ÙØ¨Ø±Ø§Ù
ج":"Programs could not be loaded"}),s.jsx("p",{"data-loc":"client/src/pages/BookingPortal.tsx:212",className:"mt-2 text-sm text-[#101826]/60",children:n?"تØÙÙ Ù
Ù Ø§ÙØ§ØªØµØ§Ù ÙØØ§ÙÙ Ù
رة أخرÙ.":"Check your connection and try again."}),s.jsxs("button",{"data-loc":"client/src/pages/BookingPortal.tsx:213",type:"button",onClick:()=>d(),disabled:m,className:"mt-6 inline-flex items-center gap-2 rounded-full bg-[#101826] px-6 py-3 text-sm font-bold text-white disabled:opacity-60",children:[m&&s.jsx(ft,{"data-loc":"client/src/pages/BookingPortal.tsx:219",className:"h-4 w-4 animate-spin"}),n?"إعادة اÙÙ
ØØ§ÙÙØ©":"Try again"]})]}):w?s.jsx("article",{"data-loc":"client/src/pages/BookingPortal.t
1632sx:224",className:"enchanted-card enchanted-catalog-card overflow-hidden",children:s.jsxs("div",{"data-loc":"client/src/pages/BookingPortal.tsx:225",className:"grid lg:grid-cols-[0.92fr_1.08fr]",children:[s.jsxs("div",{"data-loc":"client/src/pages/BookingPortal.tsx:226",className:"enchanted-frame relative min-h-72 overflow-hidden bg-[#4a3b53] lg:min-h-[430px]",children:[w.imageUrl?s.jsx("img",{"data-loc":"client/src/pages/BookingPortal.tsx:228",src:w.imageUrl,alt:"",className:"absolute inset-0 h-full w-full object-cover"}):null,s.jsx("div",{"data-loc":"client/src/pages/BookingPortal.tsx:230",className:"enchanted-photo-wash absolute inset-0"}),s.jsxs("div",{"data-loc":"client/src/pages/BookingPortal.tsx:231",className:"absolute inset-x-0 bottom-0 p-7 text-white sm:p-9",children:[s.jsx("p",{"data-loc":"client/src/pages/BookingPortal.tsx:232",className:"text-xs font-bold uppercase tracking-[0.18em] text-[#f5d5dd]",children:n?"Ø§ÙØ¨Ø±ÙاÙ
ج اÙÙ
ختار":"Selected program"}),s.jsx("h3",{"data-loc":"client/src/pages/BookingPortal.tsx:233",className:"enchanted-title mt-3 text-3xl font-semibold leading-tight text-white sm:text-4xl",children:a(w.titleAr,w.titleEn)})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/BookingPortal.tsx:237",className:"flex flex-col justify-between p-7 sm:p-10",children:[s.jsxs("div",{"data-loc":"client/src/pages/BookingPortal.tsx:238",children:[s.jsxs("div",{"data-loc":"client/src/pages/BookingPortal.tsx:239",className:"flex flex-wrap gap-2",children:[a(w.cityAr,w.cityEn)&&s.jsxs("span",{"data-loc":"client/src/pages/BookingPortal.tsx:241",className:"inline-flex items-center gap-2 rounded-full bg-[#f3dde1]/55 px-3 py-2 text-xs font-semibold text-[#4a3b53]",children:[s.jsx(mr,{"data-loc":"client/src/pages/BookingPortal.tsx:242",className:"h-4 w-4","aria-hidden":"true"}),a(w.cityAr,w.cityEn)]}),s.jsxs("span",{"data-loc":"client/src/pages/BookingPortal.tsx:246",className:"inline-flex items-center gap-2 rounded-full bg-[#f5ebc8] px-3 py-2 text-xs font-semibold text-[#7b5c23]",children:[s.jsx(ns,{"data-loc":"client/src/pages/BookingPortal.tsx:247",className:"h-4 w-4","aria-hidden":"true"}),n?"Ù
ØªØ§Ø ÙØ·Ùب Ø§ÙØØ¬Ø²":"Available to request"]})]}),s.jsxs("div",{"data-loc":"client/src/pages/BookingPortal.tsx:252",className:"mt-8 grid gap-5 border-y border-[#4a3b53]/10 py-6 sm:grid-cols-2",children:[s.jsx(o9,{"data-loc":"client/src/pages/BookingPortal.tsx:253",lang:e,currency:w.currency,totalPrice:w.price,landPrice:D.landPrice,ticketIncluded:D.ticketIncluded,ticketPrice:D.ticketPrice,ticketRoute:D.ticketRoute,priceBasis:D.priceBasis,ticketPriceReviewRequired:D.ticketPriceReviewRequired,compact:!0,className:"shadow-sm"}),s.jsxs("div",{"data-loc":"client/src/pages/BookingPortal.tsx:266",children:[s.jsx("span",{"data-loc":"client/src/pages/BookingPortal.tsx:267",className:"text-xs font-bold uppercase tracking-[0.14em] text-[#4a3b53]/45",children:n?"اÙÙ
دة":"Duration"}),s.jsx("strong",{"data-loc":"client/src/pages/BookingPortal.tsx:268",className:"mt-2 block font-display text-2xl text-[#3a2837]",children:w.durationDays?n?`${w.durationDays} Ø£ÙØ§Ù
${w.durationNights?` / ${w.durationNights} ÙÙØ§ÙÙ`:""}`:`${w.durationDays} days${w.durationNights?` / ${w.durationNights} nights`:""}`:n?"ØØ³Ø¨ Ø§ÙØ¨Ø±ÙاÙ
ج":"As listed"})]})]}),s.jsx("p",{"data-loc":"client/src/pages/BookingPortal.tsx:278",className:"mt-6 text-sm leading-7 text-[#4a3b53]/68",children:a(w.summaryAr,w.summaryEn)||(n?"تابع ÙØ¥Ø¯Ø®Ø§Ù Ø§ÙØªÙØ§Ø±ÙØ® ÙØ§ÙØ¥ÙØ§Ù
Ø© ÙØ¨ÙØ§ÙØ§Øª اÙÙ
Ø³Ø§ÙØ±ÙÙ.":"Continue to enter dates, accommodation and traveller details.")})]}),s.jsxs("div",{"data-loc":"client/src/pages/BookingPortal.tsx:284",className:"mt-9 flex flex-col gap-3 sm:flex-row",children:[s.jsxs("button",{"data-loc":"client/src/pages/BookingPortal.tsx:285",type:"button",onClick:()=>b(!0),className:"enchanted-button inline-flex min-h-13 flex-1 items-center justify-center gap-2 bg-[#4a3b53] px-6 py-4 text-sm font-bold text-white shadow-lg transition hover:bg-[#2c212e] active:scale-[0.97]",children:[s.jsx(Yb,{"data-loc":"client/src/pages/BookingPortal.t
1632sx:290",className:"h-5 w-5 text-[#f5d5dd]","aria-hidden":"true"}),n?"Ù
تابعة Ø·ÙØ¨ Ø§ÙØØ¬Ø²":"Continue booking request"]}),s.jsx(ls,{"data-loc":"client/src/pages/BookingPortal.tsx:293",href:`/packages/${w.slug}`,className:"inline-flex min-h-13 items-center justify-center rounded-2xl border border-[#4a3b53]/18 px-6 py-4 text-sm font-bold text-[#3a2837] transition hover:bg-[#f3dde1]/35",children:n?"عرض ØªÙØ§ØµÙÙ Ø§ÙØ¨Ø±ÙاÙ
ج":"View program details"})]})]})]})}):s.jsx("div",{"data-loc":"client/src/pages/BookingPortal.tsx:304",className:"grid gap-5 md:grid-cols-2 xl:grid-cols-3",children:o.map(S=>s.jsxs("button",{"data-loc":"client/src/pages/BookingPortal.tsx:306",type:"button",onClick:()=>T(String(S.id)),className:"enchanted-card enchanted-catalog-card group overflow-hidden text-start transition duration-200 hover:-translate-y-1 hover:shadow-xl active:scale-[0.98]",children:[s.jsxs("div",{"data-loc":"client/src/pages/BookingPortal.tsx:312",className:"enchanted-frame relative h-48 overflow-hidden bg-[#4a3b53]",children:[S.imageUrl&&s.jsx("img",{"data-loc":"client/src/pages/BookingPortal.tsx:313",src:S.imageUrl,alt:"",className:"h-full w-full object-cover transition duration-500 group-hover:scale-105"}),s.jsx("div",{"data-loc":"client/src/pages/BookingPortal.tsx:314",className:"enchanted-photo-wash absolute inset-0"}),s.jsx("span",{"data-loc":"client/src/pages/BookingPortal.tsx:315",className:"absolute bottom-4 start-4 rounded-full bg-white/90 px-3 py-1.5 text-xs font-bold text-[#101826] backdrop-blur-sm",children:E(S.price,S.currency)}),s.jsxs("span",{"data-loc":"client/src/pages/BookingPortal.tsx:318",className:`absolute end-4 top-4 inline-flex items-center gap-1.5 rounded-full px-3 py-1.5 text-[11px] font-bold backdrop-blur-sm ${S.ticketIncluded?"bg-emerald-50/95 text-emerald-800":"bg-[#2c212e]/80 text-white"}`,children:[s.jsx(Hs,{"data-loc":"client/src/pages/BookingPortal.tsx:319",className:"h-3.5 w-3.5","aria-hidden":"true"}),S.ticketIncluded?n?"شاÙ
ÙØ© Ø§ÙØªØ°Ùرة":"Ticket included":n?"بدÙÙ ØªØ°ÙØ±Ø©":"No ticket"]})]}),s.jsxs("span",{"data-loc":"client/src/pages/BookingPortal.tsx:323",className:"block p-6",children:[s.jsxs("span",{"data-loc":"client/src/pages/BookingPortal.tsx:324",className:"flex items-center gap-2 text-xs font-semibold text-[#8d7293]",children:[a5e(S.titleAr,S.titleEn,S.slug)?s.jsx(Yme,{"data-loc":"client/src/pages/BookingPortal.tsx:326",className:"h-4 w-4",title:n?"Ø£ÙÙÙÙØ© Ø¨Ø±ÙØ§Ù
ج أردÙÙØ§ جÙÙÙØ©":"Urdunna Jannah program icon"}):s.jsx(mr,{"data-loc":"client/src/pages/BookingPortal.tsx:328",className:"h-4 w-4","aria-hidden":"true"}),a(S.cityAr,S.cityEn)||(n?"Ø¨Ø±ÙØ§Ù
ج Ø³ÙØ±":"Travel program")]}),s.jsx("strong",{"data-loc":"client/src/pages/BookingPortal.tsx:332",className:"enchanted-title mt-3 block text-2xl font-semibold leading-tight text-foreground",children:a(S.titleAr,S.titleEn)}),s.jsxs("span",{"data-loc":"client/src/pages/BookingPortal.tsx:333",className:"mt-5 inline-flex items-center gap-2 text-sm font-bold text-primary",children:[n?"Ø§Ø®ØªÙØ§Ø± ÙØ§Ùبدء":"Select and start",s.jsx(r,{"data-loc":"client/src/pages/BookingPortal.tsx:335",className:"h-4 w-4 rotate-180","aria-hidden":"true"})]})]})]},S.id))})]})]})]}),w&&s.jsx(r$,{"data-loc":"client/src/pages/BookingPortal.tsx:347",open:f,onOpenChange:b,lang:e,packageSlug:w.slug,packageTitle:a(w.titleAr,w.titleEn),hotelOptions:A(w),currency:w.currency,packagePrice:w.price,landPrice:D.landPrice,ticketIncluded:D.ticketIncluded,ticketPrice:D.ticketPrice,ticketRoute:D.ticketRoute,priceBasis:D.priceBasis,ticketPriceReviewRequired:D.ticketPriceReviewRequired,packageCity:a(w.cityAr,w.cityEn),packageImage:w.imageUrl||void 0,durationDays:w.durationDays,durationNights:w.durationNights,validFrom:D?.validFrom||void 0,validTo:D?.validTo||void 0,bookingDeadline:D?.bookingDeadline||void 0,operatingDays:w.operatingDays}),s.jsx(oo,{"data-loc":"client/src/pages/BookingPortal.tsx:373"})]})}const i5e={amman:{ar:"عÙ
ÙØ§Ù",en:"Amman"},dead_sea:{ar:"Ø§ÙØ¨ØØ± اÙÙ
ÙØª",en:"Dead Sea"},petra:{ar:"Ø§ÙØ¨ØªØ±Ø§Ø¡",en:"Petra"},wadi_rum:{ar:"ÙØ§Ø¯Ù رÙ
",en:"Wadi Rum"},aqaba:{ar:"Ø§ÙØ¹Ùبة",en:"Aqaba"}};function o5e(){const{lang:e}=zs(),t=e==="ar",{data:n,isLoading:a}=Pe.jordanHotels.summary.useQuery(void 0,{staleTime:6e4}),r=n?.destinations.reduce((i,o)=>i+o.propertyCount,0)??0;return s.jsxs("div",{"data-loc":"client/src/pages/JordanHotels.tsx:29",className:"min-h-screen bg-[#f3efe8] text-[#172128]",dir:t?"rtl":"ltr",children:[s.jsx(io,{"data-loc":"client/src/pages/JordanHotels.tsx:30"}),s.jsxs("main",{"data-loc":"client/src/pages/JordanHotels.tsx:32",children:[s.jsxs("section",{"data-loc":"client/src/pages/JordanHotels.tsx:33",className:"relative isolate min-h-[760px] overflow-hidden bg-[#101820] pb-28 pt-32 text-white lg:pt-40",children:[s.jsx("div",{"data-loc":"client/src/pages/JordanHotels.tsx:34",className:"absolute inset-0 -z-20 bg-[radial-gradient(circle_at_12%_20%,rgba(14,135,121,.28),transparent_32%),radial-gradient(circle_at_88%_28%,rgba(218,177,91,.18),transparent_28%),linear-gradient(145deg,#0a1117,#151f27_58%,#0b141a)]"}),s.jsx("div",{"data-loc":"client/src/pages/JordanHotels.tsx:35",className:"absolute inset-0 -z-10 opacity-25 [background-image:linear-gradient(rgba(255,255,255,.05)_1px,transparent_1px),linear-gradient(90deg,rgba(255,255,255,.05)_1px,transparent_1px)] [background-size:48px_48px] [mask-image:linear-gradient(to_bottom,black,transparent_85%)]"}),s.jsx("div",{"data-loc":"client/src/pages/JordanHotels.tsx:36",className:"absolute -end-20 top-24 -z-10 h-80 w-80 rounded-full border border-[#d8b15b]/20"}),s.jsx("div",{"data-loc":"client/src/pages/JordanHotels.tsx:37",className:"absolute -end-4 top-40 -z-10 h-52 w-52 rounded-full border border-[#d8b15b]/15"}),s.jsxs("div",{"data-loc":"client/src/pages/JordanHotels.tsx:39",className:"container grid items-center gap-16 lg:grid-cols-[1.08fr_.92fr]",children:[s.jsxs("div",{"data-loc":"client/src/pages/JordanHotels.tsx:40",className:"max-w-3xl",children:[s.jsxs("div",{"data-loc":"client/src/pages/JordanHotels.tsx:41",className:"inline-flex items-center gap-3 rounded-full border border-white/12 bg-white/[.055] px-4 py-2 text-xs font-bold tracking-wide text-[#e6c878] backdrop-blur",children:[s.jsx(ph,{"data-loc":"client/src/pages/JordanHotels.tsx:42",className:"h-5 w-5"}),t?"Ù
ØØ±Ù ÙÙØ§Ø¯Ù Ø§ÙØ£Ø±Ø¯Ù · ØªØ¹Ø±ÙØ© FIT Ù
عتÙ
دة":"Jordan hotel engine · approved FIT tariff"]}),s.jsx("h1",{"data-loc":"client/src/pages/JordanHotels.tsx:45",className:"mt-8 font-serif text-[clamp(3.4rem,8vw,7.6rem)] font-semibold leading-[.86] tracking-[-.055em] rtl:leading-[1.03] rtl:tracking-normal",children:t?s.jsxs(s.Fragment,{children:["Ø§ÙØ£Ø±Ø¯ÙØ",s.jsx("br",{"data-loc":"client/src/pages/JordanHotels.tsx:46"}),s.jsx("span",{"data-loc":"client/src/pages/JordanHotels.tsx:46",className:"text-[#d8b15b]",children:"بسعر ÙØ§Ø¶Ø."})]}):s.jsxs(s.Fragment,{children:["Jordan,",s.jsx("br",{"data-loc":"client/src/pages/JordanHotels.tsx:46"}),s.jsx("span",{"data-loc":"client/src/pages/JordanHotels.tsx:46",className:"text-[#d8b15b]",children:"clearly priced."})]})}),s.jsx("p",{"data-loc":"client/src/pages/JordanHotels.tsx:48",className:"mt-8 max-w-2xl text-lg leading-8 text-slate-300 sm:text-xl",children:t?"Ø§Ø¨ØØ« بÙÙ ÙÙØ§Ø¯Ù عÙ
ÙØ§Ù ÙØ§ÙØ¨ØØ± اÙÙ
ÙØª ÙØ§Ùبتراء ÙÙØ§Ø¯Ù رÙ
ÙØ§ÙØ¹ÙØ¨Ø©Ø ÙØ§ØØµÙ عÙÙ ÙØªÙجة ÙÙØ±ÙØ© Ø¨Ø§ÙØ¯ÙÙØ§Ø± Ø§ÙØ£Ø±Ø¯ÙÙ Ù
Ù Ø£ØØ¯Ø« ØªØ¹Ø±ÙØ© Ù
ÙØ´Ùرة.":"Search hotels across Amman, the Dead Sea, Petra, Wadi Rum, and Aqaba, with instant JOD results from the latest published tariff."}),s.jsxs("div",{"data-loc":"client/src/pages/JordanHotels.tsx:54",className:"mt-10 flex flex-wrap gap-3",children:[s.jsxs("a",{"data-loc":"client/src/pages/JordanHotels.tsx:55",href:"#jordan-hotel-search",className:"inline-flex h-12 items-center gap-2 rounded-full bg-[#d8b15b] px-6 text-sm font-black text-[#101820] transition hover:-translate-y-0.5 hover:bg-[#ebce88] active:scale-[.97]",children:[t?"ابدأ Ø§ÙØ¨ØØ«":"Start searching",s.jsx(RU,{"data-loc":"client/src/pages/JordanHotels.tsx:56",className:"h-4 w-4"})]}),s.jsxs("div",{"data-loc":"client/src/pages/JordanHotels.tsx:58",className:"inline-flex h-12 items-center gap-2 rounded-full border border-white/15 bg-white/[.04] px-5 text-sm font-semibold text-slate-200",children:[s.jsx(sa,{"data-loc":"client/src/pages/JordanHotels.tsx:59",className:"h-4 w-4 text-emerald-300"}),t?"اÙÙØªÙجة ØªØªØ·ÙØ¨ تأÙÙØ¯ Ø§ÙØØ¬Ø²":"Reservation confirmation required"]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/JordanHotels.tsx:65",className:"relative mx-auto w-full max-w-xl lg:mx-0",children:[s.jsx("div",{"data-loc":"client/src/pages/JordanHotels.tsx:66",className:"absolute -inset-8 rounded-[3rem] bg-[#0d8878]/10 blur-3xl"}),s.jsxs("div",{"data-loc":"client/src/pages/JordanHotels.tsx:67",className:"relative overflow-hidden rounded-[2.25rem] border border-white/12 bg-white/[.065] p-5 shadow-2xl backdrop-blur-xl sm:p-7",children:[s.jsxs("div",{"data-loc":"client/src/pages/JordanHotels.tsx:68",className:"flex items-center justify-between border-b border-white/10 pb-5",children:[s.jsxs("div",{"data-loc":"client/src/pages/JordanHotels.tsx:69",children:[s.jsx("p",{"data-loc":"client/src/pages/JordanHotels.tsx:70",className:"text-xs font-bold uppercase tracking-[.2em] text-[#d8b15b]",children:"LIVE COVERAGE"}),s.jsx("p",{"data-loc":"client/src/pages/JordanHotels.tsx:71",className:"mt-2 text-2xl font-semibold",children:t?"Ø§ÙØªØºØ·ÙØ© اÙÙ
ÙØ´Ùرة":"Published coverage"})]}),s.jsx("span",{"data-loc":"client/src/pages/JordanHotels.tsx:73",className:"grid h-14 w-14 place-items-center rounded-2xl bg-[#d8b15b]/10 text-[#e7c97d]",children:s.jsx(Im,{"data-loc":"client/src/pages/JordanHotels.tsx:73",className:"h-7 w-7"})})]}),s.jsxs("div",{"data-loc":"client/src/pages/JordanHotels.tsx:76",className:"mt-6 grid grid-cols-2 gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/JordanHotels.tsx:77",className:"rounded-2xl border border-white/8 bg-black/15 p-4",children:[s.jsx("p",{"data-loc":"client/src/pages/JordanHotels.tsx:78",className:"text-3xl font-black text-white",children:a?"â¦":r}),s.jsx("p",{"data-loc":"client/src/pages/JordanHotels.tsx:79",className:"mt-1 text-xs text-slate-400",children:t?"ÙÙØ¯Ù ÙÙ
Ø®ÙÙ
":"hotels & camps"})]}),s.jsxs("div",{"data-loc":"client/src/pages/JordanHotels.tsx:81",className:"rounded-2xl border border-white/8 bg-black/15 p-4",children:[s.jsx("p",{"data-loc":"client/src/pages/JordanHotels.tsx:82",className:"text-3xl font-black text-white",children:"JOD"}),s.jsx("p",{"data-loc":"client/src/pages/JordanHotels.tsx:83",className:"mt-1 text-xs text-slate-400",children:t?"عÙ
ÙØ© Ø§ÙØ¹Ø±Ø¶ اÙÙÙØ§Ø¦ÙØ©":"final display currency"})]})]}),s.jsx("div",{"data-loc":"client/src/pages/JordanHotels.tsx:87",className:"mt-5 space-y-2",children:(n?.destinations??[]).map(i=>{const o=i5e[i.destination];return s.jsxs("div",{"data-loc":"client/src/pages/JordanHotels.tsx:91",className:"flex items-center justify-between rounded-xl border border-white/8 px-4 py-3 text-sm",children:[s.jsxs("span",{"data-loc":"client/src/pages/JordanHotels.tsx:92",className:"flex items-center gap-2 text-slate-200",children:[s.jsx(mr,{"data-loc":"client/src/pages/JordanHotels.tsx:92",className:"h-4 w-4 text-[#d8b15b]"}),t?o.ar:o.en]}),s.jsx("strong",{"data-loc":"client/src/pages/JordanHotels.tsx:93",className:"text-white",children:i.propertyCount})]},i.destination)})}),s.jsxs("div",{"data-loc":"client/src/pages/JordanHotels.tsx:99",className:"mt-5 flex items-start gap-3 rounded-2xl bg-emerald-400/[.07] p-4 text-xs leading-5 text-emerald-100",children:[s.jsx(yu,{"data-loc":"client/src/pages/JordanHotels.tsx:100",className:"mt-0.5 h-5 w-5 shrink-0 text-emerald-300"}),s.jsx("p",{"data-loc":"client/src/pages/JordanHotels.tsx:101",children:n?.available?t?`اÙÙØ³Ø®Ø© ${n.version.versionNumber} Ù
ÙØ´Ùرة ÙØ¬Ø§Ùزة ÙÙØ¨ØØ«.`:`Version ${n.version.versionNumber} is published and searchable.`:t?"ÙØ§ ØªÙØ¬Ø¯ ØªØ¹Ø±ÙØ© Ù
ÙØ´Ùرة ØØ§ÙÙØ§Ù.":"No tariff is currently published."})]})]})]})]})]}),s.jsx("section",{"data-loc":"client/src/pages/JordanHotels.tsx:108",className:"relative z-10 -mt-16 pb-24",id:"jordan-hotel-search",children:s.jsx("div",{"data-loc":"client/src/pages/JordanHotels.tsx:109",className:"container",children:s.jsx(Qq,{"data-loc":"client/src/pages/JordanHotels.tsx:110",lang:e})})}),s.jsx("section",{"data-loc":"client/src/pages/JordanHotels.tsx:114",className:"border-y border-[#d9d0c4] bg-[#e9e2d7] py-20",children:s.jsx("div",{"data-loc":"client/src/pages/JordanHotels.tsx:115",className:"container",children:s.jsxs("div",{"data-loc":"client/src/pages/JordanHotels.tsx:116",className:"grid gap-8 lg:grid-cols-[.8fr_1.2fr] lg:items-end",children:[s.jsxs("div",{"data-loc":"client/src/pages/JordanHotels.tsx:117",children:[s.jsxs("span",{"data-loc":"client/src/pages/JordanHotels.tsx:118",className:"inline-flex items-center gap-2 text-xs font-black uppercase tracking-[.18em] text-[#0d7f72]",children:[s.jsx(pr,{"data-loc":"client/src/pages/JordanHotels.tsx:118",className:"h-4 w-4"}),"IBRIX RATE PROMISE"]}),s.jsx("h2",{"data-loc":"client/src/pages/JordanHotels.tsx:119",className:"mt-4 max-w-xl font-serif text-4xl font-semibold leading-tight text-[#1a262c] sm:text-5xl",children:t?"سعر Ù
ÙÙÙÙ
Ø ÙÙ
صدر Ù
ØÙÙØ¸Ø ÙÙØ±Ø§Ø± ØØ¬Ø² بشرÙ.":"A clear price, a preserved source, and a human booking decision."})]}),s.jsx("div",{"data-loc":"client/src/pages/JordanHotels.tsx:123",className:"grid gap-4 sm:grid-cols-3",children:[{icon:yu,ar:"Ø£ØØ¯Ø« ØªØ¹Ø±ÙØ© Ù
ÙØ´Ùرة ÙÙØ·",en:"Latest published tariff only"},{icon:X0,ar:"Ø§ÙØªÙØ§Ø±ÙØ® ÙØ§ÙÙ
ÙØ§Ø³Ù
Ù
ØØ³Ùبة",en:"Dates and seasons calculated"},{icon:sa,ar:"ÙØ§ ÙÙÙØ´Ø£ سعر Ø¹ÙØ¯ ØºÙØ§Ø¨ اÙÙ
صدر",en:"No invented price when source is absent"}].map((i,o)=>s.jsxs("div",{"data-loc":"client/src/pages/JordanHotels.tsx:129",className:"rounded-2xl border border-[#d0c5b6] bg-[#f7f3ed] p-5 shadow-sm",children:[s.jsx(i.icon,{"data-loc":"client/src/pages/JordanHotels.tsx:130",className:"h-6 w-6 text-[#0d7f72]"}),s.jsx("p",{"data-loc":"client/src/pages/JordanHotels.tsx:131",className:"mt-4 text-sm font-bold leading-6 text-[#28363d]",children:t?i.ar:i.en})]},o))})]})})})]}),s.jsx(oo,{"data-loc":"client/src/pages/JordanHotels.tsx:140"})]})}function SM(e){const t=[],n=String(e||"");let a=n.indexOf(","),r=0,i=!1;for(;!i;){a===-1&&(a=n.length,i=!0);const o=n.slice(r,a).trim();(o||!i)&&t.push(o),r=a+1,a=n.indexOf(",",r)}return t}function j9(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const c5e=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,l5e=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,u5e={};function _M(e,t){return(u5e.jsx?l5e:c5e).test(e)}const d5e=/[ \t\n\f\r]/g;function g6(e){return typeof e=="object"?e.type==="text"?PM(e.value):!1:PM(e)}function PM(e){return e.replace(d5e,"")===""}let Q2=class{constructor(t,n,a){this.normal=n,this.property=t,a&&(this.space=a)}};Q2.prototype.normal={};Q2.prototype.property={};Q2.prototype.space=void 0;function RG(e,t){const n={},a={};for(const r of e)Object.assign(n,r.property),Object.assign(a,r.normal);return new Q2(n,a,t)}function x2(e){return e.toLowerCase()}let yc=class{constructor(t,n){this.attribute=n,this.property=t}};yc.prototype.attribute="";yc.prototype.booleanish=!1;yc.prototype.boolean=!1;yc.prototype.commaOrSpaceSeparated=!1;yc.prototype.commaSeparated=!1;yc.prototype.defined=!1;yc.prototype.mustUseProperty=!1;yc.prototype.number=!1;yc.prototype.overloadedBoolean=!1;yc.prototype.property="";yc.prototype.spaceSeparated=!1;yc.prototype.space=void 0;let m5e=0;const da=rf(),oi=rf(),_7=rf(),Rt=rf(),Bs=rf(),Qg=rf(),zc=rf();function rf(){return 2**++m5e}const P7=Object.freeze(Object.defineProperty({__proto__:null,boolean:da,booleanish:oi,commaOrSpaceSeparated:zc,commaSeparated:Qg,number:
vendor: 4,419 bytes, line 1632
1632Rt,overloadedBoolean:_7,spaceSeparated:Bs},Symbol.toStringTag,{value:"Module"})),KN=Object.keys(P7);let A9=class extends yc{constructor(t,n,a,r){let i=-1;if(super(t,n),DM(this,"space",r),typeof a=="number")for(;++i<KN.length;){const o=KN[i];DM(this,KN[i],(a&P7[o])===P7[o])}}};A9.prototype.defined=!0;function DM(e,t,n){n&&(e[t]=n)}function Ax(e){const t={},n={};for(const[a,r]of Object.entries(e.properties)){const i=new A9(a,e.transform(e.attributes||{},a),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(i.mustUseProperty=!0),t[a]=i,n[x2(a)]=a,n[x2(i.attribute)]=a}return new Q2(t,n,e.space)}const IG=Ax({properties:{ariaActiveDescendant:null,ariaAtomic:oi,ariaAutoComplete:null,ariaBusy:oi,ariaChecked:oi,ariaColCount:Rt,ariaColIndex:Rt,ariaColSpan:Rt,ariaControls:Bs,ariaCurrent:null,ariaDescribedBy:Bs,ariaDetails:null,ariaDisabled:oi,ariaDropEffect:Bs,ariaErrorMessage:null,ariaExpanded:oi,ariaFlowTo:Bs,ariaGrabbed:oi,ariaHasPopup:null,ariaHidden:oi,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Bs,ariaLevel:Rt,ariaLive:null,ariaModal:oi,ariaMultiLine:oi,ariaMultiSelectable:oi,ariaOrientation:null,ariaOwns:Bs,ariaPlaceholder:null,ariaPosInSet:Rt,ariaPressed:oi,ariaReadOnly:oi,ariaRelevant:null,ariaRequired:oi,ariaRoleDescription:Bs,ariaRowCount:Rt,ariaRowIndex:Rt,ariaRowSpan:Rt,ariaSelected:oi,ariaSetSize:Rt,ariaSort:null,ariaValueMax:Rt,ariaValueMin:Rt,ariaValueNow:Rt,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function MG(e,t){return t in e?e[t]:t}function LG(e,t){return MG(e,t.toLowerCase())}const p5e=Ax({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Qg,acceptCharset:Bs,accessKey:Bs,action:null,allow:null,allowFullScreen:da,allowPaymentRequest:da,allowUserMedia:da,alt:null,as:null,async:da,autoCapitalize:null,autoComplete:Bs,autoFocus:da,autoPlay:da,blocking:Bs,capture:null,charSet:null,checked:da,cite:null,className:Bs,cols:Rt,colSpan:null,content:null,contentEditable:oi,controls:da,controlsList:Bs,coords:Rt|Qg,crossOrigin:null,data:null,dateTime:null,decoding:null,default:da,defer:da,dir:null,dirName:null,disabled:da,download:_7,draggable:oi,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:da,formTarget:null,headers:Bs,height:Rt,hidden:_7,high:Rt,href:null,hrefLang:null,htmlFor:Bs,httpEquiv:Bs,id:null,imageSizes:null,imageSrcSet:null,inert:da,inputMode:null,integrity:null,is:null,isMap:da,itemId:null,itemProp:Bs,itemRef:Bs,itemScope:da,itemType:Bs,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:da,low:Rt,manifest:null,max:null,maxLength:Rt,media:null,method:null,min:null,minLength:Rt,multiple:da,muted:da,name:null,nonce:null,noModule:da,noValidate:da,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:da,optimum:Rt,pattern:null,ping:Bs,placeholder:null,playsInl
1632ine:da,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:da,referrerPolicy:null,rel:Bs,required:da,reversed:da,rows:Rt,rowSpan:Rt,sandbox:Bs,scope:null,scoped:da,seamless:da,selected:da,shadowRootClonable:da,shadowRootDelegatesFocus:da,shadowRootMode:null,shape:null,size:Rt,sizes:null,slot:null,span:Rt,spellCheck:oi,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Rt,step:null,style:null,tabIndex:Rt,target:null,title:null,translate:null,type:null,typeMustMatch:da,useMap:null,value:oi,width:Rt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Bs,axis:null,background:null,bgColor:null,border:Rt,borderColor:null,bottomMargin:Rt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:da,declare:da,event:null,face:null,frame:null,frameBorder:null,hSpace:Rt,leftMargin:Rt,link:null,longDesc:null,lowSrc:null,marginHeight:Rt,marginWidth:Rt,noResize:da,noHref:da,noShade:da,noWrap:da,object:null,profile:null,prompt:null,rev:null,rightMargin:Rt,rules:null,scheme:null,scrolling:oi,standby:null,summary:null,text:null,topMargin:Rt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Rt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:da,disableRemotePlayback:da,prefix:null,property:null,results:Rt,security:null,unselectable:null},space:"html",transform:LG}),h5e=Ax({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
1632-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:zc,accentHeight:Rt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Rt,amplitude:Rt,arabicForm:null,ascent:Rt,attributeName:null,attributeType:null,azimuth:Rt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Rt,by:null,calcMode:null,capHeight:Rt,className:Bs,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Rt,diffuseConstant:Rt,direction:null,display:null,dur:null,divisor:Rt,dominantBaseline:null,download:da,dx:null,dy:null,edgeMode:null,editable:null,elevation:Rt,enableBackground:null,end:null,event:null,exponent:Rt,externalResourcesRequired:null,fill:null,fillOpacity:Rt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Qg,g2:Qg,glyphName:Qg,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Rt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Rt,horizOriginX:Rt,horizOriginY:Rt,id:null,ideographic:Rt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Rt,k:Rt,k1:Rt,k2:Rt,k3:Rt,k4:Rt,kernelMatrix:zc,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Rt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Rt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
vendor: 5,363 bytes, lines 1632-1633
1632Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Rt,overlineThickness:Rt,paintOrder:null,panose1:null,path:null,pathLength:Rt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Bs,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Rt,pointsAtY:Rt,pointsAtZ:Rt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:zc,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:zc,rev:zc,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:zc,requiredFeatures:zc,requiredFonts:zc,requiredFormats:zc,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Rt,specularExponent:Rt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Rt,strikethroughThickness:Rt,string:null,stroke:null,strokeDashArray:zc,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Rt,strokeOpacity:Rt,strokeWidth:null,style:null,surfaceScale:Rt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:zc,tabIndex:Rt,tableValues:null,target:null,targetX:Rt,targetY:Rt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:zc,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Rt,underlineThickness:Rt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Rt,values:null,vAlphabetic:Rt,vMathematical:Rt,vectorEffect:null,vHanging:Rt,vIdeographic:Rt,version:null,vertAdvY:Rt,vertOriginX:Rt,vertOriginY:Rt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Rt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:MG}),OG=Ax({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),BG=Ax({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:LG}),FG=Ax({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),f5e={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},g5e=/[A-Z]/g,RM=/-[a-z]/g,x5e=/^data[-\w.:]+$/i;function x6(e,t){const n=x2(t);let a=t,r=yc;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&x5e.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(RM,v5e);a="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!RM.test(i)){let o=i.replace(g5e,b5e);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}r=A9}return new r(a,t)}function b5e(e){return"-"+e.toLowerCase()}function v5e(e){return e.charAt(1).toUpperCase()}const K2=RG([IG,p5e,OG,BG,FG],"html"),Th=RG([IG,h5e,OG,BG,FG],"svg");function IM(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function E9(e){return e.join(" ").trim()}var yg={},ZN,MM;function y5e(){if(MM)return ZN;MM=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,r=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,c=/^\s+|\s+$/g,l=` 1633`,d="/",m="*",h="",x="comment",f="declaration";ZN=function(y,w){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];w=w||{};var T=1,A=1;function E(W){var J=W.match(t);J&&(T+=J.length);var oe=W.lastIndexOf(l);A=~oe?W.length-oe:A+W.length}function D(){var W={line:T,column:A};return function(J){return J.position=new S(W),I(),J}}function S(W){this.start=W,this.end={line:T,column:A},this.source=w.source}S.prototype.content=y;function R(W){var J=new Error(w.source+":"+T+":"+A+": "+W);if(J.reason=W,J.filename=w.source,J.line=T,J.column=A,J.source=y,!w.silent)throw J}function L(W){var J=W.exec(y);if(J){var oe=J[0];return E(oe),y=y.slice(oe.length),J}}function I(){L(n)}function F(W){var J;for(W=W||[];J=_();)J!==!1&&W.push(J);return W}function _(){var W=D();if(!(d!=y.charAt(0)||m!=y.charAt(1))){for(var J=2;h!=y.charAt(J)&&(m!=y.charAt(J)||d!=y.charAt(J+1));)++J;if(J+=2,h===y.charAt(J-1))return R("End of comment missing");var oe=y.slice(2,J-2);return A+=2,E(oe),y=y.slice(J),A+=2,W({type:x,comment:oe})}}function U(){var W=D(),J=L(a);if(J){if(_(),!L(r))return R("property missing ':'");var oe=L(i),G=W({type:f,property:b(J[0].replace(e,h)),value:oe?b(oe[0].replace(e,h)):h});return L(o),G}}function O(){var W=[];F(W);for(var J;J=U();)J!==!1&&(W.push(J),F(W));return W}return I(),O()};function b(y){return y?y.replace(c,h):h}return ZN}var LM;
vendor: 3,846 bytes, line 1633
1633function w5e(){if(LM)return yg;LM=1;var e=yg&&yg.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(yg,"__esModule",{value:!0}),yg.default=n;const t=e(y5e());function n(a,r){let i=null;if(!a||typeof a!="string")return i;const o=(0,t.default)(a),c=typeof r=="function";return o.forEach(l=>{if(l.type!=="declaration")return;const{property:d,value:m}=l;c?r(d,m,l):m&&(i=i||{},i[d]=m)}),i}return yg}var G1={},OM;function T5e(){if(OM)return G1;OM=1,Object.defineProperty(G1,"__esModule",{value:!0}),G1.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,r=/^-(ms)-/,i=function(d){return!d||n.test(d)||e.test(d)},o=function(d,m){return m.toUpperCase()},c=function(d,m){return"".concat(m,"-")},l=function(d,m){return m===void 0&&(m={}),i(d)?d:(d=d.toLowerCase(),m.reactCompat?d=d.replace(r,c):d=d.replace(a,c),d.replace(t,o))};return G1.camelCase=l,G1}var J1,BM;function N5e(){if(BM)return J1;BM=1;var e=J1&&J1.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},t=e(w5e()),n=T5e();function a(r,i){var o={};return!r||typeof r!="string"||(0,t.default)(r,function(c,l){c&&l&&(o[(0,n.camelCase)(c,i)]=l)}),o}return a.default=a,J1=a,J1}var k5e=N5e();const j5e=v4(k5e),b6=UG("end"),Bd=UG("start");function UG(e){return t;function t(n){const a=n&&n.position&&n.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function A5e(e){const t=Bd(e),n=b6(e);if(t&&n)return{start:t,end:n}}function Eb(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?FM(e.position):"start"in e||"end"in e?FM(e):"line"in e||"column"in e?D7(e):""}function D7(e){return UM(e&&e.line)+":"+UM(e&&e.column)}function FM(e){return D7(e&&e.start)+"-"+D7(e&&e.end)}function UM(e){return e&&typeof e=="number"?e:1}class No extends Error{constructor(t,n,a){super(),typeof n=="string"&&(a=n,n=void 0);let r="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?r=t:!i.cause&&t&&(o=!0,r=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof a=="string"){const l=a.indexOf(":");l===-1?i.ruleId=a:(i.source=a.slice(0,l),i.ruleId=a.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const c=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=c?c.line:void 0,this.name=Eb(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}No.prototype.file="";No.prototype.name="";No.prototype.reason="";No.prototype.message="";No.prototype.stack="";No.prototype.column=void 0;No.prototype.line=void 0;No.prototype.ancestors=void 0;No.prototype.cause=void 0;No.prototype.fatal=void 0;No.prototype.place=void 0;No.prototype.ruleId=void 0;No.prototype.source=void 0;const C9={}.hasOwnProperty,E5e=new Map,C5e=/[A-Z]/g,S5e=new Set(["table","tbody","thead","tfoot","tr"]),_5e=new Set(["td","th"]),HG="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function P5e(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let a;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=F5e(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 6,054 bytes, line 1633
1633if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=B5e(n,t.jsx,t.jsxs)}const r={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Th:K2,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=VG(r,e,void 0);return i&&typeof i!="string"?i:r.create(e,r.Fragment,{children:i||void 0},void 0)}function VG(e,t,n){if(t.type==="element")return D5e(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return R5e(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return M5e(e,t,n);if(t.type==="mdxjsEsm")return I5e(e,t);if(t.type==="root")return L5e(e,t,n);if(t.type==="text")return O5e(e,t)}function D5e(e,t,n){const a=e.schema;let r=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(r=Th,e.schema=r),e.ancestors.push(t);const i=$G(e,t.tagName,!1),o=U5e(e,t);let c=_9(e,t);return S5e.has(t.tagName)&&(c=c.filter(function(l){return typeof l=="string"?!g6(l):!0})),zG(e,o,i,t),S9(o,c),e.ancestors.pop(),e.schema=a,e.create(t,i,o,n)}function R5e(e,t){if(t.data&&t.data.estree&&e.evaluater){const a=t.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}b2(e,t.position)}function I5e(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);b2(e,t.position)}function M5e(e,t,n){const a=e.schema;let r=a;t.name==="svg"&&a.space==="html"&&(r=Th,e.schema=r),e.ancestors.push(t);const i=t.name===null?e.Fragment:$G(e,t.name,!0),o=H5e(e,t),c=_9(e,t);return zG(e,o,i,t),S9(o,c),e.ancestors.pop(),e.schema=a,e.create(t,i,o,n)}function L5e(e,t,n){const a={};return S9(a,_9(e,t)),e.create(t,e.Fragment,a,n)}function O5e(e,t){return t.value}function zG(e,t,n,a){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=a)}function S9(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function B5e(e,t,n){return a;function a(r,i,o,c){const d=Array.isArray(o.children)?n:t;return c?d(i,o,c):d(i,o)}}function F5e(e,t){return n;function n(a,r,i,o){const c=Array.isArray(i.children),l=Bd(a);return t(r,i,o,c,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function U5e(e,t){const n={};let a,r;for(r in t.properties)if(r!=="children"&&C9.call(t.properties,r)){const i=V5e(e,r,t.properties[r]);if(i){const[o,c]=i;e.tableCellAlignToStyle&&o==="align"&&typeof c=="string"&&_5e.has(t.tagName)?a=c:n[o]=c}}if(a){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return n}function H5e(e,t){const n={};for(const a of t.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const i=a.data.estree.body[0];i.type;const o=i.expression;o.type;const c=o.properties[0];c.type,Object.assign(n,e.evaluater.evaluateExpression(c.argument))}else b2(e,t.position);else{const r=a.name;let i;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const c=a.value.data.estree.body[0];c.type,i=e.evaluater.evaluateExpression(c.expression)}else b2(e,t.position);else i=a.value===null?!0:a.value;n[r]=i}return n}function _9(e,t){const n=[];let a=-1;const r=e.passKeys?new Map:E5e;for(;++a<t.children.length;){const i=t.children[a];let o;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const d=r.get(l)||0;o=l+"-"+d,r.set(l,d+1)}}const c=VG(e,i,o);c!==void 0&&n.push(c)}return n}function V5e(e,t,n){const a=x6(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=a.commaSeparated?j9(n):E9(n)),a.property==="style"){let r=typeof n=="object"?n:z5e(e,String(n));return e.stylePropertyNameCase==="css"&&(r=$5e(r)),["style",r]}return[e.elementAttributeNameCase==="react"&&a.space?f5e[a.property]||a.property:a.attribute,n]}}function z5e(e,t){try{return j5e(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const a=n,r=new No("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=HG+"#cannot-parse-style-attribute",r}}function $G(e,t,n){let a;if(!n)a={type:"Literal",value:t};else if(t.includes(".")){const r=t.split(".");let i=-1,o;for(;++i<r.length;){const c=_M(r[i])?{type:"Identifier",name:r[i]}:{type:"Literal",value:r[i]};o=o?{type:"MemberExpression",object:o,property:c,computed:!!(i&&c.type==="Literal"),optional:!1}:c}a=o}else a=_M(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(a.type==="Literal"){const r=a.value;return C9.call(e.components,r)?e.components[r]:r}if(e.evaluater)return e.evaluater.evaluateExpression(a);b2(e)}function b2(e,t){const n=new No("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=HG+"#cannot-handle-mdx-estrees-without-createevaluater",n}function $5e(e){const t={};let n;for(n in e)C9.call(e,n)&&(t[q5e(n)]=e[n]);return t}function q5e(e){let t=e.replace(C5e,G5e);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function G5e(e){return"-"+e.toLowerCase()}const e8={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},J5e={};function P9(e,t){const n=J5e,a=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return qG(e,a,r)}function qG(e,t,n){if(W5e(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return HM(e.children,t,n)}
vendor: 13,356 bytes, line 1633
1633return Array.isArray(e)?HM(e,t,n):""}function HM(e,t,n){const a=[];let r=-1;for(;++r<e.length;)a[r]=qG(e[r],t,n);return a.join("")}function W5e(e){return!!(e&&typeof e=="object")}const VM=document.createElement("i");function D9(e){const t="&"+e+";";VM.innerHTML=t;const n=VM.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Zc(e,t,n,a){const r=e.length;let i=0,o;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,n=n>0?n:0,a.length<1e4)o=Array.from(a),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i<a.length;)o=a.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function yl(e,t){return e.length>0?(Zc(e,e.length,0,t),e):t}const zM={}.hasOwnProperty;function GG(e){const t={};let n=-1;for(;++n<e.length;)Y5e(t,e[n]);return t}function Y5e(e,t){let n;for(n in t){const r=(zM.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){zM.call(r,o)||(r[o]=[]);const c=i[o];X5e(r[o],Array.isArray(c)?c:c?[c]:[])}}}function X5e(e,t){let n=-1;const a=[];for(;++n<t.length;)(t[n].add==="after"?e:a).push(t[n]);Zc(e,0,0,a)}function JG(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function xu(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Lo=Nh(/[A-Za-z]/),To=Nh(/[\dA-Za-z]/),Q5e=Nh(/[#-'*+\--9=?A-Z^-~]/);function $3(e){return e!==null&&(e<32||e===127)}const R7=Nh(/\d/),K5e=Nh(/[\dA-Fa-f]/),Z5e=Nh(/[!-/:-@[-`{-~]/);function Nn(e){return e!==null&&e<-2}function Ms(e){return e!==null&&(e<0||e===32)}function Aa(e){return e===-2||e===-1||e===32}const v6=Nh(new RegExp("\\p{P}|\\p{S}","u")),V0=Nh(/\s/);function Nh(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ex(e){const t=[];let n=-1,a=0,r=0;for(;++n<e.length;){const i=e.charCodeAt(n);let o="";if(i===37&&To(e.charCodeAt(n+1))&&To(e.charCodeAt(n+2)))r=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){const c=e.charCodeAt(n+1);i<56320&&c>56319&&c<57344?(o=String.fromCharCode(i,c),r=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(a,n),encodeURIComponent(o)),a=n+r+1,o=""),r&&(n+=r,r=0)}return t.join("")+e.slice(a)}function ya(e,t,n,a){const r=a?a-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(l){return Aa(l)?(e.enter(n),c(l)):t(l)}function c(l){return Aa(l)&&i++<r?(e.consume(l),c):(e.exit(n),t(l))}}const e3e={tokenize:t3e};function t3e(e){const t=e.attempt(this.parser.constructs.contentInitial,a,r);let n;return t;function a(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),ya(e,t,"linePrefix")}function r(c){return e.enter("paragraph"),i(c)}function i(c){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,o(c)}function o(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return Nn(c)?(e.consume(c),e.exit("chunkText"),i):(e.consume(c),o)}}const n3e={tokenize:a3e},$M={tokenize:s3e};function a3e(e){const t=this,n=[];let a=0,r,i,o;return c;function c(E){if(a<n.length){const D=n[a];return t.containerState=D[1],e.attempt(D[0].continuation,l,d)(E)}return d(E)}function l(E){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&A();const D=t.events.length;let S=D,R;for(;S--;)if(t.events[S][0]==="exit"&&t.events[S][1].type==="chunkFlow"){R=t.events[S][1].end;break}T(a);let L=D;for(;L<t.events.length;)t.events[L][1].end={...R},L++;return Zc(t.events,S+1,0,t.events.slice(D)),t.events.length=L,d(E)}return c(E)}function d(E){if(a===n.length){if(!r)return x(E);if(r.currentConstruct&&r.currentConstruct.concrete)return b(E);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check($M,m,h)(E)}function m(E){return r&&A(),T(a),x(E)}function h(E){return t.parser.lazy[t.now().line]=a!==n.length,o=t.now().offset,b(E)}function x(E){return t.containerState={},e.attempt($M,f,b)(E)}function f(E){return a++,n.push([t.currentConstruct,t.containerState]),x(E)}function b(E){if(E===null){r&&A(),T(0),e.consume(E);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:i}),y(E)}function y(E){if(E===null){w(e.exit("chunkFlow"),!0),T(0),e.consume(E);return}return Nn(E)?(e.consume(E),w(e.exit("chunkFlow")),a=0,t.interrupt=void 0,c):(e.consume(E),y)}function w(E,D){const S=t.sliceStream(E);if(D&&S.push(null),E.previous=i,i&&(i.next=E),i=E,r.defineSkip(E.start),r.write(S),t.parser.lazy[E.start.line]){let R=r.events.length;for(;R--;)if(r.events[R][1].start.offset<o&&(!r.events[R][1].end||r.events[R][1].end.offset>o))return;const L=t.events.length;let I=L,F,_;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){if(F){_=t.events[I][1].end;break}F=!0}for(T(a),R=L;R<t.events.length;)t.events[R][1].end={..._},R++;Zc(t.events,I+1,0,t.events.slice(L)),t.events.length=R}}function T(E){let D=n.length;for(;D-- >E;){const S=n[D];t.containerState=S[1],S[0].exit.call(t,e)}n.length=E}function A(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}function s3e(e,t,n){return ya(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function cx(e){if(e===null||Ms(e)||V0(e))return 1;if(v6(e))return 2}function y6(e,t,n){const a=[];let r=-1;for(;++r<e.length;){const i=e[r].resolveAll;i&&!a.includes(i)&&(t=i(t,n),a.push(i))}return t}const I7={name:"attention",resolveAll:r3e,tokenize:i3e};function r3e(e,t){let n=-1,a,r,i,o,c,l,d,m;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(a=n;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&t.sliceSerialize(e[a][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[a][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[a][1].end.offset-e[a][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[a][1].end},x={...e[n][1].start};qM(h,-l),qM(x,l),o={type:l>1?"strongSequence":"emphasisSequence",start:h,end:{...e[a][1].end}},c={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:x},i={type:l>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[n][1].start}},r={type:l>1?"strong":"emphasis",start:{...o.start},end:{...c.end}},e[a][1].end={...o.start},e[n][1].start={...c.end},d=[],e[a][1].end.offset-e[a][1].start.offset&&(d=yl(d,[["enter",e[a][1],t],["exit",e[a][1],t]])),d=yl(d,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),d=yl(d,y6(t.parser.constructs.insideSpan.null,e.slice(a+1,n),t)),d=yl(d,[["exit",i,t],["enter",c,t],["exit",c,t],["exit",r,t]]),e[n][1].end.offset-e[n][1].start.offset?(m=2,d=yl(d,[["enter",e[n][1],t],["exit",e[n][1],t]])):m=0,Zc(e,a-1,n-a+3,d),n=a+d.length-m-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function i3e(e,t){const n=this.parser.constructs.attentionMarkers.null,a=this.previous,r=cx(a);let i;return o;function o(l){return i=l,e.enter("attentionSequence"),c(l)}function c(l){if(l===i)return e.consume(l),c;const d=e.exit("attentionSequence"),m=cx(l),h=!m||m===2&&r||n.includes(l),x=!r||r===2&&m||n.includes(a);return d._open=!!(i===42?h:h&&(r||!x)),d._close=!!(i===42?x:x&&(m||!h)),t(l)}}function qM(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const o3e={name:"autolink",tokenize:c3e};function c3e(e,t,n){let a=0;return r;function r(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(f){return Lo(f)?(e.consume(f),o):f===64?n(f):d(f)}function o(f){return f===43||f===45||f===46||To(f)?(a=1,c(f)):d(f)}function c(f){return f===58?(e.consume(f),a=0,l):(f===43||f===45||f===46||To(f))&&a++<32?(e.consume(f),c):(a=0,d(f))}function l(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||$3(f)?n(f):(e.consume(f),l)}function d(f){return f===64?(e.consume(f),m):Q5e(f)?(e.consume(f),d):n(f)}function m(f){return To(f)?h(f):n(f)}function h(f){return f===46?(e.consume(f),a=0,m):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):x(f)}function x(f){if((f===45||To(f))&&a++<63){const b=f===45?x:h;return e.consume(f),b}return n(f)}}const Z2={partial:!0,tokenize:l3e};function l3e(e,t,n){return a;function a(i){return Aa(i)?ya(e,r,"linePrefix")(i):r(i)}function r(i){return i===null||Nn(i)?t(i):n(i)}}const WG={continuation:{tokenize:d3e},exit:m3e,name:"blockQuote",tokenize:u3e};function u3e(e,t,n){const a=this;return r;function r(o){if(o===62){const c=a.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),i}return n(o)}function i(o){return Aa(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function d3e(e,t,n){const a=this;return r;function r(o){return Aa(o)?ya(e,i,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):i(o)}function i(o){return e.attempt(WG,t,n)(o)}}function m3e(e){e.exit("blockQuote")}const YG={name:"characterEscape",tokenize:p3e};function p3e(e,t,n){return a;function a(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),r}function r(i){return Z5e(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const XG={name:"characterReference",tokenize:h3e};function h3e(e,t,n){const a=this;let r=0,i,o;return c;function c(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),l}function l(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),i=31,o=To,m(h))}function d(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=K5e,m):(e.enter("characterReferenceValue"),i=7,o=R7,m(h))}function m(h){if(h===59&&r){const x=e.exit("characterReferenceValue");return o===To&&!D9(a.sliceSerialize(x))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(h)&&r++<i?(e.consume(h),m):n(h)}}const GM={partial:!0,tokenize:g3e},JM={concrete:!0,name:"codeFenced",tokenize:f3e};function f3e(e,t,n){const a=this,r={partial:!0,tokenize:S};let i=0,o=0,c;return l;function l(R){return d(R)}function d(R){const L=a.events[a.events.length-1];return i=L&&L[1].type==="linePrefix"?L[2].sliceSerialize(L[1],!0).length:0,c=R,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(R)}function m(R){return R===c?(o++,e.consume(R),m):o<3?n(R):(e.exit("codeFencedFenceSequence"),Aa(R)?ya(e,h,"whitespace")(R):h(R))}function h(R){return R===null||Nn(R)?(e.exit("codeFencedFence"),a.interrupt?t(R):e.check(GM,y,D)(R)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),x(R))}function x(R){return R===null||Nn(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(R)):Aa(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ya(e,f,"whitespace")(R)):R===96&&R===c?n(R):(e.consume(R),x)}function f(R){return R===null||Nn(R)?h(R):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(R))}function b(R){return R===null||Nn(R)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(R)):R===96&&R===c?n(R):(e.consume(R),b)}function y(R){return e.attempt(r,D,w)(R)}function w(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),T}function T(R){return i>0&&Aa(R)?ya(e,A,"linePrefix",i+1)(R):A(R)}function A(R){return R===null||Nn(R)?e.check(GM,y,D)(R):(e.enter("codeFlowValue"),E(R))}function E(R){return R===null||Nn(R)?(e.exit("codeFlowValue"),A(R)):(e.consume(R),E)}function D(R){return e.exit("codeFenced"),t(R)}function S(R,L,I){let F=0;return _;function _(oe){return R.enter("lineEnding"),R.consume(oe),R.exit("lineEnding"),U}function U(oe){return R.enter("codeFencedFence"),Aa(oe)?ya(R,O,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(oe):O(oe)}function O(oe){return oe===c?(R.enter("codeFencedFenceSequence"),W(oe)):I(oe)}function W(oe){return oe===c?(F++,R.consume(oe),W):F>=o?(R.exit("codeFencedFenceSequence"),Aa(oe)?ya(R,J,"whitespace")(oe):J(oe)):I(oe)}function J(oe){return oe===null||Nn(oe)?(R.exit("codeFencedFence"),L(oe)):I(oe)}}}function g3e(e,t,n){const a=this;return r;function r(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return a.parser.lazy[a.now().line]?n(o):t(o)}}const t8={name:"codeIndented",tokenize:b3e},x3e={partial:!0,tokenize:v3e};function b3e(e,t,n){const a=this;return r;
vendor: 5,070 bytes, line 1633
1633function r(d){return e.enter("codeIndented"),ya(e,i,"linePrefix",5)(d)}function i(d){const m=a.events[a.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?o(d):n(d)}function o(d){return d===null?l(d):Nn(d)?e.attempt(x3e,o,l)(d):(e.enter("codeFlowValue"),c(d))}function c(d){return d===null||Nn(d)?(e.exit("codeFlowValue"),o(d)):(e.consume(d),c)}function l(d){return e.exit("codeIndented"),t(d)}}function v3e(e,t,n){const a=this;return r;function r(o){return a.parser.lazy[a.now().line]?n(o):Nn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r):ya(e,i,"linePrefix",5)(o)}function i(o){const c=a.events[a.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(o):Nn(o)?r(o):n(o)}}const y3e={name:"codeText",previous:T3e,resolve:w3e,tokenize:N3e};function w3e(e){let t=e.length-4,n=3,a,r;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=n;++a<t;)if(e[a][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(a=n-1,t++;++a<=t;)r===void 0?a!==t&&e[a][1].type!=="lineEnding"&&(r=a):(a===t||e[a][1].type==="lineEnding")&&(e[r][1].type="codeTextData",a!==r+2&&(e[r][1].end=e[a-1][1].end,e.splice(r+2,a-r-2),t-=a-r-2,a=r+2),r=void 0);return e}function T3e(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function N3e(e,t,n){let a=0,r,i;return o;function o(h){return e.enter("codeText"),e.enter("codeTextSequence"),c(h)}function c(h){return h===96?(e.consume(h),a++,c):(e.exit("codeTextSequence"),l(h))}function l(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),l):h===96?(i=e.enter("codeTextSequence"),r=0,m(h)):Nn(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),l):(e.enter("codeTextData"),d(h))}function d(h){return h===null||h===32||h===96||Nn(h)?(e.exit("codeTextData"),l(h)):(e.consume(h),d)}function m(h){return h===96?(e.consume(h),r++,m):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(i.type="codeTextData",d(h))}}class k3e{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const a=n??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(t,a):t>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(t,n,a){const r=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return a&&W1(this.left,a),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),W1(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),W1(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);W1(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);W1(this.left,n.reverse())}}}function W1(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function QG(e){const t={};let n=-1,a,r,i,o,c,l,d;const m=new k3e(e);for(;++n<m.length;){for(;n in t;)n=t[n];if(a=m.get(n),n&&a[1].type==="chunkFlow"&&m.get(n-1)[1].type==="listItemPrefix"&&(l=a[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(a[0]==="enter")a[1].contentType&&(Object.assign(t,j3e(m,n)),n=t[n],d=!0);else if(a[1]._container){for(i=n,r=void 0;i--;)if(o=m.get(i),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(r&&(m.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;r&&(a[1].end={...m.get(r)[1].start},c=m.slice(r,n),c.unshift(a),m.splice(r,n-r+1,c))}}return Zc(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!d}function j3e(e,t){const n=e.get(t)[1],a=e.get(t)[2];let r=t-1;const i=[];let o=n._tokenizer;o||(o=a.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const c=o.events,l=[],d={};let m,h,x=-1,f=n,b=0,y=0;const w=[y];for(;f;){for(;e.get(++r)[1]!==f;);i.push(r),f._tokenizer||(m=a.sliceStream(f),f.next||m.push(null),h&&o.defineSki
vendor: 22,863 bytes, line 1633
1633p(f.start),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(m),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),h=f,f=f.next}for(f=n;++x<c.length;)c[x][0]==="exit"&&c[x-1][0]==="enter"&&c[x][1].type===c[x-1][1].type&&c[x][1].start.line!==c[x][1].end.line&&(y=x+1,w.push(y),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(o.events=[],f?(f._tokenizer=void 0,f.previous=void 0):w.pop(),x=w.length;x--;){const T=c.slice(w[x],w[x+1]),A=i.pop();l.push([A,A+T.length-1]),e.splice(A,2,T)}for(l.reverse(),x=-1;++x<l.length;)d[b+l[x][0]]=b+l[x][1],b+=l[x][1]-l[x][0]-1;return d}const A3e={resolve:C3e,tokenize:S3e},E3e={partial:!0,tokenize:_3e};function C3e(e){return QG(e),e}function S3e(e,t){let n;return a;function a(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(c)}function r(c){return c===null?i(c):Nn(c)?e.check(E3e,o,i)(c):(e.consume(c),r)}function i(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function o(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}function _3e(e,t,n){const a=this;return r;function r(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ya(e,i,"linePrefix")}function i(o){if(o===null||Nn(o))return n(o);const c=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(o):e.interrupt(a.parser.constructs.flow,n,t)(o)}}function KG(e,t,n,a,r,i,o,c,l){const d=l||Number.POSITIVE_INFINITY;let m=0;return h;function h(T){return T===60?(e.enter(a),e.enter(r),e.enter(i),e.consume(T),e.exit(i),x):T===null||T===32||T===41||$3(T)?n(T):(e.enter(a),e.enter(o),e.enter(c),e.enter("chunkString",{contentType:"string"}),y(T))}function x(T){return T===62?(e.enter(i),e.consume(T),e.exit(i),e.exit(r),e.exit(a),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),f(T))}function f(T){return T===62?(e.exit("chunkString"),e.exit(c),x(T)):T===null||T===60||Nn(T)?n(T):(e.consume(T),T===92?b:f)}function b(T){return T===60||T===62||T===92?(e.consume(T),f):f(T)}function y(T){return!m&&(T===null||T===41||Ms(T))?(e.exit("chunkString"),e.exit(c),e.exit(o),e.exit(a),t(T)):m<d&&T===40?(e.consume(T),m++,y):T===41?(e.consume(T),m--,y):T===null||T===32||T===40||$3(T)?n(T):(e.consume(T),T===92?w:y)}function w(T){return T===40||T===41||T===92?(e.consume(T),y):y(T)}}function ZG(e,t,n,a,r,i){const o=this;let c=0,l;return d;function d(f){return e.enter(a),e.enter(r),e.consume(f),e.exit(r),e.enter(i),m}function m(f){return c>999||f===null||f===91||f===93&&!l||f===94&&!c&&"_hiddenFootnoteSupport"in o.parser.constructs?n(f):f===93?(e.exit(i),e.enter(r),e.consume(f),e.exit(r),e.exit(a),t):Nn(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),h(f))}function h(f){return f===null||f===91||f===93||Nn(f)||c++>999?(e.exit("chunkString"),m(f)):(e.consume(f),l||(l=!Aa(f)),f===92?x:h)}function x(f){return f===91||f===92||f===93?(e.consume(f),c++,h):h(f)}}function eJ(e,t,n,a,r,i){let o;return c;function c(x){return x===34||x===39||x===40?(e.enter(a),e.enter(r),e.consume(x),e.exit(r),o=x===40?41:x,l):n(x)}function l(x){return x===o?(e.enter(r),e.consume(x),e.exit(r),e.exit(a),t):(e.enter(i),d(x))}function d(x){return x===o?(e.exit(i),l(o)):x===null?n(x):Nn(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),ya(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(x))}function m(x){return x===o||x===null||Nn(x)?(e.exit("chunkString"),d(x)):(e.consume(x),x===92?h:m)}function h(x){return x===o||x===92?(e.consume(x),m):m(x)}}function Cb(e,t){let n;return a;function a(r){return Nn(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,a):Aa(r)?ya(e,a,n?"linePrefix":"lineSuffix")(r):t(r)}}const P3e={name:"definition",tokenize:R3e},D3e={partial:!0,tokenize:I3e};function R3e(e,t,n){const a=this;let r;return i;function i(f){return e.enter("definition"),o(f)}function o(f){return ZG.call(a,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function c(f){return r=xu(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),l):n(f)}function l(f){return Ms(f)?Cb(e,d)(f):d(f)}function d(f){return KG(e,m,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function m(f){return e.attempt(D3e,h,h)(f)}function h(f){return Aa(f)?ya(e,x,"whitespace")(f):x(f)}function x(f){return f===null||Nn(f)?(e.exit("definition"),a.parser.defined.push(r),t(f)):n(f)}}function I3e(e,t,n){return a;function a(c){return Ms(c)?Cb(e,r)(c):n(c)}function r(c){return eJ(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function i(c){return Aa(c)?ya(e,o,"whitespace")(c):o(c)}function o(c){return c===null||Nn(c)?t(c):n(c)}}const M3e={name:"hardBreakEscape",tokenize:L3e};function L3e(e,t,n){return a;function a(i){return e.enter("hardBreakEscape"),e.consume(i),r}function r(i){return Nn(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const O3e={name:"headingAtx",resolve:B3e,tokenize:F3e};function B3e(e,t){let n=e.length-2,a=3,r,i;return e[a][1].type==="whitespace"&&(a+=2),n-2>a&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(a===n-1||n-4>a&&e[n-2][1].type==="whitespace")&&(n-=a+1===n?2:4),n>a&&(r={type:"atxHeadingText",start:e[a][1].start,end:e[n][1].end},i={type:"chunkText",start:e[a][1].start,end:e[n][1].end,contentType:"text"},Zc(e,a,n-a+1,[["enter",r,t],["enter",i,t],["exit",i,t],["exit",r,t]])),e}function F3e(e,t,n){let a=0;return r;function r(m){return e.enter("atxHeading"),i(m)}function i(m){return e.enter("atxHeadingSequence"),o(m)}function o(m){return m===35&&a++<6?(e.consume(m),o):m===null||Ms(m)?(e.exit("atxHeadingSequence"),c(m)):n(m)}function c(m){return m===35?(e.enter("atxHeadingSequence"),l(m)):m===null||Nn(m)?(e.exit("atxHeading"),t(m)):Aa(m)?ya(e,c,"whitespace")(m):(e.enter("atxHeadingText"),d(m))}function l(m){return m===35?(e.consume(m),l):(e.exit("atxHeadingSequence"),c(m))}function d(m){return m===null||m===35||Ms(m)?(e.exit("atxHeadingText"),c(m)):(e.consume(m),d)}}const U3e=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],WM=["pre","script","style","textarea"],H3e={concrete:!0,name:"htmlFlow",resolveTo:$3e,tokenize:q3e},V3e={partial:!0,tokenize:J3e},z3e={partial:!0,tokenize:G3e};function $3e(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function q3e(e,t,n){const a=this;let r,i,o,c,l;return d;function d(H){return m(H)}function m(H){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(H),h}function h(H){return H===33?(e.consume(H),x):H===47?(e.consume(H),i=!0,y):H===63?(e.consume(H),r=3,a.interrupt?t:V):Lo(H)?(e.consume(H),o=String.fromCharCode(H),w):n(H)}function x(H){return H===45?(e.consume(H),r=2,f):H===91?(e.consume(H),r=5,c=0,b):Lo(H)?(e.consume(H),r=4,a.interrupt?t:V):n(H)}function f(H){return H===45?(e.consume(H),a.interrupt?t:V):n(H)}function b(H){const ne="CDATA[";return H===ne.charCodeAt(c++)?(e.consume(H),c===ne.length?a.interrupt?t:O:b):n(H)}function y(H){return Lo(H)?(e.consume(H),o=String.fromCharCode(H),w):n(H)}function w(H){if(H===null||H===47||H===62||Ms(H)){const ne=H===47,te=o.toLowerCase();return!ne&&!i&&WM.includes(te)?(r=1,a.interrupt?t(H):O(H)):U3e.includes(o.toLowerCase())?(r=6,ne?(e.consume(H),T):a.interrupt?t(H):O(H)):(r=7,a.interrupt&&!a.parser.lazy[a.now().line]?n(H):i?A(H):E(H))}return H===45||To(H)?(e.consume(H),o+=String.fromCharCode(H),w):n(H)}function T(H){return H===62?(e.consume(H),a.interrupt?t:O):n(H)}function A(H){return Aa(H)?(e.consume(H),A):_(H)}function E(H){return H===47?(e.consume(H),_):H===58||H===95||Lo(H)?(e.consume(H),D):Aa(H)?(e.consume(H),E):_(H)}function D(H){return H===45||H===46||H===58||H===95||To(H)?(e.consume(H),D):S(H)}function S(H){return H===61?(e.consume(H),R):Aa(H)?(e.consume(H),S):E(H)}function R(H){return H===null||H===60||H===61||H===62||H===96?n(H):H===34||H===39?(e.consume(H),l=H,L):Aa(H)?(e.consume(H),R):I(H)}function L(H){return H===l?(e.consume(H),l=null,F):H===null||Nn(H)?n(H):(e.consume(H),L)}function I(H){return H===null||H===34||H===39||H===47||H===60||H===61||H===62||H===96||Ms(H)?S(H):(e.consume(H),I)}function F(H){return H===47||H===62||Aa(H)?E(H):n(H)}function _(H){return H===62?(e.consume(H),U):n(H)}function U(H){return H===null||Nn(H)?O(H):Aa(H)?(e.consume(H),U):n(H)}function O(H){return H===45&&r===2?(e.consume(H),G):H===60&&r===1?(e.consume(H),K):H===62&&r===4?(e.consume(H),Y):H===63&&r===3?(e.consume(H),V):H===93&&r===5?(e.consume(H),pe):Nn(H)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(V3e,z,W)(H)):H===null||Nn(H)?(e.exit("htmlFlowData"),W(H)):(e.consume(H),O)}function W(H){return e.check(z3e,J,z)(H)}function J(H){return e.enter("lineEnding"),e.consume(H),e.exit("lineEnding"),oe}function oe(H){return H===null||Nn(H)?W(H):(e.enter("htmlFlowData"),O(H))}function G(H){return H===45?(e.consume(H),V):O(H)}function K(H){return H===47?(e.consume(H),o="",ee):O(H)}function ee(H){if(H===62){const ne=o.toLowerCase();return WM.includes(ne)?(e.consume(H),Y):O(H)}return Lo(H)&&o.length<8?(e.consume(H),o+=String.fromCharCode(H),ee):O(H)}function pe(H){return H===93?(e.consume(H),V):O(H)}function V(H){return H===62?(e.consume(H),Y):H===45&&r===2?(e.consume(H),V):O(H)}function Y(H){return H===null||Nn(H)?(e.exit("htmlFlowData"),z(H)):(e.consume(H),Y)}function z(H){return e.exit("htmlFlow"),t(H)}}function G3e(e,t,n){const a=this;return r;function r(o){return Nn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return a.parser.lazy[a.now().line]?n(o):t(o)}}function J3e(e,t,n){return a;function a(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Z2,t,n)}}const W3e={name:"htmlText",tokenize:Y3e};function Y3e(e,t,n){const a=this;let r,i,o;return c;function c(V){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(V),l}function l(V){return V===33?(e.consume(V),d):V===47?(e.consume(V),S):V===63?(e.consume(V),E):Lo(V)?(e.consume(V),I):n(V)}function d(V){return V===45?(e.consume(V),m):V===91?(e.consume(V),i=0,b):Lo(V)?(e.consume(V),A):n(V)}function m(V){return V===45?(e.consume(V),f):n(V)}function h(V){return V===null?n(V):V===45?(e.consume(V),x):Nn(V)?(o=h,K(V)):(e.consume(V),h)}function x(V){return V===45?(e.consume(V),f):h(V)}function f(V){return V===62?G(V):V===45?x(V):h(V)}function b(V){const Y="CDATA[";return V===Y.charCodeAt(i++)?(e.consume(V),i===Y.length?y:b):n(V)}function y(V){return V===null?n(V):V===93?(e.consume(V),w):Nn(V)?(o=y,K(V)):(e.consume(V),y)}function w(V){return V===93?(e.consume(V),T):y(V)}function T(V){return V===62?G(V):V===93?(e.consume(V),T):y(V)}function A(V){return V===null||V===62?G(V):Nn(V)?(o=A,K(V)):(e.consume(V),A)}function E(V){return V===null?n(V):V===63?(e.consume(V),D):Nn(V)?(o=E,K(V)):(e.consume(V),E)}function D(V){return V===62?G(V):E(V)}function S(V){return Lo(V)?(e.consume(V),R):n(V)}function R(V){return V===45||To(V)?(e.consume(V),R):L(V)}function L(V){return Nn(V)?(o=L,K(V)):Aa(V)?(e.consume(V),L):G(V)}function I(V){return V===45||To(V)?(e.consume(V),I):V===47||V===62||Ms(V)?F(V):n(V)}function F(V){return V===47?(e.consume(V),G):V===58||V===95||Lo(V)?(e.consume(V),_):Nn(V)?(o=F,K(V)):Aa(V)?(e.consume(V),F):G(V)}function _(V){return V===45||V===46||V===58||V===95||To(V)?(e.consume(V),_):U(V)}function U(V){return V===61?(e.consume(V),O):Nn(V)?(o=U,K(V)):Aa(V)?(e.consume(V),U):F(V)}function O(V){return V===null||V===60||V===61||V===62||V===96?n(V):V===34||V===39?(e.consume(V),r=V,W):Nn(V)?(o=O,K(V)):Aa(V)?(e.consume(V),O):(e.consume(V),J)}function W(V){return V===r?(e.consume(V),r=void 0,oe):V===null?n(V):Nn(V)?(o=W,K(V)):(e.consume(V),W)}function J(V){return V===null||V===34||V===39||V===60||V===61||V===96?n(V):V===47||V===62||Ms(V)?F(V):(e.consume(V),J)}function oe(V){return V===47||V===62||Ms(V)?F(V):n(V)}function G(V){return V===62?(e.consume(V),e.exit("htmlTextData"),e.exit("htmlText"),t):n(V)}function K(V){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(V),e.exit("lineEnding"),ee}function ee(V){return Aa(V)?ya(e,pe,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):pe(V)}function pe(V){return e.enter("htmlTextData"),o(V)}}const R9={name:"labelEnd",resolveAll:Z3e,resolveTo:e4e,tokenize:t4e},X3e={tokenize:n4e},Q3e={tokenize:a4e},K3e={tokenize:s4e};function Z3e(e){let t=-1;const n=[];for(;++t<e.length;){const a=e[t][1];if(n.push(e[t]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const r=a.type==="labelImage"?4:2;a.type="data",t+=r}}return e.length!==n.length&&Zc(e,0,e.length,n),e}function e4e(e,t){let n=e.length,a=0,r,i,o,c;for(;n--;)if(r=e[n][1],i){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[n][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(i=n,r.type!=="labelLink")){a=2;break}}else r.type==="labelEnd"&&(o=n);const l={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},d={type:"label",start:{...e[i][1].start},end:{...e[o][1].end}},m={type:"labelText",start:{...e[i+a+2][1].end},end:{...e[o-2][1].start}};return c=[["enter",l,t],["enter",d,t]],c=yl(c,e.slice(i+1,i+a+3)),c=yl(c,[["enter",m,t]]),c=yl(c,y6(t.parser.constructs.insideSpan.null,e.slice(i+a+4,o-3),t)),c=yl(c,[["exit",m,t],e[o-2],e[o-1],["exit",d,t]]),c=yl(c,e.slice(o+1)),c=yl(c,[["exit",l,t]]),Zc(e,i,e.length,c),e}function t4e(e,t,n){const a=this;let r=a.events.length,i,o;for(;r--;)if((a.events[r][1].type==="labelImage"||a.events[r][1].type==="labelLink")&&!a.events[r][1]._balanced){i=a.events[r][1];break}return c;function c(x){return i?i._inactive?h(x):(o=a.parser.defined.includes(xu(a.sliceSerialize({start:i.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(x),e.exit("labelMarker"),e.exit("labelEnd"),l):n(x)}function l(x){return x===40?e.attempt(X3e,m,o?m:h)(x):x===91?e.attempt(Q3e,m,o?d:h)(x):o?m(x):h(x)}function d(x){return e.attempt(K3e,m,h)(x)}function m(x){return t(x)}function h(x){return i._balanced=!0,n(x)}}function n4e(e,t,n){return a;function a(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),r}function r(h){return Ms(h)?Cb(e,i)(h):i(h)}function i(h){return h===41?m(h):KG(e,o,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function o(h){return Ms(h)?Cb(e,l)(h):m(h)}function c(h){return n(h)}function l(h){return h===34||h===39||h===40?eJ(e,d,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):m(h)}function d(h){return Ms(h)?Cb(e,m)(h):m(h)}function m(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function a4e(e,t,n){const a=this;return r;function r(c){return ZG.call(a,e,i,o,"reference","referenceMarker","referenceString")(c)}function i(c){return a.parser.defined.includes(xu(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function o(c){return n(c)}}function s4e(e,t,n){return a;function a(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),r}function r(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const r4e={name:"labelStartImage",resolveAll:R9.resolveAll,tokenize:i4e};function i4e(e,t,n){const a=this;return r;function r(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),i}function i(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),o):n(c)}function o(c){return c===94&&"_hiddenFootnoteSupport"in a.parser.constructs?n(c):t(c)}}const o4e={name:"labelStartLink",resolveAll:R9.resolveAll,tokenize:c4e};function c4e(e,t,n){const a=this;return r;function r(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),i}function i(o){return o===94&&"_hiddenFootnoteSupport"in a.parser.constructs?n(o):t(o)}}const n8={name:"lineEnding",tokenize:l4e};function l4e(e,t){return n;function n(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ya(e,t,"linePrefix")}}const a3={name:"thematicBreak",tokenize:u4e};function u4e(e,t,n){let a=0,r;return i;function i(d){return e.enter("thematicBreak"),o(d)}function o(d){return r=d,c(d)}function c(d){return d===r?(e.enter("thematicBreakSequence"),l(d)):a>=3&&(d===null||Nn(d))?(e.exit("thematicBreak"),t(d)):n(d)}function l(d){return d===r?(e.consume(d),a++,l):(e.exit("thematicBreakSequence"),Aa(d)?ya(e,c,"whitespace")(d):c(d))}}const dc={continuation:{tokenize:h4e},exit:g4e,name:"list",tokenize:p4e},d4e={partial:!0,tokenize:x4e},m4e={partial:!0,tokenize:f4e};function p4e(e,t,n){const a=this,r=a.events[a.events.length-1];let i=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,o=0;return c;function c(f){const b=a.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!a.containerState.marker||f===a.containerState.marker:R7(f)){if(a.containerState.type||(a.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(a3,n,d)(f):d(f);if(!a.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(f)}return n(f)}function l(f){return R7(f)&&++o<10?(e.consume(f),l):(!a.interrupt||o<2)&&(a.containerState.marker?f===a.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),d(f)):n(f)}function d(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||f,e.check(Z2,a.interrupt?n:m,e.attempt(d4e,x,h))}function m(f){return a.containerState.initialBlankLine=!0,i++,x(f)}function h(f){return Aa(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),x):n(f)}function x(f){return a.containerState.size=i+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function h4e(e,t,n){const a=this;return a.containerState._closeFlow=void 0,e.check(Z2,r,i);function r(c){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,ya(e,t,"listItemIndent",a.containerState.size+1)(c)}function i(c){return a.containerState.furtherBlankLines||!Aa(c)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,o(c)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(m4e,t,o)(c))}function o(c){return a.containerState._closeFlow=!0,a.interrupt=void 0,ya(e,e.attempt(dc,t,n),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function f4e(e,t,n){const a=this;return ya(e,r,"listItemIndent",a.containerState.size+1);function r(i){const o=a.events[a.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===a.containerState.size?t(i):n(i)}}function g4e(e){e.exit(this.containerState.type)}function x4e(e,t,n){const a=this;return ya(e,r,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(i){const o=a.events[a.events.length-1];return!Aa(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const YM={name:"setextUnderline",resolveTo:b4e,tokenize:v4e};function b4e(e,t){let n=e.length,a,r,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){a=n;break}e[n][1].type==="paragraph"&&(r=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,t]),e.splice(i+1,0,["exit",e[a][1],t]),e[a][1].end={...e[i][1].end}):e[a][1]=o,e.push(["exit",o,t]),e}function v4e(e,t,n){const a=this;let r;return i;function i(d){let m=a.events.length,h;for(;m--;)if(a.events[m][1].type!=="lineEnding"&&a.events[m][1].type!=="linePrefix"&&a.events[m][1].type!=="content"){h=a.events[m][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||h)?(e.enter("setextHeadingLine"),r=d,o(d)):n(d)}function o(d){return e.enter("setextHeadingLineSequence"),c(d)}function c(d){return d===r?(e.consume(d),c):(e.exit("setextHeadingLineSequence"),Aa(d)?ya(e,l,"lineSuffix")(d):l(d))}function l(d){return d===null||Nn(d)?(e.exit("setextHeadingLine"),t(d)):n(d)}}const y4e={tokenize:w4e};function w4e(e){const t=this,n=e.attempt(Z2,a,e.attempt(this.parser.constructs.flowInitial,r,ya(e,e.attempt(this.parser.constructs.flow,r,e.attempt(A3e,r)),"linePrefix")));return n;function a(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function r(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const T4e={resolveAll:nJ()},N4e=tJ("string"),k4e=tJ("text");function tJ(e){return{resolveAll:nJ(e==="text"?j4e:void 0),tokenize:t};function t(n){const a=this,r=this.parser.constructs[e],i=n.attempt(r,o,c);return o;function o(m){return d(m)?i(m):c(m)}function c(m){if(m===null){n.consume(m);return}return n.enter("data"),n.consume(m),l}function l(m){return d(m)?(n.exit("data"),i(m)):(n.consume(m),l)}function d(m){if(m===null)return!0;const h=r[m];let x=-1;if(h)for(;++x<h.length;){const f=h[x];if(!f.previous||f.previous.call(a,a.previous))return!0}return!1}}}function nJ(e){return t;function t(n,a){let r=-1,i;for(;++r<=n.length;)i===void 0?n[r]&&n[r][1].type==="data"&&(i=r,r++):(!n[r]||n[r][1].type!=="data")&&(r!==i+2&&(n[i][1].end=n[r-1][1].end,n.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(n,a):n}}function j4e(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const a=e[n-1][1],r=t.sliceStream(a);let i=r.length,o=-1,c=0,l;for(;i--;){const d=r[i];
vendor: 4,930 bytes, lines 1633-1635
1633if(typeof d=="string"){for(o=d.length;d.charCodeAt(o-1)===32;)c++,o--;if(o)break;o=-1}else if(d===-2)l=!0,c++;else if(d!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const d={type:n===e.length||l||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?o:a.start._bufferIndex+o,_index:a.start._index+i,line:a.end.line,column:a.end.column-c,offset:a.end.offset-c},end:{...a.end}};a.end={...d.start},a.start.offset===a.end.offset?Object.assign(a,d):(e.splice(n,0,["enter",d,t],["exit",d,t]),n+=2)}n++}return e}const A4e={42:dc,43:dc,45:dc,48:dc,49:dc,50:dc,51:dc,52:dc,53:dc,54:dc,55:dc,56:dc,57:dc,62:WG},E4e={91:P3e},C4e={[-2]:t8,[-1]:t8,32:t8},S4e={35:O3e,42:a3,45:[YM,a3],60:H3e,61:YM,95:a3,96:JM,126:JM},_4e={38:XG,92:YG},P4e={[-5]:n8,[-4]:n8,[-3]:n8,33:r4e,38:XG,42:I7,60:[o3e,W3e],91:o4e,92:[M3e,YG],93:R9,95:I7,96:y3e},D4e={null:[I7,T4e]},R4e={null:[42,95]},I4e={null:[]},M4e=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:R4e,contentInitial:E4e,disable:I4e,document:A4e,flow:S4e,flowInitial:C4e,insideSpan:D4e,string:_4e,text:P4e},Symbol.toStringTag,{value:"Module"}));function L4e(e,t,n){let a={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const r={},i=[];let o=[],c=[];const l={attempt:L(S),check:L(R),consume:A,enter:E,exit:D,interrupt:L(R,{interrupt:!0})},d={code:null,containerState:{},defineSkip:y,events:[],now:b,parser:e,previous:null,sliceSerialize:x,sliceStream:f,write:h};let m=t.tokenize.call(d,l);return t.resolveAll&&i.push(t),d;function h(U){return o=yl(o,U),w(),o[o.length-1]!==null?[]:(I(t,0),d.events=y6(i,d.events,d),d.events)}function x(U,O){return B4e(f(U),O)}function f(U){return O4e(o,U)}function b(){const{_bufferIndex:U,_index:O,line:W,column:J,offset:oe}=a;return{_bufferIndex:U,_index:O,line:W,column:J,offset:oe}}function y(U){r[U.line]=U.column,_()}function w(){let U;for(;a._index<o.length;){const O=o[a._index];if(typeof O=="string")for(U=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===U&&a._bufferIndex<O.length;)T(O.charCodeAt(a._bufferIndex));else T(O)}}function T(U){m=m(U)}function A(U){Nn(U)?(a.line++,a.column=1,a.offset+=U===-3?2:1,_()):U!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===o[a._index].length&&(a._bufferIndex=-1,a._index++)),d.previous=U}function E(U,O){const W=O||{};return W.type=U,W.start=b(),d.events.push(["enter",W,d]),c.push(W),W}function D(U){const O=c.pop();return O.end=b(),d.events.push(["exit",O,d]),O}function S(U,O){I(U,O.from)}function R(U,O){O.restore()}function L(U,O){return W;function W(J,oe,G){let K,ee,pe,V;return Array.isArray(J)?z(J):"tokenize"in J?z([J]):Y(J);function Y(me){return fe;function fe(Ae){const xe=Ae!==null&&me[Ae],ae=Ae!==null&&me.null,le=[...Array.isArray(xe)?xe:xe?[xe]:[],...Array.isArray(ae)?ae:ae?[ae]:[]];return z(le)(Ae)}}function z(me){return K=me,ee=0,me.length===0?G:H(me[ee])}function H(me){return fe;function fe(Ae){return V=F(),pe=me,me.partial||(d.currentConstruct=me),me.name&&d.parser.constructs.disable.null.includes(me.name)?te():me.tokenize.call(O?Object.assign(Object.create(d),O):d,l,ne,te)(Ae)}}function ne(me){return U(pe,V),oe}function te(me){return V.restore(),++ee<K.length?H(K[ee]):G}}}function I(U,O){U.resolveAll&&!i.includes(U)&&i.push(U),U.resolve&&Zc(d.events,O,d.events.length-O,U.resolve(d.events.slice(O),d)),U.resolveTo&&(d.events=U.resolveTo(d.events,d))}function F(){const U=b(),O=d.previous,W=d.currentConstruct,J=d.events.length,oe=Array.from(c);return{from:J,restore:G};function G(){a=U,d.previous=O,d.currentConstruct=W,d.events.length=J,c=oe,_()}}function _(){a.line in r&&a.column<2&&(a.column=r[a.line],a.offset+=r[a.line]-1)}}function O4e(e,t){const n=t.start._index,a=t.start._bufferIndex,r=t.end._index,i=t.end._bufferIndex;let o;if(n===r)o=[e[n].slice(a,i)];else{if(o=e.slice(n,r),a>-1){const c=o[0];typeof c=="string"?o[0]=c.slice(a):o.shift()}i>0&&o.push(e[r].slice(0,i))}return o}function B4e(e,t){let n=-1;const a=[];let r;for(;++n<e.length;){const i=e[n];let o;if(typeof i=="string")o=i;else switch(i){case-5:{o="\r";break}case-4:{o=` 1634`;break}case-3:{o=`\r 1635`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&r)continue;o=" ";break}default:o=String.fromCharCode(i)}r=i===-2,a.push(o)}return a.join("")}function F4e(e){const a={constructs:GG([M4e,...(e||{}).extensions||[]]),content:r(e3e),defined:[],document:r(n3e),flow:r(y4e),lazy:{},string:r(N4e),text:r(k4e)};return a;function r(i){return o;function o(c){return L4e(a,i,c)}}}function U4e(e){for(;!QG(e););return e}const XM=/[\0\t\n\r]/g;function H4e(){let e=1,t="",n=!0,a;return r;function r(i,o,c){const l=[];let d,m,h,x,f;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(o||void 0).decode(i)),h=0,t="",n&&(i.charCodeAt(0)===65279&&h++,n=void 0);h<i.length;){if(XM.lastIndex=h,d=XM.exec(i),x=d&&d.index!==void 0?d.index:i.length,f=i.charCodeAt(x),!d){t=i.slice(h);break}
vendor: 17,367 bytes, lines 1635-1639
1635if(f===10&&h===x&&a)l.push(-3),a=void 0;else switch(a&&(l.push(-5),a=void 0),h<x&&(l.push(i.slice(h,x)),e+=x-h),f){case 0:{l.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,l.push(-2);e++<m;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:a=!0,e=1}h=x+1}return c&&(a&&l.push(-5),t&&l.push(t),l.push(null)),l}}const V4e=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function z4e(e){return e.replace(V4e,$4e)}function $4e(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),i=r===120||r===88;return JG(n.slice(i?2:1),i?16:10)}return D9(n)||e}const aJ={}.hasOwnProperty;function q4e(e,t,n){return typeof t!="string"&&(n=t,t=void 0),G4e(n)(U4e(F4e(n).document().write(H4e()(e,t,!0))))}function G4e(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(it),autolinkProtocol:F,autolinkEmail:F,atxHeading:i(be),blockQuote:i(ae),characterEscape:F,characterReference:F,codeFenced:i(le),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(le,o),codeText:i(ze,o),codeTextData:F,data:F,codeFlowValue:F,definition:i(pt),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(xt),hardBreakEscape:i(Tt),hardBreakTrailing:i(Tt),htmlFlow:i(Xt,o),htmlFlowData:F,htmlText:i(Xt,o),htmlTextData:F,image:i(Jt),label:o,link:i(it),listItem:i(ct),listItemValue:x,listOrdered:i(at,h),listUnordered:i(at),paragraph:i(Ct),reference:H,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(be),strong:i(Ht),thematicBreak:i(Hn)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:xe,autolinkProtocol:Ae,blockQuote:l(),characterEscapeValue:_,characterReferenceMarkerHexadecimal:te,characterReferenceMarkerNumeric:te,characterReferenceValue:me,characterReference:fe,codeFenced:l(w),codeFencedFence:y,codeFencedFenceInfo:f,codeFencedFenceMeta:b,codeFlowValue:_,codeIndented:l(T),codeText:l(oe),codeTextData:_,data:_,definition:l(),definitionDestinationString:D,definitionLabelString:A,definitionTitleString:E,emphasis:l(),hardBreakEscape:l(O),hardBreakTrailing:l(O),htmlFlow:l(W),htmlFlowData:_,htmlText:l(J),htmlTextData:_,image:l(K),label:pe,labelText:ee,lineEnding:U,link:l(G),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:ne,resourceDestinationString:V,resourceTitleString:Y,resource:z,setextHeading:l(I),setextHeadingLineSequence:L,setextHeadingText:R,strong:l(),thematicBreak:l()}};sJ(t,(e||{}).mdastExtensions||[]);const n={};return a;function a(qe){let dt={type:"root",children:[]};const Dt={stack:[dt],tokenStack:[],config:t,enter:c,exit:d,buffer:o,resume:m,data:n},yt=[];let Mt=-1;for(;++Mt<qe.length;)if(qe[Mt][1].type==="listOrdered"||qe[Mt][1].type==="listUnordered")if(qe[Mt][0]==="enter")yt.push(Mt);else{const zt=yt.pop();Mt=r(qe,zt,Mt)}for(Mt=-1;++Mt<qe.length;){const zt=t[qe[Mt][0]];aJ.call(zt,qe[Mt][1].type)&&zt[qe[Mt][1].type].call(Object.assign({sliceSerialize:qe[Mt][2].sliceSerialize},Dt),qe[Mt][1])}if(Dt.tokenStack.length>0){const zt=Dt.tokenStack[Dt.tokenStack.length-1];(zt[1]||QM).call(Dt,void 0,zt[0])}for(dt.position={start:Lp(qe.length>0?qe[0][1].start:{line:1,column:1,offset:0}),end:Lp(qe.length>0?qe[qe.length-2][1].end:{line:1,column:1,offset:0})},Mt=-1;++Mt<t.transforms.length;)dt=t.transforms[Mt](dt)||dt;return dt}function r(qe,dt,Dt){let yt=dt-1,Mt=-1,zt=!1,ca,jn,Qt,xn;for(;++yt<=Dt;){const bn=qe[yt];switch(bn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{bn[0]==="enter"?Mt++:Mt--,xn=void 0;break}case"lineEndingBlank":{bn[0]==="enter"&&(ca&&!xn&&!Mt&&!Qt&&(Qt=yt),xn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:xn=void 0}if(!Mt&&bn[0]==="enter"&&bn[1].type==="listItemPrefix"||Mt===-1&&bn[0]==="exit"&&(bn[1].type==="listUnordered"||bn[1].type==="listOrdered")){if(ca){let rn=yt;for(jn=void 0;rn--;){const He=qe[rn];if(He[1].type==="lineEnding"||He[1].type==="lineEndingBlank"){if(He[0]==="exit")continue;jn&&(qe[jn][1].type="lineEndingBlank",zt=!0),He[1].type="lineEnding",jn=rn}else if(!(He[1].type==="linePrefix"||He[1].type==="blockQuotePrefix"||He[1].type==="blockQuotePrefixWhitespace"||He[1].type==="blockQuoteMarker"||He[1].type==="listItemIndent"))break}Qt&&(!jn||Qt<jn)&&(ca._spread=!0),ca.end=Object.assign({},jn?qe[jn][1].start:bn[1].end),qe.splice(jn||yt,0,["exit",ca,bn[2]]),yt++,Dt++}if(bn[1].type==="listItemPrefix"){const rn={type:"listItem",_spread:!1,start:Object.assign({},bn[1].start),end:void 0};ca=rn,qe.splice(yt,0,["enter",rn,bn[2]]),yt++,Dt++,Qt=void 0,xn=!0}}}return qe[dt][1]._spread=zt,Dt}function i(qe,dt){return Dt;function Dt(yt){c.call(this,qe(yt),yt),dt&&dt.call(this,yt)}}function o(){this.stack.push({type:"fragment",children:[]})}function c(qe,dt,Dt){this.stack[this.stack.length-1].children.push(qe),this.stack.push(qe),this.tokenStack.push([dt,Dt||void 0]),qe.position={start:Lp(dt.start),end:void 0}}function l(qe){return dt;function dt(Dt){qe&&qe.call(this,Dt),d.call(this,Dt)}}function d(qe,dt){const Dt=this.stack.pop(),yt=this.tokenStack.pop();if(yt)yt[0].type!==qe.type&&(dt?dt.call(this,qe,yt[0]):(yt[1]||QM).call(this,qe,yt[0]));else throw new Error("Cannot close `"+qe.type+"` ("+Eb({start:qe.start,end:qe.end})+"): itâs not open");Dt.position.end=Lp(qe.end)}function m(){return P9(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function x(qe){if(this.data.expectingFirstListItemValue){const dt=this.stack[this.stack.length-2];dt.start=Number.parseInt(this.sliceSerialize(qe),10),this.data.expectingFirstListItemValue=void 0}}function f(){const qe=this.resume(),dt=this.stack[this.stack.length-1];dt.lang=qe}function b(){const qe=this.resume(),dt=this.stack[this.stack.length-1];dt.meta=qe}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const qe=this.resume(),dt=this.stack[this.stack.length-1];dt.value=qe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function T(){const qe=this.resume(),dt=this.stack[this.stack.length-1];dt.value=qe.replace(/(\r?\n|\r)$/g,"")}function A(qe){const dt=this.resume(),Dt=this.stack[this.stack.length-1];Dt.label=dt,Dt.identifier=xu(this.sliceSerialize(qe)).toLowerCase()}function E(){const qe=this.resume(),dt=this.stack[this.stack.length-1];dt.title=qe}function D(){const qe=this.resume(),dt=this.stack[this.stack.length-1];dt.url=qe}function S(qe){const dt=this.stack[this.stack.length-1];if(!dt.depth){const Dt=this.sliceSerialize(qe).length;dt.depth=Dt}}function R(){this.data.setextHeadingSlurpLineEnding=!0}function L(qe){const dt=this.stack[this.stack.length-1];dt.depth=this.sliceSerialize(qe).codePointAt(0)===61?1:2}function I(){this.data.setextHeadingSlurpLineEnding=void 0}function F(qe){const Dt=this.stack[this.stack.length-1].children;let yt=Dt[Dt.length-1];(!yt||yt.type!=="text")&&(yt=wn(),yt.position={start:Lp(qe.start),end:void 0},Dt.push(yt)),this.stack.push(yt)}function _(qe){const dt=this.stack.pop();dt.value+=this.sliceSerialize(qe),dt.position.end=Lp(qe.end)}function U(qe){const dt=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Dt=dt.children[dt.children.length-1];Dt.position.end=Lp(qe.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(dt.type)&&(F.call(this,qe),_.call(this,qe))}function O(){this.data.atHardBreak=!0}function W(){const qe=this.resume(),dt=this.stack[this.stack.length-1];dt.value=qe}function J(){const qe=this.resume(),dt=this.stack[this.stack.length-1];dt.value=qe}function oe(){const qe=this.resume(),dt=this.stack[this.stack.length-1];dt.value=qe}function G(){const qe=this.stack[this.stack.length-1];if(this.data.inReference){const dt=this.data.referenceType||"shortcut";qe.type+="Reference",qe.referenceType=dt,delete qe.url,delete qe.title}else delete qe.identifier,delete qe.label;this.data.referenceType=void 0}function K(){const qe=this.stack[this.stack.length-1];if(this.data.inReference){const dt=this.data.referenceType||"shortcut";qe.type+="Reference",qe.referenceType=dt,delete qe.url,delete qe.title}else delete qe.identifier,delete qe.label;this.data.referenceType=void 0}function ee(qe){const dt=this.sliceSerialize(qe),Dt=this.stack[this.stack.length-2];Dt.label=z4e(dt),Dt.identifier=xu(dt).toLowerCase()}function pe(){const qe=this.stack[this.stack.length-1],dt=this.resume(),Dt=this.stack[this.stack.length-1];if(this.data.inReference=!0,Dt.type==="link"){const yt=qe.children;Dt.children=yt}else Dt.alt=dt}function V(){const qe=this.resume(),dt=this.stack[this.stack.length-1];dt.url=qe}function Y(){const qe=this.resume(),dt=this.stack[this.stack.length-1];dt.title=qe}function z(){this.data.inReference=void 0}function H(){this.data.referenceType="collapsed"}function ne(qe){const dt=this.resume(),Dt=this.stack[this.stack.length-1];Dt.label=dt,Dt.identifier=xu(this.sliceSerialize(qe)).toLowerCase(),this.data.referenceType="full"}function te(qe){this.data.characterReferenceType=qe.type}function me(qe){const dt=this.sliceSerialize(qe),Dt=this.data.characterReferenceType;let yt;Dt?(yt=JG(dt,Dt==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):yt=D9(dt);const Mt=this.stack[this.stack.length-1];Mt.value+=yt}function fe(qe){const dt=this.stack.pop();dt.position.end=Lp(qe.end)}function Ae(qe){_.call(this,qe);const dt=this.stack[this.stack.length-1];dt.url=this.sliceSerialize(qe)}function xe(qe){_.call(this,qe);const dt=this.stack[this.stack.length-1];dt.url="mailto:"+this.sliceSerialize(qe)}function ae(){return{type:"blockquote",children:[]}}function le(){return{type:"code",lang:null,meta:null,value:""}}function ze(){return{type:"inlineCode",value:""}}function pt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function xt(){return{type:"emphasis",children:[]}}function be(){return{type:"heading",depth:0,children:[]}}function Tt(){return{type:"break"}}function Xt(){return{type:"html",value:""}}function Jt(){return{type:"image",title:null,url:"",alt:null}}function it(){return{type:"link",title:null,url:"",children:[]}}function at(qe){return{type:"list",ordered:qe.type==="listOrdered",start:null,spread:qe._spread,children:[]}}function ct(qe){return{type:"listItem",spread:qe._spread,checked:null,children:[]}}function Ct(){return{type:"paragraph",children:[]}}function Ht(){return{type:"strong",children:[]}}function wn(){return{type:"text",value:""}}function Hn(){return{type:"thematicBreak"}}}function Lp(e){return{line:e.line,column:e.column,offset:e.offset}}function sJ(e,t){let n=-1;for(;++n<t.length;){const a=t[n];Array.isArray(a)?sJ(e,a):J4e(e,a)}}function J4e(e,t){let n;for(n in t)if(aJ.call(t,n))switch(n){case"canContainEols":{const a=t[n];a&&e[n].push(...a);break}case"transforms":{const a=t[n];a&&e[n].push(...a);break}case"enter":case"exit":{const a=t[n];a&&Object.assign(e[n],a);break}}}function QM(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Eb({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Eb({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Eb({start:t.start,end:t.end})+") is still open")}function W4e(e){const t=this;t.parser=n;function n(a){return q4e(a,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Y4e(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function X4e(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` 1636`}]}function Q4e(e,t){const n=t.value?t.value+` 1637`:"",a={};t.lang&&(a.className=["language-"+t.lang]);let r={type:"element",tagName:"code",properties:a,children:[{type:"text",value:n}]};return t.meta&&(r.data={meta:t.meta}),e.patch(t,r),r=e.applyData(t,r),r={type:"element",tagName:"pre",properties:{},children:[r]},e.patch(t,r),r}function K4e(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Z4e(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function e6e(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),r=Ex(a.toLowerCase()),i=e.footnoteOrder.indexOf(a);let o,c=e.footnoteCounts.get(a);c===void 0?(c=0,e.footnoteOrder.push(a),o=e.footnoteOrder.length):o=i+1,c+=1,e.footnoteCounts.set(a,c);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+r,id:n+"fnref-"+r+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const d={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,d),e.applyData(t,d)}function t6e(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function n6e(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function rJ(e,t){const n=t.referenceType;let a="]";if(n==="collapsed"?a+="[]":n==="full"&&(a+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+a}];const r=e.all(t),i=r[0];i&&i.type==="text"?i.value="["+i.value:r.unshift({type:"text",value:"["});const o=r[r.length-1];return o&&o.type==="text"?o.value+=a:r.push({type:"text",value:a}),r}function a6e(e,t){const n=String(t.identifier).toUpperCase(),a=e.definitionById.get(n);if(!a)return rJ(e,t);const r={src:Ex(a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(r.title=a.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function s6e(e,t){const n={src:Ex(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const a={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,a),e.applyData(t,a)}function r6e(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const a={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,a),e.applyData(t,a)}function i6e(e,t){const n=String(t.identifier).toUpperCase(),a=e.definitionById.get(n);if(!a)return rJ(e,t);const r={href:Ex(a.url||"")};a.title!==null&&a.title!==void 0&&(r.title=a.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function o6e(e,t){const n={href:Ex(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const a={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function c6e(e,t,n){const a=e.all(t),r=n?l6e(n):iJ(t),i={},o=[];if(typeof t.checked=="boolean"){const m=a[0];let h;m&&m.type==="element"&&m.tagName==="p"?h=m:(h={type:"element",tagName:"p",properties:{},children:[]},a.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let c=-1;for(;++c<a.length;){const m=a[c];(r||c!==0||m.type!=="element"||m.tagName!=="p")&&o.push({type:"text",value:` 1638`}),m.type==="element"&&m.tagName==="p"&&!r?o.push(...m.children):o.push(m)}const l=a[a.length-1];l&&(r||l.type!=="element"||l.tagName!=="p")&&o.push({type:"text",value:` 1639`});const d={type:"element",tagName:"li",properties:i,children:o};return e.patch(t,d),e.applyData(t,d)}function l6e(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let a=-1;for(;!t&&++a<n.length;)t=iJ(n[a])}return t}function iJ(e){const t=e.spread;return t??e.children.length>1}function u6e(e,t){const n={},a=e.all(t);let r=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++r<a.length;){const o=a[r];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)}function d6e(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function m6e(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function p6e(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function h6e(e,t){const n=e.all(t),a=n.shift(),r=[];if(a){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(t.children[0],o),r.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=Bd(t.children[1]),l=b6(t.children[t.children.length-1]);c&&l&&(o.position={start:c,end:l}),r.push(o)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)}function f6e(e,t,n){const a=n?n.children:void 0,i=(a?a.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,c=o?o.length:t.children.length;let l=-1;const d=[];for(;++l<c;){const h=t.children[l],x={},f=o?o[l]:void 0;
vendor: 4,394 bytes, line 1639
1639f&&(x.align=f);let b={type:"element",tagName:i,properties:x,children:[]};h&&(b.children=e.all(h),e.patch(h,b),b=e.applyData(h,b)),d.push(b)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(d,!0)};return e.patch(t,m),e.applyData(t,m)}function g6e(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const KM=9,ZM=32;function x6e(e){const t=String(e),n=/\r?\n|\r/g;let a=n.exec(t),r=0;const i=[];for(;a;)i.push(eL(t.slice(r,a.index),r>0,!0),a[0]),r=a.index+a[0].length,a=n.exec(t);return i.push(eL(t.slice(r),r>0,!1)),i.join("")}function eL(e,t,n){let a=0,r=e.length;if(t){let i=e.codePointAt(a);for(;i===KM||i===ZM;)a++,i=e.codePointAt(a)}if(n){let i=e.codePointAt(r-1);for(;i===KM||i===ZM;)r--,i=e.codePointAt(r-1)}return r>a?e.slice(a,r):""}function b6e(e,t){const n={type:"text",value:x6e(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function v6e(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const y6e={blockquote:Y4e,break:X4e,code:Q4e,delete:K4e,emphasis:Z4e,footnoteReference:e6e,heading:t6e,html:n6e,imageReference:a6e,image:s6e,inlineCode:r6e,linkReference:i6e,link:o6e,listItem:c6e,list:u6e,paragraph:d6e,root:m6e,strong:p6e,table:h6e,tableCell:g6e,tableRow:f6e,text:b6e,thematicBreak:v6e,toml:m5,yaml:m5,definition:m5,footnoteDefinition:m5};function m5(){}const oJ=-1,w6=0,Sb=1,q3=2,I9=3,M9=4,L9=5,O9=6,cJ=7,lJ=8,tL=typeof self=="object"?self:globalThis,w6e=(e,t)=>{const n=(r,i)=>(e.set(i,r),r),a=r=>{if(e.has(r))return e.get(r);const[i,o]=t[r];switch(i){case w6:case oJ:return n(o,r);case Sb:{const c=n([],r);for(const l of o)c.push(a(l));return c}case q3:{const c=n({},r);for(const[l,d]of o)c[a(l)]=a(d);return c}case I9:return n(new Date(o),r);case M9:{const{source:c,flags:l}=o;return n(new RegExp(c,l),r)}case L9:{const c=n(new Map,r);for(const[l,d]of o)c.set(a(l),a(d));return c}case O9:{const c=n(new Set,r);for(const l of o)c.add(a(l));return c}case cJ:{const{name:c,message:l}=o;return n(new tL[c](l),r)}case lJ:return n(BigInt(o),r);case"BigInt":return n(Object(BigInt(o)),r);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:c}=new Uint8Array(o);return n(new DataView(c),o)}}return n(new tL[i](o),r)};return a},nL=e=>w6e(new Map,e)(0),wg="",{toString:T6e}={},{keys:N6e}=Object,Y1=e=>{const t=typeof e;if(t!=="object"||!e)return[w6,t];const n=T6e.call(e).slice(8,-1);switch(n){case"Array":return[Sb,wg];case"Object":return[q3,wg];case"Date":return[I9,wg];case"RegExp":return[M9,wg];case"Map":return[L9,wg];case"Set":return[O9,wg];case"DataView":return[Sb,n]}return n.includes("Array")?[Sb,n]:n.includes("Error")?[cJ,n]:[q3,n]},p5=([e,t])=>e===w6&&(t==="function"||t==="symbol"),k6e=(e,t,n,a)=>{const r=(o,c)=>{const l=a.push(o)-1;return n.set(c,l),l},i=o=>{if(n.has(o))return n.get(o);let[c,l]=Y1(o);switch(c){case w6:{let m=o;switch(l){case"bigint":c=lJ,m=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);m=null;break;case"undefined":return r([oJ],o)}return r([c,m],o)}case Sb:{if(l){let x=o;return l==="DataView"?x=new Uint8Array(o.buffer):l==="ArrayBuffer"&&(x=new Uint8Array(o)),r([l,[...x]],o)}const m=[],h=r([c,m],o);for(const x of o)m.push(i(x));return h}case q3:{if(l)switch(l){case"BigInt":return r([l,o.toString()],o);case"Boolean":case"Number":case"String":return r([l,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());const m=[],h=r([c,m],o);for(const x of N6e(o))(e||!p5(Y1(o[x])))&&m.push([i(x),i(o[x])]);return h}case I9:return r([c,o.toISOString()],o);case M9:{const{source:m,flags:h}=o;return r([c,{source:m,flags:h}],o)}case L9:{const m=[],h=r([c,m],o);for(const[x,f]of o)(e||!(p5(Y1(x))||p5(Y1(f))))&&m.push([i(x),i(f)]);return h}case O9:{const m=[],h=r([c,m],o);for(const x of o)(e||!p5(Y1(x)))&&m.push(i(x));return h}}const{message:d}=o;return r([c,{name:l,message:d}],o)};return i},aL=(e,{json:t,lossy:n}={})=>{const a=[];return k6e(!(t||n),!!t,new Map,a)(e),a},lx=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?nL(aL(e,t)):structuredClone(e):(e,t)=>nL(aL(e,t));function j6e(e,t){const n=[{type:"text",value:"â©"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function A6e(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}
vendor: 2,488 bytes, lines 1639-1641
1639function E6e(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||j6e,a=e.options.footnoteBackLabel||A6e,r=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let l=-1;for(;++l<e.footnoteOrder.length;){const d=e.footnoteById.get(e.footnoteOrder[l]);if(!d)continue;const m=e.all(d),h=String(d.identifier).toUpperCase(),x=Ex(h.toLowerCase());let f=0;const b=[],y=e.footnoteCounts.get(h);for(;y!==void 0&&++f<=y;){b.length>0&&b.push({type:"text",value:" "});let A=typeof n=="string"?n:n(l,f);typeof A=="string"&&(A={type:"text",value:A}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+x+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(l,f),className:["data-footnote-backref"]},children:Array.isArray(A)?A:[A]})}const w=m[m.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const A=w.children[w.children.length-1];A&&A.type==="text"?A.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...b)}else m.push(...b);const T={type:"element",tagName:"li",properties:{id:t+"fn-"+x},children:e.wrap(m,!0)};e.patch(d,T),c.push(T)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...lx(o),id:"footnote-label"},children:[{type:"text",value:r}]},{type:"text",value:` 1640`},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:` 1641`}]}}const ev=(function(e){if(e==null)return P6e;if(typeof e=="function")return T6(e);if(typeof e=="object")return Array.isArray(e)?C6e(e):S6e(e);if(typeof e=="string")return _6e(e);throw new Error("Expected function, string, or object as test")});function C6e(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=ev(e[n]);return T6(a);function a(...r){let i=-1;for(;++i<t.length;)if(t[i].apply(this,r))return!0;return!1}}function S6e(e){const t=e;return T6(n);function n(a){const r=a;let i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function _6e(e){return T6(t);function t(n){return n&&n.type===e}}function T6(e){return t;function t(n,a,r){return!!(D6e(n)&&e.call(this,n,typeof a=="number"?a:void 0,r||void 0))}}function P6e(){return!0}function D6e(e){return e!==null&&typeof e=="object"&&"type"in e}const uJ=[],cb=!0,M7=!1,G3="skip";function B9(e,t,n,a){let r;typeof t=="function"&&typeof n!="function"?(a=n,n=t):r=t;
vendor: 4,656 bytes, lines 1641-1645
1641const i=ev(r),o=a?-1:1;c(e,void 0,[])();function c(l,d,m){const h=l&&typeof l=="object"?l:{};if(typeof h.type=="string"){const f=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(x,"name",{value:"node ("+(l.type+(f?"<"+f+">":""))+")"})}return x;function x(){let f=uJ,b,y,w;if((!t||i(l,d,m[m.length-1]||void 0))&&(f=R6e(n(l,m)),f[0]===M7))return f;if("children"in l&&l.children){const T=l;if(T.children&&f[0]!==G3)for(y=(a?T.children.length:-1)+o,w=m.concat(T);y>-1&&y<T.children.length;){const A=T.children[y];if(b=c(A,y,w)(),b[0]===M7)return b;y=typeof b[1]=="number"?b[1]:y+o}}return f}}}function R6e(e){return Array.isArray(e)?e:typeof e=="number"?[cb,e]:e==null?uJ:[e]}function z0(e,t,n,a){let r,i,o;typeof t=="function"&&typeof n!="function"?(i=void 0,o=t,r=n):(i=t,o=n,r=a),B9(e,i,c,r);function c(l,d){const m=d[d.length-1],h=m?m.children.indexOf(l):void 0;return o(l,h,m)}}const L7={}.hasOwnProperty,I6e={};function M6e(e,t){const n=t||I6e,a=new Map,r=new Map,i=new Map,o={...y6e,...n.handlers},c={all:d,applyData:O6e,definitionById:a,footnoteById:r,footnoteCounts:i,footnoteOrder:[],handlers:o,one:l,options:n,patch:L6e,wrap:F6e};return z0(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const h=m.type==="definition"?a:r,x=String(m.identifier).toUpperCase();h.has(x)||h.set(x,m)}}),c;function l(m,h){const x=m.type,f=c.handlers[x];if(L7.call(c.handlers,x)&&f)return f(c,m,h);if(c.options.passThrough&&c.options.passThrough.includes(x)){if("children"in m){const{children:y,...w}=m,T=lx(w);return T.children=c.all(m),T}return lx(m)}return(c.options.unknownHandler||B6e)(c,m,h)}function d(m){const h=[];if("children"in m){const x=m.children;let f=-1;for(;++f<x.length;){const b=c.one(x[f],m);if(b){if(f&&x[f-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=sL(b.value)),!Array.isArray(b)&&b.type==="element")){const y=b.children[0];y&&y.type==="text"&&(y.value=sL(y.value))}Array.isArray(b)?h.push(...b):h.push(b)}}}return h}}function L6e(e,t){e.position&&(t.position=A5e(e))}function O6e(e,t){let n=t;if(e&&e.data){const a=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;if(typeof a=="string")if(n.type==="element")n.tagName=a;else{const o="children"in n?n.children:[n];n={type:"element",tagName:a,properties:{},children:o}}n.type==="element"&&i&&Object.assign(n.properties,lx(i)),"children"in n&&n.children&&r!==null&&r!==void 0&&(n.children=r)}return n}function B6e(e,t){const n=t.data||{},a="value"in t&&!(L7.call(n,"hProperties")||L7.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function F6e(e,t){const n=[];let a=-1;for(t&&n.push({type:"text",value:` 1642`});++a<e.length;)a&&n.push({type:"text",value:` 1643`}),n.push(e[a]);return t&&e.length>0&&n.push({type:"text",value:` 1644`}),n}function sL(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function rL(e,t){const n=M6e(e,t),a=n.one(e,void 0),r=E6e(n),i=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return r&&i.children.push({type:"text",value:` 1645`},r),i}function U6e(e,t){return e&&"run"in e?async function(n,a){const r=rL(n,{file:a,...t});await e.run(r,a)}:function(n,a){return rL(n,{file:a,...e||t})}}function iL(e){if(e)throw e}var a8,oL;function H6e(){if(oL)return a8;oL=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,a=Object.getOwnPropertyDescriptor,r=function(d){return typeof Array.isArray=="function"?Array.isArray(d):t.call(d)==="[object Array]"},i=function(d){if(!d||t.call(d)!=="[object Object]")return!1;var m=e.call(d,"constructor"),h=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!m&&!h)return!1;var x;for(x in d);return typeof x>"u"||e.call(d,x)},o=function(d,m){n&&m.name==="__proto__"?n(d,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):d[m.name]=m.newValue},c=function(d,m){if(m==="__proto__")if(e.call(d,m)){if(a)return a(d,m).value}else return;return d[m]};return a8=function l(){var d,m,h,x,f,b,y=arguments[0],w=1,T=arguments.length,A=!1;for(typeof y=="boolean"&&(A=y,y=arguments[1]||{},w=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});w<T;++w)if(d=arguments[w],d!=null)for(m in d)h=c(y,m),x=c(d,m),y!==x&&(A&&x&&(i(x)||(f=r(x)))?(f?(f=!1,b=h&&r(h)?h:[]):b=h&&i(h)?h:{},o(y,{name:m,newValue:l(A,b,x)})):typeof x<"u"&&o(y,{name:m,newValue:x}));return y},a8}var V6e=H6e();const s8=v4(V6e);function O7(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);
vendor: 4,395 bytes, line 1645
1645return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function z6e(){const e=[],t={run:n,use:a};return t;function n(...r){let i=-1;const o=r.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);c(null,...r);function c(l,...d){const m=e[++i];let h=-1;if(l){o(l);return}for(;++h<r.length;)(d[h]===null||d[h]===void 0)&&(d[h]=r[h]);r=d,m?$6e(m,c)(...d):o(null,...d)}}function a(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}}function $6e(e,t){let n;return a;function a(...o){const c=e.length>o.length;let l;c&&o.push(r);try{l=e.apply(this,o)}catch(d){const m=d;if(c&&n)throw m;return r(m)}c||(l&&l.then&&typeof l.then=="function"?l.then(i,r):l instanceof Error?r(l):i(l))}function r(o,...c){n||(n=!0,t(o,...c))}function i(o){r(null,o)}}const ud={basename:q6e,dirname:G6e,extname:J6e,join:W6e,sep:"/"};function q6e(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');tv(e);let n=0,a=-1,r=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(i){n=r+1;break}}else a<0&&(i=!0,a=r+1);return a<0?"":e.slice(n,a)}if(t===e)return"";let o=-1,c=t.length-1;for(;r--;)if(e.codePointAt(r)===47){if(i){n=r+1;break}}else o<0&&(i=!0,o=r+1),c>-1&&(e.codePointAt(r)===t.codePointAt(c--)?c<0&&(a=r):(c=-1,a=o));return n===a?a=o:a<0&&(a=e.length),e.slice(n,a)}function G6e(e){if(tv(e),e.length===0)return".";let t=-1,n=e.length,a;for(;--n;)if(e.codePointAt(n)===47){if(a){t=n;break}}else a||(a=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function J6e(e){tv(e);let t=e.length,n=-1,a=0,r=-1,i=0,o;for(;t--;){const c=e.codePointAt(t);if(c===47){if(o){a=t+1;break}continue}n<0&&(o=!0,n=t+1),c===46?r<0?r=t:i!==1&&(i=1):r>-1&&(i=-1)}return r<0||n<0||i===0||i===1&&r===n-1&&r===a+1?"":e.slice(r,n)}function W6e(...e){let t=-1,n;for(;++t<e.length;)tv(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Y6e(n)}function Y6e(e){tv(e);const t=e.codePointAt(0)===47;let n=X6e(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function X6e(e,t){let n="",a=0,r=-1,i=0,o=-1,c,l;for(;++o<=e.length;){if(o<e.length)c=e.codePointAt(o);else{if(c===47)break;c=47}if(c===47){if(!(r===o-1||i===1))if(r!==o-1&&i===2){if(n.length<2||a!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",a=0):(n=n.slice(0,l),a=n.length-1-n.lastIndexOf("/")),r=o,i=0;continue}}else if(n.length>0){n="",a=0,r=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",a=2)}else n.length>0?n+="/"+e.slice(r+1,o):n=e.slice(r+1,o),a=o-r-1;r=o,i=0}else c===46&&i>-1?i++:i=-1}return n}function tv(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Q6e={cwd:K6e};function K6e(){return"/"}function B7(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Z6e(e){if(typeof e=="string")e=new URL(e);else if(!B7(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return ewe(e)}function ewe(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const a=t.codePointAt(n+2);if(a===70||a===102){const r=new TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(t)}const r8=["history","path","basename","stem","extname","dirname"];class dJ{constructor(t){let n;t?B7(t)?n={path:t}:typeof t=="string"||twe(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Q6e.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<r8.length;){const i=r8[a];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let r;for(r in n)r8.includes(r)||(this[r]=n[r])}
vendor: 4,393 bytes, line 1645
1645get basename(){return typeof this.path=="string"?ud.basename(this.path):void 0}set basename(t){o8(t,"basename"),i8(t,"basename"),this.path=ud.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ud.dirname(this.path):void 0}set dirname(t){cL(this.basename,"dirname"),this.path=ud.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ud.extname(this.path):void 0}set extname(t){if(i8(t,"extname"),cL(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ud.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){B7(t)&&(t=Z6e(t)),o8(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ud.basename(this.path,this.extname):void 0}set stem(t){o8(t,"stem"),i8(t,"stem"),this.path=ud.join(this.dirname||"",t+(this.extname||""))}fail(t,n,a){const r=this.message(t,n,a);throw r.fatal=!0,r}info(t,n,a){const r=this.message(t,n,a);return r.fatal=void 0,r}message(t,n,a){const r=new No(t,n,a);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function i8(e,t){if(e&&e.includes(ud.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ud.sep+"`")}function o8(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function cL(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function twe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const nwe=(function(e){const a=this.constructor.prototype,r=a[e],i=function(){return r.apply(i,arguments)};return Object.setPrototypeOf(i,a),i}),awe={}.hasOwnProperty;class F9 extends nwe{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=z6e()}copy(){const t=new F9;let n=-1;for(;++n<this.attachers.length;){const a=this.attachers[n];t.use(...a)}return t.data(s8(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(u8("data",this.frozen),this.namespace[t]=n,this):awe.call(this.namespace,t)&&this.namespace[t]||void 0:t?(u8("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const r=n.call(t,...a);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=h5(t),a=this.parser||this.Parser;return c8("parse",a),a(String(n),n)}process(t,n){const a=this;return this.freeze(),c8("process",this.parser||this.Parser),l8("process",this.compiler||this.Compiler),n?r(void 0,n):new Promise(r);function r(i,o){const c=h5(t),l=a.parse(c);a.run(l,c,function(m,h,x){if(m||!h||!x)return d(m);const f=h,b=a.stringify(f,x);iwe(b)?x.value=b:x.result=b,d(m,x)});function d(m,h){m||!h?o(m):i?i(h):n(void 0,h)}}}processSync(t){let n=!1,a;return this.freeze(),c8("processSync",this.parser||this.Parser),l8("processSync",this.compiler||this.Compiler),this.process(t,r),uL("processSync","process",n),a;function r(i,o){n=!0,iL(i),a=o}}run(t,n,a){lL(t),this.freeze();const r=this.transformers;return!a&&typeof n=="function"&&(a=n,n=void 0),a?i(void 0,a):new Promise(i);function i(o,c){const l=h5(n);r.run(t,l,d);function d(m,h,x){const f=h||t;m?c(m):o?o(f):a(void 0,f,x)}}}runSync(t,n){let a=!1,r;return this.run(t,n,i),uL("runSync","run",a),r;function i(o,c){iL(o),r=c,a=!0}}stringify(t,n){this.freeze();const a=h5(n),r=this.compiler||this.Compiler;return l8("stringify",r),lL(t),r(t,a)}use(t,...n){const a=this.attachers,r=this.namespace;if(u8("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(d){if(typeof d=="function")l(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[m,...h]=d;l(m,h)}else o(d);else throw new TypeError("Expected usable value, not `"+d+"`")}
vendor: 5,154 bytes, line 1645
1645function o(d){if(!("plugins"in d)&&!("settings"in d))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");c(d.plugins),d.settings&&(r.settings=s8(!0,r.settings,d.settings))}function c(d){let m=-1;if(d!=null)if(Array.isArray(d))for(;++m<d.length;){const h=d[m];i(h)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function l(d,m){let h=-1,x=-1;for(;++h<a.length;)if(a[h][0]===d){x=h;break}if(x===-1)a.push([d,...m]);else if(m.length>0){let[f,...b]=m;const y=a[x][1];O7(y)&&O7(f)&&(f=s8(!0,y,f)),a[x]=[d,f,...b]}}}}const swe=new F9().freeze();function c8(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function l8(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function u8(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function lL(e){if(!O7(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function uL(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function h5(e){return rwe(e)?e:new dJ(e)}function rwe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function iwe(e){return typeof e=="string"||owe(e)}function owe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const cwe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",dL=[],mL={allowDangerousHtml:!0},lwe=/^(https?|ircs?|mailto|xmpp)$/i,uwe=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function dwe(e){const t=mwe(e),n=pwe(e);return hwe(t.runSync(t.parse(n),n),e)}function mwe(e){const t=e.rehypePlugins||dL,n=e.remarkPlugins||dL,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...mL}:mL;return swe().use(W4e).use(n).use(U6e,a).use(t)}function pwe(e){const t=e.children||"",n=new dJ;return typeof t=="string"&&(n.value=t),n}function hwe(e,t){const n=t.allowedElements,a=t.allowElement,r=t.components,i=t.disallowedElements,o=t.skipHtml,c=t.unwrapDisallowed,l=t.urlTransform||fwe;for(const m of uwe)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+cwe+m.id,void 0);return z0(e,d),P5e(e,{Fragment:s.Fragment,components:r,ignoreInvalidStyle:!0,jsx:s.jsx,jsxs:s.jsxs,passKeys:!0,passNode:!0});function d(m,h,x){if(m.type==="raw"&&x&&typeof h=="number")return o?x.children.splice(h,1):x.children[h]={type:"text",value:m.value},h;if(m.type==="element"){let f;for(f in e8)if(Object.hasOwn(e8,f)&&Object.hasOwn(m.properties,f)){const b=m.properties[f],y=e8[f];(y===null||y.includes(m.tagName))&&(m.properties[f]=l(String(b||""),f,m))}}if(m.type==="element"){let f=n?!n.includes(m.tagName):i?i.includes(m.tagName):!1;if(!f&&a&&typeof h=="number"&&(f=!a(m,h,x)),f&&x&&typeof h=="number")return c&&m.children?x.children.splice(h,1,...m.children):x.children.splice(h,1),h}}}function fwe(e){const t=e.indexOf(":"),n=e.indexOf("?"),a=e.indexOf("#"),r=e.indexOf("/");return t===-1||r!==-1&&t>r||n!==-1&&t>n||a!==-1&&t>a||lwe.test(e.slice(0,t))?e:""}const pL=/[#.]/g;function gwe(e,t){const n=e||"",a={};let r=0,i,o;for(;r<n.length;){pL.lastIndex=r;const c=pL.exec(n),l=n.slice(r,c?c.index:n.length);l&&(i?i==="#"?a.id=l:Array.isArray(a.className)?a.className.push(l):a.className=[l]:o=l,r+=l.length),c&&(i=c[0],r++)}return{type:"element",tagName:o||t||"div",properties:a,children:[]}}function mJ(e,t,n){const a=n?ywe(n):void 0;function r(i,o,...c){let l;if(i==null){l={type:"root",children:[]};const d=o;c.unshift(d)}else{l=gwe(i,t);const d=l.tagName.toLowerCase(),m=a?a.get(d):void 0;if(l.tagName=m||d,xwe(o))c.unshift(o);else for(const[h,x]of Object.entries(o))bwe(e,l.properties,h,x)}for(const d of c)F7(l.children,d);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return r}function xwe(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;
vendor: 7,522 bytes, lines 1645-1647
1645if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const a of n){const r=t[a];if(r&&typeof r=="object"){if(!Array.isArray(r))return!0;const i=r;for(const o of i)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function bwe(e,t,n,a){const r=x6(e,n);let i;if(a!=null){if(typeof a=="number"){if(Number.isNaN(a))return;i=a}else typeof a=="boolean"?i=a:typeof a=="string"?r.spaceSeparated?i=IM(a):r.commaSeparated?i=SM(a):r.commaOrSpaceSeparated?i=IM(SM(a).join(" ")):i=hL(r,r.property,a):Array.isArray(a)?i=[...a]:i=r.property==="style"?vwe(a):String(a);if(Array.isArray(i)){const o=[];for(const c of i)o.push(hL(r,r.property,c));i=o}r.property==="className"&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[r.property]=i}}function F7(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)F7(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?F7(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function hL(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||x2(n)===x2(t)))return!0}return n}function vwe(e){const t=[];for(const[n,a]of Object.entries(e))t.push([n,a].join(": "));return t.join("; ")}function ywe(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const wwe=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],pJ=mJ(K2,"div"),hJ=mJ(Th,"g",wwe),yd={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Twe(e,t){return fJ(e,{})||{type:"root",children:[]}}function fJ(e,t){const n=Nwe(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function Nwe(e,t){switch(e.nodeType){case 1:return Ewe(e,t);case 3:return jwe(e);case 8:return Awe(e);case 9:return fL(e,t);case 10:return kwe();case 11:return fL(e,t);default:return}}function fL(e,t){return{type:"root",children:gJ(e,t)}}function kwe(){return{type:"doctype"}}function jwe(e){return{type:"text",value:e.nodeValue||""}}function Awe(e){return{type:"comment",value:e.nodeValue||""}}function Ewe(e,t){const n=e.namespaceURI,a=n===yd.svg?hJ:pJ,r=n===yd.html?e.tagName.toLowerCase():e.tagName,i=n===yd.html&&r==="template"?e.content:e,o=e.getAttributeNames(),c={};let l=-1;for(;++l<o.length;)c[o[l]]=e.getAttribute(o[l])||"";return a(r,c,gJ(i,t))}function gJ(e,t){const n=e.childNodes,a=[];let r=-1;for(;++r<n.length;){const i=fJ(n[r],t);i!==void 0&&a.push(i)}return a}new DOMParser;function Cwe(e,t){const n=Swe(e);return Twe(n)}function Swe(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const gL=(function(e,t,n){const a=ev(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(a(e.children[t],t,e))return e.children[t]}),of=(function(e){if(e==null)return Dwe;if(typeof e=="string")return Pwe(e);if(typeof e=="object")return _we(e);if(typeof e=="function")return U9(e);throw new Error("Expected function, string, or array as `test`")});function _we(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=of(e[n]);return U9(a);function a(...r){let i=-1;for(;++i<t.length;)if(t[i].apply(this,r))return!0;return!1}}function Pwe(e){return U9(t);function t(n){return n.tagName===e}}function U9(e){return t;function t(n,a,r){return!!(Rwe(n)&&e.call(this,n,typeof a=="number"?a:void 0,r||void 0))}}function Dwe(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Rwe(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const xL=/\n/g,bL=/[\t ]+/g,U7=of("br"),vL=of(Hwe),Iwe=of("p"),yL=of("tr"),Mwe=of(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",Uwe,Vwe]),xJ=of(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function Lwe(e,t){const n=t||{},a="children"in e?e.children:[],r=xJ(e),i=yJ(e,{whitespace:n.whitespace||"normal"}),o=[];(e.type==="text"||e.type==="comment")&&o.push(...vJ(e,{breakBefore:!0,breakAfter:!0}));let c=-1;for(;++c<a.length;)o.push(...bJ(a[c],e,{whitespace:i,breakBefore:c?void 0:r,breakAfter:c<a.length-1?U7(a[c+1]):r}));const l=[];let d;for(c=-1;++c<o.length;){const m=o[c];typeof m=="number"?d!==void 0&&m>d&&(d=m):m&&(d!==void 0&&d>-1&&l.push(` 1646`.repeat(d)||" "),d=-1,l.push(m))}return l.join("")}function bJ(e,t,n){return e.type==="element"?Owe(e,t,n):e.type==="text"?n.whitespace==="normal"?vJ(e,n):Bwe(e):[]}function Owe(e,t,n){const a=yJ(e,n),r=e.children||[];let i=-1,o=[];if(Mwe(e))return o;let c,l;for(U7(e)||yL(e)&&gL(t,e,yL)?l=` 1647`:Iwe(e)?(c=2,l=2):xJ(e)&&(c=1,l=1);++i<r.length;)o=o.concat(bJ(r[i],e,{whitespace:a,breakBefore:i?void 0:c,breakAfter:i<r.length-1?U7(r[i+1]):l}));return vL(e)&&gL(t,e,vL)&&o.push(" "),c&&o.unshift(c),l&&o.push(l),o}function vJ(e,t){const n=String(e.value),a=[],r=[];let i=0;for(;i<=n.length;){xL.lastIndex=i;const l=xL.exec(n),d=l&&"index"in l?l.index:n.length;a.push(Fwe(n.slice(i,d).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),i===0?t.breakBefore:!0,d===n.length?t.breakAfter:!0)),i=d+1}let o=-1,c;for(;++o<a.length;)a[o].charCodeAt(a[o].length-1)===8203||o<a.length-1&&a[o+1].charCodeAt(0)===8203?(r.push(a[o]),c=void 0):a[o]?(typeof c=="number"&&r.push(c),r.push(a[o]),c=0):(o===0||o===a.length-1)&&r.push(0);return r}function Bwe(e){return[String(e.value)]}function Fwe(e,t,n){const a=[];let r=0,i;for(;r<e.length;){bL.lastIndex=r;const o=bL.exec(e);i=o?o.index:e.length,!r&&!i&&o&&!t&&a.push(""),r!==i&&a.push(e.slice(r,i)),r=o?i+o[0].length:i}return r!==i&&!n&&a.push(""),a.join(" ")}function yJ(e,t){if(e.type==="element"){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function Uwe(e){return!!(e.properties||{}).hidden}function Hwe(e){return e.tagName==="td"||e.tagName==="th"}function Vwe(e){return e.tagName==="dialog"&&!(e.properties||{}).open}class hc{constructor(t,n,a){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=n,this.end=a}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new hc(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}
vendor: 9,384 bytes, lines 1647-1679
1647class el{constructor(t,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=n}range(t,n){return new el(n,hc.range(this,t))}}class Pt{constructor(t,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var a="KaTeX parse error: "+t,r,i,o=n&&n.loc;if(o&&o.start<=o.end){var c=o.lexer.input;r=o.start,i=o.end,r===c.length?a+=" at end of input: ":a+=" at position "+(r+1)+": ";var l=c.slice(r,i).replace(/[^]/g,"$&̲"),d;r>15?d="â¦"+c.slice(r-15,r):d=c.slice(0,r);var m;i+15<c.length?m=c.slice(i,i+15)+"â¦":m=c.slice(i),a+=d+l+m}var h=new Error(a);return h.name="ParseError",h.__proto__=Pt.prototype,h.position=r,r!=null&&i!=null&&(h.length=i-r),h.rawMessage=t,h}}Pt.prototype.__proto__=Error.prototype;var zwe=function(t,n){return t===void 0?n:t},$we=/([A-Z])/g,qwe=function(t){return t.replace($we,"-$1").toLowerCase()},Gwe={"&":"&",">":">","<":"<",'"':""","'":"'"},Jwe=/[&><"']/g;function Wwe(e){return String(e).replace(Jwe,t=>Gwe[t])}var wJ=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},Ywe=function(t){var n=wJ(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},Xwe=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},Qwe=function(t){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},Ya={deflt:zwe,escape:Wwe,hyphenate:qwe,getBaseElem:wJ,isCharacterBox:Ywe,protocolFromUrl:Qwe},_b={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function Kwe(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class H9{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in _b)if(_b.hasOwnProperty(n)){var a=_b[n];this[n]=t[n]!==void 0?a.processor?a.processor(t[n]):t[n]:Kwe(a)}}reportNonstrict(t,n,a){var r=this.strict;if(typeof r=="function"&&(r=r(t,n,a)),!(!r||r==="ignore")){if(r===!0||r==="error")throw new Pt("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),a);r==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+r+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,a){var r=this.strict;if(typeof r=="function")try{r=r(t,n,a)}catch{r="error"}return!r||r==="ignore"?!1:r===!0||r==="error"?!0:r==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+r+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var n=Ya.protocolFromUrl(t.url);if(n==null)return!1;t.protocol=n}var a=typeof this.trust=="function"?this.trust(t):this.trust;return!!a}}class Op{constructor(t,n,a){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=a}sup(){return md[Zwe[this.id]]}sub(){return md[eTe[this.id]]}fracNum(){return md[tTe[this.id]]}fracDen(){return md[nTe[this.id]]}cramp(){return md[aTe[this.id]]}text(){return md[sTe[this.id]]}isTight(){return this.size>=2}}var V9=0,J3=1,Kg=2,Bm=3,v2=4,Al=5,ux=6,Bo=7,md=[new Op(V9,0,!1),new Op(J3,0,!0),new Op(Kg,1,!1),new Op(Bm,1,!0),new Op(v2,2,!1),new Op(Al,2,!0),new Op(ux,3,!1),new Op(Bo,3,!0)],Zwe=[v2,Al,v2,Al,ux,Bo,ux,Bo],eTe=[Al,Al,Al,Al,Bo,Bo,Bo,Bo],tTe=[Kg,Bm,v2,Al,ux,Bo,ux,Bo],nTe=[Bm,Bm,Al,Al,Bo,Bo,Bo,Bo],aTe=[J3,J3,Bm,Bm,Al,Al,Bo,Bo],sTe=[V9,J3,Kg,Bm,Kg,Bm,Kg,Bm],On={DISPLAY:md[V9],TEXT:md[Kg],SCRIPT:md[v2],SCRIPTSCRIPT:md[ux]},H7=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function rTe(e){for(var t=0;t<H7.length;t++)for(var n=H7[t],a=0;a<n.blocks.length;a++){var r=n.blocks[a];if(e>=r[0]&&e<=r[1])return n.name}return null}var s3=[];H7.forEach(e=>e.blocks.forEach(t=>s3.push(...t)));function TJ(e){for(var t=0;t<s3.length;t+=2)if(e>=s3[t]&&e<=s3[t+1])return!0;return!1}var Tg=80,iTe=function(t,n){return"M95,"+(622+t+n)+` 1648c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 1649c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 1650c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 1651s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 1652c69,-144,104.5,-217.7,106.5,-221 1653l`+t/2.075+" -"+t+` 1654c5.3,-9.3,12,-14,20,-14 1655H400000v`+(40+t)+`H845.2724 1656s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 1657c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z 1658M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},oTe=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119 1659c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 1660c340,-704.7,510.7,-1060.3,512,-1067 1661l`+t/2.084+" -"+t+` 1662c4.7,-7.3,11,-11,19,-11 1663H40000v`+(40+t)+`H1012.3 1664s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 1665c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 1666s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 1667c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z 1668M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},cTe=function(t,n){return"M983 "+(10+t+n)+` 1669l`+t/3.13+" -"+t+` 1670c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+` 1671H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 1672s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 1673c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 1674c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 1675c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 1676c53.7,-170.3,84.5,-266.8,92.5,-289.5z 1677M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},lTe=function(t,n){return"M424,"+(2398+t+n)+` 1678c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 1679c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
1680s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 1681s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 1682l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000 1683v`+(40+t)+`H1014.6 1684s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 1685c-2,6,-10,9,-24,9 1686c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+` 1687h400000v`+(40+t)+"h-400000z"},uTe=function(t,n){return"M473,"+(2713+t+n)+` 1688c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+` 1689c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7 1690s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 1691c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 1692c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 1693s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, 1694606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},dTe=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},mTe=function(t,n,a){var r=a-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+` 1695H742v`+r+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 1696h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 1697c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 1698219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},pTe=function(t,n,a){n=1e3*n;var r="";switch(t){case"sqrtMain":r=iTe(n,Tg);break;case"sqrtSize1":r=oTe(n,Tg);break;case"sqrtSize2":r=cTe(n,Tg);break;case"sqrtSize3":r=lTe(n,Tg);break;case"sqrtSize4":r=uTe(n,Tg);break;case"sqrtTall":r=mTe(n,Tg,a)}return r},hTe=function(t,n){switch(t){case"â":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"â£":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"â¥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"â":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"â¢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"â¥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"âª":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"â":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"â":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},wL
vendor: 15,381 bytes, lines 1698-1873
1698={doubleleftarrow:`M262 157 1699l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 1700 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 1701 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 1702c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 1703 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 1704-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 1705-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z 1706m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l 1707-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 1708 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 1709-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 1710-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 1711-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 1712c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 1713-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 1714 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 1715-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 1716c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 1717 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 1718 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 1719 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 1720-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 1721 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 1722 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 1723 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 1724-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 1725H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 1726 435 0h399565z`,leftgroupunder:`M400000 262 1727H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 1728 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 1729-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 1730-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 1731-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 1732 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 1733-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 1734-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z 1735m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 1736 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 1737 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 1738-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 1739 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 1740-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 1741v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 1742-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 1743-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 1744 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z 1745M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z 1746M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 1747-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 1748c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 1749 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z 1750M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 1751c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 1752-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 1753 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 1754 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 1755c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 1756 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 1757 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 1758-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 1759-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z 1760m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 176160.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 1762-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z 1763m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 1764c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 1765-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z 1766m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 176785.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 1768-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z 1769m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 1770c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 1771-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 1772 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 1773 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 1774-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 1775-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 1776 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l 1777-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 1778s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 1779c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 1780 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 1781-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 1782 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 1783 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 1784-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 1785-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 1786 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 1787-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 1788 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z 1789m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 1790 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 1791-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 1792-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 1793 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 1794 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 1795-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z 1796m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 1797 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 1798-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 1799 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z 1800M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 1801 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 1802-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 1803-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 1804 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 1805-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 1806-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 1807-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 1808 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 1809c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 1810 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 1811 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 1812-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 1813 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 1814-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 1815 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 1816 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 1817-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 1818-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 1819 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 1820c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 1821 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 1822-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 1823 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 1824 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 1825 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 1826-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 1827 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 1828 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 1829 -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 18303.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 183110.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 1832-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 1833-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 1834H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 1835c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 1836c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 1837-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 1838-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 1839-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, 1840-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, 1841-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, 1842-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, 1843-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 1844c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 1845c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 1846s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 1847121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 1848s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 1849c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z 1850M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 1851-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 185213.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 1853-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 1854-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 1855-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 1856151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 1857c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 1858c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 1859c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 1860c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z 1861M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 1862c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, 1863-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 1864c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z 1865M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 1866c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, 18671c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, 1868-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z 1869M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 1870c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, 1871-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 1872c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z 1873M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},
vendor: 3,206 bytes, lines 1873-1901
1873fTe=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84 1874H403z M403 1759 V0 H319 V1759 v`+n+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z 1875M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15 1876c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 1877c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+" v585 h43z";case"doublevert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15 1878c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 1879c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z 1880M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15 1881c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 1882c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+n+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+n+` v1715 h263 v84 H319z 1883MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z 1884MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z 1885M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z 1886M347 1759 V0 h-84 V1759 v`+n+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 1887c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, 1888-36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, 1889949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 1890c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, 1891-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 1892l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, 1893-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, 189463,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 1895c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+` 1896c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 1897c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 1898c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 1899c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 1900l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, 1901-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};let nv=class{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t}toMarkup(){for(var t="",n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t}toText(){var t=n=>n.toText();return this.children.map(t).join("")}};var wd
vendor: 57,629 bytes, line 1901
1901={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},
vendor: 2,747 bytes, line 1901
1901f5={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},TL={Ã
:"A",Ã:"D",Ã:"o",Ã¥:"a",ð:"d",þ:"o",Ð:"A",Ð:"B",Ð:"B",Ð:"F",Ð:"A",Ð:"E",Ð:"K",Ð:"3",Ð:"N",Ð:"N",Ð:"K",Ð:"N",Ð:"M",Ð:"H",Ð:"O",Ð:"N",Ð :"P",С:"C",Т:"T",У:"y",Ф:"O",Ð¥:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Ð:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",Ñ:"p",Ñ:"c",Ñ:"o",Ñ:"y",Ñ:"b",Ñ
:"x",Ñ:"n",Ñ:"n",Ñ:"w",Ñ:"w",Ñ:"a",Ñ:"m",Ñ:"a",Ñ:"e",Ñ:"m",Ñ:"r"};function NJ(e,t){wd[e]=t}function z9(e,t,n){if(!wd[t])throw new Error("Font metrics not found for font: "+t+".");var a=e.charCodeAt(0),r=wd[t][a];if(!r&&e[0]in TL&&(a=TL[e[0]].charCodeAt(0),r=wd[t][a]),!r&&n==="text"&&TJ(a)&&(r=wd[t][77]),r)return{depth:r[0],height:r[1],italic:r[2],skew:r[3],width:r[4]}}var d8={};function gTe(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!d8[t]){var n=d8[t]={cssEmPerMu:f5.quad[t]/18};for(var a in f5)f5.hasOwnProperty(a)&&(n[a]=f5[a][t])}return d8[t]}var xTe=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],NL=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],kL=function(t,n){return n.size<2?t:xTe[t-1][n.size-1]};class Dm{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||Dm.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=NL[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,ph
vendor: 12,947 bytes, line 1901
1901antom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var a in t)t.hasOwnProperty(a)&&(n[a]=t[a]);return new Dm(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:kL(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:NL[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=kL(Dm.BASESIZE,t);return this.size===n&&this.textSize===Dm.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Dm.BASESIZE?["sizing","reset-size"+this.size,"size"+Dm.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=gTe(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Dm.BASESIZE=6;var V7={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},bTe={ex:!0,em:!0,mu:!0},kJ=function(t){return typeof t!="string"&&(t=t.unit),t in V7||t in bTe||t==="ex"},Tr=function(t,n){var a;if(t.unit in V7)a=V7[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")a=n.fontMetrics().cssEmPerMu;else{var r;if(n.style.isTight()?r=n.havingStyle(n.style.text()):r=n,t.unit==="ex")a=r.fontMetrics().xHeight;else if(t.unit==="em")a=r.fontMetrics().quad;else throw new Pt("Invalid unit: '"+t.unit+"'");r!==n&&(a*=r.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*a,n.maxSize)},Ut=function(t){return+t.toFixed(4)+"em"},fh=function(t){return t.filter(n=>n).join(" ")},jJ=function(t,n,a){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=a||{},n){n.style.isTight()&&this.classes.push("mtight");var r=n.getColor();r&&(this.style.color=r)}},AJ=function(t){var n=document.createElement(t);n.className=fh(this.classes);for(var a in this.style)this.style.hasOwnProperty(a)&&(n.style[a]=this.style[a]);for(var r in this.attributes)this.attributes.hasOwnProperty(r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i<this.children.length;i++)n.appendChild(this.children[i].toNode());return n},vTe=/[\s"'>/=\x00-\x1f]/,EJ=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+Ya.escape(fh(this.classes))+'"');var a="";for(var r in this.style)this.style.hasOwnProperty(r)&&(a+=Ya.hyphenate(r)+":"+this.style[r]+";");a&&(n+=' style="'+Ya.escape(a)+'"');for(var i in this.attributes)if(this.attributes.hasOwnProperty(i)){if(vTe.test(i))throw new Pt("Invalid attribute name '"+i+"'");n+=" "+i+'="'+Ya.escape(this.attributes[i])+'"'}n+=">";for(var o=0;o<this.children.length;o++)n+=this.children[o].toMarkup();return n+="</"+t+">",n};class av{constructor(t,n,a,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,jJ.call(this,t,a,r),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return AJ.call(this,"span")}toMarkup(){return EJ.call(this,"span")}}class $9{constructor(t,n,a,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,jJ.call(this,n,r),this.children=a||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return AJ.call(this,"a")}toMarkup(){return EJ.call(this,"a")}}class yTe{constructor(t,n,a){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=a}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t='<img src="'+Ya.escape(this.src)+'"'+(' alt="'+Ya.escape(this.alt)+'"'),n="";for(var a in this.style)this.style.hasOwnProperty(a)&&(n+=Ya.hyphenate(a)+":"+this.style[a]+";");return n&&(t+=' style="'+Ya.escape(n)+'"'),t+="'/>",t}}var wTe={î:"ıÌ",ï:"ıÌ",Ã:"ıÌ",ì:"ıÌ"};class Il{constructor(t,n,a,r,i,o,c,l){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=n||0,this.depth=a||0,this.italic=r||0,this.skew=i||0,this.width=o||0,this.classes=c||[],this.style=l||{},this.maxFontSize=0;var d=rTe(this.text.charCodeAt(0));d&&this.classes.push(d+"_fallback"),/[îïÃì]/.test(this.text)&&(this.text=wTe[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),n=null;this.italic>0&&(n=document.createElement("span"),n.style.marginRight=Ut(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=fh(this.classes));for(var a in this.style)this.style.hasOwnProperty(a)&&(n=n||document.createElement("span"),n.style[a]=this.style[a]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="<span";this.classes.length&&(t=!0,n+=' class="',n+=Ya.escape(fh(this.classes)),n+='"');var a="";this.italic>0&&(a+="margin-right:"+this.italic+"em;");for(var r in this.style)this.style.hasOwnProperty(r)&&(a+=Ya.hyphenate(r)+":"+this.style[r]+";");a&&(t=!0,n+=' style="'+Ya.escape(a)+'"');var i=Ya.escape(this.text);return t?(n+=">",n+=i,n+="</span>",n):i}}class $m{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&n.setAttribute(a,this.attributes[a]);for(var r=0;r<this.children.length;r++)n.appendChild(this.children[r].toNode());return n}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="'+Ya.escape(this.attributes[n])+'"');t+=">";for(var a=0;a<this.children.length;a++)t+=this.children[a].toMarkup();return t+="</svg>",t}}class gh{constructor(t,n){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=n}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"path");return this.alternate?n.setAttribute("d",this.alternate):n.setAttribute("d",wL[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+Ya.escape(this.alternate)+'"/>':'<path d="'+Ya.escape(wL[this.pathName])+'"/>'}}class z7{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&n.setAttribute(a,this.attributes[a]);return n}toMarkup(){var t="<line";for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="'+Ya.escape(this.attributes[n])+'"');return t+="/>",t}}function jL(e){if(e instanceof Il)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function TTe(e){if(e instanceof av)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var NTe={bin:1,close:1,inner:1,open:1,punct:1,rel:1},kTe={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Vs={math:{},text:{}};function q(e,t,n,a,r,i){Vs[e][r]={font:t,group:n,replace:a},i&&a&&(Vs[e][a]=Vs[e][r])}var X="math",kt="text",ie="main",Ce="ams",hr="accent-token",sn="bin",Vo="close",Cx="inner",Ln="mathord",di="op-token",tl="open",N6="punct",Se="rel",Jm="spacing",Be="textord";q(X,ie,Se,"â¡","\\equiv",!0);q(X,ie,Se,"âº","\\prec",!0);q(X,ie,Se,"â»","\\succ",!0);q(X,ie,Se,"â¼","\\sim",!0);q(X,ie,Se,"â¥","\\perp");q(X,ie,Se,"⪯","\\preceq",!0);q(X,ie,Se,"⪰","\\succeq",!0);q(X,ie,Se,"â","\\simeq",!0);q(X,ie,Se,"â£","\\mid",!0);q(X,ie,Se,"âª","\\ll",!0);q(X,ie,Se,"â«","\\gg",!0);q(X,ie,Se,"â","\\asymp",!0);q(X,ie,Se,"â¥","\\parallel");q(X,ie,Se,"â","\\bowtie",!0);q(X,ie,Se,"â£","\\smile",!0);q(X,ie,Se,"â","\\sqsubseteq",!0);q(X,ie,Se,"â","\\sqsupseteq",!0);q(X,ie,Se,"â","\\doteq",!0);q(X,ie,Se,"â¢","\\frown",!0);q(X,ie,Se,"â","\\ni",!0);q(X,ie,Se,"â","\\propto",!0);q(X,ie,Se,"â¢","\\vdash",!0);q(X,ie,Se,"â£","\\dashv",!0);q(X,ie,Se,"â","\\owns");q(X,ie,N6,".","\\ldotp");q(X,ie,N6,"â
","\\cdotp");q(X,ie,Be,"#","\\#");q(kt,ie,Be,"#","\\#");q(X,ie,Be,"&","\\&");q(kt,ie,Be,"&","\\&");q(X,ie,Be,"âµ","\\aleph",!0);q(X,ie,Be,"â","\\forall",!0);q(X,ie,Be,"â","\\hbar",!0);q(X,ie,Be,"â","\\exists",!0);q(X,ie,Be,"â","\\nabla",!0);q(X,ie,Be,"â","\\flat",!0);q(X,ie,Be,"â","\\ell",!0);q(X,ie,Be,"â®","\\natural",!0);q(X,ie,Be,"â£","\\clubsuit",!0);q(X,ie,Be,"â","\\wp",!0);q(X,ie,Be,"â¯","\\sharp",!0);q(X,ie,Be,"â¢","\\diamondsuit",!0);q(X,ie,Be,"â","\\Re",!0);q(X,ie,Be,"â¡","\\heartsuit",!0);q(X,ie,Be,"â","\\Im",!0);q(X,ie,Be,"â ","\\spadesuit",!0);q(X,ie,Be,"§","\\S",!0);q(kt,ie,Be,"§","\\S");q(X,ie,Be,"¶","\\P",!0);q(kt,ie,Be,"¶","\\P");q(X,ie,Be,"â ","\\dag");q(kt,ie,Be,"â ","\\dag");q(kt,ie,Be,"â ","\\textdagger");q(X,ie,Be,"â¡","\\ddag");q(kt,ie,Be,"â¡","\\ddag");q(kt,ie,Be,"â¡","\\textdaggerdbl");q(X,ie,Vo,"â±","\\rmoustache",!0);q(X,ie,tl,"â°","\\lmoustache",!0);q(X,ie,Vo,"â¯","\\rgroup",!0);q(X,ie,tl,"â®","\\lgroup",!0);q(X,ie,sn,"â","\\mp",!0);q(X,ie,sn,"â","\\ominus",!0);q(X,ie,sn,"â","\\uplus",!0);q(X,ie,sn,"â","\\sqcap",!0);q(X,ie,sn,"â","\\ast");q(X,ie,sn,"â","\\sqcup",!0);q(X,ie,sn,"â¯","\\bigcirc",!0);q(X,ie,sn,"â","\\bullet",!0);q(X,ie,sn,"â¡","\\ddagger");q(X,ie,sn,"â","\\wr",!0);q(X,ie,sn,"⨿","\\amalg");q(X,ie,sn,"&","\\And");q(X,ie,Se,"âµ","\\longleftarrow",!0);q(X,ie,Se,"â","\\Leftarrow",!0);q(X,ie,Se,"â¸","\\Longleftarrow",!0);q(X,ie,Se,"â¶","\\longrightarrow",!0);q(X,ie,Se,"â","\\Rightarrow",!0);q(X,ie,Se,"â¹","\\Longrightarrow",!0);q(X,ie,Se,"â","\\leftrightarrow",!0);q(X,ie,Se,"â·","\\longleftrightarrow",!0);q(X,ie,Se,"â","\\Leftrightarrow",!0);q(X,ie,Se,"âº","\\Longleftrightarrow",!0);q(X,ie,Se,"â¦","\\mapsto",!0);q(X,ie,Se,"â¼","\\longmapsto",!0);q(X,ie,Se,"â","\\nearrow",!0);q(X,ie,Se,"â©","\\hookleftarrow",!0);q(X,ie,Se,"âª","\\hookrightarrow",!0);q(X,ie,Se,"â","\\searrow",!0);q(X,ie,Se,"â¼","\\leftharpoonup",!0);q(X,ie,Se,"â","\\rightharpoonup",!0);q(X,ie,Se,"â","\\swarrow",!0);q(X,ie,Se,"â½","\\leftharpoondown",!0);q(X,ie,Se,"â","\\rightharpoondown",!0);q(X,ie,Se,"â","\\nwarrow",!0);q(X,ie,Se,"â","\\rightleftharpoons",!0);q(X,Ce,Se,"â®","\\nless",!0);q(X,Ce,Se,"î","\\@nleqslant");q(X,Ce,Se,"î","\\@nleqq");q(X,Ce,Se,"âª","\\lneq",!0);q(X,Ce,Se,"â¨","\\lneqq",!0);q(X,Ce,Se,"î","\\@lvertneqq");q(X,Ce,Se,"â¦","\\lnsim",!0);q(X,Ce,Se,"âª","\\lnapprox",!0);q(X,Ce,Se,"â","\\nprec",!0);q(X,Ce,Se,"â ","\\npreceq",!0);q(X,Ce,Se,"â¨","\\precnsim",!0);q(X,Ce,Se,"⪹","\\precnapprox",!0);q(X,Ce,Se,"â","\\nsim",!0);q(X,Ce,Se,"î","\\@nshortmid");q(X,Ce,Se,"â¤","\\nmid",!0);q(X,Ce,Se,"â¬","\\nvdash",!0);q(X,Ce,Se,"â","\\nvDash",!0);q(X,Ce,Se,"âª","\\ntriangleleft");q(X,Ce,Se,"â¬","\\ntrianglelefteq",!0);q(X,Ce,Se,"â","\\subsetneq",!0);q(X,Ce,Se,"î","\\@varsubsetneq");q(X,Ce,Se,"â«","\\subsetneqq",!0);q(X,Ce,Se,"î","\\@varsubsetneqq");q(X,Ce,Se,"â¯","\\ngtr",!0);q(X,Ce,Se,"î","\\@ngeqslant");q(X,Ce,Se,"î","\\@ngeqq");q(X,Ce,Se,"âª","\\gneq",!0);q(X,Ce,Se,"â©","\\gneqq",!0);q(X,Ce,Se,"î","\\@gvertneqq");q(X,Ce,Se,"â§","\\gnsim",!0);q(X,Ce,Se,"âª","\\gnapprox",!0);q(X,Ce,Se,"â","\\nsucc",!0);q(X,Ce,Se,"â¡","\\nsucceq",!0);q(X,Ce,Se,"â©","\\succnsim",!0);q(X,Ce,Se,"⪺","\\succnapprox",!0);q(X,Ce,Se,"â","\\ncong",!0);q(X,Ce,Se,"î","\\@nshortparallel");q(X,Ce,Se,"â¦","\\nparallel",!0);q(X,Ce,Se,"â¯","\\nVDash",!0);q(X,Ce,Se,"â«","\\ntriangleright");q(X,Ce,Se,"â","\\ntrianglerighteq",!0);q(X,Ce,Se,"î","\\@nsupseteqq");q(X,Ce,Se,"â","\\supsetneq",!0);q(X,Ce,Se,"î","\\@varsupsetneq");q(X,Ce,Se,"â«","\\supsetneqq",!0);q(X,Ce,Se,"î","\\@varsupsetneqq");q(X,Ce,Se,"â®","\\nVdash",!0);q(X,Ce,Se,"⪵","\\precneqq",!0);q(X,Ce,Se,"⪶","\\succneqq",!0);
1901q(X,Ce,Se,"î","\\@nsubseteqq");q(X,Ce,sn,"â´","\\unlhd");q(X,Ce,sn,"âµ","\\unrhd");q(X,Ce,Se,"â","\\nleftarrow",!0);q(X,Ce,Se,"â","\\nrightarrow",!0);q(X,Ce,Se,"â","\\nLeftarrow",!0);q(X,Ce,Se,"â","\\nRightarrow",!0);q(X,Ce,Se,"â®","\\nleftrightarrow",!0);q(X,Ce,Se,"â","\\nLeftrightarrow",!0);q(X,Ce,Se,"â³","\\vartriangle");q(X,Ce,Be,"â","\\hslash");q(X,Ce,Be,"â½","\\triangledown");q(X,Ce,Be,"â","\\lozenge");q(X,Ce,Be,"â","\\circledS");q(X,Ce,Be,"®","\\circledR");q(kt,Ce,Be,"®","\\circledR");q(X,Ce,Be,"â¡","\\measuredangle",!0);q(X,Ce,Be,"â","\\nexists");q(X,Ce,Be,"â§","\\mho");q(X,Ce,Be,"â²","\\Finv",!0);q(X,Ce,Be,"â
","\\Game",!0);q(X,Ce,Be,"âµ","\\backprime");q(X,Ce,Be,"â²","\\blacktriangle");q(X,Ce,Be,"â¼","\\blacktriangledown");q(X,Ce,Be,"â ","\\blacksquare");q(X,Ce,Be,"â§«","\\blacklozenge");q(X,Ce,Be,"â
","\\bigstar");q(X,Ce,Be,"â¢","\\sphericalangle",!0);q(X,Ce,Be,"â","\\complement",!0);q(X,Ce,Be,"ð","\\eth",!0);q(kt,ie,Be,"ð","ð");q(X,Ce,Be,"â±","\\diagup");q(X,Ce,Be,"â²","\\diagdown");q(X,Ce,Be,"â¡","\\square");q(X,Ce,Be,"â¡","\\Box");q(X,Ce,Be,"â","\\Diamond");q(X,Ce,Be,"Â¥","\\yen",!0);q(kt,Ce,Be,"Â¥","\\yen",!0);q(X,Ce,Be,"â","\\checkmark",!0);q(kt,Ce,Be,"â","\\checkmark");q(X,Ce,Be,"â¶","\\beth",!0);q(X,Ce,Be,"â¸","\\daleth",!0);q(X,Ce,Be,"â·","\\gimel",!0);q(X,Ce,Be,"Ï","\\digamma",!0);q(X,Ce,Be,"ϰ","\\varkappa");q(X,Ce,tl,"â","\\@ulcorner",!0);q(X,Ce,Vo,"â","\\@urcorner",!0);q(X,Ce,tl,"â","\\@llcorner",!0);q(X,Ce,Vo,"â","\\@lrcorner",!0);q(X,Ce,Se,"â¦","\\leqq",!0);q(X,Ce,Se,"⩽","\\leqslant",!0);q(X,Ce,Se,"âª","\\eqslantless",!0);q(X,Ce,Se,"â²","\\lesssim",!0);q(X,Ce,Se,"âª
","\\lessapprox",!0);q(X,Ce,Se,"â","\\approxeq",!0);q(X,Ce,sn,"â","\\lessdot");q(X,Ce,Se,"â","\\lll",!0);q(X,Ce,Se,"â¶","\\lessgtr",!0);q(X,Ce,Se,"â","\\lesseqgtr",!0);q(X,Ce,Se,"âª","\\lesseqqgtr",!0);q(X,Ce,Se,"â","\\doteqdot");q(X,Ce,Se,"â","\\risingdotseq",!0);q(X,Ce,Se,"â","\\fallingdotseq",!0);q(X,Ce,Se,"â½","\\backsim",!0);q(X,Ce,Se,"â","\\backsimeq",!0);q(X,Ce,Se,"â«
","\\subseteqq",!0);q(X,Ce,Se,"â","\\Subset",!0);q(X,Ce,Se,"â","\\sqsubset",!0);q(X,Ce,Se,"â¼","\\preccurlyeq",!0);q(X,Ce,Se,"â","\\curlyeqprec",!0);q(X,Ce,Se,"â¾","\\precsim",!0);q(X,Ce,Se,"⪷","\\precapprox",!0);q(X,Ce,Se,"â²","\\vartriangleleft");q(X,Ce,Se,"â´","\\trianglelefteq");q(X,Ce,Se,"â¨","\\vDash",!0);q(X,Ce,Se,"âª","\\Vvdash",!0);q(X,Ce,Se,"â£","\\smallsmile");q(X,Ce,Se,"â¢","\\smallfrown");q(X,Ce,Se,"â","\\bumpeq",!0);q(X,Ce,Se,"â","\\Bumpeq",!0);q(X,Ce,Se,"â§","\\geqq",!0);q(X,Ce,Se,"⩾","\\geqslant",!0);q(X,Ce,Se,"âª","\\eqslantgtr",!0);q(X,Ce,Se,"â³","\\gtrsim",!0);q(X,Ce,Se,"âª","\\gtrapprox",!0);q(X,Ce,sn,"â","\\gtrdot");q(X,Ce,Se,"â","\\ggg",!0);q(X,Ce,Se,"â·","\\gtrless",!0);q(X,Ce,Se,"â","\\gtreqless",!0);q(X,Ce,Se,"âª","\\gtreqqless",!0);q(X,Ce,Se,"â","\\eqcirc",!0);q(X,Ce,Se,"â","\\circeq",!0);q(X,Ce,Se,"â","\\triangleq",!0);q(X,Ce,Se,"â¼","\\thicksim");q(X,Ce,Se,"â","\\thickapprox");q(X,Ce,Se,"â«","\\supseteqq",!0);q(X,Ce,Se,"â","\\Supset",!0);q(X,Ce,Se,"â","\\sqsupset",!0);q(X,Ce,Se,"â½","\\succcurlyeq",!0);q(X,Ce,Se,"â","\\curlyeqsucc",!0);q(X,Ce,Se,"â¿","\\succsim",!0);q(X,Ce,Se,"⪸","\\succapprox",!0);q(X,Ce,Se,"â³","\\vartriangleright");q(X,Ce,Se,"âµ","\\trianglerighteq");q(X,Ce,Se,"â©","\\Vdash",!0);q(X,Ce,Se,"â£","\\shortmid");q(X,Ce,Se,"â¥","\\shortparallel");q(X,Ce,Se,"â¬","\\between",!0);q(X,Ce,Se,"â","\\pitchfork",!0);q(X,Ce,Se,"â","\\varpropto");q(X,Ce,Se,"â","\\blacktriangleleft");q(X,Ce,Se,"â´","\\therefore",!0);q(X,Ce,Se,"â","\\backepsilon");q(X,Ce,Se,"â¶","\\blacktriangleright");q(X,Ce,Se,"âµ","\\because",!0);q(X,Ce,Se,"â","\\llless");q(X,Ce,Se,"â","\\gggtr");q(X,Ce,sn,"â²","\\lhd");q(X,Ce,sn,"â³","\\rhd");q(X,Ce,Se,"â","\\eqsim",!0);q(X,ie,Se,"â","\\Join");q(X,Ce,Se,"â","\\Doteq",!0);q(X,Ce,sn,"â","\\dotplus",!0);q(X,Ce,sn,"â","\\smallsetminus");q(X,Ce,sn,"â","\\Cap",!0);q(X,Ce,sn,"â","\\Cup",!0);q(X,Ce,sn,"â©","\\doublebarwedge",!0);q(X,Ce,sn,"â","\\boxminus",!0);q(X,Ce,sn,"â","\\boxplus",!0);
1901q(X,Ce,sn,"â","\\divideontimes",!0);q(X,Ce,sn,"â","\\ltimes",!0);q(X,Ce,sn,"â","\\rtimes",!0);q(X,Ce,sn,"â","\\leftthreetimes",!0);q(X,Ce,sn,"â","\\rightthreetimes",!0);q(X,Ce,sn,"â","\\curlywedge",!0);q(X,Ce,sn,"â","\\curlyvee",!0);q(X,Ce,sn,"â","\\circleddash",!0);q(X,Ce,sn,"â","\\circledast",!0);q(X,Ce,sn,"â
","\\centerdot");q(X,Ce,sn,"âº","\\intercal",!0);q(X,Ce,sn,"â","\\doublecap");q(X,Ce,sn,"â","\\doublecup");q(X,Ce,sn,"â ","\\boxtimes",!0);q(X,Ce,Se,"â¢","\\dashrightarrow",!0);q(X,Ce,Se,"â ","\\dashleftarrow",!0);q(X,Ce,Se,"â","\\leftleftarrows",!0);q(X,Ce,Se,"â","\\leftrightarrows",!0);q(X,Ce,Se,"â","\\Lleftarrow",!0);q(X,Ce,Se,"â","\\twoheadleftarrow",!0);q(X,Ce,Se,"â¢","\\leftarrowtail",!0);q(X,Ce,Se,"â«","\\looparrowleft",!0);q(X,Ce,Se,"â","\\leftrightharpoons",!0);q(X,Ce,Se,"â¶","\\curvearrowleft",!0);q(X,Ce,Se,"âº","\\circlearrowleft",!0);q(X,Ce,Se,"â°","\\Lsh",!0);q(X,Ce,Se,"â","\\upuparrows",!0);q(X,Ce,Se,"â¿","\\upharpoonleft",!0);q(X,Ce,Se,"â","\\downharpoonleft",!0);q(X,ie,Se,"â¶","\\origof",!0);q(X,ie,Se,"â·","\\imageof",!0);q(X,Ce,Se,"â¸","\\multimap",!0);q(X,Ce,Se,"â","\\leftrightsquigarrow",!0);q(X,Ce,Se,"â","\\rightrightarrows",!0);q(X,Ce,Se,"â","\\rightleftarrows",!0);q(X,Ce,Se,"â ","\\twoheadrightarrow",!0);q(X,Ce,Se,"â£","\\rightarrowtail",!0);q(X,Ce,Se,"â¬","\\looparrowright",!0);q(X,Ce,Se,"â·","\\curvearrowright",!0);q(X,Ce,Se,"â»","\\circlearrowright",!0);q(X,Ce,Se,"â±","\\Rsh",!0);q(X,Ce,Se,"â","\\downdownarrows",!0);q(X,Ce,Se,"â¾","\\upharpoonright",!0);q(X,Ce,Se,"â","\\downharpoonright",!0);q(X,Ce,Se,"â","\\rightsquigarrow",!0);q(X,Ce,Se,"â","\\leadsto");q(X,Ce,Se,"â","\\Rrightarrow",!0);q(X,Ce,Se,"â¾","\\restriction");q(X,ie,Be,"â","`");q(X,ie,Be,"$","\\$");q(kt,ie,Be,"$","\\$");q(kt,ie,Be,"$","\\textdollar");q(X,ie,Be,"%","\\%");q(kt,ie,Be,"%","\\%");q(X,ie,Be,"_","\\_");q(kt,ie,Be,"_","\\_");q(kt,ie,Be,"_","\\textunderscore");q(X,ie,Be,"â ","\\angle",!0);q(X,ie,Be,"â","\\infty",!0);q(X,ie,Be,"â²","\\prime");q(X,ie,Be,"â³","\\triangle");q(X,ie,Be,"Î","\\Gamma",!0);q(X,ie,Be,"Î","\\Delta",!0);q(X,ie,Be,"Î","\\Theta",!0);q(X,ie,Be,"Î","\\Lambda",!0);q(X,ie,Be,"Î","\\Xi",!0);q(X,ie,Be,"Î ","\\Pi",!0);q(X,ie,Be,"Σ","\\Sigma",!0);q(X,ie,Be,"Î¥","\\Upsilon",!0);q(X,ie,Be,"Φ","\\Phi",!0);q(X,ie,Be,"Ψ","\\Psi",!0);q(X,ie,Be,"Ω","\\Omega",!0);q(X,ie,Be,"A","Î");q(X,ie,Be,"B","Î");q(X,ie,Be,"E","Î");q(X,ie,Be,"Z","Î");q(X,ie,Be,"H","Î");q(X,ie,Be,"I","Î");q(X,ie,Be,"K","Î");q(X,ie,Be,"M","Î");q(X,ie,Be,"N","Î");q(X,ie,Be,"O","Î");q(X,ie,Be,"P","Ρ");q(X,ie,Be,"T","Τ");q(X,ie,Be,"X","Χ");q(X,ie,Be,"¬","\\neg",!0);q(X,ie,Be,"¬","\\lnot");q(X,ie,Be,"â¤","\\top");q(X,ie,Be,"â¥","\\bot");q(X,ie,Be,"â
","\\emptyset");q(X,Ce,Be,"â
","\\varnothing");q(X,ie,Ln,"α","\\alpha",!0);q(X,ie,Ln,"β","\\beta",!0);q(X,ie,Ln,"γ","\\gamma",!0);q(X,ie,Ln,"δ","\\delta",!0);q(X,ie,Ln,"ϵ","\\epsilon",!0);q(X,ie,Ln,"ζ","\\zeta",!0);q(X,ie,Ln,"η","\\eta",!0);q(X,ie,Ln,"θ","\\theta",!0);q(X,ie,Ln,"ι","\\iota",!0);q(X,ie,Ln,"κ","\\kappa",!0);q(X,ie,Ln,"λ","\\lambda",!0);q(X,ie,Ln,"μ","\\mu",!0);q(X,ie,Ln,"ν","\\nu",!0);q(X,ie,Ln,"ξ","\\xi",!0);q(X,ie,Ln,"ο","\\omicron",!0);q(X,ie,Ln,"Ï","\\pi",!0);q(X,ie,Ln,"Ï","\\rho",!0);q(X,ie,Ln,"Ï","\\sigma",!0);q(X,ie,Ln,"Ï","\\tau",!0);q(X,ie,Ln,"Ï
","\\upsilon",!0);q(X,ie,Ln,"Ï","\\phi",!0);q(X,ie,Ln,"Ï","\\chi",!0);q(X,ie,Ln,"Ï","\\psi",!0);q(X,ie,Ln,"Ï","\\omega",!0);q(X,ie,Ln,"ε","\\varepsilon",!0);q(X,ie,Ln,"Ï","\\vartheta",!0);q(X,ie,Ln,"Ï","\\varpi",!0);q(X,ie,Ln,"ϱ","\\varrho",!0);q(X,ie,Ln,"Ï","\\varsigma",!0);q(X,ie,Ln,"Ï","\\varphi",!0);q(X,ie,sn,"â","*",!0);q(X,ie,sn,"+","+");q(X,ie,sn,"â","-",!0);q(X,ie,sn,"â
","\\cdot",!0);q(X,ie,sn,"â","\\circ",!0);q(X,ie,sn,"÷","\\div",!0);q(X,ie,sn,"±","\\pm",!0);q(X,ie,sn,"Ã","\\times",!0);q(X,ie,sn,"â©","\\cap",!0);q(X,ie,sn,"âª","\\cup",!0);q(X,ie,sn,"â","\\setminus",!0);q(X,ie,sn,"â§","\\land");q(X,ie,sn,"â¨","\\lor");q(X,ie,sn,"â§","\\wedge",!0);q(X,ie,sn,"â¨","\\vee",!0);q(X,ie,Be,"â","\\surd");q(X,ie,tl,"â¨","\\langle",!0);q(X,ie,tl,"â£","\\lvert");q(X,ie,tl,"â¥","\\lVert");q(X,ie,Vo,"?","?");q(X,ie,Vo,"!","!");q(X,ie,Vo,"â©","\\rangle",!0);q(X,ie,Vo,"â£","\\rvert");q(X,ie,Vo,"â¥","\\rVert");q(X,ie,Se,"=","=");q(X,ie,Se,":",":");q(X,ie,Se,"â","\\approx",!0);q(X,ie,Se,"â
","\\cong",!0);q(X,ie,Se,"â¥","\\ge");q(X,ie,Se,"â¥","\\geq",!0);q(X,ie,Se,"â","\\gets");q(X,ie,Se,">","\\gt",!0);q(X,ie,Se,"â","\\in",!0);q(X,ie,Se,"î ","\\@not");q(X,ie,Se,"â","\\subset",!0);q(X,ie,Se,"â","\\supset",!0);q(X,ie,Se,"â","\\subseteq",!0);q(X,ie,Se,"â","\\supseteq",!0);q(X,Ce,Se,"â","\\nsubseteq",!0);q(X,Ce,Se,"â","\\nsupseteq",!0);q(X,ie,Se,"â¨","\\models");q(X,ie,Se,"â","\\leftarrow",!0);q(X,ie,Se,"â¤","\\le");q(X,ie,Se,"â¤","\\leq",!0);q(X,ie,Se,"<","\\lt",!0);q(X,ie,Se,"â","\\rightarrow",!0);q(X,ie,Se,"â","\\to");q(X,Ce,Se,"â±","\\ngeq",!0);q(X,Ce,Se,"â°","\\nleq",!0);q(X,ie,Jm," ","\\ ");q(X,ie,Jm," ","\\space");q(X,ie,Jm," ","\\nobreakspace");q(kt,ie,Jm," ","\\ ");q(kt,ie,Jm," "," ");q(kt,ie,Jm," ","\\space");q(kt,ie,Jm," ","\\nobreakspace");q(X,ie,Jm,null,"\\nobreak");q(X,ie,Jm,null,"\\allowbreak");q(X,ie,N6,",",",");q(X,ie,N6,";",";");q(X,Ce,sn,"â¼","\\barwedge",!0);q(X,Ce,sn,"â»","\\veebar",!0);q(X,ie,sn,"â","\\odot",!0);q(X,ie,sn,"â","\\oplus",!0);q(X,ie,sn,"â","\\otimes",!0);q(X,ie,Be,"â","\\partial",!0);q(X,ie,sn,"â","\\oslash",!0);q(X,Ce,sn,"â","\\circledcirc",!0);q(X,Ce,sn,"â¡","\\boxdot",!0);
vendor: 5,113 bytes, line 1901
1901q(X,ie,sn,"â³","\\bigtriangleup");q(X,ie,sn,"â½","\\bigtriangledown");q(X,ie,sn,"â ","\\dagger");q(X,ie,sn,"â","\\diamond");q(X,ie,sn,"â","\\star");q(X,ie,sn,"â","\\triangleleft");q(X,ie,sn,"â¹","\\triangleright");q(X,ie,tl,"{","\\{");q(kt,ie,Be,"{","\\{");q(kt,ie,Be,"{","\\textbraceleft");q(X,ie,Vo,"}","\\}");q(kt,ie,Be,"}","\\}");q(kt,ie,Be,"}","\\textbraceright");q(X,ie,tl,"{","\\lbrace");q(X,ie,Vo,"}","\\rbrace");q(X,ie,tl,"[","\\lbrack",!0);q(kt,ie,Be,"[","\\lbrack",!0);q(X,ie,Vo,"]","\\rbrack",!0);q(kt,ie,Be,"]","\\rbrack",!0);q(X,ie,tl,"(","\\lparen",!0);q(X,ie,Vo,")","\\rparen",!0);q(kt,ie,Be,"<","\\textless",!0);q(kt,ie,Be,">","\\textgreater",!0);q(X,ie,tl,"â","\\lfloor",!0);q(X,ie,Vo,"â","\\rfloor",!0);q(X,ie,tl,"â","\\lceil",!0);q(X,ie,Vo,"â","\\rceil",!0);q(X,ie,Be,"\\","\\backslash");q(X,ie,Be,"â£","|");q(X,ie,Be,"â£","\\vert");q(kt,ie,Be,"|","\\textbar",!0);q(X,ie,Be,"â¥","\\|");q(X,ie,Be,"â¥","\\Vert");q(kt,ie,Be,"â¥","\\textbardbl");q(kt,ie,Be,"~","\\textasciitilde");q(kt,ie,Be,"\\","\\textbackslash");q(kt,ie,Be,"^","\\textasciicircum");q(X,ie,Se,"â","\\uparrow",!0);q(X,ie,Se,"â","\\Uparrow",!0);q(X,ie,Se,"â","\\downarrow",!0);q(X,ie,Se,"â","\\Downarrow",!0);q(X,ie,Se,"â","\\updownarrow",!0);q(X,ie,Se,"â","\\Updownarrow",!0);q(X,ie,di,"â","\\coprod");q(X,ie,di,"â","\\bigvee");q(X,ie,di,"â","\\bigwedge");q(X,ie,di,"â¨","\\biguplus");q(X,ie,di,"â","\\bigcap");q(X,ie,di,"â","\\bigcup");q(X,ie,di,"â«","\\int");q(X,ie,di,"â«","\\intop");q(X,ie,di,"â¬","\\iint");q(X,ie,di,"â","\\iiint");q(X,ie,di,"â","\\prod");q(X,ie,di,"â","\\sum");q(X,ie,di,"â¨","\\bigotimes");q(X,ie,di,"â¨","\\bigoplus");q(X,ie,di,"â¨","\\bigodot");q(X,ie,di,"â®","\\oint");q(X,ie,di,"â¯","\\oiint");q(X,ie,di,"â°","\\oiiint");q(X,ie,di,"â¨","\\bigsqcup");q(X,ie,di,"â«","\\smallint");q(kt,ie,Cx,"â¦","\\textellipsis");q(X,ie,Cx,"â¦","\\mathellipsis");q(kt,ie,Cx,"â¦","\\ldots",!0);q(X,ie,Cx,"â¦","\\ldots",!0);q(X,ie,Cx,"â¯","\\@cdots",!0);q(X,ie,Cx,"â±","\\ddots",!0);q(X,ie,Be,"â®","\\varvdots");q(kt,ie,Be,"â®","\\varvdots");q(X,ie,hr,"Ë","\\acute");q(X,ie,hr,"Ë","\\grave");q(X,ie,hr,"¨","\\ddot");q(X,ie,hr,"~","\\tilde");q(X,ie,hr,"Ë","\\bar");q(X,ie,hr,"Ë","\\breve");q(X,ie,hr,"Ë","\\check");q(X,ie,hr,"^","\\hat");q(X,ie,hr,"â","\\vec");q(X,ie,hr,"Ë","\\dot");q(X,ie,hr,"Ë","\\mathring");q(X,ie,Ln,"î±","\\@imath");q(X,ie,Ln,"î·","\\@jmath");q(X,ie,Be,"ı","ı");q(X,ie,Be,"È·","È·");q(kt,ie,Be,"ı","\\i",!0);q(kt,ie,Be,"È·","\\j",!0);q(kt,ie,Be,"Ã","\\ss",!0);q(kt,ie,Be,"æ","\\ae",!0);q(kt,ie,Be,"Å","\\oe",!0);q(kt,ie,Be,"ø","\\o",!0);q(kt,ie,Be,"Ã","\\AE",!0);q(kt,ie,Be,"Å","\\OE",!0);q(kt,ie,Be,"Ã","\\O",!0);q(kt,ie,hr,"Ë","\\'");q(kt,ie,hr,"Ë","\\`");q(kt,ie,hr,"Ë","\\^");q(kt,ie,hr,"Ë","\\~");q(kt,ie,hr,"Ë","\\=");q(kt,ie,hr,"Ë","\\u");q(kt,ie,hr,"Ë","\\.");q(kt,ie,hr,"¸","\\c");q(kt,ie,hr,"Ë","\\r");q(kt,ie,hr,"Ë","\\v");q(kt,ie,hr,"¨",'\\"');q(kt,ie,hr,"Ë","\\H");q(kt,ie,hr,"â¯","\\textcircled");var CJ={"--":!0,"---":!0,"``":!0,"''":!0};q(kt,ie,Be,"â","--",!0);q(kt,ie,Be,"â","\\textendash");q(kt,ie,Be,"â","---",!0);q(kt,ie,Be,"â","\\textemdash");q(kt,ie,Be,"â","`",!0);q(kt,ie,Be,"â","\\textquoteleft");q(kt,ie,Be,"â","'",!0);q(kt,ie,Be,"â","\\textquoteright");q(kt,ie,Be,"â","``",!0);q(kt,ie,Be,"â","\\textquotedblleft");q(kt,ie,Be,"â","''",!0);q(kt,ie,Be,"â","\\textquotedblright");q(X,ie,Be,"°","\\degree",!0);q(kt,ie,Be,"°","\\degree");q(kt,ie,Be,"°","\\textdegree",!0);q(X,ie,Be,"£","\\pounds");q(X,ie,Be,"£","\\mathsterling",!0);q(kt,ie,Be,"£","\\pounds");q(kt,ie,Be,"£","\\textsterling",!0);q(X,Ce,Be,"â ","\\maltese");q(kt,Ce,Be,"â ","\\maltese");var AL='0123456789/@."';for(var m8=0;m8<AL.length;m8++){var EL=AL.charAt(m8);q(X,ie,Be,EL,EL)}var CL='0123456789!@*()-=+";:?/.,';for(var p8=0;p8<CL.length;p8++){var SL=CL.charAt(p8);q(kt,ie,Be,SL,SL)}var W3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var h8=0;h8<W3.length;h8++){var g5=W3.charAt(h8);q(X,ie,Ln,g5,g5),q(kt,ie,Be,g5,g5)}q(X,Ce,Be,"C","â");q(kt,Ce,Be,"C","â");q(X,Ce,Be,"H","â");q(kt,Ce,Be,"H","â");q(X,Ce,Be,"N","â");q(kt,Ce,Be,"N","â");q(X,Ce,Be,"P","â");q(kt,Ce,Be,"P","â");q(X,Ce,Be,"Q","â");q(kt,Ce,Be,"Q","â");q(X,Ce,Be,"R","â");q(kt,Ce,Be,"R","â");q(X,Ce,Be,"Z","â¤");q(kt,Ce,Be,"Z","â¤");q(X,ie,Ln,"h","â");q(kt,ie,Ln,"h","â");var zn="";for(var Ro=0;Ro<W3.length;Ro++){var Mr=W3.charAt(Ro);zn=String.fromCharCode(55349,56320+Ro),q(X,ie,Ln,Mr,zn),q(kt,ie,Be,Mr,zn),zn=String.fromCharCode(55349,56372+Ro),q(X,ie,Ln,Mr,zn),q(kt,ie,Be,Mr,zn),zn=String.fromCharCode(55349,56424+Ro),q(X,ie,Ln,Mr,zn),q(kt,ie,Be,Mr,zn),zn=String.fromCharCode(55349,56580+Ro),q(X,ie,Ln,Mr,zn),q(kt,ie,Be,Mr,zn),zn=String.fromCharCode(55349,56684+Ro),q(X,ie,Ln,Mr,zn),q(kt,ie,Be,Mr,zn),zn=String.fromCharCode(55349,56736+Ro),q(X,ie,Ln,Mr,zn),q(kt,ie,Be,Mr,zn),zn=String.fromCharCode(55349,56788+Ro),q(X,ie,Ln,Mr,zn),q(kt,ie,Be,Mr,zn),zn=String.fromCharCode(55349,56840+Ro),q(X,ie,Ln,Mr,zn),q(kt,ie,Be,Mr,zn),zn=String.fromCharCode(55349,56944+R
vendor: 4,060 bytes, line 1901
1901o),q(X,ie,Ln,Mr,zn),q(kt,ie,Be,Mr,zn),Ro<26&&(zn=String.fromCharCode(55349,56632+Ro),q(X,ie,Ln,Mr,zn),q(kt,ie,Be,Mr,zn),zn=String.fromCharCode(55349,56476+Ro),q(X,ie,Ln,Mr,zn),q(kt,ie,Be,Mr,zn))}zn="ð";q(X,ie,Ln,"k",zn);q(kt,ie,Be,"k",zn);for(var l0=0;l0<10;l0++){var Bp=l0.toString();zn=String.fromCharCode(55349,57294+l0),q(X,ie,Ln,Bp,zn),q(kt,ie,Be,Bp,zn),zn=String.fromCharCode(55349,57314+l0),q(X,ie,Ln,Bp,zn),q(kt,ie,Be,Bp,zn),zn=String.fromCharCode(55349,57324+l0),q(X,ie,Ln,Bp,zn),q(kt,ie,Be,Bp,zn),zn=String.fromCharCode(55349,57334+l0),q(X,ie,Ln,Bp,zn),q(kt,ie,Be,Bp,zn)}var $7="ÃÃþ";for(var f8=0;f8<$7.length;f8++){var x5=$7.charAt(f8);q(X,ie,Ln,x5,x5),q(kt,ie,Be,x5,x5)}var b5=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],_L=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],jTe=function(t,n){var a=t.charCodeAt(0),r=t.charCodeAt(1),i=(a-55296)*1024+(r-56320)+65536,o=n==="math"?0:1;if(119808<=i&&i<120484){var c=Math.floor((i-119808)/26);return[b5[c][2],b5[c][o]]}else if(120782<=i&&i<=120831){var l=Math.floor((i-120782)/10);return[_L[l][2],_L[l][o]]}else{if(i===120485||i===120486)return[b5[0][2],b5[0][o]];if(120486<i&&i<120782)return["",""];throw new Pt("Unsupported character: "+t)}},k6=function(t,n,a){return Vs[a][t]&&Vs[a][t].replace&&(t=Vs[a][t].replace),{value:t,metrics:z9(t,n,a)}},du=function(t,n,a,r,i){var o=k6(t,n,a),c=o.metrics;t=o.value;var l;if(c){var d=c.italic;(a==="text"||r&&r.font==="mathit")&&(d=0),l=new Il(t,c.height,c.depth,d,c.skew,c.width,i)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+n+"' and mode '"+a+"'")),l=new Il(t,0,0,0,0,0,i);if(r){l.maxFontSize=r.sizeMultiplier,r.style.isTight()&&l.classes.push("mtight");var m=r.getColor();m&&(l.style.color=m)}return l},ATe=function(t,n,a,r){return r===void 0&&(r=[]),a.font==="boldsymbol"&&k6(t,"Main-Bold",n).metrics?du(t,"Main-Bold",n,a,r.concat(["mathbf"])):t==="\\"||Vs[n][t].font==="main"?du(t,"Main-Regular",n,a,r):du(t,"AMS-Regular",n,a,r.concat(["amsrm"]))},ETe=function(t,n,a,r,i){return i!=="textord"&&k6(t,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},CTe=function(t,n,a){var r=t.mode,i=t.text,o=["mord"],c=r==="math"||r==="text"&&n.font,l=c?n.font:n.fontFamily,d="",m="";if(i.charCodeAt(0)===55349&&([d,m]=jTe(i,r)),d.length>0)return du(i,d,r,n,o.concat(m));if(l){var h,x;if(l==="boldsymbol"){var f=ETe(i,r,n,o,a);h=f.fontName,x=[f.fontClass]}else c?(h=PJ[l].fontName,x=[l]):(h=v5(l,n.fontWeight,n.fontShape),x=[l,n.fontWeight,n.fontShape]);if(k6(i,h,r).metrics)return du(i,h,r,n,o.concat(x));if(CJ.hasOwnProperty(i)&&h.slice(0,10)==="Typewriter"){for(var b=[],y=0;y<i.length;y++)b.push(du(i[y],h,r,n,o.concat(x)));return _J(b)}}if(a==="mathord")return du(i,"Math-Italic",r,n,o.concat(["mathnormal"]));if(a==="textord"){var w=Vs[r][i]&&Vs[r][i].font;if(w==="ams"){var T=v5("amsrm",n.fontWeight,n.fontShape);return du(i,T,r,n,o.concat("amsrm",n.fontWeight,n.fontShape))}else if(w==="main"||!w){var A=v5("textrm",n.fontWeight,n.fontShape);
vendor: 4,637 bytes, line 1901
1901return du(i,A,r,n,o.concat(n.fontWeight,n.fontShape))}else{var E=v5(w,n.fontWeight,n.fontShape);return du(i,E,r,n,o.concat(E,n.fontWeight,n.fontShape))}}else throw new Error("unexpected type: "+a+" in makeOrd")},STe=(e,t)=>{if(fh(e.classes)!==fh(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var a in e.style)if(e.style.hasOwnProperty(a)&&e.style[a]!==t.style[a])return!1;for(var r in t.style)if(t.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;return!0},_Te=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],a=e[t+1];n instanceof Il&&a instanceof Il&&STe(n,a)&&(n.text+=a.text,n.height=Math.max(n.height,a.height),n.depth=Math.max(n.depth,a.depth),n.italic=a.italic,e.splice(t+1,1),t--)}return e},q9=function(t){for(var n=0,a=0,r=0,i=0;i<t.children.length;i++){var o=t.children[i];o.height>n&&(n=o.height),o.depth>a&&(a=o.depth),o.maxFontSize>r&&(r=o.maxFontSize)}t.height=n,t.depth=a,t.maxFontSize=r},mc=function(t,n,a,r){var i=new av(t,n,a,r);return q9(i),i},SJ=(e,t,n,a)=>new av(e,t,n,a),PTe=function(t,n,a){var r=mc([t],[],n);return r.height=Math.max(a||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),r.style.borderBottomWidth=Ut(r.height),r.maxFontSize=1,r},DTe=function(t,n,a,r){var i=new $9(t,n,a,r);return q9(i),i},_J=function(t){var n=new nv(t);return q9(n),n},RTe=function(t,n){return t instanceof nv?mc([],[t],n):t},ITe=function(t){if(t.positionType==="individualShift"){for(var n=t.children,a=[n[0]],r=-n[0].shift-n[0].elem.depth,i=r,o=1;o<n.length;o++){var c=-n[o].shift-i-n[o].elem.depth,l=c-(n[o-1].elem.height+n[o-1].elem.depth);i=i+c,a.push({type:"kern",size:l}),a.push(n[o])}return{children:a,depth:r}}var d;if(t.positionType==="top"){for(var m=t.positionData,h=0;h<t.children.length;h++){var x=t.children[h];m-=x.type==="kern"?x.size:x.elem.height+x.elem.depth}d=m}else if(t.positionType==="bottom")d=-t.positionData;else{var f=t.children[0];if(f.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")d=-f.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")d=-f.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:d}},MTe=function(t,n){for(var{children:a,depth:r}=ITe(t),i=0,o=0;o<a.length;o++){var c=a[o];if(c.type==="elem"){var l=c.elem;i=Math.max(i,l.maxFontSize,l.height)}}i+=2;var d=mc(["pstrut"],[]);d.style.height=Ut(i);for(var m=[],h=r,x=r,f=r,b=0;b<a.length;b++){var y=a[b];if(y.type==="kern")f+=y.size;else{var w=y.elem,T=y.wrapperClasses||[],A=y.wrapperStyle||{},E=mc(T,[d,w],void 0,A);E.style.top=Ut(-i-f-w.depth),y.marginLeft&&(E.style.marginLeft=y.marginLeft),y.marginRight&&(E.style.marginRight=y.marginRight),m.push(E),f+=w.height+w.depth}h=Math.min(h,f),x=Math.max(x,f)}var D=mc(["vlist"],m);D.style.height=Ut(x);var S;if(h<0){var R=mc([],[]),L=mc(["vlist"],[R]);L.style.height=Ut(-h);var I=mc(["vlist-s"],[new Il("â")]);S=[mc(["vlist-r"],[D,I]),mc(["vlist-r"],[L])]}else S=[mc(["vlist-r"],[D])];var F=mc(["vlist-t"],S);return S.length===2&&F.classes.push("vlist-t2"),F.height=x,F.depth=-h,F},LTe=(e,t)=>{var n=mc(["mspace"],[],t),a=Tr(e,t);return n.style.marginRight=Ut(a),n},v5=function(t,n,a){var r="";switch(t){case"amsrm":r="AMS";break;case"textrm":r="Main";break;case"textsf":r="SansSerif";break;case"texttt":r="Typewriter";break;default:r=t}var i;return n==="textbf"&&a==="textit"?i="BoldItalic":n==="textbf"?i="Bold":n==="textit"?i="Italic":i="Regular",r+"-"+i},PJ={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},DJ={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},OTe=function(t,n){var[a,r,i]=DJ[t],o=new gh(a),c=new $m([o],{width:Ut(r),height:Ut(i),style:"width:"+Ut(r),viewBox:"0 0 "+1e3*r+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),l=SJ(["overlay"],[c],n);return l.height=i,l.style.height=Ut(i),l.style.width=Ut(r),l}
vendor: 15,851 bytes, lines 1901-1902
1901,Ke={fontMap:PJ,makeSymbol:du,mathsym:ATe,makeSpan:mc,makeSvgSpan:SJ,makeLineSpan:PTe,makeAnchor:DTe,makeFragment:_J,wrapFragment:RTe,makeVList:MTe,makeOrd:CTe,makeGlue:LTe,staticSvg:OTe,svgData:DJ,tryCombineChars:_Te},wr={number:3,unit:"mu"},u0={number:4,unit:"mu"},Cm={number:5,unit:"mu"},BTe={mord:{mop:wr,mbin:u0,mrel:Cm,minner:wr},mop:{mord:wr,mop:wr,mrel:Cm,minner:wr},mbin:{mord:u0,mop:u0,mopen:u0,minner:u0},mrel:{mord:Cm,mop:Cm,mopen:Cm,minner:Cm},mopen:{},mclose:{mop:wr,mbin:u0,mrel:Cm,minner:wr},mpunct:{mord:wr,mop:wr,mrel:Cm,mopen:wr,mclose:wr,mpunct:wr,minner:wr},minner:{mord:wr,mop:wr,mbin:u0,mrel:Cm,mopen:wr,mpunct:wr,minner:wr}},FTe={mord:{mop:wr},mop:{mord:wr,mop:wr},mbin:{},mrel:{},mopen:{},mclose:{mop:wr},mpunct:{},minner:{mop:wr}},RJ={},Y3={},X3={};function Yt(e){for(var{type:t,names:n,props:a,handler:r,htmlBuilder:i,mathmlBuilder:o}=e,c={type:t,numArgs:a.numArgs,argTypes:a.argTypes,allowedInArgument:!!a.allowedInArgument,allowedInText:!!a.allowedInText,allowedInMath:a.allowedInMath===void 0?!0:a.allowedInMath,numOptionalArgs:a.numOptionalArgs||0,infix:!!a.infix,primitive:!!a.primitive,handler:r},l=0;l<n.length;++l)RJ[n[l]]=c;t&&(i&&(Y3[t]=i),o&&(X3[t]=o))}function cf(e){var{type:t,htmlBuilder:n,mathmlBuilder:a}=e;Yt({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:a})}var Q3=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},Zr=function(t){return t.type==="ordgroup"?t.body:[t]},qm=Ke.makeSpan,UTe=["leftmost","mbin","mopen","mrel","mop","mpunct"],HTe=["rightmost","mrel","mclose","mpunct"],VTe={display:On.DISPLAY,text:On.TEXT,script:On.SCRIPT,scriptscript:On.SCRIPTSCRIPT},zTe={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Ai=function(t,n,a,r){r===void 0&&(r=[null,null]);for(var i=[],o=0;o<t.length;o++){var c=$a(t[o],n);if(c instanceof nv){var l=c.children;i.push(...l)}else i.push(c)}if(Ke.tryCombineChars(i),!a)return i;var d=n;if(t.length===1){var m=t[0];m.type==="sizing"?d=n.havingSize(m.size):m.type==="styling"&&(d=n.havingStyle(VTe[m.style]))}var h=qm([r[0]||"leftmost"],[],n),x=qm([r[1]||"rightmost"],[],n),f=a==="root";return PL(i,(b,y)=>{var w=y.classes[0],T=b.classes[0];w==="mbin"&&HTe.includes(T)?y.classes[0]="mord":T==="mbin"&&UTe.includes(w)&&(b.classes[0]="mord")},{node:h},x,f),PL(i,(b,y)=>{var w=q7(y),T=q7(b),A=w&&T?b.hasClass("mtight")?FTe[w][T]:BTe[w][T]:null;if(A)return Ke.makeGlue(A,d)},{node:h},x,f),i},PL=function e(t,n,a,r,i){r&&t.push(r);for(var o=0;o<t.length;o++){var c=t[o],l=IJ(c);if(l){e(l.children,n,a,null,i);continue}var d=!c.hasClass("mspace");if(d){var m=n(c,a.node);m&&(a.insertAfter?a.insertAfter(m):(t.unshift(m),o++))}d?a.node=c:i&&c.hasClass("newline")&&(a.node=qm(["leftmost"])),a.insertAfter=(h=>x=>{t.splice(h+1,0,x),o++})(o)}r&&t.pop()},IJ=function(t){return t instanceof nv||t instanceof $9||t instanceof av&&t.hasClass("enclosing")?t:null},$Te=function e(t,n){var a=IJ(t);if(a){var r=a.children;if(r.length){if(n==="right")return e(r[r.length-1],"right");if(n==="left")return e(r[0],"left")}}return t},q7=function(t,n){return t?(n&&(t=$Te(t,n)),zTe[t.classes[0]]||null):null},y2=function(t,n){var a=["nulldelimiter"].concat(t.baseSizingClasses());return qm(n.concat(a))},$a=function(t,n,a){if(!t)return qm();if(Y3[t.type]){var r=Y3[t.type](t,n);if(a&&n.size!==a.size){r=qm(n.sizingClasses(a),[r],n);var i=n.sizeMultiplier/a.sizeMultiplier;r.height*=i,r.depth*=i}return r}else throw new Pt("Got group of unknown type: '"+t.type+"'")};function y5(e,t){var n=qm(["base"],e,t),a=qm(["strut"]);return a.style.height=Ut(n.height+n.depth),n.depth&&(a.style.verticalAlign=Ut(-n.depth)),n.children.unshift(a),n}function G7(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var a=Ai(e,t,"root"),r;a.length===2&&a[1].hasClass("tag")&&(r=a.pop());for(var i=[],o=[],c=0;c<a.length;c++)if(o.push(a[c]),a[c].hasClass("mbin")||a[c].hasClass("mrel")||a[c].hasClass("allowbreak")){for(var l=!1;c<a.length-1&&a[c+1].hasClass("mspace")&&!a[c+1].hasClass("newline");)c++,o.push(a[c]),a[c].hasClass("nobreak")&&(l=!0);l||(i.push(y5(o,t)),o=[])}else a[c].hasClass("newline")&&(o.pop(),o.length>0&&(i.push(y5(o,t)),o=[]),i.push(a[c]));o.length>0&&i.push(y5(o,t));var d;n?(d=y5(Ai(n,t,!0)),d.classes=["tag"],i.push(d)):r&&i.push(r);var m=qm(["katex-html"],i);if(m.setAttribute("aria-hidden","true"),d){var h=d.children[0];h.style.height=Ut(m.height+m.depth),m.depth&&(h.style.verticalAlign=Ut(-m.depth))}return m}function MJ(e){return new nv(e)}class Yc{constructor(t,n,a){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=a||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=fh(this.classes));for(var a=0;a<this.children.length;a++)if(this.children[a]instanceof Td&&this.children[a+1]instanceof Td){for(var r=this.children[a].toText()+this.children[++a].toText();this.children[a+1]instanceof Td;)r+=this.children[++a].toText();t.appendChild(new Td(r).toNode())}else t.appendChild(this.children[a].toNode());return t}toMarkup(){var t="<"+this.type;for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="',t+=Ya.escape(this.attributes[n]),t+='"');this.classes.length>0&&(t+=' class ="'+Ya.escape(fh(this.classes))+'"'),t+=">";for(var a=0;a<this.children.length;a++)t+=this.children[a].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class Td{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Ya.escape(this.toText())}toText(){return this.text}}class qTe{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character="â":t>=.1666&&t<=.1667?this.character="â":t>=.2222&&t<=.2223?this.character="â ":t>=.2777&&t<=.2778?this.character="â â":t>=-.05556&&t<=-.05555?this.character="ââ£":t>=-.1667&&t<=-.1666?this.character="ââ£":t>=-.2223&&t<=-.2222?this.character="ââ£":t>=-.2778&&t<=-.2777?this.character="â â£":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Ut(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Ut(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var _t={MathNode:Yc,TextNode:Td,SpaceNode:qTe,newDocumentFragment:MJ},Ml=function(t,n,a){return Vs[n][t]&&Vs[n][t].replace&&t.charCodeAt(0)!==55349&&!(CJ.hasOwnProperty(t)&&a&&(a.fontFamily&&a.fontFamily.slice(4,6)==="tt"||a.font&&a.font.slice(4,6)==="tt"))&&(t=Vs[n][t].replace),new _t.TextNode(t)},G9=function(t){return t.length===1?t[0]:new _t.MathNode("mrow",t)},J9=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var a=n.font;if(!a||a==="mathnormal")return null;var r=t.mode;if(a==="mathit")return"italic";if(a==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(a==="mathbf")return"bold";if(a==="mathbb")return"double-struck";if(a==="mathsfit")return"sans-serif-italic";if(a==="mathfrak")return"fraktur";if(a==="mathscr"||a==="mathcal")return"script";if(a==="mathsf")return"sans-serif";if(a==="mathtt")return"monospace";var i=t.text;if(["\\imath","\\jmath"].includes(i))return null;Vs[r][i]&&Vs[r][i].replace&&(i=Vs[r][i].replace);var o=Ke.fontMap[a].fontName;return z9(i,o,r)?Ke.fontMap[a].variant:null};function g8(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Td&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var n=e.children[0];return n instanceof Td&&n.text===","}else return!1}var wc=function(t,n,a){if(t.length===1){var r=Ls(t[0],n);return a&&r instanceof Yc&&r.type==="mo"&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r]}for(var i=[],o,c=0;c<t.length;c++){var l=Ls(t[c],n);if(l instanceof Yc&&o instanceof Yc){if(l.type==="mtext"&&o.type==="mtext"&&l.getAttribute("mathvariant")===o.getAttribute("mathvariant")){o.children.push(...l.children);continue}else if(l.type==="mn"&&o.type==="mn"){o.children.push(...l.children);continue}else if(g8(l)&&o.type==="mn"){o.children.push(...l.children);continue}else if(l.type==="mn"&&g8(o))l.children=[...o.children,...l.children],i.pop();else if((l.type==="msup"||l.type==="msub")&&l.children.length>=1&&(o.type==="mn"||g8(o))){var d=l.children[0];d instanceof Yc&&d.type==="mn"&&(d.children=[...o.children,...d.children],i.pop())}else if(o.type==="mi"&&o.children.length===1){var m=o.children[0];if(m instanceof Td&&m.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var h=l.children[0];h instanceof Td&&h.text.length>0&&(h.text=h.text.slice(0,1)+"̸"+h.text.slice(1),i.pop())}}}i.push(l),o=l}return i},xh=function(t,n,a){return G9(wc(t,n,a))},Ls=function(t,n){if(!t)return new _t.MathNode("mrow");if(X3[t.type]){var a=X3[t.type](t,n);return a}else throw new Pt("Got group of unknown type: '"+t.type+"'")};function DL(e,t,n,a,r){var i=wc(e,n),o;i.length===1&&i[0]instanceof Yc&&["mrow","mtable"].includes(i[0].type)?o=i[0]:o=new _t.MathNode("mrow",i);var c=new _t.MathNode("annotation",[new _t.TextNode(t)]);c.setAttribute("encoding","application/x-tex");var l=new _t.MathNode("semantics",[o,c]),d=new _t.MathNode("math",[l]);d.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a&&d.setAttribute("display","block");var m=r?"katex":"katex-mathml";return Ke.makeSpan([m],[d])}var LJ=function(t){return new Dm({style:t.displayMode?On.DISPLAY:On.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},OJ=function(t,n){if(n.displayMode){var a=["katex-display"];n.leqno&&a.push("leqno"),n.fleqn&&a.push("fleqn"),t=Ke.makeSpan(a,[t])}return t},GTe=function(t,n,a){var r=LJ(a),i;if(a.output==="mathml")return DL(t,n,r,a.displayMode,!0);if(a.output==="html"){var o=G7(t,r);i=Ke.makeSpan(["katex"],[o])}else{var c=DL(t,n,r,a.displayMode,!1),l=G7(t,r);i=Ke.makeSpan(["katex"],[c,l])}return OJ(i,a)},JTe=function(t,n,a){var r=LJ(a),i=G7(t,r),o=Ke.makeSpan(["katex"],[i]);return OJ(o,a)},WTe={widehat:"^",widecheck:"Ë",widetilde:"~",utilde:"~",overleftarrow:"â",underleftarrow:"â",xleftarrow:"â",overrightarrow:"â",underrightarrow:"â",xrightarrow:"â",underbrace:"â",overbrace:"â",overgroup:"â ",undergroup:"â¡",overleftrightarrow:"â",underleftrightarrow:"â",xleftrightarrow:"â",Overrightarrow:"â",xRightarrow:"â",overleftharpoon:"â¼",xleftharpoonup:"â¼",overrightharpoon:"â",xrightharpoonup:"â",xLeftarrow:"â",xLeftrightarrow:"â",xhookleftarrow:"â©",xhookrightarrow:"âª",xmapsto:"â¦",xrightharpoondown:"â",xleftharpoondown:"â½",xrightleftharpoons:"â",xleftrightharpoons:"â",xtwoheadleftarrow:"â",xtwoheadrightarrow:"â ",xlongequal:"=",xtofrom:"â",xrightleftarrows:"â",xrightequilibrium:"â",xleftequilibrium:"â","\\cdrightarrow":"â","\\cdleftarrow":"â","\\cdlongequal":"="},YTe=function(t){var n=new _t.MathNode("mo",[new _t.TextNode(WTe[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},XTe={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},QTe=function(t){return t.type==="ordgroup"?t.body.length:1},KTe=function(t,n){function a(){var c=4e5,l=t.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(l)){var d=t,m=QTe(d.base),h,x,f;if(m>5)l==="widehat"||l==="widecheck"?(h=420,c=2364,f=.42,x=l+"4"):(h=312,c=2340,f=.34,x="tilde4");else{var b=[1,1,2,2,3,3][m];l==="widehat"||l==="widecheck"?(c=[0,1062,2364,2364,2364][b],h=[0,239,300,360,420][b],f=[0,.24,.3,.3,.36,.42][b],x=l+b):(c=[0,600,1033,2339,2340][b],h=[0,260,286,306,312][b],f=[0,.26,.286,.3,.306,.34][b],x="tilde"+b)}var y=new gh(x),w=new $m([y],{width:"100%",height:Ut(f),viewBox:"0 0 "+c+" "+h,preserveAspectRatio:"none"});return{span:Ke.makeSvgSpan([],[w],n),minWidth:0,height:f}}else{var T=[],A=XTe[l],[E,D,S]=A,R=S/1e3,L=E.length,I,F;if(L===1){var _=A[3];I=["hide-tail"],F=[_]}else if(L===2)I=["halfarrow-left","halfarrow-right"],F=["xMinYMin","xMaxYMin"];else if(L===3)I=["brace-left","brace-center","brace-right"],F=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support 1902 `+L+" children.");for(var U=0;U<L;U++){var O=new gh(E[U]),W=new $m([O],{width:"400em",height:Ut(R),viewBox:"0 0 "+c+" "+S,preserveAspectRatio:F[U]+" slice"}),J=Ke.makeSvgSpan([I[U]],[W],n);if(L===1)return{span:J,minWidth:D,height:R};J.style.height=Ut(R),T.push(J)}return{span:Ke.makeSpan(["stretchy"],T,n),minWidth:D,height:R}}}var{span:r,minWidth:i,height:o}=a();return r.height=o,r.style.height=Ut(o),i>0&&(r.style.minWidth=Ut(i)),r},ZTe=function(t,n,a,r,i){var o,c=t.height+t.depth+a+r;
vendor: 13,507 bytes, line 1902
1902if(/fbox|color|angl/.test(n)){if(o=Ke.makeSpan(["stretchy",n],[],i),n==="fbox"){var l=i.color&&i.getColor();l&&(o.style.borderColor=l)}}else{var d=[];/^[bx]cancel$/.test(n)&&d.push(new z7({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&d.push(new z7({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var m=new $m(d,{width:"100%",height:Ut(c)});o=Ke.makeSvgSpan([],[m],i)}return o.height=c,o.style.height=Ut(c),o},Gm={encloseSpan:ZTe,mathMLnode:YTe,svgSpan:KTe};function ma(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function W9(e){var t=j6(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function j6(e){return e&&(e.type==="atom"||kTe.hasOwnProperty(e.type))?e:null}var Y9=(e,t)=>{var n,a,r;e&&e.type==="supsub"?(a=ma(e.base,"accent"),n=a.base,e.base=n,r=TTe($a(e,t)),e.base=a):(a=ma(e,"accent"),n=a.base);var i=$a(n,t.havingCrampedStyle()),o=a.isShifty&&Ya.isCharacterBox(n),c=0;if(o){var l=Ya.getBaseElem(n),d=$a(l,t.havingCrampedStyle());c=jL(d).skew}var m=a.label==="\\c",h=m?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight),x;if(a.isStretchy)x=Gm.svgSpan(a,t),x=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:x,wrapperClasses:["svg-align"],wrapperStyle:c>0?{width:"calc(100% - "+Ut(2*c)+")",marginLeft:Ut(2*c)}:void 0}]},t);else{var f,b;a.label==="\\vec"?(f=Ke.staticSvg("vec",t),b=Ke.svgData.vec[1]):(f=Ke.makeOrd({mode:a.mode,text:a.label},t,"textord"),f=jL(f),f.italic=0,b=f.width,m&&(h+=f.depth)),x=Ke.makeSpan(["accent-body"],[f]);var y=a.label==="\\textcircled";y&&(x.classes.push("accent-full"),h=i.height);var w=c;y||(w-=b/2),x.style.left=Ut(w),a.label==="\\textcircled"&&(x.style.top=".2em"),x=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-h},{type:"elem",elem:x}]},t)}var T=Ke.makeSpan(["mord","accent"],[x],t);return r?(r.children[0]=T,r.height=Math.max(T.height,r.height),r.classes[0]="mord",r):T},BJ=(e,t)=>{var n=e.isStretchy?Gm.mathMLnode(e.label):new _t.MathNode("mo",[Ml(e.label,e.mode)]),a=new _t.MathNode("mover",[Ls(e.base,t),n]);return a.setAttribute("accent","true"),a},eNe=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));Yt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=Q3(t[0]),a=!eNe.test(e.funcName),r=!a||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:a,isShifty:r,base:n}},htmlBuilder:Y9,mathmlBuilder:BJ});Yt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],a=e.parser.mode;return a==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),a="text"),{type:"accent",mode:a,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:Y9,mathmlBuilder:BJ});Yt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:a}=e,r=t[0];return{type:"accentUnder",mode:n.mode,label:a,base:r}},htmlBuilder:(e,t)=>{var n=$a(e.base,t),a=Gm.svgSpan(e,t),r=e.label==="\\utilde"?.12:0,i=Ke.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:r},{type:"elem",elem:n}]},t);return Ke.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var n=Gm.mathMLnode(e.label),a=new _t.MathNode("munder",[Ls(e.base,t),n]);return a.setAttribute("accentunder","true"),a}});var w5=e=>{var t=new _t.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Yt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:a,funcName:r}=e;return{type:"xArrow",mode:a.mode,label:r,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,a=t.havingStyle(n.sup()),r=Ke.wrapFragment($a(e.body,a,t),t),i=e.label.slice(0,2)==="\\x"?"x":"cd";r.classes.push(i+"-arrow-pad");var o;e.below&&(a=t.havingStyle(n.sub()),o=Ke.wrapFragment($a(e.below,a,t),t),o.classes.push(i+"-arrow-pad"));var c=Gm.svgSpan(e,t),l=-t.fontMetrics().axisHeight+.5*c.height,d=-t.fontMetrics().axisHeight-.5*c.height-.111;(r.depth>.25||e.label==="\\xleftequilibrium")&&(d-=r.depth);var m;if(o){var h=-t.fontMetrics().axisHeight+o.height+.5*c.height+.111;m=Ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:d},{type:"elem",elem:c,shift:l},{type:"elem",elem:o,shift:h}]},t)}else m=Ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:d},{type:"elem",elem:c,shift:l}]},t);return m.children[0].children[0].children[1].classes.push("svg-align"),Ke.makeSpan(["mrel","x-arrow"],[m],t)},mathmlBuilder(e,t){var n=Gm.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var a;if(e.body){var r=w5(Ls(e.body,t));if(e.below){var i=w5(Ls(e.below,t));a=new _t.MathNode("munderover",[n,i,r])}else a=new _t.MathNode("mover",[n,r])}else if(e.below){var o=w5(Ls(e.below,t));a=new _t.MathNode("munder",[n,o])}else a=w5(),a=new _t.MathNode("mover",[n,a]);return a}});var tNe=Ke.makeSpan;function FJ(e,t){var n=Ai(e.body,t,!0);return tNe([e.mclass],n,t)}function UJ(e,t){var n,a=wc(e.body,t);return e.mclass==="minner"?n=new _t.MathNode("mpadded",a):e.mclass==="mord"?e.isCharacterBox?(n=a[0],n.type="mi"):n=new _t.MathNode("mi",a):(e.isCharacterBox?(n=a[0],n.type="mo"):n=new _t.MathNode("mo",a),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}Yt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:a}=e,r=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+a.slice(5),body:Zr(r),isCharacterBox:Ya.isCharacterBox(r)}},htmlBuilder:FJ,mathmlBuilder:UJ});var A6=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};Yt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:A6(t[0]),body:Zr(t[1]),isCharacterBox:Ya.isCharacterBox(t[1])}}});Yt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:a}=e,r=t[1],i=t[0],o;a!=="\\stackrel"?o=A6(r):o="mrel";var c={type:"op",mode:r.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:a!=="\\stackrel",body:Zr(r)},l={type:"supsub",mode:i.mode,base:c,sup:a==="\\underset"?null:i,sub:a==="\\underset"?i:null};return{type:"mclass",mode:n.mode,mclass:o,body:[l],isCharacterBox:Ya.isCharacterBox(l)}},htmlBuilder:FJ,mathmlBuilder:UJ});Yt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:A6(t[0]),body:Zr(t[0])}},htmlBuilder(e,t){var n=Ai(e.body,t,!0),a=Ke.makeSpan([e.mclass],n,t);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder(e,t){var n=wc(e.body,t),a=new _t.MathNode("mstyle",n);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var nNe={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},RL=()=>({type:"styling",body:[],mode:"math",style:"display"}),IL=e=>e.type==="textord"&&e.text==="@",aNe=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function sNe(e,t,n){var a=nNe[e];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(a,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var r=n.callFunction("\\\\cdleft",[t[0]],[]),i={type:"atom",text:a,mode:"math",family:"rel"},o=n.callFunction("\\Big",[i],[]),c=n.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[r,o,c]};return n.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var d={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[d],[])}default:return{type:"textord",text:" ",mode:"math"}}}function rNe(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Pt("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var a=[],r=[a],i=0;i<t.length;i++){for(var o=t[i],c=RL(),l=0;l<o.length;l++)if(!IL(o[l]))c.body.push(o[l]);else{a.push(c),l+=1;var d=W9(o[l]).text,m=new Array(2);if(m[0]={type:"ordgroup",mode:"math",body:[]},m[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(d)>-1))if("<>AV".indexOf(d)>-1)for(var h=0;h<2;h++){for(var x=!0,f=l+1;f<o.length;f++){if(aNe(o[f],d)){x=!1,l=f;break}if(IL(o[f]))throw new Pt("Missing a "+d+" character to complete a CD arrow.",o[f]);m[h].body.push(o[f])}if(x)throw new Pt("Missing a "+d+" character to complete a CD arrow.",o[l])}else throw new Pt('Expected one of "<>AV=|." after @',o[l]);var b=sNe(d,m,e),y={type:"styling",body:[b],mode:"math",style:"display"};a.push(y),c=RL()}i%2===0?a.push(c):a.shift(),a=[],r.push(a)}e.gullet.endGroup(),e.gullet.endGroup();var w=new Array(r[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:r,arraystretch:1,addJot:!0,rowGaps:[null],cols:w,colSeparationType:"CD",hLinesBeforeRow:new Array(r.length+1).fill([])}}Yt({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:a}=e;return{type:"cdlabel",mode:n.mode,side:a.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),a=Ke.wrapFragment($a(e.label,n,t),t);return a.classes.push("cd-label-"+e.side),a.style.bottom=Ut(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(e,t){var n=new _t.MathNode("mrow",[Ls(e.label,t)]);return n=new _t.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new _t.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});Yt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=Ke.wrapFragment($a(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new _t.MathNode("mrow",[Ls(e.fragment,t)])}});Yt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,a=ma(t[0],"ordgroup"),r=a.body,i="",o=0;o<r.length;o++){var c=ma(r[o],"textord");i+=c.text}var l=parseInt(i),d;if(isNaN(l))throw new Pt("\\@char has non-numeric argument "+i);if(l<0||l>=1114111)throw new Pt("\\@char with invalid code point "+i);return l<=65535?d=String.fromCharCode(l):(l-=65536,d=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:n.mode,text:d}}});var HJ=(e,t)=>{var n=Ai(e.body,t.withColor(e.color),!1);return Ke.makeFragment(n)},VJ=(e,t)=>{var n=wc(e.body,t.withColor(e.color)),a=new _t.MathNode("mstyle",n);return a.setAttribute("mathcolor",e.color),a};Yt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,a=ma(t[0],"color-token").color,r=t[1];return{type:"color",mode:n.mode,color:a,body:Zr(r)}},htmlBuilder:HJ,mathmlBuilder:VJ});Yt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:a}=e,r=ma(t[0],"color-token").color;n.gullet.macros.set("\\current@color",r);var i=n.parseExpression(!0,a);return{type:"color",mode:n.mode,color:r,body:i}},htmlBuilder:HJ,mathmlBuilder:VJ});Yt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:a}=e,r=a.gullet.future().text==="["?a.parseSizeGroup(!0):null,i=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTe
1902X, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:a.mode,newLine:i,size:r&&ma(r,"size").value}},htmlBuilder(e,t){var n=Ke.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=Ut(Tr(e.size,t)))),n},mathmlBuilder(e,t){var n=new _t.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",Ut(Tr(e.size,t)))),n}});var J7={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},zJ=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Pt("Expected a control sequence",e);return t},iNe=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},$J=(e,t,n,a)=>{var r=e.gullet.macros.get(n.text);r==null&&(n.noexpand=!0,r={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,r,a)};Yt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var a=t.fetch();if(J7[a.text])return(n==="\\global"||n==="\\\\globallong")&&(a.text=J7[a.text]),ma(t.parseFunction(),"internal");throw new Pt("Invalid token after macro prefix",a)}});Yt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,a=t.gullet.popToken(),r=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(r))throw new Pt("Expected a control sequence",a);for(var i=0,o,c=[[]];t.gullet.future().text!=="{";)if(a=t.gullet.popToken(),a.text==="#"){if(t.gullet.future().text==="{"){o=t.gullet.future(),c[i].push("{");break}if(a=t.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new Pt('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==i+1)throw new Pt('Argument number "'+a.text+'" out of order');i++,c.push([])}else{if(a.text==="EOF")throw new Pt("Expected a macro definition");c[i].push(a.text)}var{tokens:l}=t.gullet.consumeArg();return o&&l.unshift(o),(n==="\\edef"||n==="\\xdef")&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(r,{tokens:l,numArgs:i,delimiters:c},n===J7[n]),{type:"internal",mode:t.mode}}});Yt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,a=zJ(t.gullet.popToken());t.gullet.consumeSpaces();var r=iNe(t);return $J(t,a,r,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});Yt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,a=zJ(t.gullet.popToken()),r=t.gullet.popToken(),i=t.gullet.popToken();return $J(t,a,i,n==="\\\\globalfuture"),t.gullet.pushToken(i),t.gullet.pushToken(r),{type:"internal",mode:t.mode}}});var lb=function(t,n,a){var r=Vs.math[t]&&Vs.math[t].replace,i=z9(r||t,n,a);if(!i)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return i},X9=function(t,n,a,r){var i=a.havingBaseStyle(n),o=Ke.makeSpan(r.concat(i.sizingClasses(a)),[t],a),c=i.sizeMultiplier/a.sizeMultiplier;return o.height*=c,o.depth*=c,o.maxFontSize=i.sizeMultiplier,o},qJ=function(t,n,a){var r=n.havingBaseStyle(a),i=(1-n.sizeMultiplier/r.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Ut(i),t.height-=i,t.depth+=i},oNe=function(t,n,a,r,i,o){var c=Ke.makeSymbol(t,"Main-Regular",i,r),l=X9(c,n,r,o);return a&&qJ(l,r,n),l},cNe=function(t,n,a,r){return Ke.makeSymbol(t,"Size"+n+"-Regular",a,r)},GJ=function(t,n,a,r,i,o){var c=cNe(t,n,i,r),l=X9(Ke.makeSpan(["delimsizing","size"+n],[c],r),On.TEXT,r,o);return a&&qJ(l,r,On.TEXT),l},x8=function(t,n,a){var r;n==="Size1-Regular"?r="delim-size1":r="delim-size4";var i=Ke.makeSpan(["delimsizinginner",r],[Ke.makeSpan([],[Ke.makeSymbol(t,n,a)])]);return{type:"elem",elem:i}},b8=function(t,n,a){var r=wd["Size4-Regular"][t.charCodeAt(0)]?wd["Size4-Regular"][t.charCodeAt(0)][4]:wd["Size1-Regular"][t.charCodeAt(0)][4],i=new gh("inner",hTe(t,Math.round(1e3*n))),o=new $m([i],{width:Ut(r),height:Ut(n),style:"width:"+Ut(r),viewBox:"0 0 "+1e3*r+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),c=Ke.makeSvgSpan([],[o],a);
vendor: 8,154 bytes, line 1902
1902return c.height=n,c.style.height=Ut(n),c.style.width=Ut(r),{type:"elem",elem:c}},W7=.008,T5={type:"kern",size:-1*W7},lNe=["|","\\lvert","\\rvert","\\vert"],uNe=["\\|","\\lVert","\\rVert","\\Vert"],JJ=function(t,n,a,r,i,o){var c,l,d,m,h="",x=0;c=d=m=t,l=null;var f="Size1-Regular";t==="\\uparrow"?d=m="â":t==="\\Uparrow"?d=m="â":t==="\\downarrow"?c=d="â":t==="\\Downarrow"?c=d="â":t==="\\updownarrow"?(c="\\uparrow",d="â",m="\\downarrow"):t==="\\Updownarrow"?(c="\\Uparrow",d="â",m="\\Downarrow"):lNe.includes(t)?(d="â£",h="vert",x=333):uNe.includes(t)?(d="â¥",h="doublevert",x=556):t==="["||t==="\\lbrack"?(c="â¡",d="â¢",m="â£",f="Size4-Regular",h="lbrack",x=667):t==="]"||t==="\\rbrack"?(c="â¤",d="â¥",m="â¦",f="Size4-Regular",h="rbrack",x=667):t==="\\lfloor"||t==="â"?(d=c="â¢",m="â£",f="Size4-Regular",h="lfloor",x=667):t==="\\lceil"||t==="â"?(c="â¡",d=m="â¢",f="Size4-Regular",h="lceil",x=667):t==="\\rfloor"||t==="â"?(d=c="â¥",m="â¦",f="Size4-Regular",h="rfloor",x=667):t==="\\rceil"||t==="â"?(c="â¤",d=m="â¥",f="Size4-Regular",h="rceil",x=667):t==="("||t==="\\lparen"?(c="â",d="â",m="â",f="Size4-Regular",h="lparen",x=875):t===")"||t==="\\rparen"?(c="â",d="â",m="â ",f="Size4-Regular",h="rparen",x=875):t==="\\{"||t==="\\lbrace"?(c="â§",l="â¨",m="â©",d="âª",f="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(c="â«",l="â¬",m="â",d="âª",f="Size4-Regular"):t==="\\lgroup"||t==="â®"?(c="â§",m="â©",d="âª",f="Size4-Regular"):t==="\\rgroup"||t==="â¯"?(c="â«",m="â",d="âª",f="Size4-Regular"):t==="\\lmoustache"||t==="â°"?(c="â§",m="â",d="âª",f="Size4-Regular"):(t==="\\rmoustache"||t==="â±")&&(c="â«",m="â©",d="âª",f="Size4-Regular");var b=lb(c,f,i),y=b.height+b.depth,w=lb(d,f,i),T=w.height+w.depth,A=lb(m,f,i),E=A.height+A.depth,D=0,S=1;if(l!==null){var R=lb(l,f,i);D=R.height+R.depth,S=2}var L=y+E+D,I=Math.max(0,Math.ceil((n-L)/(S*T))),F=L+I*S*T,_=r.fontMetrics().axisHeight;a&&(_*=r.sizeMultiplier);var U=F/2-_,O=[];if(h.length>0){var W=F-y-E,J=Math.round(F*1e3),oe=fTe(h,Math.round(W*1e3)),G=new gh(h,oe),K=(x/1e3).toFixed(3)+"em",ee=(J/1e3).toFixed(3)+"em",pe=new $m([G],{width:K,height:ee,viewBox:"0 0 "+x+" "+J}),V=Ke.makeSvgSpan([],[pe],r);V.height=J/1e3,V.style.width=K,V.style.height=ee,O.push({type:"elem",elem:V})}else{if(O.push(x8(m,f,i)),O.push(T5),l===null){var Y=F-y-E+2*W7;O.push(b8(d,Y,r))}else{var z=(F-y-E-D)/2+2*W7;O.push(b8(d,z,r)),O.push(T5),O.push(x8(l,f,i)),O.push(T5),O.push(b8(d,z,r))}O.push(T5),O.push(x8(c,f,i))}var H=r.havingBaseStyle(On.TEXT),ne=Ke.makeVList({positionType:"bottom",positionData:U,children:O},H);return X9(Ke.makeSpan(["delimsizing","mult"],[ne],H),On.TEXT,r,o)},v8=80,y8=.08,w8=function(t,n,a,r,i){var o=pTe(t,r,a),c=new gh(t,o),l=new $m([c],{width:"400em",height:Ut(n),viewBox:"0 0 400000 "+a,preserveAspectRatio:"xMinYMin slice"});return Ke.makeSvgSpan(["hide-tail"],[l],i)},dNe=function(t,n){var a=n.havingBaseSizing(),r=QJ("\\surd",t*a.sizeMultiplier,XJ,a),i=a.sizeMultiplier,o=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),c,l=0,d=0,m=0,h;return r.type==="small"?(m=1e3+1e3*o+v8,t<1?i=1:t<1.4&&(i=.7),l=(1+o+y8)/i,d=(1+o)/i,c=w8("sqrtMain",l,m,o,n),c.style.minWidth="0.853em",h=.833/i):r.type==="large"?(m=(1e3+v8)*Pb[r.size],d=(Pb[r.size]+o)/i,l=(Pb[r.size]+o+y8)/i,c=w8("sqrtSize"+r.size,l,m,o,n),c.style.minWidth="1.02em",h=1/i):(l=t+o+y8,d=t+o,m=Math.floor(1e3*t+o)+v8,c=w8("sqrtTall",l,m,o,n),c.style.minWidth="0.742em",h=1.056),c.height=d,c.style.height=Ut(l),{span:c,advanceWidth:h,ruleWidth:(n.fontMetrics().sqrtRuleThickness+o)*i}},WJ=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","â","â","\\lceil","\\rceil","â","â","\\surd"],mNe=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","â®","â¯","\\lmoustache","\\rmoustache","â°","â±"],YJ=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Pb=[0,1.2,1.8,2.4,3],pNe=function(t,n,a,r,i){if(t==="<"||t==="\\lt"||t==="â¨"?t="\\langle":(t===">"||t==="\\gt"||t==="â©")&&(t="\\rangle"),WJ.includes(t)||YJ.includes(t))return GJ(t,n,!1,a,r,i);if(mNe.includes(t))return JJ(t,Pb[n],!1,a,r,i);throw new Pt("Illegal delimiter: '"+t+"'")},hNe=[{type:"small",style:On.SCRIPTSCRIPT},{type:"small",style:On.SCRIPT},{type:"small",style:On.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],fNe=[{type:"small",style:On.SCRIPTSCRIPT},{type:"small",style:On.SCRIPT},{type:"small",style:On.TEXT},{type:"stack"}],XJ=[{type:"small",style:On.SCRIPTSCRIPT},{type:"small",style:On.SCRIPT},{type:"small",style:On.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],gNe=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},QJ=function(t,n,a,r){for(var i=Math.min(2,3-r.style.size),o=i;o<a.length&&a[o].type!=="stack";o++){var c=lb(t,gNe(a[o]),"math"),l=c.height+c.depth;if(a[o].type==="small"){var d=r.havingBaseStyle(a[o].style);l*=d.sizeMultiplier}if(l>n)return a[o]}return a[a.length-1]},KJ=function(t,n,a,r,i,o){t==="<"||t==="\\lt"||t==="â¨"?t="\\langle":(t===">"||t==="\\gt"||t==="â©")&&(t="\\rangle");var c;YJ.includes(t)?c=hNe:WJ.includes(t)?c=XJ:c=fNe;var l=QJ(t,n,c,r);return l.type==="small"?oNe(t,l.style,a,r,i,o):l.type==="large"?GJ(t,l.size,a,r,i,o):JJ(t,n,a,r,i,o)},xNe=function(t,n,a,r,i,o){var c=r.fontMetrics().axisHeight*r.sizeMultiplier,l=901,d=5/r.fontMetrics().ptPerEm,m=Math.max(n-c,a+c),h=Math.max(m/500*l,2*m-d);return KJ(t,h,!0,r,i,o)},Fm={sqrtImage:dNe,sizedDelim:pNe,sizeToMaxHeight:Pb,customSizedDelim:KJ,leftRightDelim:xNe},ML={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},bNe=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","â","â","\\lceil","\\rceil","â","â","<",">","\\langle","â¨","\\rangle","â©","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","â®","â¯","\\lmoustache","\\rmoustache","â°","â±","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function E6(e,t){var n=j6(e);if(n&&bNe.includes(n.text))return n;throw n?new Pt("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new Pt("Invalid delimiter type '"+e.type+"'",e)}Yt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=E6(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:ML[e.funcName].size,mclass:ML[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?Ke.makeSpan([e.mclass]):Fm.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Ml(e.delim,e.mode));var n=new _t.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var a=Ut(Fm.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",a),n.setAttribute("maxsize",a),n}});function LL(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Yt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");
vendor: 12,902 bytes, line 1902
1902if(n&&typeof n!="string")throw new Pt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:E6(t[0],e).text,color:n}}});Yt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=E6(t[0],e),a=e.parser;++a.leftrightDepth;var r=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var i=ma(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:r,left:n.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{LL(e);for(var n=Ai(e.body,t,!0,["mopen","mclose"]),a=0,r=0,i=!1,o=0;o<n.length;o++)n[o].isMiddle?i=!0:(a=Math.max(n[o].height,a),r=Math.max(n[o].depth,r));a*=t.sizeMultiplier,r*=t.sizeMultiplier;var c;if(e.left==="."?c=y2(t,["mopen"]):c=Fm.leftRightDelim(e.left,a,r,t,e.mode,["mopen"]),n.unshift(c),i)for(var l=1;l<n.length;l++){var d=n[l],m=d.isMiddle;m&&(n[l]=Fm.leftRightDelim(m.delim,a,r,m.options,e.mode,[]))}var h;if(e.right===".")h=y2(t,["mclose"]);else{var x=e.rightColor?t.withColor(e.rightColor):t;h=Fm.leftRightDelim(e.right,a,r,x,e.mode,["mclose"])}return n.push(h),Ke.makeSpan(["minner"],n,t)},mathmlBuilder:(e,t)=>{LL(e);var n=wc(e.body,t);if(e.left!=="."){var a=new _t.MathNode("mo",[Ml(e.left,e.mode)]);a.setAttribute("fence","true"),n.unshift(a)}if(e.right!=="."){var r=new _t.MathNode("mo",[Ml(e.right,e.mode)]);r.setAttribute("fence","true"),e.rightColor&&r.setAttribute("mathcolor",e.rightColor),n.push(r)}return G9(n)}});Yt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=E6(t[0],e);if(!e.parser.leftrightDepth)throw new Pt("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=y2(t,[]);else{n=Fm.sizedDelim(e.delim,1,t,e.mode,[]);var a={delim:e.delim,options:t};n.isMiddle=a}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?Ml("|","text"):Ml(e.delim,e.mode),a=new _t.MathNode("mo",[n]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var Q9=(e,t)=>{var n=Ke.wrapFragment($a(e.body,t),t),a=e.label.slice(1),r=t.sizeMultiplier,i,o=0,c=Ya.isCharacterBox(e.body);if(a==="sout")i=Ke.makeSpan(["stretchy","sout"]),i.height=t.fontMetrics().defaultRuleThickness/r,o=-.5*t.fontMetrics().xHeight;else if(a==="phase"){var l=Tr({number:.6,unit:"pt"},t),d=Tr({number:.35,unit:"ex"},t),m=t.havingBaseSizing();r=r/m.sizeMultiplier;var h=n.height+n.depth+l+d;n.style.paddingLeft=Ut(h/2+l);var x=Math.floor(1e3*h*r),f=dTe(x),b=new $m([new gh("phase",f)],{width:"400em",height:Ut(x/1e3),viewBox:"0 0 400000 "+x,preserveAspectRatio:"xMinYMin slice"});i=Ke.makeSvgSpan(["hide-tail"],[b],t),i.style.height=Ut(h),o=n.depth+l+d}else{/cancel/.test(a)?c||n.classes.push("cancel-pad"):a==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var y=0,w=0,T=0;/box/.test(a)?(T=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),y=t.fontMetrics().fboxsep+(a==="colorbox"?0:T),w=y):a==="angl"?(T=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),y=4*T,w=Math.max(0,.25-n.depth)):(y=c?.2:0,w=y),i=Gm.encloseSpan(n,a,y,w,t),/fbox|boxed|fcolorbox/.test(a)?(i.style.borderStyle="solid",i.style.borderWidth=Ut(T)):a==="angl"&&T!==.049&&(i.style.borderTopWidth=Ut(T),i.style.borderRightWidth=Ut(T)),o=n.depth+w,e.backgroundColor&&(i.style.backgroundColor=e.backgroundColor,e.borderColor&&(i.style.borderColor=e.borderColor))}var A;if(e.backgroundColor)A=Ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:o},{type:"elem",elem:n,shift:0}]},t);else{var E=/cancel|phase/.test(a)?["svg-align"]:[];A=Ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:i,shift:o,wrapperClasses:E}]},t)}return/cancel/.test(a)&&(A.height=n.height,A.depth=n.depth),/cancel/.test(a)&&!c?Ke.makeSpan(["mord","cancel-lap"],[A],t):Ke.makeSpan(["mord"],[A],t)},K9=(e,t)=>{var n=0,a=new _t.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Ls(e.body,t)]);switch(e.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*n+"pt"),a.setAttribute("height","+"+2*n+"pt"),a.setAttribute("lspace",n+"pt"),a.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var r=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);a.setAttribute("style","border: "+r+"em solid "+String(e.borderColor))}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&a.setAttribute("mathbackground",e.backgroundColor),a};Yt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:a,funcName:r}=e,i=ma(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:a.mode,label:r,backgroundColor:i,body:o}},htmlBuilder:Q9,mathmlBuilder:K9});Yt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:a,funcName:r}=e,i=ma(t[0],"color-token").color,o=ma(t[1],"color-token").color,c=t[2];return{type:"enclose",mode:a.mode,label:r,backgroundColor:o,borderColor:i,body:c}},htmlBuilder:Q9,mathmlBuilder:K9});Yt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});Yt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:a}=e,r=t[0];return{type:"enclose",mode:n.mode,label:a,body:r}},htmlBuilder:Q9,mathmlBuilder:K9});Yt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var ZJ={};function Fd(e){for(var{type:t,names:n,props:a,handler:r,htmlBuilder:i,mathmlBuilder:o}=e,c={type:t,numArgs:a.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:r},l=0;l<n.length;++l)ZJ[n[l]]=c;i&&(Y3[t]=i),o&&(X3[t]=o)}var eW={};function he(e,t){eW[e]=t}function OL(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n==="\\relax"&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n==="\\hline"||n==="\\hdashline";)e.consume(),t.push(n==="\\hdashline"),e.consumeSpaces(),n=e.fetch().text;return t}var C6=e=>{var t=e.parser.settings;if(!t.displayMode)throw new Pt("{"+e.envName+"} can be used only in display mode.")};function Z9(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function kh(e,t,n){var{hskipBeforeAndAfter:a,addJot:r,cols:i,arraystretch:o,colSeparationType:c,autoTag:l,singleRow:d,emptySingleRow:m,maxNumCols:h,leqno:x}=t;if(e.gullet.beginGroup(),d||e.gullet.macros.set("\\cr","\\\\\\relax"),!o){var f=e.gullet.expandMacroAsText("\\arraystretch");if(f==null)o=1;else if(o=parseFloat(f),!o||o<0)throw new Pt("Invalid \\arraystretch: "+f)}e.gullet.beginGroup();var b=[],y=[b],w=[],T=[],A=l!=null?[]:void 0;function E(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function D(){A&&(e.gullet.macros.get("\\df@tag")?(A.push(e.subparse([new el("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):A.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(E(),T.push(OL(e));;){var S=e.parseExpression(!1,d?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),S={type:"ordgroup",mode:e.mode,body:S},n&&(S={type:"styling",mode:e.mode,style:n,body:[S]}),b.push(S);var R=e.fetch().text;if(R==="&"){if(h&&b.length===h){if(d||c)throw new Pt("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(R==="\\end"){D(),b.length===1&&S.type==="styling"&&S.body[0].body.length===0&&(y.length>1||!m)&&y.pop(),T.length<y.length+1&&T.push([]);break}else if(R==="\\\\"){e.consume();var L=void 0;e.gullet.future().text!==" "&&(L=e.parseSizeGroup(!0)),w.push(L?L.value:null),D(),T.push(OL(e)),b=[],y.push(b),E()}else throw new Pt("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:r,arraystretch:o,body:y,cols:i,rowGaps:w,hskipBeforeAndAfter:a,hLinesBeforeRow:T,colSeparationType:c,tags:A,leqno:x}}function eE(e){return e.slice(0,1)==="d"?"display":"text"}var Ud=function(t,n){var a,r,i=t.body.length,o=t.hLinesBeforeRow,c=0,l=new Array(i),d=[],m=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),h=1/n.fontMetrics().ptPerEm,x=5*h;if(t.colSeparationType&&t.colSeparationType==="small"){var f=n.havingStyle(On.SCRIPT).sizeMultiplier;x=.2778*(f/n.sizeMultiplier)}var b=t.colSeparationType==="CD"?Tr({number:3,unit:"ex"},n):12*h,y=3*h,w=t.arraystretch*b,T=.7*w,A=.3*w,E=0;function D(Jt){for(var it=0;it<Jt.length;++it)it>0&&(E+=.25),d.push({pos:E,isDashed:Jt[it]})}for(D(o[0]),a=0;a<t.body.length;++a){var S=t.body[a],R=T,L=A;c<S.length&&(c=S.length);var I=new Array(S.length);for(r=0;r<S.length;++r){var F=$a(S[r],n);L<F.depth&&(L=F.depth),R<F.height&&(R=F.height),I[r]=F}var _=t.rowGaps[a],U=0;_&&(U=Tr(_,n),U>0&&(U+=A,L<U&&(L=U),U=0)),t.addJot&&(L+=y),I.height=R,I.depth=L,E+=R,I.pos=E,E+=L+U,l[a]=I,D(o[a+1])}var O=E/2+n.fontMetrics().axisHeight,W=t.cols||[],J=[],oe,G,K=[];if(t.tags&&t.tags.some(Jt=>Jt))for(a=0;a<i;++a){var ee=l[a],pe=ee.pos-O,V=t.tags[a],Y=void 0;V===!0?Y=Ke.makeSpan(["eqn-num"],[],n):V===!1?Y=Ke.makeSpan([],[],n):Y=Ke.makeSpan([],Ai(V,n,!0),n),Y.depth=ee.depth,Y.height=ee.height,K.push({type:"elem",elem:Y,shift:pe})}for(r=0,G=0;r<c||G<W.length;++r,++G){for(var z=W[G]||{},H=!0;z.type==="separator";){if(H||(oe=Ke.makeSpan(["arraycolsep"],[]),oe.style.width=Ut(n.fontMetrics().doubleRuleSep),J.push(oe)),z.separator==="|"||z.separator===":"){var ne=z.separator==="|"?"solid":"dashed",te=Ke.makeSpan(["vertical-separator"],[],n);te.style.height=Ut(E),te.style.borderRightWidth=Ut(m),te.style.borderRightStyle=ne,te.style.margin="0 "+Ut(-m/2);var me=E-O;me&&(te.style.verticalAlign=Ut(-me)),J.push(te)}else throw new Pt("Invalid separator type: "+z.separator);G++,z=W[G]||{},H=!1}if(!(r>=c)){var fe=void 0;(r>0||t.hskipBeforeAndAfter)&&(fe=Ya.deflt(z.pregap,x),fe!==0&&(oe=Ke.makeSpan(["arraycolsep"],[]),oe.style.width=Ut(fe),J.push(oe)));var Ae=[];for(a=0;a<i;++a){var xe=l[a],ae=xe[r];if(ae){var le=xe.pos-O;ae.depth=xe.depth,ae.height=xe.height,Ae.push({type:"elem",elem:ae,shift:le})}}Ae=Ke.makeVList({positionType:"individualShift",children:Ae},n),Ae=Ke.makeSpan(["col-align-"+(z.align||"c")],[Ae]),J.push(Ae),(r<c-1||t.hskipBeforeAndAfter)&&(fe=Ya.deflt(z.postgap,x),fe!==0&&(oe=Ke.makeSpan(["arraycolsep"],[]),oe.style.width=Ut(fe),J.push(oe)))}}if(l=Ke.makeSpan(["mtable"],J),d.length>0){for(var ze=Ke.makeLineSpan("hline",n,m),pt=Ke.makeLineSpan("hdashline",n,m),xt=[{type:"elem",elem:l,shift:0}];d.length>0;){var be=d.pop(),Tt=be.pos-O;be.isDashed?xt.push({type:"elem",elem:pt,shift:Tt}):xt.push({type:"elem",elem:ze,shift:Tt})}l=Ke.makeVList({positionType:"individualShift",children:xt},n)}if(K.length===0)return Ke.makeSpan(["mord"],[l],n);var Xt=Ke.makeVList({positionType:"individualShift",children:K},n);return Xt=Ke.makeSpan(["tag"],[Xt],n),Ke.makeFragment([l,Xt])},vNe={c:"center ",l:"left ",r:"right "},Hd=function(t,n){for(var a=[],r=new _t.MathNode("mtd",[],["mtr-glue"]),i=new _t.MathNode("mtd",[],["mml-eqn-num"]),o=0;o<t.body.length;o++){for(var c=t.body[o],l=[],d=0;d<c.length;d++)l.push(new _t.MathNode("mtd",[Ls(c[d],n)]));t.tags&&t.tags[o]&&(l.unshift(r),l.push(r),t.leqno?l.unshift(i):l.push(i)),a.push(new _t.MathNode("mtr",l))}var m=new _t.MathNode("mtable",a),h=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);m.setAttribute("rowspacing",Ut(h));var x="",f="";if(t.cols&&t.cols.length>0){var b=t.cols,y="",w=!1,T=0,A=b.length;b[0].type==="separator"&&(x+="top ",T=1),b[b.length-1].type==="separator"&&(x+="bottom ",A-=1);for(var E=T;E<A;E++)b[E].type==="align"?(f+=vNe[b[E].align],w&&(y+="none "),w=!0):b[E].type==="separator"&&w&&(y+=b[E].separator==="|"?"solid ":"dashed ",w=!1);m.setAttribute("columnalign",f.trim()),/[sd]/.test(y)&&m.setAttribute("columnlines",y.trim())}if(t.colSeparationType==="align"){for(var D=t.cols||[],S="",R=1;R<D.length;R++)S+=R%2?"0em ":"1em ";m.setAttribute("columnspacing",S.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?m.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?m.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?m.setAttribute("columnspacing","0.5em"):m.setAttribute("columnspacing","1em");
vendor: 5,713 bytes, line 1902
1902var L="",I=t.hLinesBeforeRow;x+=I[0].length>0?"left ":"",x+=I[I.length-1].length>0?"right ":"";for(var F=1;F<I.length-1;F++)L+=I[F].length===0?"none ":I[F][0]?"dashed ":"solid ";return/[sd]/.test(L)&&m.setAttribute("rowlines",L.trim()),x!==""&&(m=new _t.MathNode("menclose",[m]),m.setAttribute("notation",x.trim())),t.arraystretch&&t.arraystretch<1&&(m=new _t.MathNode("mstyle",[m]),m.setAttribute("scriptlevel","1")),m},tW=function(t,n){t.envName.indexOf("ed")===-1&&C6(t);var a=[],r=t.envName.indexOf("at")>-1?"alignat":"align",i=t.envName==="split",o=kh(t.parser,{cols:a,addJot:!0,autoTag:i?void 0:Z9(t.envName),emptySingleRow:!0,colSeparationType:r,maxNumCols:i?2:void 0,leqno:t.parser.settings.leqno},"display"),c,l=0,d={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var m="",h=0;h<n[0].body.length;h++){var x=ma(n[0].body[h],"textord");m+=x.text}c=Number(m),l=c*2}var f=!l;o.body.forEach(function(T){for(var A=1;A<T.length;A+=2){var E=ma(T[A],"styling"),D=ma(E.body[0],"ordgroup");D.body.unshift(d)}if(f)l<T.length&&(l=T.length);else{var S=T.length/2;if(c<S)throw new Pt("Too many math in a row: "+("expected "+c+", but got "+S),T[0])}});for(var b=0;b<l;++b){var y="r",w=0;b%2===1?y="l":b>0&&f&&(w=1),a[b]={type:"align",align:y,pregap:w,postgap:0}}return o.colSeparationType=f?"align":"alignat",o};Fd({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=j6(t[0]),a=n?[t[0]]:ma(t[0],"ordgroup").body,r=a.map(function(o){var c=W9(o),l=c.text;if("lcr".indexOf(l)!==-1)return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new Pt("Unknown column alignment: "+l,o)}),i={cols:r,hskipBeforeAndAfter:!0,maxNumCols:r.length};return kh(e.parser,i,eE(e.envName))},htmlBuilder:Ud,mathmlBuilder:Hd});Fd({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var r=e.parser;if(r.consumeSpaces(),r.fetch().text==="["){if(r.consume(),r.consumeSpaces(),n=r.fetch().text,"lcr".indexOf(n)===-1)throw new Pt("Expected l or c or r",r.nextToken);r.consume(),r.consumeSpaces(),r.expect("]"),r.consume(),a.cols=[{type:"align",align:n}]}}var i=kh(e.parser,a,eE(e.envName)),o=Math.max(0,...i.body.map(c=>c.length));return i.cols=new Array(o).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[i],left:t[0],right:t[1],rightColor:void 0}:i},htmlBuilder:Ud,mathmlBuilder:Hd});Fd({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=kh(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:Ud,mathmlBuilder:Hd});Fd({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=j6(t[0]),a=n?[t[0]]:ma(t[0],"ordgroup").body,r=a.map(function(o){var c=W9(o),l=c.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new Pt("Unknown column alignment: "+l,o)});if(r.length>1)throw new Pt("{subarray} can contain only one column");var i={cols:r,hskipBeforeAndAfter:!1,arraystretch:.5};if(i=kh(e.parser,i,"script"),i.body.length>0&&i.body[0].length>1)throw new Pt("{subarray} can contain only one column");return i},htmlBuilder:Ud,mathmlBuilder:Hd});Fd({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=kh(e.parser,t,eE(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Ud,mathmlBuilder:Hd});Fd({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:tW,htmlBuilder:Ud,mathmlBuilder:Hd});Fd({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){["gather","gather*"].includes(e.envName)&&C6(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Z9(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return kh(e.parser,t,"display")},htmlBuilder:Ud,mathmlBuilder:Hd});Fd({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:tW,htmlBuilder:Ud,mathmlBuilder:Hd});Fd({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){C6(e);var t={autoTag:Z9(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return kh(e.parser,t,"display")},htmlBuilder:Ud,mathmlBuilder:Hd});Fd({type:"array",names:["CD"],props:{numArgs:0},handler(e){return C6(e),rNe(e.parser)},htmlBuilder:Ud,mathmlBuilder:Hd});he("\\nonumber","\\gdef\\@eqnsw{0}");he("\\notag","\\nonumber");Yt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Pt(e.funcName+" valid only within array environment")}});var BL=ZJ;Yt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:a}=e,r=t[0];if(r.type!=="ordgroup")throw new Pt("Invalid environment name",r);for(var i="",o=0;o<r.body.length;++o)i+=ma(r.body[o],"textord").text;if(a==="\\begin"){if(!BL.hasOwnProperty(i))throw new Pt("No such environment: "+i,r);var c=BL[i],{args:l,optArgs:d}=n.parseArguments("\\begin{"+i+"}",c),m={mode:n.mode,envName:i,parser:n},h=c.handler(m,l,d);n.expect("\\end",!1);var x=n.nextToken,f=ma(n.parseFunction(),"environment");
vendor: 32,975 bytes, line 1902
1902if(f.name!==i)throw new Pt("Mismatch: \\begin{"+i+"} matched by \\end{"+f.name+"}",x);return h}return{type:"environment",mode:n.mode,name:i,nameGroup:r}}});var nW=(e,t)=>{var n=e.font,a=t.withFont(n);return $a(e.body,a)},aW=(e,t)=>{var n=e.font,a=t.withFont(n);return Ls(e.body,a)},FL={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Yt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:a}=e,r=Q3(t[0]),i=a;return i in FL&&(i=FL[i]),{type:"font",mode:n.mode,font:i.slice(1),body:r}},htmlBuilder:nW,mathmlBuilder:aW});Yt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,a=t[0],r=Ya.isCharacterBox(a);return{type:"mclass",mode:n.mode,mclass:A6(a),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:a}],isCharacterBox:r}}});Yt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:a,breakOnTokenText:r}=e,{mode:i}=n,o=n.parseExpression(!0,r),c="math"+a.slice(1);return{type:"font",mode:i,font:c,body:{type:"ordgroup",mode:n.mode,body:o}}},htmlBuilder:nW,mathmlBuilder:aW});var sW=(e,t)=>{var n=t;return e==="display"?n=n.id>=On.SCRIPT.id?n.text():On.DISPLAY:e==="text"&&n.size===On.DISPLAY.size?n=On.TEXT:e==="script"?n=On.SCRIPT:e==="scriptscript"&&(n=On.SCRIPTSCRIPT),n},tE=(e,t)=>{var n=sW(e.size,t.style),a=n.fracNum(),r=n.fracDen(),i;i=t.havingStyle(a);var o=$a(e.numer,i,t);if(e.continued){var c=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;o.height=o.height<c?c:o.height,o.depth=o.depth<l?l:o.depth}i=t.havingStyle(r);var d=$a(e.denom,i,t),m,h,x;e.hasBarLine?(e.barSize?(h=Tr(e.barSize,t),m=Ke.makeLineSpan("frac-line",t,h)):m=Ke.makeLineSpan("frac-line",t),h=m.height,x=m.height):(m=null,h=0,x=t.fontMetrics().defaultRuleThickness);var f,b,y;n.size===On.DISPLAY.size||e.size==="display"?(f=t.fontMetrics().num1,h>0?b=3*x:b=7*x,y=t.fontMetrics().denom1):(h>0?(f=t.fontMetrics().num2,b=x):(f=t.fontMetrics().num3,b=3*x),y=t.fontMetrics().denom2);var w;if(m){var A=t.fontMetrics().axisHeight;f-o.depth-(A+.5*h)<b&&(f+=b-(f-o.depth-(A+.5*h))),A-.5*h-(d.height-y)<b&&(y+=b-(A-.5*h-(d.height-y)));var E=-(A-.5*h);w=Ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:d,shift:y},{type:"elem",elem:m,shift:E},{type:"elem",elem:o,shift:-f}]},t)}else{var T=f-o.depth-(d.height-y);T<b&&(f+=.5*(b-T),y+=.5*(b-T)),w=Ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:d,shift:y},{type:"elem",elem:o,shift:-f}]},t)}i=t.havingStyle(n),w.height*=i.sizeMultiplier/t.sizeMultiplier,w.depth*=i.sizeMultiplier/t.sizeMultiplier;var D;n.size===On.DISPLAY.size?D=t.fontMetrics().delim1:n.size===On.SCRIPTSCRIPT.size?D=t.havingStyle(On.SCRIPT).fontMetrics().delim2:D=t.fontMetrics().delim2;var S,R;return e.leftDelim==null?S=y2(t,["mopen"]):S=Fm.customSizedDelim(e.leftDelim,D,!0,t.havingStyle(n),e.mode,["mopen"]),e.continued?R=Ke.makeSpan([]):e.rightDelim==null?R=y2(t,["mclose"]):R=Fm.customSizedDelim(e.rightDelim,D,!0,t.havingStyle(n),e.mode,["mclose"]),Ke.makeSpan(["mord"].concat(i.sizingClasses(t)),[S,Ke.makeSpan(["mfrac"],[w]),R],t)},nE=(e,t)=>{var n=new _t.MathNode("mfrac",[Ls(e.numer,t),Ls(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var a=Tr(e.barSize,t);n.setAttribute("linethickness",Ut(a))}var r=sW(e.size,t.style);if(r.size!==t.style.size){n=new _t.MathNode("mstyle",[n]);var i=r.size===On.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",i),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var o=[];if(e.leftDelim!=null){var c=new _t.MathNode("mo",[new _t.TextNode(e.leftDelim.replace("\\",""))]);c.setAttribute("fence","true"),o.push(c)}if(o.push(n),e.rightDelim!=null){var l=new _t.MathNode("mo",[new _t.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}return G9(o)}return n};Yt({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:a}=e,r=t[0],i=t[1],o,c=null,l=null,d="auto";switch(a){case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o=!1,c="(",l=")";break;case"\\\\bracefrac":o=!1,c="\\{",l="\\}";break;case"\\\\brackfrac":o=!1,c="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(a){case"\\dfrac":case"\\dbinom":d="display";break;case"\\tfrac":case"\\tbinom":d="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:r,denom:i,hasBarLine:o,leftDelim:c,rightDelim:l,size:d,barSize:null}},htmlBuilder:tE,mathmlBuilder:nE});Yt({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:a}=e,r=t[0],i=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:r,denom:i,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});Yt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:a}=e,r;switch(n){case"\\over":r="\\frac";break;case"\\choose":r="\\binom";break;case"\\atop":r="\\\\atopfrac";break;case"\\brace":r="\\\\bracefrac";break;case"\\brack":r="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:r,token:a}}});var UL=["display","text","script","scriptscript"],HL=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};Yt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,a=t[4],r=t[5],i=Q3(t[0]),o=i.type==="atom"&&i.family==="open"?HL(i.text):null,c=Q3(t[1]),l=c.type==="atom"&&c.family==="close"?HL(c.text):null,d=ma(t[2],"size"),m,h=null;d.isBlank?m=!0:(h=d.value,m=h.number>0);var x="auto",f=t[3];if(f.type==="ordgroup"){if(f.body.length>0){var b=ma(f.body[0],"textord");x=UL[Number(b.text)]}}else f=ma(f,"textord"),x=UL[Number(f.text)];return{type:"genfrac",mode:n.mode,numer:a,denom:r,continued:!1,hasBarLine:m,barSize:h,leftDelim:o,rightDelim:l,size:x}},htmlBuilder:tE,mathmlBuilder:nE});Yt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:a,token:r}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:ma(t[0],"size").value,token:r}}});Yt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:a}=e,r=t[0],i=Xwe(ma(t[1],"infix").size),o=t[2],c=i.number>0;return{type:"genfrac",mode:n.mode,numer:r,denom:o,continued:!1,hasBarLine:c,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:tE,mathmlBuilder:nE});var rW=(e,t)=>{var n=t.style,a,r;e.type==="supsub"?(a=e.sup?$a(e.sup,t.havingStyle(n.sup()),t):$a(e.sub,t.havingStyle(n.sub()),t),r=ma(e.base,"horizBrace")):r=ma(e,"horizBrace");var i=$a(r.base,t.havingBaseStyle(On.DISPLAY)),o=Gm.svgSpan(r,t),c;if(r.isOver?(c=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:o}]},t),c.children[0].children[0].children[1].classes.push("svg-align")):(c=Ke.makeVList({positionType:"bottom",positionData:i.depth+.1+o.height,children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:i}]},t),c.children[0].children[0].children[0].classes.push("svg-align")),a){var l=Ke.makeSpan(["mord",r.isOver?"mover":"munder"],[c],t);r.isOver?c=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:a}]},t):c=Ke.makeVList({positionType:"bottom",positionData:l.depth+.2+a.height+a.depth,children:[{type:"elem",elem:a},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return Ke.makeSpan(["mord",r.isOver?"mover":"munder"],[c],t)},yNe=(e,t)=>{var n=Gm.mathMLnode(e.label);return new _t.MathNode(e.isOver?"mover":"munder",[Ls(e.base,t),n])};Yt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:a}=e;return{type:"horizBrace",mode:n.mode,label:a,isOver:/^\\over/.test(a),base:t[0]}},htmlBuilder:rW,mathmlBuilder:yNe});Yt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,a=t[1],r=ma(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:r})?{type:"href",mode:n.mode,href:r,body:Zr(a)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=Ai(e.body,t,!1);return Ke.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=xh(e.body,t);return n instanceof Yc||(n=new Yc("mrow",[n])),n.setAttribute("href",e.href),n}});Yt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,a=ma(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:a}))return n.formatUnsupportedCmd("\\url");for(var r=[],i=0;i<a.length;i++){var o=a[i];o==="~"&&(o="\\textasciitilde"),r.push({type:"textord",mode:"text",text:o})}var c={type:"text",mode:n.mode,font:"\\texttt",body:r};return{type:"href",mode:n.mode,href:a,body:Zr(c)}}});Yt({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:"hbox",mode:n.mode,body:Zr(t[0])}},htmlBuilder(e,t){var n=Ai(e.body,t,!1);return Ke.makeFragment(n)},mathmlBuilder(e,t){return new _t.MathNode("mrow",wc(e.body,t))}});Yt({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:a,token:r}=e,i=ma(t[0],"raw").string,o=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var c,l={};switch(a){case"\\htmlClass":l.class=i,c={command:"\\htmlClass",class:i};break;case"\\htmlId":l.id=i,c={command:"\\htmlId",id:i};break;case"\\htmlStyle":l.style=i,c={command:"\\htmlStyle",style:i};break;case"\\htmlData":{for(var d=i.split(","),m=0;m<d.length;m++){var h=d[m].split("=");if(h.length!==2)throw new Pt("Error parsing key-value for \\htmlData");l["data-"+h[0].trim()]=h[1].trim()}c={command:"\\htmlData",attributes:l};break}default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(c)?{type:"html",mode:n.mode,attributes:l,body:Zr(o)}:n.formatUnsupportedCmd(a)},htmlBuilder:(e,t)=>{var n=Ai(e.body,t,!1),a=["enclosing"];e.attributes.class&&a.push(...e.attributes.class.trim().split(/\s+/));var r=Ke.makeSpan(a,n,t);for(var i in e.attributes)i!=="class"&&e.attributes.hasOwnProperty(i)&&r.setAttribute(i,e.attributes[i]);return r},mathmlBuilder:(e,t)=>xh(e.body,t)});Yt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:Zr(t[0]),mathml:Zr(t[1])}},htmlBuilder:(e,t)=>{var n=Ai(e.html,t,!1);return Ke.makeFragment(n)},mathmlBuilder:(e,t)=>xh(e.mathml,t)});var T8=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new Pt("Invalid size: '"+t+"' in \\includegraphics");var a={number:+(n[1]+n[2]),unit:n[3]};if(!kJ(a))throw new Pt("Invalid unit: '"+a.unit+"' in \\includegraphics.");return a};Yt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:a}=e,r={number:0,unit:"em"},i={number:.9,unit:"em"},o={number:0,unit:"em"},c="";if(n[0])for(var l=ma(n[0],"raw").string,d=l.split(","),m=0;m<d.length;m++){var h=d[m].split("=");if(h.length===2){var x=h[1].trim();switch(h[0].trim()){case"alt":c=x;break;case"width":r=T8(x);break;case"height":i=T8(x);break;case"totalheight":o=T8(x);break;default:throw new Pt("Invalid key: '"+h[0]+"' in \\includegraphics.")}}}var f=ma(t[0],"url").url;return c===""&&(c=f,c=c.replace(/^.*[\\/]/,""),c=c.substring(0,c.lastIndexOf("."))),a.settings.isTrusted({command:"\\includegraphics",url:f})?{type:"includegraphics",mode:a.mode,alt:c,width:r,height:i,totalheight:o,src:f}:a.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=Tr(e.height,t),a=0;e.totalheight.number>0&&(a=Tr(e.totalheight,t)-n);var r=0;e.width.number>0&&(r=Tr(e.width,t));var i={height:Ut(n+a)};r>0&&(i.width=Ut(r)),a>0&&(i.verticalAlign=Ut(-a));var o=new yTe(e.src,e.alt,i);return o.height=n,o.depth=a,o},mathmlBuilder:(e,t)=>{var n=new _t.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var a=Tr(e.height,t),r=0;if(e.totalheight.number>0&&(r=Tr(e.totalheight,t)-a,n.setAttribute("valign",Ut(-r))),n.setAttribute("height",Ut(a+r)),e.width.number>0){var i=Tr(e.width,t);n.setAttribute("width",Ut(i))}return n.setAttribute("src",e.src),n}});Yt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:a}=e,r=ma(t[0],"size");if(n.settings.strict){var i=a[1]==="m",o=r.value.unit==="mu";i?(o||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, "+("not "+r.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")):o&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:r.value}},htmlBuilder(e,t){return Ke.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=Tr(e.dimension,t);return new _t.SpaceNode(n)}});Yt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:a}=e,r=t[0];return{type:"lap",mode:n.mode,alignment:a.slice(5),body:r}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=Ke.makeSpan([],[$a(e.body,t)]),n=Ke.makeSpan(["inner"],[n],t)):n=Ke.makeSpan(["inner"],[$a(e.body,t)]);var a=Ke.makeSpan(["fix"],[]),r=Ke.makeSpan([e.alignment],[n,a],t),i=Ke.makeSpan(["strut"]);return i.style.height=Ut(r.height+r.depth),r.depth&&(i.style.verticalAlign=Ut(-r.depth)),r.children.unshift(i),r=Ke.makeSpan(["thinbox"],[r],t),Ke.makeSpan(["mord","vbox"],[r],t)},mathmlBuilder:(e,t)=>{var n=new _t.MathNode("mpadded",[Ls(e.body,t)]);if(e.alignment!=="rlap"){var a=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",a+"width")}return n.setAttribute("width","0px"),n}});Yt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:a}=e,r=a.mode;a.switchMode("math");var i=n==="\\("?"\\)":"$",o=a.parseExpression(!1,i);return a.expect(i),a.switchMode(r),{type:"styling",mode:a.mode,style:"text",body:o}}});Yt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Pt("Mismatched "+e.funcName)}});var VL=(e,t)=>{switch(t.style.size){case On.DISPLAY.size:return e.display;case On.TEXT.size:return e.text;case On.SCRIPT.size:return e.script;case On.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Yt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:Zr(t[0]),text:Zr(t[1]),script:Zr(t[2]),scriptscript:Zr(t[3])}},htmlBuilder:(e,t)=>{var n=VL(e,t),a=Ai(n,t,!1);return Ke.makeFragment(a)},mathmlBuilder:(e,t)=>{var n=VL(e,t);return xh(n,t)}});var iW=(e,t,n,a,r,i,o)=>{e=Ke.makeSpan([],[e]);var c=n&&Ya.isCharacterBox(n),l,d;if(t){var m=$a(t,a.havingStyle(r.sup()),a);d={elem:m,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-m.depth)}}if(n){var h=$a(n,a.havingStyle(r.sub()),a);l={elem:h,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-h.height)}}var x;if(d&&l){var f=a.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+o;x=Ke.makeVList({positionType:"bottom",positionData:f,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Ut(-i)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:Ut(i)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else if(l){var b=e.height-o;x=Ke.makeVList({positionType:"top",positionData:b,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Ut(-i)},{type:"kern",size:l.kern},{type:"elem",elem:e}]},a)}else if(d){var y=e.depth+o;x=Ke.makeVList({positionType:"bottom",positionData:y,children:[{type:"elem",elem:e},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:Ut(i)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else return e;var w=[x];if(l&&i!==0&&!c){var T=Ke.makeSpan(["mspace"],[],a);T.style.marginRight=Ut(i),w.unshift(T)}return Ke.makeSpan(["mop","op-limits"],w,a)},oW=["\\smallint"],Sx=(e,t)=>{var n,a,r=!1,i;e.type==="supsub"?(n=e.sup,a=e.sub,i=ma(e.base,"op"),r=!0):i=ma(e,"op");var o=t.style,c=!1;o.size===On.DISPLAY.size&&i.symbol&&!oW.includes(i.name)&&(c=!0);var l;if(i.symbol){var d=c?"Size2-Regular":"Size1-Regular",m="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(m=i.name.slice(1),i.name=m==="oiint"?"\\iint":"\\iiint"),l=Ke.makeSymbol(i.name,d,"math",t,["mop","op-symbol",c?"large-op":"small-op"]),m.length>0){var h=l.italic,x=Ke.staticSvg(m+"Size"+(c?"2":"1"),t);l=Ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:x,shift:c?.08:0}]},t),i.name="\\"+m,l.classes.unshift("mop"),l.italic=h}}else if(i.body){var f=Ai(i.body,t,!0);f.length===1&&f[0]instanceof Il?(l=f[0],l.classes[0]="mop"):l=Ke.makeSpan(["mop"],f,t)}else{for(var b=[],y=1;y<i.name.length;y++)b.push(Ke.mathsym(i.name[y],i.mode,t));l=Ke.makeSpan(["mop"],b,t)}var w=0,T=0;return(l instanceof Il||i.name==="\\oiint"||i.name==="\\oiiint")&&!i.suppressBaseShift&&(w=(l.height-l.depth)/2-t.fontMetrics().axisHeight,T=l.italic),r?iW(l,n,a,t,o,T,w):(w&&(l.style.position="relative",l.style.top=Ut(w)),l)},sv=(e,t)=>{var n;if(e.symbol)n=new Yc("mo",[Ml(e.name,e.mode)]),oW.includes(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new Yc("mo",wc(e.body,t));else{n=new Yc("mi",[new Td(e.name.slice(1))]);var a=new Yc("mo",[Ml("â¡","text")]);e.parentIsSupSub?n=new Yc("mrow",[n,a]):n=MJ([n,a])}return n},wNe={"â":"\\prod","â":"\\coprod","â":"\\sum","â":"\\bigwedge","â":"\\bigvee","â":"\\bigcap","â":"\\bigcup","â¨":"\\bigodot","â¨":"\\bigoplus","â¨":"\\bigotimes","â¨":"\\biguplus","â¨":"\\bigsqcup"};Yt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","â","â","â","â","â","â","â","â¨","â¨","â¨","â¨","â¨"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:a}=e,r=a;return r.length===1&&(r=wNe[r]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Sx,mathmlBuilder:sv});Yt({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,a=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Zr(a)}},htmlBuilder:Sx,mathmlBuilder:sv});var TNe={"â«":"\\int","â¬":"\\iint","â":"\\iiint","â®":"\\oint","â¯":"\\oiint","â°":"\\oiiint"};Yt({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Sx,mathmlBuilder:sv});Yt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Sx,mathmlBuilder:sv});Yt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","â«","â¬","â","â®","â¯","â°"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,a=n;return a.length===1&&(a=TNe[a]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:Sx,mathmlBuilder:sv});var cW=(e,t)=>{var n,a,r=!1,i;e.type==="supsub"?(n=e.sup,a=e.sub,i=ma(e.base,"operatorname"),r=!0):i=ma(e,"operatorname");var o;if(i.body.length>0){for(var c=i.body.map(h=>{var x=h.text;return typeof x=="string"?{type:"textord",mode:h.mode,text:x}:h}),l=Ai(c,t.withFont("mathrm"),!0),d=0;d<l.length;d++){var m=l[d];m instanceof Il&&(m.text=m.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}o=Ke.makeSpan(["mop"],l,t)}else o=Ke.makeSpan(["mop"],[],t);return r?iW(o,n,a,t,t.style,0,0):o},NNe=(e,t)=>{for(var n=wc(e.body,t.withFont("mathrm")),a=!0,r=0;r<n.length;r++){var i=n[r];if(!(i instanceof _t.SpaceNode))if(i instanceof _t.MathNode)switch(i.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var o=i.children[0];i.children.length===1&&o instanceof _t.TextNode?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):a=!1;break}default:a=!1}else a=!1}if(a){var c=n.map(m=>m.toText()).join("");n=[new _t.TextNode(c)]}var l=new _t.MathNode("mi",n);l.setAttribute("mathvariant","normal");var d=new _t.MathNode("mo",[Ml("â¡","text")]);return e.parentIsSupSub?new _t.MathNode("mrow",[l,d]):_t.newDocumentFragment([l,d])};Yt({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:a}=e,r=t[0];return{type:"operatorname",mode:n.mode,body:Zr(r),alwaysHandleSupSub:a==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:cW,mathmlBuilder:NNe});he("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");cf({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Ke.makeFragment(Ai(e.body,t,!1)):Ke.makeSpan(["mord"],Ai(e.body,t,!0),t)},mathmlBuilder(e,t){return xh(e.body,t,!0)}});Yt({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,a=t[0];return{type:"overline",mode:n.mode,body:a}},htmlBuilder(e,t){var n=$a(e.body,t.havingCrampedStyle()),a=Ke.makeLineSpan("overline-line",t),r=t.fontMetrics().defaultRuleThickness,i=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*r},{type:"elem",elem:a},{type:"kern",size:r}]},t);return Ke.makeSpan(["mord","overline"],[i],t)},mathmlBuilder(e,t){var n=new _t.MathNode("mo",[new _t.TextNode("â¾")]);n.setAttribute("stretchy","true");var a=new _t.MathNode("mover",[Ls(e.body,t),n]);return a.setAttribute("accent","true"),a}});Yt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,a=t[0];return{type:"phantom",mode:n.mode,body:Zr(a)}},htmlBuilder:(e,t)=>{var n=Ai(e.body,t.withPhantom(),!1);return Ke.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=wc(e.body,t);return new _t.MathNode("mphantom",n)}});Yt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,a=t[0];return{type:"hphantom",mode:n.mode,body:a}},htmlBuilder:(e,t)=>{var n=Ke.makeSpan([],[$a(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var a=0;a<n.children.length;a++)n.children[a].height=0,n.children[a].depth=0;return n=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t),Ke.makeSpan(["mord"],[n],t)},mathmlBuilder:(e,t)=>{var n=wc(Zr(e.body),t),a=new _t.MathNode("mphantom",n),r=new _t.MathNode("mpadded",[a]);return r.setAttribute("height","0px"),r.setAttribute("depth","0px"),r}});Yt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,a=t[0];return{type:"vphantom",mode:n.mode,body:a}},htmlBuilder:(e,t)=>{var n=Ke.makeSpan(["inner"],[$a(e.body,t.withPhantom())]),a=Ke.makeSpan(["fix"],[]);return Ke.makeSpan(["mord","rlap"],[n,a],t)},mathmlBuilder:(e,t)=>{var n=wc(Zr(e.body),t),a=new _t.MathNode("mphantom",n),r=new _t.MathNode("mpadded",[a]);return r.setAttribute("width","0px"),r}});Yt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,a=ma(t[0],"size").value,r=t[1];return{type:"raisebox",mode:n.mode,dy:a,body:r}},htmlBuilder(e,t){var n=$a(e.body,t),a=Tr(e.dy,t);return Ke.makeVList({positionType:"shift",positionData:-a,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new _t.MathNode("mpadded",[Ls(e.body,t)]),a=e.dy.number+e.dy.unit;return n.setAttribute("voffset",a),n}});Yt({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});Yt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:a}=e,r=n[0],i=ma(t[0],"size"),o=ma(t[1],"size");return{type:"rule",mode:a.mode,shift:r&&ma(r,"size").value,width:i.value,height:o.value}},htmlBuilder(e,t){var n=Ke.makeSpan(["mord","rule"],[],t),a=Tr(e.width,t),r=Tr(e.height,t),i=e.shift?Tr(e.shift,t):0;return n.style.borderRightWidth=Ut(a),n.style.borderTopWidth=Ut(r),n.style.bottom=Ut(i),n.width=a,n.height=r+i,n.depth=-i,n.maxFontSize=r*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Tr(e.width,t),a=Tr(e.height,t),r=e.shift?Tr(e.shift,t):0,i=t.color&&t.getColor()||"black",o=new _t.MathNode("mspace");o.setAttribute("mathbackground",i),o.setAttribute("width",Ut(n)),o.setAttribute("height",Ut(a));var c=new _t.MathNode("mpadded",[o]);return r>=0?c.setAttribute("height",Ut(r)):(c.setAttribute("height",Ut(r)),c.setAttribute("depth",Ut(-r))),c.setAttribute("voffset",Ut(r)),c}});function lW(e,t,n){for(var a=Ai(e,t,!1),r=t.sizeMultiplier/n.sizeMultiplier,i=0;i<a.length;i++){var o=a[i].classes.indexOf("sizing");o<0?Array.prototype.push.apply(a[i].classes,t.sizingClasses(n)):a[i].classes[o+1]==="reset-size"+t.size&&(a[i].classes[o+1]="reset-size"+n.size),a[i].height*=r,a[i].depth*=r}return Ke.makeFragment(a)}var zL=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],kNe=(e,t)=>{var n=t.havingSize(e.size);return lW(e.body,n,t)};Yt({type:"sizing",names:zL,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:a,parser:r}=e,i=r.parseExpression(!1,n);return{type:"sizing",mode:r.mode,size:zL.indexOf(a)+1,body:i}},htmlBuilder:kNe,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),a=wc(e.body,n),r=new _t.MathNode("mstyle",a);return r.setAttribute("mathsize",Ut(n.sizeMultiplier)),r}});Yt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:a}=e,r=!1,i=!1,o=n[0]&&ma(n[0],"ordgroup");if(o)for(var c="",l=0;l<o.body.length;++l){var d=o.body[l];if(c=d.text,c==="t")r=!0;else if(c==="b")i=!0;else{r=!1,i=!1;break}}else r=!0,i=!0;var m=t[0];return{type:"smash",mode:a.mode,body:m,smashHeight:r,smashDepth:i}},htmlBuilder:(e,t)=>{var n=Ke.makeSpan([],[$a(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var a=0;a<n.children.length;a++)n.children[a].height=0;if(e.smashDepth&&(n.depth=0,n.children))for(var r=0;r<n.children.length;r++)n.children[r].depth=0;var i=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t);return Ke.makeSpan(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var n=new _t.MathNode("mpadded",[Ls(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});Yt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:a}=e,r=n[0],i=t[0];return{type:"sqrt",mode:a.mode,body:i,index:r}},htmlBuilder(e,t){var n=$a(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Ke.wrapFragment(n,t);var a=t.fontMetrics(),r=a.defaultRuleThickness,i=r;t.style.id<On.TEXT.id&&(i=t.fontMetrics().xHeight);var o=r+i/4,c=n.height+n.depth+o+r,{span:l,ruleWidth:d,advanceWidth:m}=Fm.sqrtImage(c,t),h=l.height-d;h>n.height+n.depth+o&&(o=(o+h-n.height-n.depth)/2);var x=l.height-n.height-o-d;n.style.paddingLeft=Ut(m);var f=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+x)},{type:"elem",elem:l},{type:"kern",size:d}]},t);if(e.index){var b=t.havingStyle(On.SCRIPTSCRIPT),y=$a(e.index,b,t),w=.6*(f.height-f.depth),T=Ke.makeVList({positionType:"shift",positionData:-w,children:[{type:"elem",elem:y}]},t),A=Ke.makeSpan(["root"],[T]);return Ke.makeSpan(["mord","sqrt"],[A,f],t)}else return Ke.makeSpan(["mord","sqrt"],[f],t)},mathmlBuilder(e,t){var{body:n,index:a}=e;return a?new _t.MathNode("mroot",[Ls(n,t),Ls(a,t)]):new _t.MathNode("msqrt",[Ls(n,t)])}});var $L={display:On.DISPLAY,text:On.TEXT,script:On.SCRIPT,scriptscript:On.SCRIPTSCRIPT};Yt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:a,parser:r}=e,i=r.parseExpression(!0,n),o=a.slice(1,a.length-5);return{type:"styling",mode:r.mode,style:o,body:i}},htmlBuilder(e,t){var n=$L[e.style],a=t.havingStyle(n).withFont("");return lW(e.body,a,t)},mathmlBuilder(e,t){var n=$L[e.style],a=t.havingStyle(n),r=wc(e.body,a),i=new _t.MathNode("mstyle",r),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},c=o[e.style];return i.setAttribute("scriptlevel",c[0]),i.setAttribute("displaystyle",c[1]),i}});var jNe=function(t,n){var a=t.base;if(a)if(a.type==="op"){var r=a.limits&&(n.style.size===On.DISPLAY.size||a.alwaysHandleSupSub);return r?Sx:null}else if(a.type==="operatorname"){var i=a.alwaysHandleSupSub&&(n.style.size===On.DISPLAY.size||a.limits);return i?cW:null}else{if(a.type==="accent")return Ya.isCharacterBox(a.base)?Y9:null;if(a.type==="horizBrace"){var o=!t.sub;return o===a.isOver?rW:null}else return null}else return null};cf({type:"supsub",htmlBuilder(e,t){var n=jNe(e,t);if(n)return n(e,t);var{base:a,sup:r,sub:i}=e,o=$a(a,t),c,l,d=t.fontMetrics(),m=0,h=0,x=a&&Ya.isCharacterBox(a);if(r){var f=t.havingStyle(t.style.sup());c=$a(r,f,t),x||(m=o.height-f.fontMetrics().supDrop*f.sizeMultiplier/t.sizeMultiplier)}if(i){var b=t.havingStyle(t.style.sub());l=$a(i,b,t),x||(h=o.depth+b.fontMetrics().subDrop*b.sizeMultiplier/t.sizeMultiplier)}var y;t.style===On.DISPLAY?y=d.sup1:t.style.cramped?y=d.sup3:y=d.sup2;var w=t.sizeMultiplier,T=Ut(.5/d.ptPerEm/w),A=null;if(l){var E=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(o instanceof Il||E)&&(A=Ut(-o.italic))}var D;if(c&&l){m=Math.max(m,y,c.depth+.25*d.xHeight),h=Math.max(h,d.sub2);var S=d.defaultRuleThickness,R=4*S;if(m-c.depth-(l.height-h)<R){h=R-(m-c.depth)+l.height;var L=.8*d.xHeight-(m-c.depth);L>0&&(m+=L,h-=L)}var I=[{type:"elem",elem:l,shift:h,marginRight:T,marginLeft:A},{type:"elem",elem:c,shift:-m,marginRight:T}];D=Ke.makeVList({positionType:"individualShift",children:I},t)}else if(l){h=Math.max(h,d.sub1,l.height-.8*d.xHeight);var F=[{type:"elem",elem:l,marginLeft:A,marginRight:T}];D=Ke.makeVList({positionType:"shift",positionData:h,children:F},t)}else if(c)m=Math.max(m,y,c.depth+.25*d.xHeight),D=Ke.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:c,marginRight:T}]},t);else throw new Error("supsub must have either sup or sub.");var _=q7(o,"right")||"mord";return Ke.makeSpan([_],[o,Ke.makeSpan(["msupsub"],[D])],t)},mathmlBuilder(e,t){var n=!1,a,r;e.base&&e.base.type==="horizBrace"&&(r=!!e.sup,r===e.base.isOver&&(n=!0,a=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var i=[Ls(e.base,t)];e.sub&&i.push(Ls(e.sub,t)),e.sup&&i.push(Ls(e.sup,t));var o;if(n)o=a?"mover":"munder";else if(e.sub)if(e.sup){var d=e.base;d&&d.type==="op"&&d.limits&&t.style===On.DISPLAY||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(t.style===On.DISPLAY||d.limits)?o="munderover":o="msubsup"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===On.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===On.DISPLAY)?o="munder":o="msub"}else{var c=e.base;c&&c.type==="op"&&c.limits&&(t.style===On.DISPLAY||c.alwaysHandleSupSub)||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(c.limits||t.style===On.DISPLAY)?o="mover":o="msup"}return new _t.MathNode(o,i)}});cf({type:"atom",htmlBuilder(e,t){return Ke.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new _t.MathNode("mo",[Ml(e.text,e.mode)]);if(e.family==="bin"){var a=J9(e,t);a==="bold-italic"&&n.setAttribute("mathvariant",a)}
vendor: 9,375 bytes, lines 1902-1906
1902else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var uW={mi:"italic",mn:"normal",mtext:"normal"};cf({type:"mathord",htmlBuilder(e,t){return Ke.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new _t.MathNode("mi",[Ml(e.text,e.mode,t)]),a=J9(e,t)||"italic";return a!==uW[n.type]&&n.setAttribute("mathvariant",a),n}});cf({type:"textord",htmlBuilder(e,t){return Ke.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=Ml(e.text,e.mode,t),a=J9(e,t)||"normal",r;return e.mode==="text"?r=new _t.MathNode("mtext",[n]):/[0-9]/.test(e.text)?r=new _t.MathNode("mn",[n]):e.text==="\\prime"?r=new _t.MathNode("mo",[n]):r=new _t.MathNode("mi",[n]),a!==uW[r.type]&&r.setAttribute("mathvariant",a),r}});var N8={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},k8={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};cf({type:"spacing",htmlBuilder(e,t){if(k8.hasOwnProperty(e.text)){var n=k8[e.text].className||"";if(e.mode==="text"){var a=Ke.makeOrd(e,t,"textord");return a.classes.push(n),a}else return Ke.makeSpan(["mspace",n],[Ke.mathsym(e.text,e.mode,t)],t)}else{if(N8.hasOwnProperty(e.text))return Ke.makeSpan(["mspace",N8[e.text]],[],t);throw new Pt('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(k8.hasOwnProperty(e.text))n=new _t.MathNode("mtext",[new _t.TextNode(" ")]);else{if(N8.hasOwnProperty(e.text))return new _t.MathNode("mspace");throw new Pt('Unknown type of space "'+e.text+'"')}return n}});var qL=()=>{var e=new _t.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};cf({type:"tag",mathmlBuilder(e,t){var n=new _t.MathNode("mtable",[new _t.MathNode("mtr",[qL(),new _t.MathNode("mtd",[xh(e.body,t)]),qL(),new _t.MathNode("mtd",[xh(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var GL={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},JL={"\\textbf":"textbf","\\textmd":"textmd"},ANe={"\\textit":"textit","\\textup":"textup"},WL=(e,t)=>{var n=e.font;if(n){if(GL[n])return t.withTextFontFamily(GL[n]);if(JL[n])return t.withTextFontWeight(JL[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(ANe[n])};Yt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:a}=e,r=t[0];return{type:"text",mode:n.mode,body:Zr(r),font:a}},htmlBuilder(e,t){var n=WL(e,t),a=Ai(e.body,n,!0);return Ke.makeSpan(["mord","text"],a,n)},mathmlBuilder(e,t){var n=WL(e,t);return xh(e.body,n)}});Yt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=$a(e.body,t),a=Ke.makeLineSpan("underline-line",t),r=t.fontMetrics().defaultRuleThickness,i=Ke.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:r},{type:"elem",elem:a},{type:"kern",size:3*r},{type:"elem",elem:n}]},t);return Ke.makeSpan(["mord","underline"],[i],t)},mathmlBuilder(e,t){var n=new _t.MathNode("mo",[new _t.TextNode("â¾")]);n.setAttribute("stretchy","true");var a=new _t.MathNode("munder",[Ls(e.body,t),n]);return a.setAttribute("accentunder","true"),a}});Yt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=$a(e.body,t),a=t.fontMetrics().axisHeight,r=.5*(n.height-a-(n.depth+a));return Ke.makeVList({positionType:"shift",positionData:r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new _t.MathNode("mpadded",[Ls(e.body,t)],["vcenter"])}});Yt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new Pt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=YL(e),a=[],r=t.havingStyle(t.style.text()),i=0;i<n.length;i++){var o=n[i];o==="~"&&(o="\\textasciitilde"),a.push(Ke.makeSymbol(o,"Typewriter-Regular",e.mode,r,["mord","texttt"]))}return Ke.makeSpan(["mord","text"].concat(r.sizingClasses(t)),Ke.tryCombineChars(a),r)},mathmlBuilder(e,t){var n=new _t.TextNode(YL(e)),a=new _t.MathNode("mtext",[n]);return a.setAttribute("mathvariant","monospace"),a}});var YL=e=>e.body.replace(/ /g,e.star?"â£":" "),Kp=RJ,dW=`[ \r 1903 ]`,ENe="\\\\[a-zA-Z@]+",CNe="\\\\[^\uD800-\uDFFF]",SNe="("+ENe+")"+dW+"*",_Ne=`\\\\( 1904|[ \r ]+ 1905?)[ \r ]*`,Y7="[Ì-ͯ]",PNe=new RegExp(Y7+"+$"),DNe="("+dW+"+)|"+(_Ne+"|")+"([!-\\[\\]-â§âª-í¿ï¤-ï¿¿]"+(Y7+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Y7+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+SNe)+("|"+CNe+")");class XL{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(DNe,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new el("EOF",new hc(this,n,n));var a=this.tokenRegex.exec(t);if(a===null||a.index!==n)throw new Pt("Unexpected character: '"+t[n]+"'",new el(t[n],new hc(this,n,n+1)));var r=a[6]||a[3]||(a[2]?"\\ ":" ");if(this.catcodes[r]===14){var i=t.indexOf(` 1906`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=i+1,this.lex()}return new el(r,new hc(this,n,this.tokenRegex.lastIndex))}}class RNe{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Pt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,a){if(a===void 0&&(a=!1),a){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(t)&&(i[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var INe=eW;he("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});he("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});he("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});he("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});he("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});he("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");he("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var QL={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};he("\\char",function(e){var t=e.popToken(),n,a="";if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")a=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Pt("\\char` missing argument");a=t.text.charCodeAt(0)}else n=10;if(n){if(a=QL[t.text],a==null||a>=n)throw new Pt("Invalid base-"+n+" digit "+t.text);for(var r;(r=QL[e.future().text])!=null&&r<n;)a*=n,a+=r,e.popToken()}return"\\@char{"+a+"}"});var aE=(e,t,n,a)=>{var r=e.consumeArg().tokens;if(r.length!==1)throw new Pt("\\newcommand's first argument must be a macro name");var i=r[0].text,o=e.isDefined(i);if(o&&!t)throw new Pt("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!o&&!n)throw new Pt("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var c=0;if(r=e.consumeArg().tokens,r.length===1&&r[0].text==="["){for(var l="",d=e.expandNextToken();d.text!=="]"&&d.text!=="EOF";)l+=d.text,d=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new Pt("Invalid number of arguments: "+l);c=parseInt(l),r=e.consumeArg().tokens}return o&&a||e.macros.set(i,{tokens:r,numArgs:c}),""};he("\\newcommand",e=>aE(e,!1,!0,!1));he("\\renewcommand",e=>aE(e,!0,!1,!1));he("\\providecommand",e=>aE(e,!0,!0,!0));he("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});he("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});he("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Kp[n],Vs.math[n],Vs.text[n]),""});he("\\bgroup","{");he("\\egroup","}");
vendor: 6,683 bytes, line 1906
1906he("~","\\nobreakspace");he("\\lq","`");he("\\rq","'");he("\\aa","\\r a");he("\\AA","\\r A");he("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");he("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");he("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");he("â¬","\\mathscr{B}");he("â°","\\mathscr{E}");he("â±","\\mathscr{F}");he("â","\\mathscr{H}");he("â","\\mathscr{I}");he("â","\\mathscr{L}");he("â³","\\mathscr{M}");he("â","\\mathscr{R}");he("â","\\mathfrak{C}");he("â","\\mathfrak{H}");he("â¨","\\mathfrak{Z}");he("\\Bbbk","\\Bbb{k}");he("·","\\cdotp");he("\\llap","\\mathllap{\\textrm{#1}}");he("\\rlap","\\mathrlap{\\textrm{#1}}");he("\\clap","\\mathclap{\\textrm{#1}}");he("\\mathstrut","\\vphantom{(}");he("\\underbar","\\underline{\\text{#1}}");he("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');he("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`â }}");he("\\ne","\\neq");he("â ","\\neq");he("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`â}}");he("â","\\notin");he("â","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`â}}");he("â","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`â}}");he("â","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`â}}");he("â","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`â}}");he("â","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`â}}");he("â","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`â}}");he("â","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`â}}");he("â","\\perp");he("â¼","\\mathclose{!\\mkern-0.8mu!}");he("â","\\notni");he("â","\\ulcorner");he("â","\\urcorner");he("â","\\llcorner");he("â","\\lrcorner");he("©","\\copyright");he("®","\\textregistered");he("ï¸","\\textregistered");he("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');he("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');he("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');he("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');he("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");he("â®","\\vdots");he("\\varGamma","\\mathit{\\Gamma}");he("\\varDelta","\\mathit{\\Delta}");he("\\varTheta","\\mathit{\\Theta}");he("\\varLambda","\\mathit{\\Lambda}");he("\\varXi","\\mathit{\\Xi}");he("\\varPi","\\mathit{\\Pi}");he("\\varSigma","\\mathit{\\Sigma}");he("\\varUpsilon","\\mathit{\\Upsilon}");he("\\varPhi","\\mathit{\\Phi}");he("\\varPsi","\\mathit{\\Psi}");he("\\varOmega","\\mathit{\\Omega}");he("\\substack","\\begin{subarray}{c}#1\\end{subarray}");he("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");he("\\boxed","\\fbox{$\\displaystyle{#1}$}");he("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");he("\\implies","\\DOTSB\\;\\Longrightarrow\\;");he("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");he("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");he("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var KL={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};he("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in KL?t=KL[n]:(n.slice(0,4)==="\\not"||n in Vs.math&&["bin","rel"].includes(Vs.math[n].group))&&(t="\\dotsb"),t});var sE={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};he("\\dotso",function(e){var t=e.future().text;return t in sE?"\\ldots\\,":"\\ldots"});he("\\dotsc",function(e){var t=e.future().text;return t in sE&&t!==","?"\\ldots\\,":"\\ldots"});he("\\cdots",function(e){var t=e.future().text;return t in sE?"\\@cdots\\,":"\\@cdots"});he("\\dotsb","\\cdots");he("\\dotsm","\\cdots");he("\\dotsi","\\!\\cdots");he("\\dotsx","\\ldots\\,");he("\\DOTSI","\\relax");he("\\DOTSB","\\relax");he("\\DOTSX","\\relax");he("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");he("\\,","\\tmspace+{3mu}{.1667em}");he("\\thinspace","\\,");he("\\>","\\mskip{4mu}");he("\\:","\\tmspace+{4mu}{.2222em}");he("\\medspace","\\:");he("\\;","\\tmspace+{5mu}{.2777em}");he("\\thickspace","\\;");he("\\!","\\tmspace-{3mu}{.1667em}");he("\\negthinspace","\\!");he("\\negmedspace","\\tmspace-{4mu}{.2222em}");he("\\negthickspace","\\tmspace-{5mu}{.277em}");he("\\enspace","\\kern.5em ");he("\\enskip","\\hskip.5em\\relax");he("\\quad","\\hskip1em\\relax");he("\\qquad","\\hskip2em\\relax");he("\\tag","\\@ifstar\\tag@literal\\tag@paren");he("\\tag@paren","\\tag@literal{({#1})}");he("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Pt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});he("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");he("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");he("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");he("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");he("\\newline","\\\\\\relax");he("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var mW=Ut(wd["Main-Regular"][84][1]-.7*wd["Main-Regular"][65][1]);he("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+mW+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");he("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+mW+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");
1906he("\\hspace","\\@ifstar\\@hspacer\\@hspace");he("\\@hspace","\\hskip #1\\relax");he("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");he("\\ordinarycolon",":");he("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");he("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');he("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');he("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');he("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');he("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');he("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');he("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');he("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');he("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');he("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');he("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');he("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');he("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');he("â·","\\dblcolon");he("â¹","\\eqcolon");he("â","\\coloneqq");he("â","\\eqqcolon");he("â©´","\\Coloneqq");he("\\ratio","\\vcentcolon");he("\\coloncolon","\\dblcolon");he("\\colonequals","\\coloneqq");he("\\coloncolonequals","\\Coloneqq");he("\\equalscolon","\\eqqcolon");he("\\equalscoloncolon","\\Eqqcolon");he("\\colonminus","\\coloneq");he("\\coloncolonminus","\\Coloneq");he("\\minuscolon","\\eqcolon");he("\\minuscoloncolon","\\Eqcolon");he("\\coloncolonapprox","\\Colonapprox");he("\\coloncolonsim","\\Colonsim");he("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");he("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");he("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");he("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");he("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`â}}");he("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");he("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");he("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");he("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");he("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");he("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");he("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");he("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");he("\\gvertneqq","\\html@mathml{\\@gvertneqq}{â©}");he("\\lvertneqq","\\html@mathml{\\@lvertneqq}{â¨}");he("\\ngeqq","\\html@mathml{\\@ngeqq}{â±}");he("\\ngeqslant","\\html@mathml{\\@ngeqslant}{â±}");he("\\nleqq","\\html@mathml{\\@nleqq}{â°}");he("\\nleqslant","\\html@mathml{\\@nleqslant}{â°}");he("\\nshortmid","\\html@mathml{\\@nshortmid}{â¤}");he("\\nshortparallel","\\html@mathml{\\@nshortparallel}{â¦}");he("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{â}");he("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{â}");he("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{â}");he("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{â«}");he("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{â}");he("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{â«}");he("\\imath","\\html@mathml{\\@imath}{ı}");he("\\jmath","\\html@mathml{\\@jmath}{È·}");he("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`â¦}}");he("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`â§}}");he("â¦","\\llbracket");he("â§","\\rrbracket");he("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}
1906{\\mathopen{\\char`â¦}}");he("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`â¦}}");he("â¦","\\lBrace");he("â¦","\\rBrace");he("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");he("⦵","\\minuso");he("\\darr","\\downarrow");he("\\dArr","\\Downarrow");he("\\Darr","\\Downarrow");he("\\lang","\\langle");he("\\rang","\\rangle");he("\\uarr","\\uparrow");he("\\uArr","\\Uparrow");he("\\Uarr","\\Uparrow");he("\\N","\\mathbb{N}");he("\\R","\\mathbb{R}");he("\\Z","\\mathbb{Z}");he("\\alef","\\aleph");he("\\alefsym","\\aleph");he("\\Alpha","\\mathrm{A}");he("\\Beta","\\mathrm{B}");he("\\bull","\\bullet");he("\\Chi","\\mathrm{X}");he("\\clubs","\\clubsuit");he("\\cnums","\\mathbb{C}");he("\\Complex","\\mathbb{C}");he("\\Dagger","\\ddagger");he("\\diamonds","\\diamondsuit");he("\\empty","\\emptyset");he("\\Epsilon","\\mathrm{E}");he("\\Eta","\\mathrm{H}");he("\\exist","\\exists");he("\\harr","\\leftrightarrow");he("\\hArr","\\Leftrightarrow");he("\\Harr","\\Leftrightarrow");he("\\hearts","\\heartsuit");he("\\image","\\Im");he("\\infin","\\infty");he("\\Iota","\\mathrm{I}");he("\\isin","\\in");he("\\Kappa","\\mathrm{K}");he("\\larr","\\leftarrow");he("\\lArr","\\Leftarrow");he("\\Larr","\\Leftarrow");he("\\lrarr","\\leftrightarrow");he("\\lrArr","\\Leftrightarrow");he("\\Lrarr","\\Leftrightarrow");he("\\Mu","\\mathrm{M}");he("\\natnums","\\mathbb{N}");he("\\Nu","\\mathrm{N}");he("\\Omicron","\\mathrm{O}");he("\\plusmn","\\pm");he("\\rarr","\\rightarrow");he("\\rArr","\\Rightarrow");he("\\Rarr","\\Rightarrow");he("\\real","\\Re");he("\\reals","\\mathbb{R}");he("\\Reals","\\mathbb{R}");he("\\Rho","\\mathrm{P}");he("\\sdot","\\cdot");he("\\sect","\\S");he("\\spades","\\spadesuit");he("\\sub","\\subset");he("\\sube","\\subseteq");he("\\supe","\\supseteq");he("\\Tau","\\mathrm{T}");he("\\thetasym","\\vartheta");he("\\weierp","\\wp");he("\\Zeta","\\mathrm{Z}");he("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");he("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");he("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");he("\\bra","\\mathinner{\\langle{#1}|}");he("\\ket","\\mathinner{|{#1}\\rangle}");he("\\braket","\\mathinner{\\langle{#1}\\rangle}");he("\\Bra","\\left\\langle#1\\right|");he("\\Ket","\\left|#1\\right\\rangle");var pW=e=>t=>{var n=t.consumeArg().tokens,a=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,o=t.macros.get("|"),c=t.macros.get("\\|");t.macros.beginGroup();var l=h=>x=>{e&&(x.macros.set("|",o),r.length&&x.macros.set("\\|",c));var f=h;if(!h&&r.length){var b=x.future();b.text==="|"&&(x.popToken(),f=!0)}return{tokens:f?r:a,numArgs:0}};t.macros.set("|",l(!1)),r.length&&t.macros.set("\\|",l(!0));var d=t.consumeArg().tokens,m=t.expandTokens([...i,...d,...n]);return t.macros.endGroup(),{tokens:m.reverse(),numArgs:0}};he("\\bra@ket",pW(!1));he("\\bra@set",pW(!0));he("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");he("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");he("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");he("\\angln","{\\angl n}");he("\\blue","\\textcolor{##6495ed}{#1}");he("\\orange","\\textcolor{##ffa500}{#1}");he("\\pink","\\textcolor{##ff00af}{#1}");he("\\red","\\textcolor{##df0030}{#1}");he("\\green","\\textcolor{##28ae7b}{#1}");he("\\gray","\\textcolor{gray}{#1}");he("\\purple","\\textcolor{##9d38bd}{#1}");he("\\blueA","\\textcolor{##ccfaff}{#1}");he("\\blueB","\\textcolor{##80f6ff}{#1}");he("\\blueC","\\textcolor{##63d9ea}{#1}");he("\\blueD","\\textcolor{##11accd}{#1}");he("\\blueE","\\textcolor{##0c7f99}{#1}");he("\\tealA","\\textcolor{##94fff5}{#1}");he("\\tealB","\\textcolor{##26edd5}{#1}");he("\\tealC","\\textcolor{##01d1c1}{#1}");he("\\tealD","\\textcolor{##01a995}{#1}");he("\\tealE","\\textcolor{##208170}{#1}");he("\\greenA","\\textcolor{##b6ffb0}{#1}");he("\\greenB","\\textcolor{##8af281}{#1}");he("\\greenC","\\textcolor{##74cf70}{#1}");he("\\greenD","\\textcolor{##1fab54}{#1}");he("\\greenE","\\textcolor{##0d923f}{#1}");he("\\goldA","\\textcolor{##ffd0a9}{#1}");he("\\goldB","\\textcolor{##ffbb71}{#1}");he("\\goldC","\\textcolor{##ff9c39}{#1}");he("\\goldD","\\textcolor{##e07d10}{#1}");he("\\goldE","\\textcolor{##a75a05}{#1}");he("\\redA","\\textcolor{##fca9a9}{#1}");he("\\redB","\\textcolor{##ff8482}{#1}");he("\\redC","\\textcolor{##f9685d}{#1}");he("\\redD","\\textcolor{##e84d39}{#1}");
vendor: 4,583 bytes, line 1906
1906he("\\redE","\\textcolor{##bc2612}{#1}");he("\\maroonA","\\textcolor{##ffbde0}{#1}");he("\\maroonB","\\textcolor{##ff92c6}{#1}");he("\\maroonC","\\textcolor{##ed5fa6}{#1}");he("\\maroonD","\\textcolor{##ca337c}{#1}");he("\\maroonE","\\textcolor{##9e034e}{#1}");he("\\purpleA","\\textcolor{##ddd7ff}{#1}");he("\\purpleB","\\textcolor{##c6b9fc}{#1}");he("\\purpleC","\\textcolor{##aa87ff}{#1}");he("\\purpleD","\\textcolor{##7854ab}{#1}");he("\\purpleE","\\textcolor{##543b78}{#1}");he("\\mintA","\\textcolor{##f5f9e8}{#1}");he("\\mintB","\\textcolor{##edf2df}{#1}");he("\\mintC","\\textcolor{##e0e5cc}{#1}");he("\\grayA","\\textcolor{##f6f7f7}{#1}");he("\\grayB","\\textcolor{##f0f1f2}{#1}");he("\\grayC","\\textcolor{##e3e5e6}{#1}");he("\\grayD","\\textcolor{##d6d8da}{#1}");he("\\grayE","\\textcolor{##babec2}{#1}");he("\\grayF","\\textcolor{##888d93}{#1}");he("\\grayG","\\textcolor{##626569}{#1}");he("\\grayH","\\textcolor{##3b3e40}{#1}");he("\\grayI","\\textcolor{##21242c}{#1}");he("\\kaBlue","\\textcolor{##314453}{#1}");he("\\kaGreen","\\textcolor{##71B307}{#1}");var hW={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class MNe{constructor(t,n,a){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new RNe(INe,n.macros),this.mode=a,this.stack=[]}feed(t){this.lexer=new XL(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,a,r;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:r,end:a}=this.consumeArg(["]"])}else({tokens:r,start:n,end:a}=this.consumeArg());return this.pushToken(new el("EOF",a.loc)),this.pushTokens(r),new el("",hc.range(n,a))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],a=t&&t.length>0;a||this.consumeSpaces();var r=this.future(),i,o=0,c=0;do{if(i=this.popToken(),n.push(i),i.text==="{")++o;else if(i.text==="}"){if(--o,o===-1)throw new Pt("Extra }",i)}else if(i.text==="EOF")throw new Pt("Unexpected end of input in a macro argument, expected '"+(t&&a?t[c]:"}")+"'",i);if(t&&a)if((o===0||o===1&&t[c]==="{")&&i.text===t[c]){if(++c,c===t.length){n.splice(-c,c);break}}else c=0}while(o!==0||a);return r.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:r,end:i}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new Pt("The length of delimiters doesn't match the number of args!");for(var a=n[0],r=0;r<a.length;r++){var i=this.popToken();if(a[r]!==i.text)throw new Pt("Use of the macro doesn't match its definition",i)}}for(var o=[],c=0;c<t;c++)o.push(this.consumeArg(n&&n[c+1]).tokens);return o}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new Pt("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),a=n.text,r=n.noexpand?null:this._getExpansion(a);if(r==null||t&&r.unexpandable){if(t&&r==null&&a[0]==="\\"&&!this.isDefined(a))throw new Pt("Undefined control sequence: "+a);return this.pushToken(n),!1}this.countExpansion(1);var i=r.tokens,o=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var c=i.length-1;c>=0;--c){var l=i[c];if(l.text==="#"){if(c===0)throw new Pt("Incomplete placeholder at end of macro body",l);if(l=i[--c],l.text==="#")i.splice(c+1,1);else if(/^[1-9]$/.test(l.text))i.splice(c,2,...o[+l.text-1]);else throw new Pt("Not a valid argument number",l)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new el(t)]):void 0}expandTokens(t){var n=[],a=this.stack.length;for(this.pushTokens(t);this.stack.length>a;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&(r.noexpand=!1,r.treatAsRelax=!1),n.push(r)}return this.countExpansion(n.length),n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(a=>a.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var a=this.lexer.catcodes[t];
vendor: 5,115 bytes, line 1906
1906if(a!=null&&a!==13)return}var r=typeof n=="function"?n(this):n;if(typeof r=="string"){var i=0;if(r.indexOf("#")!==-1)for(var o=r.replace(/##/g,"");o.indexOf("#"+(i+1))!==-1;)++i;for(var c=new XL(r,this.settings),l=[],d=c.lex();d.text!=="EOF";)l.push(d),d=c.lex();l.reverse();var m={tokens:l,numArgs:i};return m}return r}isDefined(t){return this.macros.has(t)||Kp.hasOwnProperty(t)||Vs.math.hasOwnProperty(t)||Vs.text.hasOwnProperty(t)||hW.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:Kp.hasOwnProperty(t)&&!Kp[t].primitive}}var ZL=/^[âââââââââââ
âââââââᵢⱼââââââáµ£ââᵤᵥâᵦᵧᵨᵩᵪ]/,N5=Object.freeze({"â":"+","â":"-","â":"=","â":"(","â":")","â":"0","â":"1","â":"2","â":"3","â":"4","â
":"5","â":"6","â":"7","â":"8","â":"9","â":"a","â":"e","â":"h","áµ¢":"i","â±¼":"j","â":"k","â":"l","â":"m","â":"n","â":"o","â":"p","áµ£":"r","â":"s","â":"t","ᵤ":"u","áµ¥":"v","â":"x","ᵦ":"β","áµ§":"γ","ᵨ":"Ï","ᵩ":"Ï","ᵪ":"Ï","âº":"+","â»":"-","â¼":"=","â½":"(","â¾":")","â°":"0","¹":"1","²":"2","³":"3","â´":"4","âµ":"5","â¶":"6","â·":"7","â¸":"8","â¹":"9","á´¬":"A","á´®":"B","á´°":"D","á´±":"E","á´³":"G","á´´":"H","á´µ":"I","á´¶":"J","á´·":"K","á´¸":"L","á´¹":"M","á´º":"N","á´¼":"O","á´¾":"P","á´¿":"R","áµ":"T","áµ":"U","â±½":"V","áµ":"W","áµ":"a","áµ":"b","á¶":"c","áµ":"d","áµ":"e","á¶ ":"f","áµ":"g",ʰ:"h","â±":"i",ʲ:"j","áµ":"k",Ë¡:"l","áµ":"m",â¿:"n","áµ":"o","áµ":"p",ʳ:"r",Ë¢:"s","áµ":"t","áµ":"u","áµ":"v",Ê·:"w",Ë£:"x",ʸ:"y","á¶»":"z","áµ":"β","áµ":"γ","áµ":"δ","áµ ":"Ï","ᵡ":"Ï","á¶¿":"θ"}),j8={"Ì":{text:"\\'",math:"\\acute"},"Ì":{text:"\\`",math:"\\grave"},"Ì":{text:'\\"',math:"\\ddot"},"Ì":{text:"\\~",math:"\\tilde"},"Ì":{text:"\\=",math:"\\bar"},"Ì":{text:"\\u",math:"\\breve"},"Ì":{text:"\\v",math:"\\check"},"Ì":{text:"\\^",math:"\\hat"},"Ì":{text:"\\.",math:"\\dot"},"Ì":{text:"\\r",math:"\\mathring"},"Ì":{text:"\\H"},"̧":{text:"\\c"}},eO={á:"aÌ",à :"aÌ",ä:"aÌ",Ç:"aÌÌ",ã:"aÌ",Ä:"aÌ",Ä:"aÌ",ắ:"aÌÌ",ằ:"aÌÌ",ẵ:"aÌÌ",Ç:"aÌ",â:"aÌ",ấ:"aÌÌ",ầ:"aÌÌ",ẫ:"aÌÌ",ȧ:"aÌ",Ç¡:"aÌÌ",Ã¥:"aÌ",Ç»:"aÌÌ",á¸:"bÌ",Ä:"cÌ",á¸:"çÌ",Ä:"cÌ",Ä:"cÌ",Ä:"cÌ",ç:"ç",Ä:"dÌ",á¸:"dÌ",á¸:"ḑ",é:"eÌ",è:"eÌ",ë:"eÌ",ẽ:"eÌ",Ä:"eÌ",á¸:"eÌÌ",á¸:"eÌÌ",Ä:"eÌ",á¸:"ȩÌ",Ä:"eÌ",ê:"eÌ",ế:"eÌÌ",á»:"eÌÌ",á»
:"eÌÌ",Ä:"eÌ",È©:"ȩ",á¸:"fÌ",ǵ:"gÌ",ḡ:"gÌ",Ä:"gÌ",ǧ:"gÌ",Ä:"gÌ",Ä¡:"gÌ",Ä£:"ģ",ḧ:"hÌ",È:"hÌ",Ä¥:"hÌ",ḣ:"hÌ",ḩ:"ḩ",Ã:"iÌ",ì:"iÌ",ï:"iÌ",ḯ:"iÌÌ",Ä©:"iÌ",Ä«:"iÌ",Ä:"iÌ",Ç:"iÌ",î:"iÌ",ǰ:"jÌ",ĵ:"jÌ",ḱ:"kÌ",Ç©:"kÌ",Ä·:"ķ",ĺ:"lÌ",ľ:"lÌ",ļ:"ļ",ḿ:"mÌ",á¹:"mÌ",Å:"nÌ",ǹ:"nÌ",ñ:"nÌ",Å:"nÌ",á¹
:"nÌ",Å:"ņ",ó:"oÌ",ò:"oÌ",ö:"oÌ",È«:"oÌÌ",õ:"oÌ",á¹:"oÌÌ",á¹:"oÌÌ",È:"oÌÌ",Å:"oÌ",á¹:"oÌÌ",á¹:"oÌÌ",Å:"oÌ",Ç:"oÌ",ô:"oÌ",á»:"oÌÌ",á»:"oÌÌ",á»:"oÌÌ",ȯ:"oÌ",ȱ:"oÌÌ",Å:"oÌ",á¹:"pÌ",á¹:"pÌ",Å:"rÌ",Å:"rÌ",á¹:"rÌ",Å:"ŗ",Å:"sÌ",á¹¥:"sÌÌ",Å¡:"sÌ",á¹§:"sÌÌ",Å:"sÌ",ṡ:"sÌ",Å:"ş",áº:"tÌ",Å¥:"tÌ",ṫ:"tÌ",Å£:"ţ",ú:"uÌ",ù:"uÌ",ü:"uÌ",Ç:"uÌÌ",Ç:"uÌÌ",Ç:"uÌÌ",Ç:"uÌÌ",Å©:"uÌ",á¹¹:"uÌÌ",Å«:"uÌ",á¹»:"uÌÌ",Å:"uÌ",Ç:"uÌ",û:"uÌ",ů:"uÌ",ű:"uÌ",á¹½:"vÌ",áº:"wÌ",áº:"wÌ",áº
:"wÌ",ŵ:"wÌ",áº:"wÌ",áº:"wÌ",áº:"xÌ",áº:"xÌ",ý:"yÌ",ỳ:"yÌ",ÿ:"yÌ",ỹ:"yÌ",ȳ:"yÌ",Å·:"yÌ",áº:"yÌ",áº:"yÌ",ź:"zÌ",ž:"zÌ",áº:"zÌ",ż:"zÌ",Ã:"AÌ",Ã:"AÌ",Ã:"AÌ",Ç:"AÌÌ",Ã:"AÌ",Ä:"AÌ",Ä:"AÌ",Ắ:"AÌÌ",Ằ:"AÌÌ",Ẵ:"AÌÌ",Ç:"AÌ",Ã:"AÌ",Ấ:"AÌÌ",Ầ:"AÌÌ",Ẫ:"AÌÌ",Ȧ:"AÌ",Ç :"AÌÌ",Ã
:"AÌ",Ǻ:"AÌÌ",á¸:"BÌ",Ä:"CÌ",á¸:"ÇÌ",Ä:"CÌ",Ä:"CÌ",Ä:"CÌ",Ã:"Ç",Ä:"DÌ",á¸:"DÌ",á¸:"Ḑ",Ã:"EÌ",Ã:"EÌ",Ã:"EÌ",Ẽ:"EÌ",Ä:"EÌ",á¸:"EÌÌ",á¸:"EÌÌ",Ä:"EÌ",á¸:"ȨÌ",Ä:"EÌ",Ã:"EÌ",Ế:"EÌÌ",á»:"EÌÌ",á»:"EÌÌ",Ä:"EÌ",Ȩ:"Ȩ",á¸:"FÌ",Ç´:"GÌ",Ḡ:"GÌ",Ä:"GÌ",Ǧ:"GÌ",Ä:"GÌ",Ä :"GÌ",Ä¢:"Ģ",Ḧ:"HÌ",È:"HÌ",Ĥ:"HÌ",Ḣ:"HÌ",Ḩ:"Ḩ",Ã:"IÌ",Ã:"IÌ",Ã:"IÌ",Ḯ:"IÌÌ",Ĩ:"IÌ",Ī:"IÌ",Ĭ:"IÌ",Ç:"IÌ",Ã:"IÌ",İ:"IÌ",Ä´:"JÌ",Ḱ:"KÌ",Ǩ:"KÌ",Ķ:"Ķ",Ĺ:"LÌ",Ľ:"LÌ",Ä»:"Ļ",Ḿ:"MÌ",á¹:"MÌ",Å:"NÌ",Ǹ:"NÌ",Ã:"NÌ",Å:"NÌ",á¹:"NÌ",Å
:"Ņ",Ã:"OÌ",Ã:"OÌ",Ã:"OÌ",Ȫ:"OÌÌ",Ã:"OÌ",á¹:"OÌÌ",á¹:"OÌÌ",Ȭ:"OÌÌ",Å:"OÌ",á¹:"OÌÌ",á¹:"OÌÌ",Å:"OÌ",Ç:"OÌ",Ã:"OÌ",á»:"OÌÌ",á»:"OÌÌ",á»:"OÌÌ",È®:"OÌ",Ȱ:"OÌÌ",Å:"OÌ",á¹:"PÌ",á¹:"PÌ",Å:"RÌ",Å:"RÌ",á¹:"RÌ",Å:"Ŗ",Å:"SÌ",Ṥ:"SÌÌ",Å :"SÌ",Ṧ:"SÌÌ",Å:"SÌ",á¹ :"SÌ",Å:"Ş",Ť:"TÌ",Ṫ:"TÌ",Å¢:"Ţ",Ã:"UÌ",Ã:"UÌ",Ã:"UÌ",Ç:"UÌÌ",Ç:"UÌÌ",Ç:"UÌÌ",Ç:"UÌÌ",Ũ:"UÌ",Ṹ:"UÌÌ",Ū:"UÌ",Ṻ:"UÌÌ",Ŭ:"UÌ",Ç:"UÌ",Ã:"UÌ",Å®:"UÌ",Ű:"UÌ",á¹¼:"VÌ",áº:"WÌ",áº:"WÌ",áº:"WÌ",Å´:"WÌ",áº:"WÌ",áº:"XÌ",áº:"XÌ",Ã:"YÌ",Ỳ:"YÌ",Ÿ:"YÌ",Ỹ:"YÌ",Ȳ
vendor: 17,642 bytes, lines 1906-1908
1906:"YÌ",Ŷ:"YÌ",áº:"YÌ",Ź:"ZÌ",Ž:"ZÌ",áº:"ZÌ",Å»:"ZÌ",ά:"αÌ",á½°:"αÌ",á¾±:"αÌ",á¾°:"αÌ",Î:"εÌ",á½²:"εÌ",ή:"ηÌ",á½´:"ηÌ",ί:"ιÌ",á½¶:"ιÌ",Ï:"ιÌ",Î:"ιÌÌ",á¿:"ιÌÌ",á¿:"ιÌ",á¿:"ιÌ",Ï:"οÌ",ὸ:"οÌ",Ï:"Ï Ì",ὺ:"Ï Ì",Ï:"Ï Ì",ΰ:"Ï ÌÌ",á¿¢:"Ï ÌÌ",á¿¡:"Ï Ì",á¿ :"Ï Ì",Ï:"ÏÌ",á½¼:"ÏÌ",Î:"Î¥Ì",Ὺ:"Î¥Ì",Ϋ:"Î¥Ì",á¿©:"Î¥Ì",Ῠ:"Î¥Ì",Î:"ΩÌ",Ὼ:"ΩÌ"};let fW=class gW{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new MNe(t,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new Pt("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new el("}")),this.gullet.pushTokens(t);var a=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,a}parseExpression(t,n){for(var a=[];;){this.mode==="math"&&this.consumeSpaces();var r=this.fetch();if(gW.endOfExpression.indexOf(r.text)!==-1||n&&r.text===n||t&&Kp[r.text]&&Kp[r.text].infix)break;var i=this.parseAtom(n);if(i){if(i.type==="internal")continue}else break;a.push(i)}return this.mode==="text"&&this.formLigatures(a),this.handleInfixNodes(a)}handleInfixNodes(t){for(var n=-1,a,r=0;r<t.length;r++)if(t[r].type==="infix"){if(n!==-1)throw new Pt("only one infix operator per group",t[r].token);n=r,a=t[r].replaceWith}if(n!==-1&&a){var i,o,c=t.slice(0,n),l=t.slice(n+1);c.length===1&&c[0].type==="ordgroup"?i=c[0]:i={type:"ordgroup",mode:this.mode,body:c},l.length===1&&l[0].type==="ordgroup"?o=l[0]:o={type:"ordgroup",mode:this.mode,body:l};var d;return a==="\\\\abovefrac"?d=this.callFunction(a,[i,t[n],o],[]):d=this.callFunction(a,[i,o],[]),[d]}else return t}handleSupSubscript(t){var n=this.fetch(),a=n.text;this.consume(),this.consumeSpaces();var r;do{var i;r=this.parseGroup(t)}while(((i=r)==null?void 0:i.type)==="internal");if(!r)throw new Pt("Expected group after '"+a+"'",n);return r}formatUnsupportedCmd(t){for(var n=[],a=0;a<t.length;a++)n.push({type:"textord",mode:"text",text:t[a]});var r={type:"text",mode:this.mode,body:n},i={type:"color",mode:this.mode,color:this.settings.errorColor,body:[r]};return i}parseAtom(t){var n=this.parseGroup("atom",t);if(n?.type==="internal"||this.mode==="text")return n;for(var a,r;;){this.consumeSpaces();var i=this.fetch();if(i.text==="\\limits"||i.text==="\\nolimits"){if(n&&n.type==="op"){var o=i.text==="\\limits";n.limits=o,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=i.text==="\\limits");else throw new Pt("Limit controls must follow a math operator",i);this.consume()}else if(i.text==="^"){if(a)throw new Pt("Double superscript",i);a=this.handleSupSubscript("superscript")}else if(i.text==="_"){if(r)throw new Pt("Double subscript",i);r=this.handleSupSubscript("subscript")}else if(i.text==="'"){if(a)throw new Pt("Double superscript",i);var c={type:"textord",mode:this.mode,text:"\\prime"},l=[c];for(this.consume();this.fetch().text==="'";)l.push(c),this.consume();this.fetch().text==="^"&&l.push(this.handleSupSubscript("superscript")),a={type:"ordgroup",mode:this.mode,body:l}}else if(N5[i.text]){var d=ZL.test(i.text),m=[];for(m.push(new el(N5[i.text])),this.consume();;){var h=this.fetch().text;if(!N5[h]||ZL.test(h)!==d)break;m.unshift(new el(N5[h])),this.consume()}var x=this.subparse(m);d?r={type:"ordgroup",mode:"math",body:x}:a={type:"ordgroup",mode:"math",body:x}}else break}return a||r?{type:"supsub",mode:this.mode,base:n,sup:a,sub:r}:n}parseFunction(t,n){var a=this.fetch(),r=a.text,i=Kp[r];if(!i)return null;if(this.consume(),n&&n!=="atom"&&!i.allowedInArgument)throw new Pt("Got function '"+r+"' with no arguments"+(n?" as "+n:""),a);if(this.mode==="text"&&!i.allowedInText)throw new Pt("Can't use function '"+r+"' in text mode",a);if(this.mode==="math"&&i.allowedInMath===!1)throw new Pt("Can't use function '"+r+"' in math mode",a);var{args:o,optArgs:c}=this.parseArguments(r,i);return this.callFunction(r,o,c,a,t)}callFunction(t,n,a,r,i){var o={funcName:t,parser:this,token:r,breakOnTokenText:i},c=Kp[t];if(c&&c.handler)return c.handler(o,n,a);throw new Pt("No function handler for "+t)}parseArguments(t,n){var a=n.numArgs+n.numOptionalArgs;if(a===0)return{args:[],optArgs:[]};for(var r=[],i=[],o=0;o<a;o++){var c=n.argTypes&&n.argTypes[o],l=o<n.numOptionalArgs;(n.primitive&&c==null||n.type==="sqrt"&&o===1&&i[0]==null)&&(c="primitive");var d=this.parseGroupOfType("argument to '"+t+"'",c,l);if(l)i.push(d);else if(d!=null)r.push(d);else throw new Pt("Null argument, please report this as a bug")}return{args:r,optArgs:i}}parseGroupOfType(t,n,a){switch(n){case"color":return this.parseColorGroup(a);case"size":return this.parseSizeGroup(a);case"url":return this.parseUrlGroup(a);case"math":case"text":return this.parseArgumentGroup(a,n);case"hbox":{var r=this.parseArgumentGroup(a,"text");return r!=null?{type:"styling",mode:r.mode,body:[r],style:"text"}:null}case"raw":{var i=this.parseStringGroup("raw",a);return i!=null?{type:"raw",mode:"text",string:i.text}:null}case"primitive":{if(a)throw new Pt("A primitive argument cannot be optional");var o=this.parseGroup(t);if(o==null)throw new Pt("Expected group as "+t,this.fetch());return o}case"original":case null:case void 0:return this.parseArgumentGroup(a);default:throw new Pt("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,n){var a=this.gullet.scanArgument(n);if(a==null)return null;for(var r="",i;(i=this.fetch()).text!=="EOF";)r+=i.text,this.consume();return this.consume(),a.text=r,a}parseRegexGroup(t,n){for(var a=this.fetch(),r=a,i="",o;(o=this.fetch()).text!=="EOF"&&t.test(i+o.text);)r=o,i+=r.text,this.consume();if(i==="")throw new Pt("Invalid "+n+": '"+a.text+"'",a);return a.range(r,i)}parseColorGroup(t){var n=this.parseStringGroup("color",t);if(n==null)return null;var a=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(n.text);if(!a)throw new Pt("Invalid color: '"+n.text+"'",n);var r=a[0];return/^[0-9a-f]{6}$/i.test(r)&&(r="#"+r),{type:"color-token",mode:this.mode,color:r}}parseSizeGroup(t){var n,a=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?n=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):n=this.parseStringGroup("size",t),!n)return null;!t&&n.text.length===0&&(n.text="0pt",a=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n.text);if(!r)throw new Pt("Invalid size: '"+n.text+"'",n);var i={number:+(r[1]+r[2]),unit:r[3]};if(!kJ(i))throw new Pt("Invalid unit: '"+i.unit+"'",n);return{type:"size",mode:this.mode,value:i,isBlank:a}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var n=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),n==null)return null;var a=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:a}}parseArgumentGroup(t,n){var a=this.gullet.scanArgument(t);if(a==null)return null;var r=this.mode;n&&this.switchMode(n),this.gullet.beginGroup();var i=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var o={type:"ordgroup",mode:this.mode,loc:a.loc,body:i};return n&&this.switchMode(r),o}parseGroup(t,n){var a=this.fetch(),r=a.text,i;if(r==="{"||r==="\\begingroup"){this.consume();var o=r==="{"?"}":"\\endgroup";this.gullet.beginGroup();var c=this.parseExpression(!1,o),l=this.fetch();this.expect(o),this.gullet.endGroup(),i={type:"ordgroup",mode:this.mode,loc:hc.range(a,l),body:c,semisimple:r==="\\begingroup"||void 0}}else if(i=this.parseFunction(n,t)||this.parseSymbol(),i==null&&r[0]==="\\"&&!hW.hasOwnProperty(r)){if(this.settings.throwOnError)throw new Pt("Undefined control sequence: "+r,a);i=this.formatUnsupportedCmd(r),this.consume()}return i}formLigatures(t){for(var n=t.length-1,a=0;a<n;++a){var r=t[a],i=r.text;i==="-"&&t[a+1].text==="-"&&(a+1<n&&t[a+2].text==="-"?(t.splice(a,3,{type:"textord",mode:"text",loc:hc.range(r,t[a+2]),text:"---"}),n-=2):(t.splice(a,2,{type:"textord",mode:"text",loc:hc.range(r,t[a+1]),text:"--"}),n-=1)),(i==="'"||i==="`")&&t[a+1].text===i&&(t.splice(a,2,{type:"textord",mode:"text",loc:hc.range(r,t[a+1]),text:i+i}),n-=1)}}parseSymbol(){var t=this.fetch(),n=t.text;if(/^\\verb[^a-zA-Z]/.test(n)){this.consume();var a=n.slice(5),r=a.charAt(0)==="*";if(r&&(a=a.slice(1)),a.length<2||a.charAt(0)!==a.slice(-1))throw new Pt(`\\verb assertion failed -- 1907 please report what input caused this bug`);return a=a.slice(1,-1),{type:"verb",mode:"text",body:a,star:r}}eO.hasOwnProperty(n[0])&&!Vs[this.mode][n[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+n[0]+'" used in math mode',t),n=eO[n[0]]+n.slice(1));var i=PNe.exec(n);i&&(n=n.substring(0,i.index),n==="i"?n="ı":n==="j"&&(n="È·"));var o;if(Vs[this.mode][n]){this.settings.strict&&this.mode==="math"&&$7.indexOf(n)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var c=Vs[this.mode][n].group,l=hc.range(t),d;if(NTe.hasOwnProperty(c)){var m=c;d={type:"atom",mode:this.mode,family:m,loc:l,text:n}}else d={type:c,mode:this.mode,loc:l,text:n};o=d}else if(n.charCodeAt(0)>=128)this.settings.strict&&(TJ(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),o={type:"textord",mode:"text",loc:hc.range(t),text:n};else return null;if(this.consume(),i)for(var h=0;h<i[0].length;h++){var x=i[0][h];if(!j8[x])throw new Pt("Unknown accent ' "+x+"'",t);var f=j8[x][this.mode]||j8[x].text;if(!f)throw new Pt("Accent "+x+" unsupported in "+this.mode+" mode",t);o={type:"accent",mode:this.mode,loc:hc.range(t),label:f,isStretchy:!1,isShifty:!0,base:o}}return o}};fW.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var rE=function(t,n){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var a=new fW(t,n);delete a.gullet.macros.current["\\df@tag"];var r=a.parse();if(delete a.gullet.macros.current["\\current@color"],delete a.gullet.macros.current["\\color"],a.gullet.macros.get("\\df@tag")){if(!n.displayMode)throw new Pt("\\tag works only in display equations");r=[{type:"tag",mode:"text",body:r,tag:a.subparse([new el("\\df@tag")])}]}return r},iE=function(t,n,a){n.textContent="";var r=S6(t,a).toNode();n.appendChild(r)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),iE=function(){throw new Pt("KaTeX doesn't work in quirks mode.")});var xW=function(t,n){var a=S6(t,n).toMarkup();return a},bW=function(t,n){var a=new H9(n);return rE(t,a)},vW=function(t,n,a){if(a.throwOnError||!(t instanceof Pt))throw t;var r=Ke.makeSpan(["katex-error"],[new Il(n)]);return r.setAttribute("title",t.toString()),r.setAttribute("style","color:"+a.errorColor),r},S6=function(t,n){var a=new H9(n);try{var r=rE(t,a);return GTe(r,t,a)}catch(i){return vW(i,t,a)}},yW=function(t,n){var a=new H9(n);try{var r=rE(t,a);return JTe(r,t,a)}catch(i){return vW(i,t,a)}},wW="0.16.25",TW={Span:av,Anchor:$9,SymbolNode:Il,SvgNode:$m,PathNode:gh,LineNode:z7},X7={version:wW,render:iE,renderToString:xW,ParseError:Pt,SETTINGS_SCHEMA:_b,__parse:bW,__renderToDomTree:S6,__renderToHTMLTree:yW,__setFontMetrics:NJ,__defineSymbol:q,__defineFunction:Yt,__defineMacro:he,__domTree:TW};const QDe=Object.freeze(Object.defineProperty({__proto__:null,ParseError:Pt,SETTINGS_SCHEMA:_b,__defineFunction:Yt,__defineMacro:he,__defineSymbol:q,__domTree:TW,__parse:bW,__renderToDomTree:S6,__renderToHTMLTree:yW,__setFontMetrics:NJ,default:X7,get render(){return iE},renderToString:xW,version:wW},Symbol.toStringTag,{value:"Module"})),LNe={},ONe=[];function BNe(e){const t=e||LNe;return function(n,a){B9(n,"element",function(r,i){const o=Array.isArray(r.properties.className)?r.properties.className:ONe,c=o.includes("language-math"),l=o.includes("math-display"),d=o.includes("math-inline");let m=l;if(!c&&!l&&!d)return;let h=i[i.length-1],x=r;if(r.tagName==="code"&&c&&h&&h.type==="element"&&h.tagName==="pre"&&(x=h,h=i[i.length-2],m=!0),!h)return;const f=Lwe(x,{whitespace:"pre"});let b;try{b=X7.renderToString(f,{...t,displayMode:m,throwOnError:!0})}catch(w){const T=w,A=T.name.toLowerCase();a.message("Could not render math with KaTeX",{ancestors:[...i,r],cause:T,place:r.position,ruleId:A,source:"rehype-katex"});try{b=X7.renderToString(f,{...t,displayMode:m,strict:"ignore",throwOnError:!1})}catch{b=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(w)},children:[{type:"text",value:f}]}]}}typeof b=="string"&&(b=Cwe(b).children);const y=h.children.indexOf(x);return h.children.splice(y,1,...b),G3})}}function FNe(e){const t=String(e),n=[];return{toOffset:r,toPoint:a};function a(i){if(typeof i=="number"&&i>-1&&i<=t.length){let o=0;for(;;){let c=n[o];if(c===void 0){const l=tO(t,n[o-1]);c=l===-1?t.length+1:l+1,n[o]=c}if(c>i)return{line:o+1,column:i-(o>0?n[o-1]:0)+1,offset:i};o++}}}function r(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;n.length<i.line;){const c=n[n.length-1],l=tO(t,c),d=l===-1?t.length+1:l+1;if(c===d)break;n.push(d)}const o=(i.line>1?n[i.line-2]:0)+i.column-1;if(o<n[i.line-1])return o}}}function tO(e,t){const n=e.indexOf("\r",t),a=e.indexOf(` 1908`,t);return a===-1?n:n===-1||n+1===a?a:n<a?n:a}const NW={}.hasOwnProperty,UNe=Object.prototype;function HNe(e,t){const n=t||{};return oE({file:n.file||void 0,location:!1,schema:n.space==="svg"?Th:K2,verbose:n.verbose||!1},e)}function oE(e,t){let n;switch(t.nodeName){case"#comment":{const a=t;return n={type:"comment",value:a.data},r3(e,a,n),n}case"#document":case"#document-fragment":{const a=t,r="mode"in a?a.mode==="quirks"||a.mode==="limited-quirks":!1;if(n={type:"root",children:kW(e,t.childNodes),data:{quirksMode:r}},e.file&&e.location){const i=String(e.file),o=FNe(i),c=o.toPoint(0),l=o.toPoint(i.length);n.position={start:c,end:l}}return n}case"#documentType":{const a=t;return n={type:"doctype"},r3(e,a,n),n}case"#text":{const a=t;return n={type:"text",value:a.value},r3(e,a,n),n}default:return n=VNe(e,t),n}}function kW(e,t){let n=-1;const a=[];for(;++n<t.length;){const r=oE(e,t[n]);a.push(r)}return a}function VNe(e,t){const n=e.schema;e.schema=t.namespaceURI===yd.svg?Th:K2;let a=-1;const r={};for(;++a<t.attrs.length;){const c=t.attrs[a],l=(c.prefix?c.prefix+":":"")+c.name;NW.call(UNe,l)||(r[l]=c.value)}const o=(e.schema.space==="svg"?hJ:pJ)(t.tagName,r,kW(e,t.childNodes));if(r3(e,t,o),o.tagName==="template"){const c=t,l=c.sourceCodeLocation,d=l&&l.startTag&&Fg(l.startTag),m=l&&l.endTag&&Fg(l.endTag),h=oE(e,c.content);d&&m&&e.file&&(h.position={start:d.end,end:m.start}),o.content=h}return e.schema=n,o}function r3(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const a=zNe(e,n,t.sourceCodeLocation);a&&(e.location=!0,n.position=a)}}function zNe(e,t,n){const a=Fg(n);if(t.type==="element"){const r=t.children[t.children.length-1];if(a&&!n.endTag&&r&&r.position&&r.position.end&&(a.end=Object.assign({},r.position.end)),e.verbose){const i={};let o;if(n.attrs)for(o in n.attrs)NW.call(n.attrs,o)&&(i[x6(e.schema,o).property]=Fg(n.attrs[o]));n.startTag;const c=Fg(n.startTag),l=n.endTag?Fg(n.endTag):void 0,d={opening:c};l&&(d.closing=l),d.properties=i,t.data={position:d}}}return a}function Fg(e){const t=nO({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=nO({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function nO(e){return e.line&&e.column?e:void 0}class rv{constructor(t,n,a){this.property=t,this.normal=n,a&&(this.space=a)}}rv.prototype.property={};rv.prototype.normal={};rv.prototype.space=null;function jW(e,t){const n={},a={};let r=-1;for(;++r<e.length;)Object.assign(n,e[r].property),Object.assign(a,e[r].normal);return new rv(n,a,t)}function Q7(e){return e.toLowerCase()}class Bl{constructor(t,n){this.property=t,this.attribute=n}}Bl.prototype.space=null;Bl.prototype.boolean=!1;Bl.prototype.booleanish=!1;Bl.prototype.overloadedBoolean=!1;Bl.prototype.number=!1;Bl.prototype.commaSeparated=!1;Bl.prototype.spaceSeparated=!1;Bl.prototype.commaOrSpaceSeparated=!1;Bl.prototype.mustUseProperty=!1;Bl.prototype.defined=!1;let $Ne=0;const la=lf(),ci=lf(),AW=lf(),It=lf(),Fs=lf(),Zg=lf(),$c=lf();function lf(){return 2**++$Ne}const K7=Object.freeze(Object.defineProperty({__proto__:null,boolean:la,booleanish:ci,commaOrSpaceSeparated:$c,commaSeparated:Zg,number:It,overloadedBoolean:AW,spaceSeparated:Fs},Symbol.toStringTag,{value:"Module"})),A8=Object.keys(K7);class cE extends Bl{constructor(t,n,a,r){let i=-1;
vendor: 4,792 bytes, line 1908
1908if(super(t,n),aO(this,"space",r),typeof a=="number")for(;++i<A8.length;){const o=A8[i];aO(this,A8[i],(a&K7[o])===K7[o])}}}cE.prototype.defined=!0;function aO(e,t,n){n&&(e[t]=n)}const qNe={}.hasOwnProperty;function _x(e){const t={},n={};let a;for(a in e.properties)if(qNe.call(e.properties,a)){const r=e.properties[a],i=new cE(a,e.transform(e.attributes||{},a),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(i.mustUseProperty=!0),t[a]=i,n[Q7(a)]=a,n[Q7(i.attribute)]=a}return new rv(t,n,e.space)}const EW=_x({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),CW=_x({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function SW(e,t){return t in e?e[t]:t}function _W(e,t){return SW(e,t.toLowerCase())}const PW=_x({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:_W,properties:{xmlns:null,xmlnsXLink:null}}),DW=_x({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:ci,ariaAutoComplete:null,ariaBusy:ci,ariaChecked:ci,ariaColCount:It,ariaColIndex:It,ariaColSpan:It,ariaControls:Fs,ariaCurrent:null,ariaDescribedBy:Fs,ariaDetails:null,ariaDisabled:ci,ariaDropEffect:Fs,ariaErrorMessage:null,ariaExpanded:ci,ariaFlowTo:Fs,ariaGrabbed:ci,ariaHasPopup:null,ariaHidden:ci,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Fs,ariaLevel:It,ariaLive:null,ariaModal:ci,ariaMultiLine:ci,ariaMultiSelectable:ci,ariaOrientation:null,ariaOwns:Fs,ariaPlaceholder:null,ariaPosInSet:It,ariaPressed:ci,ariaReadOnly:ci,ariaRelevant:null,ariaRequired:ci,ariaRoleDescription:Fs,ariaRowCount:It,ariaRowIndex:It,ariaRowSpan:It,ariaSelected:ci,ariaSetSize:It,ariaSort:null,ariaValueMax:It,ariaValueMin:It,ariaValueNow:It,ariaValueText:null,role:null}}),GNe=_x({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:_W,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Zg,acceptCharset:Fs,accessKey:Fs,action:null,allow:null,allowFullScreen:la,allowPaymentRequest:la,allowUserMedia:la,alt:null,as:null,async:la,autoCapitalize:null,autoComplete:Fs,autoFocus:la,autoPlay:la,blocking:Fs,capture:null,charSet:null,checked:la,cite:null,className:Fs,cols:It,colSpan:null,content:null,contentEditable:ci,controls:la,controlsList:Fs,coords:It|Zg,crossOrigin:null,data:null,dateTime:null,decoding:null,default:la,defer:la,dir:null,dirName:null,disabled:la,download:AW,draggable:ci,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:la,formTarget:null,headers:Fs,height:It,hidden:la,high:It,href:null,hrefLang:null,htmlFor:Fs,httpEquiv:Fs,id:null,imageSizes:null,imageSrcSet:null,inert:la,inputMode:null,integrity:null,is:null,isMap:la,itemId:null,itemProp:Fs,itemRef:Fs,itemScope:la,itemType:Fs,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:la,low:It,manifest:null,max:null,maxLength:It,media:null,method:null,min:null,minLength:It,multiple:la,muted:la,name:null,nonce:null,noModule:la,noValidate:la,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:la,optimum:It,pattern:null,ping:Fs,placeholder:null,playsInl
1908ine:la,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:la,referrerPolicy:null,rel:Fs,required:la,reversed:la,rows:It,rowSpan:It,sandbox:Fs,scope:null,scoped:la,seamless:la,selected:la,shadowRootClonable:la,shadowRootDelegatesFocus:la,shadowRootMode:null,shape:null,size:It,sizes:null,slot:null,span:It,spellCheck:ci,src:null,srcDoc:null,srcLang:null,srcSet:null,start:It,step:null,style:null,tabIndex:It,target:null,title:null,translate:null,type:null,typeMustMatch:la,useMap:null,value:ci,width:It,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Fs,axis:null,background:null,bgColor:null,border:It,borderColor:null,bottomMargin:It,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:la,declare:la,event:null,face:null,frame:null,frameBorder:null,hSpace:It,leftMargin:It,link:null,longDesc:null,lowSrc:null,marginHeight:It,marginWidth:It,noResize:la,noHref:la,noShade:la,noWrap:la,object:null,profile:null,prompt:null,rev:null,rightMargin:It,rules:null,scheme:null,scrolling:ci,standby:null,summary:null,text:null,topMargin:It,valueType:null,version:null,vAlign:null,vLink:null,vSpace:It,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:la,disableRemotePlayback:la,prefix:null,property:null,results:It,security:null,unselectable:null}}),JNe=_x({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
1908-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:SW,properties:{about:$c,accentHeight:It,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:It,amplitude:It,arabicForm:null,ascent:It,attributeName:null,attributeType:null,azimuth:It,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:It,by:null,calcMode:null,capHeight:It,className:Fs,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:It,diffuseConstant:It,direction:null,display:null,dur:null,divisor:It,dominantBaseline:null,download:la,dx:null,dy:null,edgeMode:null,editable:null,elevation:It,enableBackground:null,end:null,event:null,exponent:It,externalResourcesRequired:null,fill:null,fillOpacity:It,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Zg,g2:Zg,glyphName:Zg,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:It,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:It,horizOriginX:It,horizOriginY:It,id:null,ideographic:It,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:It,k:It,k1:It,k2:It,k3:It,k4:It,kernelMatrix:$c,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:It,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:It,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
vendor: 4,662 bytes, line 1908
1908Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:It,overlineThickness:It,paintOrder:null,panose1:null,path:null,pathLength:It,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Fs,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:It,pointsAtY:It,pointsAtZ:It,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:$c,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:$c,rev:$c,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:$c,requiredFeatures:$c,requiredFonts:$c,requiredFormats:$c,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:It,specularExponent:It,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:It,strikethroughThickness:It,string:null,stroke:null,strokeDashArray:$c,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:It,strokeOpacity:It,strokeWidth:null,style:null,surfaceScale:It,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:$c,tabIndex:It,tableValues:null,target:null,targetX:It,targetY:It,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:$c,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:It,underlineThickness:It,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:It,values:null,vAlphabetic:It,vMathematical:It,vectorEffect:null,vHanging:It,vIdeographic:It,version:null,vertAdvY:It,vertOriginX:It,vertOriginY:It,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:It,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),WNe=/^data[-\w.:]+$/i,sO=/-[a-z]/g,YNe=/[A-Z]/g;function XNe(e,t){const n=Q7(t);let a=t,r=Bl;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&WNe.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(sO,KNe);a="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!sO.test(i)){let o=i.replace(YNe,QNe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}r=cE}return new r(a,t)}function QNe(e){return"-"+e.toLowerCase()}function KNe(e){return e.charAt(1).toUpperCase()}const ZNe=jW([CW,EW,PW,DW,GNe],"html"),RW=jW([CW,EW,PW,DW,JNe],"svg"),rO={}.hasOwnProperty;function lE(e,t){const n=t||{};function a(r,...i){let o=a.invalid;const c=a.handlers;if(r&&rO.call(r,e)){const l=String(r[e]);o=rO.call(c,l)?c[l]:a.unknown}if(o)return o.call(this,r,...i)}return a.handlers=n.handlers||{},a.invalid=n.invalid,a.unknown=n.unknown,a}const e8e={},t8e={}.hasOwnProperty,IW=lE("type",{handlers:{root:a8e,element:c8e,text:i8e,comment:o8e,doctype:r8e}});function n8e(e,t){const a=(t||e8e).space;return IW(e,a==="svg"?RW:ZNe)}function a8e(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=uE(e.children,n,t),Px(e,n),n}function s8e(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=uE(e.children,n,t),Px(e,n),n}function r8e(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Px(e,t),t}function i8e(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Px(e,t),t}function o8e(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Px(e,t),t}function c8e(e,t){const n=t;let a=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(a=RW);const r=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&t8e.call(e.properties,i)){const l=l8e(a,i,e.properties[i]);l&&r.push(l)}}const o=a.space,c={nodeName:e.tagName,tagName:e.tagName,attrs:r,namespaceURI:yd[o],childNodes:[],parentNode:null};return c.childNodes=uE(e.children,c,a),Px(e,c),e.tagName==="template"&&e.content&&(c.content=s8e(e.content,a)),c}function l8e(e,t,n){const a=XNe(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&a.boolean)return;Array.isArray(n)&&(n=a.commaSeparated?j9(n):E9(n));const r={name:a.attribute,value:n===!0?"":String(n)};if(a.space&&a.space!=="html"&&a.space!=="svg"){const i=r.name.indexOf(":");i<0?r.prefix="":(r.name=r.name.slice(i+1),r.prefix=a.attribute.slice(0,i)),r.namespace=yd[a.space]}return r}
vendor: 9,403 bytes, line 1908
1908function uE(e,t,n){let a=-1;const r=[];if(e)for(;++a<e.length;){const i=IW(e[a],n);i.parentNode=t,r.push(i)}return r}function Px(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const MW=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],u8e=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ur="�";var ye;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(ye||(ye={}));const uc={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function LW(e){return e>=55296&&e<=57343}function d8e(e){return e>=56320&&e<=57343}function m8e(e,t){return(e-55296)*1024+9216+t}function OW(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function BW(e){return e>=64976&&e<=65007||u8e.has(e)}var rt;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(rt||(rt={}));const p8e=65536;class h8e{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=p8e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:a,col:r,offset:i}=this,o=r+n,c=i+n;return{code:t,startLine:a,endLine:a,startCol:o,endCol:o,startOffset:c,endOffset:c}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(d8e(n))return this.pos++,this._addGap(),m8e(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,ye.EOF;return this._err(rt.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let a=0;a<t.length;a++)if((this.html.charCodeAt(this.pos+a)|32)!==t.charCodeAt(a))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,ye.EOF;const a=this.html.charCodeAt(n);return a===ye.CARRIAGE_RETURN?ye.LINE_FEED:a}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,ye.EOF;let t=this.html.charCodeAt(this.pos);return t===ye.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,ye.LINE_FEED):t===ye.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,LW(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===ye.LINE_FEED||t===ye.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){OW(t)?this._err(rt.controlCharacterInInputStream):BW(t)&&this._err(rt.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var va;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(va||(va={}));function FW(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const f8e=new Uint16Array('
vendor: 16,129 bytes, line 1908
1908áµ<ÃıÊÒÕ»×ÙµÛÞ¢ßà à©àªà¶¡à¹à¼à¼¦áá¨á¡ááááá¥\0\0\0\0\0\0á«áá¦á°á·á½¾â â°âââ»ââ ¤â¤â´â¹â¿ããºã¹ã¬ã£¾ã¨¨ã©±ã« 㬮à EMabcfglmnoprstu\\bfms�¦³¹ÃÃligè»ÃäPè»&ä¦cuteè»Ãäreve;äÄiyx}rcè»Ãä;är;ìðraveè»Ãäpha;äacr;äd;æ©Ägp¡on;äf;ìð¸plyFunction;æ¡ingè»Ã
ä
Äcs¾Ãr;ìðign;æildeè»Ãämlè»ÃäÐaceforsuåûþÄÄĢħĪÄcrêòkslash;æÅ¶Ã¶Ã¸;æ«§ed;æy;äÆcrtÄ
ÄÄause;æµnoullis;æ¬a;är;ìð
pf;ìð¹eve;äcòÄmpeq;æÜHOacdefhilorsuÅÅÅÆÆÆ¢ÆµÆ·ÆºÇÈɳɸɾcy;ä§PYè»Â©ä©ÆcpyÅŢźute;äÄ;iŧŨætalDifferentialD;æ
leys;æÈaeioÆÆÆÆron;ädilè»Ãärc;änint;æ°ot;äÄdnƧÆilla;ä¸terDot;ä·Ã²Å¿i;ä§rcleÈDMPTÇÇÇÇot;æinus;ælus;æimes;æoÄcsǢǸkwiseContourIntegral;æ²eCurlyÄDQÈÈoubleQuote;æuote;æÈlnpuÈȨÉÉonÄ;eȥȦæ·;æ©´ÆgitȯȶȺruent;æ¡nt;æ¯ourIntegral;æ®ÄfrÉÉ;æoduct;ænterClockwiseContourIntegral;æ³oss;樯cr;ìðpÄ;CÊÊ
æap;æÖDJSZacefiosÊ Ê¬Ê°Ê´Ê¸ËËˡ˦̳ÒÄ;oŹʥtrahd;æ¤cy;äcy;ä
cy;äÆgrsÊ¿ËËger;æ¡r;æ¡hv;櫤ÄayËËron;ä;älÄ;tËËæa;är;ìðÄaf˫̧Äcm˰̢riticalÈADGTÌÌÌÌcute;ä´oÅ´ÌÌ;äbleAcute;ärave;ä ilde;äond;æferentialD;æ
Ѱ̽\0\0\0ÍÍ\0Ð
f;ìð»Æ;DEÍÍÍä¨ot;æqual;æbleÌCDLRUVͣͲÎÏϢϸontourIntegraìȹoɴ͹\0\0ͻ»ÍnArrow;æÄeoÎΤftÆARTÎÎΡrrow;æightArrow;æeÃ¥ËngÄLRΫÏeftÄARγιrrow;æ¸ightArrow;æºightArrow;æ¹ightÄATÏÏrrow;æee;æ¨pÉÏ©\0\0ϯrrow;æownArrow;æerticalBar;æ¥nÌABLRTaÐЪаÑѿͼrrowÆ;BUÐÐТæar;æ¤pArrow;æµreve;äeftËк\0Ñ\0ÑightVector;æ¥eeVector;æ¥ectorÄ;BÑÑæ½ar;æ¥ightÇѧ\0ѱeeVector;æ¥ectorÄ;BѺѻæar;æ¥eeÄ;AÒÒæ¤rrow;æ§ÄctÒÒr;ìðrok;äà NTacdfglmopqstuxÒ½ÓÓÓÓÓ¢Ó§Ó®ÓµÔ¡Ô¯Ô¶ÕÕÕ Õ¥G;ä
Hè»Ãäcuteè»ÃäÆaiyÓÓÓron;ärcè»Ãä;äot;är;ìðraveè»Ãäement;æÄapÓºÓ¾cr;ätyÉÔ\0\0ÔmallSquare;æ»erySmallSquare;æ«ÄgpÔ¦Ôªon;äf;ìð¼silon;äuÄaiÔ¼ÕlÄ;TÕÕæ©µilde;ælibrium;æÄciÕÕr;æ°m;橳a;ämlè»ÃäÄipÕªÕ¯sts;æonentialE;æ
ÊcfiosÖ
ÖÖÖ²×y;ä¤r;ìðlledÉÖ\0\0Ö£mallSquare;æ¼erySmallSquare;æªÍ°Öº\0Ö¿\0\0×f;ìð½All;æriertrf;æ±cÃ²×ØJTabcdfgorst×¨×¬×¯×ºØØØØØØ£Ù¬Ù²cy;äè»>ä¾mmaÄ;d׷׸ä;äreve;äÆeiyØØØdil;ä¢rc;ä;äot;ä r;ìð;æpf;ìð¾eaterÌEFGLSTصÙÙÙÙÙ¦qualÄ;Lؾؿæ¥ess;æullEqual;æ§reater;檢ess;æ·lantEqual;橾ilde;æ³cr;ìð¢;æ«ÐAacfiosuÚ
ÚÚÚÚÚªÚ¾ÛRDcy;äªÄctÚÚek;ä;äirc;ä¤r;ælbertSpace;æÇ°Ú¯\0Ú²f;æizontalLine;æÄctÛÛ
òکrok;ä¦mpÅÛÛownHumðįqual;æÜEJOacdfgmnostuÛºÛ¾ÜÜÜÜÜܡܨÝݸÞÞÞcy;älig;ä²cy;äcuteè»ÃäÄiyÜÜrcè»Ãä;äot;ä°r;æraveè»ÃäÆ;apÜ Ü¯Ü¿ÄcgÜ´Ü·r;äªinaryI;æ
lieóÏÇ´Ý\0Ý¢Ä;eÝÝæ¬ÄgrÝÝral;æ«section;æisibleÄCTݬݲomma;æ£imes;æ¢ÆgptÝ¿ÞÞon;ä®f;ìða;äcr;æilde;ä¨Ç«Þ\0Þcy;älè»ÃäÊcfosuÞ¬Þ·Þ¼ßßÄiyÞ±Þµrc;ä´;är;ìðpf;ìðÇ£ß\0ßr;ìð¥rcy;äkcy;äÎHJacfosߤߨ߽߬߱à à cy;ä¥cy;äppa;äÄeyß¶ß»dil;ä¶;är;ìðpf;ìðcr;ìð¦ÖJTaceflmostà ¥à ©à ¬à¡à¡£à¦³à¦¸à§à§à¨·à©cy;äè»<ä¼Êcmnprà ·à ¼à¡à¡à¡ute;ä¹bda;äg;æªlacetrf;ær;æÆaeyà¡à¡à¡¡ron;ä½dil;ä»;äÄfsࡨ॰tÔACDFRTUVarࡾࢩࢱࣦ࣠ࣼयà¥Î४Änrà¢à¢gleBracket;æ¨rowÆ;BRà¢à¢à¢æar;æ¤ightArrow;æeiling;æoǵࢷ\0à£bleBracket;æ¦nÇà£\0à£eeVector;楡ectorÄ;Bà£à£æar;æ¥loor;æightÄAV࣯ࣵrrow;æector;æ¥Äerà¤à¤eÆ;AVà¤à¤à¤æ£rrow;æ¤ector;æ¥iangleÆ;BEतथऩæ²ar;æ§qual;æ´pÆDTVषà¥à¥ownVector;æ¥eeVector;æ¥ ectorÄ;Bà¥à¥æ¿ar;æ¥ectorÄ;B॥०æ¼ar;æ¥ightáÎsÌEFGLSTॾà¦à¦à¦à¦¢à¦qualGreater;æullEqual;æ¦reater;æ¶ess;檡lantEqual;橽ilde;æ²r;ìðÄ;eঽাæftarrow;æidot;ä¿Ænpwà§à¨à¨gÈLRlrà§à§·à¨à¨eftÄAR০৬rrow;æµightArrow;æ·ightArrow;æ¶eftÄarγà¨ightáοightáÏf;ìðerÄLRਢਬeftArrow;æightArrow;æÆchtਾà©à©Ã²à¡;æ°rok;ä
;æªÐacefiosuà©à©à© ੷੼àª
àªàªp;æ¤
y;äÄdl੥੯iumSpace;ælintrf;æ³r;ìðnusPlus;æpf;ìðcò੶;äÒJacefostuણધàªà«à¬à¬à¶à¶à¶cy;äcute;ä
Æaey઴હાron;ä
dil;ä
;äÆgswà«à«°à¬ativeÆMTVà«à«à«¨ediumSpace;æhiÄcn૦à«Ã«à«eryThiîà«tedÄGL૸à¬reaterGreateòٳessLesóà©Line;är;ìðÈBnptଢନଷ଺reak;æ BreakingSpace;ä f;æÚ;CDEGHLNPRSTVàààªà¼à®¡à¯«à°à±à²à²¦à³àµ¡à¶
櫬Äouàà¤ngruent;æ¢pCap;æoubleVerticalBar;æ¦Ælqxà®à®à®ement;æualÄ;Tà®à®æ ilde;ìâ̸ists;æreaterÎ;EFGLSTஶஷ஽à¯à¯à¯à¯¥æ¯qual;æ±ullEqual;ìâ§Ì¸reater;ìâ«Ì¸ess;æ¹lantEqual;ì⩾̸ilde;æµumpÅ௲௽ownHump;ìâ̸qual;ìâ̸eÄfsà°à°§tTriangleÆ;BEà°à°à°¡æªar;ìâ§Ì¸qual;æ¬sÌ;EGLSTవశ఼à±à±à±æ®qual;æ°reater;æ¸ess;ìâªÌ¸lantEqual;ì⩽̸ilde;æ´estedÄGL౨౹reaterGreater;ì⪢̸essLess;ì⪡̸recedesÆ;ESà²à²à²æqual;ì⪯̸lantEqual;æ ÄeiಫಹverseElement;æghtTriangleÆ;BEà³à³à³æ«ar;ìâ§Ì¸qual;æÄquà³à´uareSuÄbp೨೹setÄ;Eà³°à³³ìâ̸qual;æ¢ersetÄ;Eà´à´ìâ̸qual;æ£Æbcpà´à´¤àµsetÄ;Eà´à´ìââqual;æceedsÈ;ESTà´²à´³à´»àµæqual;ì⪰̸lantEqual;æ¡ilde;ìâ¿Ì¸ersetÄ;Eàµàµìââqual;æildeÈ;EFT൮൯൵ൿæqual;æullEqual;æilde;æerticalBar;æ¤cr;ìð©ildeè»Ãä;äÜEacdfgmoprstuvà¶½à·à·à·à·à· à·§à·¼à¸à¸ ยา฿à¹lig;ä
cuteè»ÃäÄiyà·à·rcè»Ãä;äblac;ä
r;ìðraveè»ÃäÆaei෮ෲ෶cr;ä
ga;ä©cron;äpf;ìðenCurlyÄDQà¸à¸oubleQuote;æuote;æ;æ©Äclวฬr;ìðªashè»ÃäiŬื฼deè»Ãäes;樷mlè»ÃäerÄBPà¹à¹ Äarà¹à¹r;æ¾acÄekà¹à¹;æet;æ´arenthesis;æÒacfhilors๿àºàºàºàºàºàºàº°à»¼rtialD;æy;är;ìði;ä¦;ä usMinus;ä±ÄipຢàºncareplanÃ¥Úf;æÈ;eio຺ູ໠໤檻cedesÈ;ESTà»à»à»à»æºqual;檯lantEqual;æ¼ilde;æ¾me;æ³Ädp໩໮uct;æortionÄ;aȥ໹l;æÄcià¼à¼r;ìð«;ä¨ÈUfosà¼à¼à¼à¼OTè»"ä¢r;ìðpf;æcr;ìð¬ØBEacefhiorsu༾à½à½à½ ཱིྦྷྪà¾áá©á´á¾arr;æ¤Gè»Â®ä®Æcnrà½à½à½ute;ä
g;æ«rÄ;tà½à½æ l;æ¤Æaeyཧཬཱron;ä
dil;ä
;ä Ä;vླྀཹæerseÄEUà¾à¾Älqà¾à¾ement;æuilibrium;æpEquilibrium;楯r»ཹo;ä¡ghtÐACDFTUVaà¿à¿«à¿³á¢á¨ááÏÄnrà¿à¿gleBracket;æ©rowÆ;BLà¿à¿à¿¡æar;æ¥eftArrow;æeiling;æoǵ࿹\0á
bleBracket;æ§nÇá\0áeeVector;æ¥ectorÄ;Bááæar;æ¥loor;æÄerááeÆ;AVáµá¶á¼æ¢rrow;æ¦ector;æ¥iangleÆ;BEáááæ³ar;æ§qual;æµpÆDTVá£á®á¸ownVector;æ¥eeVector;æ¥ectorÄ;Bááæ¾ar;æ¥ectorÄ;Bááæar;æ¥Äpuááf;ændImplies;楰ightarrow;æÄchá¹á¼r;æ;æ±leDelayed;æ§´ÚHOacfhimoqstuá¤á±á·á½ááá
á
á
¡á
§áµá»á¿ÄCcá©á®Hcy;ä©y;ä¨FTcy;ä¬cute;ä
Ê;aeiyáááááæª¼ron;ä
dil;ä
rc;ä
;ä¡r;ìðortÈDLRUáªá´á¾á
ownArrow»ÐeftArrow»à¢ightArrow»à¿pArrow;ægma;ä£allCircle;æpf;ìðɲá
\0\0á
°t;æareÈ;ISUá
ȇ
¼áá¯æ¡ntersection;æuÄbpáásetÄ;Eááæqual;æersetÄ;Eá¨á©æqual;ænion;æcr;ìð®ar;æÈbcmpááááÄ;sááæetÄ;Eááqual;æÄchá á
eedsÈ;ESTáá®á´á¿æ»qual;檰lantEqual;æ½ilde;æ¿Tháà¾;æÆ;esááá£ærsetÄ;Eááæqual;æet»áÖHRSacfhiorsá¾ááááá±á¶ááááORNè»ÃäADE;æ¢ÄHcáácy;äy;ä¦Äbuáá;ä;䤯aeyá¥áªá¯ron;ä
¤dil;ä
¢;ä¢r;ìðÄeiá»áDzá\0áefore;æ´a;äÄcnáákSpace;ìââSpace;ældeÈ;EFTá«á¬á²á¼æ¼qual;æullEqual;æ
ilde;æpf;ìðipleDot;æÄctáár;ìð¯rok;ä
¦à«¡á·ááá¦\0á¬á±\0\0\0\0\0á¸á½á·á
\0á¿áááÄcrá»áuteè»ÃärÄ;oááæcir;æ¥rÇ£á\0áy;äve;ä
¬Äiyáá£rcè»Ãä;ä£blac;ä
°r;ìðraveè»Ãäacr;ä
ªÄdiáá©erÄBPááÄaráár;äacÄekáá;æet;æµarenthesis;æonÄ;Pá°á±ælus;æÄgpá»á¿on;ä
²f;ìðÐADETadpsáá®á¸áϨááá³rrowÆ;BDá
á á¤ar;æ¤ownArrow;æ
ownArrow;æquilibrium;楮eeÄ;Aááæ¥rrow;æ¥ownáϳerÄLRáá¨eftArrow;æightArrow;æiÄ;lá¹áºäon;ä¥ing;ä
®cr;ìð°ilde;ä
¨mlè»ÃäÒDbcdefosvá§á¬á°á³á¾á
áááash;æ«ar;æ««y;äashÄ;lá»á¼æ©;櫦Äeráá
;æÆbtyáááºar;æÄ;iáácalÈBLSTá¡á¥áªá´ar;æ£ine;ä¼eparator;æilde;æThinSpace;ær;ìðpf;ìðcr;ìð±dash;æªÊcefosá§á¬á±á¶á¼irc;ä
´dge;ær;ìðpf;ìðcr;ìð²Èfiosáááár;ìð;äpf;ìðcr;ìð³ÒAIUacfosuá±áµá¹á½ááááá cy;ä¯cy;äcy;ä®cuteè»ÃäÄiyáárc;ä
¶;ä«r;ìðpf;ìðcr;ìð´ml;ä
¸ÐHacdefosáµá¹á¿áááá á¤cy;äcute;ä
¹Äayááron;ä
½;äot;ä
»Ç²á\0áoWidtèà«a;är;æ¨pf;æ¤cr;ìðµà¯¡ááá\0á°á¶á¿\0\0\0\0ááá«áá\0ááá²á¹\0á¾cuteè»Ã¡ä¡reve;äÌ;Ediuyááá¡á£á¨áæ¾;ìâ¾Ì³;æ¿rcè»Ã¢ä¢teè»Â´Ì;ä°ligè»Ã¦ä¦Ä;r²áº;ìðraveè»Ã ä ÄepááÄfpáásym;æµÃ¨áha;ä±ÄapácÄclá¤á§r;äg;樿ɤá°\0\0áÊ;adsváºá»á¿ááæ§nd;æ©;æ©lope;æ©;æ©Î;elmrszááááá¿ááæ ;榤e»ásdÄ;aá¥á¦æ¡Ñ¡á°á²á´á¶á¸áºá¼á¾;榨;榩;榪;榫;榬;æ¦;榮;榯tÄ;vá
áæbÄ;dááæ¾;æ¦Äptááh;æ¢Â»Â¹arr;æ¼Ägpá£á§on;ä
f;ìðÎ;Eaeiopáá»á½áááá;æ©°cir;橯;æd;æs;ä§roxÄ;eááñáingè»Ã¥ä¥Æctyá¡á¦á¨r;ìð¶;äªmpÄ;eáá¯Ã±Êildeè»Ã£ä£mlè»Ã¤ä¤Äciááoninôɲnt;æ¨à Nabcdefiklnoprsuáá±á°á¼ááá¸á½á á¦á ¹á¡á᤽á¥á¥°ot;æ«Äcrá¶ákÈcepsáá
ááong;æpsilon;ä¶rime;æµimÄ;eááæ½q;æÅ¶á¢á¦ee;æ½edÄ;gá¬áæ
e»árkÄ;táá·brk;æ¶Äoyáá;ä±quo;æÊcmprtááá¡á¤á¨ausÄ;eÄÄptyv;榰séánoÃµÄÆahwá¯á±á³;ä²;æ¶een;æ¬r;ìðgÎcostuvwááá³ááááÆaiuáááÃ°Ý rc;æ¯pÂ»á±Ædptá¤á¨áot;æ¨lus;æ¨imes;æ¨É±á¹\0\0á¾cup;æ¨ar;æ
riangleÄduááown;æ½p;æ³plus;æ¨eÃ¥áÃ¥áarow;æ¤Æakoáá ¦á µÄcná²á £kÆlstáºÖ«á ozenge;æ§«riangleÈ;dlrá á á á æ´own;æ¾eft;æight;æ¸k;æ£Æ±á «\0á ³Æ²á ¯\0á ±;æ;æ4;æck;æÄeoá ¾á¡Ä;qá¡á¡ì=â¥uiv;ìâ¡â¥t;æÈptwxá¡á¡á¡§á¡¬f;ìðÄ;táá¡£om»átie;æØDHUVbdhmptuvá¢
á¢á¢ªá¢»á£á£á£¬á£¿á¤
á¤á¤á¤¡ÈLRlrá¢á¢á¢á¢;æ;æ;æ;æÊ;DUduᢡᢢᢤᢦᢨæ;æ¦;æ©;æ¤;æ§ÈLRlrᢳᢵᢷᢹ;æ;æ;æ;æÎ;HLRhlrá£á£á£á£á£á£á£æ;æ¬;æ£;æ ;æ«;æ¢;æox;æ§ÈLRlrᣤᣦᣨᣪ;æ;æ;æ;æÊ;DUduڽ᣷᣹᣻᣽;æ¥;æ¨;æ¬;æ´inus;ælus;æimes;æ ÈLRlrá¤á¤á¤á¤;æ;æ;æ;æÎ;HLRhlrᤰᤱᤳᤵᤷ᤻᤹æ;æª;æ¡;æ;æ¼;æ¤;æÄevÄ£á¥barè»Â¦ä¦Èceioá¥á¥á¥á¥ r;ìð·mi;æmÄ;eáálÆ;bhᥨᥩᥫä;æ§
sub;æÅ¬á¥´á¥¾lÄ;e᥹᥺æ¢t»᥺pÆ;Eeįá¦
á¦;檮Ä;qÛÛೡᦧ\0᧨á¨á¨á¨²\0ᨷá©\0\0᪴\0\0á«\0\0ᬡᬮáá\0᯽\0á°Æcprá¦á¦²á§ute;äÌ;abcdsᦿá§á§á§á§á§æ©nd;æ©rcup;æ©Äauá§á§p;æ©p;æ©ot;æ©;ìâ©ï¸Äeo᧢᧥t;æÃ®ÚÈaeiuá§°á§»á¨á¨
ǰ᧵\0᧸s;æ©on;ädilè»Ã§ä§rc;äpsÄ;sá¨á¨æ©m;æ©ot;äÆdmná¨á¨ ᨦilè»Â¸Æptyv;榲tè¢;eá¨á¨®ä¢räƲr;ìð Æceiᨽá©á©y;äckÄ;má©á©æark»á©;ärÎ;Ecefmsá©á© ᩢᩫ᪤᪪᪮æ;æ§Æ;elᩩᩪá©äq;æeɡᩴ\0\0áªrrowÄlr᩼áªeft;æºight;æ»ÊRSacdáªáªáªáªáªÂ»à½;æst;æirc;æash;ænint;æ¨id;櫯cir;æ§ubsÄ;u᪻᪼æ£it»᪼ˬá«á«á«º\0á¬onÄ;eá«á«äºÄ;qÃÃÉá«\0\0á«¢aÄ;tá«á«ä¬;äÆ;fl᫨᫩᫫æÃ®á
eÄmx᫱᫶ent»᫩eóÉǧ᫾\0á¬Ä;dá»á¬ot;æ©nÃ´ÉÆfryá¬á¬á¬;ìðoäÉè©;sÅá¬r;æÄaoᬥᬩrr;æµss;æÄcuᬲᬷr;ìð¸ÄbpᬼáÄ;eááæ«;æ«Ä;eááæ«;æ«dot;æ¯Îdelprvwá á¬á·á®á®¬á¯á¯¹arrÄlrá¨áª;椸;椵ɰá²\0\0áµr;æc;æarrÄ;pá¿á®æ¶;椽Ì;bcdosá®á®á®á®¡á®¥á®¨æªrcap;æ©Äauá®á®p;æ©p;æ©ot;ær;æ©
;ìâªï¸Èalrv᮵ᮿá¯á¯£rrÄ;mᮼᮽæ·;椼yÆevwá¯á¯á¯qɰá¯\0\0á¯reãá³uãáµee;æedge;æenè»Â¤ä¤earrowÄlrᯮ᯳eft»á®ight»ᮽeäá¯Äciá°á°oninôǷnt;æ±lcty;æà¦AHabcdefhijlorstuwz᰸᰻᰿á±á±©á±µá²á²á²¬á²·á³»á³¿á´áµ»á¶á¶«á¶»á·á·ròÎar;楥Èglrsá±á±á±á±ger;æ eth;æ¸Ã²á³hÄ;vá±á±æÂ»à¤Å«á±¡á±§arow;æ¤aãÌÄayᱮᱳron;ä;ä´Æ;ao̲ᱼá²ÄgrÊ¿á²r;ætseq;æ©·Æglmá²á²á²è»Â°ä°ta;ä´ptyv;榱ÄirᲣᲨsht;楿;ìð¡arÄlrᲳᲵ»à£Â»áÊaegsvá³Í¸á³á³á³ mÆ;oșá³á³ndÄ;șá³uit;æ¦amma;äin;æ²Æ;io᳧᳨᳸ä·deè÷;oá³§á³°ntimes;ænø᳷cy;äcɯá´\0\0á´rn;æop;æÊlptuwá´á´á´¢áµáµlar;ä¤f;ìðÊ;empsÌá´á´·á´½áµqÄ;dÍá´³ot;æinus;æ¸lus;æquare;æ¡blebarwedgåúnÆadhá®áµáµ§ownarrowóá²arpoonÄlrᵲᵶefôᲴighôᲶŢᵿá¶
karo÷à½É¯á¶\0\0á¶rn;æop;æÆcotá¶á¶£á¶¦Äryá¶á¶¡;ìð¹;äl;æ§¶rok;äÄdrá¶°á¶´ot;æ±iÄ;fá¶ºá æ¿Äahá·á·ròЩaòྦangle;榦Äciá·á·y;ägrarr;æ¿à¤Dacdefglmnopqrstuxá¸á¸á¸á¸¸Õ¸á¸¼á¹á¹¡á¹¾áº¥áº¯áº½á»¡á¼ªá¼·á½á½á½ÄDoá¸á´´oôá²Äcsá¸á¸uteè»Ã©ä©ter;æ©®ÈaioyḢḧḱḶron;ärÄ;cá¸á¸®æè»Ãªäªlon;æ;äot;äÄDrá¹á¹
ot;æ;ìð¢Æ;rsá¹á¹á¹æªaveè»Ã¨ä¨Ä;dá¹á¹æªot;æªÈ;ilsṪṫṲṴæªnters;æ§;æÄ;dṹṺæªot;æªÆapsáº
áºáºcr;ätyÆ;sváºáºáºæ
et»áºpÄ1;áºáº¤Ä³áº¡áº£;æ;æ
æÄgsẪẬ;ä
p;æÄgpẴẸon;äf;ìðÆalsá»á»á»rÄ;sá»á»æl;æ§£us;橱iÆ;lvá»á»á»äµon»á»;äµÈcsuvỪỳá¼á¼£Äioữḱrc»Ḯɩỹ\0\0á»»ÃÕantÄglá¼á¼tr»á¹ess»ṺÆaeiá¼á¼á¼ls;ä½st;ævÄ;DȵἠD;橸parsl;æ§¥ÄDaἯἳot;ærr;楱Æcdiá¼¾á½á»¸r;æ¯oôÍÄahá½á½;ä·è»Ã°ä°Ämrá½á½lè»Ã«ä«o;æ¬Æcipὡὤὧl;ä¡sôծÄeoὬὴctatioîÕnentialåչৡá¾\0á¾\0ᾡᾧ\0\0á¿á¿\0á¿\0ῦῪâ\0ââllingdotseñá¹y;ämale;æÆilrá¾á¾³á¿lig;èï¬É©á¾¹\0\0á¾½g;èï¬ig;èï¬;ìð£lig;èï¬lig;ìfjÆaltá¿á¿á¿¡t;æig;èï¬ns;æ±of;äǰ΅\0ῳf;ìðÄakÖ¿á¿·Ä;vῼ´æ;æ«artint;æ¨ÄaoââÄcsââαââ°â¸â
â\0âβâ¢â¥â§âªâ¬\0â®è»Â½ä½;æ
è»Â¼ä¼;æ
;æ
;æ
Ƴâ´\0â¶;æ
;æ
Ê´â¾â\0\0âè»Â¾ä¾;æ
;æ
5;æ
ƶâ\0â;æ
;æ
8;æ
l;æwn;æ¢cr;ìð»à¢Eabcdefgijlnorstvââââ¥â°â´â°âµâºâ¿âââ¸Ìâ¾â
âÄ;lÙâ;æªÆcmpâââute;äµmaÄ;dâá³ä³;æªreve;äÄiyâªâ®rc;ä;ä³ot;ä¡È;lqsؾÙâ½âÆ;qsؾÙâlanô٥È;cdlÙ¥âââ¥c;檩otÄ;oââæªÄ;lâ¢â£æª;æªÄ;eâªâìâï¸s;æªr;ìð¤Ä;gÙ³Ømel;æ·cy;äÈ;EajÙâââ;æª;檥;檤ÈEaesâââ©â´;æ©pÄ;pâ£â¤æªrox»â¤Ä;qâ®â¯æªÄ;qâ®âim;æ§pf;ìðÄciâ
â
r;æmÆ;elÙ«â
â
;æª;æªè>;cdlqr×®â
â
ªâ
®â
³â
¹Äciâ
¥â
§;檧r;橺ot;æPar;æ¦uest;橼Êadelsââ
ªâÙâǰâ\0âproøâr;楸qÄlqØ¿âlesóâiÃÙ«Äenâ£ârtneqq;ìâ©ï¸Ã
âªÔAabcefkosyâââ±âµâºâââ¯â¨â½ròΠÈilmrâââârsðáf»â¤ilôکÄdrâ â¤cy;äÆ;cwࣴâ«â¯ir;æ¥;æar;æirc;䥯alrââârtsÄ;uââæ¥it»âlip;æ¦con;æ¹r;ìð¥sÄewâ£â©arow;椥arow;椦Êamoprâºâ¾âââ£rr;æ¿tht;æ»kÄlrââeftarrow;æ©ightarrow;æªf;ìðbar;æÆcltâ¯â´â¸r;ìð½asèâ´rok;ä§Äbpââull;æhen»á±à«¡â£\0âª\0â¸â
â\0ââ³\0\0â¸â¢â§â¢â¿\0ââªâ´cuteè»ÃäÆ;iyݱâ°âµrcè»Ã®ä®;ä¸Äcxâ¼â¿y;äµclè»Â¡ä¡ÄfrÎâ;ìð¦raveè»Ã¬ä¬È;inoܾââ©â®Äinâ¢â¦nt;æ¨t;æfin;æ§ta;æ©lig;䳯aopâ¾ââÆcgtâ
ââr;䫯elpÜââinÃ¥ÞarÃ´Ü h;ä±f;æ·ed;äµÊ;cfotÓ´â¬â±â½âare;æ
inÄ;tâ¸â¹æie;æ§doôâÊ;celpÝââââ¡al;æºÄgrââeróá£Ã£âarhk;æ¨rod;樼Ècgptâ¯â²â¶â»y;äon;ä¯f;ìða;ä¹uestè»Â¿ä¿Äciââr;ìð¾nÊ;EdsvÓ´âââ¡Ó³;æ¹ot;æµÄ;vâ¦â§æ´;æ³Ä;iÝ·â®lde;ä©Ç«â¸\0â¼cy;älè»Ã¯ä¯Ìcfmosuââââ¡â§âµÄiyâârc;äµ;ä¹r;ìð§ath;ä·pf;ìðÇ£â¬\0â±r;ìð¿rcy;äkcy;äÐacfghjosâââ¢â§ââ±âµâ»ppaÄ;vââäº;ä°Äeyââ dil;ä·;äºr;ìð¨reen;ä¸cy;ä
cy;äpf;ìðcr;ìðà®ABEHabcdefghjlmnoprstuvâ°ââââââ½âââââ¥â¹â½ââ²âââ¨âââ â Æartâ·âºâ¼ròà§Ã²Îail;æ¤arr;æ¤Ä;gà¦â;æªar;楢ॣâ¥\0âª\0â±\0\0\0\0\0âµâº\0âââ\0â¹ute;äºmptyv;榴raîà¡bda;ä»gÆ;dlà¢ââ;æ¦Ã¥à¢;æª
uoè»Â«ä«rÐ;bfhlpstà¢ââ¦â©â«â®â±âµÄ;fà¢â£s;æ¤s;æ¤Ã«âp;æ«l;椹im;楳l;æ¢Æ;aeâ¿ââæª«il;æ¤Ä;sââæª;ìâªï¸Æabrââârr;æ¤rk;æ²Äakâ¢â¬cÄekâ¨âª;ä»;äÄesâ±â³;æ¦lÄduâ¹â»;æ¦;æ¦Èaeuyââââron;ä¾Ädiââil;ä¼Ã¬à¢°Ã¢â©;
vendor: 4,294 bytes, line 1908
1908ä»Ècqrsâ£â¦ââ½a;椶uoÄ;rà¸áÄduâ²â·har;楧shar;æ¥h;æ²Ê;fgqsââà¦â³â¿æ¤tÊahlrtââ¤â·ââ¨rrowÄ;tà¢â¡aéâ¶arpoonÄduâ¯â´own»Ñp»०eftarrows;æightÆahsââârrowÄ;sࣴࢧarpoonóà¾quigarro÷â°hreetimes;æÆ;qsâà¦âºlanôবÊ;cdgsবââââ¨c;檨otÄ;oââæ©¿Ä;rââæª;æªÄ;eâ¢â¥ìâï¸s;æªÊadegsâ³â¹â½ââpproøâot;æqÄgqââ
ôà¦gtòâôà¦iÃলÆilrâ࣡âsht;楼;ìð©Ä;Eà¦â£;æªÅ¡â©â¶rÄduâ²â®Ä;l॥â³;楪lk;æcy;äÊ;achtà©ââââròâorneòá´ard;楫ri;æºÄioââ¤dot;ä
ustÄ;aâ¬âæ°che»âÈEaesâ»â½ââ;æ¨pÄ;pââæªrox»âÄ;qââæªÄ;qââ»im;æ¦Ðabnoptwzâ©â´â·ââ¯âââÄnrâ®â±g;æ¬r;æ½rëà£gÆlmrâ¿ââeftÄar০âightá৲apsto;æ¼ightá৽parrowÄlrâ¥â©efôâight;æ¬Æaflâ¶â¹â½r;æ¦
;ìðus;æ¨imes;樴šââst;æÃ¡áÆ;efââá ænge»âarÄ;lâ¤â¥ä¨t;æ¦Êachmtâ³â¶â¼â
âròࢨorneòá¶arÄ;dà¾â;æ¥;æri;æ¿Ìachiqtââà©â¢â®â»quo;æ¹r;ìðmÆ;egলâªâ¬;æª;æªÄbuâªâ³oÄ;rà¸â¹;ærok;ä
è<;cdhilqrà «ââ¹ââ â¥âªâ°Äciââ;檦r;橹reÃ¥â²mes;æarr;楶uest;æ©»ÄPiâµâ¹ar;æ¦Æ;efâ à¤á ærÄduâ â shar;æ¥har;楦Äenâ â ¡rtneqq;ìâ¨ï¸Ã
â ÜDacdefhilnopsuâ¡â¡
â¢â¢â¢â¢ ⢥⢨â£â£¢â£¤àªâ£³â¤Dot;æºÈclprâ¡â¡â¡£â¡½rè»Â¯ä¯Äetâ¡â¡;æÄ;eâ¡â¡æ se»â¡Ä;sá»â¡¨toÈ;dluá»â¡³â¡·â¡»owîÒefôà¤Ã°áker;æ®Äoyâ¢â¢mma;権;ä¼ash;æasuredangle»á¦r;ìðªo;æ§Æcdn⢯⢴â£roè»ÂµäµÈ;acdá¤â¢½â£â£sôá§ir;æ«°otè»Â·ÆµusÆ;bdâ£á¤â£æÄ;uá´¼â£;横ţâ£â£¡p;æ«Ã²âðàªÄdp⣩⣮els;æ§f;ìðÄct⣸⣽r;ìðpos»áÆ;lmâ¤â¤â¤ä¼timap;æ¸à°GLRVabcdefghijlmoprstuvwâ¥â¥â¥¾â¦â¦â§â§©â¨â¨â©â©âªâªâª¤âª¨â¬â¬ââ¿â®®â°´â±§â±¼â³©Ägtâ¥â¥;ìâ̸Ä;vâ¥à¯ìâ«âÆeltâ¥â¥²â¥¶ftÄar⥡⥧rrow;æightarrow;æ;ìâ̸Ä;v⥻à±ìâªâightarrow;æÄDdâ¦â¦ash;æ¯ash;æ®Êbcnpt⦣⦧⦬⦱â§la»Ëute;ä
g;ìâ âÊ;Eiopà¶â¦¼â§â§
â§;ì⩰̸d;ìâ̸s;ä
roøà¶urÄ;aâ§â§æ®lÄ;sâ§à¬¸Ç³â§\0â§£pè»Â ଷmpÄ;e௹à°Êaeouyâ§´â§¾â¨â¨â¨Ç°â§¹\0â§»;æ©on;ä
dil;ä
ngÄ;dൾâ¨ot;ìâ©Ì¸p;æ©;ä½ash;æÎ;Aadqsxà®â¨©â¨â¨»â©â©
â©rr;ærÄhr⨳⨶k;椤Ä;oá²á°ot;ìâ̸uiöà£Äeiâ©â©ar;椨Ãà®istÄ;sà® à®r;ìð«ÈEestà¯
⩦⩹⩼Æ;qs஼â©à¯¡Æ;qs஼à¯
â©´lanô௢iÃ௪Ä;rà®¶âªÂ»à®·ÆAapâªâªâªrò⥱rr;æ®ar;櫲Æ;svà¾âªà¾Ä;d⪡⪢æ¼;æºcy;äÎAEadest⪷⪺⪾â«â«
⫶⫹rò⥦;ìâ¦Ì¸rr;ær;æ¥È;fqsà°»â«â«£â«¯tÄarâ«â«rro÷â«ightarroÃ·âªÆ;qs఻⪺⫪lanôà±Ä;sà±â«´Â»à°¶iÃà±Ä;rవ⫾iÄ;eà°à°¥iäà¶Äptâ¬â¬f;ìðè¬;inâ¬â¬â¬¶ä¬nÈ;Edvà®â¬¤â¬¨â¬®;ìâ¹Ì¸ot;ìâµÌ¸Ç¡à®â¬³â¬µ;æ·;æ¶iÄ;vಸ⬼ǡಸââ;æ¾;æ½Æaorââ£â©rÈ;astà»âââlleìà»l;ì⫽â¥;ìâ̸lint;æ¨Æ;ceà²â°â³uåಥÄ;cà²â¸Ä;eà²â½Ã±à²ÈAaitâ®â®â®â®§ròâ¦rrÆ;cwâ®â®â®æ;ì⤳̸;ìâ̸ghtarrow»â®riÄ;eà³à³Îchimpqu⮽â¯â¯â¬à¸â¯¤â¯¯È;cerà´²â¯à´·â¯uÃ¥àµ
;ìðortÉâ¬
\0\0â¯aráâmÄ;e൮â¯Ä;q൴൳suÄbp⯫â¯Ã¥à³¸Ã¥à´Æbcp⯶â°â°È;Ees⯿â°à´¢â°æ;ìâ«
̸etÄ;eà´â°qÄ;qà´£â°cÄ;eà´²â°Ã±à´¸È;EesⰢⰣàµâ°§æ
;ìâ«Ì¸etÄ;eàµâ°®qÄ;qൠⰣÈgilrⰽⰿâ±
â±Ã¬à¯ldeè»Ã±ä±Ã§à±iangleÄlrâ±â±eftÄ;eà°â±Ã±à°¦ightÄ;eà³â±¥Ã±à³Ä;mⱬâ±ä½Æ;esⱴⱵⱹä£ro;æp;æÒDHadgilrsâ²â²â²â²â²£â²°â²¶â³â³£ash;æarr;æ¤p;ìââash;æ¬ÄetⲨⲬ;ìâ¥â;ì>ânfin;æ§ÆAetâ²½â³â³
rr;æ¤;ìâ¤âÄ;râ³â³ì<âie;ìâ´âÄAtâ³â³rr;æ¤rie;ìâµâim;ìâ¼âÆAanâ³°â³´â´rr;ærÄhr⳺⳽k;椣Ä;oá§á¥ear;椧ááª\0\0\0\0\0\0\0\0\0\0\0\0\0â´\0â´¸âµâµ ⵥ⵲â¶á¬\0\0â¶â¶«\0â·â·\0â·â¸â¸«â¸¾â¹Äcsâ´±áªuteè»Ã³ä³Äiyâ´¼âµ
rÄ;cáªâµè»Ã´ä´;ä¾Êabios᪠âµâµÇâµlac;ä
v;樸old;榼lig;ä
Äcr⵩âµir;榿;ìð¬Í¯âµ¹\0\0âµ¼\0â¶n;äaveè»Ã²ä²;æ§Äbmâ¶à·´ar;榵Èacitâ¶â¶â¶¥â¶¨ròáªÄirâ¶â¶ r;榾oss;榻nÃ¥à¹;æ§Æaeiⶱⶵⶹcr;ä
ga;äÆcdnâ·â·
Çron;ä¿;榶pf;ìð Æaelâ·â·Çr;榷rp;榹Î;adiosvⷪⷫⷮâ¸â¸â¸â¸æ¨ròáªÈ;efmâ··â·¸â¸â¸
æ©rÄ;oⷾⷿæ´f»ⷿè»Âªäªè»Âºäºgof;æ¶r;æ©lope;æ©;æ©Æcloâ¸â¸¡â¸§Ã²â¸ashè»Ã¸ä¸l;æiŬⸯ⸴deè»ÃµäµesÄ;aÇ⸺s;樶mlè»Ã¶ä¶bar;æ½à«¡â¹\0â¹½\0âºâº\0⺢⺹\0\0â»àº\0â¼\0\0⼫⾼\0â¿rÈ;
vendor: 6,210 bytes, line 1908
1908astÐâ¹§â¹²àº
è¶;lâ¹â¹®ä¶leìÐɩ⹸\0\0â¹»m;櫳;櫽y;ä¿rÊcimptâºâºâºá¡¥âºnt;ä¥od;ä®il;æ°enk;æ±r;ìðÆimo⺨⺰⺴Ä;vâºâº®ä;ämaô੶ne;æÆ;tv⺿â»â»ächfork»´;äÄauâ»â»nÄckâ»â»kÄ;hâ´â»;æÃ¶â´sÒ;abcdemst⻳⻴á¤â»¹â»½â¼â¼â¼â¼ä«cir;樣ir;樢Äouáµâ¼;樥;橲nè»Â±àºim;樦wo;樧Æipuâ¼â¼ â¼¥ntint;æ¨f;ìð¡ndè»Â£ä£Ô;Eaceinosuà»â¼¿â½â½â½â¾â¾â¾â½¾â¾¶;檳p;檷uÃ¥à»Ä;cà»â½Ì;acensà»â½â½â½¦â½¨â½¾pproøâ½urlyeñà»Ã±à»Æaes⽯⽶⽺pprox;檹qq;檵im;æ¨iÃà»meÄ;sâ¾àº®æ²ÆEas⽸â¾â½ºÃ°â½µÆdfp໬â¾â¾¯Æals⾠⾥⾪lar;æ®ine;æurf;æÄ;t໻⾴ï໻rel;æ°Äciâ¿â¿
r;ìð
;äncsp;æÌfiopsuâ¿â¢â¿â¿¥â¿«â¿±r;ìð®pf;ìð¢rime;æcr;ìðÆaeo⿸ããtÄei⿾ã
rnionóڰnt;æ¨stÄ;eããä¿Ã±á¼Ã´à¼àªABHabcdefhilmnoprstuxããããã ãã«ã
ã
¢ã
²ãããã¤ã©ãã®ã²ãã°ã·Æartãããròá³Ã²Ïail;æ¤aròᱥar;楤Îcdenqrtã¨ãµã¸ã¿ãããÄeuãã±;ìâ½Ì±te;ä
iãá
®mptyv;榳gÈ;delà¿ããã;æ¦;榥åà¿uoè»Â»ä»rÖ;abcfhlpstwà¿ã¬ã¯ã·ã¹ã¼ã¾ããããp;極Ä;fà¿ ã´s;æ¤ ;椳s;æ¤Ã«âðâ®l;æ¥
im;楴l;æ£;æÄaiããil;æ¤oÄ;nããæ¶alÃ³à¼Æabrã§ãªã®ròá¥rk;æ³Äakã³ã½cÄekã¹ã»;ä½;äÄesãã;æ¦lÄduãã;æ¦;æ¦Èaeuyããã§ã©ron;ä
Ädiã¡ã¥il;ä
ì࿲âãº;äÈclqsã´ã·ã½ã
a;椷dhar;楩uoÄ;rÈÈh;æ³Æacgã
ã
à½lÈ;ipsླྀã
ã
ánÃ¥á»arôྩt;æÆilrã
©á£ã
®sht;楽;ìð¯Äaoã
·ãrÄduã
½ã
¿Â»Ñ»Ä;láã;楬Ä;vããä;䱯gnsãã¹ã¼htÌahlrstã¤ã°ããã¤ã®rrowÄ;tà¿ãaéãarpoonÄduã»ã¿owîã
¾p»áeftÄahããrrowó࿪arpoonóÕightarrows;æquigarro÷ãhreetimes;æg;äingdotseñἲÆahmãããrò࿪aòÕ;æoustÄ;aããæ±che»ãmid;æ«®Èabptã²ã½ããÄnrã·ãºg;ær;æ¾rëáÆaflãããr;æ¦;ìð£us;樮imes;樵Äapãã§rÄ;gã£ã¤ä©t;æ¦olint;æ¨aròã£Èachqã»ãá¼ã
quo;æºr;ìðÄbuã»ãoÄ;rÈÈÆhirããã reÃ¥ã¸mes;æiÈ;eflãªáá ¡ã«æ¹tri;æ§luhar;楨;æàµ¡ãããã¬ã¸ã±\0ãºã¤\0\0ã¬ã°\0ã¨ãããã±ãã±\0ã\0\0ã³cute;ä
quïâºÔ;Eaceinpsyáã³ãµã¿ããããã¦ã©;檴ǰãº\0ã¼;檸on;ä
¡uÃ¥á¾Ä;dá³ãil;ä
rc;ä
ÆEasããã;檶p;檺im;æ©olint;æ¨iÃá;äotÆ;beã´áµãµæ
;橦ÎAacmstxãããããã£ãrr;ærÄhrããëâ¨Ä;oਸ਼਴tè»Â§ä§i;ä»war;椩mÄinã©Ã°nuóñt;æ¶rÄ;oã¶âìð°Èacoyãããã rp;æ¯Ähyããcy;ä;ärtÉã\0\0ãiäá¤araì⹯è»ÂäÄgmã¨ã´maÆ;fvã±ã²ã²ä;äÐ;deglnprá«ã
ããããã¡ã¦ot;橪Ä;qá±á°Ä;Eããæª;æª Ä;Eããæª;æªe;ælus;樤arr;楲aròá½Èaeitã¸ãããÄlsã½ãlsetméãªhp;樳parsl;槤Ädlá£ãe;æ£Ä;eããæªªÄ;sã¢ã£æª¬;ìâª¬ï¸Æflpã®ã³ãtcy;äÄ;bã¸ã¹ä¯Ä;aã¾ã¿æ§r;æ¿f;ìð¤aÄdrãÐesÄ;uããæ it»ãÆcsuã ã¹ãÄauã¥ã¯pÄ;sáã«;ìâï¸pÄ;sá´ãµ;ìâï¸uÄbpã¿ãÆ;esááãetÄ;eáãñáÆ;esá¨áãetÄ;eá¨ãÃ±á®Æ;afá
»ã¦Ö°rÅ¥ã«Ö±Â»á
¼aròá
Ècemtã¹ã¾ãã
r;ìðtmîñiìãaræá¾ÄarããrÄ;fãá¿æÄanããightÄepã£ãªpsiloîỠhé⺯s»â¡Êbcmnpã»ãáããÒ;Edemnprsãããããã£ã¬ã±ã¶æ;æ«
ot;檽Ä;dáãot;æ«ult;æ«ÄEeã¨ãª;æ«;ælus;檿arr;楹Æeiuã½ããtÆ;enãã
ãqÄ;qáãeqÄ;qã«ã¨m;æ«Äbpãã;æ«;æ«cÌ;acensáã¬ã²ã¹ã»ã¦pproøãºurlyeñá¾Ã±á³Æaesãããpproøãqñãg;æªÚ123;Edehlmnpsã©ã¬ã¯áã²ã´ãããããã¨ãè»Â¹ä¹è»Â²ä²è»Â³ä³;æ«Äosã¹ã¼t;檾ub;æ«Ä;dá¢ã
ot;æ«sÄouããl;æb;æ«arr;楻ult;æ«ÄEeã¤ã¦;æ«;ælus;æ«Æeiuã´ããtÆ;enáã¼ãqÄ;qá¢ã²eqÄ;qã§ã¤m;æ«Äbpãã;æ«;æ«ÆAanãã ãrr;ærÄhrã¦ã¨Ã«â®Ä;oਫ਩war;椪ligè»Ãä௡ããã áã³ã¹\0ã¾ã\0\0\0\0\0ãã\0ãã¬\0\0\0ãɲã\0\0ãget;æ;ärÃ«à¹Æaeyã¦ã«ã°ron;ä
¥dil;ä
£;älrec;ær;ìð±Èeikoãããµã¼Ç²ã\0ãeÄ4fááaÆ;svãããä¸ym;äÄcnã¢ã²kÄasã¨ã®pproøáim»á¬sðáÄasãºã®Ã°árnè»Ã¾ä¾Ç¬Ìãâ§esèÃ;bdãããäÄ;aá¤ãr;樱;樰Æepsã¡ã£ãáâ©È;bcfÒã¬ã°ã´ot;æ¶ir;櫱Ä;oã¹ã¼ìð¥rk;æ«Ã¡ã¢rime;æ´Æaipããã¤dÃ¥áÎadempstã¡ããããããngleÊ;dlqrã°ã±ã¶ããæµown»ᶻeftÄ;eâ ã¾Ã±à¤®;æightÄ;eãªãñáot;æ¬inus;樺lus;樹b;æ§ime;樻ezium;æ¢Æchtã²ã½ãÄryã·ã»;ìð;äcy;ärok;ä
§Äioããxôá·headÄlrãã eftarro÷à¡ightarrow»à½à¤AHabcdfghlmoprstuwãããã¤ã°ã¼ã ã 㠣㠴ã¡ã¡ã¡«ã¢©ã£ã£ã£ªã£¶ròÏar;楣Äcrãã¢uteè»ÃºäºÃ²á
rÇ£ãª\0ãy;äve;ä
Äiyãµãºrcè»Ã»ä»;äÆabhã ã ã ròálac;ä
±aòáÄirã ã sht;楾;ìð²raveè»Ã¹ä¹Å¡ã §ã ±rÄlr㠬㠮»à¥Â»álk;æÄctã ¹ã¡É¯ã ¿\0\0ã¡rnÄ;eã¡
ã¡ær»ã¡op;æri;æ¸Äalã¡ã¡cr;ä
«è»Â¨ÍÄgp㡢㡦on;ä
³f;ìð¦Ìadhlsuá
㡸㡽á²ã¢ã¢ ownáá³arpoonÄlrã¢ã¢efôã ighô㠯iÆ;hlã¢ã¢ã¢ä
»áºon»ã¢parrows;æÆcit㢰ã£ã£É¯ã¢¶\0\0ã£rnÄ;e㢼㢽ær»㢽op;æng;ä
¯ri;æ¹cr;ìðÆdirã£ã£ã£¢ot;æ°lde;ä
©iÄ;fã°ã£¨Â»á Äam㣯㣲rò㢨lè»Ã¼ä¼angle;榧ÞABDacdeflnoprszã¤ã¤ã¤©ã¤ã¦µã¦¸ã¦½ã§ã§¤ã§¨ã§³ã§¹ã§½ã¨ã¨ ròϷarÄ;v㤦㤧櫨;æ«©asèϡÄnr㤲㤷grt;æ¦Îeknprstã£ã¥ã¥ã¥ã¥ã¥¤ã¦appáâothinÃ§áºÆhirã«â»ã¥opô⾵Ä;há·ã¥¢Ã¯ãÄiu㥩ã¥gmáã³Äbp㥲ã¦setneqÄ;q㥽ã¦ìâï¸;ìâ«ï¸setneqÄ;qã¦ã¦ìâï¸;ìâ«ï¸Ährã¦ã¦etáãiangleÄlr㦪㦯eft»थight»áy;ä²ashÂ»á¶Æelrã§ã§ã§Æ;beâ·ªã§ã§ar;æ»q;ælip;æ®Äbtã§á¨aòá©r;ìð³tré㦮suÄbp㧯㧱»à´Â»àµpf;ìð§roð໻tré㦴Äcuã¨ã¨r;ìðÄbpã¨ã¨nÄEeã¦ã¨Â»ã¥¾nÄEeã¦ã¨Â»ã¦igzag;æ¦Îcefoprs㨶㨻ã©ã©ã©ã©¡ã©ªirc;ä
µÄdiã©ã©Äbgã©
ã©ar;æ©eÄ;qáºã©;æerp;ær;ìð´pf;ìð¨Ä;eá¹ã©¦atèá¹cr;ìðà«£áãª\0ãª\0ãªãª\0\0ãªãª¨ãª«ãª¯\0\0ã«ã«\0ã«áátréár;ìðµÄAaãªãªròÏrò৶;ä¾ÄAa㪡㪤ròθrò৫aðâis;æ»Ædptá¤ãªµãª¾Äfl㪺á©;ìð©imÃ¥á²ÄAaã«ã«ròÏròà¨Äcqã«á¸r;ìðÄptáã«réáÐacefiosu㫰㫽ã¬ã¬ã¬ã¬ã¬ã¬¡cÄuyã«¶ã«»teè»Ã½ä½;äÄiyã¬ã¬rc;ä
·;änè»Â¥ä¥r;ìð¶cy;äpf;ìðªcr;ìðÄcm㬦㬩y;älè»Ã¿ä¿Ôacdefhioswããããã¤ã©ãã´ãºã®cute;ä
ºÄayããron;ä
¾;ä·ot;ä
¼Äetãã¡træáa;ä¶r;ìð·cy;ä¶grarr;æpf;ìð«cr;ìðÄjnã®
ã®;æj;æ
1908'.split("").map(e=>e.charCodeAt(0))),g8e=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function x8e(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=g8e.get(e))!==null&&t!==void 0?t:e}var $i;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})($i||($i={}));const b8e=32;var Zp;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Zp||(Zp={}));function Z7(e){return e>=$i.ZERO&&e<=$i.NINE}function v8e(e){return e>=$i.UPPER_A&&e<=$i.UPPER_F||e>=$i.LOWER_A&&e<=$i.LOWER_F}function y8e(e){return e>=$i.UPPER_A&&e<=$i.UPPER_Z||e>=$i.LOWER_A&&e<=$i.LOWER_Z||Z7(e)}function w8e(e){return e===$i.EQUALS||y8e(e)}var Fi;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Fi||(Fi={}));var Mm;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Mm||(Mm={}));class T8e{constructor(t,n,a){this.decodeTree=t,this.emitCodePoint=n,this.errors=a,this.state=Fi.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Mm.Strict}startEntity(t){this.decodeMode=t,this.state=Fi.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Fi.EntityStart:return t.charCodeAt(n)===$i.NUM?(this.state=Fi.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Fi.NamedEntity,this.stateNamedEntity(t,n));case Fi.NumericStart:return this.stateNumericStart(t,n);case Fi.NumericDecimal:return this.stateNumericDecimal(t,n);case Fi.NumericHex:return this.stateNumericHex(t,n);case Fi.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|b8e)===$i.LOWER_X?(this.state=Fi.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Fi.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,a,r){if(n!==a){const i=a-n;this.result=this.result*Math.pow(r,i)+Number.parseInt(t.substr(n,i),r),this.consumed+=i}}stateNumericHex(t,n){const a=n;for(;n<t.length;){const r=t.charCodeAt(n);if(Z7(r)||v8e(r))n+=1;else return this.addToNumericResult(t,a,n,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(t,a,n,16),-1}stateNumericDecimal(t,n){const a=n;for(;n<t.length;){const r=t.charCodeAt(n);if(Z7(r))n+=1;else return this.addToNumericResult(t,a,n,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(t,a,n,10),-1}emitNumericEntity(t,n){var a;if(this.consumed<=n)return(a=this.errors)===null||a===void 0||a.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===$i.SEMI)this.consumed+=1;else if(this.decodeMode===Mm.Strict)return 0;return this.emitCodePoint(x8e(this.result),this.consumed),this.errors&&(t!==$i.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:a}=this;let r=a[this.treeIndex],i=(r&Zp.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const o=t.charCodeAt(n);if(this.treeIndex=N8e(a,r,this.treeIndex+Math.max(1,i),o),this.treeIndex<0)return this.result===0||this.decodeMode===Mm.Attribute&&(i===0||w8e(o))?0:this.emitNotTerminatedNamedEntity();if(r=a[this.treeIndex],i=(r&Zp.VALUE_LENGTH)>>14,i!==0){if(o===$i.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Mm.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:a}=this,r=(a[n]&Zp.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,r,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,a){const{decodeTree:r}=this;return this.emitCodePoint(n===1?r[t]&~Zp.VALUE_LENGTH:r[t+1],a),n===3&&this.emitCodePoint(r[t+2],a),a}end(){var t;switch(this.state){case Fi.NamedEntity:return this.result!==0&&(this.decodeMode!==Mm.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Fi.NumericDecimal:return this.emitNumericEntity(0,2);case Fi.NumericHex:return this.emitNumericEntity(0,3);case Fi.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Fi.EntityStart:return 0}}}function N8e(e,t,n,a){const r=(t&Zp.BRANCH_LENGTH)>>7,i=t&Zp.JUMP_TABLE;if(r===0)return i!==0&&a===i?n:-1;if(i){const l=a-i;return l<0||l>=r?-1:e[n+l]-1}let o=n,c=o+r-1;for(;o<=c;){const l=o+c>>>1,d=e[l];
1908if(d<a)o=l+1;else if(d>a)c=l-1;else return e[l+r]}return-1}var jt;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(jt||(jt={}));var S0;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(S0||(S0={}));var wl;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(wl||(wl={}));var We;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(We||(We={}));var M;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(M||(M={}));const k8e=new Map([[We.A,M.A],[We.ADDRESS,M.ADDRESS],[We.ANNOTATION_XML,M.ANNOTATION_XML],[We.APPLET,M.APPLET],[We.AREA,M.AREA],[We.ARTICLE,M.ARTICLE],[We.ASIDE,M.ASIDE],[We.B,M.B],[We.BASE,M.BASE],[We.BASEFONT,M.BASEFONT],[We.BGSOUND,M.BGSOUND],[We.BIG,M.BIG],[We.BLOCKQUOTE,M.BLOCKQUOTE],[We.BODY,M.BODY],[We.BR,M.BR],[We.BUTTON,M.BUTTON],[We.CAPTION,M.CAPTION],[We.CENTER,M.CENTER],[We.CODE,M.CODE],[We.COL,M.COL],[We.COLGROUP,M.COLGROUP],[We.DD,M.DD],[We.DESC,M.DESC],[We.DETAILS,M.DETAILS
vendor: 14,546 bytes, line 1908
1908],[We.DIALOG,M.DIALOG],[We.DIR,M.DIR],[We.DIV,M.DIV],[We.DL,M.DL],[We.DT,M.DT],[We.EM,M.EM],[We.EMBED,M.EMBED],[We.FIELDSET,M.FIELDSET],[We.FIGCAPTION,M.FIGCAPTION],[We.FIGURE,M.FIGURE],[We.FONT,M.FONT],[We.FOOTER,M.FOOTER],[We.FOREIGN_OBJECT,M.FOREIGN_OBJECT],[We.FORM,M.FORM],[We.FRAME,M.FRAME],[We.FRAMESET,M.FRAMESET],[We.H1,M.H1],[We.H2,M.H2],[We.H3,M.H3],[We.H4,M.H4],[We.H5,M.H5],[We.H6,M.H6],[We.HEAD,M.HEAD],[We.HEADER,M.HEADER],[We.HGROUP,M.HGROUP],[We.HR,M.HR],[We.HTML,M.HTML],[We.I,M.I],[We.IMG,M.IMG],[We.IMAGE,M.IMAGE],[We.INPUT,M.INPUT],[We.IFRAME,M.IFRAME],[We.KEYGEN,M.KEYGEN],[We.LABEL,M.LABEL],[We.LI,M.LI],[We.LINK,M.LINK],[We.LISTING,M.LISTING],[We.MAIN,M.MAIN],[We.MALIGNMARK,M.MALIGNMARK],[We.MARQUEE,M.MARQUEE],[We.MATH,M.MATH],[We.MENU,M.MENU],[We.META,M.META],[We.MGLYPH,M.MGLYPH],[We.MI,M.MI],[We.MO,M.MO],[We.MN,M.MN],[We.MS,M.MS],[We.MTEXT,M.MTEXT],[We.NAV,M.NAV],[We.NOBR,M.NOBR],[We.NOFRAMES,M.NOFRAMES],[We.NOEMBED,M.NOEMBED],[We.NOSCRIPT,M.NOSCRIPT],[We.OBJECT,M.OBJECT],[We.OL,M.OL],[We.OPTGROUP,M.OPTGROUP],[We.OPTION,M.OPTION],[We.P,M.P],[We.PARAM,M.PARAM],[We.PLAINTEXT,M.PLAINTEXT],[We.PRE,M.PRE],[We.RB,M.RB],[We.RP,M.RP],[We.RT,M.RT],[We.RTC,M.RTC],[We.RUBY,M.RUBY],[We.S,M.S],[We.SCRIPT,M.SCRIPT],[We.SEARCH,M.SEARCH],[We.SECTION,M.SECTION],[We.SELECT,M.SELECT],[We.SOURCE,M.SOURCE],[We.SMALL,M.SMALL],[We.SPAN,M.SPAN],[We.STRIKE,M.STRIKE],[We.STRONG,M.STRONG],[We.STYLE,M.STYLE],[We.SUB,M.SUB],[We.SUMMARY,M.SUMMARY],[We.SUP,M.SUP],[We.TABLE,M.TABLE],[We.TBODY,M.TBODY],[We.TEMPLATE,M.TEMPLATE],[We.TEXTAREA,M.TEXTAREA],[We.TFOOT,M.TFOOT],[We.TD,M.TD],[We.TH,M.TH],[We.THEAD,M.THEAD],[We.TITLE,M.TITLE],[We.TR,M.TR],[We.TRACK,M.TRACK],[We.TT,M.TT],[We.U,M.U],[We.UL,M.UL],[We.SVG,M.SVG],[We.VAR,M.VAR],[We.WBR,M.WBR],[We.XMP,M.XMP]]);function Dx(e){var t;return(t=k8e.get(e))!==null&&t!==void 0?t:M.UNKNOWN}const St=M,j8e={[jt.HTML]:new Set([St.ADDRESS,St.APPLET,St.AREA,St.ARTICLE,St.ASIDE,St.BASE,St.BASEFONT,St.BGSOUND,St.BLOCKQUOTE,St.BODY,St.BR,St.BUTTON,St.CAPTION,St.CENTER,St.COL,St.COLGROUP,St.DD,St.DETAILS,St.DIR,St.DIV,St.DL,St.DT,St.EMBED,St.FIELDSET,St.FIGCAPTION,St.FIGURE,St.FOOTER,St.FORM,St.FRAME,St.FRAMESET,St.H1,St.H2,St.H3,St.H4,St.H5,St.H6,St.HEAD,St.HEADER,St.HGROUP,St.HR,St.HTML,St.IFRAME,St.IMG,St.INPUT,St.LI,St.LINK,St.LISTING,St.MAIN,St.MARQUEE,St.MENU,St.META,St.NAV,St.NOEMBED,St.NOFRAMES,St.NOSCRIPT,St.OBJECT,St.OL,St.P,St.PARAM,St.PLAINTEXT,St.PRE,St.SCRIPT,St.SECTION,St.SELECT,St.SOURCE,St.STYLE,St.SUMMARY,St.TABLE,St.TBODY,St.TD,St.TEMPLATE,St.TEXTAREA,St.TFOOT,St.TH,St.THEAD,St.TITLE,St.TR,St.TRACK,St.UL,St.WBR,St.XMP]),[jt.MATHML]:new Set([St.MI,St.MO,St.MN,St.MS,St.MTEXT,St.ANNOTATION_XML]),[jt.SVG]:new Set([St.TITLE,St.FOREIGN_OBJECT,St.DESC]),[jt.XLINK]:new Set,[jt.XML]:new Set,[jt.XMLNS]:new Set},ej=new Set([St.H1,St.H2,St.H3,St.H4,St.H5,St.H6]);We.STYLE,We.SCRIPT,We.XMP,We.IFRAME,We.NOEMBED,We.NOFRAMES,We.PLAINTEXT;var je;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(je||(je={}));const Kr={DATA:je.DATA,RCDATA:je.RCDATA,RAWTEXT:je.RAWTEXT,SCRIPT_DATA:je.SCRIPT_DATA,PLAINTEXT:je.PLAINTEXT,CDATA_SECTION:je.CDATA_SECTION};function A8e(e){return e>=ye.DIGIT_0&&e<=ye.DIGIT_9}function ub(e){return e>=ye.LATIN_CAPITAL_A&&e<=ye.LATIN_CAPITAL_Z}function E8e(e){return e>=ye.LATIN_SMALL_A&&e<=ye.LATIN_SMALL_Z}function zp(e){return E8e(e)||ub(e)}function iO(e){return zp(e)||A8e(e)}function k5(e){return e+32}function UW(e){return e===ye.SPACE||e===ye.LINE_FEED||e===ye.TABULATION||e===ye.FORM_FEED}function oO(e){return UW(e)||e===ye.SOLIDUS||e===ye.GREATER_THAN_SIGN}function C8e(e){return e===ye.NULL?rt.nullCharacterReference:e>1114111?rt.characterReferenceOutsideUnicodeRange:LW(e)?rt.surrogateCharacterReference:BW(e)?rt.noncharacterCharacterReference:OW(e)||e===ye.CARRIAGE_RETURN?rt.controlCharacterReference:null}class S8e{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=je.DATA,this.returnState=je.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new h8e(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new T8e(f8e,(a,r)=>{this.preprocessor.pos=this.entityStartPos+r-1,this._flushCodePointConsumedAsCharacterReference(a)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(rt.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:a=>{this._err(rt.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+a)},validateNumericCharacterReference:a=>{const r=C8e(a);r&&this._err(r,1)}}:void 0)}_err(t,n=0){var a,r;(r=(a=this.handler).onParseError)===null||r===void 0||r.call(a,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,a){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||a?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:va.START_TAG,tagName:"",tagID:M.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:va.END_TAG,tagName:"",tagID:M.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:va.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:va.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const a=this.currentToken;if(FW(a,this.currentAttr.name)===null){if(a.attrs.push(this.currentAttr),a.location&&this.currentLocation){const r=(t=(n=a.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);r[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(rt.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Dx(t.tagName),t.type===va.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(rt.endTagWithAttributes),t.selfClosing&&this._err(rt.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case va.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case va.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case va.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:va.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=UW(t)?va.WHITESPACE_CHARACTER:t===ye.NULL?va.NULL_CHARACTER:va.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(va.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=je.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Mm.Attribute:Mm.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===je.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===je.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===je.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case je.DATA:{this._stateData(t);break}case je.RCDATA:{this._stateRcdata(t);break}case je.RAWTEXT:{this._stateRawtext(t);break}case je.SCRIPT_DATA:{this._stateScriptData(t);break}
1908case je.PLAINTEXT:{this._statePlaintext(t);break}case je.TAG_OPEN:{this._stateTagOpen(t);break}case je.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case je.TAG_NAME:{this._stateTagName(t);break}case je.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case je.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case je.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case je.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case je.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case je.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case je.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case je.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case je.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case je.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case je.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case je.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case je.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case je.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case je.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case je.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case je.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case je.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case je.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case je.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case je.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case je.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case je.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case je.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case je.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case je.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case je.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case je.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case je.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case je.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case je.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case je.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case je.BOGUS_COMMENT:{this._stateBogusComment(t);break}case je.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case je.COMMENT_START:{this._stateCommentStart(t);break}case je.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case je.COMMENT:{this._stateComment(t);break}case je.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case je.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case je.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case je.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case je.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case je.COMMENT_END:{this._stateCommentEnd(t);break}case je.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case je.DOCTYPE:{this._stateDoctype(t);break}case je.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case je.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case je.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case je.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case je.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case je.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case je.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case je.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case je.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case je.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case je.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctype
vendor: 100,343 bytes, line 1908
1908SystemIdentifier(t);break}case je.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case je.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case je.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case je.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case je.CDATA_SECTION:{this._stateCdataSection(t);break}case je.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case je.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case je.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case je.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case ye.LESS_THAN_SIGN:{this.state=je.TAG_OPEN;break}case ye.AMPERSAND:{this._startCharacterReference();break}case ye.NULL:{this._err(rt.unexpectedNullCharacter),this._emitCodePoint(t);break}case ye.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case ye.AMPERSAND:{this._startCharacterReference();break}case ye.LESS_THAN_SIGN:{this.state=je.RCDATA_LESS_THAN_SIGN;break}case ye.NULL:{this._err(rt.unexpectedNullCharacter),this._emitChars(ur);break}case ye.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case ye.LESS_THAN_SIGN:{this.state=je.RAWTEXT_LESS_THAN_SIGN;break}case ye.NULL:{this._err(rt.unexpectedNullCharacter),this._emitChars(ur);break}case ye.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case ye.LESS_THAN_SIGN:{this.state=je.SCRIPT_DATA_LESS_THAN_SIGN;break}case ye.NULL:{this._err(rt.unexpectedNullCharacter),this._emitChars(ur);break}case ye.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case ye.NULL:{this._err(rt.unexpectedNullCharacter),this._emitChars(ur);break}case ye.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(zp(t))this._createStartTagToken(),this.state=je.TAG_NAME,this._stateTagName(t);else switch(t){case ye.EXCLAMATION_MARK:{this.state=je.MARKUP_DECLARATION_OPEN;break}case ye.SOLIDUS:{this.state=je.END_TAG_OPEN;break}case ye.QUESTION_MARK:{this._err(rt.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=je.BOGUS_COMMENT,this._stateBogusComment(t);break}case ye.EOF:{this._err(rt.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(rt.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=je.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(zp(t))this._createEndTagToken(),this.state=je.TAG_NAME,this._stateTagName(t);else switch(t){case ye.GREATER_THAN_SIGN:{this._err(rt.missingEndTagName),this.state=je.DATA;break}case ye.EOF:{this._err(rt.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(rt.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=je.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:{this.state=je.BEFORE_ATTRIBUTE_NAME;break}case ye.SOLIDUS:{this.state=je.SELF_CLOSING_START_TAG;break}case ye.GREATER_THAN_SIGN:{this.state=je.DATA,this.emitCurrentTagToken();break}case ye.NULL:{this._err(rt.unexpectedNullCharacter),n.tagName+=ur;break}case ye.EOF:{this._err(rt.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(ub(t)?k5(t):t)}}_stateRcdataLessThanSign(t){t===ye.SOLIDUS?this.state=je.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=je.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){zp(t)?(this.state=je.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=je.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=je.BEFORE_ATTRIBUTE_NAME,!1;case ye.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=je.SELF_CLOSING_START_TAG,!1;case ye.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=je.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=je.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===ye.SOLIDUS?this.state=je.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=je.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){zp(t)?(this.state=je.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=je.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=je.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case ye.SOLIDUS:{this.state=je.SCRIPT_DATA_END_TAG_OPEN;break}case ye.EXCLAMATION_MARK:{this.state=je.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=je.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){zp(t)?(this.state=je.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=je.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=je.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===ye.HYPHEN_MINUS?(this.state=je.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=je.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===ye.HYPHEN_MINUS?(this.state=je.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=je.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case ye.HYPHEN_MINUS:{this.state=je.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case ye.LESS_THAN_SIGN:{this.state=je.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case ye.NULL:{this._err(rt.unexpectedNullCharacter),this._emitChars(ur);break}case ye.EOF:{this._err(rt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case ye.HYPHEN_MINUS:{this.state=je.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case ye.LESS_THAN_SIGN:{this.state=je.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case ye.NULL:{this._err(rt.unexpectedNullCharacter),this.state=je.SCRIPT_DATA_ESCAPED,this._emitChars(ur);break}case ye.EOF:{this._err(rt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=je.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case ye.HYPHEN_MINUS:{this._emitChars("-");break}case ye.LESS_THAN_SIGN:{this.state=je.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case ye.GREATER_THAN_SIGN:{this.state=je.SCRIPT_DATA,this._emitChars(">");break}case ye.NULL:{this._err(rt.unexpectedNullCharacter),this.state=je.SCRIPT_DATA_ESCAPED,this._emitChars(ur);break}case ye.EOF:{this._err(rt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=je.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===ye.SOLIDUS?this.state=je.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:zp(t)?(this._emitChars("<"),this.state=je.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=je.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){zp(t)?(this.state=je.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=je.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=je.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(uc.SCRIPT,!1)&&oO(this.preprocessor.peek(uc.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<uc.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=je.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=je.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case ye.HYPHEN_MINUS:{this.state=je.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case ye.LESS_THAN_SIGN:{this.state=je.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case ye.NULL:{this._err(rt.unexpectedNullCharacter),this._emitChars(ur);break}case ye.EOF:{this._err(rt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case ye.HYPHEN_MINUS:{this.state=je.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case ye.LESS_THAN_SIGN:{this.state=je.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case ye.NULL:{this._err(rt.unexpectedNullCharacter),this.state=je.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ur);break}case ye.EOF:{this._err(rt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=je.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case ye.HYPHEN_MINUS:{this._emitChars("-");break}case ye.LESS_THAN_SIGN:{this.state=je.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case ye.GREATER_THAN_SIGN:{this.state=je.SCRIPT_DATA,this._emitChars(">");break}case ye.NULL:{this._err(rt.unexpectedNullCharacter),this.state=je.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ur);break}case ye.EOF:{this._err(rt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=je.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===ye.SOLIDUS?(this.state=je.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=je.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(uc.SCRIPT,!1)&&oO(this.preprocessor.peek(uc.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<uc.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=je.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=je.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:break;case ye.SOLIDUS:case ye.GREATER_THAN_SIGN:case ye.EOF:{this.state=je.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case ye.EQUALS_SIGN:{this._err(rt.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=je.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=je.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:case ye.SOLIDUS:case ye.GREATER_THAN_SIGN:case ye.EOF:{this._leaveAttrName(),this.state=je.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case ye.EQUALS_SIGN:{this._leaveAttrName(),this.state=je.BEFORE_ATTRIBUTE_VALUE;break}case ye.QUOTATION_MARK:case ye.APOSTROPHE:case ye.LESS_THAN_SIGN:{this._err(rt.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case ye.NULL:{this._err(rt.unexpectedNullCharacter),this.currentAttr.name+=ur;break}default:this.currentAttr.name+=String.fromCodePoint(ub(t)?k5(t):t)}}_stateAfterAttributeName(t){switch(t){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:break;case ye.SOLIDUS:{this.state=je.SELF_CLOSING_START_TAG;break}case ye.EQUALS_SIGN:{this.state=je.BEFORE_ATTRIBUTE_VALUE;break}case ye.GREATER_THAN_SIGN:{this.state=je.DATA,this.emitCurrentTagToken();break}case ye.EOF:{this._err(rt.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=je.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:break;case ye.QUOTATION_MARK:{this.state=je.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case ye.APOSTROPHE:{this.state=je.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case ye.GREATER_THAN_SIGN:{this._err(rt.missingAttributeValue),this.state=je.DATA,this.emitCurrentTagToken();break}default:this.state=je.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case ye.QUOTATION_MARK:{this.state=je.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case ye.AMPERSAND:{this._startCharacterReference();break}case ye.NULL:{this._err(rt.unexpectedNullCharacter),this.currentAttr.value+=ur;break}case ye.EOF:{this._err(rt.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case ye.APOSTROPHE:{this.state=je.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case ye.AMPERSAND:{this._startCharacterReference();break}case ye.NULL:{this._err(rt.unexpectedNullCharacter),this.currentAttr.value+=ur;break}case ye.EOF:{this._err(rt.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:{this._leaveAttrValue(),this.state=je.BEFORE_ATTRIBUTE_NAME;break}case ye.AMPERSAND:{this._startCharacterReference();break}case ye.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=je.DATA,this.emitCurrentTagToken();break}case ye.NULL:{this._err(rt.unexpectedNullCharacter),this.currentAttr.value+=ur;break}case ye.QUOTATION_MARK:case ye.APOSTROPHE:case ye.LESS_THAN_SIGN:case ye.EQUALS_SIGN:case ye.GRAVE_ACCENT:{this._err(rt.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case ye.EOF:{this._err(rt.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:{this._leaveAttrValue(),this.state=je.BEFORE_ATTRIBUTE_NAME;break}case ye.SOLIDUS:{this._leaveAttrValue(),this.state=je.SELF_CLOSING_START_TAG;break}case ye.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=je.DATA,this.emitCurrentTagToken();break}case ye.EOF:{this._err(rt.eofInTag),this._emitEOFToken();break}default:this._err(rt.missingWhitespaceBetweenAttributes),this.state=je.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case ye.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=je.DATA,this.emitCurrentTagToken();break}case ye.EOF:{this._err(rt.eofInTag),this._emitEOFToken();break}default:this._err(rt.unexpectedSolidusInTag),this.state=je.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case ye.GREATER_THAN_SIGN:{this.state=je.DATA,this.emitCurrentComment(n);break}case ye.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case ye.NULL:{this._err(rt.unexpectedNullCharacter),n.data+=ur;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(uc.DASH_DASH,!0)?(this._createCommentToken(uc.DASH_DASH.length+1),this.state=je.COMMENT_START):this._consumeSequenceIfMatch(uc.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(uc.DOCTYPE.length+1),this.state=je.DOCTYPE):this._consumeSequenceIfMatch(uc.CDATA_START,!0)?this.inForeignNode?this.state=je.CDATA_SECTION:(this._err(rt.cdataInHtmlContent),this._createCommentToken(uc.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=je.BOGUS_COMMENT):this._ensureHibernation()||(this._err(rt.incorrectlyOpenedComment),this._createCommentToken(2),this.state=je.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case ye.HYPHEN_MINUS:{this.state=je.COMMENT_START_DASH;break}case ye.GREATER_THAN_SIGN:{this._err(rt.abruptClosingOfEmptyComment),this.state=je.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=je.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case ye.HYPHEN_MINUS:{this.state=je.COMMENT_END;break}case ye.GREATER_THAN_SIGN:{this._err(rt.abruptClosingOfEmptyComment),this.state=je.DATA,this.emitCurrentComment(n);break}case ye.EOF:{this._err(rt.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=je.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case ye.HYPHEN_MINUS:{this.state=je.COMMENT_END_DASH;break}case ye.LESS_THAN_SIGN:{n.data+="<",this.state=je.COMMENT_LESS_THAN_SIGN;break}case ye.NULL:{this._err(rt.unexpectedNullCharacter),n.data+=ur;break}case ye.EOF:{this._err(rt.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case ye.EXCLAMATION_MARK:{n.data+="!",this.state=je.COMMENT_LESS_THAN_SIGN_BANG;break}case ye.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=je.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===ye.HYPHEN_MINUS?this.state=je.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=je.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===ye.HYPHEN_MINUS?this.state=je.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=je.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==ye.GREATER_THAN_SIGN&&t!==ye.EOF&&this._err(rt.nestedComment),this.state=je.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case ye.HYPHEN_MINUS:{this.state=je.COMMENT_END;break}case ye.EOF:{this._err(rt.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=je.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case ye.GREATER_THAN_SIGN:{this.state=je.DATA,this.emitCurrentComment(n);break}case ye.EXCLAMATION_MARK:{this.state=je.COMMENT_END_BANG;break}case ye.HYPHEN_MINUS:{n.data+="-";break}case ye.EOF:{this._err(rt.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=je.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case ye.HYPHEN_MINUS:{n.data+="--!",this.state=je.COMMENT_END_DASH;break}case ye.GREATER_THAN_SIGN:{this._err(rt.incorrectlyClosedComment),this.state=je.DATA,this.emitCurrentComment(n);break}case ye.EOF:{this._err(rt.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=je.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:{this.state=je.BEFORE_DOCTYPE_NAME;break}case ye.GREATER_THAN_SIGN:{this.state=je.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case ye.EOF:{this._err(rt.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(rt.missingWhitespaceBeforeDoctypeName),this.state=je.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(ub(t))this._createDoctypeToken(String.fromCharCode(k5(t))),this.state=je.DOCTYPE_NAME;else switch(t){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:break;case ye.NULL:{this._err(rt.unexpectedNullCharacter),this._createDoctypeToken(ur),this.state=je.DOCTYPE_NAME;break}case ye.GREATER_THAN_SIGN:{this._err(rt.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=je.DATA;break}case ye.EOF:{this._err(rt.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=je.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:{this.state=je.AFTER_DOCTYPE_NAME;break}case ye.GREATER_THAN_SIGN:{this.state=je.DATA,this.emitCurrentDoctype(n);break}case ye.NULL:{this._err(rt.unexpectedNullCharacter),n.name+=ur;break}case ye.EOF:{this._err(rt.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(ub(t)?k5(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:break;case ye.GREATER_THAN_SIGN:{this.state=je.DATA,this.emitCurrentDoctype(n);break}case ye.EOF:{this._err(rt.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(uc.PUBLIC,!1)?this.state=je.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(uc.SYSTEM,!1)?this.state=je.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(rt.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=je.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:{this.state=je.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case ye.QUOTATION_MARK:{this._err(rt.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=je.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case ye.APOSTROPHE:{this._err(rt.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=je.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case ye.GREATER_THAN_SIGN:{this._err(rt.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=je.DATA,this.emitCurrentDoctype(n);break}case ye.EOF:{this._err(rt.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(rt.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=je.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:break;case ye.QUOTATION_MARK:{n.publicId="",this.state=je.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case ye.APOSTROPHE:{n.publicId="",this.state=je.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case ye.GREATER_THAN_SIGN:{this._err(rt.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=je.DATA,this.emitCurrentDoctype(n);break}case ye.EOF:{this._err(rt.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(rt.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=je.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case ye.QUOTATION_MARK:{this.state=je.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case ye.NULL:{this._err(rt.unexpectedNullCharacter),n.publicId+=ur;break}case ye.GREATER_THAN_SIGN:{this._err(rt.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=je.DATA;break}case ye.EOF:{this._err(rt.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case ye.APOSTROPHE:{this.state=je.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case ye.NULL:{this._err(rt.unexpectedNullCharacter),n.publicId+=ur;break}case ye.GREATER_THAN_SIGN:{this._err(rt.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=je.DATA;break}case ye.EOF:{this._err(rt.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:{this.state=je.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case ye.GREATER_THAN_SIGN:{this.state=je.DATA,this.emitCurrentDoctype(n);break}case ye.QUOTATION_MARK:{this._err(rt.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=je.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case ye.APOSTROPHE:{this._err(rt.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=je.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case ye.EOF:{this._err(rt.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(rt.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=je.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:break;case ye.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=je.DATA;break}case ye.QUOTATION_MARK:{n.systemId="",this.state=je.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case ye.APOSTROPHE:{n.systemId="",this.state=je.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case ye.EOF:{this._err(rt.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(rt.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=je.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:{this.state=je.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case ye.QUOTATION_MARK:{this._err(rt.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=je.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case ye.APOSTROPHE:{this._err(rt.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=je.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case ye.GREATER_THAN_SIGN:{this._err(rt.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=je.DATA,this.emitCurrentDoctype(n);break}case ye.EOF:{this._err(rt.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(rt.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=je.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:break;case ye.QUOTATION_MARK:{n.systemId="",this.state=je.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case ye.APOSTROPHE:{n.systemId="",this.state=je.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case ye.GREATER_THAN_SIGN:{this._err(rt.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=je.DATA,this.emitCurrentDoctype(n);break}case ye.EOF:{this._err(rt.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(rt.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=je.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case ye.QUOTATION_MARK:{this.state=je.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case ye.NULL:{this._err(rt.unexpectedNullCharacter),n.systemId+=ur;break}case ye.GREATER_THAN_SIGN:{this._err(rt.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=je.DATA;break}case ye.EOF:{this._err(rt.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case ye.APOSTROPHE:{this.state=je.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case ye.NULL:{this._err(rt.unexpectedNullCharacter),n.systemId+=ur;break}case ye.GREATER_THAN_SIGN:{this._err(rt.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=je.DATA;break}case ye.EOF:{this._err(rt.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:break;case ye.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=je.DATA;break}case ye.EOF:{this._err(rt.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(rt.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=je.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case ye.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=je.DATA;break}case ye.NULL:{this._err(rt.unexpectedNullCharacter);break}case ye.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case ye.RIGHT_SQUARE_BRACKET:{this.state=je.CDATA_SECTION_BRACKET;break}case ye.EOF:{this._err(rt.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===ye.RIGHT_SQUARE_BRACKET?this.state=je.CDATA_SECTION_END:(this._emitChars("]"),this.state=je.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case ye.GREATER_THAN_SIGN:{this.state=je.DATA;break}case ye.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=je.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(ye.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&iO(this.preprocessor.peek(1))?je.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){iO(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===ye.SEMICOLON&&this._err(rt.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const HW=new Set([M.DD,M.DT,M.LI,M.OPTGROUP,M.OPTION,M.P,M.RB,M.RP,M.RT,M.RTC]),cO=new Set([...HW,M.CAPTION,M.COLGROUP,M.TBODY,M.TD,M.TFOOT,M.TH,M.THEAD,M.TR]),K3=new Set([M.APPLET,M.CAPTION,M.HTML,M.MARQUEE,M.OBJECT,M.TABLE,M.TD,M.TEMPLATE,M.TH]),_8e=new Set([...K3,M.OL,M.UL]),P8e=new Set([...K3,M.BUTTON]),lO=new Set([M.ANNOTATION_XML,M.MI,M.MN,M.MO,M.MS,M.MTEXT]),uO=new Set([M.DESC,M.FOREIGN_OBJECT,M.TITLE]),D8e=new Set([M.TR,M.TEMPLATE,M.HTML]),R8e=new Set([M.TBODY,M.TFOOT,M.THEAD,M.TEMPLATE,M.HTML]),I8e=new Set([M.TABLE,M.TEMPLATE,M.HTML]),M8e=new Set([M.TD,M.TH]);class L8e{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,a){this.treeAdapter=n,this.handler=a,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=M.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===M.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===jt.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const a=this._indexOf(t);this.items[a]=n,a===this.stackTop&&(this.current=n)}insertAfter(t,n,a){const r=this._indexOf(t)+1;this.items.splice(r,0,n),this.tagIDs.splice(r,0,a),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==jt.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const a=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(a,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(ej,jt.HTML)}popUntilTableCellPopped(){this.popUntilPopped(M8e,jt.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let a=this.stackTop;a>=0;a--)if(t.has(this.tagIDs[a])&&this.treeAdapter.getNamespaceURI(this.items[a])===n)return a;return-1}clearBackTo(t,n){const a=this._indexOfTagNames(t,n);this.shortenToLength(a+1)}clearBackToTableContext(){this.clearBackTo(I8e,jt.HTML)}clearBackToTableBodyContext(){this.clearBackTo(R8e,jt.HTML)}clearBackToTableRowContext(){this.clearBackTo(D8e,jt.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===M.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===M.HTML}hasInDynamicScope(t,n){for(let a=this.stackTop;a>=0;a--){const r=this.tagIDs[a];switch(this.treeAdapter.getNamespaceURI(this.items[a])){case jt.HTML:{if(r===t)return!0;if(n.has(r))return!1;break}case jt.SVG:{if(uO.has(r))return!1;break}case jt.MATHML:{if(lO.has(r))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,K3)}hasInListItemScope(t){return this.hasInDynamicScope(t,_8e)}hasInButtonScope(t){return this.hasInDynamicScope(t,P8e)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case jt.HTML:{if(ej.has(n))return!0;if(K3.has(n))return!1;break}case jt.SVG:{if(uO.has(n))return!1;break}case jt.MATHML:{if(lO.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===jt.HTML)switch(this.tagIDs[n]){case t:return!0;case M.TABLE:case M.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===jt.HTML)switch(this.tagIDs[t]){case M.TBODY:case M.THEAD:case M.TFOOT:return!0;case M.TABLE:case M.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===jt.HTML)switch(this.tagIDs[n]){case t:return!0;case M.OPTION:case M.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&HW.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&cO.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&cO.has(this.currentTagId);)this.pop()}}const E8=3;var pd;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(pd||(pd={}));const dO={type:pd.Marker};class O8e{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const a=[],r=n.length,i=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let c=0;c<this.entries.length;c++){const l=this.entries[c];if(l.type===pd.Marker)break;const{element:d}=l;if(this.treeAdapter.getTagName(d)===i&&this.treeAdapter.getNamespaceURI(d)===o){const m=this.treeAdapter.getAttrList(d);m.length===r&&a.push({idx:c,attrs:m})}}return a}_ensureNoahArkCondition(t){if(this.entries.length<E8)return;const n=this.treeAdapter.getAttrList(t),a=this._getNoahArkConditionCandidates(t,n);if(a.length<E8)return;const r=new Map(n.map(o=>[o.name,o.value]));let i=0;for(let o=0;o<a.length;o++){const c=a[o];c.attrs.every(l=>r.get(l.name)===l.value)&&(i+=1,i>=E8&&this.entries.splice(c.idx,1))}}insertMarker(){this.entries.unshift(dO)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:pd.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const a=this.entries.indexOf(this.bookmark);this.entries.splice(a,0,{type:pd.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(dO);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(a=>a.type===pd.Marker||this.treeAdapter.getTagName(a.element)===t);return n&&n.type===pd.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===pd.Element&&n.element===t)}}const $p={createDocument(){return{nodeName:"#document",mode:wl.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const a=e.childNodes.indexOf(n);e.childNodes.splice(a,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,a){const r=e.childNodes.find(i=>i.nodeName==="#documentType");if(r)r.name=t,r.publicId=n,r.systemId=a;else{const i={nodeName:"#documentType",name:t,publicId:n,systemId:a,parentNode:null};$p.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if($p.isTextNode(n)){n.value+=t;return}}$p.appendChild(e,$p.createTextNode(t))},insertTextBefore(e,t,n){const a=e.childNodes[e.childNodes.indexOf(n)-1];a&&$p.isTextNode(a)?a.value+=t:$p.insertBefore(e,$p.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(a=>a.name));for(let a=0;a<t.length;a++)n.has(t[a].name)||e.attrs.push(t[a])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},VW="html",B8e="about:legacy-compat",F8e="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",zW=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],U8e=[...zW,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],H8e=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),$W=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],V8e=[...$W,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function mO(e,t){return t.some(n=>e.startsWith(n))}function z8e(e){return e.name===VW&&e.publicId===null&&(e.systemId===null||e.systemId===B8e)}function $8e(e){if(e.name!==VW)return wl.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===F8e)return wl.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),H8e.has(n))return wl.QUIRKS;let a=t===null?U8e:zW;if(mO(n,a))return wl.QUIRKS;if(a=t===null?$W:V8e,mO(n,a))return wl.LIMITED_QUIRKS}return wl.NO_QUIRKS}const pO={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},q8e="definitionurl",G8e="definitionURL",J8e=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),W8e=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:jt.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:jt.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:jt.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:jt.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:jt.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:jt.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:jt.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:jt.XML}],["xml:space",{prefix:"xml",name:"space",namespace:jt.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:jt.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:jt.XMLNS}]]),Y8e=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),X8e=new Set([M.B,M.BIG,M.BLOCKQUOTE,M.BODY,M.BR,M.CENTER,M.CODE,M.DD,M.DIV,M.DL,M.DT,M.EM,M.EMBED,M.H1,M.H2,M.H3,M.H4,M.H5,M.H6,M.HEAD,M.HR,M.I,M.IMG,M.LI,M.LISTING,M.MENU,M.META,M.NOBR,M.OL,M.P,M.PRE,M.RUBY,M.S,M.SMALL,M.SPAN,M.STRONG,M.STRIKE,M.SUB,M.SUP,M.TABLE,M.TT,M.U,M.UL,M.VAR]);function Q8e(e){const t=e.tagID;return t===M.FONT&&e.attrs.some(({name:a})=>a===S0.COLOR||a===S0.SIZE||a===S0.FACE)||X8e.has(t)}function qW(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===q8e){e.attrs[t].name=G8e;break}}function GW(e){for(let t=0;t<e.attrs.length;t++){const n=J8e.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function dE(e){for(let t=0;t<e.attrs.length;t++){const n=W8e.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function K8e(e){const t=Y8e.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Dx(e.tagName))}function Z8e(e,t){return t===jt.MATHML&&(e===M.MI||e===M.MO||e===M.MN||e===M.MS||e===M.MTEXT)}function eke(e,t,n){if(t===jt.MATHML&&e===M.ANNOTATION_XML){for(let a=0;a<n.length;a++)if(n[a].name===S0.ENCODING){const r=n[a].value.toLowerCase();return r===pO.TEXT_HTML||r===pO.APPLICATION_XML}}return t===jt.SVG&&(e===M.FOREIGN_OBJECT||e===M.DESC||e===M.TITLE)}function tke(e,t,n,a){return(!a||a===jt.HTML)&&eke(e,t,n)||(!a||a===jt.MATHML)&&Z8e(e,t)}const nke="hidden",ake=8,ske=3;var _e;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(_e||(_e={}));const rke={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},JW=new Set([M.TABLE,M.TBODY,M.TFOOT,M.THEAD,M.TR]),hO={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:$p,onParseError:null};class fO{constructor(t,n,a=null,r=null){this.fragmentContext=a,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=_e.INITIAL,this.originalInsertionMode=_e.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...hO,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new S8e(this.options,this),this.activeFormattingElements=new O8e(this.treeAdapter),this.fragmentContextID=a?Dx(this.treeAdapter.getTagName(a)):M.UNKNOWN,this._setContextModes(a??this.document,this.fragmentContextID),this.openElements=new L8e(this.document,this.treeAdapter,this)}static parse(t,n){const a=new this(n);return a.tokenizer.write(t,!0),a.document}static getFragmentParser(t,n){const a={...hO,...n};t??(t=a.treeAdapter.createElement(We.TEMPLATE,jt.HTML,[]));const r=a.treeAdapter.createElement("documentmock",jt.HTML,[]),i=new this(a,r,t);return i.fragmentContextID===M.TEMPLATE&&i.tmplInsertionModeStack.unshift(_e.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,a){var r;if(!this.onParseError)return;const i=(r=t.location)!==null&&r!==void 0?r:rke,o={code:n,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:a?i.startLine:i.endLine,endCol:a?i.startCol:i.endCol,endOffset:a?i.startOffset:i.endOffset};this.onParseError(o)}onItemPush(t,n,a){var r,i;(i=(r=this.treeAdapter).onItemPush)===null||i===void 0||i.call(r,t),a&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var a,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(r=(a=this.treeAdapter).onItemPop)===null||r===void 0||r.call(a,t,this.openElements.current),n){let i,o;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,o=this.fragmentContextID):{current:i,currentTagId:o}=this.openElements,this._setContextModes(i,o)}}_setContextModes(t,n){const a=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===jt.HTML;this.currentNotInHTML=!a,this.tokenizer.inForeignNode=!a&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,jt.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=_e.TEXT}switchToPlaintextParsing(){this.insertionMode=_e.TEXT,this.originalInsertionMode=_e.IN_BODY,this.tokenizer.state=Kr.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===We.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==jt.HTML))switch(this.fragmentContextID){case M.TITLE:case M.TEXTAREA:{this.tokenizer.state=Kr.RCDATA;break}case M.STYLE:case M.XMP:case M.IFRAME:case M.NOEMBED:case M.NOFRAMES:case M.NOSCRIPT:{this.tokenizer.state=Kr.RAWTEXT;break}case M.SCRIPT:{this.tokenizer.state=Kr.SCRIPT_DATA;break}case M.PLAINTEXT:{this.tokenizer.state=Kr.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",a=t.publicId||"",r=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,a,r),t.location){const o=this.treeAdapter.getChildNodes(this.document).find(c=>this.treeAdapter.isDocumentTypeNode(c));o&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const a=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,a)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const a=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(a??this.document,t)}}_appendElement(t,n){const a=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(a,t.location)}_insertElement(t,n){const a=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(a,t.location),this.openElements.push(a,t.tagID)}_insertFakeElement(t,n){const a=this.treeAdapter.createElement(t,jt.HTML,[]);this._attachElementToTree(a,null),this.openElements.push(a,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,jt.HTML,t.attrs),a=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,a),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(We.HTML,jt.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,M.HTML)}_appendCommentNode(t,n){const a=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,a),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}_insertCharacters(t){let n,a;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:a}=this._findFosterParentingLocation(),a?this.treeAdapter.insertTextBefore(n,t.chars,a):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const r=this.treeAdapter.getChildNodes(n),i=a?r.lastIndexOf(a):r.length,o=r[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:l,endCol:d,endOffset:m}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:l,endCol:d,endOffset:m})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}_adoptNodes(t,n){for(let a=this.treeAdapter.getFirstChild(t);a;a=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(a),this.treeAdapter.appendChild(n,a)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const a=n.location,r=this.treeAdapter.getTagName(t),i=n.type===va.END_TAG&&r===n.tagName?{endTag:{...a},endLine:a.endLine,endCol:a.endCol,endOffset:a.endOffset}:{endLine:a.startLine,endCol:a.startCol,endOffset:a.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,a;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,a=this.fragmentContextID):{current:n,currentTagId:a}=this.openElements,t.tagID===M.SVG&&this.treeAdapter.getTagName(n)===We.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===jt.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===M.MGLYPH||t.tagID===M.MALIGNMARK)&&a!==void 0&&!this._isIntegrationPoint(a,n,jt.HTML)}_processToken(t){switch(t.type){case va.CHARACTER:{this.onCharacter(t);break}case va.NULL_CHARACTER:{this.onNullCharacter(t);break}case va.COMMENT:{this.onComment(t);break}case va.DOCTYPE:{this.onDoctype(t);break}case va.START_TAG:{this._processStartTag(t);break}case va.END_TAG:{this.onEndTag(t);break}case va.EOF:{this.onEof(t);break}case va.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,a){const r=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return tke(t,r,i,a)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(r=>r.type===pd.Marker||this.openElements.contains(r.element)),a=n===-1?t-1:n-1;for(let r=a;r>=0;r--){const i=this.activeFormattingElements.entries[r];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=_e.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(M.P),this.openElements.popUntilTagNamePopped(M.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case M.TR:{this.insertionMode=_e.IN_ROW;return}case M.TBODY:case M.THEAD:case M.TFOOT:{this.insertionMode=_e.IN_TABLE_BODY;return}case M.CAPTION:{this.insertionMode=_e.IN_CAPTION;return}case M.COLGROUP:{this.insertionMode=_e.IN_COLUMN_GROUP;return}case M.TABLE:{this.insertionMode=_e.IN_TABLE;return}case M.BODY:{this.insertionMode=_e.IN_BODY;return}case M.FRAMESET:{this.insertionMode=_e.IN_FRAMESET;return}case M.SELECT:{this._resetInsertionModeForSelect(t);return}case M.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case M.HTML:{this.insertionMode=this.headElement?_e.AFTER_HEAD:_e.BEFORE_HEAD;return}case M.TD:case M.TH:{if(t>0){this.insertionMode=_e.IN_CELL;return}break}case M.HEAD:{if(t>0){this.insertionMode=_e.IN_HEAD;return}break}}this.insertionMode=_e.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const a=this.openElements.tagIDs[n];if(a===M.TEMPLATE)break;if(a===M.TABLE){this.insertionMode=_e.IN_SELECT_IN_TABLE;return}}this.insertionMode=_e.IN_SELECT}_isElementCausesFosterParenting(t){return JW.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case M.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===jt.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case M.TABLE:{const a=this.treeAdapter.getParentNode(n);return a?{parent:a,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const a=this.treeAdapter.getNamespaceURI(t);return j8e[a].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){M7e(this,t);return}switch(this.insertionMode){case _e.INITIAL:{X1(this,t);break}case _e.BEFORE_HTML:{Db(this,t);break}case _e.BEFORE_HEAD:{Rb(this,t);break}case _e.IN_HEAD:{Ib(this,t);break}case _e.IN_HEAD_NO_SCRIPT:{Mb(this,t);break}case _e.AFTER_HEAD:{Lb(this,t);break}case _e.IN_BODY:case _e.IN_CAPTION:case _e.IN_CELL:case _e.IN_TEMPLATE:{YW(this,t);break}case _e.TEXT:case _e.IN_SELECT:case _e.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case _e.IN_TABLE:case _e.IN_TABLE_BODY:case _e.IN_ROW:{C8(this,t);break}case _e.IN_TABLE_TEXT:{tY(this,t);break}case _e.IN_COLUMN_GROUP:{Z3(this,t);break}case _e.AFTER_BODY:{e4(this,t);break}case _e.AFTER_AFTER_BODY:{i3(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){I7e(this,t);return}switch(this.insertionMode){case _e.INITIAL:{X1(this,t);break}case _e.BEFORE_HTML:{Db(this,t);break}case _e.BEFORE_HEAD:{Rb(this,t);break}case _e.IN_HEAD:{Ib(this,t);break}case _e.IN_HEAD_NO_SCRIPT:{Mb(this,t);break}case _e.AFTER_HEAD:{Lb(this,t);break}case _e.TEXT:{this._insertCharacters(t);break}case _e.IN_TABLE:case _e.IN_TABLE_BODY:case _e.IN_ROW:{C8(this,t);break}case _e.IN_COLUMN_GROUP:{Z3(this,t);break}case _e.AFTER_BODY:{e4(this,t);break}case _e.AFTER_AFTER_BODY:{i3(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){tj(this,t);return}switch(this.insertionMode){case _e.INITIAL:case _e.BEFORE_HTML:case _e.BEFORE_HEAD:case _e.IN_HEAD:case _e.IN_HEAD_NO_SCRIPT:case _e.AFTER_HEAD:case _e.IN_BODY:case _e.IN_TABLE:case _e.IN_CAPTION:case _e.IN_COLUMN_GROUP:case _e.IN_TABLE_BODY:case _e.IN_ROW:case _e.IN_CELL:case _e.IN_SELECT:case _e.IN_SELECT_IN_TABLE:case _e.IN_TEMPLATE:case _e.IN_FRAMESET:case _e.AFTER_FRAMESET:{tj(this,t);break}case _e.IN_TABLE_TEXT:{Q1(this,t);break}case _e.AFTER_BODY:{mke(this,t);break}case _e.AFTER_AFTER_BODY:case _e.AFTER_AFTER_FRAMESET:{pke(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case _e.INITIAL:{hke(this,t);break}case _e.BEFORE_HEAD:case _e.IN_HEAD:case _e.IN_HEAD_NO_SCRIPT:case _e.AFTER_HEAD:{this._err(t,rt.misplacedDoctype);break}case _e.IN_TABLE_TEXT:{Q1(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,rt.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?L7e(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case _e.INITIAL:{X1(this,t);break}case _e.BEFORE_HTML:{fke(this,t);break}case _e.BEFORE_HEAD:{xke(this,t);break}case _e.IN_HEAD:{Su(this,t);break}case _e.IN_HEAD_NO_SCRIPT:{yke(this,t);break}case _e.AFTER_HEAD:{Tke(this,t);break}case _e.IN_BODY:{ko(this,t);break}case _e.IN_TABLE:{dx(this,t);break}case _e.IN_TABLE_TEXT:{Q1(this,t);break}case _e.IN_CAPTION:{b7e(this,t);break}case _e.IN_COLUMN_GROUP:{hE(this,t);break}case _e.IN_TABLE_BODY:{D6(this,t);break}case _e.IN_ROW:{R6(this,t);break}case _e.IN_CELL:{w7e(this,t);break}case _e.IN_SELECT:{sY(this,t);break}case _e.IN_SELECT_IN_TABLE:{N7e(this,t);break}case _e.IN_TEMPLATE:{j7e(this,t);break}case _e.AFTER_BODY:{E7e(this,t);break}case _e.IN_FRAMESET:{C7e(this,t);break}case _e.AFTER_FRAMESET:{_7e(this,t);break}case _e.AFTER_AFTER_BODY:{D7e(this,t);break}case _e.AFTER_AFTER_FRAMESET:{R7e(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?O7e(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case _e.INITIAL:{X1(this,t);break}case _e.BEFORE_HTML:{gke(this,t);break}case _e.BEFORE_HEAD:{bke(this,t);break}case _e.IN_HEAD:{vke(this,t);break}case _e.IN_HEAD_NO_SCRIPT:{wke(this,t);break}case _e.AFTER_HEAD:{Nke(this,t);break}case _e.IN_BODY:{P6(this,t);break}case _e.TEXT:{c7e(this,t);break}case _e.IN_TABLE:{w2(this,t);break}case _e.IN_TABLE_TEXT:{Q1(this,t);break}case _e.IN_CAPTION:{v7e(this,t);break}case _e.IN_COLUMN_GROUP:{y7e(this,t);break}case _e.IN_TABLE_BODY:{nj(this,t);break}case _e.IN_ROW:{aY(this,t);break}case _e.IN_CELL:{T7e(this,t);break}case _e.IN_SELECT:{rY(this,t);break}case _e.IN_SELECT_IN_TABLE:{k7e(this,t);break}case _e.IN_TEMPLATE:{A7e(this,t);break}case _e.AFTER_BODY:{oY(this,t);break}case _e.IN_FRAMESET:{S7e(this,t);break}case _e.AFTER_FRAMESET:{P7e(this,t);break}case _e.AFTER_AFTER_BODY:{i3(this,t);break}}}onEof(t){switch(this.insertionMode){case _e.INITIAL:{X1(this,t);break}case _e.BEFORE_HTML:{Db(this,t);break}case _e.BEFORE_HEAD:{Rb(this,t);break}case _e.IN_HEAD:{Ib(this,t);break}case _e.IN_HEAD_NO_SCRIPT:{Mb(this,t);break}case _e.AFTER_HEAD:{Lb(this,t);break}case _e.IN_BODY:case _e.IN_TABLE:case _e.IN_CAPTION:case _e.IN_COLUMN_GROUP:case _e.IN_TABLE_BODY:case _e.IN_ROW:case _e.IN_CELL:case _e.IN_SELECT:case _e.IN_SELECT_IN_TABLE:{ZW(this,t);break}case _e.TEXT:{l7e(this,t);break}case _e.IN_TABLE_TEXT:{Q1(this,t);break}case _e.IN_TEMPLATE:{iY(this,t);break}case _e.AFTER_BODY:case _e.IN_FRAMESET:case _e.AFTER_FRAMESET:case _e.AFTER_AFTER_BODY:case _e.AFTER_AFTER_FRAMESET:{pE(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===ye.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case _e.IN_HEAD:case _e.IN_HEAD_NO_SCRIPT:case _e.AFTER_HEAD:case _e.TEXT:case _e.IN_COLUMN_GROUP:case _e.IN_SELECT:case _e.IN_SELECT_IN_TABLE:case _e.IN_FRAMESET:case _e.AFTER_FRAMESET:{this._insertCharacters(t);break}case _e.IN_BODY:case _e.IN_CAPTION:case _e.IN_CELL:case _e.IN_TEMPLATE:case _e.AFTER_BODY:case _e.AFTER_AFTER_BODY:case _e.AFTER_AFTER_FRAMESET:{WW(this,t);break}case _e.IN_TABLE:case _e.IN_TABLE_BODY:case _e.IN_ROW:{C8(this,t);break}case _e.IN_TABLE_TEXT:{eY(this,t);break}}}}function ike(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):KW(e,t),n}function oke(e,t){let n=null,a=e.openElements.stackTop;for(;a>=0;a--){const r=e.openElements.items[a];if(r===t.element)break;e._isSpecialElement(r,e.openElements.tagIDs[a])&&(n=r)}return n||(e.openElements.shortenToLength(Math.max(a,0)),e.activeFormattingElements.removeEntry(t)),n}function cke(e,t,n){let a=t,r=e.openElements.getCommonAncestor(t);for(let i=0,o=r;o!==n;i++,o=r){r=e.openElements.getCommonAncestor(o);const c=e.activeFormattingElements.getElementEntry(o),l=c&&i>=ske;!c||l?(l&&e.activeFormattingElements.removeEntry(c),e.openElements.remove(o)):(o=lke(e,c),a===t&&(e.activeFormattingElements.bookmark=c),e.treeAdapter.detachNode(a),e.treeAdapter.appendChild(o,a),a=o)}return a}function lke(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),a=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,a),t.element=a,a}function uke(e,t,n){const a=e.treeAdapter.getTagName(t),r=Dx(a);if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);r===M.TEMPLATE&&i===jt.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function dke(e,t,n){const a=e.treeAdapter.getNamespaceURI(n.element),{token:r}=n,i=e.treeAdapter.createElement(r.tagName,a,r.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,r),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i,r.tagID)}function mE(e,t){for(let n=0;n<ake;n++){const a=ike(e,t);if(!a)break;const r=oke(e,a);if(!r)break;e.activeFormattingElements.bookmark=a;const i=cke(e,r,a.element),o=e.openElements.getCommonAncestor(a.element);e.treeAdapter.detachNode(i),o&&uke(e,o,i),dke(e,r,a)}}function tj(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function mke(e,t){e._appendCommentNode(t,e.openElements.items[0])}function pke(e,t){e._appendCommentNode(t,e.document)}function pE(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let a=e.openElements.stackTop;a>=n;a--)e._setEndLocation(e.openElements.items[a],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const a=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(a);if(r&&!r.endTag&&(e._setEndLocation(a,t),e.openElements.stackTop>=1)){const i=e.openElements.items[1],o=e.treeAdapter.getNodeSourceCodeLocation(i);o&&!o.endTag&&e._setEndLocation(i,t)}}}}function hke(e,t){e._setDocumentType(t);const n=t.forceQuirks?wl.QUIRKS:$8e(t);z8e(t)||e._err(t,rt.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=_e.BEFORE_HTML}function X1(e,t){e._err(t,rt.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,wl.QUIRKS),e.insertionMode=_e.BEFORE_HTML,e._processToken(t)}function fke(e,t){t.tagID===M.HTML?(e._insertElement(t,jt.HTML),e.insertionMode=_e.BEFORE_HEAD):Db(e,t)}function gke(e,t){const n=t.tagID;(n===M.HTML||n===M.HEAD||n===M.BODY||n===M.BR)&&Db(e,t)}function Db(e,t){e._insertFakeRootElement(),e.insertionMode=_e.BEFORE_HEAD,e._processToken(t)}function xke(e,t){switch(t.tagID){case M.HTML:{ko(e,t);break}case M.HEAD:{e._insertElement(t,jt.HTML),e.headElement=e.openElements.current,e.insertionMode=_e.IN_HEAD;break}default:Rb(e,t)}}function bke(e,t){const n=t.tagID;n===M.HEAD||n===M.BODY||n===M.HTML||n===M.BR?Rb(e,t):e._err(t,rt.endTagWithoutMatchingOpenElement)}function Rb(e,t){e._insertFakeElement(We.HEAD,M.HEAD),e.headElement=e.openElements.current,e.insertionMode=_e.IN_HEAD,e._processToken(t)}function Su(e,t){switch(t.tagID){case M.HTML:{ko(e,t);break}case M.BASE:case M.BASEFONT:case M.BGSOUND:case M.LINK:case M.META:{e._appendElement(t,jt.HTML),t.ackSelfClosing=!0;break}case M.TITLE:{e._switchToTextParsing(t,Kr.RCDATA);break}case M.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Kr.RAWTEXT):(e._insertElement(t,jt.HTML),e.insertionMode=_e.IN_HEAD_NO_SCRIPT);break}case M.NOFRAMES:case M.STYLE:{e._switchToTextParsing(t,Kr.RAWTEXT);break}case M.SCRIPT:{e._switchToTextParsing(t,Kr.SCRIPT_DATA);break}case M.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=_e.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(_e.IN_TEMPLATE);break}case M.HEAD:{e._err(t,rt.misplacedStartTagForHeadElement);break}default:Ib(e,t)}}function vke(e,t){switch(t.tagID){case M.HEAD:{e.openElements.pop(),e.insertionMode=_e.AFTER_HEAD;break}case M.BODY:case M.BR:case M.HTML:{Ib(e,t);break}case M.TEMPLATE:{uf(e,t);break}default:e._err(t,rt.endTagWithoutMatchingOpenElement)}}function uf(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==M.TEMPLATE&&e._err(t,rt.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(M.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,rt.endTagWithoutMatchingOpenElement)}function Ib(e,t){e.openElements.pop(),e.insertionMode=_e.AFTER_HEAD,e._processToken(t)}function yke(e,t){switch(t.tagID){case M.HTML:{ko(e,t);break}case M.BASEFONT:case M.BGSOUND:case M.HEAD:case M.LINK:case M.META:case M.NOFRAMES:case M.STYLE:{Su(e,t);break}case M.NOSCRIPT:{e._err(t,rt.nestedNoscriptInHead);break}default:Mb(e,t)}}function wke(e,t){switch(t.tagID){case M.NOSCRIPT:{e.openElements.pop(),e.insertionMode=_e.IN_HEAD;break}case M.BR:{Mb(e,t);break}default:e._err(t,rt.endTagWithoutMatchingOpenElement)}}function Mb(e,t){const n=t.type===va.EOF?rt.openElementsLeftAfterEof:rt.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=_e.IN_HEAD,e._processToken(t)}function Tke(e,t){switch(t.tagID){case M.HTML:{ko(e,t);break}case M.BODY:{e._insertElement(t,jt.HTML),e.framesetOk=!1,e.insertionMode=_e.IN_BODY;break}case M.FRAMESET:{e._insertElement(t,jt.HTML),e.insertionMode=_e.IN_FRAMESET;break}case M.BASE:case M.BASEFONT:case M.BGSOUND:case M.LINK:case M.META:case M.NOFRAMES:case M.SCRIPT:case M.STYLE:case M.TEMPLATE:case M.TITLE:{e._err(t,rt.abandonedHeadElementChild),e.openElements.push(e.headElement,M.HEAD),Su(e,t),e.openElements.remove(e.headElement);break}case M.HEAD:{e._err(t,rt.misplacedStartTagForHeadElement);break}default:Lb(e,t)}}function Nke(e,t){switch(t.tagID){case M.BODY:case M.HTML:case M.BR:{Lb(e,t);break}case M.TEMPLATE:{uf(e,t);break}default:e._err(t,rt.endTagWithoutMatchingOpenElement)}}function Lb(e,t){e._insertFakeElement(We.BODY,M.BODY),e.insertionMode=_e.IN_BODY,_6(e,t)}function _6(e,t){switch(t.type){case va.CHARACTER:{YW(e,t);break}case va.WHITESPACE_CHARACTER:{WW(e,t);break}case va.COMMENT:{tj(e,t);break}case va.START_TAG:{ko(e,t);break}case va.END_TAG:{P6(e,t);break}case va.EOF:{ZW(e,t);break}}}function WW(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function YW(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function kke(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function jke(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Ake(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,jt.HTML),e.insertionMode=_e.IN_FRAMESET)}function Eke(e,t){e.openElements.hasInButtonScope(M.P)&&e._closePElement(),e._insertElement(t,jt.HTML)}function Cke(e,t){e.openElements.hasInButtonScope(M.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&ej.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,jt.HTML)}function Ske(e,t){e.openElements.hasInButtonScope(M.P)&&e._closePElement(),e._insertElement(t,jt.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function _ke(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(M.P)&&e._closePElement(),e._insertElement(t,jt.HTML),n||(e.formElement=e.openElements.current))}function Pke(e,t){e.framesetOk=!1;const n=t.tagID;for(let a=e.openElements.stackTop;a>=0;a--){const r=e.openElements.tagIDs[a];if(n===M.LI&&r===M.LI||(n===M.DD||n===M.DT)&&(r===M.DD||r===M.DT)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r);break}if(r!==M.ADDRESS&&r!==M.DIV&&r!==M.P&&e._isSpecialElement(e.openElements.items[a],r))break}e.openElements.hasInButtonScope(M.P)&&e._closePElement(),e._insertElement(t,jt.HTML)}function Dke(e,t){e.openElements.hasInButtonScope(M.P)&&e._closePElement(),e._insertElement(t,jt.HTML),e.tokenizer.state=Kr.PLAINTEXT}function Rke(e,t){e.openElements.hasInScope(M.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(M.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,jt.HTML),e.framesetOk=!1}function Ike(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(We.A);n&&(mE(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,jt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Mke(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,jt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Lke(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(M.NOBR)&&(mE(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,jt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Oke(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,jt.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Bke(e,t){e.treeAdapter.getDocumentMode(e.document)!==wl.QUIRKS&&e.openElements.hasInButtonScope(M.P)&&e._closePElement(),e._insertElement(t,jt.HTML),e.framesetOk=!1,e.insertionMode=_e.IN_TABLE}function XW(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,jt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function QW(e){const t=FW(e,S0.TYPE);return t!=null&&t.toLowerCase()===nke}function Fke(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,jt.HTML),QW(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Uke(e,t){e._appendElement(t,jt.HTML),t.ackSelfClosing=!0}function Hke(e,t){e.openElements.hasInButtonScope(M.P)&&e._closePElement(),e._appendElement(t,jt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Vke(e,t){t.tagName=We.IMG,t.tagID=M.IMG,XW(e,t)}function zke(e,t){e._insertElement(t,jt.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Kr.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=_e.TEXT}function $ke(e,t){e.openElements.hasInButtonScope(M.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Kr.RAWTEXT)}function qke(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Kr.RAWTEXT)}function gO(e,t){e._switchToTextParsing(t,Kr.RAWTEXT)}function Gke(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,jt.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===_e.IN_TABLE||e.insertionMode===_e.IN_CAPTION||e.insertionMode===_e.IN_TABLE_BODY||e.insertionMode===_e.IN_ROW||e.insertionMode===_e.IN_CELL?_e.IN_SELECT_IN_TABLE:_e.IN_SELECT}function Jke(e,t){e.openElements.currentTagId===M.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,jt.HTML)}function Wke(e,t){e.openElements.hasInScope(M.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,jt.HTML)}function Yke(e,t){e.openElements.hasInScope(M.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(M.RTC),e._insertElement(t,jt.HTML)}function Xke(e,t){e._reconstructActiveFormattingElements(),qW(t),dE(t),t.selfClosing?e._appendElement(t,jt.MATHML):e._insertElement(t,jt.MATHML),t.ackSelfClosing=!0}function Qke(e,t){e._reconstructActiveFormattingElements(),GW(t),dE(t),t.selfClosing?e._appendElement(t,jt.SVG):e._insertElement(t,jt.SVG),t.ackSelfClosing=!0}function xO(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,jt.HTML)}function ko(e,t){switch(t.tagID){case M.I:case M.S:case M.B:case M.U:case M.EM:case M.TT:case M.BIG:case M.CODE:case M.FONT:case M.SMALL:case M.STRIKE:case M.STRONG:{Mke(e,t);break}case M.A:{Ike(e,t);break}case M.H1:case M.H2:case M.H3:case M.H4:case M.H5:case M.H6:{Cke(e,t);break}case M.P:case M.DL:case M.OL:case M.UL:case M.DIV:case M.DIR:case M.NAV:case M.MAIN:case M.MENU:case M.ASIDE:case M.CENTER:case M.FIGURE:case M.FOOTER:case M.HEADER:case M.HGROUP:case M.DIALOG:case M.DETAILS:case M.ADDRESS:case M.ARTICLE:case M.SEARCH:case M.SECTION:case M.SUMMARY:case M.FIELDSET:case M.BLOCKQUOTE:case M.FIGCAPTION:{Eke(e,t);break}case M.LI:case M.DD:case M.DT:{Pke(e,t);break}case M.BR:case M.IMG:case M.WBR:case M.AREA:case M.EMBED:case M.KEYGEN:{XW(e,t);break}case M.HR:{Hke(e,t);break}case M.RB:case M.RTC:{Wke(e,t);break}case M.RT:case M.RP:{Yke(e,t);break}case M.PRE:case M.LISTING:{Ske(e,t);break}case M.XMP:{$ke(e,t);break}case M.SVG:{Qke(e,t);break}case M.HTML:{kke(e,t);break}case M.BASE:case M.LINK:case M.META:case M.STYLE:case M.TITLE:case M.SCRIPT:case M.BGSOUND:case M.BASEFONT:case M.TEMPLATE:{Su(e,t);break}case M.BODY:{jke(e,t);break}case M.FORM:{_ke(e,t);break}case M.NOBR:{Lke(e,t);break}case M.MATH:{Xke(e,t);break}case M.TABLE:{Bke(e,t);break}case M.INPUT:{Fke(e,t);break}case M.PARAM:case M.TRACK:case M.SOURCE:{Uke(e,t);break}case M.IMAGE:{Vke(e,t);break}case M.BUTTON:{Rke(e,t);break}case M.APPLET:case M.OBJECT:case M.MARQUEE:{Oke(e,t);break}case M.IFRAME:{qke(e,t);break}case M.SELECT:{Gke(e,t);break}case M.OPTION:case M.OPTGROUP:{Jke(e,t);break}case M.NOEMBED:case M.NOFRAMES:{gO(e,t);break}case M.FRAMESET:{Ake(e,t);break}case M.TEXTAREA:{zke(e,t);break}case M.NOSCRIPT:{e.options.scriptingEnabled?gO(e,t):xO(e,t);break}case M.PLAINTEXT:{Dke(e,t);break}case M.COL:case M.TH:case M.TD:case M.TR:case M.HEAD:case M.FRAME:case M.TBODY:case M.TFOOT:case M.THEAD:case M.CAPTION:case M.COLGROUP:break;default:xO(e,t)}}function Kke(e,t){if(e.openElements.hasInScope(M.BODY)&&(e.insertionMode=_e.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Zke(e,t){e.openElements.hasInScope(M.BODY)&&(e.insertionMode=_e.AFTER_BODY,oY(e,t))}function e7e(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function t7e(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(M.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(M.FORM):n&&e.openElements.remove(n))}function n7e(e){e.openElements.hasInButtonScope(M.P)||e._insertFakeElement(We.P,M.P),e._closePElement()}function a7e(e){e.openElements.hasInListItemScope(M.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(M.LI),e.openElements.popUntilTagNamePopped(M.LI))}function s7e(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function r7e(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function i7e(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function o7e(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(We.BR,M.BR),e.openElements.pop(),e.framesetOk=!1}function KW(e,t){const n=t.tagName,a=t.tagID;for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r],o=e.openElements.tagIDs[r];if(a===o&&(a!==M.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.stackTop>=r&&e.openElements.shortenToLength(r);break}if(e._isSpecialElement(i,o))break}}function P6(e,t){switch(t.tagID){case M.A:case M.B:case M.I:case M.S:case M.U:case M.EM:case M.TT:case M.BIG:case M.CODE:case M.FONT:case M.NOBR:case M.SMALL:case M.STRIKE:case M.STRONG:{mE(e,t);break}case M.P:{n7e(e);break}case M.DL:case M.UL:case M.OL:case M.DIR:case M.DIV:case M.NAV:case M.PRE:case M.MAIN:case M.MENU:case M.ASIDE:case M.BUTTON:case M.CENTER:case M.FIGURE:case M.FOOTER:case M.HEADER:case M.HGROUP:case M.DIALOG:case M.ADDRESS:case M.ARTICLE:case M.DETAILS:case M.SEARCH:case M.SECTION:case M.SUMMARY:case M.LISTING:case M.FIELDSET:case M.BLOCKQUOTE:case M.FIGCAPTION:{e7e(e,t);break}case M.LI:{a7e(e);break}case M.DD:case M.DT:{s7e(e,t);break}case M.H1:case M.H2:case M.H3:case M.H4:case M.H5:case M.H6:{r7e(e);break}case M.BR:{o7e(e);break}case M.BODY:{Kke(e,t);break}case M.HTML:{Zke(e,t);break}case M.FORM:{t7e(e);break}case M.APPLET:case M.OBJECT:case M.MARQUEE:{i7e(e,t);break}case M.TEMPLATE:{uf(e,t);break}default:KW(e,t)}}function ZW(e,t){e.tmplInsertionModeStack.length>0?iY(e,t):pE(e,t)}function c7e(e,t){var n;t.tagID===M.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function l7e(e,t){e._err(t,rt.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function C8(e,t){if(e.openElements.currentTagId!==void 0&&JW.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=_e.IN_TABLE_TEXT,t.type){case va.CHARACTER:{tY(e,t);break}case va.WHITESPACE_CHARACTER:{eY(e,t);break}}else iv(e,t)}function u7e(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,jt.HTML),e.insertionMode=_e.IN_CAPTION}function d7e(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,jt.HTML),e.insertionMode=_e.IN_COLUMN_GROUP}function m7e(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(We.COLGROUP,M.COLGROUP),e.insertionMode=_e.IN_COLUMN_GROUP,hE(e,t)}function p7e(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,jt.HTML),e.insertionMode=_e.IN_TABLE_BODY}function h7e(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(We.TBODY,M.TBODY),e.insertionMode=_e.IN_TABLE_BODY,D6(e,t)}function f7e(e,t){e.openElements.hasInTableScope(M.TABLE)&&(e.openElements.popUntilTagNamePopped(M.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function g7e(e,t){QW(t)?e._appendElement(t,jt.HTML):iv(e,t),t.ackSelfClosing=!0}function x7e(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,jt.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function dx(e,t){switch(t.tagID){case M.TD:case M.TH:case M.TR:{h7e(e,t);break}case M.STYLE:case M.SCRIPT:case M.TEMPLATE:{Su(e,t);break}case M.COL:{m7e(e,t);break}case M.FORM:{x7e(e,t);break}case M.TABLE:{f7e(e,t);break}case M.TBODY:case M.TFOOT:case M.THEAD:{p7e(e,t);break}case M.INPUT:{g7e(e,t);break}case M.CAPTION:{u7e(e,t);break}case M.COLGROUP:{d7e(e,t);break}default:iv(e,t)}}function w2(e,t){switch(t.tagID){case M.TABLE:{e.openElements.hasInTableScope(M.TABLE)&&(e.openElements.popUntilTagNamePopped(M.TABLE),e._resetInsertionMode());break}case M.TEMPLATE:{uf(e,t);break}case M.BODY:case M.CAPTION:case M.COL:case M.COLGROUP:case M.HTML:case M.TBODY:case M.TD:case M.TFOOT:case M.TH:case M.THEAD:case M.TR:break;default:iv(e,t)}}function iv(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,_6(e,t),e.fosterParentingEnabled=n}function eY(e,t){e.pendingCharacterTokens.push(t)}function tY(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Q1(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)iv(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const nY=new Set([M.CAPTION,M.COL,M.COLGROUP,M.TBODY,M.TD,M.TFOOT,M.TH,M.THEAD,M.TR]);function b7e(e,t){const n=t.tagID;nY.has(n)?e.openElements.hasInTableScope(M.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(M.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=_e.IN_TABLE,dx(e,t)):ko(e,t)}function v7e(e,t){const n=t.tagID;switch(n){case M.CAPTION:case M.TABLE:{e.openElements.hasInTableScope(M.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(M.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=_e.IN_TABLE,n===M.TABLE&&w2(e,t));break}case M.BODY:case M.COL:case M.COLGROUP:case M.HTML:case M.TBODY:case M.TD:case M.TFOOT:case M.TH:case M.THEAD:case M.TR:break;default:P6(e,t)}}function hE(e,t){switch(t.tagID){case M.HTML:{ko(e,t);break}case M.COL:{e._appendElement(t,jt.HTML),t.ackSelfClosing=!0;break}case M.TEMPLATE:{Su(e,t);break}default:Z3(e,t)}}function y7e(e,t){switch(t.tagID){case M.COLGROUP:{e.openElements.currentTagId===M.COLGROUP&&(e.openElements.pop(),e.insertionMode=_e.IN_TABLE);break}case M.TEMPLATE:{uf(e,t);break}case M.COL:break;default:Z3(e,t)}}function Z3(e,t){e.openElements.currentTagId===M.COLGROUP&&(e.openElements.pop(),e.insertionMode=_e.IN_TABLE,e._processToken(t))}function D6(e,t){switch(t.tagID){case M.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,jt.HTML),e.insertionMode=_e.IN_ROW;break}case M.TH:case M.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(We.TR,M.TR),e.insertionMode=_e.IN_ROW,R6(e,t);break}case M.CAPTION:case M.COL:case M.COLGROUP:case M.TBODY:case M.TFOOT:case M.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=_e.IN_TABLE,dx(e,t));break}default:dx(e,t)}}function nj(e,t){const n=t.tagID;switch(t.tagID){case M.TBODY:case M.TFOOT:case M.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=_e.IN_TABLE);break}case M.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=_e.IN_TABLE,w2(e,t));break}case M.BODY:case M.CAPTION:case M.COL:case M.COLGROUP:case M.HTML:case M.TD:case M.TH:case M.TR:break;default:w2(e,t)}}function R6(e,t){switch(t.tagID){case M.TH:case M.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,jt.HTML),e.insertionMode=_e.IN_CELL,e.activeFormattingElements.insertMarker();break}case M.CAPTION:case M.COL:case M.COLGROUP:case M.TBODY:case M.TFOOT:case M.THEAD:case M.TR:{e.openElements.hasInTableScope(M.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=_e.IN_TABLE_BODY,D6(e,t));break}default:dx(e,t)}}function aY(e,t){switch(t.tagID){case M.TR:{e.openElements.hasInTableScope(M.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=_e.IN_TABLE_BODY);break}case M.TABLE:{e.openElements.hasInTableScope(M.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=_e.IN_TABLE_BODY,nj(e,t));break}case M.TBODY:case M.TFOOT:case M.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(M.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=_e.IN_TABLE_BODY,nj(e,t));break}case M.BODY:case M.CAPTION:case M.COL:case M.COLGROUP:case M.HTML:case M.TD:case M.TH:break;default:w2(e,t)}}function w7e(e,t){const n=t.tagID;nY.has(n)?(e.openElements.hasInTableScope(M.TD)||e.openElements.hasInTableScope(M.TH))&&(e._closeTableCell(),R6(e,t)):ko(e,t)}function T7e(e,t){const n=t.tagID;switch(n){case M.TD:case M.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=_e.IN_ROW);break}case M.TABLE:case M.TBODY:case M.TFOOT:case M.THEAD:case M.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),aY(e,t));break}case M.BODY:case M.CAPTION:case M.COL:case M.COLGROUP:case M.HTML:break;default:P6(e,t)}}function sY(e,t){switch(t.tagID){case M.HTML:{ko(e,t);break}case M.OPTION:{e.openElements.currentTagId===M.OPTION&&e.openElements.pop(),e._insertElement(t,jt.HTML);break}case M.OPTGROUP:{e.openElements.currentTagId===M.OPTION&&e.openElements.pop(),e.openElements.currentTagId===M.OPTGROUP&&e.openElements.pop(),e._insertElement(t,jt.HTML);break}case M.HR:{e.openElements.currentTagId===M.OPTION&&e.openElements.pop(),e.openElements.currentTagId===M.OPTGROUP&&e.openElements.pop(),e._appendElement(t,jt.HTML),t.ackSelfClosing=!0;break}case M.INPUT:case M.KEYGEN:case M.TEXTAREA:case M.SELECT:{e.openElements.hasInSelectScope(M.SELECT)&&(e.openElements.popUntilTagNamePopped(M.SELECT),e._resetInsertionMode(),t.tagID!==M.SELECT&&e._processStartTag(t));break}case M.SCRIPT:case M.TEMPLATE:{Su(e,t);break}}}function rY(e,t){switch(t.tagID){case M.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===M.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===M.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===M.OPTGROUP&&e.openElements.pop();break}case M.OPTION:{e.openElements.currentTagId===M.OPTION&&e.openElements.pop();break}case M.SELECT:{e.openElements.hasInSelectScope(M.SELECT)&&(e.openElements.popUntilTagNamePopped(M.SELECT),e._resetInsertionMode());break}case M.TEMPLATE:{uf(e,t);break}}}function N7e(e,t){const n=t.tagID;n===M.CAPTION||n===M.TABLE||n===M.TBODY||n===M.TFOOT||n===M.THEAD||n===M.TR||n===M.TD||n===M.TH?(e.openElements.popUntilTagNamePopped(M.SELECT),e._resetInsertionMode(),e._processStartTag(t)):sY(e,t)}function k7e(e,t){const n=t.tagID;n===M.CAPTION||n===M.TABLE||n===M.TBODY||n===M.TFOOT||n===M.THEAD||n===M.TR||n===M.TD||n===M.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(M.SELECT),e._resetInsertionMode(),e.onEndTag(t)):rY(e,t)}function j7e(e,t){switch(t.tagID){case M.BASE:case M.BASEFONT:case M.BGSOUND:case M.LINK:case M.META:case M.NOFRAMES:case M.SCRIPT:case M.STYLE:case M.TEMPLATE:case M.TITLE:{Su(e,t);break}case M.CAPTION:case M.COLGROUP:case M.TBODY:case M.TFOOT:case M.THEAD:{e.tmplInsertionModeStack[0]=_e.IN_TABLE,e.insertionMode=_e.IN_TABLE,dx(e,t);break}case M.COL:{e.tmplInsertionModeStack[0]=_e.IN_COLUMN_GROUP,e.insertionMode=_e.IN_COLUMN_GROUP,hE(e,t);break}case M.TR:{e.tmplInsertionModeStack[0]=_e.IN_TABLE_BODY,e.insertionMode=_e.IN_TABLE_BODY,D6(e,t);break}case M.TD:case M.TH:{e.tmplInsertionModeStack[0]=_e.IN_ROW,e.insertionMode=_e.IN_ROW,R6(e,t);break}default:e.tmplInsertionModeStack[0]=_e.IN_BODY,e.insertionMode=_e.IN_BODY,ko(e,t)}}function A7e(e,t){t.tagID===M.TEMPLATE&&uf(e,t)}function iY(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(M.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):pE(e,t)}function E7e(e,t){t.tagID===M.HTML?ko(e,t):e4(e,t)}function oY(e,t){var n;if(t.tagID===M.HTML){if(e.fragmentContext||(e.insertionMode=_e.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===M.HTML){e._setEndLocation(e.openElements.items[0],t);const a=e.openElements.items[1];a&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(a))===null||n===void 0)&&n.endTag)&&e._setEndLocation(a,t)}}else e4(e,t)}function e4(e,t){e.insertionMode=_e.IN_BODY,_6(e,t)}function C7e(e,t){switch(t.tagID){case M.HTML:{ko(e,t);break}case M.FRAMESET:{e._insertElement(t,jt.HTML);break}case M.FRAME:{e._appendElement(t,jt.HTML),t.ackSelfClosing=!0;break}case M.NOFRAMES:{Su(e,t);break}}}function S7e(e,t){t.tagID===M.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==M.FRAMESET&&(e.insertionMode=_e.AFTER_FRAMESET))}function _7e(e,t){switch(t.tagID){case M.HTML:{ko(e,t);break}case M.NOFRAMES:{Su(e,t);break}}}function P7e(e,t){t.tagID===M.HTML&&(e.insertionMode=_e.AFTER_AFTER_FRAMESET)}function D7e(e,t){t.tagID===M.HTML?ko(e,t):i3(e,t)}function i3(e,t){e.insertionMode=_e.IN_BODY,_6(e,t)}function R7e(e,t){switch(t.tagID){case M.HTML:{ko(e,t);break}case M.NOFRAMES:{Su(e,t);break}}}function I7e(e,t){t.chars=ur,e._insertCharacters(t)}function M7e(e,t){e._insertCharacters(t),e.framesetOk=!1}function cY(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==jt.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function L7e(e,t){if(Q8e(t))cY(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),a=e.treeAdapter.getNamespaceURI(n);a===jt.MATHML?qW(t):a===jt.SVG&&(K8e(t),GW(t)),dE(t),t.selfClosing?e._appendElement(t,a):e._insertElement(t,a),t.ackSelfClosing=!0}}function O7e(e,t){if(t.tagID===M.P||t.tagID===M.BR){cY(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const a=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(a)===jt.HTML){e._endTagOutsideForeignContent(t);break}const r=e.treeAdapter.getTagName(a);if(r.toLowerCase()===t.tagName){t.tagName=r,e.openElements.shortenToLength(n);break}}}We.AREA,We.BASE,We.BASEFONT,We.BGSOUND,We.BR,We.COL,We.EMBED,We.FRAME,We.HR,We.IMG,We.INPUT,We.KEYGEN,We.LINK,We.META,We.PARAM,We.SOURCE,We.TRACK,We.WBR;const B7e=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,F7e=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),bO={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function lY(e,t){const n=Y7e(e),a=lE("type",{handlers:{root:U7e,element:H7e,text:V7e,comment:dY,doctype:z7e,raw:q7e},unknown:G7e}),r={parser:n?new fO(bO):fO.getFragmentParser(void 0,bO),handle(c){a(c,r)},stitches:!1,options:t||{}};a(e,r),Rx(r,Bd());const i=n?r.parser.document:r.parser.getFragment(),o=HNe(i,{file:r.options.file});return r.stitches&&z0(o,"comment",function(c,l,d){const m=c;if(m.value.stitch&&d&&l!==void 0){const h=d.children;return h[l]=m.value.stitch,l}}),o.type==="root"&&o.children.length===1&&o.children[0].type===e.type?o.children[0]:o}function uY(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function U7e(e,t){uY(e.children,t)}function H7e(e,t){J7e(e,t),uY(e.children,t),W7e(e,t)}function V7e(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:va.CHARACTER,chars:e.value,location:ov(e)};Rx(t,Bd(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function z7e(e,t){const n={type:va.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:ov(e)};Rx(t,Bd(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function $7e(e,t){t.stitches=!0;const n=X7e(e);if("children"in e&&"children"in n){const a=lY({type:"root",children:e.children},t.options);n.children=a.children}dY({type:"comment",value:{stitch:n}},t)}function dY(e,t){const n=e.value,a={type:va.COMMENT,data:n,location:ov(e)};Rx(t,Bd(e)),t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken)}function q7e(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,mY(t,Bd(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(B7e,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function G7e(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))$7e(n,t);else{let a="";throw F7e.has(n.type)&&(a=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+a)}}function Rx(e,t){mY(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Kr.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function mY(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function J7e(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Kr.PLAINTEXT)return;Rx(t,Bd(e));const a=t.parser.openElements.current;let r="namespaceURI"in a?a.namespaceURI:yd.html;r===yd.html&&n==="svg"&&(r=yd.svg);const i=n8e({...e,children:[]},{space:r===yd.svg?"svg":"html"}),o={type:va.START_TAG,tagName:n,tagID:Dx(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:ov(e)};t.parser.currentToken=o,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function W7e(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&MW.includes(n)||t.parser.tokenizer.state===Kr.PLAINTEXT)return;Rx(t,b6(e));const a={type:va.END_TAG,tagName:n,tagID:Dx(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:ov(e)};t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Kr.RCDATA||t.parser.tokenizer.state===Kr.RAWTEXT||t.parser.tokenizer.state===Kr.SCRIPT_DATA)&&(t.parser.tokenizer.state=Kr.DATA)}function Y7e(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function ov(e){const t=Bd(e)||{line:void 0,column:void 0,offset:void 0},n=b6(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function X7e(e){return"children"in e?lx({...e,children:[]}):lx(e)}function Q7e(e){return function(t,n){return lY(t,{...e,file:n})}}function t4(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let a=0,r=n.indexOf(t);for(;r!==-1;)a++,r=n.indexOf(t,r+t.length);return a}function K7e(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Z7e(e,t,n){const r=ev((n||{}).ignore||[]),i=eje(t);let o=-1;for(;++o<i.length;)B9(e,"text",c);function c(d,m){let h=-1,x;for(;++h<m.length;){const f=m[h],b=x?x.children:void 0;if(r(f,b?b.indexOf(f):void 0,x))return;x=f}if(x)return l(d,m)}function l(d,m){const h=m[m.length-1],x=i[o][0],f=i[o][1];let b=0;const w=h.children.indexOf(d);let T=!1,A=[];x.lastIndex=0;let E=x.exec(d.value);for(;E;){const D=E.index,S={index:E.index,input:E.input,stack:[...m,d]};let R=f(...E,S);
vendor: 4,720 bytes, lines 1908-1909
1908if(typeof R=="string"&&(R=R.length>0?{type:"text",value:R}:void 0),R===!1?x.lastIndex=D+1:(b!==D&&A.push({type:"text",value:d.value.slice(b,D)}),Array.isArray(R)?A.push(...R):R&&A.push(R),b=D+E[0].length,T=!0),!x.global)break;E=x.exec(d.value)}return T?(b<d.value.length&&A.push({type:"text",value:d.value.slice(b)}),h.children.splice(w,1,...A)):A=[d],w+A.length}}function eje(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let a=-1;for(;++a<n.length;){const r=n[a];t.push([tje(r[0]),nje(r[1])])}return t}function tje(e){return typeof e=="string"?new RegExp(K7e(e),"g"):e}function nje(e){return typeof e=="function"?e:function(){return e}}const S8="phrasing",_8=["autolink","link","image","label"];function aje(){return{transforms:[uje],enter:{literalAutolink:rje,literalAutolinkEmail:P8,literalAutolinkHttp:P8,literalAutolinkWww:P8},exit:{literalAutolink:lje,literalAutolinkEmail:cje,literalAutolinkHttp:ije,literalAutolinkWww:oje}}}function sje(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:S8,notInConstruct:_8},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:S8,notInConstruct:_8},{character:":",before:"[ps]",after:"\\/",inConstruct:S8,notInConstruct:_8}]}}function rje(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function P8(e){this.config.enter.autolinkProtocol.call(this,e)}function ije(e){this.config.exit.autolinkProtocol.call(this,e)}function oje(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function cje(e){this.config.exit.autolinkEmail.call(this,e)}function lje(e){this.exit(e)}function uje(e){Z7e(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,dje],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),mje]],{ignore:["link","linkReference"]})}function dje(e,t,n,a,r){let i="";if(!pY(r)||(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!pje(n)))return!1;const o=hje(n+a);if(!o[0])return!1;const c={type:"link",title:null,url:i+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[c,{type:"text",value:o[1]}]:c}function mje(e,t,n,a){return!pY(a,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function pje(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function hje(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],a=n.indexOf(")");const r=t4(e,"(");let i=t4(e,")");for(;a!==-1&&r>i;)e+=n.slice(0,a+1),n=n.slice(a+1),a=n.indexOf(")"),i++;return[e,n]}function pY(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||V0(n)||v6(n))&&(!t||n!==47)}hY.peek=Nje;function fje(){this.buffer()}function gje(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function xje(){this.buffer()}function bje(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function vje(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=xu(this.sliceSerialize(e)).toLowerCase(),n.label=t}function yje(e){this.exit(e)}function wje(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=xu(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Tje(e){this.exit(e)}function Nje(){return"["}function hY(e,t,n,a){const r=n.createTracker(a);let i=r.move("[^");const o=n.enter("footnoteReference"),c=n.enter("reference");return i+=r.move(n.safe(n.associationId(e),{after:"]",before:i})),c(),o(),i+=r.move("]"),i}function kje(){return{enter:{gfmFootnoteCallString:fje,gfmFootnoteCall:gje,gfmFootnoteDefinitionLabelString:xje,gfmFootnoteDefinition:bje},exit:{gfmFootnoteCallString:vje,gfmFootnoteCall:yje,gfmFootnoteDefinitionLabelString:wje,gfmFootnoteDefinition:Tje}}}function jje(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:hY},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(a,r,i,o){const c=i.createTracker(o);let l=c.move("[^");const d=i.enter("footnoteDefinition"),m=i.enter("label");return l+=c.move(i.safe(i.associationId(a),{before:l,after:"]"})),m(),l+=c.move("]:"),a.children&&a.children.length>0&&(c.shift(4),l+=c.move((t?` 1909`:" ")+i.indentLines(i.containerFlow(a,c.current()),t?fY:Aje))),d(),l}}function Aje(e,t,n){return t===0?e:fY(e,t,n)}function fY(e,t,n){return(n?"":" ")+e}const Eje=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];gY.peek=Dje;
vendor: 11,818 bytes, lines 1909-1921
1909function Cje(){return{canContainEols:["delete"],enter:{strikethrough:_je},exit:{strikethrough:Pje}}}function Sje(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Eje}],handlers:{delete:gY}}}function _je(e){this.enter({type:"delete",children:[]},e)}function Pje(e){this.exit(e)}function gY(e,t,n,a){const r=n.createTracker(a),i=n.enter("strikethrough");let o=r.move("~~");return o+=n.containerPhrasing(e,{...r.current(),before:o,after:"~"}),o+=r.move("~~"),i(),o}function Dje(){return"~"}function Rje(e){return e.length}function Ije(e,t){const n=t||{},a=(n.align||[]).concat(),r=n.stringLength||Rje,i=[],o=[],c=[],l=[];let d=0,m=-1;for(;++m<e.length;){const y=[],w=[];let T=-1;for(e[m].length>d&&(d=e[m].length);++T<e[m].length;){const A=Mje(e[m][T]);if(n.alignDelimiters!==!1){const E=r(A);w[T]=E,(l[T]===void 0||E>l[T])&&(l[T]=E)}y.push(A)}o[m]=y,c[m]=w}let h=-1;if(typeof a=="object"&&"length"in a)for(;++h<d;)i[h]=vO(a[h]);else{const y=vO(a);for(;++h<d;)i[h]=y}h=-1;const x=[],f=[];for(;++h<d;){const y=i[h];let w="",T="";y===99?(w=":",T=":"):y===108?w=":":y===114&&(T=":");let A=n.alignDelimiters===!1?1:Math.max(1,l[h]-w.length-T.length);const E=w+"-".repeat(A)+T;n.alignDelimiters!==!1&&(A=w.length+A+T.length,A>l[h]&&(l[h]=A),f[h]=A),x[h]=E}o.splice(1,0,x),c.splice(1,0,f),m=-1;const b=[];for(;++m<o.length;){const y=o[m],w=c[m];h=-1;const T=[];for(;++h<d;){const A=y[h]||"";let E="",D="";if(n.alignDelimiters!==!1){const S=l[h]-(w[h]||0),R=i[h];R===114?E=" ".repeat(S):R===99?S%2?(E=" ".repeat(S/2+.5),D=" ".repeat(S/2-.5)):(E=" ".repeat(S/2),D=E):D=" ".repeat(S)}n.delimiterStart!==!1&&!h&&T.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&A==="")&&(n.delimiterStart!==!1||h)&&T.push(" "),n.alignDelimiters!==!1&&T.push(E),T.push(A),n.alignDelimiters!==!1&&T.push(D),n.padding!==!1&&T.push(" "),(n.delimiterEnd!==!1||h!==d-1)&&T.push("|")}b.push(n.delimiterEnd===!1?T.join("").replace(/ +$/,""):T.join(""))}return b.join(` 1910`)}function Mje(e){return e==null?"":String(e)}function vO(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Lje(e,t,n,a){const r=n.enter("blockquote"),i=n.createTracker(a);i.move("> "),i.shift(2);const o=n.indentLines(n.containerFlow(e,i.current()),Oje);return r(),o}function Oje(e,t,n){return">"+(n?"":" ")+e}function Bje(e,t){return yO(e,t.inConstruct,!0)&&!yO(e,t.notInConstruct,!1)}function yO(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let a=-1;for(;++a<t.length;)if(e.includes(t[a]))return!0;return!1}function wO(e,t,n,a){let r=-1;for(;++r<n.unsafe.length;)if(n.unsafe[r].character===` 1911`&&Bje(n.stack,n.unsafe[r]))return/[ \t]/.test(a.before)?"":" ";return`\\ 1912`}function xY(e,t){const n=String(e);let a=n.indexOf(t),r=a,i=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===r?++i>o&&(o=i):i=1,r=a+t.length,a=n.indexOf(t,r);return o}function Fje(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Uje(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Hje(e,t,n,a){const r=Uje(n),i=e.value||"",o=r==="`"?"GraveAccent":"Tilde";if(Fje(e,n)){const h=n.enter("codeIndented"),x=n.indentLines(i,Vje);return h(),x}const c=n.createTracker(a),l=r.repeat(Math.max(xY(i,r)+1,3)),d=n.enter("codeFenced");let m=c.move(l);if(e.lang){const h=n.enter(`codeFencedLang${o}`);m+=c.move(n.safe(e.lang,{before:m,after:" ",encode:["`"],...c.current()})),h()}if(e.lang&&e.meta){const h=n.enter(`codeFencedMeta${o}`);m+=c.move(" "),m+=c.move(n.safe(e.meta,{before:m,after:` 1913`,encode:["`"],...c.current()})),h()}return m+=c.move(` 1914`),i&&(m+=c.move(i+` 1915`)),m+=c.move(l),d(),m}function Vje(e,t,n){return(n?"":" ")+e}function fE(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function zje(e,t,n,a){const r=fE(n),i=r==='"'?"Quote":"Apostrophe",o=n.enter("definition");let c=n.enter("label");const l=n.createTracker(a);let d=l.move("[");return d+=l.move(n.safe(n.associationId(e),{before:d,after:"]",...l.current()})),d+=l.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),d+=l.move("<"),d+=l.move(n.safe(e.url,{before:d,after:">",...l.current()})),d+=l.move(">")):(c=n.enter("destinationRaw"),d+=l.move(n.safe(e.url,{before:d,after:e.title?" ":` 1916`,...l.current()}))),c(),e.title&&(c=n.enter(`title${i}`),d+=l.move(" "+r),d+=l.move(n.safe(e.title,{before:d,after:r,...l.current()})),d+=l.move(r),c()),o(),d}function $je(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function T2(e){return"&#x"+e.toString(16).toUpperCase()+";"}function n4(e,t,n){const a=cx(e),r=cx(t);return a===void 0?r===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}bY.peek=qje;function bY(e,t,n,a){const r=$je(n),i=n.enter("emphasis"),o=n.createTracker(a),c=o.move(r);let l=o.move(n.containerPhrasing(e,{after:r,before:c,...o.current()}));const d=l.charCodeAt(0),m=n4(a.before.charCodeAt(a.before.length-1),d,r);m.inside&&(l=T2(d)+l.slice(1));const h=l.charCodeAt(l.length-1),x=n4(a.after.charCodeAt(0),h,r);x.inside&&(l=l.slice(0,-1)+T2(h));const f=o.move(r);return i(),n.attentionEncodeSurroundingInfo={after:x.outside,before:m.outside},c+l+f}function qje(e,t,n){return n.options.emphasis||"*"}function Gje(e,t){let n=!1;return z0(e,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return n=!0,M7}),!!((!e.depth||e.depth<3)&&P9(e)&&(t.options.setext||n))}function Jje(e,t,n,a){const r=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(a);if(Gje(e,n)){const m=n.enter("headingSetext"),h=n.enter("phrasing"),x=n.containerPhrasing(e,{...i.current(),before:` 1917`,after:` 1918`});return h(),m(),x+` 1919`+(r===1?"=":"-").repeat(x.length-(Math.max(x.lastIndexOf("\r"),x.lastIndexOf(` 1920`))+1))}const o="#".repeat(r),c=n.enter("headingAtx"),l=n.enter("phrasing");i.move(o+" ");let d=n.containerPhrasing(e,{before:"# ",after:` 1921`,...i.current()});return/^[\t ]/.test(d)&&(d=T2(d.charCodeAt(0))+d.slice(1)),d=d?o+" "+d:o,n.options.closeAtx&&(d+=" "+o),l(),c(),d}vY.peek=Wje;function vY(e){return e.value||""}function Wje(){return"<"}yY.peek=Yje;function yY(e,t,n,a){const r=fE(n),i=r==='"'?"Quote":"Apostrophe",o=n.enter("image");let c=n.enter("label");const l=n.createTracker(a);let d=l.move("![");return d+=l.move(n.safe(e.alt,{before:d,after:"]",...l.current()})),d+=l.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),d+=l.move("<"),d+=l.move(n.safe(e.url,{before:d,after:">",...l.current()})),d+=l.move(">")):(c=n.enter("destinationRaw"),d+=l.move(n.safe(e.url,{before:d,after:e.title?" ":")",...l.current()}))),c(),e.title&&(c=n.enter(`title${i}`),d+=l.move(" "+r),d+=l.move(n.safe(e.title,{before:d,after:r,...l.current()})),d+=l.move(r),c()),d+=l.move(")"),o(),d}function Yje(){return"!"}wY.peek=Xje;function wY(e,t,n,a){const r=e.referenceType,i=n.enter("imageReference");let o=n.enter("label");const c=n.createTracker(a);let l=c.move("![");const d=n.safe(e.alt,{before:l,after:"]",...c.current()});l+=c.move(d+"]["),o();const m=n.stack;n.stack=[],o=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...c.current()});return o(),n.stack=m,i(),r==="full"||!d||d!==h?l+=c.move(h+"]"):r==="shortcut"?l=l.slice(0,-1):l+=c.move("]"),l}function Xje(){return"!"}TY.peek=Qje;function TY(e,t,n){let a=e.value||"",r="`",i=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(a);)r+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++i<n.unsafe.length;){const o=n.unsafe[i],c=n.compilePattern(o);let l;if(o.atBreak)for(;l=c.exec(a);){let d=l.index;a.charCodeAt(d)===10&&a.charCodeAt(d-1)===13&&d--,a=a.slice(0,d)+" "+a.slice(l.index+1)}}return r+a+r}function Qje(){return"`"}function NY(e,t){const n=P9(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}kY.peek=Kje;function kY(e,t,n,a){const r=fE(n),i=r==='"'?"Quote":"Apostrophe",o=n.createTracker(a);let c,l;if(NY(e,n)){const m=n.stack;n.stack=[],c=n.enter("autolink");let h=o.move("<");return h+=o.move(n.containerPhrasing(e,{before:h,after:">",...o.current()})),h+=o.move(">"),c(),n.stack=m,h}c=n.enter("link"),l=n.enter("label");let d=o.move("[");return d+=o.move(n.containerPhrasing(e,{before:d,after:"](",...o.current()})),d+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),d+=o.move("<"),d+=o.move(n.safe(e.url,{before:d,after:">",...o.current()})),d+=o.move(">")):(l=n.enter("destinationRaw"),d+=o.move(n.safe(e.url,{before:d,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=n.enter(`title${i}`),d+=o.move(" "+r),d+=o.move(n.safe(e.title,{before:d,after:r,...o.current()})),d+=o.move(r),l()),d+=o.move(")"),c(),d}function Kje(e,t,n){return NY(e,n)?"<":"["}jY.peek=Zje;function jY(e,t,n,a){const r=e.referenceType,i=n.enter("linkReference");let o=n.enter("label");const c=n.createTracker(a);let l=c.move("[");const d=n.containerPhrasing(e,{before:l,after:"]",...c.current()});l+=c.move(d+"]["),o();const m=n.stack;n.stack=[],o=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...c.current()});return o(),n.stack=m,i(),r==="full"||!d||d!==h?l+=c.move(h+"]"):r==="shortcut"?l=l.slice(0,-1):l+=c.move("]"),l}function Zje(){return"["}function gE(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function eAe(e){const t=gE(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function tAe(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function AY(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function nAe(e,t,n,a){const r=n.enter("list"),i=n.bulletCurrent;let o=e.ordered?tAe(n):gE(n);const c=e.ordered?o==="."?")":".":eAe(n);let l=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&m&&(!m.children||!m.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),AY(n)===o&&m){let h=-1;for(;++h<e.children.length;){const x=e.children[h];if(x&&x.type==="listItem"&&x.children&&x.children[0]&&x.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(o=c),n.bulletCurrent=o;const d=n.containerFlow(e,a);return n.bulletLastUsed=o,n.bulletCurrent=i,r(),d}function aAe(e){const t=e.options.listItemIndent||"one";
vendor: 5,972 bytes, lines 1921-1923
1921if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function sAe(e,t,n,a){const r=aAe(n);let i=n.bulletCurrent||gE(n);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let o=i.length+1;(r==="tab"||r==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const c=n.createTracker(a);c.move(i+" ".repeat(o-i.length)),c.shift(o);const l=n.enter("listItem"),d=n.indentLines(n.containerFlow(e,c.current()),m);return l(),d;function m(h,x,f){return x?(f?"":" ".repeat(o))+h:(f?i:i+" ".repeat(o-i.length))+h}}function rAe(e,t,n,a){const r=n.enter("paragraph"),i=n.enter("phrasing"),o=n.containerPhrasing(e,a);return i(),r(),o}const iAe=ev(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function oAe(e,t,n,a){return(e.children.some(function(o){return iAe(o)})?n.containerPhrasing:n.containerFlow).call(n,e,a)}function cAe(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}EY.peek=lAe;function EY(e,t,n,a){const r=cAe(n),i=n.enter("strong"),o=n.createTracker(a),c=o.move(r+r);let l=o.move(n.containerPhrasing(e,{after:r,before:c,...o.current()}));const d=l.charCodeAt(0),m=n4(a.before.charCodeAt(a.before.length-1),d,r);m.inside&&(l=T2(d)+l.slice(1));const h=l.charCodeAt(l.length-1),x=n4(a.after.charCodeAt(0),h,r);x.inside&&(l=l.slice(0,-1)+T2(h));const f=o.move(r+r);return i(),n.attentionEncodeSurroundingInfo={after:x.outside,before:m.outside},c+l+f}function lAe(e,t,n){return n.options.strong||"*"}function uAe(e,t,n,a){return n.safe(e.value,a)}function dAe(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function mAe(e,t,n){const a=(AY(n)+(n.options.ruleSpaces?" ":"")).repeat(dAe(n));return n.options.ruleSpaces?a.slice(0,-1):a}const CY={blockquote:Lje,break:wO,code:Hje,definition:zje,emphasis:bY,hardBreak:wO,heading:Jje,html:vY,image:yY,imageReference:wY,inlineCode:TY,link:kY,linkReference:jY,list:nAe,listItem:sAe,paragraph:rAe,root:oAe,strong:EY,text:uAe,thematicBreak:mAe};function pAe(){return{enter:{table:hAe,tableData:TO,tableHeader:TO,tableRow:gAe},exit:{codeText:xAe,table:fAe,tableData:D8,tableHeader:D8,tableRow:D8}}}function hAe(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function fAe(e){this.exit(e),this.data.inTable=void 0}function gAe(e){this.enter({type:"tableRow",children:[]},e)}function D8(e){this.exit(e)}function TO(e){this.enter({type:"tableCell",children:[]},e)}function xAe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,bAe));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function bAe(e,t){return t==="|"?t:e}function vAe(e){const t=e||{},n=t.tableCellPadding,a=t.tablePipeAlign,r=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` 1922`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:x,table:o,tableCell:l,tableRow:c}};function o(f,b,y,w){return d(m(f,y,w),f.align)}function c(f,b,y,w){const T=h(f,y,w),A=d([T]);return A.slice(0,A.indexOf(` 1923`))}function l(f,b,y,w){const T=y.enter("tableCell"),A=y.enter("phrasing"),E=y.containerPhrasing(f,{...w,before:i,after:i});return A(),T(),E}function d(f,b){return Ije(f,{align:b,alignDelimiters:a,padding:n,stringLength:r})}function m(f,b,y){const w=f.children;let T=-1;const A=[],E=b.enter("table");for(;++T<w.length;)A[T]=h(w[T],b,y);return E(),A}function h(f,b,y){const w=f.children;let T=-1;const A=[],E=b.enter("tableRow");for(;++T<w.length;)A[T]=l(w[T],f,b,y);return E(),A}function x(f,b,y){let w=CY.inlineCode(f,b,y);return y.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}function yAe(){return{exit:{taskListCheckValueChecked:NO,taskListCheckValueUnchecked:NO,paragraph:TAe}}}function wAe(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:NAe}}}function NO(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function TAe(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const a=n.children[0];if(a&&a.type==="text"){const r=t.children;let i=-1,o;for(;++i<r.length;){const c=r[i];if(c.type==="paragraph"){o=c;break}}o===n&&(a.value=a.value.slice(1),a.value.length===0?n.children.shift():n.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,n.position.start=Object.assign({},a.position.start)))}}this.exit(e)}function NAe(e,t,n,a){const r=e.children[0],i=typeof e.checked=="boolean"&&r&&r.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",c=n.createTracker(a);i&&c.move(o);let l=CY.listItem(e,t,n,{...a,...c.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),l;function d(m){return m+o}}function kAe(){return[aje(),kje(),Cje(),pAe(),yAe()]}function jAe(e){return{extensions:[sje(),jje(e),Sje(),vAe(e),wAe()]}}const AAe={tokenize:DAe,partial:!0},SY={tokenize:RAe,partial:!0},_Y={tokenize:IAe,partial:!0},PY={tokenize:MAe,partial:!0},EAe={tokenize:LAe,partial:!0},DY={name:"wwwAutolink",tokenize:_Ae,previous:IY},RY={name:"protocolAutolink",tokenize:PAe,previous:MY},Wm={name:"emailAutolink",tokenize:SAe,previous:LY},Vd={};function CAe(){return{text:Vd}}let d0=48;
vendor: 6,992 bytes, line 1923
1923for(;d0<123;)Vd[d0]=Wm,d0++,d0===58?d0=65:d0===91&&(d0=97);Vd[43]=Wm;Vd[45]=Wm;Vd[46]=Wm;Vd[95]=Wm;Vd[72]=[Wm,RY];Vd[104]=[Wm,RY];Vd[87]=[Wm,DY];Vd[119]=[Wm,DY];function SAe(e,t,n){const a=this;let r,i;return o;function o(h){return!aj(h)||!LY.call(a,a.previous)||xE(a.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(h))}function c(h){return aj(h)?(e.consume(h),c):h===64?(e.consume(h),l):n(h)}function l(h){return h===46?e.check(EAe,m,d)(h):h===45||h===95||To(h)?(i=!0,e.consume(h),l):m(h)}function d(h){return e.consume(h),r=!0,l}function m(h){return i&&r&&Lo(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function _Ae(e,t,n){const a=this;return r;function r(o){return o!==87&&o!==119||!IY.call(a,a.previous)||xE(a.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(AAe,e.attempt(SY,e.attempt(_Y,i),n),n)(o))}function i(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function PAe(e,t,n){const a=this;let r="",i=!1;return o;function o(h){return(h===72||h===104)&&MY.call(a,a.previous)&&!xE(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(h),e.consume(h),c):n(h)}function c(h){if(Lo(h)&&r.length<5)return r+=String.fromCodePoint(h),e.consume(h),c;if(h===58){const x=r.toLowerCase();if(x==="http"||x==="https")return e.consume(h),l}return n(h)}function l(h){return h===47?(e.consume(h),i?d:(i=!0,l)):n(h)}function d(h){return h===null||$3(h)||Ms(h)||V0(h)||v6(h)?n(h):e.attempt(SY,e.attempt(_Y,m),n)(h)}function m(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function DAe(e,t,n){let a=0;return r;function r(o){return(o===87||o===119)&&a<3?(a++,e.consume(o),r):o===46&&a===3?(e.consume(o),i):n(o)}function i(o){return o===null?n(o):t(o)}}function RAe(e,t,n){let a,r,i;return o;function o(d){return d===46||d===95?e.check(PY,l,c)(d):d===null||Ms(d)||V0(d)||d!==45&&v6(d)?l(d):(i=!0,e.consume(d),o)}function c(d){return d===95?a=!0:(r=a,a=void 0),e.consume(d),o}function l(d){return r||a||!i?n(d):t(d)}}function IAe(e,t){let n=0,a=0;return r;function r(o){return o===40?(n++,e.consume(o),r):o===41&&a<n?i(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(PY,t,i)(o):o===null||Ms(o)||V0(o)?t(o):(e.consume(o),r)}function i(o){return o===41&&a++,e.consume(o),r}}function MAe(e,t,n){return a;function a(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(e.consume(c),a):c===38?(e.consume(c),i):c===93?(e.consume(c),r):c===60||c===null||Ms(c)||V0(c)?t(c):n(c)}function r(c){return c===null||c===40||c===91||Ms(c)||V0(c)?t(c):a(c)}function i(c){return Lo(c)?o(c):n(c)}function o(c){return c===59?(e.consume(c),a):Lo(c)?(e.consume(c),o):n(c)}}function LAe(e,t,n){return a;function a(i){return e.consume(i),r}function r(i){return To(i)?n(i):t(i)}}function IY(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ms(e)}function MY(e){return!Lo(e)}function LY(e){return!(e===47||aj(e))}function aj(e){return e===43||e===45||e===46||e===95||To(e)}function xE(e){let t=e.length,n=!1;for(;t--;){const a=e[t][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){n=!0;break}if(a._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const OAe={tokenize:qAe,partial:!0};function BAe(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:VAe,continuation:{tokenize:zAe},exit:$Ae}},text:{91:{name:"gfmFootnoteCall",tokenize:HAe},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:FAe,resolveTo:UAe}}}}function FAe(e,t,n){const a=this;let r=a.events.length;const i=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let o;for(;r--;){const l=a.events[r][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return c;function c(l){if(!o||!o._balanced)return n(l);const d=xu(a.sliceSerialize({start:o.end,end:a.now()}));return d.codePointAt(0)!==94||!i.includes(d.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function UAe(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},c=[e[n+1],e[n+2],["enter",a,t],e[n+3],e[n+4],["enter",r,t],["exit",r,t],["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",a,t]];return e.splice(n,e.length-n+1,...c),e}function HAe(e,t,n){const a=this,r=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let i=0,o;return c;function c(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),l}function l(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(h){if(i>999||h===93&&!o||h===null||h===91||Ms(h))return n(h);if(h===93){e.exit("chunkString");const x=e.exit("gfmFootnoteCallString");return r.includes(xu(a.sliceSerialize(x)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return Ms(h)||(o=!0),i++,e.consume(h),h===92?m:d}function m(h){return h===91||h===92||h===93?(e.consume(h),i++,d):d(h)}}function VAe(e,t,n){const a=this,r=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let i,o=0,c;return l;function l(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):n(b)}function m(b){if(o>999||b===93&&!c||b===null||b===91||Ms(b))return n(b);if(b===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return i=xu(a.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),x}return Ms(b)||(c=!0),o++,e.consume(b),b===92?h:m}function h(b){return b===91||b===92||b===93?(e.consume(b),o++,m):m(b)}
vendor: 4,292 bytes, line 1923
1923function x(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),r.includes(i)||r.push(i),ya(e,f,"gfmFootnoteDefinitionWhitespace")):n(b)}function f(b){return t(b)}}function zAe(e,t,n){return e.check(Z2,t,e.attempt(OAe,t,n))}function $Ae(e){e.exit("gfmFootnoteDefinition")}function qAe(e,t,n){const a=this;return ya(e,r,"gfmFootnoteDefinitionIndent",5);function r(i){const o=a.events[a.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(i):n(i)}}function GAe(e){let n=(e||{}).singleTilde;const a={name:"strikethrough",tokenize:i,resolveAll:r};return n==null&&(n=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function r(o,c){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let d=l;for(;d--;)if(o[d][0]==="exit"&&o[d][1].type==="strikethroughSequenceTemporary"&&o[d][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[d][1].end.offset-o[d][1].start.offset){o[l][1].type="strikethroughSequence",o[d][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},o[d][1].start),end:Object.assign({},o[l][1].end)},h={type:"strikethroughText",start:Object.assign({},o[d][1].end),end:Object.assign({},o[l][1].start)},x=[["enter",m,c],["enter",o[d][1],c],["exit",o[d][1],c],["enter",h,c]],f=c.parser.constructs.insideSpan.null;f&&Zc(x,x.length,0,y6(f,o.slice(d+1,l),c)),Zc(x,x.length,0,[["exit",h,c],["enter",o[l][1],c],["exit",o[l][1],c],["exit",m,c]]),Zc(o,d-1,l-d+3,x),l=d+x.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function i(o,c,l){const d=this.previous,m=this.events;let h=0;return x;function x(b){return d===126&&m[m.length-1][1].type!=="characterEscape"?l(b):(o.enter("strikethroughSequenceTemporary"),f(b))}function f(b){const y=cx(d);if(b===126)return h>1?l(b):(o.consume(b),h++,f);if(h<2&&!n)return l(b);const w=o.exit("strikethroughSequenceTemporary"),T=cx(b);return w._open=!T||T===2&&!!y,w._close=!y||y===2&&!!T,c(b)}}}class JAe{constructor(){this.map=[]}add(t,n,a){WAe(this,t,n,a)}consume(t){if(this.map.sort(function(i,o){return i[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const a=[];for(;n>0;)n-=1,a.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];a.push(t.slice()),t.length=0;let r=a.pop();for(;r;){for(const i of r)t.push(i);r=a.pop()}this.map.length=0}}function WAe(e,t,n,a){let r=0;if(!(n===0&&a.length===0)){for(;r<e.map.length;){if(e.map[r][0]===t){e.map[r][1]+=n,e.map[r][2].push(...a);return}r+=1}e.map.push([t,n,a])}}function YAe(e,t){let n=!1;const a=[];for(;t<e.length;){const r=e[t];if(n){if(r[0]==="enter")r[1].type==="tableContent"&&a.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=a.length-1;a[i]=a[i]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return a}function XAe(){return{flow:{null:{name:"table",tokenize:QAe,resolveAll:KAe}}}}function QAe(e,t,n){const a=this;let r=0,i=0,o;return c;function c(_){let U=a.events.length-1;for(;U>-1;){const J=a.events[U][1].type;if(J==="lineEnding"||J==="linePrefix")U--;else break}const O=U>-1?a.events[U][1].type:null,W=O==="tableHead"||O==="tableRow"?R:l;return W===R&&a.parser.lazy[a.now().line]?n(_):W(_)}function l(_){return e.enter("tableHead"),e.enter("tableRow"),d(_)}function d(_){return _===124||(o=!0,i+=1),m(_)}function m(_){return _===null?n(_):Nn(_)?i>1?(i=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),f):n(_):Aa(_)?ya(e,m,"whitespace")(_):(i+=1,o&&(o=!1,r+=1),_===124?(e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),o=!0,m):(e.enter("data"),h(_)))}function h(_){return _===null||_===124||Ms(_)?(e.exit("data"),m(_)):(e.consume(_),_===92?x:h)}function x(_){return _===92||_===124?(e.consume(_),h):h(_)}function f(_){return a.interrupt=!1,a.parser.lazy[a.now().line]?n(_):(e.enter("tableDelimiterRow"),o=!1,Aa(_)?ya(e,b,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):b(_))}
vendor: 5,569 bytes, line 1923
1923function b(_){return _===45||_===58?w(_):_===124?(o=!0,e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),y):S(_)}function y(_){return Aa(_)?ya(e,w,"whitespace")(_):w(_)}function w(_){return _===58?(i+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(_),e.exit("tableDelimiterMarker"),T):_===45?(i+=1,T(_)):_===null||Nn(_)?D(_):S(_)}function T(_){return _===45?(e.enter("tableDelimiterFiller"),A(_)):S(_)}function A(_){return _===45?(e.consume(_),A):_===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(_),e.exit("tableDelimiterMarker"),E):(e.exit("tableDelimiterFiller"),E(_))}function E(_){return Aa(_)?ya(e,D,"whitespace")(_):D(_)}function D(_){return _===124?b(_):_===null||Nn(_)?!o||r!==i?S(_):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(_)):S(_)}function S(_){return n(_)}function R(_){return e.enter("tableRow"),L(_)}function L(_){return _===124?(e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),L):_===null||Nn(_)?(e.exit("tableRow"),t(_)):Aa(_)?ya(e,L,"whitespace")(_):(e.enter("data"),I(_))}function I(_){return _===null||_===124||Ms(_)?(e.exit("data"),L(_)):(e.consume(_),_===92?F:I)}function F(_){return _===92||_===124?(e.consume(_),I):I(_)}}function KAe(e,t){let n=-1,a=!0,r=0,i=[0,0,0,0],o=[0,0,0,0],c=!1,l=0,d,m,h;const x=new JAe;for(;++n<e.length;){const f=e[n],b=f[1];f[0]==="enter"?b.type==="tableHead"?(c=!1,l!==0&&(kO(x,t,l,d,m),m=void 0,l=0),d={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},x.add(n,0,[["enter",d,t]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(a=!0,h=void 0,i=[0,0,0,0],o=[0,n+1,0,0],c&&(c=!1,m={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},x.add(n,0,[["enter",m,t]])),r=b.type==="tableDelimiterRow"?2:m?3:1):r&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(a=!1,o[2]===0&&(i[1]!==0&&(o[0]=o[1],h=j5(x,t,i,r,void 0,h),i=[0,0,0,0]),o[2]=n)):b.type==="tableCellDivider"&&(a?a=!1:(i[1]!==0&&(o[0]=o[1],h=j5(x,t,i,r,void 0,h)),i=o,o=[i[1],n,0,0])):b.type==="tableHead"?(c=!0,l=n):b.type==="tableRow"||b.type==="tableDelimiterRow"?(l=n,i[1]!==0?(o[0]=o[1],h=j5(x,t,i,r,n,h)):o[1]!==0&&(h=j5(x,t,o,r,n,h)),r=0):r&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&kO(x,t,l,d,m),x.consume(t.events),n=-1;++n<t.events.length;){const f=t.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=YAe(t.events,n))}return e}function j5(e,t,n,a,r,i){const o=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",c="tableContent";n[0]!==0&&(i.end=Object.assign({},Eg(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const l=Eg(t.events,n[1]);if(i={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",i,t]]),n[2]!==0){const d=Eg(t.events,n[2]),m=Eg(t.events,n[3]),h={type:c,start:Object.assign({},d),end:Object.assign({},m)};if(e.add(n[2],0,[["enter",h,t]]),a!==2){const x=t.events[n[2]],f=t.events[n[3]];if(x[1].end=Object.assign({},f[1].end),x[1].type="chunkText",x[1].contentType="text",n[3]>n[2]+1){const b=n[2]+1,y=n[3]-n[2]-1;e.add(b,y,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return r!==void 0&&(i.end=Object.assign({},Eg(t.events,r)),e.add(r,0,[["exit",i,t]]),i=void 0),i}function kO(e,t,n,a,r){const i=[],o=Eg(t.events,n);r&&(r.end=Object.assign({},o),i.push(["exit",r,t])),a.end=Object.assign({},o),i.push(["exit",a,t]),e.add(n+1,0,i)}function Eg(e,t){const n=e[t],a=n[0]==="enter"?"start":"end";return n[1][a]}const ZAe={name:"tasklistCheck",tokenize:t9e};function e9e(){return{text:{91:ZAe}}}function t9e(e,t,n){const a=this;return r;function r(l){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),i)}function i(l){return Ms(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):n(l)}function c(l){return Nn(l)?t(l):Aa(l)?e.check({tokenize:n9e},t,n)(l):n(l)}}function n9e(e,t,n){return ya(e,a,"whitespace");function a(r){return r===null?n(r):t(r)}}function a9e(e){return GG([CAe(),BAe(),GAe(e),XAe(),e9e()])}const s9e={};function r9e(e){const t=this,n=e||s9e,a=t.data(),r=a.micromarkExtensions||(a.micromarkExtensions=[]),i=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),o=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);r.push(a9e(n)),i.push(kAe()),o.push(jAe(n))}function i9e(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:i},exit:{mathFlow:r,mathFlowFence:a,mathFlowFenceMeta:n,mathFlowValue:c,mathText:o,mathTextData:c}};function e(l){const d={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[d]}},l)}function t(){this.buffer()}function n(){const l=this.resume(),d=this.stack[this.stack.length-1];d.type,d.meta=l}function a(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function r(l){const d=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),m=this.stack[this.stack.length-1];m.type,this.exit(l),m.value=d;const h=m.data.hChildren[0];h.type,h.tagName,h.children.push({type:"text",value:d}),this.data.mathFlowInside=void 0}function i(l){this.enter({type:"inlineMath",value:"",data:{hName:"
1923code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},l),this.buffer()}function o(l){const d=this.resume(),m=this.stack[this.stack.length-1];m.type,this.exit(l),m.value=d,m.data.hChildren.push({type:"text",value:d})}function c(l){this.config.enter.data.call(this,l),this.config.exit.data.call(this,l)}}function o9e(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),a.peek=r,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` 1924`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:a}};function n(i,o,c,l){const d=i.value||"",m=c.createTracker(l),h="$".repeat(Math.max(xY(d,"$")+1,2)),x=c.enter("mathFlow");let f=m.move(h);if(i.meta){const b=c.enter("mathFlowMeta");f+=m.move(c.safe(i.meta,{after:` 1925`,before:f,encode:["$"],...m.current()})),b()}return f+=m.move(` 1926`),d&&(f+=m.move(d+` 1927`)),f+=m.move(h),x(),f}function a(i,o,c){let l=i.value||"",d=1;for(t||d++;new RegExp("(^|[^$])"+"\\$".repeat(d)+"([^$]|$)").test(l);)d++;const m="$".repeat(d);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let h=-1;for(;++h<c.unsafe.length;){const x=c.unsafe[h];if(!x.atBreak)continue;const f=c.compilePattern(x);let b;for(;b=f.exec(l);){let y=b.index;l.codePointAt(y)===10&&l.codePointAt(y-1)===13&&y--,l=l.slice(0,y)+" "+l.slice(b.index+1)}}return m+l+m}function r(){return"$"}}const c9e={tokenize:l9e,concrete:!0,name:"mathFlow"},jO={tokenize:u9e,partial:!0};function l9e(e,t,n){const a=this,r=a.events[a.events.length-1],i=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0;let o=0;return c;function c(A){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),l(A)}function l(A){return A===36?(e.consume(A),o++,l):o<2?n(A):(e.exit("mathFlowFenceSequence"),ya(e,d,"whitespace")(A))}function d(A){return A===null||Nn(A)?h(A):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(A))}function m(A){return A===null||Nn(A)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),h(A)):A===36?n(A):(e.consume(A),m)}function h(A){return e.exit("mathFlowFence"),a.interrupt?t(A):e.attempt(jO,x,w)(A)}function x(A){return e.attempt({tokenize:T,partial:!0},w,f)(A)}function f(A){return(i?ya(e,b,"linePrefix",i+1):b)(A)}function b(A){return A===null?w(A):Nn(A)?e.attempt(jO,x,w)(A):(e.enter("mathFlowValue"),y(A))}function y(A){return A===null||Nn(A)?(e.exit("mathFlowValue"),b(A)):(e.consume(A),y)}function w(A){return e.exit("mathFlow"),t(A)}function T(A,E,D){let S=0;return ya(A,R,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function R(F){return A.enter("mathFlowFence"),A.enter("mathFlowFenceSequence"),L(F)}function L(F){return F===36?(S++,A.consume(F),L):S<o?D(F):(A.exit("mathFlowFenceSequence"),ya(A,I,"whitespace")(F))}function I(F){return F===null||Nn(F)?(A.exit("mathFlowFence"),E(F)):D(F)}}}function u9e(e,t,n){const a=this;return r;function r(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return a.parser.lazy[a.now().line]?n(o):t(o)}}function d9e(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:a,resolve:m9e,previous:p9e,name:"mathText"};function a(r,i,o){let c=0,l,d;return m;function m(y){return r.enter("mathText"),r.enter("mathTextSequence"),h(y)}function h(y){return y===36?(r.consume(y),c++,h):c<2&&!n?o(y):(r.exit("mathTextSequence"),x(y))}function x(y){return y===null?o(y):y===36?(d=r.enter("mathTextSequence"),l=0,b(y)):y===32?(r.enter("space"),r.consume(y),r.exit("space"),x):Nn(y)?(r.enter("lineEnding"),r.consume(y),r.exit("lineEnding"),x):(r.enter("mathTextData"),f(y))}function f(y){return y===null||y===32||y===36||Nn(y)?(r.exit("mathTextData"),x(y)):(r.consume(y),f)}function b(y){return y===36?(r.consume(y),l++,b):l===c?(r.exit("mathTextSequence"),r.exit("mathText"),i(y)):(d.type="mathTextData",f(y))}}}function m9e(e){let t=e.length-4,n=3,a,r;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=n;++a<t;)if(e[a][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[n][1].type="mathTextPadding",n+=2,t-=2;break}}for(a=n-1,t++;++a<=t;)r===void 0?a!==t&&e[a][1].type!=="lineEnding"&&(r=a):(a===t||e[a][1].type==="lineEnding")&&(e[r][1].type="mathTextData",a!==r+2&&(e[r][1].end=e[a-1][1].end,e.splice(r+2,a-r-2),t-=a-r-2,a=r+2),r=void 0);return e}function p9e(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function h9e(e){return{flow:{36:c9e},text:{36:d9e(e)}}}const f9e={};function g9e(e){const t=this,n=e||f9e,a=t.data(),r=a.micromarkExtensions||(a.micromarkExtensions=[]),i=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),o=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);r.push(h9e(n)),i.push(i9e()),o.push(o9e(n))}function x9e({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:a=!1,blockedImageClass:r="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:i="text-gray-500"}){const o=t.length&&!t.every(l=>l==="*"),c=n.length&&!n.every(l=>l==="*");if(!e&&(o||c))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return l=>{const d=y9e(e,t,n,a,r,i);z0(l,d)}}function AO(e,t){if(typeof e!="string")return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}return null}}function b9e(e){return typeof e!="string"?!1:e.startsWith("/")}const v9e=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:"]);function EO(e,t,n,a=!1,r=!1){if(!e)return null;
vendor: 4,169 bytes, lines 1927-1962
1927if(typeof e=="string"&&e.startsWith("#")&&!r)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if(typeof e=="string"&&e.startsWith("data:"))return r&&a&&e.startsWith("data:image/")?e:null;const i=AO(e,n);if(!i||!v9e.has(i.protocol))return null;if(i.protocol==="mailto:")return i.href;const o=b9e(e);return i&&t.some(c=>{const l=AO(c,n);return!l||l.origin!==i.origin?!1:i.href.startsWith(l.href)})?o?i.pathname+i.search+i.hash:i.href:t.includes("*")?i.protocol!=="https:"&&i.protocol!=="http:"?null:o?i.pathname+i.search+i.hash:i.href:null}const R8=Symbol("node-seen"),y9e=(e,t,n,a,r,i)=>{const o=(c,l,d)=>{if(c.type!=="element"||c[R8])return cb;if(c.tagName==="a"){const m=EO(c.properties.href,t,e,!1,!1);return m===null?(c[R8]=!0,z0(c,o),d&&typeof l=="number"&&(d.children[l]={type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(c.properties.href),class:i},children:[...c.children,{type:"text",value:" [blocked]"}]}),G3):(c.properties.href=m,c.properties.target="_blank",c.properties.rel="noopener noreferrer",cb)}if(c.tagName==="img"){const m=EO(c.properties.src,n,e,a,!0);return m===null?(c[R8]=!0,z0(c,o),d&&typeof l=="number"&&(d.children[l]={type:"element",tagName:"span",properties:{class:r},children:[{type:"text",value:"[Image blocked: "+String(c.properties.alt||"No description")+"]"}]}),G3):(c.properties.src=m,cb)}return cb};return o};/** 1928 * @license lucide-react v0.542.0 - ISC 1929 * 1930 * This source code is licensed under the ISC license. 1931 * See the LICENSE file in the root directory of this source tree. 1932 */const w9e=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),T9e=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,a)=>a?a.toUpperCase():n.toLowerCase()),CO=e=>{const t=T9e(e);return t.charAt(0).toUpperCase()+t.slice(1)},OY=(...e)=>e.filter((t,n,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===n).join(" ").trim(),N9e=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/** 1933 * @license lucide-react v0.542.0 - ISC 1934 * 1935 * This source code is licensed under the ISC license. 1936 * See the LICENSE file in the root directory of this source tree. 1937 */var k9e={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"};/** 1938 * @license lucide-react v0.542.0 - ISC 1939 * 1940 * This source code is licensed under the ISC license. 1941 * See the LICENSE file in the root directory of this source tree. 1942 */const j9e=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:r="",children:i,iconNode:o,...c},l)=>k.createElement("svg",{ref:l,...k9e,width:t,height:t,stroke:e,strokeWidth:a?Number(n)*24/Number(t):n,className:OY("lucide",r),...!i&&!N9e(c)&&{"aria-hidden":"true"},...c},[...o.map(([d,m])=>k.createElement(d,m)),...Array.isArray(i)?i:[i]]));/** 1943 * @license lucide-react v0.542.0 - ISC 1944 * 1945 * This source code is licensed under the ISC license. 1946 * See the LICENSE file in the root directory of this source tree. 1947 */const bE=(e,t)=>{const n=k.forwardRef(({className:a,...r},i)=>k.createElement(j9e,{ref:i,iconNode:t,className:OY(`lucide-${w9e(CO(e))}`,`lucide-${e}`,a),...r}));return n.displayName=CO(e),n};/** 1948 * @license lucide-react v0.542.0 - ISC 1949 * 1950 * This source code is licensed under the ISC license. 1951 * See the LICENSE file in the root directory of this source tree. 1952 */const A9e=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],BY=bE("check",A9e);/** 1953 * @license lucide-react v0.542.0 - ISC 1954 * 1955 * This source code is licensed under the ISC license. 1956 * See the LICENSE file in the root directory of this source tree. 1957 */const E9e=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],FY=bE("copy",E9e);/** 1958 * @license lucide-react v0.542.0 - ISC 1959 * 1960 * This source code is licensed under the ISC license. 1961 * See the LICENSE file in the root directory of this source tree. 1962 */const C9e=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],vE=bE("download",C9e);
vendor: 44,321 bytes, lines 1962-1964
1962let ui=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function S9e(e){return yE(e)}function yE(e){return Array.isArray(e)?_9e(e):e instanceof RegExp?e:typeof e=="object"?P9e(e):e}function _9e(e){let t=[];for(let n=0,a=e.length;n<a;n++)t[n]=yE(e[n]);return t}function P9e(e){let t={};for(let n in e)t[n]=yE(e[n]);return t}function UY(e,...t){return t.forEach(n=>{for(let a in n)e[a]=n[a]}),e}function HY(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?HY(e.substring(0,e.length-1)):e.substr(~t+1)}var I8=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,A5=class{static hasCaptures(e){return e===null?!1:(I8.lastIndex=0,I8.test(e))}static replaceCaptures(e,t,n){return e.replace(I8,(a,r,i,o)=>{let c=n[parseInt(r||i,10)];if(c){let l=t.substring(c.start,c.end);for(;l[0]===".";)l=l.substring(1);switch(o){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return a})}};function VY(e,t){return e<t?-1:e>t?1:0}function zY(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,a=t.length;if(n===a){for(let r=0;r<n;r++){let i=VY(e[r],t[r]);if(i!==0)return i}return 0}return n-a}function SO(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function $Y(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var qY=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},a4=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(I9e(e),t)}static createFromParsedTheme(e,t){return L9e(e,t)}_cachedMatchRoot=new qY(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,a=this._cachedMatchRoot.get(t).find(r=>D9e(e.parent,r.parentScopes));return a?new GY(a.fontStyle,a.foreground,a.background):null}},M8=class o3{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const a of n)t=new o3(t,a);return t}static from(...t){let n=null;for(let a=0;a<t.length;a++)n=new o3(n,t[a]);return n}push(t){return new o3(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let a=this;for(;a&&a!==t;)n.push(a.scopeName),a=a.parent;return a===t?n.reverse():void 0}};function D9e(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let a=t[n],r=!1;if(a===">"){if(n===t.length-1)return!1;a=t[++n],r=!0}for(;e&&!R9e(e.scopeName,a);){if(r)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function R9e(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var GY=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function I9e(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],a=0;for(let r=0,i=t.length;r<i;r++){let o=t[r];if(!o.settings)continue;let c;if(typeof o.scope=="string"){let h=o.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),c=h.split(",")}else Array.isArray(o.scope)?c=o.scope:c=[""];let l=-1;if(typeof o.settings.fontStyle=="string"){l=0;let h=o.settings.fontStyle.split(" ");for(let x=0,f=h.length;x<f;x++)switch(h[x]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let d=null;typeof o.settings.foreground=="string"&&SO(o.settings.foreground)&&(d=o.settings.foreground);let m=null;typeof o.settings.background=="string"&&SO(o.settings.background)&&(m=o.settings.background);for(let h=0,x=c.length;h<x;h++){let b=c[h].trim().split(" "),y=b[b.length-1],w=null;b.length>1&&(w=b.slice(0,b.length-1),w.reverse()),n[a++]=new M9e(y,w,r,l,d,m)}}return n}var M9e=class{constructor(e,t,n,a,r,i){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=a,this.foreground=r,this.background=i}},wo=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(wo||{});function L9e(e,t){e.sort((l,d)=>{let m=VY(l.scope,d.scope);return m!==0||(m=zY(l.parentScopes,d.parentScopes),m!==0)?m:l.index-d.index});let n=0,a="#000000",r="#ffffff";for(;e.length>=1&&e[0].scope==="";){let l=e.shift();l.fontStyle!==-1&&(n=l.fontStyle),l.foreground!==null&&(a=l.foreground),l.background!==null&&(r=l.background)}let i=new O9e(t),o=new GY(n,i.getId(a),i.getId(r)),c=new F9e(new sj(0,null,-1,0,0),[]);for(let l=0,d=e.length;l<d;l++){let m=e[l];c.insert(0,m.scope,m.parentScopes,m.fontStyle,i.getId(m.foreground),i.getId(m.background))}return new a4(i,o,c)}var O9e=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},B9e=Object.freeze([]),sj=class JY{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,a,r,i){this.scopeDepth=t,this.parentScopes=n||B9e,this.fontStyle=a,this.foreground=r,this.background=i}clone(){return new JY(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let a=0,r=t.length;a<r;a++)n[a]=t[a].clone();return n}acceptOverwrite(t,n,a,r){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),a!==0&&(this.foreground=a),r!==0&&(this.background=r)}},F9e=class rj{constructor(t,n=[],a={}){this._mainRule=t,this._children=a,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let a=0,r=0;for(;t.parentScopes[a]===">"&&a++,n.parentScopes[r]===">"&&r++,!(a>=t.parentScopes.length||r>=n.parentScopes.length);){const i=n.parentScopes[r].length-t.parentScopes[a].length;if(i!==0)return i;a++,r++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let a=t.indexOf("."),r,i;if(a===-1?(r=t,i=""):(r=t.substring(0,a),i=t.substring(a+1)),this._children.hasOwnProperty(r))return this._children[r].match(i)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(rj._cmpBySpecificity),n}insert(t,n,a,r,i,o){if(n===""){this._doInsertHere(t,a,r,i,o);return}let c=n.indexOf("."),l,d;c===-1?(l=n,d=""):(l=n.substring(0,c),d=n.substring(c+1));let m;this._children.hasOwnProperty(l)?m=this._children[l]:(m=new rj(this._mainRule.clone(),sj.cloneArr(this._rulesWithParentScopes)),this._children[l]=m),m.insert(t+1,d,a,r,i,o)}_doInsertHere(t,n,a,r,i){if(n===null){this._mainRule.acceptOverwrite(t,a,r,i);return}for(let o=0,c=this._rulesWithParentScopes.length;o<c;o++){let l=this._rulesWithParentScopes[o];if(zY(l.parentScopes,n)===0){l.acceptOverwrite(t,a,r,i);return}}a===-1&&(a=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new sj(t,n,a,r,i))}},mx=class bl{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=bl.getLanguageId(t),a=bl.getTokenType(t),r=bl.getFontStyle(t),i=bl.getForeground(t),o=bl.getBackground(t);console.log({languageId:n,tokenType:a,fontStyle:r,foreground:i,background:o})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,a,r,i,o,c){let l=bl.getLanguageId(t),d=bl.getTokenType(t),m=bl.containsBalancedBrackets(t)?1:0,h=bl.getFontStyle(t),x=bl.getForeground(t),f=bl.getBackground(t);return n!==0&&(l=n),a!==8&&(d=a),r!==null&&(m=r?1:0),i!==-1&&(h=i),o!==0&&(x=o),c!==0&&(f=c),(l<<0|d<<8|m<<10|h<<11|x<<15|f<<24)>>>0}};function s4(e,t){const n=[],a=U9e(e);let r=a.next();for(;r!==null;){let l=0;if(r.length===2&&r.charAt(1)===":"){switch(r.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=a.next()}let d=o();if(n.push({matcher:d,priority:l}),r!==",")break;r=a.next()}return n;function i(){if(r==="-"){r=a.next();const l=i();return d=>!!l&&!l(d)}if(r==="("){r=a.next();const l=c();return r===")"&&(r=a.next()),l}if(_O(r)){const l=[];do l.push(r),r=a.next();while(_O(r));return d=>t(l,d)}return null}function o(){const l=[];let d=i();for(;d;)l.push(d),d=i();return m=>l.every(h=>h(m))}function c(){const l=[];let d=o();for(;d&&(l.push(d),r==="|"||r===",");){do r=a.next();while(r==="|"||r===",");d=o()}return m=>l.some(h=>h(m))}}function _O(e){return!!e&&!!e.match(/[\w\.:]+/)}function U9e(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const a=n[0];return n=t.exec(e),a}}}function WY(e){typeof e.dispose=="function"&&e.dispose()}var N2=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},H9e=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},V9e=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},z9e=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new N2(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new V9e;for(const n of e)$9e(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof N2){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function $9e(e,t,n,a){const r=n.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const i=n.lookup(t);e instanceof N2?c3({baseGrammar:i,selfGrammar:r},a):ij(e.ruleName,{baseGrammar:i,selfGrammar:r,repository:r.repository},a);const o=n.injections(e.scopeName);if(o)for(const c of o)a.add(new N2(c))}function ij(e,t,n){if(t.repository&&t.repository[e]){const a=t.repository[e];r4([a],t,n)}}function c3(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&r4(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&r4(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function r4(e,t,n){for(const a of e){if(n.visitedRule.has(a))continue;n.visitedRule.add(a);const r=a.repository?UY({},t.repository,a.repository):t.repository;Array.isArray(a.patterns)&&r4(a.patterns,{...t,repository:r},n);const i=a.include;if(!i)continue;const o=YY(i);switch(o.kind){case 0:c3({...t,selfGrammar:t.baseGrammar},n);break;case 1:c3(t,n);break;case 2:ij(o.ruleName,{...t,repository:r},n);break;case 3:case 4:const c=o.scopeName===t.selfGrammar.scopeName?t.selfGrammar:o.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(c){const l={baseGrammar:t.baseGrammar,selfGrammar:c,repository:r};o.kind===4?ij(o.ruleName,l,n):c3(l,n)}else o.kind===4?n.add(new H9e(o.scopeName,o.ruleName)):n.add(new N2(o.scopeName));break}}}var q9e=class{kind=0},G9e=class{kind=1},J9e=class{constructor(e){this.ruleName=e}kind=2},W9e=class{constructor(e){this.scopeName=e}kind=3},Y9e=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function YY(e){if(e==="$base")return new q9e;if(e==="$self")return new G9e;const t=e.indexOf("#");if(t===-1)return new W9e(e);if(t===0)return new J9e(e.substring(1));{const n=e.substring(0,t),a=e.substring(t+1);return new Y9e(n,a)}}var X9e=/\\(\d+)/,PO=/\\(\d+)/g,Q9e=-1,XY=-2;var cv=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,a){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=A5.hasCaptures(this._name),this._contentName=a||null,this._contentNameIsCapturing=A5.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${HY(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:A5.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:A5.replaceCaptures(this._contentName,e,t)}},K9e=class extends cv{retokenizeCapturedWithRuleId;constructor(e,t,n,a,r){super(e,t,n,a),this.retokenizeCapturedWithRuleId=r}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,a){throw new Error("Not supported!")}},Z9e=class extends cv{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,a,r){super(e,t,n,null),this._match=new k2(a,this.id),this.captures=r,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new j2,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},DO=class extends cv{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,a,r){super(e,t,n,a),this.patterns=r.patterns,this.hasMissingPatterns=r.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new j2,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},oj=class extends cv{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,a,r,i,o,c,l,d){super(e,t,n,a),this._begin=new k2(r,this.id),this.beginCaptures=i,this._end=new k2(o||"ï¿¿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=c,this.applyEndPatternLast=l||!1,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new j2;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},i4=class extends cv{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,a,r,i,o,c,l){super(e,t,n,a),this._begin=new k2(r,this.id),this.beginCaptures=i,this.whileCaptures=c,this._while=new k2(o,XY),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,a){return this._getCachedCompiledPatterns(e).compileAG(e,n,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new j2;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new j2,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"ï¿¿"),this._cachedCompiledWhilePatterns}},QY=class xo{static createCaptureRule(t,n,a,r,i){return t.registerRule(o=>new K9e(n,o,a,r,i))}static getCompiledRuleId(t,n,a){return t.id||n.registerRule(r=>{if(t.id=r,t.match)return new Z9e(t.$vscodeTextmateLocation,t.id,t.name,t.match,xo._compileCaptures(t.captures,n,a));if(typeof t.begin>"u"){t.repository&&(a=UY({},a,t.repository));let i=t.patterns;return typeof i>"u"&&t.include&&(i=[{include:t.include}]),new DO(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,xo._compilePatterns(i,n,a))}return t.while?new i4(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,xo._compileCaptures(t.beginCaptures||t.captures,n,a),t.while,xo._compileCaptures(t.whileCaptures||t.captures,n,a),xo._compilePatterns(t.patterns,n,a)):new oj(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,xo._compileCaptures(t.beginCaptures||t.captures,n,a),t.end,xo._compileCaptures(t.endCaptures||t.captures,n,a),t.applyEndPatternLast,xo._compilePatterns(t.patterns,n,a))}),t.id}static _compileCaptures(t,n,a){let r=[];if(t){let i=0;for(const o in t){if(o==="$vscodeTextmateLocation")continue;const c=parseInt(o,10);c>i&&(i=c)}for(let o=0;o<=i;o++)r[o]=null;for(const o in t){if(o==="$vscodeTextmateLocation")continue;const c=parseInt(o,10);let l=0;t[o].patterns&&(l=xo.getCompiledRuleId(t[o],n,a)),r[c]=xo.createCaptureRule(n,t[o].$vscodeTextmateLocation,t[o].name,t[o].contentName,l)}}return r}static _compilePatterns(t,n,a){let r=[];if(t)for(let i=0,o=t.length;i<o;i++){const c=t[i];let l=-1;if(c.include){const d=YY(c.include);switch(d.kind){case 0:case 1:l=xo.getCompiledRuleId(a[c.include],n,a);break;case 2:let m=a[d.ruleName];m&&(l=xo.getCompiledRuleId(m,n,a));break;case 3:case 4:const h=d.scopeName,x=d.kind===4?d.ruleName:null,f=n.getExternalGrammar(h,a);if(f)if(x){let b=f.repository[x];b&&(l=xo.getCompiledRuleId(b,n,f.repository))}else l=xo.getCompiledRuleId(f.repository.$self,n,f.repository);break}}else l=xo.getCompiledRuleId(c,n,a);if(l!==-1){const d=n.getRule(l);let m=!1;if((d instanceof DO||d instanceof oj||d instanceof i4)&&d.hasMissingPatterns&&d.patterns.length===0&&(m=!0),m)continue;r.push(l)}}return{patterns:r,hasMissingPatterns:(t?t.length:0)!==r.length}}},k2=class KY{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const a=t.length;let r=0,i=[],o=!1;for(let c=0;c<a;c++)if(t.charAt(c)==="\\"&&c+1<a){const d=t.charAt(c+1);d==="z"?(i.push(t.substring(r,c)),i.push("$(?!\\n)(?<!\\n)"),r=c+2):(d==="A"||d==="G")&&(o=!0),c++}this.hasAnchor=o,r===0?this.source=t:(i.push(t.substring(r,a)),this.source=i.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=X9e.test(this.source):this.hasBackReferences=!1}clone(){return new KY(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let a=n.map(r=>t.substring(r.start,r.end));return PO.lastIndex=0,this.source.replace(PO,(r,i)=>$Y(a[parseInt(i,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],a=[],r=[],i,o,c,l;for(i=0,o=this.source.length;i<o;i++)c=this.source.charAt(i),t[i]=c,n[i]=c,a[i]=c,r[i]=c,c==="\\"&&i+1<o&&(l=this.source.charAt(i+1),l==="A"?(t[i+1]="ï¿¿",n[i+1]="ï¿¿",a[i+1]="A",r[i+1]="A"):l==="G"?(t[i+1]="ï¿¿",n[i+1]="G",a[i+1]="ï¿¿",r[i+1]="G"):(t[i+1]=l,n[i+1]=l,a[i+1]=l,r[i+1]=l),i++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:a.join(""),A1_G1:r.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},j2=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new RO(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let a=this._items.map(r=>r.resolveAnchors(t,n));return new RO(e,a,this._items.map(r=>r.ruleId))}},RO=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(` 1963`)}findNextMatchSync(e,t,n){const a=this.scanner.findNextMatchSync(e,t,n);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}},L8=class{constructor(e,t){this.languageId=e,this.tokenType=t}},eEe=class cj{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new L8(t,8),this._embeddedLanguagesMatcher=new tEe(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?cj._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new L8(0,0);_getBasicScopeAttributes=new qY(t=>{const n=this._scopeToLanguage(t),a=this._toStandardTokenType(t);return new L8(n,a)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(cj.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},tEe=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,a])=>$Y(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},IO=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function ZY(e,t,n,a,r,i,o,c){const l=t.content.length;let d=!1,m=-1;if(o){const f=nEe(e,t,n,a,r,i);r=f.stack,a=f.linePos,n=f.isFirstLine,m=f.anchorPosition}const h=Date.now();for(;!d;){if(c!==0&&Date.now()-h>c)return new IO(r,!0);x()}return new IO(r,!1);function x(){const f=aEe(e,t,n,a,r,m);if(!f){i.produce(r,l),d=!0;return}const b=f.captureIndices,y=f.matchedRuleId,w=b&&b.length>0?b[0].end>a:!1;if(y===Q9e){const T=r.getRule(e);i.produce(r,b[0].start),r=r.withContentNameScopesList(r.nameScopesList),db(e,t,n,r,i,T.endCaptures,b),i.produce(r,b[0].end);const A=r;if(r=r.parent,m=A.getAnchorPos(),!w&&A.getEnterPos()===a){r=A,i.produce(r,l),d=!0;return}}else{const T=e.getRule(y);i.produce(r,b[0].start);const A=r,E=T.getName(t.content,b),D=r.contentNameScopesList.pushAttributed(E,e);if(r=r.push(y,a,m,b[0].end===l,null,D,D),T instanceof oj){const S=T;db(e,t,n,r,i,S.beginCaptures,b),i.produce(r,b[0].end),m=b[0].end;const R=S.getContentName(t.content,b),L=D.pushAttributed(R,e);if(r=r.withContentNameScopesList(L),S.endHasBackReferences&&(r=r.withEndRule(S.getEndWithResolvedBackReferences(t.content,b))),!w&&A.hasSameRuleAs(r)){r=r.pop(),i.produce(r,l),d=!0;return}}else if(T instanceof i4){const S=T;db(e,t,n,r,i,S.beginCaptures,b),i.produce(r,b[0].end),m=b[0].end;const R=S.getContentName(t.content,b),L=D.pushAttributed(R,e);if(r=r.withContentNameScopesList(L),S.whileHasBackReferences&&(r=r.withEndRule(S.getWhileWithResolvedBackReferences(t.content,b))),!w&&A.hasSameRuleAs(r)){r=r.pop(),i.produce(r,l),d=!0;return}}else if(db(e,t,n,r,i,T.captures,b),i.produce(r,b[0].end),r=r.pop(),!w){r=r.safePop(),i.produce(r,l),d=!0;return}}b[0].end>a&&(a=b[0].end,n=!1)}}function nEe(e,t,n,a,r,i){let o=r.beginRuleCapturedEOL?0:-1;const c=[];for(let l=r;l;l=l.pop()){const d=l.getRule(e);d instanceof i4&&c.push({rule:d,stack:l})}for(let l=c.pop();l;l=c.pop()){const{ruleScanner:d,findOptions:m}=iEe(l.rule,e,l.stack.endRule,n,a===o),h=d.findNextMatchSync(t,a,m);if(h){if(h.ruleId!==XY){r=l.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(i.produce(l.stack,h.captureIndices[0].start),db(e,t,n,l.stack,i,l.rule.whileCaptures,h.captureIndices),i.produce(l.stack,h.captureIndices[0].end),o=h.captureIndices[0].end,h.captureIndices[0].end>a&&(a=h.captureIndices[0].end,n=!1))}else{r=l.stack.pop();break}}return{stack:r,linePos:a,anchorPosition:o,isFirstLine:n}}function aEe(e,t,n,a,r,i){const o=sEe(e,t,n,a,r,i),c=e.getInjections();if(c.length===0)return o;const l=rEe(c,e,t,n,a,r,i);if(!l)return o;if(!o)return l;const d=o.captureIndices[0].start,m=l.captureIndices[0].start;return m<d||l.priorityMatch&&m===d?l:o}function sEe(e,t,n,a,r,i){const o=r.getRule(e),{ruleScanner:c,findOptions:l}=eX(o,e,r.endRule,n,a===i),d=c.findNextMatchSync(t,a,l);return d?{captureIndices:d.captureIndices,matchedRuleId:d.ruleId}:null}function rEe(e,t,n,a,r,i,o){let c=Number.MAX_VALUE,l=null,d,m=0;const h=i.contentNameScopesList.getScopeNames();for(let x=0,f=e.length;x<f;x++){const b=e[x];if(!b.matcher(h))continue;const y=t.getRule(b.ruleId),{ruleScanner:w,findOptions:T}=eX(y,t,null,a,r===o),A=w.findNextMatchSync(n,r,T);if(!A)continue;const E=A.captureIndices[0].start;if(!(E>=c)&&(c=E,l=A.captureIndices,d=A.ruleId,m=b.priority,c===r))break}return l?{priorityMatch:m===-1,captureIndices:l,matchedRuleId:d}:null}function eX(e,t,n,a,r){return{ruleScanner:e.compileAG(t,n,a,r),findOptions:0}}function iEe(e,t,n,a,r){return{ruleScanner:e.compileWhileAG(t,n,a,r),findOptions:0}}function db(e,t,n,a,r,i,o){if(i.length===0)return;const c=t.content,l=Math.min(i.length,o.length),d=[],m=o[0].end;for(let h=0;h<l;h++){const x=i[h];if(x===null)continue;const f=o[h];if(f.length===0)continue;if(f.start>m)break;for(;d.length>0&&d[d.length-1].endPos<=f.start;)r.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?r.produceFromScopes(d[d.length-1].scopes,f.start):r.produce(a,f.start),x.retokenizeCapturedWithRuleId){const y=x.getName(c,o),w=a.contentNameScopesList.pushAttributed(y,e),T=x.getContentName(c,o),A=w.pushAttributed(T,e),E=a.push(x.retokenizeCapturedWithRuleId,f.start,-1,!1,null,w,A),D=e.createOnigString(c.substring(0,f.end));ZY(e,D,n&&f.start===0,f.start,E,r,!1,0),WY(D);continue}const b=x.getName(c,o);if(b!==null){const w=(d.length>0?d[d.length-1].scopes:a.contentNameScopesList).pushAttributed(b,e);d.push(new oEe(w,f.end))}}for(;d.length>0;)r.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}var oEe=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function cEe(e,t,n,a,r,i,o,c){return new uEe(e,t,n,a,r,i,o,c)}function MO(e,t,n,a,r){const i=s4(t,o4),o=QY.getCompiledRuleId(n,a,r.repository);for(const c of i)e.push({debugSelector:t,matcher:c.matcher,ruleId:o,grammar:r,priority:c.priority})}function o4(e,t){if(t.length<e.length)return!1;let n=0;return e.every(a=>{for(let r=n;r<t.length;r++)if(lEe(t[r],a))return n=r+1,!0;return!1})}function lEe(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var uEe=class{constructor(e,t,n,a,r,i,o,c){if(this._rootScopeName=e,this.balancedBracketSelectors=i,this._onigLib=c,this._basicScopeAttributesProvider=new eEe(n,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=LO(t,null),this._injections=null,this._tokenTypeMatchers=[],r)for(const l of Object.keys(r)){const d=s4(l,o4);for(const m of d)this._tokenTypeMatchers.push({matcher:m.matcher,type:r[l]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:r=>r===this._rootScopeName?this._grammar:this.getExternalGrammar(r),injections:r=>this._grammarRepository.injections(r)},t=[],n=this._rootScopeName,a=e.lookup(n);if(a){const r=a.injections;if(r)for(let o in r)MO(t,o,r[o],this,a);const i=this._grammarRepository.injections(n);i&&i.forEach(o=>{const c=this.getExternalGrammar(o);if(c){const l=c.injectionSelector;l&&MO(t,l,c,this,c)}})}return t.sort((r,i)=>r.priority-i.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=LO(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const a=this._tokenize(e,t,!1,n);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,n=0){const a=this._tokenize(e,t,!0,n);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,n,a){this._rootId===-1&&(this._rootId=QY.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let r;if(!t||t===lj.NULL){r=!0;const d=this._basicScopeAttributesProvider.getDefaultAttributes(),m=this.themeProvider.getDefaults(),h=mx.set(0,d.languageId,d.tokenType,null,m.fontStyle,m.foregroundId,m.backgroundId),x=this.getRule(this._rootId).getName(null,null);let f;x?f=Ob.createRootAndLookUpScopeName(x,h,this):f=Ob.createRoot("unknown",h),t=new lj(null,this._rootId,-1,-1,!1,null,f,f)}else r=!1,t.reset();e=e+` 1964`;const i=this.createOnigString(e),o=i.content.length,c=new mEe(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=ZY(this,i,r,0,t,c,!0,a);return WY(i),{lineLength:o,lineTokens:c,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function LO(e,t){return e=S9e(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var Ob=class od{constructor(t,n,a){this.parent=t,this.scopePath=n,this.tokenAttributes=a}static fromExtension(t,n){let a=t,r=t?.scopePath??null;for(const i of n)r=M8.push(r,i.scopeNames),a=new od(a,r,i.encodedTokenAttributes);return a}static createRoot(t,n){return new od(null,new M8(null,t),n)}static createRootAndLookUpScopeName(t,n,a){const r=a.getMetadataForScope(t),i=new M8(null,t),o=a.themeProvider.themeMatch(i),c=od.mergeAttributes(n,r,o);return new od(null,i,c)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return od.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,a){let r=-1,i=0,o=0;return a!==null&&(r=a.fontStyle,i=a.foregroundId,o=a.backgroundId),mx.set(t,n.languageId,n.tokenType,null,r,i,o)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return od._pushAttributed(this,t,n);const a=t.split(/ /g);let r=this;for(const i of a)r=od._pushAttributed(r,i,n);return r}static _pushAttributed(t,n,a){const r=a.getMetadataForScope(n),i=t.scopePath.push(n),o=a.themeProvider.themeMatch(i),c=od.mergeAttributes(t.tokenAttributes,r,o);return new od(t,i,c)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let a=this;for(;a&&a!==t;)n.push({encodedTokenAttributes:a.tokenAttributes,scopeNames:a.scopePath.getExtensionIfDefined(a.parent?.scopePath??null)}),a=a.parent;return a===t?n.reverse():void 0}},lj=class g0{constructor(t,n,a,r,i,o,c,l){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=i,this.endRule=o,this.nameScopesList=c,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=a,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new g0(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:g0._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Ob.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){g0._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,a,r,i,o,c){return new g0(this,t,n,a,r,i,o,c)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new g0(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const a=Ob.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new g0(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,a,Ob.fromExtension(a,n.contentNameScopesList))}},dEe=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):s4(n,o4).map(a=>a.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>s4(n,o4).map(a=>a.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},mEe=class{constructor(e,t,n,a){this.balancedBracketSelectors=a,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let a=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const i=e?.getScopeNames()??[];for(const o of this._tokenTypeOverrides)o.matcher(i)&&(a=mx.set(a,0,o.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(i))}if(r&&(a=mx.set(a,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),this._lastTokenEndIndex=t;return}const n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let a=0,r=this._binaryTokens.length;a<r;a++)n[a]=this._binaryTokens[a];return n}},pEe=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,a,r){if(!this._grammars.has(e)){let i=this._rawGrammars.get(e);if(!i)return null;this._grammars.set(e,cEe(e,i,t,n,a,r,this,this._onigLib))}return this._grammars.get(e)}},hEe=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new pEe(a4.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(a4.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,a){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:a})}loadGrammarWithConfiguration(t,n,a){return this._loadGrammar(t,n,a.embeddedLanguages,a.tokenTypes,new dEe(a.balancedBracketSelectors||[],a.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,a,r,i){const o=new z9e(this._syncRegistry,t);for(;o.Q.length>0;)o.Q.map(c=>this._loadSingleGrammar(c.scopeName)),o.processQueue();return this._grammarForScopeName(t,n,a,r,i)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const a=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,a)}}addGrammar(t,n=[],a=0,r=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,a,r)}_grammarForScopeName(t,n=0,a=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(t,n,a,r,i)}},uj=lj.NULL;const fEe=/["&'<>`]/g,gEe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,xEe=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,bEe=/[|\\{}()[\]^$+*?.]/g,OO=new WeakMap;function vEe(e,t){if(e=e.replace(t.subset?yEe(t.subset):fEe,a),t.subset||t.escapeOnly)return e;return e.replace(gEe,n).replace(xEe,a);function n(r,i,o){return t.format((r.charCodeAt(0)-55296)*1024+r.charCodeAt(1)-56320+65536,o.charCodeAt(i+2),t)}function a(r,i,o){return t.format(r.charCodeAt(0),o.charCodeAt(i+1),t)}}function yEe(e){let t=OO.get(e);return t||(t=wEe(e),OO.set(e,t)),t}function wEe(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(bEe,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const TEe=/[\dA-Fa-f]/;function NEe(e,t,n){const a="&#x"+e.toString(16).toUpperCase();return n&&t&&!TEe.test(String.fromCharCode(t))?a:a+";"}const kEe=/\d/;function jEe(e,t,n){const a="&#"+String(e);return n&&t&&!kEe.test(String.fromCharCode(t))?a:a+";"}const AEe=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslas
1964h","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],O8={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"Â¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"Â",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"Ã",Aacute:"Ã",Acirc:"Ã",Atilde:"Ã",Auml:"Ã",Aring:"Ã
",AElig:"Ã",Ccedil:"Ã",Egrave:"Ã",Eacute:"Ã",Ecirc:"Ã",Euml:"Ã",Igrave:"Ã",Iacute:"Ã",Icirc:"Ã",Iuml:"Ã",ETH:"Ã",Ntilde:"Ã",Ograve:"Ã",Oacute:"Ã",Ocirc:"Ã",Otilde:"Ã",Ouml:"Ã",times:"Ã",Oslash:"Ã",Ugrave:"Ã",Uacute:"Ã",Ucirc:"Ã",Uuml:"Ã",Yacute:"Ã",THORN:"Ã",szlig:"Ã",agrave:"à ",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"Ã¥",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"Ã",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"Æ",Alpha:"Î",Beta:"Î",Gamma:"Î",Delta:"Î",Epsilon:"Î",Zeta:"Î",Eta:"Î",Theta:"Î",Iota:"Î",Kappa:"Î",Lambda:"Î",Mu:"Î",Nu:"Î",Xi:"Î",Omicron:"Î",Pi:"Î ",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Î¥",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"Ï",rho:"Ï",sigmaf:"Ï",sigma:"Ï",tau:"Ï",upsilon:"Ï
",phi:"Ï",chi:"Ï",psi:"Ï",omega:"Ï",thetasym:"Ï",upsih:"Ï",piv:"Ï",bull:"â¢",hellip:"â¦",prime:"â²",Prime:"â³",oline:"â¾",frasl:"â",weierp:"â",image:"â",real:"â",trade:"â¢",alefsym:"âµ",larr:"â",uarr:"â",rarr:"â",darr:"â",harr:"â",crarr:"âµ",lArr:"â",uArr:"â",rArr:"â",dArr:"â",hArr:"â",forall:"â",part:"â",exist:"â",empty:"â
",nabla:"â",isin:"â",notin:"â",ni:"â",prod:"â",sum:"â",minus:"â",lowast:"â",radic:"â",prop:"â",infin:"â",ang:"â ",and:"â§",or:"â¨",cap:"â©",cup:"âª",int:"â«",there4:"â´",sim:"â¼",cong:"â
",asymp:"â",ne:"â ",equiv:"â¡",le:"â¤",ge:"â¥",sub:"â",sup:"â",nsub
vendor: 19,527 bytes, lines 1964-1972
1964:"â",sube:"â",supe:"â",oplus:"â",otimes:"â",perp:"â¥",sdot:"â ",lceil:"â",rceil:"â",lfloor:"â",rfloor:"â",lang:"â©",rang:"âª",loz:"â",spades:"â ",clubs:"â£",hearts:"â¥",diams:"â¦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Å",oelig:"Å",Scaron:"Å ",scaron:"Å¡",Yuml:"Ÿ",circ:"Ë",tilde:"Ë",ensp:"â",emsp:"â",thinsp:"â",zwnj:"â",zwj:"â",lrm:"â",rlm:"â",ndash:"â",mdash:"â",lsquo:"â",rsquo:"â",sbquo:"â",ldquo:"â",rdquo:"â",bdquo:"â",dagger:"â ",Dagger:"â¡",permil:"â°",lsaquo:"â¹",rsaquo:"âº",euro:"â¬"},EEe=["cent","copy","divide","gt","lt","not","para","times"],tX={}.hasOwnProperty,dj={};let E5;for(E5 in O8)tX.call(O8,E5)&&(dj[O8[E5]]=E5);const CEe=/[^\dA-Za-z]/;function SEe(e,t,n,a){const r=String.fromCharCode(e);if(tX.call(dj,r)){const i=dj[r],o="&"+i;return n&&AEe.includes(i)&&!EEe.includes(i)&&(!a||t&&t!==61&&CEe.test(String.fromCharCode(t)))?o:o+";"}return""}function _Ee(e,t,n){let a=NEe(e,t,n.omitOptionalSemicolons),r;if((n.useNamedReferences||n.useShortestReferences)&&(r=SEe(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){const i=jEe(e,t,n.omitOptionalSemicolons);i.length<a.length&&(a=i)}return r&&(!n.useShortestReferences||r.length<a.length)?r:a}function ex(e,t){return vEe(e,Object.assign({format:_Ee},t))}const PEe=/^>|^->|<!--|-->|--!>|<!-$/g,DEe=[">"],REe=["<",">"];function IEe(e,t,n,a){return a.settings.bogusComments?"<?"+ex(e.value,Object.assign({},a.settings.characterReferences,{subset:DEe}))+">":"<!--"+e.value.replace(PEe,r)+"-->";function r(i){return ex(i,Object.assign({},a.settings.characterReferences,{subset:REe}))}}function MEe(e,t,n,a){return"<!"+(a.settings.upperDoctype?"DOCTYPE":"doctype")+(a.settings.tightDoctype?"":" ")+"html>"}const Ei=aX(1),nX=aX(-1),LEe=[];function aX(e){return t;function t(n,a,r){const i=n?n.children:LEe;let o=(a||0)+e,c=i[o];if(!r)for(;c&&g6(c);)o+=e,c=i[o];return c}}const OEe={}.hasOwnProperty;function sX(e){return t;function t(n,a,r){return OEe.call(e,n.tagName)&&e[n.tagName](n,a,r)}}const wE=sX({body:FEe,caption:B8,colgroup:B8,dd:zEe,dt:VEe,head:B8,html:BEe,li:HEe,optgroup:$Ee,option:qEe,p:UEe,rp:BO,rt:BO,tbody:JEe,td:FO,tfoot:WEe,th:FO,thead:GEe,tr:YEe});function B8(e,t,n){const a=Ei(n,t,!0);return!a||a.type!=="comment"&&!(a.type==="text"&&g6(a.value.charAt(0)))}function BEe(e,t,n){const a=Ei(n,t);return!a||a.type!=="comment"}function FEe(e,t,n){const a=Ei(n,t);return!a||a.type!=="comment"}function UEe(e,t,n){const a=Ei(n,t);return a?a.type==="element"&&(a.tagName==="address"||a.tagName==="article"||a.tagName==="aside"||a.tagName==="blockquote"||a.tagName==="details"||a.tagName==="div"||a.tagName==="dl"||a.tagName==="fieldset"||a.tagName==="figcaption"||a.tagName==="figure"||a.tagName==="footer"||a.tagName==="form"||a.tagName==="h1"||a.tagName==="h2"||a.tagName==="h3"||a.tagName==="h4"||a.tagName==="h5"||a.tagName==="h6"||a.tagName==="header"||a.tagName==="hgroup"||a.tagName==="hr"||a.tagName==="main"||a.tagName==="menu"||a.tagName==="nav"||a.tagName==="ol"||a.tagName==="p"||a.tagName==="pre"||a.tagName==="section"||a.tagName==="table"||a.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function HEe(e,t,n){const a=Ei(n,t);return!a||a.type==="element"&&a.tagName==="li"}function VEe(e,t,n){const a=Ei(n,t);return!!(a&&a.type==="element"&&(a.tagName==="dt"||a.tagName==="dd"))}function zEe(e,t,n){const a=Ei(n,t);return!a||a.type==="element"&&(a.tagName==="dt"||a.tagName==="dd")}function BO(e,t,n){const a=Ei(n,t);return!a||a.type==="element"&&(a.tagName==="rp"||a.tagName==="rt")}function $Ee(e,t,n){const a=Ei(n,t);return!a||a.type==="element"&&a.tagName==="optgroup"}function qEe(e,t,n){const a=Ei(n,t);return!a||a.type==="element"&&(a.tagName==="option"||a.tagName==="optgroup")}function GEe(e,t,n){const a=Ei(n,t);return!!(a&&a.type==="element"&&(a.tagName==="tbody"||a.tagName==="tfoot"))}function JEe(e,t,n){const a=Ei(n,t);return!a||a.type==="element"&&(a.tagName==="tbody"||a.tagName==="tfoot")}function WEe(e,t,n){return!Ei(n,t)}function YEe(e,t,n){const a=Ei(n,t);return!a||a.type==="element"&&a.tagName==="tr"}function FO(e,t,n){const a=Ei(n,t);return!a||a.type==="element"&&(a.tagName==="td"||a.tagName==="th")}const XEe=sX({body:ZEe,colgroup:eCe,head:KEe,html:QEe,tbody:tCe});function QEe(e){const t=Ei(e,-1);return!t||t.type!=="comment"}function KEe(e){const t=new Set;for(const a of e.children)if(a.type==="element"&&(a.tagName==="base"||a.tagName==="title")){if(t.has(a.tagName))return!1;t.add(a.tagName)}const n=e.children[0];return!n||n.type==="element"}function ZEe(e){const t=Ei(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&g6(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function eCe(e,t,n){const a=nX(n,t),r=Ei(e,-1,!0);return n&&a&&a.type==="element"&&a.tagName==="colgroup"&&wE(a,n.children.indexOf(a),n)?!1:!!(r&&r.type==="element"&&r.tagName==="col")}function tCe(e,t,n){const a=nX(n,t),r=Ei(e,-1);return n&&a&&a.type==="element"&&(a.tagName==="thead"||a.tagName==="tbody")&&wE(a,n.children.indexOf(a),n)?!1:!!(r&&r.type==="element"&&r.tagName==="tr")}const C5={name:[[` 1965\f\r &/=>`.split(""),` 1966\f\r "&'/=>\``.split("")],[`\0 1967\f\r "&'/<=>`.split(""),`\0 1968\f\r "&'/<=>\``.split("")]],unquoted:[[` 1969\f\r &>`.split(""),`\0 1970\f\r "&'<=>\``.split("")],[`\0 1971\f\r "&'<=>\``.split(""),`\0 1972\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function nCe(e,t,n,a){const r=a.schema,i=r.space==="svg"?!1:a.settings.omitOptionalTags;let o=r.space==="svg"?a.settings.closeEmptyElements:a.settings.voids.includes(e.tagName.toLowerCase());const c=[];let l;r.space==="html"&&e.tagName==="svg"&&(a.schema=Th);const d=aCe(a,e.properties),m=a.all(r.space==="html"&&e.tagName==="template"?e.content:e);return a.schema=r,m&&(o=!1),(d||!i||!XEe(e,t,n))&&(c.push("<",e.tagName,d?" "+d:""),o&&(r.space==="svg"||a.settings.closeSelfClosing)&&(l=d.charAt(d.length-1),(!a.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&c.push(" "),c.push("/")),c.push(">")),c.push(m),!o&&(!i||!wE(e,t,n))&&c.push("</"+e.tagName+">"),c.join("")}function aCe(e,t){const n=[];let a=-1,r;if(t){for(r in t)if(t[r]!==null&&t[r]!==void 0){const i=sCe(e,r,t[r]);i&&n.push(i)}}for(;++a<n.length;){const i=e.settings.tightAttributes?n[a].charAt(n[a].length-1):void 0;a!==n.length-1&&i!=='"'&&i!=="'"&&(n[a]+=" ")}return n.join("")}function sCe(e,t,n){const a=x6(e.schema,t),r=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,i=e.settings.allowDangerousCharacters?0:1;let o=e.quote,c;if(a.overloadedBoolean&&(n===a.attribute||n==="")?n=!0:(a.boolean||a.overloadedBoolean)&&(typeof n!="string"||n===a.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const l=ex(a.attribute,Object.assign({},e.settings.characterReferences,{subset:C5.name[r][i]}));return n===!0||(n=Array.isArray(n)?(a.commaSeparated?j9:E9)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(c=ex(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:C5.unquoted[r][i]}))),c!==n&&(e.settings.quoteSmart&&t4(n,o)>t4(n,e.alternative)&&(o=e.alternative),c=o+ex(n,Object.assign({},e.settings.characterReferences,{subset:(o==="'"?C5.single:C5.double)[r][i],attribute:!0}))+o),l+(c&&"="+c))}const rCe=["<","&"];function rX(e,t,n,a){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:ex(e.value,Object.assign({},a.settings.characterReferences,{subset:rCe}))}function iCe(e,t,n,a){return a.settings.allowDangerousHtml?e.value:rX(e,t,n,a)}function oCe(e,t,n,a){return a.all(e)}const cCe=lE("type",{invalid:lCe,unknown:uCe,handlers:{comment:IEe,doctype:MEe,element:nCe,raw:iCe,root:oCe,text:rX}});function lCe(e){throw new Error("Expected node, not `"+e+"`")}function uCe(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const dCe={},mCe={},pCe=[];function hCe(e,t){const n=t||dCe,a=n.quote||'"',r=a==='"'?"'":'"';if(a!=='"'&&a!=="'")throw new Error("Invalid quote `"+a+"`, expected `'` or `\"`");return{one:fCe,all:gCe,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||MW,characterReferences:n.characterReferences||mCe,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Th:K2,quote:a,alternative:r}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function fCe(e,t,n){return cCe(e,t,n,this)}function gCe(e){const t=[],n=e&&e.children||pCe;let a=-1;for(;++a<n.length;)t[a]=this.one(n[a],a,e);return t.join("")}function c4(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},a=typeof e=="string"?e:e.name;for(const[r,i]of Object.entries(t?.colorReplacements||{}))typeof i=="string"?n[r]=i:r===a&&Object.assign(n,i);return n}function nh(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function xCe(e){return Array.isArray(e)?e:[e]}async function iX(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function TE(e){return!e||["plaintext","txt","text","plain"].includes(e)}function oX(e){return e==="ansi"||TE(e)}function NE(e){return e==="none"}function cX(e){return NE(e)}function lX(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const a of n)a&&!e.properties.class.includes(a)&&e.properties.class.push(a);return e}function I6(e,t=!1){const n=e.split(/(\r?\n)/g);let a=0;const r=[];for(let i=0;i<n.length;i+=2){const o=t?n[i]+(n[i+1]||""):n[i];r.push([o,a]),a+=n[i].length,a+=n[i+1]?.length||0}return r}function bCe(e){const t=I6(e,!0).map(([r])=>r);function n(r){if(r===e.length)return{line:t.length-1,character:t[t.length-1].length};let i=r,o=0;for(const c of t){if(i<c.length)break;i-=c.length,o++}return{line:o,character:i}}function a(r,i){let o=0;for(let c=0;c<r;c++)o+=t[c].length;return o+=i,o}return{lines:t,indexToPos:n,posToIndex:a}}const kE="light-dark()",vCe=["color","background-color"];function yCe(e,t){let n=0;const a=[];for(const r of t)r>n&&a.push({...e,content:e.content.slice(n,r),offset:e.offset+n}),n=r;return n<e.content.length&&a.push({...e,content:e.content.slice(n),offset:e.offset+n}),a}function wCe(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((a,r)=>a-r);return n.length?e.map(a=>a.flatMap(r=>{const i=n.filter(o=>r.offset<o&&o<r.offset+r.content.length).map(o=>o-r.offset).sort((o,c)=>o-c);return i.length?yCe(r,i):r})):e}function TCe(e,t,n,a,r="css-vars"){const i={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(m=>l4(e.variants[m])),c=new Set(o.flatMap(m=>Object.keys(m))),l={},d=(m,h)=>{const x=h==="color"?"":h==="background-color"?"-bg":`-${h}`;return n+t[m]+(h==="color"?"":x)};return o.forEach((m,h)=>{for(const x of c){const f=m[x]||"inherit";if(h===0&&a&&vCe.includes(x))if(a===kE&&o.length>1){const b=t.findIndex(A=>A==="light"),y=t.findIndex(A=>A==="dark");if(b===-1||y===-1)throw new ui('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const w=o[b][x]||"inherit",T=o[y][x]||"inherit";l[x]=`light-dark(${w}, ${T})`,r==="css-vars"&&(l[d(h,x)]=f)}else l[x]=f;else r==="css-vars"&&(l[d(h,x)]=f)}}),i.htmlStyle=l,i}function l4(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&wo.Italic&&(t["font-style"]="italic"),e.fontStyle&wo.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&wo.Underline&&n.push("underline"),e.fontStyle&wo.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function mj(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const uX=new WeakMap;function M6(e,t){uX.set(e,t)}function A2(e){return uX.get(e)}class Ix{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new Ix(Object.fromEntries(xCe(n).map(a=>[a,uj])),t)}constructor(...t){if(t.length===2){const[n,a]=t;this.lang=a,this._stacks=n}else{const[n,a,r]=t;this.lang=a,this._stacks={[r]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return NCe(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function NCe(e){const t=[],n=new Set;function a(r){if(n.has(r))return;n.add(r);const i=r?.nameScopesList?.scopeName;i&&t.push(i),r.parent&&a(r.parent)}return a(e),t}function kCe(e,t){if(!(e instanceof Ix))throw new ui("Invalid grammar state");return e.getInternalStack(t)}function jCe(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let a=function(o){if(typeof o=="number"){if(o<0||o>n.source.length)throw new ui(`Invalid decoration offset: ${o}. Code length: ${n.source.length}`);return{...r.indexToPos(o),offset:o}}else{const c=r.lines[o.line];if(c===void 0)throw new ui(`Invalid decoration position ${JSON.stringify(o)}. Lines length: ${r.lines.length}`);let l=o.character;if(l<0&&(l=c.length+l),l<0||l>c.length)throw new ui(`Invalid decoration position ${JSON.stringify(o)}. Line ${o.line} length: ${c.length}`);return{...o,character:l,offset:r.posToIndex(o.line,l)}}};const r=bCe(n.source),i=(n.options.decorations||[]).map(o=>({...o,start:a(o.start),end:a(o.end)}));ACe(i),e.set(n.meta,{decorations:i,converter:r,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const r=t(this).decorations.flatMap(o=>[o.start.offset,o.end.offset]);return wCe(n,r)},code(n){if(!this.options.decorations?.length)return;const a=t(this),r=Array.from(n.children).filter(m=>m.type==="element"&&m.tagName==="span");if(r.length!==a.converter.lines.length)throw new ui(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${a.converter.lines.length}). Failed to apply decorations.`);function i(m,h,x,f){const b=r[m];let y="",w=-1,T=-1;if(h===0&&(w=0),x===0&&(T=0),x===Number.POSITIVE_INFINITY&&(T=b.children.length),w===-1||T===-1)for(let E=0;E<b.children.length;E++)y+=dX(b.children[E]),w===-1&&y.length===h&&(w=E+1),T===-1&&y.length===x&&(T=E+1);if(w===-1)throw new ui(`Failed to find start index for decoration ${JSON.stringify(f.start)}`);if(T===-1)throw new ui(`Failed to find end index for decoration ${JSON.stringify(f.end)}`);const A=b.children.slice(w,T);if(!f.alwaysWrap&&A.length===b.children.length)c(b,f,"line");else if(!f.alwaysWrap&&A.length===1&&A[0].type==="element")c(A[0],f,"token");else{const E={type:"element",tagName:"span",properties:{},children:A};c(E,f,"wrapper"),b.children.splice(w,A.length,E)}}function o(m,h){r[m]=c(r[m],h,"line")}function c(m,h,x){const f=h.properties||{},b=h.transform||(y=>y);return m.tagName=h.tagName||"span",m.properties={...m.properties,...f,class:m.properties.class},h.properties?.class&&lX(m,h.properties.class),m=b(m,x)||m,m}const l=[],d=a.decorations.sort((m,h)=>h.start.offset-m.start.offset||m.end.offset-h.end.offset);for(const m of d){const{start:h,end:x}=m;if(h.line===x.line)i(h.line,h.character,x.character,m);else if(h.line<x.line){i(h.line,h.character,Number.POSITIVE_INFINITY,m);for(let f=h.line+1;f<x.line;f++)l.unshift(()=>o(f,m));i(x.line,0,x.character,m)}}l.forEach(m=>m())}}}function ACe(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new ui(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let a=t+1;a<e.length;a++){const r=e[a],i=n.start.offset<=r.start.offset&&r.start.offset<n.end.offset,o=n.start.offset<r.end.offset&&r.end.offset<=n.end.offset,c=r.start.offset<=n.start.offset&&n.start.offset<r.end.offset,l=r.start.offset<n.end.offset&&n.end.offset<=r.end.offset;if(i||o||c||l){if(i&&o||c&&l||c&&n.start.offset===n.end.offset||o&&r.start.offset===r.end.offset)continue;throw new ui(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(r.start)} intersect.`)}}}}function dX(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(dX).join(""):""}const ECe=[jCe()];function u4(e){const t=CCe(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...ECe]}function CCe(e){const t=[],n=[],a=[];for(const r of e)switch(r.enforce){case"pre":t.push(r);break;case"post":n.push(r);break;default:a.push(r)}return{pre:t,post:n,normal:a}}var N0=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],F8={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function SCe(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const a=e.indexOf("m",n);if(a!==-1)return{sequence:e.substring(n+2,a).split(";"),startPosition:n,position:a+1}}return{position:e.length}}function UO(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(a=>Number.parseInt(a));return n.length!==3||n.some(a=>Number.isNaN(a))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function _Ce(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const a=Number.parseInt(n);if(!Number.isNaN(a))if(a===0)t.push({type:"resetAll"});else if(a<=9)F8[a]&&t.push({type:"setDecoration",value:F8[a]});else if(a<=29){const r=F8[a-20];r&&(t.push({type:"resetDecoration",value:r}),r==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:N0[a-30]}});else if(a===38){const r=UO(e);r&&t.push({type:"setForegroundColor",value:r})}else if(a===39)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:N0[a-40]}});else if(a===48){const r=UO(e);r&&t.push({type:"setBackgroundColor",value:r})}else a===49?t.push({type:"resetBackgroundColor"}):a===53?t.push({type:"setDecoration",value:"overline"}):a===55?t.push({type:"resetDecoration",value:"overline"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:N0[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:N0[a-100+8]}})}return t}function PCe(){let e=null,t=null,n=new Set;return{parse(a){const r=[];let i=0;do{const o=SCe(a,i),c=o.sequence?a.substring(i,o.startPosition):a.substring(i);if(c.length>0&&r.push({value:c,foreground:e,background:t,decorations:new Set(n)}),o.sequence){const l=_Ce(o.sequence);for(const d of l)d.type==="resetAll"?(e=null,t=null,n.clear()):d.type==="resetForegroundColor"?e=null:d.type==="resetBackgroun
1972dColor"?t=null:d.type==="resetDecoration"&&n.delete(d.value);for(const d of l)d.type==="setForegroundColor"?e=d.value:d.type==="setBackgroundColor"?t=d.value:d.type==="setDecoration"&&n.add(d.value)}i=o.position}while(i<a.length);return r}}}var DCe={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function RCe(e=DCe){function t(c){return e[c]}function n(c){return`#${c.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let a;function r(){if(a)return a;a=[];for(let d=0;d<N0.length;d++)a.push(t(N0[d]));let c=[0,95,135,175,215,255];for(let d=0;d<6;d++)for(let m=0;m<6;m++)for(let h=0;h<6;h++)a.push(n([c[d],c[m],c[h]]));let l=8;for(let d=0;d<24;d++,l+=10)a.push(n([l,l,l]));return a}function i(c){return r()[c]}function o(c){switch(c.type){case"named":return t(c.name);case"rgb":return n(c.rgb);case"table":return i(c.index)}}return{value:o}}function ICe(e,t,n){const a=c4(e,n),r=I6(t),i=RCe(Object.fromEntries(N0.map(c=>[c,e.colors?.[`terminal.ansi${c[0].toUpperCase()}${c.substring(1)}`]]))),o=PCe();return r.map(c=>o.parse(c[0]).map(l=>{let d,m;l.decorations.has("reverse")?(d=l.background?i.value(l.background):e.bg,m=l.foreground?i.value(l.foreground):e.fg):(d=l.foreground?i.value(l.foreground):e.fg,m=l.background?i.value(l.background):void 0),d=nh(d,a),m=nh(m,a),l.decorations.has("dim")&&(d=MCe(d));let h=wo.None;return l.decorations.has("bold")&&(h|=wo.Bold),l.decorations.has("italic")&&(h|=wo.Italic),l.decorations.has("underline")&&(h|=wo.Underline),l.decorations.has("strikethrough")&&(h|=wo.Strikethrough),{content:l.value,offset:c[1],color:d,bgColor:m,fontStyle:h}}))}function MCe(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const a=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${a}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(a=>`${a}${a}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function jE(e,t,n={}){const{lang:a="text",theme:r=e.getLoadedThemes()[0]}=n;if(TE(a)||NE(r))return I6(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:i,colorMap:o}=e.setTheme(r);if(a==="ansi")return ICe(i,t,n);const c=e.getLanguage(a);if(n.grammarState){if(n.grammarState.lang!==c.name)throw new ui(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${c.name}"`);if(!n.grammarState.themes.includes(i.name))throw new ui(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return OCe(t,c,i,o,n)}function LCe(...e){if(e.length===2)return A2(e[1]);const[t,n,a={}]=e,{lang:r="text",theme:i=t.getLoadedThemes()[0]}=a;if(TE(r)||NE(i))throw new ui("Plain language does not have grammar state");if(r==="ansi")throw new ui("ANSI language does not have grammar state");const{theme:o,colorMap:c}=t.setTheme(i),l=t.getLanguage(r);return new Ix(d4(n,l,o,c,a).stateStack,l.name,o.name)}function OCe(e,t,n,a,r){const i=d4(e,t,n,a,r),o=new Ix(d4(e,t,n,a,r).stateStack,t.name,n.name);return M6(i.tokens,o),i.tokens}function d4(e,t,n,a,r){const i=c4(n,r),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:c=500}=r,l=I6(e);let d=r.grammarState?kCe(r.grammarState,n.name)??uj:r.grammarContextCode!=null?d4(r.grammarContextCode,t,n,a,{...r,grammarState:void 0,grammarContextCode:void 0}).stateStack:uj,m=[];const h=[];for(let x=0,f=l.length;x<f;x++){const[b,y]=l[x];if(b===""){m=[],h.push([]);continue}if(o>0&&b.length>=o){m=[],h.push([{content:b,offset:y,color:"",fontStyle:0}]);continue}let w,T,A;r.includeExplanation&&(w=t.tokenizeLine(b,d,c),T=w.tokens,A=0);const E=t.tokenizeLine2(b,d,c),D=E.tokens.length/2;for(let S=0;S<D;S++){const R=E.tokens[2*S],L=S+1<D?E.tokens[2*S+2]:b.length;if(R===L)continue;const I=E.tokens[2*S+1],F=nh(a[mx.getForeground(I)],i),_=mx.getFontStyle(I),U={content:b.substring(R,L),offset:y+R,color:F,fontStyle:_};if(r.includeExplanation){const O=[];if(r.includeExplanation!=="scopeName")for(const J of n.settings){let oe;switch(typeof J.scope){case"string":oe=J.scope.split(/,/).map(G=>G.trim());break;case"object":oe=J.scope;break;default:continue}O.push({settings:J,selectors:oe.map(G=>G.split(/ /))})}U.explanation=[];let W=0;for(;R+W<L;){const J=T[A],oe=b.substring(J.startIndex,J.endIndex);W+=oe.length,U.explanation.push({content:oe,scopes:r.includeExplanation==="scopeName"?BCe(J.scopes):FCe(O,J.scopes)}),A+=1}}m.push(U)}h.push(m),m=[],d=E.ruleStack}return{tokens:h,stateStack:d}}function BCe(e){return e.map(t=>({scopeName:t}))}function FCe(e,t){const n=[];for(let a=0,r=t.length;a<r;a++){const i=t[a];n[a]={scopeName:i,themeMatches:HCe(e,i,t.slice(0,a))}}return n}function HO(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function UCe(e,t,n){if(!HO(e[e.length-1],t))return!1;let a=e.length-2,r=n.length-1;for(;a>=0&&r>=0;)HO(e[a],n[r])&&(a-=1),r-=1;return a===-1}function HCe(e,t,n){const a=[];for(const{selectors:r,settings:i}of e)for(const o of r)if(UCe(o,t,n)){a.push(i);break}return a}function mX(e,t,n){const a=Object.entries(n.themes).filter(l=>l[1]).map(l=>({color:l[0],theme:l[1]})),r=a.map(l=>{const d=jE(e,t,{...n,theme:l.theme}),m=A2(d),h=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:d,state:m,theme:h}}),i=VCe(...r.map(l=>l.tokens)),o=i[0].map((l,d)=>l.map((m,h)=>{const x={content:m.content,variants:{},offset:m.offset};return"includeExplanation"in n&&n.includeExplanation&&(x.explanation=m.explanation),i.forEac
vendor: 9,288 bytes, lines 1972-1973
1972h((f,b)=>{const{content:y,explanation:w,offset:T,...A}=f[d][h];x.variants[a[b].color]=A}),x})),c=r[0].state?new Ix(Object.fromEntries(r.map(l=>[l.theme,l.state?.getInternalStack(l.theme)])),r[0].state.lang):void 0;return c&&M6(o,c),o}function VCe(...e){const t=e.map(()=>[]),n=e.length;for(let a=0;a<e[0].length;a++){const r=e.map(l=>l[a]),i=t.map(()=>[]);t.forEach((l,d)=>l.push(i[d]));const o=r.map(()=>0),c=r.map(l=>l[0]);for(;c.every(l=>l);){const l=Math.min(...c.map(d=>d.content.length));for(let d=0;d<n;d++){const m=c[d];m.content.length===l?(i[d].push(m),o[d]+=1,c[d]=r[d][o[d]]):(i[d].push({...m,content:m.content.slice(0,l)}),c[d]={...m,content:m.content.slice(l),offset:m.offset+l})}}}return t}function m4(e,t,n){let a,r,i,o,c,l;if("themes"in n){const{defaultColor:d="light",cssVariablePrefix:m="--shiki-",colorsRendering:h="css-vars"}=n,x=Object.entries(n.themes).filter(T=>T[1]).map(T=>({color:T[0],theme:T[1]})).sort((T,A)=>T.color===d?-1:A.color===d?1:0);if(x.length===0)throw new ui("`themes` option must not be empty");const f=mX(e,t,n);if(l=A2(f),d&&kE!==d&&!x.find(T=>T.color===d))throw new ui(`\`themes\` option must contain the defaultColor key \`${d}\``);const b=x.map(T=>e.getTheme(T.theme)),y=x.map(T=>T.color);i=f.map(T=>T.map(A=>TCe(A,y,m,d,h))),l&&M6(i,l);const w=x.map(T=>c4(T.theme,n));r=VO(x,b,w,m,d,"fg",h),a=VO(x,b,w,m,d,"bg",h),o=`shiki-themes ${b.map(T=>T.name).join(" ")}`,c=d?void 0:[r,a].join(";")}else if("theme"in n){const d=c4(n.theme,n);i=jE(e,t,n);const m=e.getTheme(n.theme);a=nh(m.bg,d),r=nh(m.fg,d),o=m.name,l=A2(i)}else throw new ui("Invalid options, either `theme` or `themes` must be provided");return{tokens:i,fg:r,bg:a,themeName:o,rootStyle:c,grammarState:l}}function VO(e,t,n,a,r,i,o){return e.map((c,l)=>{const d=nh(t[l][i],n[l])||"inherit",m=`${a+c.color}${i==="bg"?"-bg":""}:${d}`;if(l===0&&r){if(r===kE&&e.length>1){const h=e.findIndex(y=>y.color==="light"),x=e.findIndex(y=>y.color==="dark");if(h===-1||x===-1)throw new ui('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const f=nh(t[h][i],n[h])||"inherit",b=nh(t[x][i],n[x])||"inherit";return`light-dark(${f}, ${b});${m}`}return d}return o==="css-vars"?m:null}).filter(c=>!!c).join(";")}function p4(e,t,n,a={meta:{},options:n,codeToHast:(r,i)=>p4(e,r,i),codeToTokens:(r,i)=>m4(e,r,i)}){let r=t;for(const b of u4(n))r=b.preprocess?.call(a,r,n)||r;let{tokens:i,fg:o,bg:c,themeName:l,rootStyle:d,grammarState:m}=m4(e,r,n);const{mergeWhitespaces:h=!0,mergeSameStyleTokens:x=!1}=n;h===!0?i=$Ce(i):h==="never"&&(i=qCe(i)),x&&(i=GCe(i));const f={...a,get source(){return r}};for(const b of u4(n))i=b.tokens?.call(f,i)||i;return zCe(i,{...n,fg:o,bg:c,themeName:l,rootStyle:d},f,m)}function zCe(e,t,n,a=A2(e)){const r=u4(t),i=[],o={type:"root",children:[]},{structure:c="classic",tabindex:l="0"}=t;let d={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...l!==!1&&l!=null?{tabindex:l.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([b])=>!b.startsWith("_")))},children:[]},m={type:"element",tagName:"code",properties:{},children:i};const h=[],x={...n,structure:c,addClassToHast:lX,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return d},get code(){return m},get lines(){return h}};if(e.forEach((b,y)=>{y&&(c==="inline"?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):c==="classic"&&i.push({type:"text",value:` 1973`}));let w={type:"element",tagName:"span",properties:{class:"line"},children:[]},T=0;for(const A of b){let E={type:"element",tagName:"span",properties:{...A.htmlAttrs},children:[{type:"text",value:A.content}]};const D=mj(A.htmlStyle||l4(A));D&&(E.properties.style=D);for(const S of r)E=S?.span?.call(x,E,y+1,T,w,A)||E;c==="inline"?o.children.push(E):c==="classic"&&w.children.push(E),T+=A.content.length}if(c==="classic"){for(const A of r)w=A?.line?.call(x,w,y+1)||w;h.push(w),i.push(w)}}),c==="classic"){for(const b of r)m=b?.code?.call(x,m)||m;d.children.push(m);for(const b of r)d=b?.pre?.call(x,d)||d;o.children.push(d)}let f=o;for(const b of r)f=b?.root?.call(x,f)||f;return a&&M6(f,a),f}function $Ce(e){return e.map(t=>{const n=[];let a="",r=0;return t.forEach((i,o)=>{const l=!(i.fontStyle&&(i.fontStyle&wo.Underline||i.fontStyle&wo.Strikethrough));l&&i.content.match(/^\s+$/)&&t[o+1]?(r||(r=i.offset),a+=i.content):a?(l?n.push({...i,offset:r,content:a+i.content}):n.push({content:a,offset:r},i),r=0,a=""):n.push(i)}),n})}function qCe(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const a=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!a)return n;const[,r,i,o]=a;if(!r&&!o)return n;const c=[{...n,offset:n.offset+r.length,content:i}];return r&&c.unshift({content:r,offset:n.offset}),o&&c.push({content:o,offset:n.offset+r.length+i.length}),c}))}function GCe(e){return e.map(t=>{const n=[];for(const a of t){if(n.length===0){n.push({...a});continue}const r=n[n.length-1],i=mj(r.htmlStyle||l4(r)),o=mj(a.htmlStyle||l4(a)),c=r.fontStyle&&(r.fontStyle&wo.Underline||r.fontStyle&wo.Strikethrough),l=a.fontStyle&&(a.fontStyle&wo.Underline||a.fontStyle&wo.Strikethrough);!c&&!l&&i===o?r.content+=a.content:n.push({...a})}return n})}const JCe=hCe;function WCe(e,t,n){const a={meta:{},options:n,codeToHast:(i,o)=>p4(e,i,o),codeToTokens:(i,o)=>m4(e,i,o)};let r=JCe(p4(e,t,n,a));for(const i of u4(n))r=i.postprocess?.call(a,r,n)||r;return r}const zO={light:"#333333",dark:"#bbbbbb"},$O={light:"#fffffe",dark:"#1e1e1e"},qO="__shiki_resolved";function AE(e){if(e?.[qO])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:a}=t;if(!n||!a){const c=t.settings?t.settings.find(l=>!l.name&&!l.scope):void 0;c?.settings?.foreground&&(a=c.settings.foreground),c?.settings?.background&&(n=c.settings.background),!a&&t?.colors?.["editor.foreground"]&&(a=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),a||(a=t.type==="light"?zO.light:zO.dark),n||(n=t.type==="light"?$O.light:$O.dark),t.fg=a,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let r=0;const i=new Map;function o(c){if(i.has(c))return i.get(c);r+=1;const l=`#${r.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${l}`]?o(c):(i.set(c,l),l)}t.settings=t.settings.map(c=>{const l=c.settings?.foreground&&!c.settings.foreground.startsWith("#"),d=c.settings?.background&&!c.settings.background.startsWith("#");if(!l&&!d)return c;const m={...c,settings:{...c.settings}};if(l){const h=o(c.settings.foreground);t.colorReplacements[h]=c.settings.foreground,m.settings.foreground=h}if(d){const h=o(c.settings.background);t.colorReplacements[h]=c.settings.background,m.settings.background=h}return m});for(const c of Object.keys(t.colors||{}))if((c==="editor.foreground"||c==="editor.background"||c.startsWith("terminal.ansi"))&&!t.colors[c]?.startsWith("#")){const l=o(t.colors[c]);t.colorReplacements[l]=t.colors[c],t.colors[c]=l}return Object.defineProperty(t,qO,{enumerable:!1,writable:!1,value:!0}),t}async function pX(e){return Array.from(new Set((await Promise.all(e.filter(t=>!oX(t)).map(async t=>await iX(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function hX(e){return(await Promise.all(e.map(async n=>cX(n)?null:AE(await iX(n))))).filter(n=>!!n)}let YCe=3;function XCe(e,t=3){t>YCe||console.trace(`[SHIKI DEPRECATE]: ${e}`)}let Ug=class extends Error{constructor(t){super(t),this.name="ShikiError"}};class QCe extends hEe{constructor(t,n,a,r={}){super(t),this._resolver=t,this._themes=n,this._langs=a,this._alias=r,this._themes.map(i=>this.loadTheme(i)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=AE(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=a4.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){if(this._alias[t]){const n=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],n.has(t))throw new Ug(`Circular alias \`${Array.from(n).join(" -> ")} -> ${t}\``);n.add(t)}}return this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(i=>i.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const a={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const r=this.loadGrammarWithConfiguration(t.scopeName,1,a);if(r.name=t.name,this._resolvedGrammars.set(t.name,r),t.aliases&&t.aliases.forEac
1973h(i=>{this._alias[i]=t.name}),this._loadedLanguagesCache=null,n.size)for(const i of n)this._resolvedGrammars.delete(i.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(i.scopeName),this._syncRegistry?._grammars?.delete(i.scopeName),this.loadLanguage(this._langMap.get(i.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const r of t)this.resolveEmbeddedLanguages(r);const n=Array.from(this._langGraph.entries()),a=n.filter(([r,i])=>!i);if(a.length){const r=n.filter(([i,o])=>o&&o.embeddedLangs?.some(c=>a.map(([l])=>l).includes(c))).filter(i=>!a.includes(i));throw new Ug(`Missing languages ${a.map(([i])=>`\`${i}\``).join(", ")}, required by ${r.map(([i])=>`\`${i}\``).join(", ")}`)}for(const[r,i]of n)this._resolver.addLanguage(i);for(const[r,i]of n)this.loadLanguage(i)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs)for(const n of t.embeddedLangs)this._langGraph.set(n,this._langMap.get(n))}}class KCe{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){this._onigLib={createOnigScanner:a=>t.createScanner(a),createOnigString:a=>t.createString(a)}
vendor: 22,596 bytes, line 1973
1973,n.forEach(a=>this.addLanguage(a))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let a=[];for(let r=1;r<=n.length;r++){const i=n.slice(0,r).join(".");a=[...a,...this._injections.get(i)||[]]}return a}}let K1=0;function ZCe(e){K1+=1,e.warnings!==!1&&K1>=10&&K1%10===0&&console.warn(`[Shiki] ${K1} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new Ug("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),a=(e.themes||[]).flat(1).map(AE),r=new KCe(e.engine,n),i=new QCe(r,a,n,e.langAlias);let o;function c(A){w();const E=i.getGrammar(typeof A=="string"?A:A.name);if(!E)throw new Ug(`Language \`${A}\` not found, you may need to load it first`);return E}function l(A){if(A==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};w();const E=i.getTheme(A);if(!E)throw new Ug(`Theme \`${A}\` not found, you may need to load it first`);return E}function d(A){w();const E=l(A);o!==A&&(i.setTheme(E),o=A);const D=i.getColorMap();return{theme:E,colorMap:D}}function m(){return w(),i.getLoadedThemes()}function h(){return w(),i.getLoadedLanguages()}function x(...A){w(),i.loadLanguages(A.flat(1))}async function f(...A){return x(await pX(A))}function b(...A){w();for(const E of A.flat(1))i.loadTheme(E)}async function y(...A){return w(),b(await hX(A))}function w(){if(t)throw new Ug("Shiki instance has been disposed")}function T(){t||(t=!0,i.dispose(),K1-=1)}return{setTheme:d,getTheme:l,getLanguage:c,getLoadedThemes:m,getLoadedLanguages:h,loadLanguage:f,loadLanguageSync:x,loadTheme:y,loadThemeSync:b,dispose:T,[Symbol.dispose]:T}}async function eSe(e){e.engine||XCe("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,a]=await Promise.all([hX(e.themes||[]),pX(e.langs||[]),e.engine]);return ZCe({...e,themes:t,langs:n,engine:a})}async function tSe(e){const t=await eSe(e);return{getLastGrammarState:(...n)=>LCe(t,...n),codeToTokensBase:(n,a)=>jE(t,n,a),codeToTokensWithThemes:(n,a)=>mX(t,n,a),codeToTokens:(n,a)=>m4(t,n,a),codeToHast:(n,a)=>p4(t,n,a),codeToHtml:(n,a)=>WCe(t,n,a),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function nSe(e){const t=e.langs,n=e.themes,a=e.engine;async function r(i){function o(h){if(typeof h=="string"){if(oX(h))return[];h=i.langAlias?.[h]||h;const x=t[h];if(!x)throw new ui(`Language \`${h}\` is not included in this bundle. You may want to load it from external source.`);return x}return h}function c(h){if(cX(h))return"none";if(typeof h=="string"){const x=n[h];if(!x)throw new ui(`Theme \`${h}\` is not included in this bundle. You may want to load it from external source.`);return x}return h}const l=(i.themes??[]).map(h=>c(h)),d=(i.langs??[]).map(h=>o(h)),m=await tSe({engine:i.engine??a(),...i,themes:l,langs:d});return{...m,loadLanguage(...h){return m.loadLanguage(...h.map(o))},loadTheme(...h){return m.loadTheme(...h.map(c))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return r}const fX=[{id:"abap",name:"ABAP",import:(()=>we(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",import:(()=>we(()=>import("./actionscript-3-CfeIJUat.js"),[]))},{id:"ada",name:"Ada",import:(()=>we(()=>import("./ada-bCR0ucgS.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>we(()=>import("./angular-html-CU67Zn6k.js").then(e=>e.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>we(()=>import("./angular-ts-BwZT4LLn.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>we(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>we(()=>import("./apex-C7Pw0Ztw.js"),[]))},{id:"apl",name:"APL",import:(()=>we(()=>import("./apl-dKokRX4l.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>we(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>we(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>we(()=>import("./asciidoc-Dv7Oe6Be.js"),[]))},{id:"asm",name:"Assembly",import:(()=>we(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>we(()=>import("./astro-CbQHKStN.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>we(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>we(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>we(()=>import("./bat-BkioyH1T.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>we(()=>import("./beancount-k_qm7-4y.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>we(()=>import("./berry-D08WgyRC.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>we(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>we(()=>import("./bicep-6nHXG8SA.js"),[]))},{id:"blade",name:"Blade",import:(()=>we(()=>import("./blade-DVc8C-J4.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>we(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>we(()=>import("./c-BIGW1oBm.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>we(()=>import("./cadence-Bv_4Rxtq.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>we(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20])))},{id:"clarity",name:"Clarity",import:(()=>we(()=>import("./clarity-D53aC0YG.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>we(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>we(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>we(()=>import("./cobol-nwyudZeR.js"),__vite__mapDeps([21,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>we(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>we(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>we(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([22,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>we(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Coq",import:(()=>we(()=>import("./coq-DkFqJrB1.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>we(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([23,24,25,26,16])))},{id:"crystal",name:"Crystal",import:(()=>we(()=>import("./crystal-tKQVLTB8.js"),__vite__mapDeps([27,1,2,3,16,26,28])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>we(()=>import("./csharp-CX12Zw3r.js"),[]))},{id:"css",name:"CSS",import:(()=>we(()=>import("./css-DPfMkruS.js"),[]))},{id:"csv",name:"CSV",import:(()=>we(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>we(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>we(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>we(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>we(()=>import("./dart-CF10PKvl.js"),[]))},{id:"dax",name:"DAX",import:(()=>we(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>we(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>we(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>we(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>we(()=>import("./dotenv-Da5cRb03.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>we(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>we(()=>import("./edge-BkV0erSs.js"),__vite__mapDeps([29,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>we(()=>import("./elixir-CDX3lj18.js"),__vite__mapDeps([30,1,2,3])))},{id:"elm",name:"Elm",import:(()=>we(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([31,25,26])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>we(()=>import("./emacs-lisp-C9XAeP06.js"),[]))},{id:"erb",name:"ERB",import:(()=>we(()=>import("./erb-BOJIQeun.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>we(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([39,40])))},{id:"fennel",name:"Fennel",import:(()=>we(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>we(()=>import("./fish-BvzEVeQv.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>we(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>we(()=>import("./fortran-fixed-form-BZjJHVRy.js"),__vite__mapDeps([41,42])))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>we(()=>import("./fortran-free-form-D22FLkUw.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>we(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([43,40])))},{id:"gdresource",name:"GDResource",import:(()=>we(()=>import("./gdresource-B7Tvp0Sc.js"),__vite__mapDeps([44,45,46])))},{id:"gdscript",name:"GDScript",import:(()=>we(()=>import("./gdscript-DTMYz4Jt.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>we(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>we(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>we(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>we(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([47,48])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>we(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([49,28])))},{id:"gleam",name:"Gleam",import:(()=>we(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>we(()=>import("./glimmer-js-Rg0-pVw9.js"),__vite__mapDeps([50,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>we(()=>import("./glimmer-ts-U6CK756n.js"),__vite__mapDeps([51,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>we(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([25,26])))},{id:"gnuplot",name:"Gnuplot",import:(()=>we(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>we(()=>import("./go-Dn2_MT6a.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>we(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([35,2,11,36,13])))},{id:"groovy",name:"Groovy",import:(()=>we(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>we(()=>import("./hack-CaT9iCJl.js"),__vite__mapDeps([52,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>we(()=>import("./haml-B8DHNrY2.js"),__vite__mapDeps([34,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>we(()=>import("./handlebars-BL8al0AC.js"),__vite__mapDeps([53,1,2,3,38])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>we(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>we(()=>import("./haxe-CzTSHFRz.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>we(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>we(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>we(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>we(()=>import("./html-GMplVEZG.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>we(()=>import("./html-derivative-BFtXZ54Q.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>we(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13])))},{id:"hurl",name:"Hurl",import:(()=>we(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56])))},{id:"hxml",name:"HXML",import:(()=>we(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([57,58])))},{id:"hy",name:"Hy",import:(()=>we(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>we(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>we(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>we(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>we(()=>import("./javascript-wDzz0qaB.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>we(()=>import("./jinja-4LBKfQ-Z.js"),__vite__mapDeps([59,1,2,3])))},{id:"jison",name:"Jison",import:(()=>we(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([60,2])))},{id:"json",name:"JSON",import:(()=>we(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>we(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>we(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>we(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>we(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>we(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>we(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>we(()=>import("./julia-C8NyazO9.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62])))},{id:"kdl",name:"KDL",import:(()=>we(()=>import("./kdl-DV7GczEv.js"),[]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>we(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>we(()=>import("./kusto-BvAqAH-y.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>we(()=>import("./latex-BUKiar2Z.js"),__vite__mapDeps([63,64,62])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>we(()=>import("./lean-DP1Csr6i.js"),[]))},{id:"less",name:"Less",import:(()=>we(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>we(()=>import("./liquid-DYVedYrR.js"),__vite__mapDeps([65,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>we(()=>import("./llvm-BtvRca6l.js"),[]))},{id:"log",name:"Log file",import:(()=>we(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>we(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>we(()=>import("./lua-BbnMAYS6.js"),__vite__mapDeps([37,26])))},{id:"luau",name:"Luau",import:(()=>we(()=>import("./luau-CXu1NL6O.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>we(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>we(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>we(()=>import("./marko-CPi9NSCl.js"),__vite__mapDeps([66,3,67,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>we(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>we(()=>import("./mdc-DUICxH0z.js"),__vite__mapDeps([68,40,38,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>we(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>we(()=>import("./mermaid-DKYwYmdq.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>we(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>we(()=>import("./mojo-1DNp92w6.js"),[]))},{id:"move",name:"Move",import:(()=>we(()=>import("./move-Bu9oaDYs.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>we(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>we(()=>import("./nextflow-CUEJCptM.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>we(()=>import("./nginx-DknmC5AR.js"),__vite__mapDeps([69,37,26])))},{id:"nim",name:"Nim",import:(()=>we(()=>import("./nim-CVrawwO9.js"),__vite__mapDeps([70,26,1,2,3,7,8,25,40])))},{id:"nix",name:"Nix",import:(()=>we(()=>import("./nix-BbRYJGeE.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>we(()=>import("./nushell-C-sUppwS.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>we(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>we(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>we(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"pascal",name:"Pascal",import:(()=>we(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>we(()=>import("./perl-C0TMdlhV.js"),__vite__mapDeps([71,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>we(()=>import("./php-CDn_0X-4.js"),__vite__mapDeps([72,1,2,3,7,8,16,9])))},{id:"pkl",name:"Pkl",import:(()=>we(()=>import("./pkl-u5AG7uiY.js"),[]))},{id:"plsql",name:"PL/SQL",import:(()=>we(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>we(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>we(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>we(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>we(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>we(()=>import("./powershell-Dpen1YoG.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>we(()=>import("./prisma-Dd19v3D-.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>we(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>we(()=>import("./proto-DyJlTyXw.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>we(()=>import("./pug-CGlum2m_.js"),__vite__mapDeps([73,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>we(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>we(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>we(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>we(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([74,2])))},{id:"qmldir",name:"QML Directory",import:(()=>we(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>we(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>we(()=>import("./r-DiinP2Uv.js"),[]))},{id:"racket",name:"Racket",import:(()=>we(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>we(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>we(()=>import("./razor-WgofotgN.js"),__vite__mapDeps([75,1,2,3,76])))},{id:"reg",name:"Windows Registry Script",import:(()=>we(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>we(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>we(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>we(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"rosmsg",name:"ROS Interface",import:(()=>we(()=>import("./rosmsg-BJDFO7_C.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>we(()=>import("./rst-B0xPkSld.js"),__vite__mapDeps([77,15,1,2,3,23,24,25,26,16,20,28,38,78,33,34,7,8,35,11,36,13,37])))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>we(()=>import("./ruby-BvKwtOVI.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>we(()=>import("./rust-B1yitclQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>we(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([79,16])))},{id:"sass",name:"Sass",import:(()=>we(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>we(()=>import("./scala-C151Ov-r.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>we(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>we(()=>import("./scss-OYdSNvt2.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>we(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>we(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([80,81])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>we(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>we(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([82,28])))},{id:"smalltalk",name:"Smalltalk",import:(()=>we(()=>import("./smalltalk-BERRCDM3.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>we(()=>import("./solidity-BbcW6ACK.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>we(()=>import("./soy-Brmx7dQM.js"),__vite__mapDeps([83,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>we(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([84,85])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>we(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>we(()=>import("./sql-BLtJtn59.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>we(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>we(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([86,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>we(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"svelte",name:"Svelte",import:(()=>we(()=>import("./svelte-3Dk4HxPD.js"),__vite__mapDeps([87,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>we(()=>import("./swift-Dg5xB15N.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>we(()=>import("./system-verilog-CnnmHF94.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>we(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>we(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>we(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>we(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>we(()=>import("./templ-W15q3VgB.js"),__vite__mapDeps([88,89,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>we(()=>import("./terraform-BETggiCN.js"),[]))}
1973,{id:"tex",name:"TeX",import:(()=>we(()=>import("./tex-Cppo0RY3.js"),__vite__mapDeps([64,62])))},{id:"toml",name:"TOML",import:(()=>we(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>we(()=>import("./ts-tags-zn1MmPIZ.js"),__vite__mapDeps([90,11,3,2,25,26,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>we(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>we(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>we(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>we(()=>import("./twig-CO9l9SDP.js"),__vite__mapDeps([91,3,2,5,72,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38])))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>we(()=>import("./typescript-BPQ3VLAy.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>we(()=>import("./typespec-Df68jz8_.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>we(()=>import("./typst-DHCkPAjA.js"),[]))}
vendor: 5,531 bytes, line 1973
1973,{id:"v",name:"V",import:(()=>we(()=>import("./v-BcVCzyr7.js"),[]))},{id:"vala",name:"Vala",import:(()=>we(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>we(()=>import("./vb-D17OF-Vu.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>we(()=>import("./verilog-BQ8w6xss.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>we(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>we(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>we(()=>import("./vue-CCoi5OLL.js"),__vite__mapDeps([92,3,2,11,9,15,1])))},{id:"vue-html",name:"Vue HTML",import:(()=>we(()=>import("./vue-html-DAAvJJDi.js"),__vite__mapDeps([93,92,3,2,11,9,15,1])))},{id:"vue-vine",name:"Vue Vine",import:(()=>we(()=>import("./vue-vine-_Ih-lPRR.js"),__vite__mapDeps([94,3,5,67,95,12,92,2,11,9,15,1])))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>we(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>we(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["æè¨"],import:(()=>we(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>we(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>we(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>we(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>we(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>we(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>we(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([96,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>we(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>we(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>we(()=>import("./zig-VOosw3JB.js"),[]))}],aSe=Object.fromEntries(fX.map(e=>[e.id,e.import])),sSe=Object.fromEntries(fX.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),gX={...aSe,...sSe},rSe=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>we(()=>import("./andromeeda-C-Jbm3Hp.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>we(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>we(()=>import("./ayu-dark-Cv9koXgw.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>we(()=>import("./catppuccin-frappe-DFWUc33u.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>we(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>we(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>we(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>we(()=>import("./dark-plus-eOWES_5F.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>we(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>we(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>we(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>we(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>we(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>we(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>we(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>we(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>we(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>we(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>we(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>we(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>we(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>we(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>we(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>we(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>we(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>we(()=>
1973import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>we(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>we(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>we(()=>import("./kanagawa-wave-DWedfzmr.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>we(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>we(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>we(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>we(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>we(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>we(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>we(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>we(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>we(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>we(()=>import("./monokai-D4h5O-jR.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>we(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>we(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>we(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>we(()=>import("./one-light-PoHY5YXO.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>we(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>we(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>we(()=>import("./red-bN70gL4F.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>we(()=>import("./rose-pine-BHrmToEH.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>we(()=>import("./rose-pine-dawn-CnK8MTSM.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>we(()=>import("./rose-pine-moon-NleAzG8P.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>we(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>we(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>we(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>we(()=>import("./solarized-dark-DXbdFlpD.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>we(()=>import("./solarized-light-L9t79GZl.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>we(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>we(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>we(()=>import("./vesper-DU1UobuO.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>we(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>we(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>we(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],iSe=Object.fromEntries(rSe.map(e=>[e.id,e.import]));
vendor: 20,507 bytes, lines 1973-2005
1973class EE extends Error{constructor(t){super(t),this.name="ShikiError"}}function oSe(){return 2147483648}function cSe(){return typeof performance<"u"?performance.now():Date.now()}const lSe=(e,t)=>e+(t-e%t)%t;async function uSe(e){let t,n;const a={};function r(f){n=f,a.HEAPU8=new Uint8Array(f),a.HEAPU32=new Uint32Array(f)}function i(f,b,y){a.HEAPU8.copyWithin(f,b,b+y)}function o(f){try{return t.grow(f-n.byteLength+65535>>>16),r(t.buffer),1}catch{}}function c(f){const b=a.HEAPU8.length;f=f>>>0;const y=oSe();if(f>y)return!1;for(let w=1;w<=4;w*=2){let T=b*(1+.2/w);T=Math.min(T,f+100663296);const A=Math.min(y,lSe(Math.max(f,T),65536));if(o(A))return!0}return!1}const l=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function d(f,b,y=1024){const w=b+y;let T=b;for(;f[T]&&!(T>=w);)++T;if(T-b>16&&f.buffer&&l)return l.decode(f.subarray(b,T));let A="";for(;b<T;){let E=f[b++];if(!(E&128)){A+=String.fromCharCode(E);continue}const D=f[b++]&63;if((E&224)===192){A+=String.fromCharCode((E&31)<<6|D);continue}const S=f[b++]&63;if((E&240)===224?E=(E&15)<<12|D<<6|S:E=(E&7)<<18|D<<12|S<<6|f[b++]&63,E<65536)A+=String.fromCharCode(E);else{const R=E-65536;A+=String.fromCharCode(55296|R>>10,56320|R&1023)}}return A}function m(f,b){return f?d(a.HEAPU8,f,b):""}const h={emscripten_get_now:cSe,emscripten_memcpy_big:i,emscripten_resize_heap:c,fd_write:()=>0};async function x(){const b=await e({env:h,wasi_snapshot_preview1:h});t=b.memory,r(t.buffer),Object.assign(a,b),a.UTF8ToString=m}return await x(),a}var dSe=Object.defineProperty,mSe=(e,t,n)=>t in e?dSe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ni=(e,t,n)=>mSe(e,typeof t!="symbol"?t+"":t,n);let Ui=null;function pSe(e){throw new EE(e.UTF8ToString(e.getLastOnigError()))}class L6{constructor(t){Ni(this,"utf16Length"),Ni(this,"utf8Length"),Ni(this,"utf16Value"),Ni(this,"utf8Value"),Ni(this,"utf16OffsetToUtf8"),Ni(this,"utf8OffsetToUtf16");const n=t.length,a=L6._utf8ByteLength(t),r=a!==n,i=r?new Uint32Array(n+1):null;r&&(i[n]=a);const o=r?new Uint32Array(a+1):null;r&&(o[a]=n);const c=new Uint8Array(a);let l=0;for(let d=0;d<n;d++){const m=t.charCodeAt(d);let h=m,x=!1;if(m>=55296&&m<=56319&&d+1<n){const f=t.charCodeAt(d+1);f>=56320&&f<=57343&&(h=(m-55296<<10)+65536|f-56320,x=!0)}r&&(i[d]=l,x&&(i[d+1]=l),h<=127?o[l+0]=d:h<=2047?(o[l+0]=d,o[l+1]=d):h<=65535?(o[l+0]=d,o[l+1]=d,o[l+2]=d):(o[l+0]=d,o[l+1]=d,o[l+2]=d,o[l+3]=d)),h<=127?c[l++]=h:h<=2047?(c[l++]=192|(h&1984)>>>6,c[l++]=128|(h&63)>>>0):h<=65535?(c[l++]=224|(h&61440)>>>12,c[l++]=128|(h&4032)>>>6,c[l++]=128|(h&63)>>>0):(c[l++]=240|(h&1835008)>>>18,c[l++]=128|(h&258048)>>>12,c[l++]=128|(h&4032)>>>6,c[l++]=128|(h&63)>>>0),x&&d++}this.utf16Length=n,this.utf8Length=a,this.utf16Value=t,this.utf8Value=c,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=o}static _utf8ByteLength(t){let n=0;for(let a=0,r=t.length;a<r;a++){const i=t.charCodeAt(a);let o=i,c=!1;if(i>=55296&&i<=56319&&a+1<r){const l=t.charCodeAt(a+1);l>=56320&&l<=57343&&(o=(i-55296<<10)+65536|l-56320,c=!0)}o<=127?n+=1:o<=2047?n+=2:o<=65535?n+=3:n+=4,c&&a++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const O6=class cd{constructor(t){if(Ni(this,"id",++cd.LAST_ID),Ni(this,"_onigBinding"),Ni(this,"content"),Ni(this,"utf16Length"),Ni(this,"utf8Length"),Ni(this,"utf16OffsetToUtf8"),Ni(this,"utf8OffsetToUtf16"),Ni(this,"ptr"),!Ui)throw new EE("Must invoke loadWasm first.");this._onigBinding=Ui,this.content=t;const n=new L6(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!cd._sharedPtrInUse?(cd._sharedPtr||(cd._sharedPtr=Ui.omalloc(1e4)),cd._sharedPtrInUse=!0,Ui.HEAPU8.set(n.utf8Value,cd._sharedPtr),this.ptr=cd._sharedPtr):this.ptr=n.createString(Ui)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===cd._sharedPtr?cd._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Ni(O6,"LAST_ID",0);Ni(O6,"_sharedPtr",0);Ni(O6,"_sharedPtrInUse",!1);let xX=O6;class hSe{constructor(t){if(Ni(this,"_onigBinding"),Ni(this,"_ptr"),!Ui)throw new EE("Must invoke loadWasm first.");const n=[],a=[];for(let c=0,l=t.length;c<l;c++){const d=new L6(t[c]);n[c]=d.createString(Ui),a[c]=d.utf8Length}const r=Ui.omalloc(4*t.length);Ui.HEAPU32.set(n,r/4);const i=Ui.omalloc(4*t.length);Ui.HEAPU32.set(a,i/4);const o=Ui.createOnigScanner(r,i,t.length);for(let c=0,l=t.length;c<l;c++)Ui.ofree(n[c]);Ui.ofree(i),Ui.ofree(r),o===0&&pSe(Ui),this._onigBinding=Ui,this._ptr=o}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,a){let r=0;if(typeof a=="number"&&(r=a),typeof t=="string"){t=new xX(t);const i=this._findNextMatchSync(t,n,!1,r);return t.dispose(),i}return this._findNextMatchSync(t,n,!1,r)}_findNextMatchSync(t,n,a,r){const i=this._onigBinding,o=i.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),r);if(o===0)return null;const c=i.HEAPU32;let l=o/4;const d=c[l++],m=c[l++],h=[];for(let x=0;x<m;x++){const f=t.convertUtf8OffsetToUtf16(c[l++]),b=t.convertUtf8OffsetToUtf16(c[l++]);h[x]={start:f,end:b,length:b-f}}return{index:d,captureIndices:h}}}function fSe(e){return typeof e.instantiator=="function"}function gSe(e){return typeof e.default=="function"}function xSe(e){return typeof e.data<"u"}function bSe(e){return typeof Response<"u"&&e instanceof Response}function vSe(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let S5;function ySe(e){if(S5)return S5;async function t(){Ui=await uSe(async n=>{let a=e;return a=await a,typeof a=="function"&&(a=await a(n)),typeof a=="function"&&(a=await a(n)),fSe(a)?a=await a.instantiator(n):gSe(a)?a=await a.default(n):(xSe(a)&&(a=a.data),bSe(a)?typeof WebAssembly.instantiateStreaming=="function"?a=await wSe(a)(n):a=await TSe(a)(n):vSe(a)?a=await U8(a)(n):a instanceof WebAssembly.Module?a=await U8(a)(n):"default"in a&&a.default instanceof WebAssembly.Module&&(a=await U8(a.default)(n))),"instance"in a&&(a=a.instance),"exports"in a&&(a=a.exports),a})}return S5=t(),S5}function U8(e){return t=>WebAssembly.instantiate(e,t)}function wSe(e){return t=>WebAssembly.instantiateStreaming(e,t)}function TSe(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function NSe(e){return e&&await ySe(e),{createScanner(t){return new hSe(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new xX(t)}}}const GO=nSe({langs:gX,themes:iSe,engine:()=>NSe(we(()=>import("./wasm-CG6Dc4jp.js"),[]))});function Mx(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function kSe(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}const CE=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),qi=String.raw;function Lx(e,t){if(e==null)throw new Error(t??"Value expected");return e}const bX=qi`\[\^?`,vX=`c.? | C(?:-.?)?|${qi`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${qi`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${qi`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${qi`o\{[^\}]*\}?`}|${qi`\d{1,3}`}`,SE=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,_5=new RegExp(qi` 1974 \\ (?: 1975 ${vX} 1976 | [gk]<[^>]*>? 1977 | [gk]'[^']*'? 1978 | . 1979 ) 1980 | \( (?: 1981 \? (?: 1982 [:=!>({] 1983 | <[=!] 1984 | <[^>]*> 1985 | '[^']*' 1986 | ~\|? 1987 | #(?:[^)\\]|\\.?)* 1988 | [^:)]*[:)] 1989 )? 1990 | \*[^\)]*\)? 1991 )? 1992 | (?:${SE.source})+ 1993 | ${bX} 1994 | . 1995`.replace(/\s+/g,""),"gsu"),H8=new RegExp(qi` 1996 \\ (?: 1997 ${vX} 1998 | . 1999 ) 2000 | \[:(?:\^?\p{Alpha}+|\^):\] 2001 | ${bX} 2002 | && 2003 | . 2004`.replace(/\s+/g,""),"gsu");function jSe(e,t={}){const n={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");const a=$Se(n.flags),r=[a.extended],i={captureGroup:n.rules.captureGroup,getCurrentModX(){return r.at(-1)},numOpenGroups:0,popModX(){r.pop()},pushModX(h){r.push(h)},replaceCurrentModX(h){r[r.length-1]=h},singleline:n.rules.singleline};let o=[],c;for(_5.lastIndex=0;c=_5.exec(e);){const h=ASe(i,e,c[0],_5.lastIndex);h.tokens?o.push(...h.tokens):h.token&&o.push(h.token),h.lastIndex!==void 0&&(_5.lastIndex=h.lastIndex)}const l=[];let d=0;o.filter(h=>h.type==="GroupOpen").forEach(h=>{h.kind==="capturing"?h.number=++d:h.raw==="("&&l.push(h)}),d||l.forEach((h,x)=>{h.kind="capturing",h.number=x+1});const m=d||l.length;return{tokens:o.map(h=>h.type==="EscapedNumber"?GSe(h,m):h).flat(),flags:a}}function ASe(e,t,n,a){const[r,i]=n;if(n==="["||n==="[^"){const o=ESe(t,n,a);return{tokens:o.tokens,lastIndex:o.lastIndex}}if(r==="\\"){if("AbBGyYzZ".includes(i))return{token:JO(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:OSe(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:wX(n)}}if(i==="K")return{token:TX("keep",n)};if(i==="N"||i==="R")return{token:k0("newline",n,{negate:i==="N"})};if(i==="O")return{token:k0("any",n)};if(i==="X")return{token:k0("text_segment",n)};const o=yX(n,{inCharClass:!1});return Array.isArray(o)?{tokens:o}:{token:o}}if(r==="("){if(i==="*")return{token:HSe(n)};if(n==="(?{")throw new Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(t[a]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:a+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:USe(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:Cg("group",n)};if(n==="(?>")return{token:Cg("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:Cg(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:Cg("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:Cg("absence_repeater",n)}}throw n==="(?("?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(n===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:ISe(n)}}if(e.getCurrentModX()){if(n==="#"){const o=t.indexOf(` 2005`,a);return{lastIndex:o===-1?t.length:o}}if(/^\s$/.test(n)){const o=/\s+/y;return o.lastIndex=a,{lastIndex:o.exec(t)?o.lastIndex:a}}}if(n===".")return{token:k0("dot",n)};if(n==="^"||n==="$"){const o=e.singleline?{"^":qi`\A`,$:qi`\Z`}[n]:n;return{token:JO(o,n)}}return n==="|"?{token:SSe(n)}:SE.test(n)?{tokens:JSe(n)}:{token:Lm(Mx(n),n)}}function ESe(e,t,n){const a=[WO(t[1]==="^",t)];let r=1,i;for(H8.lastIndex=n;i=H8.exec(e);){const o=i[0];if(o[0]==="["&&o[1]!==":")r++,a.push(WO(o[1]==="^",o));else if(o==="]"){if(a.at(-1).type==="CharacterClassOpen")a.push(Lm(93,o));else if(r--,a.push(_Se(o)),!r)break}else{const c=CSe(o);Array.isArray(c)?a.push(...c):a.push(c)}}return{tokens:a,lastIndex:H8.lastIndex||e.length}}function CSe(e){if(e[0]==="\\")return yX(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!CE.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return k0("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?PSe(e):e==="&&"?DSe(e):Lm(Mx(e),e)}function yX(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return FSe(e);if("dDhHsSwW".includes(n))return VSe(e);if(e.startsWith(qi`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return zSe(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{const a=e.split(/\\x/).slice(1).map(o=>parseInt(o,16)),r=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(a)),i=new TextEncoder;return[...r].map(o=>{const c=[...i.encode(o)].map(l=>`\\x${l.toString(16)}`).join("");return Lm(Mx(o),c)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return Lm(qSe(e),e);if(YO.has(n))return Lm(YO.get(n),e);if(/\d/.test(n))return RSe(t,e);if(e==="\\")throw new Error(qi`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return Lm(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function SSe(e){return{type:"Alternator",raw:e}}function JO(e,t){return{type:"Assertion",kind:e,raw:t}}function wX(e){return{type:"Backreference",raw:e}}function Lm(e,t){return{type:"Character",value:e,raw:t}}function _Se(e){return{type:"CharacterClassClose",raw:e}}function PSe(e){return{type:"CharacterClassHyphen",raw:e}}function DSe(e){return{type:"CharacterClassIntersector",raw:e}}function WO(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function k0(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function TX(e,t,n={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:Lx(n.flags),raw:t}}function RSe(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function ISe(e){return{type:"GroupClose",raw:e}}function Cg(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}function MSe(e,t,n,a){return{type:"NamedCallout",kind:e,tag:t,arguments:n,raw:a}}function LSe(e,t,n,a){return{type:"Quantifier",kind:e,min:t,max:n,raw:a}}function OSe(e){return{type:"Subroutine",raw:e}}const BSe=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),YO=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function FSe(e){const t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return Lm(Mx(t.toUpperCase())-64,e)}function USe(e,t){let{on:n,off:a}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;a??="";const r=(t.getCurrentModX()||n.includes("x"))&&!a.includes("x"),i=QO(n),o=QO(a),c={};if(i&&(c.enable=i),o&&(c.disable=o),e.endsWith(")"))return t.replaceCurrentModX(r),TX("flags",e,{flags:c});if(e.endsWith(":"))return t.pushModX(r),t.numOpenGroups++,Cg("group",e,{...(i||o)&&{flags:c}});throw new Error(`Unexpected flag modifier "${e}"`)}function HSe(e){const t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);const{name:n,tag:a,args:r}=t.groups;if(!n)throw new Error(`Invalid named callout "${e}"`);if(a==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);const i=r?r.split(",").filter(m=>m!=="").map(m=>/^[+-]?\d+$/.test(m)?+m:m):[],[o,c,l]=i,d=BSe.has(n)?n.toLowerCase():"custom";switch(d){case"fail":case"mismatch":case"skip":if(i.length>0)throw new Error(`Named callout arguments not allowed "${i}"`);break;case"error":if(i.length>1)throw new Error(`Named callout allows only one argument "${i}"`);if(typeof o=="string")throw new Error(`Named callout argument must be a number "${o}"`);break;case"max":if(!i.length||i.length>2)throw new Error(`Named callout must have one or two arguments "${i}"`);if(typeof o=="string"&&!/^[A-Za-z_]\w*$/.test(o))throw new Error(`Named callout argument one must be a tag or number "${o}"`);if(i.length===2&&(typeof c=="number"||!/^[<>X]$/.test(c)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${c}"`);break;case"count":case"total_count":if(i.length>1)throw new Error(`Named callout allows only one argument "${i}"`);if(i.length===1&&(typeof o=="number"||!/^[<>X]$/.test(o)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${o}"`);break;case"cmp":if(i.length!==3)throw new Error(`Named callout must have three arguments "${i}"`);if(typeof o=="string"&&!/^[A-Za-z_]\w*$/.test(o))throw new Error(`Named callout argument one must be a tag or number "${o}"`);if(typeof c=="number"||!/^(?:[<>!=]=|[<>])$/.test(c))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${c}"`);if(typeof l=="string"&&!/^[A-Za-z_]\w*$/.test(l))throw new Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw new Error(`Undefined callout name "${n}"`);default:throw new Error(`Unexpected named callout kind "${d}"`)}return MSe(d,a??null,r?.split(",")??null,e)}function XO(e){let t=null,n,a;if(e[0]==="{"){const{minStr:r,maxStr:i}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,o=1e5;if(+r>o||i&&+i>o)throw new Error("Quantifier value unsupported in Oniguruma");if(n=+r,a=i===void 0?+r:i===""?1/0:+i,n>a&&(t="possessive",[n,a]=[a,n]),e.endsWith("?")){if(t==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else n=e[0]==="+"?1:0,a=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return LSe(t,n,a,e)}function VSe(e){const t=e[1].toLowerCase();return k0({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function zSe(e){const{p:t,neg:n,value:a}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return k0("property",e,{value:a,negate:t==="P"&&!n||t==="p"&&!!n})}function QO(e){const t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function $Se(e){const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){const a=e[n];if(!"imxDPSWy".includes(a))throw new Error(`Invalid flag "${a}"`);if(a==="y"){if(!/^y{[gw]}/.test(e.slice(n)))throw new Error('Invalid or unspecified flag "y" mode');t.textSegmentMode=e[n+2]==="g"?"grapheme":"word",n+=3;continue}t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[a]]=!0}return t}function qSe(e){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(e))throw new Error(`Incomplete or invalid escape "${e}"`);const t=e[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function GSe(e,t){const{raw:n,inCharClass:a}=e,r=n.slice(1);if(!a&&(r!=="0"&&r.length===1||r[0]!=="0"&&+r<=t))return[wX(n)];const i=[],o=r.match(/^[0-7]+|\d/g);for(let c=0;c<o.length;c++){const l=o[c];let d;if(c===0&&l!=="8"&&l!=="9"){if(d=parseInt(l,8),d>127)throw new Error(qi`Octal encoded byte above 177 unsupported "${n}"`)}else d=Mx(l);i.push(Lm(d,(c===0?"\\":"")+l))}return i}function JSe(e){const t=[],n=new RegExp(SE,"gy");let a;for(;a=n.exec(e);){const r=a[0];if(r[0]==="{"){const i=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(r);if(i){const{min:o,max:c}=i.groups;if(+o>+c&&r.endsWith("?")){n.lastIndex--,t.push(XO(r.slice(0,-1)));continue}}}t.push(XO(r))}return t}function NX(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;const n=e.body[0];return!t||Object.keys(t).every(a=>t[a]===n[a])}function WSe(e){return YSe.has(e.type)}const YSe=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function kX(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},a=jSe(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),r=(x,f)=>{const b=a.tokens[i.nextIndex];switch(i.parent=x,i.nextIndex++,b.type){case"Alternator":return $0();case"Assertion":return XSe(b);case"Backreference":return QSe(b,i);case"Character":return B6(b.value,{useLastValid:!!f.isCheckingRangeEnd});case"CharacterClassHyphen":return KSe(b,i,f);case"CharacterClassOpen":return ZSe(b,i,f);case"CharacterSet":return e_e(b,i);case"Directive":return i_e(b.kind,{flags:b.flags});case"GroupOpen":return t_e(b,i,f);case"NamedCallout":return c_e(b.kind,b.tag,b.arguments);case"Quantifier":return n_e(b,i);
vendor: 7,662 bytes, line 2005
2005case"Subroutine":return a_e(b,i);default:throw new Error(`Unexpected token type "${b.type}"`)}},i={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:a.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:r},o=u_e(o_e(a.flags));let c=o.body[0];for(;i.nextIndex<a.tokens.length;){const x=r(c,{});x.type==="Alternative"?(o.body.push(x),c=x):c.body.push(x)}const{capturingGroups:l,hasNumberedRef:d,namedGroupsByName:m,subroutines:h}=i;if(d&&m.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:x}of h)if(typeof x=="number"){if(x>l.length)throw new Error("Subroutine uses a group number that's not defined");x&&(l[x-1].isSubroutined=!0)}else if(m.has(x)){if(m.get(x).length>1)throw new Error(qi`Subroutine uses a duplicate group name "\g<${x}>"`);m.get(x)[0].isSubroutined=!0}else throw new Error(qi`Subroutine uses a group name that's not defined "\g<${x}>"`);return o}function XSe({kind:e}){return pj(Lx({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===qi`\B`||e===qi`\Y`})}function QSe({raw:e},t){const n=/^\\k[<']/.test(e),a=n?e.slice(3,-1):e.slice(1),r=(i,o=!1)=>{const c=t.capturingGroups.length;let l=!1;if(i>c)if(t.skipBackrefValidation)l=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,hj(o?c+1-i:i,{orphan:l})};if(n){const i=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(a);if(i)return r(+i.groups.num,!!i.groups.sign);if(/[-+]/.test(a))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(a))throw new Error(`Group name not defined to the left "${e}"`);return hj(a)}return r(+a)}function KSe(e,t,n){const{tokens:a,walk:r}=t,i=t.parent,o=i.body.at(-1),c=a[t.nextIndex];if(!n.isCheckingRangeEnd&&o&&o.type!=="CharacterClass"&&o.type!=="CharacterClassRange"&&c&&c.type!=="CharacterClassOpen"&&c.type!=="CharacterClassClose"&&c.type!=="CharacterClassIntersector"){const l=r(i,{...n,isCheckingRangeEnd:!0});if(o.type==="Character"&&l.type==="Character")return i.body.pop(),r_e(o,l);throw new Error("Invalid character class range")}return B6(Mx("-"))}function ZSe({negate:e},t,n){const{tokens:a,walk:r}=t,i=a[t.nextIndex],o=[l3()];let c=eB(i);for(;c.type!=="CharacterClassClose";){if(c.type==="CharacterClassIntersector")o.push(l3()),t.nextIndex++;else{const d=o.at(-1);d.body.push(r(d,n))}c=eB(a[t.nextIndex],i)}const l=l3({negate:e});return o.length===1?l.body=o[0].body:(l.kind="intersection",l.body=o.map(d=>d.body.length===1?d.body[0]:d)),t.nextIndex++,l}function e_e({kind:e,negate:t,value:n},a){const{normalizeUnknownPropertyNames:r,skipPropertyNameValidation:i,unicodePropertyMap:o}=a;if(e==="property"){const c=F6(n);if(CE.has(c)&&!o?.has(c))e="posix",n=c;else return Sg(n,{negate:t,normalizeUnknownPropertyNames:r,skipPropertyNameValidation:i,unicodePropertyMap:o})}return e==="posix"?l_e(n,{negate:t}):fj(e,{negate:t})}function t_e(e,t,n){const{tokens:a,capturingGroups:r,namedGroupsByName:i,skipLookbehindValidation:o,walk:c}=t,l=d_e(e),d=l.type==="AbsenceFunction",m=ZO(l),h=m&&l.negate;if(l.type==="CapturingGroup"&&(r.push(l),l.name&&kSe(i,l.name,[]).push(l)),d&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let x=tB(a[t.nextIndex]);for(;x.type!=="GroupClose";){if(x.type==="Alternator")l.body.push($0()),t.nextIndex++;else{const f=l.body.at(-1),b=c(f,{...n,isInAbsenceFunction:n.isInAbsenceFunction||d,isInLookbehind:n.isInLookbehind||m,isInNegLookbehind:n.isInNegLookbehind||h});if(f.body.push(b),(m||n.isInLookbehind)&&!o){const y="Lookbehind includes a pattern not allowed by Oniguruma";if(h||n.isInNegLookbehind){if(KO(b)||b.type==="CapturingGroup")throw new Error(y)}else if(KO(b)||ZO(b)&&b.negate)throw new Error(y)}}x=tB(a[t.nextIndex])}return t.nextIndex++,l}function n_e({kind:e,min:t,max:n},a){const r=a.parent,i=r.body.at(-1);if(!i||!WSe(i))throw new Error("Quantifier requires a repeatable token");const o=AX(e,t,n,i);return r.body.pop(),o}function a_e({raw:e},t){const{capturingGroups:n,subroutines:a}=t;let r=e.slice(3,-1);const i=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(r);if(i){const c=+i.groups.num,l=n.length;if(t.hasNumberedRef=!0,r={"":c,"+":l+c,"-":l+1-c}[i.groups.sign],r<1)throw new Error("Invalid subroutine number")}else r==="0"&&(r=0);const o=EX(r);return a.push(o),o}function s_e(e,t){return{type:"AbsenceFunction",kind:e,body:lv(t?.body)}}function $0(e){return{type:"Alternative",body:CX(e?.body)}}function pj(e,t){const n={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(n.negate=!!t?.negate),n}function hj(e,t){const n=!!t?.orphan;return{type:"Backreference",ref:e,...n&&{orphan:n}}}function jX(e,t){const n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!m_e(n.name))throw new Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:lv(t?.body)}}function B6(e,t){const n={useLastValid:!1,...t};if(e>1114111){const a=e.toString(16);if(n.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${a}}"`):new Error(`Invalid code point out of range in JS "\\x{${a}}"`)}return{type:"Character",value:e}}function l3(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:CX(e?.body)}}function r_e(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function fj(e,t){const n=!!t?.negate,a={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(a.negate=n),(e==="text_segment"||e==="newline"&&!n)&&(a.variableLength=!0),a}function i_e(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:Lx(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function o_e(e){return{type:"Flags",...e}}function pu(e){const t=e?.atomic,n=e?.flags;if(t&&n)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...n&&{flags:n},body:lv(e?.body)}}function v0(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:lv(e?.body)}}function c_e(e,t,n){return{type:"NamedCallout",kind:e,tag:t,arguments:n}}function l_e(e,t){const n=!!t?.negate;if(!CE.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:n}}function AX(e,t,n,a){if(t>n)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:n,body:a}}function u_e(e,t){return{type:"Regex",body:lv(t?.body),flags:e}}function EX(e){return{type:"Subroutine",ref:e}}function Sg(e,t){const n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let a=n.unicodePropertyMap?.get(F6(e));if(!a){if(n.normalizeUnknownPropertyNames)a=p_e(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(qi`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:a??e,negate:n.negate}}
vendor: 8,866 bytes, lines 2005-2020
2005function d_e({flags:e,kind:t,name:n,negate:a,number:r}){switch(t){case"absence_repeater":return s_e("repeater");case"atomic":return pu({atomic:!0});case"capturing":return jX(r,{name:n});case"group":return pu({flags:e});case"lookahead":case"lookbehind":return v0({behind:t==="lookbehind",negate:a});default:throw new Error(`Unexpected group kind "${t}"`)}}function lv(e){if(e===void 0)e=[$0()];else if(!Array.isArray(e)||!e.length||!e.every(t=>t.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}function CX(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(t=>!!t.type))throw new Error("Invalid body; expected array of nodes");return e}function KO(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function ZO(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function m_e(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function p_e(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function F6(e){return e.replace(/[- _]+/g,"").toLowerCase()}function eB(e,t){return Lx(e,`${t?.type==="Character"&&t.value===93?"Empty":"Unclosed"} character class`)}function tB(e){return Lx(e,"Unclosed group")}function Bb(e,t,n=null){function a(i,o){for(let c=0;c<i.length;c++){const l=r(i[c],o,c,i);c=Math.max(-1,c+l)}}function r(i,o=null,c=null,l=null){let d=0,m=!1;const h={node:i,parent:o,key:c,container:l,root:e,remove(){P5(l).splice(Math.max(0,Ng(c)+d),1),d--,m=!0},removeAllNextSiblings(){return P5(l).splice(Ng(c)+1)},removeAllPrevSiblings(){const T=Ng(c)+d;return d-=T,P5(l).splice(0,Math.max(0,T))},replaceWith(T,A={}){const E=!!A.traverse;l?l[Math.max(0,Ng(c)+d)]=T:Lx(o,"Can't replace root node")[c]=T,E&&r(T,o,c,l),m=!0},replaceWithMultiple(T,A={}){const E=!!A.traverse;if(P5(l).splice(Math.max(0,Ng(c)+d),1,...T),d+=T.length-1,E){let D=0;for(let S=0;S<T.length;S++)D+=r(T[S],o,Ng(c)+S+D,l)}m=!0},skip(){m=!0}},{type:x}=i,f=t["*"],b=t[x],y=typeof f=="function"?f:f?.enter,w=typeof b=="function"?b:b?.enter;if(y?.(h,n),w?.(h,n),!m)switch(x){case"AbsenceFunction":case"CapturingGroup":case"Group":a(i.body,i);break;case"Alternative":case"CharacterClass":a(i.body,i);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":r(i.min,i,"min"),r(i.max,i,"max");break;case"LookaroundAssertion":a(i.body,i);break;case"Quantifier":r(i.body,i,"body");break;case"Regex":a(i.body,i),r(i.flags,i,"flags");break;default:throw new Error(`Unexpected node type "${x}"`)}return b?.exit?.(h,n),f?.exit?.(h,n),d}return r(e),e}function P5(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function Ng(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const h_e=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function f_e(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function g_e(e,t,n,a){return e.slice(0,t)+a+e.slice(t+n.length)}const El=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function _E(e,t,n,a){const r=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),i=[!1];let o=0,c="";for(const l of e.matchAll(r)){const{0:d,groups:{$skip:m}}=l;if(!m&&(!a||a===El.DEFAULT==!o)){n instanceof Function?c+=n(l,{context:o?El.CHAR_CLASS:El.DEFAULT,negated:i[i.length-1]}):c+=n;continue}d[0]==="["?(o++,i.push(d[1]==="^")):d==="]"&&o&&(o--,i.pop()),c+=d}return c}function SX(e,t,n,a){_E(e,t,n,a)}function x_e(e,t,n=0,a){if(!new RegExp(t,"su").test(e))return null;const r=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");r.lastIndex=n;let i=0,o;for(;o=r.exec(e);){const{0:c,groups:{$skip:l}}=o;if(!l&&(!a||a===El.DEFAULT==!i))return o;c==="["?i++:c==="]"&&i&&i--,r.lastIndex==o.index&&r.lastIndex++}return null}function D5(e,t,n){return!!x_e(e,t,0,n)}function b_e(e,t){const n=/\\?./gsu;n.lastIndex=t;let a=e.length,r=0,i=1,o;for(;o=n.exec(e);){const[c]=o;if(c==="[")r++;else if(r)c==="]"&&r--;else if(c==="(")i++;else if(c===")"&&(i--,!i)){a=o.index;break}}return e.slice(t,a)}const nB=new RegExp(String.raw`(?<noncapturingStart>${h_e})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function v_e(e,t){const n=t?.hiddenCaptures??[];let a=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:n};const r="(?>",i="(?:(?=(",o=[0],c=[];let l=0,d=0,m=NaN,h;do{h=!1;let x=0,f=0,b=!1,y;for(nB.lastIndex=Number.isNaN(m)?0:m+i.length;y=nB.exec(e);){const{0:w,index:T,groups:{capturingStart:A,noncapturingStart:E}}=y;if(w==="[")x++;else if(x)w==="]"&&x--;else if(w===r&&!b)m=T,b=!0;else if(b&&E)f++;else if(A)b?f++:(l++,o.push(l+d));else if(w===")"&&b){if(!f){d++;const D=l+d;if(e=`${e.slice(0,m)}${i}${e.slice(m+r.length,T)}))<$$${D}>)${e.slice(T+1)}`,h=!0,c.push(D),f_e(n,D),a.size){const S=new Map;a.forEach((R,L)=>{S.set(L>=D?L+1:L,R.map(I=>I>=D?I+1:I))}),a=S}break}f--}}}while(h);return n.push(...c),e=_E(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:x,groups:{backrefNum:f,wrappedBackrefNum:b}})=>{if(f){const y=+f;if(y>o.length-1)throw new Error(`Backref "${x}" greater than number of captures`);return`\\${o[y]}`}return`\\${b}`},El.DEFAULT),{pattern:e,captureTransfers:a,hiddenCaptures:n}}const _X=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,V8=new RegExp(String.raw` 2006\\(?: \d+ 2007 | c[A-Za-z] 2008 | [gk]<[^>]+> 2009 | [pPu]\{[^\}]+\} 2010 | u[A-Fa-f\d]{4} 2011 | x[A-Fa-f\d]{2} 2012 ) 2013| \((?: \? (?: [:=!>] 2014 | <(?:[=!]|[^>]+>) 2015 | [A-Za-z\-]+: 2016 | \(DEFINE\) 2017 ))? 2018| (?<qBase>${_X})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?) 2019| \\?. 2020`.replace(/\s+/g,""),"gsu");function y_e(e){if(!new RegExp(`${_X}\\+`).test(e))return{pattern:e};const t=[];let n=null,a=null,r="",i=0,o;for(V8.lastIndex=0;o=V8.exec(e);){const{0:c,index:l,groups:{qBase:d,qMod:m,invalidQ:h}}=o;if(c==="[")i||(a=l),i++;else if(c==="]")i?i--:a=null;else if(!i)if(m==="+"&&r&&!r.startsWith("(")){if(h)throw new Error(`Invalid quantifier "${c}"`);let x=-1;if(/^\{\d+\}$/.test(d))e=g_e(e,l+d.length,m,"");else{if(r===")"||r==="]"){const f=r===")"?n:a;if(f===null)throw new Error(`Invalid unmatched "${r}"`);e=`${e.slice(0,f)}(?>${e.slice(f,l)}${d})${e.slice(l+c.length)}`}else e=`${e.slice(0,l-r.length)}(?>${r}${d})${e.slice(l+c.length)}`;x+=4}V8.lastIndex+=x}else c[0]==="("?t.push(l):c===")"&&(n=t.length?t.pop():null);r=c}return{pattern:e}}const Nl=String.raw,w_e=Nl`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,gj=Nl`\(\?R=(?<rDepth>[^\)]+)\)|${w_e}`,U6=Nl`\(\?<(?![=!])(?<captureName>[^>]+)>`,PX=Nl`${U6}|(?<unnamed>\()(?!\?)`,m0=new RegExp(Nl`${U6}|${gj}|\(\?|\\?.`,"gsu"),z8="Cannot use multiple overlapping recursions";function T_e(e,t){const{hiddenCaptures:n,mode:a}={hiddenCaptures:[],mode:"plugin",...t};let r=t?.captureTransfers??new Map;if(!new RegExp(gj,"su").test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};if(a==="plugin"&&D5(e,Nl`\(\?\(DEFINE\)`,El.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const i=[],o=D5(e,Nl`\\[1-9]`,El.DEFAULT),c=new Map,l=[];let d=!1,m=0,h=0,x;for(m0.lastIndex=0;x=m0.exec(e);){const{0:f,groups:{captureName:b,rDepth:y,gRNameOrNum:w,gRDepth:T}}=x;if(f==="[")m++;else if(m)f==="]"&&m--;else if(y){if(aB(y),d)throw new Error(z8);if(o)throw new Error(`${a==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const A=e.slice(0,x.index),E=e.slice(m0.lastIndex);if(D5(E,gj,El.DEFAULT))throw new Error(z8);const D=+y-1;e=sB(A,E,D,!1,n,i,h),r=iB(r,A,D,i.length,0,h);break}else if(w){aB(T);let A=!1;for(const O of l)if(O.name===w||O.num===+w){if(A=!0,O.hasRecursedWithin)throw new Error(z8);break}if(!A)throw new Error(Nl`Recursive \g cannot be used outside the referenced group "${a==="external"?w:Nl`\g<${w}&R=${T}>`}"`);const E=c.get(w),D=b_e(e,E);if(o&&D5(D,Nl`${U6}|\((?!\?)`,El.DEFAULT))throw new Error(`${a==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const S=e.slice(E,x.index),R=D.slice(S.length+f.length),L=i.length,I=+T-1,F=sB(S,R,I,!0,n,i,h);r=iB(r,S,I,i.length-L,L,h);const _=e.slice(0,E),U=e.slice(E+D.length);e=`${_}${F}${U}`,m0.lastIndex+=F.length-f.length-S.length-R.length,l.forEach(O=>O.hasRecursedWithin=!0),d=!0}else if(b)h++,c.set(String(h),m0.lastIndex),c.set(b,m0.lastIndex),l.push({num:h,name:b});else if(f[0]==="("){const A=f==="(";A&&(h++,c.set(String(h),m0.lastIndex)),l.push(A?{num:h}:{})}else f===")"&&l.pop()}return n.push(...i),{pattern:e,captureTransfers:r,hiddenCaptures:n}}function aB(e){const t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if(e=+e,e<2||e>100)throw new Error(t)}function sB(e,t,n,a,r,i,o){const c=new Set;a&&SX(e+t,U6,({groups:{captureName:d}})=>{c.add(d)},El.DEFAULT);const l=[n,a?c:null,r,i,o];return`${e}${rB(`(?:${e}`,"forward",...l)}
2020(?:)${rB(`${t})`,"backward",...l)}${t}`}function rB(e,t,n,a,r,i,o){const l=m=>t==="forward"?m+2:n-m+2-1;let d="";for(let m=0;m<n;m++){const h=l(m);d+=_E(e,Nl`${PX}|\\k<(?<backref>[^>]+)>`,({0:x,groups:{captureName:f,unnamed:b,backref:y}})=>{if(y&&a&&!a.has(y))return x;const w=`_$${h}`;if(b||f){const T=o+i.length+1;return i.push(T),N_e(r,T),b?x:`(?<${f}${w}>`}return Nl`\k<${y}${w}>`},El.DEFAULT)}return d}function N_e(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function iB(e,t,n,a,r,i){if(e.size&&a){let o=0;SX(t,PX,()=>o++,El.DEFAULT);const c=i-o+r,l=new Map;return e.forEach((d,m)=>{const h=(a-o*n)/n,x=o*n,f=m>c+o?m+a:m,b=[];for(const y of d)if(y<=c)b.push(y);else if(y>c+o+h)b.push(y+a);else if(y<=c+o)for(let w=0;w<=n;w++)b.push(y+o*w);else for(let w=0;w<=n;w++)b.push(y+x+h*w);l.set(f,b)}),l}return e}var ki=String.fromCodePoint,ia=String.raw,Um={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("","v")}catch{return!1}return!0})()};Um.bugFlagVLiteralHyphenIsRange=Um.unicodeSets?(()=>{try{new RegExp(ia`[\d\-a]`,"v")}catch{return!0}return!1})():!1;Um.bugNestedClassIgnoresNegation=Um.unicodeSets&&new RegExp("[[^a]]","v").test("a");function h4(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function E2(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function xj(e,t){return oB[e]>=oB[t]}function k_e(e,t){if(e==null)throw new Error(t??"Value expected");return e}var oB={ES2025:2025,ES2024:2024,ES2018:2018},j_e={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function DX(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");
vendor: 2,285 bytes, lines 2020-2102
2020if(e.target!==void 0&&!j_e[e.target])throw new Error(`Unexpected target "${e.target}"`);const t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=Um.flagGroups?"ES2025":Um.unicodeSets?"ES2024":"ES2018"),t}var A_e="[ -\r ]",E_e=new Set([ki(304),ki(305)]),Sm=ia`[\p{L}\p{M}\p{N}\p{Pc}]`;function RX(e){if(E_e.has(e))return[e];const t=new Set,n=e.toLowerCase(),a=n.toUpperCase(),r=__e.get(n),i=C_e.get(n),o=S_e.get(n);return[...a].length===1&&t.add(a),o&&t.add(o),r&&t.add(r),t.add(n),i&&t.add(i),[...t]}var PE=new Map(`C Other 2021Cc Control cntrl 2022Cf Format 2023Cn Unassigned 2024Co Private_Use 2025Cs Surrogate 2026L Letter 2027LC Cased_Letter 2028Ll Lowercase_Letter 2029Lm Modifier_Letter 2030Lo Other_Letter 2031Lt Titlecase_Letter 2032Lu Uppercase_Letter 2033M Mark Combining_Mark 2034Mc Spacing_Mark 2035Me Enclosing_Mark 2036Mn Nonspacing_Mark 2037N Number 2038Nd Decimal_Number digit 2039Nl Letter_Number 2040No Other_Number 2041P Punctuation punct 2042Pc Connector_Punctuation 2043Pd Dash_Punctuation 2044Pe Close_Punctuation 2045Pf Final_Punctuation 2046Pi Initial_Punctuation 2047Po Other_Punctuation 2048Ps Open_Punctuation 2049S Symbol 2050Sc Currency_Symbol 2051Sk Modifier_Symbol 2052Sm Math_Symbol 2053So Other_Symbol 2054Z Separator 2055Zl Line_Separator 2056Zp Paragraph_Separator 2057Zs Space_Separator 2058ASCII 2059ASCII_Hex_Digit AHex 2060Alphabetic Alpha 2061Any 2062Assigned 2063Bidi_Control Bidi_C 2064Bidi_Mirrored Bidi_M 2065Case_Ignorable CI 2066Cased 2067Changes_When_Casefolded CWCF 2068Changes_When_Casemapped CWCM 2069Changes_When_Lowercased CWL 2070Changes_When_NFKC_Casefolded CWKCF 2071Changes_When_Titlecased CWT 2072Changes_When_Uppercased CWU 2073Dash 2074Default_Ignorable_Code_Point DI 2075Deprecated Dep 2076Diacritic Dia 2077Emoji 2078Emoji_Component EComp 2079Emoji_Modifier EMod 2080Emoji_Modifier_Base EBase 2081Emoji_Presentation EPres 2082Extended_Pictographic ExtPict 2083Extender Ext 2084Grapheme_Base Gr_Base 2085Grapheme_Extend Gr_Ext 2086Hex_Digit Hex 2087IDS_Binary_Operator IDSB 2088IDS_Trinary_Operator IDST 2089ID_Continue IDC 2090ID_Start IDS 2091Ideographic Ideo 2092Join_Control Join_C 2093Logical_Order_Exception LOE 2094Lowercase Lower 2095Math 2096Noncharacter_Code_Point NChar 2097Pattern_Syntax Pat_Syn 2098Pattern_White_Space Pat_WS 2099Quotation_Mark QMark 2100Radical 2101Regional_Indicator RI 2102Sentence_Terminal STerm
2103Soft_Dotted SD 2104Terminal_Punctuation Term 2105Unified_Ideograph UIdeo 2106Uppercase Upper 2107Variation_Selector VS 2108White_Space space 2109XID_Continue XIDC 2110XID_Start XIDS`.split(/\s/).map(e=>[F6(e),e])),C_e=new Map([["s",ki(383)],[ki(383),"s"]]),S_e=new Map([[ki(223),ki(7838)],[ki(107),ki(8490)],[ki(229),ki(8491)],[ki(969),ki(8486)]]),__e=new Map([qp(453),qp(456),qp(459),qp(498),...$8(8072,8079),...$8(8088,8095),...$8(8104,8111),qp(8124),qp(8140),qp(8188)]),P_e=new Map([["alnum",ia`[\p{Alpha}\p{Nd}]`],["alpha",ia`\p{Alpha}`],["ascii",ia`\p{ASCII}`],["blank",ia`[\p{Zs}\t]`],["cntrl",ia`\p{Cc}`],["digit",ia`\p{Nd}`],["graph",ia`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",ia`\p{Lower}`],["print",ia`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",ia`[\p{P}\p{S}]`],["space",ia`\p{space}`],["upper",ia`\p{Upper}`],["word",ia`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",ia`\p{AHex}`]]);function D_e(e,t){const n=[];for(let a=e;a<=t;a++)n.push(a);return n}function qp(e){const t=ki(e);return[t.toLowerCase(),t]}function $8(e,t){return D_e(e,t).map(n=>qp(n))}var IX=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function R_e(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};MX(e);const a={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:xj(n.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};Bb(e,I_e,a);const r={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},i={currentFlags:r,prevFlags:null,globalFlags:r,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:a.subroutineRefMap};Bb(e,M_e,i);const o={groupsByName:i.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:i.reffedNodesByReferencer};return Bb(e,L_e,o),e._originMap=i.groupOriginByCopy,e._strategy=a.strategy,e}var I_e={AbsenceFunction({node:e,parent:t,replaceWith:n}){const{body:a,kind:r}=e;if(r==="repeater"){const i=pu();i.body[0].body.push(v0({negate:!0,body:a}),Sg("Any"));const o=pu();o.body[0].body.push(AX("greedy",0,1/0,i)),n($r(o,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:a}){const r=e.body.filter(i=>i.kind==="flags");for(let i=n+1;i<t.body.length;i++){const o=t.body[i];E2(a,o,[]).push(...r)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){const n=OX(t.get(e));if(n){const a=pu({flags:n});a.body[0].body=e.body,e.body=[$r(a,e)]}}}},Assertion({node:e,parent:t,key:n,container:a,root:r,remove:i,replaceWith:o},c){const{kind:l,negate:d}=e,{asciiWordBoundaries:m,avoidSubclass:h,supportedGNodes:x,wordIsAscii:f}=c;if(l==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${d?"Y":"y"}"`);if(l==="line_end")o($r(v0({body:[$0({body:[pj("string_end")]}),$0({body:[B6(10)]})]}),t));else if(l==="line_start")o($r(_m(ia`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(l==="search_start")if(x.has(e))r.flags.sticky=!0,i();else{const b=a[n-1];if(b&&V_e(b))o($r(v0({negate:!0}),t));else{if(h)throw new Error(ia`Uses "\G" in a way that requires a subclass`);o(Gp(pj("string_start"),t)),c.strategy="clip_search"}}else if(!(l==="string_end"||l==="string_start"))if(l==="string_end_newline")o($r(_m(ia`(?=\n?\z)`),t));else if(l==="word_boundary"){if(!f&&!m){const b=`(?:(?<=${Sm})(?!${Sm})|(?<!${Sm})(?=${Sm}))`,y=`(?:(?<=${Sm})(?=${Sm})|(?<!${Sm})(?!${Sm}))`;o($r(_m(d?y:b),t))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!G8(n)&&(n=q8(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:a}=e;a&&!G8(a)&&(a=q8(a,t),e.name=a),n.set(e.number,e),a&&n.set(a,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){if(t.kind==="intersection"){const a=l3({body:[e]});n($r(a,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:a,minTargetEs2024:r,digitIsAscii:i,spaceIsAscii:o,wordIsAscii:c}){const{kind:l,negate:d,value:m}=e;if(i&&(l==="digit"||m==="digit")){n(Gp(fj("digit",{negate:d}),t));return}if(o&&(l==="space"||m==="space")){n($r(J8(_m(A_e),d),t));return}if(c&&(l==="word"||m==="word")){n(Gp(fj("word",{negate:d}),t));return}if(l==="any")n(Gp(Sg("Any"),t));else if(l==="digit")n(Gp(Sg("Nd",{negate:d}),t));
vendor: 17,320 bytes, lines 2110-2113
2110else if(l!=="dot")if(l==="text_segment"){if(a==="strict")throw new Error(ia`Use of "\X" requires non-strict accuracy`);const h="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",x=ia`\p{RI}{2}|${h}(?:\u200D${h})*`;n($r(_m(ia`(?>\r\n|${r?ia`\p{RGI_Emoji}`:x}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(l==="hex")n(Gp(Sg("AHex",{negate:d}),t));else if(l==="newline")n($r(_m(d?`[^ 2111]`:`(?>\r 2112?|[ 2113\v\f \u2028\u2029])`),t));else if(l==="posix")if(!r&&(m==="graph"||m==="print")){if(a==="strict")throw new Error(`POSIX class "${m}" requires min target ES2024 or non-strict accuracy`);let h={graph:"!-~",print:" -~"}[m];d&&(h=`\0-${ki(h.codePointAt(0)-1)}${ki(h.codePointAt(2)+1)}-ô¿¿`),n($r(_m(`[${h}]`),t))}else n($r(J8(_m(P_e.get(m)),d),t));else if(l==="property")PE.has(F6(m))||(e.key="sc");else if(l==="space")n(Gp(Sg("space",{negate:d}),t));else if(l==="word")n($r(J8(_m(Sm),d),t));else throw new Error(`Unexpected character set kind "${l}"`)},Directive({node:e,parent:t,root:n,remove:a,replaceWith:r,removeAllPrevSiblings:i,removeAllNextSiblings:o}){const{kind:c,flags:l}=e;if(c==="flags")if(!l.enable&&!l.disable)a();else{const d=pu({flags:l});d.body[0].body=o(),r($r(d,t),{traverse:!0})}else if(c==="keep"){const d=n.body[0],h=n.body.length===1&&NX(d,{type:"Group"})&&d.body[0].body.length===1?d.body[0]:n;if(t.parent!==h||h.body.length>1)throw new Error(ia`Uses "\K" in a way that's unsupported`);const x=v0({behind:!0});x.body[0].body=i(),r($r(x,t))}else throw new Error(`Unexpected directive kind "${c}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(n=>delete e[n]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;const{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){const{kind:n}=e;n==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){const{kind:a}=e;if(a==="fail")n($r(v0({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${a.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=pu();t.body[0].body.push(e.body),e.body=$r(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){const n=[];let a=!1,r=!1;for(const i of e.body)if(i.body.length===1&&i.body[0].kind==="search_start")i.body.pop();else{const o=FX(i.body);o?(a=!0,Array.isArray(o)?n.push(...o):n.push(o)):r=!0}a&&!r&&n.forEach(i=>t.add(i))},exit(e,{accuracy:t,passedLookbehind:n,strategy:a}){if(t==="strict"&&n&&a)throw new Error(ia`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!G8(n)&&(n=q8(n,t),e.ref=n)}},M_e={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){const{orphan:a,ref:r}=e;a||n.set(e,[...t.get(r).map(({node:i})=>i)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:a},{groupOriginByCopy:r,groupsByName:i,multiplexCapturesToLeftByRef:o,openRefs:c,reffedNodesByReferencer:l}){const d=r.get(e);if(d&&c.has(e.number)){const h=Gp(cB(e.number),t);l.set(h,c.get(e.number)),n(h);return}c.set(e.number,e),o.set(e.number,[]),e.name&&E2(o,e.name,[]);const m=o.get(e.name??e.number);for(let h=0;h<m.length;h++){const x=m[h];if(d===x.node||d&&d===x.origin||e===x.origin){m.splice(h,1);break}}if(o.get(e.number).push({node:e,origin:d}),e.name&&o.get(e.name).push({node:e,origin:d}),e.name){const h=E2(i,e.name,new Map);let x=!1;if(d)x=!0;else for(const f of h.values())if(!f.hasDuplicateNameToRemove){x=!0;break}i.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:x})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=h4(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},a){const{isRecursive:r,ref:i}=e;if(r){let m=t;for(;(m=m.parent)&&!(m.type==="CapturingGroup"&&(m.name===i||m.number===i)););a.reffedNodesByReferencer.set(e,m);return}const o=a.subroutineRefMap.get(i),c=i===0,l=c?cB(0):LX(o,a.groupOriginByCopy,null);let d=l;if(!c){const m=OX(F_e(o,x=>x.type==="Group"&&!!x.flags)),h=m?h4(a.globalFlags,m):a.globalFlags;O_e(h,a.currentFlags)||(d=pu({flags:U_e(h)}),d.body[0].body.push(l))}n($r(d,t),{traverse:!c})}},L_e={Backreference({node:e,parent:t,replaceWith:n},a){if(e.orphan){a.highestOrphanBackref=Math.max(a.highestOrphanBackref,e.ref);return}const i=a.reffedNodesByReferencer.get(e).filter(o=>B_e(o,e));if(!i.length)n($r(v0({negate:!0}),t));else if(i.length>1){const o=pu({atomic:!0,body:i.reverse().map(c=>$0({body:[hj(c.number)]}))});n($r(o,t))}else e.ref=i[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){const n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let a=0;a<n;a++){const r=jX();e.body.at(-1).body.push(r)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function MX(e){Bb(e,{"*"({node:t,parent:n}){t.parent=n}})}function O_e(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function B_e(e,t){let n=t;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===e)return!1;const a=BX(n.parent);for(const r of a){if(r===n)break;if(r===e||UX(r,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function LX(e,t,n,a){const r=Array.isArray(e)?[]:{};for(const[i,o]of Object.entries(e))i==="parent"?r.parent=Array.isArray(n)?a:n:o&&typeof o=="object"?r[i]=LX(o,t,r,n):(i==="type"&&o==="CapturingGroup"&&t.set(r,t.get(e)??e),r[i]=o);return r}function cB(e){const t=EX(e);return t.isRecursive=!0,t}function F_e(e,t){const n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function q8(e,t){if(t.has(e))return t.get(e);const n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,n),n}function OX(e){const t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return e.forEach(({flags:a})=>{t.forEach(r=>{a.enable?.[r]&&(delete n.disable[r],n.enable[r]=!0),a.disable?.[r]&&(n.disable[r]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function U_e({dotAll:e,ignoreCase:t}){const n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function BX(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function FX(e){const t=e.find(n=>n.kind==="search_start"||z_e(n,{negate:!1})||!H_e(n));if(!t)return null;if(t.kind==="search_start")return t;if(t.type==="LookaroundAssertion")return t.body[0].body[0];if(t.type==="CapturingGroup"||t.type==="Group"){const n=[];for(const a of t.body){const r=FX(a.body);if(!r)return null;Array.isArray(r)?n.push(...r):n.push(r)}return n}return null}function UX(e,t){const n=BX(e)??[];for(const a of n)if(a===t||UX(a,t))return!0;return!1}function H_e({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function V_e(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function z_e(e,t){const n={negate:null,...t};return e.type==="LookaroundAssertion"&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&NX(e.body[0],{type:"Assertion",kind:"search_start"})}function G8(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function _m(e,t){const a=kX(e,{...t,unicodePropertyMap:PE}).body;return a.length>1||a[0].body.length>1?pu({body:a}):a[0].body[0]}function J8(e,t){return e.negate=t,e}function Gp(e,t){return e.parent=t,e}function $r(e,t){return MX(e),e.parent=t,e}function $_e(e,t){const n=DX(t),a=xj(n.target,"ES2024"),r=xj(n.target,"ES2025"),i=n.rules.recursionLimit;if(!Number.isInteger(i)||i<2||i>20)throw new Error("Invalid recursionLimit; use 2-20");let o=null,c=null;if(!r){const f=[e.flags.ignoreCase];Bb(e,q_e,{getCurrentModI:()=>f.at(-1),popModI(){f.pop()},pushModI(b){f.push(b)},setHasCasedChar(){f.at(-1)?o=!0:c=!0}})}const l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||o)&&!c)};let d=e;const m={accuracy:n.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:d,originMap:e._originMap,recursionLimit:i,useAppliedIgnoreCase:!!(!r&&o&&c),useFlagMods:r,useFlagV:a,verbose:n.verbose};function h(f){return m.lastNode=d,d=f,k_e(G_e[f.type],`Unexpected node type "${f.type}"`)(f,m,h)}const x={pattern:e.body.map(h).join("|"),flags:h(e.flags),options:{...e.options}};return a||(delete x.options.force.v,x.options.disable.v=!0,x.options.unicodeSetsPlugin=null),x._captureTransfers=new Map,x._hiddenCaptures=[],m.captureMap.forEach((f,b)=>{f.hidden&&x._hiddenCaptures.push(b),f.transferTo&&E2(x._captureTransfers,f.transferTo,[]).push(b)}),x}var q_e={"*":{enter({node:e},t){if(uB(e)){const n=t.getCurrentModI();t.pushModI(e.flags?h4({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){uB(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){DE(ki(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),HX(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&IX.has(e.value)&&t.setHasCasedChar()}},G_e={Alternative({body:e},t,n){return e.map(n).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?ia`\B`:ia`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,n){const{body:a,name:r,number:i}=e,o={ignoreCase:t.currentFlags.ignoreCase},c=t.originMap.get(e);return c&&(o.hidden=!0,i>c.number&&(o.transferTo=c.number)),t.captureMap.set(i,o),`(${r?`?<${r}>`:""}${a.map(n).join("|")})`},Character({value:e},t){const n=ki(e),a=kg(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(a!==n)return a;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&DE(n)){const r=RX(n);return t.inCharClass?r.join(""):r.length>1?`[${r.join("")}]`:r[0]}return n},CharacterClass(e,t,n){const{kind:a,negate:r,parent:i}=e;let{body:o}=e;if(a==="intersection"&&!t.useFlagV)throw new Error("Use of class intersection requires min target ES2024");Um.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&o.some(dB)&&(o=[B6(45),...o.filter(d=>!dB(d))]);const c=()=>`[${r?"^":""}${o.map(n).join(a==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||Um.bugNestedClassIgnoresNegation)&&!r){const m=o.filter(h=>h.type==="CharacterClass"&&h.kind==="union"&&h.negate);if(m.length){const h=pu(),x=h.body[0];return h.parent=i,x.parent=h,o=o.filter(f=>!m.includes(f)),e.body=o,o.length?(e.parent=x,x.body.push(e)):h.body.pop(),m.forEach(f=>{const b=$0({body:[f]});f.parent=b,b.parent=h,h.body.push(b)}),n(h)}}t.inCharClass=!0;const d=c();return t.inCharClass=!1,d}const l=o[0];if(a==="union"&&!r&&l&&((!t.useFlagV||!t.verbose)&&i.kind==="union"&&!(Um.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&i.kind==="intersection"&&o.length===1&&l.type!=="CharacterClassRange"))return o.map(n).join("");if(!t.useFlagV&&i.type==="CharacterClass")throw new Error("Use of nested character class requires min target ES2024");return c()},CharacterClassRange(e,t){const n=e.min.value,a=e.max.value,r={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},i=kg(n,r),o=kg(a,r),c=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const l=HX(e);Q_e(l).forEach(m=>{c.add(Array.isArray(m)?`${kg(m[0],r)}-${kg(m[1],r)}`:kg(m,r))})}return`${i}-${o}${[...c].join("")}`},CharacterSet({kind:e,negate:t,value:n,key:a},r){if(e==="dot")return r.currentFlags.dotAll?r.appliedGlobalFlags.dotAll||r.useFlagMods?".":"[^]":ia`[^\n]`;if(e==="digit")return t?ia`\D`:ia`\d`;if(e==="property"){if(r.useAppliedIgnoreCase&&r.currentFlags.ignoreCase&&IX.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?ia`\P`:ia`\p`}{${a?`${a}=`:""}${n}}`}if(e==="word")return t?ia`\W`:ia`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:t,flags:n,parent:a},r,i){const o=r.currentFlags;n&&(r.currentFlags=h4(o,n));const c=t.map(i).join("|"),l=!r.verbose&&t.length===1&&a.type!=="Quantifier"&&!e&&(!r.useFlagMods||!n)?c:`(?${K_e(e,n,r.useFlagMods)}${c})`;return r.currentFlags=o,l},LookaroundAssertion({body:e,kind:t,negate:n},a,r){return`(?${`${t==="lookahead"?"":"<"}${n?"!":"="}`}${e.map(r).join("|")})`},Quantifier(e,t,n){return n(e.body)+Z_e(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const a=n.recursionLimit;return t===0?`(?R=${a})`:ia`\g<${t}&R=${a}>`}},J_e=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),W_e=new Set(["-","\\","]","^","["]),Y_e=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),lB=new Map([[9,ia`\t`],[10,ia`\n`],[11,ia`\v`],[12,ia`\f`],[13,ia`\r`],[8232,ia`\u2028`],[8233,ia`\u2029`],[65279,ia`\uFEFF`]]),X_e=new RegExp("^\\p{Cased}$","u");function DE(e){return X_e.test(e)}function HX(e,t){const n=!!t?.firstOnly,a=e.min.value,r=e.max.value,i=[];if(a<65&&(r===65535||r>=131071)||a===65536&&r>=131071)return i;for(let o=a;o<=r;o++){const c=ki(o);if(!DE(c))continue;const l=RX(c).filter(d=>{const m=d.codePointAt(0);return m<a||m>r});if(l.length&&(i.push(...l),n))break}return i}function kg(e,{escDigit:t,inCharClass:n,useFlagV:a}){if(lB.has(e))return lB.get(e);if(e<32||e>126&&e<160||e>262143||t&&ePe(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const r=n?a?Y_e:W_e:J_e,i=ki(e);return(r.has(i)?"\\":"")+i}function Q_e(e){const t=e.map(r=>r.codePointAt(0)).sort((r,i)=>r-i),n=[];let a=null;for(let r=0;r<t.length;r++)t[r+1]===t[r]+1?a??=t[r]:a===null?n.push(t[r]):(n.push([a,t[r]]),a=null);return n}function K_e(e,t,n){if(e)return">";let a="";if(t&&n){const{enable:r,disable:i}=t;a=(r?.ignoreCase?"i":"")+(r?.dotAll?"s":"")+(i?"-":"")+(i?.ignoreCase?"i":"")+(i?.dotAll?"s":"")}return`${a}:`}function Z_e({kind:e,max:t,min:n}){let a;return!n&&t===1?a="?":!n&&t===1/0?a="*":n===1&&t===1/0?a="+":n===t?a=`{${n}}`:a=`{${n},${t===1/0?"":t}}`,a+{greedy:"",lazy:"?",possessive:"+"}[e]}function uB({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function ePe(e){return e>47&&e<58}function dB({type:e,value:t}){return e==="Character"&&t===45}var tPe=class bj extends RegExp{#t=new Map;#e=null;#n;#a=null;#s=null;rawOptions={};get source(){return this.#n||"(?:)"}constructor(t,n,a){const r=!!a?.lazyCompile;if(t instanceof RegExp){if(a)throw new Error("Cannot provide options when copying a regexp");const i=t;super(i,n),this.#n=i.source,i instanceof bj&&(this.#t=i.#t,this.#a=i.#a,this.#s=i.#s,this.rawOptions=i.rawOptions)}else{const i={hiddenCaptures:[],strategy:null,transfers:[],...a};super(r?"":t,n),this.#n=t,this.#t=aPe(i.hiddenCaptures,i.transfers),this.#s=i.strategy,this.rawOptions=a??{}}r||(this.#e=this)}exec(t){if(!this.#e){const{lazyCompile:r,...i}=this.rawOptions;this.#e=new bj(this.#n,this.flags,i)}const n=this.global||this.sticky,a=this.lastIndex;if(this.#s==="clip_search"&&n&&a){this.lastIndex=0;const r=this.#r(t.slice(a));return r&&(nPe(r,a,t,this.hasIndices),this.lastIndex+=a),r}return this.#r(t)}#r(t){this.#e.lastIndex=this.lastIndex;const n=super.exec.call(this.#e,t);if(this.lastIndex=this.#e.lastIndex,!n||!this.#t.size)return n;const a=[...n];n.length=1;let r;this.hasIndices&&(r=[...n.indices],n.indices.length=1);const i=[0];for(let o=1;o<a.length;o++){const{hidden:c,transferTo:l}=this.#t.get(o)??{};if(c?i.push(null):(i.push(n.length),n.push(a[o]),this.hasIndices&&n.indices.push(r[o])),l&&a[o]!==void 0){const d=i[l];if(!d)throw new Error(`Invalid capture transfer to "${d}"`);if(n[d]=a[o],this.hasIndices&&(n.indices[d]=r[o]),n.groups){this.#a||(this.#a=sPe(this.source));const m=this.#a.get(l);m&&(n.groups[m]=a[o],this.hasIndices&&(n.indices.groups[m]=r[o]))}}}return n}};function nPe(e,t,n,a){if(e.index+=t,e.input=n,a){const r=e.indices;for(let o=0;o<r.length;o++){const c=r[o];c&&(r[o]=[c[0]+t,c[1]+t])}const i=r.groups;
2113i&&Object.keys(i).forEach(o=>{const c=i[o];c&&(i[o]=[c[0]+t,c[1]+t])})}}function aPe(e,t){const n=new Map;for(const a of e)n.set(a,{hidden:!0});for(const[a,r]of t)for(const i of r)E2(n,i,{}).transferTo=a;return n}function sPe(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map;let a=0,r=0,i;for(;i=t.exec(e);){const{0:o,groups:{capture:c,name:l}}=i;o==="["?a++:a?o==="]"&&a--:c&&(r++,l&&n.set(r,l))}return n}function rPe(e,t){const n=iPe(e,t);return n.options?new tPe(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function iPe(e,t){const n=DX(t),a=kX(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:PE}),r=R_e(a,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),i=$_e(r,n),o=T_e(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:"external"}),c=y_e(o.pattern),l=v_e(c.pattern,{captureTransfers:o.captureTransfers,hiddenCaptures:o.hiddenCaptures}),d={pattern:l.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${i.flags}${i.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const m=l.hiddenCaptures.sort((b,y)=>b-y),h=Array.from(l.captureTransfers),x=r._strategy,f=d.pattern.length>=n.lazyCompileLength;(m.length||h.length||x||f)&&(d.options={...m.length&&{hiddenCaptures:m},...h.length&&{transfers:h},...x&&{strategy:x},...f&&{lazyCompile:f}})}return d}const mB=4294967295;class oPe{constructor(t,n={}){this.patterns=t,this.options=n;const{forgiving:a=!1,cache:r,regexConstructor:i}=n;if(!i)throw new Error("Option `regexConstructor` is not provided");this.regexps=t.map(o=>{if(typeof o!="string")return o;const c=r?.get(o);if(c){if(c instanceof RegExp)return c;if(a)return null;throw c}try{const l=i(o);return r?.set(o,l),l}catch(l){if(r?.set(o,l),a)return null;throw l}})}regexps;findNextMatchSync(t,n,a){const r=typeof t=="string"?t:t.content,i=[];function o(c,l,d=0){return{index:c,captureIndices:l.indices.map(m=>m==null?{start:mB,end:mB,length:0}:{start:m[0]+d,end:m[1]+d,length:m[1]-m[0]})}}for(let c=0;c<this.regexps.length;c++){const l=this.regexps[c];if(l)try{l.lastIndex=n;const d=l.exec(r);if(!d)continue;if(d.index===n)return o(c,d,0);i.push([c,d,0])}catch(d){if(this.options.forgiving)continue;throw d}}if(i.length){const c=Math.min(...i.map(l=>l[1].index));for(const[l,d,m]of i)if(d.index===c)return o(l,d,m)}return null}}function cPe(e,t){return rPe(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function lPe(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=n=>cPe(n,{target:t.target}),{createScanner(n){return new oPe(n,t)},createString(n){return{content:n}}}}function RE(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var df=RE();function VX(e){df=e}var Fb={exec:()=>null};function Xa(e,t=""){let n=typeof e=="string"?e:e.source,a={replace:(r,i)=>{let o=typeof i=="string"?i:i.source;return o=o.replace(Fo.caret,"$1"),n=n.replace(r,o),a},getRegex:()=>new RegExp(n,t)};return a}var Fo={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},uPe=/^(?:[ \t]*(?:\n|$))+/,dPe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,mPe=/^ {0,3}(`{3,}
2113(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,uv=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,pPe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,IE=/(?:[*+-]|\d{1,9}[.)])/,zX=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,$X=Xa(zX).replace(/bull/g,IE).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),hPe=Xa(zX).replace(/bull/g,IE).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ME=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,fPe=/^[^\n]+/,LE=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,gPe=Xa(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",LE).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),xPe=Xa(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,IE).getRegex(),H6="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",OE=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,bPe=Xa("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",OE).replace("tag",H6).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),qX=Xa(ME).replace("hr",uv).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",H6).getRegex(),vPe=Xa(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",qX).getRegex(),BE={blockquote:vPe,code:dPe,def:gPe,fences:mPe,heading:pPe,hr:uv,html:bPe,lheading:$X,list:xPe,newline:uPe,paragraph:qX,table:Fb,text:fPe},pB=Xa("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",uv).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",H6).getRegex(),yPe={...BE,lheading:hPe,table:pB,paragraph:Xa(ME).replace("hr",uv).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",pB).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",H6).getRegex()},wPe={...BE,html:Xa(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",OE).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Fb,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Xa(ME).replace("hr",uv).replace("heading",` *#{1,6} *[^ 2114]`).replace("lheading",$X).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},TPe=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,NPe=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,GX=/^( {2,}|\\)\n(?!\s*$)/,kPe=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,V6=/[\p{P}\p{S}]/u,FE=/[\s\p{P}\p{S}]/u,JX=/[^\s\p{P}\p{S}]/u,jPe=Xa(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,FE).getRegex(),WX=/(?!~)[\p{P}\p{S}]/u,APe=/(?!~)[\s\p{P}\p{S}]/u,EPe=/(?:[^\s\p{P}\p{S}
vendor: 5,253 bytes, lines 2114-2115
2114]|~)/u,CPe=Xa(/link|code|html/,"g").replace("link",new RegExp("\\[(?:[^\\[\\]`]|(?<!`)(?<a>`+)[^`]+\\k<a>(?!`))*?\\]\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)]|\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)])*\\))*\\)")).replace("code",new RegExp("(?<!`)(?<b>`+)[^`]+\\k<b>(?!`)")).replace("html",/<(?! )[^<>]*?>/).getRegex(),YX=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,SPe=Xa(YX,"u").replace(/punct/g,V6).getRegex(),_Pe=Xa(YX,"u").replace(/punct/g,WX).getRegex(),XX="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",PPe=Xa(XX,"gu").replace(/notPunctSpace/g,JX).replace(/punctSpace/g,FE).replace(/punct/g,V6).getRegex(),DPe=Xa(XX,"gu").replace(/notPunctSpace/g,EPe).replace(/punctSpace/g,APe).replace(/punct/g,WX).getRegex(),RPe=Xa("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,JX).replace(/punctSpace/g,FE).replace(/punct/g,V6).getRegex(),IPe=Xa(/\\(punct)/,"gu").replace(/punct/g,V6).getRegex(),MPe=Xa(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),LPe=Xa(OE).replace("(?:-->|$)","-->").getRegex(),OPe=Xa("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",LPe).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),f4=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,BPe=Xa(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",f4).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),QX=Xa(/^!?\[(label)\]\[(ref)\]/).replace("label",f4).replace("ref",LE).getRegex(),KX=Xa(/^!?\[(ref)\](?:\[\])?/).replace("ref",LE).getRegex(),FPe=Xa("reflink|nolink(?!\\()","g").replace("reflink",QX).replace("nolink",KX).getRegex(),hB=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,UE={_backpedal:Fb,anyPunctuation:IPe,autolink:MPe,blockSkip:CPe,br:GX,code:NPe,del:Fb,emStrongLDelim:SPe,emStrongRDelimAst:PPe,emStrongRDelimUnd:RPe,escape:TPe,link:BPe,nolink:KX,punctuation:jPe,reflink:QX,reflinkSearch:FPe,tag:OPe,text:kPe,url:Fb},UPe={...UE,link:Xa(/^!?\[(label)\]\((.*?)\)/).replace("label",f4).getRegex(),reflink:Xa(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",f4).getRegex()},vj={...UE,emStrongRDelimAst:DPe,emStrongLDelim:_Pe,url:Xa(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",hB).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Xa(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",hB).getRegex()},HPe={...vj,br:Xa(GX).replace("{2,}","*").getRegex(),text:Xa(vj.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},R5={normal:BE,gfm:yPe,pedantic:wPe},Z1={normal:UE,gfm:vj,breaks:HPe,pedantic:UPe},VPe={"&":"&","<":"<",">":">",'"':""","'":"'"},fB=e=>VPe[e];function ld(e,t){if(t){if(Fo.escapeTest.test(e))return e.replace(Fo.escapeReplace,fB)}else if(Fo.escapeTestNoEncode.test(e))return e.replace(Fo.escapeReplaceNoEncode,fB);return e}function gB(e){try{e=encodeURI(e).replace(Fo.percentDecode,"%")}catch{return null}return e}function xB(e,t){let n=e.replace(Fo.findPipe,(i,o,c)=>{let l=!1,d=o;for(;--d>=0&&c[d]==="\\";)l=!l;return l?"|":" |"}),a=n.split(Fo.splitPipe),r=0;if(a[0].trim()||a.shift(),a.length>0&&!a.at(-1)?.trim()&&a.pop(),t)if(a.length>t)a.splice(t);else for(;a.length<t;)a.push("");for(;r<a.length;r++)a[r]=a[r].trim().replace(Fo.slashPipe,"|");return a}function eb(e,t,n){let a=e.length;if(a===0)return"";let r=0;for(;r<a&&e.charAt(a-r-1)===t;)r++;return e.slice(0,a-r)}function zPe(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let a=0;a<e.length;a++)if(e[a]==="\\")a++;else if(e[a]===t[0])n++;else if(e[a]===t[1]&&(n--,n<0))return a;return n>0?-2:-1}function bB(e,t,n,a,r){let i=t.href,o=t.title||null,c=e[1].replace(r.other.outputLinkReplace,"$1");a.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:o,text:c,tokens:a.inlineTokens(c)};return a.state.inLink=!1,l}function $Pe(e,t,n){let a=e.match(n.other.indentCodeCompensation);if(a===null)return t;let r=a[1];return t.split(` 2115`).map(i=>{let o=i.match(n.other.beginningSpace);if(o===null)return i;let[c]=o;return c.length>
vendor: 6,906 bytes, lines 2115-2138
2115=r.length?i.slice(r.length):i}).join(` 2116`)}var g4=class{options;rules;lexer;constructor(e){this.options=e||df}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:eb(n,` 2117`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],a=$Pe(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:a}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let a=eb(n,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceChar.test(a))&&(n=a.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:eb(t[0],` 2118`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=eb(t[0],` 2119`).split(` 2120`),a="",r="",i=[];for(;n.length>0;){let o=!1,c=[],l;for(l=0;l<n.length;l++)if(this.rules.other.blockquoteStart.test(n[l]))c.push(n[l]),o=!0;else if(!o)c.push(n[l]);else break;n=n.slice(l);let d=c.join(` 2121`),m=d.replace(this.rules.other.blockquoteSetextReplace,` 2122 $1`).replace(this.rules.other.blockquoteSetextReplace2,"");a=a?`${a} 2123${d}`:d,r=r?`${r} 2124${m}`:m;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(m,i,!0),this.lexer.state.top=h,n.length===0)break;let x=i.at(-1);if(x?.type==="code")break;if(x?.type==="blockquote"){let f=x,b=f.raw+` 2125`+n.join(` 2126`),y=this.blockquote(b);i[i.length-1]=y,a=a.substring(0,a.length-f.raw.length)+y.raw,r=r.substring(0,r.length-f.text.length)+y.text;break}else if(x?.type==="list"){let f=x,b=f.raw+` 2127`+n.join(` 2128`),y=this.list(b);i[i.length-1]=y,a=a.substring(0,a.length-x.raw.length)+y.raw,r=r.substring(0,r.length-f.raw.length)+y.raw,n=b.substring(i.at(-1).raw.length).split(` 2129`);continue}}return{type:"blockquote",raw:a,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),a=n.length>1,r={type:"list",raw:"",ordered:a,start:a?+n.slice(0,-1):"",loose:!1,items:[]};n=a?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=a?n:"[*+-]");let i=this.rules.other.listItemRegex(n),o=!1;for(;e;){let l=!1,d="",m="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;d=t[0],e=e.substring(d.length);let h=t[2].split(` 2130`,1)[0].replace(this.rules.other.listReplaceTabs,T=>" ".repeat(3*T.length)),x=e.split(` 2131`,1)[0],f=!h.trim(),b=0;if(this.options.pedantic?(b=2,m=h.trimStart()):f?b=t[1].length+1:(b=t[2].search(this.rules.other.nonSpaceChar),b=b>4?1:b,m=h.slice(b),b+=t[1].length),f&&this.rules.other.blankLine.test(x)&&(d+=x+` 2132`,e=e.substring(x.length+1),l=!0),!l){let T=this.rules.other.nextBulletRegex(b),A=this.rules.other.hrRegex(b),E=this.rules.other.fencesBeginRegex(b),D=this.rules.other.headingBeginRegex(b),S=this.rules.other.htmlBeginRegex(b);for(;e;){let R=e.split(` 2133`,1)[0],L;if(x=R,this.options.pedantic?(x=x.replace(this.rules.other.listReplaceNesting," "),L=x):L=x.replace(this.rules.other.tabCharGlobal," "),E.test(x)||D.test(x)||S.test(x)||T.test(x)||A.test(x))break;if(L.search(this.rules.other.nonSpaceChar)>=b||!x.trim())m+=` 2134`+L.slice(b);else{if(f||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||E.test(h)||D.test(h)||A.test(h))break;m+=` 2135`+x}!f&&!x.trim()&&(f=!0),d+=R+` 2136`,e=e.substring(R.length+1),h=L.slice(b)}}r.loose||(o?r.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(o=!0));let y=null,w;this.options.gfm&&(y=this.rules.other.listIsTask.exec(m),y&&(w=y[0]!=="[ ] ",m=m.replace(this.rules.other.listReplaceTask,""))),r.items.push({type:"list_item",raw:d,task:!!y,checked:w,loose:!1,text:m,tokens:[]}),r.raw+=d}let c=r.items.at(-1);if(c)c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd();else return;r.raw=r.raw.trimEnd();for(let l=0;l<r.items.length;l++)if(this.lexer.state.top=!1,r.items[l].tokens=this.lexer.blockTokens(r.items[l].text,[]),!r.loose){let d=r.items[l].tokens.filter(h=>h.type==="space"),m=d.length>0&&d.some(h=>this.rules.other.anyLine.test(h.raw));r.loose=m}if(r.loose)for(let l=0;l<r.items.length;l++)r.items[l].loose=!0;return r}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),a=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:a,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=xB(t[1]),a=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(` 2137`):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===a.length){for(let o of a)this.rules.other.tableAlignRight.test(o)?i.align.push("right"):this.rules.other.tableAlignCenter.test(o)?i.align.push("center"):this.rules.other.tableAlignLeft.test(o)?i.align.push("left"):i.align.push(null);for(let o=0;o<n.length;o++)i.header.push({text:n[o],tokens:this.lexer.inline(n[o]),header:!0,align:i.align[o]});for(let o of r)i.rows.push(xB(o,i.header.length).map((c,l)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:i.align[l]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===` 2138`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if
vendor: 3,820 bytes, lines 2138-2139
2138(!this.rules.other.endAngleBracket.test(n))return;let i=eb(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{let i=zPe(t[2],"()");if(i===-2)return;if(i>-1){let o=(t[0].indexOf("!")===0?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,o).trim(),t[3]=""}}let a=t[2],r="";if(this.options.pedantic){let i=this.rules.other.pedanticHrefTitle.exec(a);i&&(a=i[1],r=i[3])}else r=t[3]?t[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?a=a.slice(1):a=a.slice(1,-1)),bB(t,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let a=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=t[a.toLowerCase()];if(!r){let i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return bB(n,r,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let a=this.rules.inline.emStrongLDelim.exec(e);if(!(!a||a[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(a[1]||a[2])||!n||this.rules.inline.punctuation.exec(n))){let r=[...a[0]].length-1,i,o,c=r,l=0,d=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+r);(a=d.exec(t))!=null;){if(i=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!i)continue;if(o=[...i].length,a[3]||a[4]){c+=o;continue}else if((a[5]||a[6])&&r%3&&!((r+o)%3)){l+=o;continue}if(c-=o,c>0)continue;o=Math.min(o,o+c+l);let m=[...a[0]][0].length,h=e.slice(0,r+a.index+m+o);if(Math.min(r,o)%2){let f=h.slice(1,-1);return{type:"em",raw:h,text:f,tokens:this.lexer.inlineTokens(f)}}let x=h.slice(2,-2);return{type:"strong",raw:h,text:x,tokens:this.lexer.inlineTokens(x)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),a=this.rules.other.nonSpaceChar.test(n),r=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return a&&r&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,a;return t[2]==="@"?(n=t[1],a="mailto:"+n):(n=t[1],a=n),{type:"link",raw:t[0],text:n,href:a,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,a;if(t[2]==="@")n=t[0],a="mailto:"+n;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0]);n=t[0],t[1]==="www."?a="http://"+t[0]:a=t[0]}return{type:"link",raw:t[0],text:n,href:a,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},Tl=class yj{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||df,this.options.tokenizer=this.options.tokenizer||new g4,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:Fo,block:R5.normal,inline:Z1.normal};this.options.pedantic?(n.block=R5.pedantic,n.inline=Z1.pedantic):this.options.gfm&&(n.block=R5.gfm,this.options.breaks?n.inline=Z1.breaks:n.inline=Z1.gfm),this.tokenizer.rules=n}static get rules(){return{block:R5,inline:Z1}}static lex(t,n){return new yj(n).lex(t)}static lexInline(t,n){return new yj(n).inlineTokens(t)}lex(t){t=t.replace(Fo.carriageReturn,` 2139`),this.blockTokens(t,this.tokens);for(let n=0;
vendor: 7,227 bytes, lines 2139-2170
2139n<this.inlineQueue.length;n++){let a=this.inlineQueue[n];this.inlineTokens(a.src,a.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],a=!1){for(this.options.pedantic&&(t=t.replace(Fo.tabCharGlobal," ").replace(Fo.spaceLine,""));t;){let r;if(this.options.extensions?.block?.some(o=>(r=o.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))continue;if(r=this.tokenizer.space(t)){t=t.substring(r.raw.length);let o=n.at(-1);r.raw.length===1&&o!==void 0?o.raw+=` 2140`:n.push(r);continue}if(r=this.tokenizer.code(t)){t=t.substring(r.raw.length);let o=n.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=(o.raw.endsWith(` 2141`)?"":` 2142`)+r.raw,o.text+=` 2143`+r.text,this.inlineQueue.at(-1).src=o.text):n.push(r);continue}if(r=this.tokenizer.fences(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.heading(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.hr(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.blockquote(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.list(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.html(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.def(t)){t=t.substring(r.raw.length);let o=n.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=(o.raw.endsWith(` 2144`)?"":` 2145`)+r.raw,o.text+=` 2146`+r.raw,this.inlineQueue.at(-1).src=o.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},n.push(r));continue}if(r=this.tokenizer.table(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.lheading(t)){t=t.substring(r.raw.length),n.push(r);continue}let i=t;if(this.options.extensions?.startBlock){let o=1/0,c=t.slice(1),l;this.options.extensions.startBlock.forEach(d=>{l=d.call({lexer:this},c),typeof l=="number"&&l>=0&&(o=Math.min(o,l))}),o<1/0&&o>=0&&(i=t.substring(0,o+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let o=n.at(-1);a&&o?.type==="paragraph"?(o.raw+=(o.raw.endsWith(` 2147`)?"":` 2148`)+r.raw,o.text+=` 2149`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):n.push(r),a=i.length!==t.length,t=t.substring(r.raw.length);continue}if(r=this.tokenizer.text(t)){t=t.substring(r.raw.length);let o=n.at(-1);o?.type==="text"?(o.raw+=(o.raw.endsWith(` 2150`)?"":` 2151`)+r.raw,o.text+=` 2152`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):n.push(r);continue}if(t){let o="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let a=t,r=null;if(this.tokens.links){let c=Object.keys(this.tokens.links);if(c.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)c.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,r.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(r=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);a=this.options.hooks?.emStrongMask?.call({lexer:this},a)??a;let i=!1,o="";for(;t;){i||(o=""),i=!1;let c;if(this.options.extensions?.inline?.some(d=>(c=d.call({lexer:this},t,n))?(t=t.substring(c.raw.length),n.push(c),!0):!1))continue;if(c=this.tokenizer.escape(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.tag(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.link(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(c.raw.length);let d=n.at(-1);c.type==="text"&&d?.type==="text"?(d.raw+=c.raw,d.text+=c.text):n.push(c);continue}if(c=this.tokenizer.emStrong(t,a,o)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.codespan(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.br(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.del(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.autolink(t)){t=t.substring(c.raw.length),n.push(c);continue}if(!this.state.inLink&&(c=this.tokenizer.url(t))){t=t.substring(c.raw.length),n.push(c);continue}let l=t;if(this.options.extensions?.startInline){let d=1/0,m=t.slice(1),h;this.options.extensions.startInline.forEach(x=>{h=x.call({lexer:this},m),typeof h=="number"&&h>=0&&(d=Math.min(d,h))}),d<1/0&&d>=0&&(l=t.substring(0,d+1))}if(c=this.tokenizer.inlineText(l)){t=t.substring(c.raw.length),c.raw.slice(-1)!=="_"&&(o=c.raw.slice(-1)),i=!0;let d=n.at(-1);d?.type==="text"?(d.raw+=c.raw,d.text+=c.text):n.push(c);continue}if(t){let d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return n}},x4=class{options;parser;constructor(t){this.options=t||df}space(t){return""}code({text:t,lang:n,escaped:a}){let r=(n||"").match(Fo.notSpaceStart)?.[0],i=t.replace(Fo.endingNewline,"")+` 2153`;return r?'<pre><code class="language-'+ld(r)+'">'+(a?i:ld(i,!0))+`</code></pre> 2154`:"<pre><code>"+(a?i:ld(i,!0))+`</code></pre> 2155`}blockquote({tokens:t}){return`<blockquote> 2156${this.parser.parse(t)}</blockquote> 2157`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:n}){return`<h${n}>${this.parser.parseInline(t)}</h${n}> 2158`}hr(t){return`<hr> 2159`}list(t){let n=t.ordered,a=t.start,r="";for(let c=0;c<t.items.length;c++){let l=t.items[c];r+=this.listitem(l)}let i=n?"ol":"ul",o=n&&a!==1?' start="'+a+'"':"";return"<"+i+o+`> 2160`+r+"</"+i+`> 2161`}listitem(t){let n="";if(t.task){let a=this.checkbox({checked:!!t.checked});t.loose?t.tokens[0]?.type==="paragraph"?(t.tokens[0].text=a+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=a+" "+ld(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:a+" ",text:a+" ",escaped:!0}):n+=a+" "}return n+=this.parser.parse(t.tokens,!!t.loose),`<li>${n}</li> 2162`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p> 2163`}table(t){let n="",a="";for(let i=0;i<t.header.length;i++)a+=this.tablecell(t.header[i]);n+=this.tablerow({text:a});let r="";for(let i=0;i<t.rows.length;i++){let o=t.rows[i];a="";for(let c=0;c<o.length;c++)a+=this.tablecell(o[c]);r+=this.tablerow({text:a})}return r&&(r=`<tbody>${r}</tbody>`),`<table> 2164<thead> 2165`+n+`</thead> 2166`+r+`</table> 2167`}tablerow({text:t}){return`<tr> 2168${t}</tr> 2169`}tablecell(t){let n=this.parser.parseInline(t.tokens),a=t.header?"th":"td";return(t.align?`<${a} align="${t.align}">`:`<${a}>`)+n+`</${a}> 2170`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${ld(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:a}){let r=this.parser.parseInline(a),i=gB(t);
vendor: 4,146 bytes, lines 2170-2171
2170if(i===null)return r;t=i;let o='<a href="'+t+'"';return n&&(o+=' title="'+ld(n)+'"'),o+=">"+r+"</a>",o}image({href:t,title:n,text:a,tokens:r}){r&&(a=this.parser.parseInline(r,this.parser.textRenderer));let i=gB(t);if(i===null)return ld(a);t=i;let o=`<img src="${t}" alt="${a}"`;return n&&(o+=` title="${ld(n)}"`),o+=">",o}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:ld(t.text)}},HE=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},mu=class wj{options;renderer;textRenderer;constructor(t){this.options=t||df,this.options.renderer=this.options.renderer||new x4,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new HE}static parse(t,n){return new wj(n).parse(t)}static parseInline(t,n){return new wj(n).parseInline(t)}parse(t,n=!0){let a="";for(let r=0;r<t.length;r++){let i=t[r];if(this.options.extensions?.renderers?.[i.type]){let c=i,l=this.options.extensions.renderers[c.type].call({parser:this},c);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(c.type)){a+=l||"";continue}}let o=i;switch(o.type){case"space":{a+=this.renderer.space(o);continue}case"hr":{a+=this.renderer.hr(o);continue}case"heading":{a+=this.renderer.heading(o);continue}case"code":{a+=this.renderer.code(o);continue}case"table":{a+=this.renderer.table(o);continue}case"blockquote":{a+=this.renderer.blockquote(o);continue}case"list":{a+=this.renderer.list(o);continue}case"html":{a+=this.renderer.html(o);continue}case"def":{a+=this.renderer.def(o);continue}case"paragraph":{a+=this.renderer.paragraph(o);continue}case"text":{let c=o,l=this.renderer.text(c);for(;r+1<t.length&&t[r+1].type==="text";)c=t[++r],l+=` 2171`+this.renderer.text(c);n?a+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l,escaped:!0}]}):a+=l;continue}default:{let c='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return a}parseInline(t,n=this.renderer){let a="";for(let r=0;r<t.length;r++){let i=t[r];if(this.options.extensions?.renderers?.[i.type]){let c=this.options.extensions.renderers[i.type].call({parser:this},i);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){a+=c||"";continue}}let o=i;switch(o.type){case"escape":{a+=n.text(o);break}case"html":{a+=n.html(o);break}case"link":{a+=n.link(o);break}case"image":{a+=n.image(o);break}case"strong":{a+=n.strong(o);break}case"em":{a+=n.em(o);break}case"codespan":{a+=n.codespan(o);break}case"br":{a+=n.br(o);break}case"del":{a+=n.del(o);break}case"text":{a+=n.text(o);break}default:{let c='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return a}},mb=class{options;block;constructor(e){this.options=e||df}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?Tl.lex:Tl.lexInline}provideParser(){return this.block?mu.parse:mu.parseInline}},qPe=class{defaults=RE();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=mu;Renderer=x4;TextRenderer=HE;Lexer=Tl;Tokenizer=g4;Hooks=mb;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let a of e)switch(n=n.concat(t.call(this,a)),a.type){case"table":{let r=a;for(let i of r.header)n=n.concat(this.walkTokens(i.tokens,t));for(let i of r.rows)for(let o of i)n=n.concat(this.walkTokens(o.tokens,t));break}case"list":{let r=a;n=n.concat(this.walkTokens(r.items,t));break}default:{let r=a;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(i=>
2171{let o=r[i].flat(1/0);n=n.concat(this.walkTokens(o,t))}):r.tokens&&(n=n.concat(this.walkTokens(r.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let a={...n};if(a.async=this.defaults.async||a.async||!1,n.extensions&&(n.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let i=t.renderers[r.name];i?t.renderers[r.name]=function(...o){let c=r.renderer.apply(this,o);return c===!1&&(c=i.apply(this,o)),c}:t.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=t[r.level];i?i.unshift(r.tokenizer):t[r.level]=[r.tokenizer],r.start&&(r.level==="block"?t.startBlock?t.startBlock.push(r.start):t.startBlock=[r.start]:r.level==="inline"&&(t.startInline?t.startInline.push(r.start):t.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(t.childTokens[r.name]=r.childTokens)}),a.extensions=t),n.renderer){let r=this.defaults.renderer||new x4(this.defaults);for(let i in n.renderer){if(!(i in r))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let o=i,c=n.renderer[o],l=r[o];r[o]=(...d)=>{let m=c.apply(r,d);return m===!1&&(m=l.apply(r,d)),m||""}}a.renderer=r}if(n.tokenizer){let r=this.defaults.tokenizer||new g4(this.defaults);for(let i in n.tokenizer){if(!(i in r))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let o=i,c=n.tokenizer[o],l=r[o];r[o]=(...d)=>{let m=c.apply(r,d);return m===!1&&(m=l.apply(r,d)),m}}a.tokenizer=r}if(n.hooks){let r=this.defaults.hooks||new mb;for(let i in n.hooks){if(!(i in r))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let o=i,c=n.hooks[o],l=r[o];mb.passThroughHooks.has(i)?r[o]=d=>{if(this.defaults.async&&mb.passThroughHooksRespectAsync.has(i))return(async()=>{let h=await c.call(r,d);return l.call(r,h)})();let m=c.call(r,d);return l.call(r,m)}:r[o]=(...d)=>{if(this.defaults.async)return(async()=>{let h=await c.apply(r,d);return h===!1&&(h=await l.apply(r,d)),h})();let m=c.apply(r,d);return m===!1&&(m=l.apply(r,d)),m}}a.hooks=r}if(n.walkTokens){let r=this.defaults.walkTokens,i=n.walkTokens;a.walkTokens=function(o){let c=[];return c.push(i.call(this,o)),r&&(c=c.concat(r.call(this,o))),c}}this.defaults={...this.defaults,...a}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Tl.lex(e,t??this.defaults)}parser(e,t){return mu.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let a={...n},r={...this.defaults,...a},i=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&a.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(r.hooks&&(r.hooks.options=r,r.hooks.block=e),r.async)return(async()=>{let o=r.hooks?await r.hooks.preprocess(t):t,c=await(r.hooks?await r.hooks.provideLexer():e?Tl.lex:Tl.lexInline)(o,r),l=r.hooks?await r.hooks.processAllTokens(c):c;r.walkTokens&&await Promise.all(this.walkTokens(l,r.walkTokens));let d=await(r.hooks?await r.hooks.provideParser():e?mu.parse:mu.parseInline)(l,r);return r.hooks?await r.hooks.postprocess(d):d})().catch(i);try{r.hooks&&(t=r.hooks.preprocess(t));let o=(r.hooks?r.hooks.provideLexer():e?Tl.lex:Tl.lexInline)(t,r);r.hooks&&(o=r.hooks.processAllTokens(o)),r.walkTokens&&this.walkTokens(o,r.walkTokens);let c=(r.hooks?r.hooks.provideParser():e?mu.parse:mu.parseInline)(o,r);return r.hooks&&(c=r.hooks.postprocess(c)),c}catch(o){return i(o)}}}onError(e,t){return n=>{if(n.message+=` 2172Please report this to https://github.com/markedjs/marked.`,e){let a="<p>An error occurred:</p><pre>"+ld(n.message+"",!0)+"</pre>";return t?Promise.resolve(a):a}if(t)return Promise.reject(n);throw n}}},q0=new qPe;function Ns(e,t){return q0.parse(e,t)}Ns.options=Ns.setOptions=function(e){return q0.setOptions(e),Ns.defaults=q0.defaults,VX(Ns.defaults),Ns};Ns.getDefaults=RE;Ns.defaults=df;Ns.use=function(...e){return q0.use(...e),Ns.defaults=q0.defaults,VX(Ns.defaults),Ns};Ns.walkTokens=function(e,t){return q0.walkTokens(e,t)};Ns.parseInline=q0.parseInline;Ns.Parser=mu;Ns.parser=mu.parse;Ns.Renderer=x4;Ns.TextRenderer=HE;Ns.Lexer=Tl;Ns.lexer=Tl.lex;Ns.Tokenizer=g4;Ns.Hooks=mb;Ns.parse=Ns;Ns.options;Ns.setOptions;Ns.use;Ns.walkTokens;Ns.parseInline;mu.parse;Tl.lex;var _a=(...e)=>TU(Jj(e)),VE=(e,t,n)=>{let a=typeof t=="string"?new Blob([t],{type:n}):t,r=URL.createObjectURL(a),i=document.createElement("a");i.href=r,i.download=e,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(r)},GPe=/<pre(\s|>)/,zE=k.createContext({code:""}),JPe=class{constructor(){this.lightHighlighter=null,this.darkHighlighter=null,this.lightTheme=null,this.darkTheme=null,this.loadedLanguages=new Set,this.initializationPromise=null}isLanguageSupported(e){return Object.hasOwn(gX,e)}getFallbackLanguage(){return"text"}async ensureHighlightersInitialized(e,t){var n,a;let[r,i]=e,o=lPe({forgiving:!0}),c=!this.lightHighlighter||this.lightTheme!==r,l=!this.darkHighlighter||this.darkTheme!==i;(c||l)&&this.loadedLanguages.clear();let d=this.isLanguageSupported(t),m=!this.loadedLanguages.has(t)&&d;if(c?(this.lightHighlighter=await GO({themes:[r],langs:d?[t]:[],engine:o}),this.lightTheme=r,d&&this.loadedLanguages.add(t)):m&&await((n=this.lightHighlighter)==null?void 0:n.loadLanguage(t)),l){let h=m?[...this.loadedLanguages].concat(d?[t]:[]):Array.from(this.loadedLanguages);this.darkHighlighter=await GO({themes:[i],langs:h.length>0?h:d?[t]:[],engine:o}),this.darkTheme=i}else m&&await((a=this.darkHighlighter)==null?void 0:a.loadLanguage(t));m&&this.loadedLanguages.add(t)}async highlightCode(e,t,n,a){var r,i;this.initializationPromise&&await this.initializationPromise,this.initializationPromise=this.ensureHighlightersInitialized(n,t),await this.initializationPromise,this.initializationPromise=null;let[o,c]=n,l=this.isLanguageSupported(t)?t:this.getFallbackLanguage(),d=(r=this.lightHighlighter)==null?void 0:r.codeToHtml(e,{lang:l,theme:o}),m=(i=this.darkHighlighter)==null?void 0:i.codeToHtml(e,{lang:l,theme:c}),h=x=>a?x.replace(GPe,`<pre class="${a}"$1`):x;return[h(d),h(m)]}},WPe=new JPe,YPe=({code:e,language:t,className:n,children:a,preClassName:r,...i})=>{let[o,c]=k.useState(""),[l,d]=k.useState(""),m=k.useRef(!1),[h,x]=k.useContext(EQ);return k.useEffect(()=>(m.current=!0,WPe.highlightCode(e,t,[h,x],r).then(([f,b])=>{m.current&&(c(f),d(b))}),()=>{m.current=!1}),[e,t,h,x,r]),s.jsx(zE.Provider,{value:{code:e},children:s.jsxs("div",{className:"my-4 w-full overflow-hidden rounded-xl border","data-code-block-container":!0,"data-language":t,children:[s.jsxs("div",{className:"flex items-center justify-between bg-muted/80 p-3 text-muted-foreground text-xs","data-code-block-header":!0,"data-language":t,children:[s.jsx("span",{className:"ml-1 font-mono lowercase",children:t}),s.jsx("div",{className:"flex items-center gap-2",children:a})]}),s.jsx("div",{className:"w-full",children:s.jsxs("div",{className:"min-w-full",children:[s.jsx("div",{className:_a("overflow-x-auto dark:hidden",n),dangerouslySetInnerHTML:{__html:o},"data-code-block":!0,"data-language":t,...i}),s.jsx("div",{className:_a("hidden overflow-x-auto dark:block",n),dangerouslySetInnerHTML:{__html:l},"data-code-block":!0,"data-language":t,...i})]})})]})})},vB={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",da
2172x:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",æè¨:"wy"},yB=({onDownload:e,onError:t,language:n,children:a,className:r,code:i,...o})=>{let{code:c}=k.useContext(zE),{isAnimating:l}=k.useContext(dv),d=i??c,m=`file.${n&&n in vB?vB[n]:"txt"}`,h="text/plain",x=()=>{try{VE(m,d,h),e?.()}catch(f){t?.(f)}};return s.jsx("button",{className:_a("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",r),disabled:l,onClick:x,title:"Download file",type:"button",...o,children:a??s.jsx(vE,{size:14})})},wB=({onCopy:e,onError:t,timeout:n=2e3,children:a,className:r,code:i,...o})=>{let[c,l]=k.useState(!1),d=k.useRef(0),{code:m}=k.useContext(zE),{isAnimating:h}=k.useContext(dv),x=i??m,f=async()=>{var y;if(typeof window>"u"||!((y=navigator?.clipboard)!=null&&y.writeText)){t?.(new Error("Clipboard API not available"));return}try{c||(await navigator.clipboard.writeText(x),l(!0),e?.(),d.current=window.setTimeout(()=>l(!1),n))}catch(w){t?.(w)}};k.useEffect(()=>()=>{window.clearTimeout(d.current)},[]);let b=c?BY:FY;return s.jsx("button",{className:_a("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",r),disabled:h,onClick:f,type:"button",...o,children:a??s.jsx(b,{size:14})})},XPe=({node:e,className:t,src:n,alt:a,...r})=>{let i=async()=>{var o;if(n)try{let c=await(await fetch(n)).blob(),l=new URL(n,window.location.origin).pathname.split("/").pop()||"",d=l.includes(".")&&((o=l.split(".").pop())==null?void 0:o.length)<=4,m="";if(d)m=l;else{let h=c.type,x="png";h.includes("jpeg")||h.includes("jpg")?x="jpg":h.includes("png")?x="png":h.includes("svg")?x="svg":h.includes("gif")?x="gif":h.includes("webp")&&(x="webp"),m=`${(a||l||"image").replace(/\.[^/.]+$/,"")}.${x}`}VE(m,c,c.type)}catch(c){console.error("Failed to download image:",c)}};return n?s.jsxs("div",{className:"group relative my-4 inline-block","data-streamdown":"image-wrapper",children:[s.jsx("img",{alt:a,className:_a("max-w-full rounded-lg",t),"data-streamdown":"image",src:n,...r}),s.jsx("div",{className:"pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"}),s.jsx("button",{className:_a("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:i,title:"Download image",type:"button",children:s.jsx(vE,{size:14})})]}):null},QPe=async e=>{let t={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0,...e},n=(await we(async()=>{const{default:a}=await import("./mermaid.core-DsAMKx2_.js").then(r=>r.bC);return{default:a}},[])).default;return n.initialize(t),n},KPe=({chart:e,className:t,config:n})=>{let[a,r]=k.useState(null),[i,o]=k.useState(!0),[c,l]=k.useState(""),[d,m]=k.useState("");
2172if(k.useEffect(()=>{(async()=>{try{r(null),o(!0);let x=await QPe(n),f=e.split("").reduce((w,T)=>(w<<5)-w+T.charCodeAt(0)|0,0),b=`mermaid-${Math.abs(f)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:y}=await x.render(b,e);l(y),m(y)}catch(x){if(!(d||c)){let f=x instanceof Error?x.message:"Failed to render Mermaid chart";r(f)}}finally{o(!1)}})()},[e,n]),i&&!c&&!d)return s.jsx("div",{className:_a("my-4 flex justify-center p-4",t),children:s.jsxs("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[s.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-current border-b-2"}),s.jsx("span",{className:"text-sm",children:"Loading diagram..."})]})});if(a&&!c&&!d)return s.jsxs("div",{className:_a("rounded-lg border border-red-200 bg-red-50 p-4",t),children:[s.jsxs("p",{className:"font-mono text-red-700 text-sm",children:["Mermaid Error: ",a]}),s.jsxs("details",{className:"mt-2",children:[s.jsx("summary",{className:"cursor-pointer text-red-600 text-xs",children:"Show Code"}),s.jsx("pre",{className:"mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs",children:e})]})]});let h=c||d;return s.jsx("div",{"aria-label":"Mermaid chart",className:_a("my-4 flex justify-center",t),dangerouslySetInnerHTML:{__html:h},role:"img"})};function ZX(e){var t,n;let a=[],r=[],i=e.querySelectorAll("thead th");for(let c of i)a.push(((t=c.textContent)==null?void 0:t.trim())||"");let o=e.querySelectorAll("tbody tr");for(let c of o){let l=[],d=c.querySelectorAll("td");for(let m of d)l.push(((n=m.textContent)==null?void 0:n.trim())||"");r.push(l)}return{headers:a,rows:r}}function eQ(e){let{headers:t,rows:n}=e,a=i=>i.includes(",")||i.includes('"')||i.includes(` 2173`)?`"${i.replace(/"/g,'""')}"`:i,r=[];t.length>0&&r.push(t.map(a).join(","));for(let i of n)r.push(i.map(a).join(","));return r.join(` 2174`)}function tQ(e){let{headers:t,rows:n}=e;if(t.length===0)return"";let a=[],r=t.map(i=>i.replace(/\|/g,"\\|"));a.push(`| ${r.join(" | ")} |`),a.push(`| ${t.map(()=>"---").join(" | ")} |`);for(let i of n){let o=[...i];for(;o.length<t.length;)o.push("");let c=o.map(l=>l.replace(/\|/g,"\\|"));a.push(`| ${c.join(" | ")} |`)}return a.join(` 2175`)}var ZPe=({children:e,className:t,onCopy:n,onError:a,timeout:r=2e3,format:i="markdown"})=>{let[o,c]=k.useState(!1),l=k.useRef(0),{isAnimating:d}=k.useContext(dv),m=async x=>{var f;if(typeof window>"u"||!((f=navigator?.clipboard)!=null&&f.write)){a?.(new Error("Clipboard API not available"));return}try{if(!o){let b=x.currentTarget.closest('[data-streamdown="table-wrapper"]'),y=b?.querySelector("table");if(!y){a?.(new Error("Table not found"));return}let w=ZX(y),T=new ClipboardItem({"text/plain":i==="markdown"?tQ(w):eQ(w),"text/html":new Blob([y.outerHTML],{type:"text/html"})});await navigator.clipboard.write([T]),c(!0),n?.(),l.current=window.setTimeout(()=>c(!1),r)}}catch(b){a?.(b)}};k.useEffect(()=>()=>{window.clearTimeout(l.current)},[]);let h=o?BY:FY;return s.jsx("button",{className:_a("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:d,onClick:m,title:`Copy table as ${i}`,type:"button",children:e??s.jsx(h,{size:14})})},eDe=({children:e,className:t,onDownload:n,onError:a})=>{let[r,i]=k.useState(!1),o=k.useRef(null),{isAnimating:c}=k.useContext(dv),l=d=>{var m;try{let h=(m=o.current)==null?void 0:m.closest('[data-streamdown="table-wrapper"]'),x=h?.querySelector("table");if(!x){a?.(new Error("Table not found"));return}let f=ZX(x),b=d==="csv"?eQ(f):tQ(f);VE(`table.${d==="csv"?"csv":"md"}`,b,d==="csv"?"text/csv":"text/markdown"),i(!1),n?.(d)}catch(h){a?.(h)}};return k.useEffect(()=>{let d=m=>{o.current&&!o.current.contains(m.target)&&i(!1)};return document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d)}},[]),s.jsxs("div",{className:"relative",ref:o,children:[s.jsx("button",{className:_a("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:c,onClick:()=>i(!r),title:"Download table",type:"button",children:e??s.jsx(vE,{size:14})}),r&&s.jsxs("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] rounded-md border border-border bg-background shadow-lg",children:[s.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>l("csv"),type:"button",children:"CSV"}),s.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>l("markdown"),type:"button",children:"Markdown"})]})]})},tDe=/language-([^\s]+)/;function z6(e,t){if(!(e!=null&&e.position||t!=null&&t.position))return!0;
2175if(!(e!=null&&e.position&&t!=null&&t.position))return!1;let n=e.position.start,a=t.position.start,r=e.position.end,i=t.position.end;return n?.line===a?.line&&n?.column===a?.column&&r?.line===i?.line&&r?.column===i?.column}function Fr(e,t){return e.className===t.className&&z6(e.node,t.node)}var Tj=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,$E=k.memo(({children:e,className:t,node:n,...a})=>s.jsx("ol",{className:_a("ml-4 list-outside list-decimal whitespace-normal",t),"data-streamdown":"ordered-list",...a,children:e}),(e,t)=>Fr(e,t));$E.displayName="MarkdownOl";var nQ=k.memo(({children:e,className:t,node:n,...a})=>s.jsx("li",{className:_a("py-1",t),"data-streamdown":"list-item",...a,children:e}),(e,t)=>e.className===t.className&&z6(e.node,t.node));nQ.displayName="MarkdownLi";var aQ=k.memo(({children:e,className:t,node:n,...a})=>s.jsx("ul",{className:_a("ml-4 list-outside list-disc whitespace-normal",t),"data-streamdown":"unordered-list",...a,children:e}),(e,t)=>Fr(e,t));aQ.displayName="MarkdownUl";var sQ=k.memo(({className:e,node:t,...n})=>s.jsx("hr",{className:_a("my-6 border-border",e),"data-streamdown":"horizontal-rule",...n}),(e,t)=>Fr(e,t));sQ.displayName="MarkdownHr";var rQ=k.memo(({children:e,className:t,node:n,...a})=>s.jsx("span",{className:_a("font-semibold",t),"data-streamdown":"strong",...a,children:e}),(e,t)=>Fr(e,t));rQ.displayName="MarkdownStrong";var iQ=k.memo(({children:e,className:t,href:n,node:a,...r})=>{let i=n==="streamdown:incomplete-link";return s.jsx("a",{className:_a("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":i,"data-streamdown":"link",href:n,rel:"noreferrer",target:"_blank",...r,children:e})},(e,t)=>Fr(e,t)&&e.href===t.href);iQ.displayName="MarkdownA";var oQ=k.memo(({children:e,className:t,node:n,...a})=>s.jsx("h1",{className:_a("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...a,children:e}),(e,t)=>Fr(e,t));oQ.displayName="MarkdownH1";var cQ=k.memo(({children:e,className:t,node:n,...a})=>s.jsx("h2",{className:_a("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...a,children:e}),(e,t)=>Fr(e,t));cQ.displayName="MarkdownH2";var lQ=k.memo(({children:e,className:t,node:n,...a})=>s.jsx("h3",{className:_a("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...a,children:e}),(e,t)=>Fr(e,t));lQ.displayName="MarkdownH3";var uQ=k.memo(({children:e,className:t,node:n,...a})=>s.jsx("h4",{className:_a("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...a,children:e}),(e,t)=>Fr(e,t));uQ.displayName="MarkdownH4";var dQ=k.memo(({children:e,className:t,node:n,...a})=>s.jsx("h5",{className:_a("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...a,children:e}),(e,t)=>Fr(e,t));dQ.displayName="MarkdownH5";var mQ=k.memo(({children:e,className:t,node:n,...a})=>s.jsx("h6",{className:_a("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...a,children:e}),(e,t)=>Fr(e,t));mQ.displayName="MarkdownH6";var pQ=k.memo(({children:e,className:t,node:n,...a})=>{let r=k.useContext(qE),i=Tj(r,"table");return s.jsxs("div",{className:"my-4 flex flex-col space-y-2","data-streamdown":"table-wrapper",children:[i&&s.jsxs("div",{className:"flex items-center justify-end gap-1",children:[s.jsx(ZPe,{}),s.jsx(eDe,{})]}),s.jsx("div",{className:"overflow-x-auto",children:s.jsx("table",{className:_a("w-full border-collapse border border-border",t),"data-streamdown":"table",...a,children:e})})]})},(e,t)=>Fr(e,t));pQ.displayName="MarkdownTable";var hQ=k.memo(({children:e,className:t,node:n,...a})=>s.jsx("thead",{className:_a("bg-muted/80",t),"data-streamdown":"table-header",...a,children:e}),(e,t)=>Fr(e,t));hQ.displayName="MarkdownThead";var fQ=k.memo(({children:e,className:t,node:n,...a})=>s.jsx("tbody",{className:_a("divide-y divide-border bg-muted/40",t),"data-streamdown":"table-body",...a,children:e}),(e,t)=>Fr(e,t));fQ.displayName="MarkdownTbody";var gQ=k.memo(({children:e,className:t,node:n,...a})=>s.jsx("tr",{className:_a("border-border border-b",t),"data-streamdown":"table-row",...a,children:e}),(e,t)=>Fr(e,t));gQ.displayName="MarkdownTr";var xQ=k.memo(({children:e,className:t,node:n,...a})=>s.jsx("th",{className:_a("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...a,children:e}),(e,t)=>Fr(e,t));xQ.displayName="MarkdownTh";var bQ=k.memo(({children:e,className:t,node:n,...a})=>s.jsx("td",{className:_a("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...a,children:e}),(e,t)=>Fr(e,t));bQ.displayName="MarkdownTd";var vQ=k.memo(({children:e,className:t,node:n,...a})=>
2175s.jsx("blockquote",{className:_a("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...a,children:e}),(e,t)=>Fr(e,t));vQ.displayName="MarkdownBlockquote";var yQ=k.memo(({children:e,className:t,node:n,...a})=>s.jsx("sup",{className:_a("text-sm",t),"data-streamdown":"superscript",...a,children:e}),(e,t)=>Fr(e,t));yQ.displayName="MarkdownSup";var wQ=k.memo(({children:e,className:t,node:n,...a})=>s.jsx("sub",{className:_a("text-sm",t),"data-streamdown":"subscript",...a,children:e}),(e,t)=>Fr(e,t));wQ.displayName="MarkdownSub";var TQ=k.memo(({children:e,className:t,node:n,...a})=>{if("data-footnotes"in a){let r=o=>{var c,l;if(!k.isValidElement(o))return!1;let d=Array.isArray(o.props.children)?o.props.children:[o.props.children],m=!1,h=!1;for(let x of d)if(x){if(typeof x=="string")x.trim()!==""&&(m=!0);else if(k.isValidElement(x))if(((c=x.props)==null?void 0:c["data-footnote-backref"])!==void 0)h=!0;else{let f=Array.isArray(x.props.children)?x.props.children:[x.props.children];for(let b of f){if(typeof b=="string"&&b.trim()!==""){m=!0;break}if(k.isValidElement(b)&&((l=b.props)==null?void 0:l["data-footnote-backref"])===void 0){m=!0;break}}}}return h&&!m},i=Array.isArray(e)?e.map(o=>{if(!k.isValidElement(o))return o;if(o.type===$E){let c=(Array.isArray(o.props.children)?o.props.children:[o.props.children]).filter(l=>!r(l));return c.length===0?null:{...o,props:{...o.props,children:c}}}return o}):e;return(Array.isArray(i)?i.some(o=>o!==null):i!==null)?s.jsx("section",{className:t,...a,children:i}):null}return s.jsx("section",{className:t,...a,children:e})},(e,t)=>Fr(e,t));TQ.displayName="MarkdownSection";var nDe=({node:e,className:t,children:n,...a})=>{var r,i,o;let c=((r=e?.position)==null?void 0:r.start.line)===((i=e?.position)==null?void 0:i.end.line),l=k.useContext(CQ),d=k.useContext(qE);if(c)return s.jsx("code",{className:_a("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...a,children:n});let m=t?.match(tDe),h=(o=m?.at(1))!=null?o:"",x="";if(k.isValidElement(n)&&n.props&&typeof n.props=="object"&&"children"in n.props&&typeof n.props.children=="string"?x=n.props.children:typeof n=="string"&&(x=n),h==="mermaid"){let b=Tj(d,"mermaid");return s.jsxs("div",{className:_a("group relative my-4 h-auto rounded-xl border p-4",t),"data-streamdown":"mermaid-block",children:[b&&s.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.jsx(yB,{code:x,language:h}),s.jsx(wB,{code:x})]}),s.jsx(KPe,{chart:x,config:l})]})}let f=Tj(d,"code");return s.jsx(YPe,{className:_a("overflow-x-auto border-t",t),code:x,"data-language":h,"data-streamdown":"code-block",language:h,preClassName:"overflow-x-auto font-mono text-xs p-4 bg-muted/40",children:f&&s.jsxs(s.Fragment,{children:[s.jsx(yB,{code:x,language:h}),s.jsx(wB,{})]})})},NQ=k.memo(nDe,(e,t)=>e.className===t.className&&z6(e.node,t.node));NQ.displayName="MarkdownCode";var kQ=k.memo(XPe,(e,t)=>e.className===t.className&&z6(e.node,t.node));kQ.displayName="MarkdownImg";var jQ=k.memo(({children:e,className:t,node:n,...a})=>{var r;let i=(Array.isArray(e)?e:[e]).filter(o=>o!=null&&o!=="");return i.length===1&&k.isValidElement(i[0])&&((r=i[0].props.node)==null?void 0:r.tagName)==="img"?s.jsx(s.Fragment,{children:e}):s.jsx("p",{className:t,...a,children:e})},(e,t)=>Fr(e,t));jQ.displayName="MarkdownParagraph";var aDe={ol:$E,li:nQ,ul:aQ,hr:sQ,strong:rQ,a:iQ,h1:oQ,h2:cQ,h3:lQ,h4:uQ,h5:dQ,h6:mQ,table:pQ,thead:hQ,tbody:fQ,tr:gQ,th:xQ,td:bQ,blockquote:vQ,code:NQ,img:kQ,pre:({children:e})=>e,sup:yQ,sub:wQ,p:jQ,section:TQ},sDe=e=>{let t=/\[\^[^\]\s]{1,200}\](?!:)/.test(e),n=/\[\^[^\]\s]{1,200}\]:/.test(e);if(t||n)return[e];let a=Tl.lex(e,{gfm:!0}),r=[],i=[];for(let o=0;o<a.length;o++){let c=a[o],l=c.raw;if(i.length>0){if(r[r.length-1]+=l,c.type==="html"){let d=l.match(/<\/(\w+)>/);if(d){let m=d[1];i[i.length-1]===m&&i.pop()}}continue}if(c.type==="html"&&c.block){let d=l.match(/<(\w+)[\s>]/);if(d){let m=d[1];l.includes(`</${m}>`)||i.push(m)}}if(l.trim()==="$$"&&r.length>0){let d=r.at(-1);if(!d){r.push(l);continue}let m=d.trimStart().startsWith("$$"),h=(d.match(/\$\$/g)||[]).length;if(m&&h%2===1){r[r.length-1]=d+l;continue}}if(r.length>0&&l.trimEnd().endsWith("$$")){let d=r.at(-1);if(!d){r.push(l);continue}let m=d.trimStart().startsWith("$$"),h=(d.match(/\$\$/g)||[]).length,x=(l.match(/\$\$/g)||[]).length;if(m&&h%2===1&&!l.trimStart().startsWith("$$")&&x===1){r[r.length-1]=d+l;continue}}r.push(l)}return r},rDe=/(!?\[)([^\]]*?)$/,iDe=/(\*\*)([^*]*?)$/,oDe=/(__)([^_]*?)$/,cDe=/(\*\*\*)([^*]*?)$/,lDe=/(\*)([^*]*?)$/,uDe=/(_)([^_]*?)$/,dDe=/(`)([^`]*?)$/,mDe=/(~~)([^~]*?)$/,$6=e=>{let t=(e.match(/```/g)||[]).length;return t>0&&t%2===0&&e.includes(` 2176`)},pDe=e=>{let t=/(!?)\[([^\]]+)\]\(([^)]+)$/,n=e.match(t);if(n){let r=n[1]==="!",i=n[2],o=n[3],c=e.lastIndexOf(`${r?"!":""}[${i}](${o}`),l=e.substring(0,c);return r?l:`${l}[${i}](streamdown:incomplete-link)`}let a=e.match(rDe);if(a){if(a[1].startsWith("!")){let r=e.lastIndexOf(a[1]);return e.substring(0,r)}return`${e}
2176](streamdown:incomplete-link)`}return e},hDe=e=>{if($6(e))return e;let t=e.match(iDe);if(t){let n=t[2];if(!n||/^[\s_~*`]*$/.test(n))return e;let a=e.lastIndexOf(t[1]),r=e.substring(0,a).lastIndexOf(` 2177`),i=r===-1?0:r+1,o=e.substring(i,a);if(/^[\s]*[-*+][\s]+$/.test(o)&&n.includes(` 2178`))return e;if((e.match(/\*\*/g)||[]).length%2===1)return`${e}**`}return e},fDe=e=>{let t=e.match(oDe);if(t){let n=t[2];if(!n||/^[\s_~*`]*$/.test(n))return e;let a=e.lastIndexOf(t[1]),r=e.substring(0,a).lastIndexOf(` 2179`),i=r===-1?0:r+1,o=e.substring(i,a);if(/^[\s]*[-*+][\s]+$/.test(o)&&n.includes(` 2180`))return e;if((e.match(/__/g)||[]).length%2===1)return`${e}__`}return e},gDe=e=>e.split("").reduce((t,n,a)=>{if(n==="*"){let r=e[a-1],i=e[a+1];if(r==="\\")return t;let o=a;for(let c=a-1;c>=0;c--){if(e[c]===` 2181`){o=c+1;break}if(c===0){o=0;break}}if(e.substring(o,a).trim()===""&&(i===" "||i===" "))return t;if(r!=="*"&&i!=="*")return t+1}return t},0),xDe=e=>{if($6(e))return e;if(e.match(lDe)){let t=-1;for(let a=0;a<e.length;a++)if(e[a]==="*"&&e[a-1]!=="*"&&e[a+1]!=="*"){t=a;break}if(t===-1)return e;let n=e.substring(t+1);if(!n||/^[\s_~*`]*$/.test(n))return e;if(gDe(e)%2===1)return`${e}*`}return e},AQ=(e,t)=>{let n=!1,a=!1;for(let r=0;r<e.length&&r<t;r++){if(e[r]==="\\"&&e[r+1]==="$"){r++;continue}e[r]==="$"&&(e[r+1]==="$"?(a=!a,r++,n=!1):a||(n=!n))}return n||a},bDe=e=>e.split("").reduce((t,n,a)=>{if(n==="_"){let r=e[a-1],i=e[a+1];if(r==="\\"||AQ(e,a)||r&&i&&/[\p{L}\p{N}_]/u.test(r)&&/[\p{L}\p{N}_]/u.test(i))return t;if(r!=="_"&&i!=="_")return t+1}return t},0),vDe=e=>{if($6(e))return e;if(e.match(uDe)){let t=-1;for(let a=0;a<e.length;a++)if(e[a]==="_"&&e[a-1]!=="_"&&e[a+1]!=="_"&&e[a-1]!=="\\"&&!AQ(e,a)){let r=a>0?e[a-1]:"",i=a<e.length-1?e[a+1]:"";if(r&&i&&/[\p{L}\p{N}_]/u.test(r)&&/[\p{L}\p{N}_]/u.test(i))continue;t=a;break}if(t===-1)return e;let n=e.substring(t+1);if(!n||/^[\s_~*`]*$/.test(n))return e;if(bDe(e)%2===1){let a=e.match(/\n+$/);return a?`${e.slice(0,-a[0].length)}_${a[0]}`:`${e}_`}}return e},yDe=(e,t)=>{let n=e.substring(t,t+3)==="```",a=t>0&&e.substring(t-1,t+2)==="```",r=t>1&&e.substring(t-2,t+1)==="```";return n||a||r},wDe=e=>{let t=0;for(let n=0;n<e.length;n++)e[n]==="`"&&!yDe(e,n)&&t++;return t},TDe=e=>{if(e.match(/^```[^`\n]*```?$/)&&!e.includes(` 2182`))return e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e;let t=(e.match(/```/g)||[]).length,n=t%2===1;if(t>0&&t%2===0&&e.includes(` 2183`)||(e.endsWith("```\n")||e.endsWith("```"))&&t%2===0)return e;let a=e.match(dDe);if(a&&!n){let r=a[2];if(!r||/^[\s_~*`]*$/.test(r))return e;if(wDe(e)%2===1)return`${e}\``}return e},NDe=e=>{let t=e.match(mDe);if(t){let n=t[2];if(!n||/^[\s_~*`]*$/.test(n))return e;if((e.match(/~~/g)||[]).length%2===1)return`${e}~~`}return e},kDe=e=>{if((e.match(/\$\$/g)||[]).length%2===0)return e;let t=e.indexOf("$$");return t!==-1&&e.indexOf(` 2184`,t)!==-1&&!e.endsWith(` 2185`)?`${e} 2186$$`:`${e}$$`},jDe=e=>{let t=0,n=e.match(/\*+/g)||[];for(let a of n){let r=a.length;r>=3&&(t+=Math.floor(r/3))}return t},ADe=e=>{if($6(e)||/^\*{4,}$/.test(e))return e;let t=e.match(cDe);if(t){let n=t[2];if(!n||/^[\s_~*`]*$/.test(n))return e;if(jDe(e)%2===1)return`${e}***`}return e},EDe=e=>{if(!e||typeof e!="string")return e;let t=e,n=pDe(t);return n.endsWith("](streamdown:incomplete-link)")?n:(t=n,t=ADe(t),t=hDe(t),t=fDe(t),t=xDe(t),t=vDe(t),t=TDe(t),t=NDe(t),t=kDe(t),t)},CDe={harden:[x9e,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],defaultOrigin:void 0,allowDataImages:!0}],raw:Q7e,katex:[BNe,{errorColor:"var(--color-muted-foreground)"}]},SDe={gfm:[r9e,{}],math:[g9e,{singleDollarTextMath:!1}]},EQ=k.createContext(["github-light","github-dark"]),CQ=k.createContext(void 0),qE=k.createContext(!0),dv=k.createContext({isAnimating:!1}),SQ=k.memo(({content:e,shouldParseIncompleteMarkdown:t,...n})=>{let a=k.useMemo(()=>typeof e=="string"&&t?EDe(e.trim()):e,[e,t]);return s.jsx(dwe,{...n,children:a})},(e,t)=>e.content===t.content);SQ.displayName="Block";var _Q=k.memo(({children:e,parseIncompleteMarkdown:t=!0,components:n,rehypePlugins:a=Object.values(CDe),remarkPlugins:r=Object.values(SDe),className:i,shikiTheme:o=["github-light","github-dark"],mermaidConfig:c,controls:l=!0,isAnimating:d=!1,...m})=>{let h=k.useId(),x=k.useMemo(()=>sDe(typeof e=="string"?e:""),[e]);return s.jsx(EQ.Provider,{value:o,children:s.jsx(CQ.Provider,{value:c,children:s.jsx(qE.Provider,{value:l,children:s.jsx(dv.Provider,{value:{isAnimating:d},children:s.jsx("div",{className:_a("space-y-4",i),children:x.map((f,b)=>s.jsx(SQ,{components:{...aDe,...n},content:f,rehypePlugins:a,remarkPlugins:r,shouldParseIncompleteMarkdown:t,...m},`${h}-block-${b}`))})})})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating);_Q.displayName="Streamdown";function _De({messages:e,onSendMessage:t,isLoading:n=!1,placeholder:a="Type your message...",className:r,height:i="600px",emptyStateMessage:o="Start a conversation with AI",suggestedPrompts:c}){const[l,d]=k.useState(""),m=k.useRef(null),h=k.useRef(null),x=k.useRef(null),f=k.useRef(null),b=e.filter(D=>D.role!=="system"),[y,w]=k.useState(0);k.useEffect(()=>{if(h.current&&x.current){const D=h.current.offsetHeight,S=x.current.offsetHeight,I=D-S-32-56;w(Math.max(0,I))}},[]);const T=()=>{const D=m.current?.querySelector("[data-radix-scroll-area-viewport]");D&&requestAnimationFrame(()=>{D.scrollTo({top:D.scrollHeight,behavior:"smooth"})})},A=D=>{D.preventDefault();const S=l.trim();!S||n||(t(S),d(""),T(),f.current?.focus())},E=D=>
2186{D.key==="Enter"&&!D.shiftKey&&(D.preventDefault(),A(D))};return s.jsxs("div",{"data-loc":"client/src/components/AIChatBox.tsx:191",ref:h,className:an("flex flex-col bg-card text-card-foreground rounded-lg border shadow-sm",r),style:{height:i},children:[s.jsx("div",{"data-loc":"client/src/components/AIChatBox.tsx:200",ref:m,className:"flex-1 overflow-hidden",children:b.length===0?s.jsx("div",{"data-loc":"client/src/components/AIChatBox.tsx:202",className:"flex h-full flex-col p-4",children:s.jsxs("div",{"data-loc":"client/src/components/AIChatBox.tsx:203",className:"flex flex-1 flex-col items-center justify-center gap-6 text-muted-foreground",children:[s.jsxs("div",{"data-loc":"client/src/components/AIChatBox.tsx:204",className:"flex flex-col items-center gap-3",children:[s.jsx(pr,{"data-loc":"client/src/components/AIChatBox.tsx:205",className:"size-12 opacity-20"}),s.jsx("p",{"data-loc":"client/src/components/AIChatBox.tsx:206",className:"text-sm",children:o})]}),c&&c.length>0&&s.jsx("div",{"data-loc":"client/src/components/AIChatBox.tsx:210",className:"flex max-w-2xl flex-wrap justify-center gap-2",children:c.map((D,S)=>s.jsx("button",{"data-loc":"client/src/components/AIChatBox.tsx:212",onClick:()=>t(D),disabled:n,className:"rounded-lg border border-border bg-card px-4 py-2 text-sm transition-colors hover:bg-accent disabled:cursor-not-allowed disabled:opacity-50",children:D},S))})]})}):s.jsx(EG,{"data-loc":"client/src/components/AIChatBox.tsx:226",className:"h-full",children:s.jsxs("div",{"data-loc":"client/src/components/AIChatBox.tsx:227",className:"flex flex-col space-y-4 p-4",children:[b.map((D,S)=>{const L=S===b.length-1&&!n&&y>0;return s.jsxs("div",{"data-loc":"client/src/components/AIChatBox.tsx:235",className:an("flex gap-3",D.role==="user"?"justify-end items-start":"justify-start items-start"),style:L?{minHeight:`${y}px`}:void 0,children:[D.role==="assistant"&&s.jsx("div",{"data-loc":"client/src/components/AIChatBox.tsx:250",className:"size-8 shrink-0 mt-1 rounded-full bg-primary/10 flex items-center justify-center",children:s.jsx(pr,{"data-loc":"client/src/components/AIChatBox.tsx:251",className:"size-4 text-primary"})}),s.jsx("div",{"data-loc":"client/src/components/AIChatBox.tsx:255",className:an("max-w-[80%] rounded-lg px-4 py-2.5",D.role==="user"?"bg-primary text-primary-foreground":"bg-muted text-foreground"),children:D.role==="assistant"?s.jsx("div",{"data-loc":"client/src/components/AIChatBox.tsx:264",className:"prose prose-sm dark:prose-invert max-w-none",children:s.jsx(_Q,{"data-loc":"client/src/components/AIChatBox.tsx:265",children:D.content})}):s.jsx("p",{"data-loc":"client/src/components/AIChatBox.tsx:268",className:"whitespace-pre-wrap text-sm",children:D.content})}),D.role==="user"&&s.jsx("div",{"data-loc":"client/src/components/AIChatBox.tsx:275",className:"size-8 shrink-0 mt-1 rounded-full bg-secondary flex items-center justify-center",children:s.jsx(Cie,{"data-loc":"client/src/components/AIChatBox.tsx:276",className:"size-4 text-secondary-foreground"})})]},S)}),n&&s.jsxs("div",{"data-loc":"client/src/components/AIChatBox.tsx:284",className:"flex items-start gap-3",style:y>0?{minHeight:`${y}px`}:void 0,children:[s.jsx("div",{"data-loc":"client/src/components/AIChatBox.tsx:292",className:"size-8 shrink-0 mt-1 rounded-full bg-primary/10 flex items-center justify-center",children:s.jsx(pr,{"data-loc":"client/src/components/AIChatBox.tsx:293",className:"size-4 text-primary"})}),s.jsx("div",{"data-loc":"client/src/components/AIChatBox.tsx:295",className:"rounded-lg bg-muted px-4 py-2.5",children:s.jsx(ft,{"data-loc":"client/src/components/AIChatBox.tsx:296",className:"size-4 animate-spin text-muted-foreground"})})]})]})})}),s.jsxs("form",{"data-loc":"client/src/components/AIChatBox.tsx:306",ref:x,onSubmit:A,className:"flex gap-2 p-4 border-t bg-background/50 items-end",children:[s.jsx(es,{"data-loc":"client/src/components/AIChatBox.tsx:311",ref:f,value:l,onChange:D=>d(D.target.value),onKeyDown:E,placeholder:a,className:"flex-1 max-h-32 resize-none min-h-9",rows:1}),s.jsx(Ie,{"data-loc":"client/src/components/AIChatBox.tsx:320",type:"submit",size:"icon",disabled:!l.trim()||n,className:"shrink-0 h-[38px] w-[38px]",children:n?s.jsx(ft,{"data-loc":"client/src/components/AIChatBox.tsx:327",className:"size-4 animate-spin"}):s.jsx(Zb,{"data-loc":"client/src/components/AIChatBox.tsx:329",className:"size-4"})})]})]})}const PDe=["Ù
ا ÙÙ Ø§ÙØ¨Ø±Ø§Ù
ج اÙÙ
ØªØ§ØØ© Ù٠ترÙÙØ§Ø","Ø£Ø±ÙØ¯ رØÙØ© عائÙÙØ©","ÙÙÙ Ø£ÙØ¯Ù
عÙÙ Ø§ÙØªØ£Ø´ÙرةØ","Ø£ØØªØ§Ø¬ Ù
ساعدة ÙÙ Ø§ÙØØ¬Ø²"],DDe=["What Turkey packages are available?","I need a family trip","How do I apply for a visa?","I need help with a booking"],RDe="962787789915",IDe="+962787789915";function MDe(e){return e.replace(/[*_`#]/g," ").replace(/\s+/g," ").trim()}function TB(e){return{role:"assistant",content:e?"Ø£ÙÙØ§ÙØ Ø£ÙØ§ **رØÙاÙ** Ù
Ù IBRIX.DIGITAL. أساعد٠ÙÙ Ø§ÙØªØ´Ø§Ù Ø§ÙØ¨Ø±Ø§Ù
ج اÙÙ
ÙØ´ÙØ±Ø©Ø ÙØ§Ùإرشاد Ø§ÙØ£ÙÙÙ ÙÙØªØ£Ø´ÙØ±Ø§ØªØ ÙØ§ÙÙØµÙÙ Ø§ÙØ³Ø±Ùع ÙÙØ¯Ø¹Ù
. ÙØ§ Ø£Ø¤ÙØ¯ ØØ¬Ø²Ø§Ù Ø£Ù Ù
ÙØ¹Ø¯Ø§Ù Ø£Ù ØªØ£Ø´ÙØ±Ø© Ù
٠اÙÙ
ØØ§Ø¯Ø«Ø©.":"Welcome, I am **Rahhal** from IBRIX.DIGITAL. I can help you discover published programs, understand initial visa guidance, and reach support quickly. I do n
2186ot confirm bookings, seats, or visas in chat."}}function LDe(){const{lang:e}=zs(),t=e==="ar",[n,a]=k.useState(()=>[TB(t)]),[r,i]=k.useState([]),[o,c]=k.useState([]),[l,d]=k.useState(!1),[m,h]=k.useState(!1),[x,f]=k.useState("idle"),[b,y]=k.useState(!1),w=k.useRef(null),T=I=>{if(!("speechSynthesis"in window))return;window.speechSynthesis.cancel();const F=new SpeechSynthesisUtterance(MDe(I));F.lang=t?"ar-JO":"en-US",F.rate=.96,F.pitch=1,window.speechSynthesis.speak(F)},A=()=>{w.current?.stop(),w.current=null,h(!1),"speechSynthesis"in window&&window.speechSynthesis.cancel(),f("idle")},E=Pe.rahhal.chat.useMutation({onSuccess:I=>{a(F=>[...F,{role:"assistant",content:I.reply}]),i(I.cards),c(I.sources??[]),d(I.handoff),b&&T(I.reply)},onError:()=>{a(I=>[...I,{role:"assistant",content:t?"تعذر Ø¥ÙÙ
Ø§Ù Ø§ÙØ±Ø¯ Ø§ÙØ¢Ù. ØªÙØ§ØµÙ Ù
ع ÙØ±ÙÙ IBRIX عبر ÙØ§ØªØ³Ø§Ø¨ Ø£Ù Ø§ÙØ¨Ø±Ùد Ø§ÙØ¸Ø§ÙرÙÙ Ø£Ø¯ÙØ§Ù.":"I could not complete that response now. Please contact IBRIX through WhatsApp or the support email below."}]),d(!0)}});k.useEffect(()=>{a([TB(t)]),i([]),c([]),d(!1)},[t]),k.useEffect(()=>()=>A(),[]);const D=I=>{const F=[...n,{role:"user",content:I}];a(F),i([]),c([]),d(!1),E.mutate({messages:F.flatMap(_=>_.role==="system"?[]:[{role:_.role,content:_.content}])})},S=()=>{const I=window.SpeechRecognition||window.webkitSpeechRecognition;if(!I){f("unsupported");return}try{const F=new I;F.lang=t?"ar-JO":"en-US",F.interimResults=!1,F.continuous=!1,F.onresult=_=>{const U=Array.from(_.results).slice(_.resultIndex).map(O=>O[0]?.transcript||"").join(" ").trim();U&&(D(U),f("sent"))},F.onerror=()=>f("error"),F.onend=()=>{w.current=null,h(!1)},w.current=F,f("listening"),h(!0),F.start()}catch{h(!1),f("error")}},R=`https://wa.me/${RDe}?text=${encodeURIComponent(t?"Ù
Ø±ØØ¨Ø§Ù IBRIXØ Ø£ØØªØ§Ø¬ Ù
تابعة Ù
٠رØÙاÙ.":"Hello IBRIX, I need a Rahhal follow-up.")}`,L=I=>t?{per_person:"ÙÙÙØ±Ø¯",per_room:"ÙÙØºØ±ÙØ©",per_package:"ÙÙØ¨Ø§ÙØ©"}[I]:{per_person:"per person",per_room:"per room",per_package:"per package"}[I];return s.jsxs("main",{"data-loc":"client/src/pages/Rahhal.tsx:183",className:"min-h-screen bg-[#fbf7f5] text-[#302333]",dir:t?"rtl":"ltr",children:[s.jsxs("section",{"data-loc":"client/src/pages/Rahhal.tsx:184",className:"relative overflow-hidden bg-[#2c212e] px-5 pb-24 pt-12 text-white sm:px-8",children:[s.jsx("div",{"data-loc":"client/src/pages/Rahhal.tsx:185",className:"absolute -end-28 -top-24 h-80 w-80 rounded-full bg-[#c9a96e]/20 blur-3xl"}),s.jsxs("div",{"data-loc":"client/src/pages/Rahhal.tsx:186",className:"relative mx-auto max-w-5xl",children:[s.jsxs(ls,{"data-loc":"client/src/pages/Rahhal.tsx:187",href:"/",className:"inline-flex items-center gap-2 text-sm text-white/70 transition hover:text-white",children:[s.jsx(dr,{"data-loc":"client/src/pages/Rahhal.tsx:187",className:`h-4 w-4 ${t?"":"rotate-180"}`}),t?"Ø§ÙØ¹Ùدة Ø¥ÙÙ IBRIX Travel":"Back to IBRIX Travel"]}),s.jsxs("div",{"data-loc":"client/src/pages/Rahhal.tsx:188",className:"mt-10 grid gap-8 md:grid-cols-[1fr_auto] md:items-end",children:[s.jsxs("div",{"data-loc":"client/src/pages/Rahhal.tsx:189",children:[s.jsxs("p",{"data-loc":"client/src/pages/Rahhal.tsx:190",className:"mb-3 inline-flex items-center gap-2 rounded-full border border-[#c9a96e]/40 bg-white/10 px-3 py-1 text-xs font-bold tracking-wide text-[#f4dfbd]",children:[s.jsx(pr,{"data-loc":"client/src/pages/Rahhal.tsx:190",className:"h-3.5 w-3.5"}),"IBRIX.DIGITAL"]}),s.jsx("h1",{"data-loc":"client/src/pages/Rahhal.tsx:191",className:"text-4xl font-black tracking-tight sm:text-5xl",children:t?"رØÙØ§Ù Ø§ÙØ°ÙÙ":"Rahhal AI"}),s.jsx("p",{"data-loc":"client/src/pages/Rahhal.tsx:192",className:"mt-4 max-w-2xl text-base leading-7 text-white/75",children:t?"Ù
ساعد Ø³ÙØ± Ù
Ù IBRIX ÙØ³ØªÙد Ø¥ÙÙ Ø§ÙØ¨Ø±Ø§Ù
ج اÙÙ
ÙØ´Ùرة ÙØ§ÙØ¨ÙØ§Ùات اÙÙ
عتÙ
دة ÙÙØ·.":"An IBRIX travel assistant grounded only in published programs and approved data."})]}),s.jsx("div",{"data-loc":"client/src/pages/Rahhal.tsx:194",className:"grid h-16 w-16 place-items-center rounded-3xl border border-[#c9a96e]/40 bg-[#c9a96e]/15 shadow-2xl",children:s.jsx(kk,{"data-loc":"client/src/pages/Rahhal.tsx:194",className:"h-8 w-8 text-[#f4dfbd]"})})]})]})]}),s.jsxs("section",{"data-loc":"client/src/pages/Rahhal.tsx:199",className:"relative mx-auto -mt-12 grid max-w-5xl gap-6 px-5 pb-16 sm:px-8 lg:grid-cols-[minmax(0,1fr)_260px]",children:[s.jsxs("div",{"data-loc":"client/src/pages/Rahhal.tsx:200",className:"rounded-3xl border border-[#e6d8cf] bg-white p-2 shadow-[0_20px_60px_rgba(44,33,46,.10)]",children:[s.jsxs("div",{"data-loc":"client/src/pages/Rahhal.tsx:201",className:"m-2 flex flex-wrap items-center justify-between gap-3 rounded-2xl border border-[#e6d8cf] bg-[#fbf7f5] px-4 py-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/Rahhal.tsx:202",className:"flex min-w-0 items-center gap-3",children:[s.jsx("span",{"data-loc":"client/src/pages/Rahhal.tsx:202",className:`grid h-10 w-10 shrink-0 place-items-center rounded-2xl ${m?"bg-rose-100 text-rose-700":"bg-[#2c212e] text-[#f4dfbd]"}`,children:s.jsx(vie,{"data-loc":"client/src/pages/Rahhal.tsx:202",className:`h-4 w-4 ${m?"animate-pulse":""}`})}),s.jsxs("div",{"data-loc":"client/src/pages/Rahhal.tsx:202",children:[s.jsx("p",{"data-loc":"client/src/pages/Rahhal.tsx:202",className:"text-sm font-bold",children:t?"ØªØØ¯Ø« Ù
ع رØÙاÙ":"Speak with Rahhal"}),s.jsx("p",{"data-loc":"client/src/pages/Rahhal.tsx:202",className:"text-xs text-[#6e5b6b]",children:x==="listening"?t?"رØÙØ§Ù ÙØ³ØªÙ
ع Ø§ÙØ¢Ùâ¦":"Rahhal is listeningâ¦":x==="sent"?t?"Ø£ÙØ±Ø³Ù ØµÙØªÙ ÙÙ
ØØ§Ø¯Ø«Ø© ÙØµÙØ©.":"Your voice was sent as text.":t?"ÙØ·Ùب إذ٠اÙÙ
ÙÙØ±ÙÙÙÙ ÙÙØ·Ø ÙØ§ ÙØÙØ¸ Ø§ÙØªØ³Ø¬ÙÙ.":"Uses microphone permission only; no recording is stored."})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/Rahhal.tsx:203",className:"flex flex-wrap items-center gap-2",children:[s.jsx(Ie,{"data-loc":"client/src/pages/Rahhal.tsx:203",type:"button",size:"sm",variant:m?"destructive":"outline",onClick:m?A:S,disabled:E.isPending,children:m?s.jsxs(s.Fragment,{children:[s.jsx(Nie,{"data-loc":"client/src/pages/Rahhal.tsx:203",className:"h-4 w-4"}),t?"Ø¥ÙÙØ§Ù":"Stop"]}):s.jsxs(s.Fragment,{children:[s.jsx(HU,{"data-loc":"client/src/pages/Rahhal.tsx:203",className:"h-4 w-4"}),t?"ابدأ ØµÙØªÙاÙ":"Start voice"]})}),s.jsx(Ie,{"data-loc":"client/src/pages/Rahhal.tsx:203",type:"button",size:"icon",variant:"ghost","aria-label":t?b?"Ø¥ÙÙØ§Ù اÙÙØ±Ø§Ø¡Ø© Ø§ÙØµÙØªÙØ©":"تشغÙ٠اÙÙØ±Ø§Ø¡Ø© Ø§ÙØµÙØªÙØ©":b?"Disable voice replies":"Enable voice replies",onClick:()=>{y(I=>!I),b&&A()},children:s.jsx(s.Fragment,{children:b?s.jsx(oA,{"data-loc":"client/src/pages/Rahhal.tsx:203",className:"h-4 w-4 text-[#9d7a40]"}):s.jsx(XU,{"data-loc":"client/src/pages/Rahhal.tsx:203",className:"h-4 w-4"})})})]})]}),x==="unsupported"&&s.jsxs("p",{"data-loc":"client/src/pages/Rahhal.tsx:205",className:"mx-4 mb-3 flex items-center gap-2 rounded-xl bg-amber-50 px-3 py-2 text-xs text-amber-900",children:[s.jsx(Yp,{"data-loc":"client/src/pages/Rahhal.tsx:205",className:"h-4 w-4 shrink-0"}),t?"Ù
ØªØµÙØÙ ÙØ§ ÙØ¯Ø¹Ù
تØÙÙ٠اÙÙÙØ§Ù
Ù
ØÙÙØ§Ù. Ø§ÙØªØ¨ Ø±Ø³Ø§ÙØªÙ Ø£Ù ØªÙØ§ØµÙ Ù
ع ÙØ±ÙÙ IBRIX.":"Your browser does not support local speech recognition. Type your message or contact IBRIX."]}),x==="error"&&s.jsxs("p",{"data-loc":"client/src/pages/Rahhal.tsx:206",className:"mx-4 mb-3 flex items-center gap-2 rounded-xl bg-rose-50 px-3 py-2 text-xs text-rose-900",children:[s.jsx(mie,{"data-loc":"client/src/pages/Rahhal.tsx:206",className:"h-4 w-4 shrink-0"}),t?"تعذر استخداÙ
اÙÙ
ÙÙØ±ÙÙÙÙ. تØÙÙ Ù
Ù Ø§ÙØ¥Ø°Ù Ø«Ù
أعد اÙÙ
ØØ§ÙÙØ©.":"We could not access the microphone. Check permission and try again."]}),s.jsx(_De,{"data-loc":"client/src/pages/Rahhal.tsx:207",messages:n,onSendMessage:D,isLoading:E.isPending,height:"min(68vh, 620px)",placeholder:t?"Ø§ÙØªØ¨ ÙØ¬Ùت٠أ٠ÙÙØ¹ Ø§ÙØ±ØÙØ©â¦":"Tell Rahhal your destination or trip typeâ¦",suggestedPrompts:t?[...PDe]:[...DDe]}),o.length>0&&s.jsxs("div",{"data-loc":"client/src/pages/Rahhal.tsx:216",className:"mx-4 mb-4 border-t border-[#e6d8cf] pt-3","aria-live":"polite",children:[s.jsxs("p",{"data-loc":"client/src/pages/Rahhal.tsx:217",className:"flex items-center gap-2 text-xs font-bold text-[#5b4356]",children:[s.jsx(Ck,{"data-loc":"client/src/pages/Rahhal.tsx:217",className:"h-3.5 w-3.5 text-[#9d7a40]"}),t?"Ù
صدر رد رØÙاÙ":"Rahhal answer source"]}),o.map((I,F)=>s.jsxs("p",{"data-loc":"client/src/pages/Rahhal.tsx:219",className:"mt-1 text-xs leading-5 text-[#6e5b6b]",children:[t?I.labelAr:I.labelEn,I.verifiedAt?` · ${t?"آخر Ù
راجعة":"Last verified"}: ${new Date(I.verifiedAt).toLocaleDateString(t?"ar-JO":"en-GB")}`:"",I.confidence?` · ${t?"Ø§ÙØØ§ÙØ©":"Status"}: ${I.confidence}`:""]},`${I.kind}-${F}`))]})]}),s.jsxs("aside",{"data-loc":"client/src/pages/Rahhal.tsx:229",className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/Rahhal.tsx:230",className:"rounded-3xl border border-[#e6d8cf] bg-white p-5 shadow-sm",children:[s.jsx(sa,{"data-loc":"client/src/pages/Rahhal.tsx:231",className:"h-6 w-6 text-[#9d7a40]"}),s.jsx("h2",{"data-loc":"client/src/pages/Rahhal.tsx:232",className:"mt-3 font-bold",children:t?"ØØ¯Ùد ÙØ§Ø¶ØØ©":"Clear boundaries"}),s.jsx("p",{"data-loc":"client/src/pages/Rahhal.tsx:233",className:"mt-2 text-sm leading-6 text-[#6e5b6b]",children:t?"Ø§ÙØ£Ø³Ø¹Ø§Ø± Ø¥Ø±Ø´Ø§Ø¯ÙØ© Ù
Ù Ø§ÙØ¨Ø±Ø§Ù
ج اÙÙ
ÙØ´Ùرة. Ø§ÙØªÙÙØ± ÙØ§ÙØØ¬Ø² ÙØ§ÙØªØ£Ø´ÙØ±Ø© ÙØ¤ÙØ¯ÙØ§ ÙØ±ÙÙ IBRIX.":"Prices are indicative from published programs. Availability, bookings, and visas are confirmed by IBRIX."})]}),s.jsxs("div",{"data-loc":"client/src/pages/Rahhal.tsx:235",className:"rounded-3xl bg-[#eaddd4] p-5",children:[s.jsx("p",{"data-loc":"client/src/pages/Rahhal.tsx:236",className:"text-sm font-bold",children:t?"ØªØØªØ§Ø¬ Ù
تابعة Ø¨Ø´Ø±ÙØ©Ø":"Need human follow-up?"}),s.jsx("p",{"data-loc":"client/src/pages/Rahhal.tsx:237",className:"mt-2 text-sm text-[#6e5b6b]",children:t?"ÙØ±ÙÙ IBRIX Ø¬Ø§ÙØ² ÙÙØØ¬ÙØ²Ø§Øª ÙØ§ÙتعدÙÙØ§Øª ÙØ§ÙØØ§Ùات Ø§ÙØ®Ø§ØµØ©.":"The IBRIX team handles bookings, changes, and special cases."}),s.jsx(Ie,{"data-loc":"client/src/pages/Rahhal.tsx:238",asChild:!0,className:"mt-4 w-full bg-[#25D366] text-[#10261a] hover:bg-[#20bb5a]",children:s.jsxs("a",{"data-loc":"client/src/pages/Rahhal.tsx:238",href:R,target:"_blank",rel:"noopener noreferrer",children:[s.jsx(Dd,{"data-loc":"client/src/pages/Rahhal.tsx:238",className:"h-4 w-4"}),t?"ÙØ§ØªØ³Ø§Ø¨ IBRIX":"IBRIX WhatsApp"]})}),s.jsx(Ie,{"data-loc":"client/src/pages/Rahhal.tsx:239",asChild:!0,variant:"outline",className:"mt-2 w-full border-[#c9a96e]/50 bg-white/45 text-[#2c212e] hover:bg-white",children:s.jsxs("a",{"data-loc":"client/src/pages/Rahhal.tsx:239",href:`tel:${IDe}`,children:[s.jsx($U,{"data-loc":"client/src/pages/Rahhal.tsx:239",className:"h-4 w-4"}),t?"Ø§ØªØµØ§Ù Ø¨ÙØ±ÙÙ IBRIX":"Call IBRIX team"]})}),s.jsxs("a",{"data-loc":"client/src/pages/Rahhal.tsx:240",className:"mt-3 inline-flex w-full items-center justify-center gap-2 text-sm font-semibold text-[#5b4356] hover:text-[#2c212e]",href:`mailto:${Oa.supportEmail}`,children:[s.jsx(O4,{"data-loc":"client/src/pages/Rahhal.tsx:240",className:"h-3.5 w-3.5"}),Oa.supportEmail]})]})]}),r.length>0&&s.jsxs("section",{"data-loc":"client/src/pages/Rahhal.tsx:245",className:"lg:col-span-2","aria-live":"polite",children:[s.jsx("h2",{"data-loc":"client/src/pages/Rahhal.tsx:246",className:"mb-3 text-lg font-black",children:t?"Ø®ÙØ§Ø±Ø§Øª Ù
ÙØ´Ùرة Ù
Ù IBRIX":"Published IBRIX options"}),s.jsx("div",{"data-loc":"client/src/pages/Rahhal.tsx:247",className:"grid gap-4 md:grid-cols-2",children:r.map(I=>s.jsxs("article",{"data-loc":"client/src/pages/Rahhal.tsx:249",className:"rounded-3xl border border-[#e6d8cf] bg-white p-5 shadow-sm",children:[s.jsx("p",{"data-loc":"client/src/pages/Rahhal.tsx:250",className:"text-xs font-bold uppercase tracking-[.14em] text-[#9d7a40]",children:t?I.cityAr||"Ø¨Ø±ÙØ§Ù
ج Ø³ÙØ±":I.cityEn||"Travel program"}),s.jsx("h3",{"data-loc":"client/src/pages/Rahhal.tsx:251",className:"mt-2 text-lg font-black",children:t?I.titleAr:I.titleEn}),s.jsxs("p",{"data-loc":"client/src/pages/Rahhal.tsx:252",className:"mt-3 text-sm text-[#6e5b6b]",children:[I.durationDays," ",t?"Ø£ÙØ§Ù
":"days"," · ",I.durationNights," ",t?"ÙÙØ§ÙÙ":"nights"]}),s.jsxs("p",{"data-loc":"client/src/pages/Rahhal.tsx:253",className:"mt-2 text-xl font-black text-[#2c212e]",children:[I.price.toLocaleStr
2186ing()," ",I.currency," ",s.jsx("span",{"data-loc":"client/src/pages/Rahhal.tsx:253",className:"text-xs font-semibold text-[#6e5b6b]",children:L(I.priceBasis)})]}),s.jsxs("p",{"data-loc":"client/src/pages/Rahhal.tsx:254",className:"mt-1 flex items-center gap-1.5 text-[11px] font-semibold text-[#7b5e31]",children:[s.jsx(Ck,{"data-loc":"client/src/pages/Rahhal.tsx:254",className:"h-3 w-3"}),t?"سعر Ø¨ÙØ¹ Ù
ÙØ´Ùر Ù
Ù ÙØ§Ø¹Ø¯Ø© Ø¨ÙØ§Ùات IBRIX":"Published sell-side price from the IBRIX database"]}),s.jsx("p",{"data-loc":"client/src/pages/Rahhal.tsx:255",className:"mt-2 text-xs text-[#6e5b6b]",children:I.ticketIncluded?t?"ÙØ´Ù
Ù Ø§ÙØªØ°Ùرة ÙÙÙ Ø§ÙØ¨Ø±ÙاÙ
ج اÙÙ
ÙØ´Ùر":"Ticket included per the published program":t?"Ø§ÙØªØ°Ùرة ÙØ§ تدخ٠ÙÙ Ø§ÙØ³Ø¹Ø± اÙÙ
ÙØ´Ùر":"Ticket is not included in the published price"}),s.jsx(ls,{"data-loc":"client/src/pages/Rahhal.tsx:256",href:`/packages/${I.slug}`,className:"mt-4 inline-flex text-sm font-bold text-[#7b5e31] hover:underline",children:t?"عرض Ø§ÙØªÙاصÙÙ":"View details"})]},I.slug))})]}),l&&s.jsx("p",{"data-loc":"client/src/pages/Rahhal.tsx:262",className:"lg:col-span-2 rounded-2xl border border-[#c9a96e]/40 bg-[#fff9ef] px-4 py-3 text-sm text-[#6e5b6b]",children:t?"ÙØ¶Ù
Ø§Ù Ø¯ÙØ© Ø§ÙØØ§ÙØ©Ø تÙ
ØªÙØ¬ÙÙ٠إÙÙ ÙÙØ§Ø© دعÙ
IBRIX Ø§ÙØ¨Ø´Ø±ÙØ©.":"For accuracy, please continue through the IBRIX human support channel."})]})]})}function ODe(){const{lang:e}=zs(),t=e==="ar",n=typeof window>"u"?"products":new URLSearchParams(window.location.search).get("module"),[a,r]=k.useState(tR(n).id),[i,o]=k.useState(!0),[c,l]=k.useState(t?"Ø¨Ø±ÙØ§Ù
ج شتاء عÙ
ÙØ§Ù":"Amman winter program"),d=tR(a),m=t?d.titleAr:d.titleEn,h=t?d.stepsAr:d.stepsEn;return k.useEffect(()=>l(t?"Ø¨Ø±ÙØ§Ù
ج شتاء عÙ
ÙØ§Ù":"Amman winter program"),[t]),s.jsxs("div",{"data-loc":"client/src/pages/B2BDemo.tsx:26",className:"min-h-screen bg-[#f7f0e9] text-[#2c212e]",dir:t?"rtl":"ltr",children:[s.jsx(io,{"data-loc":"client/src/pages/B2BDemo.tsx:27"}),s.jsx("main",{"data-loc":"client/src/pages/B2BDemo.tsx:28",className:"pb-20 pt-28 md:pt-36",children:s.jsxs("div",{"data-loc":"client/src/pages/B2BDemo.tsx:29",className:"container max-w-[1480px]",children:[s.jsxs("section",{"data-loc":"client/src/pages/B2BDemo.tsx:30",className:"overflow-hidden rounded-[2.2rem] bg-[#20141f] px-6 py-10 text-white shadow-[0_26px_90px_rgba(34,18,31,.25)] md:px-10 md:py-12",children:[s.jsxs("span",{"data-loc":"client/src/pages/B2BDemo.tsx:31",className:"inline-flex items-center gap-2 rounded-full border border-[#f6d67f]/35 bg-white/[.07] px-3 py-1 text-[10px] font-extrabold uppercase tracking-[.18em] text-[#f8df9d]",children:[s.jsx(qre,{"data-loc":"client/src/pages/B2BDemo.tsx:31",className:"h-3.5 w-3.5"}),t?"Ø§Ø³ØªÙØ¯Ù٠عرض B2B":"B2B demo studio"]}),s.jsxs("div",{"data-loc":"client/src/pages/B2BDemo.tsx:32",className:"mt-5 grid gap-7 lg:grid-cols-[1fr_auto] lg:items-end",children:[s.jsxs("div",{"data-loc":"client/src/pages/B2BDemo.tsx:32",children:[s.jsx("h1",{"data-loc":"client/src/pages/B2BDemo.tsx:32",className:"max-w-3xl font-display text-4xl font-semibold leading-[.95] md:text-6xl",children:t?"Ø¬Ø±ÙØ¨ اÙÙ
ÙØµØ© ÙÙ
ا ØªØ±Ø§ÙØ§ Ø´Ø±ÙØ© Ø³ÙØ§ØØ© â Ø¨Ùا Ù
خاطر.":"Try the platform as an agency sees it â safely."}),s.jsx("p",{"data-loc":"client/src/pages/B2BDemo.tsx:32",className:"mt-5 max-w-2xl text-sm leading-7 text-white/70 md:text-base",children:t?"ÙØ°Ù Ø¨ÙØ¦Ø© Ø¥Ø±Ø´Ø§Ø¯ÙØ© ÙÙØ¹Ø±Ø¶ ÙÙØ·. ÙØ§ ØªÙØ±Ø£ ØØ¬Ùزات أ٠عÙ
ÙØ§Ø¡ Ø£Ù ØªÙØ§ÙÙ٠أ٠أرصدة ØÙÙÙÙØ©Ø ÙÙØ§ ØªÙØ´Ø¦ Ø£Ù ØªÙØ´Ø± Ø£Ù Ø¨ÙØ§Ùات.":"This is a guided presentation environment only. It never reads real bookings, customers, costs, or balances, and it cannot create or publish data."})]}),s.jsxs("span",{"data-loc":"client/src/pages/B2BDemo.tsx:32",className:"inline-flex items-center gap-2 self-start rounded-2xl border border-emerald-300/25 bg-emerald-300/[.08] px-4 py-3 text-sm font-bold text-emerald-100",children:[s.jsx(gu,{"data-loc":"client/src/pages/B2BDemo.tsx:32",className:"h-4 w-4"}),t?"ÙØ±Ø§Ø¡Ø© ÙØªØ¬Ø±Ø¨Ø© Ø¢Ù
ÙØ© ÙÙØ·":"Safe, read-only simulation"]})]})]}),s.jsxs("section",{"data-loc":"client/src/pages/B2BDemo.tsx:35",className:"mt-8 grid gap-6 lg:grid-cols-[260px_minmax(0,1fr)]",children:[s.jsxs("aside",{"data-loc":"client/src/pages/B2BDemo.tsx:36",className:"rounded-[1.75rem] border border-[#2c212e]/10 bg-white p-3 shadow-[0_18px_45px_rgba(62,42,54,.08)
2186]",children:[s.jsx("p",{"data-loc":"client/src/pages/B2BDemo.tsx:36",className:"px-3 pb-3 pt-2 text-[10px] font-extrabold uppercase tracking-[.18em] text-[#8b692f]",children:t?"Ù
ØØ·Ø§Øª Ø§ÙØªØ¬Ø±Ø¨Ø©":"Explore modules"}),s.jsx("div",{"data-loc":"client/src/pages/B2BDemo.tsx:36",className:"grid gap-1.5",children:o2.map(x=>s.jsx("button",{"data-loc":"client/src/pages/B2BDemo.tsx:36",type:"button",onClick:()=>r(x.id),className:`rounded-xl px-3 py-3 text-start text-sm font-bold transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#8b692f] ${a===x.id?"bg-[#2c212e] text-[#f8df9d] shadow":"text-[#4e3a4a] hover:bg-[#f7f0e9]"}`,children:t?x.titleAr:x.titleEn},x.id))}),s.jsxs(ls,{"data-loc":"client/src/pages/B2BDemo.tsx:36",href:"/admin",className:"mt-4 flex items-center justify-center gap-2 rounded-xl border border-[#c9a96e]/40 px-3 py-3 text-xs font-bold text-[#7b5e31] hover:bg-[#fff7e6]",children:[s.jsx(gu,{"data-loc":"client/src/pages/B2BDemo.tsx:36",className:"h-3.5 w-3.5"}),t?"دخÙÙ Ø§ÙØ¥Ø¯Ø§Ø±Ø© اÙÙØ¹ÙÙØ©":"Open real admin"]})]}),s.jsxs("div",{"data-loc":"client/src/pages/B2BDemo.tsx:38",className:"grid gap-6 xl:grid-cols-[minmax(0,1fr)_330px]",children:[s.jsxs("section",{"data-loc":"client/src/pages/B2BDemo.tsx:39",className:"rounded-[1.75rem] border border-[#2c212e]/10 bg-white p-6 shadow-[0_18px_45px_rgba(62,42,54,.08)] md:p-8",children:[s.jsxs("div",{"data-loc":"client/src/pages/B2BDemo.tsx:39",className:"flex flex-wrap items-start justify-between gap-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/B2BDemo.tsx:39",children:[s.jsx("p",{"data-loc":"client/src/pages/B2BDemo.tsx:39",className:"text-[10px] font-extrabold uppercase tracking-[.18em] text-[#8b692f]",children:t?"Ù
ا Ø§ÙØ°Ù ØªØ¶Ø¨Ø·ÙØ":"What do you configure?"}),s.jsx("h2",{"data-loc":"client/src/pages/B2BDemo.tsx:39",className:"mt-2 font-display text-3xl font-semibold",children:m})]}),s.jsxs("span",{"data-loc":"client/src/pages/B2BDemo.tsx:39",className:"inline-flex items-center gap-2 rounded-full bg-[#f7f0e9] px-3 py-1.5 text-xs font-bold text-[#70526a]",children:[s.jsx(vx,{"data-loc":"client/src/pages/B2BDemo.tsx:39",className:"h-3.5 w-3.5"}),t?d.adminAreaAr:d.adminAreaEn]})]}),s.jsx("ol",{"data-loc":"client/src/pages/B2BDemo.tsx:39",className:"mt-7 space-y-4",children:h.map((x,f)=>s.jsxs("li",{"data-loc":"client/src/pages/B2BDemo.tsx:39",className:"flex items-start gap-3 text-sm leading-6 text-[#4e3a4a]",children:[s.jsx("span",{"data-loc":"client/src/pages/B2BDemo.tsx:39",className:"grid h-7 w-7 shrink-0 place-items-center rounded-lg bg-[#2c212e] text-xs font-extrabold text-[#f6d67f]",children:f+1}),s.jsx("span",{"data-loc":"client/src/pages/B2BDemo.tsx:39",children:x})]},x))}),s.jsxs("div",{"data-loc":"client/src/pages/B2BDemo.tsx:39",className:"mt-8 rounded-2xl border border-emerald-800/10 bg-emerald-50 p-5",children:[s.jsxs("p",{"data-loc":"client/src/pages/B2BDemo.tsx:39",className:"flex items-center gap-2 text-sm font-bold text-emerald-950",children:[s.jsx(yu,{"data-loc":"client/src/pages/B2BDemo.tsx:39",className:"h-4 w-4"}),t?"Ù
ا ØªØ±Ø§Ù Ø§ÙØ´Ø±ÙØ© Ù٠اÙÙÙØ§ÙØ©":"What the agency sees"]}),s.jsx("p",{"data-loc":"client/src/pages/B2BDemo.tsx:39",className:"mt-2 text-sm leading-6 text-emerald-900",children:t?d.outcomeAr:d.outcomeEn})]})]}),s.jsxs("aside",{"data-loc":"client/src/pages/B2BDemo.tsx:41",className:"rounded-[1.75rem] border border-[#2c212e]/10 bg-[#fffaf6] p-5 shadow-[0_18px_45px_rgba(62,42,54,.08)]",children:[s.jsx("p",{"data-loc":"client/src/pages/B2BDemo.tsx:41",className:"text-[10px] font-extrabold uppercase tracking-[.18em] text-[#8b692f]",children:t?"Ù
ØØ§Ùاة Ø§ÙØ¶Ø¨Ø·":"Configuration simulation"}),s.jsx("p",{"data-loc":"client/src/pages/B2BDemo.tsx:41",className:"mt-2 text-sm leading-6 text-[#6e5b6b]",children:t?"ÙØ°Ù Ø§ÙØ¹Ùاصر ØªØºÙØ± اÙÙ
عاÙÙØ© Ø£Ø¯ÙØ§Ù ÙÙØ· ÙÙØ§ تØÙظ Ø´ÙØ¦Ø§Ù.":"These controls only change the preview below; nothing is saved."}),s.jsxs("label",{"data-loc":"client/src/pages/B2BDemo.tsx:41",className:"mt-5 block text-xs font-bold text-[#4e3a4a]",children:[t?"عÙÙØ§Ù Ø§ÙØ¨Ø·Ø§ÙØ©":"Card title",s.jsx(Ee,{"data-loc":"client/src/pages/B2BDemo.tsx:41",value:c,onChange:x=>l(x.target.value),className:"mt-2 border-[#c9a96e]/35 bg-white"})]}),s.jsxs("div",{"data-loc":"client/src/pages/B2BDemo.tsx:41",className:"mt-5 flex items-center justify-between gap-4 roun
2186ded-xl border border-[#2c212e]/10 bg-white p-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/B2BDemo.tsx:41",children:[s.jsx("p",{"data-loc":"client/src/pages/B2BDemo.tsx:41",className:"text-sm font-bold",children:t?"Ø¥Ø¸ÙØ§Ø± Ø§ÙØ¨Ø·Ø§ÙØ©":"Show card"}),s.jsx("p",{"data-loc":"client/src/pages/B2BDemo.tsx:41",className:"text-xs text-[#6e5b6b]",children:t?"ÙÙÙ
عاÙÙØ© ÙÙØ·":"Preview only"})]}),s.jsx(C0,{"data-loc":"client/src/pages/B2BDemo.tsx:41",checked:i,onCheckedChange:o,"aria-label":t?"Ø¥Ø¸ÙØ§Ø± Ø§ÙØ¨Ø·Ø§ÙØ© Ù٠اÙÙ
عاÙÙØ©":"Show card in preview"})]}),s.jsxs("div",{"data-loc":"client/src/pages/B2BDemo.tsx:41",className:"mt-5 overflow-hidden rounded-2xl border border-[#2c212e]/10 bg-[#2c212e] p-4 text-white",children:[s.jsxs("p",{"data-loc":"client/src/pages/B2BDemo.tsx:41",className:"flex items-center gap-2 text-[10px] font-extrabold uppercase tracking-[.16em] text-[#f8df9d]",children:[s.jsx(Gi,{"data-loc":"client/src/pages/B2BDemo.tsx:41",className:"h-3.5 w-3.5"}),t?"Ù
عاÙÙØ© Ø¨ÙØ§Ø¨Ø© Ø§ÙØ´Ø±ÙØ©":"Agency portal preview"]}),i?s.jsxs(s.Fragment,{children:[s.jsx("p",{"data-loc":"client/src/pages/B2BDemo.tsx:41",className:"mt-5 font-display text-xl",children:c||(t?"عÙÙØ§Ù Ø¨Ø±ÙØ§Ù
جÙ":"Your program title")}),s.jsx("p",{"data-loc":"client/src/pages/B2BDemo.tsx:41",className:"mt-2 text-xs leading-5 text-white/65",children:t?d.shortAr:d.shortEn}),s.jsxs("span",{"data-loc":"client/src/pages/B2BDemo.tsx:41",className:"mt-5 inline-flex items-center gap-1.5 text-xs font-bold text-[#f8df9d]",children:[t?"Ù
راجعة ÙØ§Ø¹ØªÙ
اد ÙØ¨Ù Ø§ÙØªØ£ÙÙØ¯":"Review and approval before confirmation",s.jsx(ch,{"data-loc":"client/src/pages/B2BDemo.tsx:41",className:"h-3.5 w-3.5 rtl:-scale-x-100"})]})]}):s.jsxs("p",{"data-loc":"client/src/pages/B2BDemo.tsx:41",className:"mt-5 flex items-center gap-2 text-sm text-white/65",children:[s.jsx(sa,{"data-loc":"client/src/pages/B2BDemo.tsx:41",className:"h-4 w-4"}),t?"Ø§ÙØ¨Ø·Ø§ÙØ© Ù
Ø®ÙÙØ© Ù٠اÙÙ
عاÙÙØ©.":"The card is hidden in this preview."]})]}),s.jsxs(Ie,{"data-loc":"client/src/pages/B2BDemo.tsx:41",type:"button",disabled:!0,className:"mt-5 w-full rounded-xl bg-[#c9a96e] text-[#2c212e] opacity-100 disabled:opacity-80",children:[s.jsx(ns,{"data-loc":"client/src/pages/B2BDemo.tsx:41",className:"h-4 w-4"}),t?"Ù
ØØ§Ùاة ÙÙØ· â ÙØ§ ØÙظ":"Simulation only â no save"]})]})]})]})]})}),s.jsx(oo,{"data-loc":"client/src/pages/B2BDemo.tsx:46"})]})}function NB(){const{lang:e}=zs();return s.jsxs("div",{"data-loc":"client/src/pages/NotFound.tsx:14",className:"min-h-screen flex flex-col",children:[s.jsx(io,{"data-loc":"client/src/pages/NotFound.tsx:15"}),s.jsx("main",{"data-loc":"client/src/pages/NotFound.tsx:16",className:"flex-1 flex items-center justify-center pt-32 pb-20",children:s.jsxs("div",{"data-loc":"client/src/pages/NotFound.tsx:17",className:"text-center",children:[s.jsx("h1",{"data-loc":"client/src/pages/NotFound.tsx:18",className:"font-display font-bold text-8xl text-[#C9A961] mb-4",children:"404"}),s.jsx("h2",{"data-loc":"client/src/pages/NotFound.tsx:19",className:"font-display font-bold text-3xl text-foreground mb-4",children:e==="ar"?"Ø§ÙØµÙØØ© ØºÙØ± Ù
ÙØ¬Ùدة":"Page Not Found"}),s.jsx("p",{"data-loc":"client/src/pages/NotFound.tsx:22",className:"text-muted-foreground mb-8 max-w-md mx-auto",children:e==="ar"?"Ø¹Ø°Ø±Ø§ÙØ Ø§ÙØµÙØØ© Ø§ÙØªÙ ØªØ¨ØØ« عÙÙØ§ ØºÙØ± Ù
ÙØ¬Ùدة. ÙØ¯ تÙÙÙ ÙØ¯ ÙÙÙÙØª Ø£Ù ØÙØ°ÙØª.":"Sorry, the page you're looking for doesn't exist. It may have been moved or deleted."}),s.jsxs(ls,{"data-loc":"client/src/pages/NotFound.tsx:28",href:"/",className:"inline-flex items-center gap-2 px-6 py-3 rounded-full bg-[#C9A961] text-white font-semibold text-sm hover:bg-[#9A7209] transition-colors",children:[e==="ar"?"Ø§ÙØ¹Ùدة ÙÙØ±Ø¦ÙØ³ÙØ©":"Back to Home",s.jsx(dr,{"data-loc":"client/src/pages/NotFound.tsx:33",className:"w-4 h-4"})]})]})}),s.jsx(oo,{"data-loc":"client/src/pages/NotFound.tsx:37"})]})}function BDe(){return s.jsxs(Pre,{"data-loc":"client/src/App.tsx:36",children:[s.jsx(ri,{"data-loc":"client/src/App.tsx:37",path:"/",component:spe}),s.jsx(ri,{"data-loc":"client/src/App.tsx:38",path:"/destinations",component:ype}),s.jsx(ri,{"data-loc":"client/src/App.tsx:39",path:"/jordan-hotels",component:o5e}),s.jsx(ri,{"data-loc":"client/src/App.tsx:40",path:"/rahhal",component:LDe}),s.jsx(ri,{"data-loc":"client/src/App.tsx:41",path:"/b2b-demo",component:ODe}),s.jsx(ri,{"data-loc":"client/src/App.tsx:42",path:"/packages/:slug",component:pxe}),s.jsx(ri,{"data-loc":"client/src/App.tsx:43",path:"/umrah",component:Oxe}),s.jsx(ri,{"data-loc":"client/src/App.tsx:44",path:"/umrah/programs/:group",component:zxe}),s.jsx(ri,{"data-loc":"client/src/App.tsx:45",path:"/services",component:qxe}),s.jsx(ri,{"data-loc":"client/src/App.tsx:46",path:"/about",component:Jxe}),s.jsx(ri,{"data-loc":"client/src/App.tsx:47",path:"/contact",component:Qxe}),s.jsx(ri,{"data-loc":"client/src/App.tsx:48",path:"/booking",component:r5e}),s.jsx(ri,{"data-loc":"client/src/App.tsx:49",path:"/accounting",component:n5e}),s.jsx(ri,{"data-loc":"client/src/App.tsx:50",path:"/staff/packages",component:CM}),s.jsx(ri,{"data-loc":"client/src/App.tsx:51",path:"/staff",component:CM}),s.jsx(ri,{"data-loc":"client/src/App.tsx:52",path:"/admin",component:Iye}),s.jsx(ri,{"data-loc":"client/src/App.tsx:53",path:"/visa",component:Xye}),s.jsx(ri,{"data-loc":"client/src/App.tsx:54",path:"/agent",component:Kye}),s.jsx(ri,{"data-loc":"client/src/App.tsx:55",path:"/404",component:NB}),s.jsx(ri,{"data-loc":"client/src/App.tsx:56",component:NB})]})}function FDe(){const[e]=_U(),t=e.startsWith("/packages/")&&typeof window<"u"&&new URLSearchParams(window.location.search).get("staffView")==="1",n=e==="/accounting"||e.startsWith("/accounting?")||e==="/staff"||e.startsWith("/staff/")||e.startsWith("/staff?")||t;return s.jsx(Sie,{"data-loc":"client/src/App.tsx:76",children:s.jsx(Uoe,{"data-loc":"client/src/App.tsx:77",switchable:!0,children:s.jsx(_ie,{"data-loc":"client/src/App.tsx:78",children:s.jsxs(Yj,{"data-loc":"client/src/App.tsx:79",children:[s.jsx(fne,{"data-loc":"client/src/App.tsx:80"}),s.jsx(Rie,{"data-loc":"client/src/App.tsx:81"}),!n&&s.jsx(Die,{"data-loc":"client/src/App.tsx:82"}),!n&&s.jsx(Boe,{"data-loc":"client/src/App.tsx:83"}),s.jsx(BDe,{"data-loc":"client/src/App.tsx:84"})]})})})})}const UDe=()=>
2186{const e="https://manus.im",t="3FcCkt3WWTvqcnxr5YRECc",n=`${window.location.origin}/api/oauth/callback`,a=btoa(n),r=new URL(`${e}/app-auth`);return r.searchParams.set("appId",t),r.searchParams.set("redirectUri",n),r.searchParams.set("state",a),r.searchParams.set("type","signIn"),r.toString()},b4=new fZ({defaultOptions:{queries:{staleTime:3e4,refetchOnWindowFocus:!1,refetchOnReconnect:!0,retry:2,retryDelay:e=>Math.min(1e3*2**e,4e3)}}}),PQ=e=>{!(e instanceof P0)||typeof window>"u"||!(e.message===Kee)||(window.location.href=UDe())};b4.getQueryCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.query.state.error;PQ(t),console.error("[API Query Error]",t)}});b4.getMutationCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.mutation.state.error;PQ(t),console.error("[API Mutation Error]",t)}});const kB=(e,t)=>globalThis.fetch(e,{...t??{},credentials:"include"}),HDe=Pe.createClient({links:[cee({condition:e=>e.path==="packages.contentVersion",true:Nee({url:"/api/trpc",transformer:Ad,fetch:kB}),false:jee({url:"/api/trpc",transformer:Ad,fetch:kB})})]});ste.createRoot(document.getElementById("root")).render(s.jsx(Pe.Provider,{"data-loc":"client/src/main.tsx:83",client:HDe,queryClient:b4,children:s.jsx(xZ,{"data-loc":"client/src/main.tsx:84",client:b4,children:s.jsx(FDe,{"data-loc":"client/src/main.tsx:85"})})}));export{xs as _,we as a,QDe as b,VDe as c,v4 as g,Ns as k};
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.