quasar-ui-danx 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/danx.es.js +12797 -8181
- package/dist/danx.es.js.map +1 -1
- package/dist/danx.umd.js +192 -120
- package/dist/danx.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +8 -1
- package/src/components/Utility/Code/CodeViewer.vue +31 -14
- package/src/components/Utility/Code/CodeViewerCollapsed.vue +2 -0
- package/src/components/Utility/Code/CodeViewerFooter.vue +1 -1
- package/src/components/Utility/Code/LanguageBadge.vue +278 -5
- package/src/components/Utility/Code/index.ts +3 -0
- package/src/components/Utility/Markdown/ContextMenu.vue +314 -0
- package/src/components/Utility/Markdown/HotkeyHelpPopover.vue +259 -0
- package/src/components/Utility/Markdown/LineTypeMenu.vue +226 -0
- package/src/components/Utility/Markdown/LinkPopover.vue +331 -0
- package/src/components/Utility/Markdown/MarkdownEditor.vue +228 -0
- package/src/components/Utility/Markdown/MarkdownEditorContent.vue +235 -0
- package/src/components/Utility/Markdown/MarkdownEditorFooter.vue +50 -0
- package/src/components/Utility/Markdown/TablePopover.vue +420 -0
- package/src/components/Utility/Markdown/index.ts +11 -0
- package/src/components/Utility/Markdown/types.ts +27 -0
- package/src/components/Utility/index.ts +1 -0
- package/src/composables/index.ts +1 -0
- package/src/composables/markdown/features/useBlockquotes.spec.ts +428 -0
- package/src/composables/markdown/features/useBlockquotes.ts +248 -0
- package/src/composables/markdown/features/useCodeBlockManager.ts +369 -0
- package/src/composables/markdown/features/useCodeBlocks.spec.ts +779 -0
- package/src/composables/markdown/features/useCodeBlocks.ts +774 -0
- package/src/composables/markdown/features/useContextMenu.ts +444 -0
- package/src/composables/markdown/features/useFocusTracking.ts +116 -0
- package/src/composables/markdown/features/useHeadings.spec.ts +834 -0
- package/src/composables/markdown/features/useHeadings.ts +290 -0
- package/src/composables/markdown/features/useInlineFormatting.spec.ts +705 -0
- package/src/composables/markdown/features/useInlineFormatting.ts +402 -0
- package/src/composables/markdown/features/useLineTypeMenu.ts +285 -0
- package/src/composables/markdown/features/useLinks.spec.ts +369 -0
- package/src/composables/markdown/features/useLinks.ts +374 -0
- package/src/composables/markdown/features/useLists.spec.ts +834 -0
- package/src/composables/markdown/features/useLists.ts +747 -0
- package/src/composables/markdown/features/usePopoverManager.ts +181 -0
- package/src/composables/markdown/features/useTables.spec.ts +1601 -0
- package/src/composables/markdown/features/useTables.ts +1107 -0
- package/src/composables/markdown/index.ts +16 -0
- package/src/composables/markdown/useMarkdownEditor.spec.ts +332 -0
- package/src/composables/markdown/useMarkdownEditor.ts +1068 -0
- package/src/composables/markdown/useMarkdownHotkeys.spec.ts +791 -0
- package/src/composables/markdown/useMarkdownHotkeys.ts +266 -0
- package/src/composables/markdown/useMarkdownSelection.ts +219 -0
- package/src/composables/markdown/useMarkdownSync.ts +549 -0
- package/src/composables/useCodeViewerEditor.spec.ts +655 -0
- package/src/composables/useCodeViewerEditor.ts +174 -20
- package/src/helpers/formats/markdown/htmlToMarkdown/convertHeadings.ts +41 -0
- package/src/helpers/formats/markdown/htmlToMarkdown/index.spec.ts +489 -0
- package/src/helpers/formats/markdown/htmlToMarkdown/index.ts +412 -0
- package/src/helpers/formats/markdown/index.ts +7 -0
- package/src/helpers/formats/markdown/linePatterns.spec.ts +495 -0
- package/src/helpers/formats/markdown/linePatterns.ts +172 -0
- package/src/test/helpers/editorTestUtils.spec.ts +296 -0
- package/src/test/helpers/editorTestUtils.ts +253 -0
- package/src/test/helpers/index.ts +1 -0
- package/src/test/setup.test.ts +12 -0
- package/src/test/setup.ts +12 -0
- package/vitest.config.ts +19 -0
package/dist/danx.umd.js
CHANGED
|
@@ -1,149 +1,221 @@
|
|
|
1
|
-
(function(x,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("quasar")):typeof define=="function"&&define.amd?define(["exports","vue","quasar"],o):(x=typeof globalThis<"u"?globalThis:x||self,o(x.Danx={},x.Vue,x.Quasar))})(this,function(x,o,ce){"use strict";const te=o.shallowRef({tinyMceApiKey:"set-api-key-in-danx-options",router:void 0,request:{baseUrl:"",headers:{},onUnauthorized:void 0},fileUpload:{directory:"file-upload",createPresignedUpload:null,completePresignedUpload:null,refreshFile:null},flashMessages:{default:{},success:{},warning:{},error:{}}});function g1(t){te.value={...te.value,...t,fileUpload:{...te.value.fileUpload,...t.fileUpload},flashMessages:{...te.value.flashMessages,...t.flashMessages},request:{...te.value.request,...t.request}}}function b1(t){return o.getCurrentScope()?(o.onScopeDispose(t),!0):!1}function Tc(t){return typeof t=="function"?t():o.unref(t)}const y1=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Bc=()=>{};function w1(t,e){function n(...r){return new Promise((s,i)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(s).catch(i)})}return n}function k1(t,e={}){let n,r,s=Bc;const i=a=>{clearTimeout(a),s(),s=Bc};return a=>{const c=Tc(t),u=Tc(e.maxWait);return n&&i(n),c<=0||u!==void 0&&u<=0?(r&&(i(r),r=null),Promise.resolve(a())):new Promise((d,f)=>{s=e.rejectOnCancel?f:d,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,d(a())},u)),n=setTimeout(()=>{r&&i(r),r=null,d(a())},c)})}}function qt(t,e=200,n={}){return w1(k1(e,n),t)}const x1=y1?window.navigator:void 0;function C1(){const t=o.ref(!1),e=o.getCurrentInstance();return e&&o.onMounted(()=>{t.value=!0},e),t}function S1(t){const e=C1();return o.computed(()=>(e.value,!!t()))}function E1(t={}){const{enableHighAccuracy:e=!0,maximumAge:n=3e4,timeout:r=27e3,navigator:s=x1,immediate:i=!0}=t,l=S1(()=>s&&"geolocation"in s),a=o.ref(null),c=o.shallowRef(null),u=o.ref({accuracy:0,latitude:Number.POSITIVE_INFINITY,longitude:Number.POSITIVE_INFINITY,altitude:null,altitudeAccuracy:null,heading:null,speed:null});function d(g){a.value=g.timestamp,u.value=g.coords,c.value=null}let f;function h(){l.value&&(f=s.geolocation.watchPosition(d,g=>c.value=g,{enableHighAccuracy:e,maximumAge:n,timeout:r}))}i&&h();function _(){f&&s&&s.geolocation.clearWatch(f)}return b1(()=>{_()}),{isSupported:l,coords:u,locatedAt:a,error:c,resume:h,pause:_}}const T1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function B1(t,e){return o.openBlock(),o.createElementBlock("svg",T1,e[0]||(e[0]=[o.createElementVNode("path",{d:"M386.3 160H336c-17.7 0-32 14.3-32 32s14.3 32 32 32h128c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v51.2l-17.6-17.6c-87.5-87.5-229.3-87.5-316.8 0s-87.5 229.3 0 316.8 229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3 163.8-62.5 226.3 0z"},null,-1)]))}const N1={render:B1},I1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function $1(t,e){return o.openBlock(),o.createElementBlock("svg",I1,e[0]||(e[0]=[o.createElementVNode("path",{d:"M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8 62.5-62.5 163.8-62.5 226.3 0l17.1 17.2H352c-17.7 0-32 14.3-32 32s14.3 32 32 32h111.9c17.7 0 32-14.3 32-32V80c0-17.7-14.3-32-32-32s-32 14.3-32 32v35.2l-17.5-17.6c-87.5-87.5-229.3-87.5-316.8 0-24.4 24.4-42 53.1-52.8 83.8-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2-4 4-6.7 8.8-8.1 14-.3 1.2-.6 2.5-.8 3.8-.3 1.7-.4 3.4-.4 5.1V432c0 17.7 14.3 32 32 32s32-14.3 32-32v-35.1l17.6 17.5c87.5 87.4 229.3 87.4 316.7 0 24.4-24.4 42.1-53.1 52.9-83.7 5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8-62.5 62.5-163.8 62.5-226.3 0l-.1-.1-17.1-17.1H160c17.7 0 32-14.3 32-32s-14.3-32-32-32H48.4q-2.4 0-4.8.3c-2.4.3-3.1.5-4.6 1"},null,-1)]))}const F1={render:$1},A1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function D1(t,e){return o.openBlock(),o.createElementBlock("svg",A1,e[0]||(e[0]=[o.createElementVNode("path",{d:"M459.5 440.6c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29V96c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4L288 214.3v83.4zM256 352V96c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4l-192 160C4.2 237.5 0 246.5 0 256s4.2 18.5 11.5 24.6l192 160c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29z"},null,-1)]))}const O1={render:D1},M1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function V1(t,e){return o.openBlock(),o.createElementBlock("svg",M1,e[0]||(e[0]=[o.createElementVNode("path",{d:"M24 32C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24zm88 0c-8.8 0-16 7.2-16 16v416c0 8.8 7.2 16 16 16s16-7.2 16-16V48c0-8.8-7.2-16-16-16m72 0c-13.3 0-24 10.7-24 24v400c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24zm96 0c-13.3 0-24 10.7-24 24v400c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24zm168 24v400c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-16c-13.3 0-24 10.7-24 24m-64-8v416c0 8.8 7.2 16 16 16s16-7.2 16-16V48c0-8.8-7.2-16-16-16s-16 7.2-16 16"},null,-1)]))}const Nc={render:V1},L1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function P1(t,e){return o.openBlock(),o.createElementBlock("svg",L1,e[0]||(e[0]=[o.createElementVNode("path",{d:"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7l233.4-233.3c12.5-12.5 32.8-12.5 45.3 0z"},null,-1)]))}const ki={render:P1},v1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function R1(t,e){return o.openBlock(),o.createElementBlock("svg",v1,e[0]||(e[0]=[o.createElementVNode("path",{d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"},null,-1)]))}const U1={render:R1},z1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 320 512"};function q1(t,e){return o.openBlock(),o.createElementBlock("svg",z1,e[0]||(e[0]=[o.createElementVNode("path",{d:"M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"},null,-1)]))}const H1={render:q1},j1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function G1(t,e){return o.openBlock(),o.createElementBlock("svg",j1,e[0]||(e[0]=[o.createElementVNode("path",{d:"M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512m113-303L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"},null,-1)]))}const W1={render:G1},Z1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function Y1(t,e){return o.openBlock(),o.createElementBlock("svg",Z1,e[0]||(e[0]=[o.createElementVNode("path",{d:"M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512m-81-337c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9"},null,-1)]))}const Ic={render:Y1},Q1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function K1(t,e){return o.openBlock(),o.createElementBlock("svg",Q1,e[0]||(e[0]=[o.createElementVNode("path",{d:"M256 0a256 256 0 1 1 0 512 256 256 0 1 1 0-512m-24 120v136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24"},null,-1)]))}const X1={render:K1},J1={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function ep(t,e){return o.openBlock(),o.createElementBlock("svg",J1,e[0]||(e[0]=[o.createElementVNode("path",{d:"M80 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48m32.4 97.2c28-12.4 47.6-40.5 47.6-73.2 0-44.2-35.8-80-80-80S0 35.8 0 80c0 32.8 19.7 61 48 73.3v205.4C19.7 371 0 399.2 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-32.8-19.7-61-48-73.3V272c26.7 20.1 60 32 96 32h86.7c12.3 28.3 40.5 48 73.3 48 44.2 0 80-35.8 80-80s-35.8-80-80-80c-32.8 0-61 19.7-73.3 48H208c-49.9 0-91-38.1-95.6-86.8M80 408a24 24 0 1 1 0 48 24 24 0 1 1 0-48m264-136a24 24 0 1 1 48 0 24 24 0 1 1-48 0"},null,-1)]))}const tp={render:ep},np={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function rp(t,e){return o.openBlock(),o.createElementBlock("svg",np,e[0]||(e[0]=[o.createElementVNode("path",{d:"M208 0h124.1C344.8 0 357 5.1 366 14.1L433.9 82c9 9 14.1 21.2 14.1 33.9V336c0 26.5-21.5 48-48 48H208c-26.5 0-48-21.5-48-48V48c0-26.5 21.5-48 48-48M48 128h80v64H64v256h192v-32h64v48c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48"},null,-1)]))}const $c={render:rp},op={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function sp(t,e){return o.openBlock(),o.createElementBlock("svg",op,e[0]||(e[0]=[o.createElementVNode("path",{d:"M448 80v48c0 44.2-100.3 80-224 80S0 172.2 0 128V80C0 35.8 100.3 0 224 0s224 35.8 224 80m-54.8 134.7c20.8-7.4 39.9-16.9 54.8-28.6V288c0 44.2-100.3 80-224 80S0 332.2 0 288V186.1c14.9 11.8 34 21.2 54.8 28.6C99.7 230.7 159.5 240 224 240s124.3-9.3 169.2-25.3M0 346.1c14.9 11.8 34 21.2 54.8 28.6C99.7 390.7 159.5 400 224 400s124.3-9.3 169.2-25.3c20.8-7.4 39.9-16.9 54.8-28.6V432c0 44.2-100.3 80-224 80S0 476.2 0 432z"},null,-1)]))}const ip={render:sp},lp={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 640 512"};function ap(t,e){return o.openBlock(),o.createElementBlock("svg",lp,e[0]||(e[0]=[o.createElementVNode("path",{d:"M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2s-6.3 25.5 4.1 33.7l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7l-105.2-82.4c39.6-40.6 66.4-86.1 79.9-118.4 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8zm184.3 144.4c25.5-23.3 59.6-37.5 96.9-37.5 79.5 0 144 64.5 144 144 0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3-11.1-41.5-47.8-69.4-88.6-71.1-5.8-.2-9.2 6.1-7.4 11.7 2.1 6.4 3.3 13.2 3.3 20.3 0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1-79.5 0-144-64.5-144-144 0-6.9.5-13.6 1.4-20.2l-94.3-74.3c-22.8 29.7-39.1 59.3-48.6 82.2-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47 43.8 111.7 80.6 192.5 80.6 47.8 0 89.9-12.9 126.2-32.5z"},null,-1)]))}const cp={render:ap},up={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 576 512"};function dp(t,e){return o.openBlock(),o.createElementBlock("svg",up,e[0]||(e[0]=[o.createElementVNode("path",{d:"M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4 142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32M144 256a144 144 0 1 1 288 0 144 144 0 1 1-288 0m144-64c0 35.3-28.7 64-64 64-7.1 0-13.9-1.2-20.3-3.3-5.5-1.8-11.9 1.6-11.7 7.4.3 6.9 1.3 13.8 3.2 20.7 13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1-5.8-.2-9.2 6.1-7.4 11.7 2.1 6.4 3.3 13.2 3.3 20.3"},null,-1)]))}const Fc={render:dp},fp={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 576 512"};function _p(t,e){return o.openBlock(),o.createElementBlock("svg",fp,e[0]||(e[0]=[o.createElementVNode("path",{d:"M0 64C0 28.7 28.7 0 64 0h160v128c0 17.7 14.3 32 32 32h128v128H216c-13.3 0-24 10.7-24 24s10.7 24 24 24h168v112c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64zm384 272v-48h110.1l-39-39c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l80 80c9.4 9.4 9.4 24.6 0 33.9l-80 80c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l39-39H384zm0-208H256V0z"},null,-1)]))}const hp={render:_p},mp={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function pp(t,e){return o.openBlock(),o.createElementBlock("svg",mp,e[0]||(e[0]=[o.createElementVNode("path",{d:"M128 64c0-35.3 28.7-64 64-64h160v128c0 17.7 14.3 32 32 32h128v288c0 35.3-28.7 64-64 64H192c-35.3 0-64-28.7-64-64V336h174.1l-39 39c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l80-80c9.4-9.4 9.4-24.6 0-33.9l-80-80c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l39 39H128zm0 224v48H24c-13.3 0-24-10.7-24-24s10.7-24 24-24zm384-160H384V0z"},null,-1)]))}const gp={render:pp},bp={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 384 512"};function yp(t,e){return o.openBlock(),o.createElementBlock("svg",bp,e[0]||(e[0]=[o.createElementVNode("path",{d:"M0 64C0 28.7 28.7 0 64 0h160v128c0 17.7 14.3 32 32 32h128v288c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64zm384 64H256V0z"},null,-1)]))}const wp={render:yp},kp={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function xp(t,e){return o.openBlock(),o.createElementBlock("svg",kp,e[0]||(e[0]=[o.createElementVNode("path",{d:"M64 32C28.7 32 0 60.7 0 96v320c0 35.3 28.7 64 64 64h320c35.3 0 64-28.7 64-64V173.3c0-17-6.7-33.3-18.7-45.3L352 50.7c-12-12-28.3-18.7-45.3-18.7zm0 96c0-17.7 14.3-32 32-32h192c17.7 0 32 14.3 32 32v64c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32zm160 160a64 64 0 1 1 0 128 64 64 0 1 1 0-128"},null,-1)]))}const Cp={render:xp},Sp={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function Ep(t,e){return o.openBlock(),o.createElementBlock("svg",Sp,e[0]||(e[0]=[o.createElementVNode("path",{d:"M64 480h384c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H288c-10.1 0-19.6-4.7-25.6-12.8l-19.2-25.6C231.1 41.5 212.1 32 192 32H64C28.7 32 0 60.7 0 96v320c0 35.3 28.7 64 64 64"},null,-1)]))}const Tp={render:Ep},Bp={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 640 512"};function Np(t,e){return o.openBlock(),o.createElementBlock("svg",Bp,e[0]||(e[0]=[o.createElementVNode("path",{d:"M579.8 267.7c56.5-56.5 56.5-148 0-204.5-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6 31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5 50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5l112.2-112.3c31.5-31.5 82.5-31.5 114 0 27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0z"},null,-1)]))}const Ip={render:Np},$p={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function Fp(t,e){return o.openBlock(),o.createElementBlock("svg",$p,e[0]||(e[0]=[o.createElementVNode("path",{d:"M152.1 38.2c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L7 113c-9.3-9.4-9.3-24.6 0-34s24.6-9.4 33.9 0L63 101.1l55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zm0 160c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L7 273c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L63 261.2l55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zM224 96c0-17.7 14.3-32 32-32h224c17.7 0 32 14.3 32 32s-14.3 32-32 32H256c-17.7 0-32-14.3-32-32m0 160c0-17.7 14.3-32 32-32h224c17.7 0 32 14.3 32 32s-14.3 32-32 32H256c-17.7 0-32-14.3-32-32m-64 160c0-17.7 14.3-32 32-32h288c17.7 0 32 14.3 32 32s-14.3 32-32 32H192c-17.7 0-32-14.3-32-32M48 368a48 48 0 1 1 0 96 48 48 0 1 1 0-96"},null,-1)]))}const Ap={render:Fp},Dp={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function Op(t,e){return o.openBlock(),o.createElementBlock("svg",Dp,e[0]||(e[0]=[o.createElementVNode("path",{d:"M432 256c0 17.7-14.3 32-32 32H48c-17.7 0-32-14.3-32-32s14.3-32 32-32h352c17.7 0 32 14.3 32 32"},null,-1)]))}const Mp={render:Op},Vp={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 320 512"};function Lp(t,e){return o.openBlock(),o.createElementBlock("svg",Vp,e[0]||(e[0]=[o.createElementVNode("path",{d:"M48 64C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zm192 0c-26.5 0-48 21.5-48 48v288c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48z"},null,-1)]))}const Pp={render:Lp},vp={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function Rp(t,e){return o.openBlock(),o.createElementBlock("svg",vp,e[0]||(e[0]=[o.createElementVNode("path",{d:"m410.3 231 11.3-11.3-33.9-33.9-62.1-62.1-33.9-33.9-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2l199.2-199.2zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9l-78.2 23 23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7l-14.4 14.5-22.6 22.6-11.4 11.3 33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5l-39.3-39.4c-25-25-65.5-25-90.5 0zm-47.4 168-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6"},null,-1)]))}const fn={render:Rp},Up={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 384 512"};function zp(t,e){return o.openBlock(),o.createElementBlock("svg",Up,e[0]||(e[0]=[o.createElementVNode("path",{d:"M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80v352c0 17.4 9.4 33.4 24.5 41.9S58.2 482 73 473l288-176c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41z"},null,-1)]))}const qp={render:zp},Hp={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function jp(t,e){return o.openBlock(),o.createElementBlock("svg",Hp,e[0]||(e[0]=[o.createElementVNode("path",{d:"M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32v144H48c-17.7 0-32 14.3-32 32s14.3 32 32 32h144v144c0 17.7 14.3 32 32 32s32-14.3 32-32V288h144c17.7 0 32-14.3 32-32s-14.3-32-32-32H256z"},null,-1)]))}const Ac={render:jp},Gp={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 384 512"};function Wp(t,e){return o.openBlock(),o.createElementBlock("svg",Gp,e[0]||(e[0]=[o.createElementVNode("path",{d:"M0 128c0-35.3 28.7-64 64-64h256c35.3 0 64 28.7 64 64v256c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64z"},null,-1)]))}const Zp={render:Wp},Yp={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function Qp(t,e){return o.openBlock(),o.createElementBlock("svg",Yp,e[0]||(e[0]=[o.createElementVNode("path",{d:"M0 96c0-35.3 28.7-64 64-64h384c35.3 0 64 28.7 64 64v320c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64zm64 64v256h160V160zm384 0H288v256h160z"},null,-1)]))}const Kp={render:Qp},Xp={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function Jp(t,e){return o.openBlock(),o.createElementBlock("svg",Xp,e[0]||(e[0]=[o.createElementVNode("path",{d:"M135.2 17.7 128 32H32C14.3 32 0 46.3 0 64s14.3 32 32 32h384c17.7 0 32-14.3 32-32s-14.3-32-32-32h-96l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7M416 128H32l21.2 339c1.6 25.3 22.6 45 47.9 45h245.8c25.3 0 46.3-19.7 47.9-45z"},null,-1)]))}const Dc={render:Jp},eg={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 640 512"};function tg(t,e){return o.openBlock(),o.createElementBlock("svg",eg,e[0]||(e[0]=[o.createElementVNode("path",{d:"M144 0a80 80 0 1 1 0 160 80 80 0 1 1 0-160m368 0a80 80 0 1 1 0 160 80 80 0 1 1 0-160M0 298.7C0 239.8 47.8 192 106.7 192h42.7c15.9 0 31 3.5 44.6 9.7-1.3 7.2-1.9 14.7-1.9 22.3 0 38.2 16.8 72.5 43.3 96H21.3C9.6 320 0 310.4 0 298.7M405.3 320h-.7c26.6-23.5 43.3-57.8 43.3-96 0-7.6-.7-15-1.9-22.3 13.6-6.3 28.7-9.7 44.6-9.7h42.7c58.9 0 106.7 47.8 106.7 106.7 0 11.8-9.6 21.3-21.3 21.3zM224 224a96 96 0 1 1 192 0 96 96 0 1 1-192 0m-96 261.3c0-73.6 59.7-133.3 133.3-133.3h117.4c73.6 0 133.3 59.7 133.3 133.3 0 14.7-11.9 26.7-26.7 26.7H154.7c-14.7 0-26.7-11.9-26.7-26.7"},null,-1)]))}const ng={render:tg},rg={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function og(t,e){return o.openBlock(),o.createElementBlock("svg",rg,e[0]||(e[0]=[o.createElementVNode("path",{d:"M64 32C28.7 32 0 60.7 0 96v320c0 35.3 28.7 64 64 64h384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64zm32 64h320c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32-14.3-32-32s14.3-32 32-32"},null,-1)]))}const sg={render:og},ig={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 384 512"};function lg(t,e){return o.openBlock(),o.createElementBlock("svg",ig,e[0]||(e[0]=[o.createElementVNode("path",{d:"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3l105.4 105.3c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256z"},null,-1)]))}const ag={render:lg},cg={class:"flex items-center flex-nowrap"},ug={class:"p-4 bg-slate-600"},dg={class:"flex items-center flex-nowrap mt-2"},fg={class:"flex-grow"},Mo=o.defineComponent({__name:"ActionButton",props:{type:{default:null},color:{default:null},size:{default:"md"},icon:{default:null},iconClass:{default:""},label:{default:""},labelClass:{default:""},tooltip:{default:""},saving:{type:Boolean},action:{default:null},target:{default:null},input:{default:null},disabled:{type:Boolean},disabledClass:{default:"text-slate-800 bg-slate-500 opacity-50"},confirm:{type:Boolean},confirmText:{default:"Are you sure?"},tooltipClass:{default:""}},emits:["success","error","always"],setup(t,{emit:e}){const n=e,r=t,s={xxs:{icon:"w-2",button:"px-.5 h-5"},xs:{icon:"w-3",button:"px-1.5 h-6"},sm:{icon:"w-4",button:"px-2 h-8"},md:{icon:"w-5",button:"px-2.5 h-10"},lg:{icon:"w-6",button:"px-3 h-12"}},i=o.computed(()=>({[r.disabled?r.disabledClass:l.value]:!0,[s[r.size].button]:!0})),l=o.computed(()=>{switch(r.color){case"red":return"text-red-900 bg-red-300 hover:bg-red-400";case"lime":return"text-lime-900 bg-lime-300 hover:bg-lime-400";case"green":return"text-green-900 bg-green-300 hover:bg-green-400";case"green-invert":return"text-green-300 bg-green-900 hover:bg-green-800";case"blue":return"text-blue-900 bg-blue-300 hover:bg-blue-400";case"blue-invert":return"text-blue-300 bg-blue-900 hover:bg-blue-800";case"teal":return"text-teal-800 bg-teal-200 hover:bg-teal-400";case"teal-invert":return"text-teal-200 bg-teal-500 hover:bg-teal-600";case"sky":return"text-sky-900 bg-sky-300 hover:bg-sky-400";case"sky-invert":return"text-sky-400 bg-sky-800 hover:bg-sky-900";case"white":return"text-white bg-gray-800 hover:bg-gray-200";case"yellow":return"text-yellow-300 bg-yellow-800 hover:bg-yellow-700";case"orange":return"text-orange-400 bg-orange-900 hover:bg-orange-800";case"amber":return"text-amber-900 bg-amber-300 hover:bg-amber-400";case"gray":return"text-slate-200 bg-slate-800 hover:bg-slate-900";case"slate":return"text-slate-900 bg-slate-300 hover:bg-slate-400";case"slate-invert":return"text-slate-300 bg-slate-900 hover:bg-slate-800";case"purple":return"text-purple-300 bg-purple-900 hover:bg-purple-800";default:return""}}),a=o.computed(()=>r.iconClass+" "+s[r.size].icon),c=o.computed(()=>{switch(r.type){case"save":return{icon:Cp};case"trash":return{icon:Dc};case"export":return{icon:hp};case"import":return{icon:gp};case"back":return{icon:O1};case"create":return{icon:Ac};case"confirm":return{icon:W1};case"cancel":return{icon:Ic};case"edit":return{icon:fn};case"copy":return{icon:$c};case"folder":return{icon:Tp};case"document":return{icon:wp};case"clock":return{icon:X1};case"play":return{icon:qp};case"stop":return{icon:Zp};case"pause":return{icon:Pp};case"restart":return{icon:N1};case"refresh":return{icon:F1};case"minus":return{icon:Mp};case"merge":return{icon:tp};case"check":return{icon:ki};case"view":return{icon:Fc};case"database":return{icon:ip};case"users":return{icon:ng};case"close":return{icon:ag};default:return{icon:fn}}}),u=o.computed(()=>r.saving?!0:r.action?r.action.isApplying:r.target?Array.isArray(r.target)?r.target.some(h=>h.isSaving):r.target.isSaving:!1),d=o.ref(!1);function f(h=!1){if(!r.disabled){if(r.confirm&&!h)return d.value=!0,!1;d.value=!1,r.action?r.action.trigger(r.target,r.input).then(async _=>{n("success",typeof _.json=="function"?await _.json():_)}).catch(_=>{console.error(`Action emitted an error: ${r.action.name}`,_,r.target),n("error",_)}).finally(()=>{n("always")}):n("always")}}return(h,_)=>{const g=o.resolveComponent("QTooltip"),m=o.resolveComponent("ActionButton",!0),p=o.resolveComponent("QMenu"),y=o.resolveComponent("QBtn");return o.openBlock(),o.createBlock(y,{loading:u.value,class:o.normalizeClass(["shadow-none py-0",i.value]),disable:h.disabled,onClick:_[2]||(_[2]=()=>f())},{default:o.withCtx(()=>[o.createElementVNode("div",cg,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(h.icon||c.value.icon),{class:o.normalizeClass(["transition-all",a.value])},null,8,["class"])),h.label||h.label===0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["ml-2",h.labelClass])},o.toDisplayString(h.label),3)):o.createCommentVNode("",!0),o.renderSlot(h.$slots,"default")]),h.tooltip?(o.openBlock(),o.createBlock(g,{key:0,class:o.normalizeClass(["whitespace-nowrap",h.tooltipClass])},{default:o.withCtx(()=>[o.renderSlot(h.$slots,"tooltip",{},()=>[o.createTextVNode(o.toDisplayString(h.tooltip),1)])]),_:3},8,["class"])):o.createCommentVNode("",!0),d.value?(o.openBlock(),o.createBlock(p,{key:1,"model-value":!0},{default:o.withCtx(()=>[o.createElementVNode("div",ug,[o.createElementVNode("div",null,o.toDisplayString(h.confirmText),1),o.createElementVNode("div",dg,[o.createElementVNode("div",fg,[o.createVNode(m,{type:"cancel",color:"gray",onClick:_[0]||(_[0]=b=>d.value=!1)})]),o.createVNode(m,{type:"confirm",color:"green",onClick:_[1]||(_[1]=()=>f(!0))})])])]),_:1})):o.createCommentVNode("",!0)]),_:3},8,["loading","class","disable"])}}});function _g(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"fill-rule":"evenodd",d:"M3 17a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm3.293-7.707a1 1 0 011.414 0L9 10.586V3a1 1 0 112 0v7.586l1.293-1.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z","clip-rule":"evenodd"})])}function Oc(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"fill-rule":"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 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})])}function hg(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"fill-rule":"evenodd",d:"M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z","clip-rule":"evenodd"})])}function Mc(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[o.createVNode("path",{d:"M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"})])}function mg(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"fill-rule":"evenodd",d:"M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z","clip-rule":"evenodd"})])}function pg(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[o.createVNode("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})])}function gg(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"})])}const Vc={__name:"ExportButton",props:{exporter:{type:Function,required:!0}},setup(t){const e=t,n=o.ref(!1);async function r(){n.value=!0;try{await e.exporter()}catch(s){console.error(s),Ue.error("Failed to export data")}n.value=!1}return(s,i)=>{const l=o.resolveComponent("QBtn");return o.openBlock(),o.createBlock(l,{class:"dx-export-button dx-action-button",loading:n.value,onClick:r},{default:o.withCtx(()=>[o.createVNode(o.unref(_g),{class:"w-5"})]),_:1},8,["loading"])}}},Lc=o.defineComponent({__name:"RefreshButton",props:{loading:{type:Boolean}},emits:["refresh"],setup(t){return(e,n)=>{const r=o.resolveComponent("QBtn");return o.openBlock(),o.createBlock(r,{class:"dx-refresh-button dx-action-button",loading:e.loading},{default:o.withCtx(()=>[o.createVNode(o.unref(mg),{class:"w-5"})]),_:1},8,["loading"])}}}),xi="show-hide-button",Vo=o.defineComponent({__name:"ShowHideButton",props:o.mergeModels({name:{default:""},showLabel:{default:""},hideLabel:{default:""},showIcon:{default:null},hideIcon:{default:null},labelClass:{default:"ml-2"},label:{default:""}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:o.mergeModels(["show","hide"],["update:modelValue"]),setup(t,{emit:e}){const n=e,r=o.useModel(t,"modelValue"),s=t,i=kt(xi,{});s.name&&i[s.name]!==void 0&&(r.value=i[s.name]);function l(){r.value=!r.value,o.nextTick(()=>{r.value?n("show"):n("hide"),s.name&&(i[s.name]=r.value,wt(xi,{...kt(xi,{}),[s.name]:r.value}))})}return(a,c)=>(o.openBlock(),o.createBlock(o.unref(Mo),{icon:r.value?a.hideIcon||o.unref(cp):a.showIcon||o.unref(Fc),label:(r.value?a.hideLabel:a.showLabel)||a.label,"label-class":a.labelClass,onClick:l},{tooltip:o.withCtx(()=>[o.renderSlot(a.$slots,"tooltip")]),default:o.withCtx(()=>[o.renderSlot(a.$slots,"default")]),_:3},8,["icon","label","label-class"]))}}),Ci=Symbol.for("yaml.alias"),Si=Symbol.for("yaml.document"),Ht=Symbol.for("yaml.map"),Pc=Symbol.for("yaml.pair"),xt=Symbol.for("yaml.scalar"),zn=Symbol.for("yaml.seq"),Je=Symbol.for("yaml.node.type"),_n=t=>!!t&&typeof t=="object"&&t[Je]===Ci,Vr=t=>!!t&&typeof t=="object"&&t[Je]===Si,Lr=t=>!!t&&typeof t=="object"&&t[Je]===Ht,ue=t=>!!t&&typeof t=="object"&&t[Je]===Pc,ee=t=>!!t&&typeof t=="object"&&t[Je]===xt,Pr=t=>!!t&&typeof t=="object"&&t[Je]===zn;function de(t){if(t&&typeof t=="object")switch(t[Je]){case Ht:case zn:return!0}return!1}function fe(t){if(t&&typeof t=="object")switch(t[Je]){case Ci:case Ht:case xt:case zn:return!0}return!1}const vc=t=>(ee(t)||de(t))&&!!t.anchor,hn=Symbol("break visit"),bg=Symbol("skip children"),vr=Symbol("remove node");function qn(t,e){const n=yg(e);Vr(t)?Hn(null,t.contents,n,Object.freeze([t]))===vr&&(t.contents=null):Hn(null,t,n,Object.freeze([]))}qn.BREAK=hn,qn.SKIP=bg,qn.REMOVE=vr;function Hn(t,e,n,r){const s=wg(t,e,n,r);if(fe(s)||ue(s))return kg(t,r,s),Hn(t,s,n,r);if(typeof s!="symbol"){if(de(e)){r=Object.freeze(r.concat(e));for(let i=0;i<e.items.length;++i){const l=Hn(i,e.items[i],n,r);if(typeof l=="number")i=l-1;else{if(l===hn)return hn;l===vr&&(e.items.splice(i,1),i-=1)}}}else if(ue(e)){r=Object.freeze(r.concat(e));const i=Hn("key",e.key,n,r);if(i===hn)return hn;i===vr&&(e.key=null);const l=Hn("value",e.value,n,r);if(l===hn)return hn;l===vr&&(e.value=null)}}return s}function yg(t){return typeof t=="object"&&(t.Collection||t.Node||t.Value)?Object.assign({Alias:t.Node,Map:t.Node,Scalar:t.Node,Seq:t.Node},t.Value&&{Map:t.Value,Scalar:t.Value,Seq:t.Value},t.Collection&&{Map:t.Collection,Seq:t.Collection},t):t}function wg(t,e,n,r){var s,i,l,a,c;if(typeof n=="function")return n(t,e,r);if(Lr(e))return(s=n.Map)==null?void 0:s.call(n,t,e,r);if(Pr(e))return(i=n.Seq)==null?void 0:i.call(n,t,e,r);if(ue(e))return(l=n.Pair)==null?void 0:l.call(n,t,e,r);if(ee(e))return(a=n.Scalar)==null?void 0:a.call(n,t,e,r);if(_n(e))return(c=n.Alias)==null?void 0:c.call(n,t,e,r)}function kg(t,e,n){const r=e[e.length-1];if(de(r))r.items[t]=n;else if(ue(r))t==="key"?r.key=n:r.value=n;else if(Vr(r))r.contents=n;else{const s=_n(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${s} parent`)}}const xg={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Cg=t=>t.replace(/[!,[\]{}]/g,e=>xg[e]);class Fe{constructor(e,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Fe.defaultYaml,e),this.tags=Object.assign({},Fe.defaultTags,n)}clone(){const e=new Fe(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new Fe(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Fe.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Fe.defaultTags);break}return e}add(e,n){this.atNextDocument&&(this.yaml={explicit:Fe.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Fe.defaultTags),this.atNextDocument=!1);const r=e.trim().split(/[ \t]+/),s=r.shift();switch(s){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[i,l]=r;return this.tags[i]=l,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[i]=r;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{const l=/^\d+\.\d+$/.test(i);return n(6,`Unsupported YAML version ${i}`,l),!1}}default:return n(0,`Unknown directive ${s}`,!0),!1}}tagName(e,n){if(e==="!")return"!";if(e[0]!=="!")return n(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const l=e.slice(2,-1);return l==="!"||l==="!!"?(n(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&n("Verbatim tags must end with a >"),l)}const[,r,s]=e.match(/^(.*!)([^!]*)$/s);s||n(`The ${e} tag has no suffix`);const i=this.tags[r];if(i)try{return i+decodeURIComponent(s)}catch(l){return n(String(l)),null}return r==="!"?e:(n(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[n,r]of Object.entries(this.tags))if(e.startsWith(r))return n+Cg(e.substring(r.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let s;if(e&&r.length>0&&fe(e.contents)){const i={};qn(e.contents,(l,a)=>{fe(a)&&a.tag&&(i[a.tag]=!0)}),s=Object.keys(i)}else s=[];for(const[i,l]of r)i==="!!"&&l==="tag:yaml.org,2002:"||(!e||s.some(a=>a.startsWith(l)))&&n.push(`%TAG ${i} ${l}`);return n.join(`
|
|
2
|
-
`)}}
|
|
3
|
-
`)?
|
|
1
|
+
(function(E,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("quasar")):typeof define=="function"&&define.amd?define(["exports","vue","quasar"],r):(E=typeof globalThis<"u"?globalThis:E||self,r(E.Danx={},E.Vue,E.Quasar))})(this,function(E,r,pe){"use strict";const fe=r.shallowRef({tinyMceApiKey:"set-api-key-in-danx-options",router:void 0,request:{baseUrl:"",headers:{},onUnauthorized:void 0},fileUpload:{directory:"file-upload",createPresignedUpload:null,completePresignedUpload:null,refreshFile:null},flashMessages:{default:{},success:{},warning:{},error:{}}});function sg(t){fe.value={...fe.value,...t,fileUpload:{...fe.value.fileUpload,...t.fileUpload},flashMessages:{...fe.value.flashMessages,...t.flashMessages},request:{...fe.value.request,...t.request}}}function ig(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}function xu(t){return typeof t=="function"?t():r.unref(t)}const lg=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Cu=()=>{};function ag(t,e){function n(...o){return new Promise((s,i)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(s).catch(i)})}return n}function cg(t,e={}){let n,o,s=Cu;const i=a=>{clearTimeout(a),s(),s=Cu};return a=>{const c=xu(t),u=xu(e.maxWait);return n&&i(n),c<=0||u!==void 0&&u<=0?(o&&(i(o),o=null),Promise.resolve(a())):new Promise((d,f)=>{s=e.rejectOnCancel?f:d,u&&!o&&(o=setTimeout(()=>{n&&i(n),o=null,d(a())},u)),n=setTimeout(()=>{o&&i(o),o=null,d(a())},c)})}}function nn(t,e=200,n={}){return ag(cg(e,n),t)}const ug=lg?window.navigator:void 0;function dg(){const t=r.ref(!1),e=r.getCurrentInstance();return e&&r.onMounted(()=>{t.value=!0},e),t}function fg(t){const e=dg();return r.computed(()=>(e.value,!!t()))}function hg(t={}){const{enableHighAccuracy:e=!0,maximumAge:n=3e4,timeout:o=27e3,navigator:s=ug,immediate:i=!0}=t,l=fg(()=>s&&"geolocation"in s),a=r.ref(null),c=r.shallowRef(null),u=r.ref({accuracy:0,latitude:Number.POSITIVE_INFINITY,longitude:Number.POSITIVE_INFINITY,altitude:null,altitudeAccuracy:null,heading:null,speed:null});function d(g){a.value=g.timestamp,u.value=g.coords,c.value=null}let f;function h(){l.value&&(f=s.geolocation.watchPosition(d,g=>c.value=g,{enableHighAccuracy:e,maximumAge:n,timeout:o}))}i&&h();function m(){f&&s&&s.geolocation.clearWatch(f)}return ig(()=>{m()}),{isSupported:l,coords:u,locatedAt:a,error:c,resume:h,pause:m}}const mg={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function pg(t,e){return r.openBlock(),r.createElementBlock("svg",mg,e[0]||(e[0]=[r.createElementVNode("path",{d:"M386.3 160H336c-17.7 0-32 14.3-32 32s14.3 32 32 32h128c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v51.2l-17.6-17.6c-87.5-87.5-229.3-87.5-316.8 0s-87.5 229.3 0 316.8 229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3 163.8-62.5 226.3 0z"},null,-1)]))}const _g={render:pg},gg={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function bg(t,e){return r.openBlock(),r.createElementBlock("svg",gg,e[0]||(e[0]=[r.createElementVNode("path",{d:"M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8 62.5-62.5 163.8-62.5 226.3 0l17.1 17.2H352c-17.7 0-32 14.3-32 32s14.3 32 32 32h111.9c17.7 0 32-14.3 32-32V80c0-17.7-14.3-32-32-32s-32 14.3-32 32v35.2l-17.5-17.6c-87.5-87.5-229.3-87.5-316.8 0-24.4 24.4-42 53.1-52.8 83.8-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2-4 4-6.7 8.8-8.1 14-.3 1.2-.6 2.5-.8 3.8-.3 1.7-.4 3.4-.4 5.1V432c0 17.7 14.3 32 32 32s32-14.3 32-32v-35.1l17.6 17.5c87.5 87.4 229.3 87.4 316.7 0 24.4-24.4 42.1-53.1 52.9-83.7 5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8-62.5 62.5-163.8 62.5-226.3 0l-.1-.1-17.1-17.1H160c17.7 0 32-14.3 32-32s-14.3-32-32-32H48.4q-2.4 0-4.8.3c-2.4.3-3.1.5-4.6 1"},null,-1)]))}const yg={render:bg},wg={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function kg(t,e){return r.openBlock(),r.createElementBlock("svg",wg,e[0]||(e[0]=[r.createElementVNode("path",{d:"M459.5 440.6c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29V96c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4L288 214.3v83.4zM256 352V96c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4l-192 160C4.2 237.5 0 246.5 0 256s4.2 18.5 11.5 24.6l192 160c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29z"},null,-1)]))}const xg={render:kg},Cg={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function Sg(t,e){return r.openBlock(),r.createElementBlock("svg",Cg,e[0]||(e[0]=[r.createElementVNode("path",{d:"M24 32C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24zm88 0c-8.8 0-16 7.2-16 16v416c0 8.8 7.2 16 16 16s16-7.2 16-16V48c0-8.8-7.2-16-16-16m72 0c-13.3 0-24 10.7-24 24v400c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24zm96 0c-13.3 0-24 10.7-24 24v400c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24zm168 24v400c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-16c-13.3 0-24 10.7-24 24m-64-8v416c0 8.8 7.2 16 16 16s16-7.2 16-16V48c0-8.8-7.2-16-16-16s-16 7.2-16 16"},null,-1)]))}const Su={render:Sg},Eg={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function Tg(t,e){return r.openBlock(),r.createElementBlock("svg",Eg,e[0]||(e[0]=[r.createElementVNode("path",{d:"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7l233.4-233.3c12.5-12.5 32.8-12.5 45.3 0z"},null,-1)]))}const Xi={render:Tg},Bg={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function Ng(t,e){return r.openBlock(),r.createElementBlock("svg",Bg,e[0]||(e[0]=[r.createElementVNode("path",{d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"},null,-1)]))}const $g={render:Ng},Ig={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 320 512"};function Ag(t,e){return r.openBlock(),r.createElementBlock("svg",Ig,e[0]||(e[0]=[r.createElementVNode("path",{d:"M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"},null,-1)]))}const Lg={render:Ag},Fg={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function Mg(t,e){return r.openBlock(),r.createElementBlock("svg",Fg,e[0]||(e[0]=[r.createElementVNode("path",{d:"M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512m113-303L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"},null,-1)]))}const Og={render:Mg},Dg={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function vg(t,e){return r.openBlock(),r.createElementBlock("svg",Dg,e[0]||(e[0]=[r.createElementVNode("path",{d:"M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512m-81-337c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9"},null,-1)]))}const Eu={render:vg},Vg={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function Pg(t,e){return r.openBlock(),r.createElementBlock("svg",Vg,e[0]||(e[0]=[r.createElementVNode("path",{d:"M256 0a256 256 0 1 1 0 512 256 256 0 1 1 0-512m-24 120v136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24"},null,-1)]))}const Rg={render:Pg},Ug={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function zg(t,e){return r.openBlock(),r.createElementBlock("svg",Ug,e[0]||(e[0]=[r.createElementVNode("path",{d:"M80 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48m32.4 97.2c28-12.4 47.6-40.5 47.6-73.2 0-44.2-35.8-80-80-80S0 35.8 0 80c0 32.8 19.7 61 48 73.3v205.4C19.7 371 0 399.2 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-32.8-19.7-61-48-73.3V272c26.7 20.1 60 32 96 32h86.7c12.3 28.3 40.5 48 73.3 48 44.2 0 80-35.8 80-80s-35.8-80-80-80c-32.8 0-61 19.7-73.3 48H208c-49.9 0-91-38.1-95.6-86.8M80 408a24 24 0 1 1 0 48 24 24 0 1 1 0-48m264-136a24 24 0 1 1 48 0 24 24 0 1 1-48 0"},null,-1)]))}const Hg={render:zg},qg={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function Wg(t,e){return r.openBlock(),r.createElementBlock("svg",qg,e[0]||(e[0]=[r.createElementVNode("path",{d:"M208 0h124.1C344.8 0 357 5.1 366 14.1L433.9 82c9 9 14.1 21.2 14.1 33.9V336c0 26.5-21.5 48-48 48H208c-26.5 0-48-21.5-48-48V48c0-26.5 21.5-48 48-48M48 128h80v64H64v256h192v-32h64v48c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48"},null,-1)]))}const Tu={render:Wg},jg={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function Gg(t,e){return r.openBlock(),r.createElementBlock("svg",jg,e[0]||(e[0]=[r.createElementVNode("path",{d:"M448 80v48c0 44.2-100.3 80-224 80S0 172.2 0 128V80C0 35.8 100.3 0 224 0s224 35.8 224 80m-54.8 134.7c20.8-7.4 39.9-16.9 54.8-28.6V288c0 44.2-100.3 80-224 80S0 332.2 0 288V186.1c14.9 11.8 34 21.2 54.8 28.6C99.7 230.7 159.5 240 224 240s124.3-9.3 169.2-25.3M0 346.1c14.9 11.8 34 21.2 54.8 28.6C99.7 390.7 159.5 400 224 400s124.3-9.3 169.2-25.3c20.8-7.4 39.9-16.9 54.8-28.6V432c0 44.2-100.3 80-224 80S0 476.2 0 432z"},null,-1)]))}const Kg={render:Gg},Zg={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 640 512"};function Yg(t,e){return r.openBlock(),r.createElementBlock("svg",Zg,e[0]||(e[0]=[r.createElementVNode("path",{d:"M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2s-6.3 25.5 4.1 33.7l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7l-105.2-82.4c39.6-40.6 66.4-86.1 79.9-118.4 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8zm184.3 144.4c25.5-23.3 59.6-37.5 96.9-37.5 79.5 0 144 64.5 144 144 0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3-11.1-41.5-47.8-69.4-88.6-71.1-5.8-.2-9.2 6.1-7.4 11.7 2.1 6.4 3.3 13.2 3.3 20.3 0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1-79.5 0-144-64.5-144-144 0-6.9.5-13.6 1.4-20.2l-94.3-74.3c-22.8 29.7-39.1 59.3-48.6 82.2-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47 43.8 111.7 80.6 192.5 80.6 47.8 0 89.9-12.9 126.2-32.5z"},null,-1)]))}const Qg={render:Yg},Xg={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 576 512"};function Jg(t,e){return r.openBlock(),r.createElementBlock("svg",Xg,e[0]||(e[0]=[r.createElementVNode("path",{d:"M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4 142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32M144 256a144 144 0 1 1 288 0 144 144 0 1 1-288 0m144-64c0 35.3-28.7 64-64 64-7.1 0-13.9-1.2-20.3-3.3-5.5-1.8-11.9 1.6-11.7 7.4.3 6.9 1.3 13.8 3.2 20.7 13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1-5.8-.2-9.2 6.1-7.4 11.7 2.1 6.4 3.3 13.2 3.3 20.3"},null,-1)]))}const Bu={render:Jg},eb={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 576 512"};function tb(t,e){return r.openBlock(),r.createElementBlock("svg",eb,e[0]||(e[0]=[r.createElementVNode("path",{d:"M0 64C0 28.7 28.7 0 64 0h160v128c0 17.7 14.3 32 32 32h128v128H216c-13.3 0-24 10.7-24 24s10.7 24 24 24h168v112c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64zm384 272v-48h110.1l-39-39c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l80 80c9.4 9.4 9.4 24.6 0 33.9l-80 80c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l39-39H384zm0-208H256V0z"},null,-1)]))}const nb={render:tb},ob={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function rb(t,e){return r.openBlock(),r.createElementBlock("svg",ob,e[0]||(e[0]=[r.createElementVNode("path",{d:"M128 64c0-35.3 28.7-64 64-64h160v128c0 17.7 14.3 32 32 32h128v288c0 35.3-28.7 64-64 64H192c-35.3 0-64-28.7-64-64V336h174.1l-39 39c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l80-80c9.4-9.4 9.4-24.6 0-33.9l-80-80c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l39 39H128zm0 224v48H24c-13.3 0-24-10.7-24-24s10.7-24 24-24zm384-160H384V0z"},null,-1)]))}const sb={render:rb},ib={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 384 512"};function lb(t,e){return r.openBlock(),r.createElementBlock("svg",ib,e[0]||(e[0]=[r.createElementVNode("path",{d:"M0 64C0 28.7 28.7 0 64 0h160v128c0 17.7 14.3 32 32 32h128v288c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64zm384 64H256V0z"},null,-1)]))}const ab={render:lb},cb={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function ub(t,e){return r.openBlock(),r.createElementBlock("svg",cb,e[0]||(e[0]=[r.createElementVNode("path",{d:"M64 32C28.7 32 0 60.7 0 96v320c0 35.3 28.7 64 64 64h320c35.3 0 64-28.7 64-64V173.3c0-17-6.7-33.3-18.7-45.3L352 50.7c-12-12-28.3-18.7-45.3-18.7zm0 96c0-17.7 14.3-32 32-32h192c17.7 0 32 14.3 32 32v64c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32zm160 160a64 64 0 1 1 0 128 64 64 0 1 1 0-128"},null,-1)]))}const db={render:ub},fb={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function hb(t,e){return r.openBlock(),r.createElementBlock("svg",fb,e[0]||(e[0]=[r.createElementVNode("path",{d:"M64 480h384c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H288c-10.1 0-19.6-4.7-25.6-12.8l-19.2-25.6C231.1 41.5 212.1 32 192 32H64C28.7 32 0 60.7 0 96v320c0 35.3 28.7 64 64 64"},null,-1)]))}const mb={render:hb},pb={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 576 512"};function _b(t,e){return r.openBlock(),r.createElementBlock("svg",pb,e[0]||(e[0]=[r.createElementVNode("path",{d:"M64 64C28.7 64 0 92.7 0 128v256c0 35.3 28.7 64 64 64h448c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64zm16 64h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16v-32c0-8.8 7.2-16 16-16M64 240c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16zm16 80h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16v-32c0-8.8 7.2-16 16-16m80-176c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16h-32c-8.8 0-16-7.2-16-16zm16 80h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16h-32c-8.8 0-16-7.2-16-16v-32c0-8.8 7.2-16 16-16m-16 112c0-8.8 7.2-16 16-16h224c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16zm112-208h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16h-32c-8.8 0-16-7.2-16-16v-32c0-8.8 7.2-16 16-16m-16 112c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16h-32c-8.8 0-16-7.2-16-16zm112-112h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16h-32c-8.8 0-16-7.2-16-16v-32c0-8.8 7.2-16 16-16m-16 112c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16h-32c-8.8 0-16-7.2-16-16zm112-112h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16h-32c-8.8 0-16-7.2-16-16v-32c0-8.8 7.2-16 16-16m-16 112c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16h-32c-8.8 0-16-7.2-16-16zm16 80h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16h-32c-8.8 0-16-7.2-16-16v-32c0-8.8 7.2-16 16-16"},null,-1)]))}const gb={render:_b},bb={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 640 512"};function yb(t,e){return r.openBlock(),r.createElementBlock("svg",bb,e[0]||(e[0]=[r.createElementVNode("path",{d:"M579.8 267.7c56.5-56.5 56.5-148 0-204.5-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6 31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5 50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5l112.2-112.3c31.5-31.5 82.5-31.5 114 0 27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0z"},null,-1)]))}const wb={render:yb},kb={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function xb(t,e){return r.openBlock(),r.createElementBlock("svg",kb,e[0]||(e[0]=[r.createElementVNode("path",{d:"M152.1 38.2c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L7 113c-9.3-9.4-9.3-24.6 0-34s24.6-9.4 33.9 0L63 101.1l55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zm0 160c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L7 273c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L63 261.2l55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zM224 96c0-17.7 14.3-32 32-32h224c17.7 0 32 14.3 32 32s-14.3 32-32 32H256c-17.7 0-32-14.3-32-32m0 160c0-17.7 14.3-32 32-32h224c17.7 0 32 14.3 32 32s-14.3 32-32 32H256c-17.7 0-32-14.3-32-32m-64 160c0-17.7 14.3-32 32-32h288c17.7 0 32 14.3 32 32s-14.3 32-32 32H192c-17.7 0-32-14.3-32-32M48 368a48 48 0 1 1 0 96 48 48 0 1 1 0-96"},null,-1)]))}const Cb={render:xb},Sb={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function Eb(t,e){return r.openBlock(),r.createElementBlock("svg",Sb,e[0]||(e[0]=[r.createElementVNode("path",{d:"M432 256c0 17.7-14.3 32-32 32H48c-17.7 0-32-14.3-32-32s14.3-32 32-32h352c17.7 0 32 14.3 32 32"},null,-1)]))}const Tb={render:Eb},Bb={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 320 512"};function Nb(t,e){return r.openBlock(),r.createElementBlock("svg",Bb,e[0]||(e[0]=[r.createElementVNode("path",{d:"M48 64C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zm192 0c-26.5 0-48 21.5-48 48v288c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48z"},null,-1)]))}const $b={render:Nb},Ib={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function Ab(t,e){return r.openBlock(),r.createElementBlock("svg",Ib,e[0]||(e[0]=[r.createElementVNode("path",{d:"m410.3 231 11.3-11.3-33.9-33.9-62.1-62.1-33.9-33.9-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2l199.2-199.2zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9l-78.2 23 23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7l-14.4 14.5-22.6 22.6-11.4 11.3 33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5l-39.3-39.4c-25-25-65.5-25-90.5 0zm-47.4 168-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6"},null,-1)]))}const Bn={render:Ab},Lb={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 384 512"};function Fb(t,e){return r.openBlock(),r.createElementBlock("svg",Lb,e[0]||(e[0]=[r.createElementVNode("path",{d:"M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80v352c0 17.4 9.4 33.4 24.5 41.9S58.2 482 73 473l288-176c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41z"},null,-1)]))}const Mb={render:Fb},Ob={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function Db(t,e){return r.openBlock(),r.createElementBlock("svg",Ob,e[0]||(e[0]=[r.createElementVNode("path",{d:"M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32v144H48c-17.7 0-32 14.3-32 32s14.3 32 32 32h144v144c0 17.7 14.3 32 32 32s32-14.3 32-32V288h144c17.7 0 32-14.3 32-32s-14.3-32-32-32H256z"},null,-1)]))}const Nu={render:Db},vb={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 384 512"};function Vb(t,e){return r.openBlock(),r.createElementBlock("svg",vb,e[0]||(e[0]=[r.createElementVNode("path",{d:"M0 128c0-35.3 28.7-64 64-64h256c35.3 0 64 28.7 64 64v256c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64z"},null,-1)]))}const Pb={render:Vb},Rb={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function Ub(t,e){return r.openBlock(),r.createElementBlock("svg",Rb,e[0]||(e[0]=[r.createElementVNode("path",{d:"M0 96c0-35.3 28.7-64 64-64h384c35.3 0 64 28.7 64 64v320c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64zm64 64v256h160V160zm384 0H288v256h160z"},null,-1)]))}const zb={render:Ub},Hb={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512"};function qb(t,e){return r.openBlock(),r.createElementBlock("svg",Hb,e[0]||(e[0]=[r.createElementVNode("path",{d:"M135.2 17.7 128 32H32C14.3 32 0 46.3 0 64s14.3 32 32 32h384c17.7 0 32-14.3 32-32s-14.3-32-32-32h-96l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7M416 128H32l21.2 339c1.6 25.3 22.6 45 47.9 45h245.8c25.3 0 46.3-19.7 47.9-45z"},null,-1)]))}const $u={render:qb},Wb={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 640 512"};function jb(t,e){return r.openBlock(),r.createElementBlock("svg",Wb,e[0]||(e[0]=[r.createElementVNode("path",{d:"M144 0a80 80 0 1 1 0 160 80 80 0 1 1 0-160m368 0a80 80 0 1 1 0 160 80 80 0 1 1 0-160M0 298.7C0 239.8 47.8 192 106.7 192h42.7c15.9 0 31 3.5 44.6 9.7-1.3 7.2-1.9 14.7-1.9 22.3 0 38.2 16.8 72.5 43.3 96H21.3C9.6 320 0 310.4 0 298.7M405.3 320h-.7c26.6-23.5 43.3-57.8 43.3-96 0-7.6-.7-15-1.9-22.3 13.6-6.3 28.7-9.7 44.6-9.7h42.7c58.9 0 106.7 47.8 106.7 106.7 0 11.8-9.6 21.3-21.3 21.3zM224 224a96 96 0 1 1 192 0 96 96 0 1 1-192 0m-96 261.3c0-73.6 59.7-133.3 133.3-133.3h117.4c73.6 0 133.3 59.7 133.3 133.3 0 14.7-11.9 26.7-26.7 26.7H154.7c-14.7 0-26.7-11.9-26.7-26.7"},null,-1)]))}const Gb={render:jb},Kb={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"};function Zb(t,e){return r.openBlock(),r.createElementBlock("svg",Kb,e[0]||(e[0]=[r.createElementVNode("path",{d:"M64 32C28.7 32 0 60.7 0 96v320c0 35.3 28.7 64 64 64h384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64zm32 64h320c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32-14.3-32-32s14.3-32 32-32"},null,-1)]))}const Yb={render:Zb},Qb={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 384 512"};function Xb(t,e){return r.openBlock(),r.createElementBlock("svg",Qb,e[0]||(e[0]=[r.createElementVNode("path",{d:"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3l105.4 105.3c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256z"},null,-1)]))}const ts={render:Xb},Jb={class:"flex items-center flex-nowrap"},ey={class:"p-4 bg-slate-600"},ty={class:"flex items-center flex-nowrap mt-2"},ny={class:"flex-grow"},ns=r.defineComponent({__name:"ActionButton",props:{type:{default:null},color:{default:null},size:{default:"md"},icon:{default:null},iconClass:{default:""},label:{default:""},labelClass:{default:""},tooltip:{default:""},saving:{type:Boolean},action:{default:null},target:{default:null},input:{default:null},disabled:{type:Boolean},disabledClass:{default:"text-slate-800 bg-slate-500 opacity-50"},confirm:{type:Boolean},confirmText:{default:"Are you sure?"},tooltipClass:{default:""}},emits:["success","error","always"],setup(t,{emit:e}){const n=e,o=t,s={xxs:{icon:"w-2",button:"px-.5 h-5"},xs:{icon:"w-3",button:"px-1.5 h-6"},sm:{icon:"w-4",button:"px-2 h-8"},md:{icon:"w-5",button:"px-2.5 h-10"},lg:{icon:"w-6",button:"px-3 h-12"}},i=r.computed(()=>({[o.disabled?o.disabledClass:l.value]:!0,[s[o.size].button]:!0})),l=r.computed(()=>{switch(o.color){case"red":return"text-red-900 bg-red-300 hover:bg-red-400";case"lime":return"text-lime-900 bg-lime-300 hover:bg-lime-400";case"green":return"text-green-900 bg-green-300 hover:bg-green-400";case"green-invert":return"text-green-300 bg-green-900 hover:bg-green-800";case"blue":return"text-blue-900 bg-blue-300 hover:bg-blue-400";case"blue-invert":return"text-blue-300 bg-blue-900 hover:bg-blue-800";case"teal":return"text-teal-800 bg-teal-200 hover:bg-teal-400";case"teal-invert":return"text-teal-200 bg-teal-500 hover:bg-teal-600";case"sky":return"text-sky-900 bg-sky-300 hover:bg-sky-400";case"sky-invert":return"text-sky-400 bg-sky-800 hover:bg-sky-900";case"white":return"text-white bg-gray-800 hover:bg-gray-200";case"yellow":return"text-yellow-300 bg-yellow-800 hover:bg-yellow-700";case"orange":return"text-orange-400 bg-orange-900 hover:bg-orange-800";case"amber":return"text-amber-900 bg-amber-300 hover:bg-amber-400";case"gray":return"text-slate-200 bg-slate-800 hover:bg-slate-900";case"slate":return"text-slate-900 bg-slate-300 hover:bg-slate-400";case"slate-invert":return"text-slate-300 bg-slate-900 hover:bg-slate-800";case"purple":return"text-purple-300 bg-purple-900 hover:bg-purple-800";default:return""}}),a=r.computed(()=>o.iconClass+" "+s[o.size].icon),c=r.computed(()=>{switch(o.type){case"save":return{icon:db};case"trash":return{icon:$u};case"export":return{icon:nb};case"import":return{icon:sb};case"back":return{icon:xg};case"create":return{icon:Nu};case"confirm":return{icon:Og};case"cancel":return{icon:Eu};case"edit":return{icon:Bn};case"copy":return{icon:Tu};case"folder":return{icon:mb};case"document":return{icon:ab};case"clock":return{icon:Rg};case"play":return{icon:Mb};case"stop":return{icon:Pb};case"pause":return{icon:$b};case"restart":return{icon:_g};case"refresh":return{icon:yg};case"minus":return{icon:Tb};case"merge":return{icon:Hg};case"check":return{icon:Xi};case"view":return{icon:Bu};case"database":return{icon:Kg};case"users":return{icon:Gb};case"close":return{icon:ts};default:return{icon:Bn}}}),u=r.computed(()=>o.saving?!0:o.action?o.action.isApplying:o.target?Array.isArray(o.target)?o.target.some(h=>h.isSaving):o.target.isSaving:!1),d=r.ref(!1);function f(h=!1){if(!o.disabled){if(o.confirm&&!h)return d.value=!0,!1;d.value=!1,o.action?o.action.trigger(o.target,o.input).then(async m=>{n("success",typeof m.json=="function"?await m.json():m)}).catch(m=>{console.error(`Action emitted an error: ${o.action.name}`,m,o.target),n("error",m)}).finally(()=>{n("always")}):n("always")}}return(h,m)=>{const g=r.resolveComponent("QTooltip"),p=r.resolveComponent("ActionButton",!0),_=r.resolveComponent("QMenu"),b=r.resolveComponent("QBtn");return r.openBlock(),r.createBlock(b,{loading:u.value,class:r.normalizeClass(["shadow-none py-0",i.value]),disable:h.disabled,onClick:m[2]||(m[2]=()=>f())},{default:r.withCtx(()=>[r.createElementVNode("div",Jb,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(h.icon||c.value.icon),{class:r.normalizeClass(["transition-all",a.value])},null,8,["class"])),h.label||h.label===0?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["ml-2",h.labelClass])},r.toDisplayString(h.label),3)):r.createCommentVNode("",!0),r.renderSlot(h.$slots,"default")]),h.tooltip?(r.openBlock(),r.createBlock(g,{key:0,class:r.normalizeClass(["whitespace-nowrap",h.tooltipClass])},{default:r.withCtx(()=>[r.renderSlot(h.$slots,"tooltip",{},()=>[r.createTextVNode(r.toDisplayString(h.tooltip),1)])]),_:3},8,["class"])):r.createCommentVNode("",!0),d.value?(r.openBlock(),r.createBlock(_,{key:1,"model-value":!0},{default:r.withCtx(()=>[r.createElementVNode("div",ey,[r.createElementVNode("div",null,r.toDisplayString(h.confirmText),1),r.createElementVNode("div",ty,[r.createElementVNode("div",ny,[r.createVNode(p,{type:"cancel",color:"gray",onClick:m[0]||(m[0]=y=>d.value=!1)})]),r.createVNode(p,{type:"confirm",color:"green",onClick:m[1]||(m[1]=()=>f(!0))})])])]),_:1})):r.createCommentVNode("",!0)]),_:3},8,["loading","class","disable"])}}});function oy(t,e){return r.openBlock(),r.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[r.createVNode("path",{"fill-rule":"evenodd",d:"M3 17a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm3.293-7.707a1 1 0 011.414 0L9 10.586V3a1 1 0 112 0v7.586l1.293-1.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z","clip-rule":"evenodd"})])}function Iu(t,e){return r.openBlock(),r.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[r.createVNode("path",{"fill-rule":"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 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})])}function ry(t,e){return r.openBlock(),r.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[r.createVNode("path",{"fill-rule":"evenodd",d:"M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z","clip-rule":"evenodd"})])}function Au(t,e){return r.openBlock(),r.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[r.createVNode("path",{d:"M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"})])}function sy(t,e){return r.openBlock(),r.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[r.createVNode("path",{"fill-rule":"evenodd",d:"M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z","clip-rule":"evenodd"})])}function iy(t,e){return r.openBlock(),r.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[r.createVNode("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})])}function ly(t,e){return r.openBlock(),r.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[r.createVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"})])}const Lu={__name:"ExportButton",props:{exporter:{type:Function,required:!0}},setup(t){const e=t,n=r.ref(!1);async function o(){n.value=!0;try{await e.exporter()}catch(s){console.error(s),et.error("Failed to export data")}n.value=!1}return(s,i)=>{const l=r.resolveComponent("QBtn");return r.openBlock(),r.createBlock(l,{class:"dx-export-button dx-action-button",loading:n.value,onClick:o},{default:r.withCtx(()=>[r.createVNode(r.unref(oy),{class:"w-5"})]),_:1},8,["loading"])}}},Fu=r.defineComponent({__name:"RefreshButton",props:{loading:{type:Boolean}},emits:["refresh"],setup(t){return(e,n)=>{const o=r.resolveComponent("QBtn");return r.openBlock(),r.createBlock(o,{class:"dx-refresh-button dx-action-button",loading:e.loading},{default:r.withCtx(()=>[r.createVNode(r.unref(sy),{class:"w-5"})]),_:1},8,["loading"])}}}),Ji="show-hide-button",os=r.defineComponent({__name:"ShowHideButton",props:r.mergeModels({name:{default:""},showLabel:{default:""},hideLabel:{default:""},showIcon:{default:null},hideIcon:{default:null},labelClass:{default:"ml-2"},label:{default:""}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:r.mergeModels(["show","hide"],["update:modelValue"]),setup(t,{emit:e}){const n=e,o=r.useModel(t,"modelValue"),s=t,i=Ft(Ji,{});s.name&&i[s.name]!==void 0&&(o.value=i[s.name]);function l(){o.value=!o.value,r.nextTick(()=>{o.value?n("show"):n("hide"),s.name&&(i[s.name]=o.value,Lt(Ji,{...Ft(Ji,{}),[s.name]:o.value}))})}return(a,c)=>(r.openBlock(),r.createBlock(r.unref(ns),{icon:o.value?a.hideIcon||r.unref(Qg):a.showIcon||r.unref(Bu),label:(o.value?a.hideLabel:a.showLabel)||a.label,"label-class":a.labelClass,onClick:l},{tooltip:r.withCtx(()=>[r.renderSlot(a.$slots,"tooltip")]),default:r.withCtx(()=>[r.renderSlot(a.$slots,"default")]),_:3},8,["icon","label","label-class"]))}}),el=Symbol.for("yaml.alias"),tl=Symbol.for("yaml.document"),on=Symbol.for("yaml.map"),Mu=Symbol.for("yaml.pair"),Mt=Symbol.for("yaml.scalar"),oo=Symbol.for("yaml.seq"),ut=Symbol.for("yaml.node.type"),Nn=t=>!!t&&typeof t=="object"&&t[ut]===el,er=t=>!!t&&typeof t=="object"&&t[ut]===tl,tr=t=>!!t&&typeof t=="object"&&t[ut]===on,xe=t=>!!t&&typeof t=="object"&&t[ut]===Mu,ce=t=>!!t&&typeof t=="object"&&t[ut]===Mt,nr=t=>!!t&&typeof t=="object"&&t[ut]===oo;function Ce(t){if(t&&typeof t=="object")switch(t[ut]){case on:case oo:return!0}return!1}function Se(t){if(t&&typeof t=="object")switch(t[ut]){case el:case on:case Mt:case oo:return!0}return!1}const Ou=t=>(ce(t)||Ce(t))&&!!t.anchor,$n=Symbol("break visit"),ay=Symbol("skip children"),or=Symbol("remove node");function ro(t,e){const n=cy(e);er(t)?so(null,t.contents,n,Object.freeze([t]))===or&&(t.contents=null):so(null,t,n,Object.freeze([]))}ro.BREAK=$n,ro.SKIP=ay,ro.REMOVE=or;function so(t,e,n,o){const s=uy(t,e,n,o);if(Se(s)||xe(s))return dy(t,o,s),so(t,s,n,o);if(typeof s!="symbol"){if(Ce(e)){o=Object.freeze(o.concat(e));for(let i=0;i<e.items.length;++i){const l=so(i,e.items[i],n,o);if(typeof l=="number")i=l-1;else{if(l===$n)return $n;l===or&&(e.items.splice(i,1),i-=1)}}}else if(xe(e)){o=Object.freeze(o.concat(e));const i=so("key",e.key,n,o);if(i===$n)return $n;i===or&&(e.key=null);const l=so("value",e.value,n,o);if(l===$n)return $n;l===or&&(e.value=null)}}return s}function cy(t){return typeof t=="object"&&(t.Collection||t.Node||t.Value)?Object.assign({Alias:t.Node,Map:t.Node,Scalar:t.Node,Seq:t.Node},t.Value&&{Map:t.Value,Scalar:t.Value,Seq:t.Value},t.Collection&&{Map:t.Collection,Seq:t.Collection},t):t}function uy(t,e,n,o){var s,i,l,a,c;if(typeof n=="function")return n(t,e,o);if(tr(e))return(s=n.Map)==null?void 0:s.call(n,t,e,o);if(nr(e))return(i=n.Seq)==null?void 0:i.call(n,t,e,o);if(xe(e))return(l=n.Pair)==null?void 0:l.call(n,t,e,o);if(ce(e))return(a=n.Scalar)==null?void 0:a.call(n,t,e,o);if(Nn(e))return(c=n.Alias)==null?void 0:c.call(n,t,e,o)}function dy(t,e,n){const o=e[e.length-1];if(Ce(o))o.items[t]=n;else if(xe(o))t==="key"?o.key=n:o.value=n;else if(er(o))o.contents=n;else{const s=Nn(o)?"alias":"scalar";throw new Error(`Cannot replace node with ${s} parent`)}}const fy={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},hy=t=>t.replace(/[!,[\]{}]/g,e=>fy[e]);class ze{constructor(e,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},ze.defaultYaml,e),this.tags=Object.assign({},ze.defaultTags,n)}clone(){const e=new ze(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new ze(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:ze.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},ze.defaultTags);break}return e}add(e,n){this.atNextDocument&&(this.yaml={explicit:ze.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},ze.defaultTags),this.atNextDocument=!1);const o=e.trim().split(/[ \t]+/),s=o.shift();switch(s){case"%TAG":{if(o.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),o.length<2))return!1;const[i,l]=o;return this.tags[i]=l,!0}case"%YAML":{if(this.yaml.explicit=!0,o.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[i]=o;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{const l=/^\d+\.\d+$/.test(i);return n(6,`Unsupported YAML version ${i}`,l),!1}}default:return n(0,`Unknown directive ${s}`,!0),!1}}tagName(e,n){if(e==="!")return"!";if(e[0]!=="!")return n(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const l=e.slice(2,-1);return l==="!"||l==="!!"?(n(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&n("Verbatim tags must end with a >"),l)}const[,o,s]=e.match(/^(.*!)([^!]*)$/s);s||n(`The ${e} tag has no suffix`);const i=this.tags[o];if(i)try{return i+decodeURIComponent(s)}catch(l){return n(String(l)),null}return o==="!"?e:(n(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[n,o]of Object.entries(this.tags))if(e.startsWith(o))return n+hy(e.substring(o.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],o=Object.entries(this.tags);let s;if(e&&o.length>0&&Se(e.contents)){const i={};ro(e.contents,(l,a)=>{Se(a)&&a.tag&&(i[a.tag]=!0)}),s=Object.keys(i)}else s=[];for(const[i,l]of o)i==="!!"&&l==="tag:yaml.org,2002:"||(!e||s.some(a=>a.startsWith(l)))&&n.push(`%TAG ${i} ${l}`);return n.join(`
|
|
2
|
+
`)}}ze.defaultYaml={explicit:!1,version:"1.2"},ze.defaultTags={"!!":"tag:yaml.org,2002:"};function Du(t){if(/[\x00-\x19\s,[\]{}]/.test(t)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(t)}`;throw new Error(n)}return!0}function vu(t){const e=new Set;return ro(t,{Value(n,o){o.anchor&&e.add(o.anchor)}}),e}function Vu(t,e){for(let n=1;;++n){const o=`${t}${n}`;if(!e.has(o))return o}}function my(t,e){const n=[],o=new Map;let s=null;return{onAnchor:i=>{n.push(i),s??(s=vu(t));const l=Vu(e,s);return s.add(l),l},setAnchors:()=>{for(const i of n){const l=o.get(i);if(typeof l=="object"&&l.anchor&&(ce(l.node)||Ce(l.node)))l.node.anchor=l.anchor;else{const a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=i,a}}},sourceObjects:o}}function io(t,e,n,o){if(o&&typeof o=="object")if(Array.isArray(o))for(let s=0,i=o.length;s<i;++s){const l=o[s],a=io(t,o,String(s),l);a===void 0?delete o[s]:a!==l&&(o[s]=a)}else if(o instanceof Map)for(const s of Array.from(o.keys())){const i=o.get(s),l=io(t,o,s,i);l===void 0?o.delete(s):l!==i&&o.set(s,l)}else if(o instanceof Set)for(const s of Array.from(o)){const i=io(t,o,s,s);i===void 0?o.delete(s):i!==s&&(o.delete(s),o.add(i))}else for(const[s,i]of Object.entries(o)){const l=io(t,o,s,i);l===void 0?delete o[s]:l!==i&&(o[s]=l)}return t.call(e,n,o)}function dt(t,e,n){if(Array.isArray(t))return t.map((o,s)=>dt(o,String(s),n));if(t&&typeof t.toJSON=="function"){if(!n||!Ou(t))return t.toJSON(e,n);const o={aliasCount:0,count:1,res:void 0};n.anchors.set(t,o),n.onCreate=i=>{o.res=i,delete n.onCreate};const s=t.toJSON(e,n);return n.onCreate&&n.onCreate(s),s}return typeof t=="bigint"&&!(n!=null&&n.keep)?Number(t):t}class nl{constructor(e){Object.defineProperty(this,ut,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:n,maxAliasCount:o,onAnchor:s,reviver:i}={}){if(!er(e))throw new TypeError("A document argument is required");const l={anchors:new Map,doc:e,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},a=dt(this,"",l);if(typeof s=="function")for(const{count:c,res:u}of l.anchors.values())s(u,c);return typeof i=="function"?io(i,{"":a},"",a):a}}class ol extends nl{constructor(e){super(el),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,n){let o;n!=null&&n.aliasResolveCache?o=n.aliasResolveCache:(o=[],ro(e,{Node:(i,l)=>{(Nn(l)||Ou(l))&&o.push(l)}}),n&&(n.aliasResolveCache=o));let s;for(const i of o){if(i===this)break;i.anchor===this.source&&(s=i)}return s}toJSON(e,n){if(!n)return{source:this.source};const{anchors:o,doc:s,maxAliasCount:i}=n,l=this.resolve(s,n);if(!l){const c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}let a=o.get(l);if(a||(dt(l,null,n),a=o.get(l)),!a||a.res===void 0){const c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(i>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=rs(s,l,o)),a.count*a.aliasCount>i)){const c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return a.res}toString(e,n,o){const s=`*${this.source}`;if(e){if(Du(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(e.implicitKey)return`${s} `}return s}}function rs(t,e,n){if(Nn(e)){const o=e.resolve(t),s=n&&o&&n.get(o);return s?s.count*s.aliasCount:0}else if(Ce(e)){let o=0;for(const s of e.items){const i=rs(t,s,n);i>o&&(o=i)}return o}else if(xe(e)){const o=rs(t,e.key,n),s=rs(t,e.value,n);return Math.max(o,s)}return 1}const Pu=t=>!t||typeof t!="function"&&typeof t!="object";class X extends nl{constructor(e){super(Mt),this.value=e}toJSON(e,n){return n!=null&&n.keep?this.value:dt(this.value,e,n)}toString(){return String(this.value)}}X.BLOCK_FOLDED="BLOCK_FOLDED",X.BLOCK_LITERAL="BLOCK_LITERAL",X.PLAIN="PLAIN",X.QUOTE_DOUBLE="QUOTE_DOUBLE",X.QUOTE_SINGLE="QUOTE_SINGLE";const py="tag:yaml.org,2002:";function _y(t,e,n){if(e){const o=n.filter(i=>i.tag===e),s=o.find(i=>!i.format)??o[0];if(!s)throw new Error(`Tag ${e} not found`);return s}return n.find(o=>{var s;return((s=o.identify)==null?void 0:s.call(o,t))&&!o.format})}function rr(t,e,n){var f,h,m;if(er(t)&&(t=t.contents),Se(t))return t;if(xe(t)){const g=(h=(f=n.schema[on]).createNode)==null?void 0:h.call(f,n.schema,null,n);return g.items.push(t),g}(t instanceof String||t instanceof Number||t instanceof Boolean||typeof BigInt<"u"&&t instanceof BigInt)&&(t=t.valueOf());const{aliasDuplicateObjects:o,onAnchor:s,onTagObj:i,schema:l,sourceObjects:a}=n;let c;if(o&&t&&typeof t=="object"){if(c=a.get(t),c)return c.anchor??(c.anchor=s(t)),new ol(c.anchor);c={anchor:null,node:null},a.set(t,c)}e!=null&&e.startsWith("!!")&&(e=py+e.slice(2));let u=_y(t,e,l.tags);if(!u){if(t&&typeof t.toJSON=="function"&&(t=t.toJSON()),!t||typeof t!="object"){const g=new X(t);return c&&(c.node=g),g}u=t instanceof Map?l[on]:Symbol.iterator in Object(t)?l[oo]:l[on]}i&&(i(u),delete n.onTagObj);const d=u!=null&&u.createNode?u.createNode(n.schema,t,n):typeof((m=u==null?void 0:u.nodeClass)==null?void 0:m.from)=="function"?u.nodeClass.from(n.schema,t,n):new X(t);return e?d.tag=e:u.default||(d.tag=u.tag),c&&(c.node=d),d}function ss(t,e,n){let o=n;for(let s=e.length-1;s>=0;--s){const i=e[s];if(typeof i=="number"&&Number.isInteger(i)&&i>=0){const l=[];l[i]=o,o=l}else o=new Map([[i,o]])}return rr(o,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:t,sourceObjects:new Map})}const sr=t=>t==null||typeof t=="object"&&!!t[Symbol.iterator]().next().done;class Ru extends nl{constructor(e,n){super(e),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(e){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(n.schema=e),n.items=n.items.map(o=>Se(o)||xe(o)?o.clone(e):o),this.range&&(n.range=this.range.slice()),n}addIn(e,n){if(sr(e))this.add(n);else{const[o,...s]=e,i=this.get(o,!0);if(Ce(i))i.addIn(s,n);else if(i===void 0&&this.schema)this.set(o,ss(this.schema,s,n));else throw new Error(`Expected YAML collection at ${o}. Remaining path: ${s}`)}}deleteIn(e){const[n,...o]=e;if(o.length===0)return this.delete(n);const s=this.get(n,!0);if(Ce(s))return s.deleteIn(o);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}getIn(e,n){const[o,...s]=e,i=this.get(o,!0);return s.length===0?!n&&ce(i)?i.value:i:Ce(i)?i.getIn(s,n):void 0}hasAllNullValues(e){return this.items.every(n=>{if(!xe(n))return!1;const o=n.value;return o==null||e&&ce(o)&&o.value==null&&!o.commentBefore&&!o.comment&&!o.tag})}hasIn(e){const[n,...o]=e;if(o.length===0)return this.has(n);const s=this.get(n,!0);return Ce(s)?s.hasIn(o):!1}setIn(e,n){const[o,...s]=e;if(s.length===0)this.set(o,n);else{const i=this.get(o,!0);if(Ce(i))i.setIn(s,n);else if(i===void 0&&this.schema)this.set(o,ss(this.schema,s,n));else throw new Error(`Expected YAML collection at ${o}. Remaining path: ${s}`)}}}const gy=t=>t.replace(/^(?!$)(?: $)?/gm,"#");function Ht(t,e){return/^\n+$/.test(t)?t.substring(1):e?t.replace(/^(?! *$)/gm,e):t}const In=(t,e,n)=>t.endsWith(`
|
|
3
|
+
`)?Ht(n,e):n.includes(`
|
|
4
4
|
`)?`
|
|
5
|
-
`+
|
|
6
|
-
`)n===
|
|
7
|
-
`&&
|
|
8
|
-
`&&
|
|
9
|
-
${e}${t.slice(0,
|
|
10
|
-
${e}${t.slice(
|
|
11
|
-
`);
|
|
12
|
-
`){if(i-l>
|
|
5
|
+
`+Ht(n,e):(t.endsWith(" ")?"":" ")+n,Uu="flow",rl="block",is="quoted";function ls(t,e,n="flow",{indentAtStart:o,lineWidth:s=80,minContentWidth:i=20,onFold:l,onOverflow:a}={}){if(!s||s<0)return t;s<i&&(i=0);const c=Math.max(1+i,1+s-e.length);if(t.length<=c)return t;const u=[],d={};let f=s-e.length;typeof o=="number"&&(o>s-Math.max(2,i)?u.push(0):f=s-o);let h,m,g=!1,p=-1,_=-1,b=-1;n===rl&&(p=zu(t,p,e.length),p!==-1&&(f=p+c));for(let w;w=t[p+=1];){if(n===is&&w==="\\"){switch(_=p,t[p+1]){case"x":p+=3;break;case"u":p+=5;break;case"U":p+=9;break;default:p+=1}b=p}if(w===`
|
|
6
|
+
`)n===rl&&(p=zu(t,p,e.length)),f=p+e.length+c,h=void 0;else{if(w===" "&&m&&m!==" "&&m!==`
|
|
7
|
+
`&&m!==" "){const k=t[p+1];k&&k!==" "&&k!==`
|
|
8
|
+
`&&k!==" "&&(h=p)}if(p>=f)if(h)u.push(h),f=h+c,h=void 0;else if(n===is){for(;m===" "||m===" ";)m=w,w=t[p+=1],g=!0;const k=p>b+1?p-2:_-1;if(d[k])return t;u.push(k),d[k]=!0,f=k+c,h=void 0}else g=!0}m=w}if(g&&a&&a(),u.length===0)return t;l&&l();let y=t.slice(0,u[0]);for(let w=0;w<u.length;++w){const k=u[w],S=u[w+1]||t.length;k===0?y=`
|
|
9
|
+
${e}${t.slice(0,S)}`:(n===is&&d[k]&&(y+=`${t[k]}\\`),y+=`
|
|
10
|
+
${e}${t.slice(k+1,S)}`)}return y}function zu(t,e,n){let o=e,s=e+1,i=t[s];for(;i===" "||i===" ";)if(e<s+n)i=t[++e];else{do i=t[++e];while(i&&i!==`
|
|
11
|
+
`);o=e,s=e+1,i=t[s]}return o}const as=(t,e)=>({indentAtStart:e?t.indent.length:t.indentAtStart,lineWidth:t.options.lineWidth,minContentWidth:t.options.minContentWidth}),cs=t=>/^(%|---|\.\.\.)/m.test(t);function by(t,e,n){if(!e||e<0)return!1;const o=e-n,s=t.length;if(s<=o)return!1;for(let i=0,l=0;i<s;++i)if(t[i]===`
|
|
12
|
+
`){if(i-l>o)return!0;if(l=i+1,s-l<=o)return!1}return!0}function ir(t,e){const n=JSON.stringify(t);if(e.options.doubleQuotedAsJSON)return n;const{implicitKey:o}=e,s=e.options.doubleQuotedMinMultiLineLength,i=e.indent||(cs(t)?" ":"");let l="",a=0;for(let c=0,u=n[c];u;u=n[++c])if(u===" "&&n[c+1]==="\\"&&n[c+2]==="n"&&(l+=n.slice(a,c)+"\\ ",c+=1,a=c,u="\\"),u==="\\")switch(n[c+1]){case"u":{l+=n.slice(a,c);const d=n.substr(c+2,4);switch(d){case"0000":l+="\\0";break;case"0007":l+="\\a";break;case"000b":l+="\\v";break;case"001b":l+="\\e";break;case"0085":l+="\\N";break;case"00a0":l+="\\_";break;case"2028":l+="\\L";break;case"2029":l+="\\P";break;default:d.substr(0,2)==="00"?l+="\\x"+d.substr(2):l+=n.substr(c,6)}c+=5,a=c+1}break;case"n":if(o||n[c+2]==='"'||n.length<s)c+=1;else{for(l+=n.slice(a,c)+`
|
|
13
13
|
|
|
14
14
|
`;n[c+2]==="\\"&&n[c+3]==="n"&&n[c+4]!=='"';)l+=`
|
|
15
|
-
`,c+=2;l+=i,n[c+2]===" "&&(l+="\\"),c+=1,a=c+1}break;default:c+=1}return l=a?l+n.slice(a):n,
|
|
16
|
-
`)||/[ \t]\n|\n[ \t]/.test(t))return
|
|
17
|
-
${n}`)+"'";return e.implicitKey?
|
|
15
|
+
`,c+=2;l+=i,n[c+2]===" "&&(l+="\\"),c+=1,a=c+1}break;default:c+=1}return l=a?l+n.slice(a):n,o?l:ls(l,i,is,as(e,!1))}function sl(t,e){if(e.options.singleQuote===!1||e.implicitKey&&t.includes(`
|
|
16
|
+
`)||/[ \t]\n|\n[ \t]/.test(t))return ir(t,e);const n=e.indent||(cs(t)?" ":""),o="'"+t.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
17
|
+
${n}`)+"'";return e.implicitKey?o:ls(o,n,Uu,as(e,!1))}function lo(t,e){const{singleQuote:n}=e.options;let o;if(n===!1)o=ir;else{const s=t.includes('"'),i=t.includes("'");s&&!i?o=sl:i&&!s?o=ir:o=n?sl:ir}return o(t,e)}let il;try{il=new RegExp(`(^|(?<!
|
|
18
18
|
))
|
|
19
19
|
+(?!
|
|
20
|
-
|$)`,"g")}catch{
|
|
20
|
+
|$)`,"g")}catch{il=/\n+(?!\n|$)/g}function us({comment:t,type:e,value:n},o,s,i){const{blockQuote:l,commentString:a,lineWidth:c}=o.options;if(!l||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return lo(n,o);const u=o.indent||(o.forceBlockIndent||cs(n)?" ":""),d=l==="literal"?!0:l==="folded"||e===X.BLOCK_FOLDED?!1:e===X.BLOCK_LITERAL?!0:!by(n,c,u.length);if(!n)return d?`|
|
|
21
21
|
`:`>
|
|
22
|
-
`;let f,h;for(h=n.length;h>0;--h){const
|
|
23
|
-
`&&
|
|
24
|
-
`);g===-1?f="-":n===
|
|
25
|
-
`&&(
|
|
26
|
-
`)
|
|
27
|
-
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${u}`);let
|
|
28
|
-
${u}${T}`}return n=n.replace(/\n+/g,`$&${u}`),`|${
|
|
29
|
-
${u}${
|
|
30
|
-
`)||d&&/[[\]{},]/.test(i))return
|
|
31
|
-
`)?
|
|
32
|
-
`))return
|
|
33
|
-
${c}`);if(l){const h=
|
|
34
|
-
${e.indent}${a}`:a}function
|
|
35
|
-
${a}:`):(
|
|
36
|
-
`:"",
|
|
37
|
-
${
|
|
38
|
-
`&&(
|
|
39
|
-
|
|
40
|
-
`):
|
|
41
|
-
${n.indent}`}else if(!
|
|
42
|
-
`),B=T!==-1,N=n.inFlow??e.flow??e.items.length===0;if(B||!N){let $=!1;if(B&&(
|
|
43
|
-
${n.indent}`)}}else(
|
|
44
|
-
`)&&(
|
|
45
|
-
${c}${
|
|
46
|
-
`}}return t?(
|
|
47
|
-
`+
|
|
48
|
-
`))&&(u=!0),f.push(
|
|
49
|
-
${i}${s}${
|
|
22
|
+
`;let f,h;for(h=n.length;h>0;--h){const S=n[h-1];if(S!==`
|
|
23
|
+
`&&S!==" "&&S!==" ")break}let m=n.substring(h);const g=m.indexOf(`
|
|
24
|
+
`);g===-1?f="-":n===m||g!==m.length-1?(f="+",i&&i()):f="",m&&(n=n.slice(0,-m.length),m[m.length-1]===`
|
|
25
|
+
`&&(m=m.slice(0,-1)),m=m.replace(il,`$&${u}`));let p=!1,_,b=-1;for(_=0;_<n.length;++_){const S=n[_];if(S===" ")p=!0;else if(S===`
|
|
26
|
+
`)b=_;else break}let y=n.substring(0,b<_?b+1:_);y&&(n=n.substring(y.length),y=y.replace(/\n+/g,`$&${u}`));let k=(p?u?"2":"1":"")+f;if(t&&(k+=" "+a(t.replace(/ ?[\r\n]+/g," ")),s&&s()),!d){const S=n.replace(/\n+/g,`
|
|
27
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${u}`);let C=!1;const x=as(o,!0);l!=="folded"&&e!==X.BLOCK_FOLDED&&(x.onOverflow=()=>{C=!0});const T=ls(`${y}${S}${m}`,u,rl,x);if(!C)return`>${k}
|
|
28
|
+
${u}${T}`}return n=n.replace(/\n+/g,`$&${u}`),`|${k}
|
|
29
|
+
${u}${y}${n}${m}`}function yy(t,e,n,o){const{type:s,value:i}=t,{actualString:l,implicitKey:a,indent:c,indentStep:u,inFlow:d}=e;if(a&&i.includes(`
|
|
30
|
+
`)||d&&/[[\]{},]/.test(i))return lo(i,e);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return a||d||!i.includes(`
|
|
31
|
+
`)?lo(i,e):us(t,e,n,o);if(!a&&!d&&s!==X.PLAIN&&i.includes(`
|
|
32
|
+
`))return us(t,e,n,o);if(cs(i)){if(c==="")return e.forceBlockIndent=!0,us(t,e,n,o);if(a&&c===u)return lo(i,e)}const f=i.replace(/\n+/g,`$&
|
|
33
|
+
${c}`);if(l){const h=p=>{var _;return p.default&&p.tag!=="tag:yaml.org,2002:str"&&((_=p.test)==null?void 0:_.test(f))},{compat:m,tags:g}=e.doc.schema;if(g.some(h)||m!=null&&m.some(h))return lo(i,e)}return a?f:ls(f,c,Uu,as(e,!1))}function ll(t,e,n,o){const{implicitKey:s,inFlow:i}=e,l=typeof t.value=="string"?t:Object.assign({},t,{value:String(t.value)});let{type:a}=t;a!==X.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(l.value)&&(a=X.QUOTE_DOUBLE);const c=d=>{switch(d){case X.BLOCK_FOLDED:case X.BLOCK_LITERAL:return s||i?lo(l.value,e):us(l,e,n,o);case X.QUOTE_DOUBLE:return ir(l.value,e);case X.QUOTE_SINGLE:return sl(l.value,e);case X.PLAIN:return yy(l,e,n,o);default:return null}};let u=c(a);if(u===null){const{defaultKeyType:d,defaultStringType:f}=e.options,h=s&&d||f;if(u=c(h),u===null)throw new Error(`Unsupported default string type ${h}`)}return u}function Hu(t,e){const n=Object.assign({blockQuote:!0,commentString:gy,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},t.schema.toStringOptions,e);let o;switch(n.collectionStyle){case"block":o=!1;break;case"flow":o=!0;break;default:o=null}return{anchors:new Set,doc:t,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:o,options:n}}function wy(t,e){var s;if(e.tag){const i=t.filter(l=>l.tag===e.tag);if(i.length>0)return i.find(l=>l.format===e.format)??i[0]}let n,o;if(ce(e)){o=e.value;let i=t.filter(l=>{var a;return(a=l.identify)==null?void 0:a.call(l,o)});if(i.length>1){const l=i.filter(a=>a.test);l.length>0&&(i=l)}n=i.find(l=>l.format===e.format)??i.find(l=>!l.format)}else o=e,n=t.find(i=>i.nodeClass&&o instanceof i.nodeClass);if(!n){const i=((s=o==null?void 0:o.constructor)==null?void 0:s.name)??(o===null?"null":typeof o);throw new Error(`Tag not resolved for ${i} value`)}return n}function ky(t,e,{anchors:n,doc:o}){if(!o.directives)return"";const s=[],i=(ce(t)||Ce(t))&&t.anchor;i&&Du(i)&&(n.add(i),s.push(`&${i}`));const l=t.tag??(e.default?null:e.tag);return l&&s.push(o.directives.tagString(l)),s.join(" ")}function ao(t,e,n,o){var c;if(xe(t))return t.toString(e,n,o);if(Nn(t)){if(e.doc.directives)return t.toString(e);if((c=e.resolvedAliases)!=null&&c.has(t))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(t):e.resolvedAliases=new Set([t]),t=t.resolve(e.doc)}let s;const i=Se(t)?t:e.doc.createNode(t,{onTagObj:u=>s=u});s??(s=wy(e.doc.schema.tags,i));const l=ky(i,s,e);l.length>0&&(e.indentAtStart=(e.indentAtStart??0)+l.length+1);const a=typeof s.stringify=="function"?s.stringify(i,e,n,o):ce(i)?ll(i,e,n,o):i.toString(e,n,o);return l?ce(i)||a[0]==="{"||a[0]==="["?`${l} ${a}`:`${l}
|
|
34
|
+
${e.indent}${a}`:a}function xy({key:t,value:e},n,o,s){const{allNullValues:i,doc:l,indent:a,indentStep:c,options:{commentString:u,indentSeq:d,simpleKeys:f}}=n;let h=Se(t)&&t.comment||null;if(f){if(h)throw new Error("With simple keys, key nodes cannot have comments");if(Ce(t)||!Se(t)&&typeof t=="object"){const x="With simple keys, collection cannot be used as a key value";throw new Error(x)}}let m=!f&&(!t||h&&e==null&&!n.inFlow||Ce(t)||(ce(t)?t.type===X.BLOCK_FOLDED||t.type===X.BLOCK_LITERAL:typeof t=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!m&&(f||!i),indent:a+c});let g=!1,p=!1,_=ao(t,n,()=>g=!0,()=>p=!0);if(!m&&!n.inFlow&&_.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");m=!0}if(n.inFlow){if(i||e==null)return g&&o&&o(),_===""?"?":m?`? ${_}`:_}else if(i&&!f||e==null&&m)return _=`? ${_}`,h&&!g?_+=In(_,n.indent,u(h)):p&&s&&s(),_;g&&(h=null),m?(h&&(_+=In(_,n.indent,u(h))),_=`? ${_}
|
|
35
|
+
${a}:`):(_=`${_}:`,h&&(_+=In(_,n.indent,u(h))));let b,y,w;Se(e)?(b=!!e.spaceBefore,y=e.commentBefore,w=e.comment):(b=!1,y=null,w=null,e&&typeof e=="object"&&(e=l.createNode(e))),n.implicitKey=!1,!m&&!h&&ce(e)&&(n.indentAtStart=_.length+1),p=!1,!d&&c.length>=2&&!n.inFlow&&!m&&nr(e)&&!e.flow&&!e.tag&&!e.anchor&&(n.indent=n.indent.substring(2));let k=!1;const S=ao(e,n,()=>k=!0,()=>p=!0);let C=" ";if(h||b||y){if(C=b?`
|
|
36
|
+
`:"",y){const x=u(y);C+=`
|
|
37
|
+
${Ht(x,n.indent)}`}S===""&&!n.inFlow?C===`
|
|
38
|
+
`&&(C=`
|
|
39
|
+
|
|
40
|
+
`):C+=`
|
|
41
|
+
${n.indent}`}else if(!m&&Ce(e)){const x=S[0],T=S.indexOf(`
|
|
42
|
+
`),B=T!==-1,N=n.inFlow??e.flow??e.items.length===0;if(B||!N){let $=!1;if(B&&(x==="&"||x==="!")){let O=S.indexOf(" ");x==="&"&&O!==-1&&O<T&&S[O+1]==="!"&&(O=S.indexOf(" ",O+1)),(O===-1||T<O)&&($=!0)}$||(C=`
|
|
43
|
+
${n.indent}`)}}else(S===""||S[0]===`
|
|
44
|
+
`)&&(C="");return _+=C+S,n.inFlow?k&&o&&o():w&&!k?_+=In(_,n.indent,u(w)):p&&s&&s(),_}function qu(t,e){(t==="debug"||t==="warn")&&console.warn(e)}const ds="<<",qt={identify:t=>t===ds||typeof t=="symbol"&&t.description===ds,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new X(Symbol(ds)),{addToJSMap:Wu}),stringify:()=>ds},Cy=(t,e)=>(qt.identify(e)||ce(e)&&(!e.type||e.type===X.PLAIN)&&qt.identify(e.value))&&(t==null?void 0:t.doc.schema.tags.some(n=>n.tag===qt.tag&&n.default));function Wu(t,e,n){if(n=t&&Nn(n)?n.resolve(t.doc):n,nr(n))for(const o of n.items)al(t,e,o);else if(Array.isArray(n))for(const o of n)al(t,e,o);else al(t,e,n)}function al(t,e,n){const o=t&&Nn(n)?n.resolve(t.doc):n;if(!tr(o))throw new Error("Merge sources must be maps or map aliases");const s=o.toJSON(null,t,Map);for(const[i,l]of s)e instanceof Map?e.has(i)||e.set(i,l):e instanceof Set?e.add(i):Object.prototype.hasOwnProperty.call(e,i)||Object.defineProperty(e,i,{value:l,writable:!0,enumerable:!0,configurable:!0});return e}function ju(t,e,{key:n,value:o}){if(Se(n)&&n.addToJSMap)n.addToJSMap(t,e,o);else if(Cy(t,n))Wu(t,e,o);else{const s=dt(n,"",t);if(e instanceof Map)e.set(s,dt(o,s,t));else if(e instanceof Set)e.add(s);else{const i=Sy(n,s,t),l=dt(o,i,t);i in e?Object.defineProperty(e,i,{value:l,writable:!0,enumerable:!0,configurable:!0}):e[i]=l}}return e}function Sy(t,e,n){if(e===null)return"";if(typeof e!="object")return String(e);if(Se(t)&&(n!=null&&n.doc)){const o=Hu(n.doc,{});o.anchors=new Set;for(const i of n.anchors.keys())o.anchors.add(i.anchor);o.inFlow=!0,o.inStringifyKey=!0;const s=t.toString(o);if(!n.mapKeyWarned){let i=JSON.stringify(s);i.length>40&&(i=i.substring(0,36)+'..."'),qu(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${i}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return s}return JSON.stringify(e)}function cl(t,e,n){const o=rr(t,void 0,n),s=rr(e,void 0,n);return new He(o,s)}class He{constructor(e,n=null){Object.defineProperty(this,ut,{value:Mu}),this.key=e,this.value=n}clone(e){let{key:n,value:o}=this;return Se(n)&&(n=n.clone(e)),Se(o)&&(o=o.clone(e)),new He(n,o)}toJSON(e,n){const o=n!=null&&n.mapAsMap?new Map:{};return ju(n,o,this)}toString(e,n,o){return e!=null&&e.doc?xy(this,e,n,o):JSON.stringify(this)}}function Gu(t,e,n){return(e.inFlow??t.flow?Ty:Ey)(t,e,n)}function Ey({comment:t,items:e},n,{blockItemPrefix:o,flowChars:s,itemIndent:i,onChompKeep:l,onComment:a}){const{indent:c,options:{commentString:u}}=n,d=Object.assign({},n,{indent:i,type:null});let f=!1;const h=[];for(let g=0;g<e.length;++g){const p=e[g];let _=null;if(Se(p))!f&&p.spaceBefore&&h.push(""),fs(n,h,p.commentBefore,f),p.comment&&(_=p.comment);else if(xe(p)){const y=Se(p.key)?p.key:null;y&&(!f&&y.spaceBefore&&h.push(""),fs(n,h,y.commentBefore,f))}f=!1;let b=ao(p,d,()=>_=null,()=>f=!0);_&&(b+=In(b,i,u(_))),f&&_&&(f=!1),h.push(o+b)}let m;if(h.length===0)m=s.start+s.end;else{m=h[0];for(let g=1;g<h.length;++g){const p=h[g];m+=p?`
|
|
45
|
+
${c}${p}`:`
|
|
46
|
+
`}}return t?(m+=`
|
|
47
|
+
`+Ht(u(t),c),a&&a()):f&&l&&l(),m}function Ty({items:t},e,{flowChars:n,itemIndent:o}){const{indent:s,indentStep:i,flowCollectionPadding:l,options:{commentString:a}}=e;o+=i;const c=Object.assign({},e,{indent:o,inFlow:!0,type:null});let u=!1,d=0;const f=[];for(let g=0;g<t.length;++g){const p=t[g];let _=null;if(Se(p))p.spaceBefore&&f.push(""),fs(e,f,p.commentBefore,!1),p.comment&&(_=p.comment);else if(xe(p)){const y=Se(p.key)?p.key:null;y&&(y.spaceBefore&&f.push(""),fs(e,f,y.commentBefore,!1),y.comment&&(u=!0));const w=Se(p.value)?p.value:null;w?(w.comment&&(_=w.comment),w.commentBefore&&(u=!0)):p.value==null&&(y!=null&&y.comment)&&(_=y.comment)}_&&(u=!0);let b=ao(p,c,()=>_=null);g<t.length-1&&(b+=","),_&&(b+=In(b,o,a(_))),!u&&(f.length>d||b.includes(`
|
|
48
|
+
`))&&(u=!0),f.push(b),d=f.length}const{start:h,end:m}=n;if(f.length===0)return h+m;if(!u){const g=f.reduce((p,_)=>p+_.length+2,2);u=e.options.lineWidth>0&&g>e.options.lineWidth}if(u){let g=h;for(const p of f)g+=p?`
|
|
49
|
+
${i}${s}${p}`:`
|
|
50
50
|
`;return`${g}
|
|
51
|
-
${s}${
|
|
52
|
-
`:" ")}return
|
|
53
|
-
${s.key.commentBefore}`:
|
|
54
|
-
${i.comment}`:
|
|
55
|
-
`)?(n.push("..."),n.push(
|
|
51
|
+
${s}${m}`}else return`${h}${l}${f.join(" ")}${l}${m}`}function fs({indent:t,options:{commentString:e}},n,o,s){if(o&&s&&(o=o.replace(/^\n+/,"")),o){const i=Ht(e(o),t);n.push(i.trimStart())}}function An(t,e){const n=ce(e)?e.value:e;for(const o of t)if(xe(o)&&(o.key===e||o.key===n||ce(o.key)&&o.key.value===n))return o}class ft extends Ru{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(on,e),this.items=[]}static from(e,n,o){const{keepUndefined:s,replacer:i}=o,l=new this(e),a=(c,u)=>{if(typeof i=="function")u=i.call(n,c,u);else if(Array.isArray(i)&&!i.includes(c))return;(u!==void 0||s)&&l.items.push(cl(c,u,o))};if(n instanceof Map)for(const[c,u]of n)a(c,u);else if(n&&typeof n=="object")for(const c of Object.keys(n))a(c,n[c]);return typeof e.sortMapEntries=="function"&&l.items.sort(e.sortMapEntries),l}add(e,n){var l;let o;xe(e)?o=e:!e||typeof e!="object"||!("key"in e)?o=new He(e,e==null?void 0:e.value):o=new He(e.key,e.value);const s=An(this.items,o.key),i=(l=this.schema)==null?void 0:l.sortMapEntries;if(s){if(!n)throw new Error(`Key ${o.key} already set`);ce(s.value)&&Pu(o.value)?s.value.value=o.value:s.value=o.value}else if(i){const a=this.items.findIndex(c=>i(o,c)<0);a===-1?this.items.push(o):this.items.splice(a,0,o)}else this.items.push(o)}delete(e){const n=An(this.items,e);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(e,n){const o=An(this.items,e),s=o==null?void 0:o.value;return(!n&&ce(s)?s.value:s)??void 0}has(e){return!!An(this.items,e)}set(e,n){this.add(new He(e,n),!0)}toJSON(e,n,o){const s=o?new o:n!=null&&n.mapAsMap?new Map:{};n!=null&&n.onCreate&&n.onCreate(s);for(const i of this.items)ju(n,s,i);return s}toString(e,n,o){if(!e)return JSON.stringify(this);for(const s of this.items)if(!xe(s))throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Gu(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:o,onComment:n})}}const co={collection:"map",default:!0,nodeClass:ft,tag:"tag:yaml.org,2002:map",resolve(t,e){return tr(t)||e("Expected a mapping for this tag"),t},createNode:(t,e,n)=>ft.from(t,e,n)};class Ln extends Ru{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(oo,e),this.items=[]}add(e){this.items.push(e)}delete(e){const n=hs(e);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(e,n){const o=hs(e);if(typeof o!="number")return;const s=this.items[o];return!n&&ce(s)?s.value:s}has(e){const n=hs(e);return typeof n=="number"&&n<this.items.length}set(e,n){const o=hs(e);if(typeof o!="number")throw new Error(`Expected a valid index, not ${e}.`);const s=this.items[o];ce(s)&&Pu(n)?s.value=n:this.items[o]=n}toJSON(e,n){const o=[];n!=null&&n.onCreate&&n.onCreate(o);let s=0;for(const i of this.items)o.push(dt(i,String(s++),n));return o}toString(e,n,o){return e?Gu(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:o,onComment:n}):JSON.stringify(this)}static from(e,n,o){const{replacer:s}=o,i=new this(e);if(n&&Symbol.iterator in Object(n)){let l=0;for(let a of n){if(typeof s=="function"){const c=n instanceof Set?a:String(l++);a=s.call(n,c,a)}i.items.push(rr(a,void 0,o))}}return i}}function hs(t){let e=ce(t)?t.value:t;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}const uo={collection:"seq",default:!0,nodeClass:Ln,tag:"tag:yaml.org,2002:seq",resolve(t,e){return nr(t)||e("Expected a sequence for this tag"),t},createNode:(t,e,n)=>Ln.from(t,e,n)},ms={identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify(t,e,n,o){return e=Object.assign({actualString:!0},e),ll(t,e,n,o)}},ps={identify:t=>t==null,createNode:()=>new X(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new X(null),stringify:({source:t},e)=>typeof t=="string"&&ps.test.test(t)?t:e.options.nullStr},ul={identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>new X(t[0]==="t"||t[0]==="T"),stringify({source:t,value:e},n){if(t&&ul.test.test(t)){const o=t[0]==="t"||t[0]==="T";if(e===o)return t}return e?n.options.trueStr:n.options.falseStr}};function Ct({format:t,minFractionDigits:e,tag:n,value:o}){if(typeof o=="bigint")return String(o);const s=typeof o=="number"?o:Number(o);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let i=JSON.stringify(o);if(!t&&e&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(i)){let l=i.indexOf(".");l<0&&(l=i.length,i+=".");let a=e-(i.length-l-1);for(;a-- >0;)i+="0"}return i}const Ku={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Ct},Zu={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify(t){const e=Number(t.value);return isFinite(e)?e.toExponential():Ct(t)}},Yu={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(t){const e=new X(parseFloat(t)),n=t.indexOf(".");return n!==-1&&t[t.length-1]==="0"&&(e.minFractionDigits=t.length-n-1),e},stringify:Ct},_s=t=>typeof t=="bigint"||Number.isInteger(t),dl=(t,e,n,{intAsBigInt:o})=>o?BigInt(t):parseInt(t.substring(e),n);function Qu(t,e,n){const{value:o}=t;return _s(o)&&o>=0?n+o.toString(e):Ct(t)}const Xu={identify:t=>_s(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(t,e,n)=>dl(t,2,8,n),stringify:t=>Qu(t,8,"0o")},Ju={identify:_s,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(t,e,n)=>dl(t,0,10,n),stringify:Ct},ed={identify:t=>_s(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(t,e,n)=>dl(t,2,16,n),stringify:t=>Qu(t,16,"0x")},By=[co,uo,ms,ps,ul,Xu,Ju,ed,Ku,Zu,Yu];function td(t){return typeof t=="bigint"||Number.isInteger(t)}const gs=({value:t})=>JSON.stringify(t),Ny=[{identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify:gs},{identify:t=>t==null,createNode:()=>new X(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:gs},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:t=>t==="true",stringify:gs},{identify:td,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(t,e,{intAsBigInt:n})=>n?BigInt(t):parseInt(t,10),stringify:({value:t})=>td(t)?t.toString():JSON.stringify(t)},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:gs}],$y={default:!0,tag:"",test:/^/,resolve(t,e){return e(`Unresolved plain scalar ${JSON.stringify(t)}`),t}},Iy=[co,uo].concat(Ny,$y),fl={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(t,e){if(typeof atob=="function"){const n=atob(t.replace(/[\n\r]/g,"")),o=new Uint8Array(n.length);for(let s=0;s<n.length;++s)o[s]=n.charCodeAt(s);return o}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),t},stringify({comment:t,type:e,value:n},o,s,i){if(!n)return"";const l=n;let a;if(typeof btoa=="function"){let c="";for(let u=0;u<l.length;++u)c+=String.fromCharCode(l[u]);a=btoa(c)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e??(e=X.BLOCK_LITERAL),e!==X.QUOTE_DOUBLE){const c=Math.max(o.options.lineWidth-o.indent.length,o.options.minContentWidth),u=Math.ceil(a.length/c),d=new Array(u);for(let f=0,h=0;f<u;++f,h+=c)d[f]=a.substr(h,c);a=d.join(e===X.BLOCK_LITERAL?`
|
|
52
|
+
`:" ")}return ll({comment:t,type:e,value:a},o,s,i)}};function nd(t,e){if(nr(t))for(let n=0;n<t.items.length;++n){let o=t.items[n];if(!xe(o)){if(tr(o)){o.items.length>1&&e("Each pair must have its own sequence indicator");const s=o.items[0]||new He(new X(null));if(o.commentBefore&&(s.key.commentBefore=s.key.commentBefore?`${o.commentBefore}
|
|
53
|
+
${s.key.commentBefore}`:o.commentBefore),o.comment){const i=s.value??s.key;i.comment=i.comment?`${o.comment}
|
|
54
|
+
${i.comment}`:o.comment}o=s}t.items[n]=xe(o)?o:new He(o)}}else e("Expected a sequence for this tag");return t}function od(t,e,n){const{replacer:o}=n,s=new Ln(t);s.tag="tag:yaml.org,2002:pairs";let i=0;if(e&&Symbol.iterator in Object(e))for(let l of e){typeof o=="function"&&(l=o.call(e,String(i++),l));let a,c;if(Array.isArray(l))if(l.length===2)a=l[0],c=l[1];else throw new TypeError(`Expected [key, value] tuple: ${l}`);else if(l&&l instanceof Object){const u=Object.keys(l);if(u.length===1)a=u[0],c=l[a];else throw new TypeError(`Expected tuple with one key, not ${u.length} keys`)}else a=l;s.items.push(cl(a,c,n))}return s}const hl={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:nd,createNode:od};class fo extends Ln{constructor(){super(),this.add=ft.prototype.add.bind(this),this.delete=ft.prototype.delete.bind(this),this.get=ft.prototype.get.bind(this),this.has=ft.prototype.has.bind(this),this.set=ft.prototype.set.bind(this),this.tag=fo.tag}toJSON(e,n){if(!n)return super.toJSON(e);const o=new Map;n!=null&&n.onCreate&&n.onCreate(o);for(const s of this.items){let i,l;if(xe(s)?(i=dt(s.key,"",n),l=dt(s.value,i,n)):i=dt(s,"",n),o.has(i))throw new Error("Ordered maps must not include duplicate keys");o.set(i,l)}return o}static from(e,n,o){const s=od(e,n,o),i=new this;return i.items=s.items,i}}fo.tag="tag:yaml.org,2002:omap";const ml={collection:"seq",identify:t=>t instanceof Map,nodeClass:fo,default:!1,tag:"tag:yaml.org,2002:omap",resolve(t,e){const n=nd(t,e),o=[];for(const{key:s}of n.items)ce(s)&&(o.includes(s.value)?e(`Ordered maps must not include duplicate keys: ${s.value}`):o.push(s.value));return Object.assign(new fo,n)},createNode:(t,e,n)=>fo.from(t,e,n)};function rd({value:t,source:e},n){return e&&(t?sd:id).test.test(e)?e:t?n.options.trueStr:n.options.falseStr}const sd={identify:t=>t===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new X(!0),stringify:rd},id={identify:t=>t===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new X(!1),stringify:rd},Ay={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Ct},Ly={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify(t){const e=Number(t.value);return isFinite(e)?e.toExponential():Ct(t)}},Fy={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(t){const e=new X(parseFloat(t.replace(/_/g,""))),n=t.indexOf(".");if(n!==-1){const o=t.substring(n+1).replace(/_/g,"");o[o.length-1]==="0"&&(e.minFractionDigits=o.length)}return e},stringify:Ct},lr=t=>typeof t=="bigint"||Number.isInteger(t);function bs(t,e,n,{intAsBigInt:o}){const s=t[0];if((s==="-"||s==="+")&&(e+=1),t=t.substring(e).replace(/_/g,""),o){switch(n){case 2:t=`0b${t}`;break;case 8:t=`0o${t}`;break;case 16:t=`0x${t}`;break}const l=BigInt(t);return s==="-"?BigInt(-1)*l:l}const i=parseInt(t,n);return s==="-"?-1*i:i}function pl(t,e,n){const{value:o}=t;if(lr(o)){const s=o.toString(e);return o<0?"-"+n+s.substr(1):n+s}return Ct(t)}const My={identify:lr,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(t,e,n)=>bs(t,2,2,n),stringify:t=>pl(t,2,"0b")},Oy={identify:lr,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(t,e,n)=>bs(t,1,8,n),stringify:t=>pl(t,8,"0")},Dy={identify:lr,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(t,e,n)=>bs(t,0,10,n),stringify:Ct},vy={identify:lr,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(t,e,n)=>bs(t,2,16,n),stringify:t=>pl(t,16,"0x")};class ho extends ft{constructor(e){super(e),this.tag=ho.tag}add(e){let n;xe(e)?n=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?n=new He(e.key,null):n=new He(e,null),An(this.items,n.key)||this.items.push(n)}get(e,n){const o=An(this.items,e);return!n&&xe(o)?ce(o.key)?o.key.value:o.key:o}set(e,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const o=An(this.items,e);o&&!n?this.items.splice(this.items.indexOf(o),1):!o&&n&&this.items.push(new He(e))}toJSON(e,n){return super.toJSON(e,n,Set)}toString(e,n,o){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),n,o);throw new Error("Set items must all have null values")}static from(e,n,o){const{replacer:s}=o,i=new this(e);if(n&&Symbol.iterator in Object(n))for(let l of n)typeof s=="function"&&(l=s.call(n,l,l)),i.items.push(cl(l,null,o));return i}}ho.tag="tag:yaml.org,2002:set";const _l={collection:"map",identify:t=>t instanceof Set,nodeClass:ho,default:!1,tag:"tag:yaml.org,2002:set",createNode:(t,e,n)=>ho.from(t,e,n),resolve(t,e){if(tr(t)){if(t.hasAllNullValues(!0))return Object.assign(new ho,t);e("Set items must all have null values")}else e("Expected a mapping for this tag");return t}};function gl(t,e){const n=t[0],o=n==="-"||n==="+"?t.substring(1):t,s=l=>e?BigInt(l):Number(l),i=o.replace(/_/g,"").split(":").reduce((l,a)=>l*s(60)+s(a),s(0));return n==="-"?s(-1)*i:i}function ld(t){let{value:e}=t,n=l=>l;if(typeof e=="bigint")n=l=>BigInt(l);else if(isNaN(e)||!isFinite(e))return Ct(t);let o="";e<0&&(o="-",e*=n(-1));const s=n(60),i=[e%s];return e<60?i.unshift(0):(e=(e-i[0])/s,i.unshift(e%s),e>=60&&(e=(e-i[0])/s,i.unshift(e))),o+i.map(l=>String(l).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const ad={identify:t=>typeof t=="bigint"||Number.isInteger(t),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(t,e,{intAsBigInt:n})=>gl(t,n),stringify:ld},cd={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:t=>gl(t,!1),stringify:ld},ys={identify:t=>t instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(t){const e=t.match(ys.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,o,s,i,l,a]=e.map(Number),c=e[7]?Number((e[7]+"00").substr(1,3)):0;let u=Date.UTC(n,o-1,s,i||0,l||0,a||0,c);const d=e[8];if(d&&d!=="Z"){let f=gl(d,!1);Math.abs(f)<30&&(f*=60),u-=6e4*f}return new Date(u)},stringify:({value:t})=>(t==null?void 0:t.toISOString().replace(/(T00:00:00)?\.000Z$/,""))??""},ud=[co,uo,ms,ps,sd,id,My,Oy,Dy,vy,Ay,Ly,Fy,fl,qt,ml,hl,_l,ad,cd,ys],dd=new Map([["core",By],["failsafe",[co,uo,ms]],["json",Iy],["yaml11",ud],["yaml-1.1",ud]]),fd={binary:fl,bool:ul,float:Yu,floatExp:Zu,floatNaN:Ku,floatTime:cd,int:Ju,intHex:ed,intOct:Xu,intTime:ad,map:co,merge:qt,null:ps,omap:ml,pairs:hl,seq:uo,set:_l,timestamp:ys},Vy={"tag:yaml.org,2002:binary":fl,"tag:yaml.org,2002:merge":qt,"tag:yaml.org,2002:omap":ml,"tag:yaml.org,2002:pairs":hl,"tag:yaml.org,2002:set":_l,"tag:yaml.org,2002:timestamp":ys};function bl(t,e,n){const o=dd.get(e);if(o&&!t)return n&&!o.includes(qt)?o.concat(qt):o.slice();let s=o;if(!s)if(Array.isArray(t))s=[];else{const i=Array.from(dd.keys()).filter(l=>l!=="yaml11").map(l=>JSON.stringify(l)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${i} or define customTags array`)}if(Array.isArray(t))for(const i of t)s=s.concat(i);else typeof t=="function"&&(s=t(s.slice()));return n&&(s=s.concat(qt)),s.reduce((i,l)=>{const a=typeof l=="string"?fd[l]:l;if(!a){const c=JSON.stringify(l),u=Object.keys(fd).map(d=>JSON.stringify(d)).join(", ");throw new Error(`Unknown custom tag ${c}; use one of ${u}`)}return i.includes(a)||i.push(a),i},[])}const Py=(t,e)=>t.key<e.key?-1:t.key>e.key?1:0;class yl{constructor({compat:e,customTags:n,merge:o,resolveKnownTags:s,schema:i,sortMapEntries:l,toStringDefaults:a}){this.compat=Array.isArray(e)?bl(e,"compat"):e?bl(null,e):null,this.name=typeof i=="string"&&i||"core",this.knownTags=s?Vy:{},this.tags=bl(n,this.name,o),this.toStringOptions=a??null,Object.defineProperty(this,on,{value:co}),Object.defineProperty(this,Mt,{value:ms}),Object.defineProperty(this,oo,{value:uo}),this.sortMapEntries=typeof l=="function"?l:l===!0?Py:null}clone(){const e=Object.create(yl.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}function Ry(t,e){var c;const n=[];let o=e.directives===!0;if(e.directives!==!1&&t.directives){const u=t.directives.toString(t);u?(n.push(u),o=!0):t.directives.docStart&&(o=!0)}o&&n.push("---");const s=Hu(t,e),{commentString:i}=s.options;if(t.commentBefore){n.length!==1&&n.unshift("");const u=i(t.commentBefore);n.unshift(Ht(u,""))}let l=!1,a=null;if(t.contents){if(Se(t.contents)){if(t.contents.spaceBefore&&o&&n.push(""),t.contents.commentBefore){const f=i(t.contents.commentBefore);n.push(Ht(f,""))}s.forceBlockIndent=!!t.comment,a=t.contents.comment}const u=a?void 0:()=>l=!0;let d=ao(t.contents,s,()=>a=null,u);a&&(d+=In(d,"",i(a))),(d[0]==="|"||d[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${d}`:n.push(d)}else n.push(ao(t.contents,s));if((c=t.directives)!=null&&c.docEnd)if(t.comment){const u=i(t.comment);u.includes(`
|
|
55
|
+
`)?(n.push("..."),n.push(Ht(u,""))):n.push(`... ${u}`)}else n.push("...");else{let u=t.comment;u&&l&&(u=u.replace(/^\n+/,"")),u&&((!l||a)&&n[n.length-1]!==""&&n.push(""),n.push(Ht(i(u),"")))}return n.join(`
|
|
56
56
|
`)+`
|
|
57
|
-
`}class
|
|
58
|
-
`),l=a+l}if(/[^ ]/.test(l)){let a=1;const c=n.linePos[1];c&&c.line===
|
|
57
|
+
`}class ar{constructor(e,n,o){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,ut,{value:tl});let s=null;typeof n=="function"||Array.isArray(n)?s=n:o===void 0&&n&&(o=n,n=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},o);this.options=i;let{version:l}=i;o!=null&&o._directives?(this.directives=o._directives.atDocument(),this.directives.yaml.explicit&&(l=this.directives.yaml.version)):this.directives=new ze({version:l}),this.setSchema(l,o),this.contents=e===void 0?null:this.createNode(e,s,o)}clone(){const e=Object.create(ar.prototype,{[ut]:{value:tl}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=Se(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){mo(this.contents)&&this.contents.add(e)}addIn(e,n){mo(this.contents)&&this.contents.addIn(e,n)}createAlias(e,n){if(!e.anchor){const o=vu(this);e.anchor=!n||o.has(n)?Vu(n||"a",o):n}return new ol(e.anchor)}createNode(e,n,o){let s;if(typeof n=="function")e=n.call({"":e},"",e),s=n;else if(Array.isArray(n)){const _=y=>typeof y=="number"||y instanceof String||y instanceof Number,b=n.filter(_).map(String);b.length>0&&(n=n.concat(b)),s=n}else o===void 0&&n&&(o=n,n=void 0);const{aliasDuplicateObjects:i,anchorPrefix:l,flow:a,keepUndefined:c,onTagObj:u,tag:d}=o??{},{onAnchor:f,setAnchors:h,sourceObjects:m}=my(this,l||"a"),g={aliasDuplicateObjects:i??!0,keepUndefined:c??!1,onAnchor:f,onTagObj:u,replacer:s,schema:this.schema,sourceObjects:m},p=rr(e,d,g);return a&&Ce(p)&&(p.flow=!0),h(),p}createPair(e,n,o={}){const s=this.createNode(e,null,o),i=this.createNode(n,null,o);return new He(s,i)}delete(e){return mo(this.contents)?this.contents.delete(e):!1}deleteIn(e){return sr(e)?this.contents==null?!1:(this.contents=null,!0):mo(this.contents)?this.contents.deleteIn(e):!1}get(e,n){return Ce(this.contents)?this.contents.get(e,n):void 0}getIn(e,n){return sr(e)?!n&&ce(this.contents)?this.contents.value:this.contents:Ce(this.contents)?this.contents.getIn(e,n):void 0}has(e){return Ce(this.contents)?this.contents.has(e):!1}hasIn(e){return sr(e)?this.contents!==void 0:Ce(this.contents)?this.contents.hasIn(e):!1}set(e,n){this.contents==null?this.contents=ss(this.schema,[e],n):mo(this.contents)&&this.contents.set(e,n)}setIn(e,n){sr(e)?this.contents=n:this.contents==null?this.contents=ss(this.schema,Array.from(e),n):mo(this.contents)&&this.contents.setIn(e,n)}setSchema(e,n={}){typeof e=="number"&&(e=String(e));let o;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new ze({version:"1.1"}),o={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new ze({version:e}),o={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,o=null;break;default:{const s=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${s}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(o)this.schema=new yl(Object.assign(o,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:n,mapAsMap:o,maxAliasCount:s,onAnchor:i,reviver:l}={}){const a={anchors:new Map,doc:this,keep:!e,mapAsMap:o===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},c=dt(this.contents,n??"",a);if(typeof i=="function")for(const{count:u,res:d}of a.anchors.values())i(d,u);return typeof l=="function"?io(l,{"":c},"",c):c}toJSON(e,n){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:n})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const n=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return Ry(this,e)}}function mo(t){if(Ce(t))return!0;throw new Error("Expected a YAML collection as document contents")}class hd extends Error{constructor(e,n,o,s){super(),this.name=e,this.code=o,this.message=s,this.pos=n}}class cr extends hd{constructor(e,n,o){super("YAMLParseError",e,n,o)}}class Uy extends hd{constructor(e,n,o){super("YAMLWarning",e,n,o)}}const md=(t,e)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(a=>e.linePos(a));const{line:o,col:s}=n.linePos[0];n.message+=` at line ${o}, column ${s}`;let i=s-1,l=t.substring(e.lineStarts[o-1],e.lineStarts[o]).replace(/[\n\r]+$/,"");if(i>=60&&l.length>80){const a=Math.min(i-39,l.length-79);l="…"+l.substring(a),i-=a-1}if(l.length>80&&(l=l.substring(0,79)+"…"),o>1&&/^ *$/.test(l.substring(0,i))){let a=t.substring(e.lineStarts[o-2],e.lineStarts[o-1]);a.length>80&&(a=a.substring(0,79)+`…
|
|
58
|
+
`),l=a+l}if(/[^ ]/.test(l)){let a=1;const c=n.linePos[1];c&&c.line===o&&c.col>s&&(a=Math.max(1,Math.min(c.col-s,80-i)));const u=" ".repeat(i)+"^".repeat(a);n.message+=`:
|
|
59
59
|
|
|
60
60
|
${l}
|
|
61
61
|
${u}
|
|
62
|
-
`}};function
|
|
63
|
-
`))return!0;if(t.end){for(const e of t.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(const e of t.items){for(const n of e.start)if(n.type==="newline")return!0;if(e.sep){for(const n of e.sep)if(n.type==="newline")return!0}if(
|
|
64
|
-
`+
|
|
65
|
-
`+
|
|
66
|
-
`+
|
|
67
|
-
`+
|
|
68
|
-
`+B.comment:T.comment=B.comment);const $=new
|
|
69
|
-
`+
|
|
70
|
-
`.repeat(Math.max(1,l.length-1)):"";let
|
|
71
|
-
`;for(let
|
|
72
|
-
`):
|
|
73
|
-
`:!
|
|
62
|
+
`}};function po(t,{flow:e,indicator:n,next:o,offset:s,onError:i,parentIndent:l,startOnNewline:a}){let c=!1,u=a,d=a,f="",h="",m=!1,g=!1,p=null,_=null,b=null,y=null,w=null,k=null,S=null;for(const T of t)switch(g&&(T.type!=="space"&&T.type!=="newline"&&T.type!=="comma"&&i(T.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g=!1),p&&(u&&T.type!=="comment"&&T.type!=="newline"&&i(p,"TAB_AS_INDENT","Tabs are not allowed as indentation"),p=null),T.type){case"space":!e&&(n!=="doc-start"||(o==null?void 0:o.type)!=="flow-collection")&&T.source.includes(" ")&&(p=T),d=!0;break;case"comment":{d||i(T,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const B=T.source.substring(1)||" ";f?f+=h+B:f=B,h="",u=!1;break}case"newline":u?f?f+=T.source:(!k||n!=="seq-item-ind")&&(c=!0):h+=T.source,u=!0,m=!0,(_||b)&&(y=T),d=!0;break;case"anchor":_&&i(T,"MULTIPLE_ANCHORS","A node can have at most one anchor"),T.source.endsWith(":")&&i(T.offset+T.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),_=T,S??(S=T.offset),u=!1,d=!1,g=!0;break;case"tag":{b&&i(T,"MULTIPLE_TAGS","A node can have at most one tag"),b=T,S??(S=T.offset),u=!1,d=!1,g=!0;break}case n:(_||b)&&i(T,"BAD_PROP_ORDER",`Anchors and tags must be after the ${T.source} indicator`),k&&i(T,"UNEXPECTED_TOKEN",`Unexpected ${T.source} in ${e??"collection"}`),k=T,u=n==="seq-item-ind"||n==="explicit-key-ind",d=!1;break;case"comma":if(e){w&&i(T,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),w=T,u=!1,d=!1;break}default:i(T,"UNEXPECTED_TOKEN",`Unexpected ${T.type} token`),u=!1,d=!1}const C=t[t.length-1],x=C?C.offset+C.source.length:s;return g&&o&&o.type!=="space"&&o.type!=="newline"&&o.type!=="comma"&&(o.type!=="scalar"||o.source!=="")&&i(o.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),p&&(u&&p.indent<=l||(o==null?void 0:o.type)==="block-map"||(o==null?void 0:o.type)==="block-seq")&&i(p,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:w,found:k,spaceBefore:c,comment:f,hasNewline:m,anchor:_,tag:b,newlineAfterProp:y,end:x,start:S??x}}function ur(t){if(!t)return null;switch(t.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(t.source.includes(`
|
|
63
|
+
`))return!0;if(t.end){for(const e of t.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(const e of t.items){for(const n of e.start)if(n.type==="newline")return!0;if(e.sep){for(const n of e.sep)if(n.type==="newline")return!0}if(ur(e.key)||ur(e.value))return!0}return!1;default:return!0}}function wl(t,e,n){if((e==null?void 0:e.type)==="flow-collection"){const o=e.end[0];o.indent===t&&(o.source==="]"||o.source==="}")&&ur(e)&&n(o,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function pd(t,e,n){const{uniqueKeys:o}=t.options;if(o===!1)return!1;const s=typeof o=="function"?o:(i,l)=>i===l||ce(i)&&ce(l)&&i.value===l.value;return e.some(i=>s(i.key,n))}const _d="All mapping items must start at the same column";function zy({composeNode:t,composeEmptyNode:e},n,o,s,i){var d;const l=(i==null?void 0:i.nodeClass)??ft,a=new l(n.schema);n.atRoot&&(n.atRoot=!1);let c=o.offset,u=null;for(const f of o.items){const{start:h,key:m,sep:g,value:p}=f,_=po(h,{indicator:"explicit-key-ind",next:m??(g==null?void 0:g[0]),offset:c,onError:s,parentIndent:o.indent,startOnNewline:!0}),b=!_.found;if(b){if(m&&(m.type==="block-seq"?s(c,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in m&&m.indent!==o.indent&&s(c,"BAD_INDENT",_d)),!_.anchor&&!_.tag&&!g){u=_.end,_.comment&&(a.comment?a.comment+=`
|
|
64
|
+
`+_.comment:a.comment=_.comment);continue}(_.newlineAfterProp||ur(m))&&s(m??h[h.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((d=_.found)==null?void 0:d.indent)!==o.indent&&s(c,"BAD_INDENT",_d);n.atKey=!0;const y=_.end,w=m?t(n,m,_,s):e(n,y,h,null,_,s);n.schema.compat&&wl(o.indent,m,s),n.atKey=!1,pd(n,a.items,w)&&s(y,"DUPLICATE_KEY","Map keys must be unique");const k=po(g??[],{indicator:"map-value-ind",next:p,offset:w.range[2],onError:s,parentIndent:o.indent,startOnNewline:!m||m.type==="block-scalar"});if(c=k.end,k.found){b&&((p==null?void 0:p.type)==="block-map"&&!k.hasNewline&&s(c,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&_.start<k.found.offset-1024&&s(w.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const S=p?t(n,p,k,s):e(n,c,g,null,k,s);n.schema.compat&&wl(o.indent,p,s),c=S.range[2];const C=new He(w,S);n.options.keepSourceTokens&&(C.srcToken=f),a.items.push(C)}else{b&&s(w.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),k.comment&&(w.comment?w.comment+=`
|
|
65
|
+
`+k.comment:w.comment=k.comment);const S=new He(w);n.options.keepSourceTokens&&(S.srcToken=f),a.items.push(S)}}return u&&u<c&&s(u,"IMPOSSIBLE","Map comment with trailing content"),a.range=[o.offset,c,u??c],a}function Hy({composeNode:t,composeEmptyNode:e},n,o,s,i){const l=(i==null?void 0:i.nodeClass)??Ln,a=new l(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let c=o.offset,u=null;for(const{start:d,value:f}of o.items){const h=po(d,{indicator:"seq-item-ind",next:f,offset:c,onError:s,parentIndent:o.indent,startOnNewline:!0});if(!h.found)if(h.anchor||h.tag||f)f&&f.type==="block-seq"?s(h.end,"BAD_INDENT","All sequence items must start at the same column"):s(c,"MISSING_CHAR","Sequence item without - indicator");else{u=h.end,h.comment&&(a.comment=h.comment);continue}const m=f?t(n,f,h,s):e(n,h.end,d,null,h,s);n.schema.compat&&wl(o.indent,f,s),c=m.range[2],a.items.push(m)}return a.range=[o.offset,c,u??c],a}function dr(t,e,n,o){let s="";if(t){let i=!1,l="";for(const a of t){const{source:c,type:u}=a;switch(u){case"space":i=!0;break;case"comment":{n&&!i&&o(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const d=c.substring(1)||" ";s?s+=l+d:s=d,l="";break}case"newline":s&&(l+=c),i=!0;break;default:o(a,"UNEXPECTED_TOKEN",`Unexpected ${u} at node end`)}e+=c.length}}return{comment:s,offset:e}}const kl="Block collections are not allowed within flow collections",xl=t=>t&&(t.type==="block-map"||t.type==="block-seq");function qy({composeNode:t,composeEmptyNode:e},n,o,s,i){const l=o.start.source==="{",a=l?"flow map":"flow sequence",c=(i==null?void 0:i.nodeClass)??(l?ft:Ln),u=new c(n.schema);u.flow=!0;const d=n.atRoot;d&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let f=o.offset+o.start.source.length;for(let _=0;_<o.items.length;++_){const b=o.items[_],{start:y,key:w,sep:k,value:S}=b,C=po(y,{flow:a,indicator:"explicit-key-ind",next:w??(k==null?void 0:k[0]),offset:f,onError:s,parentIndent:o.indent,startOnNewline:!1});if(!C.found){if(!C.anchor&&!C.tag&&!k&&!S){_===0&&C.comma?s(C.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):_<o.items.length-1&&s(C.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),C.comment&&(u.comment?u.comment+=`
|
|
66
|
+
`+C.comment:u.comment=C.comment),f=C.end;continue}!l&&n.options.strict&&ur(w)&&s(w,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(_===0)C.comma&&s(C.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(C.comma||s(C.start,"MISSING_CHAR",`Missing , between ${a} items`),C.comment){let x="";e:for(const T of y)switch(T.type){case"comma":case"space":break;case"comment":x=T.source.substring(1);break e;default:break e}if(x){let T=u.items[u.items.length-1];xe(T)&&(T=T.value??T.key),T.comment?T.comment+=`
|
|
67
|
+
`+x:T.comment=x,C.comment=C.comment.substring(x.length+1)}}if(!l&&!k&&!C.found){const x=S?t(n,S,C,s):e(n,C.end,k,null,C,s);u.items.push(x),f=x.range[2],xl(S)&&s(x.range,"BLOCK_IN_FLOW",kl)}else{n.atKey=!0;const x=C.end,T=w?t(n,w,C,s):e(n,x,y,null,C,s);xl(w)&&s(T.range,"BLOCK_IN_FLOW",kl),n.atKey=!1;const B=po(k??[],{flow:a,indicator:"map-value-ind",next:S,offset:T.range[2],onError:s,parentIndent:o.indent,startOnNewline:!1});if(B.found){if(!l&&!C.found&&n.options.strict){if(k)for(const O of k){if(O===B.found)break;if(O.type==="newline"){s(O,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}C.start<B.found.offset-1024&&s(B.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else S&&("source"in S&&S.source&&S.source[0]===":"?s(S,"MISSING_CHAR",`Missing space after : in ${a}`):s(B.start,"MISSING_CHAR",`Missing , or : between ${a} items`));const N=S?t(n,S,B,s):B.found?e(n,B.end,k,null,B,s):null;N?xl(S)&&s(N.range,"BLOCK_IN_FLOW",kl):B.comment&&(T.comment?T.comment+=`
|
|
68
|
+
`+B.comment:T.comment=B.comment);const $=new He(T,N);if(n.options.keepSourceTokens&&($.srcToken=b),l){const O=u;pd(n,O.items,T)&&s(x,"DUPLICATE_KEY","Map keys must be unique"),O.items.push($)}else{const O=new ft(n.schema);O.flow=!0,O.items.push($);const F=(N??T).range;O.range=[T.range[0],F[1],F[2]],u.items.push(O)}f=N?N.range[2]:B.end}}const h=l?"}":"]",[m,...g]=o.end;let p=f;if(m&&m.source===h)p=m.offset+m.source.length;else{const _=a[0].toUpperCase()+a.substring(1),b=d?`${_} must end with a ${h}`:`${_} in block collection must be sufficiently indented and end with a ${h}`;s(f,d?"MISSING_CHAR":"BAD_INDENT",b),m&&m.source.length!==1&&g.unshift(m)}if(g.length>0){const _=dr(g,p,n.options.strict,s);_.comment&&(u.comment?u.comment+=`
|
|
69
|
+
`+_.comment:u.comment=_.comment),u.range=[o.offset,p,_.offset]}else u.range=[o.offset,p,p];return u}function Cl(t,e,n,o,s,i){const l=n.type==="block-map"?zy(t,e,n,o,i):n.type==="block-seq"?Hy(t,e,n,o,i):qy(t,e,n,o,i),a=l.constructor;return s==="!"||s===a.tagName?(l.tag=a.tagName,l):(s&&(l.tag=s),l)}function Wy(t,e,n,o,s){var h;const i=o.tag,l=i?e.directives.tagName(i.source,m=>s(i,"TAG_RESOLVE_FAILED",m)):null;if(n.type==="block-seq"){const{anchor:m,newlineAfterProp:g}=o,p=m&&i?m.offset>i.offset?m:i:m??i;p&&(!g||g.offset<p.offset)&&s(p,"MISSING_CHAR","Missing newline after block sequence props")}const a=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!i||!l||l==="!"||l===ft.tagName&&a==="map"||l===Ln.tagName&&a==="seq")return Cl(t,e,n,s,l);let c=e.schema.tags.find(m=>m.tag===l&&m.collection===a);if(!c){const m=e.schema.knownTags[l];if(m&&m.collection===a)e.schema.tags.push(Object.assign({},m,{default:!1})),c=m;else return m?s(i,"BAD_COLLECTION_TYPE",`${m.tag} used for ${a} collection, but expects ${m.collection??"scalar"}`,!0):s(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${l}`,!0),Cl(t,e,n,s,l)}const u=Cl(t,e,n,s,l,c),d=((h=c.resolve)==null?void 0:h.call(c,u,m=>s(i,"TAG_RESOLVE_FAILED",m),e.options))??u,f=Se(d)?d:new X(d);return f.range=u.range,f.tag=l,c!=null&&c.format&&(f.format=c.format),f}function jy(t,e,n){const o=e.offset,s=Gy(e,t.options.strict,n);if(!s)return{value:"",type:null,comment:"",range:[o,o,o]};const i=s.mode===">"?X.BLOCK_FOLDED:X.BLOCK_LITERAL,l=e.source?Ky(e.source):[];let a=l.length;for(let p=l.length-1;p>=0;--p){const _=l[p][1];if(_===""||_==="\r")a=p;else break}if(a===0){const p=s.chomp==="+"&&l.length>0?`
|
|
70
|
+
`.repeat(Math.max(1,l.length-1)):"";let _=o+s.length;return e.source&&(_+=e.source.length),{value:p,type:i,comment:s.comment,range:[o,_,_]}}let c=e.indent+s.indent,u=e.offset+s.length,d=0;for(let p=0;p<a;++p){const[_,b]=l[p];if(b===""||b==="\r")s.indent===0&&_.length>c&&(c=_.length);else{_.length<c&&n(u+_.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),s.indent===0&&(c=_.length),d=p,c===0&&!t.atRoot&&n(u,"BAD_INDENT","Block scalar values in collections must be indented");break}u+=_.length+b.length+1}for(let p=l.length-1;p>=a;--p)l[p][0].length>c&&(a=p+1);let f="",h="",m=!1;for(let p=0;p<d;++p)f+=l[p][0].slice(c)+`
|
|
71
|
+
`;for(let p=d;p<a;++p){let[_,b]=l[p];u+=_.length+b.length+1;const y=b[b.length-1]==="\r";if(y&&(b=b.slice(0,-1)),b&&_.length<c){const k=`Block scalar lines must not be less indented than their ${s.indent?"explicit indentation indicator":"first line"}`;n(u-b.length-(y?2:1),"BAD_INDENT",k),_=""}i===X.BLOCK_LITERAL?(f+=h+_.slice(c)+b,h=`
|
|
72
|
+
`):_.length>c||b[0]===" "?(h===" "?h=`
|
|
73
|
+
`:!m&&h===`
|
|
74
74
|
`&&(h=`
|
|
75
75
|
|
|
76
|
-
`),f+=h+
|
|
77
|
-
`,
|
|
76
|
+
`),f+=h+_.slice(c)+b,h=`
|
|
77
|
+
`,m=!0):b===""?h===`
|
|
78
78
|
`?f+=`
|
|
79
79
|
`:h=`
|
|
80
|
-
`:(f+=h+
|
|
81
|
-
`+l[
|
|
80
|
+
`:(f+=h+b,h=" ",m=!1)}switch(s.chomp){case"-":break;case"+":for(let p=a;p<l.length;++p)f+=`
|
|
81
|
+
`+l[p][0].slice(c);f[f.length-1]!==`
|
|
82
82
|
`&&(f+=`
|
|
83
83
|
`);break;default:f+=`
|
|
84
|
-
`}const g=
|
|
84
|
+
`}const g=o+s.length+e.source.length;return{value:f,type:i,comment:s.comment,range:[o,g,g]}}function Gy({offset:t,props:e},n,o){if(e[0].type!=="block-scalar-header")return o(e[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:s}=e[0],i=s[0];let l=0,a="",c=-1;for(let h=1;h<s.length;++h){const m=s[h];if(!a&&(m==="-"||m==="+"))a=m;else{const g=Number(m);!l&&g?l=g:c===-1&&(c=t+h)}}c!==-1&&o(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${s}`);let u=!1,d="",f=s.length;for(let h=1;h<e.length;++h){const m=e[h];switch(m.type){case"space":u=!0;case"newline":f+=m.source.length;break;case"comment":n&&!u&&o(m,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),f+=m.source.length,d=m.source.substring(1);break;case"error":o(m,"UNEXPECTED_TOKEN",m.message),f+=m.source.length;break;default:{const g=`Unexpected token in block scalar header: ${m.type}`;o(m,"UNEXPECTED_TOKEN",g);const p=m.source;p&&typeof p=="string"&&(f+=p.length)}}}return{mode:i,indent:l,chomp:a,comment:d,length:f}}function Ky(t){const e=t.split(/\n( *)/),n=e[0],o=n.match(/^( *)/),i=[o!=null&&o[1]?[o[1],n.slice(o[1].length)]:["",n]];for(let l=1;l<e.length;l+=2)i.push([e[l],e[l+1]]);return i}function Zy(t,e,n){const{offset:o,type:s,source:i,end:l}=t;let a,c;const u=(h,m,g)=>n(o+h,m,g);switch(s){case"scalar":a=X.PLAIN,c=Yy(i,u);break;case"single-quoted-scalar":a=X.QUOTE_SINGLE,c=Qy(i,u);break;case"double-quoted-scalar":a=X.QUOTE_DOUBLE,c=Xy(i,u);break;default:return n(t,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${s}`),{value:"",type:null,comment:"",range:[o,o+i.length,o+i.length]}}const d=o+i.length,f=dr(l,d,e,n);return{value:c,type:a,comment:f.comment,range:[o,d,f.offset]}}function Yy(t,e){let n="";switch(t[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${t[0]}`;break}case"@":case"`":{n=`reserved character ${t[0]}`;break}}return n&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),gd(t)}function Qy(t,e){return(t[t.length-1]!=="'"||t.length===1)&&e(t.length,"MISSING_CHAR","Missing closing 'quote"),gd(t.slice(1,-1)).replace(/''/g,"'")}function gd(t){let e,n;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
85
85
|
`,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
86
|
-
`,"sy")}catch{e=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let
|
|
86
|
+
`,"sy")}catch{e=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let o=e.exec(t);if(!o)return t;let s=o[1],i=" ",l=e.lastIndex;for(n.lastIndex=l;o=n.exec(t);)o[1]===""?i===`
|
|
87
87
|
`?s+=i:i=`
|
|
88
|
-
`:(s+=i+
|
|
88
|
+
`:(s+=i+o[1],i=" "),l=n.lastIndex;const a=/[ \t]*(.*)/sy;return a.lastIndex=l,o=a.exec(t),s+i+((o==null?void 0:o[1])??"")}function Xy(t,e){let n="";for(let o=1;o<t.length-1;++o){const s=t[o];if(!(s==="\r"&&t[o+1]===`
|
|
89
89
|
`))if(s===`
|
|
90
|
-
`){const{fold:i,offset:l}=
|
|
91
|
-
`)for(i=t[
|
|
92
|
-
`)for(i=t[++
|
|
93
|
-
`&&!(l==="\r"&&t[
|
|
94
|
-
`)&&(n+=
|
|
95
|
-
`||
|
|
96
|
-
`);)
|
|
90
|
+
`){const{fold:i,offset:l}=Jy(t,o);n+=i,o=l}else if(s==="\\"){let i=t[++o];const l=ew[i];if(l)n+=l;else if(i===`
|
|
91
|
+
`)for(i=t[o+1];i===" "||i===" ";)i=t[++o+1];else if(i==="\r"&&t[o+1]===`
|
|
92
|
+
`)for(i=t[++o+1];i===" "||i===" ";)i=t[++o+1];else if(i==="x"||i==="u"||i==="U"){const a={x:2,u:4,U:8}[i];n+=tw(t,o+1,a,e),o+=a}else{const a=t.substr(o-1,2);e(o-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),n+=a}}else if(s===" "||s===" "){const i=o;let l=t[o+1];for(;l===" "||l===" ";)l=t[++o+1];l!==`
|
|
93
|
+
`&&!(l==="\r"&&t[o+2]===`
|
|
94
|
+
`)&&(n+=o>i?t.slice(i,o+1):s)}else n+=s}return(t[t.length-1]!=='"'||t.length===1)&&e(t.length,"MISSING_CHAR",'Missing closing "quote'),n}function Jy(t,e){let n="",o=t[e+1];for(;(o===" "||o===" "||o===`
|
|
95
|
+
`||o==="\r")&&!(o==="\r"&&t[e+2]!==`
|
|
96
|
+
`);)o===`
|
|
97
97
|
`&&(n+=`
|
|
98
|
-
`),e+=1,
|
|
99
|
-
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function
|
|
98
|
+
`),e+=1,o=t[e+1];return n||(n=" "),{fold:n,offset:e}}const ew={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
99
|
+
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function tw(t,e,n,o){const s=t.substr(e,n),l=s.length===n&&/^[0-9a-fA-F]+$/.test(s)?parseInt(s,16):NaN;if(isNaN(l)){const a=t.substr(e-2,n+2);return o(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}return String.fromCodePoint(l)}function bd(t,e,n,o){const{value:s,type:i,comment:l,range:a}=e.type==="block-scalar"?jy(t,e,o):Zy(e,t.options.strict,o),c=n?t.directives.tagName(n.source,f=>o(n,"TAG_RESOLVE_FAILED",f)):null;let u;t.options.stringKeys&&t.atKey?u=t.schema[Mt]:c?u=nw(t.schema,s,c,n,o):e.type==="scalar"?u=ow(t,s,e,o):u=t.schema[Mt];let d;try{const f=u.resolve(s,h=>o(n??e,"TAG_RESOLVE_FAILED",h),t.options);d=ce(f)?f:new X(f)}catch(f){const h=f instanceof Error?f.message:String(f);o(n??e,"TAG_RESOLVE_FAILED",h),d=new X(s)}return d.range=a,d.source=s,i&&(d.type=i),c&&(d.tag=c),u.format&&(d.format=u.format),l&&(d.comment=l),d}function nw(t,e,n,o,s){var a;if(n==="!")return t[Mt];const i=[];for(const c of t.tags)if(!c.collection&&c.tag===n)if(c.default&&c.test)i.push(c);else return c;for(const c of i)if((a=c.test)!=null&&a.test(e))return c;const l=t.knownTags[n];return l&&!l.collection?(t.tags.push(Object.assign({},l,{default:!1,test:void 0})),l):(s(o,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),t[Mt])}function ow({atKey:t,directives:e,schema:n},o,s,i){const l=n.tags.find(a=>{var c;return(a.default===!0||t&&a.default==="key")&&((c=a.test)==null?void 0:c.test(o))})||n[Mt];if(n.compat){const a=n.compat.find(c=>{var u;return c.default&&((u=c.test)==null?void 0:u.test(o))})??n[Mt];if(l.tag!==a.tag){const c=e.tagString(l.tag),u=e.tagString(a.tag),d=`Value may be parsed as either ${c} or ${u}`;i(s,"TAG_RESOLVE_FAILED",d,!0)}}return l}function rw(t,e,n){if(e){n??(n=e.length);for(let o=n-1;o>=0;--o){let s=e[o];switch(s.type){case"space":case"comment":case"newline":t-=s.source.length;continue}for(s=e[++o];(s==null?void 0:s.type)==="space";)t+=s.source.length,s=e[++o];break}}return t}const sw={composeNode:yd,composeEmptyNode:Sl};function yd(t,e,n,o){const s=t.atKey,{spaceBefore:i,comment:l,anchor:a,tag:c}=n;let u,d=!0;switch(e.type){case"alias":u=iw(t,e,o),(a||c)&&o(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":u=bd(t,e,c,o),a&&(u.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":u=Wy(sw,t,e,n,o),a&&(u.anchor=a.source.substring(1));break;default:{const f=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;o(e,"UNEXPECTED_TOKEN",f),u=Sl(t,e.offset,void 0,null,n,o),d=!1}}return a&&u.anchor===""&&o(a,"BAD_ALIAS","Anchor cannot be an empty string"),s&&t.options.stringKeys&&(!ce(u)||typeof u.value!="string"||u.tag&&u.tag!=="tag:yaml.org,2002:str")&&o(c??e,"NON_STRING_KEY","With stringKeys, all keys must be strings"),i&&(u.spaceBefore=!0),l&&(e.type==="scalar"&&e.source===""?u.comment=l:u.commentBefore=l),t.options.keepSourceTokens&&d&&(u.srcToken=e),u}function Sl(t,e,n,o,{spaceBefore:s,comment:i,anchor:l,tag:a,end:c},u){const d={type:"scalar",offset:rw(e,n,o),indent:-1,source:""},f=bd(t,d,a,u);return l&&(f.anchor=l.source.substring(1),f.anchor===""&&u(l,"BAD_ALIAS","Anchor cannot be an empty string")),s&&(f.spaceBefore=!0),i&&(f.comment=i,f.range[2]=c),f}function iw({options:t},{offset:e,source:n,end:o},s){const i=new ol(n.substring(1));i.source===""&&s(e,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&s(e+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const l=e+n.length,a=dr(o,l,t.strict,s);return i.range=[e,l,a.offset],a.comment&&(i.comment=a.comment),i}function lw(t,e,{offset:n,start:o,value:s,end:i},l){const a=Object.assign({_directives:e},t),c=new ar(void 0,a),u={atKey:!1,atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},d=po(o,{indicator:"doc-start",next:s??(i==null?void 0:i[0]),offset:n,onError:l,parentIndent:0,startOnNewline:!0});d.found&&(c.directives.docStart=!0,s&&(s.type==="block-map"||s.type==="block-seq")&&!d.hasNewline&&l(d.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=s?yd(u,s,d,l):Sl(u,d.end,o,null,d,l);const f=c.contents.range[2],h=dr(i,f,!1,l);return h.comment&&(c.comment=h.comment),c.range=[n,f,h.offset],c}function fr(t){if(typeof t=="number")return[t,t+1];if(Array.isArray(t))return t.length===2?t:[t[0],t[1]];const{offset:e,source:n}=t;return[e,e+(typeof n=="string"?n.length:1)]}function wd(t){var s;let e="",n=!1,o=!1;for(let i=0;i<t.length;++i){const l=t[i];switch(l[0]){case"#":e+=(e===""?"":o?`
|
|
100
100
|
|
|
101
101
|
`:`
|
|
102
|
-
`)+(l.substring(1)||" "),n=!0,
|
|
103
|
-
${
|
|
104
|
-
${a}`:
|
|
105
|
-
${l}`:
|
|
106
|
-
${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new
|
|
102
|
+
`)+(l.substring(1)||" "),n=!0,o=!1;break;case"%":((s=t[i+1])==null?void 0:s[0])!=="#"&&(i+=1),n=!1;break;default:n||(o=!0),n=!1}}return{comment:e,afterEmptyLine:o}}class aw{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,o,s,i)=>{const l=fr(n);i?this.warnings.push(new Uy(l,o,s)):this.errors.push(new cr(l,o,s))},this.directives=new ze({version:e.version||"1.2"}),this.options=e}decorate(e,n){const{comment:o,afterEmptyLine:s}=wd(this.prelude);if(o){const i=e.contents;if(n)e.comment=e.comment?`${e.comment}
|
|
103
|
+
${o}`:o;else if(s||e.directives.docStart||!i)e.commentBefore=o;else if(Ce(i)&&!i.flow&&i.items.length>0){let l=i.items[0];xe(l)&&(l=l.key);const a=l.commentBefore;l.commentBefore=a?`${o}
|
|
104
|
+
${a}`:o}else{const l=i.commentBefore;i.commentBefore=l?`${o}
|
|
105
|
+
${l}`:o}}n?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:wd(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,n=!1,o=-1){for(const s of e)yield*this.next(s);yield*this.end(n,o)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(n,o,s)=>{const i=fr(e);i[0]+=n,this.onError(i,"BAD_DIRECTIVE",o,s)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const n=lw(this.options,this.directives,e,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const n=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,o=new cr(fr(e),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(o):this.doc.errors.push(o);break}case"doc-end":{if(!this.doc){const o="Unexpected doc-end without preceding document";this.errors.push(new cr(fr(e),"UNEXPECTED_TOKEN",o));break}this.doc.directives.docEnd=!0;const n=dr(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const o=this.doc.comment;this.doc.comment=o?`${o}
|
|
106
|
+
${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new cr(fr(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const o=Object.assign({_directives:this.directives},this.options),s=new ar(void 0,o);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),s.range=[0,n,n],this.decorate(s,!1),yield s}}}const kd="\uFEFF",xd="",Cd="",El="";function cw(t){switch(t){case kd:return"byte-order-mark";case xd:return"doc-mode";case Cd:return"flow-error-end";case El:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
|
107
107
|
`:case`\r
|
|
108
|
-
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(t[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function
|
|
109
|
-
`:case"\r":case" ":return!0;default:return!1}}const
|
|
110
|
-
\r `),
|
|
108
|
+
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(t[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function St(t){switch(t){case void 0:case" ":case`
|
|
109
|
+
`:case"\r":case" ":return!0;default:return!1}}const Sd=new Set("0123456789ABCDEFabcdef"),uw=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),ws=new Set(",[]{}"),dw=new Set(` ,[]{}
|
|
110
|
+
\r `),Tl=t=>!t||dw.has(t);class fw{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,n=!1){if(e){if(typeof e!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!n;let o=this.next??"stream";for(;o&&(n||this.hasChars(1));)o=yield*this.parseNext(o)}atLineEnd(){let e=this.pos,n=this.buffer[e];for(;n===" "||n===" ";)n=this.buffer[++e];return!n||n==="#"||n===`
|
|
111
111
|
`?!0:n==="\r"?this.buffer[e+1]===`
|
|
112
|
-
`:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let n=this.buffer[e];if(this.indentNext>0){let
|
|
113
|
-
`||!s&&!this.atEnd)return e+
|
|
114
|
-
`||
|
|
115
|
-
`,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]==="\r"&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===
|
|
116
|
-
`,this.pos);if(s!==-1){for(;s!==-1;){const i=this.continueScalar(s+1);if(i===-1)break;s=
|
|
117
|
-
`,i)}s!==-1&&(n=s-(
|
|
112
|
+
`:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let n=this.buffer[e];if(this.indentNext>0){let o=0;for(;n===" ";)n=this.buffer[++o+e];if(n==="\r"){const s=this.buffer[o+e+1];if(s===`
|
|
113
|
+
`||!s&&!this.atEnd)return e+o+1}return n===`
|
|
114
|
+
`||o>=this.indentNext||!n&&!this.atEnd?e+o:-1}if(n==="-"||n==="."){const o=this.buffer.substr(e,3);if((o==="---"||o==="...")&&St(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!="number"||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
|
|
115
|
+
`,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]==="\r"&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===kd&&(yield*this.pushCount(1),e=e.substring(1)),e[0]==="%"){let n=e.length,o=e.indexOf("#");for(;o!==-1;){const i=e[o-1];if(i===" "||i===" "){n=o-1;break}else o=e.indexOf("#",o+1)}for(;;){const i=e[n-1];if(i===" "||i===" ")n-=1;else break}const s=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-s),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-n),yield*this.pushNewline(),"stream"}return yield xd,yield*this.parseLineStart()}*parseLineStart(){const e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if(e==="-"||e==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if((n==="---"||n==="...")&&St(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,n==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!St(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&St(n)){const o=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=o,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(e===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(e[n]){case"#":yield*this.pushCount(e.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Tl),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,n,o=-1;do e=yield*this.pushNewline(),e>0?(n=yield*this.pushSpaces(!1),this.indentValue=o=n):n=0,n+=yield*this.pushSpaces(!0);while(e+n>0);const s=this.getLine();if(s===null)return this.setNext("flow");if((o!==-1&&o<this.indentNext&&s[0]!=="#"||o===0&&(s.startsWith("---")||s.startsWith("..."))&&St(s[3]))&&!(o===this.indentNext-1&&this.flowLevel===1&&(s[0]==="]"||s[0]==="}")))return this.flowLevel=0,yield Cd,yield*this.parseLineStart();let i=0;for(;s[i]===",";)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),s[i]){case void 0:return"flow";case"#":return yield*this.pushCount(s.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Tl),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const l=this.charAt(1);if(this.flowKey||St(l)||l===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let n=this.buffer.indexOf(e,this.pos+1);if(e==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let i=0;for(;this.buffer[n-1-i]==="\\";)i+=1;if(i%2===0)break;n=this.buffer.indexOf('"',n+1)}const o=this.buffer.substring(0,n);let s=o.indexOf(`
|
|
116
|
+
`,this.pos);if(s!==-1){for(;s!==-1;){const i=this.continueScalar(s+1);if(i===-1)break;s=o.indexOf(`
|
|
117
|
+
`,i)}s!==-1&&(n=s-(o[s-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){const n=this.buffer[++e];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>St(n)||n==="#")}*parseBlockScalar(){let e=this.pos-1,n=0,o;e:for(let i=this.pos;o=this.buffer[i];++i)switch(o){case" ":n+=1;break;case`
|
|
118
118
|
`:e=i,n=0;break;case"\r":{const l=this.buffer[i+1];if(!l&&!this.atEnd)return this.setNext("block-scalar");if(l===`
|
|
119
|
-
`)break}default:break e}if(!
|
|
120
|
-
`,i)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let s=e+1;for(
|
|
121
|
-
`;)
|
|
122
|
-
`&&i>=this.pos&&i+1+n>a)e=i;else break}while(!0);return yield
|
|
123
|
-
`?(
|
|
124
|
-
`,i=this.buffer[
|
|
125
|
-
`){const l=this.continueScalar(
|
|
119
|
+
`)break}default:break e}if(!o&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const i=this.continueScalar(e+1);if(i===-1)break;e=this.buffer.indexOf(`
|
|
120
|
+
`,i)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let s=e+1;for(o=this.buffer[s];o===" ";)o=this.buffer[++s];if(o===" "){for(;o===" "||o===" "||o==="\r"||o===`
|
|
121
|
+
`;)o=this.buffer[++s];e=s-1}else if(!this.blockScalarKeep)do{let i=e-1,l=this.buffer[i];l==="\r"&&(l=this.buffer[--i]);const a=i;for(;l===" ";)l=this.buffer[--i];if(l===`
|
|
122
|
+
`&&i>=this.pos&&i+1+n>a)e=i;else break}while(!0);return yield El,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let n=this.pos-1,o=this.pos-1,s;for(;s=this.buffer[++o];)if(s===":"){const i=this.buffer[o+1];if(St(i)||e&&ws.has(i))break;n=o}else if(St(s)){let i=this.buffer[o+1];if(s==="\r"&&(i===`
|
|
123
|
+
`?(o+=1,s=`
|
|
124
|
+
`,i=this.buffer[o+1]):n=o),i==="#"||e&&ws.has(i))break;if(s===`
|
|
125
|
+
`){const l=this.continueScalar(o+1);if(l===-1)break;o=Math.max(o,l-2)}}else{if(e&&ws.has(s))break;n=o}return!s&&!this.atEnd?this.setNext("plain-scalar"):(yield El,yield*this.pushToIndex(n+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,n){const o=this.buffer.slice(this.pos,e);return o?(yield o,this.pos+=o.length,o.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Tl))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,n=this.charAt(1);if(St(n)||e&&ws.has(n))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,n=this.buffer[e];for(;!St(n)&&n!==">";)n=this.buffer[++e];return yield*this.pushToIndex(n===">"?e+1:e,!1)}else{let e=this.pos+1,n=this.buffer[e];for(;n;)if(uw.has(n))n=this.buffer[++e];else if(n==="%"&&Sd.has(this.buffer[e+1])&&Sd.has(this.buffer[e+2]))n=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return e===`
|
|
126
126
|
`?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===`
|
|
127
|
-
`?yield*this.pushCount(2):0}*pushSpaces(e){let n=this.pos-1,
|
|
127
|
+
`?yield*this.pushCount(2):0}*pushSpaces(e){let n=this.pos-1,o;do o=this.buffer[++n];while(o===" "||e&&o===" ");const s=n-this.pos;return s>0&&(yield this.buffer.substr(this.pos,s),this.pos=n),s}*pushUntil(e){let n=this.pos,o=this.buffer[n];for(;!e(o);)o=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class hw{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let n=0,o=this.lineStarts.length;for(;n<o;){const i=n+o>>1;this.lineStarts[i]<e?n=i+1:o=i}if(this.lineStarts[n]===e)return{line:n+1,col:1};if(n===0)return{line:0,col:e};const s=this.lineStarts[n-1];return{line:n,col:e-s+1}}}}function rn(t,e){for(let n=0;n<t.length;++n)if(t[n].type===e)return!0;return!1}function Ed(t){for(let e=0;e<t.length;++e)switch(t[e].type){case"space":case"comment":case"newline":break;default:return e}return-1}function Td(t){switch(t==null?void 0:t.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function ks(t){switch(t.type){case"document":return t.start;case"block-map":{const e=t.items[t.items.length-1];return e.sep??e.start}case"block-seq":return t.items[t.items.length-1].start;default:return[]}}function _o(t){var n;if(t.length===0)return[];let e=t.length;e:for(;--e>=0;)switch(t[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((n=t[++e])==null?void 0:n.type)==="space";);return t.splice(e,t.length)}function Bd(t){if(t.start.type==="flow-seq-start")for(const e of t.items)e.sep&&!e.value&&!rn(e.start,"explicit-key-ind")&&!rn(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,Td(e.value)?e.value.end?Array.prototype.push.apply(e.value.end,e.sep):e.value.end=e.sep:Array.prototype.push.apply(e.start,e.sep),delete e.sep)}class mw{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new fw,this.onNewLine=e}*parse(e,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const o of this.lexer.lex(e,n))yield*this.next(o);n||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}const n=cw(e);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const o=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:o,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const n=e??this.stack.pop();if(!n)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield n;else{const o=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in o?o.indent:0:n.type==="flow-collection"&&o.type==="document"&&(n.indent=0),n.type==="flow-collection"&&Bd(n),o.type){case"document":o.value=n;break;case"block-scalar":o.props.push(n);break;case"block-map":{const s=o.items[o.items.length-1];if(s.value){o.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(s.sep)s.value=n;else{Object.assign(s,{key:n,sep:[]}),this.onKeyLine=!s.explicitKey;return}break}case"block-seq":{const s=o.items[o.items.length-1];s.value?o.items.push({start:[],value:n}):s.value=n;break}case"flow-collection":{const s=o.items[o.items.length-1];!s||s.value?o.items.push({start:[],key:n,sep:[]}):s.sep?s.value=n:Object.assign(s,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((o.type==="document"||o.type==="block-map"||o.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const s=n.items[n.items.length-1];s&&!s.sep&&!s.value&&s.start.length>0&&Ed(s.start)===-1&&(n.indent===0||s.start.every(i=>i.type!=="comment"||i.indent<n.indent))&&(o.type==="document"?o.end=s.start:o.items.push({start:s.start}),n.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{Ed(e.start)!==-1?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}const n=this.startBlockValue(e);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type==="map-value-ind"){const n=ks(this.peek(2)),o=_o(n);let s;e.end?(s=e.end,s.push(this.sourceToken),delete e.end):s=[this.sourceToken];const i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:o,key:e,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
|
|
128
128
|
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
129
|
-
`,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){var
|
|
129
|
+
`,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){var o;const n=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const s="end"in n.value?n.value.end:void 0,i=Array.isArray(s)?s[s.length-1]:void 0;(i==null?void 0:i.type)==="comment"?s==null||s.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,e.indent)){const s=e.items[e.items.length-2],i=(o=s==null?void 0:s.value)==null?void 0:o.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),e.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const s=!this.onKeyLine&&this.indent===e.indent,i=s&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let l=[];if(i&&n.sep&&!n.value){const a=[];for(let c=0;c<n.sep.length;++c){const u=n.sep[c];switch(u.type){case"newline":a.push(c);break;case"space":break;case"comment":u.indent>e.indent&&(a.length=0);break;default:a.length=0}}a.length>=2&&(l=n.sep.splice(a[1]))}switch(this.type){case"anchor":case"tag":i||n.value?(l.push(this.sourceToken),e.items.push({start:l}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):i||n.value?(l.push(this.sourceToken),e.items.push({start:l,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(rn(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:l,key:null,sep:[this.sourceToken]}]});else if(Td(n.key)&&!rn(n.sep,"newline")){const a=_o(n.start),c=n.key,u=n.sep;u.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:c,sep:u}]})}else l.length>0?n.sep=n.sep.concat(l,this.sourceToken):n.sep.push(this.sourceToken);else if(rn(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const a=_o(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||i?e.items.push({start:l,key:null,sep:[this.sourceToken]}):rn(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const a=this.flowScalar(this.type);i||n.value?(e.items.push({start:l,key:a,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(a):(Object.assign(n,{key:a,sep:[]}),this.onKeyLine=!0);return}default:{const a=this.startBlockValue(e);if(a){if(a.type==="block-seq"){if(!n.explicitKey&&n.sep&&!rn(n.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else s&&e.items.push({start:l});this.stack.push(a);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){var o;const n=e.items[e.items.length-1];switch(this.type){case"newline":if(n.value){const s="end"in n.value?n.value.end:void 0,i=Array.isArray(s)?s[s.length-1]:void 0;(i==null?void 0:i.type)==="comment"?s==null||s.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,e.indent)){const s=e.items[e.items.length-2],i=(o=s==null?void 0:s.value)==null?void 0:o.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),e.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=e.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;n.value||rn(n.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>e.indent){const s=this.startBlockValue(e);if(s){this.stack.push(s);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){const n=e.items[e.items.length-1];if(this.type==="flow-error-end"){let o;do yield*this.pop(),o=this.peek(1);while(o&&o.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?e.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?e.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);!n||n.value?e.items.push({start:[],key:s,sep:[]}):n.sep?this.stack.push(s):Object.assign(n,{key:s,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const o=this.startBlockValue(e);o?this.stack.push(o):(yield*this.pop(),yield*this.step())}else{const o=this.peek(2);if(o.type==="block-map"&&(this.type==="map-value-ind"&&o.indent===e.indent||this.type==="newline"&&!o.items[o.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&o.type!=="flow-collection"){const s=ks(o),i=_o(s);Bd(e);const l=e.end.splice(1,e.end.length);l.push(this.sourceToken);const a={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:i,key:e,sep:l}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let n=this.source.indexOf(`
|
|
130
130
|
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
131
|
-
`,n)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=
|
|
131
|
+
`,n)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=ks(e),o=_o(n);return o.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=ks(e),o=_o(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,n){return this.type!=="comment"||this.indent<=n?!1:e.every(o=>o.type==="newline"||o.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function pw(t){const e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new hw||null,prettyErrors:e}}function _w(t,e={}){const{lineCounter:n,prettyErrors:o}=pw(e),s=new mw(n==null?void 0:n.addNewLine),i=new aw(e);let l=null;for(const a of i.compose(s.parse(t),!0,t.length))if(!l)l=a;else if(l.options.logLevel!=="silent"){l.errors.push(new cr(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return o&&n&&(l.errors.forEach(md(t,n)),l.warnings.forEach(md(t,n))),l}function hr(t,e,n){let o;const s=_w(t,n);if(!s)return null;if(s.warnings.forEach(i=>qu(s.options.logLevel,i)),s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];s.errors=[]}return s.toJS(Object.assign({reviver:o},n))}function xs(t,e,n){let o=null;if(Array.isArray(e)&&(o=e),t===void 0){const{keepUndefined:s}={};if(!s)return}return er(t)&&!o?t.toString(n):new ar(t,o,n).toString(n)}function Cs(t){return new Promise(e=>setTimeout(e,t))}function gw(t){return JSON.parse(JSON.stringify(t))}async function bw(t,e=1e3){for(;!await t();)await Cs(e)}function Bl(t,e){return new Promise(n=>{t.value===e&&n(),r.watch(t,o=>{o===e&&n()})})}const Ss={};function Nl(t,e){return Ss[t]||(Ss[t]=0),async function(...n){const o=++Ss[t],s=await e(...n);if(o===Ss[t])return s}}function yw(t,e,n){return Math.max(t,Math.min(e,n))}function ww(t){return t*621371e-9}function kw(t){return t/621371e-9}function xw(t){const e=t.split(",");if(e.length===2){const n=parseFloat(e[0].trim()),o=parseFloat(e[1].trim());if(!isNaN(n)&&!isNaN(o))return{lat:n,lng:o}}return null}function Nd(t){return t=(t||"New Item").trim(),t.match(/(\d+)$/)?t.replace(/\d+$/,n=>""+(parseInt(n)+1)):`${t} 1`}function $d(t){if(typeof t=="object")return!0;if(!t)return!1;try{return JSON.parse(t),!0}catch{return!1}}function $l(t){if(!t)return t;try{return JSON.stringify(typeof t=="object"?t:JSON.parse(t),null,2)}catch{return t}}function Id(t){if(!t)return null;if(typeof t=="object")return t;try{return JSON.parse(Es(t))}catch{return!1}}function Ad(t){if(!t)return null;try{return hr(Es(t))||(t?void 0:null)}catch{return!1}}function Es(t){return t.replace(/^```[a-z0-9]{0,6}\s/,"").replace(/```$/,"")}function Cw(t,e){if(typeof e=="object"||$d(e))switch(t){case"yaml":e=xs(typeof e=="string"?JSON.parse(e):e);break;case"ts":default:e=$l(e)}return e=e||"",new RegExp(`^\\s*\`\`\`${t}\\s`).test(e)?e:(e=Es(e),`\`\`\`${t}
|
|
132
132
|
${e}
|
|
133
|
-
\`\`\``)}function
|
|
134
|
-
`);
|
|
135
|
-
`),n=[];let
|
|
136
|
-
`)}function
|
|
137
|
-
`)[0];c=u.length>a?u.slice(0,a)+"...":u}return c})}}function
|
|
138
|
-
`)+1,a=s.substring(l),c=a.match(/^[\t ]*/);return{indent:c?c[0]:"",lineContent:a}}function
|
|
139
|
-
`+
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
`)
|
|
143
|
-
`)
|
|
144
|
-
`)}
|
|
145
|
-
`)
|
|
146
|
-
`)}function my(t,e){const n=Object.entries(t).sort((s,i)=>s[1].index-i[1].index);let r='<section class="footnotes"><hr /><ol class="footnote-list">';for(const[s,i]of n)r+=`<li id="fn-${s}" class="footnote-item">`,r+=nt(i.content,e),r+=` <a href="#fnref-${s}" class="footnote-backref">↩</a>`,r+="</li>";return r+="</ol></section>",r}function Ku(t,e){if(!t)return"";const n=(e==null?void 0:e.sanitize)??!0,r=(e==null?void 0:e.preserveState)??!1;r||ol();const s=is(t);let i=Kr(s,n);const l=ss();return!r&&Object.keys(l).length>0&&(i+=my(l,n)),i}const py={class:"dx-markdown-content"},gy={key:1,class:"dx-markdown-code-block"},by=["innerHTML"],yy=["innerHTML"],wy={key:3},ky=["innerHTML"],xy={key:0},Cy=["innerHTML"],Sy=["start"],Ey=["innerHTML"],Ty=["start"],By=["innerHTML"],Ny={key:0},Iy=["innerHTML"],$y=["start"],Fy=["innerHTML"],Ay={key:5,class:"task-list"},Dy=["checked"],Oy=["innerHTML"],My={key:6},Vy=["innerHTML"],Ly=["innerHTML"],Py={key:7},vy=["innerHTML"],Ry=["innerHTML"],Uy={key:8},zy=["innerHTML"],qy={key:0,class:"footnotes"},Hy={class:"footnote-list"},jy=["id"],Gy=["innerHTML"],Wy=["href"],Xu=o.defineComponent({__name:"MarkdownContent",props:{content:{default:""},defaultCodeFormat:{}},setup(t){const e=t,n=o.reactive({}),r=o.reactive({}),s=o.computed(()=>e.content?(ol(),is(e.content)):[]),i=o.computed(()=>(s.value,ss())),l=o.computed(()=>Object.keys(i.value).length>0),a=o.computed(()=>Object.entries(i.value).sort((p,y)=>p[1].index-y[1].index).map(([p,y])=>({id:p,content:y.content,index:y.index})));function c(p){if(!p)return!1;const y=p.toLowerCase();return y==="json"||y==="yaml"}function u(p,y){if(n[p])return n[p];const b=y==null?void 0:y.toLowerCase();return e.defaultCodeFormat&&(b==="json"||b==="yaml")?e.defaultCodeFormat:b||"text"}function d(p,y,b){const w=u(p,b);if(w===b||!c(b))return y;try{let C;if(b==="json"?C=JSON.parse(y):b==="yaml"&&(C=Yr(y)),C!==void 0){if(w==="json")return JSON.stringify(C,null,2);if(w==="yaml")return ts(C)}}catch{}return y}function f(p,y){var E;const b=s.value[p];if((b==null?void 0:b.type)!=="code_block")return;const w=((E=b.language)==null?void 0:E.toLowerCase())||"json",C=u(p,w);if(C!==y)try{const k=r[p]||d(p,b.content,w);let S;C==="json"?S=JSON.parse(k):S=Yr(k),y==="json"?r[p]=JSON.stringify(S,null,2):r[p]=ts(S),n[p]=y}catch{n[p]=y}}function h(p,y,b){const w=u(p,b),C=(b==null?void 0:b.toLowerCase())||"text",E=r[p]||d(p,y,C);switch(w){case"json":return Ji(E);case"yaml":return el(E);default:return E.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}}function _(p){return nt(p,!0)}function g(p){let y=nt(p.content,!0);if(p.children&&p.children.length>0){for(const b of p.children)if(b.type==="ul"){const w=b.items.map(C=>`<li>${g(C)}</li>`).join("");y+=`<ul>${w}</ul>`}else if(b.type==="ol"){const w=b.items.map(E=>`<li>${g(E)}</li>`).join(""),C=b.start!==1?` start="${b.start}"`:"";y+=`<ol${C}>${w}</ol>`}}return y}function m(p){return Ku(p,{preserveState:!0})}return(p,y)=>(o.openBlock(),o.createElementBlock("div",py,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,(b,w)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:w},[b.type==="heading"?(o.openBlock(),o.createBlock(o.resolveDynamicComponent("h"+b.level),{key:0,innerHTML:_(b.content)},null,8,["innerHTML"])):b.type==="code_block"?(o.openBlock(),o.createElementBlock("div",gy,[c(b.language)?(o.openBlock(),o.createBlock(Qr,{key:0,format:u(w,b.language),"available-formats":["json","yaml"],toggleable:!0,onChange:C=>f(w,C)},null,8,["format","onChange"])):b.language?(o.openBlock(),o.createBlock(Qr,{key:1,format:b.language,"available-formats":[],toggleable:!1},null,8,["format"])):o.createCommentVNode("",!0),o.createElementVNode("pre",null,[o.createElementVNode("code",{class:o.normalizeClass("language-"+u(w,b.language)),innerHTML:h(w,b.content,b.language)},null,10,by)])])):b.type==="blockquote"?(o.openBlock(),o.createElementBlock("blockquote",{key:2,innerHTML:m(b.content)},null,8,yy)):b.type==="ul"?(o.openBlock(),o.createElementBlock("ul",wy,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(b.items,(C,E)=>(o.openBlock(),o.createElementBlock("li",{key:E},[o.createElementVNode("span",{innerHTML:_(C.content)},null,8,ky),C.children&&C.children.length>0?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(C.children,(k,S)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:"child-"+S},[k.type==="ul"?(o.openBlock(),o.createElementBlock("ul",xy,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(k.items,(T,B)=>(o.openBlock(),o.createElementBlock("li",{key:B,innerHTML:g(T)},null,8,Cy))),128))])):k.type==="ol"?(o.openBlock(),o.createElementBlock("ol",{key:1,start:k.start},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(k.items,(T,B)=>(o.openBlock(),o.createElementBlock("li",{key:B,innerHTML:g(T)},null,8,Ey))),128))],8,Sy)):o.createCommentVNode("",!0)],64))),128)):o.createCommentVNode("",!0)]))),128))])):b.type==="ol"?(o.openBlock(),o.createElementBlock("ol",{key:4,start:b.start},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(b.items,(C,E)=>(o.openBlock(),o.createElementBlock("li",{key:E},[o.createElementVNode("span",{innerHTML:_(C.content)},null,8,By),C.children&&C.children.length>0?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(C.children,(k,S)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:"child-"+S},[k.type==="ul"?(o.openBlock(),o.createElementBlock("ul",Ny,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(k.items,(T,B)=>(o.openBlock(),o.createElementBlock("li",{key:B,innerHTML:g(T)},null,8,Iy))),128))])):k.type==="ol"?(o.openBlock(),o.createElementBlock("ol",{key:1,start:k.start},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(k.items,(T,B)=>(o.openBlock(),o.createElementBlock("li",{key:B,innerHTML:g(T)},null,8,Fy))),128))],8,$y)):o.createCommentVNode("",!0)],64))),128)):o.createCommentVNode("",!0)]))),128))],8,Ty)):b.type==="task_list"?(o.openBlock(),o.createElementBlock("ul",Ay,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(b.items,(C,E)=>(o.openBlock(),o.createElementBlock("li",{key:E,class:"task-list-item"},[o.createElementVNode("input",{type:"checkbox",checked:C.checked,disabled:""},null,8,Dy),o.createElementVNode("span",{innerHTML:_(C.content)},null,8,Oy)]))),128))])):b.type==="table"?(o.openBlock(),o.createElementBlock("table",My,[o.createElementVNode("thead",null,[o.createElementVNode("tr",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(b.headers,(C,E)=>(o.openBlock(),o.createElementBlock("th",{key:E,style:o.normalizeStyle(b.alignments[E]?{textAlign:b.alignments[E]}:{}),innerHTML:_(C)},null,12,Vy))),128))])]),o.createElementVNode("tbody",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(b.rows,(C,E)=>(o.openBlock(),o.createElementBlock("tr",{key:E},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(C,(k,S)=>(o.openBlock(),o.createElementBlock("td",{key:S,style:o.normalizeStyle(b.alignments[S]?{textAlign:b.alignments[S]}:{}),innerHTML:_(k)},null,12,Ly))),128))]))),128))])])):b.type==="dl"?(o.openBlock(),o.createElementBlock("dl",Py,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(b.items,(C,E)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:E},[o.createElementVNode("dt",{innerHTML:_(C.term)},null,8,vy),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(C.definitions,(k,S)=>(o.openBlock(),o.createElementBlock("dd",{key:"def-"+S,innerHTML:_(k)},null,8,Ry))),128))],64))),128))])):b.type==="hr"?(o.openBlock(),o.createElementBlock("hr",Uy)):b.type==="paragraph"?(o.openBlock(),o.createElementBlock("p",{key:9,innerHTML:_(b.content).replace(/\n/g,"<br />")},null,8,zy)):o.createCommentVNode("",!0)],64))),128)),l.value?(o.openBlock(),o.createElementBlock("section",qy,[y[0]||(y[0]=o.createElementVNode("hr",null,null,-1)),o.createElementVNode("ol",Hy,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,b=>(o.openBlock(),o.createElementBlock("li",{key:b.id,id:"fn-"+b.id,class:"footnote-item"},[o.createElementVNode("span",{innerHTML:_(b.content)},null,8,Gy),o.createElementVNode("a",{href:"#fnref-"+b.id,class:"footnote-backref"},"↩",8,Wy)],8,jy))),128))])])):o.createCommentVNode("",!0)]))}}),Zy={key:2,class:"code-wrapper relative flex flex-col flex-1 min-h-0"},Yy=["innerHTML"],ll=o.defineComponent({__name:"CodeViewer",props:{modelValue:{default:null},format:{default:"yaml"},label:{default:""},editorClass:{default:""},canEdit:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},collapsible:{type:Boolean,default:!1},defaultCollapsed:{type:Boolean,default:!0},defaultCodeFormat:{}},emits:["update:modelValue","update:format","update:editable"],setup(t,{expose:e,emit:n}){const r=t,s=n,i=Vu({initialFormat:r.format,initialValue:r.modelValue}),l=o.ref(r.format),a=o.ref(null),c=o.ref(r.collapsible&&r.defaultCollapsed);o.watch(()=>r.defaultCollapsed,m=>{r.collapsible&&(c.value=m)});function u(){c.value=!c.value}o.watch(l,m=>{i.setFormat(m)}),o.watch(()=>r.format,m=>{l.value=m}),o.watch(()=>r.modelValue,()=>{i.setValue(r.modelValue),d.syncEditingContentFromValue()});const d=qu({codeRef:a,codeFormat:i,currentFormat:l,canEdit:o.toRef(r,"canEdit"),editable:o.toRef(r,"editable"),onEmitModelValue:m=>s("update:modelValue",m),onEmitEditable:m=>s("update:editable",m)});o.watch(()=>r.editable,m=>{d.syncEditableFromProp(m)});const{collapsedPreview:f}=Uu({modelValue:o.toRef(r,"modelValue"),format:l,displayContent:d.displayContent,codeFormat:i});function h(m){l.value=m,s("update:format",m),d.updateEditingContentOnFormatChange()}const _=o.computed(()=>typeof r.modelValue=="string"?r.modelValue:d.displayContent.value),g=o.computed(()=>d.isValid.value);return e({isValid:g}),(m,p)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["dx-code-viewer group flex flex-col",{"is-collapsed":c.value}])},[m.label?(o.openBlock(),o.createBlock(ht,{key:0,class:"mb-2 text-sm flex-shrink-0",label:m.label},null,8,["label"])):o.createCommentVNode("",!0),m.collapsible&&c.value?(o.openBlock(),o.createBlock(Hu,{key:1,preview:o.unref(f),format:l.value,"available-formats":l.value==="json"||l.value==="yaml"?["json","yaml"]:l.value==="text"||l.value==="markdown"?["text","markdown"]:[],onExpand:u,onFormatChange:h},null,8,["preview","format","available-formats"])):(o.openBlock(),o.createElementBlock("div",Zy,[o.createVNode(Qr,{format:l.value,"available-formats":l.value==="json"||l.value==="yaml"?["json","yaml"]:l.value==="text"||l.value==="markdown"?["text","markdown"]:[],toggleable:!0,onClick:p[0]||(p[0]=o.withModifiers(()=>{},["stop"])),onChange:h},null,8,["format","available-formats"]),m.collapsible?(o.openBlock(),o.createElementBlock("div",{key:0,class:"collapse-toggle absolute top-0 left-0 p-1 cursor-pointer z-10 text-gray-500 hover:text-gray-300",onClick:u},[o.createVNode(o.unref(U1),{class:"w-3 h-3"})])):o.createCommentVNode("",!0),m.collapsible?(o.openBlock(),o.createElementBlock("div",{key:1,class:"collapse-header",onClick:u})):o.createCommentVNode("",!0),!o.unref(d).isEditing.value&&l.value!=="markdown"?(o.openBlock(),o.createElementBlock("pre",{key:2,class:o.normalizeClass(["code-content dx-scrollbar flex-1 min-h-0",[m.editorClass,{"is-collapsible":m.collapsible}]])},[o.createElementVNode("code",{class:o.normalizeClass("language-"+l.value),innerHTML:o.unref(d).highlightedContent.value},null,10,Yy)],2)):l.value==="markdown"&&!o.unref(d).isEditing.value?(o.openBlock(),o.createBlock(Xu,{key:3,content:_.value,"default-code-format":m.defaultCodeFormat,class:o.normalizeClass(["code-content dx-scrollbar flex-1 min-h-0",[m.editorClass,{"is-collapsible":m.collapsible}]])},null,8,["content","default-code-format","class"])):(o.openBlock(),o.createElementBlock("pre",{key:4,ref_key:"codeRef",ref:a,class:o.normalizeClass(["code-content dx-scrollbar flex-1 min-h-0 is-editable",[m.editorClass,"language-"+l.value,{"is-collapsible":m.collapsible}]]),contenteditable:"true",onInput:p[1]||(p[1]=(...y)=>o.unref(d).onContentEditableInput&&o.unref(d).onContentEditableInput(...y)),onBlur:p[2]||(p[2]=(...y)=>o.unref(d).onContentEditableBlur&&o.unref(d).onContentEditableBlur(...y)),onKeydown:p[3]||(p[3]=(...y)=>o.unref(d).onKeyDown&&o.unref(d).onKeyDown(...y))},null,34)),o.createVNode(ju,{"char-count":o.unref(d).charCount.value,"validation-error":o.unref(d).validationError.value,"can-edit":m.canEdit&&l.value!=="markdown","is-editing":o.unref(d).isEditing.value,onToggleEdit:o.unref(d).toggleEdit},null,8,["char-count","validation-error","can-edit","is-editing","onToggleEdit"])]))],2))}}),Qy={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"};function Ky(t,e){return o.openBlock(),o.createElementBlock("svg",Qy,e[0]||(e[0]=[o.createElementVNode("path",{fill:"currentColor",d:"M10 12 6 8h8z"},null,-1)]))}const Ju={render:Ky},Xy={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function Jy(t,e){return o.openBlock(),o.createElementBlock("svg",Xy,e[0]||(e[0]=[o.createElementVNode("path",{fill:"currentColor",d:"M7.5 16q-.625 0-1.062-.438A1.44 1.44 0 0 1 6 14.5q0-.625.438-1.062A1.44 1.44 0 0 1 7.5 13q.625 0 1.062.438Q9 13.875 9 14.5t-.438 1.062A1.44 1.44 0 0 1 7.5 16m5 0q-.625 0-1.062-.438A1.44 1.44 0 0 1 11 14.5q0-.625.438-1.062A1.44 1.44 0 0 1 12.5 13q.625 0 1.062.438.438.437.438 1.062t-.438 1.062A1.44 1.44 0 0 1 12.5 16m-5-4.5q-.625 0-1.062-.438A1.44 1.44 0 0 1 6 10q0-.625.438-1.062A1.44 1.44 0 0 1 7.5 8.5q.625 0 1.062.438Q9 9.375 9 10t-.438 1.062A1.44 1.44 0 0 1 7.5 11.5m5 0q-.625 0-1.062-.438A1.44 1.44 0 0 1 11 10q0-.625.438-1.062A1.44 1.44 0 0 1 12.5 8.5q.625 0 1.062.438Q14 9.375 14 10t-.438 1.062a1.44 1.44 0 0 1-1.062.438M7.5 7q-.625 0-1.062-.438A1.44 1.44 0 0 1 6 5.5q0-.625.438-1.062A1.44 1.44 0 0 1 7.5 4q.625 0 1.062.438Q9 4.875 9 5.5t-.438 1.062A1.44 1.44 0 0 1 7.5 7m5 0q-.625 0-1.062-.438A1.44 1.44 0 0 1 11 5.5q0-.625.438-1.062A1.44 1.44 0 0 1 12.5 4q.625 0 1.062.438Q14 4.875 14 5.5t-.438 1.062A1.44 1.44 0 0 1 12.5 7"},null,-1)]))}const ed={render:Jy},e2={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 7 16"};function t2(t,e){return o.openBlock(),o.createElementBlock("svg",e2,e[0]||(e[0]=[o.createElementVNode("path",{fill:"currentColor",d:"M.5 1v14c0 .55.45 1 1 1s1-.45 1-1V1c0-.55-.45-1-1-1S.5.45.5 1m6 14V1c0-.55-.45-1-1-1s-1 .45-1 1v14c0 .55.45 1 1 1s1-.45 1-1"},null,-1)]))}const td={render:t2},n2={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function r2(t,e){return o.openBlock(),o.createElementBlock("svg",n2,e[0]||(e[0]=[o.createElementVNode("path",{fill:"currentColor",d:"M9.167 17.5v-5h1.666v1.667H17.5v1.666h-6.667V17.5zM2.5 15.833v-1.666h5v1.666zM5.833 12.5v-1.667H2.5V9.167h3.333V7.5H7.5v5zm3.334-1.667V9.167H17.5v1.666zM12.5 7.5v-5h1.667v1.667H17.5v1.666h-3.333V7.5zm-10-1.667V4.167h8.333v1.666z"},null,-1)]))}const nd={render:r2},qe=(t,e)=>{const n=t.__vccOpts||t;for(const[r,s]of e)n[r]=s;return n},o2={},s2={viewBox:"0 0 47 65",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"};function i2(t,e){return o.openBlock(),o.createElementBlock("svg",s2,e[0]||(e[0]=[o.createStaticVNode('<defs><linearGradient id="gdoc-gradient" x1="50%" y1="8.59%" x2="50%" y2="100%"><stop stop-color="#1A237E" stop-opacity="0.2" offset="0%"></stop><stop stop-color="#1A237E" stop-opacity="0.02" offset="100%"></stop></linearGradient><radialGradient id="gdoc-radial" cx="3.17%" cy="2.72%" r="161.25%"><stop stop-color="#FFFFFF" stop-opacity="0.1" offset="0%"></stop><stop stop-color="#FFFFFF" stop-opacity="0" offset="100%"></stop></radialGradient></defs><path d="M29.375,0 L4.406,0 C1.983,0 0,1.994 0,4.432 L0,60.568 C0,63.006 1.983,65 4.406,65 L42.594,65 C45.017,65 47,63.006 47,60.568 L47,17.727 L36.719,10.341 L29.375,0 Z" fill="#4285F4"></path><polygon fill="url(#gdoc-gradient)" points="30.664 16.431 47 32.858 47 17.727"></polygon><path d="M11.75,47.273 L35.25,47.273 L35.25,44.318 L11.75,44.318 L11.75,47.273 Z M11.75,53.182 L29.375,53.182 L29.375,50.227 L11.75,50.227 L11.75,53.182 Z M11.75,32.5 L11.75,35.455 L35.25,35.455 L35.25,32.5 L11.75,32.5 Z M11.75,41.364 L35.25,41.364 L35.25,38.409 L11.75,38.409 L11.75,41.364 Z" fill="#F1F1F1"></path><path d="M29.375,0 L29.375,13.295 C29.375,15.744 31.347,17.727 33.781,17.727 L47,17.727 L29.375,0 Z" fill="#A1C2FA"></path><path d="M4.406,0 C1.983,0 0,1.994 0,4.432 L0,4.801 C0,2.364 1.983,0.369 4.406,0.369 L29.375,0.369 L29.375,0 L4.406,0 Z" fill="#FFFFFF" fill-opacity="0.2"></path><path d="M42.594,64.631 L4.406,64.631 C1.983,64.631 0,62.636 0,60.199 L0,60.568 C0,63.006 1.983,65 4.406,65 L42.594,65 C45.017,65 47,63.006 47,60.568 L47,60.199 C47,62.636 45.017,64.631 42.594,64.631 Z" fill="#1A237E" fill-opacity="0.2"></path><path d="M33.781,17.727 C31.347,17.727 29.375,15.744 29.375,13.295 L29.375,13.665 C29.375,16.113 31.347,18.097 33.781,18.097 L47,18.097 L47,17.727 L33.781,17.727 Z" fill="#1A237E" fill-opacity="0.1"></path><path d="M29.375,0 L4.406,0 C1.983,0 0,1.994 0,4.432 L0,60.568 C0,63.006 1.983,65 4.406,65 L42.594,65 C45.017,65 47,63.006 47,60.568 L47,17.727 L29.375,0 Z" fill="url(#gdoc-radial)"></path>',9)]))}const rd=qe(o2,[["render",i2]]),l2={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function a2(t,e){return o.openBlock(),o.createElementBlock("svg",l2,e[0]||(e[0]=[o.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M17.859 18.558c.394 0 .713-.32.713-.714V2.141a.714.714 0 0 0-.713-.713H2.156a.714.714 0 0 0-.714.713v15.703c0 .394.32.714.714.714zM20 17.844a2.14 2.14 0 0 1-2.141 2.141H2.156a2.14 2.14 0 0 1-2.141-2.14V2.14C.015.96.973.001 2.156.001h15.703C19.04 0 20 .958 20 2.14z","clip-rule":"evenodd"},null,-1),o.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M13.205 4.996a1.784 1.784 0 1 0 0 3.569 1.784 1.784 0 0 0 0-3.57M9.993 6.78a3.212 3.212 0 1 1 6.424 0 3.212 3.212 0 0 1-6.424 0M2.848 9.993A11.22 11.22 0 0 1 14.12 19.14a.714.714 0 0 1-1.403.264 9.79 9.79 0 0 0-9.846-7.984h-.018c-.673-.001-1.344.061-2.005.188a.714.714 0 1 1-.268-1.402 12 12 0 0 1 2.268-.213","clip-rule":"evenodd"},null,-1),o.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M10.954 13.82c1.5-.645 3.117-.976 4.75-.972 1.29 0 2.573.21 3.796.622a.714.714 0 1 1-.456 1.353 10.4 10.4 0 0 0-3.34-.548h-.002a10.55 10.55 0 0 0-4.185.856.714.714 0 1 1-.563-1.312","clip-rule":"evenodd"},null,-1)]))}const al={render:a2},c2={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 550.801 550.801"};function u2(t,e){return o.openBlock(),o.createElementBlock("svg",c2,e[0]||(e[0]=[o.createElementVNode("path",{d:"M160.381 282.225c0-14.832-10.299-23.684-28.474-23.684-7.414 0-12.437.715-15.071 1.432V307.6c3.114.707 6.942.949 12.192.949 19.391 0 31.353-9.809 31.353-26.324M272.875 259.019c-8.145 0-13.397.717-16.519 1.435v105.523c3.116.729 8.142.729 12.69.729 33.017.231 54.554-17.946 54.554-56.474.242-33.513-19.385-51.213-50.725-51.213"},null,-1),o.createElementVNode("path",{d:"M488.426 197.019H475.2v-63.816c0-.398-.063-.799-.116-1.202-.021-2.534-.827-5.023-2.562-6.995L366.325 3.694c-.032-.031-.063-.042-.085-.076-.633-.707-1.371-1.295-2.151-1.804a10 10 0 0 0-.706-.419 11 11 0 0 0-2.131-.896c-.2-.056-.38-.138-.58-.19A10.8 10.8 0 0 0 358.193 0H97.2C85.282 0 75.6 9.693 75.6 21.601v175.413H62.377c-17.049 0-30.873 13.818-30.873 30.873v160.545c0 17.043 13.824 30.87 30.873 30.87h13.224V529.2c0 11.907 9.682 21.601 21.6 21.601h356.4c11.907 0 21.6-9.693 21.6-21.601V419.302h13.226c17.044 0 30.871-13.827 30.871-30.87v-160.54c-.001-17.054-13.828-30.873-30.872-30.873M97.2 21.605h250.193v110.513c0 5.967 4.841 10.8 10.8 10.8H453.6v54.108H97.2zm265.159 287.418c0 30.876-11.243 52.165-26.82 65.333-16.971 14.117-42.82 20.814-74.396 20.814-18.9 0-32.297-1.197-41.401-2.389V234.365c13.399-2.149 30.878-3.346 49.304-3.346 30.612 0 50.478 5.508 66.039 17.226 16.743 12.445 27.274 32.302 27.274 60.778M80.7 393.499V234.365c11.241-1.904 27.042-3.346 49.296-3.346 22.491 0 38.527 4.308 49.291 12.928 10.292 8.131 17.215 21.534 17.215 37.328 0 15.799-5.25 29.198-14.829 38.285-12.442 11.728-30.865 16.996-52.407 16.996-4.778 0-9.1-.243-12.435-.723v57.67H80.7zm372.901 129.854H97.2V419.302h356.4v104.051zm31.297-261.226h-61.989v36.851h57.913v29.674h-57.913V393.5h-36.593V232.216h98.582z"},null,-1)]))}const od={render:u2},d2={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",fill:"currentColor",viewBox:"0 0 394.4 394.4"};function f2(t,e){return o.openBlock(),o.createElementBlock("svg",d2,e[0]||(e[0]=[o.createElementVNode("path",{d:"M37.4 377.4a20.33 20.33 0 0 1-14.423-5.977c-7.97-7.963-7.97-20.883 0-28.846l319.6-319.601c7.97-7.97 20.876-7.97 28.846 0 7.97 7.962 7.97 20.882 0 28.845l-319.6 319.601A20.32 20.32 0 0 1 37.4 377.4m357-78.201c0-52.496-42.704-95.199-95.2-95.199S204 246.703 204 299.199s42.704 95.201 95.2 95.201 95.2-42.705 95.2-95.201m-40.799 0c0 29.996-24.405 54.4-54.4 54.4s-54.4-24.404-54.4-54.4c0-29.994 24.405-54.398 54.4-54.398s54.4 24.404 54.4 54.398M190.4 95.2C190.4 42.704 147.696 0 95.2 0S0 42.704 0 95.2s42.704 95.2 95.2 95.2 95.2-42.704 95.2-95.2m-40.8 0c0 29.995-24.405 54.4-54.4 54.4s-54.4-24.405-54.4-54.4 24.405-54.4 54.4-54.4 54.4 24.406 54.4 54.4"},null,-1)]))}const sd={render:f2},_2={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function h2(t,e){return o.openBlock(),o.createElementBlock("svg",_2,e[0]||(e[0]=[o.createElementVNode("path",{fill:"currentColor",d:"M16.5 18V6h2v12zm-11 0V6l9 6z"},null,-1)]))}const id={render:h2},m2={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function p2(t,e){return o.openBlock(),o.createElementBlock("svg",m2,e[0]||(e[0]=[o.createElementVNode("path",{fill:"currentColor",d:"M5.5 18V6h2v12zm13 0-9-6 9-6z"},null,-1)]))}const ld={render:p2},g2={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 16 18"};function b2(t,e){return o.openBlock(),o.createElementBlock("svg",g2,e[0]||(e[0]=[o.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m13.833 4.833-.722 10.119a1.667 1.667 0 0 1-1.663 1.548H4.552a1.667 1.667 0 0 1-1.663-1.548L2.167 4.833m4.166 3.334v5m3.334-5v5m.833-8.334v-2.5a.833.833 0 0 0-.833-.833H6.333a.833.833 0 0 0-.833.833v2.5m-4.167 0h13.334"},null,-1)]))}const ls={render:b2},y2={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function w2(t,e){return o.openBlock(),o.createElementBlock("svg",y2,e[0]||(e[0]=[o.createElementVNode("path",{fill:"currentColor",d:"M0 18.273 10 1l10 17.273zm3.136-1.819h13.728L10 4.637zM10 15.545a.88.88 0 0 0 .648-.261.88.88 0 0 0 .261-.648.88.88 0 0 0-.26-.647.88.88 0 0 0-.649-.262.88.88 0 0 0-.647.262.88.88 0 0 0-.262.647q0 .387.262.648.261.261.647.261m-.91-2.727h1.82V8.273H9.09z"},null,-1)]))}const ad={render:w2},k2={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 17 17"};function x2(t,e){return o.openBlock(),o.createElementBlock("svg",k2,e[0]||(e[0]=[o.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M16.822.178a.607.607 0 0 1 0 .858L1.036 16.822a.607.607 0 1 1-.858-.858L15.964.178a.607.607 0 0 1 .858 0","clip-rule":"evenodd"},null,-1),o.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M.178.178a.607.607 0 0 1 .858 0l15.786 15.786a.607.607 0 0 1-.858.858L.178 1.036a.607.607 0 0 1 0-.858","clip-rule":"evenodd"},null,-1)]))}const rr={render:x2},C2={class:"dx-previous-next-controls"},cd={__name:"PreviousNextControls",props:{isLoading:Boolean},emits:["next"],setup(t){return(e,n)=>{const r=o.resolveComponent("QBtn");return o.openBlock(),o.createElementBlock("div",C2,[o.createVNode(r,{class:"dx-control dx-control-previous border border-solid !rounded-r-none !p-2 !min-w-0",disable:t.isLoading,loading:t.isLoading,onClick:n[0]||(n[0]=s=>e.$emit("next",-1))},{default:o.withCtx(()=>[o.createVNode(o.unref(ld),{class:"w-6"})]),_:1},8,["disable","loading"]),o.createVNode(r,{class:"dx-control dx-control-next border border-solid border-l-0 !rounded-l-none !p-2 !min-w-0",disable:t.isLoading,loading:t.isLoading,onClick:n[1]||(n[1]=s=>e.$emit("next",1))},{default:o.withCtx(()=>[o.createVNode(o.unref(id),{class:"w-6"})]),_:1},8,["disable","loading"])])}}};function S2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10 19l-7-7m0 0l7-7m-7 7h18"})])}function ud(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})])}function E2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"})])}function as(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 19l-7-7 7-7"})])}function dd(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 5l7 7-7 7"})])}function T2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}function B2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})])}function N2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})])}function I2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})])}function $2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"})])}function F2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})])}function fd(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 4v16M17 4v16M3 8h4m10 0h4M3 12h18M3 16h4m10 0h4M4 20h16a1 1 0 001-1V5a1 1 0 00-1-1H4a1 1 0 00-1 1v14a1 1 0 001 1z"})])}function A2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 20l4-16m2 16l4-16M6 9h14M4 15h14"})])}function D2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})])}function O2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z"}),o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}function M2(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4v16m8-8H4"})])}function _d(t,e){return o.openBlock(),o.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[o.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})])}const V2={class:"flex-grow"},L2={key:1,class:"dx-dialog-subtitle"},P2={class:"flex dx-dialog-actions"},hd=o.defineComponent({__name:"DialogLayout",props:{modelValue:{type:[String,Boolean,Object]},title:{default:""},titleClass:{default:""},subtitle:{default:""},content:{default:""},backdropDismiss:{type:Boolean},maximized:{type:Boolean},fullWidth:{type:Boolean},fullHeight:{type:Boolean},contentClass:{default:""}},emits:["close"],setup(t,{emit:e}){const n=e;function r(){n("close")}return(s,i)=>{const l=o.resolveComponent("QCardSection"),a=o.resolveComponent("QCard"),c=o.resolveComponent("QDialog");return o.openBlock(),o.createBlock(c,{class:"dx-dialog","full-height":s.fullHeight,"full-width":s.fullWidth,"model-value":!0,"no-backdrop-dismiss":!s.backdropDismiss,maximized:s.maximized,"onUpdate:modelValue":r},{default:o.withCtx(()=>[o.createVNode(a,{class:"dx-dialog-card flex flex-col flex-nowrap"},{default:o.withCtx(()=>[o.createVNode(l,{class:"dx-dialog-header flex items-center"},{default:o.withCtx(()=>[o.createElementVNode("div",V2,[s.title||s.$slots.title?(o.openBlock(),o.createElementBlock("h3",{key:0,class:o.normalizeClass(["dx-dialog-title flex items-center",s.titleClass])},[o.renderSlot(s.$slots,"title",{},()=>[o.createTextVNode(o.toDisplayString(s.title),1)])],2)):o.createCommentVNode("",!0),s.subtitle||s.$slots.subtitle?(o.openBlock(),o.createElementBlock("div",L2,[o.renderSlot(s.$slots,"subtitle",{},()=>[o.createTextVNode(o.toDisplayString(s.subtitle),1)])])):o.createCommentVNode("",!0)]),o.createElementVNode("div",null,[o.createElementVNode("div",{class:"dx-close-button cursor-pointer",onClick:r},[o.createVNode(o.unref(_d),{class:"w-5"})])])]),_:3}),s.$slots.toolbar?(o.openBlock(),o.createBlock(l,{key:0},{default:o.withCtx(()=>[o.renderSlot(s.$slots,"toolbar")]),_:3})):o.createCommentVNode("",!0),s.content||s.$slots.default?(o.openBlock(),o.createBlock(l,{key:1,class:o.normalizeClass(["dx-dialog-content flex-grow max-h-full overflow-y-auto",s.contentClass])},{default:o.withCtx(()=>[o.renderSlot(s.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(s.content),1)])]),_:3},8,["class"])):o.createCommentVNode("",!0),o.createElementVNode("div",P2,[o.renderSlot(s.$slots,"actions")])]),_:3})]),_:3},8,["full-height","full-width","no-backdrop-dismiss","maximized"])}}}),v2={class:"dx-dialog-button-cancel"},R2={key:0,class:"dx-dialog-button-confirm"},Ot=o.defineComponent({__name:"ConfirmDialog",props:{disabled:{type:Boolean},isSaving:{type:Boolean},closeOnConfirm:{type:Boolean},hideConfirm:{type:Boolean},confirmText:{default:"Confirm"},cancelText:{default:"Cancel"},confirmClass:{default:""},contentClass:{default:""},modelValue:{type:[String,Boolean,Object]},title:{},titleClass:{},subtitle:{},content:{},backdropDismiss:{type:Boolean},maximized:{type:Boolean},fullWidth:{type:Boolean},fullHeight:{type:Boolean}},emits:["update:model-value","confirm","close"],setup(t,{emit:e}){const n=e,r=t,s=o.computed(()=>({...r,disabled:void 0})),i=o.computed(()=>["title","subtitle","toolbar"]);function l(){n("confirm"),r.closeOnConfirm&&n("close")}function a(){n("update:model-value",!1),n("close")}return(c,u)=>{const d=o.resolveComponent("QBtn");return o.openBlock(),o.createBlock(o.unref(hd),o.mergeProps({class:"dx-confirm-dialog"},s.value,{onClose:a,onKeyup:o.withKeys(l,["enter"])}),o.createSlots({actions:o.withCtx(()=>[o.createElementVNode("div",v2,[o.createVNode(d,{label:c.cancelText,class:"dx-dialog-button",onClick:a},{default:o.withCtx(()=>[o.renderSlot(c.$slots,"cancel-text")]),_:3},8,["label"])]),o.renderSlot(c.$slots,"actions"),c.hideConfirm?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",R2,[o.createVNode(d,{label:c.$slots["confirm-text"]?"":c.confirmText,class:o.normalizeClass(["dx-dialog-button",c.confirmClass]),loading:c.isSaving,disable:c.disabled,"data-testid":"confirm-button",onClick:l},{default:o.withCtx(()=>[o.renderSlot(c.$slots,"confirm-text")]),_:3},8,["label","class","loading","disable"])]))]),default:o.withCtx(()=>[o.renderSlot(c.$slots,"default")]),_:2},[o.renderList(i.value,f=>({name:f,fn:o.withCtx(()=>[o.renderSlot(c.$slots,f)])}))]),1040)}}}),U2=o.defineComponent({__name:"ActionFormDialog",props:{title:{},confirmText:{},form:{},action:{},target:{}},emits:["confirm","close"],setup(t){const e=o.ref("");return(n,r)=>(o.openBlock(),o.createBlock(o.unref(Ot),{title:n.title,"confirm-text":n.confirmText||n.title,onConfirm:r[0]||(r[0]=s=>n.$emit("confirm",{name:e.value})),onClose:r[1]||(r[1]=s=>n.$emit("close"))},{default:o.withCtx(()=>[o.createVNode(o.unref(Ld),{form:n.form,action:n.action,target:n.target},null,8,["form","action","target"])]),_:1},8,["title","confirm-text"]))}}),md=o.defineComponent({__name:"ConfirmActionDialog",props:{action:{},label:{},target:{},message:{default:"Are you sure you want to"},disabled:{type:Boolean},isSaving:{type:Boolean},closeOnConfirm:{type:Boolean},hideConfirm:{type:Boolean},confirmText:{},cancelText:{},confirmClass:{},contentClass:{},modelValue:{type:[String,Boolean,Object]},title:{},titleClass:{},subtitle:{},content:{},backdropDismiss:{type:Boolean},maximized:{type:Boolean},fullWidth:{type:Boolean},fullHeight:{type:Boolean}},emits:["confirm","close"],setup(t){const e=t,n=o.computed(()=>bh(e.target,e.label||e.action)),r=o.computed(()=>`Confirm ${e.action}`),s=o.computed(()=>`${e.action}`),i=o.computed(()=>`${e.message} ${e.action.toLowerCase()}${n.value?" "+n.value:""}?`),l=o.computed(()=>["title","subtitle","default","toolbar","actions"]);return(a,c)=>(o.openBlock(),o.createBlock(o.unref(Ot),o.mergeProps({class:"dx-confirm-action-dialog"},e,{"confirm-text":a.confirmText||s.value,title:a.title||r.value,content:a.content||i.value,onConfirm:c[0]||(c[0]=u=>a.$emit("confirm")),onClose:c[1]||(c[1]=u=>a.$emit("close"))}),o.createSlots({default:o.withCtx(()=>[o.renderSlot(a.$slots,"default")]),_:2},[o.renderList(l.value,u=>({name:u,fn:o.withCtx(()=>[o.renderSlot(a.$slots,u)])}))]),1040,["confirm-text","title","content"]))}}),pd=o.defineComponent({__name:"CreateNewWithNameDialog",props:{title:{},confirmText:{}},emits:["confirm","close"],setup(t){const e=o.ref("");return(n,r)=>(o.openBlock(),o.createBlock(o.unref(Ot),{title:n.title,"confirm-text":n.confirmText||n.title,onConfirm:r[1]||(r[1]=s=>n.$emit("confirm",{name:e.value})),onClose:r[2]||(r[2]=s=>n.$emit("close"))},{default:o.withCtx(()=>[o.createVNode(o.unref(wn),{modelValue:e.value,"onUpdate:modelValue":r[0]||(r[0]=s=>e.value=s),label:"Name"},null,8,["modelValue"]),o.renderSlot(n.$slots,"default")]),_:3},8,["title","confirm-text"]))}});function gd(t,e=o.ref([])){const n=o.ref(t.value),r=o.ref(e.value),s=o.ref([]),i=o.ref(0),l=o.computed(()=>s.value.length>0),a=o.computed(()=>i.value>0),c=o.computed(()=>i.value<r.value.length-1),u=o.computed(()=>r.value.length);function d(y){y>=0&&y<r.value.length&&(i.value=y,n.value=r.value[y])}function f(){c.value&&d(i.value+1)}function h(){a.value&&d(i.value-1)}function _(y,b){s.value.push({file:n.value,relatedFiles:r.value,index:i.value}),n.value=y,r.value=b,i.value=b.findIndex(w=>w.id===y.id),i.value===-1&&(i.value=0)}function g(){if(l.value){const y=s.value.pop();n.value=y.file,r.value=y.relatedFiles,i.value=y.index}}function m(y=null,b=[]){n.value=y,r.value=b,s.value=[],i.value=0}function p(){return{currentFile:n.value,relatedFiles:r.value,parentStack:[...s.value],currentIndex:i.value}}return{currentFile:n,relatedFiles:r,parentStack:s,currentIndex:i,hasParent:l,canNavigatePrevious:a,canNavigateNext:c,totalFiles:u,navigateTo:d,navigateNext:f,navigatePrevious:h,diveInto:_,navigateToParent:g,reset:m,getState:p}}const cl={IMAGE:"https://placehold.co/64x64?text=?",VIDEO_SVG:`data:image/svg+xml;base64,${btoa('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>')}`},Xr={IMAGE:/^image\//,VIDEO:/^video\//,TEXT:/^text\//,PDF:/^application\/pdf/};function cs(t){const e=yn(t);return Xr.IMAGE.test(e)}function Jr(t){const e=yn(t);return Xr.VIDEO.test(e)}function us(t){const e=yn(t);return Xr.TEXT.test(e)}function ul(t){const e=yn(t);return Xr.PDF.test(e)}function yn(t){return t.mime||t.type||""}function z2(t){var e;return((e=t.split(".").pop())==null?void 0:e.toLowerCase())||""}function eo(t){var e,n;return(e=t.optimized)!=null&&e.url?t.optimized.url:cs(t)?t.blobUrl||t.url||"":((n=t.thumb)==null?void 0:n.url)||""}function bd(t){var e;return(e=t.thumb)!=null&&e.url?t.thumb.url:Jr(t)?cl.VIDEO_SVG:eo(t)||cl.IMAGE}function yd(t){var e;return((e=t.optimized)==null?void 0:e.url)||t.blobUrl||t.url||""}function ds(t){const e=t.url||"",n=yn(t);return!!(e.includes("docs.google.com")||e.includes("drive.google.com")||n.startsWith("application/vnd.google-apps."))}function q2(t){var e;return ds(t)?!1:cs(t)||Jr(t)||us(t)||ul(t)||!!((e=t.thumb)!=null&&e.url)}function dl(t){const{file:e,src:n}=t,r=o.computed(()=>{var b;return e.value?e.value:n!=null&&n.value?{id:n.value,url:n.value,type:"image/"+((b=n.value.split(".").pop())==null?void 0:b.toLowerCase()),name:"",size:0,__type:"BrowserFile"}:null}),s=o.computed(()=>{var b,w;return((b=r.value)==null?void 0:b.name)||((w=r.value)==null?void 0:w.filename)||""}),i=o.computed(()=>r.value?yn(r.value):""),l=o.computed(()=>r.value?cs(r.value):!1),a=o.computed(()=>r.value?Jr(r.value):!1),c=o.computed(()=>r.value?ul(r.value):!1),u=o.computed(()=>r.value?ds(r.value):!1),d=o.computed(()=>r.value?yd(r.value):""),f=o.computed(()=>{var b,w;return((w=(b=r.value)==null?void 0:b.thumb)==null?void 0:w.url)||""}),h=o.computed(()=>!!f.value||a.value||l.value),_=o.computed(()=>{var w;return(w=e.value)!=null&&w.meta?Object.keys(e.value.meta).filter(C=>C!=="transcodes").length>0:!1}),g=o.computed(()=>{var b;return(b=e.value)!=null&&b.meta?Object.keys(e.value.meta).filter(w=>w!=="transcodes").length:0}),m=o.computed(()=>{var C;if(!((C=e.value)!=null&&C.meta))return{};const{transcodes:b,...w}=e.value.meta;return w}),p=o.computed(()=>{var b,w;return(((w=(b=e.value)==null?void 0:b.transcodes)==null?void 0:w.length)||0)>0}),y=o.computed(()=>{var w,C;const b=((C=(w=e.value)==null?void 0:w.meta)==null?void 0:C.transcodes)||{};for(const E of Object.keys(b)){const k=b[E];if(!["Complete","Timeout"].includes(k==null?void 0:k.status))return{...k,message:`${E} ${k.status}`}}return null});return{computedImage:r,filename:s,mimeType:i,isImage:l,isVideo:a,isPdf:c,isExternalLink:u,previewUrl:d,thumbUrl:f,isPreviewable:h,hasMetadata:_,metadataKeyCount:g,filteredMetadata:m,hasTranscodes:p,transcodingStatus:y}}function fl(t,e={}){const{enabled:n=!0}=e;function r(s){if(n)switch(s.key){case"ArrowLeft":s.preventDefault(),t.onPrevious();break;case"ArrowRight":s.preventDefault(),t.onNext();break;case"Escape":t.onEscape&&t.onEscape();break}}return o.onMounted(()=>{n&&window.addEventListener("keydown",r)}),o.onUnmounted(()=>{n&&window.removeEventListener("keydown",r)}),{onKeydown:r}}const fs=2;function _l(t,e){const n=o.shallowRef([]),r=o.computed(()=>{const c=Math.max(0,e.value-fs),u=Math.min(t.value.length-1,e.value+fs),d=[];for(let f=c;f<=u;f++)d.push(f);return d});function s(){const c=r.value,u=[];for(const d of c)d>=0&&d<t.value.length&&u.push({file:t.value[d],index:d,isActive:d===e.value,isVisible:!0});n.value=u}function i(c){return r.value.includes(c)}function l(c){return n.value.find(u=>u.index===c)||null}const a=o.computed(()=>{const c=Math.max(0,e.value-fs-1),u=Math.min(t.value.length-1,e.value+fs+1),d=[];for(let f=c;f<=u;f++)d.push(f);return d});return o.watch([e,t],s,{immediate:!0}),{visibleSlides:n,visibleIndices:r,preloadIndices:a,isSlideVisible:i,getSlide:l,updateVisibleSlides:s}}const H2={class:"text-base text-center py-3 px-16 bg-slate-800 opacity-90 text-slate-300 hover:opacity-100 transition-all flex-shrink-0"},j2={class:"flex items-center justify-center gap-3"},G2={class:"flex items-center flex-nowrap gap-1"},W2={class:"flex-grow"},Z2={class:"flex items-center flex-nowrap gap-1"},Y2={class:"flex items-center flex-nowrap gap-1"},wd=o.defineComponent({__name:"CarouselHeader",props:{filename:{},showBackButton:{type:Boolean,default:!1},showMetadataButton:{type:Boolean,default:!1},metadataCount:{default:0},showTranscodesButton:{type:Boolean,default:!1},transcodesCount:{default:0},showCloseButton:{type:Boolean,default:!1}},emits:["back","metadata","transcodes","close"],setup(t){return(e,n)=>{const r=o.resolveComponent("QBtn"),s=o.resolveComponent("QBadge");return o.openBlock(),o.createElementBlock("div",H2,[o.createElementVNode("div",j2,[e.showBackButton?(o.openBlock(),o.createBlock(r,{key:0,flat:"",dense:"",class:"bg-slate-700 text-slate-300 hover:bg-slate-600",onClick:n[0]||(n[0]=i=>e.$emit("back"))},{default:o.withCtx(()=>[o.createElementVNode("div",G2,[o.createVNode(o.unref(S2),{class:"w-4"}),n[4]||(n[4]=o.createElementVNode("span",{class:"text-sm"},"Back to Parent",-1))])]),_:1})):o.createCommentVNode("",!0),o.createElementVNode("div",W2,o.toDisplayString(e.filename),1),e.showMetadataButton?(o.openBlock(),o.createBlock(r,{key:1,flat:"",dense:"",class:"bg-purple-700 text-purple-200 hover:bg-purple-600",onClick:n[1]||(n[1]=i=>e.$emit("metadata"))},{default:o.withCtx(()=>[o.createElementVNode("div",Z2,[o.createVNode(o.unref(Nc),{class:"w-4"}),o.createVNode(s,{class:"bg-purple-900 text-purple-200",label:e.metadataCount},null,8,["label"]),n[5]||(n[5]=o.createElementVNode("span",{class:"text-sm ml-1"},"Metadata",-1))])]),_:1})):o.createCommentVNode("",!0),e.showTranscodesButton?(o.openBlock(),o.createBlock(r,{key:2,flat:"",dense:"",class:"bg-purple-700 text-purple-200 hover:bg-purple-600",onClick:n[2]||(n[2]=i=>e.$emit("transcodes"))},{default:o.withCtx(()=>[o.createElementVNode("div",Y2,[o.createVNode(o.unref(fd),{class:"w-4"}),o.createVNode(s,{class:"bg-purple-900 text-purple-200",label:e.transcodesCount},null,8,["label"]),n[6]||(n[6]=o.createElementVNode("span",{class:"text-sm ml-1"},"Transcodes",-1))])]),_:1})):o.createCommentVNode("",!0),e.showCloseButton?(o.openBlock(),o.createBlock(r,{key:3,flat:"",dense:"",icon:"",class:"text-slate-300 hover:text-white",onClick:n[3]||(n[3]=i=>e.$emit("close"))},{default:o.withCtx(()=>[o.createVNode(o.unref(rr),{class:"w-5"})]),_:1})):o.createCommentVNode("",!0)])])}}}),Q2={class:"file-metadata-container h-full flex flex-col"},K2={class:"bg-sky-50 rounded-lg p-4 mb-4 flex-shrink-0"},X2={class:"text-lg font-semibold text-gray-900 mb-2"},J2={key:0,class:"text-sm text-gray-600"},ew={class:"bg-white rounded-lg border border-gray-200 overflow-hidden flex-1 flex flex-col min-h-0"},tw={class:"bg-gray-50 px-4 py-3 border-b border-gray-200 flex-shrink-0 flex items-center justify-between"},nw={class:"p-4 flex-1 min-h-0 flex flex-col"},hl=o.defineComponent({__name:"FileMetadataDialog",props:{filename:{},mimeType:{},metadata:{},showDockButton:{type:Boolean,default:!1}},emits:["close","dock"],setup(t){return(e,n)=>{const r=o.resolveComponent("QTooltip"),s=o.resolveComponent("QBtn");return o.openBlock(),o.createBlock(o.unref(bl),{title:"File Metadata","hide-done":!0,"done-text":"Close","content-class":"w-[80vw] h-[80vh] max-w-none",onClose:n[1]||(n[1]=i=>e.$emit("close"))},{default:o.withCtx(()=>[o.createElementVNode("div",Q2,[o.createElementVNode("div",K2,[o.createElementVNode("h4",X2,o.toDisplayString(e.filename||"Unnamed File"),1),e.mimeType?(o.openBlock(),o.createElementBlock("div",J2," Type: "+o.toDisplayString(e.mimeType),1)):o.createCommentVNode("",!0)]),o.createElementVNode("div",ew,[o.createElementVNode("div",tw,[n[3]||(n[3]=o.createElementVNode("h4",{class:"text-base font-medium text-gray-900"}," Metadata ",-1)),e.showDockButton?(o.openBlock(),o.createBlock(s,{key:0,flat:"",dense:"",round:"",size:"sm",class:"text-gray-500 hover:text-gray-700 hover:bg-gray-200",onClick:n[0]||(n[0]=i=>e.$emit("dock"))},{default:o.withCtx(()=>[o.createVNode(o.unref(Kp),{class:"w-4 h-4"}),o.createVNode(r,null,{default:o.withCtx(()=>n[2]||(n[2]=[o.createTextVNode("Dock to side")])),_:1})]),_:1})):o.createCommentVNode("",!0)]),o.createElementVNode("div",nw,[o.createVNode(o.unref(ll),{"model-value":e.metadata,readonly:!0,format:"yaml"},null,8,["model-value"])])])])]),_:1})}}}),rw={class:"file-renderer flex items-center justify-center w-full h-full"},ow=["autoplay"],sw=["src","type"],iw=["alt","src"],lw={key:2,class:"w-[60vw] min-w-96 max-h-[80vh] bg-slate-800 rounded-lg overflow-auto"},aw={class:"whitespace-pre-wrap p-4 text-slate-200"},cw={key:1,class:"flex items-center justify-center py-8"},uw={key:3,class:"text-center"},dw=["href"],ml=o.defineComponent({__name:"FileRenderer",props:{file:{},autoplay:{type:Boolean,default:!1},loadText:{type:Boolean,default:!0}},setup(t){const e=t,n=o.ref("");async function r(){if(!(!us(e.file)||!e.loadText)&&!n.value)try{const s=await fetch(e.file.url||"").then(i=>i.text());n.value=s}catch{n.value="Error loading file content"}}return o.onMounted(()=>{r()}),o.watch(()=>e.file.id,()=>{n.value="",r()}),(s,i)=>(o.openBlock(),o.createElementBlock("div",rw,[o.unref(Jr)(s.file)?(o.openBlock(),o.createElementBlock("video",{key:0,class:"max-h-full w-full",controls:"",autoplay:s.autoplay},[o.createElementVNode("source",{src:o.unref(eo)(s.file)+"#t=0.1",type:s.file.mime},null,8,sw)],8,ow)):o.unref(eo)(s.file)?(o.openBlock(),o.createElementBlock("img",{key:1,alt:s.file.filename||s.file.name,src:o.unref(eo)(s.file),class:"max-h-full max-w-full object-contain"},null,8,iw)):o.unref(us)(s.file)?(o.openBlock(),o.createElementBlock("div",lw,[o.createElementVNode("div",aw,[n.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(n.value),1)],64)):(o.openBlock(),o.createElementBlock("div",cw,[o.createVNode(o.unref(ce.QSpinnerPie),{class:"text-slate-400",size:"48px"})]))])])):(o.openBlock(),o.createElementBlock("div",uw,[i[0]||(i[0]=o.createElementVNode("h3",{class:"text-slate-300 mb-4"}," No Preview Available ",-1)),o.createElementVNode("a",{href:s.file.url,target:"_blank",class:"text-blue-400 hover:text-blue-300"},o.toDisplayString(s.file.url),9,dw)]))]))}});function kd(t){const{containerRef:e,currentIndex:n,thumbnailSelector:r=".thumbnail"}=t;return o.watch(n,s=>{o.nextTick(()=>{var a;const i=(a=e.value)==null?void 0:a.querySelectorAll(r),l=i==null?void 0:i[s];l&&e.value&&l.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})}),{}}const fw={key:0,class:"bg-slate-900 bg-opacity-90 p-3 flex-shrink-0"},_w=["onClick"],hw=["src","alt"],mw={class:"absolute bottom-0 left-0 bg-slate-900 bg-opacity-80 text-slate-200 text-xs px-1.5 py-0.5 rounded-br rounded-tl font-semibold"},pl=qe(o.defineComponent({__name:"ThumbnailStrip",props:{files:{},currentIndex:{}},emits:["navigate"],setup(t,{emit:e}){const n=e,r=t,s=o.ref(null);kd({containerRef:s,currentIndex:o.toRef(r,"currentIndex")});function i(l){n("navigate",l)}return(l,a)=>l.files.length>1?(o.openBlock(),o.createElementBlock("div",fw,[o.createElementVNode("div",{ref_key:"containerRef",ref:s,class:"flex items-center justify-start gap-2 overflow-x-auto overflow-y-hidden px-4"},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.files,(c,u)=>(o.openBlock(),o.createElementBlock("div",{key:c.id,class:o.normalizeClass(["thumbnail cursor-pointer rounded border-2 transition-all flex-shrink-0 relative",u===l.currentIndex?"border-blue-500 scale-110":"border-transparent opacity-60 hover:opacity-100"]),onClick:d=>i(u)},[o.createElementVNode("img",{src:o.unref(bd)(c),alt:c.filename||c.name,class:"w-16 h-16 object-cover rounded"},null,8,hw),o.createElementVNode("div",mw,o.toDisplayString(u+1),1)],10,_w))),128))],512)])):o.createCommentVNode("",!0)}}),[["__scopeId","data-v-9ca0c651"]]),pw={class:"transcode-navigator"},gw={class:"bg-slate-800 rounded-lg shadow-xl p-3 min-w-[300px] max-w-[400px]"},bw={class:"text-slate-200 font-semibold mb-2 px-2"},yw={class:"flex flex-wrap gap-2"},ww=["onClick"],kw={class:"relative"},xw=["src","alt"],Cw={key:0,class:"absolute inset-0 bg-slate-900 bg-opacity-70 flex items-center justify-center rounded"},Sw={class:"text-xs text-slate-400 text-center mt-1 truncate w-20"},Ew={class:"bg-slate-800 rounded-t-2xl p-4"},Tw={class:"flex items-center justify-between mb-4"},Bw={class:"text-slate-200 font-semibold text-lg"},Nw={class:"grid grid-cols-3 gap-3"},Iw=["onClick"],$w={class:"relative"},Fw=["src","alt"],Aw={key:0,class:"absolute inset-0 bg-slate-900 bg-opacity-70 flex items-center justify-center rounded"},Dw={class:"text-xs text-slate-400 text-center mt-1 truncate"},xd=qe(o.defineComponent({__name:"TranscodeNavigator",props:{transcodes:{},modelValue:{type:Boolean,default:!1},selectedIndex:{default:-1}},emits:["update:modelValue","select"],setup(t,{emit:e}){const n=e,r=t,s=o.computed({get:()=>r.modelValue,set:d=>n("update:modelValue",d)}),i=o.computed(()=>typeof window>"u"?!1:window.innerWidth<768);function l(d,f){n("select",d,f),s.value=!1}function a(d){var f,h;return(f=d.thumb)!=null&&f.url?d.thumb.url:c(d)?`data:image/svg+xml;base64,${btoa('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>')}`:((h=d.optimized)==null?void 0:h.url)||d.blobUrl||d.url||"https://placehold.co/80x80?text=?"}function c(d){var f,h;return!!((f=d.mime)!=null&&f.startsWith("video"))||!!((h=d.type)!=null&&h.startsWith("video"))}function u(d){var h;const f=((h=d.meta)==null?void 0:h.transcodes)||{};for(const _ of Object.keys(f)){const g=f[_];if(g!=null&&g.status&&!["Complete","Timeout"].includes(g.status))return!0}return!1}return(d,f)=>{const h=o.resolveComponent("QMenu"),_=o.resolveComponent("QBtn"),g=o.resolveComponent("QDialog");return o.openBlock(),o.createElementBlock("div",pw,[i.value?(o.openBlock(),o.createBlock(g,{key:1,modelValue:s.value,"onUpdate:modelValue":f[2]||(f[2]=m=>s.value=m),position:"bottom"},{default:o.withCtx(()=>[o.createElementVNode("div",Ew,[o.createElementVNode("div",Tw,[o.createElementVNode("div",Bw," Transcodes ("+o.toDisplayString(d.transcodes.length)+") ",1),o.createVNode(_,{flat:"",round:"",dense:"",onClick:f[1]||(f[1]=m=>s.value=!1)},{default:o.withCtx(()=>[o.createVNode(o.unref(_d),{class:"w-5 text-slate-400"})]),_:1})]),o.createElementVNode("div",Nw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.transcodes,(m,p)=>(o.openBlock(),o.createElementBlock("div",{key:m.id,class:o.normalizeClass(["transcode-thumb cursor-pointer rounded border-2 transition-all",p===d.selectedIndex?"border-purple-500":"border-transparent"]),onClick:y=>l(m,p)},[o.createElementVNode("div",$w,[o.createElementVNode("img",{src:a(m),alt:m.filename||m.name,class:"w-full aspect-square object-cover rounded"},null,8,Fw),u(m)?(o.openBlock(),o.createElementBlock("div",Aw,[o.createVNode(o.unref(ce.QSpinnerPie),{class:"text-purple-400",size:"32px"})])):o.createCommentVNode("",!0)]),o.createElementVNode("div",Dw,o.toDisplayString(m.filename||m.name),1)],10,Iw))),128))])])]),_:1},8,["modelValue"])):(o.openBlock(),o.createBlock(h,{key:0,modelValue:s.value,"onUpdate:modelValue":f[0]||(f[0]=m=>s.value=m),anchor:"top right",self:"bottom right",offset:[0,8]},{default:o.withCtx(()=>[o.createElementVNode("div",gw,[o.createElementVNode("div",bw," Transcodes ("+o.toDisplayString(d.transcodes.length)+") ",1),o.createElementVNode("div",yw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.transcodes,(m,p)=>(o.openBlock(),o.createElementBlock("div",{key:m.id,class:o.normalizeClass(["transcode-thumb cursor-pointer rounded border-2 transition-all hover:scale-105",p===d.selectedIndex?"border-purple-500":"border-transparent opacity-70 hover:opacity-100"]),onClick:y=>l(m,p)},[o.createElementVNode("div",kw,[o.createElementVNode("img",{src:a(m),alt:m.filename||m.name,class:"w-20 h-20 object-cover rounded"},null,8,xw),u(m)?(o.openBlock(),o.createElementBlock("div",Cw,[o.createVNode(o.unref(ce.QSpinnerPie),{class:"text-purple-400",size:"24px"})])):o.createCommentVNode("",!0)]),o.createElementVNode("div",Sw,o.toDisplayString(m.filename||m.name),1)],10,ww))),128))])])]),_:1},8,["modelValue"]))])}}}),[["__scopeId","data-v-2a534315"]]),Ow={class:"absolute inset-0 bg-black"},Mw={class:"w-full h-full flex flex-col"},Vw={class:"flex-grow flex relative min-h-0"},Lw={class:"flex-grow relative"},Pw={class:"absolute inset-0"},vw={key:0,class:"absolute left-4 top-1/2 -translate-y-1/2 z-20"},Rw={key:1,class:"absolute right-4 top-1/2 -translate-y-1/2 z-20"},Uw={key:0,class:"w-[40%] max-w-[600px] min-w-[300px] bg-slate-900 border-l border-slate-700 flex flex-col"},zw={class:"px-4 py-3 bg-slate-800 border-b border-slate-700 flex items-center justify-between flex-shrink-0"},qw={class:"flex items-center gap-1"},Hw={class:"flex-1 min-h-0 p-4"},gl="danx-file-preview-metadata-mode",Cd=o.defineComponent({__name:"FullscreenCarouselDialog",props:{files:{},defaultSlide:{}},emits:["close"],setup(t){const e=t,n=e.defaultSlide?e.files.findIndex(F=>F.id===e.defaultSlide):0,r=e.files[n>=0?n:0],s=gd(o.ref(r),o.ref(e.files)),{currentFile:i,relatedFiles:l,currentIndex:a,hasParent:c,canNavigatePrevious:u,canNavigateNext:d,navigateTo:f,navigateNext:h,navigatePrevious:_,diveInto:g,navigateToParent:m}=s,{visibleSlides:p}=_l(l,a);fl({onPrevious:_,onNext:h});const y=o.ref(!1);function b(F,I){i.value&&i.value.transcodes&&g(F,i.value.transcodes)}const w=o.ref(!1),C=o.ref(kt(gl,!1));function E(){w.value=!w.value}function k(){C.value=!0,wt(gl,!0)}function S(){C.value=!1,wt(gl,!1)}const{filename:T,mimeType:B,hasMetadata:N,metadataKeyCount:$,filteredMetadata:A}=dl({file:i});return(F,I)=>{const q=o.resolveComponent("QBtn"),V=o.resolveComponent("QTooltip"),Z=o.resolveComponent("QDialog");return o.openBlock(),o.createBlock(Z,{"model-value":!0,maximized:"","onUpdate:modelValue":I[5]||(I[5]=Y=>F.$emit("close"))},{default:o.withCtx(()=>{var Y,ye;return[o.createElementVNode("div",Ow,[o.createElementVNode("div",Mw,[o.unref(i)?(o.openBlock(),o.createBlock(wd,{key:0,filename:o.unref(T),"show-back-button":o.unref(c),"show-metadata-button":o.unref(N),"metadata-count":o.unref($),"show-transcodes-button":!!(o.unref(i).transcodes&&o.unref(i).transcodes.length>0),"transcodes-count":((Y=o.unref(i).transcodes)==null?void 0:Y.length)||0,onBack:o.unref(m),onMetadata:E,onTranscodes:I[0]||(I[0]=X=>y.value=!0)},null,8,["filename","show-back-button","show-metadata-button","metadata-count","show-transcodes-button","transcodes-count","onBack"])):o.createCommentVNode("",!0),o.createElementVNode("div",Vw,[o.createElementVNode("div",Lw,[o.createElementVNode("div",Pw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(p),X=>(o.openBlock(),o.createElementBlock("div",{key:X.file.id,class:o.normalizeClass(["absolute inset-0 flex items-center justify-center transition-opacity duration-300",X.isActive?"opacity-100 z-10":"opacity-0 z-0 pointer-events-none"])},[o.createVNode(ml,{file:X.file,autoplay:X.isActive},null,8,["file","autoplay"])],2))),128))]),o.unref(u)?(o.openBlock(),o.createElementBlock("div",vw,[o.createVNode(q,{round:"",size:"lg",class:"bg-slate-800 text-white opacity-70 hover:opacity-100",onClick:o.unref(_)},{default:o.withCtx(()=>[o.createVNode(o.unref(as),{class:"w-8"})]),_:1},8,["onClick"])])):o.createCommentVNode("",!0),o.unref(d)?(o.openBlock(),o.createElementBlock("div",Rw,[o.createVNode(q,{round:"",size:"lg",class:"bg-slate-800 text-white opacity-70 hover:opacity-100",onClick:o.unref(h)},{default:o.withCtx(()=>[o.createVNode(o.unref(dd),{class:"w-8"})]),_:1},8,["onClick"])])):o.createCommentVNode("",!0)]),C.value&&w.value&&o.unref(N)?(o.openBlock(),o.createElementBlock("div",Uw,[o.createElementVNode("div",zw,[I[8]||(I[8]=o.createElementVNode("h3",{class:"text-slate-200 font-medium"},"Metadata",-1)),o.createElementVNode("div",qw,[o.createVNode(q,{flat:"",dense:"",round:"",size:"sm",class:"text-slate-400 hover:text-white hover:bg-slate-700",onClick:S},{default:o.withCtx(()=>[o.createVNode(o.unref(sg),{class:"w-4 h-4"}),o.createVNode(V,null,{default:o.withCtx(()=>I[6]||(I[6]=[o.createTextVNode("Undock to modal")])),_:1})]),_:1}),o.createVNode(q,{flat:"",dense:"",round:"",size:"sm",class:"text-slate-400 hover:text-white hover:bg-slate-700",onClick:I[1]||(I[1]=X=>w.value=!1)},{default:o.withCtx(()=>[o.createVNode(o.unref(rr),{class:"w-4 h-4"}),o.createVNode(V,null,{default:o.withCtx(()=>I[7]||(I[7]=[o.createTextVNode("Close")])),_:1})]),_:1})])]),o.createElementVNode("div",Hw,[o.createVNode(o.unref(ll),{"model-value":o.unref(A),readonly:!0,format:"yaml"},null,8,["model-value"])])])):o.createCommentVNode("",!0)]),o.createVNode(pl,{files:o.unref(l),"current-index":o.unref(a),onNavigate:o.unref(f)},null,8,["files","current-index","onNavigate"])]),o.createElementVNode("a",{class:"absolute top-0 right-0 text-white flex items-center justify-center w-16 h-16 hover:bg-slate-600 transition-all cursor-pointer z-30",onClick:I[2]||(I[2]=X=>F.$emit("close"))},[o.createVNode(o.unref(rr),{class:"w-8 h-8"})]),(ye=o.unref(i))!=null&&ye.transcodes?(o.openBlock(),o.createBlock(xd,{key:0,modelValue:y.value,"onUpdate:modelValue":I[3]||(I[3]=X=>y.value=X),transcodes:o.unref(i).transcodes,onSelect:b},null,8,["modelValue","transcodes"])):o.createCommentVNode("",!0),w.value&&!C.value?(o.openBlock(),o.createBlock(hl,{key:1,filename:o.unref(T),"mime-type":o.unref(B),metadata:o.unref(A),"show-dock-button":!0,onClose:I[4]||(I[4]=X=>w.value=!1),onDock:k},null,8,["filename","mime-type","metadata"])):o.createCommentVNode("",!0)])]}),_:1})}}}),jw={key:0,class:"p-4 m-4 absolute-top-right top right cursor-pointer"},Gw=o.defineComponent({__name:"FullScreenDialog",props:{modelValue:{type:Boolean},center:{type:Boolean},blue:{type:Boolean},closeable:{type:Boolean},contentClass:{default:"bg-white text-gray-400"}},emits:["update:model-value","close"],setup(t,{emit:e}){const n=e,r=t;let s=o.computed(()=>({"bg-blue-600 text-white":r.blue,"items-center":r.center,[r.contentClass]:!r.blue}));function i(){n("update:model-value",!1),n("close")}return(l,a)=>{const c=o.resolveComponent("QDialog"),u=o.resolveDirective("close-popup");return o.openBlock(),o.createBlock(c,{class:"full-screen-dialog","model-value":l.modelValue,maximized:"","transition-show":"slide-up","transition-hide":"slide-down","onUpdate:modelValue":i},{default:o.withCtx(()=>[o.createElementVNode("div",{class:o.normalizeClass(["flex justify-center min-w-xs",o.unref(s)])},[l.closeable?o.withDirectives((o.openBlock(),o.createElementBlock("div",jw,[o.createVNode(o.unref(rr),{class:"w-5 h-5"})])),[[u]]):o.createCommentVNode("",!0),o.renderSlot(l.$slots,"default")],2)]),_:3},8,["model-value"])}}}),Ww={key:0,class:"flex-grow"},bl=o.defineComponent({__name:"InfoDialog",props:{disabled:{type:Boolean},hideDone:{type:Boolean},doneClass:{default:""},doneText:{default:"Done"}},emits:["update:model-value","close"],setup(t,{emit:e}){const n=e;function r(){n("update:model-value",!1),n("close")}return(s,i)=>{const l=o.resolveComponent("QBtn");return o.openBlock(),o.createBlock(o.unref(hd),{class:"dx-info-dialog",onClose:r},o.createSlots({actions:o.withCtx(()=>[s.hideDone?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Ww,[o.createVNode(l,{label:s.doneText,class:o.normalizeClass(["dx-dialog-button dx-dialog-button-done",s.doneClass]),disable:s.disabled,onClick:r},{default:o.withCtx(()=>[o.renderSlot(s.$slots,"done-text")]),_:3},8,["label","class","disable"])])),o.renderSlot(s.$slots,"actions")]),default:o.withCtx(()=>[o.renderSlot(s.$slots,"default")]),_:2},[s.$slots.title?{name:"title",fn:o.withCtx(()=>[o.renderSlot(s.$slots,"title")]),key:"0"}:void 0,s.$slots.subtitle?{name:"subtitle",fn:o.withCtx(()=>[o.renderSlot(s.$slots,"subtitle")]),key:"1"}:void 0]),1024)}}}),Zw={__name:"InputDialog",props:{...Ot.props,title:{type:String,default:"Enter Value"},input:{type:[Number,String],default:""}},emits:["confirm","close","update:input"],setup(t){const e=t,n=o.ref(e.input);return(r,s)=>{const i=o.resolveComponent("QInput");return o.openBlock(),o.createBlock(o.unref(Ot),o.mergeProps(r.$props,{onConfirm:s[2]||(s[2]=l=>r.$emit("confirm",n.value)),onClose:s[3]||(s[3]=l=>r.$emit("close",l))}),{default:o.withCtx(()=>[o.renderSlot(r.$slots,"default",{},()=>[o.createVNode(i,{modelValue:n.value,"onUpdate:modelValue":s[0]||(s[0]=l=>n.value=l),type:"number",class:"w-full",onInput:s[1]||(s[1]=l=>r.$emit("update:input",l))},null,8,["modelValue"])])]),_:3},16)}}},yl=o.defineComponent({__name:"BooleanField",props:{label:{type:String,default:null},name:{type:String,default:null},required:Boolean,modelValue:{type:Boolean,default:void 0},labelClass:{type:String,default:"text-sm"},showName:Boolean,toggleIndeterminate:Boolean,disabled:Boolean,readonly:Boolean},emits:["update:model-value"],setup(t){return(e,n)=>{const r=o.resolveComponent("QToggle");return o.openBlock(),o.createBlock(r,{"data-testid":"boolean-field-"+(t.name||t.label),"model-value":t.modelValue||(t.toggleIndeterminate?t.modelValue:!1),disable:t.disabled||t.readonly,"toggle-indeterminate":t.toggleIndeterminate,"indeterminate-value":void 0,"onUpdate:modelValue":n[0]||(n[0]=s=>e.$emit("update:model-value",s))},{default:o.withCtx(()=>[o.createVNode(o.unref(ht),{label:t.label||t.name,name:t.name,"show-name":t.showName,class:o.normalizeClass(t.labelClass)},null,8,["label","name","show-name","class"])]),_:1},8,["data-testid","model-value","disable","toggle-indeterminate"])}}}),Yw={for:"first_name",class:"form-label"},Qw={class:"mt-1"},wl={__name:"LabeledInput",props:{type:{type:String,default:"text"},name:{type:String,required:!0},label:{type:String,default:null},placeholder:{type:String,default:null},modelValue:{type:[String,Number],required:!0},error:{type:String,default:null},required:Boolean,disabled:Boolean,rules:{type:Array,default:null}},emits:["update:model-value"],setup(t){return(e,n)=>{const r=o.resolveComponent("QInput");return o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("label",Yw,[o.renderSlot(e.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(t.label),1)])]),o.createElementVNode("div",Qw,[o.createVNode(r,{"model-value":t.modelValue,"error-message":t.error,error:!!t.error,"no-error-icon":"",outlined:"",dense:"",disable:t.disabled,readonly:t.disabled,type:t.type,name:t.name,placeholder:t.placeholder||t.label,required:t.required,rules:t.rules,"lazy-rules":!!t.rules,class:"w-full","onUpdate:modelValue":n[0]||(n[0]=s=>e.$emit("update:model-value",s))},null,8,["model-value","error-message","error","disable","readonly","type","name","placeholder","required","rules","lazy-rules"])])])}}},Kw={__name:"ConfirmPasswordField",props:{name:{type:String,default:"password_confirmation"},label:{type:String,default:"Confirm Password"},placeholder:{type:String,default:"Confirm Password"},modelValue:{type:[String,Number],required:!0},error:{type:String,default:null},password:{type:String,default:""},disabled:Boolean},emits:["update:model-value"],setup(t){const e=t,n=[r=>r===e.password||"The password and confirmation do not match"];return(r,s)=>(o.openBlock(),o.createBlock(o.unref(wl),o.mergeProps({type:"password"},e,{name:t.name,"model-value":t.modelValue,rules:n,"onUpdate:modelValue":s[0]||(s[0]=i=>r.$emit("update:model-value",i))}),null,16,["name","model-value"]))}},Xw={key:0,class:"font-bold text-xs mb-2"},Jw={class:"flex items-center cursor-pointer"},e4={class:"flex-grow font-bold ml-3 hover:opacity-70"},t4={key:0},kl=o.defineComponent({__name:"DateField",props:{modelValue:{},label:{},clearable:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,s=o.computed(()=>r.modelValue?Ft(at(r.modelValue||"0000-00-00")):"- -"),i=o.ref(at(r.modelValue));o.watch(()=>r.modelValue,a=>i.value=a);function l(){n("update:model-value",i.value)}return(a,c)=>{const u=o.resolveComponent("QBtn"),d=o.resolveComponent("QDate"),f=o.resolveComponent("QPopupProxy");return o.openBlock(),o.createElementBlock("div",null,[a.label?(o.openBlock(),o.createElementBlock("div",Xw,o.toDisplayString(a.label),1)):o.createCommentVNode("",!0),o.createElementVNode("div",Jw,[o.createVNode(o.unref(ud),{class:"w-5"}),o.createElementVNode("div",e4,[i.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(s.value),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" - - ")],64))]),a.clearable&&i.value?(o.openBlock(),o.createElementBlock("div",t4,[o.createVNode(u,{icon:"close",size:"sm",round:"",flat:"",onClick:c[0]||(c[0]=o.withModifiers(h=>(i.value=null)||l(),["stop","prevent"]))})])):o.createCommentVNode("",!0)]),o.createVNode(f,null,{default:o.withCtx(()=>[o.createVNode(d,{modelValue:i.value,"onUpdate:modelValue":[c[1]||(c[1]=h=>i.value=h),l]},null,8,["modelValue"])]),_:1})])}}}),n4={class:"mb-2"},r4={class:"flex items-center cursor-pointer"},o4={class:"flex-grow font-bold ml-3 hover:opacity-70"},s4={key:0},xl=o.defineComponent({__name:"DateRangeField",props:{modelValue:{},label:{},inline:{type:Boolean},clearable:{type:Boolean},withTime:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,s=o.computed(()=>a.value?r.withTime?{from:Ft(Za(a.value.from||"0000-00-00")),to:Ft(Za(a.value.to||"9999-12-31"))}:{from:Ft(Wa(a.value.from||"0000-00-00")),to:Ft(Wa(a.value.to||"9999-12-31"))}:{from:null,to:null}),i=o.ref(l(r.modelValue));o.watch(()=>r.modelValue,u=>i.value=l(u));function l(u){return u!=null&&u.from&&(u!=null&&u.to)?Ft(u.from)===Ft(u.to)?u.from:u:null}const a=o.computed(()=>{let u;return typeof i.value=="string"?u={from:i.value,to:i.value}:i.value&&(u={from:i.value.from,to:i.value.to}),u!=null&&u.from&&(u!=null&&u.to)&&r.withTime&&!u.from.includes("00:00:00")&&(u.from+=" 00:00:00",u.to+=" 23:59:59"),u});function c(){n("update:model-value",a.value)}return(u,d)=>{const f=o.resolveComponent("QDate"),h=o.resolveComponent("QBtn"),_=o.resolveComponent("QPopupProxy");return o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",n4,[o.createVNode(o.unref(ht),{label:u.label},null,8,["label"])]),u.inline?(o.openBlock(),o.createBlock(f,{key:0,modelValue:i.value,"onUpdate:modelValue":[d[0]||(d[0]=g=>i.value=g),c],range:"",class:"reactive"},null,8,["modelValue"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("div",r4,[o.createVNode(o.unref(ud),{class:"w-5 py-2"}),o.createElementVNode("div",o4,[a.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(s.value.from)+" - "+o.toDisplayString(s.value.to),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" - - ")],64))]),u.clearable&&i.value?(o.openBlock(),o.createElementBlock("div",s4,[o.createVNode(h,{icon:"close",size:"sm",round:"",flat:"",onClick:d[1]||(d[1]=o.withModifiers(g=>(i.value=null)||c(),["stop","prevent"]))})])):o.createCommentVNode("",!0)]),o.createVNode(_,null,{default:o.withCtx(()=>[o.createVNode(f,{modelValue:i.value,"onUpdate:modelValue":[d[2]||(d[2]=g=>i.value=g),c],range:""},null,8,["modelValue"])]),_:1})],64))])}}}),i4={class:"flex items-center justify-center"},l4={key:0,class:"flex-grow"},Cl={__name:"DateTimePicker",props:{modelValue:{type:String,default:null},mask:{type:String,default:"YYYY-MM-DD HH:mm"},color:{type:String,default:"blue-600"},nullable:Boolean},emits:["update:modelValue","save","cancel","clear"],setup(t,{emit:e}){const n=e,r=t,s=o.computed({get:()=>Ga(ja(r.modelValue)),set(i){const l=i?Ga(_h(i)):null;(l||r.nullable)&&n("update:modelValue",l)}});return(i,l)=>{const a=o.resolveComponent("QBtn"),c=o.resolveComponent("QDate"),u=o.resolveComponent("QTime"),d=o.resolveComponent("QPopupProxy");return o.openBlock(),o.createBlock(d,{"model-value":!0,cover:"","transition-show":"scale","transition-hide":"scale",class:"bg-transparent shadow-none flex items-stretch"},{default:o.withCtx(()=>[o.createVNode(c,{modelValue:s.value,"onUpdate:modelValue":l[3]||(l[3]=f=>s.value=f),mask:t.mask,color:t.color},{default:o.withCtx(()=>[o.createElementVNode("div",i4,[t.nullable?(o.openBlock(),o.createElementBlock("div",l4,[o.createVNode(a,{label:"Clear",color:"blue-600",flat:"",onClick:l[0]||(l[0]=f=>s.value=null)})])):o.createCommentVNode("",!0),o.createElementVNode("div",null,[o.createVNode(a,{label:"Cancel",color:"blue-600",flat:"",onClick:l[1]||(l[1]=f=>i.$emit("cancel"))}),o.createVNode(a,{label:"Set",color:"blue-600",flat:"",onClick:l[2]||(l[2]=f=>i.$emit("save"))})])])]),_:1},8,["modelValue","mask","color"]),o.createVNode(u,{modelValue:s.value,"onUpdate:modelValue":l[4]||(l[4]=f=>s.value=f),mask:t.mask,color:t.color,class:"ml-3"},null,8,["modelValue","mask","color"])]),_:1})}}},a4={__name:"DateTimeField",props:{modelValue:{type:String,required:!0},color:{type:String,default:"blue-600"}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,s=o.ref(!1),i=o.ref(r.modelValue);function l(){n("update:model-value",i.value),s.value=!1}return(a,c)=>{const u=o.resolveComponent("QPopupProxy"),d=o.resolveComponent("QIcon"),f=o.resolveComponent("QInput");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(f,{"model-value":o.unref(Ir)(t.modelValue),color:t.color,class:"bg-white rounded overflow-hidden px-2 w-48",dense:"",readonly:"",onClick:c[3]||(c[3]=h=>s.value=!0)},{append:o.withCtx(()=>[o.createVNode(d,{name:"event",class:"cursor-pointer"},{default:o.withCtx(()=>[o.createVNode(u,{modelValue:s.value,"onUpdate:modelValue":c[2]||(c[2]=h=>s.value=h)},{default:o.withCtx(()=>[o.createVNode(o.unref(Cl),{modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=h=>i.value=h),onCancel:c[1]||(c[1]=h=>s.value=!1),onSave:l},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model-value","color"])])}}},c4={class:"inline-block relative"},u4=["contenteditable"],Sd=o.defineComponent({__name:"EditableDiv",props:{modelValue:{default:""},color:{default:"blue-200"},textColor:{default:"blue-900"},debounceDelay:{default:1e3},readonly:{type:Boolean},placeholder:{default:"Enter Text..."},contentClass:{default:""}},emits:["update:model-value","change"],setup(t,{emit:e}){const n=e,r=t,s=o.ref(r.modelValue),i=o.ref(),l=o.ref(null),a=o.ref("0"),c=o.ref("0"),u=o.ref(!1);o.onMounted(()=>{var _,g;l.value&&(a.value=((_=l.value)==null?void 0:_.offsetWidth)+"px",c.value=((g=l.value)==null?void 0:g.offsetHeight)+"px")}),o.watch(()=>r.modelValue,_=>{!u.value&&i.value&&(i.value.innerText=_,s.value=_)}),o.onMounted(()=>{i.value.innerText=s.value});const d=qt(()=>{n("update:model-value",s.value),n("change",s.value)},r.debounceDelay);function f(_){s.value=_.target.innerText,d()}const h=o.computed(()=>[...r.readonly?[]:[`hover:bg-${r.color} focus:bg-${r.color}`,`hover:text-${r.textColor} focus:text-${r.textColor}`,`hover:outline-${r.color} focus:outline-${r.color}`,"focus:outline-4 hover:outline-4",r.contentClass||""],s.value?"":"!bg-none"]);return(_,g)=>(o.openBlock(),o.createElementBlock("div",c4,[o.createElementVNode("div",{ref_key:"textDiv",ref:i,contenteditable:_.readonly?"false":"true",class:o.normalizeClass(["relative inline-block transition duration-300 outline-none outline-offset-0 border-none rounded-sm z-10 min-w-10 min-h-10",h.value]),style:o.normalizeStyle({minWidth:a.value,minHeight:c.value}),onInput:f,onFocusin:g[0]||(g[0]=m=>u.value=!0),onFocusout:g[1]||(g[1]=m=>u.value=!1)},null,46,u4),!s.value&&_.placeholder&&!u.value&&!_.readonly?(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"placeholderDiv",ref:l,class:"text-gray-600 absolute-top-left whitespace-nowrap z-1 pointer-events-none"},o.toDisplayString(_.placeholder),513)):o.createCommentVNode("",!0)]))}}),d4=["contenteditable"],f4={key:0},_4=qe(o.defineComponent({__name:"EditOnClickTextField",props:o.mergeModels({class:{default:"hover:bg-slate-300"},editingClass:{default:"bg-slate-500"},inputClass:{default:"whitespace-normal"},readonly:{type:Boolean}},{modelValue:{type:String},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=o.ref(null),n=o.useModel(t,"modelValue"),r=o.ref(n.value),s=t,i=o.ref(!1);function l(){s.readonly||(i.value=!0,r.value=n.value,o.nextTick(()=>{var c;(c=e.value)==null||c.focus()}))}function a(c){r.value=c,n.value=c}return(c,u)=>{const d=o.resolveComponent("QBtn");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["danx-edit-on-click-text-field flex flex-nowrap items-center rounded overflow-ellipsis",{[s.class]:!0,"is-readonly":c.readonly,"cursor-pointer":!i.value&&!c.readonly}]),onClick:l,onFocusout:u[2]||(u[2]=f=>i.value=!1)},[o.createElementVNode("div",{ref_key:"editableBox",ref:e,contenteditable:!c.readonly&&i.value,class:o.normalizeClass(["flex-grow p-2 rounded outline-none border-none",{[c.editingClass]:i.value,[c.inputClass]:!0}]),onInput:u[0]||(u[0]=f=>a(f.target.innerText))},o.toDisplayString(i.value?r.value:n.value),43,d4),c.readonly?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",f4,[i.value?(o.openBlock(),o.createBlock(d,{key:0,onClick:u[1]||(u[1]=o.withModifiers(f=>i.value=!1,["stop"]))},{default:o.withCtx(()=>[o.createVNode(o.unref(ki),{class:"w-4"})]),_:1})):(o.openBlock(),o.createBlock(d,{key:1,class:"edit-icon"},{default:o.withCtx(()=>[o.createVNode(o.unref(fn),{class:"w-4"})]),_:1}))]))],34)}}}),[["__scopeId","data-v-4d689a6d"]]),h4=["accept","capture"],m4={__name:"FileUploadButton",props:{...ce.QBtn.props,text:{type:String,default:"Add File"},locationWaitMessage:{type:String,default:"Waiting for location..."},cameraOnly:Boolean,geolocation:Boolean},emits:["uploading","file-progress","file-complete","complete"],setup(t,{expose:e,emit:n}){e({upload:l});const r=n,s=t,i=o.ref(null);function l(){i.value.click()}async function a({target:{files:c}}){r("uploading",c);let u=new mi(c).prepare().onProgress(({file:d,progress:f})=>{d.progress=f,r("file-progress",d)}).onComplete(({file:d,uploadedFile:f})=>{r("file-complete",{file:d,uploadedFile:f})}).onAllComplete(()=>{r("complete",u.files)});s.geolocation&&await u.resolveLocation(s.locationWaitMessage),u.upload()}return(c,u)=>(o.openBlock(),o.createBlock(o.unref(ce.QBtn),o.mergeProps(c.$props,{onClick:u[0]||(u[0]=d=>c.$refs.fileUpload.click())}),{default:o.withCtx(()=>[o.renderSlot(c.$slots,"default",{},()=>[o.createVNode(o.unref(M2),{class:"w-5 mr-2"}),o.createTextVNode(" "+o.toDisplayString(t.text),1)]),o.createElementVNode("input",{ref_key:"fileUpload",ref:i,"data-testid":"file-upload",type:"file",accept:t.geolocation&&t.cameraOnly?"image/*;capture=camera":void 0,capture:t.geolocation&&t.cameraOnly?"environment":void 0,class:"hidden",multiple:"",onChange:a},null,40,h4)]),_:3},16))}},p4={class:"inline-block"},g4={class:"cursor-pointer py-2 hover:bg-blue-200 flex items-center justify-end"},b4={__name:"InlineDateTimeField",props:{modelValue:{type:String,default:null},nullable:Boolean},emits:["close","save","update:model-value"],setup(t,{emit:e}){const n=e;function r(s){n("update:model-value",s.value),n("save",s.value),s.set()}return(s,i)=>{const l=o.resolveComponent("QPopupEdit");return o.openBlock(),o.createElementBlock("div",p4,[o.createElementVNode("div",g4,[o.createTextVNode(o.toDisplayString(o.unref(Ir)(t.modelValue,{empty:"Never"}))+" ",1),o.createVNode(o.unref(Mc),{class:"w-4 font-bold ml-2 text-gray-400"}),o.createVNode(l,{"model-value":t.modelValue,"touch-position":"",offset:[0,20],class:"bg-blue-600 text-white !min-w-0"},{default:o.withCtx(a=>[o.createVNode(o.unref(Cl),{modelValue:a.value,"onUpdate:modelValue":c=>a.value=c,nullable:t.nullable,onSave:c=>r(a),onCancel:a.cancel},null,8,["modelValue","onUpdate:modelValue","nullable","onSave","onCancel"])]),_:1},8,["model-value"])])])}}},Ed=o.defineComponent({__name:"MaxLengthCounter",props:{length:{},maxLength:{}},setup(t){return(e,n)=>e.maxLength?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["danx-input-chars",{"danx-input-chars--error":e.length>e.maxLength}])},o.toDisplayString(o.unref(vt)(e.length))+" / "+o.toDisplayString(o.unref(vt)(e.maxLength))+" characters ",3)):o.createCommentVNode("",!0)}}),y4={class:"dx-text-field"},w4={key:1,class:"dx-text-field-readonly-value"},wn=o.defineComponent({__name:"TextField",props:{modelValue:{default:""},type:{default:"text"},label:{default:""},required:{type:Boolean},requiredLabel:{},prependLabel:{type:Boolean},placeholder:{default:null},labelClass:{default:""},inputClass:{default:""},allowOverMax:{type:Boolean},maxLength:{default:null},rows:{default:3},autogrow:{type:Boolean},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},debounce:{default:0},loading:{type:Boolean}},emits:["update:model-value","submit"],setup(t){return(e,n)=>{const r=o.resolveComponent("QInput");return o.openBlock(),o.createElementBlock("div",y4,[!e.prependLabel&&e.label?(o.openBlock(),o.createBlock(o.unref(ht),{key:0,label:e.label,required:e.required,"required-label":e.requiredLabel,class:o.normalizeClass(e.labelClass)},null,8,["label","required","required-label","class"])):o.createCommentVNode("",!0),e.readonly?(o.openBlock(),o.createElementBlock("div",w4,o.toDisplayString(e.modelValue),1)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createVNode(r,{placeholder:e.placeholder||(e.placeholder===""?"":`Enter ${e.label}`),outlined:"",dense:"",name:"",readonly:e.readonly,autogrow:e.autogrow,disable:e.disabled,"label-slot":!e.noLabel,"input-class":e.inputClass,rows:e.rows,class:o.normalizeClass({"dx-input-prepend-label":e.prependLabel}),"stack-label":"",type:e.type,"model-value":e.modelValue,maxlength:e.allowOverMax?void 0:e.maxLength,debounce:e.debounce,loading:e.loading,onKeydown:n[0]||(n[0]=o.withKeys(s=>e.$emit("submit"),["enter"])),"onUpdate:modelValue":n[1]||(n[1]=s=>e.$emit("update:model-value",s))},o.createSlots({append:o.withCtx(()=>[o.renderSlot(e.$slots,"append")]),_:2},[e.prependLabel||e.$slots.prepend?{name:"prepend",fn:o.withCtx(()=>[o.createVNode(o.unref(ht),{class:o.normalizeClass(["dx-prepended-label",e.labelClass]),label:e.label,required:e.required,"required-label":e.requiredLabel},null,8,["label","required","required-label","class"]),o.renderSlot(e.$slots,"prepend")]),key:"0"}:void 0]),1032,["placeholder","readonly","autogrow","disable","label-slot","input-class","rows","class","type","model-value","maxlength","debounce","loading"]),o.createVNode(o.unref(Ed),{length:(e.modelValue+"").length||0,"max-length":e.maxLength},null,8,["length","max-length"])],64))])}}}),to=o.defineComponent({__name:"NumberField",props:{precision:{default:2},delay:{default:1e3},currency:{type:Boolean},min:{default:void 0},max:{default:void 0},modelValue:{default:""},type:{},label:{default:void 0},required:{type:Boolean},requiredLabel:{},prependLabel:{type:Boolean},placeholder:{},labelClass:{},inputClass:{},allowOverMax:{type:Boolean},maxLength:{},rows:{},autogrow:{type:Boolean},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},debounce:{},loading:{type:Boolean}},emits:["update:model-value","update"],setup(t,{emit:e}){const n=e,r=t,s=o.ref(i(r.modelValue));o.watch(()=>r.modelValue,()=>s.value=i(r.modelValue));function i(u){var h;if(!u&&u!==0&&u!=="0"||r.type==="number")return u;const d=Math.min(r.precision,((h=(""+u).split(".")[1])==null?void 0:h.length)||0);let f={minimumFractionDigits:d};return r.currency&&(f={style:"currency",currency:"USD",minimumFractionDigits:d}),vt(u,f)}const l=qt(u=>{let d=u;typeof u=="number"&&(r.min!==void 0&&(d=Math.max(u,r.min)),r.max!==void 0&&(d=Math.min(d,r.max))),n("update",d)},r.delay),a=qt(u=>{if(u===void 0)return;let d=u;r.min!==void 0&&(d=Math.max(d,r.min)),r.max!==void 0&&(d=Math.min(d,r.max)),d!==u&&(s.value=i(d),n("update:model-value",d))},500);function c(u){let d;if(u.match(/[^\d.,$]/)){const f=s.value;return s.value+=" ",o.nextTick(()=>s.value=f)}u!==""&&(u=u.replace(/[^\d.]/g,""),d=+u,s.value=i(d)),n("update:model-value",d),l(d),a(d)}return(u,d)=>(o.openBlock(),o.createBlock(o.unref(wn),o.mergeProps({class:"dx-number-field"},u.$props,{"model-value":s.value,"onUpdate:modelValue":c}),null,16,["model-value"]))}}),Td=o.defineComponent({__name:"IntegerField",props:{precision:{},delay:{default:1e3},currency:{type:Boolean},min:{default:void 0},max:{default:void 0},modelValue:{default:""},type:{},label:{default:void 0},required:{type:Boolean},requiredLabel:{},prependLabel:{type:Boolean},placeholder:{},labelClass:{},inputClass:{},allowOverMax:{type:Boolean},maxLength:{},rows:{},autogrow:{type:Boolean},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},debounce:{},loading:{type:Boolean}},emits:["update:model-value"],setup(t){return(e,n)=>(o.openBlock(),o.createBlock(o.unref(to),o.mergeProps(e.$props,{precision:0,"model-value":e.modelValue,"onUpdate:modelValue":n[0]||(n[0]=r=>e.$emit("update:model-value",r))}),null,16,["model-value"]))}}),k4={class:"text-xs font-bold"},x4=["href"],C4=["href"],S4=o.defineComponent({__name:"LabelValueBlock",props:{label:{},value:{type:[String,Number,Boolean],default:""},url:{default:""},dense:{type:Boolean},nowrap:{type:Boolean}},setup(t){const e=t,n=o.computed(()=>({"mt-2":!e.dense,"mt-1":e.dense,"text-no-wrap":e.nowrap})),r=o.computed(()=>typeof e.value=="string"&&e.value.length>30),s=o.computed(()=>{switch(typeof e.value){case"boolean":return ph(e.value);case"number":return vt(e.value);default:return e.value||"-"}});return(i,l)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",k4,[o.renderSlot(i.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(i.label),1)])]),o.createElementVNode("div",{class:o.normalizeClass(n.value)},[i.url?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[r.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.renderSlot(i.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(s.value),1)]),o.createElementVNode("a",{target:"_blank",href:i.url,class:"inline-block ml-2"},[o.createVNode(o.unref(Ip),{class:"w-4"})],8,C4)],64)):(o.openBlock(),o.createElementBlock("a",{key:0,target:"_blank",href:i.url},[o.renderSlot(i.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(s.value),1)])],8,x4))],64)):o.renderSlot(i.$slots,"default",{key:1},()=>[o.createTextVNode(o.toDisplayString(s.value),1)])],2)]))}}),E4={class:"flex items-stretch justify-start"},T4={key:1,class:"p-1"},Bd=o.defineComponent({__name:"MultiFileField",props:{modelValue:{default:null},field:{default:null},label:{default:""},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},width:{default:128},height:{default:128},addIconClass:{default:"w-10"},filePreviewClass:{default:"rounded-2xl"},filePreviewBtnSize:{default:"sm"},showTranscodes:{type:Boolean}},emits:["update:model-value","uploading","complete"],setup(t,{emit:e}){const n=e,r=t,{onComplete:s,onDrop:i,onFilesChange:l,onFilesSelected:a,uploadedFiles:c,clearUploadedFiles:u,onRemove:d}=c1();o.onMounted(()=>{r.modelValue&&(c.value=r.modelValue)}),l(()=>{c.value.some(h=>h.progress<1)&&n("uploading"),n("update:model-value",c.value)}),s(()=>{n("update:model-value",c.value),n("complete")});const f=o.computed(()=>({width:typeof r.width=="number"?`${r.width}px`:r.width,height:typeof r.height=="number"?`${r.height}px`:r.height}));return(h,_)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["max-w-full relative overflow-auto",{"p-2":!h.readonly}]),onDragover:_[3]||(_[3]=o.withModifiers(()=>{},["prevent"])),onDrop:_[4]||(_[4]=o.withModifiers((...g)=>o.unref(i)&&o.unref(i)(...g),["prevent"]))},[h.label?(o.openBlock(),o.createBlock(o.unref(ht),{key:0,label:h.label},null,8,["label"])):o.createCommentVNode("",!0),!h.disabled&&!h.readonly?(o.openBlock(),o.createElementBlock("input",{key:1,ref:"file",class:"hidden",type:"file",multiple:"",onChange:_[0]||(_[0]=(...g)=>o.unref(a)&&o.unref(a)(...g))},null,544)):o.createCommentVNode("",!0),o.createElementVNode("div",E4,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(c),g=>(o.openBlock(),o.createBlock(o.unref(no),{key:"file-upload-"+g.id,class:o.normalizeClass(["m-2 cursor-pointer bg-gray-200",h.filePreviewClass]),style:o.normalizeStyle(f.value),file:g,"show-transcodes":h.showTranscodes,"related-files":o.unref(c),downloadable:"",removable:!h.readonly&&!h.disabled,onRemove:m=>o.unref(d)(g)},null,8,["class","style","file","show-transcodes","related-files","removable","onRemove"]))),128)),!h.disabled&&!h.readonly?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["dx-add-remove-files m-2 flex flex-col flex-nowrap items-center overflow-hidden cursor-pointer",h.filePreviewClass]),style:o.normalizeStyle(f.value)},[o.createElementVNode("div",{class:"dx-add-file flex-grow p-1 pt-3 flex justify-center items-center bg-green-200 text-green-700 w-full hover:bg-green-100",onClick:_[1]||(_[1]=g=>h.$refs.file.click())},[o.createElementVNode("div",null,[o.createVNode(o.unref(al),{class:o.normalizeClass(["m-auto",h.addIconClass])},null,8,["class"]),_[5]||(_[5]=o.createElementVNode("div",{class:"mt-1 text-center"}," Add ",-1))])]),o.unref(c).length>0?(o.openBlock(),o.createElementBlock("div",{key:0,class:"dx-remove-file flex items-center flex-nowrap p-2 bg-red-200 text-red-800 hover:bg-red-100 w-full justify-center text-xs",onClick:_[2]||(_[2]=(...g)=>o.unref(u)&&o.unref(u)(...g))},[o.createVNode(o.unref(ls),{class:"mr-2 w-3"}),_[6]||(_[6]=o.createTextVNode(" Remove All "))])):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),h.readonly&&o.unref(c).length===0?(o.openBlock(),o.createElementBlock("div",T4," -- ")):o.createCommentVNode("",!0)])],34))}}),or=o.defineComponent({__name:"SelectField",props:{modelValue:{default:void 0},placeholder:{default:""},selectionLabel:{type:[String,Function],default:null},chipLimit:{default:3},inputClass:{default:""},selectClass:{default:""},selectionClass:{default:""},options:{default:()=>[]},filterable:{type:Boolean},filterFn:{type:Function,default:null},selectByObject:{type:Boolean},optionLabel:{type:[String,Function],default:"label"},name:{},virtualScrollHorizontal:{type:Boolean},virtualScrollSliceSize:{},virtualScrollSliceRatioBefore:{},virtualScrollSliceRatioAfter:{},virtualScrollItemSize:{},virtualScrollStickySizeStart:{},virtualScrollStickySizeEnd:{},tableColspan:{},error:{type:[Boolean,null]},errorMessage:{},noErrorIcon:{type:Boolean},rules:{},reactiveRules:{type:Boolean},lazyRules:{type:[Boolean,String]},label:{},stackLabel:{type:Boolean},hint:{},hideHint:{type:Boolean},prefix:{},suffix:{},labelColor:{},color:{},bgColor:{},dark:{type:[Boolean,null]},loading:{type:Boolean},clearable:{type:Boolean},clearIcon:{},filled:{type:Boolean},outlined:{type:Boolean},borderless:{type:Boolean},standout:{type:[Boolean,String]},labelSlot:{type:Boolean},bottomSlots:{type:Boolean},hideBottomSpace:{type:Boolean},counter:{type:Boolean},rounded:{type:Boolean},square:{type:Boolean},dense:{type:Boolean},itemAligned:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},autofocus:{type:Boolean},for:{},multiple:{type:Boolean},displayValue:{},displayValueHtml:{type:Boolean},optionValue:{},optionDisable:{},hideSelected:{type:Boolean},hideDropdownIcon:{type:Boolean},dropdownIcon:{},maxValues:{},optionsDense:{type:Boolean},optionsDark:{type:[Boolean,null]},optionsSelectedClass:{},optionsHtml:{type:Boolean},optionsCover:{type:Boolean},menuShrink:{type:Boolean},menuAnchor:{},menuSelf:{},menuOffset:{},popupContentClass:{},popupContentStyle:{},popupNoRouteDismiss:{type:Boolean},useChips:{type:Boolean},useInput:{type:Boolean},maxlength:{},fillInput:{type:Boolean},newValueMode:{},mapOptions:{type:Boolean},disableTabSelection:{type:Boolean},emitValue:{type:Boolean},inputDebounce:{},inputStyle:{},tabindex:{},autocomplete:{},transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{},onVirtualScroll:{},"onUpdate:modelValue":{},onFocus:{},onBlur:{},onClear:{},onInputValue:{},onRemove:{},onAdd:{},onNewValue:{},onFilter:{},onFilterAbort:{},onPopupShow:{},onPopupHide:{}},emits:["update:model-value","search","update"],setup(t,{emit:e}){const n=e,r=t,s=o.ref(null),i=o.ref(null),l=o.ref(!1),a=o.computed(()=>{let k=r.options;return r.placeholder&&!r.multiple&&!r.filterable&&(k=[{label:r.placeholder,value:null},...r.options]),k=k.map(S=>{let T=o.isRef(S)?S.value:S;return{label:_(T),value:m(T),selectionLabel:g(T)}}),k}),c=o.computed(()=>i.value&&!r.filterFn?a.value.filter(k=>{var S;return k.label.toLocaleLowerCase().indexOf((S=i.value)==null?void 0:S.toLowerCase())>-1}):a.value),u=o.computed(()=>{var k,S;return r.multiple?(Array.isArray(r.modelValue)?r.modelValue:[]).map(B=>B===null?"__null__":B)||[]:r.modelValue===null?"__null__":r.selectByObject?((k=r.modelValue)==null?void 0:k.value)||((S=r.modelValue)==null?void 0:S.id):r.modelValue}),d=o.computed(()=>{let k=u.value;r.multiple||(k=k||k===0?[k]:[]);const S=k.map(T=>T==="__null__"?null:typeof T=="object"?T.value||T.id:T);return a.value.filter(T=>S.includes(T.value))}),f=o.computed(()=>r.filterable&&l.value?"":!d.value||d.value.length===0?r.placeholder||"(Select Option)":d.value[0].selectionLabel),h=o.computed(()=>d.value.slice(0,r.chipLimit));function _(k){return typeof k=="string"?k:typeof r.optionLabel=="string"?k[r.optionLabel]:typeof r.optionLabel=="function"?r.optionLabel(k):k==null?void 0:k.label}function g(k){return typeof k=="string"?k:typeof r.selectionLabel=="string"?k[r.selectionLabel]:typeof r.selectionLabel=="function"?r.selectionLabel(k):(k==null?void 0:k.selectionLabel)||(k==null?void 0:k.label)||k&&k[r.optionLabel]}function m(k){if(!k||typeof k=="string")return k;let S=k.value!==void 0?k.value:k.id;return typeof r.optionValue=="string"?S=k[r.optionValue]:typeof r.optionValue=="function"&&(S=r.optionValue(k)),S===null?"__null__":S}function p(k){Array.isArray(k)&&(k=k.map(S=>S==="__null__"?null:S)),k=k==="__null__"?null:k,r.selectByObject&&k!==null&&k!==void 0&&typeof k!="object"&&(r.multiple?k=r.options.filter(S=>k.includes(m(S))):k=r.options.find(S=>m(S)===k)),n("update:model-value",k),n("update",k)}const y=o.ref(!1);async function b(k,S){if(!r.filterFn)i.value=k,await o.nextTick(S);else{if(S(),!y.value)return;k!==null&&k!==i.value&&(i.value=k,r.filterFn&&await r.filterFn(k))}}function w(){n("update:model-value",void 0),n("update",void 0)}function C(){l.value=!0,y.value=!1,o.nextTick(()=>{y.value=!0,s.value.focus()})}function E(){l.value=!1,y.value=!1}return(k,S)=>{const T=o.resolveComponent("QChip");return o.openBlock(),o.createElementBlock("div",null,[k.label?(o.openBlock(),o.createBlock(o.unref(ht),{key:0,label:k.label},null,8,["label"])):o.createCommentVNode("",!0),o.createVNode(o.unref(ce.QSelect),o.mergeProps({ref_key:"selectField",ref:s},k.$props,{"model-value":u.value,outlined:"","hide-dropdown-icon":"",dense:"","emit-value":"","use-input":k.filterable,"hide-selected":k.filterable&&l.value&&!k.$props.multiple,"input-debounce":100,options:c.value,"option-label":"label","option-value":"value",placeholder:"",label:"","input-class":{"is-hidden":!l.value,[k.inputClass]:!0},class:["max-w-full dx-select-field",k.selectClass],onFilter:b,onClear:w,onPopupShow:C,onPopupHide:E,"onUpdate:modelValue":p}),{append:o.withCtx(()=>[o.createVNode(o.unref(E2),{class:o.normalizeClass(["w-4 transition",l.value?"rotate-180":""])},null,8,["class"])]),selected:o.withCtx(()=>[k.$props.multiple?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["flex gap-y-1 overflow-hidden dx-selected-label",{"flex-nowrap gap-y-0":k.chipLimit===1,"dx-selected-chips":h.value.length>0,[k.selectionClass]:!0}])},[h.value.length>0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h.value,B=>(o.openBlock(),o.createBlock(T,{key:"selected-"+B.label,class:"!mr-1"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(B.label),1)]),_:2},1024))),128)),d.value.length>h.value.length?(o.openBlock(),o.createBlock(T,{key:0,class:"!mr-1"},{default:o.withCtx(()=>[o.createTextVNode(" +"+o.toDisplayString(d.value.length-h.value.length),1)]),_:1})):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(k.placeholder),1)],64))],2)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass([k.selectionClass,"dx-selected-label"])},o.toDisplayString(f.value),3))]),_:1},16,["model-value","use-input","hide-selected","options","input-class","class"])])}}}),Nd={__name:"MultiKeywordField",props:{modelValue:{type:[String,Number,Object],default:""},field:{type:Object,default:null}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,s=o.ref(r.field.defaultOption),i=o.computed(()=>r.modelValue&&r.modelValue[s.value]),l=o.ref(c());function a(){var u;l.value=((u=l.value)==null?void 0:u.replace(/\n/g,",").replace(/,{2,}/g,","))||"",n("update:model-value",l.value?{[s.value]:l.value.split(",")}:void 0)}function c(){var u;return Array.isArray(i.value)?(u=i.value)==null?void 0:u.join(","):""}return o.watch(()=>r.modelValue,()=>{l.value=c()}),(u,d)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(o.unref(or),{modelValue:s.value,"onUpdate:modelValue":[d[0]||(d[0]=f=>s.value=f),a],label:void 0,options:t.field.options,class:"mb-2"},null,8,["modelValue","options"]),o.createVNode(o.unref(wn),{modelValue:l.value,"onUpdate:modelValue":[d[1]||(d[1]=f=>l.value=f),a],field:t.field,"no-label":!t.field.label,"label-class":"text-xs font-bold text-zinc-800","input-class":"!py-0",dense:"",type:"textarea",debounce:500},null,8,["modelValue","field","no-label"])]))}},B4={__name:"NewPasswordField",props:{name:{type:String,default:"password"},label:{type:String,default:"Password"},placeholder:{type:String,default:"Enter Password"},modelValue:{type:[String,Number],required:!0},error:{type:String,default:null},disabled:Boolean},emits:["update:model-value"],setup(t){const e=t,n=[r=>r.length>=8||"Please use at least 8 characters"];return(r,s)=>(o.openBlock(),o.createBlock(o.unref(wl),o.mergeProps({type:"password"},e,{rules:n,"onUpdate:modelValue":s[0]||(s[0]=i=>r.$emit("update:model-value",i))}),null,16))}},N4={key:0,class:"font-bold text-xs mb-2"},I4={class:"flex items-center flex-nowrap cursor-pointer"},$4={class:"text-sm ml-3 hover:text-blue-600 whitespace-nowrap"},_s={__name:"NumberRangeField",props:{modelValue:{type:Object,default:null},label:{type:String,default:null},icon:{type:Object,default:null},currency:Boolean,percent:Boolean,debounce:{type:Number,default:0}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,s=o.computed(()=>r.currency?"$":r.percent?"%":""),i=o.computed(()=>({id:"min-field",name:"from",label:"Min"+s.value,placeholder:"0"})),l=o.computed(()=>({id:"max-field",name:"to",label:"Max"+s.value,placeholder:"No Limit"})),a=o.computed(()=>r.icon||(r.currency?T2:r.percent?sd:A2)),c=o.ref({});o.watch(()=>r.modelValue,u);function u(h){const _=r.percent?100:1;c.value={from:h!=null&&h.from?h.from*_:void 0,to:h!=null&&h.to?h.to*_:void 0}}u(r.modelValue||{from:void 0,to:void 0});function d(h){return h===void 0?"No Limit":r.currency?Qs(h):r.percent?gh(h,{multiplier:1,maximumFractionDigits:2}):vt(h)}const f=qt(()=>{if(c.value&&(c.value.from||c.value.to)){const h=r.percent?.01:1;let _={from:c.value.from?c.value.from*h:void 0,to:c.value.to?c.value.to*h:void 0};n("update:model-value",_)}},r.debounce);return(h,_)=>{const g=o.resolveComponent("QPopupProxy");return o.openBlock(),o.createElementBlock("div",null,[t.label?(o.openBlock(),o.createElementBlock("div",N4,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),o.createElementVNode("div",I4,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(a.value),{class:"w-5 text-blue-600"})),o.createElementVNode("div",$4,[c.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(d(c.value.from||0))+" - "+o.toDisplayString(d(c.value.to)),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" No Limit ")],64))])]),o.createVNode(g,null,{default:o.withCtx(()=>[o.createVNode(o.unref(to),{modelValue:c.value.from,"onUpdate:modelValue":[_[0]||(_[0]=m=>c.value.from=m),o.unref(f)],field:i.value},null,8,["modelValue","field","onUpdate:modelValue"]),o.createVNode(o.unref(to),{modelValue:c.value.to,"onUpdate:modelValue":[_[1]||(_[1]=m=>c.value.to=m),o.unref(f)],class:"mt-2",field:l.value},null,8,["modelValue","field","onUpdate:modelValue"])]),_:1})])}}},F4=["data-dusk","onClick"],A4={__name:"SelectDrawer",props:{modelValue:{type:[Object,String,Array,null],required:!0},options:{type:Array,default:()=>[]},multiple:Boolean,label:{type:String,default:"Select"},placeholder:{type:String,default:"All"}},emits:["update:modelValue"],setup(t,{emit:e}){const n=e,r=t,s=o.ref(!1),i=o.computed(()=>r.options.map(d=>typeof d=="string"?{label:d,value:d}:d));function l(d){return d.value===void 0?d:d.value}function a(d){return i.value.find(f=>f.value===d).label}function c(d){const f=l(d);return r.multiple?r.modelValue.includes(f):r.modelValue===f}function u(d){let f=l(d),h=f;r.multiple?(h=[...r.modelValue],c(f)?h=h.filter(_=>_!==f):h.push(f)):h===r.modelValue&&(h=null),n("update:modelValue",h)}return(d,f)=>{const h=o.resolveComponent("QCheckbox"),_=o.resolveComponent("QChip");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(o.unref(Tl),{show:s.value,"onUpdate:show":f[0]||(f[0]=g=>s.value=g),"content-class":"",position:"bottom",title:"Filter "+t.label},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,g=>(o.openBlock(),o.createElementBlock("div",{key:"select-drawer-"+g.value,"data-dusk":"drawer-opt-"+g.value,class:"cursor-pointer hover:bg-slate-200 px-8 py-3 flex items-center border-b border-slate-200",onClick:m=>u(g)},[o.createVNode(h,{"model-value":c(g),class:"mr-2",onClick:o.withModifiers(m=>u(g),["stop"])},null,8,["model-value","onClick"]),o.renderSlot(d.$slots,"option",{opt:g},()=>[o.createTextVNode(o.toDisplayString(g.label),1)])],8,F4))),128))]),_:3},8,["show","title"]),o.createVNode(_,{ref:"select",outline:"",clickable:"",size:"16px",onClick:f[1]||(f[1]=g=>s.value=!0)},{default:o.withCtx(()=>[o.renderSlot(d.$slots,"selected",{},()=>[o.renderSlot(d.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(t.label)+": ",1)]),t.modelValue&&t.modelValue.length>0?o.renderSlot(d.$slots,"selection",{key:0},()=>[t.multiple?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(a(t.modelValue[0]))+" ",1),t.modelValue.length>1?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(" + "+o.toDisplayString(t.modelValue.length-1),1)],64)):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(a(t.modelValue)),1)],64))]):o.renderSlot(d.$slots,"placeholder",{key:1},()=>[o.createTextVNode(o.toDisplayString(t.placeholder),1)])])]),_:3},512)])}}},D4={class:"group flex items-center flex-nowrap gap-x-2 relative"},O4=["onClick"],M4={class:"flex-grow px-4 py-2"},V4={class:"px-4 mb-2"},L4=o.defineComponent({__name:"SelectionMenuField",props:o.mergeModels({options:{},selectionType:{default:"object"},showEdit:{type:Boolean},loading:{type:Boolean},selectText:{default:""},createText:{default:""},editText:{default:""},clearText:{default:""},placeholder:{default:"(No selection)"},selectClass:{default:"bg-sky-800"},createClass:{default:""},editClass:{default:""},clearClass:{default:"rounded-full"},labelClass:{default:"text-slate-600"},selectIcon:{default:null},selectable:{type:Boolean},creatable:{type:Boolean},editable:{type:Boolean},deletable:{type:Boolean},nameEditable:{type:Boolean},clearable:{type:Boolean},disabled:{type:Boolean},editDisabled:{type:Boolean},size:{default:"md"}},{selected:{},selectedModifiers:{},editing:{type:Boolean},editingModifiers:{}}),emits:o.mergeModels(["create","update","delete"],["update:selected","update:editing"]),setup(t){const e=o.useModel(t,"selected"),n=o.useModel(t,"editing"),r=t,s=o.ref(!1),i=o.computed(()=>!e.value||r.options.find(u=>a(u)===a(e.value))?r.options:[e.value,...r.options]);function l(u){return typeof u=="object"?u:r.options.find(d=>typeof d=="object"?a(d)===u:d===u)}function a(u){return u=l(u),(u==null?void 0:u.id)||(u==null?void 0:u.value)||(u==null?void 0:u.name)||u}function c(u){return u=l(u),(u==null?void 0:u.name)||(u==null?void 0:u.label)||(u==null?void 0:u.value)||u}return(u,d)=>{const f=o.resolveComponent("QSeparator"),h=o.resolveComponent("QMenu"),_=o.resolveComponent("QBtn"),g=o.resolveDirective("ripple");return o.openBlock(),o.createElementBlock("div",D4,[u.selectable?(o.openBlock(),o.createBlock(o.unref(Vo),{key:0,modelValue:s.value,"onUpdate:modelValue":d[3]||(d[3]=m=>s.value=m),disabled:u.disabled,label:u.selectText,saving:u.loading,class:o.normalizeClass(u.selectClass),"show-icon":u.selectIcon||o.unref(Ap),size:u.size},{default:o.withCtx(()=>[o.createVNode(h,{"model-value":s.value,onBeforeHide:d[1]||(d[1]=m=>s.value=!1),onHide:d[2]||(d[2]=m=>s.value=!1)},{default:o.withCtx(()=>[o.createElementVNode("div",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,m=>o.withDirectives((o.openBlock(),o.createElementBlock("div",{key:a(m),class:o.normalizeClass(["cursor-pointer flex items-center relative",{"bg-sky-900 hover:bg-sky-800":a(e.value)===a(m),"hover:bg-slate-600":a(e.value)!==a(m)}]),onClick:p=>e.value=u.selectionType==="object"?m:a(m)},[o.createElementVNode("div",M4,o.toDisplayString(c(m)),1),u.deletable?(o.openBlock(),o.createBlock(o.unref(Mo),{key:0,type:"trash",class:"ml-4 mr-2",size:u.size,onClick:o.withModifiers(p=>u.$emit("delete",m),["stop","prevent"])},null,8,["size","onClick"])):o.createCommentVNode("",!0)],10,O4)),[[g]])),128)),u.creatable?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(f,{class:"bg-slate-400 my-2"}),o.createElementVNode("div",V4,[o.createVNode(o.unref(Mo),{type:"create",color:"green",class:o.normalizeClass(u.createClass),label:u.createText,saving:u.loading,size:u.size,onClick:d[0]||(d[0]=m=>u.$emit("create"))},null,8,["class","label","saving","size"])])],64)):o.createCommentVNode("",!0)])]),_:1},8,["model-value"])]),_:1},8,["modelValue","disabled","label","saving","class","show-icon","size"])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(u.labelClass)},[e.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[u.nameEditable?(o.openBlock(),o.createBlock(o.unref(Sd),{key:0,"model-value":c(e.value),color:"slate-600","onUpdate:modelValue":d[4]||(d[4]=m=>u.$emit("update",{name:m}))},null,8,["model-value"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(c(e.value)),1)],64))],64)):o.renderSlot(u.$slots,"no-selection",{key:1},()=>[o.createTextVNode(o.toDisplayString(u.placeholder),1)])],2),u.editable&&e.value?(o.openBlock(),o.createBlock(o.unref(Vo),{key:1,modelValue:n.value,"onUpdate:modelValue":d[5]||(d[5]=m=>n.value=m),label:u.editText,class:o.normalizeClass(u.editClass),size:u.size,disabled:u.editDisabled,"show-icon":o.unref(fn),"hide-icon":o.unref(ki),tooltip:u.editDisabled?"You are not allowed to edit":""},null,8,["modelValue","label","class","size","disabled","show-icon","hide-icon","tooltip"])):o.createCommentVNode("",!0),u.clearable&&e.value?(o.openBlock(),o.createBlock(_,{key:2,label:u.clearText,class:o.normalizeClass([u.clearClass,"opacity-0 group-hover:opacity-100 transition-all"]),onClick:d[6]||(d[6]=m=>e.value=null)},{default:o.withCtx(()=>[o.createVNode(o.unref(Ic),{class:"w-4"})]),_:1},8,["label","class"])):o.createCommentVNode("",!0)])}}}),P4={class:"flex items-stretch flex-nowrap gap-x-4"},v4=o.defineComponent({__name:"SelectOrCreateField",props:o.mergeModels({options:{},showEdit:{type:Boolean},canEdit:{type:Boolean},loading:{type:Boolean},selectByObject:{type:Boolean},optionLabel:{default:"label"},createText:{default:""},editText:{default:""},createClass:{default:"bg-green-900 px-4"},editClass:{default:"bg-sky-800 px-4"},clearable:{type:Boolean}},{selected:{},selectedModifiers:{},editing:{type:Boolean},editingModifiers:{}}),emits:o.mergeModels(["create"],["update:selected","update:editing"]),setup(t){const e=o.useModel(t,"selected"),n=o.useModel(t,"editing");return(r,s)=>{const i=o.resolveComponent("QBtn");return o.openBlock(),o.createElementBlock("div",P4,[o.createVNode(i,{class:o.normalizeClass(r.createClass),loading:r.loading,onClick:s[0]||(s[0]=l=>r.$emit("create"))},{default:o.withCtx(()=>[o.createVNode(o.unref(Ac),{class:o.normalizeClass(["w-4",r.createText?"mr-2":""])},null,8,["class"]),o.createTextVNode(" "+o.toDisplayString(r.createText),1)]),_:1},8,["class","loading"]),r.showEdit?(o.openBlock(),o.createBlock(o.unref(Vo),{key:0,modelValue:n.value,"onUpdate:modelValue":s[1]||(s[1]=l=>n.value=l),disabled:!r.canEdit,label:r.editText,class:o.normalizeClass(r.editClass),"show-icon":o.unref(fn)},null,8,["modelValue","disabled","label","class","show-icon"])):o.createCommentVNode("",!0),o.createVNode(o.unref(or),{modelValue:e.value,"onUpdate:modelValue":s[2]||(s[2]=l=>e.value=l),class:"flex-grow",options:r.options,clearable:r.clearable,"select-by-object":r.selectByObject,"option-label":r.optionLabel},null,8,["modelValue","options","clearable","select-by-object","option-label"])])}}}),R4={key:0,class:"text-zinc-500"},U4={key:1},z4={class:"text-xs text-zinc-500"},Id=o.defineComponent({__name:"SelectWithChildrenField",props:{modelValue:{default:()=>[]},label:{default:"Selection"},placeholder:{default:"Select an option"},options:{default:()=>[]},loading:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t;function s(){var u;return((u=r.modelValue)==null?void 0:u.length)>0?r.options.find(d=>d.children.find(f=>r.modelValue.includes(f.id))):null}const i=o.ref(s()),l=o.ref(r.modelValue||[]);function a(u){l.value.includes(u.id)?l.value=bo(l.value,u.id):l.value.push(u.id),n("update:model-value",l.value.length>0?l.value:void 0)}function c(){l.value=[],n("update:model-value",void 0)}return o.watch(()=>r.modelValue,u=>{i.value=s(),l.value=u||[]}),(u,d)=>{const f=o.resolveComponent("QCheckbox");return o.openBlock(),o.createElementBlock("div",null,[!u.loading&&!u.options.length?(o.openBlock(),o.createElementBlock("div",R4," No options available ")):o.createCommentVNode("",!0),o.createVNode(o.unref(or),{modelValue:i.value,"onUpdate:modelValue":[d[0]||(d[0]=h=>i.value=h),c],options:u.options,label:u.label,placeholder:u.placeholder,"option-value":h=>h,loading:u.loading},null,8,["modelValue","options","label","placeholder","option-value","loading"]),i.value?(o.openBlock(),o.createElementBlock("div",U4,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value.children,h=>(o.openBlock(),o.createBlock(f,{key:h.id,"model-value":l.value.includes(h.id),field:h,class:"mt-3","onUpdate:modelValue":_=>a(h)},{default:o.withCtx(()=>[o.createElementVNode("div",null,o.toDisplayString(h.label),1),o.createElementVNode("div",z4,o.toDisplayString(h.name),1)]),_:2},1032,["model-value","field","onUpdate:modelValue"]))),128))])):o.createCommentVNode("",!0)])}}}),q4={key:1,class:"text-sm mt-2"},H4={key:3,class:"py-1"},$d=o.defineComponent({__name:"SingleFileField",props:{modelValue:{},label:{},name:{},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,{onComplete:s,onDrop:i,onFileSelected:l,uploadedFile:a,clearUploadedFile:c}=d1();return s(()=>n("update:model-value",a.value)),o.onMounted(()=>{r.modelValue&&(a.value=r.modelValue)}),(u,d)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["max-w-full relative overflow-auto",{"p-4 border rounded border-gray-300 text-center":!u.readonly}]),onDragover:d[4]||(d[4]=o.withModifiers(()=>{},["prevent"])),onDrop:d[5]||(d[5]=o.withModifiers((...f)=>o.unref(i)&&o.unref(i)(...f),["prevent"]))},[u.label||u.name||u.showName?(o.openBlock(),o.createBlock(o.unref(ht),{key:0,label:u.label,name:u.name,"show-name":u.showName,class:"text-sm font-semibold"},null,8,["label","name","show-name"])):o.createCommentVNode("",!0),!u.disabled&&!u.readonly?(o.openBlock(),o.createElementBlock("div",q4,[o.createElementVNode("a",{class:"text-blue-600",onClick:d[0]||(d[0]=f=>u.$refs.file.click())},"Upload"),o.unref(a)?(o.openBlock(),o.createElementBlock("a",{key:0,class:"ml-3 text-red-900",onClick:d[1]||(d[1]=(...f)=>o.unref(c)&&o.unref(c)(...f))},"Clear")):o.createCommentVNode("",!0),o.createElementVNode("input",{ref:"file",class:"hidden",type:"file",onChange:d[2]||(d[2]=(...f)=>o.unref(l)&&o.unref(l)(...f))},null,544)])):o.createCommentVNode("",!0),!u.readonly||o.unref(a)?(o.openBlock(),o.createBlock(o.unref(no),{key:2,class:o.normalizeClass(["w-32 cursor-pointer mt-2",{"border border-dashed border-blue-600":!o.unref(a),"mx-auto":!u.readonly}]),file:o.unref(a)||void 0,downloadable:"",onClick:d[3]||(d[3]=f=>!u.disabled&&u.$refs.file.click())},null,8,["class","file"])):u.readonly?(o.openBlock(),o.createElementBlock("div",H4," -- ")):o.createCommentVNode("",!0)],34))}}),j4={class:"dx-slider-number-field"},G4=o.defineComponent({__name:"SliderNumberField",props:{modelValue:{},field:{},label:{},currency:{type:Boolean},percent:{type:Boolean},name:{},min:{},max:{},innerMin:{},innerMax:{},step:{},snap:{type:Boolean},reverse:{type:Boolean},vertical:{type:Boolean},color:{},trackColor:{},trackImg:{},innerTrackColor:{},innerTrackImg:{},selectionColor:{},selectionImg:{},labelColor:{},labelTextColor:{},switchLabelSide:{type:Boolean},labelAlways:{type:Boolean},markers:{type:[Boolean,Number]},markerLabels:{type:[Boolean,Array,Object,Function]},markerLabelsClass:{},switchMarkerLabelsSide:{type:Boolean},trackSize:{},thumbSize:{},thumbColor:{},thumbPath:{},dark:{type:[Boolean,null]},dense:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},tabindex:{},labelValue:{},onChange:{type:Function},onPan:{type:Function},"onUpdate:modelValue":{type:Function}},emits:["update:model-value"],setup(t){const e=t,n=o.computed(()=>({...e,field:void 0,label:!!e.label})),r=o.computed(()=>e.currency?"$"+e.modelValue:e.percent?e.modelValue+"%":e.modelValue);return(s,i)=>{const l=o.resolveComponent("QSlider");return o.openBlock(),o.createElementBlock("div",j4,[o.createVNode(o.unref(ht),{label:s.label,field:s.field},null,8,["label","field"]),o.createVNode(l,o.mergeProps(n.value,{min:s.min,max:s.max,label:"","label-always":"","switch-label-side":"","price-label":r.value}),null,16,["min","max","price-label"])])}}});var W4=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],Z4=function(t){return W4.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())!==-1},Y4=function(t,e,n){Object.keys(e).filter(Z4).forEach(function(r){var s=e[r];typeof s=="function"&&(r==="onInit"?s(t,n):n.on(r.substring(2),function(i){return s(i,n)}))})},Q4=function(t,e,n,r){var s=t.modelEvents?t.modelEvents:null,i=Array.isArray(s)?s.join(" "):s;o.watch(r,function(l,a){n&&typeof l=="string"&&l!==a&&l!==n.getContent({format:t.outputFormat})&&n.setContent(l)}),n.on(i||"change input undo redo",function(){e.emit("update:modelValue",n.getContent({format:t.outputFormat}))})},K4=function(t,e,n,r,s,i){r.setContent(i()),n.attrs["onUpdate:modelValue"]&&Q4(e,n,r,s),Y4(t,n.attrs,r)},Fd=0,Ad=function(t){var e=Date.now(),n=Math.floor(Math.random()*1e9);return Fd++,t+"_"+n+Fd+String(e)},X4=function(t){return t!==null&&t.tagName.toLowerCase()==="textarea"},Dd=function(t){return typeof t>"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},J4=function(t,e){return Dd(t).concat(Dd(e))},ek=function(t){return t==null},Od=function(){return{listeners:[],scriptId:Ad("tiny-script"),scriptLoaded:!1}},tk=function(){var t=Od(),e=function(s,i,l,a){var c=i.createElement("script");c.referrerPolicy="origin",c.type="application/javascript",c.id=s,c.src=l;var u=function(){c.removeEventListener("load",u),a()};c.addEventListener("load",u),i.head&&i.head.appendChild(c)},n=function(s,i,l){t.scriptLoaded?l():(t.listeners.push(l),s.getElementById(t.scriptId)||e(t.scriptId,s,i,function(){t.listeners.forEach(function(a){return a()}),t.scriptLoaded=!0}))},r=function(){t=Od()};return{load:n,reinitialize:r}},nk=tk(),rk=function(){return typeof window<"u"?window:global},kn=function(){var t=rk();return t&&t.tinymce?t.tinymce:null},ok={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(t){return t==="html"||t==="text"}}},Ct=function(){return Ct=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s])}return t},Ct.apply(this,arguments)},sk=function(t,e,n,r){return t(r||"div",{id:e,ref:n})},ik=function(t,e,n){return t("textarea",{id:e,visibility:"hidden",ref:n})},Sl={selector:void 0,target:void 0},lk=o.defineComponent({props:ok,setup:function(t,e){var n=t.init?Ct(Ct({},t.init),Sl):Ct({},Sl),r=o.toRefs(t),s=r.disabled,i=r.modelValue,l=r.tagName,a=o.ref(null),c=null,u=t.id||Ad("tiny-vue"),d=t.init&&t.init.inline||t.inline,f=!!e.attrs["onUpdate:modelValue"],h=!0,_=t.initialValue?t.initialValue:"",g="",m=function(b){return f?function(){return i!=null&&i.value?i.value:""}:function(){return b?_:g}},p=function(){var b=m(h),w=Ct(Ct({},n),{readonly:t.disabled,target:a.value,plugins:J4(n.plugins,t.plugins),toolbar:t.toolbar||n.toolbar,inline:d,setup:function(C){c=C,C.on("init",function(E){return K4(E,t,e,C,i,b)}),typeof n.setup=="function"&&n.setup(C)}});X4(a.value)&&(a.value.style.visibility=""),kn().init(w),h=!1};o.watch(s,function(b){var w;c!==null&&(typeof((w=c.mode)===null||w===void 0?void 0:w.set)=="function"?c.mode.set(b?"readonly":"design"):c.setMode(b?"readonly":"design"))}),o.watch(l,function(b){var w;f||(g=c.getContent()),(w=kn())===null||w===void 0||w.remove(c),o.nextTick(function(){return p()})}),o.onMounted(function(){if(kn()!==null)p();else if(a.value&&a.value.ownerDocument){var b=t.cloudChannel?t.cloudChannel:"6",w=t.apiKey?t.apiKey:"no-api-key",C=ek(t.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/".concat(w,"/tinymce/").concat(b,"/tinymce.min.js"):t.tinymceScriptSrc;nk.load(a.value.ownerDocument,C,p)}}),o.onBeforeUnmount(function(){kn()!==null&&kn().remove(c)}),d||(o.onActivated(function(){h||p()}),o.onDeactivated(function(){var b;f||(g=c.getContent()),(b=kn())===null||b===void 0||b.remove(c)}));var y=function(b){var w;g=c.getContent(),(w=kn())===null||w===void 0||w.remove(c),n=Ct(Ct(Ct({},n),b),Sl),o.nextTick(function(){return p()})};return e.expose({rerender:y,getEditor:function(){return c}}),function(){return d?sk(o.h,u,a,t.tagName):ik(o.h,u,a)}}});const ak=["innerHTML"],Md={__name:"WysiwygField",props:{modelValue:{type:[String,Number],default:null},field:{type:Object,required:!0},noLabel:Boolean,showName:Boolean,disabled:Boolean,readonly:Boolean},emits:["update:model-value"],setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",null,[t.noLabel?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(ht),{key:0,field:t.field,"show-name":t.showName},null,8,["field","show-name"])),t.readonly?(o.openBlock(),o.createElementBlock("div",{key:1,class:"border border-gray-300 rounded-md p-2 bg-gray-100",innerHTML:t.modelValue},null,8,ak)):(o.openBlock(),o.createBlock(o.unref(lk),{key:2,class:"mt-2","api-key":o.unref(te).tinyMceApiKey,disabled:t.disabled,"model-value":t.modelValue,"onUpdate:modelValue":n[0]||(n[0]=r=>e.$emit("update:model-value",r))},null,8,["api-key","disabled","model-value"]))]))}},Vd=o.defineComponent({__name:"SaveStateIndicator",props:{saving:{type:Boolean},savedAt:{default:""},savingClass:{default:"text-sm text-slate-500"}},setup(t){return(e,n)=>{const r=o.resolveComponent("QSpinnerPie");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([e.savingClass,"dx-saving-indicator flex items-center flex-nowrap"])},[e.saving?o.renderSlot(e.$slots,"saving",{key:0},()=>[n[0]||(n[0]=o.createTextVNode(" Saving... ")),o.createVNode(r,{class:"ml-2"})]):o.renderSlot(e.$slots,"saved",{key:1},()=>[e.savedAt?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(" Saved at "+o.toDisplayString(o.unref(Ys)(e.savedAt,{format:"M/d/yy h:mm:ssa"})),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" Not saved ")],64))])],2)}}}),ck={class:"dx-rendered-form"},uk={key:0,class:"mb-4"},dk={class:"flex flex-nowrap items-center text-sm w-full"},fk={key:0,class:"variation-missing-icon pl-1"},_k={class:"flex-grow"},hk={key:1,class:"flex flex-nowrap items-center mr-2"},mk=["onClick"],pk=["onClick"],El=o.defineComponent({__name:"RenderedForm",props:{values:{default:null},form:{},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},saving:{type:Boolean},clearable:{type:Boolean},emptyValue:{type:[String,Number,Boolean],default:void 0},canModifyVariations:{type:Boolean},fieldClass:{default:""},savingClass:{default:"text-sm text-slate-500 justify-end mt-4"},savedAt:{default:void 0}},emits:["update:values"],setup(t,{emit:e}){const n=t,r=e,s={BOOLEAN:yl,DATE:kl,DATE_RANGE:xl,INTEGER:Td,NUMBER:to,TEXT:wn,SINGLE_FILE:$d,MULTI_FILE:Bd,WYSIWYG:Md},i=n.form.fields.map(N=>({placeholder:`Enter ${N.label}`,...N,component:N.component||s[N.type]})),l=o.computed(()=>{const N=n.values;return N?Array.isArray(N)?N:Object.entries(N).filter($=>i.find(A=>A.name===$[0])).map(([$,A])=>({name:$,value:A,variation:""})):[]}),a=o.computed(()=>{const N={};for(const $ of i)N[$.name]=y($.name);return N});function c(N){return N.enabled===void 0?!0:typeof N.enabled=="function"?N.enabled(a.value):N.enabled}function u(N){return{modelValue:y(N.name),label:N.label,clearable:N.clearable||n.clearable,readonly:n.readonly,disabled:n.disabled,disable:n.disabled,showName:n.showName,noLabel:n.noLabel}}const d=o.computed(()=>{const N=[...new Set(l.value.map($=>$.variation))].sort();return N.length===0&&N.push(""),N}),f=o.ref(d.value[0]||""),h=o.ref(""),_=o.ref(!1),g=o.ref(""),m=o.computed(()=>n.canModifyVariations&&!n.readonly&&!n.disabled&&d.value.length<(n.form.variations||0));function p(N,$){if(l.value)return l.value.find(A=>A.variation===($!==void 0?$:f.value)&&A.name===N)}function y(N){var $;return($=p(N))==null?void 0:$.value}function b(N,$){const A=p(N),F={name:N,variation:f.value||"",value:$===void 0?n.emptyValue:$},I=ka(l.value,A,F,!0);w(I)}function w(N){let $=N;Array.isArray(n.values)||($=N.reduce((A,F)=>(A[F.name]=F.value,A),{})),r("update:values",$)}o.onMounted(()=>{window.addEventListener("beforeunload",C)}),o.onBeforeUnmount(()=>{window.removeEventListener("beforeunload",C)});function C(N){if(n.saving)return N.returnValue="Changes are currently being saved. If you leave now, you might lose unsaved changes."}function E(N){return n.form.fields.map($=>({variation:N,name:$.name,value:$.default_value===void 0?null:$.default_value}))}function k(){if(n.saving)return;let N=[...l.value];N.length===0&&(N=E(""));const $=d.value[d.value.length-1],A=Au($||"1"),F=E(A);w([...N,...F]),f.value=A}function S(){if(!h.value)return;if(d.value.includes(h.value)){Ue.error("Variation name already exists");return}const N=l.value.map($=>$.variation===_.value?{...$,variation:h.value}:$);w(N),f.value=h.value,_.value=!1,h.value=""}function T(N){if(!N)return;const $=l.value.filter(A=>A.variation!==N);w($),f.value===N&&(f.value=d.value[0]),g.value=""}function B(N){const $={};return n.form.fields.filter(A=>A.required||A.required_group).every(A=>{const F=p(A.name,N),I=!!F&&F.value!==null;return A.required_group?$[A.required_group]?!0:$[A.required_group]=I:I})}return(N,$)=>{const A=o.resolveComponent("QTooltip"),F=o.resolveComponent("QTab"),I=o.resolveComponent("QSpinnerBall"),q=o.resolveComponent("QTabs");return o.openBlock(),o.createElementBlock("div",ck,[N.form.variations>1?(o.openBlock(),o.createElementBlock("div",uk,[o.createVNode(q,{modelValue:f.value,"onUpdate:modelValue":$[0]||($[0]=V=>f.value=V),class:"text-xs"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.value,(V,Z)=>(o.openBlock(),o.createBlock(F,{key:V,name:V,class:"p-0","content-class":"w-full"},{default:o.withCtx(()=>[o.createElementVNode("div",dk,[B(V)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",fk,[o.createVNode(o.unref(Oc),{class:"text-red-400 w-4"}),o.createVNode(A,null,{default:o.withCtx(()=>$[5]||($[5]=[o.createTextVNode("Creative Form Incomplete")])),_:1})])),o.createElementVNode("div",_k,o.toDisplayString(V||"1"),1),!N.disabled&&!N.readonly&&N.canModifyVariations?(o.openBlock(),o.createElementBlock("div",hk,[o.createElementVNode("a",{class:"ml-1 p-1 hover:opacity-100 opacity-20 hover:bg-blue-200 rounded",onClick:()=>(_.value=V)&&(h.value=V)},[o.createVNode(o.unref(Mc),{class:"w-3 text-blue-900"})],8,mk),Z>0?(o.openBlock(),o.createElementBlock("a",{key:0,class:"ml-1 p-1 hover:opacity-100 opacity-20 hover:bg-red-200 rounded",onClick:Y=>g.value=V},[o.createVNode(o.unref(ls),{class:"w-3 text-red-900"})],8,pk)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)])]),_:2},1032,["name"]))),128)),m.value?(o.openBlock(),o.createBlock(F,{key:"add-new-variation",name:"add",class:"bg-blue-600 rounded-t-lg !text-white",onClick:k},{default:o.withCtx(()=>[N.saving?(o.openBlock(),o.createBlock(I,{key:0,class:"w-4"})):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" + Add Variation ")],64))]),_:1})):o.createCommentVNode("",!0)]),_:1},8,["modelValue"])])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i),(V,Z)=>o.withDirectives((o.openBlock(),o.createElementBlock("div",{key:V.id,class:o.normalizeClass({"mt-4":Z>0,[N.fieldClass]:!0})},[V.vnode?(o.openBlock(),o.createBlock(o.unref(xn),{key:0,vnode:V.vnode,props:u(V),params:a.value,"onUpdate:modelValue":Y=>b(V.name,Y)},null,8,["vnode","props","params","onUpdate:modelValue"])):o.createCommentVNode("",!0),(o.openBlock(),o.createBlock(o.resolveDynamicComponent(V.component),{key:V.name+"-"+f.value,"model-value":y(V.name),field:V,label:V.label||void 0,"no-label":N.noLabel,"show-name":N.showName,clearable:V.clearable||N.clearable,disabled:N.disabled,disable:N.disabled,readonly:N.readonly,"onUpdate:modelValue":Y=>b(V.name,Y)},null,8,["model-value","field","label","no-label","show-name","clearable","disabled","disable","readonly","onUpdate:modelValue"]))],2)),[[o.vShow,c(V)]])),128)),o.renderSlot(N.$slots,"default"),o.createVNode(o.unref(Vd),{saving:N.saving,"saved-at":N.savedAt,"saving-class":N.savingClass},null,8,["saving","saved-at","saving-class"]),_.value!==!1?(o.openBlock(),o.createBlock(o.unref(Ot),{key:1,title:"Change variation name",onConfirm:S,onClose:$[2]||($[2]=V=>_.value=!1)},{default:o.withCtx(()=>[o.createVNode(o.unref(wn),{modelValue:h.value,"onUpdate:modelValue":$[1]||($[1]=V=>h.value=V),label:"Enter name",placeholder:"Variation Name","input-class":"bg-white"},null,8,["modelValue"])]),_:1})):o.createCommentVNode("",!0),g.value?(o.openBlock(),o.createBlock(o.unref(Ot),{key:2,title:`Remove variation ${g.value}?`,content:"You cannot undo this action. If there was any analytics collected for this variation, it will still be attributed to the ad.","confirm-class":"bg-red-900 text-white","content-class":"w-96",onConfirm:$[3]||($[3]=V=>T(g.value)),onClose:$[4]||($[4]=V=>g.value="")},null,8,["title"])):o.createCommentVNode("",!0)])}}}),Ld=o.defineComponent({__name:"ActionForm",props:{action:{},target:{},form:{},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},clearable:{type:Boolean},fieldClass:{default:""},savingClass:{default:void 0},hideSavedAt:{type:Boolean}},emits:["saved"],setup(t,{emit:e}){const n=e,r=t,s={form:r.form,noLabel:r.noLabel,showName:r.showName,disabled:r.disabled,readonly:r.readonly,clearable:r.clearable,fieldClass:r.fieldClass,savingClass:r.savingClass},i=o.ref({...r.target}),l={};o.watch(()=>r.target,u=>{var d;if(u)for(let f of r.form.fields)(d=l[f.name])!=null&&d.isSaving||(i.value[f.name]=u[f.name])});const a=o.computed(()=>{for(let u of r.form.fields){const d=i.value[u.name];if(u.required&&!d&&d!==!1&&d!==0)return!1}return!0});async function c(){a.value&&(await r.action.trigger(r.target,i.value),n("saved"))}return(u,d)=>(o.openBlock(),o.createBlock(El,o.mergeProps(s,{values:i.value,"onUpdate:values":[d[0]||(d[0]=f=>i.value=f),c],"empty-value":"","saved-at":u.hideSavedAt?void 0:u.target.updated_at,saving:u.action.isApplying}),{default:o.withCtx(()=>[o.renderSlot(u.$slots,"default")]),_:3},16,["values","saved-at","saving"]))}}),gk=o.defineComponent({__name:"RenderedFormDialog",props:o.mergeModels({title:{},confirmText:{},form:{},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},clearable:{type:Boolean},fieldClass:{},savingClass:{},hideSavedAt:{type:Boolean},contentClass:{}},{modelValue:{},modelModifiers:{}}),emits:o.mergeModels(["confirm","close"],["update:modelValue"]),setup(t){const e=t,n=o.useModel(t,"modelValue"),r={form:e.form,noLabel:e.noLabel,showName:e.showName,disabled:e.disabled,readonly:e.readonly,clearable:e.clearable,fieldClass:e.fieldClass,savingClass:e.savingClass};return(s,i)=>(o.openBlock(),o.createBlock(o.unref(Ot),{title:s.title,"confirm-text":s.confirmText||s.title,"content-class":s.contentClass,onConfirm:i[1]||(i[1]=l=>s.$emit("confirm",n.value)),onClose:i[2]||(i[2]=l=>s.$emit("close"))},{default:o.withCtx(()=>[o.createVNode(o.unref(El),o.mergeProps(r,{values:n.value,"onUpdate:values":i[0]||(i[0]=l=>n.value=l),"empty-value":""}),{default:o.withCtx(()=>[o.renderSlot(s.$slots,"default")]),_:3},16,["values"])]),_:3},8,["title","confirm-text","content-class"]))}});function Pd(t){const{file:e}=t,n=o.ref(!1);function r(){var l,a;if(!((l=e.value)!=null&&l.id)||n.value||!((a=te.value.fileUpload)!=null&&a.refreshFile))return!1;const i=e.value.transcodes;return i==null||Array.isArray(i)&&i.length===0}async function s(){var i,l;if(r()){n.value=!0;try{const a=(i=te.value.fileUpload)==null?void 0:i.refreshFile;if(a&&((l=e.value)!=null&&l.id)){const c=await a(e.value.id);c.transcodes&&e.value&&(e.value.transcodes=c.transcodes)}}catch(a){console.error("Failed to load transcodes:",a)}finally{n.value=!1}}}return o.onMounted(()=>{s()}),o.watch(()=>{var i;return(i=e.value)==null?void 0:i.id},()=>{s()}),{isLoading:n,loadTranscodes:s}}const bk={key:0,class:"relative max-h-full max-w-full w-full flex justify-center"},yk={class:"max-h-full",preload:"auto"},wk=["src","type"],kk={key:2,class:"flex items-center justify-center h-full"},xk={key:0,class:"text-[.7rem] bg-slate-900 text-slate-300 opacity-80 h-[2.25rem] py-.5 px-1 absolute-bottom"},Ck={key:1,class:"absolute-bottom w-full bg-slate-800"},Sk={class:"absolute-full flex items-center flex-nowrap text-[.7rem] text-slate-200 justify-start px-1"},Ek={class:"whitespace-nowrap overflow-hidden ellipsis"},Tk={class:"absolute top-1 right-1 flex items-center flex-nowrap justify-between space-x-1 transition-all opacity-0 group-hover:opacity-100"},Bk={class:"flex items-center flex-nowrap gap-1"},Nk={class:"flex items-center flex-nowrap gap-1"},Ik={key:0,class:"font-bold text-[1rem] leading-[1.2rem]"},no=qe(o.defineComponent({__name:"FilePreview",props:{src:{default:""},file:{default:null},relatedFiles:{default:null},missingIcon:{default:al},showFilename:{type:Boolean},downloadButtonClass:{default:"bg-blue-600 text-white"},imageFit:{default:"cover"},downloadable:{type:Boolean,default:!1},removable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},square:{type:Boolean,default:!1},btnSize:{default:"sm"}},emits:["remove"],setup(t,{emit:e}){const n=e,r=t,s=o.toRef(r,"file"),i=o.toRef(r,"src"),{computedImage:l,filename:a,mimeType:c,isVideo:u,isPdf:d,isExternalLink:f,previewUrl:h,thumbUrl:_,isPreviewable:g,hasMetadata:m,metadataKeyCount:p,filteredMetadata:y,hasTranscodes:b,transcodingStatus:w}=dl({file:s,src:i});Pd({file:s});const C=o.ref(!1),E=o.ref(!1),k=o.ref(!1),S=o.computed(()=>{var F;return r.file&&((F=r.file)==null?void 0:F.progress)!==void 0}),T=o.computed(()=>{var F;return S.value?"Uploading...":(F=w.value)==null?void 0:F.message}),B=o.computed(()=>{var F;return((F=r.relatedFiles)==null?void 0:F.length)>0?O0([l.value,...r.relatedFiles],N):[l.value]});function N(F,I){var q,V,Z,Y;return F.id===I.id||[I.url,(q=I.optimized)==null?void 0:q.url,(V=I.thumb)==null?void 0:V.url].includes(F.url)||[F.url,(Z=F.optimized)==null?void 0:Z.url,(Y=F.thumb)==null?void 0:Y.url].includes(I.url)}function $(){k.value?n("remove"):(k.value=!0,setTimeout(()=>{k.value=!1},2e3))}function A(){if(l.value&&ds(l.value)){window.open(l.value.url,"_blank");return}C.value=!0}return(F,I)=>{var ut,Ke,dn,ze,dt;const q=o.resolveComponent("QImg"),V=o.resolveComponent("QTooltip"),Z=o.resolveComponent("QSpinnerPie"),Y=o.resolveComponent("QLinearProgress"),ye=o.resolveComponent("QBadge"),X=o.resolveComponent("QBtn");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["group relative flex justify-center bg-gray-100 overflow-hidden",{"rounded-2xl":!F.square}])},[o.unref(l)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",{class:"grow h-full",onClick:A},[o.unref(u)?(o.openBlock(),o.createElementBlock("div",bk,[o.createElementVNode("video",yk,[o.createElementVNode("source",{src:o.unref(h)+"#t=0.1",type:o.unref(c)},null,8,wk)]),o.createElementVNode("button",{class:o.normalizeClass(F.cls["play-button"])},[o.createVNode(o.unref(O2),{class:"w-16"})],2)])):o.createCommentVNode("",!0),o.unref(_)||o.unref(g)?(o.openBlock(),o.createBlock(q,{key:1,fit:F.imageFit,class:"non-selectable max-h-full max-w-full h-full",src:(o.unref(_)||o.unref(h))+"#t=0.1",preload:"auto","data-testid":"previewed-image"},null,8,["fit","src"])):(o.openBlock(),o.createElementBlock("div",kk,[o.unref(f)?(o.openBlock(),o.createBlock(o.unref(rd),{key:0,class:"h-3/4"})):o.unref(d)?(o.openBlock(),o.createBlock(o.unref(od),{key:1,class:"w-3/4"})):(o.openBlock(),o.createBlock(o.unref(B2),{key:2,class:"w-3/4"})),o.unref(a)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:3},[F.showFilename?(o.openBlock(),o.createElementBlock("div",xk,o.toDisplayString(o.unref(a)),1)):(o.openBlock(),o.createBlock(V,{key:1},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(a)),1)]),_:1}))],64)):o.createCommentVNode("",!0)]))]),F.$slots["action-button"]?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(F.cls["action-button"])},[o.renderSlot(F.$slots,"action-button")],2)):o.createCommentVNode("",!0),S.value||o.unref(w)?(o.openBlock(),o.createElementBlock("div",Ck,[(o.openBlock(),o.createBlock(Y,{key:"progress-"+S.value?"uploading":"transcoding",value:S.value?((ut=F.file)==null?void 0:ut.progress)||0:(((Ke=o.unref(w))==null?void 0:Ke.progress)||0)/100,size:"36px",color:S.value?"green-800":"blue-800","animation-speed":((dn=o.unref(w))==null?void 0:dn.estimate_ms)||3e3,stripe:""},{default:o.withCtx(()=>[o.createElementVNode("div",Sk,[o.createVNode(Z,{class:"mr-2 text-slate-50 ml-1 flex-shrink-0",size:F.btnSize==="xs"?10:20},null,8,["size"]),T.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",Ek,o.toDisplayString(T.value),1),o.createVNode(V,{class:"text-sm"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(T.value),1)]),_:1})],64)):o.createCommentVNode("",!0)])]),_:1},8,["value","color","animation-speed"]))])):o.createCommentVNode("",!0)],64)):o.renderSlot(F.$slots,"missing",{key:1},()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(F.missingIcon),{class:"w-full h-full p-2 text-gray-300"}))]),o.createElementVNode("div",Tk,[o.unref(m)?(o.openBlock(),o.createBlock(X,{key:0,size:F.btnSize,class:"dx-file-preview-metadata bg-purple-700 text-white opacity-70 hover:opacity-100 py-1 px-2 relative",onClick:I[0]||(I[0]=o.withModifiers(zt=>E.value=!0,["stop"]))},{default:o.withCtx(()=>[o.createElementVNode("div",Bk,[o.createVNode(o.unref(Nc),{class:"w-4 h-4"}),o.createVNode(ye,{class:"bg-purple-900 text-purple-200",label:o.unref(p)},null,8,["label"])]),o.createVNode(V,null,{default:o.withCtx(()=>I[5]||(I[5]=[o.createTextVNode("View Metadata")])),_:1})]),_:1},8,["size"])):o.createCommentVNode("",!0),o.unref(b)?(o.openBlock(),o.createBlock(X,{key:1,size:F.btnSize,class:"dx-file-preview-transcodes bg-purple-700 text-white opacity-70 hover:opacity-100 py-1 px-2 relative",onClick:I[1]||(I[1]=o.withModifiers(zt=>C.value=!0,["stop"]))},{default:o.withCtx(()=>{var zt,bi;return[o.createElementVNode("div",Nk,[o.createVNode(o.unref(fd),{class:"w-4 h-5"}),o.createVNode(ye,{class:"bg-purple-900 text-purple-200",label:((bi=(zt=F.file)==null?void 0:zt.transcodes)==null?void 0:bi.length)||0},null,8,["label"])]),o.createVNode(V,null,{default:o.withCtx(()=>I[6]||(I[6]=[o.createTextVNode("View Transcodes")])),_:1})]}),_:1},8,["size"])):o.createCommentVNode("",!0),F.downloadable&&((ze=o.unref(l))!=null&&ze.url)?(o.openBlock(),o.createBlock(X,{key:2,size:F.btnSize,class:o.normalizeClass(["dx-file-preview-download py-1 px-2 opacity-70 hover:opacity-100",F.downloadButtonClass]),onClick:I[2]||(I[2]=o.withModifiers(zt=>o.unref(Ks)(o.unref(l).url),["stop"]))},{default:o.withCtx(()=>[o.createVNode(o.unref(I2),{class:"w-4 h-5"})]),_:1},8,["size","class"])):o.createCommentVNode("",!0),F.removable?(o.openBlock(),o.createBlock(X,{key:3,size:F.btnSize,class:"dx-file-preview-remove bg-red-900 text-white opacity-50 hover:opacity-100 py-1 px-2",onClick:o.withModifiers($,["stop"])},{default:o.withCtx(()=>[k.value?(o.openBlock(),o.createElementBlock("div",Ik," ? ")):(o.openBlock(),o.createBlock(o.unref(ls),{key:1,class:"w-3"}))]),_:1},8,["size"])):o.createCommentVNode("",!0)]),E.value?(o.openBlock(),o.createBlock(hl,{key:2,filename:o.unref(a),"mime-type":o.unref(c),metadata:o.unref(y),onClose:I[3]||(I[3]=zt=>E.value=!1)},null,8,["filename","mime-type","metadata"])):o.createCommentVNode("",!0),C.value&&!F.disabled&&B.value?(o.openBlock(),o.createBlock(o.unref(Cd),{key:3,files:B.value,"default-slide":((dt=B.value[0])==null?void 0:dt.id)||"",onClose:I[4]||(I[4]=zt=>C.value=!1)},null,8,["files","default-slide"])):o.createCommentVNode("",!0)],2)}}}),[["__cssModules",{cls:{"pointer-events-none":"_pointer-events-none_10wbt_1","!visible":"_!visible_10wbt_1",visible:"_visible_10wbt_1",collapse:"_collapse_10wbt_231",static:"_static_10wbt_1",absolute:"_absolute_10wbt_1",relative:"_relative_10wbt_1",sticky:"_sticky_10wbt_1","inset-0":"_inset-0_10wbt_1","bottom-0":"_bottom-0_10wbt_1","left-0":"_left-0_10wbt_1","left-2":"_left-2_10wbt_1","left-4":"_left-4_10wbt_1","right-0":"_right-0_10wbt_1","right-1":"_right-1_10wbt_1","right-2":"_right-2_10wbt_1","right-4":"_right-4_10wbt_1","top-0":"_top-0_10wbt_1","top-1":"_top-1_10wbt_1","top-1/2":"_top-1/2_10wbt_1","top-2":"_top-2_10wbt_1","z-0":"_z-0_10wbt_1","z-10":"_z-10_10wbt_1","z-20":"_z-20_10wbt_1","z-30":"_z-30_10wbt_1","m-2":"_m-2_10wbt_1","m-4":"_m-4_10wbt_1","m-auto":"_m-auto_10wbt_1","mx-1":"_mx-1_10wbt_1","mx-4":"_mx-4_10wbt_1","mx-auto":"_mx-auto_10wbt_1","my-2":"_my-2_10wbt_1","!mr-1":"_!mr-1_10wbt_1","mb-2":"_mb-2_10wbt_1","mb-4":"_mb-4_10wbt_1","ml-1":"_ml-1_10wbt_1","ml-2":"_ml-2_10wbt_1","ml-2.5":"_ml-2.5_10wbt_1","ml-3":"_ml-3_10wbt_1","ml-4":"_ml-4_10wbt_1","ml-5":"_ml-5_10wbt_1","ml-[-.2em]":"_ml-[-.2em]_10wbt_1","mr-1":"_mr-1_10wbt_1","mr-2":"_mr-2_10wbt_1","mr-3":"_mr-3_10wbt_1","mr-4":"_mr-4_10wbt_1","mt-1":"_mt-1_10wbt_1","mt-2":"_mt-2_10wbt_1","mt-3":"_mt-3_10wbt_1","mt-4":"_mt-4_10wbt_1",block:"_block_10wbt_1","inline-block":"_inline-block_10wbt_1",inline:"_inline_10wbt_1",flex:"_flex_10wbt_1",table:"_table_10wbt_1",grid:"_grid_10wbt_1",hidden:"_hidden_10wbt_1","aspect-square":"_aspect-square_10wbt_1","h-10":"_h-10_10wbt_1","h-12":"_h-12_10wbt_1","h-16":"_h-16_10wbt_1","h-20":"_h-20_10wbt_1","h-3":"_h-3_10wbt_1","h-3.5":"_h-3.5_10wbt_1","h-3/4":"_h-3/4_10wbt_1","h-4":"_h-4_10wbt_1","h-5":"_h-5_10wbt_1","h-6":"_h-6_10wbt_1","h-8":"_h-8_10wbt_1","h-96":"_h-96_10wbt_1","h-[2.25rem]":"_h-[2.25rem]_10wbt_1","h-[80vh]":"_h-[80vh]_10wbt_1","h-full":"_h-full_10wbt_1","max-h-[80vh]":"_max-h-[80vh]_10wbt_1","max-h-full":"_max-h-full_10wbt_1","min-h-0":"_min-h-0_10wbt_1","min-h-10":"_min-h-10_10wbt_1","w-10":"_w-10_10wbt_1","w-16":"_w-16_10wbt_1","w-2":"_w-2_10wbt_1","w-2/5":"_w-2/5_10wbt_1","w-20":"_w-20_10wbt_1","w-24":"_w-24_10wbt_1","w-3":"_w-3_10wbt_1","w-3.5":"_w-3.5_10wbt_1","w-3/4":"_w-3/4_10wbt_1","w-3/5":"_w-3/5_10wbt_1","w-32":"_w-32_10wbt_1","w-4":"_w-4_10wbt_1","w-48":"_w-48_10wbt_1","w-5":"_w-5_10wbt_1","w-6":"_w-6_10wbt_1","w-7":"_w-7_10wbt_1","w-72":"_w-72_10wbt_1","w-8":"_w-8_10wbt_1","w-96":"_w-96_10wbt_1","w-[13.5rem]":"_w-[13.5rem]_10wbt_1","w-[40%]":"_w-[40%]_10wbt_1","w-[6.5rem]":"_w-[6.5rem]_10wbt_1","w-[60vw]":"_w-[60vw]_10wbt_1","w-[80vw]":"_w-[80vw]_10wbt_1","w-full":"_w-full_10wbt_1","!min-w-0":"_!min-w-0_10wbt_1","min-w-0":"_min-w-0_10wbt_1","min-w-10":"_min-w-10_10wbt_1","min-w-96":"_min-w-96_10wbt_1","min-w-[300px]":"_min-w-[300px]_10wbt_1","max-w-[400px]":"_max-w-[400px]_10wbt_1","max-w-[600px]":"_max-w-[600px]_10wbt_1","max-w-full":"_max-w-full_10wbt_1","max-w-none":"_max-w-none_10wbt_1","flex-1":"_flex-1_10wbt_1","flex-shrink":"_flex-shrink_10wbt_1","flex-shrink-0":"_flex-shrink-0_10wbt_1",shrink:"_shrink_10wbt_1","flex-grow":"_flex-grow_10wbt_1",grow:"_grow_10wbt_1","-translate-y-1/2":"_-translate-y-1/2_10wbt_1","rotate-180":"_rotate-180_10wbt_1","scale-110":"_scale-110_10wbt_1",transform:"_transform_10wbt_1","cursor-ew-resize":"_cursor-ew-resize_10wbt_1","cursor-move":"_cursor-move_10wbt_1","cursor-not-allowed":"_cursor-not-allowed_10wbt_1","cursor-ns-resize":"_cursor-ns-resize_10wbt_1","cursor-pointer":"_cursor-pointer_10wbt_1",resize:"_resize_10wbt_1","grid-cols-3":"_grid-cols-3_10wbt_1","flex-col":"_flex-col_10wbt_1","flex-wrap":"_flex-wrap_10wbt_1","flex-nowrap":"_flex-nowrap_10wbt_1","items-center":"_items-center_10wbt_1","items-stretch":"_items-stretch_10wbt_1","justify-start":"_justify-start_10wbt_1","justify-end":"_justify-end_10wbt_1","justify-center":"_justify-center_10wbt_1","justify-between":"_justify-between_10wbt_1","gap-1":"_gap-1_10wbt_1","gap-2":"_gap-2_10wbt_1","gap-3":"_gap-3_10wbt_1","gap-x-2":"_gap-x-2_10wbt_1","gap-x-4":"_gap-x-4_10wbt_1","gap-y-0":"_gap-y-0_10wbt_1","gap-y-1":"_gap-y-1_10wbt_1","space-x-1":"_space-x-1_10wbt_1","space-x-2":"_space-x-2_10wbt_1","self-center":"_self-center_10wbt_1","overflow-auto":"_overflow-auto_10wbt_1","overflow-hidden":"_overflow-hidden_10wbt_1","overflow-x-auto":"_overflow-x-auto_10wbt_1","overflow-y-auto":"_overflow-y-auto_10wbt_70","overflow-x-hidden":"_overflow-x-hidden_10wbt_1","overflow-y-hidden":"_overflow-y-hidden_10wbt_1","scroll-smooth":"_scroll-smooth_10wbt_1",truncate:"_truncate_10wbt_1","overflow-ellipsis":"_overflow-ellipsis_10wbt_1","whitespace-normal":"_whitespace-normal_10wbt_1","whitespace-nowrap":"_whitespace-nowrap_10wbt_1","whitespace-pre-wrap":"_whitespace-pre-wrap_10wbt_1",rounded:"_rounded_10wbt_1","rounded-2xl":"_rounded-2xl_10wbt_1","rounded-full":"_rounded-full_10wbt_1","rounded-lg":"_rounded-lg_10wbt_1","rounded-md":"_rounded-md_10wbt_1","rounded-sm":"_rounded-sm_10wbt_1","!rounded-l-none":"_!rounded-l-none_10wbt_1","!rounded-r-none":"_!rounded-r-none_10wbt_1","rounded-b-lg":"_rounded-b-lg_10wbt_1","rounded-l-lg":"_rounded-l-lg_10wbt_1","rounded-r-lg":"_rounded-r-lg_10wbt_1","rounded-t-2xl":"_rounded-t-2xl_10wbt_1","rounded-t-lg":"_rounded-t-lg_10wbt_1","rounded-t-md":"_rounded-t-md_10wbt_1","rounded-br":"_rounded-br_10wbt_1","rounded-tl":"_rounded-tl_10wbt_1","!border-0":"_!border-0_10wbt_1",border:"_border_10wbt_1","border-2":"_border-2_10wbt_1","border-b":"_border-b_10wbt_1","border-l":"_border-l_10wbt_1","border-l-0":"_border-l-0_10wbt_1","border-r":"_border-r_10wbt_1","border-solid":"_border-solid_10wbt_1","border-dashed":"_border-dashed_10wbt_1","border-none":"_border-none_10wbt_1","border-blue-500":"_border-blue-500_10wbt_1","border-blue-600":"_border-blue-600_10wbt_1","border-blue-700":"_border-blue-700_10wbt_1","border-gray-200":"_border-gray-200_10wbt_1","border-gray-300":"_border-gray-300_10wbt_1","border-purple-500":"_border-purple-500_10wbt_1","border-slate-200":"_border-slate-200_10wbt_1","border-slate-700":"_border-slate-700_10wbt_1","border-transparent":"_border-transparent_10wbt_1","bg-amber-300":"_bg-amber-300_10wbt_1","bg-amber-950":"_bg-amber-950_10wbt_1","bg-black":"_bg-black_10wbt_1","bg-blue-200":"_bg-blue-200_10wbt_1","bg-blue-300":"_bg-blue-300_10wbt_1","bg-blue-600":"_bg-blue-600_10wbt_1","bg-blue-900":"_bg-blue-900_10wbt_1","bg-blue-950":"_bg-blue-950_10wbt_1","bg-cyan-950":"_bg-cyan-950_10wbt_1","bg-emerald-200":"_bg-emerald-200_10wbt_1","bg-emerald-950":"_bg-emerald-950_10wbt_1","bg-fuchsia-950":"_bg-fuchsia-950_10wbt_1","bg-gray-100":"_bg-gray-100_10wbt_1","bg-gray-200":"_bg-gray-200_10wbt_1","bg-gray-400":"_bg-gray-400_10wbt_1","bg-gray-50":"_bg-gray-50_10wbt_1","bg-gray-500":"_bg-gray-500_10wbt_1","bg-gray-800":"_bg-gray-800_10wbt_1","bg-green-200":"_bg-green-200_10wbt_1","bg-green-300":"_bg-green-300_10wbt_1","bg-green-900":"_bg-green-900_10wbt_1","bg-green-950":"_bg-green-950_10wbt_1","bg-indigo-950":"_bg-indigo-950_10wbt_1","bg-lime-300":"_bg-lime-300_10wbt_1","bg-lime-950":"_bg-lime-950_10wbt_1","bg-orange-900":"_bg-orange-900_10wbt_1","bg-orange-950":"_bg-orange-950_10wbt_1","bg-purple-700":"_bg-purple-700_10wbt_1","bg-purple-900":"_bg-purple-900_10wbt_1","bg-purple-950":"_bg-purple-950_10wbt_1","bg-red-200":"_bg-red-200_10wbt_1","bg-red-300":"_bg-red-300_10wbt_1","bg-red-900":"_bg-red-900_10wbt_1","bg-red-950":"_bg-red-950_10wbt_1","bg-rose-950":"_bg-rose-950_10wbt_1","bg-sky-300":"_bg-sky-300_10wbt_1","bg-sky-50":"_bg-sky-50_10wbt_1","bg-sky-800":"_bg-sky-800_10wbt_1","bg-sky-900":"_bg-sky-900_10wbt_1","bg-sky-950":"_bg-sky-950_10wbt_1","bg-slate-100":"_bg-slate-100_10wbt_1","bg-slate-300":"_bg-slate-300_10wbt_1","bg-slate-400":"_bg-slate-400_10wbt_1","bg-slate-500":"_bg-slate-500_10wbt_1","bg-slate-600":"_bg-slate-600_10wbt_1","bg-slate-700":"_bg-slate-700_10wbt_1","bg-slate-800":"_bg-slate-800_10wbt_1","bg-slate-900":"_bg-slate-900_10wbt_1","bg-slate-950":"_bg-slate-950_10wbt_1","bg-teal-200":"_bg-teal-200_10wbt_1","bg-teal-500":"_bg-teal-500_10wbt_1","bg-teal-950":"_bg-teal-950_10wbt_1","bg-transparent":"_bg-transparent_10wbt_1","bg-violet-950":"_bg-violet-950_10wbt_1","bg-white":"_bg-white_10wbt_1","bg-yellow-300":"_bg-yellow-300_10wbt_1","bg-yellow-800":"_bg-yellow-800_10wbt_1","bg-yellow-950":"_bg-yellow-950_10wbt_1","bg-opacity-70":"_bg-opacity-70_10wbt_1","bg-opacity-80":"_bg-opacity-80_10wbt_1","bg-opacity-90":"_bg-opacity-90_10wbt_1","!bg-none":"_!bg-none_10wbt_1","object-contain":"_object-contain_10wbt_1","object-cover":"_object-cover_10wbt_1","!p-2":"_!p-2_10wbt_1","p-0":"_p-0_10wbt_1","p-1":"_p-1_10wbt_1","p-2":"_p-2_10wbt_1","p-3":"_p-3_10wbt_1","p-4":"_p-4_10wbt_1","p-8":"_p-8_10wbt_1","!py-0":"_!py-0_10wbt_1","px-1":"_px-1_10wbt_1","px-1.5":"_px-1.5_10wbt_1","px-12":"_px-12_10wbt_1","px-16":"_px-16_10wbt_1","px-2":"_px-2_10wbt_1","px-2.5":"_px-2.5_10wbt_1","px-3":"_px-3_10wbt_1","px-4":"_px-4_10wbt_1","px-6":"_px-6_10wbt_1","px-8":"_px-8_10wbt_1","py-0":"_py-0_10wbt_1","py-0.5":"_py-0.5_10wbt_1","py-1":"_py-1_10wbt_1","py-1.5":"_py-1.5_10wbt_1","py-14":"_py-14_10wbt_1","py-2":"_py-2_10wbt_1","py-3":"_py-3_10wbt_1","py-4":"_py-4_10wbt_1","py-8":"_py-8_10wbt_1","pl-1":"_pl-1_10wbt_1","pt-3":"_pt-3_10wbt_1","text-left":"_text-left_10wbt_1","text-center":"_text-center_10wbt_1","text-[.7rem]":"_text-[.7rem]_10wbt_1","text-[1rem]":"_text-[1rem]_10wbt_1","text-base":"_text-base_10wbt_1","text-lg":"_text-lg_10wbt_1","text-sm":"_text-sm_10wbt_1","text-xs":"_text-xs_10wbt_1","font-bold":"_font-bold_10wbt_1","font-medium":"_font-medium_10wbt_1","font-semibold":"_font-semibold_10wbt_1",uppercase:"_uppercase_10wbt_1",italic:"_italic_10wbt_1","leading-[1.2rem]":"_leading-[1.2rem]_10wbt_1","!text-green-900":"_!text-green-900_10wbt_1","!text-red-900":"_!text-red-900_10wbt_1","!text-sky-900":"_!text-sky-900_10wbt_1","!text-white":"_!text-white_10wbt_1","!text-yellow-900":"_!text-yellow-900_10wbt_1","text-amber-400":"_text-amber-400_10wbt_1","text-amber-900":"_text-amber-900_10wbt_1","text-blue-300":"_text-blue-300_10wbt_1","text-blue-400":"_text-blue-400_10wbt_1","text-blue-600":"_text-blue-600_10wbt_1","text-blue-900":"_text-blue-900_10wbt_1","text-cyan-400":"_text-cyan-400_10wbt_1","text-emerald-400":"_text-emerald-400_10wbt_1","text-fuchsia-400":"_text-fuchsia-400_10wbt_1","text-gray-300":"_text-gray-300_10wbt_1","text-gray-400":"_text-gray-400_10wbt_1","text-gray-500":"_text-gray-500_10wbt_1","text-gray-600":"_text-gray-600_10wbt_1","text-gray-700":"_text-gray-700_10wbt_1","text-gray-900":"_text-gray-900_10wbt_1","text-green-300":"_text-green-300_10wbt_1","text-green-400":"_text-green-400_10wbt_1","text-green-700":"_text-green-700_10wbt_1","text-green-900":"_text-green-900_10wbt_1","text-indigo-400":"_text-indigo-400_10wbt_1","text-lime-400":"_text-lime-400_10wbt_1","text-lime-900":"_text-lime-900_10wbt_1","text-orange-400":"_text-orange-400_10wbt_1","text-purple-200":"_text-purple-200_10wbt_1","text-purple-300":"_text-purple-300_10wbt_1","text-purple-400":"_text-purple-400_10wbt_1","text-red-400":"_text-red-400_10wbt_1","text-red-500":"_text-red-500_10wbt_1","text-red-800":"_text-red-800_10wbt_1","text-red-900":"_text-red-900_10wbt_1","text-rose-400":"_text-rose-400_10wbt_1","text-sky-400":"_text-sky-400_10wbt_1","text-sky-500":"_text-sky-500_10wbt_1","text-sky-600":"_text-sky-600_10wbt_1","text-sky-900":"_text-sky-900_10wbt_1","text-slate-200":"_text-slate-200_10wbt_1","text-slate-300":"_text-slate-300_10wbt_1","text-slate-400":"_text-slate-400_10wbt_1","text-slate-50":"_text-slate-50_10wbt_1","text-slate-500":"_text-slate-500_10wbt_1","text-slate-600":"_text-slate-600_10wbt_1","text-slate-800":"_text-slate-800_10wbt_1","text-slate-900":"_text-slate-900_10wbt_1","text-teal-200":"_text-teal-200_10wbt_1","text-teal-400":"_text-teal-400_10wbt_1","text-teal-800":"_text-teal-800_10wbt_1","text-violet-400":"_text-violet-400_10wbt_1","text-white":"_text-white_10wbt_1","text-yellow-300":"_text-yellow-300_10wbt_1","text-yellow-400":"_text-yellow-400_10wbt_1","text-yellow-600":"_text-yellow-600_10wbt_1","text-zinc-500":"_text-zinc-500_10wbt_1","text-zinc-800":"_text-zinc-800_10wbt_1","line-through":"_line-through_10wbt_1","opacity-0":"_opacity-0_10wbt_1","opacity-100":"_opacity-100_10wbt_1","opacity-20":"_opacity-20_10wbt_1","opacity-50":"_opacity-50_10wbt_1","opacity-60":"_opacity-60_10wbt_1","opacity-70":"_opacity-70_10wbt_1","opacity-80":"_opacity-80_10wbt_1","opacity-90":"_opacity-90_10wbt_1",shadow:"_shadow_10wbt_1","shadow-none":"_shadow-none_10wbt_1","shadow-xl":"_shadow-xl_10wbt_1","outline-none":"_outline-none_10wbt_1",outline:"_outline_10wbt_1","outline-offset-0":"_outline-offset-0_10wbt_1",blur:"_blur_10wbt_1",filter:"_filter_10wbt_1",transition:"_transition_10wbt_1","transition-all":"_transition-all_10wbt_1","transition-opacity":"_transition-opacity_10wbt_1","duration-300":"_duration-300_10wbt_1","danx-app":"_danx-app_10wbt_4","q-tab":"_q-tab_10wbt_4","q-table__card":"_q-table__card_10wbt_7","q-checkbox__inner":"_q-checkbox__inner_10wbt_11","q-toolbar":"_q-toolbar_10wbt_14","q-notification__actions":"_q-notification__actions_10wbt_19","q-date":"_q-date_10wbt_22","q-date__view":"_q-date__view_10wbt_25","q-field":"_q-field_10wbt_28","q-field--auto-height":"_q-field--auto-height_10wbt_28","q-field__control":"_q-field__control_10wbt_28","q-field__native":"_q-field__native_10wbt_31","q-field--labeled":"_q-field--labeled_10wbt_35","q-field__control-container":"_q-field__control-container_10wbt_35","q-textarea":"_q-textarea_10wbt_38","q-field__marginal":"_q-field__marginal_10wbt_41","q-field__input":"_q-field__input_10wbt_41","q-field__label":"_q-field__label_10wbt_41","q-btn":"_q-btn_10wbt_48","q-item":"_q-item_10wbt_56","q-tab-panels":"_q-tab-panels_10wbt_60","q-panel":"_q-panel_10wbt_64",scroll:"_scroll_10wbt_67","dx-dialog":"_dx-dialog_10wbt_74","q-card__section--vert":"_q-card__section--vert_10wbt_74","q-banner":"_q-banner_10wbt_78",app:"_app_10wbt_1","main-layout":"_main-layout_10wbt_1","is-disabled":"_is-disabled_10wbt_95","disable-all-transitions":"_disable-all-transitions_10wbt_100","v-enter-active":"_v-enter-active_10wbt_104","v-leave-active":"_v-leave-active_10wbt_105","v-enter-from":"_v-enter-from_10wbt_109","v-leave-to":"_v-leave-to_10wbt_110","dx-scrollbar":"_dx-scrollbar_10wbt_114","dx-scrollbar-dark":"_dx-scrollbar-dark_10wbt_157","dx-scrollbar-hidden":"_dx-scrollbar-hidden_10wbt_199","dx-code-viewer":"_dx-code-viewer_10wbt_207","is-collapsed":"_is-collapsed_10wbt_211","code-collapsed":"_code-collapsed_10wbt_214","code-collapsed-preview":"_code-collapsed-preview_10wbt_225","collapse-toggle":"_collapse-toggle_10wbt_231","collapse-header":"_collapse-header_10wbt_234","code-content":"_code-content_10wbt_243","is-collapsible":"_is-collapsible_10wbt_257","code-footer":"_code-footer_10wbt_267","has-error":"_has-error_10wbt_273","language-badge":"_language-badge_10wbt_277","syntax-key":"_syntax-key_10wbt_284","syntax-string":"_syntax-string_10wbt_287","syntax-number":"_syntax-number_10wbt_290","syntax-boolean":"_syntax-boolean_10wbt_293","syntax-null":"_syntax-null_10wbt_296","syntax-punctuation":"_syntax-punctuation_10wbt_299","is-editable":"_is-editable_10wbt_302","dx-markdown-content":"_dx-markdown-content_10wbt_316","task-list":"_task-list_10wbt_406","task-list-item":"_task-list-item_10wbt_410","footnote-ref":"_footnote-ref_10wbt_491",footnotes:"_footnotes_10wbt_499","footnote-list":"_footnote-list_10wbt_506","footnote-item":"_footnote-item_10wbt_509","footnote-backref":"_footnote-backref_10wbt_512","dx-action-table":"_dx-action-table_10wbt_517","dx-column-shrink":"_dx-column-shrink_10wbt_517","action-button":"_action-button_10wbt_521","play-button":"_play-button_10wbt_528","hover:scale-105":"_hover:scale-105_10wbt_1","hover:bg-amber-400":"_hover:bg-amber-400_10wbt_1","hover:bg-blue-200":"_hover:bg-blue-200_10wbt_1","hover:bg-blue-400":"_hover:bg-blue-400_10wbt_1","hover:bg-blue-800":"_hover:bg-blue-800_10wbt_1","hover:bg-gray-200":"_hover:bg-gray-200_10wbt_1","hover:bg-green-100":"_hover:bg-green-100_10wbt_1","hover:bg-green-400":"_hover:bg-green-400_10wbt_1","hover:bg-green-800":"_hover:bg-green-800_10wbt_1","hover:bg-lime-400":"_hover:bg-lime-400_10wbt_1","hover:bg-orange-800":"_hover:bg-orange-800_10wbt_1","hover:bg-purple-600":"_hover:bg-purple-600_10wbt_1","hover:bg-purple-800":"_hover:bg-purple-800_10wbt_1","hover:bg-red-100":"_hover:bg-red-100_10wbt_1","hover:bg-red-200":"_hover:bg-red-200_10wbt_1","hover:bg-red-400":"_hover:bg-red-400_10wbt_1","hover:bg-sky-400":"_hover:bg-sky-400_10wbt_1","hover:bg-sky-800":"_hover:bg-sky-800_10wbt_1","hover:bg-sky-900":"_hover:bg-sky-900_10wbt_1","hover:bg-slate-200":"_hover:bg-slate-200_10wbt_1","hover:bg-slate-300":"_hover:bg-slate-300_10wbt_1","hover:bg-slate-400":"_hover:bg-slate-400_10wbt_1","hover:bg-slate-600":"_hover:bg-slate-600_10wbt_1","hover:bg-slate-700":"_hover:bg-slate-700_10wbt_1","hover:bg-slate-800":"_hover:bg-slate-800_10wbt_1","hover:bg-slate-900":"_hover:bg-slate-900_10wbt_1","hover:bg-teal-400":"_hover:bg-teal-400_10wbt_1","hover:bg-teal-600":"_hover:bg-teal-600_10wbt_1","hover:bg-yellow-700":"_hover:bg-yellow-700_10wbt_1","hover:text-blue-300":"_hover:text-blue-300_10wbt_1","hover:text-blue-500":"_hover:text-blue-500_10wbt_1","hover:text-blue-600":"_hover:text-blue-600_10wbt_1","hover:text-gray-300":"_hover:text-gray-300_10wbt_1","hover:text-gray-700":"_hover:text-gray-700_10wbt_1","hover:text-sky-600":"_hover:text-sky-600_10wbt_1","hover:text-white":"_hover:text-white_10wbt_1","hover:opacity-100":"_hover:opacity-100_10wbt_1","hover:opacity-70":"_hover:opacity-70_10wbt_1","hover:outline-4":"_hover:outline-4_10wbt_1","focus:bg-blue-200":"_focus:bg-blue-200_10wbt_1","focus:outline-4":"_focus:outline-4_10wbt_1","focus:outline-blue-200":"_focus:outline-blue-200_10wbt_1",group:"_group_10wbt_1","group-hover:opacity-100":"_group-hover:opacity-100_10wbt_1"}}]]),$k=["src","alt"],vd={__name:"SvgImg",props:{svg:{type:[String,Object,Function],required:!0},alt:{type:String,default:""}},setup(t){const e=t,n=o.computed(()=>e.svg.default?e.svg.default:e.svg),r=o.computed(()=>typeof n.value=="string");return(s,i)=>r.value?(o.openBlock(),o.createElementBlock("img",{key:0,src:n.value,alt:t.alt},null,8,$k)):(o.openBlock(),o.createBlock(o.resolveDynamicComponent(n.value),{key:1}))}},Fk={class:"virtual-carousel relative w-full h-full"},Ak={key:0,class:"absolute left-2 top-1/2 -translate-y-1/2 z-10"},Dk={key:1,class:"absolute right-2 top-1/2 -translate-y-1/2 z-10"},Ok={key:2,class:"absolute bottom-0 left-0 right-0"},Mk={key:3,class:"absolute top-2 right-2 bg-slate-900 bg-opacity-70 text-slate-200 px-3 py-1 rounded-full text-sm"},Vk=50,Lk=qe(o.defineComponent({__name:"VirtualCarousel",props:{files:{},modelValue:{default:0},showThumbnails:{type:Boolean,default:!0},showCounter:{type:Boolean,default:!0},enableKeyboard:{type:Boolean,default:!0},enableSwipe:{type:Boolean,default:!0}},emits:["update:modelValue","change"],setup(t,{emit:e}){const n=e,r=t,s=o.ref(null),i=o.ref(r.modelValue),l=o.computed(()=>r.files),{visibleSlides:a}=_l(l,i),c=o.computed(()=>i.value>0),u=o.computed(()=>i.value<r.files.length-1);function d(y){y>=0&&y<r.files.length&&(i.value=y,n("update:modelValue",y),n("change",r.files[y],y))}function f(){c.value&&d(i.value-1)}function h(){u.value&&d(i.value+1)}fl({onPrevious:f,onNext:h},{enabled:o.toRef(r,"enableKeyboard")});const _=o.ref(null);function g(y){r.enableSwipe&&(_.value={x:y.touches[0].clientX,y:y.touches[0].clientY})}function m(y){if(!r.enableSwipe||!_.value)return;const b=Math.abs(y.touches[0].clientX-_.value.x),w=Math.abs(y.touches[0].clientY-_.value.y);b>w&&y.preventDefault()}function p(y){if(!r.enableSwipe||!_.value)return;const b=y.changedTouches[0].clientX-_.value.x;Math.abs(b)>Vk&&(b>0?f():h()),_.value=null}return o.watch(()=>r.modelValue,y=>{y!==i.value&&(i.value=y)}),(y,b)=>{const w=o.resolveComponent("QBtn");return o.openBlock(),o.createElementBlock("div",Fk,[o.createElementVNode("div",{ref_key:"carouselContainer",ref:s,class:"carousel-slides-container w-full h-full flex items-center justify-center relative overflow-hidden",onTouchstart:g,onTouchmove:m,onTouchend:p},[o.createVNode(o.TransitionGroup,{name:"slide",tag:"div",class:"w-full h-full relative"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),C=>(o.openBlock(),o.createElementBlock("div",{key:C.file.id,class:o.normalizeClass(["carousel-slide absolute inset-0 flex items-center justify-center",{active:C.isActive,inactive:!C.isActive}])},[o.renderSlot(y.$slots,"slide",{file:C.file,index:C.index,isActive:C.isActive},()=>[o.createVNode(ml,{file:C.file},null,8,["file"])],!0)],2))),128))]),_:3})],544),c.value?(o.openBlock(),o.createElementBlock("div",Ak,[o.createVNode(w,{round:"",size:"lg",class:"bg-slate-800 text-white opacity-70 hover:opacity-100",onClick:f},{default:o.withCtx(()=>[o.createVNode(o.unref(as),{class:"w-6"})]),_:1})])):o.createCommentVNode("",!0),u.value?(o.openBlock(),o.createElementBlock("div",Dk,[o.createVNode(w,{round:"",size:"lg",class:"bg-slate-800 text-white opacity-70 hover:opacity-100",onClick:h},{default:o.withCtx(()=>[o.createVNode(o.unref(dd),{class:"w-6"})]),_:1})])):o.createCommentVNode("",!0),y.showThumbnails&&l.value.length>1?(o.openBlock(),o.createElementBlock("div",Ok,[o.createVNode(pl,{files:l.value,"current-index":i.value,onNavigate:d},null,8,["files","current-index"])])):o.createCommentVNode("",!0),y.showCounter&&l.value.length>1?(o.openBlock(),o.createElementBlock("div",Mk,o.toDisplayString(i.value+1)+" / "+o.toDisplayString(l.value.length),1)):o.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-cf0021eb"]]),Pk={class:"address-format"},vk={key:0,class:"address-attn"},Rk={key:1,class:"address-name"},Uk={class:"address-line-1"},zk={key:0,class:"address-line-2"},qk={key:1,class:"address-line-3"},Hk={class:"address-city-state-zip"},jk={__name:"AddressFormat",props:{address:{type:Object,required:!0}},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",Pk,[t.address.attn?(o.openBlock(),o.createElementBlock("div",vk,"Attn: "+o.toDisplayString(t.address.attn),1)):t.address.name?(o.openBlock(),o.createElementBlock("div",Rk,o.toDisplayString(t.address.name),1)):o.createCommentVNode("",!0),t.address.line1?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createElementVNode("div",Uk,o.toDisplayString(t.address.line1),1),t.address.line2?(o.openBlock(),o.createElementBlock("div",zk,o.toDisplayString(t.address.line2),1)):o.createCommentVNode("",!0),t.address.line3?(o.openBlock(),o.createElementBlock("div",qk,o.toDisplayString(t.address.line3),1)):o.createCommentVNode("",!0),o.createElementVNode("div",Hk,[t.address.city?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(t.address.city)+",",1)],64)):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString(t.address.state)+" "+o.toDisplayString(t.address.zip_code),1)])],64)):o.createCommentVNode("",!0)]))}},Gk={__name:"FlatListFormat",props:{items:{type:Array,required:!0},column:{type:String,required:!0}},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("ul",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.items,r=>(o.openBlock(),o.createElementBlock("li",{key:r[t.column]},o.toDisplayString(r[t.column]),1))),128))]))}},Wk={class:"flex flex-nowrap items-center"},Zk={key:0,class:"whitespace-nowrap"},Yk={__name:"GpsCoordinatesFormat",props:{location:{type:Object,default:null},decimals:{type:Number,default:6},iconClass:{type:String,default:"w-7"}},setup(t){return(e,n)=>{var r;return o.openBlock(),o.createElementBlock("div",Wk,[o.createVNode(o.unref(hg),{class:o.normalizeClass(["mr-1 ml-[-.2em]",t.iconClass])},null,8,["class"]),(r=t.location)!=null&&r.latitude?(o.openBlock(),o.createElementBlock("div",Zk,o.toDisplayString(t.location.latitude.toFixed(t.decimals))+", "+o.toDisplayString(t.location.longitude.toFixed(t.decimals)),1)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" Unknown ")],64))])}}},Qk={class:"flex items-center flex-nowrap"},Kk={__name:"IconWithTextFormat",props:{icon:{type:[String,Object],required:!0},iconClass:{type:String,default:"w-6"},text:{type:String,default:null},textClass:{type:String,default:"ml-2"}},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",Qk,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(t.icon),{class:o.normalizeClass(t.iconClass)},null,8,["class"])),o.createElementVNode("div",{class:o.normalizeClass(t.textClass)},[o.renderSlot(e.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(t.text),1)])],2)]))}},Xk={class:"text-xs font-bold"},Jk={__name:"LabelValueFormat",props:{label:{type:String,required:!0},value:{type:[String,Number],default:"-"},dense:Boolean,nowrap:Boolean,loading:Boolean},setup(t){return(e,n)=>{const r=o.resolveComponent("QSpinnerTail");return o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",Xk,o.toDisplayString(t.label),1),o.createElementVNode("div",{class:o.normalizeClass({"mt-2":!t.dense,"mt-1":t.dense,"text-no-wrap":t.nowrap})},[t.loading?(o.openBlock(),o.createBlock(r,{key:0})):o.renderSlot(e.$slots,"default",{key:1},()=>[o.createTextVNode(o.toDisplayString(t.value||"-"),1)])],2)])}}},ex={class:"flex-grow max-w-full overflow-y-auto overflow-x-hidden"},Rd=o.defineComponent({__name:"CollapsableSidebar",props:{displayClass:{default:"flex flex-col"},toggleClass:{default:""},toggleIconClass:{default:"w-5 transition-all"},rightSide:{type:Boolean},maxWidth:{default:"13.5rem"},minWidth:{default:"5.5rem"},disabled:{type:Boolean},collapse:{type:Boolean},name:{default:"sidebar"},toggleAtTop:{type:Boolean},hideToggleOnCollapse:{type:Boolean}},emits:["collapse","update:collapse"],setup(t,{emit:e}){const n=e,r=t,s=o.ref(kt(r.name+"-is-collapsed",r.collapse));function i(d){s.value=d,wt(r.name+"-is-collapsed",!!s.value)}function l(){i(!s.value),n("collapse",s.value),n("update:collapse",s.value)}o.onMounted(()=>{n("collapse",s.value),n("update:collapse",s.value)});const a=o.computed(()=>({width:s.value?r.minWidth:r.maxWidth})),c=o.computed(()=>typeof r.toggleClass=="string"?{[r.toggleClass]:!0}:r.toggleClass),u=o.computed(()=>typeof r.toggleIconClass=="string"?{[r.toggleIconClass]:!0}:r.toggleIconClass);return o.watch(()=>r.collapse,()=>{i(r.collapse)}),(d,f)=>{const h=o.resolveComponent("QBtn");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["dx-collapsable-sidebar overflow-hidden scroll-smooth flex-shrink-0 flex-nowrap transition-all relative",{"is-collapsed":s.value,"is-right-side":d.rightSide,[d.displayClass]:!0}]),style:o.normalizeStyle(a.value)},[o.createElementVNode("div",ex,[o.renderSlot(d.$slots,"default",{isCollapsed:s.value})]),!d.disabled&&(!d.hideToggleOnCollapse||!s.value)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[d.toggleAtTop?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["absolute top-0 right-0 cursor-pointer p-2",c.value]),onClick:l},[o.createVNode(o.unref(as),{class:o.normalizeClass({"rotate-180":d.rightSide?!s.value:s.value,...u.value})},null,8,["class"])],2)):(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["flex w-full p-4 flex-shrink-0",{"justify-start":d.rightSide,"justify-end":!d.rightSide,...c.value}])},[o.renderSlot(d.$slots,"toggle",{},()=>[o.createVNode(h,{class:"btn-secondary",onClick:l},{default:o.withCtx(()=>[o.createVNode(o.unref(as),{class:o.normalizeClass({"rotate-180":d.rightSide?!s.value:s.value,...u.value})},null,8,["class"])]),_:1})])],2))],64)):o.createCommentVNode("",!0)],6)}}}),Tl=qe(o.defineComponent({__name:"ContentDrawer",props:{show:{type:Boolean,default:!1},overlay:{type:Boolean},position:{default:"bottom"},seamless:{type:Boolean},contentClass:{default:"py-8 px-12"},title:{default:"Edit"}},emits:["update:show"],setup(t){return(e,n)=>{const r=o.resolveComponent("QDialog");return o.openBlock(),o.createBlock(r,{"model-value":e.show,maximized:"",position:e.position,seamless:e.seamless,class:o.normalizeClass({"hide-backdrop":!e.overlay}),onHide:n[1]||(n[1]=s=>e.$emit("update:show",!1))},{default:o.withCtx(()=>[o.createElementVNode("div",null,[e.title?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(e.cls["dialog-title"]),onClick:n[0]||(n[0]=o.withModifiers(()=>{},["stop","prevent"]))},o.toDisplayString(e.title),3)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass({[e.cls["dialog-content"]]:!0,[e.contentClass]:!0})},[o.renderSlot(e.$slots,"default")],2)])]),_:3},8,["model-value","position","seamless","class"])}}}),[["__cssModules",{cls:{"pointer-events-none":"_pointer-events-none_heunu_1","!visible":"_!visible_heunu_1",visible:"_visible_heunu_1",collapse:"_collapse_heunu_231",static:"_static_heunu_1",absolute:"_absolute_heunu_1",relative:"_relative_heunu_1",sticky:"_sticky_heunu_1","inset-0":"_inset-0_heunu_1","bottom-0":"_bottom-0_heunu_1","left-0":"_left-0_heunu_1","left-2":"_left-2_heunu_1","left-4":"_left-4_heunu_1","right-0":"_right-0_heunu_1","right-1":"_right-1_heunu_1","right-2":"_right-2_heunu_1","right-4":"_right-4_heunu_1","top-0":"_top-0_heunu_1","top-1":"_top-1_heunu_1","top-1/2":"_top-1/2_heunu_1","top-2":"_top-2_heunu_1","z-0":"_z-0_heunu_1","z-10":"_z-10_heunu_1","z-20":"_z-20_heunu_1","z-30":"_z-30_heunu_1","m-2":"_m-2_heunu_1","m-4":"_m-4_heunu_1","m-auto":"_m-auto_heunu_1","mx-1":"_mx-1_heunu_1","mx-4":"_mx-4_heunu_1","mx-auto":"_mx-auto_heunu_1","my-2":"_my-2_heunu_1","!mr-1":"_!mr-1_heunu_1","mb-2":"_mb-2_heunu_1","mb-4":"_mb-4_heunu_1","ml-1":"_ml-1_heunu_1","ml-2":"_ml-2_heunu_1","ml-2.5":"_ml-2.5_heunu_1","ml-3":"_ml-3_heunu_1","ml-4":"_ml-4_heunu_1","ml-5":"_ml-5_heunu_1","ml-[-.2em]":"_ml-[-.2em]_heunu_1","mr-1":"_mr-1_heunu_1","mr-2":"_mr-2_heunu_1","mr-3":"_mr-3_heunu_1","mr-4":"_mr-4_heunu_1","mt-1":"_mt-1_heunu_1","mt-2":"_mt-2_heunu_1","mt-3":"_mt-3_heunu_1","mt-4":"_mt-4_heunu_1",block:"_block_heunu_1","inline-block":"_inline-block_heunu_1",inline:"_inline_heunu_1",flex:"_flex_heunu_1",table:"_table_heunu_1",grid:"_grid_heunu_1",hidden:"_hidden_heunu_1","aspect-square":"_aspect-square_heunu_1","h-10":"_h-10_heunu_1","h-12":"_h-12_heunu_1","h-16":"_h-16_heunu_1","h-20":"_h-20_heunu_1","h-3":"_h-3_heunu_1","h-3.5":"_h-3.5_heunu_1","h-3/4":"_h-3/4_heunu_1","h-4":"_h-4_heunu_1","h-5":"_h-5_heunu_1","h-6":"_h-6_heunu_1","h-8":"_h-8_heunu_1","h-96":"_h-96_heunu_1","h-[2.25rem]":"_h-[2.25rem]_heunu_1","h-[80vh]":"_h-[80vh]_heunu_1","h-full":"_h-full_heunu_1","max-h-[80vh]":"_max-h-[80vh]_heunu_1","max-h-full":"_max-h-full_heunu_1","min-h-0":"_min-h-0_heunu_1","min-h-10":"_min-h-10_heunu_1","w-10":"_w-10_heunu_1","w-16":"_w-16_heunu_1","w-2":"_w-2_heunu_1","w-2/5":"_w-2/5_heunu_1","w-20":"_w-20_heunu_1","w-24":"_w-24_heunu_1","w-3":"_w-3_heunu_1","w-3.5":"_w-3.5_heunu_1","w-3/4":"_w-3/4_heunu_1","w-3/5":"_w-3/5_heunu_1","w-32":"_w-32_heunu_1","w-4":"_w-4_heunu_1","w-48":"_w-48_heunu_1","w-5":"_w-5_heunu_1","w-6":"_w-6_heunu_1","w-7":"_w-7_heunu_1","w-72":"_w-72_heunu_1","w-8":"_w-8_heunu_1","w-96":"_w-96_heunu_1","w-[13.5rem]":"_w-[13.5rem]_heunu_1","w-[40%]":"_w-[40%]_heunu_1","w-[6.5rem]":"_w-[6.5rem]_heunu_1","w-[60vw]":"_w-[60vw]_heunu_1","w-[80vw]":"_w-[80vw]_heunu_1","w-full":"_w-full_heunu_1","!min-w-0":"_!min-w-0_heunu_1","min-w-0":"_min-w-0_heunu_1","min-w-10":"_min-w-10_heunu_1","min-w-96":"_min-w-96_heunu_1","min-w-[300px]":"_min-w-[300px]_heunu_1","max-w-[400px]":"_max-w-[400px]_heunu_1","max-w-[600px]":"_max-w-[600px]_heunu_1","max-w-full":"_max-w-full_heunu_1","max-w-none":"_max-w-none_heunu_1","flex-1":"_flex-1_heunu_1","flex-shrink":"_flex-shrink_heunu_1","flex-shrink-0":"_flex-shrink-0_heunu_1",shrink:"_shrink_heunu_1","flex-grow":"_flex-grow_heunu_1",grow:"_grow_heunu_1","-translate-y-1/2":"_-translate-y-1/2_heunu_1","rotate-180":"_rotate-180_heunu_1","scale-110":"_scale-110_heunu_1",transform:"_transform_heunu_1","cursor-ew-resize":"_cursor-ew-resize_heunu_1","cursor-move":"_cursor-move_heunu_1","cursor-not-allowed":"_cursor-not-allowed_heunu_1","cursor-ns-resize":"_cursor-ns-resize_heunu_1","cursor-pointer":"_cursor-pointer_heunu_1",resize:"_resize_heunu_1","grid-cols-3":"_grid-cols-3_heunu_1","flex-col":"_flex-col_heunu_1","flex-wrap":"_flex-wrap_heunu_1","flex-nowrap":"_flex-nowrap_heunu_1","items-center":"_items-center_heunu_1","items-stretch":"_items-stretch_heunu_1","justify-start":"_justify-start_heunu_1","justify-end":"_justify-end_heunu_1","justify-center":"_justify-center_heunu_1","justify-between":"_justify-between_heunu_1","gap-1":"_gap-1_heunu_1","gap-2":"_gap-2_heunu_1","gap-3":"_gap-3_heunu_1","gap-x-2":"_gap-x-2_heunu_1","gap-x-4":"_gap-x-4_heunu_1","gap-y-0":"_gap-y-0_heunu_1","gap-y-1":"_gap-y-1_heunu_1","space-x-1":"_space-x-1_heunu_1","space-x-2":"_space-x-2_heunu_1","self-center":"_self-center_heunu_1","overflow-auto":"_overflow-auto_heunu_1","overflow-hidden":"_overflow-hidden_heunu_1","overflow-x-auto":"_overflow-x-auto_heunu_1","overflow-y-auto":"_overflow-y-auto_heunu_70","overflow-x-hidden":"_overflow-x-hidden_heunu_1","overflow-y-hidden":"_overflow-y-hidden_heunu_1","scroll-smooth":"_scroll-smooth_heunu_1",truncate:"_truncate_heunu_1","overflow-ellipsis":"_overflow-ellipsis_heunu_1","whitespace-normal":"_whitespace-normal_heunu_1","whitespace-nowrap":"_whitespace-nowrap_heunu_1","whitespace-pre-wrap":"_whitespace-pre-wrap_heunu_1",rounded:"_rounded_heunu_1","rounded-2xl":"_rounded-2xl_heunu_1","rounded-full":"_rounded-full_heunu_1","rounded-lg":"_rounded-lg_heunu_1","rounded-md":"_rounded-md_heunu_1","rounded-sm":"_rounded-sm_heunu_1","!rounded-l-none":"_!rounded-l-none_heunu_1","!rounded-r-none":"_!rounded-r-none_heunu_1","rounded-b-lg":"_rounded-b-lg_heunu_1","rounded-l-lg":"_rounded-l-lg_heunu_1","rounded-r-lg":"_rounded-r-lg_heunu_1","rounded-t-2xl":"_rounded-t-2xl_heunu_1","rounded-t-lg":"_rounded-t-lg_heunu_1","rounded-t-md":"_rounded-t-md_heunu_1","rounded-br":"_rounded-br_heunu_1","rounded-tl":"_rounded-tl_heunu_1","!border-0":"_!border-0_heunu_1",border:"_border_heunu_1","border-2":"_border-2_heunu_1","border-b":"_border-b_heunu_1","border-l":"_border-l_heunu_1","border-l-0":"_border-l-0_heunu_1","border-r":"_border-r_heunu_1","border-solid":"_border-solid_heunu_1","border-dashed":"_border-dashed_heunu_1","border-none":"_border-none_heunu_1","border-blue-500":"_border-blue-500_heunu_1","border-blue-600":"_border-blue-600_heunu_1","border-blue-700":"_border-blue-700_heunu_1","border-gray-200":"_border-gray-200_heunu_1","border-gray-300":"_border-gray-300_heunu_1","border-purple-500":"_border-purple-500_heunu_1","border-slate-200":"_border-slate-200_heunu_1","border-slate-700":"_border-slate-700_heunu_1","border-transparent":"_border-transparent_heunu_1","bg-amber-300":"_bg-amber-300_heunu_1","bg-amber-950":"_bg-amber-950_heunu_1","bg-black":"_bg-black_heunu_1","bg-blue-200":"_bg-blue-200_heunu_1","bg-blue-300":"_bg-blue-300_heunu_1","bg-blue-600":"_bg-blue-600_heunu_1","bg-blue-900":"_bg-blue-900_heunu_1","bg-blue-950":"_bg-blue-950_heunu_1","bg-cyan-950":"_bg-cyan-950_heunu_1","bg-emerald-200":"_bg-emerald-200_heunu_1","bg-emerald-950":"_bg-emerald-950_heunu_1","bg-fuchsia-950":"_bg-fuchsia-950_heunu_1","bg-gray-100":"_bg-gray-100_heunu_1","bg-gray-200":"_bg-gray-200_heunu_1","bg-gray-400":"_bg-gray-400_heunu_1","bg-gray-50":"_bg-gray-50_heunu_1","bg-gray-500":"_bg-gray-500_heunu_1","bg-gray-800":"_bg-gray-800_heunu_1","bg-green-200":"_bg-green-200_heunu_1","bg-green-300":"_bg-green-300_heunu_1","bg-green-900":"_bg-green-900_heunu_1","bg-green-950":"_bg-green-950_heunu_1","bg-indigo-950":"_bg-indigo-950_heunu_1","bg-lime-300":"_bg-lime-300_heunu_1","bg-lime-950":"_bg-lime-950_heunu_1","bg-orange-900":"_bg-orange-900_heunu_1","bg-orange-950":"_bg-orange-950_heunu_1","bg-purple-700":"_bg-purple-700_heunu_1","bg-purple-900":"_bg-purple-900_heunu_1","bg-purple-950":"_bg-purple-950_heunu_1","bg-red-200":"_bg-red-200_heunu_1","bg-red-300":"_bg-red-300_heunu_1","bg-red-900":"_bg-red-900_heunu_1","bg-red-950":"_bg-red-950_heunu_1","bg-rose-950":"_bg-rose-950_heunu_1","bg-sky-300":"_bg-sky-300_heunu_1","bg-sky-50":"_bg-sky-50_heunu_1","bg-sky-800":"_bg-sky-800_heunu_1","bg-sky-900":"_bg-sky-900_heunu_1","bg-sky-950":"_bg-sky-950_heunu_1","bg-slate-100":"_bg-slate-100_heunu_1","bg-slate-300":"_bg-slate-300_heunu_1","bg-slate-400":"_bg-slate-400_heunu_1","bg-slate-500":"_bg-slate-500_heunu_1","bg-slate-600":"_bg-slate-600_heunu_1","bg-slate-700":"_bg-slate-700_heunu_1","bg-slate-800":"_bg-slate-800_heunu_1","bg-slate-900":"_bg-slate-900_heunu_1","bg-slate-950":"_bg-slate-950_heunu_1","bg-teal-200":"_bg-teal-200_heunu_1","bg-teal-500":"_bg-teal-500_heunu_1","bg-teal-950":"_bg-teal-950_heunu_1","bg-transparent":"_bg-transparent_heunu_1","bg-violet-950":"_bg-violet-950_heunu_1","bg-white":"_bg-white_heunu_1","bg-yellow-300":"_bg-yellow-300_heunu_1","bg-yellow-800":"_bg-yellow-800_heunu_1","bg-yellow-950":"_bg-yellow-950_heunu_1","bg-opacity-70":"_bg-opacity-70_heunu_1","bg-opacity-80":"_bg-opacity-80_heunu_1","bg-opacity-90":"_bg-opacity-90_heunu_1","!bg-none":"_!bg-none_heunu_1","object-contain":"_object-contain_heunu_1","object-cover":"_object-cover_heunu_1","!p-2":"_!p-2_heunu_1","p-0":"_p-0_heunu_1","p-1":"_p-1_heunu_1","p-2":"_p-2_heunu_1","p-3":"_p-3_heunu_1","p-4":"_p-4_heunu_1","p-8":"_p-8_heunu_1","!py-0":"_!py-0_heunu_1","px-1":"_px-1_heunu_1","px-1.5":"_px-1.5_heunu_1","px-12":"_px-12_heunu_1","px-16":"_px-16_heunu_1","px-2":"_px-2_heunu_1","px-2.5":"_px-2.5_heunu_1","px-3":"_px-3_heunu_1","px-4":"_px-4_heunu_1","px-6":"_px-6_heunu_1","px-8":"_px-8_heunu_1","py-0":"_py-0_heunu_1","py-0.5":"_py-0.5_heunu_1","py-1":"_py-1_heunu_1","py-1.5":"_py-1.5_heunu_1","py-14":"_py-14_heunu_1","py-2":"_py-2_heunu_1","py-3":"_py-3_heunu_1","py-4":"_py-4_heunu_1","py-8":"_py-8_heunu_1","pl-1":"_pl-1_heunu_1","pt-3":"_pt-3_heunu_1","text-left":"_text-left_heunu_1","text-center":"_text-center_heunu_1","text-[.7rem]":"_text-[.7rem]_heunu_1","text-[1rem]":"_text-[1rem]_heunu_1","text-base":"_text-base_heunu_1","text-lg":"_text-lg_heunu_1","text-sm":"_text-sm_heunu_1","text-xs":"_text-xs_heunu_1","font-bold":"_font-bold_heunu_1","font-medium":"_font-medium_heunu_1","font-semibold":"_font-semibold_heunu_1",uppercase:"_uppercase_heunu_1",italic:"_italic_heunu_1","leading-[1.2rem]":"_leading-[1.2rem]_heunu_1","!text-green-900":"_!text-green-900_heunu_1","!text-red-900":"_!text-red-900_heunu_1","!text-sky-900":"_!text-sky-900_heunu_1","!text-white":"_!text-white_heunu_1","!text-yellow-900":"_!text-yellow-900_heunu_1","text-amber-400":"_text-amber-400_heunu_1","text-amber-900":"_text-amber-900_heunu_1","text-blue-300":"_text-blue-300_heunu_1","text-blue-400":"_text-blue-400_heunu_1","text-blue-600":"_text-blue-600_heunu_1","text-blue-900":"_text-blue-900_heunu_1","text-cyan-400":"_text-cyan-400_heunu_1","text-emerald-400":"_text-emerald-400_heunu_1","text-fuchsia-400":"_text-fuchsia-400_heunu_1","text-gray-300":"_text-gray-300_heunu_1","text-gray-400":"_text-gray-400_heunu_1","text-gray-500":"_text-gray-500_heunu_1","text-gray-600":"_text-gray-600_heunu_1","text-gray-700":"_text-gray-700_heunu_1","text-gray-900":"_text-gray-900_heunu_1","text-green-300":"_text-green-300_heunu_1","text-green-400":"_text-green-400_heunu_1","text-green-700":"_text-green-700_heunu_1","text-green-900":"_text-green-900_heunu_1","text-indigo-400":"_text-indigo-400_heunu_1","text-lime-400":"_text-lime-400_heunu_1","text-lime-900":"_text-lime-900_heunu_1","text-orange-400":"_text-orange-400_heunu_1","text-purple-200":"_text-purple-200_heunu_1","text-purple-300":"_text-purple-300_heunu_1","text-purple-400":"_text-purple-400_heunu_1","text-red-400":"_text-red-400_heunu_1","text-red-500":"_text-red-500_heunu_1","text-red-800":"_text-red-800_heunu_1","text-red-900":"_text-red-900_heunu_1","text-rose-400":"_text-rose-400_heunu_1","text-sky-400":"_text-sky-400_heunu_1","text-sky-500":"_text-sky-500_heunu_1","text-sky-600":"_text-sky-600_heunu_1","text-sky-900":"_text-sky-900_heunu_1","text-slate-200":"_text-slate-200_heunu_1","text-slate-300":"_text-slate-300_heunu_1","text-slate-400":"_text-slate-400_heunu_1","text-slate-50":"_text-slate-50_heunu_1","text-slate-500":"_text-slate-500_heunu_1","text-slate-600":"_text-slate-600_heunu_1","text-slate-800":"_text-slate-800_heunu_1","text-slate-900":"_text-slate-900_heunu_1","text-teal-200":"_text-teal-200_heunu_1","text-teal-400":"_text-teal-400_heunu_1","text-teal-800":"_text-teal-800_heunu_1","text-violet-400":"_text-violet-400_heunu_1","text-white":"_text-white_heunu_1","text-yellow-300":"_text-yellow-300_heunu_1","text-yellow-400":"_text-yellow-400_heunu_1","text-yellow-600":"_text-yellow-600_heunu_1","text-zinc-500":"_text-zinc-500_heunu_1","text-zinc-800":"_text-zinc-800_heunu_1","line-through":"_line-through_heunu_1","opacity-0":"_opacity-0_heunu_1","opacity-100":"_opacity-100_heunu_1","opacity-20":"_opacity-20_heunu_1","opacity-50":"_opacity-50_heunu_1","opacity-60":"_opacity-60_heunu_1","opacity-70":"_opacity-70_heunu_1","opacity-80":"_opacity-80_heunu_1","opacity-90":"_opacity-90_heunu_1",shadow:"_shadow_heunu_1","shadow-none":"_shadow-none_heunu_1","shadow-xl":"_shadow-xl_heunu_1","outline-none":"_outline-none_heunu_1",outline:"_outline_heunu_1","outline-offset-0":"_outline-offset-0_heunu_1",blur:"_blur_heunu_1",filter:"_filter_heunu_1",transition:"_transition_heunu_1","transition-all":"_transition-all_heunu_1","transition-opacity":"_transition-opacity_heunu_1","duration-300":"_duration-300_heunu_1","danx-app":"_danx-app_heunu_4","q-tab":"_q-tab_heunu_4","q-table__card":"_q-table__card_heunu_7","q-checkbox__inner":"_q-checkbox__inner_heunu_11","q-toolbar":"_q-toolbar_heunu_14","q-notification__actions":"_q-notification__actions_heunu_19","q-date":"_q-date_heunu_22","q-date__view":"_q-date__view_heunu_25","q-field":"_q-field_heunu_28","q-field--auto-height":"_q-field--auto-height_heunu_28","q-field__control":"_q-field__control_heunu_28","q-field__native":"_q-field__native_heunu_31","q-field--labeled":"_q-field--labeled_heunu_35","q-field__control-container":"_q-field__control-container_heunu_35","q-textarea":"_q-textarea_heunu_38","q-field__marginal":"_q-field__marginal_heunu_41","q-field__input":"_q-field__input_heunu_41","q-field__label":"_q-field__label_heunu_41","q-btn":"_q-btn_heunu_48","q-item":"_q-item_heunu_56","q-tab-panels":"_q-tab-panels_heunu_60","q-panel":"_q-panel_heunu_64",scroll:"_scroll_heunu_67","dx-dialog":"_dx-dialog_heunu_74","q-card__section--vert":"_q-card__section--vert_heunu_74","q-banner":"_q-banner_heunu_78",app:"_app_heunu_1","main-layout":"_main-layout_heunu_1","is-disabled":"_is-disabled_heunu_95","disable-all-transitions":"_disable-all-transitions_heunu_100","v-enter-active":"_v-enter-active_heunu_104","v-leave-active":"_v-leave-active_heunu_105","v-enter-from":"_v-enter-from_heunu_109","v-leave-to":"_v-leave-to_heunu_110","dx-scrollbar":"_dx-scrollbar_heunu_114","dx-scrollbar-dark":"_dx-scrollbar-dark_heunu_157","dx-scrollbar-hidden":"_dx-scrollbar-hidden_heunu_199","dx-code-viewer":"_dx-code-viewer_heunu_207","is-collapsed":"_is-collapsed_heunu_211","code-collapsed":"_code-collapsed_heunu_214","code-collapsed-preview":"_code-collapsed-preview_heunu_225","collapse-toggle":"_collapse-toggle_heunu_231","collapse-header":"_collapse-header_heunu_234","code-content":"_code-content_heunu_243","is-collapsible":"_is-collapsible_heunu_257","code-footer":"_code-footer_heunu_267","has-error":"_has-error_heunu_273","language-badge":"_language-badge_heunu_277","syntax-key":"_syntax-key_heunu_284","syntax-string":"_syntax-string_heunu_287","syntax-number":"_syntax-number_heunu_290","syntax-boolean":"_syntax-boolean_heunu_293","syntax-null":"_syntax-null_heunu_296","syntax-punctuation":"_syntax-punctuation_heunu_299","is-editable":"_is-editable_heunu_302","dx-markdown-content":"_dx-markdown-content_heunu_316","task-list":"_task-list_heunu_406","task-list-item":"_task-list-item_heunu_410","footnote-ref":"_footnote-ref_heunu_491",footnotes:"_footnotes_heunu_499","footnote-list":"_footnote-list_heunu_506","footnote-item":"_footnote-item_heunu_509","footnote-backref":"_footnote-backref_heunu_512","dx-action-table":"_dx-action-table_heunu_517","dx-column-shrink":"_dx-column-shrink_heunu_517","dialog-title":"_dialog-title_heunu_521","dialog-content":"_dialog-content_heunu_528","hover:scale-105":"_hover:scale-105_heunu_1","hover:bg-amber-400":"_hover:bg-amber-400_heunu_1","hover:bg-blue-200":"_hover:bg-blue-200_heunu_1","hover:bg-blue-400":"_hover:bg-blue-400_heunu_1","hover:bg-blue-800":"_hover:bg-blue-800_heunu_1","hover:bg-gray-200":"_hover:bg-gray-200_heunu_1","hover:bg-green-100":"_hover:bg-green-100_heunu_1","hover:bg-green-400":"_hover:bg-green-400_heunu_1","hover:bg-green-800":"_hover:bg-green-800_heunu_1","hover:bg-lime-400":"_hover:bg-lime-400_heunu_1","hover:bg-orange-800":"_hover:bg-orange-800_heunu_1","hover:bg-purple-600":"_hover:bg-purple-600_heunu_1","hover:bg-purple-800":"_hover:bg-purple-800_heunu_1","hover:bg-red-100":"_hover:bg-red-100_heunu_1","hover:bg-red-200":"_hover:bg-red-200_heunu_1","hover:bg-red-400":"_hover:bg-red-400_heunu_1","hover:bg-sky-400":"_hover:bg-sky-400_heunu_1","hover:bg-sky-800":"_hover:bg-sky-800_heunu_1","hover:bg-sky-900":"_hover:bg-sky-900_heunu_1","hover:bg-slate-200":"_hover:bg-slate-200_heunu_1","hover:bg-slate-300":"_hover:bg-slate-300_heunu_1","hover:bg-slate-400":"_hover:bg-slate-400_heunu_1","hover:bg-slate-600":"_hover:bg-slate-600_heunu_1","hover:bg-slate-700":"_hover:bg-slate-700_heunu_1","hover:bg-slate-800":"_hover:bg-slate-800_heunu_1","hover:bg-slate-900":"_hover:bg-slate-900_heunu_1","hover:bg-teal-400":"_hover:bg-teal-400_heunu_1","hover:bg-teal-600":"_hover:bg-teal-600_heunu_1","hover:bg-yellow-700":"_hover:bg-yellow-700_heunu_1","hover:text-blue-300":"_hover:text-blue-300_heunu_1","hover:text-blue-500":"_hover:text-blue-500_heunu_1","hover:text-blue-600":"_hover:text-blue-600_heunu_1","hover:text-gray-300":"_hover:text-gray-300_heunu_1","hover:text-gray-700":"_hover:text-gray-700_heunu_1","hover:text-sky-600":"_hover:text-sky-600_heunu_1","hover:text-white":"_hover:text-white_heunu_1","hover:opacity-100":"_hover:opacity-100_heunu_1","hover:opacity-70":"_hover:opacity-70_heunu_1","hover:outline-4":"_hover:outline-4_heunu_1","focus:bg-blue-200":"_focus:bg-blue-200_heunu_1","focus:outline-4":"_focus:outline-4_heunu_1","focus:outline-blue-200":"_focus:outline-blue-200_heunu_1",group:"_group_heunu_1","group-hover:opacity-100":"_group-hover:opacity-100_heunu_1"}}]]),Ud=t=>o.isVNode(t.vnode)?t.vnode:o.isRef(t.vnode)?t.vnode.value:typeof t.vnode=="function"?t.vnode(t.props,t.params):null;Ud.props={vnode:{type:[Function,Object],required:!0},props:{type:Object,default:()=>({})},params:{type:Object,default:null}};const xn=Ud,tx={__name:"ActionVnode",setup(t){const e=o.ref(!1);async function n(r){e.value=!0,await Dn.value.confirm(r),e.value=!1}return(r,s)=>(o.openBlock(),o.createElementBlock("div",null,[o.unref(Dn)?(o.openBlock(),o.createBlock(o.unref(xn),{key:0,vnode:o.unref(Dn).vnode,"is-saving":e.value,onConfirm:n,onClose:o.unref(Dn).cancel},null,8,["vnode","is-saving","onClose"])):o.createCommentVNode("",!0)]))}},zd={__name:"RenderComponent",props:{component:{type:[Function,Object],required:!0},params:{type:Array,default:()=>[]},overrideProps:{type:Object,default:()=>({})}},emits:["action"],setup(t){const e=t,n=o.computed(()=>{var s,i,l;return((s=r.value)==null?void 0:s.value)||((l=(i=r.value)==null?void 0:i.props)==null?void 0:l.text)}),r=o.computed(()=>typeof e.component=="function"?e.component(...e.params):e.component);return(s,i)=>n.value?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(r.value.is),o.mergeProps({key:0},{...r.value.props,...t.overrideProps},{onAction:i[0]||(i[0]=l=>s.$emit("action",l))}),{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(n.value),1)]),_:1},16)):(o.openBlock(),o.createBlock(o.resolveDynamicComponent(r.value.is),o.mergeProps({key:1},{...r.value.props,...t.overrideProps},{onAction:i[1]||(i[1]=l=>s.$emit("action",l))}),null,16))}},nx=["href"],qd=o.defineComponent({__name:"PopoverMenu",props:{items:{},tooltip:{default:null},disabled:{type:Boolean},loading:{type:Boolean},loadingComponent:{default:()=>({is:ce.QSpinner,props:{class:"w-4 h-4"}})}},emits:["action","action-item"],setup(t,{emit:e}){const n=e;function r(s){n("action",s.name||s.action),n("action-item",s)}return(s,i)=>{const l=o.resolveComponent("QTooltip"),a=o.resolveComponent("QItem"),c=o.resolveComponent("QList"),u=o.resolveComponent("QMenu");return o.openBlock(),o.createElementBlock("a",{class:o.normalizeClass(["p-3 dx-popover-menu",{"opacity-50 cursor-not-allowed":s.disabled}])},[s.$slots.tooltip||s.tooltip?(o.openBlock(),o.createBlock(l,{key:0},{default:o.withCtx(()=>[o.renderSlot(s.$slots,"tooltip",{},()=>[o.createTextVNode(o.toDisplayString(s.tooltip),1)])]),_:3})):o.createCommentVNode("",!0),o.createVNode(o.Transition,{mode:"out-in",duration:150},{default:o.withCtx(()=>[s.loading?(o.openBlock(),o.createBlock(o.unref(zd),{key:0,component:s.loadingComponent},null,8,["component"])):(o.openBlock(),o.createBlock(o.unref(N2),{key:1,class:"w-4 dx-menu-icon"}))]),_:1}),s.disabled?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(u,{key:1,"auto-close":""},{default:o.withCtx(()=>[o.createVNode(c,null,{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.items,d=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:d.name},[d.url?(o.openBlock(),o.createElementBlock("a",{key:0,class:o.normalizeClass(["q-item",d.class]),target:"_blank",href:d.url},[d.icon?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(d.icon),{key:0,class:o.normalizeClass([d.iconClass,"mr-3 w-4"])},null,8,["class"])):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString(d.label),1)],10,nx)):(o.openBlock(),o.createBlock(a,{key:1,clickable:"",class:o.normalizeClass(d.class),onClick:f=>r(d)},{default:o.withCtx(()=>[d.icon?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(d.icon),{key:0,class:o.normalizeClass([d.iconClass,"mr-3 w-4"])},null,8,["class"])):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString(d.label),1)]),_:2},1032,["class","onClick"]))],64))),128))]),_:1})]),_:1}))],2)}}}),rx={__name:"InteractiveTooltip",props:{tooltip:{type:String,default:""}},setup(t){const e=o.ref(!1),n=o.ref(null),r=o.ref(!1),s=o.ref(!1);let i=null;o.onMounted(()=>{n.value.$el.parentNode.addEventListener("mouseover",l),n.value.$el.parentNode.addEventListener("mouseleave",a)});function l(){e.value=!0,s.value=!0,i&&clearTimeout(i)}function a(){s.value=!1,e.value&&d()}function c(){r.value=!0,e.value=!0,i&&clearTimeout(i)}function u(){r.value=!1,e.value&&d()}function d(){i&&clearTimeout(i),i=setTimeout(()=>{r.value||s.value?d():e.value=!1},200)}return(f,h)=>{const _=o.resolveComponent("QTooltip");return o.openBlock(),o.createBlock(_,{ref_key:"tooltipBox",ref:n,modelValue:e.value,"onUpdate:modelValue":h[0]||(h[0]=g=>e.value=g),class:"interactive-tooltip","no-parent-event":"","transition-duration":200,onMouseenter:c,onMouseleave:u},{default:o.withCtx(()=>[o.renderSlot(f.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(t.tooltip),1)])]),_:3},8,["modelValue"])}}},ox={class:"flex items-center w-full"},sx={class:"flex-grow text-sm"},ix={__name:"BadgeTab",props:{name:{type:String,required:!0},label:{type:String,required:!0},count:{type:[String,Number],default:""}},setup(t){return(e,n)=>{const r=o.resolveComponent("QBadge"),s=o.resolveComponent("QTab");return o.openBlock(),o.createBlock(s,{name:t.name,class:"w-full","content-class":"w-full"},{default:o.withCtx(()=>[o.createElementVNode("div",ox,[o.createElementVNode("div",sx,o.toDisplayString(t.label),1),o.createVNode(r,{class:"bg-gray-400",label:t.count,rounded:""},null,8,["label"])])]),_:1},8,["name"])}}},lx={class:"flex items-center w-full"},ax={class:"flex-grow text-sm"},cx={__name:"IndicatorTab",props:{name:{type:String,required:!0},label:{type:String,required:!0},overdue:Boolean,warning:Boolean,isActive:Boolean},setup(t){return(e,n)=>{const r=o.resolveComponent("QTab");return o.openBlock(),o.createBlock(r,{name:t.name,class:"w-full","content-class":"w-full"},{default:o.withCtx(()=>[o.createElementVNode("div",lx,[o.createElementVNode("div",ax,o.toDisplayString(t.label),1),o.createElementVNode("div",null,[t.overdue?(o.openBlock(),o.createBlock(o.unref(Oc),{key:0,class:o.normalizeClass(["w-5 ml-2",t.isActive?"text-white":"text-red-400"])},null,8,["class"])):t.warning?(o.openBlock(),o.createBlock(o.unref(ad),{key:1,class:"text-yellow-600 w-5"})):o.createCommentVNode("",!0)])])]),_:1},8,["name"])}}},ux={};function dx(t,e){return o.openBlock(),o.createBlock(o.Transition,{name:"autoHeight"},{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3})}const fx=qe(ux,[["render",dx]]),Hd={__name:"ListTransition",props:{name:{type:String,default:"fade-list"}},setup(t){return(e,n)=>(o.openBlock(),o.createBlock(o.TransitionGroup,{tag:"div",name:t.name,class:"relative"},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3},8,["name"]))}},_x=o.defineComponent({__name:"MaxHeightTransition",props:{maxHeight:{}},setup(t){return o.useCssVars(e=>({"0f80b08a":e.maxHeight})),(e,n)=>(o.openBlock(),o.createBlock(o.Transition,{name:"maxHeight"},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3}))}}),hx={__name:"SlideTransition",props:{name:{type:String,default:"slide"}},setup(t){return(e,n)=>(o.openBlock(),o.createBlock(o.Transition,{name:t.name},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3},8,["name"]))}};function Mt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function jd(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}/*!
|
|
133
|
+
\`\`\``)}function Ld(t={}){const e=r.ref(t.initialFormat??"yaml"),n=r.ref("");function o(m){if(!m)return null;const g=Id(m);if(g!==!1&&g!==null)return g;const p=Ad(m);return p!==!1&&p!==null?p:null}function s(m,g=e.value){if(!m)return"";if(g==="text"||g==="markdown")return typeof m=="string"?m:JSON.stringify(m,null,2);try{const p=typeof m=="string"?o(m):m;if(!p)return typeof m=="string"?m:"";if(g==="json"){const _=$l(p);return typeof _=="string"?_:JSON.stringify(p,null,2)}else return xs(p)}catch{return typeof m=="string"?m:JSON.stringify(m,null,2)}}function i(m,g=e.value){if(!m||g==="text"||g==="markdown")return!0;try{return g==="json"?JSON.parse(m):hr(m),!0}catch{return!1}}function l(m,g=e.value){if(!m||g==="text"||g==="markdown")return null;try{return g==="json"?JSON.parse(m):hr(m),null}catch(p){const _=p;let b,y;if(_.linePos&&_.linePos[0]&&(b=_.linePos[0].line,y=_.linePos[0].col),g==="json"&&_.message){const w=_.message.match(/position\s+(\d+)/i);if(w){const k=parseInt(w[1],10),S=m.substring(0,k).split(`
|
|
134
|
+
`);b=S.length,y=S[S.length-1].length+1}}return{message:_.message||"Invalid syntax",line:b,column:y}}}t.initialValue&&(n.value=s(t.initialValue,e.value));const a=r.computed(()=>o(n.value)),c=r.computed(()=>e.value==="text"||e.value==="markdown"?n.value:s(a.value,e.value)),u=r.computed(()=>i(n.value,e.value));function d(m){if(e.value===m)return;const g=a.value;e.value=m,g&&(n.value=s(g,m))}function f(m){n.value=m}function h(m){n.value=s(m,e.value)}return{format:e,rawContent:n,parsedValue:a,formattedContent:c,isValid:u,setFormat:d,setContent:f,setValue:h,parse:o,formatValue:s,validate:i,validateWithError:l}}function Fn(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Il(t){if(!t)return"";const e=[];let n=0;for(;n<t.length;){const o=t[n];if(o==='"'){const s=n;for(n++;n<t.length;)if(t[n]==="\\"&&n+1<t.length)n+=2;else if(t[n]==='"'){n++;break}else n++;const i=t.slice(s,n),l=Fn(i),a=t.slice(n).match(/^(\s*):/);a?(e.push(`<span class="syntax-key">${l}</span>`),e.push(`<span class="syntax-punctuation">${Fn(a[1])}:</span>`),n+=a[0].length):e.push(`<span class="syntax-string">${l}</span>`);continue}if(/[-\d]/.test(o)){const s=t.slice(n).match(/^-?\d+(\.\d+)?([eE][+-]?\d+)?/);if(s){e.push(`<span class="syntax-number">${Fn(s[0])}</span>`),n+=s[0].length;continue}}if(t.slice(n,n+4)==="true"){e.push('<span class="syntax-boolean">true</span>'),n+=4;continue}if(t.slice(n,n+5)==="false"){e.push('<span class="syntax-boolean">false</span>'),n+=5;continue}if(t.slice(n,n+4)==="null"){e.push('<span class="syntax-null">null</span>'),n+=4;continue}if(/[{}\[\],:]/.test(o)){e.push(`<span class="syntax-punctuation">${Fn(o)}</span>`),n++;continue}e.push(Fn(o)),n++}return e.join("")}function Fd(t){return t&&(/^(".*"|'.*')$/.test(t)||/^["'].*["']$/.test(t)?`<span class="syntax-string">${t}</span>`:/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(t)?`<span class="syntax-number">${t}</span>`:/^(true|false)$/i.test(t)?`<span class="syntax-boolean">${t}</span>`:/^(null|~)$/i.test(t)?`<span class="syntax-null">${t}</span>`:/^[|>][-+]?\d*$/.test(t)?`<span class="syntax-punctuation">${t}</span>`:`<span class="syntax-string">${t}</span>`)}function Md(t){const e=t.match(/^(\s*)/);return e?e[1].length:0}function Al(t){if(!t)return"";const e=t.split(`
|
|
135
|
+
`),n=[];let o=!1,s=0,i=!1,l="",a=!1,c=0;for(let u=0;u<e.length;u++){const d=e[u],f=Fn(d),h=Md(d),m=d.trim();if(o)if(m&&h<=s)o=!1;else{n.push(`<span class="syntax-string">${f}</span>`);continue}if(i){const _=l==='"'?""":"'";let b=!1,y=f;for(;y.includes(_);){const w=y.indexOf(_);if(w>0&&y[w-1]==="\\"){y=y.slice(w+_.length);continue}b=!0;break}if(b){const w=f.indexOf(_),k=f.slice(0,w+_.length),S=f.slice(w+_.length);n.push(`<span class="syntax-string">${k}</span>${S}`),i=!1}else n.push(`<span class="syntax-string">${f}</span>`);continue}if(a)if(m&&h<=c)a=!1;else if(m){n.push(`<span class="syntax-string">${f}</span>`);continue}else{n.push(f);continue}if(/^\s*#/.test(d)){n.push(`<span class="syntax-punctuation">${f}</span>`);continue}const g=f.match(/^(\s*)([^:]+?)(:)(\s*)(.*)$/);if(g){const[,_,b,y,w,k]=g;if(/^[|>][-+]?\d*$/.test(k.trim())){o=!0,s=h;const T=`<span class="syntax-punctuation">${k}</span>`;n.push(`${_}<span class="syntax-key">${b}</span><span class="syntax-punctuation">${y}</span>${w}${T}`);continue}const S=/^("|'|"|')/.test(k),C=/("|'|"|')$/.test(k);if(S&&!C&&k.length>1){i=!0,l=k.startsWith(""")||k.startsWith('"')?'"':"'",n.push(`${_}<span class="syntax-key">${b}</span><span class="syntax-punctuation">${y}</span>${w}<span class="syntax-string">${k}</span>`);continue}if(k&&!S&&u+1<e.length){const T=e[u+1],B=Md(T),N=T.trim();if(N&&B>h&&!N.includes(":")&&!N.startsWith("-")){a=!0,c=h,n.push(`${_}<span class="syntax-key">${b}</span><span class="syntax-punctuation">${y}</span>${w}<span class="syntax-string">${k}</span>`);continue}}const x=Fd(k);n.push(`${_}<span class="syntax-key">${b}</span><span class="syntax-punctuation">${y}</span>${w}${x}`);continue}const p=f.match(/^(\s*)(-)(\s*)(.*)$/);if(p){const[,_,b,y,w]=p,k=w?Fd(w):"";n.push(`${_}<span class="syntax-punctuation">${b}</span>${y}${k}`);continue}n.push(f)}return n.join(`
|
|
136
|
+
`)}function sn(t,e){if(!t)return"";switch(e.format){case"json":return Il(t);case"yaml":return Al(t);case"text":default:return Fn(t)}}function Od(t,e=!0){if(t===null)return"null";if(typeof t=="string"){const n=t.length>15?t.slice(0,15)+"...":t;return e?`"${n}"`:n}return typeof t=="object"?Array.isArray(t)?`[${t.length}]`:"{...}":String(t)}function Dd(t){return t===null?"null":typeof t=="string"?"string":typeof t=="number"?"number":typeof t=="boolean"?"boolean":"punctuation"}function vd(t){const{modelValue:e,format:n,displayContent:o,codeFormat:s}=t;return{collapsedPreview:r.computed(()=>{const l=o.value;if(!l)return'<span class="syntax-null">null</span>';const a=100;let c="";if(n.value==="json")try{const u=typeof e.value=="string"?JSON.parse(e.value):e.value;if(u===null)return'<span class="syntax-null">null</span>';if(Array.isArray(u))c=`[${u.length} items]`;else if(typeof u=="object"){const d=Object.keys(u);c=`{${d.slice(0,3).map(h=>{const m=u[h],g=Od(m);return`<span class="syntax-key">${h}</span>: <span class="syntax-${Dd(m)}">${g}</span>`}).join(", ")}${d.length>3?", ...":""}}`}else c=sn(String(u),{format:"json"})}catch{c=l.replace(/\s+/g," ").slice(0,a),l.length>a&&(c+="...")}else try{const u=typeof e.value=="string"?s.parse(e.value):e.value;if(u===null)return'<span class="syntax-null">null</span>';if(Array.isArray(u))c=`[${u.length} items]`;else if(typeof u=="object"){const d=Object.keys(u);c=d.slice(0,3).map(h=>{const m=u[h],g=Od(m,!1);return`<span class="syntax-key">${h}</span>: <span class="syntax-${Dd(m)}">${g}</span>`}).join(", ")+(d.length>3?", ...":"")}else c=String(u)}catch{const u=l.split(`
|
|
137
|
+
`)[0];c=u.length>a?u.slice(0,a)+"...":u}return c})}}function Vd(t){var a;const e=window.getSelection();if(!e||!e.rangeCount||!t)return 0;const n=e.getRangeAt(0),o=document.createRange();o.selectNodeContents(t),o.setEnd(n.startContainer,n.startOffset);let s=0;const i=document.createTreeWalker(o.commonAncestorContainer,NodeFilter.SHOW_TEXT);let l=i.nextNode();for(;l;){if(o.intersectsNode(l)){const c=document.createRange();if(c.selectNodeContents(l),o.compareBoundaryPoints(Range.END_TO_END,c)>=0)s+=((a=l.textContent)==null?void 0:a.length)||0;else{s+=n.startOffset;break}}l=i.nextNode()}return s}function Sw(t,e){var a;if(!t)return;const n=window.getSelection();if(!n)return;let o=0;const s=document.createTreeWalker(t,NodeFilter.SHOW_TEXT);let i=s.nextNode();for(;i;){const c=((a=i.textContent)==null?void 0:a.length)||0;if(o+c>=e){const u=document.createRange();u.setStart(i,e-o),u.collapse(!0),n.removeAllRanges(),n.addRange(u);return}o+=c,i=s.nextNode()}const l=document.createRange();l.selectNodeContents(t),l.collapse(!1),n.removeAllRanges(),n.addRange(l)}function Ew(t,e){const n=t;if(!n)return{indent:"",lineContent:""};const o=Vd(e),s=n.substring(0,o),l=s.lastIndexOf(`
|
|
138
|
+
`)+1,a=s.substring(l),c=a.match(/^[\t ]*/);return{indent:c?c[0]:"",lineContent:a}}function Tw(t,e){const{indent:n,lineContent:o}=t,s=o.trim(),i=" ";if(e==="yaml"){if(s.endsWith(":")||s.match(/:\s*[|>][-+]?\s*$/)||s.startsWith("- "))return n+i;if(s==="-")return n}else if(e==="json"){if(s.endsWith("{")||s.endsWith("["))return n+i;if(s.endsWith(","))return n}return n}function Bw(t){return t==="json"||t==="yaml"?["yaml","json"]:t==="text"||t==="markdown"?["text","markdown"]:[t]}function Pd(t){const{codeRef:e,codeFormat:n,currentFormat:o,canEdit:s,editable:i,onEmitModelValue:l,onEmitEditable:a,onEmitFormat:c,onExit:u,onDelete:d,onOpenLanguageSearch:f}=t;let h=null,m=null;const g=r.ref(i.value),p=r.ref(""),_=r.ref(""),b=r.ref(!1),y=r.ref(null),w=r.computed(()=>y.value!==null),k=r.computed(()=>s.value&&g.value),S=r.computed(()=>b.value?p.value:n.formattedContent.value),C=r.computed(()=>{if(b.value)return _.value;const I=sn(S.value,{format:o.value});return _.value=I,I}),x=r.computed(()=>w.value?!1:n.isValid.value),T=r.computed(()=>{var I;return((I=S.value)==null?void 0:I.length)||0});function B(I){g.value=I}function N(){b.value||(p.value=n.formattedContent.value)}function $(){k.value&&(p.value=n.formattedContent.value,_.value=sn(p.value,{format:o.value}),r.nextTick(()=>{e.value&&(e.value.innerHTML=_.value)}))}function O(){h&&clearTimeout(h),h=setTimeout(()=>{y.value=n.validateWithError(p.value,o.value)},300)}function F(){m&&clearTimeout(m),m=setTimeout(()=>{if(!e.value||!k.value)return;const I=document.activeElement,W=I===e.value||e.value.contains(I),U=Vd(e.value);e.value.innerHTML=sn(p.value,{format:o.value}),Sw(e.value,U),W&&document.activeElement!==e.value&&e.value.focus()},300)}function P(){g.value=!g.value,a(g.value),g.value?(p.value=n.formattedContent.value,y.value=null,r.nextTick(()=>{if(e.value){e.value.innerHTML=sn(p.value,{format:o.value}),e.value.focus();const I=window.getSelection(),W=document.createRange();W.selectNodeContents(e.value),W.collapse(!1),I==null||I.removeAllRanges(),I==null||I.addRange(W)}})):y.value=null}function A(I){if(!k.value)return;b.value=!0;const W=I.target;p.value=W.innerText||"",O(),F()}function L(){if(!k.value||!b.value)return;b.value=!1,h&&(clearTimeout(h),h=null),m&&(clearTimeout(m),m=null),y.value=n.validateWithError(p.value,o.value);const I=n.parse(p.value);l(I||p.value),e.value&&(e.value.innerHTML=sn(p.value,{format:o.value}))}function D(I){var U,j,M;if((I.ctrlKey||I.metaKey)&&I.altKey&&I.key.toLowerCase()==="l"){if(I.preventDefault(),I.stopPropagation(),I.shiftKey&&f){f();return}if(!I.shiftKey&&c){const v=Bw(o.value);if(v.length>1){const K=(v.indexOf(o.value)+1)%v.length,Z=v[K];c(Z)}}return}if(k.value){if((I.key==="Backspace"||I.key==="Delete")&&d&&p.value.trim()===""){I.preventDefault(),d();return}if(I.key==="Enter"&&(I.ctrlKey||I.metaKey)){if(I.preventDefault(),u){const v=n.parse(p.value);l(v||p.value),u()}return}if(I.key==="Enter"){const v=window.getSelection();if((!v||v.rangeCount===0)&&e.value){const je=document.createRange();je.selectNodeContents(e.value),je.collapse(!1),v==null||v.removeAllRanges(),v==null||v.addRange(je)}if(!v||v.rangeCount===0)return;I.preventDefault();let H=v.getRangeAt(0);!((U=e.value)==null?void 0:U.contains(H.startContainer))&&e.value&&(H=document.createRange(),H.selectNodeContents(e.value),H.collapse(!1),v.removeAllRanges(),v.addRange(H));const Z=((j=e.value)==null?void 0:j.innerText)||"",re=Ew(Z,e.value),ue=re?Tw(re,o.value):"";H.deleteContents();const de=document.createTextNode(`
|
|
139
|
+
`+ue);H.insertNode(de),H.setStartAfter(de),H.setEndAfter(de),v.removeAllRanges(),v.addRange(H),(M=e.value)==null||M.dispatchEvent(new Event("input",{bubbles:!0}))}if(I.key==="Tab"&&(I.preventDefault(),document.execCommand("insertText",!1," ")),I.key==="Escape"&&(I.preventDefault(),L(),P()),(I.ctrlKey||I.metaKey)&&I.key==="s"&&(I.preventDefault(),L()),(I.ctrlKey||I.metaKey)&&I.key==="a"){I.preventDefault(),I.stopPropagation();const v=window.getSelection();if(v&&e.value){const H=document.createRange();H.selectNodeContents(e.value),v.removeAllRanges(),v.addRange(H)}}}}return k.value&&(p.value=n.formattedContent.value,r.nextTick(()=>{e.value&&(e.value.innerHTML=sn(p.value,{format:o.value}))})),r.onUnmounted(()=>{h&&clearTimeout(h),m&&clearTimeout(m)}),{internalEditable:g,editingContent:p,cachedHighlightedContent:_,isUserEditing:b,validationError:y,isEditing:k,hasValidationError:w,highlightedContent:C,displayContent:S,charCount:T,isValid:x,toggleEdit:P,onContentEditableInput:A,onContentEditableBlur:L,onKeyDown:D,syncEditableFromProp:B,syncEditingContentFromValue:N,updateEditingContentOnFormatChange:$}}const Nw={class:"dx-field-label"},$w={class:"dx-field-label-text"},Iw={class:"dx-field-label-label"},Aw={key:0,class:"dx-field-label-name"},Lw={key:0,class:"dx-field-required"},Et=r.defineComponent({__name:"FieldLabel",props:{label:{},name:{},required:{type:Boolean},requiredLabel:{}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",Nw,[r.renderSlot(e.$slots,"default",{},()=>[r.createElementVNode("div",$w,[r.createElementVNode("div",Iw,r.toDisplayString(e.label),1),e.name?(r.openBlock(),r.createElementBlock("div",Aw," ("+r.toDisplayString(e.name)+") ",1)):r.createCommentVNode("",!0)])]),e.required?(r.openBlock(),r.createElementBlock("span",Lw,r.toDisplayString(e.requiredLabel||"*"),1)):r.createCommentVNode("",!0)]))}}),Fw={key:0,class:"dx-language-options"},Mw=["onClick"],Ow=["onKeydown"],Dw={class:"dx-language-search-list"},vw=["onClick","onMouseenter"],Vw={key:0,class:"dx-language-search-empty"},mr=r.defineComponent({__name:"LanguageBadge",props:{format:{},availableFormats:{default:()=>[]},toggleable:{type:Boolean,default:!0},allowAnyLanguage:{type:Boolean,default:!1}},emits:["change"],setup(t,{expose:e,emit:n}){const o=["bash","c","cpp","css","dockerfile","go","graphql","html","java","javascript","json","kotlin","markdown","php","python","ruby","rust","scss","sql","swift","text","typescript","xml","yaml"],s=t,i=n,l=r.ref(!1),a=r.ref(!1),c=r.ref(""),u=r.ref(null),d=r.ref(0),f=r.computed(()=>s.availableFormats.filter(x=>x!==s.format)),h=r.computed(()=>{if(!c.value)return o;const x=c.value.toLowerCase();return o.filter(T=>T.toLowerCase().includes(x))});function m(){d.value=0}function g(){h.value.length!==0&&(d.value=(d.value+1)%h.value.length,b())}function p(){h.value.length!==0&&(d.value=d.value===0?h.value.length-1:d.value-1,b())}function _(){h.value.length>0&&k(h.value[d.value])}function b(){r.nextTick(()=>{const x=document.querySelector(".dx-language-search-list"),T=x==null?void 0:x.querySelector(".is-selected");T==null||T.scrollIntoView({block:"nearest"})})}function y(){a.value=!0,c.value="",d.value=0,r.nextTick(()=>{var x;(x=u.value)==null||x.focus()})}function w(){a.value=!1,c.value=""}function k(x){i("change",x),w()}function S(){l.value=!1}function C(x){if(a.value){const T=x.target,B=document.querySelector(".dx-language-search-panel");B&&!B.contains(T)&&w()}}return r.onMounted(()=>{document.addEventListener("mousedown",C)}),r.onBeforeUnmount(()=>{document.removeEventListener("mousedown",C)}),e({openSearchPanel:y}),(x,T)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["dx-language-badge-container",{"is-toggleable":x.toggleable&&x.availableFormats.length>1}]),onMouseenter:T[2]||(T[2]=B=>l.value=!0),onMouseleave:S},[r.createVNode(r.Transition,{name:"slide-left"},{default:r.withCtx(()=>[l.value&&x.allowAnyLanguage?(r.openBlock(),r.createElementBlock("div",{key:0,class:"dx-language-option dx-language-search-trigger",onClick:r.withModifiers(y,["stop"])},T[3]||(T[3]=[r.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},[r.createElementVNode("path",{"fill-rule":"evenodd",d:"M9 3.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11zM2 9a7 7 0 1112.452 4.391l3.328 3.329a.75.75 0 11-1.06 1.06l-3.329-3.328A7 7 0 012 9z","clip-rule":"evenodd"})],-1)]))):r.createCommentVNode("",!0)]),_:1}),r.createVNode(r.Transition,{name:"slide-left"},{default:r.withCtx(()=>[l.value&&x.toggleable&&f.value.length>0?(r.openBlock(),r.createElementBlock("div",Fw,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(f.value,B=>(r.openBlock(),r.createElementBlock("div",{key:B,class:"dx-language-option",onClick:r.withModifiers(N=>x.$emit("change",B),["stop"])},r.toDisplayString(B.toUpperCase()),9,Mw))),128))])):r.createCommentVNode("",!0)]),_:1}),r.createElementVNode("div",{class:r.normalizeClass(["dx-language-badge",{"is-active":l.value&&(f.value.length>0||x.allowAnyLanguage)}])},r.toDisplayString(x.format.toUpperCase()),3),r.createVNode(r.Transition,{name:"fade"},{default:r.withCtx(()=>[a.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:"dx-language-search-panel",onClick:T[1]||(T[1]=r.withModifiers(()=>{},["stop"]))},[r.withDirectives(r.createElementVNode("input",{ref_key:"searchInputRef",ref:u,"onUpdate:modelValue":T[0]||(T[0]=B=>c.value=B),type:"text",class:"dx-language-search-input",placeholder:"Search languages...",onInput:m,onKeydown:[r.withKeys(r.withModifiers(g,["prevent"]),["down"]),r.withKeys(r.withModifiers(p,["prevent"]),["up"]),r.withKeys(r.withModifiers(_,["prevent"]),["enter"]),r.withKeys(w,["escape"])]},null,40,Ow),[[r.vModelText,c.value]]),r.createElementVNode("div",Dw,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(h.value,(B,N)=>(r.openBlock(),r.createElementBlock("div",{key:B,class:r.normalizeClass(["dx-language-search-item",{"is-selected":N===d.value}]),onClick:$=>k(B),onMouseenter:$=>d.value=N},r.toDisplayString(B.toUpperCase()),43,vw))),128)),h.value.length===0?(r.openBlock(),r.createElementBlock("div",Vw," No languages found ")):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0)]),_:1})],34))}}),Pw=["innerHTML"],Rd=r.defineComponent({__name:"CodeViewerCollapsed",props:{preview:{},format:{},availableFormats:{},allowAnyLanguage:{type:Boolean}},emits:["expand","format-change"],setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",{class:"code-collapsed relative flex items-center cursor-pointer",onClick:n[2]||(n[2]=o=>e.$emit("expand"))},[r.createVNode(r.unref(Lg),{class:"w-3 h-3 mr-2 flex-shrink-0 text-gray-500"}),r.createElementVNode("code",{class:"code-collapsed-preview flex-1 min-w-0 truncate",innerHTML:e.preview},null,8,Pw),r.createVNode(mr,{format:e.format,"available-formats":e.availableFormats,toggleable:e.availableFormats.length>1,"allow-any-language":e.allowAnyLanguage,onClick:n[0]||(n[0]=r.withModifiers(()=>{},["stop"])),onChange:n[1]||(n[1]=o=>e.$emit("format-change",o))},null,8,["format","available-formats","toggleable","allow-any-language"])]))}}),Rw={class:"font-medium"},Uw={class:"truncate"},Ud=r.defineComponent({__name:"CodeViewerFooter",props:{charCount:{},validationError:{},canEdit:{type:Boolean},isEditing:{type:Boolean}},emits:["toggle-edit"],setup(t){const e=t,n=r.computed(()=>e.validationError!==null);return(o,s)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["code-footer flex items-center justify-between px-2 py-1 flex-shrink-0",{"has-error":n.value}])},[r.createElementVNode("div",{class:r.normalizeClass(["text-xs flex-1 min-w-0",n.value?"text-red-400":"text-gray-500"])},[o.validationError?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("span",Rw,[s[1]||(s[1]=r.createTextVNode(" Error")),o.validationError.line?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(" (line "+r.toDisplayString(o.validationError.line)+")",1)],64)):r.createCommentVNode("",!0),s[2]||(s[2]=r.createTextVNode(": "))]),r.createElementVNode("span",Uw,r.toDisplayString(o.validationError.message),1)],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(o.charCount.toLocaleString())+" chars ",1)],64))],2),o.canEdit?(r.openBlock(),r.createBlock(r.unref(pe.QBtn),{key:0,flat:"",dense:"",round:"",size:"sm",class:r.normalizeClass(["text-gray-500 hover:text-gray-700",{"text-sky-500 hover:text-sky-600":o.isEditing}]),onClick:s[0]||(s[0]=i=>o.$emit("toggle-edit"))},{default:r.withCtx(()=>[r.createVNode(r.unref(Bn),{class:"w-3.5 h-3.5"})]),_:1},8,["class"])):r.createCommentVNode("",!0)],2))}});function zd(t){const e=t.tagName.toLowerCase();return/^h[1-6]$/.test(e)}function Hd(t){const n=t.tagName.toLowerCase().match(/^h([1-6])$/);return n?parseInt(n[1],10):0}function qd(t){var s;const e=Hd(t);if(e===0)return"";const n=((s=t.textContent)==null?void 0:s.trim())||"";return n?`${"#".repeat(e)} ${n}
|
|
140
|
+
|
|
141
|
+
`:""}const zw=/([\\`*_{}[\]()#+\-.!])/g;function Hw(t){return t.replace(zw,"\\$1")}function Ll(t){return t.replace(/\u200B/g,"")}function Ke(t){const e=[];for(const n of Array.from(t.childNodes))if(n.nodeType===Node.TEXT_NODE)e.push(Ll(n.textContent||""));else if(n.nodeType===Node.ELEMENT_NODE){const o=n,s=o.tagName.toLowerCase(),i=Ke(o);if(!i&&["strong","b","em","i","code","del","s","mark","sup","sub"].includes(s))continue;switch(s){case"strong":case"b":e.push(`**${i}**`);break;case"em":case"i":e.push(`*${i}*`);break;case"code":e.push(`\`${o.textContent||""}\``);break;case"a":{const l=o.getAttribute("href")||"";e.push(`[${i}](${l})`);break}case"img":{const l=o.getAttribute("src")||"",a=o.getAttribute("alt")||"";e.push(``);break}case"del":case"s":e.push(`~~${i}~~`);break;case"mark":e.push(`==${i}==`);break;case"sup":e.push(`^${i}^`);break;case"sub":e.push(`~${i}~`);break;case"br":e.push(`
|
|
142
|
+
`);break;default:e.push(i)}}return e.join("")}function Ts(t,e){const n=[];let o=1;for(const s of Array.from(t.children))if(s.tagName.toLowerCase()==="li"){const i=e==="1."?`${o}. `:`${e} `,l=Ke(s),a=s.querySelector("ul"),c=s.querySelector("ol");if(a||c){const u=[];for(const d of Array.from(s.childNodes))if(d.nodeType===Node.TEXT_NODE)u.push(d.textContent||"");else if(d.nodeType===Node.ELEMENT_NODE){const f=d;f.tagName.toLowerCase()!=="ul"&&f.tagName.toLowerCase()!=="ol"&&u.push(Ke(f))}if(n.push(`${i}${u.join("").trim()}`),a){const d=Ts(a,"-").split(`
|
|
143
|
+
`).filter(Boolean);n.push(...d.map(f=>` ${f}`))}if(c){const d=Ts(c,"1.").split(`
|
|
144
|
+
`).filter(Boolean);n.push(...d.map(f=>` ${f}`))}}else n.push(`${i}${l}`);o++}return n.join(`
|
|
145
|
+
`)+`
|
|
146
|
+
|
|
147
|
+
`}function qw(t){const e=[],n=[],o=t.querySelector("thead");if(o){const l=o.querySelector("tr");if(l){const a=[];for(const c of Array.from(l.querySelectorAll("th"))){a.push(Ke(c).trim());const u=c.getAttribute("style")||"";u.includes("text-align: center")?n.push(":---:"):u.includes("text-align: right")?n.push("---:"):n.push("---")}e.push(a)}}const s=t.querySelector("tbody")||t;for(const l of Array.from(s.querySelectorAll("tr"))){if(o&&l.parentElement===o)continue;const a=[];for(const c of Array.from(l.querySelectorAll("td, th")))a.push(Ke(c).trim());a.length>0&&e.push(a)}if(e.length===0)return"";const i=[];e.length>0&&(i.push(`| ${e[0].join(" | ")} |`),n.length>0?i.push(`| ${n.join(" | ")} |`):i.push(`| ${e[0].map(()=>"---").join(" | ")} |`));for(let l=1;l<e.length;l++)i.push(`| ${e[l].join(" | ")} |`);return i.join(`
|
|
148
|
+
`)+`
|
|
149
|
+
|
|
150
|
+
`}function Bs(t){var n;const e=[];for(const o of Array.from(t.childNodes))if(o.nodeType===Node.TEXT_NODE)e.push(Ll(o.textContent||""));else if(o.nodeType===Node.ELEMENT_NODE){const s=o,i=s.tagName.toLowerCase();if(zd(s)){e.push(qd(s));continue}switch(i){case"p":e.push(`${Ke(s)}
|
|
151
|
+
|
|
152
|
+
`);break;case"br":e.push(`
|
|
153
|
+
`);break;case"strong":case"b":{const l=Ke(s);l&&e.push(`**${l}**`);break}case"em":case"i":{const l=Ke(s);l&&e.push(`*${l}*`);break}case"code":((n=s.parentElement)==null?void 0:n.tagName.toLowerCase())!=="pre"?e.push(`\`${s.textContent||""}\``):e.push(s.textContent||"");break;case"pre":{const l=s.querySelector("code"),a=(l==null?void 0:l.textContent)||s.textContent||"",c=l==null?void 0:l.className.match(/language-(\w+)/),u=c?c[1]:"";e.push(`\`\`\`${u}
|
|
154
|
+
${a}
|
|
155
|
+
\`\`\`
|
|
156
|
+
|
|
157
|
+
`);break}case"blockquote":{const a=Bs(s).trim().split(`
|
|
158
|
+
`).map(c=>`> ${c}`).join(`
|
|
159
|
+
`);e.push(`${a}
|
|
160
|
+
|
|
161
|
+
`);break}case"ul":e.push(Ts(s,"-"));break;case"ol":e.push(Ts(s,"1."));break;case"li":e.push(Ke(s));break;case"a":{const l=s.getAttribute("href")||"",a=Ke(s);e.push(`[${a}](${l})`);break}case"img":{const l=s.getAttribute("src")||"",a=s.getAttribute("alt")||"";e.push(``);break}case"hr":e.push(`---
|
|
162
|
+
|
|
163
|
+
`);break;case"del":case"s":{const l=Ke(s);l&&e.push(`~~${l}~~`);break}case"mark":{const l=Ke(s);l&&e.push(`==${l}==`);break}case"sup":{const l=Ke(s);l&&e.push(`^${l}^`);break}case"sub":{const l=Ke(s);l&&e.push(`~${l}~`);break}case"div":case"span":e.push(Bs(s));break;case"table":e.push(qw(s));break;default:e.push(Bs(s))}}return e.join("")}function Ww(t){let e;typeof t=="string"?(e=document.createElement("div"),e.innerHTML=t):e=t;const n=Bs(e);return Ll(n).replace(/\n{3,}/g,`
|
|
164
|
+
|
|
165
|
+
`).trim()}function Fl(t){const e=t.match(/^(#{1,6})\s+(\S.*)$/);return e?{level:e[1].length,content:e[2]}:null}function Ml(t){const e=t.match(/^[-*+]\s+(.*)$/);if(e)return{type:"unordered",content:e[1]};const n=t.match(/^\d+\.\s+(.*)$/);return n?{type:"ordered",content:n[1]}:null}function Wd(t){const e=t.match(/^>\s?(.*)$/);return e?{content:e[1]}:null}function Ol(t){const e=t.match(/^```(\w+)$/);return e?{language:e[1]}:null}function jd(t){const e=t.trim();return/^([-*_]\s*){3,}$/.test(e)&&/^[-*_\s]+$/.test(e)}function jw(t){if(jd(t))return{type:"hr"};const e=Fl(t);if(e)return{type:"heading",level:e.level};const n=Ml(t);if(n)return{type:n.type==="unordered"?"unordered-list":"ordered-list"};if(Wd(t))return{type:"blockquote"};const s=Ol(t);return s?{type:"code-block",language:s.language}:null}let Dl={},vl={},Vl=0;function Ns(){return vl}function Gw(){return Dl}function Kw(t,e){Dl[t]=e}function Zw(t,e){Vl++,vl[t]={content:e,index:Vl}}function Pl(){Dl={},vl={},Vl=0}function go(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const Gd={"\\*":"","\\_":"","\\~":"","\\`":"","\\[":"","\\]":"","\\#":"","\\>":"","\\-":"","\\+":"","\\.":"","\\!":"","\\=":"","\\^":""},Yw=Object.fromEntries(Object.entries(Gd).map(([t,e])=>{const n=(t.startsWith("\\&"),t.slice(1));return[e,n]}));function Qw(t){let e=t;for(const[n,o]of Object.entries(Gd))e=e.split(n).join(o);return e}function Xw(t){let e=t;for(const[n,o]of Object.entries(Yw))e=e.split(n).join(o);return e}function ht(t,e=!0){if(!t)return"";const n=Gw(),o=Ns();let s=e?go(t):t;return s=Qw(s),s=s.replace(/ {2,}\n/g,`<br />
|
|
166
|
+
`),s=s.replace(/<(https?:\/\/[^&]+)>/g,'<a href="$1">$1</a>'),s=s.replace(/<([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})>/g,'<a href="mailto:$1">$1</a>'),s=s.replace(/\[\^([^\]]+)\]/g,(i,l)=>{const a=o[l];return a?`<sup class="footnote-ref"><a href="#fn-${l}" id="fnref-${l}">[${a.index}]</a></sup>`:i}),s=s.replace(/!\[([^\]]*)\]\(([^)]+)\)/g,'<img src="$2" alt="$1" />'),s=s.replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2">$1</a>'),s=s.replace(/\[([^\]]+)\]\[([^\]]+)\]/g,(i,l,a)=>{const c=n[a.toLowerCase()];if(c){const u=c.title?` title="${go(c.title)}"`:"";return`<a href="${c.url}"${u}>${l}</a>`}return i}),s=s.replace(/\[([^\]]+)\]\[\]/g,(i,l)=>{const a=n[l.toLowerCase()];if(a){const c=a.title?` title="${go(a.title)}"`:"";return`<a href="${a.url}"${c}>${l}</a>`}return i}),s=s.replace(/\[([^\]]+)\](?!\(|\[)/g,(i,l)=>{const a=n[l.toLowerCase()];if(a){const c=a.title?` title="${go(a.title)}"`:"";return`<a href="${a.url}"${c}>${l}</a>`}return i}),s=s.replace(/`([^`]+)`/g,"<code>$1</code>"),s=s.replace(/~~([^~]+)~~/g,"<del>$1</del>"),s=s.replace(/==([^=]+)==/g,"<mark>$1</mark>"),s=s.replace(/\^([^\^]+)\^/g,"<sup>$1</sup>"),s=s.replace(new RegExp("(?<!~)~([^~]+)~(?!~)","g"),"<sub>$1</sub>"),s=s.replace(/\*\*\*([^*]+)\*\*\*/g,"<strong><em>$1</em></strong>"),s=s.replace(/___([^_]+)___/g,"<strong><em>$1</em></strong>"),s=s.replace(/\*\*([^*]+)\*\*/g,"<strong>$1</strong>"),s=s.replace(/__([^_]+)__/g,"<strong>$1</strong>"),s=s.replace(/\*([^*]+)\*/g,"<em>$1</em>"),s=s.replace(/(^|[^a-zA-Z0-9])_([^_]+)_([^a-zA-Z0-9]|$)/g,"$1<em>$2</em>$3"),s=Xw(s),s}function Jw(t){const e=[];for(const n of t){const o=n.match(/^\s*\[\^([^\]]+)\]:\s+(.+)$/);if(o){const[,i,l]=o;Zw(i,l);continue}const s=n.match(/^\s*\[([^\]]+)\]:\s+<?([^>\s]+)>?(?:\s+["']([^"']+)["'])?\s*$/);if(s){const[,i,l,a]=s;Kw(i.toLowerCase(),{url:l,title:a})}else e.push(n)}return e}function e2(t,e){const n=t[e].trim();if(!n.startsWith("```"))return null;const o=n.slice(3).trim(),s=[];let i=e+1;for(;i<t.length&&!t[i].trim().startsWith("```");)s.push(t[i]),i++;return i<t.length&&i++,{token:{type:"code_block",language:o,content:s.join(`
|
|
167
|
+
`)},endIndex:i}}function t2(t,e){const n=t[e];if(!/^( {4}|\t)/.test(n))return null;const o=[];let s=e;for(;s<t.length;){const i=t[s];if(/^( {4}|\t)/.test(i))o.push(i.replace(/^( {4}|\t)/,"")),s++;else if(i.trim()==="")o.push(""),s++;else break}for(;o.length>0&&o[o.length-1]==="";)o.pop();return o.length===0?null:{token:{type:"code_block",language:"",content:o.join(`
|
|
168
|
+
`)},endIndex:s}}function n2(t,e){const n=t.match(/^(#{1,6})\s+(.+)$/);return n?{token:{type:"heading",level:n[1].length,content:n[2]},endIndex:e+1}:null}function o2(t,e){if(e+1>=t.length)return null;const n=t[e].trim(),o=t[e+1].trim();return/^=+$/.test(o)&&n.length>0?{token:{type:"heading",level:1,content:n},endIndex:e+2}:/^-+$/.test(o)&&n.length>0&&!/^[-*+]\s+/.test(n)?{token:{type:"heading",level:2,content:n},endIndex:e+2}:null}function Rl(t){const e=t.match(/^(\s*)/);return e?e[1].replace(/\t/g," ").length:0}function Ul(t){let e=t.trim();return e.startsWith("|")&&(e=e.slice(1)),e.endsWith("|")&&(e=e.slice(0,-1)),e.split("|").map(n=>n.trim())}function Kd(t){const e=t.match(/^[-*+]\s+(.*)$/);if(e)return{type:"ul",content:e[1]};const n=t.match(/^(\d+)\.\s+(.*)$/);return n?{type:"ol",content:n[2],start:parseInt(n[1],10)}:null}function Zd(t,e,n){const o=[];let s=e;for(;s<t.length;){const i=t[s],l=i.trim(),a=Rl(i);if(!l){s++;continue}if(a<n&&l)break;const c=Kd(l);if(c&&a===n){const u=[],d=c.type,f=c.start||1;for(;s<t.length;){const h=t[s],m=h.trim(),g=Rl(h);if(!m){s++;continue}if(g<n)break;const p=Kd(m);if(p&&p.type===d&&g===n){const _=p.content;s++;const b=n+2,y=Zd(t,s,b);u.push({content:_,children:y.tokens.length>0?y.tokens:void 0}),s=y.endIndex}else{if(g>n)break;break}}u.length>0&&(d==="ul"?o.push({type:"ul",items:u}):o.push({type:"ol",items:u,start:f}));continue}break}return{tokens:o,endIndex:s}}function r2(t,e){const n=t[e].trim();if(!n.startsWith("|")&&!n.includes(" | ")||e+1>=t.length)return null;const o=t[e+1].trim();if(!/^\|?[\s:]*-+[\s:]*(\|[\s:]*-+[\s:]*)+\|?$/.test(o))return null;const s=Ul(n),l=Ul(o).map(u=>{const d=u.trim(),f=d.startsWith(":"),h=d.endsWith(":");return f&&h?"center":h?"right":f?"left":null}),a=[];let c=e+2;for(;c<t.length;){const u=t[c].trim();if(!u||!u.startsWith("|")&&!u.includes(" | "))break;a.push(Ul(u)),c++}return{token:{type:"table",headers:s,alignments:l,rows:a},endIndex:c}}function s2(t,e){if(!t[e].trim().startsWith(">"))return null;const o=[];let s=e;for(;s<t.length&&t[s].trim().startsWith(">");)o.push(t[s].trim().replace(/^>\s?/,"")),s++;return{token:{type:"blockquote",content:o.join(`
|
|
169
|
+
`)},endIndex:s}}function i2(t,e){if(!t[e].trim().match(/^[-*+]\s+\[([ xX])\]\s+(.*)$/))return null;const s=[];let i=e;for(;i<t.length;){const l=t[i].trim(),a=l.match(/^[-*+]\s+\[([ xX])\]\s+(.*)$/);if(a)s.push({checked:a[1].toLowerCase()==="x",content:a[2]}),i++;else if(l===""){i++;const c=t.slice(i).find(u=>u.trim()!=="");if(!c||!/^[-*+]\s+\[([ xX])\]/.test(c.trim()))break}else break}return{token:{type:"task_list",items:s},endIndex:i}}function l2(t,e){var l;const n=t[e].trim();if(!n||n.startsWith(":")||/^[-*+#>\d]/.test(n)||e+1>=t.length||!t[e+1].trim().startsWith(": "))return null;const s=[];let i=e;for(;i<t.length;){const a=t[i].trim();if(!a){if(i++,i<t.length&&t[i].trim()&&!t[i].trim().startsWith(":")){const c=(l=t[i+1])==null?void 0:l.trim();if(c!=null&&c.startsWith(": "))continue}break}if(a.startsWith(": ")){s.length>0&&s[s.length-1].definitions.push(a.slice(2)),i++;continue}if(!a.startsWith(":")&&i+1<t.length&&t[i+1].trim().startsWith(": ")){s.push({term:a,definitions:[]}),i++;continue}break}return s.length===0||!s.some(a=>a.definitions.length>0)?null:{token:{type:"dl",items:s},endIndex:i}}function a2(t,e){const n=t.trim();return/^(-{3,}|\*{3,}|_{3,})$/.test(n)?{token:{type:"hr"},endIndex:e+1}:null}function c2(t){return t.startsWith("#")||t.startsWith("```")||t.startsWith(">")||/^[-*+]\s+/.test(t)||/^\d+\.\s+/.test(t)||/^(-{3,}|\*{3,}|_{3,})$/.test(t)}function u2(t,e){const n=[];let o=e;for(;o<t.length;){const s=t[o],i=s.trim();if(!i){o++;break}if(c2(i))break;n.push(s),o++}return n.length===0?null:{token:{type:"paragraph",content:n.join(`
|
|
170
|
+
`)},endIndex:o}}function $s(t){const e=[],n=t.split(`
|
|
171
|
+
`),o=Jw(n);let s=0;for(;s<o.length;){const i=o[s],l=i.trim();if(!l){s++;continue}let a;if(a=e2(o,s),a){e.push(a.token),s=a.endIndex;continue}if(a=n2(i,s),a){e.push(a.token),s=a.endIndex;continue}if(a=o2(o,s),a){e.push(a.token),s=a.endIndex;continue}if(a=a2(i,s),a){e.push(a.token),s=a.endIndex;continue}if(a=s2(o,s),a){e.push(a.token),s=a.endIndex;continue}if(a=i2(o,s),a){e.push(a.token),s=a.endIndex;continue}if(/^[-*+]\s+/.test(l)||/^\d+\.\s+/.test(l)){const c=Zd(o,s,Rl(i));e.push(...c.tokens),s=c.endIndex;continue}if(a=t2(o,s),a){e.push(a.token),s=a.endIndex;continue}if(a=r2(o,s),a){e.push(a.token),s=a.endIndex;continue}if(a=l2(o,s),a){e.push(a.token),s=a.endIndex;continue}if(a=u2(o,s),a){e.push(a.token),s=a.endIndex;continue}s++}return e}function Yd(t,e,n){return t.map(o=>{let s=ht(o.content,e);return o.children&&o.children.length>0&&(s+=n(o.children,e)),`<li>${s}</li>`}).join("")}function d2(t,e,n){return`<ul>${Yd(t.items,e,n)}</ul>`}function f2(t,e,n){const o=Yd(t.items,e,n);return`<ol${t.start!==1?` start="${t.start}"`:""}>${o}</ol>`}function h2(t,e){return`<ul class="task-list">${t.items.map(o=>`<li class="task-list-item">${o.checked?'<input type="checkbox" checked disabled />':'<input type="checkbox" disabled />'} ${ht(o.content,e)}</li>`).join("")}</ul>`}function Qd(t){return t?` style="text-align: ${t}"`:""}function m2(t,e){const n=t.headers.map((s,i)=>`<th${Qd(t.alignments[i])}>${ht(s,e)}</th>`).join(""),o=t.rows.map(s=>`<tr>${s.map((l,a)=>`<td${Qd(t.alignments[a])}>${ht(l,e)}</td>`).join("")}</tr>`).join("");return`<table><thead><tr>${n}</tr></thead><tbody>${o}</tbody></table>`}function pr(t,e){const n=[];for(const o of t)switch(o.type){case"heading":{const s=ht(o.content,e);n.push(`<h${o.level}>${s}</h${o.level}>`);break}case"code_block":{const s=go(o.content),i=o.language?` class="language-${go(o.language)}"`:"";n.push(`<pre><code${i}>${s}</code></pre>`);break}case"blockquote":{const s=$s(o.content),i=pr(s,e);n.push(`<blockquote>${i}</blockquote>`);break}case"ul":{n.push(d2(o,e,pr));break}case"ol":{n.push(f2(o,e,pr));break}case"task_list":{n.push(h2(o,e));break}case"table":{n.push(m2(o,e));break}case"dl":{let s="<dl>";for(const i of o.items){s+=`<dt>${ht(i.term,e)}</dt>`;for(const l of i.definitions)s+=`<dd>${ht(l,e)}</dd>`}s+="</dl>",n.push(s);break}case"hr":{n.push("<hr />");break}case"paragraph":{const i=ht(o.content,e).replace(/\n/g,"<br />");n.push(`<p>${i}</p>`);break}}return n.join(`
|
|
172
|
+
`)}function p2(t,e){const n=Object.entries(t).sort((s,i)=>s[1].index-i[1].index);let o='<section class="footnotes"><hr /><ol class="footnote-list">';for(const[s,i]of n)o+=`<li id="fn-${s}" class="footnote-item">`,o+=ht(i.content,e),o+=` <a href="#fnref-${s}" class="footnote-backref">↩</a>`,o+="</li>";return o+="</ol></section>",o}function zl(t,e){if(!t)return"";const n=(e==null?void 0:e.sanitize)??!0,o=(e==null?void 0:e.preserveState)??!1;o||Pl();const s=$s(t);let i=pr(s,n);const l=Ns();return!o&&Object.keys(l).length>0&&(i+=p2(l,n)),i}const _2={class:"dx-markdown-content"},g2={key:1,class:"dx-markdown-code-block"},b2=["innerHTML"],y2=["innerHTML"],w2={key:3},k2=["innerHTML"],x2={key:0},C2=["innerHTML"],S2=["start"],E2=["innerHTML"],T2=["start"],B2=["innerHTML"],N2={key:0},$2=["innerHTML"],I2=["start"],A2=["innerHTML"],L2={key:5,class:"task-list"},F2=["checked"],M2=["innerHTML"],O2={key:6},D2=["innerHTML"],v2=["innerHTML"],V2={key:7},P2=["innerHTML"],R2=["innerHTML"],U2={key:8},z2=["innerHTML"],H2={key:0,class:"footnotes"},q2={class:"footnote-list"},W2=["id"],j2=["innerHTML"],G2=["href"],Xd=r.defineComponent({__name:"MarkdownContent",props:{content:{default:""},defaultCodeFormat:{}},setup(t){const e=t,n=r.reactive({}),o=r.reactive({}),s=r.computed(()=>e.content?(Pl(),$s(e.content)):[]),i=r.computed(()=>(s.value,Ns())),l=r.computed(()=>Object.keys(i.value).length>0),a=r.computed(()=>Object.entries(i.value).sort((_,b)=>_[1].index-b[1].index).map(([_,b])=>({id:_,content:b.content,index:b.index})));function c(_){if(!_)return!1;const b=_.toLowerCase();return b==="json"||b==="yaml"}function u(_,b){if(n[_])return n[_];const y=b==null?void 0:b.toLowerCase();return e.defaultCodeFormat&&(y==="json"||y==="yaml")?e.defaultCodeFormat:y||"text"}function d(_,b,y){const w=u(_,y);if(w===y||!c(y))return b;try{let k;if(y==="json"?k=JSON.parse(b):y==="yaml"&&(k=hr(b)),k!==void 0){if(w==="json")return JSON.stringify(k,null,2);if(w==="yaml")return xs(k)}}catch{}return b}function f(_,b){var S;const y=s.value[_];if((y==null?void 0:y.type)!=="code_block")return;const w=((S=y.language)==null?void 0:S.toLowerCase())||"json",k=u(_,w);if(k!==b)try{const C=o[_]||d(_,y.content,w);let x;k==="json"?x=JSON.parse(C):x=hr(C),b==="json"?o[_]=JSON.stringify(x,null,2):o[_]=xs(x),n[_]=b}catch{n[_]=b}}function h(_,b,y){const w=u(_,y),k=(y==null?void 0:y.toLowerCase())||"text",S=o[_]||d(_,b,k);switch(w){case"json":return Il(S);case"yaml":return Al(S);default:return S.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}}function m(_){return ht(_,!0)}function g(_){let b=ht(_.content,!0);if(_.children&&_.children.length>0){for(const y of _.children)if(y.type==="ul"){const w=y.items.map(k=>`<li>${g(k)}</li>`).join("");b+=`<ul>${w}</ul>`}else if(y.type==="ol"){const w=y.items.map(S=>`<li>${g(S)}</li>`).join(""),k=y.start!==1?` start="${y.start}"`:"";b+=`<ol${k}>${w}</ol>`}}return b}function p(_){return zl(_,{preserveState:!0})}return(_,b)=>(r.openBlock(),r.createElementBlock("div",_2,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,(y,w)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:w},[y.type==="heading"?(r.openBlock(),r.createBlock(r.resolveDynamicComponent("h"+y.level),{key:0,innerHTML:m(y.content)},null,8,["innerHTML"])):y.type==="code_block"?(r.openBlock(),r.createElementBlock("div",g2,[c(y.language)?(r.openBlock(),r.createBlock(mr,{key:0,format:u(w,y.language),"available-formats":["json","yaml"],toggleable:!0,onChange:k=>f(w,k)},null,8,["format","onChange"])):y.language?(r.openBlock(),r.createBlock(mr,{key:1,format:y.language,"available-formats":[],toggleable:!1},null,8,["format"])):r.createCommentVNode("",!0),r.createElementVNode("pre",null,[r.createElementVNode("code",{class:r.normalizeClass("language-"+u(w,y.language)),innerHTML:h(w,y.content,y.language)},null,10,b2)])])):y.type==="blockquote"?(r.openBlock(),r.createElementBlock("blockquote",{key:2,innerHTML:p(y.content)},null,8,y2)):y.type==="ul"?(r.openBlock(),r.createElementBlock("ul",w2,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(y.items,(k,S)=>(r.openBlock(),r.createElementBlock("li",{key:S},[r.createElementVNode("span",{innerHTML:m(k.content)},null,8,k2),k.children&&k.children.length>0?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(k.children,(C,x)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:"child-"+x},[C.type==="ul"?(r.openBlock(),r.createElementBlock("ul",x2,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(C.items,(T,B)=>(r.openBlock(),r.createElementBlock("li",{key:B,innerHTML:g(T)},null,8,C2))),128))])):C.type==="ol"?(r.openBlock(),r.createElementBlock("ol",{key:1,start:C.start},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(C.items,(T,B)=>(r.openBlock(),r.createElementBlock("li",{key:B,innerHTML:g(T)},null,8,E2))),128))],8,S2)):r.createCommentVNode("",!0)],64))),128)):r.createCommentVNode("",!0)]))),128))])):y.type==="ol"?(r.openBlock(),r.createElementBlock("ol",{key:4,start:y.start},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(y.items,(k,S)=>(r.openBlock(),r.createElementBlock("li",{key:S},[r.createElementVNode("span",{innerHTML:m(k.content)},null,8,B2),k.children&&k.children.length>0?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(k.children,(C,x)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:"child-"+x},[C.type==="ul"?(r.openBlock(),r.createElementBlock("ul",N2,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(C.items,(T,B)=>(r.openBlock(),r.createElementBlock("li",{key:B,innerHTML:g(T)},null,8,$2))),128))])):C.type==="ol"?(r.openBlock(),r.createElementBlock("ol",{key:1,start:C.start},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(C.items,(T,B)=>(r.openBlock(),r.createElementBlock("li",{key:B,innerHTML:g(T)},null,8,A2))),128))],8,I2)):r.createCommentVNode("",!0)],64))),128)):r.createCommentVNode("",!0)]))),128))],8,T2)):y.type==="task_list"?(r.openBlock(),r.createElementBlock("ul",L2,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(y.items,(k,S)=>(r.openBlock(),r.createElementBlock("li",{key:S,class:"task-list-item"},[r.createElementVNode("input",{type:"checkbox",checked:k.checked,disabled:""},null,8,F2),r.createElementVNode("span",{innerHTML:m(k.content)},null,8,M2)]))),128))])):y.type==="table"?(r.openBlock(),r.createElementBlock("table",O2,[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(y.headers,(k,S)=>(r.openBlock(),r.createElementBlock("th",{key:S,style:r.normalizeStyle(y.alignments[S]?{textAlign:y.alignments[S]}:{}),innerHTML:m(k)},null,12,D2))),128))])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(y.rows,(k,S)=>(r.openBlock(),r.createElementBlock("tr",{key:S},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(k,(C,x)=>(r.openBlock(),r.createElementBlock("td",{key:x,style:r.normalizeStyle(y.alignments[x]?{textAlign:y.alignments[x]}:{}),innerHTML:m(C)},null,12,v2))),128))]))),128))])])):y.type==="dl"?(r.openBlock(),r.createElementBlock("dl",V2,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(y.items,(k,S)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:S},[r.createElementVNode("dt",{innerHTML:m(k.term)},null,8,P2),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(k.definitions,(C,x)=>(r.openBlock(),r.createElementBlock("dd",{key:"def-"+x,innerHTML:m(C)},null,8,R2))),128))],64))),128))])):y.type==="hr"?(r.openBlock(),r.createElementBlock("hr",U2)):y.type==="paragraph"?(r.openBlock(),r.createElementBlock("p",{key:9,innerHTML:m(y.content).replace(/\n/g,"<br />")},null,8,z2)):r.createCommentVNode("",!0)],64))),128)),l.value?(r.openBlock(),r.createElementBlock("section",H2,[b[0]||(b[0]=r.createElementVNode("hr",null,null,-1)),r.createElementVNode("ol",q2,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.value,y=>(r.openBlock(),r.createElementBlock("li",{key:y.id,id:"fn-"+y.id,class:"footnote-item"},[r.createElementVNode("span",{innerHTML:m(y.content)},null,8,j2),r.createElementVNode("a",{href:"#fnref-"+y.id,class:"footnote-backref"},"↩",8,G2)],8,W2))),128))])])):r.createCommentVNode("",!0)]))}}),K2=["innerHTML"],Is=r.defineComponent({__name:"CodeViewer",props:{modelValue:{default:null},format:{default:"yaml"},label:{default:""},editorClass:{default:""},canEdit:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},collapsible:{type:Boolean,default:!1},defaultCollapsed:{type:Boolean,default:!0},defaultCodeFormat:{},allowAnyLanguage:{type:Boolean}},emits:["update:modelValue","update:format","update:editable","exit","delete"],setup(t,{expose:e,emit:n}){const o=t,s=n,i=Ld({initialFormat:o.format,initialValue:o.modelValue}),l=r.ref(o.format),a=r.ref(null),c=r.ref(null),u=r.ref(o.collapsible&&o.defaultCollapsed);r.watch(()=>o.defaultCollapsed,_=>{o.collapsible&&(u.value=_)});function d(){u.value=!u.value}const f=Pd({codeRef:a,codeFormat:i,currentFormat:l,canEdit:r.toRef(o,"canEdit"),editable:r.toRef(o,"editable"),onEmitModelValue:_=>s("update:modelValue",_),onEmitEditable:_=>s("update:editable",_),onEmitFormat:_=>m(_),onExit:()=>s("exit"),onDelete:()=>s("delete"),onOpenLanguageSearch:()=>{var _;return(_=c.value)==null?void 0:_.openSearchPanel()}});r.watch(l,_=>{i.setFormat(_),f.updateEditingContentOnFormatChange()}),r.watch(()=>o.format,_=>{l.value=_}),r.watch(()=>o.modelValue,()=>{i.setValue(o.modelValue),f.syncEditingContentFromValue()}),r.watch(()=>o.editable,_=>{f.syncEditableFromProp(_)});const{collapsedPreview:h}=vd({modelValue:r.toRef(o,"modelValue"),format:l,displayContent:f.displayContent,codeFormat:i});function m(_){l.value=_,s("update:format",_)}const g=r.computed(()=>typeof o.modelValue=="string"?o.modelValue:f.displayContent.value),p=r.computed(()=>f.isValid.value);return e({isValid:p}),(_,b)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["dx-code-viewer group flex flex-col",{"is-collapsed":u.value}])},[_.label?(r.openBlock(),r.createBlock(Et,{key:0,class:"mb-2 text-sm flex-shrink-0",label:_.label},null,8,["label"])):r.createCommentVNode("",!0),_.collapsible&&u.value?(r.openBlock(),r.createBlock(Rd,{key:1,preview:r.unref(h),format:l.value,"available-formats":l.value==="json"||l.value==="yaml"?["json","yaml"]:l.value==="text"||l.value==="markdown"?["text","markdown"]:[],"allow-any-language":_.allowAnyLanguage,onExpand:d,onFormatChange:m},null,8,["preview","format","available-formats","allow-any-language"])):(r.openBlock(),r.createElementBlock("div",{key:2,class:"code-wrapper relative flex flex-col flex-1 min-h-0",tabindex:"0",onKeydown:b[4]||(b[4]=(...y)=>r.unref(f).onKeyDown&&r.unref(f).onKeyDown(...y))},[r.createVNode(mr,{ref_key:"languageBadgeRef",ref:c,format:l.value,"available-formats":l.value==="json"||l.value==="yaml"?["json","yaml"]:l.value==="text"||l.value==="markdown"?["text","markdown"]:[],toggleable:!0,"allow-any-language":_.allowAnyLanguage,onClick:b[0]||(b[0]=r.withModifiers(()=>{},["stop"])),onChange:m},null,8,["format","available-formats","allow-any-language"]),_.collapsible?(r.openBlock(),r.createElementBlock("div",{key:0,class:"collapse-toggle absolute top-0 left-0 p-1 cursor-pointer z-10 text-gray-500 hover:text-gray-300",onClick:d},[r.createVNode(r.unref($g),{class:"w-3 h-3"})])):r.createCommentVNode("",!0),_.collapsible?(r.openBlock(),r.createElementBlock("div",{key:1,class:"collapse-header",onClick:d})):r.createCommentVNode("",!0),!r.unref(f).isEditing.value&&l.value!=="markdown"?(r.openBlock(),r.createElementBlock("pre",{key:2,class:r.normalizeClass(["code-content dx-scrollbar flex-1 min-h-0",[_.editorClass,{"is-collapsible":_.collapsible}]])},[r.createElementVNode("code",{class:r.normalizeClass("language-"+l.value),innerHTML:r.unref(f).highlightedContent.value},null,10,K2)],2)):l.value==="markdown"&&!r.unref(f).isEditing.value?(r.openBlock(),r.createBlock(Xd,{key:3,content:g.value,"default-code-format":_.defaultCodeFormat,class:r.normalizeClass(["code-content dx-scrollbar flex-1 min-h-0",[_.editorClass,{"is-collapsible":_.collapsible}]])},null,8,["content","default-code-format","class"])):(r.openBlock(),r.createElementBlock("pre",{key:4,ref_key:"codeRef",ref:a,class:r.normalizeClass(["code-content dx-scrollbar flex-1 min-h-0 is-editable",[_.editorClass,"language-"+l.value,{"is-collapsible":_.collapsible}]]),contenteditable:"true",onInput:b[1]||(b[1]=(...y)=>r.unref(f).onContentEditableInput&&r.unref(f).onContentEditableInput(...y)),onBlur:b[2]||(b[2]=(...y)=>r.unref(f).onContentEditableBlur&&r.unref(f).onContentEditableBlur(...y)),onKeydown:b[3]||(b[3]=(...y)=>r.unref(f).onKeyDown&&r.unref(f).onKeyDown(...y))},null,34)),r.createVNode(Ud,{"char-count":r.unref(f).charCount.value,"validation-error":r.unref(f).validationError.value,"can-edit":_.canEdit&&l.value!=="markdown","is-editing":r.unref(f).isEditing.value,onToggleEdit:r.unref(f).toggleEdit},null,8,["char-count","validation-error","can-edit","is-editing","onToggleEdit"])],32))],2))}}),Z2={key:0,class:"context-menu-divider"},Y2=["onMouseenter"],Q2=["disabled","onClick"],X2={class:"item-label"},J2={key:0,class:"item-shortcut"},ek={key:1,class:"item-chevron"},tk=["data-item-id"],nk={key:0,class:"context-menu-divider"},ok=["disabled","onClick"],rk={class:"item-label"},sk={key:0,class:"item-shortcut"},Jd=r.defineComponent({__name:"ContextMenu",props:{position:{},items:{}},emits:["close","action"],setup(t,{emit:e}){const n=t,o=e,s=r.ref(null),i=r.ref(null),l=r.ref(!1);let a=null;const c=r.computed(()=>{let w=n.position.y,k=n.position.x;return w+400>window.innerHeight-10&&(w=Math.max(10,n.position.y-400)),k<10&&(k=10),k+320>window.innerWidth-10&&(k=window.innerWidth-320-10),l.value=k+320+320>window.innerWidth-10,{top:`${w}px`,left:`${k}px`}});function u(_,b){var y;a&&(clearTimeout(a),a=null),(y=_.children)!=null&&y.length?a=setTimeout(()=>{i.value=_.id},100):i.value=null}function d(){a&&(clearTimeout(a),a=null),a=setTimeout(()=>{i.value=null},150)}function f(){a&&(clearTimeout(a),a=null)}function h(){a=setTimeout(()=>{i.value=null},150)}function m(_){var b;if(!_.disabled){if((b=_.children)!=null&&b.length){i.value=i.value===_.id?null:_.id;return}_.action&&(o("action",_),_.action()),o("close")}}function g(){o("close")}function p(_){_.key==="Escape"&&g()}return r.onMounted(()=>{document.addEventListener("keydown",p)}),r.onUnmounted(()=>{document.removeEventListener("keydown",p),a&&clearTimeout(a)}),(_,b)=>(r.openBlock(),r.createElementBlock("div",{class:"dx-context-menu-overlay",onClick:r.withModifiers(g,["self"]),onKeydown:r.withKeys(g,["escape"])},[r.createElementVNode("div",{ref_key:"menuRef",ref:s,class:"dx-context-menu",style:r.normalizeStyle(c.value)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(_.items,(y,w)=>{var k,S,C;return r.openBlock(),r.createElementBlock(r.Fragment,{key:y.id},[y.divider?(r.openBlock(),r.createElementBlock("div",Z2)):(r.openBlock(),r.createElementBlock("div",{key:1,class:"context-menu-item-wrapper",onMouseenter:x=>u(y),onMouseleave:d},[r.createElementVNode("button",{class:r.normalizeClass(["context-menu-item",{disabled:y.disabled,"has-children":(k=y.children)==null?void 0:k.length}]),type:"button",disabled:y.disabled,onClick:x=>m(y)},[r.createElementVNode("span",X2,r.toDisplayString(y.label),1),y.shortcut&&!y.children?(r.openBlock(),r.createElementBlock("span",J2,r.toDisplayString(y.shortcut),1)):r.createCommentVNode("",!0),(S=y.children)!=null&&S.length?(r.openBlock(),r.createElementBlock("span",ek,"▸")):r.createCommentVNode("",!0)],10,Q2),(C=y.children)!=null&&C.length&&i.value===y.id?(r.openBlock(),r.createElementBlock("div",{key:0,ref_for:!0,ref:"submenuRefs",class:r.normalizeClass(["dx-context-submenu",{"open-left":l.value}]),"data-item-id":y.id,onMouseenter:f,onMouseleave:h},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(y.children,x=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:x.id},[x.divider?(r.openBlock(),r.createElementBlock("div",nk)):(r.openBlock(),r.createElementBlock("button",{key:1,class:r.normalizeClass(["context-menu-item",{disabled:x.disabled}]),type:"button",disabled:x.disabled,onClick:T=>m(x)},[r.createElementVNode("span",rk,r.toDisplayString(x.label),1),x.shortcut?(r.openBlock(),r.createElementBlock("span",sk,r.toDisplayString(x.shortcut),1)):r.createCommentVNode("",!0)],10,ok))],64))),128))],42,tk)):r.createCommentVNode("",!0)],40,Y2))],64)}),128))],4)],32))}}),ik={class:"dx-hotkey-help-popover"},lk={class:"popover-header"},ak={class:"popover-content"},ck={class:"hotkey-groups-grid"},uk={class:"hotkey-list"},dk={class:"hotkey-description"},fk={class:"hotkey-key"},ef=r.defineComponent({__name:"HotkeyHelpPopover",props:{hotkeys:{}},emits:["close"],setup(t){const e=r.ref(null);r.onMounted(()=>{var a;(a=e.value)==null||a.focus()});const n={headings:"Headings",formatting:"Formatting",lists:"Lists",blocks:"Blocks",tables:"Tables",other:"Other"},o=["headings","formatting","lists","blocks","tables","other"],s=t,i=r.computed(()=>{const a=new Map;for(const c of o)a.set(c,[]);for(const c of s.hotkeys){const u=a.get(c.group);u&&u.push(c)}return o.filter(c=>{var u;return(((u=a.get(c))==null?void 0:u.length)||0)>0}).map(c=>({name:c,label:n[c],hotkeys:a.get(c)||[]}))});function l(a){return a.split("+").map(c=>{switch(c.toLowerCase()){case"ctrl":case"control":return"Ctrl";case"shift":return"Shift";case"alt":case"option":return"Alt";case"meta":case"cmd":case"command":return"Cmd";default:return c.toUpperCase()}}).join(" + ")}return(a,c)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"overlayRef",ref:e,class:"dx-hotkey-help-overlay",tabindex:"-1",onClick:c[1]||(c[1]=r.withModifiers(u=>a.$emit("close"),["self"])),onKeydown:c[2]||(c[2]=r.withKeys(u=>a.$emit("close"),["escape"]))},[r.createElementVNode("div",ik,[r.createElementVNode("div",lk,[c[3]||(c[3]=r.createElementVNode("h3",null,"Keyboard Shortcuts",-1)),r.createElementVNode("button",{class:"close-btn",type:"button","aria-label":"Close",onClick:c[0]||(c[0]=u=>a.$emit("close"))},[r.createVNode(r.unref(ts),{class:"w-4 h-4"})])]),r.createElementVNode("div",ak,[r.createElementVNode("div",ck,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value,u=>(r.openBlock(),r.createElementBlock("div",{key:u.name,class:"hotkey-group"},[r.createElementVNode("h4",null,r.toDisplayString(u.label),1),r.createElementVNode("div",uk,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.hotkeys,d=>(r.openBlock(),r.createElementBlock("div",{key:d.key,class:"hotkey-item"},[r.createElementVNode("span",dk,r.toDisplayString(d.description),1),r.createElementVNode("kbd",fk,r.toDisplayString(l(d.key)),1)]))),128))])]))),128))])])])],544))}}),hk=["title"],mk={class:"type-icon"},pk=["onMousedown"],_k={class:"option-icon"},gk={class:"option-label"},bk={class:"option-shortcut"},tf=r.defineComponent({__name:"LineTypeMenu",props:{currentType:{}},emits:["change"],setup(t,{emit:e}){const n=[{value:"paragraph",label:"Paragraph",icon:"¶",shortcut:"Ctrl+0"},{value:"h1",label:"Heading 1",icon:"H1",shortcut:"Ctrl+1"},{value:"h2",label:"Heading 2",icon:"H2",shortcut:"Ctrl+2"},{value:"h3",label:"Heading 3",icon:"H3",shortcut:"Ctrl+3"},{value:"h4",label:"Heading 4",icon:"H4",shortcut:"Ctrl+4"},{value:"h5",label:"Heading 5",icon:"H5",shortcut:"Ctrl+5"},{value:"h6",label:"Heading 6",icon:"H6",shortcut:"Ctrl+6"},{value:"ul",label:"Bullet List",icon:"•",shortcut:"Ctrl+Shift+["},{value:"ol",label:"Numbered List",icon:"1.",shortcut:"Ctrl+Shift+]"},{value:"code",label:"Code Block",icon:"</>",shortcut:"Ctrl+Shift+K"},{value:"blockquote",label:"Blockquote",icon:">",shortcut:"Ctrl+Shift+Q"}],o=t,s=e,i=r.ref(!1),l=r.ref(null),a=r.ref(null),c=r.ref(!1),u=r.computed(()=>n.find(b=>b.value===o.currentType)||n[0]),d=r.computed(()=>u.value.label),f=r.computed(()=>u.value.icon);function h(){i.value=!i.value}function m(b){s("change",b),i.value=!1}function g(){if(!a.value||!l.value)return;const b=l.value.closest(".dx-markdown-editor")||l.value.closest("[class*='editor']");if(!b){c.value=!1;return}const y=b.getBoundingClientRect();a.value.getBoundingClientRect().bottom>y.bottom?c.value=!0:c.value=!1}function p(b){const y=b.target;l.value&&!l.value.contains(y)&&(i.value=!1)}function _(b){b.key==="Escape"&&(i.value=!1)}return r.watch(i,async b=>{b?(document.addEventListener("mousedown",p),document.addEventListener("keydown",_),await r.nextTick(),g()):(document.removeEventListener("mousedown",p),document.removeEventListener("keydown",_),c.value=!1)}),r.onUnmounted(()=>{document.removeEventListener("mousedown",p),document.removeEventListener("keydown",_)}),(b,y)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"menuRef",ref:l,class:r.normalizeClass(["dx-line-type-menu",{"is-open":i.value}])},[r.createElementVNode("button",{class:"line-type-trigger",title:d.value,type:"button",onMousedown:r.withModifiers(h,["prevent"])},[r.createElementVNode("span",mk,r.toDisplayString(f.value),1)],40,hk),i.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"dropdownRef",ref:a,class:r.normalizeClass(["line-type-dropdown",{"open-upward":c.value}])},[(r.openBlock(),r.createElementBlock(r.Fragment,null,r.renderList(n,w=>r.createElementVNode("button",{key:w.value,class:r.normalizeClass(["line-type-option",{active:w.value===b.currentType}]),type:"button",onMousedown:r.withModifiers(k=>m(w.value),["prevent"])},[r.createElementVNode("span",_k,r.toDisplayString(w.icon),1),r.createElementVNode("span",gk,r.toDisplayString(w.label),1),r.createElementVNode("span",bk,r.toDisplayString(w.shortcut),1)],42,pk)),64))],2)):r.createCommentVNode("",!0)],2))}}),yk={class:"popover-header"},wk={class:"popover-content"},kk={class:"input-group"},xk=["onKeydown"],Ck={key:0,class:"input-group"},Sk=["placeholder","onKeydown"],Ek={key:1,class:"edit-hint"},Tk={class:"popover-footer"},nf=r.defineComponent({__name:"LinkPopover",props:{position:{},existingUrl:{default:""},selectedText:{default:""}},emits:["submit","cancel"],setup(t,{emit:e}){const n=t,o=e,s=r.ref(null),i=r.ref(null),l=r.ref(n.existingUrl||""),a=r.ref(""),c=r.computed(()=>!!n.existingUrl),u=r.computed(()=>n.selectedText?n.selectedText:"Link text (optional)"),d=r.computed(()=>{let b=n.position.y+10,y=n.position.x-320/2;return b+200>window.innerHeight-10&&(b=n.position.y-200-10),y<10&&(y=10),y+320>window.innerWidth-10&&(y=window.innerWidth-320-10),{top:`${b}px`,left:`${y}px`}});function f(){const g=l.value.trim(),p=a.value.trim()||void 0;o("submit",g,p)}function h(){o("cancel")}function m(g){g.key==="Escape"&&h()}return r.onMounted(()=>{r.nextTick(()=>{var g,p;(g=i.value)==null||g.focus(),(p=i.value)==null||p.select()}),document.addEventListener("keydown",m)}),r.onUnmounted(()=>{document.removeEventListener("keydown",m)}),r.watch(()=>n.existingUrl,g=>{l.value=g||""}),(g,p)=>(r.openBlock(),r.createElementBlock("div",{class:"dx-link-popover-overlay",onClick:r.withModifiers(h,["self"]),onKeydown:r.withKeys(h,["escape"])},[r.createElementVNode("div",{ref_key:"popoverRef",ref:s,class:"dx-link-popover",style:r.normalizeStyle(d.value)},[r.createElementVNode("div",yk,[r.createElementVNode("h3",null,r.toDisplayString(c.value?"Edit Link":"Insert Link"),1),r.createElementVNode("button",{class:"close-btn",type:"button","aria-label":"Close",onClick:h},[r.createVNode(r.unref(ts),{class:"w-4 h-4"})])]),r.createElementVNode("div",wk,[r.createElementVNode("div",kk,[p[2]||(p[2]=r.createElementVNode("label",{for:"link-url"},"URL",-1)),r.withDirectives(r.createElementVNode("input",{id:"link-url",ref_key:"urlInputRef",ref:i,"onUpdate:modelValue":p[0]||(p[0]=_=>l.value=_),type:"text",placeholder:"https://example.com",onKeydown:[r.withKeys(r.withModifiers(f,["prevent"]),["enter"]),r.withKeys(h,["escape"])]},null,40,xk),[[r.vModelText,l.value]])]),c.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",Ck,[p[3]||(p[3]=r.createElementVNode("label",{for:"link-label"},"Label",-1)),r.withDirectives(r.createElementVNode("input",{id:"link-label","onUpdate:modelValue":p[1]||(p[1]=_=>a.value=_),type:"text",placeholder:u.value,onKeydown:[r.withKeys(r.withModifiers(f,["prevent"]),["enter"]),r.withKeys(h,["escape"])]},null,40,Sk),[[r.vModelText,a.value]])])),c.value?(r.openBlock(),r.createElementBlock("div",Ek," Enter an empty URL to remove the link. ")):r.createCommentVNode("",!0)]),r.createElementVNode("div",Tk,[r.createElementVNode("button",{type:"button",class:"btn-cancel",onClick:h}," Cancel "),r.createElementVNode("button",{type:"button",class:"btn-insert",onClick:f},r.toDisplayString(c.value?"Update":"Insert"),1)])],4)],32))}});function of(t){const{editor:e,readonly:n}=t,o=r.ref(!1),s=r.ref({x:0,y:0}),i=r.ref([]);function l(){return e.tables.isInTable()?"table":e.codeBlocks.isInCodeBlock()?"code":e.lists.getCurrentListType()?"list":"text"}function a(d){const f=[];return d==="code"?(f.push({id:"code-block",label:"Toggle Code Block",shortcut:"Ctrl+Shift+K",action:()=>e.codeBlocks.toggleCodeBlock()}),f):d==="table"?(f.push({id:"format",label:"Format",children:[{id:"bold",label:"Bold",shortcut:"Ctrl+B",action:()=>e.inlineFormatting.toggleBold()},{id:"italic",label:"Italic",shortcut:"Ctrl+I",action:()=>e.inlineFormatting.toggleItalic()},{id:"strikethrough",label:"Strikethrough",shortcut:"Ctrl+Shift+S",action:()=>e.inlineFormatting.toggleStrikethrough()},{id:"inline-code",label:"Inline Code",shortcut:"Ctrl+E",action:()=>e.inlineFormatting.toggleInlineCode()},{id:"link",label:"Link",shortcut:"Ctrl+K",action:()=>e.links.insertLink()}]}),f.push({id:"table-format-divider",label:"",divider:!0}),f.push({id:"insert-row-above",label:"Insert Row Above",shortcut:"Ctrl+Alt+Shift+Up",action:()=>e.tables.insertRowAbove()}),f.push({id:"insert-row-below",label:"Insert Row Below",shortcut:"Ctrl+Alt+Shift+Down",action:()=>e.tables.insertRowBelow()}),f.push({id:"insert-col-left",label:"Insert Column Left",shortcut:"Ctrl+Alt+Shift+Left",action:()=>e.tables.insertColumnLeft()}),f.push({id:"insert-col-right",label:"Insert Column Right",shortcut:"Ctrl+Alt+Shift+Right",action:()=>e.tables.insertColumnRight()}),f.push({id:"table-divider-1",label:"",divider:!0}),f.push({id:"delete-row",label:"Delete Row",shortcut:"Ctrl+Alt+Backspace",action:()=>e.tables.deleteCurrentRow()}),f.push({id:"delete-col",label:"Delete Column",shortcut:"Ctrl+Shift+Backspace",action:()=>e.tables.deleteCurrentColumn()}),f.push({id:"delete-table",label:"Delete Table",action:()=>e.tables.deleteTable()}),f.push({id:"table-divider-2",label:"",divider:!0}),f.push({id:"alignment",label:"Alignment",children:[{id:"align-left",label:"Align Left",shortcut:"Ctrl+Alt+L",action:()=>e.tables.setColumnAlignmentLeft()},{id:"align-center",label:"Align Center",shortcut:"Ctrl+Alt+C",action:()=>e.tables.setColumnAlignmentCenter()},{id:"align-right",label:"Align Right",shortcut:"Ctrl+Alt+R",action:()=>e.tables.setColumnAlignmentRight()}]}),f):d==="list"?(f.push({id:"format",label:"Format",children:[{id:"bold",label:"Bold",shortcut:"Ctrl+B",action:()=>e.inlineFormatting.toggleBold()},{id:"italic",label:"Italic",shortcut:"Ctrl+I",action:()=>e.inlineFormatting.toggleItalic()},{id:"strikethrough",label:"Strikethrough",shortcut:"Ctrl+Shift+S",action:()=>e.inlineFormatting.toggleStrikethrough()},{id:"inline-code",label:"Inline Code",shortcut:"Ctrl+E",action:()=>e.inlineFormatting.toggleInlineCode()},{id:"link",label:"Link",shortcut:"Ctrl+K",action:()=>e.links.insertLink()}]}),f.push({id:"lists",label:"Lists",children:[{id:"bullet-list",label:"Bullet List",shortcut:"Ctrl+Shift+[",action:()=>e.lists.toggleUnorderedList()},{id:"numbered-list",label:"Numbered List",shortcut:"Ctrl+Shift+]",action:()=>e.lists.toggleOrderedList()}]}),f.push({id:"blocks",label:"Blocks",children:[{id:"blockquote",label:"Blockquote",shortcut:"Ctrl+Shift+Q",action:()=>e.blockquotes.toggleBlockquote()}]}),f):(f.push({id:"headings",label:"Headings",children:[{id:"paragraph",label:"Paragraph",shortcut:"Ctrl+0",action:()=>e.headings.setHeadingLevel(0)},{id:"h1",label:"Heading 1",shortcut:"Ctrl+1",action:()=>e.headings.setHeadingLevel(1)},{id:"h2",label:"Heading 2",shortcut:"Ctrl+2",action:()=>e.headings.setHeadingLevel(2)},{id:"h3",label:"Heading 3",shortcut:"Ctrl+3",action:()=>e.headings.setHeadingLevel(3)},{id:"h4",label:"Heading 4",shortcut:"Ctrl+4",action:()=>e.headings.setHeadingLevel(4)},{id:"h5",label:"Heading 5",shortcut:"Ctrl+5",action:()=>e.headings.setHeadingLevel(5)},{id:"h6",label:"Heading 6",shortcut:"Ctrl+6",action:()=>e.headings.setHeadingLevel(6)}]}),f.push({id:"format",label:"Format",children:[{id:"bold",label:"Bold",shortcut:"Ctrl+B",action:()=>e.inlineFormatting.toggleBold()},{id:"italic",label:"Italic",shortcut:"Ctrl+I",action:()=>e.inlineFormatting.toggleItalic()},{id:"strikethrough",label:"Strikethrough",shortcut:"Ctrl+Shift+S",action:()=>e.inlineFormatting.toggleStrikethrough()},{id:"inline-code",label:"Inline Code",shortcut:"Ctrl+E",action:()=>e.inlineFormatting.toggleInlineCode()},{id:"link",label:"Link",shortcut:"Ctrl+K",action:()=>e.links.insertLink()}]}),f.push({id:"lists",label:"Lists",children:[{id:"bullet-list",label:"Bullet List",shortcut:"Ctrl+Shift+[",action:()=>e.lists.toggleUnorderedList()},{id:"numbered-list",label:"Numbered List",shortcut:"Ctrl+Shift+]",action:()=>e.lists.toggleOrderedList()}]}),f.push({id:"blocks",label:"Blocks",children:[{id:"code-block",label:"Code Block",shortcut:"Ctrl+Shift+K",action:()=>e.codeBlocks.toggleCodeBlock()},{id:"blockquote",label:"Blockquote",shortcut:"Ctrl+Shift+Q",action:()=>e.blockquotes.toggleBlockquote()},{id:"insert-table",label:"Insert Table",shortcut:"Ctrl+Alt+Shift+T",action:()=>e.tables.insertTable()}]}),f)}function c(d){if(n!=null&&n.value)return;d.preventDefault();const f=l(),h=a(f);s.value={x:d.clientX,y:d.clientY},i.value=h,o.value=!0}function u(){o.value=!1}return{isVisible:o,position:s,items:i,show:c,hide:u}}function rf(t){const{contentRef:e,menuContainerRef:n,onSelectionChange:o}=t,s=r.ref(!1);let i=null;function l(u){const d=e.value;d&&d.contains(u.target)&&(s.value=!0,o==null||o())}function a(u){const d=e.value,f=n==null?void 0:n.value,h=u.relatedTarget;d&&!d.contains(h)&&(!f||!f.contains(h))&&(s.value=!1)}function c(u){i&&i!==u&&(i.removeEventListener("focusin",l),i.removeEventListener("focusout",a),i=null),u&&u!==i&&(u.addEventListener("focusin",l),u.addEventListener("focusout",a),i=u)}return r.watch(e,u=>{c(u)},{immediate:!0}),r.onMounted(()=>{o&&document.addEventListener("selectionchange",o)}),r.onUnmounted(()=>{o&&document.removeEventListener("selectionchange",o),c(null)}),{isEditorFocused:s}}const sf={paragraph:0,h1:1,h2:2,h3:3,h4:4,h5:5,h6:6},Bk=Object.fromEntries(Object.entries(sf).map(([t,e])=>[e,t]));function lf(t){const{contentRef:e,editor:n,isEditorFocused:o}=t,s=r.ref(0),i=r.ref(0),l=r.ref(null),a=r.ref(!1),c=r.computed(()=>{if(a.value)return"code";if(l.value)return l.value;const w=s.value;return Bk[w]??"paragraph"}),u=r.computed(()=>({top:`${i.value}px`,opacity:o.value?1:0,pointerEvents:o.value?"auto":"none"}));function d(){const w=window.getSelection();if(!w||w.rangeCount===0)return null;let k=w.anchorNode;for(;k&&k!==e.value;){if(k.nodeType===Node.ELEMENT_NODE){const S=k,C=S.tagName.toUpperCase();if(["P","H1","H2","H3","H4","H5","H6","DIV","BLOCKQUOTE","PRE","UL","OL","LI"].includes(C))return S}k=k.parentNode}return null}function f(){const w=e.value;if(!w)return;const k=d();if(!k){i.value=0;return}const S=w.getBoundingClientRect(),x=k.getBoundingClientRect().top-S.top+w.scrollTop;i.value=x}function h(){const w=n.headings.getCurrentHeadingLevel();s.value=w,l.value=n.lists.getCurrentListType(),a.value=n.codeBlocks.isInCodeBlock(),f()}function m(w){if(w==="code"){if(n.codeBlocks.isInCodeBlock())return;n.lists.getCurrentListType()&&n.lists.convertCurrentListItemToParagraph(),n.codeBlocks.toggleCodeBlock(),a.value=!0,l.value=null;return}if(w==="ul"){n.codeBlocks.isInCodeBlock()&&n.codeBlocks.toggleCodeBlock(),n.lists.toggleUnorderedList(),l.value=n.lists.getCurrentListType(),a.value=!1;return}if(w==="ol"){n.codeBlocks.isInCodeBlock()&&n.codeBlocks.toggleCodeBlock(),n.lists.toggleOrderedList(),l.value=n.lists.getCurrentListType(),a.value=!1;return}const k=sf[w];k!==void 0&&(n.codeBlocks.isInCodeBlock()&&n.codeBlocks.toggleCodeBlock(),n.lists.getCurrentListType()&&n.lists.convertCurrentListItemToParagraph(),k>0&&n.headings.setHeadingLevel(k),s.value=k,l.value=null,a.value=!1)}let g=null;function p(w){const k=e.value;k&&k.contains(w.target)&&f()}function _(w){g&&g!==w&&(g.removeEventListener("focusin",p),g.removeEventListener("scroll",f),g=null),w&&w!==g&&(w.addEventListener("focusin",p),w.addEventListener("scroll",f),g=w)}function b(){_(e.value),r.watch(e,w=>{_(w)},{immediate:!0}),document.addEventListener("selectionchange",h)}function y(){document.removeEventListener("selectionchange",h),_(null)}return{currentLineType:c,menuStyle:u,onLineTypeChange:m,updatePositionAndState:h,setupListeners:b,cleanupListeners:y}}function af(){const t=r.ref(!1),e=r.ref({x:0,y:0}),n=r.ref(void 0),o=r.ref(void 0);let s=null,i=null;function l(u){e.value=u.position,n.value=u.existingUrl,o.value=u.selectedText,s=u.onSubmit,i=u.onCancel,t.value=!0}function a(u,d){t.value=!1,s&&s(u,d),s=null,i=null}function c(){t.value=!1,i&&i(),s=null,i=null}return{isVisible:t,position:e,existingUrl:n,selectedText:o,show:l,submit:a,cancel:c}}function cf(){const t=r.ref(!1),e=r.ref({x:0,y:0});let n=null,o=null;function s(a){e.value=a.position,n=a.onSubmit,o=a.onCancel,t.value=!0}function i(a,c){t.value=!1,n&&n(a,c),n=null,o=null}function l(){t.value=!1,o&&o(),n=null,o=null}return{isVisible:t,position:e,show:s,submit:i,cancel:l}}function uf(t){const e=t.toLowerCase().split("+"),n={key:"",ctrl:!1,shift:!1,alt:!1,meta:!1};for(const o of e)switch(o){case"ctrl":case"control":n.ctrl=!0;break;case"shift":n.shift=!0;break;case"alt":case"option":n.alt=!0;break;case"meta":case"cmd":case"command":case"win":case"windows":n.meta=!0;break;default:n.key=o}return n}function df(t,e){let n=t.key.toLowerCase();n.startsWith("arrow")&&(n=n.replace("arrow",""));const o={">":".","<":",","?":"/","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0","{":"[","}":"]"};if(o[e.key]){if(n===e.key)return As(t,{...e,shift:!0});if(t.shiftKey&&n===o[e.key])return As(t,{...e,shift:!0})}if(o[n]&&o[n]===e.key)return As(t,e);if(/^[0-6]$/.test(e.key)){if(n!==e.key&&t.code!==`Digit${e.key}`&&t.code!==`Numpad${e.key}`)return!1}else if(n!==e.key)return!1;return As(t,e)}function As(t,e){const n=navigator.platform.toLowerCase().includes("mac");let o;e.ctrl?n?o=t.ctrlKey||t.metaKey:o=t.ctrlKey:e.meta?o=t.metaKey:o=!t.ctrlKey&&!t.metaKey;const s=e.shift===t.shiftKey,i=e.alt===t.altKey;return o&&s&&i}function ff(t){const{onShowHotkeyHelp:e}=t,n=r.ref(new Map),o=new Map;function s(c){const u=c.key.toLowerCase();n.value.set(u,c),o.set(u,uf(u))}function i(c){const u=c.toLowerCase();n.value.delete(u),o.delete(u)}function l(){return Array.from(n.value.values())}function a(c){if((c.ctrlKey||c.metaKey)&&(c.key==="?"||c.key==="/"))return c.preventDefault(),e(),!0;for(const[u,d]of n.value){const f=o.get(u);if(f&&df(c,f))return c.preventDefault(),d.action(),!0}return!1}return{registerHotkey:s,unregisterHotkey:i,handleKeyDown:a,getHotkeyDefinitions:l}}function hf(t){var a;const e=window.getSelection();if(!e||!e.rangeCount||!t)return 0;const n=e.getRangeAt(0),o=document.createRange();o.selectNodeContents(t),o.setEnd(n.startContainer,n.startOffset);let s=0;const i=document.createTreeWalker(o.commonAncestorContainer,NodeFilter.SHOW_TEXT);let l=i.nextNode();for(;l;){if(o.intersectsNode(l)){const c=document.createRange();if(c.selectNodeContents(l),o.compareBoundaryPoints(Range.END_TO_END,c)>=0)s+=((a=l.textContent)==null?void 0:a.length)||0;else{s+=n.startOffset;break}}l=i.nextNode()}return s}function mf(t,e){var a;if(!t)return;const n=window.getSelection();if(!n)return;let o=0;const s=document.createTreeWalker(t,NodeFilter.SHOW_TEXT);let i=s.nextNode();for(;i;){const c=((a=i.textContent)==null?void 0:a.length)||0;if(o+c>=e){const u=document.createRange();u.setStart(i,e-o),u.collapse(!0),n.removeAllRanges(),n.addRange(u);return}o+=c,i=s.nextNode()}const l=document.createRange();l.selectNodeContents(t),l.collapse(!1),n.removeAllRanges(),n.addRange(l)}function Nk(t,e){if(!t)return null;const n=["P","H1","H2","H3","H4","H5","H6","LI","BLOCKQUOTE","PRE","DIV"];let o=t;for(;o&&o!==e;){if(o.nodeType===Node.ELEMENT_NODE){const s=o;if(n.includes(s.tagName))return s}o=o.parentNode}return null}function Hl(t){const e=[],n=["P","H1","H2","H3","H4","H5","H6","UL","OL","BLOCKQUOTE","PRE","DIV","TABLE","HR"];for(const o of Array.from(t.children))n.includes(o.tagName)&&e.push(o);return e}function pf(t){function e(){if(!t.value)return null;const i=window.getSelection();if(!i||!i.rangeCount)return null;const l=i.getRangeAt(0);return Nk(l.startContainer,t.value)}function n(){if(!t.value)return-1;const i=e();return i?Hl(t.value).indexOf(i):-1}function o(){if(!t.value)return null;const i=window.getSelection();if(!i||!i.rangeCount)return null;const l=e();if(!l)return{blockIndex:-1,charOffset:hf(t.value)};const c=Hl(t.value).indexOf(l),u=hf(l);return{blockIndex:c,charOffset:u}}function s(i){if(!t.value)return;if(i.blockIndex===-1){mf(t.value,i.charOffset);return}const l=Hl(t.value);if(i.blockIndex>=0&&i.blockIndex<l.length){const a=l[i.blockIndex];mf(a,i.charOffset)}else{const a=document.createRange();a.selectNodeContents(t.value),a.collapse(!1);const c=window.getSelection();c==null||c.removeAllRanges(),c==null||c.addRange(a)}}return{saveCursorPosition:o,restoreCursorPosition:s,getCurrentBlock:e,getBlockIndex:n}}function $k(){return`cb-${crypto.randomUUID()}`}function Ik(t,e){var s;const n=document.createElement("div");n.innerHTML=t;const o=n.querySelectorAll("pre");for(const i of Array.from(o)){const l=i.querySelector("code");if(!l)continue;const a=l.textContent||"",c=l.className.match(/language-(\w+)/),u=c?c[1]:"",d=$k();e&&e(d,a,u);const f=document.createElement("div");f.className="code-block-wrapper",f.setAttribute("contenteditable","false"),f.setAttribute("data-code-block-id",d);const h=document.createElement("div");h.className="code-viewer-mount-point",h.setAttribute("data-content",a),h.setAttribute("data-language",u),f.appendChild(h),(s=i.parentNode)==null||s.replaceChild(f,i)}return n.innerHTML}function Ak(t,e){const n=document.createElement("div");return n.innerHTML=t,Ls(n,e)}function Ls(t,e){var o;const n=[];for(const s of Array.from(t.childNodes))if(s.nodeType===Node.TEXT_NODE)n.push(s.textContent||"");else if(s.nodeType===Node.ELEMENT_NODE){const i=s,l=i.tagName.toLowerCase(),a=i.getAttribute("data-code-block-id");if(a&&e){const c=e(a);if(c){const u=c.language||"",f=(c.content||"").replace(/\u200B/g,"");n.push(`\`\`\`${u}
|
|
173
|
+
${f}
|
|
174
|
+
\`\`\`
|
|
175
|
+
|
|
176
|
+
`);continue}}switch(l){case"h1":n.push(`# ${bo(i)}
|
|
177
|
+
|
|
178
|
+
`);break;case"h2":n.push(`## ${bo(i)}
|
|
179
|
+
|
|
180
|
+
`);break;case"h3":n.push(`### ${bo(i)}
|
|
181
|
+
|
|
182
|
+
`);break;case"h4":n.push(`#### ${bo(i)}
|
|
183
|
+
|
|
184
|
+
`);break;case"h5":n.push(`##### ${bo(i)}
|
|
185
|
+
|
|
186
|
+
`);break;case"h6":n.push(`###### ${bo(i)}
|
|
187
|
+
|
|
188
|
+
`);break;case"p":n.push(`${he(i)}
|
|
189
|
+
|
|
190
|
+
`);break;case"br":n.push(`
|
|
191
|
+
`);break;case"strong":case"b":n.push(`**${he(i)}**`);break;case"em":case"i":n.push(`*${he(i)}*`);break;case"code":((o=i.parentElement)==null?void 0:o.tagName.toLowerCase())!=="pre"?n.push(`\`${i.textContent||""}\``):n.push(i.textContent||"");break;case"pre":{const c=i.querySelector("code"),d=((c==null?void 0:c.textContent)||i.textContent||"").replace(/\u200B/g,""),f=c==null?void 0:c.className.match(/language-(\w+)/),h=f?f[1]:"";n.push(`\`\`\`${h}
|
|
192
|
+
${d}
|
|
193
|
+
\`\`\`
|
|
194
|
+
|
|
195
|
+
`);break}case"blockquote":{const u=Ls(i,e).trim().split(`
|
|
196
|
+
`).map(d=>`> ${d}`).join(`
|
|
197
|
+
`);n.push(`${u}
|
|
198
|
+
|
|
199
|
+
`);break}case"ul":n.push(Fs(i,"-"));break;case"ol":n.push(Fs(i,"1."));break;case"li":n.push(he(i));break;case"a":{const c=i.getAttribute("href")||"",u=he(i);n.push(`[${u}](${c})`);break}case"img":{const c=i.getAttribute("src")||"",u=i.getAttribute("alt")||"";n.push(``);break}case"hr":n.push(`---
|
|
200
|
+
|
|
201
|
+
`);break;case"del":case"s":n.push(`~~${he(i)}~~`);break;case"mark":n.push(`==${he(i)}==`);break;case"u":n.push(`<u>${he(i)}</u>`);break;case"sup":n.push(`^${he(i)}^`);break;case"sub":n.push(`~${he(i)}~`);break;case"div":{const c=he(i);c.trim()&&n.push(`${c}
|
|
202
|
+
|
|
203
|
+
`);break}case"span":n.push(Ls(i,e));break;case"table":n.push(Lk(i));break;default:n.push(Ls(i,e))}}return n.join("")}function he(t){const e=[];for(const n of Array.from(t.childNodes))if(n.nodeType===Node.TEXT_NODE)e.push(n.textContent||"");else if(n.nodeType===Node.ELEMENT_NODE){const o=n;switch(o.tagName.toLowerCase()){case"strong":case"b":e.push(`**${he(o)}**`);break;case"em":case"i":e.push(`*${he(o)}*`);break;case"code":e.push(`\`${o.textContent||""}\``);break;case"a":{const i=o.getAttribute("href")||"";e.push(`[${he(o)}](${i})`);break}case"img":{const i=o.getAttribute("src")||"",l=o.getAttribute("alt")||"";e.push(``);break}case"del":case"s":e.push(`~~${he(o)}~~`);break;case"mark":e.push(`==${he(o)}==`);break;case"u":e.push(`<u>${he(o)}</u>`);break;case"sup":e.push(`^${he(o)}^`);break;case"sub":e.push(`~${he(o)}~`);break;case"br":e.push(`
|
|
204
|
+
`);break;default:e.push(he(o))}}return e.join("")}function Fs(t,e){const n=[];let o=1;for(const s of Array.from(t.children))if(s.tagName.toLowerCase()==="li"){const i=e==="1."?`${o}. `:`${e} `,l=he(s),a=s.querySelector("ul"),c=s.querySelector("ol");if(a||c){const u=[];for(const d of Array.from(s.childNodes))if(d.nodeType===Node.TEXT_NODE)u.push(d.textContent||"");else if(d.nodeType===Node.ELEMENT_NODE){const f=d;f.tagName.toLowerCase()!=="ul"&&f.tagName.toLowerCase()!=="ol"&&u.push(he(f))}if(n.push(`${i}${u.join("").trim()}`),a){const d=Fs(a,"-").split(`
|
|
205
|
+
`).filter(Boolean);n.push(...d.map(f=>` ${f}`))}if(c){const d=Fs(c,"1.").split(`
|
|
206
|
+
`).filter(Boolean);n.push(...d.map(f=>` ${f}`))}}else n.push(`${i}${l}`);o++}return n.join(`
|
|
207
|
+
`)+`
|
|
208
|
+
|
|
209
|
+
`}function Lk(t){const e=[],n=[],o=t.querySelector("thead");if(o){const l=o.querySelector("tr");if(l){const a=[];for(const c of Array.from(l.querySelectorAll("th"))){a.push(he(c).trim());const u=c.getAttribute("style")||"";u.includes("text-align: center")?n.push(":---:"):u.includes("text-align: right")?n.push("---:"):n.push("---")}e.push(a)}}const s=t.querySelector("tbody")||t;for(const l of Array.from(s.querySelectorAll("tr"))){if(o&&l.parentElement===o)continue;const a=[];for(const c of Array.from(l.querySelectorAll("td, th")))a.push(he(c).trim());a.length>0&&e.push(a)}if(e.length===0)return"";const i=[];e.length>0&&(i.push(`| ${e[0].join(" | ")} |`),n.length>0?i.push(`| ${n.join(" | ")} |`):i.push(`| ${e[0].map(()=>"---").join(" | ")} |`));for(let l=1;l<e.length;l++)i.push(`| ${e[l].join(" | ")} |`);return i.join(`
|
|
210
|
+
`)+`
|
|
211
|
+
|
|
212
|
+
`}function bo(t){var e;return((e=t.textContent)==null?void 0:e.trim())||""}function _f(t){const{contentRef:e,onEmitValue:n,debounceMs:o=300,getCodeBlockById:s,registerCodeBlock:i}=t,l=r.ref(""),a=r.ref(!1);let c=null;function u(h){const m=zl(h);l.value=Ik(m,i)}function d(){if(!e.value)return;const h=e.value.innerHTML,g=Ak(h,s).replace(/\n{3,}/g,`
|
|
213
|
+
|
|
214
|
+
`).trim();a.value=!0,n(g)}function f(){c&&clearTimeout(c),c=setTimeout(()=>{d()},o)}return r.onUnmounted(()=>{c&&clearTimeout(c)}),{renderedHtml:l,isInternalUpdate:a,syncFromMarkdown:u,syncFromHtml:d,debouncedSyncFromHtml:f}}const Fk=["P","H1","H2","H3","H4","H5","H6","DIV"];function gf(t,e){if(!t)return null;let n=t;for(;n&&n!==e;){if(n.nodeType===Node.ELEMENT_NODE){const o=n;if(Fk.includes(o.tagName)||o.tagName==="BLOCKQUOTE")return o}n=n.parentNode}return null}function bf(t,e){if(!t)return null;let n=t;for(;n&&n!==e;){if(n.nodeType===Node.ELEMENT_NODE&&n.tagName==="BLOCKQUOTE")return n;n=n.parentNode}return null}function ql(t){const e=window.getSelection();if(!e||!e.rangeCount)return 0;const n=e.getRangeAt(0),o=document.createRange();return o.selectNodeContents(t),o.setEnd(n.startContainer,n.startOffset),o.toString().length}function Wl(t,e){var a;const n=window.getSelection();if(!n)return;let o=0;const s=document.createTreeWalker(t,NodeFilter.SHOW_TEXT);let i=s.nextNode();for(;i;){const c=((a=i.textContent)==null?void 0:a.length)||0;if(o+c>=e){const u=document.createRange();u.setStart(i,e-o),u.collapse(!0),n.removeAllRanges(),n.addRange(u);return}o+=c,i=s.nextNode()}const l=document.createRange();l.selectNodeContents(t),l.collapse(!1),n.removeAllRanges(),n.addRange(l)}function yf(t){const{contentRef:e,onContentChange:n}=t;function o(){if(!e.value)return!1;const a=window.getSelection();if(!a||!a.rangeCount)return!1;const c=a.getRangeAt(0);return bf(c.startContainer,e.value)!==null}function s(){if(!e.value)return;const a=window.getSelection();if(!a||!a.rangeCount)return;const c=a.getRangeAt(0);if(!e.value.contains(c.startContainer))return;const u=bf(c.startContainer,e.value);u?i(u):l(),n()}function i(a){const c=a.parentNode;if(!c)return;const u=window.getSelection();let d=0,f=null;if(u&&u.rangeCount>0){const g=u.getRangeAt(0),p=gf(g.startContainer,e.value);p&&a.contains(p)?(f=p,d=ql(p)):p===a&&(d=ql(a))}const h=Array.from(a.childNodes);let m=null;for(const g of h){const p=c.insertBefore(g,a);!m&&p.nodeType===Node.ELEMENT_NODE&&(m=p)}c.removeChild(a),f&&c.contains(f)?Wl(f,d):m&&Wl(m,d)}function l(){if(!e.value)return;const a=window.getSelection();if(!a||!a.rangeCount)return;const c=a.getRangeAt(0),u=gf(c.startContainer,e.value);if(!u||u.tagName==="BLOCKQUOTE")return;const d=ql(u),f=document.createElement("blockquote"),h=u.parentNode;h&&(h.insertBefore(f,u),f.appendChild(u),Wl(u,d))}return{toggleBlockquote:s,isInBlockquote:o}}function Mk(){return`cb-${crypto.randomUUID()}`}function _r(t){const e=t.tagName;return e==="P"||e==="DIV"||/^H[1-6]$/.test(e)}function wf(t,e){const n=e.getCurrentBlock();if(!n)return null;if(_r(n)||n.tagName==="PRE"||n.hasAttribute("data-code-block-id")||n.tagName==="LI")return n;if(!t.value)return null;let o=n;for(;o&&o.parentElement!==t.value;){if(_r(o)||o.tagName==="PRE"||o.tagName==="LI"||o.hasAttribute("data-code-block-id"))return o;o=o.parentElement}return o&&(_r(o)||o.tagName==="PRE"||o.hasAttribute("data-code-block-id"))?o:null}function yo(t){const e=t.getCurrentBlock();if(!e)return null;let n=e;for(;n;){if(n.hasAttribute("data-code-block-id"))return n;if(n.tagName==="PRE"&&!n.closest("[data-code-block-id]"))return null;n=n.parentElement}return null}function gr(t){const e=t.getCurrentBlock();if(!e)return null;let n=e;for(;n;){if(n.tagName==="PRE")return n;n=n.parentElement}return null}function kf(t){const e=window.getSelection();if(!e)return;const n=document.createRange(),o=document.createTreeWalker(t,NodeFilter.SHOW_TEXT);let s=null,i;for(;i=o.nextNode();)s=i;s?(n.setStart(s,s.length),n.collapse(!0)):(n.selectNodeContents(t),n.collapse(!1)),e.removeAllRanges(),e.addRange(n)}const Ms="";function Ok(t){const e=window.getSelection();if(!e)return;const n=document.createRange(),s=document.createTreeWalker(t,NodeFilter.SHOW_TEXT).nextNode();s?(s.textContent===Ms?n.setStart(s,s.length):n.setStart(s,0),n.collapse(!0)):(n.selectNodeContents(t),n.collapse(!0)),e.removeAllRanges(),e.addRange(n)}function xf(t,e){const n=Mk(),o=document.createElement("div");o.className="code-block-wrapper",o.setAttribute("contenteditable","false"),o.setAttribute("data-code-block-id",n);const s=document.createElement("div");return s.className="code-viewer-mount-point",s.setAttribute("data-content",t),s.setAttribute("data-language",e),o.appendChild(s),{wrapper:o,id:n}}function Dk(t,e){var i;const n=document.createElement("p"),o=t.getAttribute("data-code-block-id"),s=o?e.get(o):null;return n.textContent=(s==null?void 0:s.content)||"",o&&e.delete(o),(i=t.parentNode)==null||i.replaceChild(n,t),n}function vk(t){var o;const e=document.createElement("p"),n=t.querySelector("code");return e.textContent=(n==null?void 0:n.textContent)||t.textContent||"",(o=t.parentNode)==null||o.replaceChild(e,t),e}function Cf(t){const{contentRef:e,selection:n,onContentChange:o}=t,s=r.reactive(new Map),i=new Set;function l(T){const B=T.querySelector('pre[contenteditable="true"]');if(B){B.focus();const N=document.createRange();N.selectNodeContents(B),N.collapse(!0);const $=window.getSelection();$==null||$.removeAllRanges(),$==null||$.addRange(N)}}function a(T,B){i.has(T)&&(i.delete(T),l(B))}function c(T,B,N){s.set(T,{id:T,content:B,language:N})}function u(){return s}function d(T){return s.get(T)}function f(T,B){const N=s.get(T);N&&(N.content=B,o())}function h(T,B){const N=s.get(T);N&&(N.language=B,o())}function m(T){if(s.delete(T),e.value){const B=e.value.querySelector(`[data-code-block-id="${T}"]`);B&&B.remove()}o()}function g(){const T=yo(n);return(T==null?void 0:T.getAttribute("data-code-block-id"))||null}function p(){return yo(n)?!0:gr(n)!==null}function _(){const T=yo(n);if(T){const O=T.getAttribute("data-code-block-id");if(O){const F=s.get(O);return(F==null?void 0:F.language)??""}}const B=gr(n);if(!B)return null;const N=B.querySelector("code");if(!N)return null;const $=N.className.match(/language-(\w+)/);return $?$[1]:""}function b(T){const B=yo(n);if(B){const F=B.getAttribute("data-code-block-id");F&&h(F,T);return}const N=gr(n);if(!N)return;const $=N.querySelector("code");if(!$)return;let O=$.className.replace(/language-\w+/g,"").trim();T&&(O=(O+` language-${T}`).trim()),O?$.className=O:$.removeAttribute("class"),o()}function y(){var A;if(!e.value||yo(n))return!1;const B=gr(n);if(!B)return!1;const N=B.querySelector("code");if(!N)return!1;const $=window.getSelection();if(!$||$.rangeCount===0)return!1;const O=$.getRangeAt(0),F=(N.textContent||"").replace(/\u200B/g,""),P=S(N,O);if(P&&F.endsWith(`
|
|
215
|
+
|
|
216
|
+
`)){const L=F.slice(0,-2);N.textContent=L||Ms;const D=document.createElement("p");return D.appendChild(document.createElement("br")),(A=B.parentNode)==null||A.insertBefore(D,B.nextSibling),Ok(D),o(),!0}return P?k(`
|
|
217
|
+
`,N):w(`
|
|
218
|
+
`),o(),!0}function w(T){const B=window.getSelection();if(!B||B.rangeCount===0)return;const N=B.getRangeAt(0);N.deleteContents();const $=document.createTextNode(T);N.insertNode($),N.setStartAfter($),N.setEndAfter($),B.removeAllRanges(),B.addRange(N)}function k(T,B){var U;const N=window.getSelection();if(!N||N.rangeCount===0)return;const O=(B.textContent||"").replace(/\u200B/g,""),F=N.getRangeAt(0);let P=0;const A=document.createTreeWalker(B,NodeFilter.SHOW_TEXT);let L;for(;L=A.nextNode();)if(L===F.startContainer){const j=((U=L.textContent)==null?void 0:U.slice(0,F.startOffset))||"";P+=j.replace(/\u200B/g,"").length;break}else P+=(L.textContent||"").replace(/\u200B/g,"").length;const D=O.slice(0,P)+T+Ms+O.slice(P);B.textContent=D;const I=P+T.length,W=B.firstChild;if(W){const j=document.createRange();j.setStart(W,I),j.collapse(!0),N.removeAllRanges(),N.addRange(j)}}function S(T,B){const N=document.createRange();N.setStart(B.endContainer,B.endOffset);const $=T.lastChild;return $?$.nodeType===Node.TEXT_NODE?N.setEnd($,$.length):N.setEndAfter($):N.setEndAfter(T),N.toString().replace(/\u200B/g,"")===""}function C(){var $;if(!e.value)return;const T=yo(n);if(T){const O=Dk(T,s);kf(O),o();return}const B=gr(n);if(B){const O=vk(B);kf(O),o();return}const N=wf(e,n);if(N&&N.tagName!=="LI"&&_r(N)){const O=N.textContent||"",{wrapper:F,id:P}=xf(O,"");s.set(P,{id:P,content:O,language:""}),($=N.parentNode)==null||$.replaceChild(F,N),i.add(P),o()}}function x(){var P;if(!e.value)return!1;const T=wf(e,n);if(!T||!_r(T))return!1;const B=T.textContent||"",N=Ol(B);if(!N)return!1;const $=N.language||"",{wrapper:O,id:F}=xf("",$);return s.set(F,{id:F,content:"",language:$}),(P=T.parentNode)==null||P.replaceChild(O,T),i.add(F),o(),!0}return{codeBlocks:s,toggleCodeBlock:C,checkAndConvertCodeBlockPattern:x,isInCodeBlock:p,getCurrentCodeBlockLanguage:_,setCodeBlockLanguage:b,handleCodeBlockEnter:y,getCodeBlocks:u,updateCodeBlockContent:f,updateCodeBlockLanguage:h,removeCodeBlock:m,getCodeBlockById:d,getCurrentCodeBlockId:g,handleCodeBlockMounted:a,registerCodeBlock:c}}function Vk(t){return{js:"javascript",ts:"typescript",py:"python",rb:"ruby",yml:"yaml",md:"markdown",sh:"bash",shell:"bash"}[t]||t||"text"}function Sf(t){const{contentRef:e,codeBlocks:n,updateCodeBlockContent:o,updateCodeBlockLanguage:s,onCodeBlockExit:i,onCodeBlockDelete:l,onCodeBlockMounted:a}=t,c=new Map,u=new Map;let d=null;function f(w){const k=w.getAttribute("data-code-block-id");if(!k||c.has(k))return;const S=w.querySelector(".code-viewer-mount-point");if(!S)return;const C=n.get(k),x=(C==null?void 0:C.content)??S.getAttribute("data-content")??"",T=(C==null?void 0:C.language)??S.getAttribute("data-language")??"";C||n.set(k,{id:k,content:x,language:T});const B=r.ref(x),N=r.ref(T),$=r.watch(()=>{var A;return(A=n.get(k))==null?void 0:A.content},A=>{A!==void 0&&(B.value=A)}),O=r.watch(()=>{var A;return(A=n.get(k))==null?void 0:A.language},A=>{A!==void 0&&(N.value=A)}),F=()=>{$(),O()};u.set(k,F);const P=r.createApp({setup(){const A=U=>{const j=typeof U=="string"?U:JSON.stringify(U);o(k,j)},L=U=>{s(k,U)},D=()=>{i&&i(k)},I=()=>{l&&l(k)},W=r.computed(()=>Vk(N.value));return()=>r.h(Is,{modelValue:B.value,format:W.value,canEdit:!0,editable:!0,allowAnyLanguage:!0,class:"code-block-island","onUpdate:modelValue":A,"onUpdate:format":L,onExit:D,onDelete:I})}});P.use(pe.Quasar,{plugins:{}}),S.innerHTML="",P.mount(S),c.set(k,{app:P,mountPoint:S}),a&&r.nextTick(()=>{a(k,w)})}function h(w){const k=u.get(w);k&&(k(),u.delete(w));const S=c.get(w);S&&(S.app.unmount(),c.delete(w))}function m(){for(const[w,k]of u)k(),u.delete(w);for(const[w,k]of c)k.app.unmount(),c.delete(w)}function g(){if(!e.value)return;e.value.querySelectorAll("[data-code-block-id]").forEach(k=>{f(k)})}function p(){return c.size}function _(w){var k,S,C;for(const x of w){for(const T of Array.from(x.addedNodes))if(T.nodeType===Node.ELEMENT_NODE){const B=T;B.hasAttribute&&B.hasAttribute("data-code-block-id")&&r.nextTick(()=>f(B));const N=(k=B.querySelectorAll)==null?void 0:k.call(B,"[data-code-block-id]");N&&N.length>0&&N.forEach($=>{r.nextTick(()=>f($))})}for(const T of Array.from(x.removedNodes))if(T.nodeType===Node.ELEMENT_NODE){const B=T,N=(S=B.getAttribute)==null?void 0:S.call(B,"data-code-block-id");N&&h(N);const $=(C=B.querySelectorAll)==null?void 0:C.call(B,"[data-code-block-id]");$&&$.forEach(O=>{const F=O.getAttribute("data-code-block-id");F&&h(F)})}}}function b(){!e.value||d||(d=new MutationObserver(_),d.observe(e.value,{childList:!0,subtree:!0}))}function y(){d&&(d.disconnect(),d=null)}return r.watch(e,(w,k)=>{k&&!w?(y(),m()):w&&!k&&(b(),r.nextTick(()=>g()))},{immediate:!0}),r.onUnmounted(()=>{y(),m()}),{mountCodeViewers:g,unmountCodeViewer:h,unmountAllCodeViewers:m,getMountedCount:p}}const Os={P:0,DIV:0,H1:1,H2:2,H3:3,H4:4,H5:5,H6:6},Ef={0:"P",1:"H1",2:"H2",3:"H3",4:"H4",5:"H5",6:"H6"};function Pk(t,e){var o;const n=document.createElement(e);for(;t.firstChild;)n.appendChild(t.firstChild);for(const s of Array.from(t.attributes))s.name!=="id"&&n.setAttribute(s.name,s.value);return(o=t.parentNode)==null||o.replaceChild(n,t),n}function jl(t,e){const n=e.getCurrentBlock();if(!n)return null;if(n.tagName in Os)return n;if(!t.value)return null;let s=n;for(;s&&s.parentElement!==t.value;)s=s.parentElement;return s&&s.tagName in Os?s:null}function Tf(t){const{contentRef:e,selection:n,onContentChange:o}=t;function s(){const u=jl(e,n);return u?Os[u.tagName]??-1:-1}function i(u){const d=jl(e,n);if(!d||Os[d.tagName]===u)return;const h=n.saveCursorPosition(),m=Ef[u];Pk(d,m),h&&n.restoreCursorPosition(h),o()}function l(){const u=s();if(u===-1)return;let d;if(u===0)d=6;else{if(u===1)return;d=u-1}i(d)}function a(){const u=s();if(u===-1)return;let d;u!==0&&(u===6?d=0:d=u+1,i(d))}function c(){var b,y;const u=jl(e,n);if(!u||u.tagName!=="P"&&u.tagName!=="DIV")return!1;const d=u.textContent||"",f=Fl(d);if(!f)return!1;const h=f.level,m=f.content,g=Ef[h],p=document.createElement(g);p.textContent=m;for(const w of Array.from(u.attributes))w.name!=="id"&&p.setAttribute(w.name,w.value);(b=u.parentNode)==null||b.replaceChild(p,u);const _=window.getSelection();if(_&&p.firstChild){const w=document.createRange(),k=p.firstChild;if(k.nodeType===Node.TEXT_NODE){const S=((y=k.textContent)==null?void 0:y.length)||0;w.setStart(k,S),w.collapse(!0)}else w.selectNodeContents(p),w.collapse(!1);_.removeAllRanges(),_.addRange(w)}return o(),!0}return{setHeadingLevel:i,increaseHeadingLevel:l,decreaseHeadingLevel:a,getCurrentHeadingLevel:s,checkAndConvertHeadingPattern:c}}const Gl={bold:{tag:"STRONG",fallback:"B"},italic:{tag:"EM",fallback:"I"},strikethrough:{tag:"DEL",fallback:"S"},code:{tag:"CODE",fallback:null},highlight:{tag:"MARK",fallback:null},underline:{tag:"U",fallback:null}};function Rk(t,e){const{tag:n,fallback:o}=Gl[e];let s=t;for(;s&&s.nodeType!==Node.DOCUMENT_NODE;){if(s.nodeType===Node.ELEMENT_NODE){const i=s,l=i.tagName.toUpperCase();if(l===n||o&&l===o)return i}s=s.parentNode}return null}function Bf(t){const{contentRef:e,onContentChange:n}=t;function o(w){if(!e.value)return;const k=window.getSelection();if(!k||k.rangeCount===0)return;const S=k.getRangeAt(0);if(!e.value.contains(S.commonAncestorContainer))return;const{tag:C}=Gl[w],x=Rk(S.commonAncestorContainer,w);S.collapsed?x?i(x):f(S,C.toLowerCase(),w):x&&s(S,x)?a(x):x?l(S,x,w):d(S,C.toLowerCase()),n()}function s(w,k){return w.toString()===k.textContent}function i(w){var x;const k=window.getSelection();if(!k)return;const S=document.createTextNode("");(x=w.parentNode)==null||x.insertBefore(S,w.nextSibling);const C=document.createRange();C.setStart(S,1),C.collapse(!0),k.removeAllRanges(),k.addRange(C)}function l(w,k,S){const{tag:C}=Gl[S],x=C.toLowerCase(),T=w.toString(),B=k.textContent||"",N=B.substring(0,B.indexOf(T)),$=B.substring(B.indexOf(T)+T.length),O=k.parentNode;if(!O)return;const F=document.createDocumentFragment();if(N){const D=document.createElement(x);D.textContent=N,F.appendChild(D)}const P=document.createTextNode(T);if(F.appendChild(P),$){const D=document.createElement(x);D.textContent=$,F.appendChild(D)}O.replaceChild(F,k);const A=document.createRange();A.selectNodeContents(P);const L=window.getSelection();L&&(L.removeAllRanges(),L.addRange(A))}function a(w){const k=w.parentNode;if(k){for(;w.firstChild;)k.insertBefore(w.firstChild,w);k.removeChild(w),k.normalize()}}function c(w,k){if(w.nodeType===Node.ELEMENT_NODE||w.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const S=document.createElement("div");for(;w.firstChild;)S.appendChild(w.firstChild);const C=Array.from(S.querySelectorAll(k));for(const x of C){const T=x.parentNode;if(T){for(;x.firstChild;)T.insertBefore(x.firstChild,x);T.removeChild(x)}}for(;S.firstChild;)w.appendChild(S.firstChild)}}function u(w,k){var S;if(w.nodeType===Node.ELEMENT_NODE){const C=w,x=Array.from(C.querySelectorAll(k)).filter(T=>{var B;return!((B=T.textContent)!=null&&B.trim())});for(const T of x)(S=T.parentNode)==null||S.removeChild(T)}}function d(w,k){const S=document.createElement(k),C=w.extractContents();c(C,k),S.appendChild(C),w.insertNode(S);const x=S.parentElement;x&&u(x,k),S.normalize();const T=document.createRange();T.selectNodeContents(S);const B=window.getSelection();B&&(B.removeAllRanges(),B.addRange(T))}function f(w,k,S){const C=document.createElement(k),x=h(S);C.textContent=x,w.insertNode(C);const T=document.createRange();T.selectNodeContents(C);const B=window.getSelection();B&&(B.removeAllRanges(),B.addRange(T))}function h(w){switch(w){case"bold":return"bold text";case"italic":return"italic text";case"strikethrough":return"strikethrough text";case"code":return"code";case"highlight":return"highlighted text";case"underline":return"underlined text";default:return"text"}}function m(){o("bold")}function g(){o("italic")}function p(){o("strikethrough")}function _(){o("code")}function b(){o("highlight")}function y(){o("underline")}return{toggleBold:m,toggleItalic:g,toggleStrikethrough:p,toggleInlineCode:_,toggleHighlight:b,toggleUnderline:y}}function Nf(t,e){if(!t)return null;let n=t;for(;n&&n!==e;){if(n.nodeType===Node.ELEMENT_NODE&&n.tagName==="A")return n;n=n.parentNode}return null}function Kl(t){t.dispatchEvent(new InputEvent("input",{bubbles:!0}))}function Zl(){const t=window.getSelection();if(!t||!t.rangeCount)return{x:window.innerWidth/2,y:window.innerHeight/2};const n=t.getRangeAt(0).getBoundingClientRect();return n.width===0&&n.height===0?{x:n.left||window.innerWidth/2,y:n.bottom||window.innerHeight/2}:{x:n.left+n.width/2,y:n.bottom}}function $f(t){const{contentRef:e,onContentChange:n,onShowLinkPopover:o}=t;let s=null;function i(){const _=window.getSelection();_&&_.rangeCount>0&&(s=_.getRangeAt(0).cloneRange())}function l(){if(s){const _=window.getSelection();_==null||_.removeAllRanges(),_==null||_.addRange(s)}}function a(){if(!e.value)return!1;const _=window.getSelection();if(!_||!_.rangeCount)return!1;const b=_.getRangeAt(0);return Nf(b.startContainer,e.value)!==null}function c(){if(!e.value)return;const _=window.getSelection();if(!_||!_.rangeCount)return;const b=_.getRangeAt(0);if(!e.value.contains(b.startContainer))return;i();const y=Nf(b.startContainer,e.value);y?u(y):b.collapsed?g():h(b)}function u(_){const b=_.getAttribute("href")||"",y=Zl();if(o)o({position:y,existingUrl:b,selectedText:_.textContent||void 0,onSubmit:w=>{l(),d(_,w)},onCancel:()=>{var w;l(),(w=e.value)==null||w.focus()}});else{const w=window.prompt("Edit link URL:",b);if(w===null)return;d(_,w)}}function d(_,b){var y;b.trim()===""?f(_):_.setAttribute("href",b.trim()),Kl(e.value),n(),(y=e.value)==null||y.focus()}function f(_){const b=_.parentNode;if(b){for(;_.firstChild;)b.insertBefore(_.firstChild,_);b.removeChild(_)}}function h(_){const b=_.toString(),y=Zl();if(o)o({position:y,selectedText:b,onSubmit:w=>{l(),m(w)},onCancel:()=>{var w;l(),(w=e.value)==null||w.focus()}});else{const w=window.prompt("Enter link URL:");if(!w||w.trim()==="")return;m(w)}}function m(_){var C,x,T;if(!_||_.trim()===""){(C=e.value)==null||C.focus();return}const b=window.getSelection();if(!b||!b.rangeCount){(x=e.value)==null||x.focus();return}const y=b.getRangeAt(0),w=document.createElement("a");w.setAttribute("href",_.trim()),w.setAttribute("target","_blank"),w.setAttribute("rel","noopener noreferrer");const k=y.extractContents();w.appendChild(k),y.insertNode(w);const S=document.createRange();S.selectNodeContents(w),b.removeAllRanges(),b.addRange(S),Kl(e.value),n(),(T=e.value)==null||T.focus()}function g(_){const b=Zl();if(o)o({position:b,onSubmit:(y,w)=>{l(),p(y,w)},onCancel:()=>{var y;l(),(y=e.value)==null||y.focus()}});else{const y=window.prompt("Enter link URL:");if(!y||y.trim()==="")return;p(y)}}function p(_,b){var T,B,N;if(!_||_.trim()===""){(T=e.value)==null||T.focus();return}const y=_.trim(),w=(b==null?void 0:b.trim())||y,k=window.getSelection();if(!k||!k.rangeCount){(B=e.value)==null||B.focus();return}const S=k.getRangeAt(0),C=document.createElement("a");C.setAttribute("href",y),C.setAttribute("target","_blank"),C.setAttribute("rel","noopener noreferrer"),C.textContent=w,S.insertNode(C);const x=document.createRange();x.selectNodeContents(C),k.removeAllRanges(),k.addRange(x),Kl(e.value),n(),(N=e.value)==null||N.focus()}return{insertLink:c,isInLink:a}}function wo(t){const e=t.tagName;return e==="P"||e==="DIV"||/^H[1-6]$/.test(e)}function Yl(t,e){const n=e.getCurrentBlock();if(!n)return null;if(wo(n)||n.tagName==="LI")return n;if(!t.value)return null;let o=n;for(;o&&o.parentElement!==t.value;){if(wo(o)||o.tagName==="LI")return o;o=o.parentElement}return o&&wo(o)?o:null}function Wt(t){const e=t.getCurrentBlock();if(!e)return null;let n=e;for(;n;){if(n.tagName==="LI")return n;n=n.parentElement}return null}function ln(t){const e=t.parentElement;return e&&(e.tagName==="UL"||e.tagName==="OL")?e:null}function Ql(t){const e=Wt(t);if(!e)return null;const n=ln(e);return n?n.tagName.toLowerCase():null}function If(t,e){var s;const n=document.createElement(e),o=document.createElement("li");for(;t.firstChild;)o.appendChild(t.firstChild);return n.appendChild(o),(s=t.parentNode)==null||s.replaceChild(n,t),o}function br(t,e){var s,i,l,a,c,u;const n=document.createElement("p");for(;t.firstChild;){if(t.firstChild.nodeType===Node.ELEMENT_NODE){const d=t.firstChild;if(d.tagName==="UL"||d.tagName==="OL"){t.removeChild(t.firstChild);continue}}n.appendChild(t.firstChild)}const o=ln(t);if(!o)return(s=t.parentNode)==null||s.replaceChild(n,t),n;if(o.children.length===1)(i=o.parentNode)==null||i.replaceChild(n,o);else{const d=Array.from(o.children),f=d.indexOf(t);if(f===0)(l=o.parentNode)==null||l.insertBefore(n,o);else if(f===d.length-1)(a=o.parentNode)==null||a.insertBefore(n,o.nextSibling);else{const h=document.createElement(o.tagName.toLowerCase());for(let m=f+1;m<d.length;m++)h.appendChild(d[m]);(c=o.parentNode)==null||c.insertBefore(n,o.nextSibling),h.children.length>0&&((u=n.parentNode)==null||u.insertBefore(h,n.nextSibling))}t.remove()}return n}function jt(t){const e=window.getSelection();if(!e)return;const n=document.createRange(),o=document.createTreeWalker(t,NodeFilter.SHOW_TEXT);let s=null,i;for(;i=o.nextNode();)s=i;s?(n.setStart(s,s.length),n.collapse(!0)):(n.selectNodeContents(t),n.collapse(!1)),e.removeAllRanges(),e.addRange(n)}function Af(t){const e=window.getSelection();if(!e)return;const n=document.createRange(),s=document.createTreeWalker(t,NodeFilter.SHOW_TEXT).nextNode();s?(n.setStart(s,0),n.collapse(!0)):(n.selectNodeContents(t),n.collapse(!0)),e.removeAllRanges(),e.addRange(n)}function Xl(t){var a,c;const e=window.getSelection();if(!e||e.rangeCount===0)return 0;const n=e.getRangeAt(0),o=document.createRange();o.selectNodeContents(t),o.setEnd(n.startContainer,n.startOffset);let s=0;const i=document.createTreeWalker(t,NodeFilter.SHOW_TEXT);let l;for(;l=i.nextNode();){let u=l.parentNode,d=!1;for(;u&&u!==t;){if(u.nodeName==="UL"||u.nodeName==="OL"){d=!0;break}u=u.parentNode}if(d)continue;const f=document.createRange();if(f.selectNodeContents(l),o.compareBoundaryPoints(Range.END_TO_START,f)>=0)s+=((a=l.textContent)==null?void 0:a.length)||0;else if(o.compareBoundaryPoints(Range.END_TO_END,f)>=0){n.startContainer===l?s+=n.startOffset:s+=((c=l.textContent)==null?void 0:c.length)||0;break}else break}return s}function Jl(t,e){var l;const n=window.getSelection();if(!n)return;let o=0;const s=document.createTreeWalker(t,NodeFilter.SHOW_TEXT);let i;for(;i=s.nextNode();){let a=i.parentNode,c=!1;for(;a&&a!==t;){if(a.nodeName==="UL"||a.nodeName==="OL"){c=!0;break}a=a.parentNode}if(c)continue;const u=((l=i.textContent)==null?void 0:l.length)||0;if(o+u>=e){const d=document.createRange();d.setStart(i,e-o),d.collapse(!0),n.removeAllRanges(),n.addRange(d);return}o+=u}jt(t)}function Lf(t){const{contentRef:e,selection:n,onContentChange:o}=t;function s(){var p;if(!e.value)return;const g=Ql(n);if(g==="ul"){const _=Wt(n);if(_){const b=br(_,e.value);jt(b)}}else if(g==="ol"){const _=Wt(n);if(_){const b=ln(_);if(b){const y=document.createElement("ul");for(;b.firstChild;)y.appendChild(b.firstChild);(p=b.parentNode)==null||p.replaceChild(y,b);const w=y.querySelector("li");w&&jt(w)}}}else{const _=Yl(e,n);if(_&&wo(_)){const b=If(_,"ul");jt(b)}}o()}function i(){var p;if(!e.value)return;const g=Ql(n);if(g==="ol"){const _=Wt(n);if(_){const b=br(_,e.value);jt(b)}}else if(g==="ul"){const _=Wt(n);if(_){const b=ln(_);if(b){const y=document.createElement("ol");for(;b.firstChild;)y.appendChild(b.firstChild);(p=b.parentNode)==null||p.replaceChild(y,b);const w=y.querySelector("li");w&&jt(w)}}}else{const _=Yl(e,n);if(_&&wo(_)){const b=If(_,"ol");jt(b)}}o()}function l(){var S;if(!e.value)return!1;const g=Yl(e,n);if(!g||!wo(g))return!1;const p=g.textContent||"",_=Ml(p);if(!_)return!1;const b=_.type==="unordered"?"ul":"ol",y=_.content,w=document.createElement(b),k=document.createElement("li");return k.textContent=y,w.appendChild(k),(S=g.parentNode)==null||S.replaceChild(w,g),jt(k),o(),!0}function a(){var S;if(!e.value)return!1;const g=Wt(n);if(!g)return!1;const p=ln(g);if(!p)return!1;if(c(g)===""){const C=p.parentElement;if(C&&C.tagName==="LI")return f();{const T=br(g,e.value);return Af(T),o(),!0}}const b=window.getSelection();if(!b||b.rangeCount===0)return!1;const y=b.getRangeAt(0),w=u(g,y),k=document.createElement("li");if(w)k.appendChild(document.createElement("br"));else{const C=document.createRange();C.setStart(y.endContainer,y.endOffset),C.setEndAfter(g.lastChild||g);const x=C.extractContents();k.appendChild(x)}return(S=g.parentNode)==null||S.insertBefore(k,g.nextSibling),Af(k),o(),!0}function c(g){let p="";const _=Array.from(g.childNodes);for(const b of _)if(b.nodeType===Node.TEXT_NODE)p+=b.textContent||"";else if(b.nodeType===Node.ELEMENT_NODE){const y=b;y.tagName!=="UL"&&y.tagName!=="OL"&&(p+=c(y))}return p.trim()}function u(g,p){const _=document.createRange();return _.setStart(p.endContainer,p.endOffset),_.setEndAfter(g.lastChild||g),_.toString().trim()===""}function d(){if(!e.value)return!1;const g=Wt(n);if(!g)return!1;const p=ln(g);if(!p)return!1;const _=g.previousElementSibling;if(!_||_.tagName!=="LI")return!1;const b=Xl(g);let y=_.querySelector(":scope > ul, :scope > ol");return y||(y=document.createElement(p.tagName.toLowerCase()),_.appendChild(y)),y.appendChild(g),Jl(g,b),o(),!0}function f(){if(!e.value)return!1;const g=Wt(n);if(!g)return!1;const p=ln(g);if(!p)return!1;const _=p.parentElement;if(!_||_.tagName!=="LI"){const S=Xl(g),C=br(g,e.value);return Jl(C,S),o(),!0}const b=Xl(g),y=ln(_);if(!y)return!1;const w=[];let k=g.nextElementSibling;for(;k;){const S=k.nextElementSibling;w.push(k),k=S}if(w.length>0){let S=g.querySelector(":scope > ul, :scope > ol");S||(S=document.createElement(p.tagName.toLowerCase()),g.appendChild(S));for(const C of w)S.appendChild(C)}return y.insertBefore(g,_.nextSibling),p.children.length===0&&p.remove(),Jl(g,b),o(),!0}function h(){return Ql(n)}function m(){if(!e.value)return null;const g=Wt(n);if(!g)return null;const p=br(g,e.value);return jt(p),o(),p}return{toggleUnorderedList:s,toggleOrderedList:i,checkAndConvertListPattern:l,handleListEnter:a,indentListItem:d,outdentListItem:f,getCurrentListType:h,convertCurrentListItemToParagraph:m}}function Uk(){const t=window.getSelection();if(!t||!t.rangeCount)return{x:window.innerWidth/2,y:window.innerHeight/2};const n=t.getRangeAt(0).getBoundingClientRect();return n.width===0&&n.height===0?{x:n.left||window.innerWidth/2,y:n.bottom||window.innerHeight/2}:{x:n.left+n.width/2,y:n.bottom}}function zk(t,e){if(!t)return null;let n=t;for(;n&&n!==e;){if(n.nodeType===Node.ELEMENT_NODE&&n.tagName==="TABLE")return n;n=n.parentNode}return null}function Hk(t,e){if(!t)return null;let n=t;for(;n&&n!==e;){if(n.nodeType===Node.ELEMENT_NODE){const o=n.tagName;if(o==="TD"||o==="TH")return n}n=n.parentNode}return null}function Tt(t){var l;const e=t.parentElement;if(!e)return{row:-1,col:-1};const n=((l=e.parentElement)==null?void 0:l.parentElement)||e.parentElement;if(!n)return{row:-1,col:-1};const o=Array.from(e.cells).indexOf(t);let s=0;const i=mt(n);for(let a=0;a<i.length;a++)if(i[a]===e){s=a;break}return{row:s,col:o}}function mt(t){const e=[];t.tHead&&e.push(...Array.from(t.tHead.rows));for(const n of Array.from(t.tBodies))e.push(...Array.from(n.rows));for(const n of Array.from(t.children))n.tagName==="TR"&&e.push(n);return e}function ea(t){const e=mt(t);return e.length===0?0:e[0].cells.length}function an(t,e,n){const o=mt(t);if(e<0||e>=o.length)return null;const s=o[e];return n<0||n>=s.cells.length?null:s.cells[n]}function Ff(t){const e=window.getSelection();if(!e||!e.rangeCount)return 0;const n=e.getRangeAt(0),o=document.createRange();return o.selectNodeContents(t),o.setEnd(n.startContainer,n.startOffset),o.toString().length}function Mf(t,e){var d;const n=window.getSelection();if(!n)return;const s=(t.textContent||"").length,i=Math.min(e,s);let l=0;const a=document.createTreeWalker(t,NodeFilter.SHOW_TEXT);let c=null;for(;c=a.nextNode();){const f=((d=c.textContent)==null?void 0:d.length)||0;if(l+f>=i){const h=document.createRange();h.setStart(c,i-l),h.collapse(!0),n.removeAllRanges(),n.addRange(h);return}l+=f}const u=document.createRange();u.selectNodeContents(t),u.collapse(!1),n.removeAllRanges(),n.addRange(u)}function Of(t){if(t.nodeType===Node.TEXT_NODE)return t;for(const e of Array.from(t.childNodes)){if(e.nodeType===Node.ELEMENT_NODE&&e.tagName==="BR")continue;const n=Of(e);if(n)return n}return null}function Gt(t){const e=window.getSelection();if(!e)return;const n=document.createRange(),o=Of(t);o?(n.setStart(o,0),n.collapse(!0)):(n.selectNodeContents(t),n.collapse(!0)),e.removeAllRanges(),e.addRange(n),t.focus()}function Ds(t){const e=window.getSelection();if(!e)return;const n=document.createRange();n.selectNodeContents(t),e.removeAllRanges(),e.addRange(n)}function qk(t){t.dispatchEvent(new InputEvent("input",{bubbles:!0}))}function ta(){const t=window.getSelection();return!t||!t.rangeCount?null:t.getRangeAt(0)}function na(t){const e=document.createElement(t?"th":"td");return e.appendChild(document.createElement("br")),e}function vs(t,e){const n=document.createElement("tr");for(let o=0;o<t;o++)n.appendChild(na(e));return n}function oa(t,e,n){const o=mt(t);for(const s of o){const i=s.cells[e];i&&(n==="left"?i.style.removeProperty("text-align"):i.style.textAlign=n)}}function Df(t){const{contentRef:e,onContentChange:n,onShowTablePopover:o}=t;let s=null;function i(){const A=window.getSelection();A&&A.rangeCount>0&&(s=A.getRangeAt(0).cloneRange())}function l(){if(s){const A=window.getSelection();A==null||A.removeAllRanges(),A==null||A.addRange(s)}}function a(){return u()!==null}function c(){return d()!==null}function u(){if(!e.value)return null;const A=ta();return A?zk(A.startContainer,e.value):null}function d(){if(!e.value)return null;const A=ta();return A?Hk(A.startContainer,e.value):null}function f(){const A=d(),L=u();return!A||!L?null:{cell:A,table:L}}function h(){e.value&&(qk(e.value),n())}function m(){if(!e.value)return;i();const A=Uk();o?o({position:A,onSubmit:(L,D)=>{l(),g(L,D)},onCancel:()=>{var L;l(),(L=e.value)==null||L.focus()}}):g(3,3)}function g(A,L){var M;if(!e.value||A<1||L<1)return;const D=ta();if(!D||!e.value.contains(D.startContainer))return;const I=document.createElement("table"),W=document.createElement("thead");if(W.appendChild(vs(L,!0)),I.appendChild(W),A>1){const v=document.createElement("tbody");for(let H=1;H<A;H++)v.appendChild(vs(L,!1));I.appendChild(v)}let U=D.startContainer;for(;U&&U!==e.value;){if(U.nodeType===Node.ELEMENT_NODE){const v=U.tagName;if(["P","DIV","H1","H2","H3","H4","H5","H6"].includes(v))break}U=U.parentNode}U&&U!==e.value?(M=U.parentNode)==null||M.insertBefore(I,U.nextSibling):e.value.appendChild(I);const j=I.querySelector("th, td");j&&Gt(j),h()}function p(){const A=f();if(!A)return!1;const{cell:L,table:D}=A,{row:I,col:W}=Tt(L),U=mt(D),j=ea(D);if(W+1<j){const M=an(D,I,W+1);if(M)return Ds(M),!0}if(I+1<U.length){const M=an(D,I+1,0);if(M)return Ds(M),!0}return!1}function _(){const A=f();if(!A)return!1;const{cell:L,table:D}=A,{row:I,col:W}=Tt(L),U=ea(D);if(W>0){const j=an(D,I,W-1);if(j)return Ds(j),!0}if(I>0){const j=an(D,I-1,U-1);if(j)return Ds(j),!0}return!1}function b(){const A=f();if(!A)return!1;const{cell:L,table:D}=A,I=Ff(L),{row:W,col:U}=Tt(L),j=mt(D);if(W+1<j.length){const M=an(D,W+1,U);if(M)return Mf(M,I),!0}return!1}function y(){const A=f();if(!A)return!1;const{cell:L,table:D}=A,I=Ff(L),{row:W,col:U}=Tt(L);if(W>0){const j=an(D,W-1,U);if(j)return Mf(j,I),!0}return!1}function w(){var j;const A=f();if(!A)return;const{cell:L}=A,D=L.parentElement;if(!D)return;const I=D.cells.length,W=vs(I,!1);(j=D.parentNode)==null||j.insertBefore(W,D);const U=W.cells[0];U&&Gt(U),h()}function k(){var v,H;const A=f();if(!A)return;const{cell:L,table:D}=A,I=L.parentElement;if(!I)return;const W=I.cells.length,U=((v=I.parentElement)==null?void 0:v.tagName)==="THEAD",j=vs(W,!1);if(U){let K=D.tBodies[0];K||(K=document.createElement("tbody"),D.appendChild(K)),K.insertBefore(j,K.firstChild)}else(H=I.parentNode)==null||H.insertBefore(j,I.nextSibling);const M=j.cells[0];M&&Gt(M),h()}function S(){const A=f();if(!A)return;const{cell:L,table:D}=A,I=L.parentElement;if(!I)return;if(mt(D).length<=1){B();return}const{row:U,col:j}=Tt(L);I.remove();const M=mt(D),v=Math.min(U,M.length-1),H=an(D,v,j);H&&Gt(H),h()}function C(){var M;const A=f();if(!A)return;const{cell:L,table:D}=A,{col:I}=Tt(L),W=mt(D);for(const v of W){const H=((M=v.parentElement)==null?void 0:M.tagName)==="THEAD",K=na(H),Z=v.cells[I];Z?v.insertBefore(K,Z):v.appendChild(K)}const U=L.parentElement,j=U==null?void 0:U.cells[I];j&&Gt(j),h()}function x(){var M;const A=f();if(!A)return;const{cell:L,table:D}=A,{col:I}=Tt(L),W=mt(D);for(const v of W){const H=((M=v.parentElement)==null?void 0:M.tagName)==="THEAD",K=na(H),Z=v.cells[I+1];Z?v.insertBefore(K,Z):v.appendChild(K)}const U=L.parentElement,j=U==null?void 0:U.cells[I+1];j&&Gt(j),h()}function T(){const A=f();if(!A)return;const{cell:L,table:D}=A,{row:I,col:W}=Tt(L),U=ea(D),j=mt(D);if(U<=1){B();return}for(const H of j){const K=H.cells[W];K&&K.remove()}const M=Math.min(W,U-2),v=an(D,I,M);v&&Gt(v),h()}function B(){if(!e.value)return;const A=u();if(!A)return;const L=A.nextElementSibling,D=A.previousElementSibling;if(A.remove(),L&&L.focus){const I=L.querySelector("[contenteditable], input, textarea")||L;I.focus&&I.focus()}else if(D&&D.focus){const I=D.querySelector("[contenteditable], input, textarea")||D;I.focus&&I.focus()}else if(e.value.children.length===0){const I=document.createElement("p");I.appendChild(document.createElement("br")),e.value.appendChild(I),Gt(I)}h()}function N(){const A=f();if(!A)return;const{cell:L,table:D}=A,{col:I}=Tt(L);oa(D,I,"left"),h()}function $(){const A=f();if(!A)return;const{cell:L,table:D}=A,{col:I}=Tt(L);oa(D,I,"center"),h()}function O(){const A=f();if(!A)return;const{cell:L,table:D}=A,{col:I}=Tt(L);oa(D,I,"right"),h()}function F(A){if(!c())return!1;if(A)return!!_();if(!p()){k();const D=u();if(D){const I=mt(D),W=I[I.length-1];W&&W.cells[0]&&Gt(W.cells[0])}}return!0}function P(){return c()?(b()||(k(),b()),!0):!1}return{insertTable:m,createTable:g,isInTable:a,isInTableCell:c,getCurrentTable:u,getCurrentCell:d,navigateToNextCell:p,navigateToPreviousCell:_,navigateToCellBelow:b,navigateToCellAbove:y,insertRowAbove:w,insertRowBelow:k,deleteCurrentRow:S,insertColumnLeft:C,insertColumnRight:x,deleteCurrentColumn:T,deleteTable:B,setColumnAlignmentLeft:N,setColumnAlignmentCenter:$,setColumnAlignmentRight:O,handleTableTab:F,handleTableEnter:P}}function vf(t){const{contentRef:e,initialValue:n,onEmitValue:o,onShowLinkPopover:s,onShowTablePopover:i}=t,l=r.ref(!1),a=pf(e);let c=null;const u=Cf({contentRef:e,selection:a,onContentChange:()=>{c&&c()}}),d=_f({contentRef:e,onEmitValue:o,debounceMs:300,getCodeBlockById:u.getCodeBlockById,registerCodeBlock:u.registerCodeBlock});c=()=>d.debouncedSyncFromHtml();const f=ff({onShowHotkeyHelp:()=>{l.value=!0}}),h=Tf({contentRef:e,selection:a,onContentChange:()=>{d.debouncedSyncFromHtml()}}),m=Bf({contentRef:e,onContentChange:()=>{d.debouncedSyncFromHtml()}}),g=Lf({contentRef:e,selection:a,onContentChange:()=>{d.debouncedSyncFromHtml()}}),p=yf({contentRef:e,onContentChange:()=>{d.debouncedSyncFromHtml()}}),_=$f({contentRef:e,onContentChange:()=>{d.debouncedSyncFromHtml()},onShowLinkPopover:s}),b=Df({contentRef:e,onContentChange:()=>{d.debouncedSyncFromHtml()},onShowTablePopover:i});function y(M){var K;if(!e.value)return;const v=e.value.querySelector(`[data-code-block-id="${M}"]`);if(!v)return;const H=document.createElement("p");H.appendChild(document.createElement("br")),(K=v.parentNode)==null||K.insertBefore(H,v.nextSibling),r.nextTick(()=>{const Z=document.createRange();Z.selectNodeContents(H),Z.collapse(!0);const re=window.getSelection();re==null||re.removeAllRanges(),re==null||re.addRange(Z),H.focus()}),d.debouncedSyncFromHtml()}function w(M){if(!e.value)return;const v=e.value.querySelector(`[data-code-block-id="${M}"]`);if(!v)return;const H=v.previousElementSibling,K=v.nextElementSibling;u.codeBlocks.delete(M),v.remove(),r.nextTick(()=>{var re;let Z=null;if(H)Z=H;else if(K)Z=K;else{const ue=document.createElement("p");ue.appendChild(document.createElement("br")),(re=e.value)==null||re.appendChild(ue),Z=ue}if(Z){const ue=document.createRange();ue.selectNodeContents(Z),ue.collapse(!H);const de=window.getSelection();de==null||de.removeAllRanges(),de==null||de.addRange(ue)}}),d.debouncedSyncFromHtml()}const k=Sf({contentRef:e,codeBlocks:u.codeBlocks,updateCodeBlockContent:u.updateCodeBlockContent,updateCodeBlockLanguage:u.updateCodeBlockLanguage,onCodeBlockExit:y,onCodeBlockDelete:w,onCodeBlockMounted:u.handleCodeBlockMounted});$();function S(M){const v=g.getCurrentListType();v&&g.convertCurrentListItemToParagraph(),(M>0||!v)&&h.setHeadingLevel(M)}function C(){g.getCurrentListType()?(g.convertCurrentListItemToParagraph(),h.setHeadingLevel(6)):h.increaseHeadingLevel()}function x(){g.getCurrentListType()?g.convertCurrentListItemToParagraph():h.decreaseHeadingLevel()}function T(){if(u.isInCodeBlock()){u.toggleCodeBlock();return}g.getCurrentListType()&&g.convertCurrentListItemToParagraph(),u.toggleCodeBlock()}const B=r.computed(()=>{var M,v;return((v=(M=e.value)==null?void 0:M.textContent)==null?void 0:v.length)||0}),N=r.computed(()=>f.getHotkeyDefinitions());function $(){f.registerHotkey({key:"ctrl+b",action:()=>m.toggleBold(),description:"Bold",group:"formatting"}),f.registerHotkey({key:"ctrl+i",action:()=>m.toggleItalic(),description:"Italic",group:"formatting"}),f.registerHotkey({key:"ctrl+e",action:()=>m.toggleInlineCode(),description:"Inline code",group:"formatting"}),f.registerHotkey({key:"ctrl+shift+s",action:()=>m.toggleStrikethrough(),description:"Strikethrough",group:"formatting"}),f.registerHotkey({key:"ctrl+shift+h",action:()=>m.toggleHighlight(),description:"Highlight",group:"formatting"}),f.registerHotkey({key:"ctrl+u",action:()=>m.toggleUnderline(),description:"Underline",group:"formatting"}),f.registerHotkey({key:"ctrl+0",action:()=>S(0),description:"Convert to paragraph",group:"headings"}),f.registerHotkey({key:"ctrl+1",action:()=>S(1),description:"Convert to Heading 1",group:"headings"}),f.registerHotkey({key:"ctrl+2",action:()=>S(2),description:"Convert to Heading 2",group:"headings"}),f.registerHotkey({key:"ctrl+3",action:()=>S(3),description:"Convert to Heading 3",group:"headings"}),f.registerHotkey({key:"ctrl+4",action:()=>S(4),description:"Convert to Heading 4",group:"headings"}),f.registerHotkey({key:"ctrl+5",action:()=>S(5),description:"Convert to Heading 5",group:"headings"}),f.registerHotkey({key:"ctrl+6",action:()=>S(6),description:"Convert to Heading 6",group:"headings"}),f.registerHotkey({key:"ctrl+<",action:()=>x(),description:"Decrease heading level",group:"headings"}),f.registerHotkey({key:"ctrl+>",action:()=>C(),description:"Increase heading level",group:"headings"}),f.registerHotkey({key:"ctrl+shift+[",action:()=>g.toggleUnorderedList(),description:"Toggle bullet list",group:"lists"}),f.registerHotkey({key:"ctrl+shift+]",action:()=>g.toggleOrderedList(),description:"Toggle numbered list",group:"lists"}),f.registerHotkey({key:"tab",action:()=>{},description:"Indent list item",group:"lists"}),f.registerHotkey({key:"shift+tab",action:()=>{},description:"Outdent list item",group:"lists"}),f.registerHotkey({key:"ctrl+shift+k",action:()=>T(),description:"Toggle code block",group:"blocks"}),f.registerHotkey({key:"ctrl+enter",action:()=>{},description:"Exit code block",group:"blocks"}),f.registerHotkey({key:"ctrl+alt+l",action:()=>{},description:"Cycle language (in code block)",group:"blocks"}),f.registerHotkey({key:"ctrl+alt+shift+l",action:()=>{},description:"Search language (in code block)",group:"blocks"}),f.registerHotkey({key:"ctrl+shift+q",action:()=>p.toggleBlockquote(),description:"Toggle blockquote",group:"blocks"}),f.registerHotkey({key:"ctrl+shift+enter",action:()=>O(),description:"Insert horizontal rule",group:"blocks"}),f.registerHotkey({key:"ctrl+k",action:()=>_.insertLink(),description:"Insert/edit link",group:"formatting"}),f.registerHotkey({key:"ctrl+alt+shift+t",action:()=>b.insertTable(),description:"Insert table",group:"tables"}),f.registerHotkey({key:"ctrl+alt+shift+up",action:()=>{b.isInTable()&&b.insertRowAbove()},description:"Insert row above",group:"tables"}),f.registerHotkey({key:"ctrl+alt+shift+down",action:()=>{b.isInTable()&&b.insertRowBelow()},description:"Insert row below",group:"tables"}),f.registerHotkey({key:"ctrl+alt+shift+left",action:()=>{b.isInTable()&&b.insertColumnLeft()},description:"Insert column left",group:"tables"}),f.registerHotkey({key:"ctrl+alt+shift+right",action:()=>{b.isInTable()&&b.insertColumnRight()},description:"Insert column right",group:"tables"}),f.registerHotkey({key:"ctrl+alt+backspace",action:()=>{b.isInTable()&&b.deleteCurrentRow()},description:"Delete row",group:"tables"}),f.registerHotkey({key:"ctrl+shift+backspace",action:()=>{b.isInTable()&&b.deleteCurrentColumn()},description:"Delete column",group:"tables"}),f.registerHotkey({key:"ctrl+alt+shift+backspace",action:()=>{b.isInTable()&&b.deleteTable()},description:"Delete table",group:"tables"}),f.registerHotkey({key:"ctrl+alt+l",action:()=>{b.isInTable()&&b.setColumnAlignmentLeft()},description:"Align column left",group:"tables"}),f.registerHotkey({key:"ctrl+alt+c",action:()=>{b.isInTable()&&b.setColumnAlignmentCenter()},description:"Align column center",group:"tables"}),f.registerHotkey({key:"ctrl+alt+r",action:()=>{b.isInTable()&&b.setColumnAlignmentRight()},description:"Align column right",group:"tables"}),f.registerHotkey({key:"ctrl+?",action:()=>{l.value=!0},description:"Show keyboard shortcuts",group:"other"})}function O(){var Z,re,ue,de,je;if(!e.value)return;const M=window.getSelection();if(!M||M.rangeCount===0)return;let v=M.getRangeAt(0).startContainer,H=null;for(;v&&v!==e.value;){const Ie=v,V=(Z=Ie.tagName)==null?void 0:Z.toUpperCase();if(V==="P"||/^H[1-6]$/.test(V)||V==="LI"||V==="BLOCKQUOTE"){H=Ie;break}if((re=Ie.hasAttribute)!=null&&re.call(Ie,"data-code-block-id")){H=Ie;break}v=Ie.parentElement}const K=H||e.value.lastElementChild;if(K){const Ie=document.createElement("hr"),V=document.createElement("p");V.appendChild(document.createElement("br"));let G=K;if(((ue=K.tagName)==null?void 0:ue.toUpperCase())==="LI"){const Q=K.closest("ul, ol");Q&&(G=Q)}(de=G.parentNode)==null||de.insertBefore(Ie,G.nextSibling),(je=Ie.parentNode)==null||je.insertBefore(V,Ie.nextSibling)}else{const Ie=document.createElement("hr"),V=document.createElement("p");V.appendChild(document.createElement("br")),e.value.appendChild(Ie),e.value.appendChild(V)}r.nextTick(()=>{var V;const Ie=(V=e.value)==null?void 0:V.querySelector("hr + p");if(Ie){const G=document.createRange();G.selectNodeContents(Ie),G.collapse(!0);const Q=window.getSelection();Q==null||Q.removeAllRanges(),Q==null||Q.addRange(G)}}),d.debouncedSyncFromHtml()}function F(){if(!e.value)return;const M=window.getSelection();if(!M||M.rangeCount===0)return;const v=M.getRangeAt(0);v.deleteContents();const H=document.createTextNode(" ");v.insertNode(H),v.setStartAfter(H),v.setEndAfter(H),M.removeAllRanges(),M.addRange(v),d.debouncedSyncFromHtml()}function P(){let M=h.checkAndConvertHeadingPattern();M||(M=g.checkAndConvertListPattern()),M||d.debouncedSyncFromHtml()}function A(){var K;const M=window.getSelection();if(!M||M.rangeCount===0)return null;const v=M.getRangeAt(0);if(!v.collapsed||v.startOffset!==0)return null;let H=v.startContainer;if(H.nodeType===Node.TEXT_NODE){if(v.startOffset!==0)return null;const Z=H.parentElement;if(!Z)return null;H=Z}for(;H&&H!==e.value;){const Z=H,re=(K=Z.tagName)==null?void 0:K.toUpperCase();if(re==="P"||/^H[1-6]$/.test(re)){const ue=document.createRange();return ue.selectNodeContents(Z),ue.collapse(!0),v.compareBoundaryPoints(Range.START_TO_START,ue)===0?Z:null}H=Z.parentElement}return null}function L(){var Z;const M=A();if(!M)return!1;const v=M.previousElementSibling;if(!(v!=null&&v.hasAttribute("data-code-block-id")))return!1;const H=!((Z=M.textContent)!=null&&Z.trim()),K=v.querySelector("pre[contenteditable='true']");return K?(H&&M.remove(),r.nextTick(()=>{K.focus();const re=window.getSelection();if(re){const ue=document.createRange();ue.selectNodeContents(K),ue.collapse(!1),re.removeAllRanges(),re.addRange(ue)}}),d.debouncedSyncFromHtml(),!0):!1}function D(M){const v=M.target,H=v.closest("[data-code-block-id]"),K=(M.ctrlKey||M.metaKey)&&M.altKey&&M.key.toLowerCase()==="l";if(H&&K){M.preventDefault(),M.stopPropagation();const Z=v.closest("[data-code-block-id]"),re=Z==null?void 0:Z.getAttribute("data-code-block-id");if(re){const ue=u.codeBlocks.get(re);if(ue){const de=ue.language||"yaml";let je;de==="json"||de==="yaml"?je=de==="yaml"?"json":"yaml":de==="text"||de==="markdown"?je=de==="text"?"markdown":"text":je=de,je!==de&&u.updateCodeBlockLanguage(re,je)}}return}if(!H){if(M.key==="Backspace"&&!M.shiftKey&&!M.ctrlKey&&!M.altKey&&!M.metaKey&&L()){M.preventDefault();return}if((M.key==="ArrowUp"||M.key==="ArrowDown")&&!M.ctrlKey&&!M.altKey&&!M.shiftKey&&!M.metaKey&&b.isInTable()&&(M.key==="ArrowUp"?b.navigateToCellAbove():b.navigateToCellBelow())){M.preventDefault();return}if(M.key==="Enter"&&!M.shiftKey&&!M.ctrlKey&&!M.altKey&&!M.metaKey){if(u.checkAndConvertCodeBlockPattern()){M.preventDefault();return}if(u.handleCodeBlockEnter()){M.preventDefault();return}if(b.isInTable()){M.preventDefault(),b.handleTableEnter();return}if(g.handleListEnter()){M.preventDefault();return}}if(M.key==="Tab"&&!M.ctrlKey&&!M.altKey&&!M.metaKey){if(M.preventDefault(),b.isInTable()){b.handleTableTab(M.shiftKey);return}M.shiftKey?g.outdentListItem():g.indentListItem()||F();return}f.handleKeyDown(M)}}function I(){d.syncFromHtml()}function W(M){d.syncFromMarkdown(M),r.nextTick(()=>{e.value&&(e.value.innerHTML=d.renderedHtml.value)})}function U(){l.value=!0}function j(){l.value=!1}return n&&d.syncFromMarkdown(n),{renderedHtml:d.renderedHtml,isInternalUpdate:d.isInternalUpdate,isShowingHotkeyHelp:l,charCount:B,onInput:P,onKeyDown:D,onBlur:I,setMarkdown:W,insertHorizontalRule:O,showHotkeyHelp:U,hideHotkeyHelp:j,hotkeyDefinitions:N,headings:h,inlineFormatting:m,links:_,lists:g,codeBlocks:u,codeBlockManager:k,blockquotes:p,tables:b}}const Wk=["contenteditable","data-placeholder","innerHTML"],Vf=r.defineComponent({__name:"MarkdownEditorContent",props:{html:{},readonly:{type:Boolean,default:!1},placeholder:{default:"Start typing..."}},emits:["input","keydown","blur"],setup(t,{expose:e}){const n=t,o=r.ref(null);function s(a){if(!a||!o.value)return null;let c=a;for(;c&&c!==o.value;){if(c.nodeType===Node.ELEMENT_NODE&&c.tagName==="A")return c;c=c.parentNode}return null}function i(a){if(!(a.ctrlKey||a.metaKey))return;const u=s(a.target);if(!u)return;const d=u.getAttribute("href");d&&(a.preventDefault(),a.stopPropagation(),window.open(d,"_blank","noopener,noreferrer"))}const l=r.computed(()=>!n.html||n.html==="<p></p>"||n.html==="<p><br></p>");return e({containerRef:o}),(a,c)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"containerRef",ref:o,class:r.normalizeClass(["dx-markdown-editor-content dx-markdown-content",{"is-readonly":a.readonly,"is-empty":l.value}]),contenteditable:!a.readonly,"data-placeholder":a.placeholder,onInput:c[0]||(c[0]=u=>a.$emit("input")),onKeydown:c[1]||(c[1]=u=>a.$emit("keydown",u)),onBlur:c[2]||(c[2]=u=>a.$emit("blur")),onClick:i,innerHTML:a.html},null,42,Wk))}}),jk={class:"dx-markdown-editor-footer flex items-center justify-between px-2 py-1"},Gk={class:"char-count text-xs text-gray-500"},Pf=r.defineComponent({__name:"MarkdownEditorFooter",props:{charCount:{}},emits:["show-hotkeys"],setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",jk,[r.createElementVNode("span",Gk,r.toDisplayString(e.charCount.toLocaleString())+" chars ",1),r.createElementVNode("button",{class:"hotkey-help-btn text-gray-500 hover:text-gray-300 transition-colors p-1 rounded",title:"Keyboard shortcuts (Ctrl+?)",type:"button",onClick:n[0]||(n[0]=o=>e.$emit("show-hotkeys"))},[r.createVNode(r.unref(gb),{class:"w-4 h-4"})])]))}}),Kk={class:"popover-header"},Zk={class:"popover-content"},Yk={class:"grid-selector"},Qk=["onMouseenter","onClick"],Xk={class:"dimension-label"},Jk={class:"manual-inputs"},e4={class:"input-group"},t4=["onKeydown"],n4={class:"input-group"},o4=["onKeydown"],Rf=5,Uf=20,zf=10,Vs=3,Hf=r.defineComponent({__name:"TablePopover",props:{position:{}},emits:["submit","cancel"],setup(t,{emit:e}){const n=t,o=e,s=r.ref(null),i=r.ref(Vs),l=r.ref(Vs),a=r.ref(Vs),c=r.ref(Vs),u=r.computed(()=>{let y=n.position.y+10,w=n.position.x-280/2;return y+340>window.innerHeight-10&&(y=n.position.y-340-10),w<10&&(w=10),w+280>window.innerWidth-10&&(w=window.innerWidth-280-10),{top:`${y}px`,left:`${w}px`}});function d(p,_){i.value=p,l.value=_,a.value=p,c.value=_}function f(p,_){o("submit",p,_)}function h(){const p=Math.min(Math.max(1,a.value),Uf),_=Math.min(Math.max(1,c.value),zf);o("submit",p,_)}function m(){o("cancel")}function g(p){p.key==="Escape"&&m()}return r.onMounted(()=>{document.addEventListener("keydown",g)}),r.onUnmounted(()=>{document.removeEventListener("keydown",g)}),(p,_)=>(r.openBlock(),r.createElementBlock("div",{class:"dx-table-popover-overlay",onClick:r.withModifiers(m,["self"]),onKeydown:r.withKeys(m,["escape"])},[r.createElementVNode("div",{ref_key:"popoverRef",ref:s,class:"dx-table-popover",style:r.normalizeStyle(u.value)},[r.createElementVNode("div",Kk,[_[2]||(_[2]=r.createElementVNode("h3",null,"Insert Table",-1)),r.createElementVNode("button",{class:"close-btn",type:"button","aria-label":"Close",onClick:m},[r.createVNode(r.unref(ts),{class:"w-4 h-4"})])]),r.createElementVNode("div",Zk,[r.createElementVNode("div",Yk,[(r.openBlock(),r.createElementBlock(r.Fragment,null,r.renderList(Rf,b=>r.createElementVNode("div",{key:b,class:"grid-row"},[(r.openBlock(),r.createElementBlock(r.Fragment,null,r.renderList(Rf,y=>r.createElementVNode("div",{key:y,class:r.normalizeClass(["grid-cell",{selected:b<=i.value&&y<=l.value}]),onMouseenter:w=>d(b,y),onClick:w=>f(b,y)},null,42,Qk)),64))])),64))]),r.createElementVNode("div",Xk,r.toDisplayString(i.value)+" x "+r.toDisplayString(l.value),1),_[5]||(_[5]=r.createElementVNode("div",{class:"divider"},[r.createElementVNode("span",null,"or enter manually")],-1)),r.createElementVNode("div",Jk,[r.createElementVNode("div",e4,[_[3]||(_[3]=r.createElementVNode("label",{for:"table-rows"},"Rows",-1)),r.withDirectives(r.createElementVNode("input",{id:"table-rows","onUpdate:modelValue":_[0]||(_[0]=b=>a.value=b),type:"number",min:"1",max:Uf,onKeydown:[r.withKeys(r.withModifiers(h,["prevent"]),["enter"]),r.withKeys(m,["escape"])]},null,40,t4),[[r.vModelText,a.value,void 0,{number:!0}]])]),r.createElementVNode("div",n4,[_[4]||(_[4]=r.createElementVNode("label",{for:"table-cols"},"Cols",-1)),r.withDirectives(r.createElementVNode("input",{id:"table-cols","onUpdate:modelValue":_[1]||(_[1]=b=>c.value=b),type:"number",min:"1",max:zf,onKeydown:[r.withKeys(r.withModifiers(h,["prevent"]),["enter"]),r.withKeys(m,["escape"])]},null,40,o4),[[r.vModelText,c.value,void 0,{number:!0}]])])])]),r.createElementVNode("div",{class:"popover-footer"},[r.createElementVNode("button",{type:"button",class:"btn-cancel",onClick:m}," Cancel "),r.createElementVNode("button",{type:"button",class:"btn-insert",onClick:h}," Insert ")])],4)],32))}}),r4=r.defineComponent({__name:"MarkdownEditor",props:{modelValue:{default:""},placeholder:{default:"Start typing..."},readonly:{type:Boolean,default:!1},minHeight:{default:"100px"},maxHeight:{default:"none"}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){r.useCssVars(g=>({d4233080:g.minHeight,"67e35152":g.maxHeight}));const o=t,s=n,i=r.ref(null),l=r.ref(null),a=r.computed(()=>{var g;return((g=i.value)==null?void 0:g.containerRef)||null}),c=af(),u=cf(),d=vf({contentRef:a,initialValue:o.modelValue,onEmitValue:g=>{s("update:modelValue",g)},onShowLinkPopover:c.show,onShowTablePopover:u.show}),f=rf({contentRef:a,menuContainerRef:l,onSelectionChange:()=>h.updatePositionAndState()}),h=lf({contentRef:a,editor:d,isEditorFocused:f.isEditorFocused}),m=of({editor:d,readonly:r.computed(()=>o.readonly)});return r.onMounted(()=>{h.setupListeners()}),r.onUnmounted(()=>{h.cleanupListeners()}),r.watch(()=>o.modelValue,g=>{if(d.isInternalUpdate.value){d.isInternalUpdate.value=!1;return}g!==void 0&&d.setMarkdown(g)}),e({editor:d,setMarkdown:d.setMarkdown}),(g,p)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["dx-markdown-editor",{"is-readonly":g.readonly}])},[r.createElementVNode("div",{class:"dx-markdown-editor-body",onContextmenu:p[0]||(p[0]=(..._)=>r.unref(m).show&&r.unref(m).show(..._))},[r.createElementVNode("div",{ref_key:"menuContainerRef",ref:l,class:"dx-line-type-menu-container",style:r.normalizeStyle(r.unref(h).menuStyle.value)},[r.createVNode(tf,{"current-type":r.unref(h).currentLineType.value,onChange:r.unref(h).onLineTypeChange},null,8,["current-type","onChange"])],4),r.createVNode(Vf,{ref_key:"contentRef",ref:i,html:r.unref(d).renderedHtml.value,readonly:g.readonly,placeholder:g.placeholder,onInput:r.unref(d).onInput,onKeydown:r.unref(d).onKeyDown,onBlur:r.unref(d).onBlur},null,8,["html","readonly","placeholder","onInput","onKeydown","onBlur"])],32),r.createVNode(Pf,{"char-count":r.unref(d).charCount.value,onShowHotkeys:r.unref(d).showHotkeyHelp},null,8,["char-count","onShowHotkeys"]),r.unref(d).isShowingHotkeyHelp.value?(r.openBlock(),r.createBlock(ef,{key:0,hotkeys:r.unref(d).hotkeyDefinitions.value,onClose:r.unref(d).hideHotkeyHelp},null,8,["hotkeys","onClose"])):r.createCommentVNode("",!0),r.unref(c).isVisible.value?(r.openBlock(),r.createBlock(nf,{key:1,position:r.unref(c).position.value,"existing-url":r.unref(c).existingUrl.value,"selected-text":r.unref(c).selectedText.value,onSubmit:r.unref(c).submit,onCancel:r.unref(c).cancel},null,8,["position","existing-url","selected-text","onSubmit","onCancel"])):r.createCommentVNode("",!0),r.unref(u).isVisible.value?(r.openBlock(),r.createBlock(Hf,{key:2,position:r.unref(u).position.value,onSubmit:r.unref(u).submit,onCancel:r.unref(u).cancel},null,8,["position","onSubmit","onCancel"])):r.createCommentVNode("",!0),r.unref(m).isVisible.value?(r.openBlock(),r.createBlock(Jd,{key:3,position:r.unref(m).position.value,items:r.unref(m).items.value,onClose:r.unref(m).hide},null,8,["position","items","onClose"])):r.createCommentVNode("",!0)],2))}}),s4={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"};function i4(t,e){return r.openBlock(),r.createElementBlock("svg",s4,e[0]||(e[0]=[r.createElementVNode("path",{fill:"currentColor",d:"M10 12 6 8h8z"},null,-1)]))}const qf={render:i4},l4={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function a4(t,e){return r.openBlock(),r.createElementBlock("svg",l4,e[0]||(e[0]=[r.createElementVNode("path",{fill:"currentColor",d:"M7.5 16q-.625 0-1.062-.438A1.44 1.44 0 0 1 6 14.5q0-.625.438-1.062A1.44 1.44 0 0 1 7.5 13q.625 0 1.062.438Q9 13.875 9 14.5t-.438 1.062A1.44 1.44 0 0 1 7.5 16m5 0q-.625 0-1.062-.438A1.44 1.44 0 0 1 11 14.5q0-.625.438-1.062A1.44 1.44 0 0 1 12.5 13q.625 0 1.062.438.438.437.438 1.062t-.438 1.062A1.44 1.44 0 0 1 12.5 16m-5-4.5q-.625 0-1.062-.438A1.44 1.44 0 0 1 6 10q0-.625.438-1.062A1.44 1.44 0 0 1 7.5 8.5q.625 0 1.062.438Q9 9.375 9 10t-.438 1.062A1.44 1.44 0 0 1 7.5 11.5m5 0q-.625 0-1.062-.438A1.44 1.44 0 0 1 11 10q0-.625.438-1.062A1.44 1.44 0 0 1 12.5 8.5q.625 0 1.062.438Q14 9.375 14 10t-.438 1.062a1.44 1.44 0 0 1-1.062.438M7.5 7q-.625 0-1.062-.438A1.44 1.44 0 0 1 6 5.5q0-.625.438-1.062A1.44 1.44 0 0 1 7.5 4q.625 0 1.062.438Q9 4.875 9 5.5t-.438 1.062A1.44 1.44 0 0 1 7.5 7m5 0q-.625 0-1.062-.438A1.44 1.44 0 0 1 11 5.5q0-.625.438-1.062A1.44 1.44 0 0 1 12.5 4q.625 0 1.062.438Q14 4.875 14 5.5t-.438 1.062A1.44 1.44 0 0 1 12.5 7"},null,-1)]))}const Wf={render:a4},c4={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 7 16"};function u4(t,e){return r.openBlock(),r.createElementBlock("svg",c4,e[0]||(e[0]=[r.createElementVNode("path",{fill:"currentColor",d:"M.5 1v14c0 .55.45 1 1 1s1-.45 1-1V1c0-.55-.45-1-1-1S.5.45.5 1m6 14V1c0-.55-.45-1-1-1s-1 .45-1 1v14c0 .55.45 1 1 1s1-.45 1-1"},null,-1)]))}const jf={render:u4},d4={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function f4(t,e){return r.openBlock(),r.createElementBlock("svg",d4,e[0]||(e[0]=[r.createElementVNode("path",{fill:"currentColor",d:"M9.167 17.5v-5h1.666v1.667H17.5v1.666h-6.667V17.5zM2.5 15.833v-1.666h5v1.666zM5.833 12.5v-1.667H2.5V9.167h3.333V7.5H7.5v5zm3.334-1.667V9.167H17.5v1.666zM12.5 7.5v-5h1.667v1.667H17.5v1.666h-3.333V7.5zm-10-1.667V4.167h8.333v1.666z"},null,-1)]))}const Gf={render:f4},tt=(t,e)=>{const n=t.__vccOpts||t;for(const[o,s]of e)n[o]=s;return n},h4={},m4={viewBox:"0 0 47 65",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"};function p4(t,e){return r.openBlock(),r.createElementBlock("svg",m4,e[0]||(e[0]=[r.createStaticVNode('<defs><linearGradient id="gdoc-gradient" x1="50%" y1="8.59%" x2="50%" y2="100%"><stop stop-color="#1A237E" stop-opacity="0.2" offset="0%"></stop><stop stop-color="#1A237E" stop-opacity="0.02" offset="100%"></stop></linearGradient><radialGradient id="gdoc-radial" cx="3.17%" cy="2.72%" r="161.25%"><stop stop-color="#FFFFFF" stop-opacity="0.1" offset="0%"></stop><stop stop-color="#FFFFFF" stop-opacity="0" offset="100%"></stop></radialGradient></defs><path d="M29.375,0 L4.406,0 C1.983,0 0,1.994 0,4.432 L0,60.568 C0,63.006 1.983,65 4.406,65 L42.594,65 C45.017,65 47,63.006 47,60.568 L47,17.727 L36.719,10.341 L29.375,0 Z" fill="#4285F4"></path><polygon fill="url(#gdoc-gradient)" points="30.664 16.431 47 32.858 47 17.727"></polygon><path d="M11.75,47.273 L35.25,47.273 L35.25,44.318 L11.75,44.318 L11.75,47.273 Z M11.75,53.182 L29.375,53.182 L29.375,50.227 L11.75,50.227 L11.75,53.182 Z M11.75,32.5 L11.75,35.455 L35.25,35.455 L35.25,32.5 L11.75,32.5 Z M11.75,41.364 L35.25,41.364 L35.25,38.409 L11.75,38.409 L11.75,41.364 Z" fill="#F1F1F1"></path><path d="M29.375,0 L29.375,13.295 C29.375,15.744 31.347,17.727 33.781,17.727 L47,17.727 L29.375,0 Z" fill="#A1C2FA"></path><path d="M4.406,0 C1.983,0 0,1.994 0,4.432 L0,4.801 C0,2.364 1.983,0.369 4.406,0.369 L29.375,0.369 L29.375,0 L4.406,0 Z" fill="#FFFFFF" fill-opacity="0.2"></path><path d="M42.594,64.631 L4.406,64.631 C1.983,64.631 0,62.636 0,60.199 L0,60.568 C0,63.006 1.983,65 4.406,65 L42.594,65 C45.017,65 47,63.006 47,60.568 L47,60.199 C47,62.636 45.017,64.631 42.594,64.631 Z" fill="#1A237E" fill-opacity="0.2"></path><path d="M33.781,17.727 C31.347,17.727 29.375,15.744 29.375,13.295 L29.375,13.665 C29.375,16.113 31.347,18.097 33.781,18.097 L47,18.097 L47,17.727 L33.781,17.727 Z" fill="#1A237E" fill-opacity="0.1"></path><path d="M29.375,0 L4.406,0 C1.983,0 0,1.994 0,4.432 L0,60.568 C0,63.006 1.983,65 4.406,65 L42.594,65 C45.017,65 47,63.006 47,60.568 L47,17.727 L29.375,0 Z" fill="url(#gdoc-radial)"></path>',9)]))}const Kf=tt(h4,[["render",p4]]),_4={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function g4(t,e){return r.openBlock(),r.createElementBlock("svg",_4,e[0]||(e[0]=[r.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M17.859 18.558c.394 0 .713-.32.713-.714V2.141a.714.714 0 0 0-.713-.713H2.156a.714.714 0 0 0-.714.713v15.703c0 .394.32.714.714.714zM20 17.844a2.14 2.14 0 0 1-2.141 2.141H2.156a2.14 2.14 0 0 1-2.141-2.14V2.14C.015.96.973.001 2.156.001h15.703C19.04 0 20 .958 20 2.14z","clip-rule":"evenodd"},null,-1),r.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M13.205 4.996a1.784 1.784 0 1 0 0 3.569 1.784 1.784 0 0 0 0-3.57M9.993 6.78a3.212 3.212 0 1 1 6.424 0 3.212 3.212 0 0 1-6.424 0M2.848 9.993A11.22 11.22 0 0 1 14.12 19.14a.714.714 0 0 1-1.403.264 9.79 9.79 0 0 0-9.846-7.984h-.018c-.673-.001-1.344.061-2.005.188a.714.714 0 1 1-.268-1.402 12 12 0 0 1 2.268-.213","clip-rule":"evenodd"},null,-1),r.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M10.954 13.82c1.5-.645 3.117-.976 4.75-.972 1.29 0 2.573.21 3.796.622a.714.714 0 1 1-.456 1.353 10.4 10.4 0 0 0-3.34-.548h-.002a10.55 10.55 0 0 0-4.185.856.714.714 0 1 1-.563-1.312","clip-rule":"evenodd"},null,-1)]))}const ra={render:g4},b4={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 550.801 550.801"};function y4(t,e){return r.openBlock(),r.createElementBlock("svg",b4,e[0]||(e[0]=[r.createElementVNode("path",{d:"M160.381 282.225c0-14.832-10.299-23.684-28.474-23.684-7.414 0-12.437.715-15.071 1.432V307.6c3.114.707 6.942.949 12.192.949 19.391 0 31.353-9.809 31.353-26.324M272.875 259.019c-8.145 0-13.397.717-16.519 1.435v105.523c3.116.729 8.142.729 12.69.729 33.017.231 54.554-17.946 54.554-56.474.242-33.513-19.385-51.213-50.725-51.213"},null,-1),r.createElementVNode("path",{d:"M488.426 197.019H475.2v-63.816c0-.398-.063-.799-.116-1.202-.021-2.534-.827-5.023-2.562-6.995L366.325 3.694c-.032-.031-.063-.042-.085-.076-.633-.707-1.371-1.295-2.151-1.804a10 10 0 0 0-.706-.419 11 11 0 0 0-2.131-.896c-.2-.056-.38-.138-.58-.19A10.8 10.8 0 0 0 358.193 0H97.2C85.282 0 75.6 9.693 75.6 21.601v175.413H62.377c-17.049 0-30.873 13.818-30.873 30.873v160.545c0 17.043 13.824 30.87 30.873 30.87h13.224V529.2c0 11.907 9.682 21.601 21.6 21.601h356.4c11.907 0 21.6-9.693 21.6-21.601V419.302h13.226c17.044 0 30.871-13.827 30.871-30.87v-160.54c-.001-17.054-13.828-30.873-30.872-30.873M97.2 21.605h250.193v110.513c0 5.967 4.841 10.8 10.8 10.8H453.6v54.108H97.2zm265.159 287.418c0 30.876-11.243 52.165-26.82 65.333-16.971 14.117-42.82 20.814-74.396 20.814-18.9 0-32.297-1.197-41.401-2.389V234.365c13.399-2.149 30.878-3.346 49.304-3.346 30.612 0 50.478 5.508 66.039 17.226 16.743 12.445 27.274 32.302 27.274 60.778M80.7 393.499V234.365c11.241-1.904 27.042-3.346 49.296-3.346 22.491 0 38.527 4.308 49.291 12.928 10.292 8.131 17.215 21.534 17.215 37.328 0 15.799-5.25 29.198-14.829 38.285-12.442 11.728-30.865 16.996-52.407 16.996-4.778 0-9.1-.243-12.435-.723v57.67H80.7zm372.901 129.854H97.2V419.302h356.4v104.051zm31.297-261.226h-61.989v36.851h57.913v29.674h-57.913V393.5h-36.593V232.216h98.582z"},null,-1)]))}const Zf={render:y4},w4={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",fill:"currentColor",viewBox:"0 0 394.4 394.4"};function k4(t,e){return r.openBlock(),r.createElementBlock("svg",w4,e[0]||(e[0]=[r.createElementVNode("path",{d:"M37.4 377.4a20.33 20.33 0 0 1-14.423-5.977c-7.97-7.963-7.97-20.883 0-28.846l319.6-319.601c7.97-7.97 20.876-7.97 28.846 0 7.97 7.962 7.97 20.882 0 28.845l-319.6 319.601A20.32 20.32 0 0 1 37.4 377.4m357-78.201c0-52.496-42.704-95.199-95.2-95.199S204 246.703 204 299.199s42.704 95.201 95.2 95.201 95.2-42.705 95.2-95.201m-40.799 0c0 29.996-24.405 54.4-54.4 54.4s-54.4-24.404-54.4-54.4c0-29.994 24.405-54.398 54.4-54.398s54.4 24.404 54.4 54.398M190.4 95.2C190.4 42.704 147.696 0 95.2 0S0 42.704 0 95.2s42.704 95.2 95.2 95.2 95.2-42.704 95.2-95.2m-40.8 0c0 29.995-24.405 54.4-54.4 54.4s-54.4-24.405-54.4-54.4 24.405-54.4 54.4-54.4 54.4 24.406 54.4 54.4"},null,-1)]))}const Yf={render:k4},x4={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function C4(t,e){return r.openBlock(),r.createElementBlock("svg",x4,e[0]||(e[0]=[r.createElementVNode("path",{fill:"currentColor",d:"M16.5 18V6h2v12zm-11 0V6l9 6z"},null,-1)]))}const Qf={render:C4},S4={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function E4(t,e){return r.openBlock(),r.createElementBlock("svg",S4,e[0]||(e[0]=[r.createElementVNode("path",{fill:"currentColor",d:"M5.5 18V6h2v12zm13 0-9-6 9-6z"},null,-1)]))}const Xf={render:E4},T4={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 16 18"};function B4(t,e){return r.openBlock(),r.createElementBlock("svg",T4,e[0]||(e[0]=[r.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m13.833 4.833-.722 10.119a1.667 1.667 0 0 1-1.663 1.548H4.552a1.667 1.667 0 0 1-1.663-1.548L2.167 4.833m4.166 3.334v5m3.334-5v5m.833-8.334v-2.5a.833.833 0 0 0-.833-.833H6.333a.833.833 0 0 0-.833.833v2.5m-4.167 0h13.334"},null,-1)]))}const Ps={render:B4},N4={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function $4(t,e){return r.openBlock(),r.createElementBlock("svg",N4,e[0]||(e[0]=[r.createElementVNode("path",{fill:"currentColor",d:"M0 18.273 10 1l10 17.273zm3.136-1.819h13.728L10 4.637zM10 15.545a.88.88 0 0 0 .648-.261.88.88 0 0 0 .261-.648.88.88 0 0 0-.26-.647.88.88 0 0 0-.649-.262.88.88 0 0 0-.647.262.88.88 0 0 0-.262.647q0 .387.262.648.261.261.647.261m-.91-2.727h1.82V8.273H9.09z"},null,-1)]))}const Jf={render:$4},I4={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 17 17"};function A4(t,e){return r.openBlock(),r.createElementBlock("svg",I4,e[0]||(e[0]=[r.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M16.822.178a.607.607 0 0 1 0 .858L1.036 16.822a.607.607 0 1 1-.858-.858L15.964.178a.607.607 0 0 1 .858 0","clip-rule":"evenodd"},null,-1),r.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M.178.178a.607.607 0 0 1 .858 0l15.786 15.786a.607.607 0 0 1-.858.858L.178 1.036a.607.607 0 0 1 0-.858","clip-rule":"evenodd"},null,-1)]))}const ko={render:A4},L4={class:"dx-previous-next-controls"},eh={__name:"PreviousNextControls",props:{isLoading:Boolean},emits:["next"],setup(t){return(e,n)=>{const o=r.resolveComponent("QBtn");return r.openBlock(),r.createElementBlock("div",L4,[r.createVNode(o,{class:"dx-control dx-control-previous border border-solid !rounded-r-none !p-2 !min-w-0",disable:t.isLoading,loading:t.isLoading,onClick:n[0]||(n[0]=s=>e.$emit("next",-1))},{default:r.withCtx(()=>[r.createVNode(r.unref(Xf),{class:"w-6"})]),_:1},8,["disable","loading"]),r.createVNode(o,{class:"dx-control dx-control-next border border-solid border-l-0 !rounded-l-none !p-2 !min-w-0",disable:t.isLoading,loading:t.isLoading,onClick:n[1]||(n[1]=s=>e.$emit("next",1))},{default:r.withCtx(()=>[r.createVNode(r.unref(Qf),{class:"w-6"})]),_:1},8,["disable","loading"])])}}};function F4(t,e){return r.openBlock(),r.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[r.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10 19l-7-7m0 0l7-7m-7 7h18"})])}function th(t,e){return r.openBlock(),r.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[r.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})])}function M4(t,e){return r.openBlock(),r.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[r.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"})])}function Rs(t,e){return r.openBlock(),r.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[r.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 19l-7-7 7-7"})])}function nh(t,e){return r.openBlock(),r.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[r.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 5l7 7-7 7"})])}function O4(t,e){return r.openBlock(),r.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[r.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}function D4(t,e){return r.openBlock(),r.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[r.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})])}function v4(t,e){return r.openBlock(),r.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[r.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})])}function V4(t,e){return r.openBlock(),r.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[r.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})])}function P4(t,e){return r.openBlock(),r.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[r.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"})])}function R4(t,e){return r.openBlock(),r.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[r.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),r.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})])}function oh(t,e){return r.openBlock(),r.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[r.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 4v16M17 4v16M3 8h4m10 0h4M3 12h18M3 16h4m10 0h4M4 20h16a1 1 0 001-1V5a1 1 0 00-1-1H4a1 1 0 00-1 1v14a1 1 0 001 1z"})])}function U4(t,e){return r.openBlock(),r.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[r.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 20l4-16m2 16l4-16M6 9h14M4 15h14"})])}function z4(t,e){return r.openBlock(),r.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[r.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})])}function H4(t,e){return r.openBlock(),r.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[r.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z"}),r.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}function q4(t,e){return r.openBlock(),r.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[r.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4v16m8-8H4"})])}function rh(t,e){return r.openBlock(),r.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[r.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})])}const W4={class:"flex-grow"},j4={key:1,class:"dx-dialog-subtitle"},G4={class:"flex dx-dialog-actions"},sh=r.defineComponent({__name:"DialogLayout",props:{modelValue:{type:[String,Boolean,Object]},title:{default:""},titleClass:{default:""},subtitle:{default:""},content:{default:""},backdropDismiss:{type:Boolean},maximized:{type:Boolean},fullWidth:{type:Boolean},fullHeight:{type:Boolean},contentClass:{default:""}},emits:["close"],setup(t,{emit:e}){const n=e;function o(){n("close")}return(s,i)=>{const l=r.resolveComponent("QCardSection"),a=r.resolveComponent("QCard"),c=r.resolveComponent("QDialog");return r.openBlock(),r.createBlock(c,{class:"dx-dialog","full-height":s.fullHeight,"full-width":s.fullWidth,"model-value":!0,"no-backdrop-dismiss":!s.backdropDismiss,maximized:s.maximized,"onUpdate:modelValue":o},{default:r.withCtx(()=>[r.createVNode(a,{class:"dx-dialog-card flex flex-col flex-nowrap"},{default:r.withCtx(()=>[r.createVNode(l,{class:"dx-dialog-header flex items-center"},{default:r.withCtx(()=>[r.createElementVNode("div",W4,[s.title||s.$slots.title?(r.openBlock(),r.createElementBlock("h3",{key:0,class:r.normalizeClass(["dx-dialog-title flex items-center",s.titleClass])},[r.renderSlot(s.$slots,"title",{},()=>[r.createTextVNode(r.toDisplayString(s.title),1)])],2)):r.createCommentVNode("",!0),s.subtitle||s.$slots.subtitle?(r.openBlock(),r.createElementBlock("div",j4,[r.renderSlot(s.$slots,"subtitle",{},()=>[r.createTextVNode(r.toDisplayString(s.subtitle),1)])])):r.createCommentVNode("",!0)]),r.createElementVNode("div",null,[r.createElementVNode("div",{class:"dx-close-button cursor-pointer",onClick:o},[r.createVNode(r.unref(rh),{class:"w-5"})])])]),_:3}),s.$slots.toolbar?(r.openBlock(),r.createBlock(l,{key:0},{default:r.withCtx(()=>[r.renderSlot(s.$slots,"toolbar")]),_:3})):r.createCommentVNode("",!0),s.content||s.$slots.default?(r.openBlock(),r.createBlock(l,{key:1,class:r.normalizeClass(["dx-dialog-content flex-grow max-h-full overflow-y-auto",s.contentClass])},{default:r.withCtx(()=>[r.renderSlot(s.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(s.content),1)])]),_:3},8,["class"])):r.createCommentVNode("",!0),r.createElementVNode("div",G4,[r.renderSlot(s.$slots,"actions")])]),_:3})]),_:3},8,["full-height","full-width","no-backdrop-dismiss","maximized"])}}}),K4={class:"dx-dialog-button-cancel"},Z4={key:0,class:"dx-dialog-button-confirm"},Kt=r.defineComponent({__name:"ConfirmDialog",props:{disabled:{type:Boolean},isSaving:{type:Boolean},closeOnConfirm:{type:Boolean},hideConfirm:{type:Boolean},confirmText:{default:"Confirm"},cancelText:{default:"Cancel"},confirmClass:{default:""},contentClass:{default:""},modelValue:{type:[String,Boolean,Object]},title:{},titleClass:{},subtitle:{},content:{},backdropDismiss:{type:Boolean},maximized:{type:Boolean},fullWidth:{type:Boolean},fullHeight:{type:Boolean}},emits:["update:model-value","confirm","close"],setup(t,{emit:e}){const n=e,o=t,s=r.computed(()=>({...o,disabled:void 0})),i=r.computed(()=>["title","subtitle","toolbar"]);function l(){n("confirm"),o.closeOnConfirm&&n("close")}function a(){n("update:model-value",!1),n("close")}return(c,u)=>{const d=r.resolveComponent("QBtn");return r.openBlock(),r.createBlock(r.unref(sh),r.mergeProps({class:"dx-confirm-dialog"},s.value,{onClose:a,onKeyup:r.withKeys(l,["enter"])}),r.createSlots({actions:r.withCtx(()=>[r.createElementVNode("div",K4,[r.createVNode(d,{label:c.cancelText,class:"dx-dialog-button",onClick:a},{default:r.withCtx(()=>[r.renderSlot(c.$slots,"cancel-text")]),_:3},8,["label"])]),r.renderSlot(c.$slots,"actions"),c.hideConfirm?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",Z4,[r.createVNode(d,{label:c.$slots["confirm-text"]?"":c.confirmText,class:r.normalizeClass(["dx-dialog-button",c.confirmClass]),loading:c.isSaving,disable:c.disabled,"data-testid":"confirm-button",onClick:l},{default:r.withCtx(()=>[r.renderSlot(c.$slots,"confirm-text")]),_:3},8,["label","class","loading","disable"])]))]),default:r.withCtx(()=>[r.renderSlot(c.$slots,"default")]),_:2},[r.renderList(i.value,f=>({name:f,fn:r.withCtx(()=>[r.renderSlot(c.$slots,f)])}))]),1040)}}}),Y4=r.defineComponent({__name:"ActionFormDialog",props:{title:{},confirmText:{},form:{},action:{},target:{}},emits:["confirm","close"],setup(t){const e=r.ref("");return(n,o)=>(r.openBlock(),r.createBlock(r.unref(Kt),{title:n.title,"confirm-text":n.confirmText||n.title,onConfirm:o[0]||(o[0]=s=>n.$emit("confirm",{name:e.value})),onClose:o[1]||(o[1]=s=>n.$emit("close"))},{default:r.withCtx(()=>[r.createVNode(r.unref(Nh),{form:n.form,action:n.action,target:n.target},null,8,["form","action","target"])]),_:1},8,["title","confirm-text"]))}}),ih=r.defineComponent({__name:"ConfirmActionDialog",props:{action:{},label:{},target:{},message:{default:"Are you sure you want to"},disabled:{type:Boolean},isSaving:{type:Boolean},closeOnConfirm:{type:Boolean},hideConfirm:{type:Boolean},confirmText:{},cancelText:{},confirmClass:{},contentClass:{},modelValue:{type:[String,Boolean,Object]},title:{},titleClass:{},subtitle:{},content:{},backdropDismiss:{type:Boolean},maximized:{type:Boolean},fullWidth:{type:Boolean},fullHeight:{type:Boolean}},emits:["confirm","close"],setup(t){const e=t,n=r.computed(()=>c_(e.target,e.label||e.action)),o=r.computed(()=>`Confirm ${e.action}`),s=r.computed(()=>`${e.action}`),i=r.computed(()=>`${e.message} ${e.action.toLowerCase()}${n.value?" "+n.value:""}?`),l=r.computed(()=>["title","subtitle","default","toolbar","actions"]);return(a,c)=>(r.openBlock(),r.createBlock(r.unref(Kt),r.mergeProps({class:"dx-confirm-action-dialog"},e,{"confirm-text":a.confirmText||s.value,title:a.title||o.value,content:a.content||i.value,onConfirm:c[0]||(c[0]=u=>a.$emit("confirm")),onClose:c[1]||(c[1]=u=>a.$emit("close"))}),r.createSlots({default:r.withCtx(()=>[r.renderSlot(a.$slots,"default")]),_:2},[r.renderList(l.value,u=>({name:u,fn:r.withCtx(()=>[r.renderSlot(a.$slots,u)])}))]),1040,["confirm-text","title","content"]))}}),lh=r.defineComponent({__name:"CreateNewWithNameDialog",props:{title:{},confirmText:{}},emits:["confirm","close"],setup(t){const e=r.ref("");return(n,o)=>(r.openBlock(),r.createBlock(r.unref(Kt),{title:n.title,"confirm-text":n.confirmText||n.title,onConfirm:o[1]||(o[1]=s=>n.$emit("confirm",{name:e.value})),onClose:o[2]||(o[2]=s=>n.$emit("close"))},{default:r.withCtx(()=>[r.createVNode(r.unref(On),{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=s=>e.value=s),label:"Name"},null,8,["modelValue"]),r.renderSlot(n.$slots,"default")]),_:3},8,["title","confirm-text"]))}});function ah(t,e=r.ref([])){const n=r.ref(t.value),o=r.ref(e.value),s=r.ref([]),i=r.ref(0),l=r.computed(()=>s.value.length>0),a=r.computed(()=>i.value>0),c=r.computed(()=>i.value<o.value.length-1),u=r.computed(()=>o.value.length);function d(b){b>=0&&b<o.value.length&&(i.value=b,n.value=o.value[b])}function f(){c.value&&d(i.value+1)}function h(){a.value&&d(i.value-1)}function m(b,y){s.value.push({file:n.value,relatedFiles:o.value,index:i.value}),n.value=b,o.value=y,i.value=y.findIndex(w=>w.id===b.id),i.value===-1&&(i.value=0)}function g(){if(l.value){const b=s.value.pop();n.value=b.file,o.value=b.relatedFiles,i.value=b.index}}function p(b=null,y=[]){n.value=b,o.value=y,s.value=[],i.value=0}function _(){return{currentFile:n.value,relatedFiles:o.value,parentStack:[...s.value],currentIndex:i.value}}return{currentFile:n,relatedFiles:o,parentStack:s,currentIndex:i,hasParent:l,canNavigatePrevious:a,canNavigateNext:c,totalFiles:u,navigateTo:d,navigateNext:f,navigatePrevious:h,diveInto:m,navigateToParent:g,reset:p,getState:_}}const sa={IMAGE:"https://placehold.co/64x64?text=?",VIDEO_SVG:`data:image/svg+xml;base64,${btoa('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>')}`},yr={IMAGE:/^image\//,VIDEO:/^video\//,TEXT:/^text\//,PDF:/^application\/pdf/};function Us(t){const e=Mn(t);return yr.IMAGE.test(e)}function wr(t){const e=Mn(t);return yr.VIDEO.test(e)}function zs(t){const e=Mn(t);return yr.TEXT.test(e)}function ia(t){const e=Mn(t);return yr.PDF.test(e)}function Mn(t){return t.mime||t.type||""}function Q4(t){var e;return((e=t.split(".").pop())==null?void 0:e.toLowerCase())||""}function kr(t){var e,n;return(e=t.optimized)!=null&&e.url?t.optimized.url:Us(t)?t.blobUrl||t.url||"":((n=t.thumb)==null?void 0:n.url)||""}function ch(t){var e;return(e=t.thumb)!=null&&e.url?t.thumb.url:wr(t)?sa.VIDEO_SVG:kr(t)||sa.IMAGE}function uh(t){var e;return((e=t.optimized)==null?void 0:e.url)||t.blobUrl||t.url||""}function Hs(t){const e=t.url||"",n=Mn(t);return!!(e.includes("docs.google.com")||e.includes("drive.google.com")||n.startsWith("application/vnd.google-apps."))}function X4(t){var e;return Hs(t)?!1:Us(t)||wr(t)||zs(t)||ia(t)||!!((e=t.thumb)!=null&&e.url)}function la(t){const{file:e,src:n}=t,o=r.computed(()=>{var y;return e.value?e.value:n!=null&&n.value?{id:n.value,url:n.value,type:"image/"+((y=n.value.split(".").pop())==null?void 0:y.toLowerCase()),name:"",size:0,__type:"BrowserFile"}:null}),s=r.computed(()=>{var y,w;return((y=o.value)==null?void 0:y.name)||((w=o.value)==null?void 0:w.filename)||""}),i=r.computed(()=>o.value?Mn(o.value):""),l=r.computed(()=>o.value?Us(o.value):!1),a=r.computed(()=>o.value?wr(o.value):!1),c=r.computed(()=>o.value?ia(o.value):!1),u=r.computed(()=>o.value?Hs(o.value):!1),d=r.computed(()=>o.value?uh(o.value):""),f=r.computed(()=>{var y,w;return((w=(y=o.value)==null?void 0:y.thumb)==null?void 0:w.url)||""}),h=r.computed(()=>!!f.value||a.value||l.value),m=r.computed(()=>{var w;return(w=e.value)!=null&&w.meta?Object.keys(e.value.meta).filter(k=>k!=="transcodes").length>0:!1}),g=r.computed(()=>{var y;return(y=e.value)!=null&&y.meta?Object.keys(e.value.meta).filter(w=>w!=="transcodes").length:0}),p=r.computed(()=>{var k;if(!((k=e.value)!=null&&k.meta))return{};const{transcodes:y,...w}=e.value.meta;return w}),_=r.computed(()=>{var y,w;return(((w=(y=e.value)==null?void 0:y.transcodes)==null?void 0:w.length)||0)>0}),b=r.computed(()=>{var w,k;const y=((k=(w=e.value)==null?void 0:w.meta)==null?void 0:k.transcodes)||{};for(const S of Object.keys(y)){const C=y[S];if(!["Complete","Timeout"].includes(C==null?void 0:C.status))return{...C,message:`${S} ${C.status}`}}return null});return{computedImage:o,filename:s,mimeType:i,isImage:l,isVideo:a,isPdf:c,isExternalLink:u,previewUrl:d,thumbUrl:f,isPreviewable:h,hasMetadata:m,metadataKeyCount:g,filteredMetadata:p,hasTranscodes:_,transcodingStatus:b}}function aa(t,e={}){const{enabled:n=!0}=e;function o(s){if(n)switch(s.key){case"ArrowLeft":s.preventDefault(),t.onPrevious();break;case"ArrowRight":s.preventDefault(),t.onNext();break;case"Escape":t.onEscape&&t.onEscape();break}}return r.onMounted(()=>{n&&window.addEventListener("keydown",o)}),r.onUnmounted(()=>{n&&window.removeEventListener("keydown",o)}),{onKeydown:o}}const qs=2;function ca(t,e){const n=r.shallowRef([]),o=r.computed(()=>{const c=Math.max(0,e.value-qs),u=Math.min(t.value.length-1,e.value+qs),d=[];for(let f=c;f<=u;f++)d.push(f);return d});function s(){const c=o.value,u=[];for(const d of c)d>=0&&d<t.value.length&&u.push({file:t.value[d],index:d,isActive:d===e.value,isVisible:!0});n.value=u}function i(c){return o.value.includes(c)}function l(c){return n.value.find(u=>u.index===c)||null}const a=r.computed(()=>{const c=Math.max(0,e.value-qs-1),u=Math.min(t.value.length-1,e.value+qs+1),d=[];for(let f=c;f<=u;f++)d.push(f);return d});return r.watch([e,t],s,{immediate:!0}),{visibleSlides:n,visibleIndices:o,preloadIndices:a,isSlideVisible:i,getSlide:l,updateVisibleSlides:s}}const J4={class:"text-base text-center py-3 px-16 bg-slate-800 opacity-90 text-slate-300 hover:opacity-100 transition-all flex-shrink-0"},ex={class:"flex items-center justify-center gap-3"},tx={class:"flex items-center flex-nowrap gap-1"},nx={class:"flex-grow"},ox={class:"flex items-center flex-nowrap gap-1"},rx={class:"flex items-center flex-nowrap gap-1"},dh=r.defineComponent({__name:"CarouselHeader",props:{filename:{},showBackButton:{type:Boolean,default:!1},showMetadataButton:{type:Boolean,default:!1},metadataCount:{default:0},showTranscodesButton:{type:Boolean,default:!1},transcodesCount:{default:0},showCloseButton:{type:Boolean,default:!1}},emits:["back","metadata","transcodes","close"],setup(t){return(e,n)=>{const o=r.resolveComponent("QBtn"),s=r.resolveComponent("QBadge");return r.openBlock(),r.createElementBlock("div",J4,[r.createElementVNode("div",ex,[e.showBackButton?(r.openBlock(),r.createBlock(o,{key:0,flat:"",dense:"",class:"bg-slate-700 text-slate-300 hover:bg-slate-600",onClick:n[0]||(n[0]=i=>e.$emit("back"))},{default:r.withCtx(()=>[r.createElementVNode("div",tx,[r.createVNode(r.unref(F4),{class:"w-4"}),n[4]||(n[4]=r.createElementVNode("span",{class:"text-sm"},"Back to Parent",-1))])]),_:1})):r.createCommentVNode("",!0),r.createElementVNode("div",nx,r.toDisplayString(e.filename),1),e.showMetadataButton?(r.openBlock(),r.createBlock(o,{key:1,flat:"",dense:"",class:"bg-purple-700 text-purple-200 hover:bg-purple-600",onClick:n[1]||(n[1]=i=>e.$emit("metadata"))},{default:r.withCtx(()=>[r.createElementVNode("div",ox,[r.createVNode(r.unref(Su),{class:"w-4"}),r.createVNode(s,{class:"bg-purple-900 text-purple-200",label:e.metadataCount},null,8,["label"]),n[5]||(n[5]=r.createElementVNode("span",{class:"text-sm ml-1"},"Metadata",-1))])]),_:1})):r.createCommentVNode("",!0),e.showTranscodesButton?(r.openBlock(),r.createBlock(o,{key:2,flat:"",dense:"",class:"bg-purple-700 text-purple-200 hover:bg-purple-600",onClick:n[2]||(n[2]=i=>e.$emit("transcodes"))},{default:r.withCtx(()=>[r.createElementVNode("div",rx,[r.createVNode(r.unref(oh),{class:"w-4"}),r.createVNode(s,{class:"bg-purple-900 text-purple-200",label:e.transcodesCount},null,8,["label"]),n[6]||(n[6]=r.createElementVNode("span",{class:"text-sm ml-1"},"Transcodes",-1))])]),_:1})):r.createCommentVNode("",!0),e.showCloseButton?(r.openBlock(),r.createBlock(o,{key:3,flat:"",dense:"",icon:"",class:"text-slate-300 hover:text-white",onClick:n[3]||(n[3]=i=>e.$emit("close"))},{default:r.withCtx(()=>[r.createVNode(r.unref(ko),{class:"w-5"})]),_:1})):r.createCommentVNode("",!0)])])}}}),sx={class:"file-metadata-container h-full flex flex-col"},ix={class:"bg-sky-50 rounded-lg p-4 mb-4 flex-shrink-0"},lx={class:"text-lg font-semibold text-gray-900 mb-2"},ax={key:0,class:"text-sm text-gray-600"},cx={class:"bg-white rounded-lg border border-gray-200 overflow-hidden flex-1 flex flex-col min-h-0"},ux={class:"bg-gray-50 px-4 py-3 border-b border-gray-200 flex-shrink-0 flex items-center justify-between"},dx={class:"p-4 flex-1 min-h-0 flex flex-col"},ua=r.defineComponent({__name:"FileMetadataDialog",props:{filename:{},mimeType:{},metadata:{},showDockButton:{type:Boolean,default:!1}},emits:["close","dock"],setup(t){return(e,n)=>{const o=r.resolveComponent("QTooltip"),s=r.resolveComponent("QBtn");return r.openBlock(),r.createBlock(r.unref(ma),{title:"File Metadata","hide-done":!0,"done-text":"Close","content-class":"w-[80vw] h-[80vh] max-w-none",onClose:n[1]||(n[1]=i=>e.$emit("close"))},{default:r.withCtx(()=>[r.createElementVNode("div",sx,[r.createElementVNode("div",ix,[r.createElementVNode("h4",lx,r.toDisplayString(e.filename||"Unnamed File"),1),e.mimeType?(r.openBlock(),r.createElementBlock("div",ax," Type: "+r.toDisplayString(e.mimeType),1)):r.createCommentVNode("",!0)]),r.createElementVNode("div",cx,[r.createElementVNode("div",ux,[n[3]||(n[3]=r.createElementVNode("h4",{class:"text-base font-medium text-gray-900"}," Metadata ",-1)),e.showDockButton?(r.openBlock(),r.createBlock(s,{key:0,flat:"",dense:"",round:"",size:"sm",class:"text-gray-500 hover:text-gray-700 hover:bg-gray-200",onClick:n[0]||(n[0]=i=>e.$emit("dock"))},{default:r.withCtx(()=>[r.createVNode(r.unref(zb),{class:"w-4 h-4"}),r.createVNode(o,null,{default:r.withCtx(()=>n[2]||(n[2]=[r.createTextVNode("Dock to side")])),_:1})]),_:1})):r.createCommentVNode("",!0)]),r.createElementVNode("div",dx,[r.createVNode(r.unref(Is),{"model-value":e.metadata,readonly:!0,format:"yaml"},null,8,["model-value"])])])])]),_:1})}}}),fx={class:"file-renderer flex items-center justify-center w-full h-full"},hx=["autoplay"],mx=["src","type"],px=["alt","src"],_x={key:2,class:"w-[60vw] min-w-96 max-h-[80vh] bg-slate-800 rounded-lg overflow-auto"},gx={class:"whitespace-pre-wrap p-4 text-slate-200"},bx={key:1,class:"flex items-center justify-center py-8"},yx={key:3,class:"text-center"},wx=["href"],da=r.defineComponent({__name:"FileRenderer",props:{file:{},autoplay:{type:Boolean,default:!1},loadText:{type:Boolean,default:!0}},setup(t){const e=t,n=r.ref("");async function o(){if(!(!zs(e.file)||!e.loadText)&&!n.value)try{const s=await fetch(e.file.url||"").then(i=>i.text());n.value=s}catch{n.value="Error loading file content"}}return r.onMounted(()=>{o()}),r.watch(()=>e.file.id,()=>{n.value="",o()}),(s,i)=>(r.openBlock(),r.createElementBlock("div",fx,[r.unref(wr)(s.file)?(r.openBlock(),r.createElementBlock("video",{key:0,class:"max-h-full w-full",controls:"",autoplay:s.autoplay},[r.createElementVNode("source",{src:r.unref(kr)(s.file)+"#t=0.1",type:s.file.mime},null,8,mx)],8,hx)):r.unref(kr)(s.file)?(r.openBlock(),r.createElementBlock("img",{key:1,alt:s.file.filename||s.file.name,src:r.unref(kr)(s.file),class:"max-h-full max-w-full object-contain"},null,8,px)):r.unref(zs)(s.file)?(r.openBlock(),r.createElementBlock("div",_x,[r.createElementVNode("div",gx,[n.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(n.value),1)],64)):(r.openBlock(),r.createElementBlock("div",bx,[r.createVNode(r.unref(pe.QSpinnerPie),{class:"text-slate-400",size:"48px"})]))])])):(r.openBlock(),r.createElementBlock("div",yx,[i[0]||(i[0]=r.createElementVNode("h3",{class:"text-slate-300 mb-4"}," No Preview Available ",-1)),r.createElementVNode("a",{href:s.file.url,target:"_blank",class:"text-blue-400 hover:text-blue-300"},r.toDisplayString(s.file.url),9,wx)]))]))}});function fh(t){const{containerRef:e,currentIndex:n,thumbnailSelector:o=".thumbnail"}=t;return r.watch(n,s=>{r.nextTick(()=>{var a;const i=(a=e.value)==null?void 0:a.querySelectorAll(o),l=i==null?void 0:i[s];l&&e.value&&l.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})}),{}}const kx={key:0,class:"bg-slate-900 bg-opacity-90 p-3 flex-shrink-0"},xx=["onClick"],Cx=["src","alt"],Sx={class:"absolute bottom-0 left-0 bg-slate-900 bg-opacity-80 text-slate-200 text-xs px-1.5 py-0.5 rounded-br rounded-tl font-semibold"},fa=tt(r.defineComponent({__name:"ThumbnailStrip",props:{files:{},currentIndex:{}},emits:["navigate"],setup(t,{emit:e}){const n=e,o=t,s=r.ref(null);fh({containerRef:s,currentIndex:r.toRef(o,"currentIndex")});function i(l){n("navigate",l)}return(l,a)=>l.files.length>1?(r.openBlock(),r.createElementBlock("div",kx,[r.createElementVNode("div",{ref_key:"containerRef",ref:s,class:"flex items-center justify-start gap-2 overflow-x-auto overflow-y-hidden px-4"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.files,(c,u)=>(r.openBlock(),r.createElementBlock("div",{key:c.id,class:r.normalizeClass(["thumbnail cursor-pointer rounded border-2 transition-all flex-shrink-0 relative",u===l.currentIndex?"border-blue-500 scale-110":"border-transparent opacity-60 hover:opacity-100"]),onClick:d=>i(u)},[r.createElementVNode("img",{src:r.unref(ch)(c),alt:c.filename||c.name,class:"w-16 h-16 object-cover rounded"},null,8,Cx),r.createElementVNode("div",Sx,r.toDisplayString(u+1),1)],10,xx))),128))],512)])):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-9ca0c651"]]),Ex={class:"transcode-navigator"},Tx={class:"bg-slate-800 rounded-lg shadow-xl p-3 min-w-[300px] max-w-[400px]"},Bx={class:"text-slate-200 font-semibold mb-2 px-2"},Nx={class:"flex flex-wrap gap-2"},$x=["onClick"],Ix={class:"relative"},Ax=["src","alt"],Lx={key:0,class:"absolute inset-0 bg-slate-900 bg-opacity-70 flex items-center justify-center rounded"},Fx={class:"text-xs text-slate-400 text-center mt-1 truncate w-20"},Mx={class:"bg-slate-800 rounded-t-2xl p-4"},Ox={class:"flex items-center justify-between mb-4"},Dx={class:"text-slate-200 font-semibold text-lg"},vx={class:"grid grid-cols-3 gap-3"},Vx=["onClick"],Px={class:"relative"},Rx=["src","alt"],Ux={key:0,class:"absolute inset-0 bg-slate-900 bg-opacity-70 flex items-center justify-center rounded"},zx={class:"text-xs text-slate-400 text-center mt-1 truncate"},hh=tt(r.defineComponent({__name:"TranscodeNavigator",props:{transcodes:{},modelValue:{type:Boolean,default:!1},selectedIndex:{default:-1}},emits:["update:modelValue","select"],setup(t,{emit:e}){const n=e,o=t,s=r.computed({get:()=>o.modelValue,set:d=>n("update:modelValue",d)}),i=r.computed(()=>typeof window>"u"?!1:window.innerWidth<768);function l(d,f){n("select",d,f),s.value=!1}function a(d){var f,h;return(f=d.thumb)!=null&&f.url?d.thumb.url:c(d)?`data:image/svg+xml;base64,${btoa('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>')}`:((h=d.optimized)==null?void 0:h.url)||d.blobUrl||d.url||"https://placehold.co/80x80?text=?"}function c(d){var f,h;return!!((f=d.mime)!=null&&f.startsWith("video"))||!!((h=d.type)!=null&&h.startsWith("video"))}function u(d){var h;const f=((h=d.meta)==null?void 0:h.transcodes)||{};for(const m of Object.keys(f)){const g=f[m];if(g!=null&&g.status&&!["Complete","Timeout"].includes(g.status))return!0}return!1}return(d,f)=>{const h=r.resolveComponent("QMenu"),m=r.resolveComponent("QBtn"),g=r.resolveComponent("QDialog");return r.openBlock(),r.createElementBlock("div",Ex,[i.value?(r.openBlock(),r.createBlock(g,{key:1,modelValue:s.value,"onUpdate:modelValue":f[2]||(f[2]=p=>s.value=p),position:"bottom"},{default:r.withCtx(()=>[r.createElementVNode("div",Mx,[r.createElementVNode("div",Ox,[r.createElementVNode("div",Dx," Transcodes ("+r.toDisplayString(d.transcodes.length)+") ",1),r.createVNode(m,{flat:"",round:"",dense:"",onClick:f[1]||(f[1]=p=>s.value=!1)},{default:r.withCtx(()=>[r.createVNode(r.unref(rh),{class:"w-5 text-slate-400"})]),_:1})]),r.createElementVNode("div",vx,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d.transcodes,(p,_)=>(r.openBlock(),r.createElementBlock("div",{key:p.id,class:r.normalizeClass(["transcode-thumb cursor-pointer rounded border-2 transition-all",_===d.selectedIndex?"border-purple-500":"border-transparent"]),onClick:b=>l(p,_)},[r.createElementVNode("div",Px,[r.createElementVNode("img",{src:a(p),alt:p.filename||p.name,class:"w-full aspect-square object-cover rounded"},null,8,Rx),u(p)?(r.openBlock(),r.createElementBlock("div",Ux,[r.createVNode(r.unref(pe.QSpinnerPie),{class:"text-purple-400",size:"32px"})])):r.createCommentVNode("",!0)]),r.createElementVNode("div",zx,r.toDisplayString(p.filename||p.name),1)],10,Vx))),128))])])]),_:1},8,["modelValue"])):(r.openBlock(),r.createBlock(h,{key:0,modelValue:s.value,"onUpdate:modelValue":f[0]||(f[0]=p=>s.value=p),anchor:"top right",self:"bottom right",offset:[0,8]},{default:r.withCtx(()=>[r.createElementVNode("div",Tx,[r.createElementVNode("div",Bx," Transcodes ("+r.toDisplayString(d.transcodes.length)+") ",1),r.createElementVNode("div",Nx,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d.transcodes,(p,_)=>(r.openBlock(),r.createElementBlock("div",{key:p.id,class:r.normalizeClass(["transcode-thumb cursor-pointer rounded border-2 transition-all hover:scale-105",_===d.selectedIndex?"border-purple-500":"border-transparent opacity-70 hover:opacity-100"]),onClick:b=>l(p,_)},[r.createElementVNode("div",Ix,[r.createElementVNode("img",{src:a(p),alt:p.filename||p.name,class:"w-20 h-20 object-cover rounded"},null,8,Ax),u(p)?(r.openBlock(),r.createElementBlock("div",Lx,[r.createVNode(r.unref(pe.QSpinnerPie),{class:"text-purple-400",size:"24px"})])):r.createCommentVNode("",!0)]),r.createElementVNode("div",Fx,r.toDisplayString(p.filename||p.name),1)],10,$x))),128))])])]),_:1},8,["modelValue"]))])}}}),[["__scopeId","data-v-2a534315"]]),Hx={class:"absolute inset-0 bg-black"},qx={class:"w-full h-full flex flex-col"},Wx={class:"flex-grow flex relative min-h-0"},jx={class:"flex-grow relative"},Gx={class:"absolute inset-0"},Kx={key:0,class:"absolute left-4 top-1/2 -translate-y-1/2 z-20"},Zx={key:1,class:"absolute right-4 top-1/2 -translate-y-1/2 z-20"},Yx={key:0,class:"w-[40%] max-w-[600px] min-w-[300px] bg-slate-900 border-l border-slate-700 flex flex-col"},Qx={class:"px-4 py-3 bg-slate-800 border-b border-slate-700 flex items-center justify-between flex-shrink-0"},Xx={class:"flex items-center gap-1"},Jx={class:"flex-1 min-h-0 p-4"},ha="danx-file-preview-metadata-mode",mh=r.defineComponent({__name:"FullscreenCarouselDialog",props:{files:{},defaultSlide:{}},emits:["close"],setup(t){const e=t,n=e.defaultSlide?e.files.findIndex(F=>F.id===e.defaultSlide):0,o=e.files[n>=0?n:0],s=ah(r.ref(o),r.ref(e.files)),{currentFile:i,relatedFiles:l,currentIndex:a,hasParent:c,canNavigatePrevious:u,canNavigateNext:d,navigateTo:f,navigateNext:h,navigatePrevious:m,diveInto:g,navigateToParent:p}=s,{visibleSlides:_}=ca(l,a);aa({onPrevious:m,onNext:h});const b=r.ref(!1);function y(F,P){i.value&&i.value.transcodes&&g(F,i.value.transcodes)}const w=r.ref(!1),k=r.ref(Ft(ha,!1));function S(){w.value=!w.value}function C(){k.value=!0,Lt(ha,!0)}function x(){k.value=!1,Lt(ha,!1)}const{filename:T,mimeType:B,hasMetadata:N,metadataKeyCount:$,filteredMetadata:O}=la({file:i});return(F,P)=>{const A=r.resolveComponent("QBtn"),L=r.resolveComponent("QTooltip"),D=r.resolveComponent("QDialog");return r.openBlock(),r.createBlock(D,{"model-value":!0,maximized:"","onUpdate:modelValue":P[5]||(P[5]=I=>F.$emit("close"))},{default:r.withCtx(()=>{var I,W;return[r.createElementVNode("div",Hx,[r.createElementVNode("div",qx,[r.unref(i)?(r.openBlock(),r.createBlock(dh,{key:0,filename:r.unref(T),"show-back-button":r.unref(c),"show-metadata-button":r.unref(N),"metadata-count":r.unref($),"show-transcodes-button":!!(r.unref(i).transcodes&&r.unref(i).transcodes.length>0),"transcodes-count":((I=r.unref(i).transcodes)==null?void 0:I.length)||0,onBack:r.unref(p),onMetadata:S,onTranscodes:P[0]||(P[0]=U=>b.value=!0)},null,8,["filename","show-back-button","show-metadata-button","metadata-count","show-transcodes-button","transcodes-count","onBack"])):r.createCommentVNode("",!0),r.createElementVNode("div",Wx,[r.createElementVNode("div",jx,[r.createElementVNode("div",Gx,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(_),U=>(r.openBlock(),r.createElementBlock("div",{key:U.file.id,class:r.normalizeClass(["absolute inset-0 flex items-center justify-center transition-opacity duration-300",U.isActive?"opacity-100 z-10":"opacity-0 z-0 pointer-events-none"])},[r.createVNode(da,{file:U.file,autoplay:U.isActive},null,8,["file","autoplay"])],2))),128))]),r.unref(u)?(r.openBlock(),r.createElementBlock("div",Kx,[r.createVNode(A,{round:"",size:"lg",class:"bg-slate-800 text-white opacity-70 hover:opacity-100",onClick:r.unref(m)},{default:r.withCtx(()=>[r.createVNode(r.unref(Rs),{class:"w-8"})]),_:1},8,["onClick"])])):r.createCommentVNode("",!0),r.unref(d)?(r.openBlock(),r.createElementBlock("div",Zx,[r.createVNode(A,{round:"",size:"lg",class:"bg-slate-800 text-white opacity-70 hover:opacity-100",onClick:r.unref(h)},{default:r.withCtx(()=>[r.createVNode(r.unref(nh),{class:"w-8"})]),_:1},8,["onClick"])])):r.createCommentVNode("",!0)]),k.value&&w.value&&r.unref(N)?(r.openBlock(),r.createElementBlock("div",Yx,[r.createElementVNode("div",Qx,[P[8]||(P[8]=r.createElementVNode("h3",{class:"text-slate-200 font-medium"},"Metadata",-1)),r.createElementVNode("div",Xx,[r.createVNode(A,{flat:"",dense:"",round:"",size:"sm",class:"text-slate-400 hover:text-white hover:bg-slate-700",onClick:x},{default:r.withCtx(()=>[r.createVNode(r.unref(Yb),{class:"w-4 h-4"}),r.createVNode(L,null,{default:r.withCtx(()=>P[6]||(P[6]=[r.createTextVNode("Undock to modal")])),_:1})]),_:1}),r.createVNode(A,{flat:"",dense:"",round:"",size:"sm",class:"text-slate-400 hover:text-white hover:bg-slate-700",onClick:P[1]||(P[1]=U=>w.value=!1)},{default:r.withCtx(()=>[r.createVNode(r.unref(ko),{class:"w-4 h-4"}),r.createVNode(L,null,{default:r.withCtx(()=>P[7]||(P[7]=[r.createTextVNode("Close")])),_:1})]),_:1})])]),r.createElementVNode("div",Jx,[r.createVNode(r.unref(Is),{"model-value":r.unref(O),readonly:!0,format:"yaml"},null,8,["model-value"])])])):r.createCommentVNode("",!0)]),r.createVNode(fa,{files:r.unref(l),"current-index":r.unref(a),onNavigate:r.unref(f)},null,8,["files","current-index","onNavigate"])]),r.createElementVNode("a",{class:"absolute top-0 right-0 text-white flex items-center justify-center w-16 h-16 hover:bg-slate-600 transition-all cursor-pointer z-30",onClick:P[2]||(P[2]=U=>F.$emit("close"))},[r.createVNode(r.unref(ko),{class:"w-8 h-8"})]),(W=r.unref(i))!=null&&W.transcodes?(r.openBlock(),r.createBlock(hh,{key:0,modelValue:b.value,"onUpdate:modelValue":P[3]||(P[3]=U=>b.value=U),transcodes:r.unref(i).transcodes,onSelect:y},null,8,["modelValue","transcodes"])):r.createCommentVNode("",!0),w.value&&!k.value?(r.openBlock(),r.createBlock(ua,{key:1,filename:r.unref(T),"mime-type":r.unref(B),metadata:r.unref(O),"show-dock-button":!0,onClose:P[4]||(P[4]=U=>w.value=!1),onDock:C},null,8,["filename","mime-type","metadata"])):r.createCommentVNode("",!0)])]}),_:1})}}}),eC={key:0,class:"p-4 m-4 absolute-top-right top right cursor-pointer"},tC=r.defineComponent({__name:"FullScreenDialog",props:{modelValue:{type:Boolean},center:{type:Boolean},blue:{type:Boolean},closeable:{type:Boolean},contentClass:{default:"bg-white text-gray-400"}},emits:["update:model-value","close"],setup(t,{emit:e}){const n=e,o=t;let s=r.computed(()=>({"bg-blue-600 text-white":o.blue,"items-center":o.center,[o.contentClass]:!o.blue}));function i(){n("update:model-value",!1),n("close")}return(l,a)=>{const c=r.resolveComponent("QDialog"),u=r.resolveDirective("close-popup");return r.openBlock(),r.createBlock(c,{class:"full-screen-dialog","model-value":l.modelValue,maximized:"","transition-show":"slide-up","transition-hide":"slide-down","onUpdate:modelValue":i},{default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass(["flex justify-center min-w-xs",r.unref(s)])},[l.closeable?r.withDirectives((r.openBlock(),r.createElementBlock("div",eC,[r.createVNode(r.unref(ko),{class:"w-5 h-5"})])),[[u]]):r.createCommentVNode("",!0),r.renderSlot(l.$slots,"default")],2)]),_:3},8,["model-value"])}}}),nC={key:0,class:"flex-grow"},ma=r.defineComponent({__name:"InfoDialog",props:{disabled:{type:Boolean},hideDone:{type:Boolean},doneClass:{default:""},doneText:{default:"Done"}},emits:["update:model-value","close"],setup(t,{emit:e}){const n=e;function o(){n("update:model-value",!1),n("close")}return(s,i)=>{const l=r.resolveComponent("QBtn");return r.openBlock(),r.createBlock(r.unref(sh),{class:"dx-info-dialog",onClose:o},r.createSlots({actions:r.withCtx(()=>[s.hideDone?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",nC,[r.createVNode(l,{label:s.doneText,class:r.normalizeClass(["dx-dialog-button dx-dialog-button-done",s.doneClass]),disable:s.disabled,onClick:o},{default:r.withCtx(()=>[r.renderSlot(s.$slots,"done-text")]),_:3},8,["label","class","disable"])])),r.renderSlot(s.$slots,"actions")]),default:r.withCtx(()=>[r.renderSlot(s.$slots,"default")]),_:2},[s.$slots.title?{name:"title",fn:r.withCtx(()=>[r.renderSlot(s.$slots,"title")]),key:"0"}:void 0,s.$slots.subtitle?{name:"subtitle",fn:r.withCtx(()=>[r.renderSlot(s.$slots,"subtitle")]),key:"1"}:void 0]),1024)}}}),oC={__name:"InputDialog",props:{...Kt.props,title:{type:String,default:"Enter Value"},input:{type:[Number,String],default:""}},emits:["confirm","close","update:input"],setup(t){const e=t,n=r.ref(e.input);return(o,s)=>{const i=r.resolveComponent("QInput");return r.openBlock(),r.createBlock(r.unref(Kt),r.mergeProps(o.$props,{onConfirm:s[2]||(s[2]=l=>o.$emit("confirm",n.value)),onClose:s[3]||(s[3]=l=>o.$emit("close",l))}),{default:r.withCtx(()=>[r.renderSlot(o.$slots,"default",{},()=>[r.createVNode(i,{modelValue:n.value,"onUpdate:modelValue":s[0]||(s[0]=l=>n.value=l),type:"number",class:"w-full",onInput:s[1]||(s[1]=l=>o.$emit("update:input",l))},null,8,["modelValue"])])]),_:3},16)}}},pa=r.defineComponent({__name:"BooleanField",props:{label:{type:String,default:null},name:{type:String,default:null},required:Boolean,modelValue:{type:Boolean,default:void 0},labelClass:{type:String,default:"text-sm"},showName:Boolean,toggleIndeterminate:Boolean,disabled:Boolean,readonly:Boolean},emits:["update:model-value"],setup(t){return(e,n)=>{const o=r.resolveComponent("QToggle");return r.openBlock(),r.createBlock(o,{"data-testid":"boolean-field-"+(t.name||t.label),"model-value":t.modelValue||(t.toggleIndeterminate?t.modelValue:!1),disable:t.disabled||t.readonly,"toggle-indeterminate":t.toggleIndeterminate,"indeterminate-value":void 0,"onUpdate:modelValue":n[0]||(n[0]=s=>e.$emit("update:model-value",s))},{default:r.withCtx(()=>[r.createVNode(r.unref(Et),{label:t.label||t.name,name:t.name,"show-name":t.showName,class:r.normalizeClass(t.labelClass)},null,8,["label","name","show-name","class"])]),_:1},8,["data-testid","model-value","disable","toggle-indeterminate"])}}}),rC={for:"first_name",class:"form-label"},sC={class:"mt-1"},_a={__name:"LabeledInput",props:{type:{type:String,default:"text"},name:{type:String,required:!0},label:{type:String,default:null},placeholder:{type:String,default:null},modelValue:{type:[String,Number],required:!0},error:{type:String,default:null},required:Boolean,disabled:Boolean,rules:{type:Array,default:null}},emits:["update:model-value"],setup(t){return(e,n)=>{const o=r.resolveComponent("QInput");return r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("label",rC,[r.renderSlot(e.$slots,"label",{},()=>[r.createTextVNode(r.toDisplayString(t.label),1)])]),r.createElementVNode("div",sC,[r.createVNode(o,{"model-value":t.modelValue,"error-message":t.error,error:!!t.error,"no-error-icon":"",outlined:"",dense:"",disable:t.disabled,readonly:t.disabled,type:t.type,name:t.name,placeholder:t.placeholder||t.label,required:t.required,rules:t.rules,"lazy-rules":!!t.rules,class:"w-full","onUpdate:modelValue":n[0]||(n[0]=s=>e.$emit("update:model-value",s))},null,8,["model-value","error-message","error","disable","readonly","type","name","placeholder","required","rules","lazy-rules"])])])}}},iC={__name:"ConfirmPasswordField",props:{name:{type:String,default:"password_confirmation"},label:{type:String,default:"Confirm Password"},placeholder:{type:String,default:"Confirm Password"},modelValue:{type:[String,Number],required:!0},error:{type:String,default:null},password:{type:String,default:""},disabled:Boolean},emits:["update:model-value"],setup(t){const e=t,n=[o=>o===e.password||"The password and confirmation do not match"];return(o,s)=>(r.openBlock(),r.createBlock(r.unref(_a),r.mergeProps({type:"password"},e,{name:t.name,"model-value":t.modelValue,rules:n,"onUpdate:modelValue":s[0]||(s[0]=i=>o.$emit("update:model-value",i))}),null,16,["name","model-value"]))}},lC={key:0,class:"font-bold text-xs mb-2"},aC={class:"flex items-center cursor-pointer"},cC={class:"flex-grow font-bold ml-3 hover:opacity-70"},uC={key:0},ga=r.defineComponent({__name:"DateField",props:{modelValue:{},label:{},clearable:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,o=t,s=r.computed(()=>o.modelValue?zt(kt(o.modelValue||"0000-00-00")):"- -"),i=r.ref(kt(o.modelValue));r.watch(()=>o.modelValue,a=>i.value=a);function l(){n("update:model-value",i.value)}return(a,c)=>{const u=r.resolveComponent("QBtn"),d=r.resolveComponent("QDate"),f=r.resolveComponent("QPopupProxy");return r.openBlock(),r.createElementBlock("div",null,[a.label?(r.openBlock(),r.createElementBlock("div",lC,r.toDisplayString(a.label),1)):r.createCommentVNode("",!0),r.createElementVNode("div",aC,[r.createVNode(r.unref(th),{class:"w-5"}),r.createElementVNode("div",cC,[i.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(s.value),1)],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(" - - ")],64))]),a.clearable&&i.value?(r.openBlock(),r.createElementBlock("div",uC,[r.createVNode(u,{icon:"close",size:"sm",round:"",flat:"",onClick:c[0]||(c[0]=r.withModifiers(h=>(i.value=null)||l(),["stop","prevent"]))})])):r.createCommentVNode("",!0)]),r.createVNode(f,null,{default:r.withCtx(()=>[r.createVNode(d,{modelValue:i.value,"onUpdate:modelValue":[c[1]||(c[1]=h=>i.value=h),l]},null,8,["modelValue"])]),_:1})])}}}),dC={class:"mb-2"},fC={class:"flex items-center cursor-pointer"},hC={class:"flex-grow font-bold ml-3 hover:opacity-70"},mC={key:0},ba=r.defineComponent({__name:"DateRangeField",props:{modelValue:{},label:{},inline:{type:Boolean},clearable:{type:Boolean},withTime:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,o=t,s=r.computed(()=>a.value?o.withTime?{from:zt(qc(a.value.from||"0000-00-00")),to:zt(qc(a.value.to||"9999-12-31"))}:{from:zt(Hc(a.value.from||"0000-00-00")),to:zt(Hc(a.value.to||"9999-12-31"))}:{from:null,to:null}),i=r.ref(l(o.modelValue));r.watch(()=>o.modelValue,u=>i.value=l(u));function l(u){return u!=null&&u.from&&(u!=null&&u.to)?zt(u.from)===zt(u.to)?u.from:u:null}const a=r.computed(()=>{let u;return typeof i.value=="string"?u={from:i.value,to:i.value}:i.value&&(u={from:i.value.from,to:i.value.to}),u!=null&&u.from&&(u!=null&&u.to)&&o.withTime&&!u.from.includes("00:00:00")&&(u.from+=" 00:00:00",u.to+=" 23:59:59"),u});function c(){n("update:model-value",a.value)}return(u,d)=>{const f=r.resolveComponent("QDate"),h=r.resolveComponent("QBtn"),m=r.resolveComponent("QPopupProxy");return r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("div",dC,[r.createVNode(r.unref(Et),{label:u.label},null,8,["label"])]),u.inline?(r.openBlock(),r.createBlock(f,{key:0,modelValue:i.value,"onUpdate:modelValue":[d[0]||(d[0]=g=>i.value=g),c],range:"",class:"reactive"},null,8,["modelValue"])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createElementVNode("div",fC,[r.createVNode(r.unref(th),{class:"w-5 py-2"}),r.createElementVNode("div",hC,[a.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(s.value.from)+" - "+r.toDisplayString(s.value.to),1)],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(" - - ")],64))]),u.clearable&&i.value?(r.openBlock(),r.createElementBlock("div",mC,[r.createVNode(h,{icon:"close",size:"sm",round:"",flat:"",onClick:d[1]||(d[1]=r.withModifiers(g=>(i.value=null)||c(),["stop","prevent"]))})])):r.createCommentVNode("",!0)]),r.createVNode(m,null,{default:r.withCtx(()=>[r.createVNode(f,{modelValue:i.value,"onUpdate:modelValue":[d[2]||(d[2]=g=>i.value=g),c],range:""},null,8,["modelValue"])]),_:1})],64))])}}}),pC={class:"flex items-center justify-center"},_C={key:0,class:"flex-grow"},ya={__name:"DateTimePicker",props:{modelValue:{type:String,default:null},mask:{type:String,default:"YYYY-MM-DD HH:mm"},color:{type:String,default:"blue-600"},nullable:Boolean},emits:["update:modelValue","save","cancel","clear"],setup(t,{emit:e}){const n=e,o=t,s=r.computed({get:()=>zc(Uc(o.modelValue)),set(i){const l=i?zc(r_(i)):null;(l||o.nullable)&&n("update:modelValue",l)}});return(i,l)=>{const a=r.resolveComponent("QBtn"),c=r.resolveComponent("QDate"),u=r.resolveComponent("QTime"),d=r.resolveComponent("QPopupProxy");return r.openBlock(),r.createBlock(d,{"model-value":!0,cover:"","transition-show":"scale","transition-hide":"scale",class:"bg-transparent shadow-none flex items-stretch"},{default:r.withCtx(()=>[r.createVNode(c,{modelValue:s.value,"onUpdate:modelValue":l[3]||(l[3]=f=>s.value=f),mask:t.mask,color:t.color},{default:r.withCtx(()=>[r.createElementVNode("div",pC,[t.nullable?(r.openBlock(),r.createElementBlock("div",_C,[r.createVNode(a,{label:"Clear",color:"blue-600",flat:"",onClick:l[0]||(l[0]=f=>s.value=null)})])):r.createCommentVNode("",!0),r.createElementVNode("div",null,[r.createVNode(a,{label:"Cancel",color:"blue-600",flat:"",onClick:l[1]||(l[1]=f=>i.$emit("cancel"))}),r.createVNode(a,{label:"Set",color:"blue-600",flat:"",onClick:l[2]||(l[2]=f=>i.$emit("save"))})])])]),_:1},8,["modelValue","mask","color"]),r.createVNode(u,{modelValue:s.value,"onUpdate:modelValue":l[4]||(l[4]=f=>s.value=f),mask:t.mask,color:t.color,class:"ml-3"},null,8,["modelValue","mask","color"])]),_:1})}}},gC={__name:"DateTimeField",props:{modelValue:{type:String,required:!0},color:{type:String,default:"blue-600"}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,o=t,s=r.ref(!1),i=r.ref(o.modelValue);function l(){n("update:model-value",i.value),s.value=!1}return(a,c)=>{const u=r.resolveComponent("QPopupProxy"),d=r.resolveComponent("QIcon"),f=r.resolveComponent("QInput");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(f,{"model-value":r.unref(Go)(t.modelValue),color:t.color,class:"bg-white rounded overflow-hidden px-2 w-48",dense:"",readonly:"",onClick:c[3]||(c[3]=h=>s.value=!0)},{append:r.withCtx(()=>[r.createVNode(d,{name:"event",class:"cursor-pointer"},{default:r.withCtx(()=>[r.createVNode(u,{modelValue:s.value,"onUpdate:modelValue":c[2]||(c[2]=h=>s.value=h)},{default:r.withCtx(()=>[r.createVNode(r.unref(ya),{modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=h=>i.value=h),onCancel:c[1]||(c[1]=h=>s.value=!1),onSave:l},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model-value","color"])])}}},bC={class:"inline-block relative"},yC=["contenteditable"],ph=r.defineComponent({__name:"EditableDiv",props:{modelValue:{default:""},color:{default:"blue-200"},textColor:{default:"blue-900"},debounceDelay:{default:1e3},readonly:{type:Boolean},placeholder:{default:"Enter Text..."},contentClass:{default:""}},emits:["update:model-value","change"],setup(t,{emit:e}){const n=e,o=t,s=r.ref(o.modelValue),i=r.ref(),l=r.ref(null),a=r.ref("0"),c=r.ref("0"),u=r.ref(!1);r.onMounted(()=>{var m,g;l.value&&(a.value=((m=l.value)==null?void 0:m.offsetWidth)+"px",c.value=((g=l.value)==null?void 0:g.offsetHeight)+"px")}),r.watch(()=>o.modelValue,m=>{!u.value&&i.value&&(i.value.innerText=m,s.value=m)}),r.onMounted(()=>{i.value.innerText=s.value});const d=nn(()=>{n("update:model-value",s.value),n("change",s.value)},o.debounceDelay);function f(m){s.value=m.target.innerText,d()}const h=r.computed(()=>[...o.readonly?[]:[`hover:bg-${o.color} focus:bg-${o.color}`,`hover:text-${o.textColor} focus:text-${o.textColor}`,`hover:outline-${o.color} focus:outline-${o.color}`,"focus:outline-4 hover:outline-4",o.contentClass||""],s.value?"":"!bg-none"]);return(m,g)=>(r.openBlock(),r.createElementBlock("div",bC,[r.createElementVNode("div",{ref_key:"textDiv",ref:i,contenteditable:m.readonly?"false":"true",class:r.normalizeClass(["relative inline-block transition duration-300 outline-none outline-offset-0 border-none rounded-sm z-10 min-w-10 min-h-10",h.value]),style:r.normalizeStyle({minWidth:a.value,minHeight:c.value}),onInput:f,onFocusin:g[0]||(g[0]=p=>u.value=!0),onFocusout:g[1]||(g[1]=p=>u.value=!1)},null,46,yC),!s.value&&m.placeholder&&!u.value&&!m.readonly?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"placeholderDiv",ref:l,class:"text-gray-600 absolute-top-left whitespace-nowrap z-1 pointer-events-none"},r.toDisplayString(m.placeholder),513)):r.createCommentVNode("",!0)]))}}),wC=["contenteditable"],kC={key:0},xC=tt(r.defineComponent({__name:"EditOnClickTextField",props:r.mergeModels({class:{default:"hover:bg-slate-300"},editingClass:{default:"bg-slate-500"},inputClass:{default:"whitespace-normal"},readonly:{type:Boolean}},{modelValue:{type:String},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=r.ref(null),n=r.useModel(t,"modelValue"),o=r.ref(n.value),s=t,i=r.ref(!1);function l(){s.readonly||(i.value=!0,o.value=n.value,r.nextTick(()=>{var c;(c=e.value)==null||c.focus()}))}function a(c){o.value=c,n.value=c}return(c,u)=>{const d=r.resolveComponent("QBtn");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["danx-edit-on-click-text-field flex flex-nowrap items-center rounded overflow-ellipsis",{[s.class]:!0,"is-readonly":c.readonly,"cursor-pointer":!i.value&&!c.readonly}]),onClick:l,onFocusout:u[2]||(u[2]=f=>i.value=!1)},[r.createElementVNode("div",{ref_key:"editableBox",ref:e,contenteditable:!c.readonly&&i.value,class:r.normalizeClass(["flex-grow p-2 rounded outline-none border-none",{[c.editingClass]:i.value,[c.inputClass]:!0}]),onInput:u[0]||(u[0]=f=>a(f.target.innerText))},r.toDisplayString(i.value?o.value:n.value),43,wC),c.readonly?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",kC,[i.value?(r.openBlock(),r.createBlock(d,{key:0,onClick:u[1]||(u[1]=r.withModifiers(f=>i.value=!1,["stop"]))},{default:r.withCtx(()=>[r.createVNode(r.unref(Xi),{class:"w-4"})]),_:1})):(r.openBlock(),r.createBlock(d,{key:1,class:"edit-icon"},{default:r.withCtx(()=>[r.createVNode(r.unref(Bn),{class:"w-4"})]),_:1}))]))],34)}}}),[["__scopeId","data-v-4d689a6d"]]),CC=["accept","capture"],SC={__name:"FileUploadButton",props:{...pe.QBtn.props,text:{type:String,default:"Add File"},locationWaitMessage:{type:String,default:"Waiting for location..."},cameraOnly:Boolean,geolocation:Boolean},emits:["uploading","file-progress","file-complete","complete"],setup(t,{expose:e,emit:n}){e({upload:l});const o=n,s=t,i=r.ref(null);function l(){i.value.click()}async function a({target:{files:c}}){o("uploading",c);let u=new Gi(c).prepare().onProgress(({file:d,progress:f})=>{d.progress=f,o("file-progress",d)}).onComplete(({file:d,uploadedFile:f})=>{o("file-complete",{file:d,uploadedFile:f})}).onAllComplete(()=>{o("complete",u.files)});s.geolocation&&await u.resolveLocation(s.locationWaitMessage),u.upload()}return(c,u)=>(r.openBlock(),r.createBlock(r.unref(pe.QBtn),r.mergeProps(c.$props,{onClick:u[0]||(u[0]=d=>c.$refs.fileUpload.click())}),{default:r.withCtx(()=>[r.renderSlot(c.$slots,"default",{},()=>[r.createVNode(r.unref(q4),{class:"w-5 mr-2"}),r.createTextVNode(" "+r.toDisplayString(t.text),1)]),r.createElementVNode("input",{ref_key:"fileUpload",ref:i,"data-testid":"file-upload",type:"file",accept:t.geolocation&&t.cameraOnly?"image/*;capture=camera":void 0,capture:t.geolocation&&t.cameraOnly?"environment":void 0,class:"hidden",multiple:"",onChange:a},null,40,CC)]),_:3},16))}},EC={class:"inline-block"},TC={class:"cursor-pointer py-2 hover:bg-blue-200 flex items-center justify-end"},BC={__name:"InlineDateTimeField",props:{modelValue:{type:String,default:null},nullable:Boolean},emits:["close","save","update:model-value"],setup(t,{emit:e}){const n=e;function o(s){n("update:model-value",s.value),n("save",s.value),s.set()}return(s,i)=>{const l=r.resolveComponent("QPopupEdit");return r.openBlock(),r.createElementBlock("div",EC,[r.createElementVNode("div",TC,[r.createTextVNode(r.toDisplayString(r.unref(Go)(t.modelValue,{empty:"Never"}))+" ",1),r.createVNode(r.unref(Au),{class:"w-4 font-bold ml-2 text-gray-400"}),r.createVNode(l,{"model-value":t.modelValue,"touch-position":"",offset:[0,20],class:"bg-blue-600 text-white !min-w-0"},{default:r.withCtx(a=>[r.createVNode(r.unref(ya),{modelValue:a.value,"onUpdate:modelValue":c=>a.value=c,nullable:t.nullable,onSave:c=>o(a),onCancel:a.cancel},null,8,["modelValue","onUpdate:modelValue","nullable","onSave","onCancel"])]),_:1},8,["model-value"])])])}}},_h=r.defineComponent({__name:"MaxLengthCounter",props:{length:{},maxLength:{}},setup(t){return(e,n)=>e.maxLength?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["danx-input-chars",{"danx-input-chars--error":e.length>e.maxLength}])},r.toDisplayString(r.unref(Jt)(e.length))+" / "+r.toDisplayString(r.unref(Jt)(e.maxLength))+" characters ",3)):r.createCommentVNode("",!0)}}),NC={class:"dx-text-field"},$C={key:1,class:"dx-text-field-readonly-value"},On=r.defineComponent({__name:"TextField",props:{modelValue:{default:""},type:{default:"text"},label:{default:""},required:{type:Boolean},requiredLabel:{},prependLabel:{type:Boolean},placeholder:{default:null},labelClass:{default:""},inputClass:{default:""},allowOverMax:{type:Boolean},maxLength:{default:null},rows:{default:3},autogrow:{type:Boolean},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},debounce:{default:0},loading:{type:Boolean}},emits:["update:model-value","submit"],setup(t){return(e,n)=>{const o=r.resolveComponent("QInput");return r.openBlock(),r.createElementBlock("div",NC,[!e.prependLabel&&e.label?(r.openBlock(),r.createBlock(r.unref(Et),{key:0,label:e.label,required:e.required,"required-label":e.requiredLabel,class:r.normalizeClass(e.labelClass)},null,8,["label","required","required-label","class"])):r.createCommentVNode("",!0),e.readonly?(r.openBlock(),r.createElementBlock("div",$C,r.toDisplayString(e.modelValue),1)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:2},[r.createVNode(o,{placeholder:e.placeholder||(e.placeholder===""?"":`Enter ${e.label}`),outlined:"",dense:"",name:"",readonly:e.readonly,autogrow:e.autogrow,disable:e.disabled,"label-slot":!e.noLabel,"input-class":e.inputClass,rows:e.rows,class:r.normalizeClass({"dx-input-prepend-label":e.prependLabel}),"stack-label":"",type:e.type,"model-value":e.modelValue,maxlength:e.allowOverMax?void 0:e.maxLength,debounce:e.debounce,loading:e.loading,onKeydown:n[0]||(n[0]=r.withKeys(s=>e.$emit("submit"),["enter"])),"onUpdate:modelValue":n[1]||(n[1]=s=>e.$emit("update:model-value",s))},r.createSlots({append:r.withCtx(()=>[r.renderSlot(e.$slots,"append")]),_:2},[e.prependLabel||e.$slots.prepend?{name:"prepend",fn:r.withCtx(()=>[r.createVNode(r.unref(Et),{class:r.normalizeClass(["dx-prepended-label",e.labelClass]),label:e.label,required:e.required,"required-label":e.requiredLabel},null,8,["label","required","required-label","class"]),r.renderSlot(e.$slots,"prepend")]),key:"0"}:void 0]),1032,["placeholder","readonly","autogrow","disable","label-slot","input-class","rows","class","type","model-value","maxlength","debounce","loading"]),r.createVNode(r.unref(_h),{length:(e.modelValue+"").length||0,"max-length":e.maxLength},null,8,["length","max-length"])],64))])}}}),xr=r.defineComponent({__name:"NumberField",props:{precision:{default:2},delay:{default:1e3},currency:{type:Boolean},min:{default:void 0},max:{default:void 0},modelValue:{default:""},type:{},label:{default:void 0},required:{type:Boolean},requiredLabel:{},prependLabel:{type:Boolean},placeholder:{},labelClass:{},inputClass:{},allowOverMax:{type:Boolean},maxLength:{},rows:{},autogrow:{type:Boolean},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},debounce:{},loading:{type:Boolean}},emits:["update:model-value","update"],setup(t,{emit:e}){const n=e,o=t,s=r.ref(i(o.modelValue));r.watch(()=>o.modelValue,()=>s.value=i(o.modelValue));function i(u){var h;if(!u&&u!==0&&u!=="0"||o.type==="number")return u;const d=Math.min(o.precision,((h=(""+u).split(".")[1])==null?void 0:h.length)||0);let f={minimumFractionDigits:d};return o.currency&&(f={style:"currency",currency:"USD",minimumFractionDigits:d}),Jt(u,f)}const l=nn(u=>{let d=u;typeof u=="number"&&(o.min!==void 0&&(d=Math.max(u,o.min)),o.max!==void 0&&(d=Math.min(d,o.max))),n("update",d)},o.delay),a=nn(u=>{if(u===void 0)return;let d=u;o.min!==void 0&&(d=Math.max(d,o.min)),o.max!==void 0&&(d=Math.min(d,o.max)),d!==u&&(s.value=i(d),n("update:model-value",d))},500);function c(u){let d;if(u.match(/[^\d.,$]/)){const f=s.value;return s.value+=" ",r.nextTick(()=>s.value=f)}u!==""&&(u=u.replace(/[^\d.]/g,""),d=+u,s.value=i(d)),n("update:model-value",d),l(d),a(d)}return(u,d)=>(r.openBlock(),r.createBlock(r.unref(On),r.mergeProps({class:"dx-number-field"},u.$props,{"model-value":s.value,"onUpdate:modelValue":c}),null,16,["model-value"]))}}),gh=r.defineComponent({__name:"IntegerField",props:{precision:{},delay:{default:1e3},currency:{type:Boolean},min:{default:void 0},max:{default:void 0},modelValue:{default:""},type:{},label:{default:void 0},required:{type:Boolean},requiredLabel:{},prependLabel:{type:Boolean},placeholder:{},labelClass:{},inputClass:{},allowOverMax:{type:Boolean},maxLength:{},rows:{},autogrow:{type:Boolean},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},debounce:{},loading:{type:Boolean}},emits:["update:model-value"],setup(t){return(e,n)=>(r.openBlock(),r.createBlock(r.unref(xr),r.mergeProps(e.$props,{precision:0,"model-value":e.modelValue,"onUpdate:modelValue":n[0]||(n[0]=o=>e.$emit("update:model-value",o))}),null,16,["model-value"]))}}),IC={class:"text-xs font-bold"},AC=["href"],LC=["href"],FC=r.defineComponent({__name:"LabelValueBlock",props:{label:{},value:{type:[String,Number,Boolean],default:""},url:{default:""},dense:{type:Boolean},nowrap:{type:Boolean}},setup(t){const e=t,n=r.computed(()=>({"mt-2":!e.dense,"mt-1":e.dense,"text-no-wrap":e.nowrap})),o=r.computed(()=>typeof e.value=="string"&&e.value.length>30),s=r.computed(()=>{switch(typeof e.value){case"boolean":return l_(e.value);case"number":return Jt(e.value);default:return e.value||"-"}});return(i,l)=>(r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("div",IC,[r.renderSlot(i.$slots,"label",{},()=>[r.createTextVNode(r.toDisplayString(i.label),1)])]),r.createElementVNode("div",{class:r.normalizeClass(n.value)},[i.url?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[o.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.renderSlot(i.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(s.value),1)]),r.createElementVNode("a",{target:"_blank",href:i.url,class:"inline-block ml-2"},[r.createVNode(r.unref(wb),{class:"w-4"})],8,LC)],64)):(r.openBlock(),r.createElementBlock("a",{key:0,target:"_blank",href:i.url},[r.renderSlot(i.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(s.value),1)])],8,AC))],64)):r.renderSlot(i.$slots,"default",{key:1},()=>[r.createTextVNode(r.toDisplayString(s.value),1)])],2)]))}}),MC={class:"flex items-stretch justify-start"},OC={key:1,class:"p-1"},bh=r.defineComponent({__name:"MultiFileField",props:{modelValue:{default:null},field:{default:null},label:{default:""},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},width:{default:128},height:{default:128},addIconClass:{default:"w-10"},filePreviewClass:{default:"rounded-2xl"},filePreviewBtnSize:{default:"sm"},showTranscodes:{type:Boolean}},emits:["update:model-value","uploading","complete"],setup(t,{emit:e}){const n=e,o=t,{onComplete:s,onDrop:i,onFilesChange:l,onFilesSelected:a,uploadedFiles:c,clearUploadedFiles:u,onRemove:d}=eg();r.onMounted(()=>{o.modelValue&&(c.value=o.modelValue)}),l(()=>{c.value.some(h=>h.progress<1)&&n("uploading"),n("update:model-value",c.value)}),s(()=>{n("update:model-value",c.value),n("complete")});const f=r.computed(()=>({width:typeof o.width=="number"?`${o.width}px`:o.width,height:typeof o.height=="number"?`${o.height}px`:o.height}));return(h,m)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["max-w-full relative overflow-auto",{"p-2":!h.readonly}]),onDragover:m[3]||(m[3]=r.withModifiers(()=>{},["prevent"])),onDrop:m[4]||(m[4]=r.withModifiers((...g)=>r.unref(i)&&r.unref(i)(...g),["prevent"]))},[h.label?(r.openBlock(),r.createBlock(r.unref(Et),{key:0,label:h.label},null,8,["label"])):r.createCommentVNode("",!0),!h.disabled&&!h.readonly?(r.openBlock(),r.createElementBlock("input",{key:1,ref:"file",class:"hidden",type:"file",multiple:"",onChange:m[0]||(m[0]=(...g)=>r.unref(a)&&r.unref(a)(...g))},null,544)):r.createCommentVNode("",!0),r.createElementVNode("div",MC,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(c),g=>(r.openBlock(),r.createBlock(r.unref(Cr),{key:"file-upload-"+g.id,class:r.normalizeClass(["m-2 cursor-pointer bg-gray-200",h.filePreviewClass]),style:r.normalizeStyle(f.value),file:g,"show-transcodes":h.showTranscodes,"related-files":r.unref(c),downloadable:"",removable:!h.readonly&&!h.disabled,onRemove:p=>r.unref(d)(g)},null,8,["class","style","file","show-transcodes","related-files","removable","onRemove"]))),128)),!h.disabled&&!h.readonly?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["dx-add-remove-files m-2 flex flex-col flex-nowrap items-center overflow-hidden cursor-pointer",h.filePreviewClass]),style:r.normalizeStyle(f.value)},[r.createElementVNode("div",{class:"dx-add-file flex-grow p-1 pt-3 flex justify-center items-center bg-green-200 text-green-700 w-full hover:bg-green-100",onClick:m[1]||(m[1]=g=>h.$refs.file.click())},[r.createElementVNode("div",null,[r.createVNode(r.unref(ra),{class:r.normalizeClass(["m-auto",h.addIconClass])},null,8,["class"]),m[5]||(m[5]=r.createElementVNode("div",{class:"mt-1 text-center"}," Add ",-1))])]),r.unref(c).length>0?(r.openBlock(),r.createElementBlock("div",{key:0,class:"dx-remove-file flex items-center flex-nowrap p-2 bg-red-200 text-red-800 hover:bg-red-100 w-full justify-center text-xs",onClick:m[2]||(m[2]=(...g)=>r.unref(u)&&r.unref(u)(...g))},[r.createVNode(r.unref(Ps),{class:"mr-2 w-3"}),m[6]||(m[6]=r.createTextVNode(" Remove All "))])):r.createCommentVNode("",!0)],6)):r.createCommentVNode("",!0),h.readonly&&r.unref(c).length===0?(r.openBlock(),r.createElementBlock("div",OC," -- ")):r.createCommentVNode("",!0)])],34))}}),xo=r.defineComponent({__name:"SelectField",props:{modelValue:{default:void 0},placeholder:{default:""},selectionLabel:{type:[String,Function],default:null},chipLimit:{default:3},inputClass:{default:""},selectClass:{default:""},selectionClass:{default:""},options:{default:()=>[]},filterable:{type:Boolean},filterFn:{type:Function,default:null},selectByObject:{type:Boolean},optionLabel:{type:[String,Function],default:"label"},name:{},virtualScrollHorizontal:{type:Boolean},virtualScrollSliceSize:{},virtualScrollSliceRatioBefore:{},virtualScrollSliceRatioAfter:{},virtualScrollItemSize:{},virtualScrollStickySizeStart:{},virtualScrollStickySizeEnd:{},tableColspan:{},error:{type:[Boolean,null]},errorMessage:{},noErrorIcon:{type:Boolean},rules:{},reactiveRules:{type:Boolean},lazyRules:{type:[Boolean,String]},label:{},stackLabel:{type:Boolean},hint:{},hideHint:{type:Boolean},prefix:{},suffix:{},labelColor:{},color:{},bgColor:{},dark:{type:[Boolean,null]},loading:{type:Boolean},clearable:{type:Boolean},clearIcon:{},filled:{type:Boolean},outlined:{type:Boolean},borderless:{type:Boolean},standout:{type:[Boolean,String]},labelSlot:{type:Boolean},bottomSlots:{type:Boolean},hideBottomSpace:{type:Boolean},counter:{type:Boolean},rounded:{type:Boolean},square:{type:Boolean},dense:{type:Boolean},itemAligned:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},autofocus:{type:Boolean},for:{},multiple:{type:Boolean},displayValue:{},displayValueHtml:{type:Boolean},optionValue:{},optionDisable:{},hideSelected:{type:Boolean},hideDropdownIcon:{type:Boolean},dropdownIcon:{},maxValues:{},optionsDense:{type:Boolean},optionsDark:{type:[Boolean,null]},optionsSelectedClass:{},optionsHtml:{type:Boolean},optionsCover:{type:Boolean},menuShrink:{type:Boolean},menuAnchor:{},menuSelf:{},menuOffset:{},popupContentClass:{},popupContentStyle:{},popupNoRouteDismiss:{type:Boolean},useChips:{type:Boolean},useInput:{type:Boolean},maxlength:{},fillInput:{type:Boolean},newValueMode:{},mapOptions:{type:Boolean},disableTabSelection:{type:Boolean},emitValue:{type:Boolean},inputDebounce:{},inputStyle:{},tabindex:{},autocomplete:{},transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{},onVirtualScroll:{},"onUpdate:modelValue":{},onFocus:{},onBlur:{},onClear:{},onInputValue:{},onRemove:{},onAdd:{},onNewValue:{},onFilter:{},onFilterAbort:{},onPopupShow:{},onPopupHide:{}},emits:["update:model-value","search","update"],setup(t,{emit:e}){const n=e,o=t,s=r.ref(null),i=r.ref(null),l=r.ref(!1),a=r.computed(()=>{let C=o.options;return o.placeholder&&!o.multiple&&!o.filterable&&(C=[{label:o.placeholder,value:null},...o.options]),C=C.map(x=>{let T=r.isRef(x)?x.value:x;return{label:m(T),value:p(T),selectionLabel:g(T)}}),C}),c=r.computed(()=>i.value&&!o.filterFn?a.value.filter(C=>{var x;return C.label.toLocaleLowerCase().indexOf((x=i.value)==null?void 0:x.toLowerCase())>-1}):a.value),u=r.computed(()=>{var C,x;return o.multiple?(Array.isArray(o.modelValue)?o.modelValue:[]).map(B=>B===null?"__null__":B)||[]:o.modelValue===null?"__null__":o.selectByObject?((C=o.modelValue)==null?void 0:C.value)||((x=o.modelValue)==null?void 0:x.id):o.modelValue}),d=r.computed(()=>{let C=u.value;o.multiple||(C=C||C===0?[C]:[]);const x=C.map(T=>T==="__null__"?null:typeof T=="object"?T.value||T.id:T);return a.value.filter(T=>x.includes(T.value))}),f=r.computed(()=>o.filterable&&l.value?"":!d.value||d.value.length===0?o.placeholder||"(Select Option)":d.value[0].selectionLabel),h=r.computed(()=>d.value.slice(0,o.chipLimit));function m(C){return typeof C=="string"?C:typeof o.optionLabel=="string"?C[o.optionLabel]:typeof o.optionLabel=="function"?o.optionLabel(C):C==null?void 0:C.label}function g(C){return typeof C=="string"?C:typeof o.selectionLabel=="string"?C[o.selectionLabel]:typeof o.selectionLabel=="function"?o.selectionLabel(C):(C==null?void 0:C.selectionLabel)||(C==null?void 0:C.label)||C&&C[o.optionLabel]}function p(C){if(!C||typeof C=="string")return C;let x=C.value!==void 0?C.value:C.id;return typeof o.optionValue=="string"?x=C[o.optionValue]:typeof o.optionValue=="function"&&(x=o.optionValue(C)),x===null?"__null__":x}function _(C){Array.isArray(C)&&(C=C.map(x=>x==="__null__"?null:x)),C=C==="__null__"?null:C,o.selectByObject&&C!==null&&C!==void 0&&typeof C!="object"&&(o.multiple?C=o.options.filter(x=>C.includes(p(x))):C=o.options.find(x=>p(x)===C)),n("update:model-value",C),n("update",C)}const b=r.ref(!1);async function y(C,x){if(!o.filterFn)i.value=C,await r.nextTick(x);else{if(x(),!b.value)return;C!==null&&C!==i.value&&(i.value=C,o.filterFn&&await o.filterFn(C))}}function w(){n("update:model-value",void 0),n("update",void 0)}function k(){l.value=!0,b.value=!1,r.nextTick(()=>{b.value=!0,s.value.focus()})}function S(){l.value=!1,b.value=!1}return(C,x)=>{const T=r.resolveComponent("QChip");return r.openBlock(),r.createElementBlock("div",null,[C.label?(r.openBlock(),r.createBlock(r.unref(Et),{key:0,label:C.label},null,8,["label"])):r.createCommentVNode("",!0),r.createVNode(r.unref(pe.QSelect),r.mergeProps({ref_key:"selectField",ref:s},C.$props,{"model-value":u.value,outlined:"","hide-dropdown-icon":"",dense:"","emit-value":"","use-input":C.filterable,"hide-selected":C.filterable&&l.value&&!C.$props.multiple,"input-debounce":100,options:c.value,"option-label":"label","option-value":"value",placeholder:"",label:"","input-class":{"is-hidden":!l.value,[C.inputClass]:!0},class:["max-w-full dx-select-field",C.selectClass],onFilter:y,onClear:w,onPopupShow:k,onPopupHide:S,"onUpdate:modelValue":_}),{append:r.withCtx(()=>[r.createVNode(r.unref(M4),{class:r.normalizeClass(["w-4 transition",l.value?"rotate-180":""])},null,8,["class"])]),selected:r.withCtx(()=>[C.$props.multiple?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["flex gap-y-1 overflow-hidden dx-selected-label",{"flex-nowrap gap-y-0":C.chipLimit===1,"dx-selected-chips":h.value.length>0,[C.selectionClass]:!0}])},[h.value.length>0?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(h.value,B=>(r.openBlock(),r.createBlock(T,{key:"selected-"+B.label,class:"!mr-1"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(B.label),1)]),_:2},1024))),128)),d.value.length>h.value.length?(r.openBlock(),r.createBlock(T,{key:0,class:"!mr-1"},{default:r.withCtx(()=>[r.createTextVNode(" +"+r.toDisplayString(d.value.length-h.value.length),1)]),_:1})):r.createCommentVNode("",!0)],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(C.placeholder),1)],64))],2)):(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass([C.selectionClass,"dx-selected-label"])},r.toDisplayString(f.value),3))]),_:1},16,["model-value","use-input","hide-selected","options","input-class","class"])])}}}),yh={__name:"MultiKeywordField",props:{modelValue:{type:[String,Number,Object],default:""},field:{type:Object,default:null}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,o=t,s=r.ref(o.field.defaultOption),i=r.computed(()=>o.modelValue&&o.modelValue[s.value]),l=r.ref(c());function a(){var u;l.value=((u=l.value)==null?void 0:u.replace(/\n/g,",").replace(/,{2,}/g,","))||"",n("update:model-value",l.value?{[s.value]:l.value.split(",")}:void 0)}function c(){var u;return Array.isArray(i.value)?(u=i.value)==null?void 0:u.join(","):""}return r.watch(()=>o.modelValue,()=>{l.value=c()}),(u,d)=>(r.openBlock(),r.createElementBlock("div",null,[r.createVNode(r.unref(xo),{modelValue:s.value,"onUpdate:modelValue":[d[0]||(d[0]=f=>s.value=f),a],label:void 0,options:t.field.options,class:"mb-2"},null,8,["modelValue","options"]),r.createVNode(r.unref(On),{modelValue:l.value,"onUpdate:modelValue":[d[1]||(d[1]=f=>l.value=f),a],field:t.field,"no-label":!t.field.label,"label-class":"text-xs font-bold text-zinc-800","input-class":"!py-0",dense:"",type:"textarea",debounce:500},null,8,["modelValue","field","no-label"])]))}},DC={__name:"NewPasswordField",props:{name:{type:String,default:"password"},label:{type:String,default:"Password"},placeholder:{type:String,default:"Enter Password"},modelValue:{type:[String,Number],required:!0},error:{type:String,default:null},disabled:Boolean},emits:["update:model-value"],setup(t){const e=t,n=[o=>o.length>=8||"Please use at least 8 characters"];return(o,s)=>(r.openBlock(),r.createBlock(r.unref(_a),r.mergeProps({type:"password"},e,{rules:n,"onUpdate:modelValue":s[0]||(s[0]=i=>o.$emit("update:model-value",i))}),null,16))}},vC={key:0,class:"font-bold text-xs mb-2"},VC={class:"flex items-center flex-nowrap cursor-pointer"},PC={class:"text-sm ml-3 hover:text-blue-600 whitespace-nowrap"},Ws={__name:"NumberRangeField",props:{modelValue:{type:Object,default:null},label:{type:String,default:null},icon:{type:Object,default:null},currency:Boolean,percent:Boolean,debounce:{type:Number,default:0}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,o=t,s=r.computed(()=>o.currency?"$":o.percent?"%":""),i=r.computed(()=>({id:"min-field",name:"from",label:"Min"+s.value,placeholder:"0"})),l=r.computed(()=>({id:"max-field",name:"to",label:"Max"+s.value,placeholder:"No Limit"})),a=r.computed(()=>o.icon||(o.currency?O4:o.percent?Yf:U4)),c=r.ref({});r.watch(()=>o.modelValue,u);function u(h){const m=o.percent?100:1;c.value={from:h!=null&&h.from?h.from*m:void 0,to:h!=null&&h.to?h.to*m:void 0}}u(o.modelValue||{from:void 0,to:void 0});function d(h){return h===void 0?"No Limit":o.currency?Ni(h):o.percent?a_(h,{multiplier:1,maximumFractionDigits:2}):Jt(h)}const f=nn(()=>{if(c.value&&(c.value.from||c.value.to)){const h=o.percent?.01:1;let m={from:c.value.from?c.value.from*h:void 0,to:c.value.to?c.value.to*h:void 0};n("update:model-value",m)}},o.debounce);return(h,m)=>{const g=r.resolveComponent("QPopupProxy");return r.openBlock(),r.createElementBlock("div",null,[t.label?(r.openBlock(),r.createElementBlock("div",vC,r.toDisplayString(t.label),1)):r.createCommentVNode("",!0),r.createElementVNode("div",VC,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(a.value),{class:"w-5 text-blue-600"})),r.createElementVNode("div",PC,[c.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(d(c.value.from||0))+" - "+r.toDisplayString(d(c.value.to)),1)],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(" No Limit ")],64))])]),r.createVNode(g,null,{default:r.withCtx(()=>[r.createVNode(r.unref(xr),{modelValue:c.value.from,"onUpdate:modelValue":[m[0]||(m[0]=p=>c.value.from=p),r.unref(f)],field:i.value},null,8,["modelValue","field","onUpdate:modelValue"]),r.createVNode(r.unref(xr),{modelValue:c.value.to,"onUpdate:modelValue":[m[1]||(m[1]=p=>c.value.to=p),r.unref(f)],class:"mt-2",field:l.value},null,8,["modelValue","field","onUpdate:modelValue"])]),_:1})])}}},RC=["data-dusk","onClick"],UC={__name:"SelectDrawer",props:{modelValue:{type:[Object,String,Array,null],required:!0},options:{type:Array,default:()=>[]},multiple:Boolean,label:{type:String,default:"Select"},placeholder:{type:String,default:"All"}},emits:["update:modelValue"],setup(t,{emit:e}){const n=e,o=t,s=r.ref(!1),i=r.computed(()=>o.options.map(d=>typeof d=="string"?{label:d,value:d}:d));function l(d){return d.value===void 0?d:d.value}function a(d){return i.value.find(f=>f.value===d).label}function c(d){const f=l(d);return o.multiple?o.modelValue.includes(f):o.modelValue===f}function u(d){let f=l(d),h=f;o.multiple?(h=[...o.modelValue],c(f)?h=h.filter(m=>m!==f):h.push(f)):h===o.modelValue&&(h=null),n("update:modelValue",h)}return(d,f)=>{const h=r.resolveComponent("QCheckbox"),m=r.resolveComponent("QChip");return r.openBlock(),r.createElementBlock("div",null,[r.createVNode(r.unref(xa),{show:s.value,"onUpdate:show":f[0]||(f[0]=g=>s.value=g),"content-class":"",position:"bottom",title:"Filter "+t.label},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value,g=>(r.openBlock(),r.createElementBlock("div",{key:"select-drawer-"+g.value,"data-dusk":"drawer-opt-"+g.value,class:"cursor-pointer hover:bg-slate-200 px-8 py-3 flex items-center border-b border-slate-200",onClick:p=>u(g)},[r.createVNode(h,{"model-value":c(g),class:"mr-2",onClick:r.withModifiers(p=>u(g),["stop"])},null,8,["model-value","onClick"]),r.renderSlot(d.$slots,"option",{opt:g},()=>[r.createTextVNode(r.toDisplayString(g.label),1)])],8,RC))),128))]),_:3},8,["show","title"]),r.createVNode(m,{ref:"select",outline:"",clickable:"",size:"16px",onClick:f[1]||(f[1]=g=>s.value=!0)},{default:r.withCtx(()=>[r.renderSlot(d.$slots,"selected",{},()=>[r.renderSlot(d.$slots,"label",{},()=>[r.createTextVNode(r.toDisplayString(t.label)+": ",1)]),t.modelValue&&t.modelValue.length>0?r.renderSlot(d.$slots,"selection",{key:0},()=>[t.multiple?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(a(t.modelValue[0]))+" ",1),t.modelValue.length>1?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(" + "+r.toDisplayString(t.modelValue.length-1),1)],64)):r.createCommentVNode("",!0)],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(a(t.modelValue)),1)],64))]):r.renderSlot(d.$slots,"placeholder",{key:1},()=>[r.createTextVNode(r.toDisplayString(t.placeholder),1)])])]),_:3},512)])}}},zC={class:"group flex items-center flex-nowrap gap-x-2 relative"},HC=["onClick"],qC={class:"flex-grow px-4 py-2"},WC={class:"px-4 mb-2"},jC=r.defineComponent({__name:"SelectionMenuField",props:r.mergeModels({options:{},selectionType:{default:"object"},showEdit:{type:Boolean},loading:{type:Boolean},selectText:{default:""},createText:{default:""},editText:{default:""},clearText:{default:""},placeholder:{default:"(No selection)"},selectClass:{default:"bg-sky-800"},createClass:{default:""},editClass:{default:""},clearClass:{default:"rounded-full"},labelClass:{default:"text-slate-600"},selectIcon:{default:null},selectable:{type:Boolean},creatable:{type:Boolean},editable:{type:Boolean},deletable:{type:Boolean},nameEditable:{type:Boolean},clearable:{type:Boolean},disabled:{type:Boolean},editDisabled:{type:Boolean},size:{default:"md"}},{selected:{},selectedModifiers:{},editing:{type:Boolean},editingModifiers:{}}),emits:r.mergeModels(["create","update","delete"],["update:selected","update:editing"]),setup(t){const e=r.useModel(t,"selected"),n=r.useModel(t,"editing"),o=t,s=r.ref(!1),i=r.computed(()=>!e.value||o.options.find(u=>a(u)===a(e.value))?o.options:[e.value,...o.options]);function l(u){return typeof u=="object"?u:o.options.find(d=>typeof d=="object"?a(d)===u:d===u)}function a(u){return u=l(u),(u==null?void 0:u.id)||(u==null?void 0:u.value)||(u==null?void 0:u.name)||u}function c(u){return u=l(u),(u==null?void 0:u.name)||(u==null?void 0:u.label)||(u==null?void 0:u.value)||u}return(u,d)=>{const f=r.resolveComponent("QSeparator"),h=r.resolveComponent("QMenu"),m=r.resolveComponent("QBtn"),g=r.resolveDirective("ripple");return r.openBlock(),r.createElementBlock("div",zC,[u.selectable?(r.openBlock(),r.createBlock(r.unref(os),{key:0,modelValue:s.value,"onUpdate:modelValue":d[3]||(d[3]=p=>s.value=p),disabled:u.disabled,label:u.selectText,saving:u.loading,class:r.normalizeClass(u.selectClass),"show-icon":u.selectIcon||r.unref(Cb),size:u.size},{default:r.withCtx(()=>[r.createVNode(h,{"model-value":s.value,onBeforeHide:d[1]||(d[1]=p=>s.value=!1),onHide:d[2]||(d[2]=p=>s.value=!1)},{default:r.withCtx(()=>[r.createElementVNode("div",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value,p=>r.withDirectives((r.openBlock(),r.createElementBlock("div",{key:a(p),class:r.normalizeClass(["cursor-pointer flex items-center relative",{"bg-sky-900 hover:bg-sky-800":a(e.value)===a(p),"hover:bg-slate-600":a(e.value)!==a(p)}]),onClick:_=>e.value=u.selectionType==="object"?p:a(p)},[r.createElementVNode("div",qC,r.toDisplayString(c(p)),1),u.deletable?(r.openBlock(),r.createBlock(r.unref(ns),{key:0,type:"trash",class:"ml-4 mr-2",size:u.size,onClick:r.withModifiers(_=>u.$emit("delete",p),["stop","prevent"])},null,8,["size","onClick"])):r.createCommentVNode("",!0)],10,HC)),[[g]])),128)),u.creatable?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createVNode(f,{class:"bg-slate-400 my-2"}),r.createElementVNode("div",WC,[r.createVNode(r.unref(ns),{type:"create",color:"green",class:r.normalizeClass(u.createClass),label:u.createText,saving:u.loading,size:u.size,onClick:d[0]||(d[0]=p=>u.$emit("create"))},null,8,["class","label","saving","size"])])],64)):r.createCommentVNode("",!0)])]),_:1},8,["model-value"])]),_:1},8,["modelValue","disabled","label","saving","class","show-icon","size"])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(u.labelClass)},[e.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[u.nameEditable?(r.openBlock(),r.createBlock(r.unref(ph),{key:0,"model-value":c(e.value),color:"slate-600","onUpdate:modelValue":d[4]||(d[4]=p=>u.$emit("update",{name:p}))},null,8,["model-value"])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(c(e.value)),1)],64))],64)):r.renderSlot(u.$slots,"no-selection",{key:1},()=>[r.createTextVNode(r.toDisplayString(u.placeholder),1)])],2),u.editable&&e.value?(r.openBlock(),r.createBlock(r.unref(os),{key:1,modelValue:n.value,"onUpdate:modelValue":d[5]||(d[5]=p=>n.value=p),label:u.editText,class:r.normalizeClass(u.editClass),size:u.size,disabled:u.editDisabled,"show-icon":r.unref(Bn),"hide-icon":r.unref(Xi),tooltip:u.editDisabled?"You are not allowed to edit":""},null,8,["modelValue","label","class","size","disabled","show-icon","hide-icon","tooltip"])):r.createCommentVNode("",!0),u.clearable&&e.value?(r.openBlock(),r.createBlock(m,{key:2,label:u.clearText,class:r.normalizeClass([u.clearClass,"opacity-0 group-hover:opacity-100 transition-all"]),onClick:d[6]||(d[6]=p=>e.value=null)},{default:r.withCtx(()=>[r.createVNode(r.unref(Eu),{class:"w-4"})]),_:1},8,["label","class"])):r.createCommentVNode("",!0)])}}}),GC={class:"flex items-stretch flex-nowrap gap-x-4"},KC=r.defineComponent({__name:"SelectOrCreateField",props:r.mergeModels({options:{},showEdit:{type:Boolean},canEdit:{type:Boolean},loading:{type:Boolean},selectByObject:{type:Boolean},optionLabel:{default:"label"},createText:{default:""},editText:{default:""},createClass:{default:"bg-green-900 px-4"},editClass:{default:"bg-sky-800 px-4"},clearable:{type:Boolean}},{selected:{},selectedModifiers:{},editing:{type:Boolean},editingModifiers:{}}),emits:r.mergeModels(["create"],["update:selected","update:editing"]),setup(t){const e=r.useModel(t,"selected"),n=r.useModel(t,"editing");return(o,s)=>{const i=r.resolveComponent("QBtn");return r.openBlock(),r.createElementBlock("div",GC,[r.createVNode(i,{class:r.normalizeClass(o.createClass),loading:o.loading,onClick:s[0]||(s[0]=l=>o.$emit("create"))},{default:r.withCtx(()=>[r.createVNode(r.unref(Nu),{class:r.normalizeClass(["w-4",o.createText?"mr-2":""])},null,8,["class"]),r.createTextVNode(" "+r.toDisplayString(o.createText),1)]),_:1},8,["class","loading"]),o.showEdit?(r.openBlock(),r.createBlock(r.unref(os),{key:0,modelValue:n.value,"onUpdate:modelValue":s[1]||(s[1]=l=>n.value=l),disabled:!o.canEdit,label:o.editText,class:r.normalizeClass(o.editClass),"show-icon":r.unref(Bn)},null,8,["modelValue","disabled","label","class","show-icon"])):r.createCommentVNode("",!0),r.createVNode(r.unref(xo),{modelValue:e.value,"onUpdate:modelValue":s[2]||(s[2]=l=>e.value=l),class:"flex-grow",options:o.options,clearable:o.clearable,"select-by-object":o.selectByObject,"option-label":o.optionLabel},null,8,["modelValue","options","clearable","select-by-object","option-label"])])}}}),ZC={key:0,class:"text-zinc-500"},YC={key:1},QC={class:"text-xs text-zinc-500"},wh=r.defineComponent({__name:"SelectWithChildrenField",props:{modelValue:{default:()=>[]},label:{default:"Selection"},placeholder:{default:"Select an option"},options:{default:()=>[]},loading:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,o=t;function s(){var u;return((u=o.modelValue)==null?void 0:u.length)>0?o.options.find(d=>d.children.find(f=>o.modelValue.includes(f.id))):null}const i=r.ref(s()),l=r.ref(o.modelValue||[]);function a(u){l.value.includes(u.id)?l.value=Vr(l.value,u.id):l.value.push(u.id),n("update:model-value",l.value.length>0?l.value:void 0)}function c(){l.value=[],n("update:model-value",void 0)}return r.watch(()=>o.modelValue,u=>{i.value=s(),l.value=u||[]}),(u,d)=>{const f=r.resolveComponent("QCheckbox");return r.openBlock(),r.createElementBlock("div",null,[!u.loading&&!u.options.length?(r.openBlock(),r.createElementBlock("div",ZC," No options available ")):r.createCommentVNode("",!0),r.createVNode(r.unref(xo),{modelValue:i.value,"onUpdate:modelValue":[d[0]||(d[0]=h=>i.value=h),c],options:u.options,label:u.label,placeholder:u.placeholder,"option-value":h=>h,loading:u.loading},null,8,["modelValue","options","label","placeholder","option-value","loading"]),i.value?(r.openBlock(),r.createElementBlock("div",YC,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value.children,h=>(r.openBlock(),r.createBlock(f,{key:h.id,"model-value":l.value.includes(h.id),field:h,class:"mt-3","onUpdate:modelValue":m=>a(h)},{default:r.withCtx(()=>[r.createElementVNode("div",null,r.toDisplayString(h.label),1),r.createElementVNode("div",QC,r.toDisplayString(h.name),1)]),_:2},1032,["model-value","field","onUpdate:modelValue"]))),128))])):r.createCommentVNode("",!0)])}}}),XC={key:1,class:"text-sm mt-2"},JC={key:3,class:"py-1"},kh=r.defineComponent({__name:"SingleFileField",props:{modelValue:{},label:{},name:{},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,o=t,{onComplete:s,onDrop:i,onFileSelected:l,uploadedFile:a,clearUploadedFile:c}=ng();return s(()=>n("update:model-value",a.value)),r.onMounted(()=>{o.modelValue&&(a.value=o.modelValue)}),(u,d)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["max-w-full relative overflow-auto",{"p-4 border rounded border-gray-300 text-center":!u.readonly}]),onDragover:d[4]||(d[4]=r.withModifiers(()=>{},["prevent"])),onDrop:d[5]||(d[5]=r.withModifiers((...f)=>r.unref(i)&&r.unref(i)(...f),["prevent"]))},[u.label||u.name||u.showName?(r.openBlock(),r.createBlock(r.unref(Et),{key:0,label:u.label,name:u.name,"show-name":u.showName,class:"text-sm font-semibold"},null,8,["label","name","show-name"])):r.createCommentVNode("",!0),!u.disabled&&!u.readonly?(r.openBlock(),r.createElementBlock("div",XC,[r.createElementVNode("a",{class:"text-blue-600",onClick:d[0]||(d[0]=f=>u.$refs.file.click())},"Upload"),r.unref(a)?(r.openBlock(),r.createElementBlock("a",{key:0,class:"ml-3 text-red-900",onClick:d[1]||(d[1]=(...f)=>r.unref(c)&&r.unref(c)(...f))},"Clear")):r.createCommentVNode("",!0),r.createElementVNode("input",{ref:"file",class:"hidden",type:"file",onChange:d[2]||(d[2]=(...f)=>r.unref(l)&&r.unref(l)(...f))},null,544)])):r.createCommentVNode("",!0),!u.readonly||r.unref(a)?(r.openBlock(),r.createBlock(r.unref(Cr),{key:2,class:r.normalizeClass(["w-32 cursor-pointer mt-2",{"border border-dashed border-blue-600":!r.unref(a),"mx-auto":!u.readonly}]),file:r.unref(a)||void 0,downloadable:"",onClick:d[3]||(d[3]=f=>!u.disabled&&u.$refs.file.click())},null,8,["class","file"])):u.readonly?(r.openBlock(),r.createElementBlock("div",JC," -- ")):r.createCommentVNode("",!0)],34))}}),eS={class:"dx-slider-number-field"},tS=r.defineComponent({__name:"SliderNumberField",props:{modelValue:{},field:{},label:{},currency:{type:Boolean},percent:{type:Boolean},name:{},min:{},max:{},innerMin:{},innerMax:{},step:{},snap:{type:Boolean},reverse:{type:Boolean},vertical:{type:Boolean},color:{},trackColor:{},trackImg:{},innerTrackColor:{},innerTrackImg:{},selectionColor:{},selectionImg:{},labelColor:{},labelTextColor:{},switchLabelSide:{type:Boolean},labelAlways:{type:Boolean},markers:{type:[Boolean,Number]},markerLabels:{type:[Boolean,Array,Object,Function]},markerLabelsClass:{},switchMarkerLabelsSide:{type:Boolean},trackSize:{},thumbSize:{},thumbColor:{},thumbPath:{},dark:{type:[Boolean,null]},dense:{type:Boolean},disable:{type:Boolean},readonly:{type:Boolean},tabindex:{},labelValue:{},onChange:{type:Function},onPan:{type:Function},"onUpdate:modelValue":{type:Function}},emits:["update:model-value"],setup(t){const e=t,n=r.computed(()=>({...e,field:void 0,label:!!e.label})),o=r.computed(()=>e.currency?"$"+e.modelValue:e.percent?e.modelValue+"%":e.modelValue);return(s,i)=>{const l=r.resolveComponent("QSlider");return r.openBlock(),r.createElementBlock("div",eS,[r.createVNode(r.unref(Et),{label:s.label,field:s.field},null,8,["label","field"]),r.createVNode(l,r.mergeProps(n.value,{min:s.min,max:s.max,label:"","label-always":"","switch-label-side":"","price-label":o.value}),null,16,["min","max","price-label"])])}}});var nS=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],oS=function(t){return nS.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())!==-1},rS=function(t,e,n){Object.keys(e).filter(oS).forEach(function(o){var s=e[o];typeof s=="function"&&(o==="onInit"?s(t,n):n.on(o.substring(2),function(i){return s(i,n)}))})},sS=function(t,e,n,o){var s=t.modelEvents?t.modelEvents:null,i=Array.isArray(s)?s.join(" "):s;r.watch(o,function(l,a){n&&typeof l=="string"&&l!==a&&l!==n.getContent({format:t.outputFormat})&&n.setContent(l)}),n.on(i||"change input undo redo",function(){e.emit("update:modelValue",n.getContent({format:t.outputFormat}))})},iS=function(t,e,n,o,s,i){o.setContent(i()),n.attrs["onUpdate:modelValue"]&&sS(e,n,o,s),rS(t,n.attrs,o)},xh=0,Ch=function(t){var e=Date.now(),n=Math.floor(Math.random()*1e9);return xh++,t+"_"+n+xh+String(e)},lS=function(t){return t!==null&&t.tagName.toLowerCase()==="textarea"},Sh=function(t){return typeof t>"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},aS=function(t,e){return Sh(t).concat(Sh(e))},cS=function(t){return t==null},Eh=function(){return{listeners:[],scriptId:Ch("tiny-script"),scriptLoaded:!1}},uS=function(){var t=Eh(),e=function(s,i,l,a){var c=i.createElement("script");c.referrerPolicy="origin",c.type="application/javascript",c.id=s,c.src=l;var u=function(){c.removeEventListener("load",u),a()};c.addEventListener("load",u),i.head&&i.head.appendChild(c)},n=function(s,i,l){t.scriptLoaded?l():(t.listeners.push(l),s.getElementById(t.scriptId)||e(t.scriptId,s,i,function(){t.listeners.forEach(function(a){return a()}),t.scriptLoaded=!0}))},o=function(){t=Eh()};return{load:n,reinitialize:o}},dS=uS(),fS=function(){return typeof window<"u"?window:global},Dn=function(){var t=fS();return t&&t.tinymce?t.tinymce:null},hS={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(t){return t==="html"||t==="text"}}},Ot=function(){return Ot=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s])}return t},Ot.apply(this,arguments)},mS=function(t,e,n,o){return t(o||"div",{id:e,ref:n})},pS=function(t,e,n){return t("textarea",{id:e,visibility:"hidden",ref:n})},wa={selector:void 0,target:void 0},_S=r.defineComponent({props:hS,setup:function(t,e){var n=t.init?Ot(Ot({},t.init),wa):Ot({},wa),o=r.toRefs(t),s=o.disabled,i=o.modelValue,l=o.tagName,a=r.ref(null),c=null,u=t.id||Ch("tiny-vue"),d=t.init&&t.init.inline||t.inline,f=!!e.attrs["onUpdate:modelValue"],h=!0,m=t.initialValue?t.initialValue:"",g="",p=function(y){return f?function(){return i!=null&&i.value?i.value:""}:function(){return y?m:g}},_=function(){var y=p(h),w=Ot(Ot({},n),{readonly:t.disabled,target:a.value,plugins:aS(n.plugins,t.plugins),toolbar:t.toolbar||n.toolbar,inline:d,setup:function(k){c=k,k.on("init",function(S){return iS(S,t,e,k,i,y)}),typeof n.setup=="function"&&n.setup(k)}});lS(a.value)&&(a.value.style.visibility=""),Dn().init(w),h=!1};r.watch(s,function(y){var w;c!==null&&(typeof((w=c.mode)===null||w===void 0?void 0:w.set)=="function"?c.mode.set(y?"readonly":"design"):c.setMode(y?"readonly":"design"))}),r.watch(l,function(y){var w;f||(g=c.getContent()),(w=Dn())===null||w===void 0||w.remove(c),r.nextTick(function(){return _()})}),r.onMounted(function(){if(Dn()!==null)_();else if(a.value&&a.value.ownerDocument){var y=t.cloudChannel?t.cloudChannel:"6",w=t.apiKey?t.apiKey:"no-api-key",k=cS(t.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/".concat(w,"/tinymce/").concat(y,"/tinymce.min.js"):t.tinymceScriptSrc;dS.load(a.value.ownerDocument,k,_)}}),r.onBeforeUnmount(function(){Dn()!==null&&Dn().remove(c)}),d||(r.onActivated(function(){h||_()}),r.onDeactivated(function(){var y;f||(g=c.getContent()),(y=Dn())===null||y===void 0||y.remove(c)}));var b=function(y){var w;g=c.getContent(),(w=Dn())===null||w===void 0||w.remove(c),n=Ot(Ot(Ot({},n),y),wa),r.nextTick(function(){return _()})};return e.expose({rerender:b,getEditor:function(){return c}}),function(){return d?mS(r.h,u,a,t.tagName):pS(r.h,u,a)}}});const gS=["innerHTML"],Th={__name:"WysiwygField",props:{modelValue:{type:[String,Number],default:null},field:{type:Object,required:!0},noLabel:Boolean,showName:Boolean,disabled:Boolean,readonly:Boolean},emits:["update:model-value"],setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",null,[t.noLabel?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(Et),{key:0,field:t.field,"show-name":t.showName},null,8,["field","show-name"])),t.readonly?(r.openBlock(),r.createElementBlock("div",{key:1,class:"border border-gray-300 rounded-md p-2 bg-gray-100",innerHTML:t.modelValue},null,8,gS)):(r.openBlock(),r.createBlock(r.unref(_S),{key:2,class:"mt-2","api-key":r.unref(fe).tinyMceApiKey,disabled:t.disabled,"model-value":t.modelValue,"onUpdate:modelValue":n[0]||(n[0]=o=>e.$emit("update:model-value",o))},null,8,["api-key","disabled","model-value"]))]))}},Bh=r.defineComponent({__name:"SaveStateIndicator",props:{saving:{type:Boolean},savedAt:{default:""},savingClass:{default:"text-sm text-slate-500"}},setup(t){return(e,n)=>{const o=r.resolveComponent("QSpinnerPie");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([e.savingClass,"dx-saving-indicator flex items-center flex-nowrap"])},[e.saving?r.renderSlot(e.$slots,"saving",{key:0},()=>[n[0]||(n[0]=r.createTextVNode(" Saving... ")),r.createVNode(o,{class:"ml-2"})]):r.renderSlot(e.$slots,"saved",{key:1},()=>[e.savedAt?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(" Saved at "+r.toDisplayString(r.unref(Bi)(e.savedAt,{format:"M/d/yy h:mm:ssa"})),1)],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(" Not saved ")],64))])],2)}}}),bS={class:"dx-rendered-form"},yS={key:0,class:"mb-4"},wS={class:"flex flex-nowrap items-center text-sm w-full"},kS={key:0,class:"variation-missing-icon pl-1"},xS={class:"flex-grow"},CS={key:1,class:"flex flex-nowrap items-center mr-2"},SS=["onClick"],ES=["onClick"],ka=r.defineComponent({__name:"RenderedForm",props:{values:{default:null},form:{},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},saving:{type:Boolean},clearable:{type:Boolean},emptyValue:{type:[String,Number,Boolean],default:void 0},canModifyVariations:{type:Boolean},fieldClass:{default:""},savingClass:{default:"text-sm text-slate-500 justify-end mt-4"},savedAt:{default:void 0}},emits:["update:values"],setup(t,{emit:e}){const n=t,o=e,s={BOOLEAN:pa,DATE:ga,DATE_RANGE:ba,INTEGER:gh,NUMBER:xr,TEXT:On,SINGLE_FILE:kh,MULTI_FILE:bh,WYSIWYG:Th},i=n.form.fields.map(N=>({placeholder:`Enter ${N.label}`,...N,component:N.component||s[N.type]})),l=r.computed(()=>{const N=n.values;return N?Array.isArray(N)?N:Object.entries(N).filter($=>i.find(O=>O.name===$[0])).map(([$,O])=>({name:$,value:O,variation:""})):[]}),a=r.computed(()=>{const N={};for(const $ of i)N[$.name]=b($.name);return N});function c(N){return N.enabled===void 0?!0:typeof N.enabled=="function"?N.enabled(a.value):N.enabled}function u(N){return{modelValue:b(N.name),label:N.label,clearable:N.clearable||n.clearable,readonly:n.readonly,disabled:n.disabled,disable:n.disabled,showName:n.showName,noLabel:n.noLabel}}const d=r.computed(()=>{const N=[...new Set(l.value.map($=>$.variation))].sort();return N.length===0&&N.push(""),N}),f=r.ref(d.value[0]||""),h=r.ref(""),m=r.ref(!1),g=r.ref(""),p=r.computed(()=>n.canModifyVariations&&!n.readonly&&!n.disabled&&d.value.length<(n.form.variations||0));function _(N,$){if(l.value)return l.value.find(O=>O.variation===($!==void 0?$:f.value)&&O.name===N)}function b(N){var $;return($=_(N))==null?void 0:$.value}function y(N,$){const O=_(N),F={name:N,variation:f.value||"",value:$===void 0?n.emptyValue:$},P=gc(l.value,O,F,!0);w(P)}function w(N){let $=N;Array.isArray(n.values)||($=N.reduce((O,F)=>(O[F.name]=F.value,O),{})),o("update:values",$)}r.onMounted(()=>{window.addEventListener("beforeunload",k)}),r.onBeforeUnmount(()=>{window.removeEventListener("beforeunload",k)});function k(N){if(n.saving)return N.returnValue="Changes are currently being saved. If you leave now, you might lose unsaved changes."}function S(N){return n.form.fields.map($=>({variation:N,name:$.name,value:$.default_value===void 0?null:$.default_value}))}function C(){if(n.saving)return;let N=[...l.value];N.length===0&&(N=S(""));const $=d.value[d.value.length-1],O=Nd($||"1"),F=S(O);w([...N,...F]),f.value=O}function x(){if(!h.value)return;if(d.value.includes(h.value)){et.error("Variation name already exists");return}const N=l.value.map($=>$.variation===m.value?{...$,variation:h.value}:$);w(N),f.value=h.value,m.value=!1,h.value=""}function T(N){if(!N)return;const $=l.value.filter(O=>O.variation!==N);w($),f.value===N&&(f.value=d.value[0]),g.value=""}function B(N){const $={};return n.form.fields.filter(O=>O.required||O.required_group).every(O=>{const F=_(O.name,N),P=!!F&&F.value!==null;return O.required_group?$[O.required_group]?!0:$[O.required_group]=P:P})}return(N,$)=>{const O=r.resolveComponent("QTooltip"),F=r.resolveComponent("QTab"),P=r.resolveComponent("QSpinnerBall"),A=r.resolveComponent("QTabs");return r.openBlock(),r.createElementBlock("div",bS,[N.form.variations>1?(r.openBlock(),r.createElementBlock("div",yS,[r.createVNode(A,{modelValue:f.value,"onUpdate:modelValue":$[0]||($[0]=L=>f.value=L),class:"text-xs"},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d.value,(L,D)=>(r.openBlock(),r.createBlock(F,{key:L,name:L,class:"p-0","content-class":"w-full"},{default:r.withCtx(()=>[r.createElementVNode("div",wS,[B(L)?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",kS,[r.createVNode(r.unref(Iu),{class:"text-red-400 w-4"}),r.createVNode(O,null,{default:r.withCtx(()=>$[5]||($[5]=[r.createTextVNode("Creative Form Incomplete")])),_:1})])),r.createElementVNode("div",xS,r.toDisplayString(L||"1"),1),!N.disabled&&!N.readonly&&N.canModifyVariations?(r.openBlock(),r.createElementBlock("div",CS,[r.createElementVNode("a",{class:"ml-1 p-1 hover:opacity-100 opacity-20 hover:bg-blue-200 rounded",onClick:()=>(m.value=L)&&(h.value=L)},[r.createVNode(r.unref(Au),{class:"w-3 text-blue-900"})],8,SS),D>0?(r.openBlock(),r.createElementBlock("a",{key:0,class:"ml-1 p-1 hover:opacity-100 opacity-20 hover:bg-red-200 rounded",onClick:I=>g.value=L},[r.createVNode(r.unref(Ps),{class:"w-3 text-red-900"})],8,ES)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)])]),_:2},1032,["name"]))),128)),p.value?(r.openBlock(),r.createBlock(F,{key:"add-new-variation",name:"add",class:"bg-blue-600 rounded-t-lg !text-white",onClick:C},{default:r.withCtx(()=>[N.saving?(r.openBlock(),r.createBlock(P,{key:0,class:"w-4"})):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(" + Add Variation ")],64))]),_:1})):r.createCommentVNode("",!0)]),_:1},8,["modelValue"])])):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i),(L,D)=>r.withDirectives((r.openBlock(),r.createElementBlock("div",{key:L.id,class:r.normalizeClass({"mt-4":D>0,[N.fieldClass]:!0})},[L.vnode?(r.openBlock(),r.createBlock(r.unref(vn),{key:0,vnode:L.vnode,props:u(L),params:a.value,"onUpdate:modelValue":I=>y(L.name,I)},null,8,["vnode","props","params","onUpdate:modelValue"])):r.createCommentVNode("",!0),(r.openBlock(),r.createBlock(r.resolveDynamicComponent(L.component),{key:L.name+"-"+f.value,"model-value":b(L.name),field:L,label:L.label||void 0,"no-label":N.noLabel,"show-name":N.showName,clearable:L.clearable||N.clearable,disabled:N.disabled,disable:N.disabled,readonly:N.readonly,"onUpdate:modelValue":I=>y(L.name,I)},null,8,["model-value","field","label","no-label","show-name","clearable","disabled","disable","readonly","onUpdate:modelValue"]))],2)),[[r.vShow,c(L)]])),128)),r.renderSlot(N.$slots,"default"),r.createVNode(r.unref(Bh),{saving:N.saving,"saved-at":N.savedAt,"saving-class":N.savingClass},null,8,["saving","saved-at","saving-class"]),m.value!==!1?(r.openBlock(),r.createBlock(r.unref(Kt),{key:1,title:"Change variation name",onConfirm:x,onClose:$[2]||($[2]=L=>m.value=!1)},{default:r.withCtx(()=>[r.createVNode(r.unref(On),{modelValue:h.value,"onUpdate:modelValue":$[1]||($[1]=L=>h.value=L),label:"Enter name",placeholder:"Variation Name","input-class":"bg-white"},null,8,["modelValue"])]),_:1})):r.createCommentVNode("",!0),g.value?(r.openBlock(),r.createBlock(r.unref(Kt),{key:2,title:`Remove variation ${g.value}?`,content:"You cannot undo this action. If there was any analytics collected for this variation, it will still be attributed to the ad.","confirm-class":"bg-red-900 text-white","content-class":"w-96",onConfirm:$[3]||($[3]=L=>T(g.value)),onClose:$[4]||($[4]=L=>g.value="")},null,8,["title"])):r.createCommentVNode("",!0)])}}}),Nh=r.defineComponent({__name:"ActionForm",props:{action:{},target:{},form:{},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},clearable:{type:Boolean},fieldClass:{default:""},savingClass:{default:void 0},hideSavedAt:{type:Boolean}},emits:["saved"],setup(t,{emit:e}){const n=e,o=t,s={form:o.form,noLabel:o.noLabel,showName:o.showName,disabled:o.disabled,readonly:o.readonly,clearable:o.clearable,fieldClass:o.fieldClass,savingClass:o.savingClass},i=r.ref({...o.target}),l={};r.watch(()=>o.target,u=>{var d;if(u)for(let f of o.form.fields)(d=l[f.name])!=null&&d.isSaving||(i.value[f.name]=u[f.name])});const a=r.computed(()=>{for(let u of o.form.fields){const d=i.value[u.name];if(u.required&&!d&&d!==!1&&d!==0)return!1}return!0});async function c(){a.value&&(await o.action.trigger(o.target,i.value),n("saved"))}return(u,d)=>(r.openBlock(),r.createBlock(ka,r.mergeProps(s,{values:i.value,"onUpdate:values":[d[0]||(d[0]=f=>i.value=f),c],"empty-value":"","saved-at":u.hideSavedAt?void 0:u.target.updated_at,saving:u.action.isApplying}),{default:r.withCtx(()=>[r.renderSlot(u.$slots,"default")]),_:3},16,["values","saved-at","saving"]))}}),TS=r.defineComponent({__name:"RenderedFormDialog",props:r.mergeModels({title:{},confirmText:{},form:{},noLabel:{type:Boolean},showName:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},clearable:{type:Boolean},fieldClass:{},savingClass:{},hideSavedAt:{type:Boolean},contentClass:{}},{modelValue:{},modelModifiers:{}}),emits:r.mergeModels(["confirm","close"],["update:modelValue"]),setup(t){const e=t,n=r.useModel(t,"modelValue"),o={form:e.form,noLabel:e.noLabel,showName:e.showName,disabled:e.disabled,readonly:e.readonly,clearable:e.clearable,fieldClass:e.fieldClass,savingClass:e.savingClass};return(s,i)=>(r.openBlock(),r.createBlock(r.unref(Kt),{title:s.title,"confirm-text":s.confirmText||s.title,"content-class":s.contentClass,onConfirm:i[1]||(i[1]=l=>s.$emit("confirm",n.value)),onClose:i[2]||(i[2]=l=>s.$emit("close"))},{default:r.withCtx(()=>[r.createVNode(r.unref(ka),r.mergeProps(o,{values:n.value,"onUpdate:values":i[0]||(i[0]=l=>n.value=l),"empty-value":""}),{default:r.withCtx(()=>[r.renderSlot(s.$slots,"default")]),_:3},16,["values"])]),_:3},8,["title","confirm-text","content-class"]))}});function $h(t){const{file:e}=t,n=r.ref(!1);function o(){var l,a;if(!((l=e.value)!=null&&l.id)||n.value||!((a=fe.value.fileUpload)!=null&&a.refreshFile))return!1;const i=e.value.transcodes;return i==null||Array.isArray(i)&&i.length===0}async function s(){var i,l;if(o()){n.value=!0;try{const a=(i=fe.value.fileUpload)==null?void 0:i.refreshFile;if(a&&((l=e.value)!=null&&l.id)){const c=await a(e.value.id);c.transcodes&&e.value&&(e.value.transcodes=c.transcodes)}}catch(a){console.error("Failed to load transcodes:",a)}finally{n.value=!1}}}return r.onMounted(()=>{s()}),r.watch(()=>{var i;return(i=e.value)==null?void 0:i.id},()=>{s()}),{isLoading:n,loadTranscodes:s}}const BS={key:0,class:"relative max-h-full max-w-full w-full flex justify-center"},NS={class:"max-h-full",preload:"auto"},$S=["src","type"],IS={key:2,class:"flex items-center justify-center h-full"},AS={key:0,class:"text-[.7rem] bg-slate-900 text-slate-300 opacity-80 h-[2.25rem] py-.5 px-1 absolute-bottom"},LS={key:1,class:"absolute-bottom w-full bg-slate-800"},FS={class:"absolute-full flex items-center flex-nowrap text-[.7rem] text-slate-200 justify-start px-1"},MS={class:"whitespace-nowrap overflow-hidden ellipsis"},OS={class:"absolute top-1 right-1 flex items-center flex-nowrap justify-between space-x-1 transition-all opacity-0 group-hover:opacity-100"},DS={class:"flex items-center flex-nowrap gap-1"},vS={class:"flex items-center flex-nowrap gap-1"},VS={key:0,class:"font-bold text-[1rem] leading-[1.2rem]"},Cr=tt(r.defineComponent({__name:"FilePreview",props:{src:{default:""},file:{default:null},relatedFiles:{default:null},missingIcon:{default:ra},showFilename:{type:Boolean},downloadButtonClass:{default:"bg-blue-600 text-white"},imageFit:{default:"cover"},downloadable:{type:Boolean,default:!1},removable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},square:{type:Boolean,default:!1},btnSize:{default:"sm"}},emits:["remove"],setup(t,{emit:e}){const n=e,o=t,s=r.toRef(o,"file"),i=r.toRef(o,"src"),{computedImage:l,filename:a,mimeType:c,isVideo:u,isPdf:d,isExternalLink:f,previewUrl:h,thumbUrl:m,isPreviewable:g,hasMetadata:p,metadataKeyCount:_,filteredMetadata:b,hasTranscodes:y,transcodingStatus:w}=la({file:s,src:i});$h({file:s});const k=r.ref(!1),S=r.ref(!1),C=r.ref(!1),x=r.computed(()=>{var F;return o.file&&((F=o.file)==null?void 0:F.progress)!==void 0}),T=r.computed(()=>{var F;return x.value?"Uploading...":(F=w.value)==null?void 0:F.message}),B=r.computed(()=>{var F;return((F=o.relatedFiles)==null?void 0:F.length)>0?Sp([l.value,...o.relatedFiles],N):[l.value]});function N(F,P){var A,L,D,I;return F.id===P.id||[P.url,(A=P.optimized)==null?void 0:A.url,(L=P.thumb)==null?void 0:L.url].includes(F.url)||[F.url,(D=F.optimized)==null?void 0:D.url,(I=F.thumb)==null?void 0:I.url].includes(P.url)}function $(){C.value?n("remove"):(C.value=!0,setTimeout(()=>{C.value=!1},2e3))}function O(){if(l.value&&Hs(l.value)){window.open(l.value.url,"_blank");return}k.value=!0}return(F,P)=>{var j,M,v,H,K;const A=r.resolveComponent("QImg"),L=r.resolveComponent("QTooltip"),D=r.resolveComponent("QSpinnerPie"),I=r.resolveComponent("QLinearProgress"),W=r.resolveComponent("QBadge"),U=r.resolveComponent("QBtn");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["group relative flex justify-center bg-gray-100 overflow-hidden",{"rounded-2xl":!F.square}])},[r.unref(l)?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",{class:"grow h-full",onClick:O},[r.unref(u)?(r.openBlock(),r.createElementBlock("div",BS,[r.createElementVNode("video",NS,[r.createElementVNode("source",{src:r.unref(h)+"#t=0.1",type:r.unref(c)},null,8,$S)]),r.createElementVNode("button",{class:r.normalizeClass(F.cls["play-button"])},[r.createVNode(r.unref(H4),{class:"w-16"})],2)])):r.createCommentVNode("",!0),r.unref(m)||r.unref(g)?(r.openBlock(),r.createBlock(A,{key:1,fit:F.imageFit,class:"non-selectable max-h-full max-w-full h-full",src:(r.unref(m)||r.unref(h))+"#t=0.1",preload:"auto","data-testid":"previewed-image"},null,8,["fit","src"])):(r.openBlock(),r.createElementBlock("div",IS,[r.unref(f)?(r.openBlock(),r.createBlock(r.unref(Kf),{key:0,class:"h-3/4"})):r.unref(d)?(r.openBlock(),r.createBlock(r.unref(Zf),{key:1,class:"w-3/4"})):(r.openBlock(),r.createBlock(r.unref(D4),{key:2,class:"w-3/4"})),r.unref(a)?(r.openBlock(),r.createElementBlock(r.Fragment,{key:3},[F.showFilename?(r.openBlock(),r.createElementBlock("div",AS,r.toDisplayString(r.unref(a)),1)):(r.openBlock(),r.createBlock(L,{key:1},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(a)),1)]),_:1}))],64)):r.createCommentVNode("",!0)]))]),F.$slots["action-button"]?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(F.cls["action-button"])},[r.renderSlot(F.$slots,"action-button")],2)):r.createCommentVNode("",!0),x.value||r.unref(w)?(r.openBlock(),r.createElementBlock("div",LS,[(r.openBlock(),r.createBlock(I,{key:"progress-"+x.value?"uploading":"transcoding",value:x.value?((j=F.file)==null?void 0:j.progress)||0:(((M=r.unref(w))==null?void 0:M.progress)||0)/100,size:"36px",color:x.value?"green-800":"blue-800","animation-speed":((v=r.unref(w))==null?void 0:v.estimate_ms)||3e3,stripe:""},{default:r.withCtx(()=>[r.createElementVNode("div",FS,[r.createVNode(D,{class:"mr-2 text-slate-50 ml-1 flex-shrink-0",size:F.btnSize==="xs"?10:20},null,8,["size"]),T.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",MS,r.toDisplayString(T.value),1),r.createVNode(L,{class:"text-sm"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(T.value),1)]),_:1})],64)):r.createCommentVNode("",!0)])]),_:1},8,["value","color","animation-speed"]))])):r.createCommentVNode("",!0)],64)):r.renderSlot(F.$slots,"missing",{key:1},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(F.missingIcon),{class:"w-full h-full p-2 text-gray-300"}))]),r.createElementVNode("div",OS,[r.unref(p)?(r.openBlock(),r.createBlock(U,{key:0,size:F.btnSize,class:"dx-file-preview-metadata bg-purple-700 text-white opacity-70 hover:opacity-100 py-1 px-2 relative",onClick:P[0]||(P[0]=r.withModifiers(Z=>S.value=!0,["stop"]))},{default:r.withCtx(()=>[r.createElementVNode("div",DS,[r.createVNode(r.unref(Su),{class:"w-4 h-4"}),r.createVNode(W,{class:"bg-purple-900 text-purple-200",label:r.unref(_)},null,8,["label"])]),r.createVNode(L,null,{default:r.withCtx(()=>P[5]||(P[5]=[r.createTextVNode("View Metadata")])),_:1})]),_:1},8,["size"])):r.createCommentVNode("",!0),r.unref(y)?(r.openBlock(),r.createBlock(U,{key:1,size:F.btnSize,class:"dx-file-preview-transcodes bg-purple-700 text-white opacity-70 hover:opacity-100 py-1 px-2 relative",onClick:P[1]||(P[1]=r.withModifiers(Z=>k.value=!0,["stop"]))},{default:r.withCtx(()=>{var Z,re;return[r.createElementVNode("div",vS,[r.createVNode(r.unref(oh),{class:"w-4 h-5"}),r.createVNode(W,{class:"bg-purple-900 text-purple-200",label:((re=(Z=F.file)==null?void 0:Z.transcodes)==null?void 0:re.length)||0},null,8,["label"])]),r.createVNode(L,null,{default:r.withCtx(()=>P[6]||(P[6]=[r.createTextVNode("View Transcodes")])),_:1})]}),_:1},8,["size"])):r.createCommentVNode("",!0),F.downloadable&&((H=r.unref(l))!=null&&H.url)?(r.openBlock(),r.createBlock(U,{key:2,size:F.btnSize,class:r.normalizeClass(["dx-file-preview-download py-1 px-2 opacity-70 hover:opacity-100",F.downloadButtonClass]),onClick:P[2]||(P[2]=r.withModifiers(Z=>r.unref($i)(r.unref(l).url),["stop"]))},{default:r.withCtx(()=>[r.createVNode(r.unref(V4),{class:"w-4 h-5"})]),_:1},8,["size","class"])):r.createCommentVNode("",!0),F.removable?(r.openBlock(),r.createBlock(U,{key:3,size:F.btnSize,class:"dx-file-preview-remove bg-red-900 text-white opacity-50 hover:opacity-100 py-1 px-2",onClick:r.withModifiers($,["stop"])},{default:r.withCtx(()=>[C.value?(r.openBlock(),r.createElementBlock("div",VS," ? ")):(r.openBlock(),r.createBlock(r.unref(Ps),{key:1,class:"w-3"}))]),_:1},8,["size"])):r.createCommentVNode("",!0)]),S.value?(r.openBlock(),r.createBlock(ua,{key:2,filename:r.unref(a),"mime-type":r.unref(c),metadata:r.unref(b),onClose:P[3]||(P[3]=Z=>S.value=!1)},null,8,["filename","mime-type","metadata"])):r.createCommentVNode("",!0),k.value&&!F.disabled&&B.value?(r.openBlock(),r.createBlock(r.unref(mh),{key:3,files:B.value,"default-slide":((K=B.value[0])==null?void 0:K.id)||"",onClose:P[4]||(P[4]=Z=>k.value=!1)},null,8,["files","default-slide"])):r.createCommentVNode("",!0)],2)}}}),[["__cssModules",{cls:{container:"_container_10wbt_1","pointer-events-none":"_pointer-events-none_10wbt_1","!visible":"_!visible_10wbt_1",visible:"_visible_10wbt_1",collapse:"_collapse_10wbt_231",static:"_static_10wbt_1",fixed:"_fixed_10wbt_1",absolute:"_absolute_10wbt_1",relative:"_relative_10wbt_1",sticky:"_sticky_10wbt_1","inset-0":"_inset-0_10wbt_1","bottom-0":"_bottom-0_10wbt_1","left-0":"_left-0_10wbt_1","left-2":"_left-2_10wbt_1","left-4":"_left-4_10wbt_1","right-0":"_right-0_10wbt_1","right-1":"_right-1_10wbt_1","right-2":"_right-2_10wbt_1","right-4":"_right-4_10wbt_1","top-0":"_top-0_10wbt_1","top-1":"_top-1_10wbt_1","top-1/2":"_top-1/2_10wbt_1","top-2":"_top-2_10wbt_1","z-0":"_z-0_10wbt_1","z-10":"_z-10_10wbt_1","z-20":"_z-20_10wbt_1","z-30":"_z-30_10wbt_1","m-2":"_m-2_10wbt_1","m-4":"_m-4_10wbt_1","m-auto":"_m-auto_10wbt_1","mx-1":"_mx-1_10wbt_1","mx-4":"_mx-4_10wbt_1","mx-auto":"_mx-auto_10wbt_1","my-2":"_my-2_10wbt_1","!mr-1":"_!mr-1_10wbt_1","mb-2":"_mb-2_10wbt_1","mb-4":"_mb-4_10wbt_1","ml-1":"_ml-1_10wbt_1","ml-2":"_ml-2_10wbt_1","ml-2.5":"_ml-2.5_10wbt_1","ml-3":"_ml-3_10wbt_1","ml-4":"_ml-4_10wbt_1","ml-5":"_ml-5_10wbt_1","ml-[-.2em]":"_ml-[-.2em]_10wbt_1","mr-1":"_mr-1_10wbt_1","mr-2":"_mr-2_10wbt_1","mr-3":"_mr-3_10wbt_1","mr-4":"_mr-4_10wbt_1","mt-1":"_mt-1_10wbt_1","mt-2":"_mt-2_10wbt_1","mt-3":"_mt-3_10wbt_1","mt-4":"_mt-4_10wbt_1","!block":"_!block_10wbt_1",block:"_block_10wbt_1","inline-block":"_inline-block_10wbt_1",inline:"_inline_10wbt_1",flex:"_flex_10wbt_1","!table":"_!table_10wbt_1",table:"_table_10wbt_1",grid:"_grid_10wbt_1",contents:"_contents_10wbt_1",hidden:"_hidden_10wbt_1","aspect-square":"_aspect-square_10wbt_1","h-10":"_h-10_10wbt_1","h-12":"_h-12_10wbt_1","h-16":"_h-16_10wbt_1","h-20":"_h-20_10wbt_1","h-3":"_h-3_10wbt_1","h-3.5":"_h-3.5_10wbt_1","h-3/4":"_h-3/4_10wbt_1","h-4":"_h-4_10wbt_1","h-5":"_h-5_10wbt_1","h-6":"_h-6_10wbt_1","h-8":"_h-8_10wbt_1","h-96":"_h-96_10wbt_1","h-[2.25rem]":"_h-[2.25rem]_10wbt_1","h-[80vh]":"_h-[80vh]_10wbt_1","h-full":"_h-full_10wbt_1","max-h-[80vh]":"_max-h-[80vh]_10wbt_1","max-h-full":"_max-h-full_10wbt_1","min-h-0":"_min-h-0_10wbt_1","min-h-10":"_min-h-10_10wbt_1","w-10":"_w-10_10wbt_1","w-16":"_w-16_10wbt_1","w-2":"_w-2_10wbt_1","w-2/5":"_w-2/5_10wbt_1","w-20":"_w-20_10wbt_1","w-24":"_w-24_10wbt_1","w-3":"_w-3_10wbt_1","w-3.5":"_w-3.5_10wbt_1","w-3/4":"_w-3/4_10wbt_1","w-3/5":"_w-3/5_10wbt_1","w-32":"_w-32_10wbt_1","w-4":"_w-4_10wbt_1","w-48":"_w-48_10wbt_1","w-5":"_w-5_10wbt_1","w-6":"_w-6_10wbt_1","w-7":"_w-7_10wbt_1","w-72":"_w-72_10wbt_1","w-8":"_w-8_10wbt_1","w-96":"_w-96_10wbt_1","w-[13.5rem]":"_w-[13.5rem]_10wbt_1","w-[40%]":"_w-[40%]_10wbt_1","w-[6.5rem]":"_w-[6.5rem]_10wbt_1","w-[60vw]":"_w-[60vw]_10wbt_1","w-[80vw]":"_w-[80vw]_10wbt_1","w-full":"_w-full_10wbt_1","!min-w-0":"_!min-w-0_10wbt_1","min-w-0":"_min-w-0_10wbt_1","min-w-10":"_min-w-10_10wbt_1","min-w-96":"_min-w-96_10wbt_1","min-w-[300px]":"_min-w-[300px]_10wbt_1","max-w-[400px]":"_max-w-[400px]_10wbt_1","max-w-[600px]":"_max-w-[600px]_10wbt_1","max-w-full":"_max-w-full_10wbt_1","max-w-none":"_max-w-none_10wbt_1","flex-1":"_flex-1_10wbt_1","flex-shrink":"_flex-shrink_10wbt_1","flex-shrink-0":"_flex-shrink-0_10wbt_1",shrink:"_shrink_10wbt_1","flex-grow":"_flex-grow_10wbt_1",grow:"_grow_10wbt_1","-translate-y-1/2":"_-translate-y-1/2_10wbt_1","rotate-180":"_rotate-180_10wbt_1","scale-110":"_scale-110_10wbt_1",transform:"_transform_10wbt_1","cursor-ew-resize":"_cursor-ew-resize_10wbt_1","cursor-move":"_cursor-move_10wbt_1","cursor-not-allowed":"_cursor-not-allowed_10wbt_1","cursor-ns-resize":"_cursor-ns-resize_10wbt_1","cursor-pointer":"_cursor-pointer_10wbt_1","select-all":"_select-all_10wbt_1",resize:"_resize_10wbt_1","grid-cols-3":"_grid-cols-3_10wbt_1","flex-col":"_flex-col_10wbt_1","flex-wrap":"_flex-wrap_10wbt_1","flex-nowrap":"_flex-nowrap_10wbt_1","items-center":"_items-center_10wbt_1","items-stretch":"_items-stretch_10wbt_1","justify-start":"_justify-start_10wbt_1","justify-end":"_justify-end_10wbt_1","justify-center":"_justify-center_10wbt_1","justify-between":"_justify-between_10wbt_1","gap-1":"_gap-1_10wbt_1","gap-2":"_gap-2_10wbt_1","gap-3":"_gap-3_10wbt_1","gap-x-2":"_gap-x-2_10wbt_1","gap-x-4":"_gap-x-4_10wbt_1","gap-y-0":"_gap-y-0_10wbt_1","gap-y-1":"_gap-y-1_10wbt_1","space-x-1":"_space-x-1_10wbt_1","space-x-2":"_space-x-2_10wbt_1","self-center":"_self-center_10wbt_1","overflow-auto":"_overflow-auto_10wbt_1","overflow-hidden":"_overflow-hidden_10wbt_1","overflow-x-auto":"_overflow-x-auto_10wbt_1","overflow-y-auto":"_overflow-y-auto_10wbt_70","overflow-x-hidden":"_overflow-x-hidden_10wbt_1","overflow-y-hidden":"_overflow-y-hidden_10wbt_1","scroll-smooth":"_scroll-smooth_10wbt_1",truncate:"_truncate_10wbt_1","overflow-ellipsis":"_overflow-ellipsis_10wbt_1","whitespace-normal":"_whitespace-normal_10wbt_1","whitespace-nowrap":"_whitespace-nowrap_10wbt_1","whitespace-pre-wrap":"_whitespace-pre-wrap_10wbt_1",rounded:"_rounded_10wbt_1","rounded-2xl":"_rounded-2xl_10wbt_1","rounded-full":"_rounded-full_10wbt_1","rounded-lg":"_rounded-lg_10wbt_1","rounded-md":"_rounded-md_10wbt_1","rounded-sm":"_rounded-sm_10wbt_1","!rounded-l-none":"_!rounded-l-none_10wbt_1","!rounded-r-none":"_!rounded-r-none_10wbt_1","rounded-b-lg":"_rounded-b-lg_10wbt_1","rounded-l-lg":"_rounded-l-lg_10wbt_1","rounded-r-lg":"_rounded-r-lg_10wbt_1","rounded-t-2xl":"_rounded-t-2xl_10wbt_1","rounded-t-lg":"_rounded-t-lg_10wbt_1","rounded-t-md":"_rounded-t-md_10wbt_1","rounded-br":"_rounded-br_10wbt_1","rounded-tl":"_rounded-tl_10wbt_1","!border-0":"_!border-0_10wbt_1",border:"_border_10wbt_1","border-2":"_border-2_10wbt_1","border-b":"_border-b_10wbt_1","border-l":"_border-l_10wbt_1","border-l-0":"_border-l-0_10wbt_1","border-r":"_border-r_10wbt_1","border-solid":"_border-solid_10wbt_1","border-dashed":"_border-dashed_10wbt_1","border-none":"_border-none_10wbt_1","border-blue-500":"_border-blue-500_10wbt_1","border-blue-600":"_border-blue-600_10wbt_1","border-blue-700":"_border-blue-700_10wbt_1","border-gray-200":"_border-gray-200_10wbt_1","border-gray-300":"_border-gray-300_10wbt_1","border-purple-500":"_border-purple-500_10wbt_1","border-slate-200":"_border-slate-200_10wbt_1","border-slate-700":"_border-slate-700_10wbt_1","border-transparent":"_border-transparent_10wbt_1","bg-amber-300":"_bg-amber-300_10wbt_1","bg-amber-950":"_bg-amber-950_10wbt_1","bg-black":"_bg-black_10wbt_1","bg-blue-200":"_bg-blue-200_10wbt_1","bg-blue-300":"_bg-blue-300_10wbt_1","bg-blue-600":"_bg-blue-600_10wbt_1","bg-blue-900":"_bg-blue-900_10wbt_1","bg-blue-950":"_bg-blue-950_10wbt_1","bg-cyan-950":"_bg-cyan-950_10wbt_1","bg-emerald-200":"_bg-emerald-200_10wbt_1","bg-emerald-950":"_bg-emerald-950_10wbt_1","bg-fuchsia-950":"_bg-fuchsia-950_10wbt_1","bg-gray-100":"_bg-gray-100_10wbt_1","bg-gray-200":"_bg-gray-200_10wbt_1","bg-gray-400":"_bg-gray-400_10wbt_1","bg-gray-50":"_bg-gray-50_10wbt_1","bg-gray-500":"_bg-gray-500_10wbt_1","bg-gray-800":"_bg-gray-800_10wbt_1","bg-green-200":"_bg-green-200_10wbt_1","bg-green-300":"_bg-green-300_10wbt_1","bg-green-900":"_bg-green-900_10wbt_1","bg-green-950":"_bg-green-950_10wbt_1","bg-indigo-950":"_bg-indigo-950_10wbt_1","bg-lime-300":"_bg-lime-300_10wbt_1","bg-lime-950":"_bg-lime-950_10wbt_1","bg-orange-900":"_bg-orange-900_10wbt_1","bg-orange-950":"_bg-orange-950_10wbt_1","bg-purple-700":"_bg-purple-700_10wbt_1","bg-purple-900":"_bg-purple-900_10wbt_1","bg-purple-950":"_bg-purple-950_10wbt_1","bg-red-200":"_bg-red-200_10wbt_1","bg-red-300":"_bg-red-300_10wbt_1","bg-red-900":"_bg-red-900_10wbt_1","bg-red-950":"_bg-red-950_10wbt_1","bg-rose-950":"_bg-rose-950_10wbt_1","bg-sky-300":"_bg-sky-300_10wbt_1","bg-sky-50":"_bg-sky-50_10wbt_1","bg-sky-800":"_bg-sky-800_10wbt_1","bg-sky-900":"_bg-sky-900_10wbt_1","bg-sky-950":"_bg-sky-950_10wbt_1","bg-slate-100":"_bg-slate-100_10wbt_1","bg-slate-300":"_bg-slate-300_10wbt_1","bg-slate-400":"_bg-slate-400_10wbt_1","bg-slate-500":"_bg-slate-500_10wbt_1","bg-slate-600":"_bg-slate-600_10wbt_1","bg-slate-700":"_bg-slate-700_10wbt_1","bg-slate-800":"_bg-slate-800_10wbt_1","bg-slate-900":"_bg-slate-900_10wbt_1","bg-slate-950":"_bg-slate-950_10wbt_1","bg-teal-200":"_bg-teal-200_10wbt_1","bg-teal-500":"_bg-teal-500_10wbt_1","bg-teal-950":"_bg-teal-950_10wbt_1","bg-transparent":"_bg-transparent_10wbt_1","bg-violet-950":"_bg-violet-950_10wbt_1","bg-white":"_bg-white_10wbt_1","bg-yellow-300":"_bg-yellow-300_10wbt_1","bg-yellow-800":"_bg-yellow-800_10wbt_1","bg-yellow-950":"_bg-yellow-950_10wbt_1","bg-opacity-70":"_bg-opacity-70_10wbt_1","bg-opacity-80":"_bg-opacity-80_10wbt_1","bg-opacity-90":"_bg-opacity-90_10wbt_1","!bg-none":"_!bg-none_10wbt_1","object-contain":"_object-contain_10wbt_1","object-cover":"_object-cover_10wbt_1","!p-2":"_!p-2_10wbt_1","p-0":"_p-0_10wbt_1","p-1":"_p-1_10wbt_1","p-2":"_p-2_10wbt_1","p-3":"_p-3_10wbt_1","p-4":"_p-4_10wbt_1","p-8":"_p-8_10wbt_1","!py-0":"_!py-0_10wbt_1","px-1":"_px-1_10wbt_1","px-1.5":"_px-1.5_10wbt_1","px-12":"_px-12_10wbt_1","px-16":"_px-16_10wbt_1","px-2":"_px-2_10wbt_1","px-2.5":"_px-2.5_10wbt_1","px-3":"_px-3_10wbt_1","px-4":"_px-4_10wbt_1","px-6":"_px-6_10wbt_1","px-8":"_px-8_10wbt_1","py-0":"_py-0_10wbt_1","py-0.5":"_py-0.5_10wbt_1","py-1":"_py-1_10wbt_1","py-1.5":"_py-1.5_10wbt_1","py-14":"_py-14_10wbt_1","py-2":"_py-2_10wbt_1","py-3":"_py-3_10wbt_1","py-4":"_py-4_10wbt_1","py-8":"_py-8_10wbt_1","pl-1":"_pl-1_10wbt_1","pt-3":"_pt-3_10wbt_1","text-left":"_text-left_10wbt_1","text-center":"_text-center_10wbt_1","text-[.7rem]":"_text-[.7rem]_10wbt_1","text-[1rem]":"_text-[1rem]_10wbt_1","text-base":"_text-base_10wbt_1","text-lg":"_text-lg_10wbt_1","text-sm":"_text-sm_10wbt_1","text-xs":"_text-xs_10wbt_1","font-bold":"_font-bold_10wbt_1","font-medium":"_font-medium_10wbt_1","font-semibold":"_font-semibold_10wbt_1",uppercase:"_uppercase_10wbt_1",lowercase:"_lowercase_10wbt_1",italic:"_italic_10wbt_1","leading-[1.2rem]":"_leading-[1.2rem]_10wbt_1","!text-green-900":"_!text-green-900_10wbt_1","!text-red-900":"_!text-red-900_10wbt_1","!text-sky-900":"_!text-sky-900_10wbt_1","!text-white":"_!text-white_10wbt_1","!text-yellow-900":"_!text-yellow-900_10wbt_1","text-amber-400":"_text-amber-400_10wbt_1","text-amber-900":"_text-amber-900_10wbt_1","text-blue-300":"_text-blue-300_10wbt_1","text-blue-400":"_text-blue-400_10wbt_1","text-blue-600":"_text-blue-600_10wbt_1","text-blue-900":"_text-blue-900_10wbt_1","text-cyan-400":"_text-cyan-400_10wbt_1","text-emerald-400":"_text-emerald-400_10wbt_1","text-fuchsia-400":"_text-fuchsia-400_10wbt_1","text-gray-300":"_text-gray-300_10wbt_1","text-gray-400":"_text-gray-400_10wbt_1","text-gray-500":"_text-gray-500_10wbt_1","text-gray-600":"_text-gray-600_10wbt_1","text-gray-700":"_text-gray-700_10wbt_1","text-gray-900":"_text-gray-900_10wbt_1","text-green-300":"_text-green-300_10wbt_1","text-green-400":"_text-green-400_10wbt_1","text-green-700":"_text-green-700_10wbt_1","text-green-900":"_text-green-900_10wbt_1","text-indigo-400":"_text-indigo-400_10wbt_1","text-lime-400":"_text-lime-400_10wbt_1","text-lime-900":"_text-lime-900_10wbt_1","text-orange-400":"_text-orange-400_10wbt_1","text-purple-200":"_text-purple-200_10wbt_1","text-purple-300":"_text-purple-300_10wbt_1","text-purple-400":"_text-purple-400_10wbt_1","text-red-400":"_text-red-400_10wbt_1","text-red-500":"_text-red-500_10wbt_1","text-red-800":"_text-red-800_10wbt_1","text-red-900":"_text-red-900_10wbt_1","text-rose-400":"_text-rose-400_10wbt_1","text-sky-400":"_text-sky-400_10wbt_1","text-sky-500":"_text-sky-500_10wbt_1","text-sky-600":"_text-sky-600_10wbt_1","text-sky-900":"_text-sky-900_10wbt_1","text-slate-200":"_text-slate-200_10wbt_1","text-slate-300":"_text-slate-300_10wbt_1","text-slate-400":"_text-slate-400_10wbt_1","text-slate-50":"_text-slate-50_10wbt_1","text-slate-500":"_text-slate-500_10wbt_1","text-slate-600":"_text-slate-600_10wbt_1","text-slate-800":"_text-slate-800_10wbt_1","text-slate-900":"_text-slate-900_10wbt_1","text-teal-200":"_text-teal-200_10wbt_1","text-teal-400":"_text-teal-400_10wbt_1","text-teal-800":"_text-teal-800_10wbt_1","text-violet-400":"_text-violet-400_10wbt_1","text-white":"_text-white_10wbt_1","text-yellow-300":"_text-yellow-300_10wbt_1","text-yellow-400":"_text-yellow-400_10wbt_1","text-yellow-600":"_text-yellow-600_10wbt_1","text-zinc-500":"_text-zinc-500_10wbt_1","text-zinc-800":"_text-zinc-800_10wbt_1",underline:"_underline_10wbt_1","line-through":"_line-through_10wbt_1","opacity-0":"_opacity-0_10wbt_1","opacity-100":"_opacity-100_10wbt_1","opacity-20":"_opacity-20_10wbt_1","opacity-50":"_opacity-50_10wbt_1","opacity-60":"_opacity-60_10wbt_1","opacity-70":"_opacity-70_10wbt_1","opacity-80":"_opacity-80_10wbt_1","opacity-90":"_opacity-90_10wbt_1",shadow:"_shadow_10wbt_1","shadow-none":"_shadow-none_10wbt_1","shadow-xl":"_shadow-xl_10wbt_1","outline-none":"_outline-none_10wbt_1",outline:"_outline_10wbt_1","outline-offset-0":"_outline-offset-0_10wbt_1",blur:"_blur_10wbt_1",filter:"_filter_10wbt_1","backdrop-filter":"_backdrop-filter_10wbt_1",transition:"_transition_10wbt_1","transition-all":"_transition-all_10wbt_1","transition-colors":"_transition-colors_10wbt_1","transition-opacity":"_transition-opacity_10wbt_1","duration-300":"_duration-300_10wbt_1","danx-app":"_danx-app_10wbt_4","q-tab":"_q-tab_10wbt_4","q-table__card":"_q-table__card_10wbt_7","q-checkbox__inner":"_q-checkbox__inner_10wbt_11","q-toolbar":"_q-toolbar_10wbt_14","q-notification__actions":"_q-notification__actions_10wbt_19","q-date":"_q-date_10wbt_22","q-date__view":"_q-date__view_10wbt_25","q-field":"_q-field_10wbt_28","q-field--auto-height":"_q-field--auto-height_10wbt_28","q-field__control":"_q-field__control_10wbt_28","q-field__native":"_q-field__native_10wbt_31","q-field--labeled":"_q-field--labeled_10wbt_35","q-field__control-container":"_q-field__control-container_10wbt_35","q-textarea":"_q-textarea_10wbt_38","q-field__marginal":"_q-field__marginal_10wbt_41","q-field__input":"_q-field__input_10wbt_41","q-field__label":"_q-field__label_10wbt_41","q-btn":"_q-btn_10wbt_48","q-item":"_q-item_10wbt_56","q-tab-panels":"_q-tab-panels_10wbt_60","q-panel":"_q-panel_10wbt_64",scroll:"_scroll_10wbt_67","dx-dialog":"_dx-dialog_10wbt_74","q-card__section--vert":"_q-card__section--vert_10wbt_74","q-banner":"_q-banner_10wbt_78",app:"_app_10wbt_1","main-layout":"_main-layout_10wbt_1","is-disabled":"_is-disabled_10wbt_95","disable-all-transitions":"_disable-all-transitions_10wbt_100","v-enter-active":"_v-enter-active_10wbt_104","v-leave-active":"_v-leave-active_10wbt_105","v-enter-from":"_v-enter-from_10wbt_109","v-leave-to":"_v-leave-to_10wbt_110","dx-scrollbar":"_dx-scrollbar_10wbt_114","dx-scrollbar-dark":"_dx-scrollbar-dark_10wbt_157","dx-scrollbar-hidden":"_dx-scrollbar-hidden_10wbt_199","dx-code-viewer":"_dx-code-viewer_10wbt_207","is-collapsed":"_is-collapsed_10wbt_211","code-collapsed":"_code-collapsed_10wbt_214","code-collapsed-preview":"_code-collapsed-preview_10wbt_225","collapse-toggle":"_collapse-toggle_10wbt_231","collapse-header":"_collapse-header_10wbt_234","code-content":"_code-content_10wbt_243","is-collapsible":"_is-collapsible_10wbt_257","code-footer":"_code-footer_10wbt_267","has-error":"_has-error_10wbt_273","language-badge":"_language-badge_10wbt_277","syntax-key":"_syntax-key_10wbt_284","syntax-string":"_syntax-string_10wbt_287","syntax-number":"_syntax-number_10wbt_290","syntax-boolean":"_syntax-boolean_10wbt_293","syntax-null":"_syntax-null_10wbt_296","syntax-punctuation":"_syntax-punctuation_10wbt_299","is-editable":"_is-editable_10wbt_302","dx-markdown-content":"_dx-markdown-content_10wbt_316","task-list":"_task-list_10wbt_406","task-list-item":"_task-list-item_10wbt_410","footnote-ref":"_footnote-ref_10wbt_491",footnotes:"_footnotes_10wbt_499","footnote-list":"_footnote-list_10wbt_506","footnote-item":"_footnote-item_10wbt_509","footnote-backref":"_footnote-backref_10wbt_512","dx-action-table":"_dx-action-table_10wbt_517","dx-column-shrink":"_dx-column-shrink_10wbt_517","action-button":"_action-button_10wbt_521","play-button":"_play-button_10wbt_528","hover:scale-105":"_hover:scale-105_10wbt_1","hover:bg-amber-400":"_hover:bg-amber-400_10wbt_1","hover:bg-blue-200":"_hover:bg-blue-200_10wbt_1","hover:bg-blue-400":"_hover:bg-blue-400_10wbt_1","hover:bg-blue-800":"_hover:bg-blue-800_10wbt_1","hover:bg-gray-200":"_hover:bg-gray-200_10wbt_1","hover:bg-green-100":"_hover:bg-green-100_10wbt_1","hover:bg-green-400":"_hover:bg-green-400_10wbt_1","hover:bg-green-800":"_hover:bg-green-800_10wbt_1","hover:bg-lime-400":"_hover:bg-lime-400_10wbt_1","hover:bg-orange-800":"_hover:bg-orange-800_10wbt_1","hover:bg-purple-600":"_hover:bg-purple-600_10wbt_1","hover:bg-purple-800":"_hover:bg-purple-800_10wbt_1","hover:bg-red-100":"_hover:bg-red-100_10wbt_1","hover:bg-red-200":"_hover:bg-red-200_10wbt_1","hover:bg-red-400":"_hover:bg-red-400_10wbt_1","hover:bg-sky-400":"_hover:bg-sky-400_10wbt_1","hover:bg-sky-800":"_hover:bg-sky-800_10wbt_1","hover:bg-sky-900":"_hover:bg-sky-900_10wbt_1","hover:bg-slate-200":"_hover:bg-slate-200_10wbt_1","hover:bg-slate-300":"_hover:bg-slate-300_10wbt_1","hover:bg-slate-400":"_hover:bg-slate-400_10wbt_1","hover:bg-slate-600":"_hover:bg-slate-600_10wbt_1","hover:bg-slate-700":"_hover:bg-slate-700_10wbt_1","hover:bg-slate-800":"_hover:bg-slate-800_10wbt_1","hover:bg-slate-900":"_hover:bg-slate-900_10wbt_1","hover:bg-teal-400":"_hover:bg-teal-400_10wbt_1","hover:bg-teal-600":"_hover:bg-teal-600_10wbt_1","hover:bg-yellow-700":"_hover:bg-yellow-700_10wbt_1","hover:text-blue-300":"_hover:text-blue-300_10wbt_1","hover:text-blue-500":"_hover:text-blue-500_10wbt_1","hover:text-blue-600":"_hover:text-blue-600_10wbt_1","hover:text-gray-300":"_hover:text-gray-300_10wbt_1","hover:text-gray-700":"_hover:text-gray-700_10wbt_1","hover:text-sky-600":"_hover:text-sky-600_10wbt_1","hover:text-white":"_hover:text-white_10wbt_1","hover:opacity-100":"_hover:opacity-100_10wbt_1","hover:opacity-70":"_hover:opacity-70_10wbt_1","hover:outline-4":"_hover:outline-4_10wbt_1","focus:bg-blue-200":"_focus:bg-blue-200_10wbt_1","focus:outline-4":"_focus:outline-4_10wbt_1","focus:outline-blue-200":"_focus:outline-blue-200_10wbt_1",group:"_group_10wbt_1","group-hover:opacity-100":"_group-hover:opacity-100_10wbt_1"}}]]),PS=["src","alt"],Ih={__name:"SvgImg",props:{svg:{type:[String,Object,Function],required:!0},alt:{type:String,default:""}},setup(t){const e=t,n=r.computed(()=>e.svg.default?e.svg.default:e.svg),o=r.computed(()=>typeof n.value=="string");return(s,i)=>o.value?(r.openBlock(),r.createElementBlock("img",{key:0,src:n.value,alt:t.alt},null,8,PS)):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.value),{key:1}))}},RS={class:"virtual-carousel relative w-full h-full"},US={key:0,class:"absolute left-2 top-1/2 -translate-y-1/2 z-10"},zS={key:1,class:"absolute right-2 top-1/2 -translate-y-1/2 z-10"},HS={key:2,class:"absolute bottom-0 left-0 right-0"},qS={key:3,class:"absolute top-2 right-2 bg-slate-900 bg-opacity-70 text-slate-200 px-3 py-1 rounded-full text-sm"},WS=50,jS=tt(r.defineComponent({__name:"VirtualCarousel",props:{files:{},modelValue:{default:0},showThumbnails:{type:Boolean,default:!0},showCounter:{type:Boolean,default:!0},enableKeyboard:{type:Boolean,default:!0},enableSwipe:{type:Boolean,default:!0}},emits:["update:modelValue","change"],setup(t,{emit:e}){const n=e,o=t,s=r.ref(null),i=r.ref(o.modelValue),l=r.computed(()=>o.files),{visibleSlides:a}=ca(l,i),c=r.computed(()=>i.value>0),u=r.computed(()=>i.value<o.files.length-1);function d(b){b>=0&&b<o.files.length&&(i.value=b,n("update:modelValue",b),n("change",o.files[b],b))}function f(){c.value&&d(i.value-1)}function h(){u.value&&d(i.value+1)}aa({onPrevious:f,onNext:h},{enabled:r.toRef(o,"enableKeyboard")});const m=r.ref(null);function g(b){o.enableSwipe&&(m.value={x:b.touches[0].clientX,y:b.touches[0].clientY})}function p(b){if(!o.enableSwipe||!m.value)return;const y=Math.abs(b.touches[0].clientX-m.value.x),w=Math.abs(b.touches[0].clientY-m.value.y);y>w&&b.preventDefault()}function _(b){if(!o.enableSwipe||!m.value)return;const y=b.changedTouches[0].clientX-m.value.x;Math.abs(y)>WS&&(y>0?f():h()),m.value=null}return r.watch(()=>o.modelValue,b=>{b!==i.value&&(i.value=b)}),(b,y)=>{const w=r.resolveComponent("QBtn");return r.openBlock(),r.createElementBlock("div",RS,[r.createElementVNode("div",{ref_key:"carouselContainer",ref:s,class:"carousel-slides-container w-full h-full flex items-center justify-center relative overflow-hidden",onTouchstart:g,onTouchmove:p,onTouchend:_},[r.createVNode(r.TransitionGroup,{name:"slide",tag:"div",class:"w-full h-full relative"},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(a),k=>(r.openBlock(),r.createElementBlock("div",{key:k.file.id,class:r.normalizeClass(["carousel-slide absolute inset-0 flex items-center justify-center",{active:k.isActive,inactive:!k.isActive}])},[r.renderSlot(b.$slots,"slide",{file:k.file,index:k.index,isActive:k.isActive},()=>[r.createVNode(da,{file:k.file},null,8,["file"])],!0)],2))),128))]),_:3})],544),c.value?(r.openBlock(),r.createElementBlock("div",US,[r.createVNode(w,{round:"",size:"lg",class:"bg-slate-800 text-white opacity-70 hover:opacity-100",onClick:f},{default:r.withCtx(()=>[r.createVNode(r.unref(Rs),{class:"w-6"})]),_:1})])):r.createCommentVNode("",!0),u.value?(r.openBlock(),r.createElementBlock("div",zS,[r.createVNode(w,{round:"",size:"lg",class:"bg-slate-800 text-white opacity-70 hover:opacity-100",onClick:h},{default:r.withCtx(()=>[r.createVNode(r.unref(nh),{class:"w-6"})]),_:1})])):r.createCommentVNode("",!0),b.showThumbnails&&l.value.length>1?(r.openBlock(),r.createElementBlock("div",HS,[r.createVNode(fa,{files:l.value,"current-index":i.value,onNavigate:d},null,8,["files","current-index"])])):r.createCommentVNode("",!0),b.showCounter&&l.value.length>1?(r.openBlock(),r.createElementBlock("div",qS,r.toDisplayString(i.value+1)+" / "+r.toDisplayString(l.value.length),1)):r.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-cf0021eb"]]),GS={class:"address-format"},KS={key:0,class:"address-attn"},ZS={key:1,class:"address-name"},YS={class:"address-line-1"},QS={key:0,class:"address-line-2"},XS={key:1,class:"address-line-3"},JS={class:"address-city-state-zip"},e3={__name:"AddressFormat",props:{address:{type:Object,required:!0}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",GS,[t.address.attn?(r.openBlock(),r.createElementBlock("div",KS,"Attn: "+r.toDisplayString(t.address.attn),1)):t.address.name?(r.openBlock(),r.createElementBlock("div",ZS,r.toDisplayString(t.address.name),1)):r.createCommentVNode("",!0),t.address.line1?(r.openBlock(),r.createElementBlock(r.Fragment,{key:2},[r.createElementVNode("div",YS,r.toDisplayString(t.address.line1),1),t.address.line2?(r.openBlock(),r.createElementBlock("div",QS,r.toDisplayString(t.address.line2),1)):r.createCommentVNode("",!0),t.address.line3?(r.openBlock(),r.createElementBlock("div",XS,r.toDisplayString(t.address.line3),1)):r.createCommentVNode("",!0),r.createElementVNode("div",JS,[t.address.city?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(t.address.city)+",",1)],64)):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(t.address.state)+" "+r.toDisplayString(t.address.zip_code),1)])],64)):r.createCommentVNode("",!0)]))}},t3={__name:"FlatListFormat",props:{items:{type:Array,required:!0},column:{type:String,required:!0}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("ul",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.items,o=>(r.openBlock(),r.createElementBlock("li",{key:o[t.column]},r.toDisplayString(o[t.column]),1))),128))]))}},n3={class:"flex flex-nowrap items-center"},o3={key:0,class:"whitespace-nowrap"},r3={__name:"GpsCoordinatesFormat",props:{location:{type:Object,default:null},decimals:{type:Number,default:6},iconClass:{type:String,default:"w-7"}},setup(t){return(e,n)=>{var o;return r.openBlock(),r.createElementBlock("div",n3,[r.createVNode(r.unref(ry),{class:r.normalizeClass(["mr-1 ml-[-.2em]",t.iconClass])},null,8,["class"]),(o=t.location)!=null&&o.latitude?(r.openBlock(),r.createElementBlock("div",o3,r.toDisplayString(t.location.latitude.toFixed(t.decimals))+", "+r.toDisplayString(t.location.longitude.toFixed(t.decimals)),1)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(" Unknown ")],64))])}}},s3={class:"flex items-center flex-nowrap"},i3={__name:"IconWithTextFormat",props:{icon:{type:[String,Object],required:!0},iconClass:{type:String,default:"w-6"},text:{type:String,default:null},textClass:{type:String,default:"ml-2"}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",s3,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.icon),{class:r.normalizeClass(t.iconClass)},null,8,["class"])),r.createElementVNode("div",{class:r.normalizeClass(t.textClass)},[r.renderSlot(e.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(t.text),1)])],2)]))}},l3={class:"text-xs font-bold"},a3={__name:"LabelValueFormat",props:{label:{type:String,required:!0},value:{type:[String,Number],default:"-"},dense:Boolean,nowrap:Boolean,loading:Boolean},setup(t){return(e,n)=>{const o=r.resolveComponent("QSpinnerTail");return r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("div",l3,r.toDisplayString(t.label),1),r.createElementVNode("div",{class:r.normalizeClass({"mt-2":!t.dense,"mt-1":t.dense,"text-no-wrap":t.nowrap})},[t.loading?(r.openBlock(),r.createBlock(o,{key:0})):r.renderSlot(e.$slots,"default",{key:1},()=>[r.createTextVNode(r.toDisplayString(t.value||"-"),1)])],2)])}}},c3={class:"flex-grow max-w-full overflow-y-auto overflow-x-hidden"},Ah=r.defineComponent({__name:"CollapsableSidebar",props:{displayClass:{default:"flex flex-col"},toggleClass:{default:""},toggleIconClass:{default:"w-5 transition-all"},rightSide:{type:Boolean},maxWidth:{default:"13.5rem"},minWidth:{default:"5.5rem"},disabled:{type:Boolean},collapse:{type:Boolean},name:{default:"sidebar"},toggleAtTop:{type:Boolean},hideToggleOnCollapse:{type:Boolean}},emits:["collapse","update:collapse"],setup(t,{emit:e}){const n=e,o=t,s=r.ref(Ft(o.name+"-is-collapsed",o.collapse));function i(d){s.value=d,Lt(o.name+"-is-collapsed",!!s.value)}function l(){i(!s.value),n("collapse",s.value),n("update:collapse",s.value)}r.onMounted(()=>{n("collapse",s.value),n("update:collapse",s.value)});const a=r.computed(()=>({width:s.value?o.minWidth:o.maxWidth})),c=r.computed(()=>typeof o.toggleClass=="string"?{[o.toggleClass]:!0}:o.toggleClass),u=r.computed(()=>typeof o.toggleIconClass=="string"?{[o.toggleIconClass]:!0}:o.toggleIconClass);return r.watch(()=>o.collapse,()=>{i(o.collapse)}),(d,f)=>{const h=r.resolveComponent("QBtn");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["dx-collapsable-sidebar overflow-hidden scroll-smooth flex-shrink-0 flex-nowrap transition-all relative",{"is-collapsed":s.value,"is-right-side":d.rightSide,[d.displayClass]:!0}]),style:r.normalizeStyle(a.value)},[r.createElementVNode("div",c3,[r.renderSlot(d.$slots,"default",{isCollapsed:s.value})]),!d.disabled&&(!d.hideToggleOnCollapse||!s.value)?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[d.toggleAtTop?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(["absolute top-0 right-0 cursor-pointer p-2",c.value]),onClick:l},[r.createVNode(r.unref(Rs),{class:r.normalizeClass({"rotate-180":d.rightSide?!s.value:s.value,...u.value})},null,8,["class"])],2)):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["flex w-full p-4 flex-shrink-0",{"justify-start":d.rightSide,"justify-end":!d.rightSide,...c.value}])},[r.renderSlot(d.$slots,"toggle",{},()=>[r.createVNode(h,{class:"btn-secondary",onClick:l},{default:r.withCtx(()=>[r.createVNode(r.unref(Rs),{class:r.normalizeClass({"rotate-180":d.rightSide?!s.value:s.value,...u.value})},null,8,["class"])]),_:1})])],2))],64)):r.createCommentVNode("",!0)],6)}}}),xa=tt(r.defineComponent({__name:"ContentDrawer",props:{show:{type:Boolean,default:!1},overlay:{type:Boolean},position:{default:"bottom"},seamless:{type:Boolean},contentClass:{default:"py-8 px-12"},title:{default:"Edit"}},emits:["update:show"],setup(t){return(e,n)=>{const o=r.resolveComponent("QDialog");return r.openBlock(),r.createBlock(o,{"model-value":e.show,maximized:"",position:e.position,seamless:e.seamless,class:r.normalizeClass({"hide-backdrop":!e.overlay}),onHide:n[1]||(n[1]=s=>e.$emit("update:show",!1))},{default:r.withCtx(()=>[r.createElementVNode("div",null,[e.title?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.cls["dialog-title"]),onClick:n[0]||(n[0]=r.withModifiers(()=>{},["stop","prevent"]))},r.toDisplayString(e.title),3)):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass({[e.cls["dialog-content"]]:!0,[e.contentClass]:!0})},[r.renderSlot(e.$slots,"default")],2)])]),_:3},8,["model-value","position","seamless","class"])}}}),[["__cssModules",{cls:{container:"_container_heunu_1","pointer-events-none":"_pointer-events-none_heunu_1","!visible":"_!visible_heunu_1",visible:"_visible_heunu_1",collapse:"_collapse_heunu_231",static:"_static_heunu_1",fixed:"_fixed_heunu_1",absolute:"_absolute_heunu_1",relative:"_relative_heunu_1",sticky:"_sticky_heunu_1","inset-0":"_inset-0_heunu_1","bottom-0":"_bottom-0_heunu_1","left-0":"_left-0_heunu_1","left-2":"_left-2_heunu_1","left-4":"_left-4_heunu_1","right-0":"_right-0_heunu_1","right-1":"_right-1_heunu_1","right-2":"_right-2_heunu_1","right-4":"_right-4_heunu_1","top-0":"_top-0_heunu_1","top-1":"_top-1_heunu_1","top-1/2":"_top-1/2_heunu_1","top-2":"_top-2_heunu_1","z-0":"_z-0_heunu_1","z-10":"_z-10_heunu_1","z-20":"_z-20_heunu_1","z-30":"_z-30_heunu_1","m-2":"_m-2_heunu_1","m-4":"_m-4_heunu_1","m-auto":"_m-auto_heunu_1","mx-1":"_mx-1_heunu_1","mx-4":"_mx-4_heunu_1","mx-auto":"_mx-auto_heunu_1","my-2":"_my-2_heunu_1","!mr-1":"_!mr-1_heunu_1","mb-2":"_mb-2_heunu_1","mb-4":"_mb-4_heunu_1","ml-1":"_ml-1_heunu_1","ml-2":"_ml-2_heunu_1","ml-2.5":"_ml-2.5_heunu_1","ml-3":"_ml-3_heunu_1","ml-4":"_ml-4_heunu_1","ml-5":"_ml-5_heunu_1","ml-[-.2em]":"_ml-[-.2em]_heunu_1","mr-1":"_mr-1_heunu_1","mr-2":"_mr-2_heunu_1","mr-3":"_mr-3_heunu_1","mr-4":"_mr-4_heunu_1","mt-1":"_mt-1_heunu_1","mt-2":"_mt-2_heunu_1","mt-3":"_mt-3_heunu_1","mt-4":"_mt-4_heunu_1","!block":"_!block_heunu_1",block:"_block_heunu_1","inline-block":"_inline-block_heunu_1",inline:"_inline_heunu_1",flex:"_flex_heunu_1","!table":"_!table_heunu_1",table:"_table_heunu_1",grid:"_grid_heunu_1",contents:"_contents_heunu_1",hidden:"_hidden_heunu_1","aspect-square":"_aspect-square_heunu_1","h-10":"_h-10_heunu_1","h-12":"_h-12_heunu_1","h-16":"_h-16_heunu_1","h-20":"_h-20_heunu_1","h-3":"_h-3_heunu_1","h-3.5":"_h-3.5_heunu_1","h-3/4":"_h-3/4_heunu_1","h-4":"_h-4_heunu_1","h-5":"_h-5_heunu_1","h-6":"_h-6_heunu_1","h-8":"_h-8_heunu_1","h-96":"_h-96_heunu_1","h-[2.25rem]":"_h-[2.25rem]_heunu_1","h-[80vh]":"_h-[80vh]_heunu_1","h-full":"_h-full_heunu_1","max-h-[80vh]":"_max-h-[80vh]_heunu_1","max-h-full":"_max-h-full_heunu_1","min-h-0":"_min-h-0_heunu_1","min-h-10":"_min-h-10_heunu_1","w-10":"_w-10_heunu_1","w-16":"_w-16_heunu_1","w-2":"_w-2_heunu_1","w-2/5":"_w-2/5_heunu_1","w-20":"_w-20_heunu_1","w-24":"_w-24_heunu_1","w-3":"_w-3_heunu_1","w-3.5":"_w-3.5_heunu_1","w-3/4":"_w-3/4_heunu_1","w-3/5":"_w-3/5_heunu_1","w-32":"_w-32_heunu_1","w-4":"_w-4_heunu_1","w-48":"_w-48_heunu_1","w-5":"_w-5_heunu_1","w-6":"_w-6_heunu_1","w-7":"_w-7_heunu_1","w-72":"_w-72_heunu_1","w-8":"_w-8_heunu_1","w-96":"_w-96_heunu_1","w-[13.5rem]":"_w-[13.5rem]_heunu_1","w-[40%]":"_w-[40%]_heunu_1","w-[6.5rem]":"_w-[6.5rem]_heunu_1","w-[60vw]":"_w-[60vw]_heunu_1","w-[80vw]":"_w-[80vw]_heunu_1","w-full":"_w-full_heunu_1","!min-w-0":"_!min-w-0_heunu_1","min-w-0":"_min-w-0_heunu_1","min-w-10":"_min-w-10_heunu_1","min-w-96":"_min-w-96_heunu_1","min-w-[300px]":"_min-w-[300px]_heunu_1","max-w-[400px]":"_max-w-[400px]_heunu_1","max-w-[600px]":"_max-w-[600px]_heunu_1","max-w-full":"_max-w-full_heunu_1","max-w-none":"_max-w-none_heunu_1","flex-1":"_flex-1_heunu_1","flex-shrink":"_flex-shrink_heunu_1","flex-shrink-0":"_flex-shrink-0_heunu_1",shrink:"_shrink_heunu_1","flex-grow":"_flex-grow_heunu_1",grow:"_grow_heunu_1","-translate-y-1/2":"_-translate-y-1/2_heunu_1","rotate-180":"_rotate-180_heunu_1","scale-110":"_scale-110_heunu_1",transform:"_transform_heunu_1","cursor-ew-resize":"_cursor-ew-resize_heunu_1","cursor-move":"_cursor-move_heunu_1","cursor-not-allowed":"_cursor-not-allowed_heunu_1","cursor-ns-resize":"_cursor-ns-resize_heunu_1","cursor-pointer":"_cursor-pointer_heunu_1","select-all":"_select-all_heunu_1",resize:"_resize_heunu_1","grid-cols-3":"_grid-cols-3_heunu_1","flex-col":"_flex-col_heunu_1","flex-wrap":"_flex-wrap_heunu_1","flex-nowrap":"_flex-nowrap_heunu_1","items-center":"_items-center_heunu_1","items-stretch":"_items-stretch_heunu_1","justify-start":"_justify-start_heunu_1","justify-end":"_justify-end_heunu_1","justify-center":"_justify-center_heunu_1","justify-between":"_justify-between_heunu_1","gap-1":"_gap-1_heunu_1","gap-2":"_gap-2_heunu_1","gap-3":"_gap-3_heunu_1","gap-x-2":"_gap-x-2_heunu_1","gap-x-4":"_gap-x-4_heunu_1","gap-y-0":"_gap-y-0_heunu_1","gap-y-1":"_gap-y-1_heunu_1","space-x-1":"_space-x-1_heunu_1","space-x-2":"_space-x-2_heunu_1","self-center":"_self-center_heunu_1","overflow-auto":"_overflow-auto_heunu_1","overflow-hidden":"_overflow-hidden_heunu_1","overflow-x-auto":"_overflow-x-auto_heunu_1","overflow-y-auto":"_overflow-y-auto_heunu_70","overflow-x-hidden":"_overflow-x-hidden_heunu_1","overflow-y-hidden":"_overflow-y-hidden_heunu_1","scroll-smooth":"_scroll-smooth_heunu_1",truncate:"_truncate_heunu_1","overflow-ellipsis":"_overflow-ellipsis_heunu_1","whitespace-normal":"_whitespace-normal_heunu_1","whitespace-nowrap":"_whitespace-nowrap_heunu_1","whitespace-pre-wrap":"_whitespace-pre-wrap_heunu_1",rounded:"_rounded_heunu_1","rounded-2xl":"_rounded-2xl_heunu_1","rounded-full":"_rounded-full_heunu_1","rounded-lg":"_rounded-lg_heunu_1","rounded-md":"_rounded-md_heunu_1","rounded-sm":"_rounded-sm_heunu_1","!rounded-l-none":"_!rounded-l-none_heunu_1","!rounded-r-none":"_!rounded-r-none_heunu_1","rounded-b-lg":"_rounded-b-lg_heunu_1","rounded-l-lg":"_rounded-l-lg_heunu_1","rounded-r-lg":"_rounded-r-lg_heunu_1","rounded-t-2xl":"_rounded-t-2xl_heunu_1","rounded-t-lg":"_rounded-t-lg_heunu_1","rounded-t-md":"_rounded-t-md_heunu_1","rounded-br":"_rounded-br_heunu_1","rounded-tl":"_rounded-tl_heunu_1","!border-0":"_!border-0_heunu_1",border:"_border_heunu_1","border-2":"_border-2_heunu_1","border-b":"_border-b_heunu_1","border-l":"_border-l_heunu_1","border-l-0":"_border-l-0_heunu_1","border-r":"_border-r_heunu_1","border-solid":"_border-solid_heunu_1","border-dashed":"_border-dashed_heunu_1","border-none":"_border-none_heunu_1","border-blue-500":"_border-blue-500_heunu_1","border-blue-600":"_border-blue-600_heunu_1","border-blue-700":"_border-blue-700_heunu_1","border-gray-200":"_border-gray-200_heunu_1","border-gray-300":"_border-gray-300_heunu_1","border-purple-500":"_border-purple-500_heunu_1","border-slate-200":"_border-slate-200_heunu_1","border-slate-700":"_border-slate-700_heunu_1","border-transparent":"_border-transparent_heunu_1","bg-amber-300":"_bg-amber-300_heunu_1","bg-amber-950":"_bg-amber-950_heunu_1","bg-black":"_bg-black_heunu_1","bg-blue-200":"_bg-blue-200_heunu_1","bg-blue-300":"_bg-blue-300_heunu_1","bg-blue-600":"_bg-blue-600_heunu_1","bg-blue-900":"_bg-blue-900_heunu_1","bg-blue-950":"_bg-blue-950_heunu_1","bg-cyan-950":"_bg-cyan-950_heunu_1","bg-emerald-200":"_bg-emerald-200_heunu_1","bg-emerald-950":"_bg-emerald-950_heunu_1","bg-fuchsia-950":"_bg-fuchsia-950_heunu_1","bg-gray-100":"_bg-gray-100_heunu_1","bg-gray-200":"_bg-gray-200_heunu_1","bg-gray-400":"_bg-gray-400_heunu_1","bg-gray-50":"_bg-gray-50_heunu_1","bg-gray-500":"_bg-gray-500_heunu_1","bg-gray-800":"_bg-gray-800_heunu_1","bg-green-200":"_bg-green-200_heunu_1","bg-green-300":"_bg-green-300_heunu_1","bg-green-900":"_bg-green-900_heunu_1","bg-green-950":"_bg-green-950_heunu_1","bg-indigo-950":"_bg-indigo-950_heunu_1","bg-lime-300":"_bg-lime-300_heunu_1","bg-lime-950":"_bg-lime-950_heunu_1","bg-orange-900":"_bg-orange-900_heunu_1","bg-orange-950":"_bg-orange-950_heunu_1","bg-purple-700":"_bg-purple-700_heunu_1","bg-purple-900":"_bg-purple-900_heunu_1","bg-purple-950":"_bg-purple-950_heunu_1","bg-red-200":"_bg-red-200_heunu_1","bg-red-300":"_bg-red-300_heunu_1","bg-red-900":"_bg-red-900_heunu_1","bg-red-950":"_bg-red-950_heunu_1","bg-rose-950":"_bg-rose-950_heunu_1","bg-sky-300":"_bg-sky-300_heunu_1","bg-sky-50":"_bg-sky-50_heunu_1","bg-sky-800":"_bg-sky-800_heunu_1","bg-sky-900":"_bg-sky-900_heunu_1","bg-sky-950":"_bg-sky-950_heunu_1","bg-slate-100":"_bg-slate-100_heunu_1","bg-slate-300":"_bg-slate-300_heunu_1","bg-slate-400":"_bg-slate-400_heunu_1","bg-slate-500":"_bg-slate-500_heunu_1","bg-slate-600":"_bg-slate-600_heunu_1","bg-slate-700":"_bg-slate-700_heunu_1","bg-slate-800":"_bg-slate-800_heunu_1","bg-slate-900":"_bg-slate-900_heunu_1","bg-slate-950":"_bg-slate-950_heunu_1","bg-teal-200":"_bg-teal-200_heunu_1","bg-teal-500":"_bg-teal-500_heunu_1","bg-teal-950":"_bg-teal-950_heunu_1","bg-transparent":"_bg-transparent_heunu_1","bg-violet-950":"_bg-violet-950_heunu_1","bg-white":"_bg-white_heunu_1","bg-yellow-300":"_bg-yellow-300_heunu_1","bg-yellow-800":"_bg-yellow-800_heunu_1","bg-yellow-950":"_bg-yellow-950_heunu_1","bg-opacity-70":"_bg-opacity-70_heunu_1","bg-opacity-80":"_bg-opacity-80_heunu_1","bg-opacity-90":"_bg-opacity-90_heunu_1","!bg-none":"_!bg-none_heunu_1","object-contain":"_object-contain_heunu_1","object-cover":"_object-cover_heunu_1","!p-2":"_!p-2_heunu_1","p-0":"_p-0_heunu_1","p-1":"_p-1_heunu_1","p-2":"_p-2_heunu_1","p-3":"_p-3_heunu_1","p-4":"_p-4_heunu_1","p-8":"_p-8_heunu_1","!py-0":"_!py-0_heunu_1","px-1":"_px-1_heunu_1","px-1.5":"_px-1.5_heunu_1","px-12":"_px-12_heunu_1","px-16":"_px-16_heunu_1","px-2":"_px-2_heunu_1","px-2.5":"_px-2.5_heunu_1","px-3":"_px-3_heunu_1","px-4":"_px-4_heunu_1","px-6":"_px-6_heunu_1","px-8":"_px-8_heunu_1","py-0":"_py-0_heunu_1","py-0.5":"_py-0.5_heunu_1","py-1":"_py-1_heunu_1","py-1.5":"_py-1.5_heunu_1","py-14":"_py-14_heunu_1","py-2":"_py-2_heunu_1","py-3":"_py-3_heunu_1","py-4":"_py-4_heunu_1","py-8":"_py-8_heunu_1","pl-1":"_pl-1_heunu_1","pt-3":"_pt-3_heunu_1","text-left":"_text-left_heunu_1","text-center":"_text-center_heunu_1","text-[.7rem]":"_text-[.7rem]_heunu_1","text-[1rem]":"_text-[1rem]_heunu_1","text-base":"_text-base_heunu_1","text-lg":"_text-lg_heunu_1","text-sm":"_text-sm_heunu_1","text-xs":"_text-xs_heunu_1","font-bold":"_font-bold_heunu_1","font-medium":"_font-medium_heunu_1","font-semibold":"_font-semibold_heunu_1",uppercase:"_uppercase_heunu_1",lowercase:"_lowercase_heunu_1",italic:"_italic_heunu_1","leading-[1.2rem]":"_leading-[1.2rem]_heunu_1","!text-green-900":"_!text-green-900_heunu_1","!text-red-900":"_!text-red-900_heunu_1","!text-sky-900":"_!text-sky-900_heunu_1","!text-white":"_!text-white_heunu_1","!text-yellow-900":"_!text-yellow-900_heunu_1","text-amber-400":"_text-amber-400_heunu_1","text-amber-900":"_text-amber-900_heunu_1","text-blue-300":"_text-blue-300_heunu_1","text-blue-400":"_text-blue-400_heunu_1","text-blue-600":"_text-blue-600_heunu_1","text-blue-900":"_text-blue-900_heunu_1","text-cyan-400":"_text-cyan-400_heunu_1","text-emerald-400":"_text-emerald-400_heunu_1","text-fuchsia-400":"_text-fuchsia-400_heunu_1","text-gray-300":"_text-gray-300_heunu_1","text-gray-400":"_text-gray-400_heunu_1","text-gray-500":"_text-gray-500_heunu_1","text-gray-600":"_text-gray-600_heunu_1","text-gray-700":"_text-gray-700_heunu_1","text-gray-900":"_text-gray-900_heunu_1","text-green-300":"_text-green-300_heunu_1","text-green-400":"_text-green-400_heunu_1","text-green-700":"_text-green-700_heunu_1","text-green-900":"_text-green-900_heunu_1","text-indigo-400":"_text-indigo-400_heunu_1","text-lime-400":"_text-lime-400_heunu_1","text-lime-900":"_text-lime-900_heunu_1","text-orange-400":"_text-orange-400_heunu_1","text-purple-200":"_text-purple-200_heunu_1","text-purple-300":"_text-purple-300_heunu_1","text-purple-400":"_text-purple-400_heunu_1","text-red-400":"_text-red-400_heunu_1","text-red-500":"_text-red-500_heunu_1","text-red-800":"_text-red-800_heunu_1","text-red-900":"_text-red-900_heunu_1","text-rose-400":"_text-rose-400_heunu_1","text-sky-400":"_text-sky-400_heunu_1","text-sky-500":"_text-sky-500_heunu_1","text-sky-600":"_text-sky-600_heunu_1","text-sky-900":"_text-sky-900_heunu_1","text-slate-200":"_text-slate-200_heunu_1","text-slate-300":"_text-slate-300_heunu_1","text-slate-400":"_text-slate-400_heunu_1","text-slate-50":"_text-slate-50_heunu_1","text-slate-500":"_text-slate-500_heunu_1","text-slate-600":"_text-slate-600_heunu_1","text-slate-800":"_text-slate-800_heunu_1","text-slate-900":"_text-slate-900_heunu_1","text-teal-200":"_text-teal-200_heunu_1","text-teal-400":"_text-teal-400_heunu_1","text-teal-800":"_text-teal-800_heunu_1","text-violet-400":"_text-violet-400_heunu_1","text-white":"_text-white_heunu_1","text-yellow-300":"_text-yellow-300_heunu_1","text-yellow-400":"_text-yellow-400_heunu_1","text-yellow-600":"_text-yellow-600_heunu_1","text-zinc-500":"_text-zinc-500_heunu_1","text-zinc-800":"_text-zinc-800_heunu_1",underline:"_underline_heunu_1","line-through":"_line-through_heunu_1","opacity-0":"_opacity-0_heunu_1","opacity-100":"_opacity-100_heunu_1","opacity-20":"_opacity-20_heunu_1","opacity-50":"_opacity-50_heunu_1","opacity-60":"_opacity-60_heunu_1","opacity-70":"_opacity-70_heunu_1","opacity-80":"_opacity-80_heunu_1","opacity-90":"_opacity-90_heunu_1",shadow:"_shadow_heunu_1","shadow-none":"_shadow-none_heunu_1","shadow-xl":"_shadow-xl_heunu_1","outline-none":"_outline-none_heunu_1",outline:"_outline_heunu_1","outline-offset-0":"_outline-offset-0_heunu_1",blur:"_blur_heunu_1",filter:"_filter_heunu_1","backdrop-filter":"_backdrop-filter_heunu_1",transition:"_transition_heunu_1","transition-all":"_transition-all_heunu_1","transition-colors":"_transition-colors_heunu_1","transition-opacity":"_transition-opacity_heunu_1","duration-300":"_duration-300_heunu_1","danx-app":"_danx-app_heunu_4","q-tab":"_q-tab_heunu_4","q-table__card":"_q-table__card_heunu_7","q-checkbox__inner":"_q-checkbox__inner_heunu_11","q-toolbar":"_q-toolbar_heunu_14","q-notification__actions":"_q-notification__actions_heunu_19","q-date":"_q-date_heunu_22","q-date__view":"_q-date__view_heunu_25","q-field":"_q-field_heunu_28","q-field--auto-height":"_q-field--auto-height_heunu_28","q-field__control":"_q-field__control_heunu_28","q-field__native":"_q-field__native_heunu_31","q-field--labeled":"_q-field--labeled_heunu_35","q-field__control-container":"_q-field__control-container_heunu_35","q-textarea":"_q-textarea_heunu_38","q-field__marginal":"_q-field__marginal_heunu_41","q-field__input":"_q-field__input_heunu_41","q-field__label":"_q-field__label_heunu_41","q-btn":"_q-btn_heunu_48","q-item":"_q-item_heunu_56","q-tab-panels":"_q-tab-panels_heunu_60","q-panel":"_q-panel_heunu_64",scroll:"_scroll_heunu_67","dx-dialog":"_dx-dialog_heunu_74","q-card__section--vert":"_q-card__section--vert_heunu_74","q-banner":"_q-banner_heunu_78",app:"_app_heunu_1","main-layout":"_main-layout_heunu_1","is-disabled":"_is-disabled_heunu_95","disable-all-transitions":"_disable-all-transitions_heunu_100","v-enter-active":"_v-enter-active_heunu_104","v-leave-active":"_v-leave-active_heunu_105","v-enter-from":"_v-enter-from_heunu_109","v-leave-to":"_v-leave-to_heunu_110","dx-scrollbar":"_dx-scrollbar_heunu_114","dx-scrollbar-dark":"_dx-scrollbar-dark_heunu_157","dx-scrollbar-hidden":"_dx-scrollbar-hidden_heunu_199","dx-code-viewer":"_dx-code-viewer_heunu_207","is-collapsed":"_is-collapsed_heunu_211","code-collapsed":"_code-collapsed_heunu_214","code-collapsed-preview":"_code-collapsed-preview_heunu_225","collapse-toggle":"_collapse-toggle_heunu_231","collapse-header":"_collapse-header_heunu_234","code-content":"_code-content_heunu_243","is-collapsible":"_is-collapsible_heunu_257","code-footer":"_code-footer_heunu_267","has-error":"_has-error_heunu_273","language-badge":"_language-badge_heunu_277","syntax-key":"_syntax-key_heunu_284","syntax-string":"_syntax-string_heunu_287","syntax-number":"_syntax-number_heunu_290","syntax-boolean":"_syntax-boolean_heunu_293","syntax-null":"_syntax-null_heunu_296","syntax-punctuation":"_syntax-punctuation_heunu_299","is-editable":"_is-editable_heunu_302","dx-markdown-content":"_dx-markdown-content_heunu_316","task-list":"_task-list_heunu_406","task-list-item":"_task-list-item_heunu_410","footnote-ref":"_footnote-ref_heunu_491",footnotes:"_footnotes_heunu_499","footnote-list":"_footnote-list_heunu_506","footnote-item":"_footnote-item_heunu_509","footnote-backref":"_footnote-backref_heunu_512","dx-action-table":"_dx-action-table_heunu_517","dx-column-shrink":"_dx-column-shrink_heunu_517","dialog-title":"_dialog-title_heunu_521","dialog-content":"_dialog-content_heunu_528","hover:scale-105":"_hover:scale-105_heunu_1","hover:bg-amber-400":"_hover:bg-amber-400_heunu_1","hover:bg-blue-200":"_hover:bg-blue-200_heunu_1","hover:bg-blue-400":"_hover:bg-blue-400_heunu_1","hover:bg-blue-800":"_hover:bg-blue-800_heunu_1","hover:bg-gray-200":"_hover:bg-gray-200_heunu_1","hover:bg-green-100":"_hover:bg-green-100_heunu_1","hover:bg-green-400":"_hover:bg-green-400_heunu_1","hover:bg-green-800":"_hover:bg-green-800_heunu_1","hover:bg-lime-400":"_hover:bg-lime-400_heunu_1","hover:bg-orange-800":"_hover:bg-orange-800_heunu_1","hover:bg-purple-600":"_hover:bg-purple-600_heunu_1","hover:bg-purple-800":"_hover:bg-purple-800_heunu_1","hover:bg-red-100":"_hover:bg-red-100_heunu_1","hover:bg-red-200":"_hover:bg-red-200_heunu_1","hover:bg-red-400":"_hover:bg-red-400_heunu_1","hover:bg-sky-400":"_hover:bg-sky-400_heunu_1","hover:bg-sky-800":"_hover:bg-sky-800_heunu_1","hover:bg-sky-900":"_hover:bg-sky-900_heunu_1","hover:bg-slate-200":"_hover:bg-slate-200_heunu_1","hover:bg-slate-300":"_hover:bg-slate-300_heunu_1","hover:bg-slate-400":"_hover:bg-slate-400_heunu_1","hover:bg-slate-600":"_hover:bg-slate-600_heunu_1","hover:bg-slate-700":"_hover:bg-slate-700_heunu_1","hover:bg-slate-800":"_hover:bg-slate-800_heunu_1","hover:bg-slate-900":"_hover:bg-slate-900_heunu_1","hover:bg-teal-400":"_hover:bg-teal-400_heunu_1","hover:bg-teal-600":"_hover:bg-teal-600_heunu_1","hover:bg-yellow-700":"_hover:bg-yellow-700_heunu_1","hover:text-blue-300":"_hover:text-blue-300_heunu_1","hover:text-blue-500":"_hover:text-blue-500_heunu_1","hover:text-blue-600":"_hover:text-blue-600_heunu_1","hover:text-gray-300":"_hover:text-gray-300_heunu_1","hover:text-gray-700":"_hover:text-gray-700_heunu_1","hover:text-sky-600":"_hover:text-sky-600_heunu_1","hover:text-white":"_hover:text-white_heunu_1","hover:opacity-100":"_hover:opacity-100_heunu_1","hover:opacity-70":"_hover:opacity-70_heunu_1","hover:outline-4":"_hover:outline-4_heunu_1","focus:bg-blue-200":"_focus:bg-blue-200_heunu_1","focus:outline-4":"_focus:outline-4_heunu_1","focus:outline-blue-200":"_focus:outline-blue-200_heunu_1",group:"_group_heunu_1","group-hover:opacity-100":"_group-hover:opacity-100_heunu_1"}}]]),Lh=t=>r.isVNode(t.vnode)?t.vnode:r.isRef(t.vnode)?t.vnode.value:typeof t.vnode=="function"?t.vnode(t.props,t.params):null;Lh.props={vnode:{type:[Function,Object],required:!0},props:{type:Object,default:()=>({})},params:{type:Object,default:null}};const vn=Lh,u3={__name:"ActionVnode",setup(t){const e=r.ref(!1);async function n(o){e.value=!0,await Kn.value.confirm(o),e.value=!1}return(o,s)=>(r.openBlock(),r.createElementBlock("div",null,[r.unref(Kn)?(r.openBlock(),r.createBlock(r.unref(vn),{key:0,vnode:r.unref(Kn).vnode,"is-saving":e.value,onConfirm:n,onClose:r.unref(Kn).cancel},null,8,["vnode","is-saving","onClose"])):r.createCommentVNode("",!0)]))}},Fh={__name:"RenderComponent",props:{component:{type:[Function,Object],required:!0},params:{type:Array,default:()=>[]},overrideProps:{type:Object,default:()=>({})}},emits:["action"],setup(t){const e=t,n=r.computed(()=>{var s,i,l;return((s=o.value)==null?void 0:s.value)||((l=(i=o.value)==null?void 0:i.props)==null?void 0:l.text)}),o=r.computed(()=>typeof e.component=="function"?e.component(...e.params):e.component);return(s,i)=>n.value?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(o.value.is),r.mergeProps({key:0},{...o.value.props,...t.overrideProps},{onAction:i[0]||(i[0]=l=>s.$emit("action",l))}),{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(n.value),1)]),_:1},16)):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(o.value.is),r.mergeProps({key:1},{...o.value.props,...t.overrideProps},{onAction:i[1]||(i[1]=l=>s.$emit("action",l))}),null,16))}},d3=["href"],Mh=r.defineComponent({__name:"PopoverMenu",props:{items:{},tooltip:{default:null},disabled:{type:Boolean},loading:{type:Boolean},loadingComponent:{default:()=>({is:pe.QSpinner,props:{class:"w-4 h-4"}})}},emits:["action","action-item"],setup(t,{emit:e}){const n=e;function o(s){n("action",s.name||s.action),n("action-item",s)}return(s,i)=>{const l=r.resolveComponent("QTooltip"),a=r.resolveComponent("QItem"),c=r.resolveComponent("QList"),u=r.resolveComponent("QMenu");return r.openBlock(),r.createElementBlock("a",{class:r.normalizeClass(["p-3 dx-popover-menu",{"opacity-50 cursor-not-allowed":s.disabled}])},[s.$slots.tooltip||s.tooltip?(r.openBlock(),r.createBlock(l,{key:0},{default:r.withCtx(()=>[r.renderSlot(s.$slots,"tooltip",{},()=>[r.createTextVNode(r.toDisplayString(s.tooltip),1)])]),_:3})):r.createCommentVNode("",!0),r.createVNode(r.Transition,{mode:"out-in",duration:150},{default:r.withCtx(()=>[s.loading?(r.openBlock(),r.createBlock(r.unref(Fh),{key:0,component:s.loadingComponent},null,8,["component"])):(r.openBlock(),r.createBlock(r.unref(v4),{key:1,class:"w-4 dx-menu-icon"}))]),_:1}),s.disabled?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(u,{key:1,"auto-close":""},{default:r.withCtx(()=>[r.createVNode(c,null,{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.items,d=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:d.name},[d.url?(r.openBlock(),r.createElementBlock("a",{key:0,class:r.normalizeClass(["q-item",d.class]),target:"_blank",href:d.url},[d.icon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(d.icon),{key:0,class:r.normalizeClass([d.iconClass,"mr-3 w-4"])},null,8,["class"])):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(d.label),1)],10,d3)):(r.openBlock(),r.createBlock(a,{key:1,clickable:"",class:r.normalizeClass(d.class),onClick:f=>o(d)},{default:r.withCtx(()=>[d.icon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(d.icon),{key:0,class:r.normalizeClass([d.iconClass,"mr-3 w-4"])},null,8,["class"])):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(d.label),1)]),_:2},1032,["class","onClick"]))],64))),128))]),_:1})]),_:1}))],2)}}}),f3={__name:"InteractiveTooltip",props:{tooltip:{type:String,default:""}},setup(t){const e=r.ref(!1),n=r.ref(null),o=r.ref(!1),s=r.ref(!1);let i=null;r.onMounted(()=>{n.value.$el.parentNode.addEventListener("mouseover",l),n.value.$el.parentNode.addEventListener("mouseleave",a)});function l(){e.value=!0,s.value=!0,i&&clearTimeout(i)}function a(){s.value=!1,e.value&&d()}function c(){o.value=!0,e.value=!0,i&&clearTimeout(i)}function u(){o.value=!1,e.value&&d()}function d(){i&&clearTimeout(i),i=setTimeout(()=>{o.value||s.value?d():e.value=!1},200)}return(f,h)=>{const m=r.resolveComponent("QTooltip");return r.openBlock(),r.createBlock(m,{ref_key:"tooltipBox",ref:n,modelValue:e.value,"onUpdate:modelValue":h[0]||(h[0]=g=>e.value=g),class:"interactive-tooltip","no-parent-event":"","transition-duration":200,onMouseenter:c,onMouseleave:u},{default:r.withCtx(()=>[r.renderSlot(f.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(t.tooltip),1)])]),_:3},8,["modelValue"])}}},h3={class:"flex items-center w-full"},m3={class:"flex-grow text-sm"},p3={__name:"BadgeTab",props:{name:{type:String,required:!0},label:{type:String,required:!0},count:{type:[String,Number],default:""}},setup(t){return(e,n)=>{const o=r.resolveComponent("QBadge"),s=r.resolveComponent("QTab");return r.openBlock(),r.createBlock(s,{name:t.name,class:"w-full","content-class":"w-full"},{default:r.withCtx(()=>[r.createElementVNode("div",h3,[r.createElementVNode("div",m3,r.toDisplayString(t.label),1),r.createVNode(o,{class:"bg-gray-400",label:t.count,rounded:""},null,8,["label"])])]),_:1},8,["name"])}}},_3={class:"flex items-center w-full"},g3={class:"flex-grow text-sm"},b3={__name:"IndicatorTab",props:{name:{type:String,required:!0},label:{type:String,required:!0},overdue:Boolean,warning:Boolean,isActive:Boolean},setup(t){return(e,n)=>{const o=r.resolveComponent("QTab");return r.openBlock(),r.createBlock(o,{name:t.name,class:"w-full","content-class":"w-full"},{default:r.withCtx(()=>[r.createElementVNode("div",_3,[r.createElementVNode("div",g3,r.toDisplayString(t.label),1),r.createElementVNode("div",null,[t.overdue?(r.openBlock(),r.createBlock(r.unref(Iu),{key:0,class:r.normalizeClass(["w-5 ml-2",t.isActive?"text-white":"text-red-400"])},null,8,["class"])):t.warning?(r.openBlock(),r.createBlock(r.unref(Jf),{key:1,class:"text-yellow-600 w-5"})):r.createCommentVNode("",!0)])])]),_:1},8,["name"])}}},y3={};function w3(t,e){return r.openBlock(),r.createBlock(r.Transition,{name:"autoHeight"},{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3})}const k3=tt(y3,[["render",w3]]),Oh={__name:"ListTransition",props:{name:{type:String,default:"fade-list"}},setup(t){return(e,n)=>(r.openBlock(),r.createBlock(r.TransitionGroup,{tag:"div",name:t.name,class:"relative"},{default:r.withCtx(()=>[r.renderSlot(e.$slots,"default")]),_:3},8,["name"]))}},x3=r.defineComponent({__name:"MaxHeightTransition",props:{maxHeight:{}},setup(t){return r.useCssVars(e=>({"0f80b08a":e.maxHeight})),(e,n)=>(r.openBlock(),r.createBlock(r.Transition,{name:"maxHeight"},{default:r.withCtx(()=>[r.renderSlot(e.$slots,"default")]),_:3}))}}),C3={__name:"SlideTransition",props:{name:{type:String,default:"slide"}},setup(t){return(e,n)=>(r.openBlock(),r.createBlock(r.Transition,{name:t.name},{default:r.withCtx(()=>[r.renderSlot(e.$slots,"default")]),_:3},8,["name"]))}};function Zt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Dh(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}/*!
|
|
147
219
|
* GSAP 3.12.7
|
|
148
220
|
* https://gsap.com
|
|
149
221
|
*
|
|
@@ -151,7 +223,7 @@ ${e}
|
|
|
151
223
|
* Subject to the terms at https://gsap.com/standard-license or for
|
|
152
224
|
* Club GSAP members, the agreement issued with that membership.
|
|
153
225
|
* @author: Jack Doyle, jack@greensock.com
|
|
154
|
-
*/var He={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},sr={duration:.5,overwrite:!1,delay:0},Bl,we,ne,St=1e8,Ee=1/St,Nl=Math.PI*2,mx=Nl/4,px=0,Gd=Math.sqrt,gx=Math.cos,bx=Math.sin,be=function(e){return typeof e=="string"},se=function(e){return typeof e=="function"},Vt=function(e){return typeof e=="number"},Il=function(e){return typeof e>"u"},Et=function(e){return typeof e=="object"},Ve=function(e){return e!==!1},$l=function(){return typeof window<"u"},hs=function(e){return se(e)||be(e)},Wd=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Te=Array.isArray,Fl=/(?:-?\.?\d|\.)+/gi,Zd=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ir=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Al=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Yd=/[+-]=-?[.\d]+/,Qd=/[^,'"\[\]\s]+/gi,yx=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,re,Tt,Dl,Ol,je={},ms={},Kd,Xd=function(e){return(ms=ar(e,je))&&ve},Ml=function(e,n){return console.warn("Invalid property",e,"set to",n,"Missing plugin? gsap.registerPlugin()")},ro=function(e,n){return!n&&console.warn(e)},Jd=function(e,n){return e&&(je[e]=n)&&ms&&(ms[e]=n)||je},oo=function(){return 0},wx={suppressEvents:!0,isStart:!0,kill:!1},ps={suppressEvents:!0,kill:!1},kx={suppressEvents:!0},Vl={},Gt=[],Ll={},ef,Ge={},Pl={},tf=30,gs=[],vl="",Rl=function(e){var n=e[0],r,s;if(Et(n)||se(n)||(e=[e]),!(r=(n._gsap||{}).harness)){for(s=gs.length;s--&&!gs[s].targetTest(n););r=gs[s]}for(s=e.length;s--;)e[s]&&(e[s]._gsap||(e[s]._gsap=new Ff(e[s],r)))||e.splice(s,1);return e},Cn=function(e){return e._gsap||Rl(ot(e))[0]._gsap},nf=function(e,n,r){return(r=e[n])&&se(r)?e[n]():Il(r)&&e.getAttribute&&e.getAttribute(n)||r},Le=function(e,n){return(e=e.split(",")).forEach(n)||e},_e=function(e){return Math.round(e*1e5)/1e5||0},he=function(e){return Math.round(e*1e7)/1e7||0},lr=function(e,n){var r=n.charAt(0),s=parseFloat(n.substr(2));return e=parseFloat(e),r==="+"?e+s:r==="-"?e-s:r==="*"?e*s:e/s},xx=function(e,n){for(var r=n.length,s=0;e.indexOf(n[s])<0&&++s<r;);return s<r},bs=function(){var e=Gt.length,n=Gt.slice(0),r,s;for(Ll={},Gt.length=0,r=0;r<e;r++)s=n[r],s&&s._lazy&&(s.render(s._lazy[0],s._lazy[1],!0)._lazy=0)},rf=function(e,n,r,s){Gt.length&&!we&&bs(),e.render(n,r,we&&n<0&&(e._initted||e._startAt)),Gt.length&&!we&&bs()},of=function(e){var n=parseFloat(e);return(n||n===0)&&(e+"").match(Qd).length<2?n:be(e)?e.trim():e},sf=function(e){return e},We=function(e,n){for(var r in n)r in e||(e[r]=n[r]);return e},Cx=function(e){return function(n,r){for(var s in r)s in n||s==="duration"&&e||s==="ease"||(n[s]=r[s])}},ar=function(e,n){for(var r in n)e[r]=n[r];return e},lf=function t(e,n){for(var r in n)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(e[r]=Et(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},ys=function(e,n){var r={},s;for(s in e)s in n||(r[s]=e[s]);return r},so=function(e){var n=e.parent||re,r=e.keyframes?Cx(Te(e.keyframes)):We;if(Ve(e.inherit))for(;n;)r(e,n.vars.defaults),n=n.parent||n._dp;return e},Sx=function(e,n){for(var r=e.length,s=r===n.length;s&&r--&&e[r]===n[r];);return r<0},af=function(e,n,r,s,i){var l=e[s],a;if(i)for(a=n[i];l&&l[i]>a;)l=l._prev;return l?(n._next=l._next,l._next=n):(n._next=e[r],e[r]=n),n._next?n._next._prev=n:e[s]=n,n._prev=l,n.parent=n._dp=e,n},ws=function(e,n,r,s){r===void 0&&(r="_first"),s===void 0&&(s="_last");var i=n._prev,l=n._next;i?i._next=l:e[r]===n&&(e[r]=l),l?l._prev=i:e[s]===n&&(e[s]=i),n._next=n._prev=n.parent=null},Wt=function(e,n){e.parent&&(!n||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Sn=function(e,n){if(e&&(!n||n._end>e._dur||n._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},Ex=function(e){for(var n=e.parent;n&&n.parent;)n._dirty=1,n.totalDuration(),n=n.parent;return e},Ul=function(e,n,r,s){return e._startAt&&(we?e._startAt.revert(ps):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(n,!0,s))},Tx=function t(e){return!e||e._ts&&t(e.parent)},cf=function(e){return e._repeat?cr(e._tTime,e=e.duration()+e._rDelay)*e:0},cr=function(e,n){var r=Math.floor(e=he(e/n));return e&&r===e?r-1:r},ks=function(e,n){return(e-n._start)*n._ts+(n._ts>=0?0:n._dirty?n.totalDuration():n._tDur)},xs=function(e){return e._end=he(e._start+(e._tDur/Math.abs(e._ts||e._rts||Ee)||0))},Cs=function(e,n){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=he(r._time-(e._ts>0?n/e._ts:((e._dirty?e.totalDuration():e._tDur)-n)/-e._ts)),xs(e),r._dirty||Sn(r,e)),e},uf=function(e,n){var r;if((n._time||!n._dur&&n._initted||n._start<e._time&&(n._dur||!n.add))&&(r=ks(e.rawTime(),n),(!n._dur||lo(0,n.totalDuration(),r)-n._tTime>Ee)&&n.render(r,!0)),Sn(e,n)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(r=e;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-1e-8}},Bt=function(e,n,r,s){return n.parent&&Wt(n),n._start=he((Vt(r)?r:r||e!==re?rt(e,r,n):e._time)+n._delay),n._end=he(n._start+(n.totalDuration()/Math.abs(n.timeScale())||0)),af(e,n,"_first","_last",e._sort?"_start":0),zl(n)||(e._recent=n),s||uf(e,n),e._ts<0&&Cs(e,e._tTime),e},df=function(e,n){return(je.ScrollTrigger||Ml("scrollTrigger",n))&&je.ScrollTrigger.create(n,e)},ff=function(e,n,r,s,i){if(Kl(e,n,i),!e._initted)return 1;if(!r&&e._pt&&!we&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&ef!==Ye.frame)return Gt.push(e),e._lazy=[i,s],1},Bx=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},zl=function(e){var n=e.data;return n==="isFromStart"||n==="isStart"},Nx=function(e,n,r,s){var i=e.ratio,l=n<0||!n&&(!e._start&&Bx(e)&&!(!e._initted&&zl(e))||(e._ts<0||e._dp._ts<0)&&!zl(e))?0:1,a=e._rDelay,c=0,u,d,f;if(a&&e._repeat&&(c=lo(0,e._tDur,n),d=cr(c,a),e._yoyo&&d&1&&(l=1-l),d!==cr(e._tTime,a)&&(i=1-l,e.vars.repeatRefresh&&e._initted&&e.invalidate())),l!==i||we||s||e._zTime===Ee||!n&&e._zTime){if(!e._initted&&ff(e,n,s,r,c))return;for(f=e._zTime,e._zTime=n||(r?Ee:0),r||(r=n&&!f),e.ratio=l,e._from&&(l=1-l),e._time=0,e._tTime=c,u=e._pt;u;)u.r(l,u.d),u=u._next;n<0&&Ul(e,n,r,!0),e._onUpdate&&!r&&Ze(e,"onUpdate"),c&&e._repeat&&!r&&e.parent&&Ze(e,"onRepeat"),(n>=e._tDur||n<0)&&e.ratio===l&&(l&&Wt(e,1),!r&&!we&&(Ze(e,l?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=n)},Ix=function(e,n,r){var s;if(r>n)for(s=e._first;s&&s._start<=r;){if(s.data==="isPause"&&s._start>n)return s;s=s._next}else for(s=e._last;s&&s._start>=r;){if(s.data==="isPause"&&s._start<n)return s;s=s._prev}},ur=function(e,n,r,s){var i=e._repeat,l=he(n)||0,a=e._tTime/e._tDur;return a&&!s&&(e._time*=l/e._dur),e._dur=l,e._tDur=i?i<0?1e10:he(l*(i+1)+e._rDelay*i):l,a>0&&!s&&Cs(e,e._tTime=e._tDur*a),e.parent&&xs(e),r||Sn(e.parent,e),e},_f=function(e){return e instanceof De?Sn(e):ur(e,e._dur)},$x={_start:0,endTime:oo,totalDuration:oo},rt=function t(e,n,r){var s=e.labels,i=e._recent||$x,l=e.duration()>=St?i.endTime(!1):e._dur,a,c,u;return be(n)&&(isNaN(n)||n in s)?(c=n.charAt(0),u=n.substr(-1)==="%",a=n.indexOf("="),c==="<"||c===">"?(a>=0&&(n=n.replace(/=/,"")),(c==="<"?i._start:i.endTime(i._repeat>=0))+(parseFloat(n.substr(1))||0)*(u?(a<0?i:r).totalDuration()/100:1)):a<0?(n in s||(s[n]=l),s[n]):(c=parseFloat(n.charAt(a-1)+n.substr(a+1)),u&&r&&(c=c/100*(Te(r)?r[0]:r).totalDuration()),a>1?t(e,n.substr(0,a-1),r)+c:l+c)):n==null?l:+n},io=function(e,n,r){var s=Vt(n[1]),i=(s?2:1)+(e<2?0:1),l=n[i],a,c;if(s&&(l.duration=n[1]),l.parent=r,e){for(a=l,c=r;c&&!("immediateRender"in a);)a=c.vars.defaults||{},c=Ve(c.vars.inherit)&&c.parent;l.immediateRender=Ve(a.immediateRender),e<2?l.runBackwards=1:l.startAt=n[i-1]}return new me(n[0],l,n[i+1])},Zt=function(e,n){return e||e===0?n(e):n},lo=function(e,n,r){return r<e?e:r>n?n:r},Be=function(e,n){return!be(e)||!(n=yx.exec(e))?"":n[1]},Fx=function(e,n,r){return Zt(r,function(s){return lo(e,n,s)})},ql=[].slice,hf=function(e,n){return e&&Et(e)&&"length"in e&&(!n&&!e.length||e.length-1 in e&&Et(e[0]))&&!e.nodeType&&e!==Tt},Ax=function(e,n,r){return r===void 0&&(r=[]),e.forEach(function(s){var i;return be(s)&&!n||hf(s,1)?(i=r).push.apply(i,ot(s)):r.push(s)})||r},ot=function(e,n,r){return ne&&!n&&ne.selector?ne.selector(e):be(e)&&!r&&(Dl||!fr())?ql.call((n||Ol).querySelectorAll(e),0):Te(e)?Ax(e,r):hf(e)?ql.call(e,0):e?[e]:[]},Hl=function(e){return e=ot(e)[0]||ro("Invalid scope")||{},function(n){var r=e.current||e.nativeElement||e;return ot(n,r.querySelectorAll?r:r===e?ro("Invalid scope")||Ol.createElement("div"):e)}},mf=function(e){return e.sort(function(){return .5-Math.random()})},pf=function(e){if(se(e))return e;var n=Et(e)?e:{each:e},r=En(n.ease),s=n.from||0,i=parseFloat(n.base)||0,l={},a=s>0&&s<1,c=isNaN(s)||a,u=n.axis,d=s,f=s;return be(s)?d=f={center:.5,edges:.5,end:1}[s]||0:!a&&c&&(d=s[0],f=s[1]),function(h,_,g){var m=(g||n).length,p=l[m],y,b,w,C,E,k,S,T,B;if(!p){if(B=n.grid==="auto"?0:(n.grid||[1,St])[1],!B){for(S=-1e8;S<(S=g[B++].getBoundingClientRect().left)&&B<m;);B<m&&B--}for(p=l[m]=[],y=c?Math.min(B,m)*d-.5:s%B,b=B===St?0:c?m*f/B-.5:s/B|0,S=0,T=St,k=0;k<m;k++)w=k%B-y,C=b-(k/B|0),p[k]=E=u?Math.abs(u==="y"?C:w):Gd(w*w+C*C),E>S&&(S=E),E<T&&(T=E);s==="random"&&mf(p),p.max=S-T,p.min=T,p.v=m=(parseFloat(n.amount)||parseFloat(n.each)*(B>m?m-1:u?u==="y"?m/B:B:Math.max(B,m/B))||0)*(s==="edges"?-1:1),p.b=m<0?i-m:i,p.u=Be(n.amount||n.each)||0,r=r&&m<0?Nf(r):r}return m=(p[h]-p.min)/p.max||0,he(p.b+(r?r(m):m)*p.v)+p.u}},jl=function(e){var n=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var s=he(Math.round(parseFloat(r)/e)*e*n);return(s-s%1)/n+(Vt(r)?0:Be(r))}},gf=function(e,n){var r=Te(e),s,i;return!r&&Et(e)&&(s=r=e.radius||St,e.values?(e=ot(e.values),(i=!Vt(e[0]))&&(s*=s)):e=jl(e.increment)),Zt(n,r?se(e)?function(l){return i=e(l),Math.abs(i-l)<=s?i:l}:function(l){for(var a=parseFloat(i?l.x:l),c=parseFloat(i?l.y:0),u=St,d=0,f=e.length,h,_;f--;)i?(h=e[f].x-a,_=e[f].y-c,h=h*h+_*_):h=Math.abs(e[f]-a),h<u&&(u=h,d=f);return d=!s||u<=s?e[d]:l,i||d===l||Vt(l)?d:d+Be(l)}:jl(e))},bf=function(e,n,r,s){return Zt(Te(e)?!n:r===!0?!!(r=0):!s,function(){return Te(e)?e[~~(Math.random()*e.length)]:(r=r||1e-5)&&(s=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((e-r/2+Math.random()*(n-e+r*.99))/r)*r*s)/s})},Dx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(s){return n.reduce(function(i,l){return l(i)},s)}},Ox=function(e,n){return function(r){return e(parseFloat(r))+(n||Be(r))}},Mx=function(e,n,r){return wf(e,n,0,1,r)},yf=function(e,n,r){return Zt(r,function(s){return e[~~n(s)]})},Vx=function t(e,n,r){var s=n-e;return Te(e)?yf(e,t(0,e.length),n):Zt(r,function(i){return(s+(i-e)%s)%s+e})},Lx=function t(e,n,r){var s=n-e,i=s*2;return Te(e)?yf(e,t(0,e.length-1),n):Zt(r,function(l){return l=(i+(l-e)%i)%i||0,e+(l>s?i-l:l)})},ao=function(e){for(var n=0,r="",s,i,l,a;~(s=e.indexOf("random(",n));)l=e.indexOf(")",s),a=e.charAt(s+7)==="[",i=e.substr(s+7,l-s-7).match(a?Qd:Fl),r+=e.substr(n,s-n)+bf(a?i:+i[0],a?0:+i[1],+i[2]||1e-5),n=l+1;return r+e.substr(n,e.length-n)},wf=function(e,n,r,s,i){var l=n-e,a=s-r;return Zt(i,function(c){return r+((c-e)/l*a||0)})},Px=function t(e,n,r,s){var i=isNaN(e+n)?0:function(_){return(1-_)*e+_*n};if(!i){var l=be(e),a={},c,u,d,f,h;if(r===!0&&(s=1)&&(r=null),l)e={p:e},n={p:n};else if(Te(e)&&!Te(n)){for(d=[],f=e.length,h=f-2,u=1;u<f;u++)d.push(t(e[u-1],e[u]));f--,i=function(g){g*=f;var m=Math.min(h,~~g);return d[m](g-m)},r=n}else s||(e=ar(Te(e)?[]:{},e));if(!d){for(c in n)Yl.call(a,e,c,"get",n[c]);i=function(g){return ea(g,a)||(l?e.p:e)}}}return Zt(r,i)},kf=function(e,n,r){var s=e.labels,i=St,l,a,c;for(l in s)a=s[l]-n,a<0==!!r&&a&&i>(a=Math.abs(a))&&(c=l,i=a);return c},Ze=function(e,n,r){var s=e.vars,i=s[n],l=ne,a=e._ctx,c,u,d;if(i)return c=s[n+"Params"],u=s.callbackScope||e,r&&Gt.length&&bs(),a&&(ne=a),d=c?i.apply(u,c):i.call(u),ne=l,d},co=function(e){return Wt(e),e.scrollTrigger&&e.scrollTrigger.kill(!!we),e.progress()<1&&Ze(e,"onInterrupt"),e},dr,xf=[],Cf=function(e){if(e)if(e=!e.name&&e.default||e,$l()||e.headless){var n=e.name,r=se(e),s=n&&!r&&e.init?function(){this._props=[]}:e,i={init:oo,render:ea,add:Yl,kill:e3,modifier:Jx,rawVars:0},l={targetTest:0,get:0,getSetter:Jl,aliases:{},register:0};if(fr(),e!==s){if(Ge[n])return;We(s,We(ys(e,i),l)),ar(s.prototype,ar(i,ys(e,l))),Ge[s.prop=n]=s,e.targetTest&&(gs.push(s),Vl[n]=1),n=(n==="css"?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}Jd(n,s),e.register&&e.register(ve,s,Pe)}else xf.push(e)},J=255,uo={aqua:[0,J,J],lime:[0,J,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,J],navy:[0,0,128],white:[J,J,J],olive:[128,128,0],yellow:[J,J,0],orange:[J,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[J,0,0],pink:[J,192,203],cyan:[0,J,J],transparent:[J,J,J,0]},Gl=function(e,n,r){return e+=e<0?1:e>1?-1:0,(e*6<1?n+(r-n)*e*6:e<.5?r:e*3<2?n+(r-n)*(2/3-e)*6:n)*J+.5|0},Sf=function(e,n,r){var s=e?Vt(e)?[e>>16,e>>8&J,e&J]:0:uo.black,i,l,a,c,u,d,f,h,_,g;if(!s){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),uo[e])s=uo[e];else if(e.charAt(0)==="#"){if(e.length<6&&(i=e.charAt(1),l=e.charAt(2),a=e.charAt(3),e="#"+i+i+l+l+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return s=parseInt(e.substr(1,6),16),[s>>16,s>>8&J,s&J,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),s=[e>>16,e>>8&J,e&J]}else if(e.substr(0,3)==="hsl"){if(s=g=e.match(Fl),!n)c=+s[0]%360/360,u=+s[1]/100,d=+s[2]/100,l=d<=.5?d*(u+1):d+u-d*u,i=d*2-l,s.length>3&&(s[3]*=1),s[0]=Gl(c+1/3,i,l),s[1]=Gl(c,i,l),s[2]=Gl(c-1/3,i,l);else if(~e.indexOf("="))return s=e.match(Zd),r&&s.length<4&&(s[3]=1),s}else s=e.match(Fl)||uo.transparent;s=s.map(Number)}return n&&!g&&(i=s[0]/J,l=s[1]/J,a=s[2]/J,f=Math.max(i,l,a),h=Math.min(i,l,a),d=(f+h)/2,f===h?c=u=0:(_=f-h,u=d>.5?_/(2-f-h):_/(f+h),c=f===i?(l-a)/_+(l<a?6:0):f===l?(a-i)/_+2:(i-l)/_+4,c*=60),s[0]=~~(c+.5),s[1]=~~(u*100+.5),s[2]=~~(d*100+.5)),r&&s.length<4&&(s[3]=1),s},Ef=function(e){var n=[],r=[],s=-1;return e.split(Yt).forEach(function(i){var l=i.match(ir)||[];n.push.apply(n,l),r.push(s+=l.length+1)}),n.c=r,n},Tf=function(e,n,r){var s="",i=(e+s).match(Yt),l=n?"hsla(":"rgba(",a=0,c,u,d,f;if(!i)return e;if(i=i.map(function(h){return(h=Sf(h,n,1))&&l+(n?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),r&&(d=Ef(e),c=r.c,c.join(s)!==d.c.join(s)))for(u=e.replace(Yt,"1").split(ir),f=u.length-1;a<f;a++)s+=u[a]+(~c.indexOf(a)?i.shift()||l+"0,0,0,0)":(d.length?d:i.length?i:r).shift());if(!u)for(u=e.split(Yt),f=u.length-1;a<f;a++)s+=u[a]+i[a];return s+u[f]},Yt=function(){var t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in uo)t+="|"+e+"\\b";return new RegExp(t+")","gi")}(),vx=/hsl[a]?\(/,Bf=function(e){var n=e.join(" "),r;if(Yt.lastIndex=0,Yt.test(n))return r=vx.test(n),e[1]=Tf(e[1],r),e[0]=Tf(e[0],r,Ef(e[1])),!0},fo,Ye=function(){var t=Date.now,e=500,n=33,r=t(),s=r,i=1e3/240,l=i,a=[],c,u,d,f,h,_,g=function m(p){var y=t()-s,b=p===!0,w,C,E,k;if((y>e||y<0)&&(r+=y-n),s+=y,E=s-r,w=E-l,(w>0||b)&&(k=++f.frame,h=E-f.time*1e3,f.time=E=E/1e3,l+=w+(w>=i?4:i-w),C=1),b||(c=u(m)),C)for(_=0;_<a.length;_++)a[_](E,h,k,p)};return f={time:0,frame:0,tick:function(){g(!0)},deltaRatio:function(p){return h/(1e3/(p||60))},wake:function(){Kd&&(!Dl&&$l()&&(Tt=Dl=window,Ol=Tt.document||{},je.gsap=ve,(Tt.gsapVersions||(Tt.gsapVersions=[])).push(ve.version),Xd(ms||Tt.GreenSockGlobals||!Tt.gsap&&Tt||{}),xf.forEach(Cf)),d=typeof requestAnimationFrame<"u"&&requestAnimationFrame,c&&f.sleep(),u=d||function(p){return setTimeout(p,l-f.time*1e3+1|0)},fo=1,g(2))},sleep:function(){(d?cancelAnimationFrame:clearTimeout)(c),fo=0,u=oo},lagSmoothing:function(p,y){e=p||1/0,n=Math.min(y||33,e)},fps:function(p){i=1e3/(p||240),l=f.time*1e3+i},add:function(p,y,b){var w=y?function(C,E,k,S){p(C,E,k,S),f.remove(w)}:p;return f.remove(p),a[b?"unshift":"push"](w),fr(),w},remove:function(p,y){~(y=a.indexOf(p))&&a.splice(y,1)&&_>=y&&_--},_listeners:a},f}(),fr=function(){return!fo&&Ye.wake()},j={},Rx=/^[\d.\-M][\d.\-,\s]/,Ux=/["']/g,zx=function(e){for(var n={},r=e.substr(1,e.length-3).split(":"),s=r[0],i=1,l=r.length,a,c,u;i<l;i++)c=r[i],a=i!==l-1?c.lastIndexOf(","):c.length,u=c.substr(0,a),n[s]=isNaN(u)?u.replace(Ux,"").trim():+u,s=c.substr(a+1).trim();return n},qx=function(e){var n=e.indexOf("(")+1,r=e.indexOf(")"),s=e.indexOf("(",n);return e.substring(n,~s&&s<r?e.indexOf(")",r+1):r)},Hx=function(e){var n=(e+"").split("("),r=j[n[0]];return r&&n.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[zx(n[1])]:qx(e).split(",").map(of)):j._CE&&Rx.test(e)?j._CE("",e):r},Nf=function(e){return function(n){return 1-e(1-n)}},If=function t(e,n){for(var r=e._first,s;r;)r instanceof De?t(r,n):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==n&&(r.timeline?t(r.timeline,n):(s=r._ease,r._ease=r._yEase,r._yEase=s,r._yoyo=n)),r=r._next},En=function(e,n){return e&&(se(e)?e:j[e]||Hx(e))||n},Tn=function(e,n,r,s){r===void 0&&(r=function(c){return 1-n(1-c)}),s===void 0&&(s=function(c){return c<.5?n(c*2)/2:1-n((1-c)*2)/2});var i={easeIn:n,easeOut:r,easeInOut:s},l;return Le(e,function(a){j[a]=je[a]=i,j[l=a.toLowerCase()]=r;for(var c in i)j[l+(c==="easeIn"?".in":c==="easeOut"?".out":".inOut")]=j[a+"."+c]=i[c]}),i},$f=function(e){return function(n){return n<.5?(1-e(1-n*2))/2:.5+e((n-.5)*2)/2}},Wl=function t(e,n,r){var s=n>=1?n:1,i=(r||(e?.3:.45))/(n<1?n:1),l=i/Nl*(Math.asin(1/s)||0),a=function(d){return d===1?1:s*Math.pow(2,-10*d)*bx((d-l)*i)+1},c=e==="out"?a:e==="in"?function(u){return 1-a(1-u)}:$f(a);return i=Nl/i,c.config=function(u,d){return t(e,u,d)},c},Zl=function t(e,n){n===void 0&&(n=1.70158);var r=function(l){return l?--l*l*((n+1)*l+n)+1:0},s=e==="out"?r:e==="in"?function(i){return 1-r(1-i)}:$f(r);return s.config=function(i){return t(e,i)},s};Le("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var n=e<5?e+1:e;Tn(t+",Power"+(n-1),e?function(r){return Math.pow(r,n)}:function(r){return r},function(r){return 1-Math.pow(1-r,n)},function(r){return r<.5?Math.pow(r*2,n)/2:1-Math.pow((1-r)*2,n)/2})}),j.Linear.easeNone=j.none=j.Linear.easeIn,Tn("Elastic",Wl("in"),Wl("out"),Wl()),function(t,e){var n=1/e,r=2*n,s=2.5*n,i=function(a){return a<n?t*a*a:a<r?t*Math.pow(a-1.5/e,2)+.75:a<s?t*(a-=2.25/e)*a+.9375:t*Math.pow(a-2.625/e,2)+.984375};Tn("Bounce",function(l){return 1-i(1-l)},i)}(7.5625,2.75),Tn("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)}),Tn("Circ",function(t){return-(Gd(1-t*t)-1)}),Tn("Sine",function(t){return t===1?1:-gx(t*mx)+1}),Tn("Back",Zl("in"),Zl("out"),Zl()),j.SteppedEase=j.steps=je.SteppedEase={config:function(e,n){e===void 0&&(e=1);var r=1/e,s=e+(n?0:1),i=n?1:0,l=1-Ee;return function(a){return((s*lo(0,l,a)|0)+i)*r}}},sr.ease=j["quad.out"],Le("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return vl+=t+","+t+"Params,"});var Ff=function(e,n){this.id=px++,e._gsap=this,this.target=e,this.harness=n,this.get=n?n.get:nf,this.set=n?n.getSetter:Jl},_o=function(){function t(n){this.vars=n,this._delay=+n.delay||0,(this._repeat=n.repeat===1/0?-2:n.repeat||0)&&(this._rDelay=n.repeatDelay||0,this._yoyo=!!n.yoyo||!!n.yoyoEase),this._ts=1,ur(this,+n.duration,1,1),this.data=n.data,ne&&(this._ctx=ne,ne.data.push(this)),fo||Ye.wake()}var e=t.prototype;return e.delay=function(r){return r||r===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+r-this._delay),this._delay=r,this):this._delay},e.duration=function(r){return arguments.length?this.totalDuration(this._repeat>0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},e.totalDuration=function(r){return arguments.length?(this._dirty=0,ur(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,s){if(fr(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(Cs(this,r),!i._dp||i.parent||uf(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&Bt(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!s||this._initted&&Math.abs(this._zTime)===Ee||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),rf(this,r,s)),this},e.time=function(r,s){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+cf(this))%(this._dur+this._rDelay)||(r?this._dur:0),s):this._time},e.totalProgress=function(r,s){return arguments.length?this.totalTime(this.totalDuration()*r,s):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(r,s){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+cf(this),s):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(r,s){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*i,s):this._repeat?cr(this._tTime,i)+1:1},e.timeScale=function(r,s){if(!arguments.length)return this._rts===-1e-8?0:this._rts;if(this._rts===r)return this;var i=this.parent&&this._ts?ks(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-1e-8?0:this._rts,this.totalTime(lo(-Math.abs(this._delay),this._tDur,i),s!==!1),xs(this),Ex(this)},e.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(fr(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Ee&&(this._tTime-=Ee)))),this):this._ps},e.startTime=function(r){if(arguments.length){this._start=r;var s=this.parent||this._dp;return s&&(s._sort||!this.parent)&&Bt(s,this,r-this._delay),this}return this._start},e.endTime=function(r){return this._start+(Ve(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(r){var s=this.parent||this._dp;return s?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?ks(s.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=kx);var s=we;return we=r,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),we=s,this},e.globalTime=function(r){for(var s=this,i=arguments.length?r:s.rawTime();s;)i=s._start+i/(Math.abs(s._ts)||1),s=s._dp;return!this.parent&&this._sat?this._sat.globalTime(r):i},e.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,_f(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var s=this._time;return this._rDelay=r,_f(this),s?this.time(s):this}return this._rDelay},e.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},e.seek=function(r,s){return this.totalTime(rt(this,r),Ve(s))},e.restart=function(r,s){return this.play().totalTime(r?-this._delay:0,Ve(s)),this._dur||(this._zTime=-1e-8),this},e.play=function(r,s){return r!=null&&this.seek(r,s),this.reversed(!1).paused(!1)},e.reverse=function(r,s){return r!=null&&this.seek(r||this.totalDuration(),s),this.reversed(!0).paused(!1)},e.pause=function(r,s){return r!=null&&this.seek(r,s),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var r=this.parent||this._dp,s=this._start,i;return!!(!r||this._ts&&this._initted&&r.isActive()&&(i=r.rawTime(!0))>=s&&i<this.endTime(!0)-Ee)},e.eventCallback=function(r,s,i){var l=this.vars;return arguments.length>1?(s?(l[r]=s,i&&(l[r+"Params"]=i),r==="onUpdate"&&(this._onUpdate=s)):delete l[r],this):l[r]},e.then=function(r){var s=this;return new Promise(function(i){var l=se(r)?r:sf,a=function(){var u=s.then;s.then=null,se(l)&&(l=l(s))&&(l.then||l===s)&&(s.then=u),i(l),s.then=u};s._initted&&s.totalProgress()===1&&s._ts>=0||!s._tTime&&s._ts<0?a():s._prom=a})},e.kill=function(){co(this)},t}();We(_o.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var De=function(t){jd(e,t);function e(r,s){var i;return r===void 0&&(r={}),i=t.call(this,r)||this,i.labels={},i.smoothChildTiming=!!r.smoothChildTiming,i.autoRemoveChildren=!!r.autoRemoveChildren,i._sort=Ve(r.sortChildren),re&&Bt(r.parent||re,Mt(i),s),r.reversed&&i.reverse(),r.paused&&i.paused(!0),r.scrollTrigger&&df(Mt(i),r.scrollTrigger),i}var n=e.prototype;return n.to=function(s,i,l){return io(0,arguments,this),this},n.from=function(s,i,l){return io(1,arguments,this),this},n.fromTo=function(s,i,l,a){return io(2,arguments,this),this},n.set=function(s,i,l){return i.duration=0,i.parent=this,so(i).repeatDelay||(i.repeat=0),i.immediateRender=!!i.immediateRender,new me(s,i,rt(this,l),1),this},n.call=function(s,i,l){return Bt(this,me.delayedCall(0,s,i),l)},n.staggerTo=function(s,i,l,a,c,u,d){return l.duration=i,l.stagger=l.stagger||a,l.onComplete=u,l.onCompleteParams=d,l.parent=this,new me(s,l,rt(this,c)),this},n.staggerFrom=function(s,i,l,a,c,u,d){return l.runBackwards=1,so(l).immediateRender=Ve(l.immediateRender),this.staggerTo(s,i,l,a,c,u,d)},n.staggerFromTo=function(s,i,l,a,c,u,d,f){return a.startAt=l,so(a).immediateRender=Ve(a.immediateRender),this.staggerTo(s,i,a,c,u,d,f)},n.render=function(s,i,l){var a=this._time,c=this._dirty?this.totalDuration():this._tDur,u=this._dur,d=s<=0?0:he(s),f=this._zTime<0!=s<0&&(this._initted||!u),h,_,g,m,p,y,b,w,C,E,k,S;if(this!==re&&d>c&&s>=0&&(d=c),d!==this._tTime||l||f){if(a!==this._time&&u&&(d+=this._time-a,s+=this._time-a),h=d,C=this._start,w=this._ts,y=!w,f&&(u||(a=this._zTime),(s||!i)&&(this._zTime=s)),this._repeat){if(k=this._yoyo,p=u+this._rDelay,this._repeat<-1&&s<0)return this.totalTime(p*100+s,i,l);if(h=he(d%p),d===c?(m=this._repeat,h=u):(E=he(d/p),m=~~E,m&&m===E&&(h=u,m--),h>u&&(h=u)),E=cr(this._tTime,p),!a&&this._tTime&&E!==m&&this._tTime-E*p-this._dur<=0&&(E=m),k&&m&1&&(h=u-h,S=1),m!==E&&!this._lock){var T=k&&E&1,B=T===(k&&m&1);if(m<E&&(T=!T),a=T?0:d%u?u:d,this._lock=1,this.render(a||(S?0:he(m*p)),i,!u)._lock=0,this._tTime=d,!i&&this.parent&&Ze(this,"onRepeat"),this.vars.repeatRefresh&&!S&&(this.invalidate()._lock=1),a&&a!==this._time||y!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(u=this._dur,c=this._tDur,B&&(this._lock=2,a=T?u:-1e-4,this.render(a,!0),this.vars.repeatRefresh&&!S&&this.invalidate()),this._lock=0,!this._ts&&!y)return this;If(this,S)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(b=Ix(this,he(a),he(h)),b&&(d-=h-(h=b._start))),this._tTime=d,this._time=h,this._act=!w,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=s,a=0),!a&&h&&!i&&!m&&(Ze(this,"onStart"),this._tTime!==d))return this;if(h>=a&&s>=0)for(_=this._first;_;){if(g=_._next,(_._act||h>=_._start)&&_._ts&&b!==_){if(_.parent!==this)return this.render(s,i,l);if(_.render(_._ts>0?(h-_._start)*_._ts:(_._dirty?_.totalDuration():_._tDur)+(h-_._start)*_._ts,i,l),h!==this._time||!this._ts&&!y){b=0,g&&(d+=this._zTime=-1e-8);break}}_=g}else{_=this._last;for(var N=s<0?s:h;_;){if(g=_._prev,(_._act||N<=_._end)&&_._ts&&b!==_){if(_.parent!==this)return this.render(s,i,l);if(_.render(_._ts>0?(N-_._start)*_._ts:(_._dirty?_.totalDuration():_._tDur)+(N-_._start)*_._ts,i,l||we&&(_._initted||_._startAt)),h!==this._time||!this._ts&&!y){b=0,g&&(d+=this._zTime=N?-1e-8:Ee);break}}_=g}}if(b&&!i&&(this.pause(),b.render(h>=a?0:-1e-8)._zTime=h>=a?1:-1,this._ts))return this._start=C,xs(this),this.render(s,i,l);this._onUpdate&&!i&&Ze(this,"onUpdate",!0),(d===c&&this._tTime>=this.totalDuration()||!d&&a)&&(C===this._start||Math.abs(w)!==Math.abs(this._ts))&&(this._lock||((s||!u)&&(d===c&&this._ts>0||!d&&this._ts<0)&&Wt(this,1),!i&&!(s<0&&!a)&&(d||a||!c)&&(Ze(this,d===c&&s>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(d<c&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(s,i){var l=this;if(Vt(i)||(i=rt(this,i,s)),!(s instanceof _o)){if(Te(s))return s.forEach(function(a){return l.add(a,i)}),this;if(be(s))return this.addLabel(s,i);if(se(s))s=me.delayedCall(0,s);else return this}return this!==s?Bt(this,s,i):this},n.getChildren=function(s,i,l,a){s===void 0&&(s=!0),i===void 0&&(i=!0),l===void 0&&(l=!0),a===void 0&&(a=-1e8);for(var c=[],u=this._first;u;)u._start>=a&&(u instanceof me?i&&c.push(u):(l&&c.push(u),s&&c.push.apply(c,u.getChildren(!0,i,l)))),u=u._next;return c},n.getById=function(s){for(var i=this.getChildren(1,1,1),l=i.length;l--;)if(i[l].vars.id===s)return i[l]},n.remove=function(s){return be(s)?this.removeLabel(s):se(s)?this.killTweensOf(s):(s.parent===this&&ws(this,s),s===this._recent&&(this._recent=this._last),Sn(this))},n.totalTime=function(s,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=he(Ye.time-(this._ts>0?s/this._ts:(this.totalDuration()-s)/-this._ts))),t.prototype.totalTime.call(this,s,i),this._forcing=0,this):this._tTime},n.addLabel=function(s,i){return this.labels[s]=rt(this,i),this},n.removeLabel=function(s){return delete this.labels[s],this},n.addPause=function(s,i,l){var a=me.delayedCall(0,i||oo,l);return a.data="isPause",this._hasPause=1,Bt(this,a,rt(this,s))},n.removePause=function(s){var i=this._first;for(s=rt(this,s);i;)i._start===s&&i.data==="isPause"&&Wt(i),i=i._next},n.killTweensOf=function(s,i,l){for(var a=this.getTweensOf(s,l),c=a.length;c--;)Qt!==a[c]&&a[c].kill(s,i);return this},n.getTweensOf=function(s,i){for(var l=[],a=ot(s),c=this._first,u=Vt(i),d;c;)c instanceof me?xx(c._targets,a)&&(u?(!Qt||c._initted&&c._ts)&&c.globalTime(0)<=i&&c.globalTime(c.totalDuration())>i:!i||c.isActive())&&l.push(c):(d=c.getTweensOf(a,i)).length&&l.push.apply(l,d),c=c._next;return l},n.tweenTo=function(s,i){i=i||{};var l=this,a=rt(l,s),c=i,u=c.startAt,d=c.onStart,f=c.onStartParams,h=c.immediateRender,_,g=me.to(l,We({ease:i.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:i.duration||Math.abs((a-(u&&"time"in u?u.time:l._time))/l.timeScale())||Ee,onStart:function(){if(l.pause(),!_){var p=i.duration||Math.abs((a-(u&&"time"in u?u.time:l._time))/l.timeScale());g._dur!==p&&ur(g,p,0,1).render(g._time,!0,!0),_=1}d&&d.apply(g,f||[])}},i));return h?g.render(0):g},n.tweenFromTo=function(s,i,l){return this.tweenTo(i,We({startAt:{time:rt(this,s)}},l))},n.recent=function(){return this._recent},n.nextLabel=function(s){return s===void 0&&(s=this._time),kf(this,rt(this,s))},n.previousLabel=function(s){return s===void 0&&(s=this._time),kf(this,rt(this,s),1)},n.currentLabel=function(s){return arguments.length?this.seek(s,!0):this.previousLabel(this._time+Ee)},n.shiftChildren=function(s,i,l){l===void 0&&(l=0);for(var a=this._first,c=this.labels,u;a;)a._start>=l&&(a._start+=s,a._end+=s),a=a._next;if(i)for(u in c)c[u]>=l&&(c[u]+=s);return Sn(this)},n.invalidate=function(s){var i=this._first;for(this._lock=0;i;)i.invalidate(s),i=i._next;return t.prototype.invalidate.call(this,s)},n.clear=function(s){s===void 0&&(s=!0);for(var i=this._first,l;i;)l=i._next,this.remove(i),i=l;return this._dp&&(this._time=this._tTime=this._pTime=0),s&&(this.labels={}),Sn(this)},n.totalDuration=function(s){var i=0,l=this,a=l._last,c=St,u,d,f;if(arguments.length)return l.timeScale((l._repeat<0?l.duration():l.totalDuration())/(l.reversed()?-s:s));if(l._dirty){for(f=l.parent;a;)u=a._prev,a._dirty&&a.totalDuration(),d=a._start,d>c&&l._sort&&a._ts&&!l._lock?(l._lock=1,Bt(l,a,d-a._delay,1)._lock=0):c=d,d<0&&a._ts&&(i-=d,(!f&&!l._dp||f&&f.smoothChildTiming)&&(l._start+=d/l._ts,l._time-=d,l._tTime-=d),l.shiftChildren(-d,!1,-1/0),c=0),a._end>i&&a._ts&&(i=a._end),a=u;ur(l,l===re&&l._time>i?l._time:i,1,1),l._dirty=0}return l._tDur},e.updateRoot=function(s){if(re._ts&&(rf(re,ks(s,re)),ef=Ye.frame),Ye.frame>=tf){tf+=He.autoSleep||120;var i=re._first;if((!i||!i._ts)&&He.autoSleep&&Ye._listeners.length<2){for(;i&&!i._ts;)i=i._next;i||Ye.sleep()}}},e}(_o);We(De.prototype,{_lock:0,_hasPause:0,_forcing:0});var jx=function(e,n,r,s,i,l,a){var c=new Pe(this._pt,e,n,0,1,Lf,null,i),u=0,d=0,f,h,_,g,m,p,y,b;for(c.b=r,c.e=s,r+="",s+="",(y=~s.indexOf("random("))&&(s=ao(s)),l&&(b=[r,s],l(b,e,n),r=b[0],s=b[1]),h=r.match(Al)||[];f=Al.exec(s);)g=f[0],m=s.substring(u,f.index),_?_=(_+1)%5:m.substr(-5)==="rgba("&&(_=1),g!==h[d++]&&(p=parseFloat(h[d-1])||0,c._pt={_next:c._pt,p:m||d===1?m:",",s:p,c:g.charAt(1)==="="?lr(p,g)-p:parseFloat(g)-p,m:_&&_<4?Math.round:0},u=Al.lastIndex);return c.c=u<s.length?s.substring(u,s.length):"",c.fp=a,(Yd.test(s)||y)&&(c.e=0),this._pt=c,c},Yl=function(e,n,r,s,i,l,a,c,u,d){se(s)&&(s=s(i||0,e,l));var f=e[n],h=r!=="get"?r:se(f)?u?e[n.indexOf("set")||!se(e["get"+n.substr(3)])?n:"get"+n.substr(3)](u):e[n]():f,_=se(f)?u?Qx:Mf:Xl,g;if(be(s)&&(~s.indexOf("random(")&&(s=ao(s)),s.charAt(1)==="="&&(g=lr(h,s)+(Be(h)||0),(g||g===0)&&(s=g))),!d||h!==s||Ql)return!isNaN(h*s)&&s!==""?(g=new Pe(this._pt,e,n,+h||0,s-(h||0),typeof f=="boolean"?Xx:Vf,0,_),u&&(g.fp=u),a&&g.modifier(a,this,e),this._pt=g):(!f&&!(n in e)&&Ml(n,s),jx.call(this,e,n,h,s,_,c||He.stringFilter,u))},Gx=function(e,n,r,s,i){if(se(e)&&(e=ho(e,i,n,r,s)),!Et(e)||e.style&&e.nodeType||Te(e)||Wd(e))return be(e)?ho(e,i,n,r,s):e;var l={},a;for(a in e)l[a]=ho(e[a],i,n,r,s);return l},Af=function(e,n,r,s,i,l){var a,c,u,d;if(Ge[e]&&(a=new Ge[e]).init(i,a.rawVars?n[e]:Gx(n[e],s,i,l,r),r,s,l)!==!1&&(r._pt=c=new Pe(r._pt,i,e,0,1,a.render,a,0,a.priority),r!==dr))for(u=r._ptLookup[r._targets.indexOf(i)],d=a._props.length;d--;)u[a._props[d]]=c;return a},Qt,Ql,Kl=function t(e,n,r){var s=e.vars,i=s.ease,l=s.startAt,a=s.immediateRender,c=s.lazy,u=s.onUpdate,d=s.runBackwards,f=s.yoyoEase,h=s.keyframes,_=s.autoRevert,g=e._dur,m=e._startAt,p=e._targets,y=e.parent,b=y&&y.data==="nested"?y.vars.targets:p,w=e._overwrite==="auto"&&!Bl,C=e.timeline,E,k,S,T,B,N,$,A,F,I,q,V,Z;if(C&&(!h||!i)&&(i="none"),e._ease=En(i,sr.ease),e._yEase=f?Nf(En(f===!0?i:f,sr.ease)):0,f&&e._yoyo&&!e._repeat&&(f=e._yEase,e._yEase=e._ease,e._ease=f),e._from=!C&&!!s.runBackwards,!C||h&&!s.stagger){if(A=p[0]?Cn(p[0]).harness:0,V=A&&s[A.prop],E=ys(s,Vl),m&&(m._zTime<0&&m.progress(1),n<0&&d&&a&&!_?m.render(-1,!0):m.revert(d&&g?ps:wx),m._lazy=0),l){if(Wt(e._startAt=me.set(p,We({data:"isStart",overwrite:!1,parent:y,immediateRender:!0,lazy:!m&&Ve(c),startAt:null,delay:0,onUpdate:u&&function(){return Ze(e,"onUpdate")},stagger:0},l))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(we||!a&&!_)&&e._startAt.revert(ps),a&&g&&n<=0&&r<=0){n&&(e._zTime=n);return}}else if(d&&g&&!m){if(n&&(a=!1),S=We({overwrite:!1,data:"isFromStart",lazy:a&&!m&&Ve(c),immediateRender:a,stagger:0,parent:y},E),V&&(S[A.prop]=V),Wt(e._startAt=me.set(p,S)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(we?e._startAt.revert(ps):e._startAt.render(-1,!0)),e._zTime=n,!a)t(e._startAt,Ee,Ee);else if(!n)return}for(e._pt=e._ptCache=0,c=g&&Ve(c)||c&&!g,k=0;k<p.length;k++){if(B=p[k],$=B._gsap||Rl(p)[k]._gsap,e._ptLookup[k]=I={},Ll[$.id]&&Gt.length&&bs(),q=b===p?k:b.indexOf(B),A&&(F=new A).init(B,V||E,e,q,b)!==!1&&(e._pt=T=new Pe(e._pt,B,F.name,0,1,F.render,F,0,F.priority),F._props.forEach(function(Y){I[Y]=T}),F.priority&&(N=1)),!A||V)for(S in E)Ge[S]&&(F=Af(S,E,e,q,B,b))?F.priority&&(N=1):I[S]=T=Yl.call(e,B,S,"get",E[S],q,b,0,s.stringFilter);e._op&&e._op[k]&&e.kill(B,e._op[k]),w&&e._pt&&(Qt=e,re.killTweensOf(B,I,e.globalTime(n)),Z=!e.parent,Qt=0),e._pt&&c&&(Ll[$.id]=1)}N&&Pf(e),e._onInit&&e._onInit(e)}e._onUpdate=u,e._initted=(!e._op||e._pt)&&!Z,h&&n<=0&&C.render(St,!0,!0)},Wx=function(e,n,r,s,i,l,a,c){var u=(e._pt&&e._ptCache||(e._ptCache={}))[n],d,f,h,_;if(!u)for(u=e._ptCache[n]=[],h=e._ptLookup,_=e._targets.length;_--;){if(d=h[_][n],d&&d.d&&d.d._pt)for(d=d.d._pt;d&&d.p!==n&&d.fp!==n;)d=d._next;if(!d)return Ql=1,e.vars[n]="+=0",Kl(e,a),Ql=0,c?ro(n+" not eligible for reset"):1;u.push(d)}for(_=u.length;_--;)f=u[_],d=f._pt||f,d.s=(s||s===0)&&!i?s:d.s+(s||0)+l*d.c,d.c=r-d.s,f.e&&(f.e=_e(r)+Be(f.e)),f.b&&(f.b=d.s+Be(f.b))},Zx=function(e,n){var r=e[0]?Cn(e[0]).harness:0,s=r&&r.aliases,i,l,a,c;if(!s)return n;i=ar({},n);for(l in s)if(l in i)for(c=s[l].split(","),a=c.length;a--;)i[c[a]]=i[l];return i},Yx=function(e,n,r,s){var i=n.ease||s||"power1.inOut",l,a;if(Te(n))a=r[e]||(r[e]=[]),n.forEach(function(c,u){return a.push({t:u/(n.length-1)*100,v:c,e:i})});else for(l in n)a=r[l]||(r[l]=[]),l==="ease"||a.push({t:parseFloat(e),v:n[l],e:i})},ho=function(e,n,r,s,i){return se(e)?e.call(n,r,s,i):be(e)&&~e.indexOf("random(")?ao(e):e},Df=vl+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Of={};Le(Df+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return Of[t]=1});var me=function(t){jd(e,t);function e(r,s,i,l){var a;typeof s=="number"&&(i.duration=s,s=i,i=null),a=t.call(this,l?s:so(s))||this;var c=a.vars,u=c.duration,d=c.delay,f=c.immediateRender,h=c.stagger,_=c.overwrite,g=c.keyframes,m=c.defaults,p=c.scrollTrigger,y=c.yoyoEase,b=s.parent||re,w=(Te(r)||Wd(r)?Vt(r[0]):"length"in s)?[r]:ot(r),C,E,k,S,T,B,N,$;if(a._targets=w.length?Rl(w):ro("GSAP target "+r+" not found. https://gsap.com",!He.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=_,g||h||hs(u)||hs(d)){if(s=a.vars,C=a.timeline=new De({data:"nested",defaults:m||{},targets:b&&b.data==="nested"?b.vars.targets:w}),C.kill(),C.parent=C._dp=Mt(a),C._start=0,h||hs(u)||hs(d)){if(S=w.length,N=h&&pf(h),Et(h))for(T in h)~Df.indexOf(T)&&($||($={}),$[T]=h[T]);for(E=0;E<S;E++)k=ys(s,Of),k.stagger=0,y&&(k.yoyoEase=y),$&&ar(k,$),B=w[E],k.duration=+ho(u,Mt(a),E,B,w),k.delay=(+ho(d,Mt(a),E,B,w)||0)-a._delay,!h&&S===1&&k.delay&&(a._delay=d=k.delay,a._start+=d,k.delay=0),C.to(B,k,N?N(E,B,w):0),C._ease=j.none;C.duration()?u=d=0:a.timeline=0}else if(g){so(We(C.vars.defaults,{ease:"none"})),C._ease=En(g.ease||s.ease||"none");var A=0,F,I,q;if(Te(g))g.forEach(function(V){return C.to(w,V,">")}),C.duration();else{k={};for(T in g)T==="ease"||T==="easeEach"||Yx(T,g[T],k,g.easeEach);for(T in k)for(F=k[T].sort(function(V,Z){return V.t-Z.t}),A=0,E=0;E<F.length;E++)I=F[E],q={ease:I.e,duration:(I.t-(E?F[E-1].t:0))/100*u},q[T]=I.v,C.to(w,q,A),A+=q.duration;C.duration()<u&&C.to({},{duration:u-C.duration()})}}u||a.duration(u=C.duration())}else a.timeline=0;return _===!0&&!Bl&&(Qt=Mt(a),re.killTweensOf(w),Qt=0),Bt(b,Mt(a),i),s.reversed&&a.reverse(),s.paused&&a.paused(!0),(f||!u&&!g&&a._start===he(b._time)&&Ve(f)&&Tx(Mt(a))&&b.data!=="nested")&&(a._tTime=-1e-8,a.render(Math.max(0,-d)||0)),p&&df(Mt(a),p),a}var n=e.prototype;return n.render=function(s,i,l){var a=this._time,c=this._tDur,u=this._dur,d=s<0,f=s>c-Ee&&!d?c:s<Ee?0:s,h,_,g,m,p,y,b,w,C;if(!u)Nx(this,s,i,l);else if(f!==this._tTime||!s||l||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==d||this._lazy){if(h=f,w=this.timeline,this._repeat){if(m=u+this._rDelay,this._repeat<-1&&d)return this.totalTime(m*100+s,i,l);if(h=he(f%m),f===c?(g=this._repeat,h=u):(p=he(f/m),g=~~p,g&&g===p?(h=u,g--):h>u&&(h=u)),y=this._yoyo&&g&1,y&&(C=this._yEase,h=u-h),p=cr(this._tTime,m),h===a&&!l&&this._initted&&g===p)return this._tTime=f,this;g!==p&&(w&&this._yEase&&If(w,y),this.vars.repeatRefresh&&!y&&!this._lock&&h!==m&&this._initted&&(this._lock=l=1,this.render(he(m*g),!0).invalidate()._lock=0))}if(!this._initted){if(ff(this,d?s:h,l,i,f))return this._tTime=0,this;if(a!==this._time&&!(l&&this.vars.repeatRefresh&&g!==p))return this;if(u!==this._dur)return this.render(s,i,l)}if(this._tTime=f,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=b=(C||this._ease)(h/u),this._from&&(this.ratio=b=1-b),h&&!a&&!i&&!g&&(Ze(this,"onStart"),this._tTime!==f))return this;for(_=this._pt;_;)_.r(b,_.d),_=_._next;w&&w.render(s<0?s:w._dur*w._ease(h/this._dur),i,l)||this._startAt&&(this._zTime=s),this._onUpdate&&!i&&(d&&Ul(this,s,i,l),Ze(this,"onUpdate")),this._repeat&&g!==p&&this.vars.onRepeat&&!i&&this.parent&&Ze(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(d&&!this._onUpdate&&Ul(this,s,!0,!0),(s||!u)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&Wt(this,1),!i&&!(d&&!a)&&(f||a||y)&&(Ze(this,f===c?"onComplete":"onReverseComplete",!0),this._prom&&!(f<c&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(s){return(!s||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(s),t.prototype.invalidate.call(this,s)},n.resetTo=function(s,i,l,a,c){fo||Ye.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),d;return this._initted||Kl(this,u),d=this._ease(u/this._dur),Wx(this,s,i,l,a,d,u,c)?this.resetTo(s,i,l,a,1):(Cs(this,0),this.parent||af(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(s,i){if(i===void 0&&(i="all"),!s&&(!i||i==="all"))return this._lazy=this._pt=0,this.parent?co(this):this.scrollTrigger&&this.scrollTrigger.kill(!!we),this;if(this.timeline){var l=this.timeline.totalDuration();return this.timeline.killTweensOf(s,i,Qt&&Qt.vars.overwrite!==!0)._first||co(this),this.parent&&l!==this.timeline.totalDuration()&&ur(this,this._dur*this.timeline._tDur/l,0,1),this}var a=this._targets,c=s?ot(s):a,u=this._ptLookup,d=this._pt,f,h,_,g,m,p,y;if((!i||i==="all")&&Sx(a,c))return i==="all"&&(this._pt=0),co(this);for(f=this._op=this._op||[],i!=="all"&&(be(i)&&(m={},Le(i,function(b){return m[b]=1}),i=m),i=Zx(a,i)),y=a.length;y--;)if(~c.indexOf(a[y])){h=u[y],i==="all"?(f[y]=i,g=h,_={}):(_=f[y]=f[y]||{},g=i);for(m in g)p=h&&h[m],p&&((!("kill"in p.d)||p.d.kill(m)===!0)&&ws(this,p,"_pt"),delete h[m]),_!=="all"&&(_[m]=1)}return this._initted&&!this._pt&&d&&co(this),this},e.to=function(s,i){return new e(s,i,arguments[2])},e.from=function(s,i){return io(1,arguments)},e.delayedCall=function(s,i,l,a){return new e(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:s,onComplete:i,onReverseComplete:i,onCompleteParams:l,onReverseCompleteParams:l,callbackScope:a})},e.fromTo=function(s,i,l){return io(2,arguments)},e.set=function(s,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new e(s,i)},e.killTweensOf=function(s,i,l){return re.killTweensOf(s,i,l)},e}(_o);We(me.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Le("staggerTo,staggerFrom,staggerFromTo",function(t){me[t]=function(){var e=new De,n=ql.call(arguments,0);return n.splice(t==="staggerFromTo"?5:4,0,0),e[t].apply(e,n)}});var Xl=function(e,n,r){return e[n]=r},Mf=function(e,n,r){return e[n](r)},Qx=function(e,n,r,s){return e[n](s.fp,r)},Kx=function(e,n,r){return e.setAttribute(n,r)},Jl=function(e,n){return se(e[n])?Mf:Il(e[n])&&e.setAttribute?Kx:Xl},Vf=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e6)/1e6,n)},Xx=function(e,n){return n.set(n.t,n.p,!!(n.s+n.c*e),n)},Lf=function(e,n){var r=n._pt,s="";if(!e&&n.b)s=n.b;else if(e===1&&n.e)s=n.e;else{for(;r;)s=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+s,r=r._next;s+=n.c}n.set(n.t,n.p,s,n)},ea=function(e,n){for(var r=n._pt;r;)r.r(e,r.d),r=r._next},Jx=function(e,n,r,s){for(var i=this._pt,l;i;)l=i._next,i.p===s&&i.modifier(e,n,r),i=l},e3=function(e){for(var n=this._pt,r,s;n;)s=n._next,n.p===e&&!n.op||n.op===e?ws(this,n,"_pt"):n.dep||(r=1),n=s;return!r},t3=function(e,n,r,s){s.mSet(e,n,s.m.call(s.tween,r,s.mt),s)},Pf=function(e){for(var n=e._pt,r,s,i,l;n;){for(r=n._next,s=i;s&&s.pr>n.pr;)s=s._next;(n._prev=s?s._prev:l)?n._prev._next=n:i=n,(n._next=s)?s._prev=n:l=n,n=r}e._pt=i},Pe=function(){function t(n,r,s,i,l,a,c,u,d){this.t=r,this.s=i,this.c=l,this.p=s,this.r=a||Vf,this.d=c||this,this.set=u||Xl,this.pr=d||0,this._next=n,n&&(n._prev=this)}var e=t.prototype;return e.modifier=function(r,s,i){this.mSet=this.mSet||this.set,this.set=t3,this.m=r,this.mt=i,this.tween=s},t}();Le(vl+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return Vl[t]=1}),je.TweenMax=je.TweenLite=me,je.TimelineLite=je.TimelineMax=De,re=new De({sortChildren:!1,defaults:sr,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),He.stringFilter=Bf;var Bn=[],Ss={},n3=[],vf=0,r3=0,ta=function(e){return(Ss[e]||n3).map(function(n){return n()})},na=function(){var e=Date.now(),n=[];e-vf>2&&(ta("matchMediaInit"),Bn.forEach(function(r){var s=r.queries,i=r.conditions,l,a,c,u;for(a in s)l=Tt.matchMedia(s[a]).matches,l&&(c=1),l!==i[a]&&(i[a]=l,u=1);u&&(r.revert(),c&&n.push(r))}),ta("matchMediaRevert"),n.forEach(function(r){return r.onMatch(r,function(s){return r.add(null,s)})}),vf=e,ta("matchMedia"))},Rf=function(){function t(n,r){this.selector=r&&Hl(r),this.data=[],this._r=[],this.isReverted=!1,this.id=r3++,n&&this.add(n)}var e=t.prototype;return e.add=function(r,s,i){se(r)&&(i=s,s=r,r=se);var l=this,a=function(){var u=ne,d=l.selector,f;return u&&u!==l&&u.data.push(l),i&&(l.selector=Hl(i)),ne=l,f=s.apply(l,arguments),se(f)&&l._r.push(f),ne=u,l.selector=d,l.isReverted=!1,f};return l.last=a,r===se?a(l,function(c){return l.add(null,c)}):r?l[r]=a:a},e.ignore=function(r){var s=ne;ne=null,r(this),ne=s},e.getTweens=function(){var r=[];return this.data.forEach(function(s){return s instanceof t?r.push.apply(r,s.getTweens()):s instanceof me&&!(s.parent&&s.parent.data==="nested")&&r.push(s)}),r},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(r,s){var i=this;if(r?function(){for(var a=i.getTweens(),c=i.data.length,u;c--;)u=i.data[c],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(d){return a.splice(a.indexOf(d),1)}));for(a.map(function(d){return{g:d._dur||d._delay||d._sat&&!d._sat.vars.immediateRender?d.globalTime(0):-1/0,t:d}}).sort(function(d,f){return f.g-d.g||-1/0}).forEach(function(d){return d.t.revert(r)}),c=i.data.length;c--;)u=i.data[c],u instanceof De?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof me)&&u.revert&&u.revert(r);i._r.forEach(function(d){return d(r,i)}),i.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),s)for(var l=Bn.length;l--;)Bn[l].id===this.id&&Bn.splice(l,1)},e.revert=function(r){this.kill(r||{})},t}(),o3=function(){function t(n){this.contexts=[],this.scope=n,ne&&ne.data.push(this)}var e=t.prototype;return e.add=function(r,s,i){Et(r)||(r={matches:r});var l=new Rf(0,i||this.scope),a=l.conditions={},c,u,d;ne&&!l.selector&&(l.selector=ne.selector),this.contexts.push(l),s=l.add("onMatch",s),l.queries=r;for(u in r)u==="all"?d=1:(c=Tt.matchMedia(r[u]),c&&(Bn.indexOf(l)<0&&Bn.push(l),(a[u]=c.matches)&&(d=1),c.addListener?c.addListener(na):c.addEventListener("change",na)));return d&&s(l,function(f){return l.add(null,f)}),this},e.revert=function(r){this.kill(r||{})},e.kill=function(r){this.contexts.forEach(function(s){return s.kill(r,!0)})},t}(),Es={registerPlugin:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach(function(s){return Cf(s)})},timeline:function(e){return new De(e)},getTweensOf:function(e,n){return re.getTweensOf(e,n)},getProperty:function(e,n,r,s){be(e)&&(e=ot(e)[0]);var i=Cn(e||{}).get,l=r?sf:of;return r==="native"&&(r=""),e&&(n?l((Ge[n]&&Ge[n].get||i)(e,n,r,s)):function(a,c,u){return l((Ge[a]&&Ge[a].get||i)(e,a,c,u))})},quickSetter:function(e,n,r){if(e=ot(e),e.length>1){var s=e.map(function(d){return ve.quickSetter(d,n,r)}),i=s.length;return function(d){for(var f=i;f--;)s[f](d)}}e=e[0]||{};var l=Ge[n],a=Cn(e),c=a.harness&&(a.harness.aliases||{})[n]||n,u=l?function(d){var f=new l;dr._pt=0,f.init(e,r?d+r:d,dr,0,[e]),f.render(1,f),dr._pt&&ea(1,dr)}:a.set(e,c);return l?u:function(d){return u(e,c,r?d+r:d,a,1)}},quickTo:function(e,n,r){var s,i=ve.to(e,We((s={},s[n]="+=0.1",s.paused=!0,s.stagger=0,s),r||{})),l=function(c,u,d){return i.resetTo(n,c,u,d)};return l.tween=i,l},isTweening:function(e){return re.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=En(e.ease,sr.ease)),lf(sr,e||{})},config:function(e){return lf(He,e||{})},registerEffect:function(e){var n=e.name,r=e.effect,s=e.plugins,i=e.defaults,l=e.extendTimeline;(s||"").split(",").forEach(function(a){return a&&!Ge[a]&&!je[a]&&ro(n+" effect requires "+a+" plugin.")}),Pl[n]=function(a,c,u){return r(ot(a),We(c||{},i),u)},l&&(De.prototype[n]=function(a,c,u){return this.add(Pl[n](a,Et(c)?c:(u=c)&&{},this),u)})},registerEase:function(e,n){j[e]=En(n)},parseEase:function(e,n){return arguments.length?En(e,n):j},getById:function(e){return re.getById(e)},exportRoot:function(e,n){e===void 0&&(e={});var r=new De(e),s,i;for(r.smoothChildTiming=Ve(e.smoothChildTiming),re.remove(r),r._dp=0,r._time=r._tTime=re._time,s=re._first;s;)i=s._next,(n||!(!s._dur&&s instanceof me&&s.vars.onComplete===s._targets[0]))&&Bt(r,s,s._start-s._delay),s=i;return Bt(re,r,0),r},context:function(e,n){return e?new Rf(e,n):ne},matchMedia:function(e){return new o3(e)},matchMediaRefresh:function(){return Bn.forEach(function(e){var n=e.conditions,r,s;for(s in n)n[s]&&(n[s]=!1,r=1);r&&e.revert()})||na()},addEventListener:function(e,n){var r=Ss[e]||(Ss[e]=[]);~r.indexOf(n)||r.push(n)},removeEventListener:function(e,n){var r=Ss[e],s=r&&r.indexOf(n);s>=0&&r.splice(s,1)},utils:{wrap:Vx,wrapYoyo:Lx,distribute:pf,random:bf,snap:gf,normalize:Mx,getUnit:Be,clamp:Fx,splitColor:Sf,toArray:ot,selector:Hl,mapRange:wf,pipe:Dx,unitize:Ox,interpolate:Px,shuffle:mf},install:Xd,effects:Pl,ticker:Ye,updateRoot:De.updateRoot,plugins:Ge,globalTimeline:re,core:{PropTween:Pe,globals:Jd,Tween:me,Timeline:De,Animation:_o,getCache:Cn,_removeLinkedListItem:ws,reverting:function(){return we},context:function(e){return e&&ne&&(ne.data.push(e),e._ctx=ne),ne},suppressOverwrites:function(e){return Bl=e}}};Le("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Es[t]=me[t]}),Ye.add(De.updateRoot),dr=Es.to({},{duration:0});var s3=function(e,n){for(var r=e._pt;r&&r.p!==n&&r.op!==n&&r.fp!==n;)r=r._next;return r},i3=function(e,n){var r=e._targets,s,i,l;for(s in n)for(i=r.length;i--;)l=e._ptLookup[i][s],l&&(l=l.d)&&(l._pt&&(l=s3(l,s)),l&&l.modifier&&l.modifier(n[s],e,r[i],s))},ra=function(e,n){return{name:e,rawVars:1,init:function(s,i,l){l._onInit=function(a){var c,u;if(be(i)&&(c={},Le(i,function(d){return c[d]=1}),i=c),n){c={};for(u in i)c[u]=n(i[u]);i=c}i3(a,i)}}}},ve=Es.registerPlugin({name:"attr",init:function(e,n,r,s,i){var l,a,c;this.tween=r;for(l in n)c=e.getAttribute(l)||"",a=this.add(e,"setAttribute",(c||0)+"",n[l],s,i,0,0,l),a.op=l,a.b=c,this._props.push(l)},render:function(e,n){for(var r=n._pt;r;)we?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",init:function(e,n){for(var r=n.length;r--;)this.add(e,r,e[r]||0,n[r],0,0,0,0,0,1)}},ra("roundProps",jl),ra("modifiers"),ra("snap",gf))||Es;me.version=De.version=ve.version="3.12.7",Kd=1,$l()&&fr(),j.Power0,j.Power1,j.Power2,j.Power3,j.Power4,j.Linear,j.Quad,j.Cubic,j.Quart,j.Quint,j.Strong,j.Elastic,j.Back,j.SteppedEase,j.Bounce,j.Sine,j.Expo,j.Circ;/*!
|
|
226
|
+
*/var nt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Co={duration:.5,overwrite:!1,delay:0},Ca,Le,me,pt=1e8,le=1/pt,Sa=Math.PI*2,S3=Sa/4,E3=0,vh=Math.sqrt,T3=Math.cos,B3=Math.sin,Ae=function(e){return typeof e=="string"},be=function(e){return typeof e=="function"},Yt=function(e){return typeof e=="number"},Ea=function(e){return typeof e>"u"},Dt=function(e){return typeof e=="object"},Ze=function(e){return e!==!1},Ta=function(){return typeof window<"u"},js=function(e){return be(e)||Ae(e)},Vh=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},ve=Array.isArray,Ba=/(?:-?\.?\d|\.)+/gi,Ph=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,So=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Na=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Rh=/[+-]=-?[.\d]+/,Uh=/[^,'"\[\]\s]+/gi,N3=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,_e,vt,$a,Ia,ot={},Gs={},zh,Hh=function(e){return(Gs=To(e,ot))&&Xe},Aa=function(e,n){return console.warn("Invalid property",e,"set to",n,"Missing plugin? gsap.registerPlugin()")},Sr=function(e,n){return!n&&console.warn(e)},qh=function(e,n){return e&&(ot[e]=n)&&Gs&&(Gs[e]=n)||ot},Er=function(){return 0},$3={suppressEvents:!0,isStart:!0,kill:!1},Ks={suppressEvents:!0,kill:!1},I3={suppressEvents:!0},La={},cn=[],Fa={},Wh,rt={},Ma={},jh=30,Zs=[],Oa="",Da=function(e){var n=e[0],o,s;if(Dt(n)||be(n)||(e=[e]),!(o=(n._gsap||{}).harness)){for(s=Zs.length;s--&&!Zs[s].targetTest(n););o=Zs[s]}for(s=e.length;s--;)e[s]&&(e[s]._gsap||(e[s]._gsap=new km(e[s],o)))||e.splice(s,1);return e},Vn=function(e){return e._gsap||Da(gt(e))[0]._gsap},Gh=function(e,n,o){return(o=e[n])&&be(o)?e[n]():Ea(o)&&e.getAttribute&&e.getAttribute(n)||o},Ye=function(e,n){return(e=e.split(",")).forEach(n)||e},Ee=function(e){return Math.round(e*1e5)/1e5||0},Te=function(e){return Math.round(e*1e7)/1e7||0},Eo=function(e,n){var o=n.charAt(0),s=parseFloat(n.substr(2));return e=parseFloat(e),o==="+"?e+s:o==="-"?e-s:o==="*"?e*s:e/s},A3=function(e,n){for(var o=n.length,s=0;e.indexOf(n[s])<0&&++s<o;);return s<o},Ys=function(){var e=cn.length,n=cn.slice(0),o,s;for(Fa={},cn.length=0,o=0;o<e;o++)s=n[o],s&&s._lazy&&(s.render(s._lazy[0],s._lazy[1],!0)._lazy=0)},Kh=function(e,n,o,s){cn.length&&!Le&&Ys(),e.render(n,o,Le&&n<0&&(e._initted||e._startAt)),cn.length&&!Le&&Ys()},Zh=function(e){var n=parseFloat(e);return(n||n===0)&&(e+"").match(Uh).length<2?n:Ae(e)?e.trim():e},Yh=function(e){return e},st=function(e,n){for(var o in n)o in e||(e[o]=n[o]);return e},L3=function(e){return function(n,o){for(var s in o)s in n||s==="duration"&&e||s==="ease"||(n[s]=o[s])}},To=function(e,n){for(var o in n)e[o]=n[o];return e},Qh=function t(e,n){for(var o in n)o!=="__proto__"&&o!=="constructor"&&o!=="prototype"&&(e[o]=Dt(n[o])?t(e[o]||(e[o]={}),n[o]):n[o]);return e},Qs=function(e,n){var o={},s;for(s in e)s in n||(o[s]=e[s]);return o},Tr=function(e){var n=e.parent||_e,o=e.keyframes?L3(ve(e.keyframes)):st;if(Ze(e.inherit))for(;n;)o(e,n.vars.defaults),n=n.parent||n._dp;return e},F3=function(e,n){for(var o=e.length,s=o===n.length;s&&o--&&e[o]===n[o];);return o<0},Xh=function(e,n,o,s,i){var l=e[s],a;if(i)for(a=n[i];l&&l[i]>a;)l=l._prev;return l?(n._next=l._next,l._next=n):(n._next=e[o],e[o]=n),n._next?n._next._prev=n:e[s]=n,n._prev=l,n.parent=n._dp=e,n},Xs=function(e,n,o,s){o===void 0&&(o="_first"),s===void 0&&(s="_last");var i=n._prev,l=n._next;i?i._next=l:e[o]===n&&(e[o]=l),l?l._prev=i:e[s]===n&&(e[s]=i),n._next=n._prev=n.parent=null},un=function(e,n){e.parent&&(!n||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Pn=function(e,n){if(e&&(!n||n._end>e._dur||n._start<0))for(var o=e;o;)o._dirty=1,o=o.parent;return e},M3=function(e){for(var n=e.parent;n&&n.parent;)n._dirty=1,n.totalDuration(),n=n.parent;return e},va=function(e,n,o,s){return e._startAt&&(Le?e._startAt.revert(Ks):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(n,!0,s))},O3=function t(e){return!e||e._ts&&t(e.parent)},Jh=function(e){return e._repeat?Bo(e._tTime,e=e.duration()+e._rDelay)*e:0},Bo=function(e,n){var o=Math.floor(e=Te(e/n));return e&&o===e?o-1:o},Js=function(e,n){return(e-n._start)*n._ts+(n._ts>=0?0:n._dirty?n.totalDuration():n._tDur)},ei=function(e){return e._end=Te(e._start+(e._tDur/Math.abs(e._ts||e._rts||le)||0))},ti=function(e,n){var o=e._dp;return o&&o.smoothChildTiming&&e._ts&&(e._start=Te(o._time-(e._ts>0?n/e._ts:((e._dirty?e.totalDuration():e._tDur)-n)/-e._ts)),ei(e),o._dirty||Pn(o,e)),e},em=function(e,n){var o;if((n._time||!n._dur&&n._initted||n._start<e._time&&(n._dur||!n.add))&&(o=Js(e.rawTime(),n),(!n._dur||Nr(0,n.totalDuration(),o)-n._tTime>le)&&n.render(o,!0)),Pn(e,n)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(o=e;o._dp;)o.rawTime()>=0&&o.totalTime(o._tTime),o=o._dp;e._zTime=-le}},Vt=function(e,n,o,s){return n.parent&&un(n),n._start=Te((Yt(o)?o:o||e!==_e?_t(e,o,n):e._time)+n._delay),n._end=Te(n._start+(n.totalDuration()/Math.abs(n.timeScale())||0)),Xh(e,n,"_first","_last",e._sort?"_start":0),Va(n)||(e._recent=n),s||em(e,n),e._ts<0&&ti(e,e._tTime),e},tm=function(e,n){return(ot.ScrollTrigger||Aa("scrollTrigger",n))&&ot.ScrollTrigger.create(n,e)},nm=function(e,n,o,s,i){if(Ga(e,n,i),!e._initted)return 1;if(!o&&e._pt&&!Le&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Wh!==lt.frame)return cn.push(e),e._lazy=[i,s],1},D3=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},Va=function(e){var n=e.data;return n==="isFromStart"||n==="isStart"},v3=function(e,n,o,s){var i=e.ratio,l=n<0||!n&&(!e._start&&D3(e)&&!(!e._initted&&Va(e))||(e._ts<0||e._dp._ts<0)&&!Va(e))?0:1,a=e._rDelay,c=0,u,d,f;if(a&&e._repeat&&(c=Nr(0,e._tDur,n),d=Bo(c,a),e._yoyo&&d&1&&(l=1-l),d!==Bo(e._tTime,a)&&(i=1-l,e.vars.repeatRefresh&&e._initted&&e.invalidate())),l!==i||Le||s||e._zTime===le||!n&&e._zTime){if(!e._initted&&nm(e,n,s,o,c))return;for(f=e._zTime,e._zTime=n||(o?le:0),o||(o=n&&!f),e.ratio=l,e._from&&(l=1-l),e._time=0,e._tTime=c,u=e._pt;u;)u.r(l,u.d),u=u._next;n<0&&va(e,n,o,!0),e._onUpdate&&!o&&it(e,"onUpdate"),c&&e._repeat&&!o&&e.parent&&it(e,"onRepeat"),(n>=e._tDur||n<0)&&e.ratio===l&&(l&&un(e,1),!o&&!Le&&(it(e,l?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=n)},V3=function(e,n,o){var s;if(o>n)for(s=e._first;s&&s._start<=o;){if(s.data==="isPause"&&s._start>n)return s;s=s._next}else for(s=e._last;s&&s._start>=o;){if(s.data==="isPause"&&s._start<n)return s;s=s._prev}},No=function(e,n,o,s){var i=e._repeat,l=Te(n)||0,a=e._tTime/e._tDur;return a&&!s&&(e._time*=l/e._dur),e._dur=l,e._tDur=i?i<0?1e10:Te(l*(i+1)+e._rDelay*i):l,a>0&&!s&&ti(e,e._tTime=e._tDur*a),e.parent&&ei(e),o||Pn(e.parent,e),e},om=function(e){return e instanceof qe?Pn(e):No(e,e._dur)},P3={_start:0,endTime:Er,totalDuration:Er},_t=function t(e,n,o){var s=e.labels,i=e._recent||P3,l=e.duration()>=pt?i.endTime(!1):e._dur,a,c,u;return Ae(n)&&(isNaN(n)||n in s)?(c=n.charAt(0),u=n.substr(-1)==="%",a=n.indexOf("="),c==="<"||c===">"?(a>=0&&(n=n.replace(/=/,"")),(c==="<"?i._start:i.endTime(i._repeat>=0))+(parseFloat(n.substr(1))||0)*(u?(a<0?i:o).totalDuration()/100:1)):a<0?(n in s||(s[n]=l),s[n]):(c=parseFloat(n.charAt(a-1)+n.substr(a+1)),u&&o&&(c=c/100*(ve(o)?o[0]:o).totalDuration()),a>1?t(e,n.substr(0,a-1),o)+c:l+c)):n==null?l:+n},Br=function(e,n,o){var s=Yt(n[1]),i=(s?2:1)+(e<2?0:1),l=n[i],a,c;if(s&&(l.duration=n[1]),l.parent=o,e){for(a=l,c=o;c&&!("immediateRender"in a);)a=c.vars.defaults||{},c=Ze(c.vars.inherit)&&c.parent;l.immediateRender=Ze(a.immediateRender),e<2?l.runBackwards=1:l.startAt=n[i-1]}return new Be(n[0],l,n[i+1])},dn=function(e,n){return e||e===0?n(e):n},Nr=function(e,n,o){return o<e?e:o>n?n:o},Ve=function(e,n){return!Ae(e)||!(n=N3.exec(e))?"":n[1]},R3=function(e,n,o){return dn(o,function(s){return Nr(e,n,s)})},Pa=[].slice,rm=function(e,n){return e&&Dt(e)&&"length"in e&&(!n&&!e.length||e.length-1 in e&&Dt(e[0]))&&!e.nodeType&&e!==vt},U3=function(e,n,o){return o===void 0&&(o=[]),e.forEach(function(s){var i;return Ae(s)&&!n||rm(s,1)?(i=o).push.apply(i,gt(s)):o.push(s)})||o},gt=function(e,n,o){return me&&!n&&me.selector?me.selector(e):Ae(e)&&!o&&($a||!Io())?Pa.call((n||Ia).querySelectorAll(e),0):ve(e)?U3(e,o):rm(e)?Pa.call(e,0):e?[e]:[]},Ra=function(e){return e=gt(e)[0]||Sr("Invalid scope")||{},function(n){var o=e.current||e.nativeElement||e;return gt(n,o.querySelectorAll?o:o===e?Sr("Invalid scope")||Ia.createElement("div"):e)}},sm=function(e){return e.sort(function(){return .5-Math.random()})},im=function(e){if(be(e))return e;var n=Dt(e)?e:{each:e},o=Rn(n.ease),s=n.from||0,i=parseFloat(n.base)||0,l={},a=s>0&&s<1,c=isNaN(s)||a,u=n.axis,d=s,f=s;return Ae(s)?d=f={center:.5,edges:.5,end:1}[s]||0:!a&&c&&(d=s[0],f=s[1]),function(h,m,g){var p=(g||n).length,_=l[p],b,y,w,k,S,C,x,T,B;if(!_){if(B=n.grid==="auto"?0:(n.grid||[1,pt])[1],!B){for(x=-pt;x<(x=g[B++].getBoundingClientRect().left)&&B<p;);B<p&&B--}for(_=l[p]=[],b=c?Math.min(B,p)*d-.5:s%B,y=B===pt?0:c?p*f/B-.5:s/B|0,x=0,T=pt,C=0;C<p;C++)w=C%B-b,k=y-(C/B|0),_[C]=S=u?Math.abs(u==="y"?k:w):vh(w*w+k*k),S>x&&(x=S),S<T&&(T=S);s==="random"&&sm(_),_.max=x-T,_.min=T,_.v=p=(parseFloat(n.amount)||parseFloat(n.each)*(B>p?p-1:u?u==="y"?p/B:B:Math.max(B,p/B))||0)*(s==="edges"?-1:1),_.b=p<0?i-p:i,_.u=Ve(n.amount||n.each)||0,o=o&&p<0?bm(o):o}return p=(_[h]-_.min)/_.max||0,Te(_.b+(o?o(p):p)*_.v)+_.u}},Ua=function(e){var n=Math.pow(10,((e+"").split(".")[1]||"").length);return function(o){var s=Te(Math.round(parseFloat(o)/e)*e*n);return(s-s%1)/n+(Yt(o)?0:Ve(o))}},lm=function(e,n){var o=ve(e),s,i;return!o&&Dt(e)&&(s=o=e.radius||pt,e.values?(e=gt(e.values),(i=!Yt(e[0]))&&(s*=s)):e=Ua(e.increment)),dn(n,o?be(e)?function(l){return i=e(l),Math.abs(i-l)<=s?i:l}:function(l){for(var a=parseFloat(i?l.x:l),c=parseFloat(i?l.y:0),u=pt,d=0,f=e.length,h,m;f--;)i?(h=e[f].x-a,m=e[f].y-c,h=h*h+m*m):h=Math.abs(e[f]-a),h<u&&(u=h,d=f);return d=!s||u<=s?e[d]:l,i||d===l||Yt(l)?d:d+Ve(l)}:Ua(e))},am=function(e,n,o,s){return dn(ve(e)?!n:o===!0?!!(o=0):!s,function(){return ve(e)?e[~~(Math.random()*e.length)]:(o=o||1e-5)&&(s=o<1?Math.pow(10,(o+"").length-2):1)&&Math.floor(Math.round((e-o/2+Math.random()*(n-e+o*.99))/o)*o*s)/s})},z3=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return function(s){return n.reduce(function(i,l){return l(i)},s)}},H3=function(e,n){return function(o){return e(parseFloat(o))+(n||Ve(o))}},q3=function(e,n,o){return um(e,n,0,1,o)},cm=function(e,n,o){return dn(o,function(s){return e[~~n(s)]})},W3=function t(e,n,o){var s=n-e;return ve(e)?cm(e,t(0,e.length),n):dn(o,function(i){return(s+(i-e)%s)%s+e})},j3=function t(e,n,o){var s=n-e,i=s*2;return ve(e)?cm(e,t(0,e.length-1),n):dn(o,function(l){return l=(i+(l-e)%i)%i||0,e+(l>s?i-l:l)})},$r=function(e){for(var n=0,o="",s,i,l,a;~(s=e.indexOf("random(",n));)l=e.indexOf(")",s),a=e.charAt(s+7)==="[",i=e.substr(s+7,l-s-7).match(a?Uh:Ba),o+=e.substr(n,s-n)+am(a?i:+i[0],a?0:+i[1],+i[2]||1e-5),n=l+1;return o+e.substr(n,e.length-n)},um=function(e,n,o,s,i){var l=n-e,a=s-o;return dn(i,function(c){return o+((c-e)/l*a||0)})},G3=function t(e,n,o,s){var i=isNaN(e+n)?0:function(m){return(1-m)*e+m*n};if(!i){var l=Ae(e),a={},c,u,d,f,h;if(o===!0&&(s=1)&&(o=null),l)e={p:e},n={p:n};else if(ve(e)&&!ve(n)){for(d=[],f=e.length,h=f-2,u=1;u<f;u++)d.push(t(e[u-1],e[u]));f--,i=function(g){g*=f;var p=Math.min(h,~~g);return d[p](g-p)},o=n}else s||(e=To(ve(e)?[]:{},e));if(!d){for(c in n)Wa.call(a,e,c,"get",n[c]);i=function(g){return Ya(g,a)||(l?e.p:e)}}}return dn(o,i)},dm=function(e,n,o){var s=e.labels,i=pt,l,a,c;for(l in s)a=s[l]-n,a<0==!!o&&a&&i>(a=Math.abs(a))&&(c=l,i=a);return c},it=function(e,n,o){var s=e.vars,i=s[n],l=me,a=e._ctx,c,u,d;if(i)return c=s[n+"Params"],u=s.callbackScope||e,o&&cn.length&&Ys(),a&&(me=a),d=c?i.apply(u,c):i.call(u),me=l,d},Ir=function(e){return un(e),e.scrollTrigger&&e.scrollTrigger.kill(!!Le),e.progress()<1&&it(e,"onInterrupt"),e},$o,fm=[],hm=function(e){if(e)if(e=!e.name&&e.default||e,Ta()||e.headless){var n=e.name,o=be(e),s=n&&!o&&e.init?function(){this._props=[]}:e,i={init:Er,render:Ya,add:Wa,kill:cE,modifier:aE,rawVars:0},l={targetTest:0,get:0,getSetter:Za,aliases:{},register:0};if(Io(),e!==s){if(rt[n])return;st(s,st(Qs(e,i),l)),To(s.prototype,To(i,Qs(e,l))),rt[s.prop=n]=s,e.targetTest&&(Zs.push(s),La[n]=1),n=(n==="css"?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}qh(n,s),e.register&&e.register(Xe,s,Qe)}else fm.push(e)},ae=255,Ar={aqua:[0,ae,ae],lime:[0,ae,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,ae],navy:[0,0,128],white:[ae,ae,ae],olive:[128,128,0],yellow:[ae,ae,0],orange:[ae,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[ae,0,0],pink:[ae,192,203],cyan:[0,ae,ae],transparent:[ae,ae,ae,0]},za=function(e,n,o){return e+=e<0?1:e>1?-1:0,(e*6<1?n+(o-n)*e*6:e<.5?o:e*3<2?n+(o-n)*(2/3-e)*6:n)*ae+.5|0},mm=function(e,n,o){var s=e?Yt(e)?[e>>16,e>>8&ae,e&ae]:0:Ar.black,i,l,a,c,u,d,f,h,m,g;if(!s){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Ar[e])s=Ar[e];else if(e.charAt(0)==="#"){if(e.length<6&&(i=e.charAt(1),l=e.charAt(2),a=e.charAt(3),e="#"+i+i+l+l+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return s=parseInt(e.substr(1,6),16),[s>>16,s>>8&ae,s&ae,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),s=[e>>16,e>>8&ae,e&ae]}else if(e.substr(0,3)==="hsl"){if(s=g=e.match(Ba),!n)c=+s[0]%360/360,u=+s[1]/100,d=+s[2]/100,l=d<=.5?d*(u+1):d+u-d*u,i=d*2-l,s.length>3&&(s[3]*=1),s[0]=za(c+1/3,i,l),s[1]=za(c,i,l),s[2]=za(c-1/3,i,l);else if(~e.indexOf("="))return s=e.match(Ph),o&&s.length<4&&(s[3]=1),s}else s=e.match(Ba)||Ar.transparent;s=s.map(Number)}return n&&!g&&(i=s[0]/ae,l=s[1]/ae,a=s[2]/ae,f=Math.max(i,l,a),h=Math.min(i,l,a),d=(f+h)/2,f===h?c=u=0:(m=f-h,u=d>.5?m/(2-f-h):m/(f+h),c=f===i?(l-a)/m+(l<a?6:0):f===l?(a-i)/m+2:(i-l)/m+4,c*=60),s[0]=~~(c+.5),s[1]=~~(u*100+.5),s[2]=~~(d*100+.5)),o&&s.length<4&&(s[3]=1),s},pm=function(e){var n=[],o=[],s=-1;return e.split(fn).forEach(function(i){var l=i.match(So)||[];n.push.apply(n,l),o.push(s+=l.length+1)}),n.c=o,n},_m=function(e,n,o){var s="",i=(e+s).match(fn),l=n?"hsla(":"rgba(",a=0,c,u,d,f;if(!i)return e;if(i=i.map(function(h){return(h=mm(h,n,1))&&l+(n?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),o&&(d=pm(e),c=o.c,c.join(s)!==d.c.join(s)))for(u=e.replace(fn,"1").split(So),f=u.length-1;a<f;a++)s+=u[a]+(~c.indexOf(a)?i.shift()||l+"0,0,0,0)":(d.length?d:i.length?i:o).shift());if(!u)for(u=e.split(fn),f=u.length-1;a<f;a++)s+=u[a]+i[a];return s+u[f]},fn=function(){var t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in Ar)t+="|"+e+"\\b";return new RegExp(t+")","gi")}(),K3=/hsl[a]?\(/,gm=function(e){var n=e.join(" "),o;if(fn.lastIndex=0,fn.test(n))return o=K3.test(n),e[1]=_m(e[1],o),e[0]=_m(e[0],o,pm(e[1])),!0},Lr,lt=function(){var t=Date.now,e=500,n=33,o=t(),s=o,i=1e3/240,l=i,a=[],c,u,d,f,h,m,g=function p(_){var b=t()-s,y=_===!0,w,k,S,C;if((b>e||b<0)&&(o+=b-n),s+=b,S=s-o,w=S-l,(w>0||y)&&(C=++f.frame,h=S-f.time*1e3,f.time=S=S/1e3,l+=w+(w>=i?4:i-w),k=1),y||(c=u(p)),k)for(m=0;m<a.length;m++)a[m](S,h,C,_)};return f={time:0,frame:0,tick:function(){g(!0)},deltaRatio:function(_){return h/(1e3/(_||60))},wake:function(){zh&&(!$a&&Ta()&&(vt=$a=window,Ia=vt.document||{},ot.gsap=Xe,(vt.gsapVersions||(vt.gsapVersions=[])).push(Xe.version),Hh(Gs||vt.GreenSockGlobals||!vt.gsap&&vt||{}),fm.forEach(hm)),d=typeof requestAnimationFrame<"u"&&requestAnimationFrame,c&&f.sleep(),u=d||function(_){return setTimeout(_,l-f.time*1e3+1|0)},Lr=1,g(2))},sleep:function(){(d?cancelAnimationFrame:clearTimeout)(c),Lr=0,u=Er},lagSmoothing:function(_,b){e=_||1/0,n=Math.min(b||33,e)},fps:function(_){i=1e3/(_||240),l=f.time*1e3+i},add:function(_,b,y){var w=b?function(k,S,C,x){_(k,S,C,x),f.remove(w)}:_;return f.remove(_),a[y?"unshift":"push"](w),Io(),w},remove:function(_,b){~(b=a.indexOf(_))&&a.splice(b,1)&&m>=b&&m--},_listeners:a},f}(),Io=function(){return!Lr&<.wake()},ne={},Z3=/^[\d.\-M][\d.\-,\s]/,Y3=/["']/g,Q3=function(e){for(var n={},o=e.substr(1,e.length-3).split(":"),s=o[0],i=1,l=o.length,a,c,u;i<l;i++)c=o[i],a=i!==l-1?c.lastIndexOf(","):c.length,u=c.substr(0,a),n[s]=isNaN(u)?u.replace(Y3,"").trim():+u,s=c.substr(a+1).trim();return n},X3=function(e){var n=e.indexOf("(")+1,o=e.indexOf(")"),s=e.indexOf("(",n);return e.substring(n,~s&&s<o?e.indexOf(")",o+1):o)},J3=function(e){var n=(e+"").split("("),o=ne[n[0]];return o&&n.length>1&&o.config?o.config.apply(null,~e.indexOf("{")?[Q3(n[1])]:X3(e).split(",").map(Zh)):ne._CE&&Z3.test(e)?ne._CE("",e):o},bm=function(e){return function(n){return 1-e(1-n)}},ym=function t(e,n){for(var o=e._first,s;o;)o instanceof qe?t(o,n):o.vars.yoyoEase&&(!o._yoyo||!o._repeat)&&o._yoyo!==n&&(o.timeline?t(o.timeline,n):(s=o._ease,o._ease=o._yEase,o._yEase=s,o._yoyo=n)),o=o._next},Rn=function(e,n){return e&&(be(e)?e:ne[e]||J3(e))||n},Un=function(e,n,o,s){o===void 0&&(o=function(c){return 1-n(1-c)}),s===void 0&&(s=function(c){return c<.5?n(c*2)/2:1-n((1-c)*2)/2});var i={easeIn:n,easeOut:o,easeInOut:s},l;return Ye(e,function(a){ne[a]=ot[a]=i,ne[l=a.toLowerCase()]=o;for(var c in i)ne[l+(c==="easeIn"?".in":c==="easeOut"?".out":".inOut")]=ne[a+"."+c]=i[c]}),i},wm=function(e){return function(n){return n<.5?(1-e(1-n*2))/2:.5+e((n-.5)*2)/2}},Ha=function t(e,n,o){var s=n>=1?n:1,i=(o||(e?.3:.45))/(n<1?n:1),l=i/Sa*(Math.asin(1/s)||0),a=function(d){return d===1?1:s*Math.pow(2,-10*d)*B3((d-l)*i)+1},c=e==="out"?a:e==="in"?function(u){return 1-a(1-u)}:wm(a);return i=Sa/i,c.config=function(u,d){return t(e,u,d)},c},qa=function t(e,n){n===void 0&&(n=1.70158);var o=function(l){return l?--l*l*((n+1)*l+n)+1:0},s=e==="out"?o:e==="in"?function(i){return 1-o(1-i)}:wm(o);return s.config=function(i){return t(e,i)},s};Ye("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var n=e<5?e+1:e;Un(t+",Power"+(n-1),e?function(o){return Math.pow(o,n)}:function(o){return o},function(o){return 1-Math.pow(1-o,n)},function(o){return o<.5?Math.pow(o*2,n)/2:1-Math.pow((1-o)*2,n)/2})}),ne.Linear.easeNone=ne.none=ne.Linear.easeIn,Un("Elastic",Ha("in"),Ha("out"),Ha()),function(t,e){var n=1/e,o=2*n,s=2.5*n,i=function(a){return a<n?t*a*a:a<o?t*Math.pow(a-1.5/e,2)+.75:a<s?t*(a-=2.25/e)*a+.9375:t*Math.pow(a-2.625/e,2)+.984375};Un("Bounce",function(l){return 1-i(1-l)},i)}(7.5625,2.75),Un("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)}),Un("Circ",function(t){return-(vh(1-t*t)-1)}),Un("Sine",function(t){return t===1?1:-T3(t*S3)+1}),Un("Back",qa("in"),qa("out"),qa()),ne.SteppedEase=ne.steps=ot.SteppedEase={config:function(e,n){e===void 0&&(e=1);var o=1/e,s=e+(n?0:1),i=n?1:0,l=1-le;return function(a){return((s*Nr(0,l,a)|0)+i)*o}}},Co.ease=ne["quad.out"],Ye("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return Oa+=t+","+t+"Params,"});var km=function(e,n){this.id=E3++,e._gsap=this,this.target=e,this.harness=n,this.get=n?n.get:Gh,this.set=n?n.getSetter:Za},Fr=function(){function t(n){this.vars=n,this._delay=+n.delay||0,(this._repeat=n.repeat===1/0?-2:n.repeat||0)&&(this._rDelay=n.repeatDelay||0,this._yoyo=!!n.yoyo||!!n.yoyoEase),this._ts=1,No(this,+n.duration,1,1),this.data=n.data,me&&(this._ctx=me,me.data.push(this)),Lr||lt.wake()}var e=t.prototype;return e.delay=function(o){return o||o===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+o-this._delay),this._delay=o,this):this._delay},e.duration=function(o){return arguments.length?this.totalDuration(this._repeat>0?o+(o+this._rDelay)*this._repeat:o):this.totalDuration()&&this._dur},e.totalDuration=function(o){return arguments.length?(this._dirty=0,No(this,this._repeat<0?o:(o-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(o,s){if(Io(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(ti(this,o),!i._dp||i.parent||em(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&o<this._tDur||this._ts<0&&o>0||!this._tDur&&!o)&&Vt(this._dp,this,this._start-this._delay)}return(this._tTime!==o||!this._dur&&!s||this._initted&&Math.abs(this._zTime)===le||!o&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=o),Kh(this,o,s)),this},e.time=function(o,s){return arguments.length?this.totalTime(Math.min(this.totalDuration(),o+Jh(this))%(this._dur+this._rDelay)||(o?this._dur:0),s):this._time},e.totalProgress=function(o,s){return arguments.length?this.totalTime(this.totalDuration()*o,s):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(o,s){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-o:o)+Jh(this),s):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(o,s){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(o-1)*i,s):this._repeat?Bo(this._tTime,i)+1:1},e.timeScale=function(o,s){if(!arguments.length)return this._rts===-le?0:this._rts;if(this._rts===o)return this;var i=this.parent&&this._ts?Js(this.parent._time,this):this._tTime;return this._rts=+o||0,this._ts=this._ps||o===-le?0:this._rts,this.totalTime(Nr(-Math.abs(this._delay),this._tDur,i),s!==!1),ei(this),M3(this)},e.paused=function(o){return arguments.length?(this._ps!==o&&(this._ps=o,o?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Io(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==le&&(this._tTime-=le)))),this):this._ps},e.startTime=function(o){if(arguments.length){this._start=o;var s=this.parent||this._dp;return s&&(s._sort||!this.parent)&&Vt(s,this,o-this._delay),this}return this._start},e.endTime=function(o){return this._start+(Ze(o)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(o){var s=this.parent||this._dp;return s?o&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Js(s.rawTime(o),this):this._tTime:this._tTime},e.revert=function(o){o===void 0&&(o=I3);var s=Le;return Le=o,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(o),this.totalTime(-.01,o.suppressEvents)),this.data!=="nested"&&o.kill!==!1&&this.kill(),Le=s,this},e.globalTime=function(o){for(var s=this,i=arguments.length?o:s.rawTime();s;)i=s._start+i/(Math.abs(s._ts)||1),s=s._dp;return!this.parent&&this._sat?this._sat.globalTime(o):i},e.repeat=function(o){return arguments.length?(this._repeat=o===1/0?-2:o,om(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(o){if(arguments.length){var s=this._time;return this._rDelay=o,om(this),s?this.time(s):this}return this._rDelay},e.yoyo=function(o){return arguments.length?(this._yoyo=o,this):this._yoyo},e.seek=function(o,s){return this.totalTime(_t(this,o),Ze(s))},e.restart=function(o,s){return this.play().totalTime(o?-this._delay:0,Ze(s)),this._dur||(this._zTime=-le),this},e.play=function(o,s){return o!=null&&this.seek(o,s),this.reversed(!1).paused(!1)},e.reverse=function(o,s){return o!=null&&this.seek(o||this.totalDuration(),s),this.reversed(!0).paused(!1)},e.pause=function(o,s){return o!=null&&this.seek(o,s),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(o){return arguments.length?(!!o!==this.reversed()&&this.timeScale(-this._rts||(o?-le:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-le,this},e.isActive=function(){var o=this.parent||this._dp,s=this._start,i;return!!(!o||this._ts&&this._initted&&o.isActive()&&(i=o.rawTime(!0))>=s&&i<this.endTime(!0)-le)},e.eventCallback=function(o,s,i){var l=this.vars;return arguments.length>1?(s?(l[o]=s,i&&(l[o+"Params"]=i),o==="onUpdate"&&(this._onUpdate=s)):delete l[o],this):l[o]},e.then=function(o){var s=this;return new Promise(function(i){var l=be(o)?o:Yh,a=function(){var u=s.then;s.then=null,be(l)&&(l=l(s))&&(l.then||l===s)&&(s.then=u),i(l),s.then=u};s._initted&&s.totalProgress()===1&&s._ts>=0||!s._tTime&&s._ts<0?a():s._prom=a})},e.kill=function(){Ir(this)},t}();st(Fr.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-le,_prom:0,_ps:!1,_rts:1});var qe=function(t){Dh(e,t);function e(o,s){var i;return o===void 0&&(o={}),i=t.call(this,o)||this,i.labels={},i.smoothChildTiming=!!o.smoothChildTiming,i.autoRemoveChildren=!!o.autoRemoveChildren,i._sort=Ze(o.sortChildren),_e&&Vt(o.parent||_e,Zt(i),s),o.reversed&&i.reverse(),o.paused&&i.paused(!0),o.scrollTrigger&&tm(Zt(i),o.scrollTrigger),i}var n=e.prototype;return n.to=function(s,i,l){return Br(0,arguments,this),this},n.from=function(s,i,l){return Br(1,arguments,this),this},n.fromTo=function(s,i,l,a){return Br(2,arguments,this),this},n.set=function(s,i,l){return i.duration=0,i.parent=this,Tr(i).repeatDelay||(i.repeat=0),i.immediateRender=!!i.immediateRender,new Be(s,i,_t(this,l),1),this},n.call=function(s,i,l){return Vt(this,Be.delayedCall(0,s,i),l)},n.staggerTo=function(s,i,l,a,c,u,d){return l.duration=i,l.stagger=l.stagger||a,l.onComplete=u,l.onCompleteParams=d,l.parent=this,new Be(s,l,_t(this,c)),this},n.staggerFrom=function(s,i,l,a,c,u,d){return l.runBackwards=1,Tr(l).immediateRender=Ze(l.immediateRender),this.staggerTo(s,i,l,a,c,u,d)},n.staggerFromTo=function(s,i,l,a,c,u,d,f){return a.startAt=l,Tr(a).immediateRender=Ze(a.immediateRender),this.staggerTo(s,i,a,c,u,d,f)},n.render=function(s,i,l){var a=this._time,c=this._dirty?this.totalDuration():this._tDur,u=this._dur,d=s<=0?0:Te(s),f=this._zTime<0!=s<0&&(this._initted||!u),h,m,g,p,_,b,y,w,k,S,C,x;if(this!==_e&&d>c&&s>=0&&(d=c),d!==this._tTime||l||f){if(a!==this._time&&u&&(d+=this._time-a,s+=this._time-a),h=d,k=this._start,w=this._ts,b=!w,f&&(u||(a=this._zTime),(s||!i)&&(this._zTime=s)),this._repeat){if(C=this._yoyo,_=u+this._rDelay,this._repeat<-1&&s<0)return this.totalTime(_*100+s,i,l);if(h=Te(d%_),d===c?(p=this._repeat,h=u):(S=Te(d/_),p=~~S,p&&p===S&&(h=u,p--),h>u&&(h=u)),S=Bo(this._tTime,_),!a&&this._tTime&&S!==p&&this._tTime-S*_-this._dur<=0&&(S=p),C&&p&1&&(h=u-h,x=1),p!==S&&!this._lock){var T=C&&S&1,B=T===(C&&p&1);if(p<S&&(T=!T),a=T?0:d%u?u:d,this._lock=1,this.render(a||(x?0:Te(p*_)),i,!u)._lock=0,this._tTime=d,!i&&this.parent&&it(this,"onRepeat"),this.vars.repeatRefresh&&!x&&(this.invalidate()._lock=1),a&&a!==this._time||b!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(u=this._dur,c=this._tDur,B&&(this._lock=2,a=T?u:-1e-4,this.render(a,!0),this.vars.repeatRefresh&&!x&&this.invalidate()),this._lock=0,!this._ts&&!b)return this;ym(this,x)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(y=V3(this,Te(a),Te(h)),y&&(d-=h-(h=y._start))),this._tTime=d,this._time=h,this._act=!w,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=s,a=0),!a&&h&&!i&&!p&&(it(this,"onStart"),this._tTime!==d))return this;if(h>=a&&s>=0)for(m=this._first;m;){if(g=m._next,(m._act||h>=m._start)&&m._ts&&y!==m){if(m.parent!==this)return this.render(s,i,l);if(m.render(m._ts>0?(h-m._start)*m._ts:(m._dirty?m.totalDuration():m._tDur)+(h-m._start)*m._ts,i,l),h!==this._time||!this._ts&&!b){y=0,g&&(d+=this._zTime=-le);break}}m=g}else{m=this._last;for(var N=s<0?s:h;m;){if(g=m._prev,(m._act||N<=m._end)&&m._ts&&y!==m){if(m.parent!==this)return this.render(s,i,l);if(m.render(m._ts>0?(N-m._start)*m._ts:(m._dirty?m.totalDuration():m._tDur)+(N-m._start)*m._ts,i,l||Le&&(m._initted||m._startAt)),h!==this._time||!this._ts&&!b){y=0,g&&(d+=this._zTime=N?-le:le);break}}m=g}}if(y&&!i&&(this.pause(),y.render(h>=a?0:-le)._zTime=h>=a?1:-1,this._ts))return this._start=k,ei(this),this.render(s,i,l);this._onUpdate&&!i&&it(this,"onUpdate",!0),(d===c&&this._tTime>=this.totalDuration()||!d&&a)&&(k===this._start||Math.abs(w)!==Math.abs(this._ts))&&(this._lock||((s||!u)&&(d===c&&this._ts>0||!d&&this._ts<0)&&un(this,1),!i&&!(s<0&&!a)&&(d||a||!c)&&(it(this,d===c&&s>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(d<c&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(s,i){var l=this;if(Yt(i)||(i=_t(this,i,s)),!(s instanceof Fr)){if(ve(s))return s.forEach(function(a){return l.add(a,i)}),this;if(Ae(s))return this.addLabel(s,i);if(be(s))s=Be.delayedCall(0,s);else return this}return this!==s?Vt(this,s,i):this},n.getChildren=function(s,i,l,a){s===void 0&&(s=!0),i===void 0&&(i=!0),l===void 0&&(l=!0),a===void 0&&(a=-pt);for(var c=[],u=this._first;u;)u._start>=a&&(u instanceof Be?i&&c.push(u):(l&&c.push(u),s&&c.push.apply(c,u.getChildren(!0,i,l)))),u=u._next;return c},n.getById=function(s){for(var i=this.getChildren(1,1,1),l=i.length;l--;)if(i[l].vars.id===s)return i[l]},n.remove=function(s){return Ae(s)?this.removeLabel(s):be(s)?this.killTweensOf(s):(s.parent===this&&Xs(this,s),s===this._recent&&(this._recent=this._last),Pn(this))},n.totalTime=function(s,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Te(lt.time-(this._ts>0?s/this._ts:(this.totalDuration()-s)/-this._ts))),t.prototype.totalTime.call(this,s,i),this._forcing=0,this):this._tTime},n.addLabel=function(s,i){return this.labels[s]=_t(this,i),this},n.removeLabel=function(s){return delete this.labels[s],this},n.addPause=function(s,i,l){var a=Be.delayedCall(0,i||Er,l);return a.data="isPause",this._hasPause=1,Vt(this,a,_t(this,s))},n.removePause=function(s){var i=this._first;for(s=_t(this,s);i;)i._start===s&&i.data==="isPause"&&un(i),i=i._next},n.killTweensOf=function(s,i,l){for(var a=this.getTweensOf(s,l),c=a.length;c--;)hn!==a[c]&&a[c].kill(s,i);return this},n.getTweensOf=function(s,i){for(var l=[],a=gt(s),c=this._first,u=Yt(i),d;c;)c instanceof Be?A3(c._targets,a)&&(u?(!hn||c._initted&&c._ts)&&c.globalTime(0)<=i&&c.globalTime(c.totalDuration())>i:!i||c.isActive())&&l.push(c):(d=c.getTweensOf(a,i)).length&&l.push.apply(l,d),c=c._next;return l},n.tweenTo=function(s,i){i=i||{};var l=this,a=_t(l,s),c=i,u=c.startAt,d=c.onStart,f=c.onStartParams,h=c.immediateRender,m,g=Be.to(l,st({ease:i.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:i.duration||Math.abs((a-(u&&"time"in u?u.time:l._time))/l.timeScale())||le,onStart:function(){if(l.pause(),!m){var _=i.duration||Math.abs((a-(u&&"time"in u?u.time:l._time))/l.timeScale());g._dur!==_&&No(g,_,0,1).render(g._time,!0,!0),m=1}d&&d.apply(g,f||[])}},i));return h?g.render(0):g},n.tweenFromTo=function(s,i,l){return this.tweenTo(i,st({startAt:{time:_t(this,s)}},l))},n.recent=function(){return this._recent},n.nextLabel=function(s){return s===void 0&&(s=this._time),dm(this,_t(this,s))},n.previousLabel=function(s){return s===void 0&&(s=this._time),dm(this,_t(this,s),1)},n.currentLabel=function(s){return arguments.length?this.seek(s,!0):this.previousLabel(this._time+le)},n.shiftChildren=function(s,i,l){l===void 0&&(l=0);for(var a=this._first,c=this.labels,u;a;)a._start>=l&&(a._start+=s,a._end+=s),a=a._next;if(i)for(u in c)c[u]>=l&&(c[u]+=s);return Pn(this)},n.invalidate=function(s){var i=this._first;for(this._lock=0;i;)i.invalidate(s),i=i._next;return t.prototype.invalidate.call(this,s)},n.clear=function(s){s===void 0&&(s=!0);for(var i=this._first,l;i;)l=i._next,this.remove(i),i=l;return this._dp&&(this._time=this._tTime=this._pTime=0),s&&(this.labels={}),Pn(this)},n.totalDuration=function(s){var i=0,l=this,a=l._last,c=pt,u,d,f;if(arguments.length)return l.timeScale((l._repeat<0?l.duration():l.totalDuration())/(l.reversed()?-s:s));if(l._dirty){for(f=l.parent;a;)u=a._prev,a._dirty&&a.totalDuration(),d=a._start,d>c&&l._sort&&a._ts&&!l._lock?(l._lock=1,Vt(l,a,d-a._delay,1)._lock=0):c=d,d<0&&a._ts&&(i-=d,(!f&&!l._dp||f&&f.smoothChildTiming)&&(l._start+=d/l._ts,l._time-=d,l._tTime-=d),l.shiftChildren(-d,!1,-1/0),c=0),a._end>i&&a._ts&&(i=a._end),a=u;No(l,l===_e&&l._time>i?l._time:i,1,1),l._dirty=0}return l._tDur},e.updateRoot=function(s){if(_e._ts&&(Kh(_e,Js(s,_e)),Wh=lt.frame),lt.frame>=jh){jh+=nt.autoSleep||120;var i=_e._first;if((!i||!i._ts)&&nt.autoSleep&<._listeners.length<2){for(;i&&!i._ts;)i=i._next;i||lt.sleep()}}},e}(Fr);st(qe.prototype,{_lock:0,_hasPause:0,_forcing:0});var eE=function(e,n,o,s,i,l,a){var c=new Qe(this._pt,e,n,0,1,Bm,null,i),u=0,d=0,f,h,m,g,p,_,b,y;for(c.b=o,c.e=s,o+="",s+="",(b=~s.indexOf("random("))&&(s=$r(s)),l&&(y=[o,s],l(y,e,n),o=y[0],s=y[1]),h=o.match(Na)||[];f=Na.exec(s);)g=f[0],p=s.substring(u,f.index),m?m=(m+1)%5:p.substr(-5)==="rgba("&&(m=1),g!==h[d++]&&(_=parseFloat(h[d-1])||0,c._pt={_next:c._pt,p:p||d===1?p:",",s:_,c:g.charAt(1)==="="?Eo(_,g)-_:parseFloat(g)-_,m:m&&m<4?Math.round:0},u=Na.lastIndex);return c.c=u<s.length?s.substring(u,s.length):"",c.fp=a,(Rh.test(s)||b)&&(c.e=0),this._pt=c,c},Wa=function(e,n,o,s,i,l,a,c,u,d){be(s)&&(s=s(i||0,e,l));var f=e[n],h=o!=="get"?o:be(f)?u?e[n.indexOf("set")||!be(e["get"+n.substr(3)])?n:"get"+n.substr(3)](u):e[n]():f,m=be(f)?u?sE:Em:Ka,g;if(Ae(s)&&(~s.indexOf("random(")&&(s=$r(s)),s.charAt(1)==="="&&(g=Eo(h,s)+(Ve(h)||0),(g||g===0)&&(s=g))),!d||h!==s||ja)return!isNaN(h*s)&&s!==""?(g=new Qe(this._pt,e,n,+h||0,s-(h||0),typeof f=="boolean"?lE:Tm,0,m),u&&(g.fp=u),a&&g.modifier(a,this,e),this._pt=g):(!f&&!(n in e)&&Aa(n,s),eE.call(this,e,n,h,s,m,c||nt.stringFilter,u))},tE=function(e,n,o,s,i){if(be(e)&&(e=Mr(e,i,n,o,s)),!Dt(e)||e.style&&e.nodeType||ve(e)||Vh(e))return Ae(e)?Mr(e,i,n,o,s):e;var l={},a;for(a in e)l[a]=Mr(e[a],i,n,o,s);return l},xm=function(e,n,o,s,i,l){var a,c,u,d;if(rt[e]&&(a=new rt[e]).init(i,a.rawVars?n[e]:tE(n[e],s,i,l,o),o,s,l)!==!1&&(o._pt=c=new Qe(o._pt,i,e,0,1,a.render,a,0,a.priority),o!==$o))for(u=o._ptLookup[o._targets.indexOf(i)],d=a._props.length;d--;)u[a._props[d]]=c;return a},hn,ja,Ga=function t(e,n,o){var s=e.vars,i=s.ease,l=s.startAt,a=s.immediateRender,c=s.lazy,u=s.onUpdate,d=s.runBackwards,f=s.yoyoEase,h=s.keyframes,m=s.autoRevert,g=e._dur,p=e._startAt,_=e._targets,b=e.parent,y=b&&b.data==="nested"?b.vars.targets:_,w=e._overwrite==="auto"&&!Ca,k=e.timeline,S,C,x,T,B,N,$,O,F,P,A,L,D;if(k&&(!h||!i)&&(i="none"),e._ease=Rn(i,Co.ease),e._yEase=f?bm(Rn(f===!0?i:f,Co.ease)):0,f&&e._yoyo&&!e._repeat&&(f=e._yEase,e._yEase=e._ease,e._ease=f),e._from=!k&&!!s.runBackwards,!k||h&&!s.stagger){if(O=_[0]?Vn(_[0]).harness:0,L=O&&s[O.prop],S=Qs(s,La),p&&(p._zTime<0&&p.progress(1),n<0&&d&&a&&!m?p.render(-1,!0):p.revert(d&&g?Ks:$3),p._lazy=0),l){if(un(e._startAt=Be.set(_,st({data:"isStart",overwrite:!1,parent:b,immediateRender:!0,lazy:!p&&Ze(c),startAt:null,delay:0,onUpdate:u&&function(){return it(e,"onUpdate")},stagger:0},l))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(Le||!a&&!m)&&e._startAt.revert(Ks),a&&g&&n<=0&&o<=0){n&&(e._zTime=n);return}}else if(d&&g&&!p){if(n&&(a=!1),x=st({overwrite:!1,data:"isFromStart",lazy:a&&!p&&Ze(c),immediateRender:a,stagger:0,parent:b},S),L&&(x[O.prop]=L),un(e._startAt=Be.set(_,x)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(Le?e._startAt.revert(Ks):e._startAt.render(-1,!0)),e._zTime=n,!a)t(e._startAt,le,le);else if(!n)return}for(e._pt=e._ptCache=0,c=g&&Ze(c)||c&&!g,C=0;C<_.length;C++){if(B=_[C],$=B._gsap||Da(_)[C]._gsap,e._ptLookup[C]=P={},Fa[$.id]&&cn.length&&Ys(),A=y===_?C:y.indexOf(B),O&&(F=new O).init(B,L||S,e,A,y)!==!1&&(e._pt=T=new Qe(e._pt,B,F.name,0,1,F.render,F,0,F.priority),F._props.forEach(function(I){P[I]=T}),F.priority&&(N=1)),!O||L)for(x in S)rt[x]&&(F=xm(x,S,e,A,B,y))?F.priority&&(N=1):P[x]=T=Wa.call(e,B,x,"get",S[x],A,y,0,s.stringFilter);e._op&&e._op[C]&&e.kill(B,e._op[C]),w&&e._pt&&(hn=e,_e.killTweensOf(B,P,e.globalTime(n)),D=!e.parent,hn=0),e._pt&&c&&(Fa[$.id]=1)}N&&Nm(e),e._onInit&&e._onInit(e)}e._onUpdate=u,e._initted=(!e._op||e._pt)&&!D,h&&n<=0&&k.render(pt,!0,!0)},nE=function(e,n,o,s,i,l,a,c){var u=(e._pt&&e._ptCache||(e._ptCache={}))[n],d,f,h,m;if(!u)for(u=e._ptCache[n]=[],h=e._ptLookup,m=e._targets.length;m--;){if(d=h[m][n],d&&d.d&&d.d._pt)for(d=d.d._pt;d&&d.p!==n&&d.fp!==n;)d=d._next;if(!d)return ja=1,e.vars[n]="+=0",Ga(e,a),ja=0,c?Sr(n+" not eligible for reset"):1;u.push(d)}for(m=u.length;m--;)f=u[m],d=f._pt||f,d.s=(s||s===0)&&!i?s:d.s+(s||0)+l*d.c,d.c=o-d.s,f.e&&(f.e=Ee(o)+Ve(f.e)),f.b&&(f.b=d.s+Ve(f.b))},oE=function(e,n){var o=e[0]?Vn(e[0]).harness:0,s=o&&o.aliases,i,l,a,c;if(!s)return n;i=To({},n);for(l in s)if(l in i)for(c=s[l].split(","),a=c.length;a--;)i[c[a]]=i[l];return i},rE=function(e,n,o,s){var i=n.ease||s||"power1.inOut",l,a;if(ve(n))a=o[e]||(o[e]=[]),n.forEach(function(c,u){return a.push({t:u/(n.length-1)*100,v:c,e:i})});else for(l in n)a=o[l]||(o[l]=[]),l==="ease"||a.push({t:parseFloat(e),v:n[l],e:i})},Mr=function(e,n,o,s,i){return be(e)?e.call(n,o,s,i):Ae(e)&&~e.indexOf("random(")?$r(e):e},Cm=Oa+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Sm={};Ye(Cm+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return Sm[t]=1});var Be=function(t){Dh(e,t);function e(o,s,i,l){var a;typeof s=="number"&&(i.duration=s,s=i,i=null),a=t.call(this,l?s:Tr(s))||this;var c=a.vars,u=c.duration,d=c.delay,f=c.immediateRender,h=c.stagger,m=c.overwrite,g=c.keyframes,p=c.defaults,_=c.scrollTrigger,b=c.yoyoEase,y=s.parent||_e,w=(ve(o)||Vh(o)?Yt(o[0]):"length"in s)?[o]:gt(o),k,S,C,x,T,B,N,$;if(a._targets=w.length?Da(w):Sr("GSAP target "+o+" not found. https://gsap.com",!nt.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=m,g||h||js(u)||js(d)){if(s=a.vars,k=a.timeline=new qe({data:"nested",defaults:p||{},targets:y&&y.data==="nested"?y.vars.targets:w}),k.kill(),k.parent=k._dp=Zt(a),k._start=0,h||js(u)||js(d)){if(x=w.length,N=h&&im(h),Dt(h))for(T in h)~Cm.indexOf(T)&&($||($={}),$[T]=h[T]);for(S=0;S<x;S++)C=Qs(s,Sm),C.stagger=0,b&&(C.yoyoEase=b),$&&To(C,$),B=w[S],C.duration=+Mr(u,Zt(a),S,B,w),C.delay=(+Mr(d,Zt(a),S,B,w)||0)-a._delay,!h&&x===1&&C.delay&&(a._delay=d=C.delay,a._start+=d,C.delay=0),k.to(B,C,N?N(S,B,w):0),k._ease=ne.none;k.duration()?u=d=0:a.timeline=0}else if(g){Tr(st(k.vars.defaults,{ease:"none"})),k._ease=Rn(g.ease||s.ease||"none");var O=0,F,P,A;if(ve(g))g.forEach(function(L){return k.to(w,L,">")}),k.duration();else{C={};for(T in g)T==="ease"||T==="easeEach"||rE(T,g[T],C,g.easeEach);for(T in C)for(F=C[T].sort(function(L,D){return L.t-D.t}),O=0,S=0;S<F.length;S++)P=F[S],A={ease:P.e,duration:(P.t-(S?F[S-1].t:0))/100*u},A[T]=P.v,k.to(w,A,O),O+=A.duration;k.duration()<u&&k.to({},{duration:u-k.duration()})}}u||a.duration(u=k.duration())}else a.timeline=0;return m===!0&&!Ca&&(hn=Zt(a),_e.killTweensOf(w),hn=0),Vt(y,Zt(a),i),s.reversed&&a.reverse(),s.paused&&a.paused(!0),(f||!u&&!g&&a._start===Te(y._time)&&Ze(f)&&O3(Zt(a))&&y.data!=="nested")&&(a._tTime=-le,a.render(Math.max(0,-d)||0)),_&&tm(Zt(a),_),a}var n=e.prototype;return n.render=function(s,i,l){var a=this._time,c=this._tDur,u=this._dur,d=s<0,f=s>c-le&&!d?c:s<le?0:s,h,m,g,p,_,b,y,w,k;if(!u)v3(this,s,i,l);else if(f!==this._tTime||!s||l||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==d||this._lazy){if(h=f,w=this.timeline,this._repeat){if(p=u+this._rDelay,this._repeat<-1&&d)return this.totalTime(p*100+s,i,l);if(h=Te(f%p),f===c?(g=this._repeat,h=u):(_=Te(f/p),g=~~_,g&&g===_?(h=u,g--):h>u&&(h=u)),b=this._yoyo&&g&1,b&&(k=this._yEase,h=u-h),_=Bo(this._tTime,p),h===a&&!l&&this._initted&&g===_)return this._tTime=f,this;g!==_&&(w&&this._yEase&&ym(w,b),this.vars.repeatRefresh&&!b&&!this._lock&&h!==p&&this._initted&&(this._lock=l=1,this.render(Te(p*g),!0).invalidate()._lock=0))}if(!this._initted){if(nm(this,d?s:h,l,i,f))return this._tTime=0,this;if(a!==this._time&&!(l&&this.vars.repeatRefresh&&g!==_))return this;if(u!==this._dur)return this.render(s,i,l)}if(this._tTime=f,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=y=(k||this._ease)(h/u),this._from&&(this.ratio=y=1-y),h&&!a&&!i&&!g&&(it(this,"onStart"),this._tTime!==f))return this;for(m=this._pt;m;)m.r(y,m.d),m=m._next;w&&w.render(s<0?s:w._dur*w._ease(h/this._dur),i,l)||this._startAt&&(this._zTime=s),this._onUpdate&&!i&&(d&&va(this,s,i,l),it(this,"onUpdate")),this._repeat&&g!==_&&this.vars.onRepeat&&!i&&this.parent&&it(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(d&&!this._onUpdate&&va(this,s,!0,!0),(s||!u)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&un(this,1),!i&&!(d&&!a)&&(f||a||b)&&(it(this,f===c?"onComplete":"onReverseComplete",!0),this._prom&&!(f<c&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(s){return(!s||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(s),t.prototype.invalidate.call(this,s)},n.resetTo=function(s,i,l,a,c){Lr||lt.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),d;return this._initted||Ga(this,u),d=this._ease(u/this._dur),nE(this,s,i,l,a,d,u,c)?this.resetTo(s,i,l,a,1):(ti(this,0),this.parent||Xh(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(s,i){if(i===void 0&&(i="all"),!s&&(!i||i==="all"))return this._lazy=this._pt=0,this.parent?Ir(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Le),this;if(this.timeline){var l=this.timeline.totalDuration();return this.timeline.killTweensOf(s,i,hn&&hn.vars.overwrite!==!0)._first||Ir(this),this.parent&&l!==this.timeline.totalDuration()&&No(this,this._dur*this.timeline._tDur/l,0,1),this}var a=this._targets,c=s?gt(s):a,u=this._ptLookup,d=this._pt,f,h,m,g,p,_,b;if((!i||i==="all")&&F3(a,c))return i==="all"&&(this._pt=0),Ir(this);for(f=this._op=this._op||[],i!=="all"&&(Ae(i)&&(p={},Ye(i,function(y){return p[y]=1}),i=p),i=oE(a,i)),b=a.length;b--;)if(~c.indexOf(a[b])){h=u[b],i==="all"?(f[b]=i,g=h,m={}):(m=f[b]=f[b]||{},g=i);for(p in g)_=h&&h[p],_&&((!("kill"in _.d)||_.d.kill(p)===!0)&&Xs(this,_,"_pt"),delete h[p]),m!=="all"&&(m[p]=1)}return this._initted&&!this._pt&&d&&Ir(this),this},e.to=function(s,i){return new e(s,i,arguments[2])},e.from=function(s,i){return Br(1,arguments)},e.delayedCall=function(s,i,l,a){return new e(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:s,onComplete:i,onReverseComplete:i,onCompleteParams:l,onReverseCompleteParams:l,callbackScope:a})},e.fromTo=function(s,i,l){return Br(2,arguments)},e.set=function(s,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new e(s,i)},e.killTweensOf=function(s,i,l){return _e.killTweensOf(s,i,l)},e}(Fr);st(Be.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Ye("staggerTo,staggerFrom,staggerFromTo",function(t){Be[t]=function(){var e=new qe,n=Pa.call(arguments,0);return n.splice(t==="staggerFromTo"?5:4,0,0),e[t].apply(e,n)}});var Ka=function(e,n,o){return e[n]=o},Em=function(e,n,o){return e[n](o)},sE=function(e,n,o,s){return e[n](s.fp,o)},iE=function(e,n,o){return e.setAttribute(n,o)},Za=function(e,n){return be(e[n])?Em:Ea(e[n])&&e.setAttribute?iE:Ka},Tm=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e6)/1e6,n)},lE=function(e,n){return n.set(n.t,n.p,!!(n.s+n.c*e),n)},Bm=function(e,n){var o=n._pt,s="";if(!e&&n.b)s=n.b;else if(e===1&&n.e)s=n.e;else{for(;o;)s=o.p+(o.m?o.m(o.s+o.c*e):Math.round((o.s+o.c*e)*1e4)/1e4)+s,o=o._next;s+=n.c}n.set(n.t,n.p,s,n)},Ya=function(e,n){for(var o=n._pt;o;)o.r(e,o.d),o=o._next},aE=function(e,n,o,s){for(var i=this._pt,l;i;)l=i._next,i.p===s&&i.modifier(e,n,o),i=l},cE=function(e){for(var n=this._pt,o,s;n;)s=n._next,n.p===e&&!n.op||n.op===e?Xs(this,n,"_pt"):n.dep||(o=1),n=s;return!o},uE=function(e,n,o,s){s.mSet(e,n,s.m.call(s.tween,o,s.mt),s)},Nm=function(e){for(var n=e._pt,o,s,i,l;n;){for(o=n._next,s=i;s&&s.pr>n.pr;)s=s._next;(n._prev=s?s._prev:l)?n._prev._next=n:i=n,(n._next=s)?s._prev=n:l=n,n=o}e._pt=i},Qe=function(){function t(n,o,s,i,l,a,c,u,d){this.t=o,this.s=i,this.c=l,this.p=s,this.r=a||Tm,this.d=c||this,this.set=u||Ka,this.pr=d||0,this._next=n,n&&(n._prev=this)}var e=t.prototype;return e.modifier=function(o,s,i){this.mSet=this.mSet||this.set,this.set=uE,this.m=o,this.mt=i,this.tween=s},t}();Ye(Oa+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return La[t]=1}),ot.TweenMax=ot.TweenLite=Be,ot.TimelineLite=ot.TimelineMax=qe,_e=new qe({sortChildren:!1,defaults:Co,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),nt.stringFilter=gm;var zn=[],ni={},dE=[],$m=0,fE=0,Qa=function(e){return(ni[e]||dE).map(function(n){return n()})},Xa=function(){var e=Date.now(),n=[];e-$m>2&&(Qa("matchMediaInit"),zn.forEach(function(o){var s=o.queries,i=o.conditions,l,a,c,u;for(a in s)l=vt.matchMedia(s[a]).matches,l&&(c=1),l!==i[a]&&(i[a]=l,u=1);u&&(o.revert(),c&&n.push(o))}),Qa("matchMediaRevert"),n.forEach(function(o){return o.onMatch(o,function(s){return o.add(null,s)})}),$m=e,Qa("matchMedia"))},Im=function(){function t(n,o){this.selector=o&&Ra(o),this.data=[],this._r=[],this.isReverted=!1,this.id=fE++,n&&this.add(n)}var e=t.prototype;return e.add=function(o,s,i){be(o)&&(i=s,s=o,o=be);var l=this,a=function(){var u=me,d=l.selector,f;return u&&u!==l&&u.data.push(l),i&&(l.selector=Ra(i)),me=l,f=s.apply(l,arguments),be(f)&&l._r.push(f),me=u,l.selector=d,l.isReverted=!1,f};return l.last=a,o===be?a(l,function(c){return l.add(null,c)}):o?l[o]=a:a},e.ignore=function(o){var s=me;me=null,o(this),me=s},e.getTweens=function(){var o=[];return this.data.forEach(function(s){return s instanceof t?o.push.apply(o,s.getTweens()):s instanceof Be&&!(s.parent&&s.parent.data==="nested")&&o.push(s)}),o},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(o,s){var i=this;if(o?function(){for(var a=i.getTweens(),c=i.data.length,u;c--;)u=i.data[c],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(d){return a.splice(a.indexOf(d),1)}));for(a.map(function(d){return{g:d._dur||d._delay||d._sat&&!d._sat.vars.immediateRender?d.globalTime(0):-1/0,t:d}}).sort(function(d,f){return f.g-d.g||-1/0}).forEach(function(d){return d.t.revert(o)}),c=i.data.length;c--;)u=i.data[c],u instanceof qe?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof Be)&&u.revert&&u.revert(o);i._r.forEach(function(d){return d(o,i)}),i.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),s)for(var l=zn.length;l--;)zn[l].id===this.id&&zn.splice(l,1)},e.revert=function(o){this.kill(o||{})},t}(),hE=function(){function t(n){this.contexts=[],this.scope=n,me&&me.data.push(this)}var e=t.prototype;return e.add=function(o,s,i){Dt(o)||(o={matches:o});var l=new Im(0,i||this.scope),a=l.conditions={},c,u,d;me&&!l.selector&&(l.selector=me.selector),this.contexts.push(l),s=l.add("onMatch",s),l.queries=o;for(u in o)u==="all"?d=1:(c=vt.matchMedia(o[u]),c&&(zn.indexOf(l)<0&&zn.push(l),(a[u]=c.matches)&&(d=1),c.addListener?c.addListener(Xa):c.addEventListener("change",Xa)));return d&&s(l,function(f){return l.add(null,f)}),this},e.revert=function(o){this.kill(o||{})},e.kill=function(o){this.contexts.forEach(function(s){return s.kill(o,!0)})},t}(),oi={registerPlugin:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];n.forEach(function(s){return hm(s)})},timeline:function(e){return new qe(e)},getTweensOf:function(e,n){return _e.getTweensOf(e,n)},getProperty:function(e,n,o,s){Ae(e)&&(e=gt(e)[0]);var i=Vn(e||{}).get,l=o?Yh:Zh;return o==="native"&&(o=""),e&&(n?l((rt[n]&&rt[n].get||i)(e,n,o,s)):function(a,c,u){return l((rt[a]&&rt[a].get||i)(e,a,c,u))})},quickSetter:function(e,n,o){if(e=gt(e),e.length>1){var s=e.map(function(d){return Xe.quickSetter(d,n,o)}),i=s.length;return function(d){for(var f=i;f--;)s[f](d)}}e=e[0]||{};var l=rt[n],a=Vn(e),c=a.harness&&(a.harness.aliases||{})[n]||n,u=l?function(d){var f=new l;$o._pt=0,f.init(e,o?d+o:d,$o,0,[e]),f.render(1,f),$o._pt&&Ya(1,$o)}:a.set(e,c);return l?u:function(d){return u(e,c,o?d+o:d,a,1)}},quickTo:function(e,n,o){var s,i=Xe.to(e,st((s={},s[n]="+=0.1",s.paused=!0,s.stagger=0,s),o||{})),l=function(c,u,d){return i.resetTo(n,c,u,d)};return l.tween=i,l},isTweening:function(e){return _e.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Rn(e.ease,Co.ease)),Qh(Co,e||{})},config:function(e){return Qh(nt,e||{})},registerEffect:function(e){var n=e.name,o=e.effect,s=e.plugins,i=e.defaults,l=e.extendTimeline;(s||"").split(",").forEach(function(a){return a&&!rt[a]&&!ot[a]&&Sr(n+" effect requires "+a+" plugin.")}),Ma[n]=function(a,c,u){return o(gt(a),st(c||{},i),u)},l&&(qe.prototype[n]=function(a,c,u){return this.add(Ma[n](a,Dt(c)?c:(u=c)&&{},this),u)})},registerEase:function(e,n){ne[e]=Rn(n)},parseEase:function(e,n){return arguments.length?Rn(e,n):ne},getById:function(e){return _e.getById(e)},exportRoot:function(e,n){e===void 0&&(e={});var o=new qe(e),s,i;for(o.smoothChildTiming=Ze(e.smoothChildTiming),_e.remove(o),o._dp=0,o._time=o._tTime=_e._time,s=_e._first;s;)i=s._next,(n||!(!s._dur&&s instanceof Be&&s.vars.onComplete===s._targets[0]))&&Vt(o,s,s._start-s._delay),s=i;return Vt(_e,o,0),o},context:function(e,n){return e?new Im(e,n):me},matchMedia:function(e){return new hE(e)},matchMediaRefresh:function(){return zn.forEach(function(e){var n=e.conditions,o,s;for(s in n)n[s]&&(n[s]=!1,o=1);o&&e.revert()})||Xa()},addEventListener:function(e,n){var o=ni[e]||(ni[e]=[]);~o.indexOf(n)||o.push(n)},removeEventListener:function(e,n){var o=ni[e],s=o&&o.indexOf(n);s>=0&&o.splice(s,1)},utils:{wrap:W3,wrapYoyo:j3,distribute:im,random:am,snap:lm,normalize:q3,getUnit:Ve,clamp:R3,splitColor:mm,toArray:gt,selector:Ra,mapRange:um,pipe:z3,unitize:H3,interpolate:G3,shuffle:sm},install:Hh,effects:Ma,ticker:lt,updateRoot:qe.updateRoot,plugins:rt,globalTimeline:_e,core:{PropTween:Qe,globals:qh,Tween:Be,Timeline:qe,Animation:Fr,getCache:Vn,_removeLinkedListItem:Xs,reverting:function(){return Le},context:function(e){return e&&me&&(me.data.push(e),e._ctx=me),me},suppressOverwrites:function(e){return Ca=e}}};Ye("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return oi[t]=Be[t]}),lt.add(qe.updateRoot),$o=oi.to({},{duration:0});var mE=function(e,n){for(var o=e._pt;o&&o.p!==n&&o.op!==n&&o.fp!==n;)o=o._next;return o},pE=function(e,n){var o=e._targets,s,i,l;for(s in n)for(i=o.length;i--;)l=e._ptLookup[i][s],l&&(l=l.d)&&(l._pt&&(l=mE(l,s)),l&&l.modifier&&l.modifier(n[s],e,o[i],s))},Ja=function(e,n){return{name:e,rawVars:1,init:function(s,i,l){l._onInit=function(a){var c,u;if(Ae(i)&&(c={},Ye(i,function(d){return c[d]=1}),i=c),n){c={};for(u in i)c[u]=n(i[u]);i=c}pE(a,i)}}}},Xe=oi.registerPlugin({name:"attr",init:function(e,n,o,s,i){var l,a,c;this.tween=o;for(l in n)c=e.getAttribute(l)||"",a=this.add(e,"setAttribute",(c||0)+"",n[l],s,i,0,0,l),a.op=l,a.b=c,this._props.push(l)},render:function(e,n){for(var o=n._pt;o;)Le?o.set(o.t,o.p,o.b,o):o.r(e,o.d),o=o._next}},{name:"endArray",init:function(e,n){for(var o=n.length;o--;)this.add(e,o,e[o]||0,n[o],0,0,0,0,0,1)}},Ja("roundProps",Ua),Ja("modifiers"),Ja("snap",lm))||oi;Be.version=qe.version=Xe.version="3.12.7",zh=1,Ta()&&Io(),ne.Power0,ne.Power1,ne.Power2,ne.Power3,ne.Power4,ne.Linear,ne.Quad,ne.Cubic,ne.Quart,ne.Quint,ne.Strong,ne.Elastic,ne.Back,ne.SteppedEase,ne.Bounce,ne.Sine,ne.Expo,ne.Circ;/*!
|
|
155
227
|
* CSSPlugin 3.12.7
|
|
156
228
|
* https://gsap.com
|
|
157
229
|
*
|
|
@@ -159,9 +231,9 @@ ${e}
|
|
|
159
231
|
* Subject to the terms at https://gsap.com/standard-license or for
|
|
160
232
|
* Club GSAP members, the agreement issued with that membership.
|
|
161
233
|
* @author: Jack Doyle, jack@greensock.com
|
|
162
|
-
*/var Uf,Kt,_r,oa,Nn,zf,sa,l3=function(){return typeof window<"u"},Lt={},In=180/Math.PI,hr=Math.PI/180,mr=Math.atan2,qf=1e8,ia=/([A-Z])/g,a3=/(left|right|width|margin|padding|x)/i,c3=/[\s,\(]\S/,Nt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},la=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},u3=function(e,n){return n.set(n.t,n.p,e===1?n.e:Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},d3=function(e,n){return n.set(n.t,n.p,e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},f3=function(e,n){var r=n.s+n.c*e;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},Hf=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},jf=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},_3=function(e,n,r){return e.style[n]=r},h3=function(e,n,r){return e.style.setProperty(n,r)},m3=function(e,n,r){return e._gsap[n]=r},p3=function(e,n,r){return e._gsap.scaleX=e._gsap.scaleY=r},g3=function(e,n,r,s,i){var l=e._gsap;l.scaleX=l.scaleY=r,l.renderTransform(i,l)},b3=function(e,n,r,s,i){var l=e._gsap;l[n]=r,l.renderTransform(i,l)},oe="transform",Re=oe+"Origin",y3=function t(e,n){var r=this,s=this.target,i=s.style,l=s._gsap;if(e in Lt&&i){if(this.tfm=this.tfm||{},e!=="transform")e=Nt[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return r.tfm[a]=Pt(s,a)}):this.tfm[e]=l.x?l[e]:Pt(s,e),e===Re&&(this.tfm.zOrigin=l.zOrigin);else return Nt.transform.split(",").forEach(function(a){return t.call(r,a,n)});if(this.props.indexOf(oe)>=0)return;l.svg&&(this.svgo=s.getAttribute("data-svg-origin"),this.props.push(Re,n,"")),e=oe}(i||n)&&this.props.push(e,n,i[e])},Gf=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},w3=function(){var e=this.props,n=this.target,r=n.style,s=n._gsap,i,l;for(i=0;i<e.length;i+=3)e[i+1]?e[i+1]===2?n[e[i]](e[i+2]):n[e[i]]=e[i+2]:e[i+2]?r[e[i]]=e[i+2]:r.removeProperty(e[i].substr(0,2)==="--"?e[i]:e[i].replace(ia,"-$1").toLowerCase());if(this.tfm){for(l in this.tfm)s[l]=this.tfm[l];s.svg&&(s.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),i=sa(),(!i||!i.isStart)&&!r[oe]&&(Gf(r),s.zOrigin&&r[Re]&&(r[Re]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},Wf=function(e,n){var r={target:e,props:[],revert:w3,save:y3};return e._gsap||ve.core.getCache(e),n&&e.style&&e.nodeType&&n.split(",").forEach(function(s){return r.save(s)}),r},Zf,aa=function(e,n){var r=Kt.createElementNS?Kt.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Kt.createElement(e);return r&&r.style?r:Kt.createElement(e)},It=function t(e,n,r){var s=getComputedStyle(e);return s[n]||s.getPropertyValue(n.replace(ia,"-$1").toLowerCase())||s.getPropertyValue(n)||!r&&t(e,pr(n)||n,1)||""},Yf="O,Moz,ms,Ms,Webkit".split(","),pr=function(e,n,r){var s=n||Nn,i=s.style,l=5;if(e in i&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);l--&&!(Yf[l]+e in i););return l<0?null:(l===3?"ms":l>=0?Yf[l]:"")+e},ca=function(){l3()&&window.document&&(Uf=window,Kt=Uf.document,_r=Kt.documentElement,Nn=aa("div")||{style:{}},aa("div"),oe=pr(oe),Re=oe+"Origin",Nn.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Zf=!!pr("perspective"),sa=ve.core.reverting,oa=1)},Qf=function(e){var n=e.ownerSVGElement,r=aa("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=e.cloneNode(!0),i;s.style.display="block",r.appendChild(s),_r.appendChild(r);try{i=s.getBBox()}catch{}return r.removeChild(s),_r.removeChild(r),i},Kf=function(e,n){for(var r=n.length;r--;)if(e.hasAttribute(n[r]))return e.getAttribute(n[r])},Xf=function(e){var n,r;try{n=e.getBBox()}catch{n=Qf(e),r=1}return n&&(n.width||n.height)||r||(n=Qf(e)),n&&!n.width&&!n.x&&!n.y?{x:+Kf(e,["x","cx","x1"])||0,y:+Kf(e,["y","cy","y1"])||0,width:0,height:0}:n},Jf=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Xf(e))},$n=function(e,n){if(n){var r=e.style,s;n in Lt&&n!==Re&&(n=oe),r.removeProperty?(s=n.substr(0,2),(s==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(s==="--"?n:n.replace(ia,"-$1").toLowerCase())):r.removeAttribute(n)}},Xt=function(e,n,r,s,i,l){var a=new Pe(e._pt,n,r,0,1,l?jf:Hf);return e._pt=a,a.b=s,a.e=i,e._props.push(r),a},e0={deg:1,rad:1,turn:1},k3={grid:1,flex:1},Jt=function t(e,n,r,s){var i=parseFloat(r)||0,l=(r+"").trim().substr((i+"").length)||"px",a=Nn.style,c=a3.test(n),u=e.tagName.toLowerCase()==="svg",d=(u?"client":"offset")+(c?"Width":"Height"),f=100,h=s==="px",_=s==="%",g,m,p,y;if(s===l||!i||e0[s]||e0[l])return i;if(l!=="px"&&!h&&(i=t(e,n,r,"px")),y=e.getCTM&&Jf(e),(_||l==="%")&&(Lt[n]||~n.indexOf("adius")))return g=y?e.getBBox()[c?"width":"height"]:e[d],_e(_?i/g*f:i/100*g);if(a[c?"width":"height"]=f+(h?l:s),m=s!=="rem"&&~n.indexOf("adius")||s==="em"&&e.appendChild&&!u?e:e.parentNode,y&&(m=(e.ownerSVGElement||{}).parentNode),(!m||m===Kt||!m.appendChild)&&(m=Kt.body),p=m._gsap,p&&_&&p.width&&c&&p.time===Ye.time&&!p.uncache)return _e(i/p.width*f);if(_&&(n==="height"||n==="width")){var b=e.style[n];e.style[n]=f+s,g=e[d],b?e.style[n]=b:$n(e,n)}else(_||l==="%")&&!k3[It(m,"display")]&&(a.position=It(e,"position")),m===e&&(a.position="static"),m.appendChild(Nn),g=Nn[d],m.removeChild(Nn),a.position="absolute";return c&&_&&(p=Cn(m),p.time=Ye.time,p.width=m[d]),_e(h?g*i/f:g&&i?f/g*i:0)},Pt=function(e,n,r,s){var i;return oa||ca(),n in Nt&&n!=="transform"&&(n=Nt[n],~n.indexOf(",")&&(n=n.split(",")[0])),Lt[n]&&n!=="transform"?(i=po(e,s),i=n!=="transformOrigin"?i[n]:i.svg?i.origin:Bs(It(e,Re))+" "+i.zOrigin+"px"):(i=e.style[n],(!i||i==="auto"||s||~(i+"").indexOf("calc("))&&(i=Ts[n]&&Ts[n](e,n,r)||It(e,n)||nf(e,n)||(n==="opacity"?1:0))),r&&!~(i+"").trim().indexOf(" ")?Jt(e,n,i,r)+r:i},x3=function(e,n,r,s){if(!r||r==="none"){var i=pr(n,e,1),l=i&&It(e,i,1);l&&l!==r?(n=i,r=l):n==="borderColor"&&(r=It(e,"borderTopColor"))}var a=new Pe(this._pt,e.style,n,0,1,Lf),c=0,u=0,d,f,h,_,g,m,p,y,b,w,C,E;if(a.b=r,a.e=s,r+="",s+="",s==="auto"&&(m=e.style[n],e.style[n]=s,s=It(e,n)||s,m?e.style[n]=m:$n(e,n)),d=[r,s],Bf(d),r=d[0],s=d[1],h=r.match(ir)||[],E=s.match(ir)||[],E.length){for(;f=ir.exec(s);)p=f[0],b=s.substring(c,f.index),g?g=(g+1)%5:(b.substr(-5)==="rgba("||b.substr(-5)==="hsla(")&&(g=1),p!==(m=h[u++]||"")&&(_=parseFloat(m)||0,C=m.substr((_+"").length),p.charAt(1)==="="&&(p=lr(_,p)+C),y=parseFloat(p),w=p.substr((y+"").length),c=ir.lastIndex-w.length,w||(w=w||He.units[n]||C,c===s.length&&(s+=w,a.e+=w)),C!==w&&(_=Jt(e,n,m,w)||0),a._pt={_next:a._pt,p:b||u===1?b:",",s:_,c:y-_,m:g&&g<4||n==="zIndex"?Math.round:0});a.c=c<s.length?s.substring(c,s.length):""}else a.r=n==="display"&&s==="none"?jf:Hf;return Yd.test(s)&&(a.e=0),this._pt=a,a},t0={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},C3=function(e){var n=e.split(" "),r=n[0],s=n[1]||"50%";return(r==="top"||r==="bottom"||s==="left"||s==="right")&&(e=r,r=s,s=e),n[0]=t0[r]||r,n[1]=t0[s]||s,n.join(" ")},S3=function(e,n){if(n.tween&&n.tween._time===n.tween._dur){var r=n.t,s=r.style,i=n.u,l=r._gsap,a,c,u;if(i==="all"||i===!0)s.cssText="",c=1;else for(i=i.split(","),u=i.length;--u>-1;)a=i[u],Lt[a]&&(c=1,a=a==="transformOrigin"?Re:oe),$n(r,a);c&&($n(r,oe),l&&(l.svg&&r.removeAttribute("transform"),s.scale=s.rotate=s.translate="none",po(r,1),l.uncache=1,Gf(s)))}},Ts={clearProps:function(e,n,r,s,i){if(i.data!=="isFromStart"){var l=e._pt=new Pe(e._pt,n,r,0,0,S3);return l.u=s,l.pr=-10,l.tween=i,e._props.push(r),1}}},mo=[1,0,0,1,0,0],n0={},r0=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},o0=function(e){var n=It(e,oe);return r0(n)?mo:n.substr(7).match(Zd).map(_e)},ua=function(e,n){var r=e._gsap||Cn(e),s=e.style,i=o0(e),l,a,c,u;return r.svg&&e.getAttribute("transform")?(c=e.transform.baseVal.consolidate().matrix,i=[c.a,c.b,c.c,c.d,c.e,c.f],i.join(",")==="1,0,0,1,0,0"?mo:i):(i===mo&&!e.offsetParent&&e!==_r&&!r.svg&&(c=s.display,s.display="block",l=e.parentNode,(!l||!e.offsetParent&&!e.getBoundingClientRect().width)&&(u=1,a=e.nextElementSibling,_r.appendChild(e)),i=o0(e),c?s.display=c:$n(e,"display"),u&&(a?l.insertBefore(e,a):l?l.appendChild(e):_r.removeChild(e))),n&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},da=function(e,n,r,s,i,l){var a=e._gsap,c=i||ua(e,!0),u=a.xOrigin||0,d=a.yOrigin||0,f=a.xOffset||0,h=a.yOffset||0,_=c[0],g=c[1],m=c[2],p=c[3],y=c[4],b=c[5],w=n.split(" "),C=parseFloat(w[0])||0,E=parseFloat(w[1])||0,k,S,T,B;r?c!==mo&&(S=_*p-g*m)&&(T=C*(p/S)+E*(-m/S)+(m*b-p*y)/S,B=C*(-g/S)+E*(_/S)-(_*b-g*y)/S,C=T,E=B):(k=Xf(e),C=k.x+(~w[0].indexOf("%")?C/100*k.width:C),E=k.y+(~(w[1]||w[0]).indexOf("%")?E/100*k.height:E)),s||s!==!1&&a.smooth?(y=C-u,b=E-d,a.xOffset=f+(y*_+b*m)-y,a.yOffset=h+(y*g+b*p)-b):a.xOffset=a.yOffset=0,a.xOrigin=C,a.yOrigin=E,a.smooth=!!s,a.origin=n,a.originIsAbsolute=!!r,e.style[Re]="0px 0px",l&&(Xt(l,a,"xOrigin",u,C),Xt(l,a,"yOrigin",d,E),Xt(l,a,"xOffset",f,a.xOffset),Xt(l,a,"yOffset",h,a.yOffset)),e.setAttribute("data-svg-origin",C+" "+E)},po=function(e,n){var r=e._gsap||new Ff(e);if("x"in r&&!n&&!r.uncache)return r;var s=e.style,i=r.scaleX<0,l="px",a="deg",c=getComputedStyle(e),u=It(e,Re)||"0",d,f,h,_,g,m,p,y,b,w,C,E,k,S,T,B,N,$,A,F,I,q,V,Z,Y,ye,X,ut,Ke,dn,ze,dt;return d=f=h=m=p=y=b=w=C=0,_=g=1,r.svg=!!(e.getCTM&&Jf(e)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(s[oe]=(c.translate!=="none"?"translate3d("+(c.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(c.rotate!=="none"?"rotate("+c.rotate+") ":"")+(c.scale!=="none"?"scale("+c.scale.split(" ").join(",")+") ":"")+(c[oe]!=="none"?c[oe]:"")),s.scale=s.rotate=s.translate="none"),S=ua(e,r.svg),r.svg&&(r.uncache?(Y=e.getBBox(),u=r.xOrigin-Y.x+"px "+(r.yOrigin-Y.y)+"px",Z=""):Z=!n&&e.getAttribute("data-svg-origin"),da(e,Z||u,!!Z||r.originIsAbsolute,r.smooth!==!1,S)),E=r.xOrigin||0,k=r.yOrigin||0,S!==mo&&($=S[0],A=S[1],F=S[2],I=S[3],d=q=S[4],f=V=S[5],S.length===6?(_=Math.sqrt($*$+A*A),g=Math.sqrt(I*I+F*F),m=$||A?mr(A,$)*In:0,b=F||I?mr(F,I)*In+m:0,b&&(g*=Math.abs(Math.cos(b*hr))),r.svg&&(d-=E-(E*$+k*F),f-=k-(E*A+k*I))):(dt=S[6],dn=S[7],X=S[8],ut=S[9],Ke=S[10],ze=S[11],d=S[12],f=S[13],h=S[14],T=mr(dt,Ke),p=T*In,T&&(B=Math.cos(-T),N=Math.sin(-T),Z=q*B+X*N,Y=V*B+ut*N,ye=dt*B+Ke*N,X=q*-N+X*B,ut=V*-N+ut*B,Ke=dt*-N+Ke*B,ze=dn*-N+ze*B,q=Z,V=Y,dt=ye),T=mr(-F,Ke),y=T*In,T&&(B=Math.cos(-T),N=Math.sin(-T),Z=$*B-X*N,Y=A*B-ut*N,ye=F*B-Ke*N,ze=I*N+ze*B,$=Z,A=Y,F=ye),T=mr(A,$),m=T*In,T&&(B=Math.cos(T),N=Math.sin(T),Z=$*B+A*N,Y=q*B+V*N,A=A*B-$*N,V=V*B-q*N,$=Z,q=Y),p&&Math.abs(p)+Math.abs(m)>359.9&&(p=m=0,y=180-y),_=_e(Math.sqrt($*$+A*A+F*F)),g=_e(Math.sqrt(V*V+dt*dt)),T=mr(q,V),b=Math.abs(T)>2e-4?T*In:0,C=ze?1/(ze<0?-ze:ze):0),r.svg&&(Z=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!r0(It(e,oe)),Z&&e.setAttribute("transform",Z))),Math.abs(b)>90&&Math.abs(b)<270&&(i?(_*=-1,b+=m<=0?180:-180,m+=m<=0?180:-180):(g*=-1,b+=b<=0?180:-180)),n=n||r.uncache,r.x=d-((r.xPercent=d&&(!n&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-d)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+l,r.y=f-((r.yPercent=f&&(!n&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-f)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+l,r.z=h+l,r.scaleX=_e(_),r.scaleY=_e(g),r.rotation=_e(m)+a,r.rotationX=_e(p)+a,r.rotationY=_e(y)+a,r.skewX=b+a,r.skewY=w+a,r.transformPerspective=C+l,(r.zOrigin=parseFloat(u.split(" ")[2])||!n&&r.zOrigin||0)&&(s[Re]=Bs(u)),r.xOffset=r.yOffset=0,r.force3D=He.force3D,r.renderTransform=r.svg?T3:Zf?s0:E3,r.uncache=0,r},Bs=function(e){return(e=e.split(" "))[0]+" "+e[1]},fa=function(e,n,r){var s=Be(n);return _e(parseFloat(n)+parseFloat(Jt(e,"x",r+"px",s)))+s},E3=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,s0(e,n)},Fn="0deg",go="0px",An=") ",s0=function(e,n){var r=n||this,s=r.xPercent,i=r.yPercent,l=r.x,a=r.y,c=r.z,u=r.rotation,d=r.rotationY,f=r.rotationX,h=r.skewX,_=r.skewY,g=r.scaleX,m=r.scaleY,p=r.transformPerspective,y=r.force3D,b=r.target,w=r.zOrigin,C="",E=y==="auto"&&e&&e!==1||y===!0;if(w&&(f!==Fn||d!==Fn)){var k=parseFloat(d)*hr,S=Math.sin(k),T=Math.cos(k),B;k=parseFloat(f)*hr,B=Math.cos(k),l=fa(b,l,S*B*-w),a=fa(b,a,-Math.sin(k)*-w),c=fa(b,c,T*B*-w+w)}p!==go&&(C+="perspective("+p+An),(s||i)&&(C+="translate("+s+"%, "+i+"%) "),(E||l!==go||a!==go||c!==go)&&(C+=c!==go||E?"translate3d("+l+", "+a+", "+c+") ":"translate("+l+", "+a+An),u!==Fn&&(C+="rotate("+u+An),d!==Fn&&(C+="rotateY("+d+An),f!==Fn&&(C+="rotateX("+f+An),(h!==Fn||_!==Fn)&&(C+="skew("+h+", "+_+An),(g!==1||m!==1)&&(C+="scale("+g+", "+m+An),b.style[oe]=C||"translate(0, 0)"},T3=function(e,n){var r=n||this,s=r.xPercent,i=r.yPercent,l=r.x,a=r.y,c=r.rotation,u=r.skewX,d=r.skewY,f=r.scaleX,h=r.scaleY,_=r.target,g=r.xOrigin,m=r.yOrigin,p=r.xOffset,y=r.yOffset,b=r.forceCSS,w=parseFloat(l),C=parseFloat(a),E,k,S,T,B;c=parseFloat(c),u=parseFloat(u),d=parseFloat(d),d&&(d=parseFloat(d),u+=d,c+=d),c||u?(c*=hr,u*=hr,E=Math.cos(c)*f,k=Math.sin(c)*f,S=Math.sin(c-u)*-h,T=Math.cos(c-u)*h,u&&(d*=hr,B=Math.tan(u-d),B=Math.sqrt(1+B*B),S*=B,T*=B,d&&(B=Math.tan(d),B=Math.sqrt(1+B*B),E*=B,k*=B)),E=_e(E),k=_e(k),S=_e(S),T=_e(T)):(E=f,T=h,k=S=0),(w&&!~(l+"").indexOf("px")||C&&!~(a+"").indexOf("px"))&&(w=Jt(_,"x",l,"px"),C=Jt(_,"y",a,"px")),(g||m||p||y)&&(w=_e(w+g-(g*E+m*S)+p),C=_e(C+m-(g*k+m*T)+y)),(s||i)&&(B=_.getBBox(),w=_e(w+s/100*B.width),C=_e(C+i/100*B.height)),B="matrix("+E+","+k+","+S+","+T+","+w+","+C+")",_.setAttribute("transform",B),b&&(_.style[oe]=B)},B3=function(e,n,r,s,i){var l=360,a=be(i),c=parseFloat(i)*(a&&~i.indexOf("rad")?In:1),u=c-s,d=s+u+"deg",f,h;return a&&(f=i.split("_")[1],f==="short"&&(u%=l,u!==u%(l/2)&&(u+=u<0?l:-360)),f==="cw"&&u<0?u=(u+l*qf)%l-~~(u/l)*l:f==="ccw"&&u>0&&(u=(u-l*qf)%l-~~(u/l)*l)),e._pt=h=new Pe(e._pt,n,r,s,u,u3),h.e=d,h.u="deg",e._props.push(r),h},i0=function(e,n){for(var r in n)e[r]=n[r];return e},N3=function(e,n,r){var s=i0({},r._gsap),i="perspective,force3D,transformOrigin,svgOrigin",l=r.style,a,c,u,d,f,h,_,g;s.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),l[oe]=n,a=po(r,1),$n(r,oe),r.setAttribute("transform",u)):(u=getComputedStyle(r)[oe],l[oe]=n,a=po(r,1),l[oe]=u);for(c in Lt)u=s[c],d=a[c],u!==d&&i.indexOf(c)<0&&(_=Be(u),g=Be(d),f=_!==g?Jt(r,c,u,g):parseFloat(u),h=parseFloat(d),e._pt=new Pe(e._pt,a,c,f,h-f,la),e._pt.u=g||0,e._props.push(c));i0(a,s)};Le("padding,margin,Width,Radius",function(t,e){var n="Top",r="Right",s="Bottom",i="Left",l=(e<3?[n,r,s,i]:[n+i,n+r,s+r,s+i]).map(function(a){return e<2?t+a:"border"+a+t});Ts[e>1?"border"+t:t]=function(a,c,u,d,f){var h,_;if(arguments.length<4)return h=l.map(function(g){return Pt(a,g,u)}),_=h.join(" "),_.split(h[0]).length===5?h[0]:_;h=(d+"").split(" "),_={},l.forEach(function(g,m){return _[g]=h[m]=h[m]||h[(m-1)/2|0]}),a.init(c,_,f)}});var l0={name:"css",register:ca,targetTest:function(e){return e.style&&e.nodeType},init:function(e,n,r,s,i){var l=this._props,a=e.style,c=r.vars.startAt,u,d,f,h,_,g,m,p,y,b,w,C,E,k,S,T;oa||ca(),this.styles=this.styles||Wf(e),T=this.styles.props,this.tween=r;for(m in n)if(m!=="autoRound"&&(d=n[m],!(Ge[m]&&Af(m,n,r,s,e,i)))){if(_=typeof d,g=Ts[m],_==="function"&&(d=d.call(r,s,e,i),_=typeof d),_==="string"&&~d.indexOf("random(")&&(d=ao(d)),g)g(this,e,m,d,r)&&(S=1);else if(m.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(m)+"").trim(),d+="",Yt.lastIndex=0,Yt.test(u)||(p=Be(u),y=Be(d)),y?p!==y&&(u=Jt(e,m,u,y)+y):p&&(d+=p),this.add(a,"setProperty",u,d,s,i,0,0,m),l.push(m),T.push(m,0,a[m]);else if(_!=="undefined"){if(c&&m in c?(u=typeof c[m]=="function"?c[m].call(r,s,e,i):c[m],be(u)&&~u.indexOf("random(")&&(u=ao(u)),Be(u+"")||u==="auto"||(u+=He.units[m]||Be(Pt(e,m))||""),(u+"").charAt(1)==="="&&(u=Pt(e,m))):u=Pt(e,m),h=parseFloat(u),b=_==="string"&&d.charAt(1)==="="&&d.substr(0,2),b&&(d=d.substr(2)),f=parseFloat(d),m in Nt&&(m==="autoAlpha"&&(h===1&&Pt(e,"visibility")==="hidden"&&f&&(h=0),T.push("visibility",0,a.visibility),Xt(this,a,"visibility",h?"inherit":"hidden",f?"inherit":"hidden",!f)),m!=="scale"&&m!=="transform"&&(m=Nt[m],~m.indexOf(",")&&(m=m.split(",")[0]))),w=m in Lt,w){if(this.styles.save(m),C||(E=e._gsap,E.renderTransform&&!n.parseTransform||po(e,n.parseTransform),k=n.smoothOrigin!==!1&&E.smooth,C=this._pt=new Pe(this._pt,a,oe,0,1,E.renderTransform,E,0,-1),C.dep=1),m==="scale")this._pt=new Pe(this._pt,E,"scaleY",E.scaleY,(b?lr(E.scaleY,b+f):f)-E.scaleY||0,la),this._pt.u=0,l.push("scaleY",m),m+="X";else if(m==="transformOrigin"){T.push(Re,0,a[Re]),d=C3(d),E.svg?da(e,d,0,k,0,this):(y=parseFloat(d.split(" ")[2])||0,y!==E.zOrigin&&Xt(this,E,"zOrigin",E.zOrigin,y),Xt(this,a,m,Bs(u),Bs(d)));continue}else if(m==="svgOrigin"){da(e,d,1,k,0,this);continue}else if(m in n0){B3(this,E,m,h,b?lr(h,b+d):d);continue}else if(m==="smoothOrigin"){Xt(this,E,"smooth",E.smooth,d);continue}else if(m==="force3D"){E[m]=d;continue}else if(m==="transform"){N3(this,d,e);continue}}else m in a||(m=pr(m)||m);if(w||(f||f===0)&&(h||h===0)&&!c3.test(d)&&m in a)p=(u+"").substr((h+"").length),f||(f=0),y=Be(d)||(m in He.units?He.units[m]:p),p!==y&&(h=Jt(e,m,u,y)),this._pt=new Pe(this._pt,w?E:a,m,h,(b?lr(h,b+f):f)-h,!w&&(y==="px"||m==="zIndex")&&n.autoRound!==!1?f3:la),this._pt.u=y||0,p!==y&&y!=="%"&&(this._pt.b=u,this._pt.r=d3);else if(m in a)x3.call(this,e,m,u,b?b+d:d);else if(m in e)this.add(e,m,u||e[m],b?b+d:d,s,i);else if(m!=="parseTransform"){Ml(m,d);continue}w||(m in a?T.push(m,0,a[m]):typeof e[m]=="function"?T.push(m,2,e[m]()):T.push(m,1,u||e[m])),l.push(m)}}S&&Pf(this)},render:function(e,n){if(n.tween._time||!sa())for(var r=n._pt;r;)r.r(e,r.d),r=r._next;else n.styles.revert()},get:Pt,aliases:Nt,getSetter:function(e,n,r){var s=Nt[n];return s&&s.indexOf(",")<0&&(n=s),n in Lt&&n!==Re&&(e._gsap.x||Pt(e,"x"))?r&&zf===r?n==="scale"?p3:m3:(zf=r||{})&&(n==="scale"?g3:b3):e.style&&!Il(e.style[n])?_3:~n.indexOf("-")?h3:Jl(e,n)},core:{_removeProperty:$n,_getMatrix:ua}};ve.utils.checkPrefix=pr,ve.core.getStyleSaver=Wf,function(t,e,n,r){var s=Le(t+","+e+","+n,function(i){Lt[i]=1});Le(e,function(i){He.units[i]="deg",n0[i]=1}),Nt[s[13]]=t+","+e,Le(r,function(i){var l=i.split(":");Nt[l[1]]=s[l[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),Le("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){He.units[t]="px"}),ve.registerPlugin(l0);var _a=ve.registerPlugin(l0)||ve;_a.core.Tween;const I3={__name:"StaggeredListTransition",props:{height:{type:[String,Number],default:"auto"},duration:{type:Number,default:.5},delayOffset:{type:Number,default:.5},disabled:Boolean},setup(t){const e=t,n=o.ref(null),r=o.computed(()=>e.delayOffset/n.value.$el.children.length);function s(a){e.disabled||(a.style.opacity=0,a.style.height=0)}function i(a,c){if(e.disabled){c();return}_a.to(a,{opacity:1,duration:e.duration,height:e.height,delay:a.dataset.index*r.value,onComplete:c})}function l(a,c){if(e.disabled){c();return}_a.to(a,{opacity:0,height:0,duration:e.duration,delay:a.dataset.index*r.value,onComplete:c})}return(a,c)=>(o.openBlock(),o.createBlock(o.TransitionGroup,{ref_key:"list",ref:n,tag:"div",appear:"",css:!1,onBeforeEnter:s,onEnter:i,onLeave:l},{default:o.withCtx(()=>[o.renderSlot(a.$slots,"default")]),_:3},512))}},$3=o.defineComponent({__name:"LabelPillWidget",props:{label:{default:""},size:{default:"md"},color:{default:"none"}},setup(t){const e=t,n={sky:"bg-sky-950 text-sky-400",green:"bg-green-950 text-green-400",red:"bg-red-950 text-red-400",amber:"bg-amber-950 text-amber-400",yellow:"bg-yellow-950 text-yellow-400",blue:"bg-blue-950 text-blue-400",purple:"bg-purple-950 text-purple-400",slate:"bg-slate-950 text-slate-400","slate-mid":"bg-slate-800 text-slate-400",gray:"bg-slate-700 text-gray-300",emerald:"bg-emerald-950 text-emerald-400",orange:"bg-orange-950 text-orange-400",lime:"bg-lime-950 text-lime-400",teal:"bg-teal-950 text-teal-400",cyan:"bg-cyan-950 text-cyan-400",rose:"bg-rose-950 text-rose-400",indigo:"bg-indigo-950 text-indigo-400",violet:"bg-violet-950 text-violet-400",fuchsia:"bg-fuchsia-950 text-fuchsia-400",none:""},r={xxs:"text-xs px-1 py-.5",xs:"text-xs px-2 py-1",sm:"text-sm px-3 py-1.5",md:"text-base px-3 py-2",lg:"text-lg px-4 py-2"},s=o.computed(()=>n[e.color]),i=o.computed(()=>r[e.size]);return(l,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass({[s.value]:!0,[i.value]:!0,"rounded-full":!0})},[o.renderSlot(l.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(l.label),1)])],2))}}),F3={class:"flex items-stretch"},A3={class:"rounded-r-lg bg-slate-900 text-slate-400 px-2 py-1"},D3=o.defineComponent({__name:"LabelValuePillWidget",props:{label:{},value:{},labelClass:{default:""}},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",F3,[o.createElementVNode("div",{class:o.normalizeClass(["rounded-l-lg bg-slate-400 text-slate-900 text-xs px-2 flex items-center justify-center",e.labelClass])},[o.renderSlot(e.$slots,"label",{},()=>[o.createTextVNode(o.toDisplayString(e.label),1)])],2),o.createElementVNode("div",A3,[o.renderSlot(e.$slots,"value",{},()=>[o.createTextVNode(o.toDisplayString(e.value),1)])])]))}}),ha=o.defineComponent({__name:"ActionMenu",props:{actions:{},target:{default:()=>[]},tooltip:{default:"First select records to perform a batch action"},loading:{type:Boolean},loadingComponent:{default:void 0}},emits:["success"],setup(t,{emit:e}){const n=e,r=t,s=o.computed(()=>Array.isArray(r.target)?r.target.length>0:!!r.target),i=o.computed(()=>r.actions.filter(c=>Array.isArray(r.target)?c.batchEnabled?c.batchEnabled(r.target):!0:c.enabled?c.enabled(r.target):!0)),l=o.ref(!1);async function a(c){if(!c.trigger)throw new Error("Action must have a trigger function! Make sure you are using useActions() or implement your own trigger function.");l.value=!0,await c.trigger(r.target),l.value=!1,n("success",c)}return(c,u)=>(o.openBlock(),o.createBlock(o.unref(qd),{class:"px-2 flex dx-action-button",items:i.value,disabled:!s.value,tooltip:s.value?"":c.tooltip,loading:l.value||!!c.loading,"loading-component":c.loadingComponent,onActionItem:a},null,8,["items","disabled","tooltip","loading","loading-component"]))}}),O3={key:0,class:"flex-grow overflow-hidden"},a0=o.defineComponent({__name:"ActionTableColumn",props:{rowProps:{type:Object,required:!0},settings:{type:Object,default:null}},setup(t){const e=t,n=o.computed(()=>e.rowProps.row),r=o.computed(()=>e.rowProps.col),s=o.computed(()=>e.rowProps.value),i=o.computed(()=>{var c;return(c=n.value.isSaving)==null?void 0:c.value}),l=o.computed(()=>{var u;const c=((u=e.settings)==null?void 0:u.width)||r.value.width;return{width:c?`${c}px`:void 0,minWidth:r.value.minWidth?`${r.value.minWidth}px`:void 0}}),a=o.computed(()=>({[r.value.class||""]:!0,"is-saving":i.value,"justify-end":r.value.align==="right","justify-center":r.value.align==="center","justify-start":r.value.align==="left"}));return(c,u)=>(o.openBlock(),o.createBlock(o.unref(ce.QTd),{key:t.rowProps.key,props:t.rowProps,style:o.normalizeStyle(l.value),class:o.normalizeClass(["dx-column",r.value.columnClass])},{default:o.withCtx(()=>[o.createElementVNode("div",{style:o.normalizeStyle(l.value)},[o.createElementVNode("div",{class:o.normalizeClass(["flex items-center flex-nowrap",a.value])},[r.value.hideContent?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",O3,[r.value.onClick?(o.openBlock(),o.createElementBlock("a",{key:0,class:o.normalizeClass([r.value.innerClass,"dx-column-link"]),onClick:u[0]||(u[0]=d=>r.value.onClick(n.value))},[r.value.vnode?(o.openBlock(),o.createBlock(o.unref(xn),{key:0,vnode:r.value.vnode(n.value)},null,8,["vnode"])):o.renderSlot(c.$slots,"default",{key:1},()=>[o.createTextVNode(o.toDisplayString(s.value),1)])],2)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass([r.value.innerClass,"dx-column-text"])},[r.value.vnode?(o.openBlock(),o.createBlock(o.unref(xn),{key:0,vnode:r.value.vnode(n.value)},null,8,["vnode"])):o.renderSlot(c.$slots,"default",{key:1},()=>[o.createTextVNode(o.toDisplayString(s.value),1)])],2)),r.value.titleColumns?(o.openBlock(),o.createBlock(o.unref(_0),{key:2,row:n.value,columns:r.value.titleColumns()},null,8,["row","columns"])):o.createCommentVNode("",!0)])),r.value.actionMenu?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["flex flex-shrink-0",{"ml-2":!r.value.hideContent}])},[o.createVNode(o.unref(ha),{class:"dx-column-action-menu",actions:r.value.actionMenu,target:n.value,loading:i.value},null,8,["actions","target","loading"])],2)):o.createCommentVNode("",!0)],2)],4)]),_:3},8,["props","style","class"]))}});class ma{constructor(e={}){this.options={direction:"vertical",hideDragImage:!1},this.startY=0,this.startX=0,this.startSize=0,this.cursorY=0,this.cursorX=0,this.onStartCb=null,this.onEndCb=null,this.onDropCb=null,this.onDraggingCb=null,this.dropZoneResolver=null,this.currentDropZone=null,this.draggableData=null,this.abortController=null,e={disabled:!1,direction:"vertical",hideDragImage:!1,...e},this.setOptions(e)}setOptions(e={}){return this.options={...this.options,...e},this}isVertical(){return this.options.direction==="vertical"}setDropZone(e){return this.dropZoneResolver=e,this}onStart(e){return this.onStartCb=e,this}onEnd(e){return this.onEndCb=e,this}onDragging(e){return this.onDraggingCb=e,this}onDrop(e){return this.onDropCb=e,this}dragStart(e,n){if(!this.options.disabled)if(this.currentDropZone=this.getDropZone(e),this.currentDropZone){this.startY=e.clientY,this.startX=e.clientX,this.startSize=this.getDropZoneSize(),e.dataTransfer&&(e.dataTransfer.effectAllowed="move",e.dataTransfer.dropEffect="move"),this.draggableData=n,this.abortController=new AbortController;const r={signal:this.abortController.signal};document.addEventListener("dragenter",s=>this.dragEnter(s),r),document.addEventListener("dragover",s=>this.dragOver(s),r),document.addEventListener("drop",s=>this.drop(s),r),this.onStartCb&&this.onStartCb(e,this.draggableData),e.dataTransfer&&this.options.hideDragImage&&e.dataTransfer.setDragImage(new Image,0,0)}else console.error("Drop zone was not found",e,n)}dragEnd(e){var n;this.options.disabled||(this.currentDropZone=null,(n=this.abortController)==null||n.abort(),this.onEndCb&&this.onEndCb(e,this.draggableData),this.draggableData=null)}dragEnter(e){e.preventDefault()}dragOver(e){this.options.disabled||(e.preventDefault(),this.cursorY=e.clientY,this.cursorX=e.clientX,this.onDraggingCb&&this.onDraggingCb(e,this.draggableData))}drop(e){this.options.disabled||(e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.preventDefault(),this.onDropCb&&this.onDropCb(e,this.draggableData))}getDropZone(e){var n;if(typeof this.dropZoneResolver=="string"){let r=e.target;for(;r;){if(((n=r.dataset)==null?void 0:n.dropZone)===this.dropZoneResolver)return r;r=r.parentNode}return null}else return typeof this.dropZoneResolver=="function"?this.dropZoneResolver(e):document.body}getDistance(){return this.isVertical()?this.cursorY-this.startY:this.cursorX-this.startX}getDropZoneSize(){var e,n;return(this.isVertical()?(e=this.currentDropZone)==null?void 0:e.offsetHeight:(n=this.currentDropZone)==null?void 0:n.offsetWidth)||0}getPercentChange(){return this.getDistance()/(this.startSize||1)*100}}const c0={__name:"HandleDraggable",props:{initialValue:{type:Number,default:null},dropZone:{type:[Function,String],required:!0},direction:{type:String,default:"horizontal",validator:t=>["vertical","horizontal"].includes(t)}},emits:["start","end","resize"],setup(t,{emit:e}){const n=e,r=t,s=new ma().setDropZone(r.dropZone).setOptions({showPlaceholder:!0,direction:r.direction,hideDragImage:!0}).onDragging(qt(()=>{n("resize",{distance:s.getDistance(),percent:s.getPercentChange(),startDropZoneSize:s.startSize,dropZoneSize:s.getDropZoneSize()})},20,{maxWait:30})).onStart(()=>n("start")).onEnd(()=>n("end"));return(i,l)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([{"cursor-ew-resize":t.direction==="horizontal","cursor-ns-resize":t.direction==="vertical"},"flex justify-center items-center w-full h-full"]),draggable:"true",onDragstart:l[0]||(l[0]=(...a)=>o.unref(s).dragStart&&o.unref(s).dragStart(...a)),onDragend:l[1]||(l[1]=(...a)=>o.unref(s).dragEnd&&o.unref(s).dragEnd(...a))},[o.renderSlot(i.$slots,"default")],34))}};class u0 extends ma{constructor(e={}){super({showPlaceholder:!0,allowDropZoneChange:!0,...e}),this.listPosition=0,this.cursorPosition=0,this.initialPosition=0,this.initialDropZone=null,this.onPositionChangeCb=null,this.onDragPositionChangeCb=null,this.onDropZoneChangeCb=null,this.placeholder=null}onPositionChange(e){return this.onPositionChangeCb=e,this}onDropZoneChange(e){return this.onDropZoneChangeCb=e,this}onDragPositionChange(e){return this.onDragPositionChangeCb=e,this}dragStart(e,n){this.options.disabled||(super.dragStart(e,n),this.currentDropZone&&(this.listPosition=this.getListPosition(e.target),this.initialPosition=this.listPosition,this.initialDropZone=this.currentDropZone,this.updateScrollPosition()))}dragEnd(e){var s;if(this.options.disabled)return;const n=this.draggableData;(s=this.placeholder)==null||s.remove();const r=this.currentDropZone;super.dragEnd(e),r&&r!==this.initialDropZone?this.onDropZoneChangeCb&&this.onDropZoneChangeCb(e,r,this.listPosition,this.initialPosition,n):this.listPosition!==this.initialPosition&&this.onPositionChangeCb&&this.onPositionChangeCb(this.listPosition,this.initialPosition,n)}dragOver(e){this.options.disabled||(super.dragOver(e),this.updateListPosition(e))}updateListPosition(e){var l;const n={x:e.clientX,y:e.clientY},r=this.getDropZoneForTarget(e.target);r!==this.currentDropZone&&(this.currentDropZone=r,this.cursorPosition=0,this.listPosition=0,(l=this.placeholder)==null||l.remove());const s=this.listPosition,i=this.getListPositionOfPoint(n);this.cursorPosition!==i&&(this.cursorPosition=i,this.listPosition=this.initialPosition<this.cursorPosition?this.cursorPosition-1:this.cursorPosition,this.options.showPlaceholder&&this.renderPlaceholder(),this.listPosition!==s&&this.onDragPositionChangeCb&&this.onDragPositionChangeCb(this.listPosition,this.initialPosition,this.draggableData))}getListPosition(e){let n=0;for(const r of this.getChildren()){if(r===e)return n;n++}return 0}getChildren(){var e;return[...((e=this.currentDropZone)==null?void 0:e.children)||[]].filter(n=>n.className.match(/dx-drag-placeholder/)===null)}getDropZoneForTarget(e){return e.closest("[data-drop-zone]")}isSameDropZone(){return this.currentDropZone===this.initialDropZone}getListPositionOfPoint(e){let n=0;const r=this.getChildren();for(;n<r.length;){const s=r[n].getBoundingClientRect();if(this.isVertical()){if(e.y<s.top+s.height/2)break}else if(e.x<s.left+s.width/2)break;n++}return n}updateScrollPosition(){if(!this.currentDropZone)return;const e=this.currentDropZone.getBoundingClientRect(),n=100;let r=0;const s=d=>d*5,i=this.isVertical()?this.cursorY:this.cursorX,l=this.isVertical()?e.top:e.left,a=this.isVertical()?e.bottom:e.right,c=l+n-i,u=i-(a-n);c>0?r=-s(c):u>0&&(r=s(u)),r&&(this.isVertical()?this.currentDropZone.scrollTo({top:this.currentDropZone.scrollTop+r,behavior:"smooth"}):this.currentDropZone.scrollTo({left:this.currentDropZone.scrollLeft+r,behavior:"smooth"})),setTimeout(()=>this.updateScrollPosition(),500)}renderPlaceholder(){if(!this.currentDropZone||!this.options.allowDropZoneChange&&!this.isSameDropZone())return;this.placeholder||(this.placeholder=document.createElement("div"),this.placeholder.classList.add("dx-drag-placeholder")),this.isVertical()?(this.placeholder.classList.add("dx-direction-vertical"),this.placeholder.classList.remove("dx-direction-horizontal"),this.placeholder.style.height=""):(this.placeholder.classList.add("dx-direction-horizontal"),this.placeholder.classList.remove("dx-direction-vertical"),this.placeholder.style.height=this.currentDropZone.getBoundingClientRect().height+"px");const e=this.getChildren();this.cursorPosition<e.length?this.currentDropZone.insertBefore(this.placeholder,e[this.cursorPosition]):this.currentDropZone.appendChild(this.placeholder)}}const M3=["draggable"],V3={class:"flex-grow"},d0=o.defineComponent({__name:"ListItemDraggable",props:o.mergeModels({dropZone:{},direction:{default:"vertical"},showHandle:{type:Boolean},changeDropZone:{type:Boolean},contentClass:{default:"flex flex-nowrap items-center"},handleClass:{default:""},handleSize:{default:"w-4 h-4"},listItems:{default:()=>[]},disabled:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:o.mergeModels(["position","update:list-items","drop-zone"],["update:modelValue"]),setup(t,{emit:e}){const n=e,r=o.useModel(t,"modelValue"),s=t;o.watch(()=>s.disabled,a=>l.setOptions({disabled:a}));const i=o.computed(()=>({"cursor-move":!s.disabled,...typeof s.handleClass=="string"?{[s.handleClass]:!0}:s.handleClass})),l=new u0().setDropZone(s.dropZone).setOptions({showPlaceholder:!0,allowDropZoneChange:s.changeDropZone,direction:s.direction,disabled:s.disabled}).onStart(()=>r.value=!0).onEnd(()=>r.value=!1).onDropZoneChange((a,c,u,d,f)=>{let h=null,_=[];s.listItems&&(_=[...s.listItems],h=_.splice(d,1)[0]),n("drop-zone",{target:a,item:h,items:_,dropZone:c,oldPosition:d,newPosition:u,data:f})}).onPositionChange((a,c)=>{if(n("position",a),s.listItems){const u=[...s.listItems];u.splice(a,0,u.splice(c,1)[0]),n("update:list-items",u)}});return(a,c)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass({"cursor-move":!a.showHandle&&!a.disabled}),draggable:a.disabled?void 0:"true",onDragstart:c[0]||(c[0]=o.withModifiers((...u)=>o.unref(l).dragStart&&o.unref(l).dragStart(...u),["stop"])),onDragend:c[1]||(c[1]=(...u)=>o.unref(l).dragEnd&&o.unref(l).dragEnd(...u))},[o.createElementVNode("div",{class:o.normalizeClass(a.contentClass)},[a.showHandle?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(i.value)},[a.disabled?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(a.handleSize)},null,2)):(o.openBlock(),o.createBlock(o.unref(vd),{key:1,svg:o.unref(ed),class:o.normalizeClass(a.handleSize),alt:"drag-handle"},null,8,["svg","class"]))],2)):o.createCommentVNode("",!0),o.createElementVNode("div",V3,[o.renderSlot(a.$slots,"default")])],2)],42,M3))}}),f0=qe(o.defineComponent({__name:"ActionTableHeaderColumn",props:{modelValue:{type:Object,required:!0},name:{type:String,required:!0},rowProps:{type:Object,required:!0}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,s=o.computed(()=>r.rowProps.col),i=o.computed(()=>s.value.resizeable),l=o.computed(()=>{var f;const d=((f=r.settings)==null?void 0:f.width)||s.value.width;return{width:d?`${d}px`:void 0,minWidth:s.value.minWidth?`${s.value.minWidth}px`:void 0,...s.value.headerStyle||{}}}),a=o.useCssModule("cls"),c=o.computed(()=>{const d={[a["handle-drop-zone"]]:i.value,"dx-column-shrink":s.value.shrink},f=s.value.headerClass;return f&&(typeof f=="string"?d[f]=!0:Object.keys(f).forEach(h=>{d[h]=f[h]})),d});function u(d){const f={...r.modelValue,[s.value.name]:{width:Math.max(Math.min(d.distance+d.startDropZoneSize,s.value.maxWidth||500),s.value.minWidth||80)}};n("update:model-value",f)}return(d,f)=>(o.openBlock(),o.createBlock(o.unref(ce.QTh),{key:t.rowProps.key,props:t.rowProps,"data-drop-zone":i.value&&"resize-column-"+s.value.name,class:o.normalizeClass(c.value),style:o.normalizeStyle(l.value)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(s.value.label)+" ",1),i.value?(o.openBlock(),o.createBlock(o.unref(c0),{key:0,"drop-zone":"resize-column-"+s.value.name,class:o.normalizeClass(d.cls["resize-handle"]),onResize:u},{default:o.withCtx(()=>[o.createVNode(o.unref(td),{class:"w-4 text-gray-600"})]),_:1},8,["drop-zone","class"])):o.createCommentVNode("",!0)]),_:1},8,["props","data-drop-zone","class","style"]))}}),[["__cssModules",{cls:{"pointer-events-none":"_pointer-events-none_1reoo_1","!visible":"_!visible_1reoo_1",visible:"_visible_1reoo_1",collapse:"_collapse_1reoo_231",static:"_static_1reoo_1",absolute:"_absolute_1reoo_1",relative:"_relative_1reoo_1",sticky:"_sticky_1reoo_1","inset-0":"_inset-0_1reoo_1","bottom-0":"_bottom-0_1reoo_1","left-0":"_left-0_1reoo_1","left-2":"_left-2_1reoo_1","left-4":"_left-4_1reoo_1","right-0":"_right-0_1reoo_1","right-1":"_right-1_1reoo_1","right-2":"_right-2_1reoo_1","right-4":"_right-4_1reoo_1","top-0":"_top-0_1reoo_1","top-1":"_top-1_1reoo_1","top-1/2":"_top-1/2_1reoo_1","top-2":"_top-2_1reoo_1","z-0":"_z-0_1reoo_1","z-10":"_z-10_1reoo_1","z-20":"_z-20_1reoo_1","z-30":"_z-30_1reoo_1","m-2":"_m-2_1reoo_1","m-4":"_m-4_1reoo_1","m-auto":"_m-auto_1reoo_1","mx-1":"_mx-1_1reoo_1","mx-4":"_mx-4_1reoo_1","mx-auto":"_mx-auto_1reoo_1","my-2":"_my-2_1reoo_1","!mr-1":"_!mr-1_1reoo_1","mb-2":"_mb-2_1reoo_1","mb-4":"_mb-4_1reoo_1","ml-1":"_ml-1_1reoo_1","ml-2":"_ml-2_1reoo_1","ml-2.5":"_ml-2.5_1reoo_1","ml-3":"_ml-3_1reoo_1","ml-4":"_ml-4_1reoo_1","ml-5":"_ml-5_1reoo_1","ml-[-.2em]":"_ml-[-.2em]_1reoo_1","mr-1":"_mr-1_1reoo_1","mr-2":"_mr-2_1reoo_1","mr-3":"_mr-3_1reoo_1","mr-4":"_mr-4_1reoo_1","mt-1":"_mt-1_1reoo_1","mt-2":"_mt-2_1reoo_1","mt-3":"_mt-3_1reoo_1","mt-4":"_mt-4_1reoo_1",block:"_block_1reoo_1","inline-block":"_inline-block_1reoo_1",inline:"_inline_1reoo_1",flex:"_flex_1reoo_1",table:"_table_1reoo_1",grid:"_grid_1reoo_1",hidden:"_hidden_1reoo_1","aspect-square":"_aspect-square_1reoo_1","h-10":"_h-10_1reoo_1","h-12":"_h-12_1reoo_1","h-16":"_h-16_1reoo_1","h-20":"_h-20_1reoo_1","h-3":"_h-3_1reoo_1","h-3.5":"_h-3.5_1reoo_1","h-3/4":"_h-3/4_1reoo_1","h-4":"_h-4_1reoo_1","h-5":"_h-5_1reoo_1","h-6":"_h-6_1reoo_1","h-8":"_h-8_1reoo_1","h-96":"_h-96_1reoo_1","h-[2.25rem]":"_h-[2.25rem]_1reoo_1","h-[80vh]":"_h-[80vh]_1reoo_1","h-full":"_h-full_1reoo_1","max-h-[80vh]":"_max-h-[80vh]_1reoo_1","max-h-full":"_max-h-full_1reoo_1","min-h-0":"_min-h-0_1reoo_1","min-h-10":"_min-h-10_1reoo_1","w-10":"_w-10_1reoo_1","w-16":"_w-16_1reoo_1","w-2":"_w-2_1reoo_1","w-2/5":"_w-2/5_1reoo_1","w-20":"_w-20_1reoo_1","w-24":"_w-24_1reoo_1","w-3":"_w-3_1reoo_1","w-3.5":"_w-3.5_1reoo_1","w-3/4":"_w-3/4_1reoo_1","w-3/5":"_w-3/5_1reoo_1","w-32":"_w-32_1reoo_1","w-4":"_w-4_1reoo_1","w-48":"_w-48_1reoo_1","w-5":"_w-5_1reoo_1","w-6":"_w-6_1reoo_1","w-7":"_w-7_1reoo_1","w-72":"_w-72_1reoo_1","w-8":"_w-8_1reoo_1","w-96":"_w-96_1reoo_1","w-[13.5rem]":"_w-[13.5rem]_1reoo_1","w-[40%]":"_w-[40%]_1reoo_1","w-[6.5rem]":"_w-[6.5rem]_1reoo_1","w-[60vw]":"_w-[60vw]_1reoo_1","w-[80vw]":"_w-[80vw]_1reoo_1","w-full":"_w-full_1reoo_1","!min-w-0":"_!min-w-0_1reoo_1","min-w-0":"_min-w-0_1reoo_1","min-w-10":"_min-w-10_1reoo_1","min-w-96":"_min-w-96_1reoo_1","min-w-[300px]":"_min-w-[300px]_1reoo_1","max-w-[400px]":"_max-w-[400px]_1reoo_1","max-w-[600px]":"_max-w-[600px]_1reoo_1","max-w-full":"_max-w-full_1reoo_1","max-w-none":"_max-w-none_1reoo_1","flex-1":"_flex-1_1reoo_1","flex-shrink":"_flex-shrink_1reoo_1","flex-shrink-0":"_flex-shrink-0_1reoo_1",shrink:"_shrink_1reoo_1","flex-grow":"_flex-grow_1reoo_1",grow:"_grow_1reoo_1","-translate-y-1/2":"_-translate-y-1/2_1reoo_1","rotate-180":"_rotate-180_1reoo_1","scale-110":"_scale-110_1reoo_1",transform:"_transform_1reoo_1","cursor-ew-resize":"_cursor-ew-resize_1reoo_1","cursor-move":"_cursor-move_1reoo_1","cursor-not-allowed":"_cursor-not-allowed_1reoo_1","cursor-ns-resize":"_cursor-ns-resize_1reoo_1","cursor-pointer":"_cursor-pointer_1reoo_1",resize:"_resize_1reoo_521","grid-cols-3":"_grid-cols-3_1reoo_1","flex-col":"_flex-col_1reoo_1","flex-wrap":"_flex-wrap_1reoo_1","flex-nowrap":"_flex-nowrap_1reoo_1","items-center":"_items-center_1reoo_1","items-stretch":"_items-stretch_1reoo_1","justify-start":"_justify-start_1reoo_1","justify-end":"_justify-end_1reoo_1","justify-center":"_justify-center_1reoo_1","justify-between":"_justify-between_1reoo_1","gap-1":"_gap-1_1reoo_1","gap-2":"_gap-2_1reoo_1","gap-3":"_gap-3_1reoo_1","gap-x-2":"_gap-x-2_1reoo_1","gap-x-4":"_gap-x-4_1reoo_1","gap-y-0":"_gap-y-0_1reoo_1","gap-y-1":"_gap-y-1_1reoo_1","space-x-1":"_space-x-1_1reoo_1","space-x-2":"_space-x-2_1reoo_1","self-center":"_self-center_1reoo_1","overflow-auto":"_overflow-auto_1reoo_1","overflow-hidden":"_overflow-hidden_1reoo_1","overflow-x-auto":"_overflow-x-auto_1reoo_1","overflow-y-auto":"_overflow-y-auto_1reoo_70","overflow-x-hidden":"_overflow-x-hidden_1reoo_1","overflow-y-hidden":"_overflow-y-hidden_1reoo_1","scroll-smooth":"_scroll-smooth_1reoo_1",truncate:"_truncate_1reoo_1","overflow-ellipsis":"_overflow-ellipsis_1reoo_1","whitespace-normal":"_whitespace-normal_1reoo_1","whitespace-nowrap":"_whitespace-nowrap_1reoo_1","whitespace-pre-wrap":"_whitespace-pre-wrap_1reoo_1",rounded:"_rounded_1reoo_1","rounded-2xl":"_rounded-2xl_1reoo_1","rounded-full":"_rounded-full_1reoo_1","rounded-lg":"_rounded-lg_1reoo_1","rounded-md":"_rounded-md_1reoo_1","rounded-sm":"_rounded-sm_1reoo_1","!rounded-l-none":"_!rounded-l-none_1reoo_1","!rounded-r-none":"_!rounded-r-none_1reoo_1","rounded-b-lg":"_rounded-b-lg_1reoo_1","rounded-l-lg":"_rounded-l-lg_1reoo_1","rounded-r-lg":"_rounded-r-lg_1reoo_1","rounded-t-2xl":"_rounded-t-2xl_1reoo_1","rounded-t-lg":"_rounded-t-lg_1reoo_1","rounded-t-md":"_rounded-t-md_1reoo_1","rounded-br":"_rounded-br_1reoo_1","rounded-tl":"_rounded-tl_1reoo_1","!border-0":"_!border-0_1reoo_1",border:"_border_1reoo_1","border-2":"_border-2_1reoo_1","border-b":"_border-b_1reoo_1","border-l":"_border-l_1reoo_1","border-l-0":"_border-l-0_1reoo_1","border-r":"_border-r_1reoo_1","border-solid":"_border-solid_1reoo_1","border-dashed":"_border-dashed_1reoo_1","border-none":"_border-none_1reoo_1","border-blue-500":"_border-blue-500_1reoo_1","border-blue-600":"_border-blue-600_1reoo_1","border-blue-700":"_border-blue-700_1reoo_1","border-gray-200":"_border-gray-200_1reoo_1","border-gray-300":"_border-gray-300_1reoo_1","border-purple-500":"_border-purple-500_1reoo_1","border-slate-200":"_border-slate-200_1reoo_1","border-slate-700":"_border-slate-700_1reoo_1","border-transparent":"_border-transparent_1reoo_1","bg-amber-300":"_bg-amber-300_1reoo_1","bg-amber-950":"_bg-amber-950_1reoo_1","bg-black":"_bg-black_1reoo_1","bg-blue-200":"_bg-blue-200_1reoo_1","bg-blue-300":"_bg-blue-300_1reoo_1","bg-blue-600":"_bg-blue-600_1reoo_1","bg-blue-900":"_bg-blue-900_1reoo_1","bg-blue-950":"_bg-blue-950_1reoo_1","bg-cyan-950":"_bg-cyan-950_1reoo_1","bg-emerald-200":"_bg-emerald-200_1reoo_1","bg-emerald-950":"_bg-emerald-950_1reoo_1","bg-fuchsia-950":"_bg-fuchsia-950_1reoo_1","bg-gray-100":"_bg-gray-100_1reoo_1","bg-gray-200":"_bg-gray-200_1reoo_1","bg-gray-400":"_bg-gray-400_1reoo_1","bg-gray-50":"_bg-gray-50_1reoo_1","bg-gray-500":"_bg-gray-500_1reoo_1","bg-gray-800":"_bg-gray-800_1reoo_1","bg-green-200":"_bg-green-200_1reoo_1","bg-green-300":"_bg-green-300_1reoo_1","bg-green-900":"_bg-green-900_1reoo_1","bg-green-950":"_bg-green-950_1reoo_1","bg-indigo-950":"_bg-indigo-950_1reoo_1","bg-lime-300":"_bg-lime-300_1reoo_1","bg-lime-950":"_bg-lime-950_1reoo_1","bg-orange-900":"_bg-orange-900_1reoo_1","bg-orange-950":"_bg-orange-950_1reoo_1","bg-purple-700":"_bg-purple-700_1reoo_1","bg-purple-900":"_bg-purple-900_1reoo_1","bg-purple-950":"_bg-purple-950_1reoo_1","bg-red-200":"_bg-red-200_1reoo_1","bg-red-300":"_bg-red-300_1reoo_1","bg-red-900":"_bg-red-900_1reoo_1","bg-red-950":"_bg-red-950_1reoo_1","bg-rose-950":"_bg-rose-950_1reoo_1","bg-sky-300":"_bg-sky-300_1reoo_1","bg-sky-50":"_bg-sky-50_1reoo_1","bg-sky-800":"_bg-sky-800_1reoo_1","bg-sky-900":"_bg-sky-900_1reoo_1","bg-sky-950":"_bg-sky-950_1reoo_1","bg-slate-100":"_bg-slate-100_1reoo_1","bg-slate-300":"_bg-slate-300_1reoo_1","bg-slate-400":"_bg-slate-400_1reoo_1","bg-slate-500":"_bg-slate-500_1reoo_1","bg-slate-600":"_bg-slate-600_1reoo_1","bg-slate-700":"_bg-slate-700_1reoo_1","bg-slate-800":"_bg-slate-800_1reoo_1","bg-slate-900":"_bg-slate-900_1reoo_1","bg-slate-950":"_bg-slate-950_1reoo_1","bg-teal-200":"_bg-teal-200_1reoo_1","bg-teal-500":"_bg-teal-500_1reoo_1","bg-teal-950":"_bg-teal-950_1reoo_1","bg-transparent":"_bg-transparent_1reoo_1","bg-violet-950":"_bg-violet-950_1reoo_1","bg-white":"_bg-white_1reoo_1","bg-yellow-300":"_bg-yellow-300_1reoo_1","bg-yellow-800":"_bg-yellow-800_1reoo_1","bg-yellow-950":"_bg-yellow-950_1reoo_1","bg-opacity-70":"_bg-opacity-70_1reoo_1","bg-opacity-80":"_bg-opacity-80_1reoo_1","bg-opacity-90":"_bg-opacity-90_1reoo_1","!bg-none":"_!bg-none_1reoo_1","object-contain":"_object-contain_1reoo_1","object-cover":"_object-cover_1reoo_1","!p-2":"_!p-2_1reoo_1","p-0":"_p-0_1reoo_1","p-1":"_p-1_1reoo_1","p-2":"_p-2_1reoo_1","p-3":"_p-3_1reoo_1","p-4":"_p-4_1reoo_1","p-8":"_p-8_1reoo_1","!py-0":"_!py-0_1reoo_1","px-1":"_px-1_1reoo_1","px-1.5":"_px-1.5_1reoo_1","px-12":"_px-12_1reoo_1","px-16":"_px-16_1reoo_1","px-2":"_px-2_1reoo_1","px-2.5":"_px-2.5_1reoo_1","px-3":"_px-3_1reoo_1","px-4":"_px-4_1reoo_1","px-6":"_px-6_1reoo_1","px-8":"_px-8_1reoo_1","py-0":"_py-0_1reoo_1","py-0.5":"_py-0.5_1reoo_1","py-1":"_py-1_1reoo_1","py-1.5":"_py-1.5_1reoo_1","py-14":"_py-14_1reoo_1","py-2":"_py-2_1reoo_1","py-3":"_py-3_1reoo_1","py-4":"_py-4_1reoo_1","py-8":"_py-8_1reoo_1","pl-1":"_pl-1_1reoo_1","pt-3":"_pt-3_1reoo_1","text-left":"_text-left_1reoo_1","text-center":"_text-center_1reoo_1","text-[.7rem]":"_text-[.7rem]_1reoo_1","text-[1rem]":"_text-[1rem]_1reoo_1","text-base":"_text-base_1reoo_1","text-lg":"_text-lg_1reoo_1","text-sm":"_text-sm_1reoo_1","text-xs":"_text-xs_1reoo_1","font-bold":"_font-bold_1reoo_1","font-medium":"_font-medium_1reoo_1","font-semibold":"_font-semibold_1reoo_1",uppercase:"_uppercase_1reoo_1",italic:"_italic_1reoo_1","leading-[1.2rem]":"_leading-[1.2rem]_1reoo_1","!text-green-900":"_!text-green-900_1reoo_1","!text-red-900":"_!text-red-900_1reoo_1","!text-sky-900":"_!text-sky-900_1reoo_1","!text-white":"_!text-white_1reoo_1","!text-yellow-900":"_!text-yellow-900_1reoo_1","text-amber-400":"_text-amber-400_1reoo_1","text-amber-900":"_text-amber-900_1reoo_1","text-blue-300":"_text-blue-300_1reoo_1","text-blue-400":"_text-blue-400_1reoo_1","text-blue-600":"_text-blue-600_1reoo_1","text-blue-900":"_text-blue-900_1reoo_1","text-cyan-400":"_text-cyan-400_1reoo_1","text-emerald-400":"_text-emerald-400_1reoo_1","text-fuchsia-400":"_text-fuchsia-400_1reoo_1","text-gray-300":"_text-gray-300_1reoo_1","text-gray-400":"_text-gray-400_1reoo_1","text-gray-500":"_text-gray-500_1reoo_1","text-gray-600":"_text-gray-600_1reoo_1","text-gray-700":"_text-gray-700_1reoo_1","text-gray-900":"_text-gray-900_1reoo_1","text-green-300":"_text-green-300_1reoo_1","text-green-400":"_text-green-400_1reoo_1","text-green-700":"_text-green-700_1reoo_1","text-green-900":"_text-green-900_1reoo_1","text-indigo-400":"_text-indigo-400_1reoo_1","text-lime-400":"_text-lime-400_1reoo_1","text-lime-900":"_text-lime-900_1reoo_1","text-orange-400":"_text-orange-400_1reoo_1","text-purple-200":"_text-purple-200_1reoo_1","text-purple-300":"_text-purple-300_1reoo_1","text-purple-400":"_text-purple-400_1reoo_1","text-red-400":"_text-red-400_1reoo_1","text-red-500":"_text-red-500_1reoo_1","text-red-800":"_text-red-800_1reoo_1","text-red-900":"_text-red-900_1reoo_1","text-rose-400":"_text-rose-400_1reoo_1","text-sky-400":"_text-sky-400_1reoo_1","text-sky-500":"_text-sky-500_1reoo_1","text-sky-600":"_text-sky-600_1reoo_1","text-sky-900":"_text-sky-900_1reoo_1","text-slate-200":"_text-slate-200_1reoo_1","text-slate-300":"_text-slate-300_1reoo_1","text-slate-400":"_text-slate-400_1reoo_1","text-slate-50":"_text-slate-50_1reoo_1","text-slate-500":"_text-slate-500_1reoo_1","text-slate-600":"_text-slate-600_1reoo_1","text-slate-800":"_text-slate-800_1reoo_1","text-slate-900":"_text-slate-900_1reoo_1","text-teal-200":"_text-teal-200_1reoo_1","text-teal-400":"_text-teal-400_1reoo_1","text-teal-800":"_text-teal-800_1reoo_1","text-violet-400":"_text-violet-400_1reoo_1","text-white":"_text-white_1reoo_1","text-yellow-300":"_text-yellow-300_1reoo_1","text-yellow-400":"_text-yellow-400_1reoo_1","text-yellow-600":"_text-yellow-600_1reoo_1","text-zinc-500":"_text-zinc-500_1reoo_1","text-zinc-800":"_text-zinc-800_1reoo_1","line-through":"_line-through_1reoo_1","opacity-0":"_opacity-0_1reoo_1","opacity-100":"_opacity-100_1reoo_1","opacity-20":"_opacity-20_1reoo_1","opacity-50":"_opacity-50_1reoo_1","opacity-60":"_opacity-60_1reoo_1","opacity-70":"_opacity-70_1reoo_1","opacity-80":"_opacity-80_1reoo_1","opacity-90":"_opacity-90_1reoo_1",shadow:"_shadow_1reoo_1","shadow-none":"_shadow-none_1reoo_1","shadow-xl":"_shadow-xl_1reoo_1","outline-none":"_outline-none_1reoo_1",outline:"_outline_1reoo_1","outline-offset-0":"_outline-offset-0_1reoo_1",blur:"_blur_1reoo_1",filter:"_filter_1reoo_1",transition:"_transition_1reoo_1","transition-all":"_transition-all_1reoo_1","transition-opacity":"_transition-opacity_1reoo_1","duration-300":"_duration-300_1reoo_1","danx-app":"_danx-app_1reoo_4","q-tab":"_q-tab_1reoo_4","q-table__card":"_q-table__card_1reoo_7","q-checkbox__inner":"_q-checkbox__inner_1reoo_11","q-toolbar":"_q-toolbar_1reoo_14","q-notification__actions":"_q-notification__actions_1reoo_19","q-date":"_q-date_1reoo_22","q-date__view":"_q-date__view_1reoo_25","q-field":"_q-field_1reoo_28","q-field--auto-height":"_q-field--auto-height_1reoo_28","q-field__control":"_q-field__control_1reoo_28","q-field__native":"_q-field__native_1reoo_31","q-field--labeled":"_q-field--labeled_1reoo_35","q-field__control-container":"_q-field__control-container_1reoo_35","q-textarea":"_q-textarea_1reoo_38","q-field__marginal":"_q-field__marginal_1reoo_41","q-field__input":"_q-field__input_1reoo_41","q-field__label":"_q-field__label_1reoo_41","q-btn":"_q-btn_1reoo_48","q-item":"_q-item_1reoo_56","q-tab-panels":"_q-tab-panels_1reoo_60","q-panel":"_q-panel_1reoo_64",scroll:"_scroll_1reoo_67","dx-dialog":"_dx-dialog_1reoo_74","q-card__section--vert":"_q-card__section--vert_1reoo_74","q-banner":"_q-banner_1reoo_78",app:"_app_1reoo_1","main-layout":"_main-layout_1reoo_1","is-disabled":"_is-disabled_1reoo_95","disable-all-transitions":"_disable-all-transitions_1reoo_100","v-enter-active":"_v-enter-active_1reoo_104","v-leave-active":"_v-leave-active_1reoo_105","v-enter-from":"_v-enter-from_1reoo_109","v-leave-to":"_v-leave-to_1reoo_110","dx-scrollbar":"_dx-scrollbar_1reoo_114","dx-scrollbar-dark":"_dx-scrollbar-dark_1reoo_157","dx-scrollbar-hidden":"_dx-scrollbar-hidden_1reoo_199","dx-code-viewer":"_dx-code-viewer_1reoo_207","is-collapsed":"_is-collapsed_1reoo_211","code-collapsed":"_code-collapsed_1reoo_214","code-collapsed-preview":"_code-collapsed-preview_1reoo_225","collapse-toggle":"_collapse-toggle_1reoo_231","collapse-header":"_collapse-header_1reoo_234","code-content":"_code-content_1reoo_243","is-collapsible":"_is-collapsible_1reoo_257","code-footer":"_code-footer_1reoo_267","has-error":"_has-error_1reoo_273","language-badge":"_language-badge_1reoo_277","syntax-key":"_syntax-key_1reoo_284","syntax-string":"_syntax-string_1reoo_287","syntax-number":"_syntax-number_1reoo_290","syntax-boolean":"_syntax-boolean_1reoo_293","syntax-null":"_syntax-null_1reoo_296","syntax-punctuation":"_syntax-punctuation_1reoo_299","is-editable":"_is-editable_1reoo_302","dx-markdown-content":"_dx-markdown-content_1reoo_316","task-list":"_task-list_1reoo_406","task-list-item":"_task-list-item_1reoo_410","footnote-ref":"_footnote-ref_1reoo_491",footnotes:"_footnotes_1reoo_499","footnote-list":"_footnote-list_1reoo_506","footnote-item":"_footnote-item_1reoo_509","footnote-backref":"_footnote-backref_1reoo_512","dx-action-table":"_dx-action-table_1reoo_517","dx-column-shrink":"_dx-column-shrink_1reoo_517","handle-drop-zone":"_handle-drop-zone_1reoo_521","resize-handle":"_resize-handle_1reoo_521","hover:scale-105":"_hover:scale-105_1reoo_1","hover:bg-amber-400":"_hover:bg-amber-400_1reoo_1","hover:bg-blue-200":"_hover:bg-blue-200_1reoo_1","hover:bg-blue-400":"_hover:bg-blue-400_1reoo_1","hover:bg-blue-800":"_hover:bg-blue-800_1reoo_1","hover:bg-gray-200":"_hover:bg-gray-200_1reoo_1","hover:bg-green-100":"_hover:bg-green-100_1reoo_1","hover:bg-green-400":"_hover:bg-green-400_1reoo_1","hover:bg-green-800":"_hover:bg-green-800_1reoo_1","hover:bg-lime-400":"_hover:bg-lime-400_1reoo_1","hover:bg-orange-800":"_hover:bg-orange-800_1reoo_1","hover:bg-purple-600":"_hover:bg-purple-600_1reoo_1","hover:bg-purple-800":"_hover:bg-purple-800_1reoo_1","hover:bg-red-100":"_hover:bg-red-100_1reoo_1","hover:bg-red-200":"_hover:bg-red-200_1reoo_1","hover:bg-red-400":"_hover:bg-red-400_1reoo_1","hover:bg-sky-400":"_hover:bg-sky-400_1reoo_1","hover:bg-sky-800":"_hover:bg-sky-800_1reoo_1","hover:bg-sky-900":"_hover:bg-sky-900_1reoo_1","hover:bg-slate-200":"_hover:bg-slate-200_1reoo_1","hover:bg-slate-300":"_hover:bg-slate-300_1reoo_1","hover:bg-slate-400":"_hover:bg-slate-400_1reoo_1","hover:bg-slate-600":"_hover:bg-slate-600_1reoo_1","hover:bg-slate-700":"_hover:bg-slate-700_1reoo_1","hover:bg-slate-800":"_hover:bg-slate-800_1reoo_1","hover:bg-slate-900":"_hover:bg-slate-900_1reoo_1","hover:bg-teal-400":"_hover:bg-teal-400_1reoo_1","hover:bg-teal-600":"_hover:bg-teal-600_1reoo_1","hover:bg-yellow-700":"_hover:bg-yellow-700_1reoo_1","hover:text-blue-300":"_hover:text-blue-300_1reoo_1","hover:text-blue-500":"_hover:text-blue-500_1reoo_1","hover:text-blue-600":"_hover:text-blue-600_1reoo_1","hover:text-gray-300":"_hover:text-gray-300_1reoo_1","hover:text-gray-700":"_hover:text-gray-700_1reoo_1","hover:text-sky-600":"_hover:text-sky-600_1reoo_1","hover:text-white":"_hover:text-white_1reoo_1","hover:opacity-100":"_hover:opacity-100_1reoo_1","hover:opacity-70":"_hover:opacity-70_1reoo_1","hover:outline-4":"_hover:outline-4_1reoo_1","focus:bg-blue-200":"_focus:bg-blue-200_1reoo_1","focus:outline-4":"_focus:outline-4_1reoo_1","focus:outline-blue-200":"_focus:outline-blue-200_1reoo_1",group:"_group_1reoo_1","group-hover:opacity-100":"_group-hover:opacity-100_1reoo_1"}}]]),L3={key:0,class:"text-zinc-800 cursor-not-allowed"},P3={class:"font-semibold text-sm ml-5 py-3 flex-grow"},v3={key:1,class:"flex items-center"},pa={__name:"ColumnListItem",props:{locked:Boolean,visible:Boolean,isTitle:Boolean,column:{type:Object,required:!0}},emits:["visible","is-title"],setup(t){return(e,n)=>{const r=o.resolveComponent("QTooltip");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["flex items-center w-full",{"cursor-not-allowed":t.locked}])},[t.locked?(o.openBlock(),o.createElementBlock("a",L3,[o.createVNode(o.unref(D2),{class:"w-4"})])):o.createCommentVNode("",!0),o.createElementVNode("div",P3,o.toDisplayString(t.column.label),1),t.locked?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",v3,[o.createElementVNode("a",{class:"py-2 px-1",onClick:n[0]||(n[0]=s=>e.$emit("visible",!t.visible))},[t.visible?(o.openBlock(),o.createBlock(o.unref(F2),{key:0,class:"w-4"})):(o.openBlock(),o.createBlock(o.unref($2),{key:1,class:"w-4 text-zinc-800"}))]),o.createElementVNode("a",{class:"py-2 px-1",onClick:n[1]||(n[1]=s=>e.$emit("is-title",!t.isTitle))},[o.createVNode(o.unref(pg),{class:o.normalizeClass(["w-4",t.isTitle?"":"text-gray-400"])},null,8,["class"]),o.createVNode(r,null,{default:o.withCtx(()=>[t.isTitle?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode("Remove from priority list")],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode("Add to priority list")],64))]),_:1})])]))],2)}}},R3={__name:"ColumnSettingsDialog",props:{hiddenColumnNames:{type:Array,required:!0},titleColumnNames:{type:Array,required:!0},lockedColumns:{type:Array,required:!0},sortableColumns:{type:Array,required:!0},titleColumnLimit:{type:Number,default:3}},emits:["close","update:hidden-column-names","update:title-column-names","update:sortable-columns"],setup(t,{emit:e}){const n=e,r=t,s=o.computed(()=>r.titleColumnNames.length<r.titleColumnLimit);function i(u){return!r.hiddenColumnNames.includes(u.name)}function l(u,d){let f=[...r.hiddenColumnNames];d&&f.includes(u.name)?f=bo(f,u.name):f.push(u.name),n("update:hidden-column-names",[...new Set(f)])}function a(u){return r.titleColumnNames.includes(u.name)}function c(u,d){let f=[...r.titleColumnNames];if(d&&!f.includes(u.name)){if(!s.value){Ue.warning(`You can only have ${r.titleColumnLimit} priority columns.`);return}f.push(u.name)}else f=bo(f,u.name);n("update:title-column-names",[...new Set(f)])}return(u,d)=>(o.openBlock(),o.createBlock(o.unref(bl),{title:"Column Settings",onClose:d[1]||(d[1]=f=>u.$emit("close"))},{default:o.withCtx(()=>[d[2]||(d[2]=o.createElementVNode("div",{class:"mb-4 text-sm"}," Customize columns by visibility, order, or priority (maximum 3 additional). ",-1)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.lockedColumns,f=>(o.openBlock(),o.createBlock(o.unref(pa),{key:f.name,locked:"",visible:"",column:f,class:"px-2.5 border border-gray-200 bg-white rounded-t-lg"},null,8,["column"]))),128)),o.createVNode(o.unref(Hd),{name:"fade-down-list","data-drop-zone":"column-list"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.sortableColumns,(f,h)=>(o.openBlock(),o.createBlock(o.unref(d0),{key:f.name,"list-items":t.sortableColumns,"drop-zone":"column-list",class:o.normalizeClass(["px-2 border border-gray-200 bg-white",{"rounded-b-lg":h===t.sortableColumns.length-1}]),"show-handle":"","onUpdate:listItems":d[0]||(d[0]=_=>u.$emit("update:sortable-columns",_))},{default:o.withCtx(()=>[o.createVNode(o.unref(pa),{column:f,visible:i(f),"is-title":a(f),onVisible:_=>l(f,_),onIsTitle:_=>c(f,_)},null,8,["column","visible","is-title","onVisible","onIsTitle"])]),_:2},1032,["list-items","class"]))),128))]),_:1})]),_:1}))}},_0={__name:"TitleColumnFormat",props:{row:{type:Object,required:!0},columns:{type:Array,required:!0}},setup(t){function e(n,r){return typeof r=="function"?r(n):n}return(n,r)=>(o.openBlock(),o.createElementBlock("div",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.columns,s=>(o.openBlock(),o.createElementBlock("div",{key:s.name,class:"overflow-hidden overflow-ellipsis text-xs text-gray-400"},o.toDisplayString(e(t.row[s.name],s.format)),1))),128))]))}},U3={"pointer-events-none":"_pointer-events-none_1mh4o_1","!visible":"_!visible_1mh4o_1",visible:"_visible_1mh4o_1",collapse:"_collapse_1mh4o_231",static:"_static_1mh4o_1",absolute:"_absolute_1mh4o_1",relative:"_relative_1mh4o_1",sticky:"_sticky_1mh4o_1","inset-0":"_inset-0_1mh4o_1","bottom-0":"_bottom-0_1mh4o_1","left-0":"_left-0_1mh4o_1","left-2":"_left-2_1mh4o_1","left-4":"_left-4_1mh4o_1","right-0":"_right-0_1mh4o_1","right-1":"_right-1_1mh4o_1","right-2":"_right-2_1mh4o_1","right-4":"_right-4_1mh4o_1","top-0":"_top-0_1mh4o_1","top-1":"_top-1_1mh4o_1","top-1/2":"_top-1/2_1mh4o_1","top-2":"_top-2_1mh4o_1","z-0":"_z-0_1mh4o_1","z-10":"_z-10_1mh4o_1","z-20":"_z-20_1mh4o_1","z-30":"_z-30_1mh4o_1","m-2":"_m-2_1mh4o_1","m-4":"_m-4_1mh4o_1","m-auto":"_m-auto_1mh4o_1","mx-1":"_mx-1_1mh4o_1","mx-4":"_mx-4_1mh4o_1","mx-auto":"_mx-auto_1mh4o_1","my-2":"_my-2_1mh4o_1","!mr-1":"_!mr-1_1mh4o_1","mb-2":"_mb-2_1mh4o_1","mb-4":"_mb-4_1mh4o_1","ml-1":"_ml-1_1mh4o_1","ml-2":"_ml-2_1mh4o_1","ml-2.5":"_ml-2.5_1mh4o_1","ml-3":"_ml-3_1mh4o_1","ml-4":"_ml-4_1mh4o_1","ml-5":"_ml-5_1mh4o_1","ml-[-.2em]":"_ml-[-.2em]_1mh4o_1","mr-1":"_mr-1_1mh4o_1","mr-2":"_mr-2_1mh4o_1","mr-3":"_mr-3_1mh4o_1","mr-4":"_mr-4_1mh4o_1","mt-1":"_mt-1_1mh4o_1","mt-2":"_mt-2_1mh4o_1","mt-3":"_mt-3_1mh4o_1","mt-4":"_mt-4_1mh4o_1",block:"_block_1mh4o_1","inline-block":"_inline-block_1mh4o_1",inline:"_inline_1mh4o_1",flex:"_flex_1mh4o_1",table:"_table_1mh4o_1",grid:"_grid_1mh4o_1",hidden:"_hidden_1mh4o_1","aspect-square":"_aspect-square_1mh4o_1","h-10":"_h-10_1mh4o_1","h-12":"_h-12_1mh4o_1","h-16":"_h-16_1mh4o_1","h-20":"_h-20_1mh4o_1","h-3":"_h-3_1mh4o_1","h-3.5":"_h-3.5_1mh4o_1","h-3/4":"_h-3/4_1mh4o_1","h-4":"_h-4_1mh4o_1","h-5":"_h-5_1mh4o_1","h-6":"_h-6_1mh4o_1","h-8":"_h-8_1mh4o_1","h-96":"_h-96_1mh4o_1","h-[2.25rem]":"_h-[2.25rem]_1mh4o_1","h-[80vh]":"_h-[80vh]_1mh4o_1","h-full":"_h-full_1mh4o_1","max-h-[80vh]":"_max-h-[80vh]_1mh4o_1","max-h-full":"_max-h-full_1mh4o_1","min-h-0":"_min-h-0_1mh4o_1","min-h-10":"_min-h-10_1mh4o_1","w-10":"_w-10_1mh4o_1","w-16":"_w-16_1mh4o_1","w-2":"_w-2_1mh4o_1","w-2/5":"_w-2/5_1mh4o_1","w-20":"_w-20_1mh4o_1","w-24":"_w-24_1mh4o_1","w-3":"_w-3_1mh4o_1","w-3.5":"_w-3.5_1mh4o_1","w-3/4":"_w-3/4_1mh4o_1","w-3/5":"_w-3/5_1mh4o_1","w-32":"_w-32_1mh4o_1","w-4":"_w-4_1mh4o_1","w-48":"_w-48_1mh4o_1","w-5":"_w-5_1mh4o_1","w-6":"_w-6_1mh4o_1","w-7":"_w-7_1mh4o_1","w-72":"_w-72_1mh4o_1","w-8":"_w-8_1mh4o_1","w-96":"_w-96_1mh4o_1","w-[13.5rem]":"_w-[13.5rem]_1mh4o_1","w-[40%]":"_w-[40%]_1mh4o_1","w-[6.5rem]":"_w-[6.5rem]_1mh4o_1","w-[60vw]":"_w-[60vw]_1mh4o_1","w-[80vw]":"_w-[80vw]_1mh4o_1","w-full":"_w-full_1mh4o_1","!min-w-0":"_!min-w-0_1mh4o_1","min-w-0":"_min-w-0_1mh4o_1","min-w-10":"_min-w-10_1mh4o_1","min-w-96":"_min-w-96_1mh4o_1","min-w-[300px]":"_min-w-[300px]_1mh4o_1","max-w-[400px]":"_max-w-[400px]_1mh4o_1","max-w-[600px]":"_max-w-[600px]_1mh4o_1","max-w-full":"_max-w-full_1mh4o_1","max-w-none":"_max-w-none_1mh4o_1","flex-1":"_flex-1_1mh4o_1","flex-shrink":"_flex-shrink_1mh4o_1","flex-shrink-0":"_flex-shrink-0_1mh4o_1",shrink:"_shrink_1mh4o_1","flex-grow":"_flex-grow_1mh4o_1",grow:"_grow_1mh4o_1","-translate-y-1/2":"_-translate-y-1/2_1mh4o_1","rotate-180":"_rotate-180_1mh4o_1","scale-110":"_scale-110_1mh4o_1",transform:"_transform_1mh4o_1","cursor-ew-resize":"_cursor-ew-resize_1mh4o_1","cursor-move":"_cursor-move_1mh4o_1","cursor-not-allowed":"_cursor-not-allowed_1mh4o_1","cursor-ns-resize":"_cursor-ns-resize_1mh4o_1","cursor-pointer":"_cursor-pointer_1mh4o_1",resize:"_resize_1mh4o_1","grid-cols-3":"_grid-cols-3_1mh4o_1","flex-col":"_flex-col_1mh4o_1","flex-wrap":"_flex-wrap_1mh4o_1","flex-nowrap":"_flex-nowrap_1mh4o_1","items-center":"_items-center_1mh4o_1","items-stretch":"_items-stretch_1mh4o_1","justify-start":"_justify-start_1mh4o_1","justify-end":"_justify-end_1mh4o_1","justify-center":"_justify-center_1mh4o_1","justify-between":"_justify-between_1mh4o_1","gap-1":"_gap-1_1mh4o_1","gap-2":"_gap-2_1mh4o_1","gap-3":"_gap-3_1mh4o_1","gap-x-2":"_gap-x-2_1mh4o_1","gap-x-4":"_gap-x-4_1mh4o_1","gap-y-0":"_gap-y-0_1mh4o_1","gap-y-1":"_gap-y-1_1mh4o_1","space-x-1":"_space-x-1_1mh4o_1","space-x-2":"_space-x-2_1mh4o_1","self-center":"_self-center_1mh4o_1","overflow-auto":"_overflow-auto_1mh4o_1","overflow-hidden":"_overflow-hidden_1mh4o_1","overflow-x-auto":"_overflow-x-auto_1mh4o_1","overflow-y-auto":"_overflow-y-auto_1mh4o_70","overflow-x-hidden":"_overflow-x-hidden_1mh4o_1","overflow-y-hidden":"_overflow-y-hidden_1mh4o_1","scroll-smooth":"_scroll-smooth_1mh4o_1",truncate:"_truncate_1mh4o_1","overflow-ellipsis":"_overflow-ellipsis_1mh4o_1","whitespace-normal":"_whitespace-normal_1mh4o_1","whitespace-nowrap":"_whitespace-nowrap_1mh4o_1","whitespace-pre-wrap":"_whitespace-pre-wrap_1mh4o_1",rounded:"_rounded_1mh4o_1","rounded-2xl":"_rounded-2xl_1mh4o_1","rounded-full":"_rounded-full_1mh4o_1","rounded-lg":"_rounded-lg_1mh4o_1","rounded-md":"_rounded-md_1mh4o_1","rounded-sm":"_rounded-sm_1mh4o_1","!rounded-l-none":"_!rounded-l-none_1mh4o_1","!rounded-r-none":"_!rounded-r-none_1mh4o_1","rounded-b-lg":"_rounded-b-lg_1mh4o_1","rounded-l-lg":"_rounded-l-lg_1mh4o_1","rounded-r-lg":"_rounded-r-lg_1mh4o_1","rounded-t-2xl":"_rounded-t-2xl_1mh4o_1","rounded-t-lg":"_rounded-t-lg_1mh4o_1","rounded-t-md":"_rounded-t-md_1mh4o_1","rounded-br":"_rounded-br_1mh4o_1","rounded-tl":"_rounded-tl_1mh4o_1","!border-0":"_!border-0_1mh4o_1",border:"_border_1mh4o_1","border-2":"_border-2_1mh4o_1","border-b":"_border-b_1mh4o_1","border-l":"_border-l_1mh4o_1","border-l-0":"_border-l-0_1mh4o_1","border-r":"_border-r_1mh4o_1","border-solid":"_border-solid_1mh4o_1","border-dashed":"_border-dashed_1mh4o_1","border-none":"_border-none_1mh4o_1","border-blue-500":"_border-blue-500_1mh4o_1","border-blue-600":"_border-blue-600_1mh4o_1","border-blue-700":"_border-blue-700_1mh4o_1","border-gray-200":"_border-gray-200_1mh4o_1","border-gray-300":"_border-gray-300_1mh4o_1","border-purple-500":"_border-purple-500_1mh4o_1","border-slate-200":"_border-slate-200_1mh4o_1","border-slate-700":"_border-slate-700_1mh4o_1","border-transparent":"_border-transparent_1mh4o_1","bg-amber-300":"_bg-amber-300_1mh4o_1","bg-amber-950":"_bg-amber-950_1mh4o_1","bg-black":"_bg-black_1mh4o_1","bg-blue-200":"_bg-blue-200_1mh4o_1","bg-blue-300":"_bg-blue-300_1mh4o_1","bg-blue-600":"_bg-blue-600_1mh4o_1","bg-blue-900":"_bg-blue-900_1mh4o_1","bg-blue-950":"_bg-blue-950_1mh4o_1","bg-cyan-950":"_bg-cyan-950_1mh4o_1","bg-emerald-200":"_bg-emerald-200_1mh4o_1","bg-emerald-950":"_bg-emerald-950_1mh4o_1","bg-fuchsia-950":"_bg-fuchsia-950_1mh4o_1","bg-gray-100":"_bg-gray-100_1mh4o_1","bg-gray-200":"_bg-gray-200_1mh4o_1","bg-gray-400":"_bg-gray-400_1mh4o_1","bg-gray-50":"_bg-gray-50_1mh4o_1","bg-gray-500":"_bg-gray-500_1mh4o_1","bg-gray-800":"_bg-gray-800_1mh4o_1","bg-green-200":"_bg-green-200_1mh4o_1","bg-green-300":"_bg-green-300_1mh4o_1","bg-green-900":"_bg-green-900_1mh4o_1","bg-green-950":"_bg-green-950_1mh4o_1","bg-indigo-950":"_bg-indigo-950_1mh4o_1","bg-lime-300":"_bg-lime-300_1mh4o_1","bg-lime-950":"_bg-lime-950_1mh4o_1","bg-orange-900":"_bg-orange-900_1mh4o_1","bg-orange-950":"_bg-orange-950_1mh4o_1","bg-purple-700":"_bg-purple-700_1mh4o_1","bg-purple-900":"_bg-purple-900_1mh4o_1","bg-purple-950":"_bg-purple-950_1mh4o_1","bg-red-200":"_bg-red-200_1mh4o_1","bg-red-300":"_bg-red-300_1mh4o_1","bg-red-900":"_bg-red-900_1mh4o_1","bg-red-950":"_bg-red-950_1mh4o_1","bg-rose-950":"_bg-rose-950_1mh4o_1","bg-sky-300":"_bg-sky-300_1mh4o_1","bg-sky-50":"_bg-sky-50_1mh4o_1","bg-sky-800":"_bg-sky-800_1mh4o_1","bg-sky-900":"_bg-sky-900_1mh4o_1","bg-sky-950":"_bg-sky-950_1mh4o_1","bg-slate-100":"_bg-slate-100_1mh4o_1","bg-slate-300":"_bg-slate-300_1mh4o_1","bg-slate-400":"_bg-slate-400_1mh4o_1","bg-slate-500":"_bg-slate-500_1mh4o_1","bg-slate-600":"_bg-slate-600_1mh4o_1","bg-slate-700":"_bg-slate-700_1mh4o_1","bg-slate-800":"_bg-slate-800_1mh4o_1","bg-slate-900":"_bg-slate-900_1mh4o_1","bg-slate-950":"_bg-slate-950_1mh4o_1","bg-teal-200":"_bg-teal-200_1mh4o_1","bg-teal-500":"_bg-teal-500_1mh4o_1","bg-teal-950":"_bg-teal-950_1mh4o_1","bg-transparent":"_bg-transparent_1mh4o_1","bg-violet-950":"_bg-violet-950_1mh4o_1","bg-white":"_bg-white_1mh4o_1","bg-yellow-300":"_bg-yellow-300_1mh4o_1","bg-yellow-800":"_bg-yellow-800_1mh4o_1","bg-yellow-950":"_bg-yellow-950_1mh4o_1","bg-opacity-70":"_bg-opacity-70_1mh4o_1","bg-opacity-80":"_bg-opacity-80_1mh4o_1","bg-opacity-90":"_bg-opacity-90_1mh4o_1","!bg-none":"_!bg-none_1mh4o_1","object-contain":"_object-contain_1mh4o_1","object-cover":"_object-cover_1mh4o_1","!p-2":"_!p-2_1mh4o_1","p-0":"_p-0_1mh4o_1","p-1":"_p-1_1mh4o_1","p-2":"_p-2_1mh4o_1","p-3":"_p-3_1mh4o_1","p-4":"_p-4_1mh4o_1","p-8":"_p-8_1mh4o_1","!py-0":"_!py-0_1mh4o_1","px-1":"_px-1_1mh4o_1","px-1.5":"_px-1.5_1mh4o_1","px-12":"_px-12_1mh4o_1","px-16":"_px-16_1mh4o_1","px-2":"_px-2_1mh4o_1","px-2.5":"_px-2.5_1mh4o_1","px-3":"_px-3_1mh4o_1","px-4":"_px-4_1mh4o_1","px-6":"_px-6_1mh4o_1","px-8":"_px-8_1mh4o_1","py-0":"_py-0_1mh4o_1","py-0.5":"_py-0.5_1mh4o_1","py-1":"_py-1_1mh4o_1","py-1.5":"_py-1.5_1mh4o_1","py-14":"_py-14_1mh4o_1","py-2":"_py-2_1mh4o_1","py-3":"_py-3_1mh4o_1","py-4":"_py-4_1mh4o_1","py-8":"_py-8_1mh4o_1","pl-1":"_pl-1_1mh4o_1","pt-3":"_pt-3_1mh4o_1","text-left":"_text-left_1mh4o_1","text-center":"_text-center_1mh4o_1","text-[.7rem]":"_text-[.7rem]_1mh4o_1","text-[1rem]":"_text-[1rem]_1mh4o_1","text-base":"_text-base_1mh4o_1","text-lg":"_text-lg_1mh4o_1","text-sm":"_text-sm_1mh4o_1","text-xs":"_text-xs_1mh4o_1","font-bold":"_font-bold_1mh4o_1","font-medium":"_font-medium_1mh4o_1","font-semibold":"_font-semibold_1mh4o_1",uppercase:"_uppercase_1mh4o_1",italic:"_italic_1mh4o_1","leading-[1.2rem]":"_leading-[1.2rem]_1mh4o_1","!text-green-900":"_!text-green-900_1mh4o_1","!text-red-900":"_!text-red-900_1mh4o_1","!text-sky-900":"_!text-sky-900_1mh4o_1","!text-white":"_!text-white_1mh4o_1","!text-yellow-900":"_!text-yellow-900_1mh4o_1","text-amber-400":"_text-amber-400_1mh4o_1","text-amber-900":"_text-amber-900_1mh4o_1","text-blue-300":"_text-blue-300_1mh4o_1","text-blue-400":"_text-blue-400_1mh4o_1","text-blue-600":"_text-blue-600_1mh4o_1","text-blue-900":"_text-blue-900_1mh4o_1","text-cyan-400":"_text-cyan-400_1mh4o_1","text-emerald-400":"_text-emerald-400_1mh4o_1","text-fuchsia-400":"_text-fuchsia-400_1mh4o_1","text-gray-300":"_text-gray-300_1mh4o_1","text-gray-400":"_text-gray-400_1mh4o_1","text-gray-500":"_text-gray-500_1mh4o_1","text-gray-600":"_text-gray-600_1mh4o_1","text-gray-700":"_text-gray-700_1mh4o_1","text-gray-900":"_text-gray-900_1mh4o_1","text-green-300":"_text-green-300_1mh4o_1","text-green-400":"_text-green-400_1mh4o_1","text-green-700":"_text-green-700_1mh4o_1","text-green-900":"_text-green-900_1mh4o_1","text-indigo-400":"_text-indigo-400_1mh4o_1","text-lime-400":"_text-lime-400_1mh4o_1","text-lime-900":"_text-lime-900_1mh4o_1","text-orange-400":"_text-orange-400_1mh4o_1","text-purple-200":"_text-purple-200_1mh4o_1","text-purple-300":"_text-purple-300_1mh4o_1","text-purple-400":"_text-purple-400_1mh4o_1","text-red-400":"_text-red-400_1mh4o_1","text-red-500":"_text-red-500_1mh4o_1","text-red-800":"_text-red-800_1mh4o_1","text-red-900":"_text-red-900_1mh4o_1","text-rose-400":"_text-rose-400_1mh4o_1","text-sky-400":"_text-sky-400_1mh4o_1","text-sky-500":"_text-sky-500_1mh4o_1","text-sky-600":"_text-sky-600_1mh4o_1","text-sky-900":"_text-sky-900_1mh4o_1","text-slate-200":"_text-slate-200_1mh4o_1","text-slate-300":"_text-slate-300_1mh4o_1","text-slate-400":"_text-slate-400_1mh4o_1","text-slate-50":"_text-slate-50_1mh4o_1","text-slate-500":"_text-slate-500_1mh4o_1","text-slate-600":"_text-slate-600_1mh4o_1","text-slate-800":"_text-slate-800_1mh4o_1","text-slate-900":"_text-slate-900_1mh4o_1","text-teal-200":"_text-teal-200_1mh4o_1","text-teal-400":"_text-teal-400_1mh4o_1","text-teal-800":"_text-teal-800_1mh4o_1","text-violet-400":"_text-violet-400_1mh4o_1","text-white":"_text-white_1mh4o_1","text-yellow-300":"_text-yellow-300_1mh4o_1","text-yellow-400":"_text-yellow-400_1mh4o_1","text-yellow-600":"_text-yellow-600_1mh4o_1","text-zinc-500":"_text-zinc-500_1mh4o_1","text-zinc-800":"_text-zinc-800_1mh4o_1","line-through":"_line-through_1mh4o_1","opacity-0":"_opacity-0_1mh4o_1","opacity-100":"_opacity-100_1mh4o_1","opacity-20":"_opacity-20_1mh4o_1","opacity-50":"_opacity-50_1mh4o_1","opacity-60":"_opacity-60_1mh4o_1","opacity-70":"_opacity-70_1mh4o_1","opacity-80":"_opacity-80_1mh4o_1","opacity-90":"_opacity-90_1mh4o_1",shadow:"_shadow_1mh4o_1","shadow-none":"_shadow-none_1mh4o_1","shadow-xl":"_shadow-xl_1mh4o_1","outline-none":"_outline-none_1mh4o_1",outline:"_outline_1mh4o_1","outline-offset-0":"_outline-offset-0_1mh4o_1",blur:"_blur_1mh4o_1",filter:"_filter_1mh4o_1",transition:"_transition_1mh4o_1","transition-all":"_transition-all_1mh4o_1","transition-opacity":"_transition-opacity_1mh4o_1","duration-300":"_duration-300_1mh4o_1","danx-app":"_danx-app_1mh4o_4","q-tab":"_q-tab_1mh4o_4","q-table__card":"_q-table__card_1mh4o_7","q-checkbox__inner":"_q-checkbox__inner_1mh4o_11","q-toolbar":"_q-toolbar_1mh4o_14","q-notification__actions":"_q-notification__actions_1mh4o_19","q-date":"_q-date_1mh4o_22","q-date__view":"_q-date__view_1mh4o_25","q-field":"_q-field_1mh4o_28","q-field--auto-height":"_q-field--auto-height_1mh4o_28","q-field__control":"_q-field__control_1mh4o_28","q-field__native":"_q-field__native_1mh4o_31","q-field--labeled":"_q-field--labeled_1mh4o_35","q-field__control-container":"_q-field__control-container_1mh4o_35","q-textarea":"_q-textarea_1mh4o_38","q-field__marginal":"_q-field__marginal_1mh4o_41","q-field__input":"_q-field__input_1mh4o_41","q-field__label":"_q-field__label_1mh4o_41","q-btn":"_q-btn_1mh4o_48","q-item":"_q-item_1mh4o_56","q-tab-panels":"_q-tab-panels_1mh4o_60","q-panel":"_q-panel_1mh4o_64",scroll:"_scroll_1mh4o_67","dx-dialog":"_dx-dialog_1mh4o_74","q-card__section--vert":"_q-card__section--vert_1mh4o_74","q-banner":"_q-banner_1mh4o_78",app:"_app_1mh4o_1","main-layout":"_main-layout_1mh4o_1","is-disabled":"_is-disabled_1mh4o_95","disable-all-transitions":"_disable-all-transitions_1mh4o_100","v-enter-active":"_v-enter-active_1mh4o_104","v-leave-active":"_v-leave-active_1mh4o_105","v-enter-from":"_v-enter-from_1mh4o_109","v-leave-to":"_v-leave-to_1mh4o_110","dx-scrollbar":"_dx-scrollbar_1mh4o_114","dx-scrollbar-dark":"_dx-scrollbar-dark_1mh4o_157","dx-scrollbar-hidden":"_dx-scrollbar-hidden_1mh4o_199","dx-code-viewer":"_dx-code-viewer_1mh4o_207","is-collapsed":"_is-collapsed_1mh4o_211","code-collapsed":"_code-collapsed_1mh4o_214","code-collapsed-preview":"_code-collapsed-preview_1mh4o_225","collapse-toggle":"_collapse-toggle_1mh4o_231","collapse-header":"_collapse-header_1mh4o_234","code-content":"_code-content_1mh4o_243","is-collapsible":"_is-collapsible_1mh4o_257","code-footer":"_code-footer_1mh4o_267","has-error":"_has-error_1mh4o_273","language-badge":"_language-badge_1mh4o_277","syntax-key":"_syntax-key_1mh4o_284","syntax-string":"_syntax-string_1mh4o_287","syntax-number":"_syntax-number_1mh4o_290","syntax-boolean":"_syntax-boolean_1mh4o_293","syntax-null":"_syntax-null_1mh4o_296","syntax-punctuation":"_syntax-punctuation_1mh4o_299","is-editable":"_is-editable_1mh4o_302","dx-markdown-content":"_dx-markdown-content_1mh4o_316","task-list":"_task-list_1mh4o_406","task-list-item":"_task-list-item_1mh4o_410","footnote-ref":"_footnote-ref_1mh4o_491",footnotes:"_footnotes_1mh4o_499","footnote-list":"_footnote-list_1mh4o_506","footnote-item":"_footnote-item_1mh4o_509","footnote-backref":"_footnote-backref_1mh4o_512","dx-action-table":"_dx-action-table_1mh4o_517","dx-column-shrink":"_dx-column-shrink_1mh4o_517","category-toggle":"_category-toggle_1mh4o_521","has-visible-columns":"_has-visible-columns_1mh4o_524","hover:scale-105":"_hover:scale-105_1mh4o_1","hover:bg-amber-400":"_hover:bg-amber-400_1mh4o_1","hover:bg-blue-200":"_hover:bg-blue-200_1mh4o_1","hover:bg-blue-400":"_hover:bg-blue-400_1mh4o_1","hover:bg-blue-800":"_hover:bg-blue-800_1mh4o_1","hover:bg-gray-200":"_hover:bg-gray-200_1mh4o_1","hover:bg-green-100":"_hover:bg-green-100_1mh4o_1","hover:bg-green-400":"_hover:bg-green-400_1mh4o_1","hover:bg-green-800":"_hover:bg-green-800_1mh4o_1","hover:bg-lime-400":"_hover:bg-lime-400_1mh4o_1","hover:bg-orange-800":"_hover:bg-orange-800_1mh4o_1","hover:bg-purple-600":"_hover:bg-purple-600_1mh4o_1","hover:bg-purple-800":"_hover:bg-purple-800_1mh4o_1","hover:bg-red-100":"_hover:bg-red-100_1mh4o_1","hover:bg-red-200":"_hover:bg-red-200_1mh4o_1","hover:bg-red-400":"_hover:bg-red-400_1mh4o_1","hover:bg-sky-400":"_hover:bg-sky-400_1mh4o_1","hover:bg-sky-800":"_hover:bg-sky-800_1mh4o_1","hover:bg-sky-900":"_hover:bg-sky-900_1mh4o_1","hover:bg-slate-200":"_hover:bg-slate-200_1mh4o_1","hover:bg-slate-300":"_hover:bg-slate-300_1mh4o_1","hover:bg-slate-400":"_hover:bg-slate-400_1mh4o_1","hover:bg-slate-600":"_hover:bg-slate-600_1mh4o_1","hover:bg-slate-700":"_hover:bg-slate-700_1mh4o_1","hover:bg-slate-800":"_hover:bg-slate-800_1mh4o_1","hover:bg-slate-900":"_hover:bg-slate-900_1mh4o_1","hover:bg-teal-400":"_hover:bg-teal-400_1mh4o_1","hover:bg-teal-600":"_hover:bg-teal-600_1mh4o_1","hover:bg-yellow-700":"_hover:bg-yellow-700_1mh4o_1","hover:text-blue-300":"_hover:text-blue-300_1mh4o_1","hover:text-blue-500":"_hover:text-blue-500_1mh4o_1","hover:text-blue-600":"_hover:text-blue-600_1mh4o_1","hover:text-gray-300":"_hover:text-gray-300_1mh4o_1","hover:text-gray-700":"_hover:text-gray-700_1mh4o_1","hover:text-sky-600":"_hover:text-sky-600_1mh4o_1","hover:text-white":"_hover:text-white_1mh4o_1","hover:opacity-100":"_hover:opacity-100_1mh4o_1","hover:opacity-70":"_hover:opacity-70_1mh4o_1","hover:outline-4":"_hover:outline-4_1mh4o_1","focus:bg-blue-200":"_focus:bg-blue-200_1mh4o_1","focus:outline-4":"_focus:outline-4_1mh4o_1","focus:outline-blue-200":"_focus:outline-blue-200_1mh4o_1",group:"_group_1mh4o_1","group-hover:opacity-100":"_group-hover:opacity-100_1mh4o_1"},z3={class:"flex items-center flex-nowrap"},q3=["onClick"],H3={class:"text-xs"},j3=qe({__name:"VisibleColumnsToggleButtons",props:{columns:{type:Array,required:!0},hiddenColumnNames:{type:Array,required:!0}},emits:["update:hidden-column-names"],setup(t,{emit:e}){const n=e,r=t,s=o.ref(""),i=o.computed(()=>[...new Set(r.columns.map(_=>_.category)).values()]);function l(_){return r.columns.filter(g=>g.category===_)}function a(_){return l(_).filter(g=>!g.required).map(g=>g.name).some(g=>!r.hiddenColumnNames.includes(g))}function c(_){let g=l(_).filter(p=>!p.required);const m=g.filter(p=>!r.hiddenColumnNames.includes(p.name));return m.length===0?!1:m.length===g.length?!0:null}function u(_,g){_=_.filter(p=>!p.required);let m=[...r.hiddenColumnNames];g?m=m.filter(p=>!_.map(y=>y.name).includes(p)):m=[...new Set([...m,..._.map(p=>p.name)])],n("update:hidden-column-names",m)}function d(_,g){if(r.columns.find(p=>p.name===_).required)return;g=g??r.hiddenColumnNames.includes(_);let m=[...r.hiddenColumnNames];g?m=bo(m,_):(m.push(_),m=[...new Set(m)]),n("update:hidden-column-names",m)}const f=o.useCssModule();function h(_){return f["category-toggle"]+(a(_)?" "+f["has-visible-columns"]:"")}return(_,g)=>{const m=o.resolveComponent("QCheckbox"),p=o.resolveComponent("QList"),y=o.resolveComponent("QMenu");return o.openBlock(),o.createElementBlock("div",z3,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,b=>(o.openBlock(),o.createElementBlock("div",{key:b,class:o.normalizeClass(h(b))},[o.createVNode(m,{"toggle-indeterminate":"",size:"20px","model-value":c(b),class:"mr-2 cb-white-border",onClick:w=>u(l(b),!a(b))},null,8,["model-value","onClick"]),o.createElementVNode("div",null,o.toDisplayString(b),1),o.createVNode(o.unref(Ju),{class:o.normalizeClass(["ml-2 w-5 transition-all",{"rotate-180":s.value===b}])},null,8,["class"]),o.createVNode(y,{"onUpdate:modelValue":w=>s.value=w?b:""},{default:o.withCtx(()=>[o.createVNode(p,null,{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l(b),w=>(o.openBlock(),o.createElementBlock("div",{key:w,class:"flex items-center flex-nowrap px-2 py-3 cursor-pointer",onClick:C=>d(w.name)},[o.createVNode(m,{"model-value":!t.hiddenColumnNames.includes(w.name),class:"mr-3 cb-white-border",size:"20px",color:w.required?"gray-400":"blue-600",disable:w.required,onClick:C=>d(w.name)},null,8,["model-value","color","disable","onClick"]),o.createElementVNode("div",H3,o.toDisplayString(w.label),1)],8,q3))),128))]),_:2},1024)]),_:2},1032,["onUpdate:modelValue"])],2))),128))])}}},[["__cssModules",{$style:U3}]]);function h0(t){o.onMounted(()=>{const e=t.value.$el.getElementsByClassName("q-table__middle")[0];e.addEventListener("scroll",n);function n({target:r}){r.scrollTop>0?e.classList.add("is-scrolling-y"):e.classList.remove("is-scrolling-y"),r.scrollLeft>0?e.classList.add("is-scrolling-x"):e.classList.remove("is-scrolling-x")}})}function m0(t,e){if(!t.sortBy)return null;const n=e.find(r=>r.name===t.sortBy);return n?[{column:n.sortBy||n.name,expression:n.sortByExpression||void 0,order:t.descending?"desc":"asc"}]:null}function p0(t,e=null){const n={},r=u1("filter",t);if(r){const s=JSON.parse(r);Object.keys(s).forEach(i=>{(!e||e.includes(i))&&(n[i]=s[i])})}return n}function G3(t,e){let n=!1;const r=`dx-${t}-pager`,s=o.shallowRef(null),i=o.ref({}),l=o.ref({}),a=o.ref(!1),c=o.shallowRef([]),u=o.ref(!1),d=o.ref(!1),f=o.shallowRef(null),h=o.shallowRef(null),_=o.shallowRef(""),g=o.ref({}),m=o.ref(!1),p=o.ref(!1),y=o.computed(()=>Object.keys(i.value).filter(D=>i.value[D]!==void 0).length),b={__sort:null,sortBy:null,descending:!1,page:0,rowsNumber:0,rowsPerPage:50},w=o.shallowRef(b),C=o.computed(()=>({perPage:w.value.rowsPerPage,page:w.value.page,filter:{...i.value,...l.value},sort:w.value.__sort||void 0}));o.watch(C,()=>{X(),E()}),o.watch(i,()=>{X(),k()}),o.watch(c,k),e.refreshFilters&&o.watch(i,B);async function E(){if(!(!n||e.isListEnabled===!1)){u.value=!0;try{$(await e.routes.list(C.value))}catch{}finally{u.value=!1}}}async function k(){if(!e.routes.summary||!n||e.isSummaryEnabled===!1)return;d.value=!0;const D={id:null,...i.value,...l.value};c.value.length&&(D.id=c.value.map(v=>v.id));try{f.value=await e.routes.summary(D)}catch{}finally{d.value=!1}}async function S(){await Promise.all([E(),k()])}function T(D){return p.value||B(),g.value[D]||[]}async function B(){if(!(m.value||!e.routes.fieldOptions||e.isFieldOptionsEnabled===!1)){m.value=!0;try{g.value=await e.routes.fieldOptions()||{},p.value=!0}catch{}finally{m.value=!1}}}function N(D,v=null){var G;if(e.urlPattern&&D.match(e.urlPattern)){const Se=(G=v==null?void 0:v.value)==null?void 0:G.map(Xe=>Xe.fields.map(yi=>yi.name)).flat(),Me=p0(D,Se);Object.keys(Me).length>0&&(i.value=Me,Y("filter",i.value))}}function $(D){let v=[],G;Array.isArray(D)?(v=D,G={total:D.length}):D.data&&(v=D.data,G=D.meta),G&&G.total!==w.value.rowsNumber&&(w.value.rowsNumber=G.total),v=v.map(Se=>(Se.isSaving=Se.isSaving===void 0?!1:Se.isSaving,ie(Se))),s.value={data:v,meta:G}}function A(){w.value=b}function F(D){w.value={...w.value,...D}}function I(D){c.value=D}function q(){c.value=[]}async function V(D,v=void 0){var G,Se,Me;if(!e.routes.more||e.isListEnabled===!1)return!1;try{const Xe=await e.routes.more({page:D+1,perPage:v,filter:{...i.value,...l.value}});if(Xe&&Xe.length>0)return $({data:[...((G=s.value)==null?void 0:G.data)||[],...Xe],meta:{total:((Me=(Se=s.value)==null?void 0:Se.meta)==null?void 0:Me.total)||0}}),!0}catch{}return!1}async function Z(){return Promise.all([E(),k(),B(),ut()])}function Y(D,v){const G=kt(r)||{};G[D]=v,wt(r,G)}function ye(){const D=kt(r);D?(i.value={...D.filter,...i.value},w.value=D.pagination):i.value={...e.filterDefaults,...i.value},setTimeout(()=>{u.value||E(),d.value||k(),m.value||B()},1)}async function X(){const D={filter:i.value,pagination:{...w.value,page:1}};wt(r,D)}async function ut(){try{const v=await Ki("active-item",async()=>{if(!(!h.value||!e.routes.details||e.isDetailsEnabled===!1))return await e.routes.details(h.value)})();if(v===void 0)return;if(!v||!v.__type||!v.id)return console.error("Invalid response from details route: All responses must include a __type and id field. result =",v);h.value=ie(v)}catch{}}e.routes.details&&o.watch(()=>h.value,async(D,v)=>{D!=null&&D.id&&(v==null?void 0:v.id)!=D.id&&await ut()});function Ke(D,v=""){var G;(D==null?void 0:D.id)==((G=h.value)==null?void 0:G.id)&&v===_.value||(dn(D),_.value=v,D!=null&&D.id&&_1({id:D.id,panel:v}))}function dn(D){h.value=D&&ie(D),D!=null&&D.id||_1({})}async function ze(D){var Xe,yi;if(!((Xe=s.value)!=null&&Xe.data))return;const v=s.value.data.findIndex(wi=>{var Oo;return wi.id===((Oo=h.value)==null?void 0:Oo.id)});if(v==null)return;const G=v+D,Me=await Ki("getNextItem",async()=>{var wi,Oo,p1;return(wi=s.value)!=null&&wi.data?G<0?w.value.page>1?(w.value={...w.value,page:w.value.page-1},await Qi(u,!1),s.value.data.length-1):-1:G>=s.value.data.length?w.value.page<(((p1=(Oo=s.value)==null?void 0:Oo.meta)==null?void 0:p1.last_page)||1)?(w.value={...w.value,page:w.value.page+1},await Qi(u,!1),0):-1:G:-1})();Me!==void 0&&Me>=0&&(h.value=(yi=s.value)==null?void 0:yi.data[Me])}function dt(D){i.value=D||{}}async function zt(D){e.routes.export&&await e.routes.export(D)}function bi(D){e={...e,...D}}function nI(D){const v=m1();if(n=!0,D&&(e={...e,...D}),ye(),e.routes.details){const{params:G,meta:Se,name:Me}=v.currentRoute.value;Me===t&&(v.afterEach(Xe=>{Xe.name===Me&&h1(Xe.params,Xe.meta)}),h1(G,Se))}}function _1(D){const v=m1();let{name:G}=v.currentRoute.value;if(G=Array.isArray(G)?G[0]:G,!G){console.error("No route name found for list controls",t);return}const Se=v.resolve({name:G,params:D}).href,Me=v.currentRoute.value.fullPath;Me!==Se&&!Me.startsWith(Se)&&v.push({name:G,params:D})}function h1(D,v){const G=Array.isArray(D==null?void 0:D.id)?D.id[0]:D==null?void 0:D.id;if(G&&v.type){const Se=Array.isArray(D==null?void 0:D.panel)?D.panel[0]:D==null?void 0:D.panel;Ke({id:G,__type:""+v.type},Se||_.value||"")}}function m1(){if(!te.value.router)throw new Error("Vue Router must be configured in danxOptions");return te.value.router}return{name:t,label:e.label||t,pagedItems:s,activeFilter:i,globalFilter:l,filterActiveCount:y,showFilters:a,summary:f,selectedRows:c,isLoadingList:u,isLoadingFieldOptions:m,hasLoadedFieldOptions:p,isLoadingSummary:d,pager:C,pagination:w,activeItem:h,activePanel:_,initialize:nI,setOptions:bi,resetPaging:A,setPagination:F,setSelectedRows:I,clearSelectedRows:q,loadList:E,loadSummary:k,loadListAndSummary:S,loadMore:V,loadFieldOptions:B,getActiveItemDetails:ut,refreshAll:Z,exportList:zt,setActiveItem:dn,getNextItem:ze,activatePanel:Ke,setActiveFilter:dt,applyFilterFromUrl:N,getFieldOptions:T}}const W3={key:1,class:"mt-2"},Z3={class:"text-xs font-bold"},ga=o.defineComponent({__name:"FilterableField",props:{field:{},modelValue:{},loading:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t;function s(i){let l=i||void 0;switch(r.field.type){case"multi-select":l=i&&i.length>0?i:void 0;break;case"single-select":case"boolean":l=i===null?void 0:i;break}n("update:model-value",l)}return(i,l)=>{var a;return o.openBlock(),o.createElementBlock("div",null,[i.field.type==="text"?(o.openBlock(),o.createBlock(o.unref(wn),{key:0,"model-value":i.modelValue,label:i.field.label,placeholder:i.field.placeholder,debounce:1e3,"onUpdate:modelValue":s},null,8,["model-value","label","placeholder"])):i.field.type==="multi-select"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[((a=i.field.options)==null?void 0:a.length)>0||i.loading?(o.openBlock(),o.createBlock(o.unref(or),{key:0,"model-value":i.modelValue,options:i.field.options,clearable:i.field.clearable===void 0?!0:i.field.clearable,multiple:"",loading:i.loading,"chip-limit":1,filterable:"",placeholder:i.field.placeholder,label:i.field.label,"onUpdate:modelValue":s},null,8,["model-value","options","clearable","loading","placeholder","label"])):(o.openBlock(),o.createElementBlock("div",W3,[o.createElementVNode("div",Z3,o.toDisplayString(i.field.label),1),l[0]||(l[0]=o.createElementVNode("div",{class:"text-sm ml-3 py-2"}," No Available Options ",-1))]))],64)):i.field.type==="single-select"?(o.openBlock(),o.createBlock(o.unref(or),{key:2,"model-value":i.modelValue,options:i.field.options,clearable:i.field.clearable===void 0?!0:i.field.clearable,placeholder:i.field.placeholder,loading:i.loading,label:i.field.label,"onUpdate:modelValue":s},null,8,["model-value","options","clearable","placeholder","loading","label"])):i.field.type==="date"?(o.openBlock(),o.createBlock(o.unref(kl),{key:3,"model-value":i.modelValue,label:i.field.label,clearable:i.field.clearable===void 0?!0:i.field.clearable,class:"mt-2","onUpdate:modelValue":s},null,8,["model-value","label","clearable"])):i.field.type==="date-range"?(o.openBlock(),o.createBlock(o.unref(xl),{key:4,"model-value":i.modelValue,label:i.field.label,inline:!!i.field.inline,clearable:i.field.clearable===void 0?!0:i.field.clearable,"with-time":"",class:"mt-2 reactive","onUpdate:modelValue":s},null,8,["model-value","label","inline","clearable"])):i.field.type==="number-range"?(o.openBlock(),o.createBlock(o.unref(_s),{key:5,"model-value":i.modelValue,label:i.field.label,class:"mt-2",debounce:1e3,"onUpdate:modelValue":s},null,8,["model-value","label"])):i.field.type==="currency-range"?(o.openBlock(),o.createBlock(o.unref(_s),{key:6,"model-value":i.modelValue,label:i.field.label,class:"mt-2",debounce:1e3,currency:"","onUpdate:modelValue":s},null,8,["model-value","label"])):i.field.type==="percent-range"?(o.openBlock(),o.createBlock(o.unref(_s),{key:7,"model-value":i.modelValue,label:i.field.label,class:"mt-2",debounce:1e3,percent:"","onUpdate:modelValue":s},null,8,["model-value","label"])):i.field.type==="boolean"?(o.openBlock(),o.createBlock(o.unref(yl),{key:8,field:i.field,"model-value":i.modelValue,class:"mt-2","toggle-indeterminate":i.field.toggleIndeterminate||!1,"label-class":"text-xs font-bold","onUpdate:modelValue":s},null,8,["field","model-value","toggle-indeterminate"])):i.field.type==="multi-keywords"?(o.openBlock(),o.createBlock(o.unref(Nd),{key:9,"model-value":i.modelValue,field:i.field,"onUpdate:modelValue":s},null,8,["model-value","field"])):i.field.type==="select-with-children"?(o.openBlock(),o.createBlock(o.unref(Id),{key:10,"model-value":i.modelValue,options:i.field.options,loading:i.loading,label:i.field.label,placeholder:i.field.placeholder,"onUpdate:modelValue":s},null,8,["model-value","options","loading","label","placeholder"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:11},[o.createTextVNode(' Field "'+o.toDisplayString(i.field.name)+'": Unknown filter type '+o.toDisplayString(i.field.type),1)],64))])}}}),Y3={class:"flex items-center flex-nowrap flex-grow"},Q3={class:"whitespace-nowrap flex-grow text-left text-sm font-bold"},g0={__name:"FilterItem",props:{name:{type:String,required:!0},count:{type:Number,required:!0}},setup(t){return(e,n)=>{const r=o.resolveComponent("QBadge"),s=o.resolveComponent("QExpansionItem");return o.openBlock(),o.createBlock(s,null,{header:o.withCtx(()=>[o.createElementVNode("div",Y3,[o.createElementVNode("div",Q3,o.toDisplayString(t.name),1),o.createVNode(r,{label:t.count,rounded:"",class:o.normalizeClass(["ml-2 transition-all",{"bg-gray-400":!t.count,"bg-blue-600":t.count}])},null,8,["label","class"])])]),default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3})}}},K3={class:"px-4 py-2 max-w-full"},b0={__name:"FilterList",props:{filters:{type:Array,required:!0},activeFilter:{type:Object,required:!0},loading:Boolean},emits:["update:filter"],setup(t,{emit:e}){const n=e,r=t,s=o.computed(()=>{const l={};for(const a of r.filters)l[a.name]=a.fields.filter(c=>r.activeFilter[c.name]!==void 0).length;return l});function i(l,a){let c={[l.name]:a};l.filterBy&&(c=l.filterBy(a)),n("update:filter",{...r.activeFilter,...c})}return(l,a)=>{const c=o.resolveComponent("QSeparator"),u=o.resolveComponent("QList");return o.openBlock(),o.createBlock(u,null,{default:o.withCtx(()=>[o.createElementVNode("div",K3,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.filters,(d,f)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:"group-"+d.name},[d.flat?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(d.fields,h=>(o.openBlock(),o.createBlock(o.unref(ga),{key:"field-"+h.name,"model-value":h.calcValue?h.calcValue(t.activeFilter):t.activeFilter[h.name],field:h,loading:t.loading,class:"mb-4","onUpdate:modelValue":_=>i(h,_)},null,8,["model-value","field","loading","onUpdate:modelValue"]))),128)):(o.openBlock(),o.createBlock(o.unref(g0),{key:1,name:d.name,count:s.value[d.name]},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.fields,h=>(o.openBlock(),o.createBlock(o.unref(ga),{key:"field-"+h.name,"model-value":h.calcValue?h.calcValue(t.activeFilter):t.activeFilter[h.name],field:h,loading:t.loading,class:"mb-4","onUpdate:modelValue":_=>i(h,_)},null,8,["model-value","field","loading","onUpdate:modelValue"]))),128))]),_:2},1032,["name","count"])),f<t.filters.length-1?(o.openBlock(),o.createBlock(c,{key:2,class:"my-2"})):o.createCommentVNode("",!0)],64))),128))])]),_:1})}}},y0=o.defineComponent({__name:"CollapsableFiltersSidebar",props:{name:{},showFilters:{type:Boolean},activeFilter:{},minWidth:{default:"5rem"},maxWidth:{default:"18rem"},filters:{default:()=>[]}},emits:["update:active-filter","update:show-filters"],setup(t){return(e,n)=>(o.openBlock(),o.createBlock(o.unref(Rd),{class:"dx-collapsable-filters-sidebar",collapse:!e.showFilters,disabled:"","min-width":e.minWidth,"max-width":e.maxWidth,name:e.name,"onUpdate:collapse":n[1]||(n[1]=r=>e.$emit("update:show-filters",!r))},{default:o.withCtx(()=>[o.createVNode(o.unref(b0),{"active-filter":e.activeFilter,filters:e.filters,"onUpdate:filter":n[0]||(n[0]=r=>e.$emit("update:active-filter",r))},null,8,["active-filter","filters"])]),_:1},8,["collapse","min-width","max-width","name"]))}}),X3={class:"flex-grow"},w0=qe({__name:"FilterListToggle",props:{filter:{type:Object,required:!0},showFilters:Boolean},emits:["update:show-filters","update:filter"],setup(t){const e=t,n=o.computed(()=>Object.keys(e.filter).filter(r=>e.filter[r]!==void 0).length);return(r,s)=>{const i=o.resolveComponent("QBadge"),l=o.resolveComponent("QBtn");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["flex items-center transition-all",{"w-72":t.showFilters,"w-[6.5rem]":!t.showFilters}])},[o.createElementVNode("div",X3,[o.createVNode(l,{class:o.normalizeClass(["btn-blue-highlight border-blue-700",{highlighted:t.showFilters}]),onClick:s[0]||(s[0]=a=>r.$emit("update:show-filters",!t.showFilters))},{default:o.withCtx(()=>[o.createVNode(o.unref(nd),{class:"w-5 mr-2"}),o.createVNode(i,{label:""+n.value,rounded:"",color:n.value>0?"blue-600":"gray-400"},null,8,["label","color"])]),_:1},8,["class"])]),n.value>0&&t.showFilters?(o.openBlock(),o.createElementBlock("a",{key:0,class:"text-blue-600 hover:text-blue-500 text-sm ml-4",onClick:s[1]||(s[1]=a=>r.$emit("update:filter",{}))},"Clear All")):o.createCommentVNode("",!0)],2)}}},[["__scopeId","data-v-a0bc1dac"]]),J3={class:"w-full flex justify-end items-center flex-nowrap border-b"},eC={class:"flex-grow"},tC={key:0,class:"flex justify-end items-stretch flex-nowrap p-4"},nC={__name:"FilterToolbarLayout",props:{filter:{type:Object,default:null},showFilters:Boolean},emits:["update:show-filters","update:filter"],setup(t,{emit:e}){const n=e,r=t;function s(){n("update:show-filters",!r.showFilters)}return(i,l)=>(o.openBlock(),o.createElementBlock("div",J3,[o.createVNode(o.unref(w0),{"show-filters":t.showFilters,filter:t.filter,class:"border-r p-4 flex-shrink-0","onUpdate:showFilters":s,"onUpdate:filter":l[0]||(l[0]=a=>i.$emit("update:filter",a))},null,8,["show-filters","filter"]),o.createElementVNode("div",eC,[o.renderSlot(i.$slots,"default")]),i.$slots["right-side"]?(o.openBlock(),o.createElementBlock("div",tC,[i.$slots.default?(o.openBlock(),o.createBlock(o.unref(ce.QSeparator),{key:0,vertical:"",class:"mx-4 h-10 self-center"})):o.createCommentVNode("",!0),o.renderSlot(i.$slots,"right-side")])):o.createCommentVNode("",!0)]))}},k0=qe(o.defineComponent({__name:"PanelsDrawerTabs",props:{modelValue:{default:"general"},target:{},panels:{}},emits:["update:model-value"],setup(t){const e=t;function n(r){return r.enabled===void 0?!0:r.enabled?typeof r.enabled=="function"?r.enabled(e.target):!0:!1}return(r,s)=>{const i=o.resolveComponent("QTabs");return o.openBlock(),o.createBlock(i,{class:o.normalizeClass(["dx-panels-drawer-tabs overflow-y-auto",r.cls["panel-tabs"]]),"model-value":r.modelValue,vertical:"",align:"left","no-caps":"","onUpdate:modelValue":s[0]||(s[0]=l=>r.$emit("update:model-value",l))},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.panels,l=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[n(l)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[l.tabVnode?(o.openBlock(),o.createBlock(o.unref(xn),{key:l.name,vnode:l.tabVnode(r.target,r.modelValue),"is-active":r.modelValue===l.name,name:l.name,label:l.label},null,8,["vnode","is-active","name","label"])):(o.openBlock(),o.createBlock(o.unref(ce.QTab),{key:l.name,name:l.name,label:l.label},null,8,["name","label"]))],64)):o.createCommentVNode("",!0)],64))),256))]),_:1},8,["model-value","class"])}}}),[["__cssModules",{cls:{"pointer-events-none":"_pointer-events-none_1pp8h_1","!visible":"_!visible_1pp8h_1",visible:"_visible_1pp8h_1",collapse:"_collapse_1pp8h_231",static:"_static_1pp8h_1",absolute:"_absolute_1pp8h_1",relative:"_relative_1pp8h_1",sticky:"_sticky_1pp8h_1","inset-0":"_inset-0_1pp8h_1","bottom-0":"_bottom-0_1pp8h_1","left-0":"_left-0_1pp8h_1","left-2":"_left-2_1pp8h_1","left-4":"_left-4_1pp8h_1","right-0":"_right-0_1pp8h_1","right-1":"_right-1_1pp8h_1","right-2":"_right-2_1pp8h_1","right-4":"_right-4_1pp8h_1","top-0":"_top-0_1pp8h_1","top-1":"_top-1_1pp8h_1","top-1/2":"_top-1/2_1pp8h_1","top-2":"_top-2_1pp8h_1","z-0":"_z-0_1pp8h_1","z-10":"_z-10_1pp8h_1","z-20":"_z-20_1pp8h_1","z-30":"_z-30_1pp8h_1","m-2":"_m-2_1pp8h_1","m-4":"_m-4_1pp8h_1","m-auto":"_m-auto_1pp8h_1","mx-1":"_mx-1_1pp8h_1","mx-4":"_mx-4_1pp8h_1","mx-auto":"_mx-auto_1pp8h_1","my-2":"_my-2_1pp8h_1","!mr-1":"_!mr-1_1pp8h_1","mb-2":"_mb-2_1pp8h_1","mb-4":"_mb-4_1pp8h_1","ml-1":"_ml-1_1pp8h_1","ml-2":"_ml-2_1pp8h_1","ml-2.5":"_ml-2.5_1pp8h_1","ml-3":"_ml-3_1pp8h_1","ml-4":"_ml-4_1pp8h_1","ml-5":"_ml-5_1pp8h_1","ml-[-.2em]":"_ml-[-.2em]_1pp8h_1","mr-1":"_mr-1_1pp8h_1","mr-2":"_mr-2_1pp8h_1","mr-3":"_mr-3_1pp8h_1","mr-4":"_mr-4_1pp8h_1","mt-1":"_mt-1_1pp8h_1","mt-2":"_mt-2_1pp8h_1","mt-3":"_mt-3_1pp8h_1","mt-4":"_mt-4_1pp8h_1",block:"_block_1pp8h_1","inline-block":"_inline-block_1pp8h_1",inline:"_inline_1pp8h_1",flex:"_flex_1pp8h_1",table:"_table_1pp8h_1",grid:"_grid_1pp8h_1",hidden:"_hidden_1pp8h_1","aspect-square":"_aspect-square_1pp8h_1","h-10":"_h-10_1pp8h_1","h-12":"_h-12_1pp8h_1","h-16":"_h-16_1pp8h_1","h-20":"_h-20_1pp8h_1","h-3":"_h-3_1pp8h_1","h-3.5":"_h-3.5_1pp8h_1","h-3/4":"_h-3/4_1pp8h_1","h-4":"_h-4_1pp8h_1","h-5":"_h-5_1pp8h_1","h-6":"_h-6_1pp8h_1","h-8":"_h-8_1pp8h_1","h-96":"_h-96_1pp8h_1","h-[2.25rem]":"_h-[2.25rem]_1pp8h_1","h-[80vh]":"_h-[80vh]_1pp8h_1","h-full":"_h-full_1pp8h_1","max-h-[80vh]":"_max-h-[80vh]_1pp8h_1","max-h-full":"_max-h-full_1pp8h_1","min-h-0":"_min-h-0_1pp8h_1","min-h-10":"_min-h-10_1pp8h_1","w-10":"_w-10_1pp8h_1","w-16":"_w-16_1pp8h_1","w-2":"_w-2_1pp8h_1","w-2/5":"_w-2/5_1pp8h_1","w-20":"_w-20_1pp8h_1","w-24":"_w-24_1pp8h_1","w-3":"_w-3_1pp8h_1","w-3.5":"_w-3.5_1pp8h_1","w-3/4":"_w-3/4_1pp8h_1","w-3/5":"_w-3/5_1pp8h_1","w-32":"_w-32_1pp8h_1","w-4":"_w-4_1pp8h_1","w-48":"_w-48_1pp8h_1","w-5":"_w-5_1pp8h_1","w-6":"_w-6_1pp8h_1","w-7":"_w-7_1pp8h_1","w-72":"_w-72_1pp8h_1","w-8":"_w-8_1pp8h_1","w-96":"_w-96_1pp8h_1","w-[13.5rem]":"_w-[13.5rem]_1pp8h_1","w-[40%]":"_w-[40%]_1pp8h_1","w-[6.5rem]":"_w-[6.5rem]_1pp8h_1","w-[60vw]":"_w-[60vw]_1pp8h_1","w-[80vw]":"_w-[80vw]_1pp8h_1","w-full":"_w-full_1pp8h_1","!min-w-0":"_!min-w-0_1pp8h_1","min-w-0":"_min-w-0_1pp8h_1","min-w-10":"_min-w-10_1pp8h_1","min-w-96":"_min-w-96_1pp8h_1","min-w-[300px]":"_min-w-[300px]_1pp8h_1","max-w-[400px]":"_max-w-[400px]_1pp8h_1","max-w-[600px]":"_max-w-[600px]_1pp8h_1","max-w-full":"_max-w-full_1pp8h_1","max-w-none":"_max-w-none_1pp8h_1","flex-1":"_flex-1_1pp8h_1","flex-shrink":"_flex-shrink_1pp8h_1","flex-shrink-0":"_flex-shrink-0_1pp8h_1",shrink:"_shrink_1pp8h_1","flex-grow":"_flex-grow_1pp8h_1",grow:"_grow_1pp8h_1","-translate-y-1/2":"_-translate-y-1/2_1pp8h_1","rotate-180":"_rotate-180_1pp8h_1","scale-110":"_scale-110_1pp8h_1",transform:"_transform_1pp8h_1","cursor-ew-resize":"_cursor-ew-resize_1pp8h_1","cursor-move":"_cursor-move_1pp8h_1","cursor-not-allowed":"_cursor-not-allowed_1pp8h_1","cursor-ns-resize":"_cursor-ns-resize_1pp8h_1","cursor-pointer":"_cursor-pointer_1pp8h_1",resize:"_resize_1pp8h_1","grid-cols-3":"_grid-cols-3_1pp8h_1","flex-col":"_flex-col_1pp8h_1","flex-wrap":"_flex-wrap_1pp8h_1","flex-nowrap":"_flex-nowrap_1pp8h_1","items-center":"_items-center_1pp8h_1","items-stretch":"_items-stretch_1pp8h_1","justify-start":"_justify-start_1pp8h_1","justify-end":"_justify-end_1pp8h_1","justify-center":"_justify-center_1pp8h_1","justify-between":"_justify-between_1pp8h_1","gap-1":"_gap-1_1pp8h_1","gap-2":"_gap-2_1pp8h_1","gap-3":"_gap-3_1pp8h_1","gap-x-2":"_gap-x-2_1pp8h_1","gap-x-4":"_gap-x-4_1pp8h_1","gap-y-0":"_gap-y-0_1pp8h_1","gap-y-1":"_gap-y-1_1pp8h_1","space-x-1":"_space-x-1_1pp8h_1","space-x-2":"_space-x-2_1pp8h_1","self-center":"_self-center_1pp8h_1","overflow-auto":"_overflow-auto_1pp8h_1","overflow-hidden":"_overflow-hidden_1pp8h_1","overflow-x-auto":"_overflow-x-auto_1pp8h_1","overflow-y-auto":"_overflow-y-auto_1pp8h_70","overflow-x-hidden":"_overflow-x-hidden_1pp8h_1","overflow-y-hidden":"_overflow-y-hidden_1pp8h_1","scroll-smooth":"_scroll-smooth_1pp8h_1",truncate:"_truncate_1pp8h_1","overflow-ellipsis":"_overflow-ellipsis_1pp8h_1","whitespace-normal":"_whitespace-normal_1pp8h_1","whitespace-nowrap":"_whitespace-nowrap_1pp8h_1","whitespace-pre-wrap":"_whitespace-pre-wrap_1pp8h_1",rounded:"_rounded_1pp8h_1","rounded-2xl":"_rounded-2xl_1pp8h_1","rounded-full":"_rounded-full_1pp8h_1","rounded-lg":"_rounded-lg_1pp8h_1","rounded-md":"_rounded-md_1pp8h_1","rounded-sm":"_rounded-sm_1pp8h_1","!rounded-l-none":"_!rounded-l-none_1pp8h_1","!rounded-r-none":"_!rounded-r-none_1pp8h_1","rounded-b-lg":"_rounded-b-lg_1pp8h_1","rounded-l-lg":"_rounded-l-lg_1pp8h_1","rounded-r-lg":"_rounded-r-lg_1pp8h_1","rounded-t-2xl":"_rounded-t-2xl_1pp8h_1","rounded-t-lg":"_rounded-t-lg_1pp8h_1","rounded-t-md":"_rounded-t-md_1pp8h_1","rounded-br":"_rounded-br_1pp8h_1","rounded-tl":"_rounded-tl_1pp8h_1","!border-0":"_!border-0_1pp8h_1",border:"_border_1pp8h_1","border-2":"_border-2_1pp8h_1","border-b":"_border-b_1pp8h_1","border-l":"_border-l_1pp8h_1","border-l-0":"_border-l-0_1pp8h_1","border-r":"_border-r_1pp8h_1","border-solid":"_border-solid_1pp8h_1","border-dashed":"_border-dashed_1pp8h_1","border-none":"_border-none_1pp8h_1","border-blue-500":"_border-blue-500_1pp8h_1","border-blue-600":"_border-blue-600_1pp8h_1","border-blue-700":"_border-blue-700_1pp8h_1","border-gray-200":"_border-gray-200_1pp8h_1","border-gray-300":"_border-gray-300_1pp8h_1","border-purple-500":"_border-purple-500_1pp8h_1","border-slate-200":"_border-slate-200_1pp8h_1","border-slate-700":"_border-slate-700_1pp8h_1","border-transparent":"_border-transparent_1pp8h_1","bg-amber-300":"_bg-amber-300_1pp8h_1","bg-amber-950":"_bg-amber-950_1pp8h_1","bg-black":"_bg-black_1pp8h_1","bg-blue-200":"_bg-blue-200_1pp8h_1","bg-blue-300":"_bg-blue-300_1pp8h_1","bg-blue-600":"_bg-blue-600_1pp8h_1","bg-blue-900":"_bg-blue-900_1pp8h_1","bg-blue-950":"_bg-blue-950_1pp8h_1","bg-cyan-950":"_bg-cyan-950_1pp8h_1","bg-emerald-200":"_bg-emerald-200_1pp8h_1","bg-emerald-950":"_bg-emerald-950_1pp8h_1","bg-fuchsia-950":"_bg-fuchsia-950_1pp8h_1","bg-gray-100":"_bg-gray-100_1pp8h_1","bg-gray-200":"_bg-gray-200_1pp8h_1","bg-gray-400":"_bg-gray-400_1pp8h_1","bg-gray-50":"_bg-gray-50_1pp8h_1","bg-gray-500":"_bg-gray-500_1pp8h_1","bg-gray-800":"_bg-gray-800_1pp8h_1","bg-green-200":"_bg-green-200_1pp8h_1","bg-green-300":"_bg-green-300_1pp8h_1","bg-green-900":"_bg-green-900_1pp8h_1","bg-green-950":"_bg-green-950_1pp8h_1","bg-indigo-950":"_bg-indigo-950_1pp8h_1","bg-lime-300":"_bg-lime-300_1pp8h_1","bg-lime-950":"_bg-lime-950_1pp8h_1","bg-orange-900":"_bg-orange-900_1pp8h_1","bg-orange-950":"_bg-orange-950_1pp8h_1","bg-purple-700":"_bg-purple-700_1pp8h_1","bg-purple-900":"_bg-purple-900_1pp8h_1","bg-purple-950":"_bg-purple-950_1pp8h_1","bg-red-200":"_bg-red-200_1pp8h_1","bg-red-300":"_bg-red-300_1pp8h_1","bg-red-900":"_bg-red-900_1pp8h_1","bg-red-950":"_bg-red-950_1pp8h_1","bg-rose-950":"_bg-rose-950_1pp8h_1","bg-sky-300":"_bg-sky-300_1pp8h_1","bg-sky-50":"_bg-sky-50_1pp8h_1","bg-sky-800":"_bg-sky-800_1pp8h_1","bg-sky-900":"_bg-sky-900_1pp8h_1","bg-sky-950":"_bg-sky-950_1pp8h_1","bg-slate-100":"_bg-slate-100_1pp8h_1","bg-slate-300":"_bg-slate-300_1pp8h_1","bg-slate-400":"_bg-slate-400_1pp8h_1","bg-slate-500":"_bg-slate-500_1pp8h_1","bg-slate-600":"_bg-slate-600_1pp8h_1","bg-slate-700":"_bg-slate-700_1pp8h_1","bg-slate-800":"_bg-slate-800_1pp8h_1","bg-slate-900":"_bg-slate-900_1pp8h_1","bg-slate-950":"_bg-slate-950_1pp8h_1","bg-teal-200":"_bg-teal-200_1pp8h_1","bg-teal-500":"_bg-teal-500_1pp8h_1","bg-teal-950":"_bg-teal-950_1pp8h_1","bg-transparent":"_bg-transparent_1pp8h_1","bg-violet-950":"_bg-violet-950_1pp8h_1","bg-white":"_bg-white_1pp8h_1","bg-yellow-300":"_bg-yellow-300_1pp8h_1","bg-yellow-800":"_bg-yellow-800_1pp8h_1","bg-yellow-950":"_bg-yellow-950_1pp8h_1","bg-opacity-70":"_bg-opacity-70_1pp8h_1","bg-opacity-80":"_bg-opacity-80_1pp8h_1","bg-opacity-90":"_bg-opacity-90_1pp8h_1","!bg-none":"_!bg-none_1pp8h_1","object-contain":"_object-contain_1pp8h_1","object-cover":"_object-cover_1pp8h_1","!p-2":"_!p-2_1pp8h_1","p-0":"_p-0_1pp8h_1","p-1":"_p-1_1pp8h_1","p-2":"_p-2_1pp8h_1","p-3":"_p-3_1pp8h_1","p-4":"_p-4_1pp8h_1","p-8":"_p-8_1pp8h_1","!py-0":"_!py-0_1pp8h_1","px-1":"_px-1_1pp8h_1","px-1.5":"_px-1.5_1pp8h_1","px-12":"_px-12_1pp8h_1","px-16":"_px-16_1pp8h_1","px-2":"_px-2_1pp8h_1","px-2.5":"_px-2.5_1pp8h_1","px-3":"_px-3_1pp8h_1","px-4":"_px-4_1pp8h_1","px-6":"_px-6_1pp8h_1","px-8":"_px-8_1pp8h_1","py-0":"_py-0_1pp8h_1","py-0.5":"_py-0.5_1pp8h_1","py-1":"_py-1_1pp8h_1","py-1.5":"_py-1.5_1pp8h_1","py-14":"_py-14_1pp8h_1","py-2":"_py-2_1pp8h_1","py-3":"_py-3_1pp8h_1","py-4":"_py-4_1pp8h_1","py-8":"_py-8_1pp8h_1","pl-1":"_pl-1_1pp8h_1","pt-3":"_pt-3_1pp8h_1","text-left":"_text-left_1pp8h_1","text-center":"_text-center_1pp8h_1","text-[.7rem]":"_text-[.7rem]_1pp8h_1","text-[1rem]":"_text-[1rem]_1pp8h_1","text-base":"_text-base_1pp8h_1","text-lg":"_text-lg_1pp8h_1","text-sm":"_text-sm_1pp8h_1","text-xs":"_text-xs_1pp8h_1","font-bold":"_font-bold_1pp8h_1","font-medium":"_font-medium_1pp8h_1","font-semibold":"_font-semibold_1pp8h_1",uppercase:"_uppercase_1pp8h_1",italic:"_italic_1pp8h_1","leading-[1.2rem]":"_leading-[1.2rem]_1pp8h_1","!text-green-900":"_!text-green-900_1pp8h_1","!text-red-900":"_!text-red-900_1pp8h_1","!text-sky-900":"_!text-sky-900_1pp8h_1","!text-white":"_!text-white_1pp8h_1","!text-yellow-900":"_!text-yellow-900_1pp8h_1","text-amber-400":"_text-amber-400_1pp8h_1","text-amber-900":"_text-amber-900_1pp8h_1","text-blue-300":"_text-blue-300_1pp8h_1","text-blue-400":"_text-blue-400_1pp8h_1","text-blue-600":"_text-blue-600_1pp8h_1","text-blue-900":"_text-blue-900_1pp8h_1","text-cyan-400":"_text-cyan-400_1pp8h_1","text-emerald-400":"_text-emerald-400_1pp8h_1","text-fuchsia-400":"_text-fuchsia-400_1pp8h_1","text-gray-300":"_text-gray-300_1pp8h_1","text-gray-400":"_text-gray-400_1pp8h_1","text-gray-500":"_text-gray-500_1pp8h_1","text-gray-600":"_text-gray-600_1pp8h_1","text-gray-700":"_text-gray-700_1pp8h_1","text-gray-900":"_text-gray-900_1pp8h_1","text-green-300":"_text-green-300_1pp8h_1","text-green-400":"_text-green-400_1pp8h_1","text-green-700":"_text-green-700_1pp8h_1","text-green-900":"_text-green-900_1pp8h_1","text-indigo-400":"_text-indigo-400_1pp8h_1","text-lime-400":"_text-lime-400_1pp8h_1","text-lime-900":"_text-lime-900_1pp8h_1","text-orange-400":"_text-orange-400_1pp8h_1","text-purple-200":"_text-purple-200_1pp8h_1","text-purple-300":"_text-purple-300_1pp8h_1","text-purple-400":"_text-purple-400_1pp8h_1","text-red-400":"_text-red-400_1pp8h_1","text-red-500":"_text-red-500_1pp8h_1","text-red-800":"_text-red-800_1pp8h_1","text-red-900":"_text-red-900_1pp8h_1","text-rose-400":"_text-rose-400_1pp8h_1","text-sky-400":"_text-sky-400_1pp8h_1","text-sky-500":"_text-sky-500_1pp8h_1","text-sky-600":"_text-sky-600_1pp8h_1","text-sky-900":"_text-sky-900_1pp8h_1","text-slate-200":"_text-slate-200_1pp8h_1","text-slate-300":"_text-slate-300_1pp8h_1","text-slate-400":"_text-slate-400_1pp8h_1","text-slate-50":"_text-slate-50_1pp8h_1","text-slate-500":"_text-slate-500_1pp8h_1","text-slate-600":"_text-slate-600_1pp8h_1","text-slate-800":"_text-slate-800_1pp8h_1","text-slate-900":"_text-slate-900_1pp8h_1","text-teal-200":"_text-teal-200_1pp8h_1","text-teal-400":"_text-teal-400_1pp8h_1","text-teal-800":"_text-teal-800_1pp8h_1","text-violet-400":"_text-violet-400_1pp8h_1","text-white":"_text-white_1pp8h_1","text-yellow-300":"_text-yellow-300_1pp8h_1","text-yellow-400":"_text-yellow-400_1pp8h_1","text-yellow-600":"_text-yellow-600_1pp8h_1","text-zinc-500":"_text-zinc-500_1pp8h_1","text-zinc-800":"_text-zinc-800_1pp8h_1","line-through":"_line-through_1pp8h_1","opacity-0":"_opacity-0_1pp8h_1","opacity-100":"_opacity-100_1pp8h_1","opacity-20":"_opacity-20_1pp8h_1","opacity-50":"_opacity-50_1pp8h_1","opacity-60":"_opacity-60_1pp8h_1","opacity-70":"_opacity-70_1pp8h_1","opacity-80":"_opacity-80_1pp8h_1","opacity-90":"_opacity-90_1pp8h_1",shadow:"_shadow_1pp8h_1","shadow-none":"_shadow-none_1pp8h_1","shadow-xl":"_shadow-xl_1pp8h_1","outline-none":"_outline-none_1pp8h_1",outline:"_outline_1pp8h_1","outline-offset-0":"_outline-offset-0_1pp8h_1",blur:"_blur_1pp8h_1",filter:"_filter_1pp8h_1",transition:"_transition_1pp8h_1","transition-all":"_transition-all_1pp8h_1","transition-opacity":"_transition-opacity_1pp8h_1","duration-300":"_duration-300_1pp8h_1","danx-app":"_danx-app_1pp8h_4","q-tab":"_q-tab_1pp8h_4","q-table__card":"_q-table__card_1pp8h_7","q-checkbox__inner":"_q-checkbox__inner_1pp8h_11","q-toolbar":"_q-toolbar_1pp8h_14","q-notification__actions":"_q-notification__actions_1pp8h_19","q-date":"_q-date_1pp8h_22","q-date__view":"_q-date__view_1pp8h_25","q-field":"_q-field_1pp8h_28","q-field--auto-height":"_q-field--auto-height_1pp8h_28","q-field__control":"_q-field__control_1pp8h_28","q-field__native":"_q-field__native_1pp8h_31","q-field--labeled":"_q-field--labeled_1pp8h_35","q-field__control-container":"_q-field__control-container_1pp8h_35","q-textarea":"_q-textarea_1pp8h_38","q-field__marginal":"_q-field__marginal_1pp8h_41","q-field__input":"_q-field__input_1pp8h_41","q-field__label":"_q-field__label_1pp8h_41","q-btn":"_q-btn_1pp8h_48","q-item":"_q-item_1pp8h_56","q-tab-panels":"_q-tab-panels_1pp8h_60","q-panel":"_q-panel_1pp8h_64",scroll:"_scroll_1pp8h_67","dx-dialog":"_dx-dialog_1pp8h_74","q-card__section--vert":"_q-card__section--vert_1pp8h_74","q-banner":"_q-banner_1pp8h_78",app:"_app_1pp8h_1","main-layout":"_main-layout_1pp8h_1","is-disabled":"_is-disabled_1pp8h_95","disable-all-transitions":"_disable-all-transitions_1pp8h_100","v-enter-active":"_v-enter-active_1pp8h_104","v-leave-active":"_v-leave-active_1pp8h_105","v-enter-from":"_v-enter-from_1pp8h_109","v-leave-to":"_v-leave-to_1pp8h_110","dx-scrollbar":"_dx-scrollbar_1pp8h_114","dx-scrollbar-dark":"_dx-scrollbar-dark_1pp8h_157","dx-scrollbar-hidden":"_dx-scrollbar-hidden_1pp8h_199","dx-code-viewer":"_dx-code-viewer_1pp8h_207","is-collapsed":"_is-collapsed_1pp8h_211","code-collapsed":"_code-collapsed_1pp8h_214","code-collapsed-preview":"_code-collapsed-preview_1pp8h_225","collapse-toggle":"_collapse-toggle_1pp8h_231","collapse-header":"_collapse-header_1pp8h_234","code-content":"_code-content_1pp8h_243","is-collapsible":"_is-collapsible_1pp8h_257","code-footer":"_code-footer_1pp8h_267","has-error":"_has-error_1pp8h_273","language-badge":"_language-badge_1pp8h_277","syntax-key":"_syntax-key_1pp8h_284","syntax-string":"_syntax-string_1pp8h_287","syntax-number":"_syntax-number_1pp8h_290","syntax-boolean":"_syntax-boolean_1pp8h_293","syntax-null":"_syntax-null_1pp8h_296","syntax-punctuation":"_syntax-punctuation_1pp8h_299","is-editable":"_is-editable_1pp8h_302","dx-markdown-content":"_dx-markdown-content_1pp8h_316","task-list":"_task-list_1pp8h_406","task-list-item":"_task-list-item_1pp8h_410","footnote-ref":"_footnote-ref_1pp8h_491",footnotes:"_footnotes_1pp8h_499","footnote-list":"_footnote-list_1pp8h_506","footnote-item":"_footnote-item_1pp8h_509","footnote-backref":"_footnote-backref_1pp8h_512","dx-action-table":"_dx-action-table_1pp8h_517","dx-column-shrink":"_dx-column-shrink_1pp8h_517","panel-tabs":"_panel-tabs_1pp8h_521","hover:scale-105":"_hover:scale-105_1pp8h_1","hover:bg-amber-400":"_hover:bg-amber-400_1pp8h_1","hover:bg-blue-200":"_hover:bg-blue-200_1pp8h_1","hover:bg-blue-400":"_hover:bg-blue-400_1pp8h_1","hover:bg-blue-800":"_hover:bg-blue-800_1pp8h_1","hover:bg-gray-200":"_hover:bg-gray-200_1pp8h_1","hover:bg-green-100":"_hover:bg-green-100_1pp8h_1","hover:bg-green-400":"_hover:bg-green-400_1pp8h_1","hover:bg-green-800":"_hover:bg-green-800_1pp8h_1","hover:bg-lime-400":"_hover:bg-lime-400_1pp8h_1","hover:bg-orange-800":"_hover:bg-orange-800_1pp8h_1","hover:bg-purple-600":"_hover:bg-purple-600_1pp8h_1","hover:bg-purple-800":"_hover:bg-purple-800_1pp8h_1","hover:bg-red-100":"_hover:bg-red-100_1pp8h_1","hover:bg-red-200":"_hover:bg-red-200_1pp8h_1","hover:bg-red-400":"_hover:bg-red-400_1pp8h_1","hover:bg-sky-400":"_hover:bg-sky-400_1pp8h_1","hover:bg-sky-800":"_hover:bg-sky-800_1pp8h_1","hover:bg-sky-900":"_hover:bg-sky-900_1pp8h_1","hover:bg-slate-200":"_hover:bg-slate-200_1pp8h_1","hover:bg-slate-300":"_hover:bg-slate-300_1pp8h_1","hover:bg-slate-400":"_hover:bg-slate-400_1pp8h_1","hover:bg-slate-600":"_hover:bg-slate-600_1pp8h_1","hover:bg-slate-700":"_hover:bg-slate-700_1pp8h_1","hover:bg-slate-800":"_hover:bg-slate-800_1pp8h_1","hover:bg-slate-900":"_hover:bg-slate-900_1pp8h_1","hover:bg-teal-400":"_hover:bg-teal-400_1pp8h_1","hover:bg-teal-600":"_hover:bg-teal-600_1pp8h_1","hover:bg-yellow-700":"_hover:bg-yellow-700_1pp8h_1","hover:text-blue-300":"_hover:text-blue-300_1pp8h_1","hover:text-blue-500":"_hover:text-blue-500_1pp8h_1","hover:text-blue-600":"_hover:text-blue-600_1pp8h_1","hover:text-gray-300":"_hover:text-gray-300_1pp8h_1","hover:text-gray-700":"_hover:text-gray-700_1pp8h_1","hover:text-sky-600":"_hover:text-sky-600_1pp8h_1","hover:text-white":"_hover:text-white_1pp8h_1","hover:opacity-100":"_hover:opacity-100_1pp8h_1","hover:opacity-70":"_hover:opacity-70_1pp8h_1","hover:outline-4":"_hover:outline-4_1pp8h_1","focus:bg-blue-200":"_focus:bg-blue-200_1pp8h_1","focus:outline-4":"_focus:outline-4_1pp8h_1","focus:outline-blue-200":"_focus:outline-blue-200_1pp8h_1",group:"_group_1pp8h_1","group-hover:opacity-100":"_group-hover:opacity-100_1pp8h_1"}}]]),rC={class:"dx-panels-drawer-header flex items-center px-6 py-4"},oC={class:"flex-grow"},sC={key:0},iC={key:1},lC={key:0,class:"mr-4"},aC={class:"dx-panels-drawer-body flex-grow overflow-hidden h-full"},cC={key:0,class:"flex items-stretch flex-nowrap h-full"},uC={key:1,class:"border-l overflow-y-auto"},dC={key:1,class:"p-8"},x0=o.defineComponent({__name:"PanelsDrawer",props:{title:{default:""},modelValue:{default:null},target:{},tabsClass:{default:"w-[13.5rem] flex-shrink-0"},panelsClass:{default:"w-full"},drawerClass:{default:""},position:{default:"right"},panels:{},hideTabs:{type:Boolean}},emits:["update:model-value","close"],setup(t){const e=t,n=o.ref(e.modelValue),r=o.computed(()=>e.panels.find(s=>s.name===n.value));return o.watch(()=>e.modelValue,s=>n.value=s),o.onMounted(()=>{!n.value&&e.panels.length&&(n.value=e.panels[0].name)}),(s,i)=>{const l=o.resolveComponent("QSpinnerHourglass"),a=o.resolveComponent("QBtn"),c=o.resolveComponent("QTabPanel"),u=o.resolveComponent("QTabPanels"),d=o.resolveComponent("QSkeleton");return o.openBlock(),o.createBlock(o.unref(Tl),{position:s.position,show:"",overlay:"","content-class":"h-full",class:"dx-panels-drawer",title:"","no-route-dismiss":"","onUpdate:show":i[3]||(i[3]=f=>s.$emit("close"))},{default:o.withCtx(()=>{var f;return[o.createElementVNode("div",{class:o.normalizeClass(["flex flex-col flex-nowrap h-full dx-panels-drawer-content",s.drawerClass])},[o.createElementVNode("div",rC,[o.createElementVNode("div",oC,[o.renderSlot(s.$slots,"header",{},()=>[s.title?(o.openBlock(),o.createElementBlock("h2",sC,o.toDisplayString(s.title),1)):o.createCommentVNode("",!0),s.target?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",iC,[i[4]||(i[4]=o.createTextVNode(" Loading ")),o.createVNode(l)]))])]),s.$slots.controls?(o.openBlock(),o.createElementBlock("div",lC,[o.renderSlot(s.$slots,"controls")])):o.createCommentVNode("",!0),o.createElementVNode("div",null,[o.createVNode(a,{class:"dx-close-button",onClick:i[0]||(i[0]=h=>s.$emit("close"))},{default:o.withCtx(()=>[o.createVNode(o.unref(rr),{class:"w-4"})]),_:1})])]),o.createElementVNode("div",aC,[s.target.__timestamp>0?(o.openBlock(),o.createElementBlock("div",cC,[s.hideTabs?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(k0),{key:"pd-tabs:"+s.target.id,modelValue:n.value,"onUpdate:modelValue":[i[1]||(i[1]=h=>n.value=h),i[2]||(i[2]=h=>s.$emit("update:model-value",h))],target:s.target,class:o.normalizeClass(s.tabsClass),panels:s.panels},null,8,["modelValue","target","class","panels"])),(o.openBlock(),o.createBlock(u,{key:"pd-panels:"+s.target.id,"model-value":n.value,class:o.normalizeClass([((f=r.value)==null?void 0:f.class)||s.panelsClass,"dx-panels-drawer-panels overflow-y-auto h-full transition-all"])},{default:o.withCtx(()=>[o.renderSlot(s.$slots,"panels",{activePanel:n.value},()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.panels,h=>(o.openBlock(),o.createBlock(c,{key:h.name,name:h.name},{default:o.withCtx(()=>[h.vnode?(o.openBlock(),o.createBlock(o.unref(xn),{key:0,vnode:h.vnode,props:s.target},null,8,["vnode","props"])):o.createCommentVNode("",!0)]),_:2},1032,["name"]))),128))])]),_:3},8,["model-value","class"])),s.$slots["right-sidebar"]?(o.openBlock(),o.createElementBlock("div",uC,[o.renderSlot(s.$slots,"right-sidebar")])):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("div",dC,[o.createVNode(d,{class:"h-96"})]))])],2)]}),_:3},8,["position"])}}}),fC={class:"flex items-center justify-center text-sm py-14 w-full"},_C={key:0},hC={key:1},C0={__name:"EmptyTableState",props:{loading:Boolean,saving:Boolean,text:{type:String,default:"No records found"},loadingText:{type:String,default:"Loading..."},savingText:{type:String,default:"Saving..."}},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",fC,[t.loading?(o.openBlock(),o.createElementBlock("div",_C,[o.renderSlot(e.$slots,"loading",{},()=>[o.createTextVNode(o.toDisplayString(t.loadingText)+" ",1),o.createVNode(o.unref(ce.QSpinnerBall),{class:"w-4 ml-2"})])])):o.createCommentVNode("",!0),t.saving?(o.openBlock(),o.createElementBlock("div",hC,[o.renderSlot(e.$slots,"saving",{},()=>[o.createTextVNode(o.toDisplayString(t.savingText)+" ",1),o.createVNode(o.unref(ce.QSpinnerBall),{class:"w-4 ml-2"})])])):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(t.text),1)])]))}},mC={class:"flex flex-nowrap items-center"},pC={class:"relative"},gC={class:"ml-2"},S0=o.defineComponent({__name:"TableSummaryRow",props:{loading:{type:Boolean},label:{default:"Rows"},selectedLabel:{default:"Selected"},selectedCount:{default:0},itemCount:{default:0},summary:{default:null},columns:{},stickyColspan:{default:null}},emits:["clear"],setup(t){const e=t,n=o.computed(()=>{if(e.stickyColspan)return e.stickyColspan;if(e.summary)for(let i=0;i<e.columns.length;i++){const l=e.columns[i].field||e.columns[i].name;if(e.summary[l])return i+1}return e.columns.length+1}),r=o.computed(()=>e.columns.slice(n.value-1));function s(i){const l=e.summary&&e.summary[i.name];return l===void 0?"":i.format?i.format(l):l}return(i,l)=>(o.openBlock(),o.createBlock(o.unref(ce.QTr),{class:o.normalizeClass(["dx-table-summary-tr sticky-column-1 transition-all sticky-row",{"has-selection":i.selectedCount,"is-loading":i.loading}])},{default:o.withCtx(()=>[o.createVNode(o.unref(ce.QTd),{colspan:n.value,class:o.normalizeClass(["dx-table-summary-td dx-table-summary-count transition-all",{"has-selection":i.selectedCount}])},{default:o.withCtx(()=>[o.createElementVNode("div",mC,[o.createElementVNode("div",pC,[i.loading?(o.openBlock(),o.createBlock(o.unref(ce.QSpinner),{key:0,class:"absolute top-0 left-0",size:"18"})):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass([{"opacity-0":i.loading},"flex items-center nowrap"])},[i.selectedCount?(o.openBlock(),o.createBlock(o.unref(gg),{key:0,class:"w-6 mr-3 cursor-pointer",onClick:l[0]||(l[0]=a=>i.$emit("clear"))})):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString(o.unref(vt)(i.selectedCount||i.itemCount)),1)],2)]),o.createElementVNode("div",gC,o.toDisplayString(i.selectedCount?i.selectedLabel:i.label),1)])]),_:1},8,["colspan","class"]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,a=>(o.openBlock(),o.createBlock(o.unref(ce.QTd),{key:a.name,align:a.align||"right",class:o.normalizeClass([a.summaryClass,"dx-table-summary-fd"])},{default:o.withCtx(()=>[i.summary?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass({"dx-summary-column-link":a.onClick})},o.toDisplayString(s(a)),3)):o.createCommentVNode("",!0)]),_:2},1032,["align","class"]))),128))]),_:1},8,["class"]))}}),E0=qe(o.defineComponent({__name:"ActionTable",props:{name:{},label:{},color:{default:""},selectedRows:{},pagination:{},loadingList:{type:Boolean},loadingSummary:{type:Boolean,default:!1},pagedItems:{default:null},summary:{default:null},menuActions:{},columns:{},rowsPerPageOptions:{default:()=>[10,25,50,100]},summaryColSpan:{default:null},selection:{default:void 0}},emits:["update:selected-rows","update:pagination"],setup(t){const e=t,n=o.ref(null);h0(n);const r=o.computed(()=>{var u;const c=[...e.columns].map(d=>({...d,field:d.field||d.name}));if((u=e.menuActions)!=null&&u.length){const d=c.find(h=>h.name==="menu"),f={name:"menu",label:"",required:!0,hideContent:!0,shrink:!0,actionMenu:e.menuActions};d?Object.assign(d,f):c.unshift(f)}return c}),s=o.computed(()=>{var c,u;return(u=(c=e.pagedItems)==null?void 0:c.data)==null?void 0:u.length}),i=`column-settings-${e.name}`,l=o.ref(kt(i)||{});function a(){wt(i,l.value)}return(c,u)=>{var d;return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["dx-action-table overflow-hidden",{"dx-no-data":!s.value,"dx-is-loading":c.loadingList||c.loadingSummary,"dx-is-loading-list":c.loadingList}])},[o.createVNode(o.unref(ce.QTable),{ref_key:"actionTable",ref:n,selected:c.selectedRows||[],pagination:c.pagination,columns:r.value,loading:c.loadingList||c.loadingSummary,rows:((d=c.pagedItems)==null?void 0:d.data)||[],"binary-state-sort":!1,selection:c.selection,"rows-per-page-options":c.rowsPerPageOptions,class:"sticky-column sticky-header w-full h-full !border-0",color:c.color,"onUpdate:selected":u[2]||(u[2]=f=>c.$emit("update:selected-rows",f)),"onUpdate:pagination":()=>{},onRequest:u[3]||(u[3]=f=>c.$emit("update:pagination",{...f.pagination,__sort:o.unref(m0)(f.pagination,r.value)}))},{"no-data":o.withCtx(()=>[o.renderSlot(c.$slots,"empty",{},()=>[o.createVNode(C0,{text:`There are no ${c.label.toLowerCase()} matching the applied filter`},null,8,["text"])],!0)]),"top-row":o.withCtx(()=>{var f,h;return[s.value?(o.openBlock(),o.createBlock(S0,{key:0,label:c.label,"item-count":((f=c.summary)==null?void 0:f.count)||0,"selected-count":(h=c.selectedRows)==null?void 0:h.length,"sticky-colspan":c.summaryColSpan,loading:c.loadingSummary,summary:c.summary,columns:r.value,onClear:u[0]||(u[0]=_=>c.$emit("update:selected-rows",[]))},null,8,["label","item-count","selected-count","sticky-colspan","loading","summary","columns"])):o.createCommentVNode("",!0)]}),"header-cell":o.withCtx(f=>[o.createVNode(o.unref(f0),{modelValue:l.value,"onUpdate:modelValue":[u[1]||(u[1]=h=>l.value=h),a],"row-props":f,name:c.name},null,8,["modelValue","row-props","name"])]),"body-cell":o.withCtx(f=>[(o.openBlock(),o.createBlock(o.unref(a0),{key:f.key,"row-props":f,settings:l.value[f.col.name]},{default:o.withCtx(()=>[o.renderSlot(c.$slots,"default",{columnName:f.col.name,row:f.row,value:f.value},void 0,!0)]),_:2},1032,["row-props","settings"]))]),_:3},8,["selected","pagination","columns","loading","rows","selection","rows-per-page-options","color"])],2)}}}),[["__scopeId","data-v-a4d0792f"]]),bC={class:"dx-action-toolbar flex items-center"},yC={class:"flex-grow px-6"},wC={key:0},kC={class:"py-3 flex items-center flex-nowrap"},T0=o.defineComponent({__name:"ActionToolbar",props:{title:{},actions:{},actionTarget:{},createButton:{type:Boolean},refreshButton:{type:Boolean},loading:{type:Boolean},exporter:{type:Function}},emits:["refresh","create"],setup(t){return(e,n)=>{const r=o.resolveComponent("QBtn");return o.openBlock(),o.createElementBlock("div",bC,[o.createElementVNode("div",yC,[o.renderSlot(e.$slots,"title",{},()=>[e.title?(o.openBlock(),o.createElementBlock("h4",wC,o.toDisplayString(e.title),1)):o.createCommentVNode("",!0)])]),o.createElementVNode("div",kC,[o.renderSlot(e.$slots,"default"),e.createButton?(o.openBlock(),o.createBlock(r,{key:0,class:"bg-green-900 mr-4 px-4",onClick:n[0]||(n[0]=s=>e.$emit("create"))},{default:o.withCtx(()=>n[2]||(n[2]=[o.createTextVNode(" Create ")])),_:1})):o.createCommentVNode("",!0),e.refreshButton?(o.openBlock(),o.createBlock(o.unref(Lc),{key:1,loading:e.loading,onClick:n[1]||(n[1]=s=>e.$emit("refresh"))},null,8,["loading"])):o.createCommentVNode("",!0),e.exporter?(o.openBlock(),o.createBlock(o.unref(Vc),{key:2,exporter:e.exporter,class:"ml-4"},null,8,["exporter"])):o.createCommentVNode("",!0),e.actions&&e.actions.length>0?(o.openBlock(),o.createBlock(o.unref(ha),{key:3,class:"ml-4 dx-batch-actions",target:e.actionTarget,actions:e.actions},null,8,["target","actions"])):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"after")])])}}}),xC={class:"flex flex-grow flex-col flex-nowrap overflow-hidden h-full"},CC={class:"flex flex-nowrap flex-grow overflow-hidden w-full"},SC=o.defineComponent({__name:"ActionTableLayout",props:{controller:{},exporter:{type:Function,default:void 0},hideToolbar:{type:Boolean},panelTitleField:{default:""},refreshButton:{type:Boolean},createButton:{type:Boolean},selection:{default:"multiple"},showFilters:{type:Boolean},tableClass:{default:""},title:{default:""},drawerClass:{default:""}},setup(t){const e=t,n=o.computed(()=>e.controller.activeFilter.value),r=o.computed(()=>e.controller.activeItem.value),s=o.computed(()=>e.controller.activePanel.value||""),i=o.computed(()=>r.value?r.value[e.panelTitleField||"title"]||r.value.label||r.value.name||e.title+" "+r.value.id:null);return(l,a)=>(o.openBlock(),o.createElementBlock("div",xC,[o.renderSlot(l.$slots,"top"),o.renderSlot(l.$slots,"toolbar",{},()=>[l.hideToolbar?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(T0),{key:0,title:l.title,"refresh-button":l.refreshButton,"create-button":l.createButton,actions:l.controller.batchActions,"action-target":l.controller.selectedRows.value,exporter:l.controller.exportList,loading:l.controller.isLoadingList.value||l.controller.isLoadingSummary.value,onRefresh:l.controller.refreshAll,onCreate:a[0]||(a[0]=c=>l.controller.action&&l.controller.action("create"))},{default:o.withCtx(()=>[o.renderSlot(l.$slots,"action-toolbar")]),_:3},8,["title","refresh-button","create-button","actions","action-target","exporter","loading","onRefresh"]))]),o.createElementVNode("div",CC,[o.renderSlot(l.$slots,"filters",{},()=>{var c;return[n.value?(o.openBlock(),o.createBlock(o.unref(y0),{key:0,name:l.controller.name,"show-filters":l.showFilters,filters:(c=l.controller.filters)==null?void 0:c.value,"active-filter":n.value,class:"dx-action-table-filters","onUpdate:activeFilter":l.controller.setActiveFilter},null,8,["name","show-filters","filters","active-filter","onUpdate:activeFilter"])):o.createCommentVNode("",!0)]}),o.renderSlot(l.$slots,"default",{},()=>[o.createVNode(E0,{class:o.normalizeClass(["flex-grow",l.tableClass]),pagination:l.controller.pagination.value,"selected-rows":l.controller.selectedRows.value,label:l.controller.label,name:l.controller.name,"menu-actions":l.controller.menuActions,summary:l.controller.summary.value,"loading-list":l.controller.isLoadingList.value,"loading-summary":l.controller.isLoadingSummary.value,"paged-items":l.controller.pagedItems.value,columns:l.controller.columns||[],selection:l.selection,"onUpdate:selectedRows":l.controller.setSelectedRows,"onUpdate:pagination":l.controller.setPagination},null,8,["pagination","selected-rows","label","name","class","menu-actions","summary","loading-list","loading-summary","paged-items","columns","selection","onUpdate:selectedRows","onUpdate:pagination"])]),o.renderSlot(l.$slots,"panels",{},()=>[r.value&&l.controller.panels?(o.openBlock(),o.createBlock(o.unref(x0),{key:0,title:i.value,"model-value":s.value,target:r.value,panels:l.controller.panels,"drawer-class":l.drawerClass,"onUpdate:modelValue":a[1]||(a[1]=c=>l.controller.activatePanel(r.value,c)),onClose:a[2]||(a[2]=c=>l.controller.setActiveItem(null))},{controls:o.withCtx(()=>[o.createVNode(o.unref(cd),{"is-loading":l.controller.isLoadingList.value,onNext:l.controller.getNextItem},null,8,["is-loading","onNext"])]),_:1},8,["title","model-value","target","panels","drawer-class"])):o.createCommentVNode("",!0)])])]))}});function EC(t,e){const n=`${t}-column-order`,r=`${t}-visible-columns`,s=`${t}-title-columns`,i=o.ref(kt(n)||[]),l=o.ref(kt(r,[])),a=o.ref(kt(s,[])),c=o.computed(()=>u.value.slice(0,1)),u=o.computed(()=>[...e].sort((_,g)=>{const m=i.value.indexOf(_.name),p=i.value.indexOf(g.name);return m===-1?1:p===-1?-1:m-p})),d=o.computed({get(){return u.value.slice(1)},set(_){i.value=[...c.value.map(g=>g.name),..._.map(g=>g.name)],wt(n,i.value)}}),f=o.computed(()=>u.value.filter(_=>!l.value.includes(_.name))),h=o.computed(()=>u.value.filter(_=>a.value.includes(_.name)));return o.watch(()=>l.value,()=>wt(r,l.value)),o.watch(()=>a.value,()=>wt(s,a.value)),{sortableColumns:d,lockedColumns:c,visibleColumns:f,hiddenColumnNames:l,titleColumnNames:a,orderedTitleColumns:h}}const TC={class:"flex space-x-2"},BC=["innerHTML"],ba={__name:"AuditHistoryItemValue",props:{type:{type:String,required:!0},value:{type:[Number,String,Array,Object,Boolean],default:null}},setup(t){const e=t;function n(r){if(r===null||r===""||r===void 0)return"";switch(e.type){case"NUMBER":return vt(r);case"CURRENCY":return Qs(r);case"DATE":return Ft(r);case"DATETIME":return Ir(r);case"BOOLEAN":return r?"Yes":"No"}return r}return(r,s)=>(o.openBlock(),o.createElementBlock("div",TC,[t.type==="SINGLE_FILE"?(o.openBlock(),o.createBlock(o.unref(no),{key:0,file:t.value,class:"w-24"},null,8,["file"])):t.type==="MULTI_FILE"?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(t.value,i=>(o.openBlock(),o.createBlock(o.unref(no),{key:"file-"+i.id,file:i,class:"w-24 mb-2"},null,8,["file"]))),128)):t.type==="WYSIWYG"?(o.openBlock(),o.createElementBlock("div",{key:2,innerHTML:t.value},null,8,BC)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:3},[o.createTextVNode(o.toDisplayString(n(t.value)),1)],64))]))}},NC={class:"text-gray-700 flex items-stretch flex-nowrap p-4"},IC={class:"flex-grow text-sm w-3/5 overflow-auto"},$C={class:"flex flex-nowrap items-center mt-4"},FC={class:"bg-red-200 line-through p-2"},AC={class:"bg-emerald-200 ml-2.5 p-2"},DC={class:"ml-4 text-sm w-2/5"},OC=["href"],MC={__name:"AuditHistoryItem",props:{item:{type:Object,required:!0},change:{type:Object,required:!0},novaUrl:{type:String,default:"/nova"}},setup(t){const e=t,n=o.computed(()=>e.novaUrl+`/resources/audit-requests/${e.item.audit_request_id}`);return(r,s)=>(o.openBlock(),o.createElementBlock("div",NC,[o.createElementVNode("div",IC,[o.createElementVNode("h5",null,o.toDisplayString(t.change.label)+" ("+o.toDisplayString(t.change.name)+")",1),o.createElementVNode("div",$C,[o.createElementVNode("div",FC,[o.createVNode(o.unref(ba),{type:t.change.type,value:t.change.oldValue},null,8,["type","value"])]),o.createElementVNode("div",AC,[o.createVNode(o.unref(ba),{type:t.change.type,value:t.change.newValue},null,8,["type","value"])])])]),o.createElementVNode("div",DC,[t.item.user?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",null,o.toDisplayString(t.item.user.name),1),o.createElementVNode("div",null,o.toDisplayString(t.item.user.email),1)],64)):o.createCommentVNode("",!0),o.createElementVNode("div",null,o.toDisplayString(t.item.account),1),o.createElementVNode("div",null,[t.item.audit_request_id?(o.openBlock(),o.createElementBlock("a",{key:0,href:n.value,target:"_blank"},o.toDisplayString(o.unref(Ir)(t.item.timestamp)),9,OC)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(o.unref(Ir)(t.item.timestamp)),1)],64))])])]))}},VC=["href","target","onClick"],LC={key:0,class:"flex-shrink-0"},PC={__name:"NavigationMenu",props:{collapsed:Boolean,itemClass:{type:String,default:"hover:bg-gray-200"},activeClass:{type:String,default:"bg-blue-200"},items:{type:Array,required:!0}},setup(t){const e=t,n=te.value.router,r=o.computed(()=>e.items.filter(a=>!a.hidden));function s(a){if(!n){console.error("Router is not available. Configure in danx options.");return}return typeof a.route=="function"?a.route():a.route}function i(a,c){!c.url&&!a.ctrlKey&&a.preventDefault(),!(c.disabled||a.ctrlKey)&&(c.onClick&&c.onClick(),c.route&&n.push(s(c)))}function l(a){var c;return a.url?a.url:a.route&&((c=n.resolve(s(a)))==null?void 0:c.href)||"#"}return(a,c)=>{const u=o.resolveComponent("QTooltip"),d=o.resolveComponent("QSeparator");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["p-4",{"is-collapsed":t.collapsed}])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,f=>(o.openBlock(),o.createElementBlock("div",{key:"nav-item-"+f.label,class:"nav-menu-item-box"},[o.createElementVNode("a",{class:o.normalizeClass(["nav-menu-item flex flex-nowrap",f.class||t.itemClass]),href:l(f),target:f.target||"_self",onClick:h=>i(h,f)},[f.icon?(o.openBlock(),o.createElementBlock("div",LC,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(f.icon),{class:o.normalizeClass(["nav-icon",f.iconClass])},null,8,["class"]))])):o.createCommentVNode("",!0),t.collapsed?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["label ml-2",f.labelClass])},o.toDisplayString(f.label),3)),t.collapsed?(o.openBlock(),o.createBlock(u,o.mergeProps({key:2,ref_for:!0},f.tooltip),{default:o.withCtx(()=>{var h;return[o.createTextVNode(o.toDisplayString(((h=f.tooltip)==null?void 0:h.text)||f.label),1)]}),_:2},1040)):o.createCommentVNode("",!0)],10,VC),f.separator?(o.openBlock(),o.createBlock(d,{key:"separator-"+f.label,class:"my-2"})):o.createCommentVNode("",!0)]))),128))],2)}}},Ce=class Ce{static enable(e){Ce.success(e.successMsg),Ce.error(e.errorMsg),Ce.warning(e.warningMsg),o.watch(()=>e.successMsg,n=>Ce.success(n)),o.watch(()=>e.infoMsg,n=>Ce.info(n)),o.watch(()=>e.errorMsg,n=>Ce.error(n)),o.watch(()=>e.warningMsg,n=>Ce.warning(n))}static formatMessage(e){return e=e.replace(/\r\n|\r|\n/g,"<br/>"),e=e.replace(/\t/g," "),e.replace(/<(\w+)([^>]*)>/g,"<b>$1$2</b>")}static send(e,n={}){var r;e&&(e=Ce.formatMessage(e),Ce.notify({message:e,timeout:1e4,classes:"bg-gray-500 text-white",position:"top",closeBtn:"X",...(r=te.value.flashMessages)==null?void 0:r.default,...n}))}static success(e,n={}){var r;Ce.send(e,{classes:"bg-green-300 !text-green-900",icon:"check",...n,...(r=te.value.flashMessages)==null?void 0:r.success})}static info(e,n={}){var r;Ce.send(e,{classes:"bg-sky-300 !text-sky-900",icon:"info",...n,...(r=te.value.flashMessages)==null?void 0:r.info})}static error(e,n={}){var r;Ce.send(e,{classes:"bg-red-300 !text-red-900",icon:"error",...n,...(r=te.value.flashMessages)==null?void 0:r.error})}static warning(e,n={}){var r;Ce.send(e,{classes:"bg-yellow-300 !text-yellow-900",icon:"warning",...n,...(r=te.value.flashMessages)==null?void 0:r.warning})}static combine(e,n,r={}){const s=Ce[e];if(typeof s!="function")throw new Error(`FlashMessages.${e} is not a function`);s(n.map(i=>typeof i=="string"?i:i.message||i.Message).join("<br/>"),{...r,html:!0})}};Ce.PROP_DEFINITIONS={successMsg:{type:String,default:""},infoMsg:{type:String,default:""},errorMsg:{type:String,default:""},warningMsg:{type:String,default:""}};let Ue=Ce;const vC=new Ue,ya=new Map;function B0(t){for(const e in t)t[e]&&typeof t[e]=="object"&&(t[e]=ie(t[e]));return t}function ie(t,e={}){if(typeof t!="object")return t;const n=(t==null?void 0:t.id)||(t==null?void 0:t.name),r=t==null?void 0:t.__type;if(!n||!r){const a=o.shallowReactive(t);return Ns(t,e,a),a}t.__id||(t.__id=ce.uid()),t.__timestamp||(t.__timestamp=t.updated_at||0);const s=`${r}:${n}`;if(e[s])return e[s];const i=ya.get(s);if(!wa(t,i))return e[s]=i,Ns(t,e,i),i;const l=i||o.shallowReactive(t);return e[s]=l,Ns(t,e),Object.assign(l,t),i||ya.set(s,l),l.__deleted_at&&RC(l),l}function Ns(t,e={},n=null){n=n||t;for(const r of Object.keys(t)){const s=t[r];if(Array.isArray(s))for(const i in s)s[i]&&typeof s[i]=="object"&&(n[r]||(n[r]=[]),n[r][i]=ie(s[i],e));else s!=null&&s.__type?n[r]=ie(s,e):s&&typeof s=="object"&&Ns(s,e,n[r])}}function wa(t,e){if(!t.__timestamp||!(e!=null&&e.__timestamp)||t.__timestamp>e.__timestamp)return!0;for(const n of Object.keys(t)){const r=t[n],s=e[n];if(!(s!=null&&s.__timestamp))return!0;if(Array.isArray(r)&&r.length>0){for(const i of r)if(i!=null&&i.__type){const l=s.find(a=>a.id===i.id&&a.__type===i.__type);if(!(l!=null&&l.__timestamp)||wa(i,l))return!0}}else if(r!=null&&r.__type&&wa(r,s))return!0}return!1}function RC(t){for(const e of ya.values())for(const n of Object.keys(e)){const r=e[n];if(Array.isArray(r)&&r.length>0){const s=r.findIndex(i=>i.__id===t.__id&&i.__type===t.__type);s!==-1&&(r.splice(s,1),e[n]=[...r])}}}const N0={};async function I0(t,e,n,r,s=3e3){if($0(t),!(e!=null&&e.id)||!(e!=null&&e.__type))throw new Error("Invalid stored object. Cannot auto-refresh");if(n(e)){const i=await r(e);if(!i.id)return Ue.error(`Failed to refresh ${e.__type} (${e.id}) status: `+e.name),null;ie(i)}N0[t]=setTimeout(()=>I0(t,e,n,r,s),s)}function $0(t){const e=N0[t];e&&clearTimeout(e)}const Dn=o.shallowRef(null);function UC(t,e=null){const n=ce.uid();function r(c,u,d){const h={...i(c),...d,id:u};return h.debounce?h.trigger=qt((_,g)=>a(h,_,g),h.debounce):h.trigger=(_,g)=>a(h,_,g),ie(h)}function s(c,u){const d=i(c);return ie({...d,...u})}function i(c,u){var h,_,g;const d=t.find(m=>m.name===c)||{name:c},f=ie({onAction:(h=e==null?void 0:e.routes)==null?void 0:h.applyAction,onBatchAction:(_=e==null?void 0:e.routes)==null?void 0:_.batchAction,onBatchSuccess:(g=e==null?void 0:e.controls)==null?void 0:g.clearSelectedRows,...d,...u,isApplying:!1,__type:"__Action:"+n});return f.debounce?f.trigger=qt((m,p)=>a(f,m,p),f.debounce):f.trigger=(m,p)=>a(f,m,p),f}function l(c){const u=[];for(const d of c)u.push(i(d));return u}async function a(c,u=null,d=null){var g;typeof c=="string"&&(c=i(c));const f=c.alias?i(c.alias):null,h=c.vnode&&c.vnode(u,d);let _;if(!(c.onStart&&!c.onStart(c,u,d)))return F0(u,!0),c.isApplying=!0,f&&(f.isApplying=!0),h?(_=await new Promise(m=>{Dn.value={vnode:h,confirm:async p=>{let y;c.useInputFromConfirm===!1?y=d:c.useInputFromConfirm===!0?y=p:y={...d,...p};const b=await A0(c,u,y);(b===void 0||b===!0||b!=null&&b.success)&&m(b)},cancel:m}}),Dn.value=null):_=await A0(c,u,d),_!=null&&_.abort||(c.isApplying=!1,F0(u,!1),f&&(f.isApplying=!1),_!=null&&_.item&&(_.item=ie(_.item)),(g=_==null?void 0:_.result)!=null&&g.__type&&(_.result=ie(_.result))),_}return{getAction:i,getActions:l,action:a,modifyAction:s,extendAction:r}}function F0(t,e){if(t){t=Array.isArray(t)?t:[t];for(const n of t)n.isSaving=e}}async function A0(t,e,n=null){if(!t.onAction)throw new Error("No onAction handler found for the selected action:"+t.name);const r=Array.isArray(e);let s;try{if(r)t.onBatchAction?s=await t.onBatchAction(t.alias||t.name,e,n):s={error:`Action ${t.name} does not support batch actions`};else{const i=Date.now();t.optimisticDelete&&ie({...e,__deleted_at:new Date().toISOString(),__timestamp:i}),typeof t.optimistic=="function"?(t.optimistic(t,e,n),ie({...e,__timestamp:i})):t.optimistic&&ie({...e,...n,__timestamp:i}),s=await t.onAction(t.alias||t.name,e,n)}}catch(i){(""+i).match(/Request was aborted/)?s={abort:!0}:(console.error(i),s={error:`An error occurred while performing the action ${t.label}. Please try again later.`})}if(s!=null&&s.abort)return s;if(s===void 0||s===!0||s!=null&&s.success)s&&s.item&&(s.item=ie(s.item)),s!=null&&s.success&&Array.isArray(e)&&Ue.success(`Successfully performed action ${t.label} on ${e.length} items`),t.onSuccess&&await t.onSuccess(s,e,n),r&&t.onBatchSuccess&&await t.onBatchSuccess(s,e,n);else{const i=[];if(s.errors)i.push(...s.errors);else if(s.error){let l=s.error;typeof s.error=="boolean"?l=s.message:typeof s.error=="object"?l=s.error.message:typeof s.error!="string"&&(l="An unknown error occurred. Please try again later."),i.push(l)}else i.push("An unexpected error occurred. Please try again later.");Ue.combine("error",i),t.onError&&await t.onError(s,e,n)}return t.onFinish&&await t.onFinish(s,e,n),s}function zC(t,e){return[{name:"create"},{name:"create-with-name",alias:"create",label:"Create "+t,vnode:()=>o.h(pd,{title:"Create "+t}),onFinish:e&&(n=>{e.activatePanel(n.item,"edit"),e.loadListAndSummary()})},{name:"update",optimistic:!0},{name:"update-debounced",alias:"update",debounce:1e3,optimistic:!0},{name:"copy",label:"Copy",icon:$c,onSuccess:e==null?void 0:e.loadListAndSummary},{name:"edit",label:"Edit",icon:fn,onAction:(n,r)=>e==null?void 0:e.activatePanel(r,"edit")},{name:"delete"},{name:"delete-with-confirm",alias:"delete",label:"Delete",class:"text-red-500",iconClass:"text-red-500",icon:Dc,onFinish:e==null?void 0:e.loadListAndSummary,vnode:n=>o.h(md,{action:"Delete",label:t,target:n,confirmClass:"bg-red-900"})}]}function qC(t){const e=o.shallowRef([]),n=o.ref(!1),r=o.ref(!1);async function s(){r.value||(await i(),r.value=!0)}async function i(){n.value||(n.value=!0,e.value=(await t.list({sort:[{column:"name"}]})).data||[],n.value=!1)}return{listItems:e,isRefreshing:n,hasLoadedItems:r,loadItems:s,refreshItems:i}}let D0=!1;function HC(t){if(D0)return;D0=!0;const e=document.createElement("iframe");e.style.display="none",e.src=window.location.href,document.body.appendChild(e),e.onload=()=>{document.body.removeChild(e),t()}}function ka(t,e,n=void 0,r=!1){const s=typeof e=="function"?t.findIndex(e):t.indexOf(e);if(s===!1||s===-1)return r?[...t,n]:t;const i=[...t];return n!==void 0?i.splice(s,1,n):i.splice(s,1),i}function bo(t,e){return ka(t,e)}function O0(t,e){return t.filter((n,r,s)=>r===s.findIndex(i=>e(n,i)))}let M0=!1,V0=!1,yo=null,en=null,Is=null;function L0(t=!0){if(!M0&&t){const{coords:i,error:l,locatedAt:a}=E1();yo=l,en=a,Is=i,M0=!0}const e="geolocation"in navigator,n=o.computed(()=>en!=null&&en.value?Is==null?void 0:Is.value:null),r=o.computed(()=>!(yo!=null&&yo.value)&&!!(en!=null&&en.value));return{isLocationSupported:e,isCompatible:r,geolocationError:yo,hasLocation:en,location:n,waitForLocation:async(i=3e3)=>{if(V0)return n;V0=!0;let l=0;for(;!n.value;)if(await ns(100),l+=100,l>i)return null;return n}}}class On extends Error{}class jC extends On{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class GC extends On{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class WC extends On{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class gr extends On{}class P0 extends On{constructor(e){super(`Invalid unit ${e}`)}}class Ne extends On{}class tn extends On{constructor(){super("Zone is an abstract class")}}const M="numeric",mt="short",Qe="long",$s={year:M,month:M,day:M},v0={year:M,month:mt,day:M},ZC={year:M,month:mt,day:M,weekday:mt},R0={year:M,month:Qe,day:M},U0={year:M,month:Qe,day:M,weekday:Qe},z0={hour:M,minute:M},q0={hour:M,minute:M,second:M},H0={hour:M,minute:M,second:M,timeZoneName:mt},j0={hour:M,minute:M,second:M,timeZoneName:Qe},G0={hour:M,minute:M,hourCycle:"h23"},W0={hour:M,minute:M,second:M,hourCycle:"h23"},Z0={hour:M,minute:M,second:M,hourCycle:"h23",timeZoneName:mt},Y0={hour:M,minute:M,second:M,hourCycle:"h23",timeZoneName:Qe},Q0={year:M,month:M,day:M,hour:M,minute:M},K0={year:M,month:M,day:M,hour:M,minute:M,second:M},X0={year:M,month:mt,day:M,hour:M,minute:M},J0={year:M,month:mt,day:M,hour:M,minute:M,second:M},YC={year:M,month:mt,day:M,weekday:mt,hour:M,minute:M},e_={year:M,month:Qe,day:M,hour:M,minute:M,timeZoneName:mt},t_={year:M,month:Qe,day:M,hour:M,minute:M,second:M,timeZoneName:mt},n_={year:M,month:Qe,day:M,weekday:Qe,hour:M,minute:M,timeZoneName:Qe},r_={year:M,month:Qe,day:M,weekday:Qe,hour:M,minute:M,second:M,timeZoneName:Qe};class wo{get type(){throw new tn}get name(){throw new tn}get ianaName(){return this.name}get isUniversal(){throw new tn}offsetName(e,n){throw new tn}formatOffset(e,n){throw new tn}offset(e){throw new tn}equals(e){throw new tn}get isValid(){throw new tn}}let xa=null;class Fs extends wo{static get instance(){return xa===null&&(xa=new Fs),xa}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return N_(e,n,r)}formatOffset(e,n){return So(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let As={};function QC(t){return As[t]||(As[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),As[t]}const KC={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function XC(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,i,l,a,c,u,d]=r;return[l,s,i,a,c,u,d]}function JC(t,e){const n=t.formatToParts(e),r=[];for(let s=0;s<n.length;s++){const{type:i,value:l}=n[s],a=KC[i];i==="era"?r[a]=l:P(a)||(r[a]=parseInt(l,10))}return r}let Ds={};class $t extends wo{static create(e){return Ds[e]||(Ds[e]=new $t(e)),Ds[e]}static resetCache(){Ds={},As={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=$t.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return N_(e,n,r,this.name)}formatOffset(e,n){return So(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const r=QC(this.name);let[s,i,l,a,c,u,d]=r.formatToParts?JC(r,n):XC(r,n);a==="BC"&&(s=-Math.abs(s)+1);const h=Ps({year:s,month:i,day:l,hour:c===24?0:c,minute:u,second:d,millisecond:0});let _=+n;const g=_%1e3;return _-=g>=0?g:1e3+g,(h-_)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let o_={};function eS(t,e={}){const n=JSON.stringify([t,e]);let r=o_[n];return r||(r=new Intl.ListFormat(t,e),o_[n]=r),r}let Ca={};function Sa(t,e={}){const n=JSON.stringify([t,e]);let r=Ca[n];return r||(r=new Intl.DateTimeFormat(t,e),Ca[n]=r),r}let Ea={};function tS(t,e={}){const n=JSON.stringify([t,e]);let r=Ea[n];return r||(r=new Intl.NumberFormat(t,e),Ea[n]=r),r}let Ta={};function nS(t,e={}){const{base:n,...r}=e,s=JSON.stringify([t,r]);let i=Ta[s];return i||(i=new Intl.RelativeTimeFormat(t,e),Ta[s]=i),i}let ko=null;function rS(){return ko||(ko=new Intl.DateTimeFormat().resolvedOptions().locale,ko)}let s_={};function oS(t){let e=s_[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,s_[t]=e}return e}function sS(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let r,s;try{r=Sa(t).resolvedOptions(),s=t}catch{const c=t.substring(0,n);r=Sa(c).resolvedOptions(),s=c}const{numberingSystem:i,calendar:l}=r;return[s,i,l]}}function iS(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function lS(t){const e=[];for(let n=1;n<=12;n++){const r=L.utc(2009,n,1);e.push(t(r))}return e}function aS(t){const e=[];for(let n=1;n<=7;n++){const r=L.utc(2016,11,13+n);e.push(t(r))}return e}function Os(t,e,n,r){const s=t.listingMode();return s==="error"?null:s==="en"?n(e):r(e)}function cS(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class uS{constructor(e,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:s,floor:i,...l}=r;if(!n||Object.keys(l).length>0){const a={useGrouping:!1,...r};r.padTo>0&&(a.minimumIntegerDigits=r.padTo),this.inf=tS(e,a)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):Oa(e,3);return pe(n,this.padTo)}}}class dS{constructor(e,n,r){this.opts=r,this.originalZone=void 0;let s;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const l=-1*(e.offset/60),a=l>=0?`Etc/GMT+${l}`:`Etc/GMT${l}`;e.offset!==0&&$t.create(a).valid?(s=a,this.dt=e):(s="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,s=e.zone.name):(s="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||s,this.dtf=Sa(n,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class fS{constructor(e,n,r){this.opts={style:"long",...r},!n&&S_()&&(this.rtf=nS(e,r))}format(e,n){return this.rtf?this.rtf.format(e,n):MS(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const _S={firstDay:1,minimalDays:4,weekend:[6,7]};class K{static fromOpts(e){return K.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,r,s,i=!1){const l=e||le.defaultLocale,a=l||(i?"en-US":rS()),c=n||le.defaultNumberingSystem,u=r||le.defaultOutputCalendar,d=Aa(s)||le.defaultWeekSettings;return new K(a,c,u,d,l)}static resetCache(){ko=null,Ca={},Ea={},Ta={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:r,weekSettings:s}={}){return K.create(e,n,r,s)}constructor(e,n,r,s,i){const[l,a,c]=sS(e);this.locale=l,this.numberingSystem=n||a||null,this.outputCalendar=r||c||null,this.weekSettings=s,this.intl=iS(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=cS(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:K.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Aa(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return Os(this,e,F_,()=>{const r=n?{month:e,day:"numeric"}:{month:e},s=n?"format":"standalone";return this.monthsCache[s][e]||(this.monthsCache[s][e]=lS(i=>this.extract(i,r,"month"))),this.monthsCache[s][e]})}weekdays(e,n=!1){return Os(this,e,O_,()=>{const r=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=n?"format":"standalone";return this.weekdaysCache[s][e]||(this.weekdaysCache[s][e]=aS(i=>this.extract(i,r,"weekday"))),this.weekdaysCache[s][e]})}meridiems(){return Os(this,void 0,()=>M_,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[L.utc(2016,11,13,9),L.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Os(this,e,V_,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[L.utc(-40,1,1),L.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[e]})}extract(e,n,r){const s=this.dtFormatter(e,n),i=s.formatToParts(),l=i.find(a=>a.type.toLowerCase()===r);return l?l.value:null}numberFormatter(e={}){return new uS(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new dS(e,this.intl,n)}relFormatter(e={}){return new fS(this.intl,this.isEnglish(),e)}listFormatter(e={}){return eS(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:E_()?oS(this.locale):_S}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Ba=null;class Oe extends wo{static get utcInstance(){return Ba===null&&(Ba=new Oe(0)),Ba}static instance(e){return e===0?Oe.utcInstance:new Oe(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Oe(vs(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${So(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${So(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return So(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class hS extends wo{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function nn(t,e){if(P(t)||t===null)return e;if(t instanceof wo)return t;if(wS(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?Fs.instance:n==="utc"||n==="gmt"?Oe.utcInstance:Oe.parseSpecifier(n)||$t.create(t)}else return rn(t)?Oe.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new hS(t)}const Na={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},i_={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},mS=Na.hanidec.replace(/[\[|\]]/g,"").split("");function pS(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);if(t[n].search(Na.hanidec)!==-1)e+=mS.indexOf(t[n]);else for(const s in i_){const[i,l]=i_[s];r>=i&&r<=l&&(e+=r-i)}}return parseInt(e,10)}else return e}let br={};function gS(){br={}}function pt({numberingSystem:t},e=""){const n=t||"latn";return br[n]||(br[n]={}),br[n][e]||(br[n][e]=new RegExp(`${Na[n]}${e}`)),br[n][e]}let l_=()=>Date.now(),a_="system",c_=null,u_=null,d_=null,f_=60,__,h_=null;class le{static get now(){return l_}static set now(e){l_=e}static set defaultZone(e){a_=e}static get defaultZone(){return nn(a_,Fs.instance)}static get defaultLocale(){return c_}static set defaultLocale(e){c_=e}static get defaultNumberingSystem(){return u_}static set defaultNumberingSystem(e){u_=e}static get defaultOutputCalendar(){return d_}static set defaultOutputCalendar(e){d_=e}static get defaultWeekSettings(){return h_}static set defaultWeekSettings(e){h_=Aa(e)}static get twoDigitCutoffYear(){return f_}static set twoDigitCutoffYear(e){f_=e%100}static get throwOnInvalid(){return __}static set throwOnInvalid(e){__=e}static resetCaches(){K.resetCache(),$t.resetCache(),L.resetCache(),gS()}}class gt{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const m_=[0,31,59,90,120,151,181,212,243,273,304,334],p_=[0,31,60,91,121,152,182,213,244,274,305,335];function st(t,e){return new gt("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Ia(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const s=r.getUTCDay();return s===0?7:s}function g_(t,e,n){return n+(xo(t)?p_:m_)[e-1]}function b_(t,e){const n=xo(t)?p_:m_,r=n.findIndex(i=>i<e),s=e-n[r];return{month:r+1,day:s}}function $a(t,e){return(t-e+7)%7+1}function Ms(t,e=4,n=1){const{year:r,month:s,day:i}=t,l=g_(r,s,i),a=$a(Ia(r,s,i),n);let c=Math.floor((l-a+14-e)/7),u;return c<1?(u=r-1,c=Co(u,e,n)):c>Co(r,e,n)?(u=r+1,c=1):u=r,{weekYear:u,weekNumber:c,weekday:a,...Us(t)}}function y_(t,e=4,n=1){const{weekYear:r,weekNumber:s,weekday:i}=t,l=$a(Ia(r,1,e),n),a=wr(r);let c=s*7+i-l-7+e,u;c<1?(u=r-1,c+=wr(u)):c>a?(u=r+1,c-=wr(r)):u=r;const{month:d,day:f}=b_(u,c);return{year:u,month:d,day:f,...Us(t)}}function Fa(t){const{year:e,month:n,day:r}=t,s=g_(e,n,r);return{year:e,ordinal:s,...Us(t)}}function w_(t){const{year:e,ordinal:n}=t,{month:r,day:s}=b_(e,n);return{year:e,month:r,day:s,...Us(t)}}function k_(t,e){if(!P(t.localWeekday)||!P(t.localWeekNumber)||!P(t.localWeekYear)){if(!P(t.weekday)||!P(t.weekNumber)||!P(t.weekYear))throw new gr("Cannot mix locale-based week fields with ISO-based week fields");return P(t.localWeekday)||(t.weekday=t.localWeekday),P(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),P(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function bS(t,e=4,n=1){const r=Vs(t.weekYear),s=it(t.weekNumber,1,Co(t.weekYear,e,n)),i=it(t.weekday,1,7);return r?s?i?!1:st("weekday",t.weekday):st("week",t.weekNumber):st("weekYear",t.weekYear)}function yS(t){const e=Vs(t.year),n=it(t.ordinal,1,wr(t.year));return e?n?!1:st("ordinal",t.ordinal):st("year",t.year)}function x_(t){const e=Vs(t.year),n=it(t.month,1,12),r=it(t.day,1,Ls(t.year,t.month));return e?n?r?!1:st("day",t.day):st("month",t.month):st("year",t.year)}function C_(t){const{hour:e,minute:n,second:r,millisecond:s}=t,i=it(e,0,23)||e===24&&n===0&&r===0&&s===0,l=it(n,0,59),a=it(r,0,59),c=it(s,0,999);return i?l?a?c?!1:st("millisecond",s):st("second",r):st("minute",n):st("hour",e)}function P(t){return typeof t>"u"}function rn(t){return typeof t=="number"}function Vs(t){return typeof t=="number"&&t%1===0}function wS(t){return typeof t=="string"}function kS(t){return Object.prototype.toString.call(t)==="[object Date]"}function S_(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function E_(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function xS(t){return Array.isArray(t)?t:[t]}function T_(t,e,n){if(t.length!==0)return t.reduce((r,s)=>{const i=[e(s),s];return r&&n(r[0],i[0])===r[0]?r:i},null)[1]}function CS(t,e){return e.reduce((n,r)=>(n[r]=t[r],n),{})}function yr(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Aa(t){if(t==null)return null;if(typeof t!="object")throw new Ne("Week settings must be an object");if(!it(t.firstDay,1,7)||!it(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!it(e,1,7)))throw new Ne("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function it(t,e,n){return Vs(t)&&t>=e&&t<=n}function SS(t,e){return t-e*Math.floor(t/e)}function pe(t,e=2){const n=t<0;let r;return n?r="-"+(""+-t).padStart(e,"0"):r=(""+t).padStart(e,"0"),r}function on(t){if(!(P(t)||t===null||t===""))return parseInt(t,10)}function Mn(t){if(!(P(t)||t===null||t===""))return parseFloat(t)}function Da(t){if(!(P(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function Oa(t,e,n=!1){const r=10**e;return(n?Math.trunc:Math.round)(t*r)/r}function xo(t){return t%4===0&&(t%100!==0||t%400===0)}function wr(t){return xo(t)?366:365}function Ls(t,e){const n=SS(e-1,12)+1,r=t+(e-n)/12;return n===2?xo(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Ps(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function B_(t,e,n){return-$a(Ia(t,1,e),n)+e-1}function Co(t,e=4,n=1){const r=B_(t,e,n),s=B_(t+1,e,n);return(wr(t)-r+s)/7}function Ma(t){return t>99?t:t>le.twoDigitCutoffYear?1900+t:2e3+t}function N_(t,e,n,r=null){const s=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const l={timeZoneName:e,...i},a=new Intl.DateTimeFormat(n,l).formatToParts(s).find(c=>c.type.toLowerCase()==="timezonename");return a?a.value:null}function vs(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0,s=n<0||Object.is(n,-0)?-r:r;return n*60+s}function I_(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new Ne(`Invalid unit value ${t}`);return e}function Rs(t,e){const n={};for(const r in t)if(yr(t,r)){const s=t[r];if(s==null)continue;n[e(r)]=I_(s)}return n}function So(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${pe(n,2)}:${pe(r,2)}`;case"narrow":return`${s}${n}${r>0?`:${r}`:""}`;case"techie":return`${s}${pe(n,2)}${pe(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Us(t){return CS(t,["hour","minute","second","millisecond"])}const ES=["January","February","March","April","May","June","July","August","September","October","November","December"],$_=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],TS=["J","F","M","A","M","J","J","A","S","O","N","D"];function F_(t){switch(t){case"narrow":return[...TS];case"short":return[...$_];case"long":return[...ES];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const A_=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],D_=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],BS=["M","T","W","T","F","S","S"];function O_(t){switch(t){case"narrow":return[...BS];case"short":return[...D_];case"long":return[...A_];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const M_=["AM","PM"],NS=["Before Christ","Anno Domini"],IS=["BC","AD"],$S=["B","A"];function V_(t){switch(t){case"narrow":return[...$S];case"short":return[...IS];case"long":return[...NS];default:return null}}function FS(t){return M_[t.hour<12?0:1]}function AS(t,e){return O_(e)[t.weekday-1]}function DS(t,e){return F_(e)[t.month-1]}function OS(t,e){return V_(e)[t.year<0?0:1]}function MS(t,e,n="always",r=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&i){const f=t==="days";switch(e){case 1:return f?"tomorrow":`next ${s[t][0]}`;case-1:return f?"yesterday":`last ${s[t][0]}`;case 0:return f?"today":`this ${s[t][0]}`}}const l=Object.is(e,-0)||e<0,a=Math.abs(e),c=a===1,u=s[t],d=r?c?u[1]:u[2]||u[1]:c?s[t][0]:t;return l?`${a} ${d} ago`:`in ${a} ${d}`}function L_(t,e){let n="";for(const r of t)r.literal?n+=r.val:n+=e(r.val);return n}const VS={D:$s,DD:v0,DDD:R0,DDDD:U0,t:z0,tt:q0,ttt:H0,tttt:j0,T:G0,TT:W0,TTT:Z0,TTTT:Y0,f:Q0,ff:X0,fff:e_,ffff:n_,F:K0,FF:J0,FFF:t_,FFFF:r_};class Ie{static create(e,n={}){return new Ie(e,n)}static parseFormat(e){let n=null,r="",s=!1;const i=[];for(let l=0;l<e.length;l++){const a=e.charAt(l);a==="'"?(r.length>0&&i.push({literal:s||/^\s+$/.test(r),val:r}),n=null,r="",s=!s):s||a===n?r+=a:(r.length>0&&i.push({literal:/^\s+$/.test(r),val:r}),r=a,n=a)}return r.length>0&&i.push({literal:s||/^\s+$/.test(r),val:r}),i}static macroTokenToFormatOpts(e){return VS[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return pe(e,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,n){const r=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(_,g)=>this.loc.extract(e,_,g),l=_=>e.isOffsetFixed&&e.offset===0&&_.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,_.format):"",a=()=>r?FS(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),c=(_,g)=>r?DS(e,_):i(g?{month:_}:{month:_,day:"numeric"},"month"),u=(_,g)=>r?AS(e,_):i(g?{weekday:_}:{weekday:_,month:"long",day:"numeric"},"weekday"),d=_=>{const g=Ie.macroTokenToFormatOpts(_);return g?this.formatWithSystemDefault(e,g):_},f=_=>r?OS(e,_):i({era:_},"era"),h=_=>{switch(_){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return l({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return l({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return l({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return a();case"d":return s?i({day:"numeric"},"day"):this.num(e.day);case"dd":return s?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return s?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return s?i({month:"numeric"},"month"):this.num(e.month);case"MM":return s?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return s?i({year:"numeric"},"year"):this.num(e.year);case"yy":return s?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return d(_)}};return L_(Ie.parseFormat(n),h)}formatDurationFromString(e,n){const r=c=>{switch(c[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},s=c=>u=>{const d=r(u);return d?this.num(c.get(d),u.length):u},i=Ie.parseFormat(n),l=i.reduce((c,{literal:u,val:d})=>u?c:c.concat(d),[]),a=e.shiftTo(...l.map(r).filter(c=>c));return L_(i,s(a))}}const P_=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function kr(...t){const e=t.reduce((n,r)=>n+r.source,"");return RegExp(`^${e}$`)}function xr(...t){return e=>t.reduce(([n,r,s],i)=>{const[l,a,c]=i(e,s);return[{...n,...l},a||r,c]},[{},null,1]).slice(0,2)}function Cr(t,...e){if(t==null)return[null,null];for(const[n,r]of e){const s=n.exec(t);if(s)return r(s)}return[null,null]}function v_(...t){return(e,n)=>{const r={};let s;for(s=0;s<t.length;s++)r[t[s]]=on(e[n+s]);return[r,null,n+s]}}const R_=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,LS=`(?:${R_.source}?(?:\\[(${P_.source})\\])?)?`,Va=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,U_=RegExp(`${Va.source}${LS}`),La=RegExp(`(?:T${U_.source})?`),PS=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,vS=/(\d{4})-?W(\d\d)(?:-?(\d))?/,RS=/(\d{4})-?(\d{3})/,US=v_("weekYear","weekNumber","weekDay"),zS=v_("year","ordinal"),qS=/(\d{4})-(\d\d)-(\d\d)/,z_=RegExp(`${Va.source} ?(?:${R_.source}|(${P_.source}))?`),HS=RegExp(`(?: ${z_.source})?`);function Sr(t,e,n){const r=t[e];return P(r)?n:on(r)}function jS(t,e){return[{year:Sr(t,e),month:Sr(t,e+1,1),day:Sr(t,e+2,1)},null,e+3]}function Er(t,e){return[{hours:Sr(t,e,0),minutes:Sr(t,e+1,0),seconds:Sr(t,e+2,0),milliseconds:Da(t[e+3])},null,e+4]}function Eo(t,e){const n=!t[e]&&!t[e+1],r=vs(t[e+1],t[e+2]),s=n?null:Oe.instance(r);return[{},s,e+3]}function To(t,e){const n=t[e]?$t.create(t[e]):null;return[{},n,e+1]}const GS=RegExp(`^T?${Va.source}$`),WS=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function ZS(t){const[e,n,r,s,i,l,a,c,u]=t,d=e[0]==="-",f=c&&c[0]==="-",h=(_,g=!1)=>_!==void 0&&(g||_&&d)?-_:_;return[{years:h(Mn(n)),months:h(Mn(r)),weeks:h(Mn(s)),days:h(Mn(i)),hours:h(Mn(l)),minutes:h(Mn(a)),seconds:h(Mn(c),c==="-0"),milliseconds:h(Da(u),f)}]}const YS={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Pa(t,e,n,r,s,i,l){const a={year:e.length===2?Ma(on(e)):on(e),month:$_.indexOf(n)+1,day:on(r),hour:on(s),minute:on(i)};return l&&(a.second=on(l)),t&&(a.weekday=t.length>3?A_.indexOf(t)+1:D_.indexOf(t)+1),a}const QS=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function KS(t){const[,e,n,r,s,i,l,a,c,u,d,f]=t,h=Pa(e,s,r,n,i,l,a);let _;return c?_=YS[c]:u?_=0:_=vs(d,f),[h,new Oe(_)]}function XS(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const JS=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,e8=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,t8=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function q_(t){const[,e,n,r,s,i,l,a]=t;return[Pa(e,s,r,n,i,l,a),Oe.utcInstance]}function n8(t){const[,e,n,r,s,i,l,a]=t;return[Pa(e,a,n,r,s,i,l),Oe.utcInstance]}const r8=kr(PS,La),o8=kr(vS,La),s8=kr(RS,La),i8=kr(U_),H_=xr(jS,Er,Eo,To),l8=xr(US,Er,Eo,To),a8=xr(zS,Er,Eo,To),c8=xr(Er,Eo,To);function u8(t){return Cr(t,[r8,H_],[o8,l8],[s8,a8],[i8,c8])}function d8(t){return Cr(XS(t),[QS,KS])}function f8(t){return Cr(t,[JS,q_],[e8,q_],[t8,n8])}function _8(t){return Cr(t,[WS,ZS])}const h8=xr(Er);function m8(t){return Cr(t,[GS,h8])}const p8=kr(qS,HS),g8=kr(z_),b8=xr(Er,Eo,To);function y8(t){return Cr(t,[p8,H_],[g8,b8])}const j_="Invalid Duration",G_={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},w8={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...G_},lt=146097/400,Tr=146097/4800,k8={years:{quarters:4,months:12,weeks:lt/7,days:lt,hours:lt*24,minutes:lt*24*60,seconds:lt*24*60*60,milliseconds:lt*24*60*60*1e3},quarters:{months:3,weeks:lt/28,days:lt/4,hours:lt*24/4,minutes:lt*24*60/4,seconds:lt*24*60*60/4,milliseconds:lt*24*60*60*1e3/4},months:{weeks:Tr/7,days:Tr,hours:Tr*24,minutes:Tr*24*60,seconds:Tr*24*60*60,milliseconds:Tr*24*60*60*1e3},...G_},Vn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],x8=Vn.slice(0).reverse();function sn(t,e,n=!1){const r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new W(r)}function W_(t,e){let n=e.milliseconds??0;for(const r of x8.slice(1))e[r]&&(n+=e[r]*t[r].milliseconds);return n}function Z_(t,e){const n=W_(t,e)<0?-1:1;Vn.reduceRight((r,s)=>{if(P(e[s]))return r;if(r){const i=e[r]*n,l=t[s][r],a=Math.floor(i/l);e[s]+=a*n,e[r]-=a*l*n}return s},null),Vn.reduce((r,s)=>{if(P(e[s]))return r;if(r){const i=e[r]%1;e[r]-=i,e[s]+=i*t[r][s]}return s},null)}function C8(t){const e={};for(const[n,r]of Object.entries(t))r!==0&&(e[n]=r);return e}class W{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let r=n?k8:w8;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||K.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,n){return W.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new Ne(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new W({values:Rs(e,W.normalizeUnit),loc:K.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(rn(e))return W.fromMillis(e);if(W.isDuration(e))return e;if(typeof e=="object")return W.fromObject(e);throw new Ne(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[r]=_8(e);return r?W.fromObject(r,n):W.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[r]=m8(e);return r?W.fromObject(r,n):W.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new Ne("need to specify a reason the Duration is invalid");const r=e instanceof gt?e:new gt(e,n);if(le.throwOnInvalid)throw new WC(r);return new W({invalid:r})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new P0(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?Ie.create(this.loc,r).formatDurationFromString(this,e):j_}toHuman(e={}){if(!this.isValid)return j_;const n=Vn.map(r=>{const s=this.values[r];return P(s)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(s)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Oa(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},L.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?W_(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=W.fromDurationLike(e),r={};for(const s of Vn)(yr(n.values,s)||yr(this.values,s))&&(r[s]=n.get(s)+this.get(s));return sn(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const n=W.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=I_(e(this.values[r],r));return sn(this,{values:n},!0)}get(e){return this[W.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...Rs(e,W.normalizeUnit)};return sn(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:r,matrix:s}={}){const l={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:s,conversionAccuracy:r};return sn(this,l)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Z_(this.matrix,e),sn(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=C8(this.normalize().shiftToAll().toObject());return sn(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(l=>W.normalizeUnit(l));const n={},r={},s=this.toObject();let i;for(const l of Vn)if(e.indexOf(l)>=0){i=l;let a=0;for(const u in r)a+=this.matrix[u][l]*r[u],r[u]=0;rn(s[l])&&(a+=s[l]);const c=Math.trunc(a);n[l]=c,r[l]=(a*1e3-c*1e3)/1e3}else rn(s[l])&&(r[l]=s[l]);for(const l in r)r[l]!==0&&(n[i]+=l===i?r[l]:r[l]/this.matrix[i][l]);return Z_(this.matrix,n),sn(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return sn(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(r,s){return r===void 0||r===0?s===void 0||s===0:r===s}for(const r of Vn)if(!n(this.values[r],e.values[r]))return!1;return!0}}const Br="Invalid Interval";function S8(t,e){return!t||!t.isValid?ae.invalid("missing or invalid start"):!e||!e.isValid?ae.invalid("missing or invalid end"):e<t?ae.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class ae{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new Ne("need to specify a reason the Interval is invalid");const r=e instanceof gt?e:new gt(e,n);if(le.throwOnInvalid)throw new GC(r);return new ae({invalid:r})}static fromDateTimes(e,n){const r=No(e),s=No(n),i=S8(r,s);return i??new ae({start:r,end:s})}static after(e,n){const r=W.fromDurationLike(n),s=No(e);return ae.fromDateTimes(s,s.plus(r))}static before(e,n){const r=W.fromDurationLike(n),s=No(e);return ae.fromDateTimes(s.minus(r),s)}static fromISO(e,n){const[r,s]=(e||"").split("/",2);if(r&&s){let i,l;try{i=L.fromISO(r,n),l=i.isValid}catch{l=!1}let a,c;try{a=L.fromISO(s,n),c=a.isValid}catch{c=!1}if(l&&c)return ae.fromDateTimes(i,a);if(l){const u=W.fromISO(s,n);if(u.isValid)return ae.after(i,u)}else if(c){const u=W.fromISO(r,n);if(u.isValid)return ae.before(a,u)}}return ae.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",n){if(!this.isValid)return NaN;const r=this.start.startOf(e,n);let s;return n!=null&&n.useLocaleWeeks?s=this.end.reconfigure({locale:r.locale}):s=this.end,s=s.startOf(e,n),Math.floor(s.diff(r,e).get(e))+(s.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?ae.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(No).filter(l=>this.contains(l)).sort((l,a)=>l.toMillis()-a.toMillis()),r=[];let{s}=this,i=0;for(;s<this.e;){const l=n[i]||this.e,a=+l>+this.e?this.e:l;r.push(ae.fromDateTimes(s,a)),s=a,i+=1}return r}splitBy(e){const n=W.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,s=1,i;const l=[];for(;r<this.e;){const a=this.start.plus(n.mapUnits(c=>c*s));i=+a>+this.e?this.e:a,l.push(ae.fromDateTimes(r,i)),r=i,s+=1}return l}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return n>=r?null:ae.fromDateTimes(n,r)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return ae.fromDateTimes(n,r)}static merge(e){const[n,r]=e.sort((s,i)=>s.s-i.s).reduce(([s,i],l)=>i?i.overlaps(l)||i.abutsStart(l)?[s,i.union(l)]:[s.concat([i]),l]:[s,l],[[],null]);return r&&n.push(r),n}static xor(e){let n=null,r=0;const s=[],i=e.map(c=>[{time:c.s,type:"s"},{time:c.e,type:"e"}]),l=Array.prototype.concat(...i),a=l.sort((c,u)=>c.time-u.time);for(const c of a)r+=c.type==="s"?1:-1,r===1?n=c.time:(n&&+n!=+c.time&&s.push(ae.fromDateTimes(n,c.time)),n=null);return ae.merge(s)}difference(...e){return ae.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Br}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=$s,n={}){return this.isValid?Ie.create(this.s.loc.clone(n),e).formatInterval(this):Br}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Br}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Br}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Br}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:Br}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):W.invalid(this.invalidReason)}mapEndpoints(e){return ae.fromDateTimes(e(this.s),e(this.e))}}class zs{static hasDST(e=le.defaultZone){const n=L.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return $t.isValidZone(e)}static normalizeZone(e){return nn(e,le.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||K.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||K.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||K.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||K.create(n,r,i)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||K.create(n,r,i)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null}={}){return(s||K.create(n,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null}={}){return(s||K.create(n,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return K.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return K.create(n,null,"gregory").eras(e)}static features(){return{relative:S_(),localeWeek:E_()}}}function Y_(t,e){const n=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(W.fromMillis(r).as("days"))}function E8(t,e,n){const r=[["years",(c,u)=>u.year-c.year],["quarters",(c,u)=>u.quarter-c.quarter+(u.year-c.year)*4],["months",(c,u)=>u.month-c.month+(u.year-c.year)*12],["weeks",(c,u)=>{const d=Y_(c,u);return(d-d%7)/7}],["days",Y_]],s={},i=t;let l,a;for(const[c,u]of r)n.indexOf(c)>=0&&(l=c,s[c]=u(t,e),a=i.plus(s),a>e?(s[c]--,t=i.plus(s),t>e&&(a=t,s[c]--,t=i.plus(s))):t=a);return[t,s,a,l]}function T8(t,e,n,r){let[s,i,l,a]=E8(t,e,n);const c=e-s,u=n.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);u.length===0&&(l<e&&(l=s.plus({[a]:1})),l!==s&&(i[a]=(i[a]||0)+c/(l-s)));const d=W.fromObject(i,r);return u.length>0?W.fromMillis(c,r).shiftTo(...u).plus(d):d}const B8="missing Intl.DateTimeFormat.formatToParts support";function Q(t,e=n=>n){return{regex:t,deser:([n])=>e(pS(n))}}const Q_="[ ]",K_=new RegExp(Q_,"g");function N8(t){return t.replace(/\./g,"\\.?").replace(K_,Q_)}function X_(t){return t.replace(/\./g,"").replace(K_," ").toLowerCase()}function bt(t,e){return t===null?null:{regex:RegExp(t.map(N8).join("|")),deser:([n])=>t.findIndex(r=>X_(n)===X_(r))+e}}function J_(t,e){return{regex:t,deser:([,n,r])=>vs(n,r),groups:e}}function qs(t){return{regex:t,deser:([e])=>e}}function I8(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function $8(t,e){const n=pt(e),r=pt(e,"{2}"),s=pt(e,"{3}"),i=pt(e,"{4}"),l=pt(e,"{6}"),a=pt(e,"{1,2}"),c=pt(e,"{1,3}"),u=pt(e,"{1,6}"),d=pt(e,"{1,9}"),f=pt(e,"{2,4}"),h=pt(e,"{4,6}"),_=p=>({regex:RegExp(I8(p.val)),deser:([y])=>y,literal:!0}),m=(p=>{if(t.literal)return _(p);switch(p.val){case"G":return bt(e.eras("short"),0);case"GG":return bt(e.eras("long"),0);case"y":return Q(u);case"yy":return Q(f,Ma);case"yyyy":return Q(i);case"yyyyy":return Q(h);case"yyyyyy":return Q(l);case"M":return Q(a);case"MM":return Q(r);case"MMM":return bt(e.months("short",!0),1);case"MMMM":return bt(e.months("long",!0),1);case"L":return Q(a);case"LL":return Q(r);case"LLL":return bt(e.months("short",!1),1);case"LLLL":return bt(e.months("long",!1),1);case"d":return Q(a);case"dd":return Q(r);case"o":return Q(c);case"ooo":return Q(s);case"HH":return Q(r);case"H":return Q(a);case"hh":return Q(r);case"h":return Q(a);case"mm":return Q(r);case"m":return Q(a);case"q":return Q(a);case"qq":return Q(r);case"s":return Q(a);case"ss":return Q(r);case"S":return Q(c);case"SSS":return Q(s);case"u":return qs(d);case"uu":return qs(a);case"uuu":return Q(n);case"a":return bt(e.meridiems(),0);case"kkkk":return Q(i);case"kk":return Q(f,Ma);case"W":return Q(a);case"WW":return Q(r);case"E":case"c":return Q(n);case"EEE":return bt(e.weekdays("short",!1),1);case"EEEE":return bt(e.weekdays("long",!1),1);case"ccc":return bt(e.weekdays("short",!0),1);case"cccc":return bt(e.weekdays("long",!0),1);case"Z":case"ZZ":return J_(new RegExp(`([+-]${a.source})(?::(${r.source}))?`),2);case"ZZZ":return J_(new RegExp(`([+-]${a.source})(${r.source})?`),2);case"z":return qs(/[a-z_+-/]{1,256}?/i);case" ":return qs(/[^\S\n\r]/);default:return _(p)}})(t)||{invalidReason:B8};return m.token=t,m}const F8={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function A8(t,e,n){const{type:r,value:s}=t;if(r==="literal"){const c=/^\s+$/.test(s);return{literal:!c,val:c?" ":s}}const i=e[r];let l=r;r==="hour"&&(e.hour12!=null?l=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?l="hour12":l="hour24":l=n.hour12?"hour12":"hour24");let a=F8[l];if(typeof a=="object"&&(a=a[i]),a)return{literal:!1,val:a}}function D8(t){return[`^${t.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,t]}function O8(t,e,n){const r=t.match(e);if(r){const s={};let i=1;for(const l in n)if(yr(n,l)){const a=n[l],c=a.groups?a.groups+1:1;!a.literal&&a.token&&(s[a.token.val[0]]=a.deser(r.slice(i,i+c))),i+=c}return[r,s]}else return[r,{}]}function M8(t){const e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return P(t.z)||(n=$t.create(t.z)),P(t.Z)||(n||(n=new Oe(t.Z)),r=t.Z),P(t.q)||(t.M=(t.q-1)*3+1),P(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),P(t.u)||(t.S=Da(t.u)),[Object.keys(t).reduce((i,l)=>{const a=e(l);return a&&(i[a]=t[l]),i},{}),n,r]}let va=null;function V8(){return va||(va=L.fromMillis(1555555555555)),va}function L8(t,e){if(t.literal)return t;const n=Ie.macroTokenToFormatOpts(t.val),r=rh(n,e);return r==null||r.includes(void 0)?t:r}function eh(t,e){return Array.prototype.concat(...t.map(n=>L8(n,e)))}class th{constructor(e,n){if(this.locale=e,this.format=n,this.tokens=eh(Ie.parseFormat(n),e),this.units=this.tokens.map(r=>$8(r,e)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,s]=D8(this.units);this.regex=RegExp(r,"i"),this.handlers=s}}explainFromTokens(e){if(this.isValid){const[n,r]=O8(e,this.regex,this.handlers),[s,i,l]=r?M8(r):[null,null,void 0];if(yr(r,"a")&&yr(r,"H"))throw new gr("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:r,result:s,zone:i,specificOffset:l}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function nh(t,e,n){return new th(t,n).explainFromTokens(e)}function P8(t,e,n){const{result:r,zone:s,specificOffset:i,invalidReason:l}=nh(t,e,n);return[r,s,i,l]}function rh(t,e){if(!t)return null;const r=Ie.create(e,t).dtFormatter(V8()),s=r.formatToParts(),i=r.resolvedOptions();return s.map(l=>A8(l,t,i))}const Ra="Invalid DateTime",v8=864e13;function Bo(t){return new gt("unsupported zone",`the zone "${t.name}" is not supported`)}function Ua(t){return t.weekData===null&&(t.weekData=Ms(t.c)),t.weekData}function za(t){return t.localWeekData===null&&(t.localWeekData=Ms(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Ln(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new L({...n,...e,old:n})}function oh(t,e,n){let r=t-e*60*1e3;const s=n.offset(r);if(e===s)return[r,e];r-=(s-e)*60*1e3;const i=n.offset(r);return s===i?[r,s]:[t-Math.min(s,i)*60*1e3,Math.max(s,i)]}function Hs(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function js(t,e,n){return oh(Ps(t),e,n)}function sh(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:r,month:s,day:Math.min(t.c.day,Ls(r,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},l=W.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=Ps(i);let[c,u]=oh(a,n,t.zone);return l!==0&&(c+=l,u=t.zone.offset(c)),{ts:c,o:u}}function Nr(t,e,n,r,s,i){const{setZone:l,zone:a}=n;if(t&&Object.keys(t).length!==0||e){const c=e||a,u=L.fromObject(t,{...n,zone:c,specificOffset:i});return l?u:u.setZone(a)}else return L.invalid(new gt("unparsable",`the input "${s}" can't be parsed as ${r}`))}function Gs(t,e,n=!0){return t.isValid?Ie.create(K.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function qa(t,e){const n=t.c.year>9999||t.c.year<0;let r="";return n&&t.c.year>=0&&(r+="+"),r+=pe(t.c.year,n?6:4),e?(r+="-",r+=pe(t.c.month),r+="-",r+=pe(t.c.day)):(r+=pe(t.c.month),r+=pe(t.c.day)),r}function ih(t,e,n,r,s,i){let l=pe(t.c.hour);return e?(l+=":",l+=pe(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(l+=":")):l+=pe(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(l+=pe(t.c.second),(t.c.millisecond!==0||!r)&&(l+=".",l+=pe(t.c.millisecond,3))),s&&(t.isOffsetFixed&&t.offset===0&&!i?l+="Z":t.o<0?(l+="-",l+=pe(Math.trunc(-t.o/60)),l+=":",l+=pe(Math.trunc(-t.o%60))):(l+="+",l+=pe(Math.trunc(t.o/60)),l+=":",l+=pe(Math.trunc(t.o%60)))),i&&(l+="["+t.zone.ianaName+"]"),l}const lh={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},R8={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},U8={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ah=["year","month","day","hour","minute","second","millisecond"],z8=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],q8=["year","ordinal","hour","minute","second","millisecond"];function H8(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new P0(t);return e}function ch(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return H8(t)}}function j8(t){return Zs[t]||(Ws===void 0&&(Ws=le.now()),Zs[t]=t.offset(Ws)),Zs[t]}function uh(t,e){const n=nn(e.zone,le.defaultZone);if(!n.isValid)return L.invalid(Bo(n));const r=K.fromObject(e);let s,i;if(P(t.year))s=le.now();else{for(const c of ah)P(t[c])&&(t[c]=lh[c]);const l=x_(t)||C_(t);if(l)return L.invalid(l);const a=j8(n);[s,i]=js(t,a,n)}return new L({ts:s,zone:n,loc:r,o:i})}function dh(t,e,n){const r=P(n.round)?!0:n.round,s=(l,a)=>(l=Oa(l,r||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(l,a)),i=l=>n.calendary?e.hasSame(t,l)?0:e.startOf(l).diff(t.startOf(l),l).get(l):e.diff(t,l).get(l);if(n.unit)return s(i(n.unit),n.unit);for(const l of n.units){const a=i(l);if(Math.abs(a)>=1)return s(a,l)}return s(t>e?-0:0,n.units[n.units.length-1])}function fh(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}let Ws,Zs={};class L{constructor(e){const n=e.zone||le.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new gt("invalid input"):null)||(n.isValid?null:Bo(n));this.ts=P(e.ts)?le.now():e.ts;let s=null,i=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[s,i]=[e.old.c,e.old.o];else{const a=rn(e.o)&&!e.old?e.o:n.offset(this.ts);s=Hs(this.ts,a),r=Number.isNaN(s.year)?new gt("invalid input"):null,s=r?null:s,i=r?null:a}this._zone=n,this.loc=e.loc||K.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=s,this.o=i,this.isLuxonDateTime=!0}static now(){return new L({})}static local(){const[e,n]=fh(arguments),[r,s,i,l,a,c,u]=n;return uh({year:r,month:s,day:i,hour:l,minute:a,second:c,millisecond:u},e)}static utc(){const[e,n]=fh(arguments),[r,s,i,l,a,c,u]=n;return e.zone=Oe.utcInstance,uh({year:r,month:s,day:i,hour:l,minute:a,second:c,millisecond:u},e)}static fromJSDate(e,n={}){const r=kS(e)?e.valueOf():NaN;if(Number.isNaN(r))return L.invalid("invalid input");const s=nn(n.zone,le.defaultZone);return s.isValid?new L({ts:r,zone:s,loc:K.fromObject(n)}):L.invalid(Bo(s))}static fromMillis(e,n={}){if(rn(e))return e<-864e13||e>v8?L.invalid("Timestamp out of range"):new L({ts:e,zone:nn(n.zone,le.defaultZone),loc:K.fromObject(n)});throw new Ne(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(rn(e))return new L({ts:e*1e3,zone:nn(n.zone,le.defaultZone),loc:K.fromObject(n)});throw new Ne("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const r=nn(n.zone,le.defaultZone);if(!r.isValid)return L.invalid(Bo(r));const s=K.fromObject(n),i=Rs(e,ch),{minDaysInFirstWeek:l,startOfWeek:a}=k_(i,s),c=le.now(),u=P(n.specificOffset)?r.offset(c):n.specificOffset,d=!P(i.ordinal),f=!P(i.year),h=!P(i.month)||!P(i.day),_=f||h,g=i.weekYear||i.weekNumber;if((_||d)&&g)throw new gr("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&d)throw new gr("Can't mix ordinal dates with month/day");const m=g||i.weekday&&!_;let p,y,b=Hs(c,u);m?(p=z8,y=R8,b=Ms(b,l,a)):d?(p=q8,y=U8,b=Fa(b)):(p=ah,y=lh);let w=!1;for(const N of p){const $=i[N];P($)?w?i[N]=y[N]:i[N]=b[N]:w=!0}const C=m?bS(i,l,a):d?yS(i):x_(i),E=C||C_(i);if(E)return L.invalid(E);const k=m?y_(i,l,a):d?w_(i):i,[S,T]=js(k,u,r),B=new L({ts:S,zone:r,o:T,loc:s});return i.weekday&&_&&e.weekday!==B.weekday?L.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${B.toISO()}`):B.isValid?B:L.invalid(B.invalid)}static fromISO(e,n={}){const[r,s]=u8(e);return Nr(r,s,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[r,s]=d8(e);return Nr(r,s,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[r,s]=f8(e);return Nr(r,s,n,"HTTP",n)}static fromFormat(e,n,r={}){if(P(e)||P(n))throw new Ne("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:i=null}=r,l=K.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0}),[a,c,u,d]=P8(l,e,n);return d?L.invalid(d):Nr(a,c,r,`format ${n}`,e,u)}static fromString(e,n,r={}){return L.fromFormat(e,n,r)}static fromSQL(e,n={}){const[r,s]=y8(e);return Nr(r,s,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new Ne("need to specify a reason the DateTime is invalid");const r=e instanceof gt?e:new gt(e,n);if(le.throwOnInvalid)throw new jC(r);return new L({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const r=rh(e,K.fromObject(n));return r?r.map(s=>s?s.val:null).join(""):null}static expandFormat(e,n={}){return eh(Ie.parseFormat(e),K.fromObject(n)).map(s=>s.val).join("")}static resetCache(){Ws=void 0,Zs={}}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Ua(this).weekYear:NaN}get weekNumber(){return this.isValid?Ua(this).weekNumber:NaN}get weekday(){return this.isValid?Ua(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?za(this).weekday:NaN}get localWeekNumber(){return this.isValid?za(this).weekNumber:NaN}get localWeekYear(){return this.isValid?za(this).weekYear:NaN}get ordinal(){return this.isValid?Fa(this.c).ordinal:NaN}get monthShort(){return this.isValid?zs.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?zs.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?zs.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?zs.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,n=6e4,r=Ps(this.c),s=this.zone.offset(r-e),i=this.zone.offset(r+e),l=this.zone.offset(r-s*n),a=this.zone.offset(r-i*n);if(l===a)return[this];const c=r-l*n,u=r-a*n,d=Hs(c,l),f=Hs(u,a);return d.hour===f.hour&&d.minute===f.minute&&d.second===f.second&&d.millisecond===f.millisecond?[Ln(this,{ts:c}),Ln(this,{ts:u})]:[this]}get isInLeapYear(){return xo(this.year)}get daysInMonth(){return Ls(this.year,this.month)}get daysInYear(){return this.isValid?wr(this.year):NaN}get weeksInWeekYear(){return this.isValid?Co(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Co(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:r,calendar:s}=Ie.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:s}}toUTC(e=0,n={}){return this.setZone(Oe.instance(e),n)}toLocal(){return this.setZone(le.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(e=nn(e,le.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(n||r){const i=e.offset(this.ts),l=this.toObject();[s]=js(l,i,e)}return Ln(this,{ts:s,zone:e})}else return L.invalid(Bo(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:r}={}){const s=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:r});return Ln(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=Rs(e,ch),{minDaysInFirstWeek:r,startOfWeek:s}=k_(n,this.loc),i=!P(n.weekYear)||!P(n.weekNumber)||!P(n.weekday),l=!P(n.ordinal),a=!P(n.year),c=!P(n.month)||!P(n.day),u=a||c,d=n.weekYear||n.weekNumber;if((u||l)&&d)throw new gr("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&l)throw new gr("Can't mix ordinal dates with month/day");let f;i?f=y_({...Ms(this.c,r,s),...n},r,s):P(n.ordinal)?(f={...this.toObject(),...n},P(n.day)&&(f.day=Math.min(Ls(f.year,f.month),f.day))):f=w_({...Fa(this.c),...n});const[h,_]=js(f,this.o,this.zone);return Ln(this,{ts:h,o:_})}plus(e){if(!this.isValid)return this;const n=W.fromDurationLike(e);return Ln(this,sh(this,n))}minus(e){if(!this.isValid)return this;const n=W.fromDurationLike(e).negate();return Ln(this,sh(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},s=W.normalizeUnit(e);switch(s){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(s==="weeks")if(n){const i=this.loc.getStartOfWeek(),{weekday:l}=this;l<i&&(r.weekNumber=this.weekNumber-1),r.weekday=i}else r.weekday=1;if(s==="quarters"){const i=Math.ceil(this.month/3);r.month=(i-1)*3+1}return this.set(r)}endOf(e,n){return this.isValid?this.plus({[e]:1}).startOf(e,n).minus(1):this}toFormat(e,n={}){return this.isValid?Ie.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):Ra}toLocaleString(e=$s,n={}){return this.isValid?Ie.create(this.loc.clone(n),e).formatDateTime(this):Ra}toLocaleParts(e={}){return this.isValid?Ie.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:s=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const l=e==="extended";let a=qa(this,l);return a+="T",a+=ih(this,l,n,r,s,i),a}toISODate({format:e="extended"}={}){return this.isValid?qa(this,e==="extended"):null}toISOWeekDate(){return Gs(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:s=!1,extendedZone:i=!1,format:l="extended"}={}){return this.isValid?(s?"T":"")+ih(this,l==="extended",n,e,r,i):null}toRFC2822(){return Gs(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Gs(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?qa(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let s="HH:mm:ss.SSS";return(n||e)&&(r&&(s+=" "),n?s+="z":e&&(s+="ZZ")),Gs(this,s,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Ra}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",r={}){if(!this.isValid||!e.isValid)return W.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...r},i=xS(n).map(W.normalizeUnit),l=e.valueOf()>this.valueOf(),a=l?this:e,c=l?e:this,u=T8(a,c,i,s);return l?u.negate():u}diffNow(e="milliseconds",n={}){return this.diff(L.now(),e,n)}until(e){return this.isValid?ae.fromDateTimes(this,e):this}hasSame(e,n,r){if(!this.isValid)return!1;const s=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(n,r)<=s&&s<=i.endOf(n,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||L.fromObject({},{zone:this.zone}),r=e.padding?this<n?-e.padding:e.padding:0;let s=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(s=e.unit,i=void 0),dh(n,this.plus(r),{...e,numeric:"always",units:s,unit:i})}toRelativeCalendar(e={}){return this.isValid?dh(e.base||L.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(L.isDateTime))throw new Ne("min requires all arguments be DateTimes");return T_(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(L.isDateTime))throw new Ne("max requires all arguments be DateTimes");return T_(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,r={}){const{locale:s=null,numberingSystem:i=null}=r,l=K.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0});return nh(l,e,n)}static fromStringExplain(e,n,r={}){return L.fromFormatExplain(e,n,r)}static buildFormatParser(e,n={}){const{locale:r=null,numberingSystem:s=null}=n,i=K.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0});return new th(i,e)}static fromFormatParser(e,n,r={}){if(P(e)||P(n))throw new Ne("fromFormatParser requires an input string and a format parser");const{locale:s=null,numberingSystem:i=null}=r,l=K.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0});if(!l.equals(n.locale))throw new Ne(`fromFormatParser called with a locale of ${l}, but the format parser was created for ${n.locale}`);const{result:a,zone:c,specificOffset:u,invalidReason:d}=n.explainFromTokens(e);return d?L.invalid(d):Nr(a,c,r,`format ${n.format}`,e,u)}static get DATE_SHORT(){return $s}static get DATE_MED(){return v0}static get DATE_MED_WITH_WEEKDAY(){return ZC}static get DATE_FULL(){return R0}static get DATE_HUGE(){return U0}static get TIME_SIMPLE(){return z0}static get TIME_WITH_SECONDS(){return q0}static get TIME_WITH_SHORT_OFFSET(){return H0}static get TIME_WITH_LONG_OFFSET(){return j0}static get TIME_24_SIMPLE(){return G0}static get TIME_24_WITH_SECONDS(){return W0}static get TIME_24_WITH_SHORT_OFFSET(){return Z0}static get TIME_24_WITH_LONG_OFFSET(){return Y0}static get DATETIME_SHORT(){return Q0}static get DATETIME_SHORT_WITH_SECONDS(){return K0}static get DATETIME_MED(){return X0}static get DATETIME_MED_WITH_SECONDS(){return J0}static get DATETIME_MED_WITH_WEEKDAY(){return YC}static get DATETIME_FULL(){return e_}static get DATETIME_FULL_WITH_SECONDS(){return t_}static get DATETIME_HUGE(){return n_}static get DATETIME_HUGE_WITH_SECONDS(){return r_}}function No(t){if(L.isDateTime(t))return t;if(t&&t.valueOf&&rn(t.valueOf()))return L.fromJSDate(t);if(t&&typeof t=="object")return L.fromObject(t);throw new Ne(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const Ha=new $t("America/Chicago");function ja(t){return t=t==null?void 0:t.replace("T"," "),L.fromSQL(t,{zone:Ha}).setZone("local")}function _h(t){return t=t==null?void 0:t.replace("T"," "),L.fromSQL(t,{zone:"local"}).setZone(Ha)}function G8(t){return Ft(t,{format:"yyyy/MM/dd"})}function Ir(t,e={}){return Ys(ja(t),e)}function Ys(t=null,{format:e="M/d/yy h:mma",empty:n="- -"}={}){var s;return((s=at(t))==null?void 0:s.toFormat(e).toLowerCase())||n}function W8(t=null,{empty:e="- -"}={}){var r;return((r=at(t))==null?void 0:r.toFormat("M/d/yy H:mm:ss.SSS").toLowerCase())||e}function Ga(t=null){return Ys(t,{format:"yyyy-MM-dd HH:mm:ss",empty:void 0})}function Ft(t,{empty:e="--",format:n="M/d/yy"}={}){var s;return((s=at(t))==null?void 0:s.toFormat(n||"M/d/yy"))||e}function at(t){return typeof t=="number"?L.fromMillis(t):typeof t=="string"?hh(t):t||L.fromSQL("0000-00-00 00:00:00")}function Z8(t){const e=L.fromSQL(t.replace("T"," ").replace(/\//g,"-"));return e.isValid?e:null}function Wa(t,e="yyyy/MM/dd"){const n=L.fromFormat(t,e);return n.isValid?n:null}function Za(t,e="yyyy/MM/dd HH:mm:ss"){const n=L.fromFormat(t,e);return n.isValid?n:null}function hh(t,e="local"){if(!t)return null;const n=["yyyy-MM-dd","yyyy-MM-dd HH:mm:ss","MM/dd/yyyy","dd/MM/yyyy","MM/dd/yy","dd/MM/yy","yyyy/MM/dd","MM-dd-yyyy","dd-MM-yyyy","M/d/yyyy","d/M/yyyy","yyyyMMdd"];for(const i of n){const l=L.fromFormat(t,i,{zone:e});if(l.isValid)return l}const r=L.fromISO(t,{zone:e});if(r.isValid)return r;const s=L.fromSQL(t,{zone:e});return s.isValid?s:null}function Y8(t){const e=L.now().setZone("UTC").startOf("year").set({second:t}),n=Math.floor(t/3600);return(n?n+":":"")+e.toFormat("mm:ss")}function Ya(t){const e=Math.floor(t/3600),n=Math.floor(t%3600/60),r=Math.floor(t%60);return`${e?e+"h ":""}${n?n+"m ":""}${r}s`}function Q8(t){const e=Ya(Math.floor(t/1e3));return(e==="0s"?"":e)+` ${Math.floor(t%1e3)}ms`}function K8(t,e){const n=e?at(e):L.now(),r=n==null?void 0:n.diff(at(t)||L.now(),["hours","minutes","seconds"]);if(!(r!=null&&r.isValid))return"-";const s=r.as("seconds");return Ya(s)}function X8(t){if(!t)return"";const e=at(t);if(!e)return"";const n=L.now(),r=Math.abs(n.toMillis()-e.toMillis()),s=Math.floor(r/1e3),i=Math.floor(r/(1e3*60)),l=Math.floor(r/(1e3*60*60));if(s<10)return"a few seconds ago";if(s<60)return`${s} seconds ago`;if(i===1)return"a minute ago";if(i<60)return`${i} minutes ago`;if(l===1)return"an hour ago";if(l<24)return`${l} hours ago`;const a=n.startOf("day"),c=e.startOf("day"),u=Math.floor(a.diff(c,"days").days);if(u===0)return"today";if(u===1)return"yesterday";if(u<7)return`${u} days ago`;if(u<30){const d=Math.floor(u/7);return d===1?"a week ago":`${d} weeks ago`}return e.toLocaleString({year:"numeric",month:"short",day:"numeric"})}function Qs(t,e){return t==null||isNaN(t)?"$-":new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",...e}).format(t)}function J8(t,e){return Qs(t,{maximumFractionDigits:0,...e})}function vt(t,e){return new Intl.NumberFormat("en-US",e).format(t)}function eE(t,e){return"$"+mh(t,e)}function mh(t,e){if(t===""||t===null||t===void 0)return"-";const n=[{pow:3,unit:"K"},{pow:6,unit:"M"},{pow:9,unit:"B"},{pow:12,unit:"T"},{pow:15,unit:"Q"}];let r=Math.round(+t);const s=n.find(({pow:i})=>Math.pow(10,i)<r&&Math.pow(10,i+3)>r)||null;return s?(r=r/Math.pow(10,s.pow),e!=null&&e.round?r+s.unit:r.toFixed(r>100?0:1)+s.unit):r}function tE(t){const e=[{pow:0,unit:"B"},{pow:10,unit:"KB"},{pow:20,unit:"MB"},{pow:30,unit:"GB"},{pow:40,unit:"TB"},{pow:50,unit:"PB"},{pow:60,unit:"EB"},{pow:70,unit:"ZB"},{pow:80,unit:"YB"}],n=Math.round(+t),r=e.find((i,l)=>{const a=e[l+1];return!a||n<Math.pow(2,a.pow+10)})||e[e.length-1],s=Math.pow(2,r.pow);return Math.round(n/s)+" "+r.unit}function ph(t){switch(t){case"Yes":case"No":return t}return t==null?"-":t?"Yes":"No"}function gh(t,e={}){return e={multiplier:100,maximumFractionDigits:1,NaN:"N/A",...e},t=parseFloat(""+t),isNaN(t)?e.NaN:vt(t*(e.multiplier||100),e)+"%"}function nE(t,e){if(t.length>e){const n=Math.floor((e-3)/2),r=e-n-3;return t.substring(0,n)+"..."+t.substring(t.length-r)}else return t}function rE(t){if(!t||typeof t!="string")return t||"";const e=t.replace(/\D/g,"").split("");let n="";const s=e.length>0&&e[0]==="1"?1:0;return e.map((i,l)=>{switch(l){case s:n+="(";break;case s+3:n+=") ";break;case s+6:n+="-";break;case s+10:n+=" x";break}l===0&&i==="1"?n+="+1 ":n+=i}),t==="+1 ("?"":n}function bh(t,e){return Array.isArray(t)?`${t==null?void 0:t.length} ${e}`:`${t?t.title||t.name||t.id:""}`}function oE(t,e){var n;return(n=at(e))==null?void 0:n.diff(at(t)||L.now(),["days"]).days}function Ks(t,e,n){var r=window,s="application/octet-stream",i=n||s,l=t,a=!e&&!n&&l,c=document.createElement("a"),u=function(y){return String(y)},d=r.Blob||r.MozBlob||r.WebKitBlob||u,f=e||"download",h,_;if(d=d.call?d.bind(r):Blob,String(this)==="true"&&(l=[l,i],i=l[0],l=l[1]),a&&a.length<2048)if(f=a.split("/").pop().split("?")[0],c.href=a,c.href.indexOf(a)!==-1||c.href.indexOf(encodeURI(a))!==-1||c.href===encodeURI(a)){var g=new XMLHttpRequest;return g.open("GET",a+"?no-cache="+Date.now(),!0),g.responseType="blob",g.onload=function(y){Ks(y.target.response,f,s)},g.onerror=function(y){window.open(a,"_blank").focus()},setTimeout(function(){g.send()},0),g}else throw new Error("Invalid URL given, cannot download file: "+a);if(/^data:[\w+-]+\/[\w+-]+[,;]/.test(l))if(l.length>1024*1024*1.999&&d!==u)l=m(l),i=l.type||s;else return navigator.msSaveBlob?navigator.msSaveBlob(m(l),f):p(l);h=l instanceof d?l:new d([l],{type:i});function m(y){var b=y.split(/[:;,]/),w=b[1],C=b[2]==="base64"?atob:decodeURIComponent,E=C(b.pop()),k=E.length,S=0,T=new Uint8Array(k);for(S;S<k;++S)T[S]=E.charCodeAt(S);return new d([T],{type:w})}function p(y,b){if("download"in c)return c.href=y,c.setAttribute("download",f),c.className="download-js-link",c.innerHTML="downloading...",c.style.display="none",document.body.appendChild(c),setTimeout(function(){c.click(),document.body.removeChild(c),b===!0&&setTimeout(function(){r.URL.revokeObjectURL(c.href)},250)},66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return y=y.replace(/^data:([\w/\-+]+)/,s),window.open(y)||confirm(`Displaying New Document
|
|
234
|
+
*/var Am,mn,Ao,ec,Hn,Lm,tc,_E=function(){return typeof window<"u"},Qt={},qn=180/Math.PI,Lo=Math.PI/180,Fo=Math.atan2,Fm=1e8,nc=/([A-Z])/g,gE=/(left|right|width|margin|padding|x)/i,bE=/[\s,\(]\S/,Pt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},oc=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},yE=function(e,n){return n.set(n.t,n.p,e===1?n.e:Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},wE=function(e,n){return n.set(n.t,n.p,e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},kE=function(e,n){var o=n.s+n.c*e;n.set(n.t,n.p,~~(o+(o<0?-.5:.5))+n.u,n)},Mm=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},Om=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},xE=function(e,n,o){return e.style[n]=o},CE=function(e,n,o){return e.style.setProperty(n,o)},SE=function(e,n,o){return e._gsap[n]=o},EE=function(e,n,o){return e._gsap.scaleX=e._gsap.scaleY=o},TE=function(e,n,o,s,i){var l=e._gsap;l.scaleX=l.scaleY=o,l.renderTransform(i,l)},BE=function(e,n,o,s,i){var l=e._gsap;l[n]=o,l.renderTransform(i,l)},ge="transform",Je=ge+"Origin",NE=function t(e,n){var o=this,s=this.target,i=s.style,l=s._gsap;if(e in Qt&&i){if(this.tfm=this.tfm||{},e!=="transform")e=Pt[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return o.tfm[a]=Xt(s,a)}):this.tfm[e]=l.x?l[e]:Xt(s,e),e===Je&&(this.tfm.zOrigin=l.zOrigin);else return Pt.transform.split(",").forEach(function(a){return t.call(o,a,n)});if(this.props.indexOf(ge)>=0)return;l.svg&&(this.svgo=s.getAttribute("data-svg-origin"),this.props.push(Je,n,"")),e=ge}(i||n)&&this.props.push(e,n,i[e])},Dm=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},$E=function(){var e=this.props,n=this.target,o=n.style,s=n._gsap,i,l;for(i=0;i<e.length;i+=3)e[i+1]?e[i+1]===2?n[e[i]](e[i+2]):n[e[i]]=e[i+2]:e[i+2]?o[e[i]]=e[i+2]:o.removeProperty(e[i].substr(0,2)==="--"?e[i]:e[i].replace(nc,"-$1").toLowerCase());if(this.tfm){for(l in this.tfm)s[l]=this.tfm[l];s.svg&&(s.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),i=tc(),(!i||!i.isStart)&&!o[ge]&&(Dm(o),s.zOrigin&&o[Je]&&(o[Je]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},vm=function(e,n){var o={target:e,props:[],revert:$E,save:NE};return e._gsap||Xe.core.getCache(e),n&&e.style&&e.nodeType&&n.split(",").forEach(function(s){return o.save(s)}),o},Vm,rc=function(e,n){var o=mn.createElementNS?mn.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):mn.createElement(e);return o&&o.style?o:mn.createElement(e)},Rt=function t(e,n,o){var s=getComputedStyle(e);return s[n]||s.getPropertyValue(n.replace(nc,"-$1").toLowerCase())||s.getPropertyValue(n)||!o&&t(e,Mo(n)||n,1)||""},Pm="O,Moz,ms,Ms,Webkit".split(","),Mo=function(e,n,o){var s=n||Hn,i=s.style,l=5;if(e in i&&!o)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);l--&&!(Pm[l]+e in i););return l<0?null:(l===3?"ms":l>=0?Pm[l]:"")+e},sc=function(){_E()&&window.document&&(Am=window,mn=Am.document,Ao=mn.documentElement,Hn=rc("div")||{style:{}},rc("div"),ge=Mo(ge),Je=ge+"Origin",Hn.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Vm=!!Mo("perspective"),tc=Xe.core.reverting,ec=1)},Rm=function(e){var n=e.ownerSVGElement,o=rc("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=e.cloneNode(!0),i;s.style.display="block",o.appendChild(s),Ao.appendChild(o);try{i=s.getBBox()}catch{}return o.removeChild(s),Ao.removeChild(o),i},Um=function(e,n){for(var o=n.length;o--;)if(e.hasAttribute(n[o]))return e.getAttribute(n[o])},zm=function(e){var n,o;try{n=e.getBBox()}catch{n=Rm(e),o=1}return n&&(n.width||n.height)||o||(n=Rm(e)),n&&!n.width&&!n.x&&!n.y?{x:+Um(e,["x","cx","x1"])||0,y:+Um(e,["y","cy","y1"])||0,width:0,height:0}:n},Hm=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&zm(e))},Wn=function(e,n){if(n){var o=e.style,s;n in Qt&&n!==Je&&(n=ge),o.removeProperty?(s=n.substr(0,2),(s==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),o.removeProperty(s==="--"?n:n.replace(nc,"-$1").toLowerCase())):o.removeAttribute(n)}},pn=function(e,n,o,s,i,l){var a=new Qe(e._pt,n,o,0,1,l?Om:Mm);return e._pt=a,a.b=s,a.e=i,e._props.push(o),a},qm={deg:1,rad:1,turn:1},IE={grid:1,flex:1},_n=function t(e,n,o,s){var i=parseFloat(o)||0,l=(o+"").trim().substr((i+"").length)||"px",a=Hn.style,c=gE.test(n),u=e.tagName.toLowerCase()==="svg",d=(u?"client":"offset")+(c?"Width":"Height"),f=100,h=s==="px",m=s==="%",g,p,_,b;if(s===l||!i||qm[s]||qm[l])return i;if(l!=="px"&&!h&&(i=t(e,n,o,"px")),b=e.getCTM&&Hm(e),(m||l==="%")&&(Qt[n]||~n.indexOf("adius")))return g=b?e.getBBox()[c?"width":"height"]:e[d],Ee(m?i/g*f:i/100*g);if(a[c?"width":"height"]=f+(h?l:s),p=s!=="rem"&&~n.indexOf("adius")||s==="em"&&e.appendChild&&!u?e:e.parentNode,b&&(p=(e.ownerSVGElement||{}).parentNode),(!p||p===mn||!p.appendChild)&&(p=mn.body),_=p._gsap,_&&m&&_.width&&c&&_.time===lt.time&&!_.uncache)return Ee(i/_.width*f);if(m&&(n==="height"||n==="width")){var y=e.style[n];e.style[n]=f+s,g=e[d],y?e.style[n]=y:Wn(e,n)}else(m||l==="%")&&!IE[Rt(p,"display")]&&(a.position=Rt(e,"position")),p===e&&(a.position="static"),p.appendChild(Hn),g=Hn[d],p.removeChild(Hn),a.position="absolute";return c&&m&&(_=Vn(p),_.time=lt.time,_.width=p[d]),Ee(h?g*i/f:g&&i?f/g*i:0)},Xt=function(e,n,o,s){var i;return ec||sc(),n in Pt&&n!=="transform"&&(n=Pt[n],~n.indexOf(",")&&(n=n.split(",")[0])),Qt[n]&&n!=="transform"?(i=Dr(e,s),i=n!=="transformOrigin"?i[n]:i.svg?i.origin:si(Rt(e,Je))+" "+i.zOrigin+"px"):(i=e.style[n],(!i||i==="auto"||s||~(i+"").indexOf("calc("))&&(i=ri[n]&&ri[n](e,n,o)||Rt(e,n)||Gh(e,n)||(n==="opacity"?1:0))),o&&!~(i+"").trim().indexOf(" ")?_n(e,n,i,o)+o:i},AE=function(e,n,o,s){if(!o||o==="none"){var i=Mo(n,e,1),l=i&&Rt(e,i,1);l&&l!==o?(n=i,o=l):n==="borderColor"&&(o=Rt(e,"borderTopColor"))}var a=new Qe(this._pt,e.style,n,0,1,Bm),c=0,u=0,d,f,h,m,g,p,_,b,y,w,k,S;if(a.b=o,a.e=s,o+="",s+="",s==="auto"&&(p=e.style[n],e.style[n]=s,s=Rt(e,n)||s,p?e.style[n]=p:Wn(e,n)),d=[o,s],gm(d),o=d[0],s=d[1],h=o.match(So)||[],S=s.match(So)||[],S.length){for(;f=So.exec(s);)_=f[0],y=s.substring(c,f.index),g?g=(g+1)%5:(y.substr(-5)==="rgba("||y.substr(-5)==="hsla(")&&(g=1),_!==(p=h[u++]||"")&&(m=parseFloat(p)||0,k=p.substr((m+"").length),_.charAt(1)==="="&&(_=Eo(m,_)+k),b=parseFloat(_),w=_.substr((b+"").length),c=So.lastIndex-w.length,w||(w=w||nt.units[n]||k,c===s.length&&(s+=w,a.e+=w)),k!==w&&(m=_n(e,n,p,w)||0),a._pt={_next:a._pt,p:y||u===1?y:",",s:m,c:b-m,m:g&&g<4||n==="zIndex"?Math.round:0});a.c=c<s.length?s.substring(c,s.length):""}else a.r=n==="display"&&s==="none"?Om:Mm;return Rh.test(s)&&(a.e=0),this._pt=a,a},Wm={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},LE=function(e){var n=e.split(" "),o=n[0],s=n[1]||"50%";return(o==="top"||o==="bottom"||s==="left"||s==="right")&&(e=o,o=s,s=e),n[0]=Wm[o]||o,n[1]=Wm[s]||s,n.join(" ")},FE=function(e,n){if(n.tween&&n.tween._time===n.tween._dur){var o=n.t,s=o.style,i=n.u,l=o._gsap,a,c,u;if(i==="all"||i===!0)s.cssText="",c=1;else for(i=i.split(","),u=i.length;--u>-1;)a=i[u],Qt[a]&&(c=1,a=a==="transformOrigin"?Je:ge),Wn(o,a);c&&(Wn(o,ge),l&&(l.svg&&o.removeAttribute("transform"),s.scale=s.rotate=s.translate="none",Dr(o,1),l.uncache=1,Dm(s)))}},ri={clearProps:function(e,n,o,s,i){if(i.data!=="isFromStart"){var l=e._pt=new Qe(e._pt,n,o,0,0,FE);return l.u=s,l.pr=-10,l.tween=i,e._props.push(o),1}}},Or=[1,0,0,1,0,0],jm={},Gm=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Km=function(e){var n=Rt(e,ge);return Gm(n)?Or:n.substr(7).match(Ph).map(Ee)},ic=function(e,n){var o=e._gsap||Vn(e),s=e.style,i=Km(e),l,a,c,u;return o.svg&&e.getAttribute("transform")?(c=e.transform.baseVal.consolidate().matrix,i=[c.a,c.b,c.c,c.d,c.e,c.f],i.join(",")==="1,0,0,1,0,0"?Or:i):(i===Or&&!e.offsetParent&&e!==Ao&&!o.svg&&(c=s.display,s.display="block",l=e.parentNode,(!l||!e.offsetParent&&!e.getBoundingClientRect().width)&&(u=1,a=e.nextElementSibling,Ao.appendChild(e)),i=Km(e),c?s.display=c:Wn(e,"display"),u&&(a?l.insertBefore(e,a):l?l.appendChild(e):Ao.removeChild(e))),n&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},lc=function(e,n,o,s,i,l){var a=e._gsap,c=i||ic(e,!0),u=a.xOrigin||0,d=a.yOrigin||0,f=a.xOffset||0,h=a.yOffset||0,m=c[0],g=c[1],p=c[2],_=c[3],b=c[4],y=c[5],w=n.split(" "),k=parseFloat(w[0])||0,S=parseFloat(w[1])||0,C,x,T,B;o?c!==Or&&(x=m*_-g*p)&&(T=k*(_/x)+S*(-p/x)+(p*y-_*b)/x,B=k*(-g/x)+S*(m/x)-(m*y-g*b)/x,k=T,S=B):(C=zm(e),k=C.x+(~w[0].indexOf("%")?k/100*C.width:k),S=C.y+(~(w[1]||w[0]).indexOf("%")?S/100*C.height:S)),s||s!==!1&&a.smooth?(b=k-u,y=S-d,a.xOffset=f+(b*m+y*p)-b,a.yOffset=h+(b*g+y*_)-y):a.xOffset=a.yOffset=0,a.xOrigin=k,a.yOrigin=S,a.smooth=!!s,a.origin=n,a.originIsAbsolute=!!o,e.style[Je]="0px 0px",l&&(pn(l,a,"xOrigin",u,k),pn(l,a,"yOrigin",d,S),pn(l,a,"xOffset",f,a.xOffset),pn(l,a,"yOffset",h,a.yOffset)),e.setAttribute("data-svg-origin",k+" "+S)},Dr=function(e,n){var o=e._gsap||new km(e);if("x"in o&&!n&&!o.uncache)return o;var s=e.style,i=o.scaleX<0,l="px",a="deg",c=getComputedStyle(e),u=Rt(e,Je)||"0",d,f,h,m,g,p,_,b,y,w,k,S,C,x,T,B,N,$,O,F,P,A,L,D,I,W,U,j,M,v,H,K;return d=f=h=p=_=b=y=w=k=0,m=g=1,o.svg=!!(e.getCTM&&Hm(e)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(s[ge]=(c.translate!=="none"?"translate3d("+(c.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(c.rotate!=="none"?"rotate("+c.rotate+") ":"")+(c.scale!=="none"?"scale("+c.scale.split(" ").join(",")+") ":"")+(c[ge]!=="none"?c[ge]:"")),s.scale=s.rotate=s.translate="none"),x=ic(e,o.svg),o.svg&&(o.uncache?(I=e.getBBox(),u=o.xOrigin-I.x+"px "+(o.yOrigin-I.y)+"px",D=""):D=!n&&e.getAttribute("data-svg-origin"),lc(e,D||u,!!D||o.originIsAbsolute,o.smooth!==!1,x)),S=o.xOrigin||0,C=o.yOrigin||0,x!==Or&&($=x[0],O=x[1],F=x[2],P=x[3],d=A=x[4],f=L=x[5],x.length===6?(m=Math.sqrt($*$+O*O),g=Math.sqrt(P*P+F*F),p=$||O?Fo(O,$)*qn:0,y=F||P?Fo(F,P)*qn+p:0,y&&(g*=Math.abs(Math.cos(y*Lo))),o.svg&&(d-=S-(S*$+C*F),f-=C-(S*O+C*P))):(K=x[6],v=x[7],U=x[8],j=x[9],M=x[10],H=x[11],d=x[12],f=x[13],h=x[14],T=Fo(K,M),_=T*qn,T&&(B=Math.cos(-T),N=Math.sin(-T),D=A*B+U*N,I=L*B+j*N,W=K*B+M*N,U=A*-N+U*B,j=L*-N+j*B,M=K*-N+M*B,H=v*-N+H*B,A=D,L=I,K=W),T=Fo(-F,M),b=T*qn,T&&(B=Math.cos(-T),N=Math.sin(-T),D=$*B-U*N,I=O*B-j*N,W=F*B-M*N,H=P*N+H*B,$=D,O=I,F=W),T=Fo(O,$),p=T*qn,T&&(B=Math.cos(T),N=Math.sin(T),D=$*B+O*N,I=A*B+L*N,O=O*B-$*N,L=L*B-A*N,$=D,A=I),_&&Math.abs(_)+Math.abs(p)>359.9&&(_=p=0,b=180-b),m=Ee(Math.sqrt($*$+O*O+F*F)),g=Ee(Math.sqrt(L*L+K*K)),T=Fo(A,L),y=Math.abs(T)>2e-4?T*qn:0,k=H?1/(H<0?-H:H):0),o.svg&&(D=e.getAttribute("transform"),o.forceCSS=e.setAttribute("transform","")||!Gm(Rt(e,ge)),D&&e.setAttribute("transform",D))),Math.abs(y)>90&&Math.abs(y)<270&&(i?(m*=-1,y+=p<=0?180:-180,p+=p<=0?180:-180):(g*=-1,y+=y<=0?180:-180)),n=n||o.uncache,o.x=d-((o.xPercent=d&&(!n&&o.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-d)?-50:0)))?e.offsetWidth*o.xPercent/100:0)+l,o.y=f-((o.yPercent=f&&(!n&&o.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-f)?-50:0)))?e.offsetHeight*o.yPercent/100:0)+l,o.z=h+l,o.scaleX=Ee(m),o.scaleY=Ee(g),o.rotation=Ee(p)+a,o.rotationX=Ee(_)+a,o.rotationY=Ee(b)+a,o.skewX=y+a,o.skewY=w+a,o.transformPerspective=k+l,(o.zOrigin=parseFloat(u.split(" ")[2])||!n&&o.zOrigin||0)&&(s[Je]=si(u)),o.xOffset=o.yOffset=0,o.force3D=nt.force3D,o.renderTransform=o.svg?OE:Vm?Zm:ME,o.uncache=0,o},si=function(e){return(e=e.split(" "))[0]+" "+e[1]},ac=function(e,n,o){var s=Ve(n);return Ee(parseFloat(n)+parseFloat(_n(e,"x",o+"px",s)))+s},ME=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,Zm(e,n)},jn="0deg",vr="0px",Gn=") ",Zm=function(e,n){var o=n||this,s=o.xPercent,i=o.yPercent,l=o.x,a=o.y,c=o.z,u=o.rotation,d=o.rotationY,f=o.rotationX,h=o.skewX,m=o.skewY,g=o.scaleX,p=o.scaleY,_=o.transformPerspective,b=o.force3D,y=o.target,w=o.zOrigin,k="",S=b==="auto"&&e&&e!==1||b===!0;if(w&&(f!==jn||d!==jn)){var C=parseFloat(d)*Lo,x=Math.sin(C),T=Math.cos(C),B;C=parseFloat(f)*Lo,B=Math.cos(C),l=ac(y,l,x*B*-w),a=ac(y,a,-Math.sin(C)*-w),c=ac(y,c,T*B*-w+w)}_!==vr&&(k+="perspective("+_+Gn),(s||i)&&(k+="translate("+s+"%, "+i+"%) "),(S||l!==vr||a!==vr||c!==vr)&&(k+=c!==vr||S?"translate3d("+l+", "+a+", "+c+") ":"translate("+l+", "+a+Gn),u!==jn&&(k+="rotate("+u+Gn),d!==jn&&(k+="rotateY("+d+Gn),f!==jn&&(k+="rotateX("+f+Gn),(h!==jn||m!==jn)&&(k+="skew("+h+", "+m+Gn),(g!==1||p!==1)&&(k+="scale("+g+", "+p+Gn),y.style[ge]=k||"translate(0, 0)"},OE=function(e,n){var o=n||this,s=o.xPercent,i=o.yPercent,l=o.x,a=o.y,c=o.rotation,u=o.skewX,d=o.skewY,f=o.scaleX,h=o.scaleY,m=o.target,g=o.xOrigin,p=o.yOrigin,_=o.xOffset,b=o.yOffset,y=o.forceCSS,w=parseFloat(l),k=parseFloat(a),S,C,x,T,B;c=parseFloat(c),u=parseFloat(u),d=parseFloat(d),d&&(d=parseFloat(d),u+=d,c+=d),c||u?(c*=Lo,u*=Lo,S=Math.cos(c)*f,C=Math.sin(c)*f,x=Math.sin(c-u)*-h,T=Math.cos(c-u)*h,u&&(d*=Lo,B=Math.tan(u-d),B=Math.sqrt(1+B*B),x*=B,T*=B,d&&(B=Math.tan(d),B=Math.sqrt(1+B*B),S*=B,C*=B)),S=Ee(S),C=Ee(C),x=Ee(x),T=Ee(T)):(S=f,T=h,C=x=0),(w&&!~(l+"").indexOf("px")||k&&!~(a+"").indexOf("px"))&&(w=_n(m,"x",l,"px"),k=_n(m,"y",a,"px")),(g||p||_||b)&&(w=Ee(w+g-(g*S+p*x)+_),k=Ee(k+p-(g*C+p*T)+b)),(s||i)&&(B=m.getBBox(),w=Ee(w+s/100*B.width),k=Ee(k+i/100*B.height)),B="matrix("+S+","+C+","+x+","+T+","+w+","+k+")",m.setAttribute("transform",B),y&&(m.style[ge]=B)},DE=function(e,n,o,s,i){var l=360,a=Ae(i),c=parseFloat(i)*(a&&~i.indexOf("rad")?qn:1),u=c-s,d=s+u+"deg",f,h;return a&&(f=i.split("_")[1],f==="short"&&(u%=l,u!==u%(l/2)&&(u+=u<0?l:-l)),f==="cw"&&u<0?u=(u+l*Fm)%l-~~(u/l)*l:f==="ccw"&&u>0&&(u=(u-l*Fm)%l-~~(u/l)*l)),e._pt=h=new Qe(e._pt,n,o,s,u,yE),h.e=d,h.u="deg",e._props.push(o),h},Ym=function(e,n){for(var o in n)e[o]=n[o];return e},vE=function(e,n,o){var s=Ym({},o._gsap),i="perspective,force3D,transformOrigin,svgOrigin",l=o.style,a,c,u,d,f,h,m,g;s.svg?(u=o.getAttribute("transform"),o.setAttribute("transform",""),l[ge]=n,a=Dr(o,1),Wn(o,ge),o.setAttribute("transform",u)):(u=getComputedStyle(o)[ge],l[ge]=n,a=Dr(o,1),l[ge]=u);for(c in Qt)u=s[c],d=a[c],u!==d&&i.indexOf(c)<0&&(m=Ve(u),g=Ve(d),f=m!==g?_n(o,c,u,g):parseFloat(u),h=parseFloat(d),e._pt=new Qe(e._pt,a,c,f,h-f,oc),e._pt.u=g||0,e._props.push(c));Ym(a,s)};Ye("padding,margin,Width,Radius",function(t,e){var n="Top",o="Right",s="Bottom",i="Left",l=(e<3?[n,o,s,i]:[n+i,n+o,s+o,s+i]).map(function(a){return e<2?t+a:"border"+a+t});ri[e>1?"border"+t:t]=function(a,c,u,d,f){var h,m;if(arguments.length<4)return h=l.map(function(g){return Xt(a,g,u)}),m=h.join(" "),m.split(h[0]).length===5?h[0]:m;h=(d+"").split(" "),m={},l.forEach(function(g,p){return m[g]=h[p]=h[p]||h[(p-1)/2|0]}),a.init(c,m,f)}});var Qm={name:"css",register:sc,targetTest:function(e){return e.style&&e.nodeType},init:function(e,n,o,s,i){var l=this._props,a=e.style,c=o.vars.startAt,u,d,f,h,m,g,p,_,b,y,w,k,S,C,x,T;ec||sc(),this.styles=this.styles||vm(e),T=this.styles.props,this.tween=o;for(p in n)if(p!=="autoRound"&&(d=n[p],!(rt[p]&&xm(p,n,o,s,e,i)))){if(m=typeof d,g=ri[p],m==="function"&&(d=d.call(o,s,e,i),m=typeof d),m==="string"&&~d.indexOf("random(")&&(d=$r(d)),g)g(this,e,p,d,o)&&(x=1);else if(p.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(p)+"").trim(),d+="",fn.lastIndex=0,fn.test(u)||(_=Ve(u),b=Ve(d)),b?_!==b&&(u=_n(e,p,u,b)+b):_&&(d+=_),this.add(a,"setProperty",u,d,s,i,0,0,p),l.push(p),T.push(p,0,a[p]);else if(m!=="undefined"){if(c&&p in c?(u=typeof c[p]=="function"?c[p].call(o,s,e,i):c[p],Ae(u)&&~u.indexOf("random(")&&(u=$r(u)),Ve(u+"")||u==="auto"||(u+=nt.units[p]||Ve(Xt(e,p))||""),(u+"").charAt(1)==="="&&(u=Xt(e,p))):u=Xt(e,p),h=parseFloat(u),y=m==="string"&&d.charAt(1)==="="&&d.substr(0,2),y&&(d=d.substr(2)),f=parseFloat(d),p in Pt&&(p==="autoAlpha"&&(h===1&&Xt(e,"visibility")==="hidden"&&f&&(h=0),T.push("visibility",0,a.visibility),pn(this,a,"visibility",h?"inherit":"hidden",f?"inherit":"hidden",!f)),p!=="scale"&&p!=="transform"&&(p=Pt[p],~p.indexOf(",")&&(p=p.split(",")[0]))),w=p in Qt,w){if(this.styles.save(p),k||(S=e._gsap,S.renderTransform&&!n.parseTransform||Dr(e,n.parseTransform),C=n.smoothOrigin!==!1&&S.smooth,k=this._pt=new Qe(this._pt,a,ge,0,1,S.renderTransform,S,0,-1),k.dep=1),p==="scale")this._pt=new Qe(this._pt,S,"scaleY",S.scaleY,(y?Eo(S.scaleY,y+f):f)-S.scaleY||0,oc),this._pt.u=0,l.push("scaleY",p),p+="X";else if(p==="transformOrigin"){T.push(Je,0,a[Je]),d=LE(d),S.svg?lc(e,d,0,C,0,this):(b=parseFloat(d.split(" ")[2])||0,b!==S.zOrigin&&pn(this,S,"zOrigin",S.zOrigin,b),pn(this,a,p,si(u),si(d)));continue}else if(p==="svgOrigin"){lc(e,d,1,C,0,this);continue}else if(p in jm){DE(this,S,p,h,y?Eo(h,y+d):d);continue}else if(p==="smoothOrigin"){pn(this,S,"smooth",S.smooth,d);continue}else if(p==="force3D"){S[p]=d;continue}else if(p==="transform"){vE(this,d,e);continue}}else p in a||(p=Mo(p)||p);if(w||(f||f===0)&&(h||h===0)&&!bE.test(d)&&p in a)_=(u+"").substr((h+"").length),f||(f=0),b=Ve(d)||(p in nt.units?nt.units[p]:_),_!==b&&(h=_n(e,p,u,b)),this._pt=new Qe(this._pt,w?S:a,p,h,(y?Eo(h,y+f):f)-h,!w&&(b==="px"||p==="zIndex")&&n.autoRound!==!1?kE:oc),this._pt.u=b||0,_!==b&&b!=="%"&&(this._pt.b=u,this._pt.r=wE);else if(p in a)AE.call(this,e,p,u,y?y+d:d);else if(p in e)this.add(e,p,u||e[p],y?y+d:d,s,i);else if(p!=="parseTransform"){Aa(p,d);continue}w||(p in a?T.push(p,0,a[p]):typeof e[p]=="function"?T.push(p,2,e[p]()):T.push(p,1,u||e[p])),l.push(p)}}x&&Nm(this)},render:function(e,n){if(n.tween._time||!tc())for(var o=n._pt;o;)o.r(e,o.d),o=o._next;else n.styles.revert()},get:Xt,aliases:Pt,getSetter:function(e,n,o){var s=Pt[n];return s&&s.indexOf(",")<0&&(n=s),n in Qt&&n!==Je&&(e._gsap.x||Xt(e,"x"))?o&&Lm===o?n==="scale"?EE:SE:(Lm=o||{})&&(n==="scale"?TE:BE):e.style&&!Ea(e.style[n])?xE:~n.indexOf("-")?CE:Za(e,n)},core:{_removeProperty:Wn,_getMatrix:ic}};Xe.utils.checkPrefix=Mo,Xe.core.getStyleSaver=vm,function(t,e,n,o){var s=Ye(t+","+e+","+n,function(i){Qt[i]=1});Ye(e,function(i){nt.units[i]="deg",jm[i]=1}),Pt[s[13]]=t+","+e,Ye(o,function(i){var l=i.split(":");Pt[l[1]]=s[l[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),Ye("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){nt.units[t]="px"}),Xe.registerPlugin(Qm);var cc=Xe.registerPlugin(Qm)||Xe;cc.core.Tween;const VE={__name:"StaggeredListTransition",props:{height:{type:[String,Number],default:"auto"},duration:{type:Number,default:.5},delayOffset:{type:Number,default:.5},disabled:Boolean},setup(t){const e=t,n=r.ref(null),o=r.computed(()=>e.delayOffset/n.value.$el.children.length);function s(a){e.disabled||(a.style.opacity=0,a.style.height=0)}function i(a,c){if(e.disabled){c();return}cc.to(a,{opacity:1,duration:e.duration,height:e.height,delay:a.dataset.index*o.value,onComplete:c})}function l(a,c){if(e.disabled){c();return}cc.to(a,{opacity:0,height:0,duration:e.duration,delay:a.dataset.index*o.value,onComplete:c})}return(a,c)=>(r.openBlock(),r.createBlock(r.TransitionGroup,{ref_key:"list",ref:n,tag:"div",appear:"",css:!1,onBeforeEnter:s,onEnter:i,onLeave:l},{default:r.withCtx(()=>[r.renderSlot(a.$slots,"default")]),_:3},512))}},PE=r.defineComponent({__name:"LabelPillWidget",props:{label:{default:""},size:{default:"md"},color:{default:"none"}},setup(t){const e=t,n={sky:"bg-sky-950 text-sky-400",green:"bg-green-950 text-green-400",red:"bg-red-950 text-red-400",amber:"bg-amber-950 text-amber-400",yellow:"bg-yellow-950 text-yellow-400",blue:"bg-blue-950 text-blue-400",purple:"bg-purple-950 text-purple-400",slate:"bg-slate-950 text-slate-400","slate-mid":"bg-slate-800 text-slate-400",gray:"bg-slate-700 text-gray-300",emerald:"bg-emerald-950 text-emerald-400",orange:"bg-orange-950 text-orange-400",lime:"bg-lime-950 text-lime-400",teal:"bg-teal-950 text-teal-400",cyan:"bg-cyan-950 text-cyan-400",rose:"bg-rose-950 text-rose-400",indigo:"bg-indigo-950 text-indigo-400",violet:"bg-violet-950 text-violet-400",fuchsia:"bg-fuchsia-950 text-fuchsia-400",none:""},o={xxs:"text-xs px-1 py-.5",xs:"text-xs px-2 py-1",sm:"text-sm px-3 py-1.5",md:"text-base px-3 py-2",lg:"text-lg px-4 py-2"},s=r.computed(()=>n[e.color]),i=r.computed(()=>o[e.size]);return(l,a)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass({[s.value]:!0,[i.value]:!0,"rounded-full":!0})},[r.renderSlot(l.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(l.label),1)])],2))}}),RE={class:"flex items-stretch"},UE={class:"rounded-r-lg bg-slate-900 text-slate-400 px-2 py-1"},zE=r.defineComponent({__name:"LabelValuePillWidget",props:{label:{},value:{},labelClass:{default:""}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",RE,[r.createElementVNode("div",{class:r.normalizeClass(["rounded-l-lg bg-slate-400 text-slate-900 text-xs px-2 flex items-center justify-center",e.labelClass])},[r.renderSlot(e.$slots,"label",{},()=>[r.createTextVNode(r.toDisplayString(e.label),1)])],2),r.createElementVNode("div",UE,[r.renderSlot(e.$slots,"value",{},()=>[r.createTextVNode(r.toDisplayString(e.value),1)])])]))}}),uc=r.defineComponent({__name:"ActionMenu",props:{actions:{},target:{default:()=>[]},tooltip:{default:"First select records to perform a batch action"},loading:{type:Boolean},loadingComponent:{default:void 0}},emits:["success"],setup(t,{emit:e}){const n=e,o=t,s=r.computed(()=>Array.isArray(o.target)?o.target.length>0:!!o.target),i=r.computed(()=>o.actions.filter(c=>Array.isArray(o.target)?c.batchEnabled?c.batchEnabled(o.target):!0:c.enabled?c.enabled(o.target):!0)),l=r.ref(!1);async function a(c){if(!c.trigger)throw new Error("Action must have a trigger function! Make sure you are using useActions() or implement your own trigger function.");l.value=!0,await c.trigger(o.target),l.value=!1,n("success",c)}return(c,u)=>(r.openBlock(),r.createBlock(r.unref(Mh),{class:"px-2 flex dx-action-button",items:i.value,disabled:!s.value,tooltip:s.value?"":c.tooltip,loading:l.value||!!c.loading,"loading-component":c.loadingComponent,onActionItem:a},null,8,["items","disabled","tooltip","loading","loading-component"]))}}),HE={key:0,class:"flex-grow overflow-hidden"},Xm=r.defineComponent({__name:"ActionTableColumn",props:{rowProps:{type:Object,required:!0},settings:{type:Object,default:null}},setup(t){const e=t,n=r.computed(()=>e.rowProps.row),o=r.computed(()=>e.rowProps.col),s=r.computed(()=>e.rowProps.value),i=r.computed(()=>{var c;return(c=n.value.isSaving)==null?void 0:c.value}),l=r.computed(()=>{var u;const c=((u=e.settings)==null?void 0:u.width)||o.value.width;return{width:c?`${c}px`:void 0,minWidth:o.value.minWidth?`${o.value.minWidth}px`:void 0}}),a=r.computed(()=>({[o.value.class||""]:!0,"is-saving":i.value,"justify-end":o.value.align==="right","justify-center":o.value.align==="center","justify-start":o.value.align==="left"}));return(c,u)=>(r.openBlock(),r.createBlock(r.unref(pe.QTd),{key:t.rowProps.key,props:t.rowProps,style:r.normalizeStyle(l.value),class:r.normalizeClass(["dx-column",o.value.columnClass])},{default:r.withCtx(()=>[r.createElementVNode("div",{style:r.normalizeStyle(l.value)},[r.createElementVNode("div",{class:r.normalizeClass(["flex items-center flex-nowrap",a.value])},[o.value.hideContent?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",HE,[o.value.onClick?(r.openBlock(),r.createElementBlock("a",{key:0,class:r.normalizeClass([o.value.innerClass,"dx-column-link"]),onClick:u[0]||(u[0]=d=>o.value.onClick(n.value))},[o.value.vnode?(r.openBlock(),r.createBlock(r.unref(vn),{key:0,vnode:o.value.vnode(n.value)},null,8,["vnode"])):r.renderSlot(c.$slots,"default",{key:1},()=>[r.createTextVNode(r.toDisplayString(s.value),1)])],2)):(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass([o.value.innerClass,"dx-column-text"])},[o.value.vnode?(r.openBlock(),r.createBlock(r.unref(vn),{key:0,vnode:o.value.vnode(n.value)},null,8,["vnode"])):r.renderSlot(c.$slots,"default",{key:1},()=>[r.createTextVNode(r.toDisplayString(s.value),1)])],2)),o.value.titleColumns?(r.openBlock(),r.createBlock(r.unref(op),{key:2,row:n.value,columns:o.value.titleColumns()},null,8,["row","columns"])):r.createCommentVNode("",!0)])),o.value.actionMenu?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(["flex flex-shrink-0",{"ml-2":!o.value.hideContent}])},[r.createVNode(r.unref(uc),{class:"dx-column-action-menu",actions:o.value.actionMenu,target:n.value,loading:i.value},null,8,["actions","target","loading"])],2)):r.createCommentVNode("",!0)],2)],4)]),_:3},8,["props","style","class"]))}});class dc{constructor(e={}){this.options={direction:"vertical",hideDragImage:!1},this.startY=0,this.startX=0,this.startSize=0,this.cursorY=0,this.cursorX=0,this.onStartCb=null,this.onEndCb=null,this.onDropCb=null,this.onDraggingCb=null,this.dropZoneResolver=null,this.currentDropZone=null,this.draggableData=null,this.abortController=null,e={disabled:!1,direction:"vertical",hideDragImage:!1,...e},this.setOptions(e)}setOptions(e={}){return this.options={...this.options,...e},this}isVertical(){return this.options.direction==="vertical"}setDropZone(e){return this.dropZoneResolver=e,this}onStart(e){return this.onStartCb=e,this}onEnd(e){return this.onEndCb=e,this}onDragging(e){return this.onDraggingCb=e,this}onDrop(e){return this.onDropCb=e,this}dragStart(e,n){if(!this.options.disabled)if(this.currentDropZone=this.getDropZone(e),this.currentDropZone){this.startY=e.clientY,this.startX=e.clientX,this.startSize=this.getDropZoneSize(),e.dataTransfer&&(e.dataTransfer.effectAllowed="move",e.dataTransfer.dropEffect="move"),this.draggableData=n,this.abortController=new AbortController;const o={signal:this.abortController.signal};document.addEventListener("dragenter",s=>this.dragEnter(s),o),document.addEventListener("dragover",s=>this.dragOver(s),o),document.addEventListener("drop",s=>this.drop(s),o),this.onStartCb&&this.onStartCb(e,this.draggableData),e.dataTransfer&&this.options.hideDragImage&&e.dataTransfer.setDragImage(new Image,0,0)}else console.error("Drop zone was not found",e,n)}dragEnd(e){var n;this.options.disabled||(this.currentDropZone=null,(n=this.abortController)==null||n.abort(),this.onEndCb&&this.onEndCb(e,this.draggableData),this.draggableData=null)}dragEnter(e){e.preventDefault()}dragOver(e){this.options.disabled||(e.preventDefault(),this.cursorY=e.clientY,this.cursorX=e.clientX,this.onDraggingCb&&this.onDraggingCb(e,this.draggableData))}drop(e){this.options.disabled||(e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.preventDefault(),this.onDropCb&&this.onDropCb(e,this.draggableData))}getDropZone(e){var n;if(typeof this.dropZoneResolver=="string"){let o=e.target;for(;o;){if(((n=o.dataset)==null?void 0:n.dropZone)===this.dropZoneResolver)return o;o=o.parentNode}return null}else return typeof this.dropZoneResolver=="function"?this.dropZoneResolver(e):document.body}getDistance(){return this.isVertical()?this.cursorY-this.startY:this.cursorX-this.startX}getDropZoneSize(){var e,n;return(this.isVertical()?(e=this.currentDropZone)==null?void 0:e.offsetHeight:(n=this.currentDropZone)==null?void 0:n.offsetWidth)||0}getPercentChange(){return this.getDistance()/(this.startSize||1)*100}}const Jm={__name:"HandleDraggable",props:{initialValue:{type:Number,default:null},dropZone:{type:[Function,String],required:!0},direction:{type:String,default:"horizontal",validator:t=>["vertical","horizontal"].includes(t)}},emits:["start","end","resize"],setup(t,{emit:e}){const n=e,o=t,s=new dc().setDropZone(o.dropZone).setOptions({showPlaceholder:!0,direction:o.direction,hideDragImage:!0}).onDragging(nn(()=>{n("resize",{distance:s.getDistance(),percent:s.getPercentChange(),startDropZoneSize:s.startSize,dropZoneSize:s.getDropZoneSize()})},20,{maxWait:30})).onStart(()=>n("start")).onEnd(()=>n("end"));return(i,l)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([{"cursor-ew-resize":t.direction==="horizontal","cursor-ns-resize":t.direction==="vertical"},"flex justify-center items-center w-full h-full"]),draggable:"true",onDragstart:l[0]||(l[0]=(...a)=>r.unref(s).dragStart&&r.unref(s).dragStart(...a)),onDragend:l[1]||(l[1]=(...a)=>r.unref(s).dragEnd&&r.unref(s).dragEnd(...a))},[r.renderSlot(i.$slots,"default")],34))}};class ep extends dc{constructor(e={}){super({showPlaceholder:!0,allowDropZoneChange:!0,...e}),this.listPosition=0,this.cursorPosition=0,this.initialPosition=0,this.initialDropZone=null,this.onPositionChangeCb=null,this.onDragPositionChangeCb=null,this.onDropZoneChangeCb=null,this.placeholder=null}onPositionChange(e){return this.onPositionChangeCb=e,this}onDropZoneChange(e){return this.onDropZoneChangeCb=e,this}onDragPositionChange(e){return this.onDragPositionChangeCb=e,this}dragStart(e,n){this.options.disabled||(super.dragStart(e,n),this.currentDropZone&&(this.listPosition=this.getListPosition(e.target),this.initialPosition=this.listPosition,this.initialDropZone=this.currentDropZone,this.updateScrollPosition()))}dragEnd(e){var s;if(this.options.disabled)return;const n=this.draggableData;(s=this.placeholder)==null||s.remove();const o=this.currentDropZone;super.dragEnd(e),o&&o!==this.initialDropZone?this.onDropZoneChangeCb&&this.onDropZoneChangeCb(e,o,this.listPosition,this.initialPosition,n):this.listPosition!==this.initialPosition&&this.onPositionChangeCb&&this.onPositionChangeCb(this.listPosition,this.initialPosition,n)}dragOver(e){this.options.disabled||(super.dragOver(e),this.updateListPosition(e))}updateListPosition(e){var l;const n={x:e.clientX,y:e.clientY},o=this.getDropZoneForTarget(e.target);o!==this.currentDropZone&&(this.currentDropZone=o,this.cursorPosition=0,this.listPosition=0,(l=this.placeholder)==null||l.remove());const s=this.listPosition,i=this.getListPositionOfPoint(n);this.cursorPosition!==i&&(this.cursorPosition=i,this.listPosition=this.initialPosition<this.cursorPosition?this.cursorPosition-1:this.cursorPosition,this.options.showPlaceholder&&this.renderPlaceholder(),this.listPosition!==s&&this.onDragPositionChangeCb&&this.onDragPositionChangeCb(this.listPosition,this.initialPosition,this.draggableData))}getListPosition(e){let n=0;for(const o of this.getChildren()){if(o===e)return n;n++}return 0}getChildren(){var e;return[...((e=this.currentDropZone)==null?void 0:e.children)||[]].filter(n=>n.className.match(/dx-drag-placeholder/)===null)}getDropZoneForTarget(e){return e.closest("[data-drop-zone]")}isSameDropZone(){return this.currentDropZone===this.initialDropZone}getListPositionOfPoint(e){let n=0;const o=this.getChildren();for(;n<o.length;){const s=o[n].getBoundingClientRect();if(this.isVertical()){if(e.y<s.top+s.height/2)break}else if(e.x<s.left+s.width/2)break;n++}return n}updateScrollPosition(){if(!this.currentDropZone)return;const e=this.currentDropZone.getBoundingClientRect(),n=100;let o=0;const s=d=>d*5,i=this.isVertical()?this.cursorY:this.cursorX,l=this.isVertical()?e.top:e.left,a=this.isVertical()?e.bottom:e.right,c=l+n-i,u=i-(a-n);c>0?o=-s(c):u>0&&(o=s(u)),o&&(this.isVertical()?this.currentDropZone.scrollTo({top:this.currentDropZone.scrollTop+o,behavior:"smooth"}):this.currentDropZone.scrollTo({left:this.currentDropZone.scrollLeft+o,behavior:"smooth"})),setTimeout(()=>this.updateScrollPosition(),500)}renderPlaceholder(){if(!this.currentDropZone||!this.options.allowDropZoneChange&&!this.isSameDropZone())return;this.placeholder||(this.placeholder=document.createElement("div"),this.placeholder.classList.add("dx-drag-placeholder")),this.isVertical()?(this.placeholder.classList.add("dx-direction-vertical"),this.placeholder.classList.remove("dx-direction-horizontal"),this.placeholder.style.height=""):(this.placeholder.classList.add("dx-direction-horizontal"),this.placeholder.classList.remove("dx-direction-vertical"),this.placeholder.style.height=this.currentDropZone.getBoundingClientRect().height+"px");const e=this.getChildren();this.cursorPosition<e.length?this.currentDropZone.insertBefore(this.placeholder,e[this.cursorPosition]):this.currentDropZone.appendChild(this.placeholder)}}const qE=["draggable"],WE={class:"flex-grow"},tp=r.defineComponent({__name:"ListItemDraggable",props:r.mergeModels({dropZone:{},direction:{default:"vertical"},showHandle:{type:Boolean},changeDropZone:{type:Boolean},contentClass:{default:"flex flex-nowrap items-center"},handleClass:{default:""},handleSize:{default:"w-4 h-4"},listItems:{default:()=>[]},disabled:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:r.mergeModels(["position","update:list-items","drop-zone"],["update:modelValue"]),setup(t,{emit:e}){const n=e,o=r.useModel(t,"modelValue"),s=t;r.watch(()=>s.disabled,a=>l.setOptions({disabled:a}));const i=r.computed(()=>({"cursor-move":!s.disabled,...typeof s.handleClass=="string"?{[s.handleClass]:!0}:s.handleClass})),l=new ep().setDropZone(s.dropZone).setOptions({showPlaceholder:!0,allowDropZoneChange:s.changeDropZone,direction:s.direction,disabled:s.disabled}).onStart(()=>o.value=!0).onEnd(()=>o.value=!1).onDropZoneChange((a,c,u,d,f)=>{let h=null,m=[];s.listItems&&(m=[...s.listItems],h=m.splice(d,1)[0]),n("drop-zone",{target:a,item:h,items:m,dropZone:c,oldPosition:d,newPosition:u,data:f})}).onPositionChange((a,c)=>{if(n("position",a),s.listItems){const u=[...s.listItems];u.splice(a,0,u.splice(c,1)[0]),n("update:list-items",u)}});return(a,c)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass({"cursor-move":!a.showHandle&&!a.disabled}),draggable:a.disabled?void 0:"true",onDragstart:c[0]||(c[0]=r.withModifiers((...u)=>r.unref(l).dragStart&&r.unref(l).dragStart(...u),["stop"])),onDragend:c[1]||(c[1]=(...u)=>r.unref(l).dragEnd&&r.unref(l).dragEnd(...u))},[r.createElementVNode("div",{class:r.normalizeClass(a.contentClass)},[a.showHandle?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(i.value)},[a.disabled?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(a.handleSize)},null,2)):(r.openBlock(),r.createBlock(r.unref(Ih),{key:1,svg:r.unref(Wf),class:r.normalizeClass(a.handleSize),alt:"drag-handle"},null,8,["svg","class"]))],2)):r.createCommentVNode("",!0),r.createElementVNode("div",WE,[r.renderSlot(a.$slots,"default")])],2)],42,qE))}}),np=tt(r.defineComponent({__name:"ActionTableHeaderColumn",props:{modelValue:{type:Object,required:!0},name:{type:String,required:!0},rowProps:{type:Object,required:!0}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,o=t,s=r.computed(()=>o.rowProps.col),i=r.computed(()=>s.value.resizeable),l=r.computed(()=>{var f;const d=((f=o.settings)==null?void 0:f.width)||s.value.width;return{width:d?`${d}px`:void 0,minWidth:s.value.minWidth?`${s.value.minWidth}px`:void 0,...s.value.headerStyle||{}}}),a=r.useCssModule("cls"),c=r.computed(()=>{const d={[a["handle-drop-zone"]]:i.value,"dx-column-shrink":s.value.shrink},f=s.value.headerClass;return f&&(typeof f=="string"?d[f]=!0:Object.keys(f).forEach(h=>{d[h]=f[h]})),d});function u(d){const f={...o.modelValue,[s.value.name]:{width:Math.max(Math.min(d.distance+d.startDropZoneSize,s.value.maxWidth||500),s.value.minWidth||80)}};n("update:model-value",f)}return(d,f)=>(r.openBlock(),r.createBlock(r.unref(pe.QTh),{key:t.rowProps.key,props:t.rowProps,"data-drop-zone":i.value&&"resize-column-"+s.value.name,class:r.normalizeClass(c.value),style:r.normalizeStyle(l.value)},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(s.value.label)+" ",1),i.value?(r.openBlock(),r.createBlock(r.unref(Jm),{key:0,"drop-zone":"resize-column-"+s.value.name,class:r.normalizeClass(d.cls["resize-handle"]),onResize:u},{default:r.withCtx(()=>[r.createVNode(r.unref(jf),{class:"w-4 text-gray-600"})]),_:1},8,["drop-zone","class"])):r.createCommentVNode("",!0)]),_:1},8,["props","data-drop-zone","class","style"]))}}),[["__cssModules",{cls:{container:"_container_1reoo_1","pointer-events-none":"_pointer-events-none_1reoo_1","!visible":"_!visible_1reoo_1",visible:"_visible_1reoo_1",collapse:"_collapse_1reoo_231",static:"_static_1reoo_1",fixed:"_fixed_1reoo_1",absolute:"_absolute_1reoo_1",relative:"_relative_1reoo_1",sticky:"_sticky_1reoo_1","inset-0":"_inset-0_1reoo_1","bottom-0":"_bottom-0_1reoo_1","left-0":"_left-0_1reoo_1","left-2":"_left-2_1reoo_1","left-4":"_left-4_1reoo_1","right-0":"_right-0_1reoo_1","right-1":"_right-1_1reoo_1","right-2":"_right-2_1reoo_1","right-4":"_right-4_1reoo_1","top-0":"_top-0_1reoo_1","top-1":"_top-1_1reoo_1","top-1/2":"_top-1/2_1reoo_1","top-2":"_top-2_1reoo_1","z-0":"_z-0_1reoo_1","z-10":"_z-10_1reoo_1","z-20":"_z-20_1reoo_1","z-30":"_z-30_1reoo_1","m-2":"_m-2_1reoo_1","m-4":"_m-4_1reoo_1","m-auto":"_m-auto_1reoo_1","mx-1":"_mx-1_1reoo_1","mx-4":"_mx-4_1reoo_1","mx-auto":"_mx-auto_1reoo_1","my-2":"_my-2_1reoo_1","!mr-1":"_!mr-1_1reoo_1","mb-2":"_mb-2_1reoo_1","mb-4":"_mb-4_1reoo_1","ml-1":"_ml-1_1reoo_1","ml-2":"_ml-2_1reoo_1","ml-2.5":"_ml-2.5_1reoo_1","ml-3":"_ml-3_1reoo_1","ml-4":"_ml-4_1reoo_1","ml-5":"_ml-5_1reoo_1","ml-[-.2em]":"_ml-[-.2em]_1reoo_1","mr-1":"_mr-1_1reoo_1","mr-2":"_mr-2_1reoo_1","mr-3":"_mr-3_1reoo_1","mr-4":"_mr-4_1reoo_1","mt-1":"_mt-1_1reoo_1","mt-2":"_mt-2_1reoo_1","mt-3":"_mt-3_1reoo_1","mt-4":"_mt-4_1reoo_1","!block":"_!block_1reoo_1",block:"_block_1reoo_1","inline-block":"_inline-block_1reoo_1",inline:"_inline_1reoo_1",flex:"_flex_1reoo_1","!table":"_!table_1reoo_1",table:"_table_1reoo_1",grid:"_grid_1reoo_1",contents:"_contents_1reoo_1",hidden:"_hidden_1reoo_1","aspect-square":"_aspect-square_1reoo_1","h-10":"_h-10_1reoo_1","h-12":"_h-12_1reoo_1","h-16":"_h-16_1reoo_1","h-20":"_h-20_1reoo_1","h-3":"_h-3_1reoo_1","h-3.5":"_h-3.5_1reoo_1","h-3/4":"_h-3/4_1reoo_1","h-4":"_h-4_1reoo_1","h-5":"_h-5_1reoo_1","h-6":"_h-6_1reoo_1","h-8":"_h-8_1reoo_1","h-96":"_h-96_1reoo_1","h-[2.25rem]":"_h-[2.25rem]_1reoo_1","h-[80vh]":"_h-[80vh]_1reoo_1","h-full":"_h-full_1reoo_1","max-h-[80vh]":"_max-h-[80vh]_1reoo_1","max-h-full":"_max-h-full_1reoo_1","min-h-0":"_min-h-0_1reoo_1","min-h-10":"_min-h-10_1reoo_1","w-10":"_w-10_1reoo_1","w-16":"_w-16_1reoo_1","w-2":"_w-2_1reoo_1","w-2/5":"_w-2/5_1reoo_1","w-20":"_w-20_1reoo_1","w-24":"_w-24_1reoo_1","w-3":"_w-3_1reoo_1","w-3.5":"_w-3.5_1reoo_1","w-3/4":"_w-3/4_1reoo_1","w-3/5":"_w-3/5_1reoo_1","w-32":"_w-32_1reoo_1","w-4":"_w-4_1reoo_1","w-48":"_w-48_1reoo_1","w-5":"_w-5_1reoo_1","w-6":"_w-6_1reoo_1","w-7":"_w-7_1reoo_1","w-72":"_w-72_1reoo_1","w-8":"_w-8_1reoo_1","w-96":"_w-96_1reoo_1","w-[13.5rem]":"_w-[13.5rem]_1reoo_1","w-[40%]":"_w-[40%]_1reoo_1","w-[6.5rem]":"_w-[6.5rem]_1reoo_1","w-[60vw]":"_w-[60vw]_1reoo_1","w-[80vw]":"_w-[80vw]_1reoo_1","w-full":"_w-full_1reoo_1","!min-w-0":"_!min-w-0_1reoo_1","min-w-0":"_min-w-0_1reoo_1","min-w-10":"_min-w-10_1reoo_1","min-w-96":"_min-w-96_1reoo_1","min-w-[300px]":"_min-w-[300px]_1reoo_1","max-w-[400px]":"_max-w-[400px]_1reoo_1","max-w-[600px]":"_max-w-[600px]_1reoo_1","max-w-full":"_max-w-full_1reoo_1","max-w-none":"_max-w-none_1reoo_1","flex-1":"_flex-1_1reoo_1","flex-shrink":"_flex-shrink_1reoo_1","flex-shrink-0":"_flex-shrink-0_1reoo_1",shrink:"_shrink_1reoo_1","flex-grow":"_flex-grow_1reoo_1",grow:"_grow_1reoo_1","-translate-y-1/2":"_-translate-y-1/2_1reoo_1","rotate-180":"_rotate-180_1reoo_1","scale-110":"_scale-110_1reoo_1",transform:"_transform_1reoo_1","cursor-ew-resize":"_cursor-ew-resize_1reoo_1","cursor-move":"_cursor-move_1reoo_1","cursor-not-allowed":"_cursor-not-allowed_1reoo_1","cursor-ns-resize":"_cursor-ns-resize_1reoo_1","cursor-pointer":"_cursor-pointer_1reoo_1","select-all":"_select-all_1reoo_1",resize:"_resize_1reoo_521","grid-cols-3":"_grid-cols-3_1reoo_1","flex-col":"_flex-col_1reoo_1","flex-wrap":"_flex-wrap_1reoo_1","flex-nowrap":"_flex-nowrap_1reoo_1","items-center":"_items-center_1reoo_1","items-stretch":"_items-stretch_1reoo_1","justify-start":"_justify-start_1reoo_1","justify-end":"_justify-end_1reoo_1","justify-center":"_justify-center_1reoo_1","justify-between":"_justify-between_1reoo_1","gap-1":"_gap-1_1reoo_1","gap-2":"_gap-2_1reoo_1","gap-3":"_gap-3_1reoo_1","gap-x-2":"_gap-x-2_1reoo_1","gap-x-4":"_gap-x-4_1reoo_1","gap-y-0":"_gap-y-0_1reoo_1","gap-y-1":"_gap-y-1_1reoo_1","space-x-1":"_space-x-1_1reoo_1","space-x-2":"_space-x-2_1reoo_1","self-center":"_self-center_1reoo_1","overflow-auto":"_overflow-auto_1reoo_1","overflow-hidden":"_overflow-hidden_1reoo_1","overflow-x-auto":"_overflow-x-auto_1reoo_1","overflow-y-auto":"_overflow-y-auto_1reoo_70","overflow-x-hidden":"_overflow-x-hidden_1reoo_1","overflow-y-hidden":"_overflow-y-hidden_1reoo_1","scroll-smooth":"_scroll-smooth_1reoo_1",truncate:"_truncate_1reoo_1","overflow-ellipsis":"_overflow-ellipsis_1reoo_1","whitespace-normal":"_whitespace-normal_1reoo_1","whitespace-nowrap":"_whitespace-nowrap_1reoo_1","whitespace-pre-wrap":"_whitespace-pre-wrap_1reoo_1",rounded:"_rounded_1reoo_1","rounded-2xl":"_rounded-2xl_1reoo_1","rounded-full":"_rounded-full_1reoo_1","rounded-lg":"_rounded-lg_1reoo_1","rounded-md":"_rounded-md_1reoo_1","rounded-sm":"_rounded-sm_1reoo_1","!rounded-l-none":"_!rounded-l-none_1reoo_1","!rounded-r-none":"_!rounded-r-none_1reoo_1","rounded-b-lg":"_rounded-b-lg_1reoo_1","rounded-l-lg":"_rounded-l-lg_1reoo_1","rounded-r-lg":"_rounded-r-lg_1reoo_1","rounded-t-2xl":"_rounded-t-2xl_1reoo_1","rounded-t-lg":"_rounded-t-lg_1reoo_1","rounded-t-md":"_rounded-t-md_1reoo_1","rounded-br":"_rounded-br_1reoo_1","rounded-tl":"_rounded-tl_1reoo_1","!border-0":"_!border-0_1reoo_1",border:"_border_1reoo_1","border-2":"_border-2_1reoo_1","border-b":"_border-b_1reoo_1","border-l":"_border-l_1reoo_1","border-l-0":"_border-l-0_1reoo_1","border-r":"_border-r_1reoo_1","border-solid":"_border-solid_1reoo_1","border-dashed":"_border-dashed_1reoo_1","border-none":"_border-none_1reoo_1","border-blue-500":"_border-blue-500_1reoo_1","border-blue-600":"_border-blue-600_1reoo_1","border-blue-700":"_border-blue-700_1reoo_1","border-gray-200":"_border-gray-200_1reoo_1","border-gray-300":"_border-gray-300_1reoo_1","border-purple-500":"_border-purple-500_1reoo_1","border-slate-200":"_border-slate-200_1reoo_1","border-slate-700":"_border-slate-700_1reoo_1","border-transparent":"_border-transparent_1reoo_1","bg-amber-300":"_bg-amber-300_1reoo_1","bg-amber-950":"_bg-amber-950_1reoo_1","bg-black":"_bg-black_1reoo_1","bg-blue-200":"_bg-blue-200_1reoo_1","bg-blue-300":"_bg-blue-300_1reoo_1","bg-blue-600":"_bg-blue-600_1reoo_1","bg-blue-900":"_bg-blue-900_1reoo_1","bg-blue-950":"_bg-blue-950_1reoo_1","bg-cyan-950":"_bg-cyan-950_1reoo_1","bg-emerald-200":"_bg-emerald-200_1reoo_1","bg-emerald-950":"_bg-emerald-950_1reoo_1","bg-fuchsia-950":"_bg-fuchsia-950_1reoo_1","bg-gray-100":"_bg-gray-100_1reoo_1","bg-gray-200":"_bg-gray-200_1reoo_1","bg-gray-400":"_bg-gray-400_1reoo_1","bg-gray-50":"_bg-gray-50_1reoo_1","bg-gray-500":"_bg-gray-500_1reoo_1","bg-gray-800":"_bg-gray-800_1reoo_1","bg-green-200":"_bg-green-200_1reoo_1","bg-green-300":"_bg-green-300_1reoo_1","bg-green-900":"_bg-green-900_1reoo_1","bg-green-950":"_bg-green-950_1reoo_1","bg-indigo-950":"_bg-indigo-950_1reoo_1","bg-lime-300":"_bg-lime-300_1reoo_1","bg-lime-950":"_bg-lime-950_1reoo_1","bg-orange-900":"_bg-orange-900_1reoo_1","bg-orange-950":"_bg-orange-950_1reoo_1","bg-purple-700":"_bg-purple-700_1reoo_1","bg-purple-900":"_bg-purple-900_1reoo_1","bg-purple-950":"_bg-purple-950_1reoo_1","bg-red-200":"_bg-red-200_1reoo_1","bg-red-300":"_bg-red-300_1reoo_1","bg-red-900":"_bg-red-900_1reoo_1","bg-red-950":"_bg-red-950_1reoo_1","bg-rose-950":"_bg-rose-950_1reoo_1","bg-sky-300":"_bg-sky-300_1reoo_1","bg-sky-50":"_bg-sky-50_1reoo_1","bg-sky-800":"_bg-sky-800_1reoo_1","bg-sky-900":"_bg-sky-900_1reoo_1","bg-sky-950":"_bg-sky-950_1reoo_1","bg-slate-100":"_bg-slate-100_1reoo_1","bg-slate-300":"_bg-slate-300_1reoo_1","bg-slate-400":"_bg-slate-400_1reoo_1","bg-slate-500":"_bg-slate-500_1reoo_1","bg-slate-600":"_bg-slate-600_1reoo_1","bg-slate-700":"_bg-slate-700_1reoo_1","bg-slate-800":"_bg-slate-800_1reoo_1","bg-slate-900":"_bg-slate-900_1reoo_1","bg-slate-950":"_bg-slate-950_1reoo_1","bg-teal-200":"_bg-teal-200_1reoo_1","bg-teal-500":"_bg-teal-500_1reoo_1","bg-teal-950":"_bg-teal-950_1reoo_1","bg-transparent":"_bg-transparent_1reoo_1","bg-violet-950":"_bg-violet-950_1reoo_1","bg-white":"_bg-white_1reoo_1","bg-yellow-300":"_bg-yellow-300_1reoo_1","bg-yellow-800":"_bg-yellow-800_1reoo_1","bg-yellow-950":"_bg-yellow-950_1reoo_1","bg-opacity-70":"_bg-opacity-70_1reoo_1","bg-opacity-80":"_bg-opacity-80_1reoo_1","bg-opacity-90":"_bg-opacity-90_1reoo_1","!bg-none":"_!bg-none_1reoo_1","object-contain":"_object-contain_1reoo_1","object-cover":"_object-cover_1reoo_1","!p-2":"_!p-2_1reoo_1","p-0":"_p-0_1reoo_1","p-1":"_p-1_1reoo_1","p-2":"_p-2_1reoo_1","p-3":"_p-3_1reoo_1","p-4":"_p-4_1reoo_1","p-8":"_p-8_1reoo_1","!py-0":"_!py-0_1reoo_1","px-1":"_px-1_1reoo_1","px-1.5":"_px-1.5_1reoo_1","px-12":"_px-12_1reoo_1","px-16":"_px-16_1reoo_1","px-2":"_px-2_1reoo_1","px-2.5":"_px-2.5_1reoo_1","px-3":"_px-3_1reoo_1","px-4":"_px-4_1reoo_1","px-6":"_px-6_1reoo_1","px-8":"_px-8_1reoo_1","py-0":"_py-0_1reoo_1","py-0.5":"_py-0.5_1reoo_1","py-1":"_py-1_1reoo_1","py-1.5":"_py-1.5_1reoo_1","py-14":"_py-14_1reoo_1","py-2":"_py-2_1reoo_1","py-3":"_py-3_1reoo_1","py-4":"_py-4_1reoo_1","py-8":"_py-8_1reoo_1","pl-1":"_pl-1_1reoo_1","pt-3":"_pt-3_1reoo_1","text-left":"_text-left_1reoo_1","text-center":"_text-center_1reoo_1","text-[.7rem]":"_text-[.7rem]_1reoo_1","text-[1rem]":"_text-[1rem]_1reoo_1","text-base":"_text-base_1reoo_1","text-lg":"_text-lg_1reoo_1","text-sm":"_text-sm_1reoo_1","text-xs":"_text-xs_1reoo_1","font-bold":"_font-bold_1reoo_1","font-medium":"_font-medium_1reoo_1","font-semibold":"_font-semibold_1reoo_1",uppercase:"_uppercase_1reoo_1",lowercase:"_lowercase_1reoo_1",italic:"_italic_1reoo_1","leading-[1.2rem]":"_leading-[1.2rem]_1reoo_1","!text-green-900":"_!text-green-900_1reoo_1","!text-red-900":"_!text-red-900_1reoo_1","!text-sky-900":"_!text-sky-900_1reoo_1","!text-white":"_!text-white_1reoo_1","!text-yellow-900":"_!text-yellow-900_1reoo_1","text-amber-400":"_text-amber-400_1reoo_1","text-amber-900":"_text-amber-900_1reoo_1","text-blue-300":"_text-blue-300_1reoo_1","text-blue-400":"_text-blue-400_1reoo_1","text-blue-600":"_text-blue-600_1reoo_1","text-blue-900":"_text-blue-900_1reoo_1","text-cyan-400":"_text-cyan-400_1reoo_1","text-emerald-400":"_text-emerald-400_1reoo_1","text-fuchsia-400":"_text-fuchsia-400_1reoo_1","text-gray-300":"_text-gray-300_1reoo_1","text-gray-400":"_text-gray-400_1reoo_1","text-gray-500":"_text-gray-500_1reoo_1","text-gray-600":"_text-gray-600_1reoo_1","text-gray-700":"_text-gray-700_1reoo_1","text-gray-900":"_text-gray-900_1reoo_1","text-green-300":"_text-green-300_1reoo_1","text-green-400":"_text-green-400_1reoo_1","text-green-700":"_text-green-700_1reoo_1","text-green-900":"_text-green-900_1reoo_1","text-indigo-400":"_text-indigo-400_1reoo_1","text-lime-400":"_text-lime-400_1reoo_1","text-lime-900":"_text-lime-900_1reoo_1","text-orange-400":"_text-orange-400_1reoo_1","text-purple-200":"_text-purple-200_1reoo_1","text-purple-300":"_text-purple-300_1reoo_1","text-purple-400":"_text-purple-400_1reoo_1","text-red-400":"_text-red-400_1reoo_1","text-red-500":"_text-red-500_1reoo_1","text-red-800":"_text-red-800_1reoo_1","text-red-900":"_text-red-900_1reoo_1","text-rose-400":"_text-rose-400_1reoo_1","text-sky-400":"_text-sky-400_1reoo_1","text-sky-500":"_text-sky-500_1reoo_1","text-sky-600":"_text-sky-600_1reoo_1","text-sky-900":"_text-sky-900_1reoo_1","text-slate-200":"_text-slate-200_1reoo_1","text-slate-300":"_text-slate-300_1reoo_1","text-slate-400":"_text-slate-400_1reoo_1","text-slate-50":"_text-slate-50_1reoo_1","text-slate-500":"_text-slate-500_1reoo_1","text-slate-600":"_text-slate-600_1reoo_1","text-slate-800":"_text-slate-800_1reoo_1","text-slate-900":"_text-slate-900_1reoo_1","text-teal-200":"_text-teal-200_1reoo_1","text-teal-400":"_text-teal-400_1reoo_1","text-teal-800":"_text-teal-800_1reoo_1","text-violet-400":"_text-violet-400_1reoo_1","text-white":"_text-white_1reoo_1","text-yellow-300":"_text-yellow-300_1reoo_1","text-yellow-400":"_text-yellow-400_1reoo_1","text-yellow-600":"_text-yellow-600_1reoo_1","text-zinc-500":"_text-zinc-500_1reoo_1","text-zinc-800":"_text-zinc-800_1reoo_1",underline:"_underline_1reoo_1","line-through":"_line-through_1reoo_1","opacity-0":"_opacity-0_1reoo_1","opacity-100":"_opacity-100_1reoo_1","opacity-20":"_opacity-20_1reoo_1","opacity-50":"_opacity-50_1reoo_1","opacity-60":"_opacity-60_1reoo_1","opacity-70":"_opacity-70_1reoo_1","opacity-80":"_opacity-80_1reoo_1","opacity-90":"_opacity-90_1reoo_1",shadow:"_shadow_1reoo_1","shadow-none":"_shadow-none_1reoo_1","shadow-xl":"_shadow-xl_1reoo_1","outline-none":"_outline-none_1reoo_1",outline:"_outline_1reoo_1","outline-offset-0":"_outline-offset-0_1reoo_1",blur:"_blur_1reoo_1",filter:"_filter_1reoo_1","backdrop-filter":"_backdrop-filter_1reoo_1",transition:"_transition_1reoo_1","transition-all":"_transition-all_1reoo_1","transition-colors":"_transition-colors_1reoo_1","transition-opacity":"_transition-opacity_1reoo_1","duration-300":"_duration-300_1reoo_1","danx-app":"_danx-app_1reoo_4","q-tab":"_q-tab_1reoo_4","q-table__card":"_q-table__card_1reoo_7","q-checkbox__inner":"_q-checkbox__inner_1reoo_11","q-toolbar":"_q-toolbar_1reoo_14","q-notification__actions":"_q-notification__actions_1reoo_19","q-date":"_q-date_1reoo_22","q-date__view":"_q-date__view_1reoo_25","q-field":"_q-field_1reoo_28","q-field--auto-height":"_q-field--auto-height_1reoo_28","q-field__control":"_q-field__control_1reoo_28","q-field__native":"_q-field__native_1reoo_31","q-field--labeled":"_q-field--labeled_1reoo_35","q-field__control-container":"_q-field__control-container_1reoo_35","q-textarea":"_q-textarea_1reoo_38","q-field__marginal":"_q-field__marginal_1reoo_41","q-field__input":"_q-field__input_1reoo_41","q-field__label":"_q-field__label_1reoo_41","q-btn":"_q-btn_1reoo_48","q-item":"_q-item_1reoo_56","q-tab-panels":"_q-tab-panels_1reoo_60","q-panel":"_q-panel_1reoo_64",scroll:"_scroll_1reoo_67","dx-dialog":"_dx-dialog_1reoo_74","q-card__section--vert":"_q-card__section--vert_1reoo_74","q-banner":"_q-banner_1reoo_78",app:"_app_1reoo_1","main-layout":"_main-layout_1reoo_1","is-disabled":"_is-disabled_1reoo_95","disable-all-transitions":"_disable-all-transitions_1reoo_100","v-enter-active":"_v-enter-active_1reoo_104","v-leave-active":"_v-leave-active_1reoo_105","v-enter-from":"_v-enter-from_1reoo_109","v-leave-to":"_v-leave-to_1reoo_110","dx-scrollbar":"_dx-scrollbar_1reoo_114","dx-scrollbar-dark":"_dx-scrollbar-dark_1reoo_157","dx-scrollbar-hidden":"_dx-scrollbar-hidden_1reoo_199","dx-code-viewer":"_dx-code-viewer_1reoo_207","is-collapsed":"_is-collapsed_1reoo_211","code-collapsed":"_code-collapsed_1reoo_214","code-collapsed-preview":"_code-collapsed-preview_1reoo_225","collapse-toggle":"_collapse-toggle_1reoo_231","collapse-header":"_collapse-header_1reoo_234","code-content":"_code-content_1reoo_243","is-collapsible":"_is-collapsible_1reoo_257","code-footer":"_code-footer_1reoo_267","has-error":"_has-error_1reoo_273","language-badge":"_language-badge_1reoo_277","syntax-key":"_syntax-key_1reoo_284","syntax-string":"_syntax-string_1reoo_287","syntax-number":"_syntax-number_1reoo_290","syntax-boolean":"_syntax-boolean_1reoo_293","syntax-null":"_syntax-null_1reoo_296","syntax-punctuation":"_syntax-punctuation_1reoo_299","is-editable":"_is-editable_1reoo_302","dx-markdown-content":"_dx-markdown-content_1reoo_316","task-list":"_task-list_1reoo_406","task-list-item":"_task-list-item_1reoo_410","footnote-ref":"_footnote-ref_1reoo_491",footnotes:"_footnotes_1reoo_499","footnote-list":"_footnote-list_1reoo_506","footnote-item":"_footnote-item_1reoo_509","footnote-backref":"_footnote-backref_1reoo_512","dx-action-table":"_dx-action-table_1reoo_517","dx-column-shrink":"_dx-column-shrink_1reoo_517","handle-drop-zone":"_handle-drop-zone_1reoo_521","resize-handle":"_resize-handle_1reoo_521","hover:scale-105":"_hover:scale-105_1reoo_1","hover:bg-amber-400":"_hover:bg-amber-400_1reoo_1","hover:bg-blue-200":"_hover:bg-blue-200_1reoo_1","hover:bg-blue-400":"_hover:bg-blue-400_1reoo_1","hover:bg-blue-800":"_hover:bg-blue-800_1reoo_1","hover:bg-gray-200":"_hover:bg-gray-200_1reoo_1","hover:bg-green-100":"_hover:bg-green-100_1reoo_1","hover:bg-green-400":"_hover:bg-green-400_1reoo_1","hover:bg-green-800":"_hover:bg-green-800_1reoo_1","hover:bg-lime-400":"_hover:bg-lime-400_1reoo_1","hover:bg-orange-800":"_hover:bg-orange-800_1reoo_1","hover:bg-purple-600":"_hover:bg-purple-600_1reoo_1","hover:bg-purple-800":"_hover:bg-purple-800_1reoo_1","hover:bg-red-100":"_hover:bg-red-100_1reoo_1","hover:bg-red-200":"_hover:bg-red-200_1reoo_1","hover:bg-red-400":"_hover:bg-red-400_1reoo_1","hover:bg-sky-400":"_hover:bg-sky-400_1reoo_1","hover:bg-sky-800":"_hover:bg-sky-800_1reoo_1","hover:bg-sky-900":"_hover:bg-sky-900_1reoo_1","hover:bg-slate-200":"_hover:bg-slate-200_1reoo_1","hover:bg-slate-300":"_hover:bg-slate-300_1reoo_1","hover:bg-slate-400":"_hover:bg-slate-400_1reoo_1","hover:bg-slate-600":"_hover:bg-slate-600_1reoo_1","hover:bg-slate-700":"_hover:bg-slate-700_1reoo_1","hover:bg-slate-800":"_hover:bg-slate-800_1reoo_1","hover:bg-slate-900":"_hover:bg-slate-900_1reoo_1","hover:bg-teal-400":"_hover:bg-teal-400_1reoo_1","hover:bg-teal-600":"_hover:bg-teal-600_1reoo_1","hover:bg-yellow-700":"_hover:bg-yellow-700_1reoo_1","hover:text-blue-300":"_hover:text-blue-300_1reoo_1","hover:text-blue-500":"_hover:text-blue-500_1reoo_1","hover:text-blue-600":"_hover:text-blue-600_1reoo_1","hover:text-gray-300":"_hover:text-gray-300_1reoo_1","hover:text-gray-700":"_hover:text-gray-700_1reoo_1","hover:text-sky-600":"_hover:text-sky-600_1reoo_1","hover:text-white":"_hover:text-white_1reoo_1","hover:opacity-100":"_hover:opacity-100_1reoo_1","hover:opacity-70":"_hover:opacity-70_1reoo_1","hover:outline-4":"_hover:outline-4_1reoo_1","focus:bg-blue-200":"_focus:bg-blue-200_1reoo_1","focus:outline-4":"_focus:outline-4_1reoo_1","focus:outline-blue-200":"_focus:outline-blue-200_1reoo_1",group:"_group_1reoo_1","group-hover:opacity-100":"_group-hover:opacity-100_1reoo_1"}}]]),jE={key:0,class:"text-zinc-800 cursor-not-allowed"},GE={class:"font-semibold text-sm ml-5 py-3 flex-grow"},KE={key:1,class:"flex items-center"},fc={__name:"ColumnListItem",props:{locked:Boolean,visible:Boolean,isTitle:Boolean,column:{type:Object,required:!0}},emits:["visible","is-title"],setup(t){return(e,n)=>{const o=r.resolveComponent("QTooltip");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["flex items-center w-full",{"cursor-not-allowed":t.locked}])},[t.locked?(r.openBlock(),r.createElementBlock("a",jE,[r.createVNode(r.unref(z4),{class:"w-4"})])):r.createCommentVNode("",!0),r.createElementVNode("div",GE,r.toDisplayString(t.column.label),1),t.locked?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",KE,[r.createElementVNode("a",{class:"py-2 px-1",onClick:n[0]||(n[0]=s=>e.$emit("visible",!t.visible))},[t.visible?(r.openBlock(),r.createBlock(r.unref(R4),{key:0,class:"w-4"})):(r.openBlock(),r.createBlock(r.unref(P4),{key:1,class:"w-4 text-zinc-800"}))]),r.createElementVNode("a",{class:"py-2 px-1",onClick:n[1]||(n[1]=s=>e.$emit("is-title",!t.isTitle))},[r.createVNode(r.unref(iy),{class:r.normalizeClass(["w-4",t.isTitle?"":"text-gray-400"])},null,8,["class"]),r.createVNode(o,null,{default:r.withCtx(()=>[t.isTitle?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode("Remove from priority list")],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode("Add to priority list")],64))]),_:1})])]))],2)}}},ZE={__name:"ColumnSettingsDialog",props:{hiddenColumnNames:{type:Array,required:!0},titleColumnNames:{type:Array,required:!0},lockedColumns:{type:Array,required:!0},sortableColumns:{type:Array,required:!0},titleColumnLimit:{type:Number,default:3}},emits:["close","update:hidden-column-names","update:title-column-names","update:sortable-columns"],setup(t,{emit:e}){const n=e,o=t,s=r.computed(()=>o.titleColumnNames.length<o.titleColumnLimit);function i(u){return!o.hiddenColumnNames.includes(u.name)}function l(u,d){let f=[...o.hiddenColumnNames];d&&f.includes(u.name)?f=Vr(f,u.name):f.push(u.name),n("update:hidden-column-names",[...new Set(f)])}function a(u){return o.titleColumnNames.includes(u.name)}function c(u,d){let f=[...o.titleColumnNames];if(d&&!f.includes(u.name)){if(!s.value){et.warning(`You can only have ${o.titleColumnLimit} priority columns.`);return}f.push(u.name)}else f=Vr(f,u.name);n("update:title-column-names",[...new Set(f)])}return(u,d)=>(r.openBlock(),r.createBlock(r.unref(ma),{title:"Column Settings",onClose:d[1]||(d[1]=f=>u.$emit("close"))},{default:r.withCtx(()=>[d[2]||(d[2]=r.createElementVNode("div",{class:"mb-4 text-sm"}," Customize columns by visibility, order, or priority (maximum 3 additional). ",-1)),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.lockedColumns,f=>(r.openBlock(),r.createBlock(r.unref(fc),{key:f.name,locked:"",visible:"",column:f,class:"px-2.5 border border-gray-200 bg-white rounded-t-lg"},null,8,["column"]))),128)),r.createVNode(r.unref(Oh),{name:"fade-down-list","data-drop-zone":"column-list"},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.sortableColumns,(f,h)=>(r.openBlock(),r.createBlock(r.unref(tp),{key:f.name,"list-items":t.sortableColumns,"drop-zone":"column-list",class:r.normalizeClass(["px-2 border border-gray-200 bg-white",{"rounded-b-lg":h===t.sortableColumns.length-1}]),"show-handle":"","onUpdate:listItems":d[0]||(d[0]=m=>u.$emit("update:sortable-columns",m))},{default:r.withCtx(()=>[r.createVNode(r.unref(fc),{column:f,visible:i(f),"is-title":a(f),onVisible:m=>l(f,m),onIsTitle:m=>c(f,m)},null,8,["column","visible","is-title","onVisible","onIsTitle"])]),_:2},1032,["list-items","class"]))),128))]),_:1})]),_:1}))}},op={__name:"TitleColumnFormat",props:{row:{type:Object,required:!0},columns:{type:Array,required:!0}},setup(t){function e(n,o){return typeof o=="function"?o(n):n}return(n,o)=>(r.openBlock(),r.createElementBlock("div",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.columns,s=>(r.openBlock(),r.createElementBlock("div",{key:s.name,class:"overflow-hidden overflow-ellipsis text-xs text-gray-400"},r.toDisplayString(e(t.row[s.name],s.format)),1))),128))]))}},YE={container:"_container_1mh4o_1","pointer-events-none":"_pointer-events-none_1mh4o_1","!visible":"_!visible_1mh4o_1",visible:"_visible_1mh4o_1",collapse:"_collapse_1mh4o_231",static:"_static_1mh4o_1",fixed:"_fixed_1mh4o_1",absolute:"_absolute_1mh4o_1",relative:"_relative_1mh4o_1",sticky:"_sticky_1mh4o_1","inset-0":"_inset-0_1mh4o_1","bottom-0":"_bottom-0_1mh4o_1","left-0":"_left-0_1mh4o_1","left-2":"_left-2_1mh4o_1","left-4":"_left-4_1mh4o_1","right-0":"_right-0_1mh4o_1","right-1":"_right-1_1mh4o_1","right-2":"_right-2_1mh4o_1","right-4":"_right-4_1mh4o_1","top-0":"_top-0_1mh4o_1","top-1":"_top-1_1mh4o_1","top-1/2":"_top-1/2_1mh4o_1","top-2":"_top-2_1mh4o_1","z-0":"_z-0_1mh4o_1","z-10":"_z-10_1mh4o_1","z-20":"_z-20_1mh4o_1","z-30":"_z-30_1mh4o_1","m-2":"_m-2_1mh4o_1","m-4":"_m-4_1mh4o_1","m-auto":"_m-auto_1mh4o_1","mx-1":"_mx-1_1mh4o_1","mx-4":"_mx-4_1mh4o_1","mx-auto":"_mx-auto_1mh4o_1","my-2":"_my-2_1mh4o_1","!mr-1":"_!mr-1_1mh4o_1","mb-2":"_mb-2_1mh4o_1","mb-4":"_mb-4_1mh4o_1","ml-1":"_ml-1_1mh4o_1","ml-2":"_ml-2_1mh4o_1","ml-2.5":"_ml-2.5_1mh4o_1","ml-3":"_ml-3_1mh4o_1","ml-4":"_ml-4_1mh4o_1","ml-5":"_ml-5_1mh4o_1","ml-[-.2em]":"_ml-[-.2em]_1mh4o_1","mr-1":"_mr-1_1mh4o_1","mr-2":"_mr-2_1mh4o_1","mr-3":"_mr-3_1mh4o_1","mr-4":"_mr-4_1mh4o_1","mt-1":"_mt-1_1mh4o_1","mt-2":"_mt-2_1mh4o_1","mt-3":"_mt-3_1mh4o_1","mt-4":"_mt-4_1mh4o_1","!block":"_!block_1mh4o_1",block:"_block_1mh4o_1","inline-block":"_inline-block_1mh4o_1",inline:"_inline_1mh4o_1",flex:"_flex_1mh4o_1","!table":"_!table_1mh4o_1",table:"_table_1mh4o_1",grid:"_grid_1mh4o_1",contents:"_contents_1mh4o_1",hidden:"_hidden_1mh4o_1","aspect-square":"_aspect-square_1mh4o_1","h-10":"_h-10_1mh4o_1","h-12":"_h-12_1mh4o_1","h-16":"_h-16_1mh4o_1","h-20":"_h-20_1mh4o_1","h-3":"_h-3_1mh4o_1","h-3.5":"_h-3.5_1mh4o_1","h-3/4":"_h-3/4_1mh4o_1","h-4":"_h-4_1mh4o_1","h-5":"_h-5_1mh4o_1","h-6":"_h-6_1mh4o_1","h-8":"_h-8_1mh4o_1","h-96":"_h-96_1mh4o_1","h-[2.25rem]":"_h-[2.25rem]_1mh4o_1","h-[80vh]":"_h-[80vh]_1mh4o_1","h-full":"_h-full_1mh4o_1","max-h-[80vh]":"_max-h-[80vh]_1mh4o_1","max-h-full":"_max-h-full_1mh4o_1","min-h-0":"_min-h-0_1mh4o_1","min-h-10":"_min-h-10_1mh4o_1","w-10":"_w-10_1mh4o_1","w-16":"_w-16_1mh4o_1","w-2":"_w-2_1mh4o_1","w-2/5":"_w-2/5_1mh4o_1","w-20":"_w-20_1mh4o_1","w-24":"_w-24_1mh4o_1","w-3":"_w-3_1mh4o_1","w-3.5":"_w-3.5_1mh4o_1","w-3/4":"_w-3/4_1mh4o_1","w-3/5":"_w-3/5_1mh4o_1","w-32":"_w-32_1mh4o_1","w-4":"_w-4_1mh4o_1","w-48":"_w-48_1mh4o_1","w-5":"_w-5_1mh4o_1","w-6":"_w-6_1mh4o_1","w-7":"_w-7_1mh4o_1","w-72":"_w-72_1mh4o_1","w-8":"_w-8_1mh4o_1","w-96":"_w-96_1mh4o_1","w-[13.5rem]":"_w-[13.5rem]_1mh4o_1","w-[40%]":"_w-[40%]_1mh4o_1","w-[6.5rem]":"_w-[6.5rem]_1mh4o_1","w-[60vw]":"_w-[60vw]_1mh4o_1","w-[80vw]":"_w-[80vw]_1mh4o_1","w-full":"_w-full_1mh4o_1","!min-w-0":"_!min-w-0_1mh4o_1","min-w-0":"_min-w-0_1mh4o_1","min-w-10":"_min-w-10_1mh4o_1","min-w-96":"_min-w-96_1mh4o_1","min-w-[300px]":"_min-w-[300px]_1mh4o_1","max-w-[400px]":"_max-w-[400px]_1mh4o_1","max-w-[600px]":"_max-w-[600px]_1mh4o_1","max-w-full":"_max-w-full_1mh4o_1","max-w-none":"_max-w-none_1mh4o_1","flex-1":"_flex-1_1mh4o_1","flex-shrink":"_flex-shrink_1mh4o_1","flex-shrink-0":"_flex-shrink-0_1mh4o_1",shrink:"_shrink_1mh4o_1","flex-grow":"_flex-grow_1mh4o_1",grow:"_grow_1mh4o_1","-translate-y-1/2":"_-translate-y-1/2_1mh4o_1","rotate-180":"_rotate-180_1mh4o_1","scale-110":"_scale-110_1mh4o_1",transform:"_transform_1mh4o_1","cursor-ew-resize":"_cursor-ew-resize_1mh4o_1","cursor-move":"_cursor-move_1mh4o_1","cursor-not-allowed":"_cursor-not-allowed_1mh4o_1","cursor-ns-resize":"_cursor-ns-resize_1mh4o_1","cursor-pointer":"_cursor-pointer_1mh4o_1","select-all":"_select-all_1mh4o_1",resize:"_resize_1mh4o_1","grid-cols-3":"_grid-cols-3_1mh4o_1","flex-col":"_flex-col_1mh4o_1","flex-wrap":"_flex-wrap_1mh4o_1","flex-nowrap":"_flex-nowrap_1mh4o_1","items-center":"_items-center_1mh4o_1","items-stretch":"_items-stretch_1mh4o_1","justify-start":"_justify-start_1mh4o_1","justify-end":"_justify-end_1mh4o_1","justify-center":"_justify-center_1mh4o_1","justify-between":"_justify-between_1mh4o_1","gap-1":"_gap-1_1mh4o_1","gap-2":"_gap-2_1mh4o_1","gap-3":"_gap-3_1mh4o_1","gap-x-2":"_gap-x-2_1mh4o_1","gap-x-4":"_gap-x-4_1mh4o_1","gap-y-0":"_gap-y-0_1mh4o_1","gap-y-1":"_gap-y-1_1mh4o_1","space-x-1":"_space-x-1_1mh4o_1","space-x-2":"_space-x-2_1mh4o_1","self-center":"_self-center_1mh4o_1","overflow-auto":"_overflow-auto_1mh4o_1","overflow-hidden":"_overflow-hidden_1mh4o_1","overflow-x-auto":"_overflow-x-auto_1mh4o_1","overflow-y-auto":"_overflow-y-auto_1mh4o_70","overflow-x-hidden":"_overflow-x-hidden_1mh4o_1","overflow-y-hidden":"_overflow-y-hidden_1mh4o_1","scroll-smooth":"_scroll-smooth_1mh4o_1",truncate:"_truncate_1mh4o_1","overflow-ellipsis":"_overflow-ellipsis_1mh4o_1","whitespace-normal":"_whitespace-normal_1mh4o_1","whitespace-nowrap":"_whitespace-nowrap_1mh4o_1","whitespace-pre-wrap":"_whitespace-pre-wrap_1mh4o_1",rounded:"_rounded_1mh4o_1","rounded-2xl":"_rounded-2xl_1mh4o_1","rounded-full":"_rounded-full_1mh4o_1","rounded-lg":"_rounded-lg_1mh4o_1","rounded-md":"_rounded-md_1mh4o_1","rounded-sm":"_rounded-sm_1mh4o_1","!rounded-l-none":"_!rounded-l-none_1mh4o_1","!rounded-r-none":"_!rounded-r-none_1mh4o_1","rounded-b-lg":"_rounded-b-lg_1mh4o_1","rounded-l-lg":"_rounded-l-lg_1mh4o_1","rounded-r-lg":"_rounded-r-lg_1mh4o_1","rounded-t-2xl":"_rounded-t-2xl_1mh4o_1","rounded-t-lg":"_rounded-t-lg_1mh4o_1","rounded-t-md":"_rounded-t-md_1mh4o_1","rounded-br":"_rounded-br_1mh4o_1","rounded-tl":"_rounded-tl_1mh4o_1","!border-0":"_!border-0_1mh4o_1",border:"_border_1mh4o_1","border-2":"_border-2_1mh4o_1","border-b":"_border-b_1mh4o_1","border-l":"_border-l_1mh4o_1","border-l-0":"_border-l-0_1mh4o_1","border-r":"_border-r_1mh4o_1","border-solid":"_border-solid_1mh4o_1","border-dashed":"_border-dashed_1mh4o_1","border-none":"_border-none_1mh4o_1","border-blue-500":"_border-blue-500_1mh4o_1","border-blue-600":"_border-blue-600_1mh4o_1","border-blue-700":"_border-blue-700_1mh4o_1","border-gray-200":"_border-gray-200_1mh4o_1","border-gray-300":"_border-gray-300_1mh4o_1","border-purple-500":"_border-purple-500_1mh4o_1","border-slate-200":"_border-slate-200_1mh4o_1","border-slate-700":"_border-slate-700_1mh4o_1","border-transparent":"_border-transparent_1mh4o_1","bg-amber-300":"_bg-amber-300_1mh4o_1","bg-amber-950":"_bg-amber-950_1mh4o_1","bg-black":"_bg-black_1mh4o_1","bg-blue-200":"_bg-blue-200_1mh4o_1","bg-blue-300":"_bg-blue-300_1mh4o_1","bg-blue-600":"_bg-blue-600_1mh4o_1","bg-blue-900":"_bg-blue-900_1mh4o_1","bg-blue-950":"_bg-blue-950_1mh4o_1","bg-cyan-950":"_bg-cyan-950_1mh4o_1","bg-emerald-200":"_bg-emerald-200_1mh4o_1","bg-emerald-950":"_bg-emerald-950_1mh4o_1","bg-fuchsia-950":"_bg-fuchsia-950_1mh4o_1","bg-gray-100":"_bg-gray-100_1mh4o_1","bg-gray-200":"_bg-gray-200_1mh4o_1","bg-gray-400":"_bg-gray-400_1mh4o_1","bg-gray-50":"_bg-gray-50_1mh4o_1","bg-gray-500":"_bg-gray-500_1mh4o_1","bg-gray-800":"_bg-gray-800_1mh4o_1","bg-green-200":"_bg-green-200_1mh4o_1","bg-green-300":"_bg-green-300_1mh4o_1","bg-green-900":"_bg-green-900_1mh4o_1","bg-green-950":"_bg-green-950_1mh4o_1","bg-indigo-950":"_bg-indigo-950_1mh4o_1","bg-lime-300":"_bg-lime-300_1mh4o_1","bg-lime-950":"_bg-lime-950_1mh4o_1","bg-orange-900":"_bg-orange-900_1mh4o_1","bg-orange-950":"_bg-orange-950_1mh4o_1","bg-purple-700":"_bg-purple-700_1mh4o_1","bg-purple-900":"_bg-purple-900_1mh4o_1","bg-purple-950":"_bg-purple-950_1mh4o_1","bg-red-200":"_bg-red-200_1mh4o_1","bg-red-300":"_bg-red-300_1mh4o_1","bg-red-900":"_bg-red-900_1mh4o_1","bg-red-950":"_bg-red-950_1mh4o_1","bg-rose-950":"_bg-rose-950_1mh4o_1","bg-sky-300":"_bg-sky-300_1mh4o_1","bg-sky-50":"_bg-sky-50_1mh4o_1","bg-sky-800":"_bg-sky-800_1mh4o_1","bg-sky-900":"_bg-sky-900_1mh4o_1","bg-sky-950":"_bg-sky-950_1mh4o_1","bg-slate-100":"_bg-slate-100_1mh4o_1","bg-slate-300":"_bg-slate-300_1mh4o_1","bg-slate-400":"_bg-slate-400_1mh4o_1","bg-slate-500":"_bg-slate-500_1mh4o_1","bg-slate-600":"_bg-slate-600_1mh4o_1","bg-slate-700":"_bg-slate-700_1mh4o_1","bg-slate-800":"_bg-slate-800_1mh4o_1","bg-slate-900":"_bg-slate-900_1mh4o_1","bg-slate-950":"_bg-slate-950_1mh4o_1","bg-teal-200":"_bg-teal-200_1mh4o_1","bg-teal-500":"_bg-teal-500_1mh4o_1","bg-teal-950":"_bg-teal-950_1mh4o_1","bg-transparent":"_bg-transparent_1mh4o_1","bg-violet-950":"_bg-violet-950_1mh4o_1","bg-white":"_bg-white_1mh4o_1","bg-yellow-300":"_bg-yellow-300_1mh4o_1","bg-yellow-800":"_bg-yellow-800_1mh4o_1","bg-yellow-950":"_bg-yellow-950_1mh4o_1","bg-opacity-70":"_bg-opacity-70_1mh4o_1","bg-opacity-80":"_bg-opacity-80_1mh4o_1","bg-opacity-90":"_bg-opacity-90_1mh4o_1","!bg-none":"_!bg-none_1mh4o_1","object-contain":"_object-contain_1mh4o_1","object-cover":"_object-cover_1mh4o_1","!p-2":"_!p-2_1mh4o_1","p-0":"_p-0_1mh4o_1","p-1":"_p-1_1mh4o_1","p-2":"_p-2_1mh4o_1","p-3":"_p-3_1mh4o_1","p-4":"_p-4_1mh4o_1","p-8":"_p-8_1mh4o_1","!py-0":"_!py-0_1mh4o_1","px-1":"_px-1_1mh4o_1","px-1.5":"_px-1.5_1mh4o_1","px-12":"_px-12_1mh4o_1","px-16":"_px-16_1mh4o_1","px-2":"_px-2_1mh4o_1","px-2.5":"_px-2.5_1mh4o_1","px-3":"_px-3_1mh4o_1","px-4":"_px-4_1mh4o_1","px-6":"_px-6_1mh4o_1","px-8":"_px-8_1mh4o_1","py-0":"_py-0_1mh4o_1","py-0.5":"_py-0.5_1mh4o_1","py-1":"_py-1_1mh4o_1","py-1.5":"_py-1.5_1mh4o_1","py-14":"_py-14_1mh4o_1","py-2":"_py-2_1mh4o_1","py-3":"_py-3_1mh4o_1","py-4":"_py-4_1mh4o_1","py-8":"_py-8_1mh4o_1","pl-1":"_pl-1_1mh4o_1","pt-3":"_pt-3_1mh4o_1","text-left":"_text-left_1mh4o_1","text-center":"_text-center_1mh4o_1","text-[.7rem]":"_text-[.7rem]_1mh4o_1","text-[1rem]":"_text-[1rem]_1mh4o_1","text-base":"_text-base_1mh4o_1","text-lg":"_text-lg_1mh4o_1","text-sm":"_text-sm_1mh4o_1","text-xs":"_text-xs_1mh4o_1","font-bold":"_font-bold_1mh4o_1","font-medium":"_font-medium_1mh4o_1","font-semibold":"_font-semibold_1mh4o_1",uppercase:"_uppercase_1mh4o_1",lowercase:"_lowercase_1mh4o_1",italic:"_italic_1mh4o_1","leading-[1.2rem]":"_leading-[1.2rem]_1mh4o_1","!text-green-900":"_!text-green-900_1mh4o_1","!text-red-900":"_!text-red-900_1mh4o_1","!text-sky-900":"_!text-sky-900_1mh4o_1","!text-white":"_!text-white_1mh4o_1","!text-yellow-900":"_!text-yellow-900_1mh4o_1","text-amber-400":"_text-amber-400_1mh4o_1","text-amber-900":"_text-amber-900_1mh4o_1","text-blue-300":"_text-blue-300_1mh4o_1","text-blue-400":"_text-blue-400_1mh4o_1","text-blue-600":"_text-blue-600_1mh4o_1","text-blue-900":"_text-blue-900_1mh4o_1","text-cyan-400":"_text-cyan-400_1mh4o_1","text-emerald-400":"_text-emerald-400_1mh4o_1","text-fuchsia-400":"_text-fuchsia-400_1mh4o_1","text-gray-300":"_text-gray-300_1mh4o_1","text-gray-400":"_text-gray-400_1mh4o_1","text-gray-500":"_text-gray-500_1mh4o_1","text-gray-600":"_text-gray-600_1mh4o_1","text-gray-700":"_text-gray-700_1mh4o_1","text-gray-900":"_text-gray-900_1mh4o_1","text-green-300":"_text-green-300_1mh4o_1","text-green-400":"_text-green-400_1mh4o_1","text-green-700":"_text-green-700_1mh4o_1","text-green-900":"_text-green-900_1mh4o_1","text-indigo-400":"_text-indigo-400_1mh4o_1","text-lime-400":"_text-lime-400_1mh4o_1","text-lime-900":"_text-lime-900_1mh4o_1","text-orange-400":"_text-orange-400_1mh4o_1","text-purple-200":"_text-purple-200_1mh4o_1","text-purple-300":"_text-purple-300_1mh4o_1","text-purple-400":"_text-purple-400_1mh4o_1","text-red-400":"_text-red-400_1mh4o_1","text-red-500":"_text-red-500_1mh4o_1","text-red-800":"_text-red-800_1mh4o_1","text-red-900":"_text-red-900_1mh4o_1","text-rose-400":"_text-rose-400_1mh4o_1","text-sky-400":"_text-sky-400_1mh4o_1","text-sky-500":"_text-sky-500_1mh4o_1","text-sky-600":"_text-sky-600_1mh4o_1","text-sky-900":"_text-sky-900_1mh4o_1","text-slate-200":"_text-slate-200_1mh4o_1","text-slate-300":"_text-slate-300_1mh4o_1","text-slate-400":"_text-slate-400_1mh4o_1","text-slate-50":"_text-slate-50_1mh4o_1","text-slate-500":"_text-slate-500_1mh4o_1","text-slate-600":"_text-slate-600_1mh4o_1","text-slate-800":"_text-slate-800_1mh4o_1","text-slate-900":"_text-slate-900_1mh4o_1","text-teal-200":"_text-teal-200_1mh4o_1","text-teal-400":"_text-teal-400_1mh4o_1","text-teal-800":"_text-teal-800_1mh4o_1","text-violet-400":"_text-violet-400_1mh4o_1","text-white":"_text-white_1mh4o_1","text-yellow-300":"_text-yellow-300_1mh4o_1","text-yellow-400":"_text-yellow-400_1mh4o_1","text-yellow-600":"_text-yellow-600_1mh4o_1","text-zinc-500":"_text-zinc-500_1mh4o_1","text-zinc-800":"_text-zinc-800_1mh4o_1",underline:"_underline_1mh4o_1","line-through":"_line-through_1mh4o_1","opacity-0":"_opacity-0_1mh4o_1","opacity-100":"_opacity-100_1mh4o_1","opacity-20":"_opacity-20_1mh4o_1","opacity-50":"_opacity-50_1mh4o_1","opacity-60":"_opacity-60_1mh4o_1","opacity-70":"_opacity-70_1mh4o_1","opacity-80":"_opacity-80_1mh4o_1","opacity-90":"_opacity-90_1mh4o_1",shadow:"_shadow_1mh4o_1","shadow-none":"_shadow-none_1mh4o_1","shadow-xl":"_shadow-xl_1mh4o_1","outline-none":"_outline-none_1mh4o_1",outline:"_outline_1mh4o_1","outline-offset-0":"_outline-offset-0_1mh4o_1",blur:"_blur_1mh4o_1",filter:"_filter_1mh4o_1","backdrop-filter":"_backdrop-filter_1mh4o_1",transition:"_transition_1mh4o_1","transition-all":"_transition-all_1mh4o_1","transition-colors":"_transition-colors_1mh4o_1","transition-opacity":"_transition-opacity_1mh4o_1","duration-300":"_duration-300_1mh4o_1","danx-app":"_danx-app_1mh4o_4","q-tab":"_q-tab_1mh4o_4","q-table__card":"_q-table__card_1mh4o_7","q-checkbox__inner":"_q-checkbox__inner_1mh4o_11","q-toolbar":"_q-toolbar_1mh4o_14","q-notification__actions":"_q-notification__actions_1mh4o_19","q-date":"_q-date_1mh4o_22","q-date__view":"_q-date__view_1mh4o_25","q-field":"_q-field_1mh4o_28","q-field--auto-height":"_q-field--auto-height_1mh4o_28","q-field__control":"_q-field__control_1mh4o_28","q-field__native":"_q-field__native_1mh4o_31","q-field--labeled":"_q-field--labeled_1mh4o_35","q-field__control-container":"_q-field__control-container_1mh4o_35","q-textarea":"_q-textarea_1mh4o_38","q-field__marginal":"_q-field__marginal_1mh4o_41","q-field__input":"_q-field__input_1mh4o_41","q-field__label":"_q-field__label_1mh4o_41","q-btn":"_q-btn_1mh4o_48","q-item":"_q-item_1mh4o_56","q-tab-panels":"_q-tab-panels_1mh4o_60","q-panel":"_q-panel_1mh4o_64",scroll:"_scroll_1mh4o_67","dx-dialog":"_dx-dialog_1mh4o_74","q-card__section--vert":"_q-card__section--vert_1mh4o_74","q-banner":"_q-banner_1mh4o_78",app:"_app_1mh4o_1","main-layout":"_main-layout_1mh4o_1","is-disabled":"_is-disabled_1mh4o_95","disable-all-transitions":"_disable-all-transitions_1mh4o_100","v-enter-active":"_v-enter-active_1mh4o_104","v-leave-active":"_v-leave-active_1mh4o_105","v-enter-from":"_v-enter-from_1mh4o_109","v-leave-to":"_v-leave-to_1mh4o_110","dx-scrollbar":"_dx-scrollbar_1mh4o_114","dx-scrollbar-dark":"_dx-scrollbar-dark_1mh4o_157","dx-scrollbar-hidden":"_dx-scrollbar-hidden_1mh4o_199","dx-code-viewer":"_dx-code-viewer_1mh4o_207","is-collapsed":"_is-collapsed_1mh4o_211","code-collapsed":"_code-collapsed_1mh4o_214","code-collapsed-preview":"_code-collapsed-preview_1mh4o_225","collapse-toggle":"_collapse-toggle_1mh4o_231","collapse-header":"_collapse-header_1mh4o_234","code-content":"_code-content_1mh4o_243","is-collapsible":"_is-collapsible_1mh4o_257","code-footer":"_code-footer_1mh4o_267","has-error":"_has-error_1mh4o_273","language-badge":"_language-badge_1mh4o_277","syntax-key":"_syntax-key_1mh4o_284","syntax-string":"_syntax-string_1mh4o_287","syntax-number":"_syntax-number_1mh4o_290","syntax-boolean":"_syntax-boolean_1mh4o_293","syntax-null":"_syntax-null_1mh4o_296","syntax-punctuation":"_syntax-punctuation_1mh4o_299","is-editable":"_is-editable_1mh4o_302","dx-markdown-content":"_dx-markdown-content_1mh4o_316","task-list":"_task-list_1mh4o_406","task-list-item":"_task-list-item_1mh4o_410","footnote-ref":"_footnote-ref_1mh4o_491",footnotes:"_footnotes_1mh4o_499","footnote-list":"_footnote-list_1mh4o_506","footnote-item":"_footnote-item_1mh4o_509","footnote-backref":"_footnote-backref_1mh4o_512","dx-action-table":"_dx-action-table_1mh4o_517","dx-column-shrink":"_dx-column-shrink_1mh4o_517","category-toggle":"_category-toggle_1mh4o_521","has-visible-columns":"_has-visible-columns_1mh4o_524","hover:scale-105":"_hover:scale-105_1mh4o_1","hover:bg-amber-400":"_hover:bg-amber-400_1mh4o_1","hover:bg-blue-200":"_hover:bg-blue-200_1mh4o_1","hover:bg-blue-400":"_hover:bg-blue-400_1mh4o_1","hover:bg-blue-800":"_hover:bg-blue-800_1mh4o_1","hover:bg-gray-200":"_hover:bg-gray-200_1mh4o_1","hover:bg-green-100":"_hover:bg-green-100_1mh4o_1","hover:bg-green-400":"_hover:bg-green-400_1mh4o_1","hover:bg-green-800":"_hover:bg-green-800_1mh4o_1","hover:bg-lime-400":"_hover:bg-lime-400_1mh4o_1","hover:bg-orange-800":"_hover:bg-orange-800_1mh4o_1","hover:bg-purple-600":"_hover:bg-purple-600_1mh4o_1","hover:bg-purple-800":"_hover:bg-purple-800_1mh4o_1","hover:bg-red-100":"_hover:bg-red-100_1mh4o_1","hover:bg-red-200":"_hover:bg-red-200_1mh4o_1","hover:bg-red-400":"_hover:bg-red-400_1mh4o_1","hover:bg-sky-400":"_hover:bg-sky-400_1mh4o_1","hover:bg-sky-800":"_hover:bg-sky-800_1mh4o_1","hover:bg-sky-900":"_hover:bg-sky-900_1mh4o_1","hover:bg-slate-200":"_hover:bg-slate-200_1mh4o_1","hover:bg-slate-300":"_hover:bg-slate-300_1mh4o_1","hover:bg-slate-400":"_hover:bg-slate-400_1mh4o_1","hover:bg-slate-600":"_hover:bg-slate-600_1mh4o_1","hover:bg-slate-700":"_hover:bg-slate-700_1mh4o_1","hover:bg-slate-800":"_hover:bg-slate-800_1mh4o_1","hover:bg-slate-900":"_hover:bg-slate-900_1mh4o_1","hover:bg-teal-400":"_hover:bg-teal-400_1mh4o_1","hover:bg-teal-600":"_hover:bg-teal-600_1mh4o_1","hover:bg-yellow-700":"_hover:bg-yellow-700_1mh4o_1","hover:text-blue-300":"_hover:text-blue-300_1mh4o_1","hover:text-blue-500":"_hover:text-blue-500_1mh4o_1","hover:text-blue-600":"_hover:text-blue-600_1mh4o_1","hover:text-gray-300":"_hover:text-gray-300_1mh4o_1","hover:text-gray-700":"_hover:text-gray-700_1mh4o_1","hover:text-sky-600":"_hover:text-sky-600_1mh4o_1","hover:text-white":"_hover:text-white_1mh4o_1","hover:opacity-100":"_hover:opacity-100_1mh4o_1","hover:opacity-70":"_hover:opacity-70_1mh4o_1","hover:outline-4":"_hover:outline-4_1mh4o_1","focus:bg-blue-200":"_focus:bg-blue-200_1mh4o_1","focus:outline-4":"_focus:outline-4_1mh4o_1","focus:outline-blue-200":"_focus:outline-blue-200_1mh4o_1",group:"_group_1mh4o_1","group-hover:opacity-100":"_group-hover:opacity-100_1mh4o_1"},QE={class:"flex items-center flex-nowrap"},XE=["onClick"],JE={class:"text-xs"},e8=tt({__name:"VisibleColumnsToggleButtons",props:{columns:{type:Array,required:!0},hiddenColumnNames:{type:Array,required:!0}},emits:["update:hidden-column-names"],setup(t,{emit:e}){const n=e,o=t,s=r.ref(""),i=r.computed(()=>[...new Set(o.columns.map(m=>m.category)).values()]);function l(m){return o.columns.filter(g=>g.category===m)}function a(m){return l(m).filter(g=>!g.required).map(g=>g.name).some(g=>!o.hiddenColumnNames.includes(g))}function c(m){let g=l(m).filter(_=>!_.required);const p=g.filter(_=>!o.hiddenColumnNames.includes(_.name));return p.length===0?!1:p.length===g.length?!0:null}function u(m,g){m=m.filter(_=>!_.required);let p=[...o.hiddenColumnNames];g?p=p.filter(_=>!m.map(b=>b.name).includes(_)):p=[...new Set([...p,...m.map(_=>_.name)])],n("update:hidden-column-names",p)}function d(m,g){if(o.columns.find(_=>_.name===m).required)return;g=g??o.hiddenColumnNames.includes(m);let p=[...o.hiddenColumnNames];g?p=Vr(p,m):(p.push(m),p=[...new Set(p)]),n("update:hidden-column-names",p)}const f=r.useCssModule();function h(m){return f["category-toggle"]+(a(m)?" "+f["has-visible-columns"]:"")}return(m,g)=>{const p=r.resolveComponent("QCheckbox"),_=r.resolveComponent("QList"),b=r.resolveComponent("QMenu");return r.openBlock(),r.createElementBlock("div",QE,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value,y=>(r.openBlock(),r.createElementBlock("div",{key:y,class:r.normalizeClass(h(y))},[r.createVNode(p,{"toggle-indeterminate":"",size:"20px","model-value":c(y),class:"mr-2 cb-white-border",onClick:w=>u(l(y),!a(y))},null,8,["model-value","onClick"]),r.createElementVNode("div",null,r.toDisplayString(y),1),r.createVNode(r.unref(qf),{class:r.normalizeClass(["ml-2 w-5 transition-all",{"rotate-180":s.value===y}])},null,8,["class"]),r.createVNode(b,{"onUpdate:modelValue":w=>s.value=w?y:""},{default:r.withCtx(()=>[r.createVNode(_,null,{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l(y),w=>(r.openBlock(),r.createElementBlock("div",{key:w,class:"flex items-center flex-nowrap px-2 py-3 cursor-pointer",onClick:k=>d(w.name)},[r.createVNode(p,{"model-value":!t.hiddenColumnNames.includes(w.name),class:"mr-3 cb-white-border",size:"20px",color:w.required?"gray-400":"blue-600",disable:w.required,onClick:k=>d(w.name)},null,8,["model-value","color","disable","onClick"]),r.createElementVNode("div",JE,r.toDisplayString(w.label),1)],8,XE))),128))]),_:2},1024)]),_:2},1032,["onUpdate:modelValue"])],2))),128))])}}},[["__cssModules",{$style:YE}]]);function rp(t){r.onMounted(()=>{const e=t.value.$el.getElementsByClassName("q-table__middle")[0];e.addEventListener("scroll",n);function n({target:o}){o.scrollTop>0?e.classList.add("is-scrolling-y"):e.classList.remove("is-scrolling-y"),o.scrollLeft>0?e.classList.add("is-scrolling-x"):e.classList.remove("is-scrolling-x")}})}function sp(t,e){if(!t.sortBy)return null;const n=e.find(o=>o.name===t.sortBy);return n?[{column:n.sortBy||n.name,expression:n.sortByExpression||void 0,order:t.descending?"desc":"asc"}]:null}function ip(t,e=null){const n={},o=tg("filter",t);if(o){const s=JSON.parse(o);Object.keys(s).forEach(i=>{(!e||e.includes(i))&&(n[i]=s[i])})}return n}function t8(t,e){let n=!1;const o=`dx-${t}-pager`,s=r.shallowRef(null),i=r.ref({}),l=r.ref({}),a=r.ref(!1),c=r.shallowRef([]),u=r.ref(!1),d=r.ref(!1),f=r.shallowRef(null),h=r.shallowRef(null),m=r.shallowRef(""),g=r.ref({}),p=r.ref(!1),_=r.ref(!1),b=r.computed(()=>Object.keys(i.value).filter(V=>i.value[V]!==void 0).length),y={__sort:null,sortBy:null,descending:!1,page:0,rowsNumber:0,rowsPerPage:50},w=r.shallowRef(y),k=r.computed(()=>({perPage:w.value.rowsPerPage,page:w.value.page,filter:{...i.value,...l.value},sort:w.value.__sort||void 0}));r.watch(k,()=>{U(),S()}),r.watch(i,()=>{U(),C()}),r.watch(c,C),e.refreshFilters&&r.watch(i,B);async function S(){if(!(!n||e.isListEnabled===!1)){u.value=!0;try{$(await e.routes.list(k.value))}catch{}finally{u.value=!1}}}async function C(){if(!e.routes.summary||!n||e.isSummaryEnabled===!1)return;d.value=!0;const V={id:null,...i.value,...l.value};c.value.length&&(V.id=c.value.map(G=>G.id));try{f.value=await e.routes.summary(V)}catch{}finally{d.value=!1}}async function x(){await Promise.all([S(),C()])}function T(V){return _.value||B(),g.value[V]||[]}async function B(){if(!(p.value||!e.routes.fieldOptions||e.isFieldOptionsEnabled===!1)){p.value=!0;try{g.value=await e.routes.fieldOptions()||{},_.value=!0}catch{}finally{p.value=!1}}}function N(V,G=null){var Q;if(e.urlPattern&&V.match(e.urlPattern)){const De=(Q=G==null?void 0:G.value)==null?void 0:Q.map(ct=>ct.fields.map(Yi=>Yi.name)).flat(),Ge=ip(V,De);Object.keys(Ge).length>0&&(i.value=Ge,I("filter",i.value))}}function $(V){let G=[],Q;Array.isArray(V)?(G=V,Q={total:V.length}):V.data&&(G=V.data,Q=V.meta),Q&&Q.total!==w.value.rowsNumber&&(w.value.rowsNumber=Q.total),G=G.map(De=>(De.isSaving=De.isSaving===void 0?!1:De.isSaving,ye(De))),s.value={data:G,meta:Q}}function O(){w.value=y}function F(V){w.value={...w.value,...V}}function P(V){c.value=V}function A(){c.value=[]}async function L(V,G=void 0){var Q,De,Ge;if(!e.routes.more||e.isListEnabled===!1)return!1;try{const ct=await e.routes.more({page:V+1,perPage:G,filter:{...i.value,...l.value}});if(ct&&ct.length>0)return $({data:[...((Q=s.value)==null?void 0:Q.data)||[],...ct],meta:{total:((Ge=(De=s.value)==null?void 0:De.meta)==null?void 0:Ge.total)||0}}),!0}catch{}return!1}async function D(){return Promise.all([S(),C(),B(),j()])}function I(V,G){const Q=Ft(o)||{};Q[V]=G,Lt(o,Q)}function W(){const V=Ft(o);V?(i.value={...V.filter,...i.value},w.value=V.pagination):i.value={...e.filterDefaults,...i.value},setTimeout(()=>{u.value||S(),d.value||C(),p.value||B()},1)}async function U(){const V={filter:i.value,pagination:{...w.value,page:1}};Lt(o,V)}async function j(){try{const G=await Nl("active-item",async()=>{if(!(!h.value||!e.routes.details||e.isDetailsEnabled===!1))return await e.routes.details(h.value)})();if(G===void 0)return;if(!G||!G.__type||!G.id)return console.error("Invalid response from details route: All responses must include a __type and id field. result =",G);h.value=ye(G)}catch{}}e.routes.details&&r.watch(()=>h.value,async(V,G)=>{V!=null&&V.id&&(G==null?void 0:G.id)!=V.id&&await j()});function M(V,G=""){var Q;(V==null?void 0:V.id)==((Q=h.value)==null?void 0:Q.id)&&G===m.value||(v(V),m.value=G,V!=null&&V.id&&de({id:V.id,panel:G}))}function v(V){h.value=V&&ye(V),V!=null&&V.id||de({})}async function H(V){var ct,Yi;if(!((ct=s.value)!=null&&ct.data))return;const G=s.value.data.findIndex(Qi=>{var es;return Qi.id===((es=h.value)==null?void 0:es.id)});if(G==null)return;const Q=G+V,Ge=await Nl("getNextItem",async()=>{var Qi,es,rg;return(Qi=s.value)!=null&&Qi.data?Q<0?w.value.page>1?(w.value={...w.value,page:w.value.page-1},await Bl(u,!1),s.value.data.length-1):-1:Q>=s.value.data.length?w.value.page<(((rg=(es=s.value)==null?void 0:es.meta)==null?void 0:rg.last_page)||1)?(w.value={...w.value,page:w.value.page+1},await Bl(u,!1),0):-1:Q:-1})();Ge!==void 0&&Ge>=0&&(h.value=(Yi=s.value)==null?void 0:Yi.data[Ge])}function K(V){i.value=V||{}}async function Z(V){e.routes.export&&await e.routes.export(V)}function re(V){e={...e,...V}}function ue(V){const G=Ie();if(n=!0,V&&(e={...e,...V}),W(),e.routes.details){const{params:Q,meta:De,name:Ge}=G.currentRoute.value;Ge===t&&(G.afterEach(ct=>{ct.name===Ge&&je(ct.params,ct.meta)}),je(Q,De))}}function de(V){const G=Ie();let{name:Q}=G.currentRoute.value;if(Q=Array.isArray(Q)?Q[0]:Q,!Q){console.error("No route name found for list controls",t);return}const De=G.resolve({name:Q,params:V}).href,Ge=G.currentRoute.value.fullPath;Ge!==De&&!Ge.startsWith(De)&&G.push({name:Q,params:V})}function je(V,G){const Q=Array.isArray(V==null?void 0:V.id)?V.id[0]:V==null?void 0:V.id;if(Q&&G.type){const De=Array.isArray(V==null?void 0:V.panel)?V.panel[0]:V==null?void 0:V.panel;M({id:Q,__type:""+G.type},De||m.value||"")}}function Ie(){if(!fe.value.router)throw new Error("Vue Router must be configured in danxOptions");return fe.value.router}return{name:t,label:e.label||t,pagedItems:s,activeFilter:i,globalFilter:l,filterActiveCount:b,showFilters:a,summary:f,selectedRows:c,isLoadingList:u,isLoadingFieldOptions:p,hasLoadedFieldOptions:_,isLoadingSummary:d,pager:k,pagination:w,activeItem:h,activePanel:m,initialize:ue,setOptions:re,resetPaging:O,setPagination:F,setSelectedRows:P,clearSelectedRows:A,loadList:S,loadSummary:C,loadListAndSummary:x,loadMore:L,loadFieldOptions:B,getActiveItemDetails:j,refreshAll:D,exportList:Z,setActiveItem:v,getNextItem:H,activatePanel:M,setActiveFilter:K,applyFilterFromUrl:N,getFieldOptions:T}}const n8={key:1,class:"mt-2"},o8={class:"text-xs font-bold"},hc=r.defineComponent({__name:"FilterableField",props:{field:{},modelValue:{},loading:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,o=t;function s(i){let l=i||void 0;switch(o.field.type){case"multi-select":l=i&&i.length>0?i:void 0;break;case"single-select":case"boolean":l=i===null?void 0:i;break}n("update:model-value",l)}return(i,l)=>{var a;return r.openBlock(),r.createElementBlock("div",null,[i.field.type==="text"?(r.openBlock(),r.createBlock(r.unref(On),{key:0,"model-value":i.modelValue,label:i.field.label,placeholder:i.field.placeholder,debounce:1e3,"onUpdate:modelValue":s},null,8,["model-value","label","placeholder"])):i.field.type==="multi-select"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[((a=i.field.options)==null?void 0:a.length)>0||i.loading?(r.openBlock(),r.createBlock(r.unref(xo),{key:0,"model-value":i.modelValue,options:i.field.options,clearable:i.field.clearable===void 0?!0:i.field.clearable,multiple:"",loading:i.loading,"chip-limit":1,filterable:"",placeholder:i.field.placeholder,label:i.field.label,"onUpdate:modelValue":s},null,8,["model-value","options","clearable","loading","placeholder","label"])):(r.openBlock(),r.createElementBlock("div",n8,[r.createElementVNode("div",o8,r.toDisplayString(i.field.label),1),l[0]||(l[0]=r.createElementVNode("div",{class:"text-sm ml-3 py-2"}," No Available Options ",-1))]))],64)):i.field.type==="single-select"?(r.openBlock(),r.createBlock(r.unref(xo),{key:2,"model-value":i.modelValue,options:i.field.options,clearable:i.field.clearable===void 0?!0:i.field.clearable,placeholder:i.field.placeholder,loading:i.loading,label:i.field.label,"onUpdate:modelValue":s},null,8,["model-value","options","clearable","placeholder","loading","label"])):i.field.type==="date"?(r.openBlock(),r.createBlock(r.unref(ga),{key:3,"model-value":i.modelValue,label:i.field.label,clearable:i.field.clearable===void 0?!0:i.field.clearable,class:"mt-2","onUpdate:modelValue":s},null,8,["model-value","label","clearable"])):i.field.type==="date-range"?(r.openBlock(),r.createBlock(r.unref(ba),{key:4,"model-value":i.modelValue,label:i.field.label,inline:!!i.field.inline,clearable:i.field.clearable===void 0?!0:i.field.clearable,"with-time":"",class:"mt-2 reactive","onUpdate:modelValue":s},null,8,["model-value","label","inline","clearable"])):i.field.type==="number-range"?(r.openBlock(),r.createBlock(r.unref(Ws),{key:5,"model-value":i.modelValue,label:i.field.label,class:"mt-2",debounce:1e3,"onUpdate:modelValue":s},null,8,["model-value","label"])):i.field.type==="currency-range"?(r.openBlock(),r.createBlock(r.unref(Ws),{key:6,"model-value":i.modelValue,label:i.field.label,class:"mt-2",debounce:1e3,currency:"","onUpdate:modelValue":s},null,8,["model-value","label"])):i.field.type==="percent-range"?(r.openBlock(),r.createBlock(r.unref(Ws),{key:7,"model-value":i.modelValue,label:i.field.label,class:"mt-2",debounce:1e3,percent:"","onUpdate:modelValue":s},null,8,["model-value","label"])):i.field.type==="boolean"?(r.openBlock(),r.createBlock(r.unref(pa),{key:8,field:i.field,"model-value":i.modelValue,class:"mt-2","toggle-indeterminate":i.field.toggleIndeterminate||!1,"label-class":"text-xs font-bold","onUpdate:modelValue":s},null,8,["field","model-value","toggle-indeterminate"])):i.field.type==="multi-keywords"?(r.openBlock(),r.createBlock(r.unref(yh),{key:9,"model-value":i.modelValue,field:i.field,"onUpdate:modelValue":s},null,8,["model-value","field"])):i.field.type==="select-with-children"?(r.openBlock(),r.createBlock(r.unref(wh),{key:10,"model-value":i.modelValue,options:i.field.options,loading:i.loading,label:i.field.label,placeholder:i.field.placeholder,"onUpdate:modelValue":s},null,8,["model-value","options","loading","label","placeholder"])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:11},[r.createTextVNode(' Field "'+r.toDisplayString(i.field.name)+'": Unknown filter type '+r.toDisplayString(i.field.type),1)],64))])}}}),r8={class:"flex items-center flex-nowrap flex-grow"},s8={class:"whitespace-nowrap flex-grow text-left text-sm font-bold"},lp={__name:"FilterItem",props:{name:{type:String,required:!0},count:{type:Number,required:!0}},setup(t){return(e,n)=>{const o=r.resolveComponent("QBadge"),s=r.resolveComponent("QExpansionItem");return r.openBlock(),r.createBlock(s,null,{header:r.withCtx(()=>[r.createElementVNode("div",r8,[r.createElementVNode("div",s8,r.toDisplayString(t.name),1),r.createVNode(o,{label:t.count,rounded:"",class:r.normalizeClass(["ml-2 transition-all",{"bg-gray-400":!t.count,"bg-blue-600":t.count}])},null,8,["label","class"])])]),default:r.withCtx(()=>[r.renderSlot(e.$slots,"default")]),_:3})}}},i8={class:"px-4 py-2 max-w-full"},ap={__name:"FilterList",props:{filters:{type:Array,required:!0},activeFilter:{type:Object,required:!0},loading:Boolean},emits:["update:filter"],setup(t,{emit:e}){const n=e,o=t,s=r.computed(()=>{const l={};for(const a of o.filters)l[a.name]=a.fields.filter(c=>o.activeFilter[c.name]!==void 0).length;return l});function i(l,a){let c={[l.name]:a};l.filterBy&&(c=l.filterBy(a)),n("update:filter",{...o.activeFilter,...c})}return(l,a)=>{const c=r.resolveComponent("QSeparator"),u=r.resolveComponent("QList");return r.openBlock(),r.createBlock(u,null,{default:r.withCtx(()=>[r.createElementVNode("div",i8,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.filters,(d,f)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:"group-"+d.name},[d.flat?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(d.fields,h=>(r.openBlock(),r.createBlock(r.unref(hc),{key:"field-"+h.name,"model-value":h.calcValue?h.calcValue(t.activeFilter):t.activeFilter[h.name],field:h,loading:t.loading,class:"mb-4","onUpdate:modelValue":m=>i(h,m)},null,8,["model-value","field","loading","onUpdate:modelValue"]))),128)):(r.openBlock(),r.createBlock(r.unref(lp),{key:1,name:d.name,count:s.value[d.name]},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d.fields,h=>(r.openBlock(),r.createBlock(r.unref(hc),{key:"field-"+h.name,"model-value":h.calcValue?h.calcValue(t.activeFilter):t.activeFilter[h.name],field:h,loading:t.loading,class:"mb-4","onUpdate:modelValue":m=>i(h,m)},null,8,["model-value","field","loading","onUpdate:modelValue"]))),128))]),_:2},1032,["name","count"])),f<t.filters.length-1?(r.openBlock(),r.createBlock(c,{key:2,class:"my-2"})):r.createCommentVNode("",!0)],64))),128))])]),_:1})}}},cp=r.defineComponent({__name:"CollapsableFiltersSidebar",props:{name:{},showFilters:{type:Boolean},activeFilter:{},minWidth:{default:"5rem"},maxWidth:{default:"18rem"},filters:{default:()=>[]}},emits:["update:active-filter","update:show-filters"],setup(t){return(e,n)=>(r.openBlock(),r.createBlock(r.unref(Ah),{class:"dx-collapsable-filters-sidebar",collapse:!e.showFilters,disabled:"","min-width":e.minWidth,"max-width":e.maxWidth,name:e.name,"onUpdate:collapse":n[1]||(n[1]=o=>e.$emit("update:show-filters",!o))},{default:r.withCtx(()=>[r.createVNode(r.unref(ap),{"active-filter":e.activeFilter,filters:e.filters,"onUpdate:filter":n[0]||(n[0]=o=>e.$emit("update:active-filter",o))},null,8,["active-filter","filters"])]),_:1},8,["collapse","min-width","max-width","name"]))}}),l8={class:"flex-grow"},up=tt({__name:"FilterListToggle",props:{filter:{type:Object,required:!0},showFilters:Boolean},emits:["update:show-filters","update:filter"],setup(t){const e=t,n=r.computed(()=>Object.keys(e.filter).filter(o=>e.filter[o]!==void 0).length);return(o,s)=>{const i=r.resolveComponent("QBadge"),l=r.resolveComponent("QBtn");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["flex items-center transition-all",{"w-72":t.showFilters,"w-[6.5rem]":!t.showFilters}])},[r.createElementVNode("div",l8,[r.createVNode(l,{class:r.normalizeClass(["btn-blue-highlight border-blue-700",{highlighted:t.showFilters}]),onClick:s[0]||(s[0]=a=>o.$emit("update:show-filters",!t.showFilters))},{default:r.withCtx(()=>[r.createVNode(r.unref(Gf),{class:"w-5 mr-2"}),r.createVNode(i,{label:""+n.value,rounded:"",color:n.value>0?"blue-600":"gray-400"},null,8,["label","color"])]),_:1},8,["class"])]),n.value>0&&t.showFilters?(r.openBlock(),r.createElementBlock("a",{key:0,class:"text-blue-600 hover:text-blue-500 text-sm ml-4",onClick:s[1]||(s[1]=a=>o.$emit("update:filter",{}))},"Clear All")):r.createCommentVNode("",!0)],2)}}},[["__scopeId","data-v-a0bc1dac"]]),a8={class:"w-full flex justify-end items-center flex-nowrap border-b"},c8={class:"flex-grow"},u8={key:0,class:"flex justify-end items-stretch flex-nowrap p-4"},d8={__name:"FilterToolbarLayout",props:{filter:{type:Object,default:null},showFilters:Boolean},emits:["update:show-filters","update:filter"],setup(t,{emit:e}){const n=e,o=t;function s(){n("update:show-filters",!o.showFilters)}return(i,l)=>(r.openBlock(),r.createElementBlock("div",a8,[r.createVNode(r.unref(up),{"show-filters":t.showFilters,filter:t.filter,class:"border-r p-4 flex-shrink-0","onUpdate:showFilters":s,"onUpdate:filter":l[0]||(l[0]=a=>i.$emit("update:filter",a))},null,8,["show-filters","filter"]),r.createElementVNode("div",c8,[r.renderSlot(i.$slots,"default")]),i.$slots["right-side"]?(r.openBlock(),r.createElementBlock("div",u8,[i.$slots.default?(r.openBlock(),r.createBlock(r.unref(pe.QSeparator),{key:0,vertical:"",class:"mx-4 h-10 self-center"})):r.createCommentVNode("",!0),r.renderSlot(i.$slots,"right-side")])):r.createCommentVNode("",!0)]))}},dp=tt(r.defineComponent({__name:"PanelsDrawerTabs",props:{modelValue:{default:"general"},target:{},panels:{}},emits:["update:model-value"],setup(t){const e=t;function n(o){return o.enabled===void 0?!0:o.enabled?typeof o.enabled=="function"?o.enabled(e.target):!0:!1}return(o,s)=>{const i=r.resolveComponent("QTabs");return r.openBlock(),r.createBlock(i,{class:r.normalizeClass(["dx-panels-drawer-tabs overflow-y-auto",o.cls["panel-tabs"]]),"model-value":o.modelValue,vertical:"",align:"left","no-caps":"","onUpdate:modelValue":s[0]||(s[0]=l=>o.$emit("update:model-value",l))},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.panels,l=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[n(l)?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[l.tabVnode?(r.openBlock(),r.createBlock(r.unref(vn),{key:l.name,vnode:l.tabVnode(o.target,o.modelValue),"is-active":o.modelValue===l.name,name:l.name,label:l.label},null,8,["vnode","is-active","name","label"])):(r.openBlock(),r.createBlock(r.unref(pe.QTab),{key:l.name,name:l.name,label:l.label},null,8,["name","label"]))],64)):r.createCommentVNode("",!0)],64))),256))]),_:1},8,["model-value","class"])}}}),[["__cssModules",{cls:{container:"_container_1pp8h_1","pointer-events-none":"_pointer-events-none_1pp8h_1","!visible":"_!visible_1pp8h_1",visible:"_visible_1pp8h_1",collapse:"_collapse_1pp8h_231",static:"_static_1pp8h_1",fixed:"_fixed_1pp8h_1",absolute:"_absolute_1pp8h_1",relative:"_relative_1pp8h_1",sticky:"_sticky_1pp8h_1","inset-0":"_inset-0_1pp8h_1","bottom-0":"_bottom-0_1pp8h_1","left-0":"_left-0_1pp8h_1","left-2":"_left-2_1pp8h_1","left-4":"_left-4_1pp8h_1","right-0":"_right-0_1pp8h_1","right-1":"_right-1_1pp8h_1","right-2":"_right-2_1pp8h_1","right-4":"_right-4_1pp8h_1","top-0":"_top-0_1pp8h_1","top-1":"_top-1_1pp8h_1","top-1/2":"_top-1/2_1pp8h_1","top-2":"_top-2_1pp8h_1","z-0":"_z-0_1pp8h_1","z-10":"_z-10_1pp8h_1","z-20":"_z-20_1pp8h_1","z-30":"_z-30_1pp8h_1","m-2":"_m-2_1pp8h_1","m-4":"_m-4_1pp8h_1","m-auto":"_m-auto_1pp8h_1","mx-1":"_mx-1_1pp8h_1","mx-4":"_mx-4_1pp8h_1","mx-auto":"_mx-auto_1pp8h_1","my-2":"_my-2_1pp8h_1","!mr-1":"_!mr-1_1pp8h_1","mb-2":"_mb-2_1pp8h_1","mb-4":"_mb-4_1pp8h_1","ml-1":"_ml-1_1pp8h_1","ml-2":"_ml-2_1pp8h_1","ml-2.5":"_ml-2.5_1pp8h_1","ml-3":"_ml-3_1pp8h_1","ml-4":"_ml-4_1pp8h_1","ml-5":"_ml-5_1pp8h_1","ml-[-.2em]":"_ml-[-.2em]_1pp8h_1","mr-1":"_mr-1_1pp8h_1","mr-2":"_mr-2_1pp8h_1","mr-3":"_mr-3_1pp8h_1","mr-4":"_mr-4_1pp8h_1","mt-1":"_mt-1_1pp8h_1","mt-2":"_mt-2_1pp8h_1","mt-3":"_mt-3_1pp8h_1","mt-4":"_mt-4_1pp8h_1","!block":"_!block_1pp8h_1",block:"_block_1pp8h_1","inline-block":"_inline-block_1pp8h_1",inline:"_inline_1pp8h_1",flex:"_flex_1pp8h_1","!table":"_!table_1pp8h_1",table:"_table_1pp8h_1",grid:"_grid_1pp8h_1",contents:"_contents_1pp8h_1",hidden:"_hidden_1pp8h_1","aspect-square":"_aspect-square_1pp8h_1","h-10":"_h-10_1pp8h_1","h-12":"_h-12_1pp8h_1","h-16":"_h-16_1pp8h_1","h-20":"_h-20_1pp8h_1","h-3":"_h-3_1pp8h_1","h-3.5":"_h-3.5_1pp8h_1","h-3/4":"_h-3/4_1pp8h_1","h-4":"_h-4_1pp8h_1","h-5":"_h-5_1pp8h_1","h-6":"_h-6_1pp8h_1","h-8":"_h-8_1pp8h_1","h-96":"_h-96_1pp8h_1","h-[2.25rem]":"_h-[2.25rem]_1pp8h_1","h-[80vh]":"_h-[80vh]_1pp8h_1","h-full":"_h-full_1pp8h_1","max-h-[80vh]":"_max-h-[80vh]_1pp8h_1","max-h-full":"_max-h-full_1pp8h_1","min-h-0":"_min-h-0_1pp8h_1","min-h-10":"_min-h-10_1pp8h_1","w-10":"_w-10_1pp8h_1","w-16":"_w-16_1pp8h_1","w-2":"_w-2_1pp8h_1","w-2/5":"_w-2/5_1pp8h_1","w-20":"_w-20_1pp8h_1","w-24":"_w-24_1pp8h_1","w-3":"_w-3_1pp8h_1","w-3.5":"_w-3.5_1pp8h_1","w-3/4":"_w-3/4_1pp8h_1","w-3/5":"_w-3/5_1pp8h_1","w-32":"_w-32_1pp8h_1","w-4":"_w-4_1pp8h_1","w-48":"_w-48_1pp8h_1","w-5":"_w-5_1pp8h_1","w-6":"_w-6_1pp8h_1","w-7":"_w-7_1pp8h_1","w-72":"_w-72_1pp8h_1","w-8":"_w-8_1pp8h_1","w-96":"_w-96_1pp8h_1","w-[13.5rem]":"_w-[13.5rem]_1pp8h_1","w-[40%]":"_w-[40%]_1pp8h_1","w-[6.5rem]":"_w-[6.5rem]_1pp8h_1","w-[60vw]":"_w-[60vw]_1pp8h_1","w-[80vw]":"_w-[80vw]_1pp8h_1","w-full":"_w-full_1pp8h_1","!min-w-0":"_!min-w-0_1pp8h_1","min-w-0":"_min-w-0_1pp8h_1","min-w-10":"_min-w-10_1pp8h_1","min-w-96":"_min-w-96_1pp8h_1","min-w-[300px]":"_min-w-[300px]_1pp8h_1","max-w-[400px]":"_max-w-[400px]_1pp8h_1","max-w-[600px]":"_max-w-[600px]_1pp8h_1","max-w-full":"_max-w-full_1pp8h_1","max-w-none":"_max-w-none_1pp8h_1","flex-1":"_flex-1_1pp8h_1","flex-shrink":"_flex-shrink_1pp8h_1","flex-shrink-0":"_flex-shrink-0_1pp8h_1",shrink:"_shrink_1pp8h_1","flex-grow":"_flex-grow_1pp8h_1",grow:"_grow_1pp8h_1","-translate-y-1/2":"_-translate-y-1/2_1pp8h_1","rotate-180":"_rotate-180_1pp8h_1","scale-110":"_scale-110_1pp8h_1",transform:"_transform_1pp8h_1","cursor-ew-resize":"_cursor-ew-resize_1pp8h_1","cursor-move":"_cursor-move_1pp8h_1","cursor-not-allowed":"_cursor-not-allowed_1pp8h_1","cursor-ns-resize":"_cursor-ns-resize_1pp8h_1","cursor-pointer":"_cursor-pointer_1pp8h_1","select-all":"_select-all_1pp8h_1",resize:"_resize_1pp8h_1","grid-cols-3":"_grid-cols-3_1pp8h_1","flex-col":"_flex-col_1pp8h_1","flex-wrap":"_flex-wrap_1pp8h_1","flex-nowrap":"_flex-nowrap_1pp8h_1","items-center":"_items-center_1pp8h_1","items-stretch":"_items-stretch_1pp8h_1","justify-start":"_justify-start_1pp8h_1","justify-end":"_justify-end_1pp8h_1","justify-center":"_justify-center_1pp8h_1","justify-between":"_justify-between_1pp8h_1","gap-1":"_gap-1_1pp8h_1","gap-2":"_gap-2_1pp8h_1","gap-3":"_gap-3_1pp8h_1","gap-x-2":"_gap-x-2_1pp8h_1","gap-x-4":"_gap-x-4_1pp8h_1","gap-y-0":"_gap-y-0_1pp8h_1","gap-y-1":"_gap-y-1_1pp8h_1","space-x-1":"_space-x-1_1pp8h_1","space-x-2":"_space-x-2_1pp8h_1","self-center":"_self-center_1pp8h_1","overflow-auto":"_overflow-auto_1pp8h_1","overflow-hidden":"_overflow-hidden_1pp8h_1","overflow-x-auto":"_overflow-x-auto_1pp8h_1","overflow-y-auto":"_overflow-y-auto_1pp8h_70","overflow-x-hidden":"_overflow-x-hidden_1pp8h_1","overflow-y-hidden":"_overflow-y-hidden_1pp8h_1","scroll-smooth":"_scroll-smooth_1pp8h_1",truncate:"_truncate_1pp8h_1","overflow-ellipsis":"_overflow-ellipsis_1pp8h_1","whitespace-normal":"_whitespace-normal_1pp8h_1","whitespace-nowrap":"_whitespace-nowrap_1pp8h_1","whitespace-pre-wrap":"_whitespace-pre-wrap_1pp8h_1",rounded:"_rounded_1pp8h_1","rounded-2xl":"_rounded-2xl_1pp8h_1","rounded-full":"_rounded-full_1pp8h_1","rounded-lg":"_rounded-lg_1pp8h_1","rounded-md":"_rounded-md_1pp8h_1","rounded-sm":"_rounded-sm_1pp8h_1","!rounded-l-none":"_!rounded-l-none_1pp8h_1","!rounded-r-none":"_!rounded-r-none_1pp8h_1","rounded-b-lg":"_rounded-b-lg_1pp8h_1","rounded-l-lg":"_rounded-l-lg_1pp8h_1","rounded-r-lg":"_rounded-r-lg_1pp8h_1","rounded-t-2xl":"_rounded-t-2xl_1pp8h_1","rounded-t-lg":"_rounded-t-lg_1pp8h_1","rounded-t-md":"_rounded-t-md_1pp8h_1","rounded-br":"_rounded-br_1pp8h_1","rounded-tl":"_rounded-tl_1pp8h_1","!border-0":"_!border-0_1pp8h_1",border:"_border_1pp8h_1","border-2":"_border-2_1pp8h_1","border-b":"_border-b_1pp8h_1","border-l":"_border-l_1pp8h_1","border-l-0":"_border-l-0_1pp8h_1","border-r":"_border-r_1pp8h_1","border-solid":"_border-solid_1pp8h_1","border-dashed":"_border-dashed_1pp8h_1","border-none":"_border-none_1pp8h_1","border-blue-500":"_border-blue-500_1pp8h_1","border-blue-600":"_border-blue-600_1pp8h_1","border-blue-700":"_border-blue-700_1pp8h_1","border-gray-200":"_border-gray-200_1pp8h_1","border-gray-300":"_border-gray-300_1pp8h_1","border-purple-500":"_border-purple-500_1pp8h_1","border-slate-200":"_border-slate-200_1pp8h_1","border-slate-700":"_border-slate-700_1pp8h_1","border-transparent":"_border-transparent_1pp8h_1","bg-amber-300":"_bg-amber-300_1pp8h_1","bg-amber-950":"_bg-amber-950_1pp8h_1","bg-black":"_bg-black_1pp8h_1","bg-blue-200":"_bg-blue-200_1pp8h_1","bg-blue-300":"_bg-blue-300_1pp8h_1","bg-blue-600":"_bg-blue-600_1pp8h_1","bg-blue-900":"_bg-blue-900_1pp8h_1","bg-blue-950":"_bg-blue-950_1pp8h_1","bg-cyan-950":"_bg-cyan-950_1pp8h_1","bg-emerald-200":"_bg-emerald-200_1pp8h_1","bg-emerald-950":"_bg-emerald-950_1pp8h_1","bg-fuchsia-950":"_bg-fuchsia-950_1pp8h_1","bg-gray-100":"_bg-gray-100_1pp8h_1","bg-gray-200":"_bg-gray-200_1pp8h_1","bg-gray-400":"_bg-gray-400_1pp8h_1","bg-gray-50":"_bg-gray-50_1pp8h_1","bg-gray-500":"_bg-gray-500_1pp8h_1","bg-gray-800":"_bg-gray-800_1pp8h_1","bg-green-200":"_bg-green-200_1pp8h_1","bg-green-300":"_bg-green-300_1pp8h_1","bg-green-900":"_bg-green-900_1pp8h_1","bg-green-950":"_bg-green-950_1pp8h_1","bg-indigo-950":"_bg-indigo-950_1pp8h_1","bg-lime-300":"_bg-lime-300_1pp8h_1","bg-lime-950":"_bg-lime-950_1pp8h_1","bg-orange-900":"_bg-orange-900_1pp8h_1","bg-orange-950":"_bg-orange-950_1pp8h_1","bg-purple-700":"_bg-purple-700_1pp8h_1","bg-purple-900":"_bg-purple-900_1pp8h_1","bg-purple-950":"_bg-purple-950_1pp8h_1","bg-red-200":"_bg-red-200_1pp8h_1","bg-red-300":"_bg-red-300_1pp8h_1","bg-red-900":"_bg-red-900_1pp8h_1","bg-red-950":"_bg-red-950_1pp8h_1","bg-rose-950":"_bg-rose-950_1pp8h_1","bg-sky-300":"_bg-sky-300_1pp8h_1","bg-sky-50":"_bg-sky-50_1pp8h_1","bg-sky-800":"_bg-sky-800_1pp8h_1","bg-sky-900":"_bg-sky-900_1pp8h_1","bg-sky-950":"_bg-sky-950_1pp8h_1","bg-slate-100":"_bg-slate-100_1pp8h_1","bg-slate-300":"_bg-slate-300_1pp8h_1","bg-slate-400":"_bg-slate-400_1pp8h_1","bg-slate-500":"_bg-slate-500_1pp8h_1","bg-slate-600":"_bg-slate-600_1pp8h_1","bg-slate-700":"_bg-slate-700_1pp8h_1","bg-slate-800":"_bg-slate-800_1pp8h_1","bg-slate-900":"_bg-slate-900_1pp8h_1","bg-slate-950":"_bg-slate-950_1pp8h_1","bg-teal-200":"_bg-teal-200_1pp8h_1","bg-teal-500":"_bg-teal-500_1pp8h_1","bg-teal-950":"_bg-teal-950_1pp8h_1","bg-transparent":"_bg-transparent_1pp8h_1","bg-violet-950":"_bg-violet-950_1pp8h_1","bg-white":"_bg-white_1pp8h_1","bg-yellow-300":"_bg-yellow-300_1pp8h_1","bg-yellow-800":"_bg-yellow-800_1pp8h_1","bg-yellow-950":"_bg-yellow-950_1pp8h_1","bg-opacity-70":"_bg-opacity-70_1pp8h_1","bg-opacity-80":"_bg-opacity-80_1pp8h_1","bg-opacity-90":"_bg-opacity-90_1pp8h_1","!bg-none":"_!bg-none_1pp8h_1","object-contain":"_object-contain_1pp8h_1","object-cover":"_object-cover_1pp8h_1","!p-2":"_!p-2_1pp8h_1","p-0":"_p-0_1pp8h_1","p-1":"_p-1_1pp8h_1","p-2":"_p-2_1pp8h_1","p-3":"_p-3_1pp8h_1","p-4":"_p-4_1pp8h_1","p-8":"_p-8_1pp8h_1","!py-0":"_!py-0_1pp8h_1","px-1":"_px-1_1pp8h_1","px-1.5":"_px-1.5_1pp8h_1","px-12":"_px-12_1pp8h_1","px-16":"_px-16_1pp8h_1","px-2":"_px-2_1pp8h_1","px-2.5":"_px-2.5_1pp8h_1","px-3":"_px-3_1pp8h_1","px-4":"_px-4_1pp8h_1","px-6":"_px-6_1pp8h_1","px-8":"_px-8_1pp8h_1","py-0":"_py-0_1pp8h_1","py-0.5":"_py-0.5_1pp8h_1","py-1":"_py-1_1pp8h_1","py-1.5":"_py-1.5_1pp8h_1","py-14":"_py-14_1pp8h_1","py-2":"_py-2_1pp8h_1","py-3":"_py-3_1pp8h_1","py-4":"_py-4_1pp8h_1","py-8":"_py-8_1pp8h_1","pl-1":"_pl-1_1pp8h_1","pt-3":"_pt-3_1pp8h_1","text-left":"_text-left_1pp8h_1","text-center":"_text-center_1pp8h_1","text-[.7rem]":"_text-[.7rem]_1pp8h_1","text-[1rem]":"_text-[1rem]_1pp8h_1","text-base":"_text-base_1pp8h_1","text-lg":"_text-lg_1pp8h_1","text-sm":"_text-sm_1pp8h_1","text-xs":"_text-xs_1pp8h_1","font-bold":"_font-bold_1pp8h_1","font-medium":"_font-medium_1pp8h_1","font-semibold":"_font-semibold_1pp8h_1",uppercase:"_uppercase_1pp8h_1",lowercase:"_lowercase_1pp8h_1",italic:"_italic_1pp8h_1","leading-[1.2rem]":"_leading-[1.2rem]_1pp8h_1","!text-green-900":"_!text-green-900_1pp8h_1","!text-red-900":"_!text-red-900_1pp8h_1","!text-sky-900":"_!text-sky-900_1pp8h_1","!text-white":"_!text-white_1pp8h_1","!text-yellow-900":"_!text-yellow-900_1pp8h_1","text-amber-400":"_text-amber-400_1pp8h_1","text-amber-900":"_text-amber-900_1pp8h_1","text-blue-300":"_text-blue-300_1pp8h_1","text-blue-400":"_text-blue-400_1pp8h_1","text-blue-600":"_text-blue-600_1pp8h_1","text-blue-900":"_text-blue-900_1pp8h_1","text-cyan-400":"_text-cyan-400_1pp8h_1","text-emerald-400":"_text-emerald-400_1pp8h_1","text-fuchsia-400":"_text-fuchsia-400_1pp8h_1","text-gray-300":"_text-gray-300_1pp8h_1","text-gray-400":"_text-gray-400_1pp8h_1","text-gray-500":"_text-gray-500_1pp8h_1","text-gray-600":"_text-gray-600_1pp8h_1","text-gray-700":"_text-gray-700_1pp8h_1","text-gray-900":"_text-gray-900_1pp8h_1","text-green-300":"_text-green-300_1pp8h_1","text-green-400":"_text-green-400_1pp8h_1","text-green-700":"_text-green-700_1pp8h_1","text-green-900":"_text-green-900_1pp8h_1","text-indigo-400":"_text-indigo-400_1pp8h_1","text-lime-400":"_text-lime-400_1pp8h_1","text-lime-900":"_text-lime-900_1pp8h_1","text-orange-400":"_text-orange-400_1pp8h_1","text-purple-200":"_text-purple-200_1pp8h_1","text-purple-300":"_text-purple-300_1pp8h_1","text-purple-400":"_text-purple-400_1pp8h_1","text-red-400":"_text-red-400_1pp8h_1","text-red-500":"_text-red-500_1pp8h_1","text-red-800":"_text-red-800_1pp8h_1","text-red-900":"_text-red-900_1pp8h_1","text-rose-400":"_text-rose-400_1pp8h_1","text-sky-400":"_text-sky-400_1pp8h_1","text-sky-500":"_text-sky-500_1pp8h_1","text-sky-600":"_text-sky-600_1pp8h_1","text-sky-900":"_text-sky-900_1pp8h_1","text-slate-200":"_text-slate-200_1pp8h_1","text-slate-300":"_text-slate-300_1pp8h_1","text-slate-400":"_text-slate-400_1pp8h_1","text-slate-50":"_text-slate-50_1pp8h_1","text-slate-500":"_text-slate-500_1pp8h_1","text-slate-600":"_text-slate-600_1pp8h_1","text-slate-800":"_text-slate-800_1pp8h_1","text-slate-900":"_text-slate-900_1pp8h_1","text-teal-200":"_text-teal-200_1pp8h_1","text-teal-400":"_text-teal-400_1pp8h_1","text-teal-800":"_text-teal-800_1pp8h_1","text-violet-400":"_text-violet-400_1pp8h_1","text-white":"_text-white_1pp8h_1","text-yellow-300":"_text-yellow-300_1pp8h_1","text-yellow-400":"_text-yellow-400_1pp8h_1","text-yellow-600":"_text-yellow-600_1pp8h_1","text-zinc-500":"_text-zinc-500_1pp8h_1","text-zinc-800":"_text-zinc-800_1pp8h_1",underline:"_underline_1pp8h_1","line-through":"_line-through_1pp8h_1","opacity-0":"_opacity-0_1pp8h_1","opacity-100":"_opacity-100_1pp8h_1","opacity-20":"_opacity-20_1pp8h_1","opacity-50":"_opacity-50_1pp8h_1","opacity-60":"_opacity-60_1pp8h_1","opacity-70":"_opacity-70_1pp8h_1","opacity-80":"_opacity-80_1pp8h_1","opacity-90":"_opacity-90_1pp8h_1",shadow:"_shadow_1pp8h_1","shadow-none":"_shadow-none_1pp8h_1","shadow-xl":"_shadow-xl_1pp8h_1","outline-none":"_outline-none_1pp8h_1",outline:"_outline_1pp8h_1","outline-offset-0":"_outline-offset-0_1pp8h_1",blur:"_blur_1pp8h_1",filter:"_filter_1pp8h_1","backdrop-filter":"_backdrop-filter_1pp8h_1",transition:"_transition_1pp8h_1","transition-all":"_transition-all_1pp8h_1","transition-colors":"_transition-colors_1pp8h_1","transition-opacity":"_transition-opacity_1pp8h_1","duration-300":"_duration-300_1pp8h_1","danx-app":"_danx-app_1pp8h_4","q-tab":"_q-tab_1pp8h_4","q-table__card":"_q-table__card_1pp8h_7","q-checkbox__inner":"_q-checkbox__inner_1pp8h_11","q-toolbar":"_q-toolbar_1pp8h_14","q-notification__actions":"_q-notification__actions_1pp8h_19","q-date":"_q-date_1pp8h_22","q-date__view":"_q-date__view_1pp8h_25","q-field":"_q-field_1pp8h_28","q-field--auto-height":"_q-field--auto-height_1pp8h_28","q-field__control":"_q-field__control_1pp8h_28","q-field__native":"_q-field__native_1pp8h_31","q-field--labeled":"_q-field--labeled_1pp8h_35","q-field__control-container":"_q-field__control-container_1pp8h_35","q-textarea":"_q-textarea_1pp8h_38","q-field__marginal":"_q-field__marginal_1pp8h_41","q-field__input":"_q-field__input_1pp8h_41","q-field__label":"_q-field__label_1pp8h_41","q-btn":"_q-btn_1pp8h_48","q-item":"_q-item_1pp8h_56","q-tab-panels":"_q-tab-panels_1pp8h_60","q-panel":"_q-panel_1pp8h_64",scroll:"_scroll_1pp8h_67","dx-dialog":"_dx-dialog_1pp8h_74","q-card__section--vert":"_q-card__section--vert_1pp8h_74","q-banner":"_q-banner_1pp8h_78",app:"_app_1pp8h_1","main-layout":"_main-layout_1pp8h_1","is-disabled":"_is-disabled_1pp8h_95","disable-all-transitions":"_disable-all-transitions_1pp8h_100","v-enter-active":"_v-enter-active_1pp8h_104","v-leave-active":"_v-leave-active_1pp8h_105","v-enter-from":"_v-enter-from_1pp8h_109","v-leave-to":"_v-leave-to_1pp8h_110","dx-scrollbar":"_dx-scrollbar_1pp8h_114","dx-scrollbar-dark":"_dx-scrollbar-dark_1pp8h_157","dx-scrollbar-hidden":"_dx-scrollbar-hidden_1pp8h_199","dx-code-viewer":"_dx-code-viewer_1pp8h_207","is-collapsed":"_is-collapsed_1pp8h_211","code-collapsed":"_code-collapsed_1pp8h_214","code-collapsed-preview":"_code-collapsed-preview_1pp8h_225","collapse-toggle":"_collapse-toggle_1pp8h_231","collapse-header":"_collapse-header_1pp8h_234","code-content":"_code-content_1pp8h_243","is-collapsible":"_is-collapsible_1pp8h_257","code-footer":"_code-footer_1pp8h_267","has-error":"_has-error_1pp8h_273","language-badge":"_language-badge_1pp8h_277","syntax-key":"_syntax-key_1pp8h_284","syntax-string":"_syntax-string_1pp8h_287","syntax-number":"_syntax-number_1pp8h_290","syntax-boolean":"_syntax-boolean_1pp8h_293","syntax-null":"_syntax-null_1pp8h_296","syntax-punctuation":"_syntax-punctuation_1pp8h_299","is-editable":"_is-editable_1pp8h_302","dx-markdown-content":"_dx-markdown-content_1pp8h_316","task-list":"_task-list_1pp8h_406","task-list-item":"_task-list-item_1pp8h_410","footnote-ref":"_footnote-ref_1pp8h_491",footnotes:"_footnotes_1pp8h_499","footnote-list":"_footnote-list_1pp8h_506","footnote-item":"_footnote-item_1pp8h_509","footnote-backref":"_footnote-backref_1pp8h_512","dx-action-table":"_dx-action-table_1pp8h_517","dx-column-shrink":"_dx-column-shrink_1pp8h_517","panel-tabs":"_panel-tabs_1pp8h_521","hover:scale-105":"_hover:scale-105_1pp8h_1","hover:bg-amber-400":"_hover:bg-amber-400_1pp8h_1","hover:bg-blue-200":"_hover:bg-blue-200_1pp8h_1","hover:bg-blue-400":"_hover:bg-blue-400_1pp8h_1","hover:bg-blue-800":"_hover:bg-blue-800_1pp8h_1","hover:bg-gray-200":"_hover:bg-gray-200_1pp8h_1","hover:bg-green-100":"_hover:bg-green-100_1pp8h_1","hover:bg-green-400":"_hover:bg-green-400_1pp8h_1","hover:bg-green-800":"_hover:bg-green-800_1pp8h_1","hover:bg-lime-400":"_hover:bg-lime-400_1pp8h_1","hover:bg-orange-800":"_hover:bg-orange-800_1pp8h_1","hover:bg-purple-600":"_hover:bg-purple-600_1pp8h_1","hover:bg-purple-800":"_hover:bg-purple-800_1pp8h_1","hover:bg-red-100":"_hover:bg-red-100_1pp8h_1","hover:bg-red-200":"_hover:bg-red-200_1pp8h_1","hover:bg-red-400":"_hover:bg-red-400_1pp8h_1","hover:bg-sky-400":"_hover:bg-sky-400_1pp8h_1","hover:bg-sky-800":"_hover:bg-sky-800_1pp8h_1","hover:bg-sky-900":"_hover:bg-sky-900_1pp8h_1","hover:bg-slate-200":"_hover:bg-slate-200_1pp8h_1","hover:bg-slate-300":"_hover:bg-slate-300_1pp8h_1","hover:bg-slate-400":"_hover:bg-slate-400_1pp8h_1","hover:bg-slate-600":"_hover:bg-slate-600_1pp8h_1","hover:bg-slate-700":"_hover:bg-slate-700_1pp8h_1","hover:bg-slate-800":"_hover:bg-slate-800_1pp8h_1","hover:bg-slate-900":"_hover:bg-slate-900_1pp8h_1","hover:bg-teal-400":"_hover:bg-teal-400_1pp8h_1","hover:bg-teal-600":"_hover:bg-teal-600_1pp8h_1","hover:bg-yellow-700":"_hover:bg-yellow-700_1pp8h_1","hover:text-blue-300":"_hover:text-blue-300_1pp8h_1","hover:text-blue-500":"_hover:text-blue-500_1pp8h_1","hover:text-blue-600":"_hover:text-blue-600_1pp8h_1","hover:text-gray-300":"_hover:text-gray-300_1pp8h_1","hover:text-gray-700":"_hover:text-gray-700_1pp8h_1","hover:text-sky-600":"_hover:text-sky-600_1pp8h_1","hover:text-white":"_hover:text-white_1pp8h_1","hover:opacity-100":"_hover:opacity-100_1pp8h_1","hover:opacity-70":"_hover:opacity-70_1pp8h_1","hover:outline-4":"_hover:outline-4_1pp8h_1","focus:bg-blue-200":"_focus:bg-blue-200_1pp8h_1","focus:outline-4":"_focus:outline-4_1pp8h_1","focus:outline-blue-200":"_focus:outline-blue-200_1pp8h_1",group:"_group_1pp8h_1","group-hover:opacity-100":"_group-hover:opacity-100_1pp8h_1"}}]]),f8={class:"dx-panels-drawer-header flex items-center px-6 py-4"},h8={class:"flex-grow"},m8={key:0},p8={key:1},_8={key:0,class:"mr-4"},g8={class:"dx-panels-drawer-body flex-grow overflow-hidden h-full"},b8={key:0,class:"flex items-stretch flex-nowrap h-full"},y8={key:1,class:"border-l overflow-y-auto"},w8={key:1,class:"p-8"},fp=r.defineComponent({__name:"PanelsDrawer",props:{title:{default:""},modelValue:{default:null},target:{},tabsClass:{default:"w-[13.5rem] flex-shrink-0"},panelsClass:{default:"w-full"},drawerClass:{default:""},position:{default:"right"},panels:{},hideTabs:{type:Boolean}},emits:["update:model-value","close"],setup(t){const e=t,n=r.ref(e.modelValue),o=r.computed(()=>e.panels.find(s=>s.name===n.value));return r.watch(()=>e.modelValue,s=>n.value=s),r.onMounted(()=>{!n.value&&e.panels.length&&(n.value=e.panels[0].name)}),(s,i)=>{const l=r.resolveComponent("QSpinnerHourglass"),a=r.resolveComponent("QBtn"),c=r.resolveComponent("QTabPanel"),u=r.resolveComponent("QTabPanels"),d=r.resolveComponent("QSkeleton");return r.openBlock(),r.createBlock(r.unref(xa),{position:s.position,show:"",overlay:"","content-class":"h-full",class:"dx-panels-drawer",title:"","no-route-dismiss":"","onUpdate:show":i[3]||(i[3]=f=>s.$emit("close"))},{default:r.withCtx(()=>{var f;return[r.createElementVNode("div",{class:r.normalizeClass(["flex flex-col flex-nowrap h-full dx-panels-drawer-content",s.drawerClass])},[r.createElementVNode("div",f8,[r.createElementVNode("div",h8,[r.renderSlot(s.$slots,"header",{},()=>[s.title?(r.openBlock(),r.createElementBlock("h2",m8,r.toDisplayString(s.title),1)):r.createCommentVNode("",!0),s.target?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",p8,[i[4]||(i[4]=r.createTextVNode(" Loading ")),r.createVNode(l)]))])]),s.$slots.controls?(r.openBlock(),r.createElementBlock("div",_8,[r.renderSlot(s.$slots,"controls")])):r.createCommentVNode("",!0),r.createElementVNode("div",null,[r.createVNode(a,{class:"dx-close-button",onClick:i[0]||(i[0]=h=>s.$emit("close"))},{default:r.withCtx(()=>[r.createVNode(r.unref(ko),{class:"w-4"})]),_:1})])]),r.createElementVNode("div",g8,[s.target.__timestamp>0?(r.openBlock(),r.createElementBlock("div",b8,[s.hideTabs?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(dp),{key:"pd-tabs:"+s.target.id,modelValue:n.value,"onUpdate:modelValue":[i[1]||(i[1]=h=>n.value=h),i[2]||(i[2]=h=>s.$emit("update:model-value",h))],target:s.target,class:r.normalizeClass(s.tabsClass),panels:s.panels},null,8,["modelValue","target","class","panels"])),(r.openBlock(),r.createBlock(u,{key:"pd-panels:"+s.target.id,"model-value":n.value,class:r.normalizeClass([((f=o.value)==null?void 0:f.class)||s.panelsClass,"dx-panels-drawer-panels overflow-y-auto h-full transition-all"])},{default:r.withCtx(()=>[r.renderSlot(s.$slots,"panels",{activePanel:n.value},()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.panels,h=>(r.openBlock(),r.createBlock(c,{key:h.name,name:h.name},{default:r.withCtx(()=>[h.vnode?(r.openBlock(),r.createBlock(r.unref(vn),{key:0,vnode:h.vnode,props:s.target},null,8,["vnode","props"])):r.createCommentVNode("",!0)]),_:2},1032,["name"]))),128))])]),_:3},8,["model-value","class"])),s.$slots["right-sidebar"]?(r.openBlock(),r.createElementBlock("div",y8,[r.renderSlot(s.$slots,"right-sidebar")])):r.createCommentVNode("",!0)])):(r.openBlock(),r.createElementBlock("div",w8,[r.createVNode(d,{class:"h-96"})]))])],2)]}),_:3},8,["position"])}}}),k8={class:"flex items-center justify-center text-sm py-14 w-full"},x8={key:0},C8={key:1},hp={__name:"EmptyTableState",props:{loading:Boolean,saving:Boolean,text:{type:String,default:"No records found"},loadingText:{type:String,default:"Loading..."},savingText:{type:String,default:"Saving..."}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",k8,[t.loading?(r.openBlock(),r.createElementBlock("div",x8,[r.renderSlot(e.$slots,"loading",{},()=>[r.createTextVNode(r.toDisplayString(t.loadingText)+" ",1),r.createVNode(r.unref(pe.QSpinnerBall),{class:"w-4 ml-2"})])])):r.createCommentVNode("",!0),t.saving?(r.openBlock(),r.createElementBlock("div",C8,[r.renderSlot(e.$slots,"saving",{},()=>[r.createTextVNode(r.toDisplayString(t.savingText)+" ",1),r.createVNode(r.unref(pe.QSpinnerBall),{class:"w-4 ml-2"})])])):r.createCommentVNode("",!0),r.renderSlot(e.$slots,"default",{},()=>[r.createTextVNode(r.toDisplayString(t.text),1)])]))}},S8={class:"flex flex-nowrap items-center"},E8={class:"relative"},T8={class:"ml-2"},mp=r.defineComponent({__name:"TableSummaryRow",props:{loading:{type:Boolean},label:{default:"Rows"},selectedLabel:{default:"Selected"},selectedCount:{default:0},itemCount:{default:0},summary:{default:null},columns:{},stickyColspan:{default:null}},emits:["clear"],setup(t){const e=t,n=r.computed(()=>{if(e.stickyColspan)return e.stickyColspan;if(e.summary)for(let i=0;i<e.columns.length;i++){const l=e.columns[i].field||e.columns[i].name;if(e.summary[l])return i+1}return e.columns.length+1}),o=r.computed(()=>e.columns.slice(n.value-1));function s(i){const l=e.summary&&e.summary[i.name];return l===void 0?"":i.format?i.format(l):l}return(i,l)=>(r.openBlock(),r.createBlock(r.unref(pe.QTr),{class:r.normalizeClass(["dx-table-summary-tr sticky-column-1 transition-all sticky-row",{"has-selection":i.selectedCount,"is-loading":i.loading}])},{default:r.withCtx(()=>[r.createVNode(r.unref(pe.QTd),{colspan:n.value,class:r.normalizeClass(["dx-table-summary-td dx-table-summary-count transition-all",{"has-selection":i.selectedCount}])},{default:r.withCtx(()=>[r.createElementVNode("div",S8,[r.createElementVNode("div",E8,[i.loading?(r.openBlock(),r.createBlock(r.unref(pe.QSpinner),{key:0,class:"absolute top-0 left-0",size:"18"})):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass([{"opacity-0":i.loading},"flex items-center nowrap"])},[i.selectedCount?(r.openBlock(),r.createBlock(r.unref(ly),{key:0,class:"w-6 mr-3 cursor-pointer",onClick:l[0]||(l[0]=a=>i.$emit("clear"))})):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(r.unref(Jt)(i.selectedCount||i.itemCount)),1)],2)]),r.createElementVNode("div",T8,r.toDisplayString(i.selectedCount?i.selectedLabel:i.label),1)])]),_:1},8,["colspan","class"]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value,a=>(r.openBlock(),r.createBlock(r.unref(pe.QTd),{key:a.name,align:a.align||"right",class:r.normalizeClass([a.summaryClass,"dx-table-summary-fd"])},{default:r.withCtx(()=>[i.summary?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass({"dx-summary-column-link":a.onClick})},r.toDisplayString(s(a)),3)):r.createCommentVNode("",!0)]),_:2},1032,["align","class"]))),128))]),_:1},8,["class"]))}}),pp=tt(r.defineComponent({__name:"ActionTable",props:{name:{},label:{},color:{default:""},selectedRows:{},pagination:{},loadingList:{type:Boolean},loadingSummary:{type:Boolean,default:!1},pagedItems:{default:null},summary:{default:null},menuActions:{},columns:{},rowsPerPageOptions:{default:()=>[10,25,50,100]},summaryColSpan:{default:null},selection:{default:void 0}},emits:["update:selected-rows","update:pagination"],setup(t){const e=t,n=r.ref(null);rp(n);const o=r.computed(()=>{var u;const c=[...e.columns].map(d=>({...d,field:d.field||d.name}));if((u=e.menuActions)!=null&&u.length){const d=c.find(h=>h.name==="menu"),f={name:"menu",label:"",required:!0,hideContent:!0,shrink:!0,actionMenu:e.menuActions};d?Object.assign(d,f):c.unshift(f)}return c}),s=r.computed(()=>{var c,u;return(u=(c=e.pagedItems)==null?void 0:c.data)==null?void 0:u.length}),i=`column-settings-${e.name}`,l=r.ref(Ft(i)||{});function a(){Lt(i,l.value)}return(c,u)=>{var d;return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["dx-action-table overflow-hidden",{"dx-no-data":!s.value,"dx-is-loading":c.loadingList||c.loadingSummary,"dx-is-loading-list":c.loadingList}])},[r.createVNode(r.unref(pe.QTable),{ref_key:"actionTable",ref:n,selected:c.selectedRows||[],pagination:c.pagination,columns:o.value,loading:c.loadingList||c.loadingSummary,rows:((d=c.pagedItems)==null?void 0:d.data)||[],"binary-state-sort":!1,selection:c.selection,"rows-per-page-options":c.rowsPerPageOptions,class:"sticky-column sticky-header w-full h-full !border-0",color:c.color,"onUpdate:selected":u[2]||(u[2]=f=>c.$emit("update:selected-rows",f)),"onUpdate:pagination":()=>{},onRequest:u[3]||(u[3]=f=>c.$emit("update:pagination",{...f.pagination,__sort:r.unref(sp)(f.pagination,o.value)}))},{"no-data":r.withCtx(()=>[r.renderSlot(c.$slots,"empty",{},()=>[r.createVNode(hp,{text:`There are no ${c.label.toLowerCase()} matching the applied filter`},null,8,["text"])],!0)]),"top-row":r.withCtx(()=>{var f,h;return[s.value?(r.openBlock(),r.createBlock(mp,{key:0,label:c.label,"item-count":((f=c.summary)==null?void 0:f.count)||0,"selected-count":(h=c.selectedRows)==null?void 0:h.length,"sticky-colspan":c.summaryColSpan,loading:c.loadingSummary,summary:c.summary,columns:o.value,onClear:u[0]||(u[0]=m=>c.$emit("update:selected-rows",[]))},null,8,["label","item-count","selected-count","sticky-colspan","loading","summary","columns"])):r.createCommentVNode("",!0)]}),"header-cell":r.withCtx(f=>[r.createVNode(r.unref(np),{modelValue:l.value,"onUpdate:modelValue":[u[1]||(u[1]=h=>l.value=h),a],"row-props":f,name:c.name},null,8,["modelValue","row-props","name"])]),"body-cell":r.withCtx(f=>[(r.openBlock(),r.createBlock(r.unref(Xm),{key:f.key,"row-props":f,settings:l.value[f.col.name]},{default:r.withCtx(()=>[r.renderSlot(c.$slots,"default",{columnName:f.col.name,row:f.row,value:f.value},void 0,!0)]),_:2},1032,["row-props","settings"]))]),_:3},8,["selected","pagination","columns","loading","rows","selection","rows-per-page-options","color"])],2)}}}),[["__scopeId","data-v-a4d0792f"]]),B8={class:"dx-action-toolbar flex items-center"},N8={class:"flex-grow px-6"},$8={key:0},I8={class:"py-3 flex items-center flex-nowrap"},_p=r.defineComponent({__name:"ActionToolbar",props:{title:{},actions:{},actionTarget:{},createButton:{type:Boolean},refreshButton:{type:Boolean},loading:{type:Boolean},exporter:{type:Function}},emits:["refresh","create"],setup(t){return(e,n)=>{const o=r.resolveComponent("QBtn");return r.openBlock(),r.createElementBlock("div",B8,[r.createElementVNode("div",N8,[r.renderSlot(e.$slots,"title",{},()=>[e.title?(r.openBlock(),r.createElementBlock("h4",$8,r.toDisplayString(e.title),1)):r.createCommentVNode("",!0)])]),r.createElementVNode("div",I8,[r.renderSlot(e.$slots,"default"),e.createButton?(r.openBlock(),r.createBlock(o,{key:0,class:"bg-green-900 mr-4 px-4",onClick:n[0]||(n[0]=s=>e.$emit("create"))},{default:r.withCtx(()=>n[2]||(n[2]=[r.createTextVNode(" Create ")])),_:1})):r.createCommentVNode("",!0),e.refreshButton?(r.openBlock(),r.createBlock(r.unref(Fu),{key:1,loading:e.loading,onClick:n[1]||(n[1]=s=>e.$emit("refresh"))},null,8,["loading"])):r.createCommentVNode("",!0),e.exporter?(r.openBlock(),r.createBlock(r.unref(Lu),{key:2,exporter:e.exporter,class:"ml-4"},null,8,["exporter"])):r.createCommentVNode("",!0),e.actions&&e.actions.length>0?(r.openBlock(),r.createBlock(r.unref(uc),{key:3,class:"ml-4 dx-batch-actions",target:e.actionTarget,actions:e.actions},null,8,["target","actions"])):r.createCommentVNode("",!0),r.renderSlot(e.$slots,"after")])])}}}),A8={class:"flex flex-grow flex-col flex-nowrap overflow-hidden h-full"},L8={class:"flex flex-nowrap flex-grow overflow-hidden w-full"},F8=r.defineComponent({__name:"ActionTableLayout",props:{controller:{},exporter:{type:Function,default:void 0},hideToolbar:{type:Boolean},panelTitleField:{default:""},refreshButton:{type:Boolean},createButton:{type:Boolean},selection:{default:"multiple"},showFilters:{type:Boolean},tableClass:{default:""},title:{default:""},drawerClass:{default:""}},setup(t){const e=t,n=r.computed(()=>e.controller.activeFilter.value),o=r.computed(()=>e.controller.activeItem.value),s=r.computed(()=>e.controller.activePanel.value||""),i=r.computed(()=>o.value?o.value[e.panelTitleField||"title"]||o.value.label||o.value.name||e.title+" "+o.value.id:null);return(l,a)=>(r.openBlock(),r.createElementBlock("div",A8,[r.renderSlot(l.$slots,"top"),r.renderSlot(l.$slots,"toolbar",{},()=>[l.hideToolbar?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(_p),{key:0,title:l.title,"refresh-button":l.refreshButton,"create-button":l.createButton,actions:l.controller.batchActions,"action-target":l.controller.selectedRows.value,exporter:l.controller.exportList,loading:l.controller.isLoadingList.value||l.controller.isLoadingSummary.value,onRefresh:l.controller.refreshAll,onCreate:a[0]||(a[0]=c=>l.controller.action&&l.controller.action("create"))},{default:r.withCtx(()=>[r.renderSlot(l.$slots,"action-toolbar")]),_:3},8,["title","refresh-button","create-button","actions","action-target","exporter","loading","onRefresh"]))]),r.createElementVNode("div",L8,[r.renderSlot(l.$slots,"filters",{},()=>{var c;return[n.value?(r.openBlock(),r.createBlock(r.unref(cp),{key:0,name:l.controller.name,"show-filters":l.showFilters,filters:(c=l.controller.filters)==null?void 0:c.value,"active-filter":n.value,class:"dx-action-table-filters","onUpdate:activeFilter":l.controller.setActiveFilter},null,8,["name","show-filters","filters","active-filter","onUpdate:activeFilter"])):r.createCommentVNode("",!0)]}),r.renderSlot(l.$slots,"default",{},()=>[r.createVNode(pp,{class:r.normalizeClass(["flex-grow",l.tableClass]),pagination:l.controller.pagination.value,"selected-rows":l.controller.selectedRows.value,label:l.controller.label,name:l.controller.name,"menu-actions":l.controller.menuActions,summary:l.controller.summary.value,"loading-list":l.controller.isLoadingList.value,"loading-summary":l.controller.isLoadingSummary.value,"paged-items":l.controller.pagedItems.value,columns:l.controller.columns||[],selection:l.selection,"onUpdate:selectedRows":l.controller.setSelectedRows,"onUpdate:pagination":l.controller.setPagination},null,8,["pagination","selected-rows","label","name","class","menu-actions","summary","loading-list","loading-summary","paged-items","columns","selection","onUpdate:selectedRows","onUpdate:pagination"])]),r.renderSlot(l.$slots,"panels",{},()=>[o.value&&l.controller.panels?(r.openBlock(),r.createBlock(r.unref(fp),{key:0,title:i.value,"model-value":s.value,target:o.value,panels:l.controller.panels,"drawer-class":l.drawerClass,"onUpdate:modelValue":a[1]||(a[1]=c=>l.controller.activatePanel(o.value,c)),onClose:a[2]||(a[2]=c=>l.controller.setActiveItem(null))},{controls:r.withCtx(()=>[r.createVNode(r.unref(eh),{"is-loading":l.controller.isLoadingList.value,onNext:l.controller.getNextItem},null,8,["is-loading","onNext"])]),_:1},8,["title","model-value","target","panels","drawer-class"])):r.createCommentVNode("",!0)])])]))}});function M8(t,e){const n=`${t}-column-order`,o=`${t}-visible-columns`,s=`${t}-title-columns`,i=r.ref(Ft(n)||[]),l=r.ref(Ft(o,[])),a=r.ref(Ft(s,[])),c=r.computed(()=>u.value.slice(0,1)),u=r.computed(()=>[...e].sort((m,g)=>{const p=i.value.indexOf(m.name),_=i.value.indexOf(g.name);return p===-1?1:_===-1?-1:p-_})),d=r.computed({get(){return u.value.slice(1)},set(m){i.value=[...c.value.map(g=>g.name),...m.map(g=>g.name)],Lt(n,i.value)}}),f=r.computed(()=>u.value.filter(m=>!l.value.includes(m.name))),h=r.computed(()=>u.value.filter(m=>a.value.includes(m.name)));return r.watch(()=>l.value,()=>Lt(o,l.value)),r.watch(()=>a.value,()=>Lt(s,a.value)),{sortableColumns:d,lockedColumns:c,visibleColumns:f,hiddenColumnNames:l,titleColumnNames:a,orderedTitleColumns:h}}const O8={class:"flex space-x-2"},D8=["innerHTML"],mc={__name:"AuditHistoryItemValue",props:{type:{type:String,required:!0},value:{type:[Number,String,Array,Object,Boolean],default:null}},setup(t){const e=t;function n(o){if(o===null||o===""||o===void 0)return"";switch(e.type){case"NUMBER":return Jt(o);case"CURRENCY":return Ni(o);case"DATE":return zt(o);case"DATETIME":return Go(o);case"BOOLEAN":return o?"Yes":"No"}return o}return(o,s)=>(r.openBlock(),r.createElementBlock("div",O8,[t.type==="SINGLE_FILE"?(r.openBlock(),r.createBlock(r.unref(Cr),{key:0,file:t.value,class:"w-24"},null,8,["file"])):t.type==="MULTI_FILE"?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(t.value,i=>(r.openBlock(),r.createBlock(r.unref(Cr),{key:"file-"+i.id,file:i,class:"w-24 mb-2"},null,8,["file"]))),128)):t.type==="WYSIWYG"?(r.openBlock(),r.createElementBlock("div",{key:2,innerHTML:t.value},null,8,D8)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:3},[r.createTextVNode(r.toDisplayString(n(t.value)),1)],64))]))}},v8={class:"text-gray-700 flex items-stretch flex-nowrap p-4"},V8={class:"flex-grow text-sm w-3/5 overflow-auto"},P8={class:"flex flex-nowrap items-center mt-4"},R8={class:"bg-red-200 line-through p-2"},U8={class:"bg-emerald-200 ml-2.5 p-2"},z8={class:"ml-4 text-sm w-2/5"},H8=["href"],q8={__name:"AuditHistoryItem",props:{item:{type:Object,required:!0},change:{type:Object,required:!0},novaUrl:{type:String,default:"/nova"}},setup(t){const e=t,n=r.computed(()=>e.novaUrl+`/resources/audit-requests/${e.item.audit_request_id}`);return(o,s)=>(r.openBlock(),r.createElementBlock("div",v8,[r.createElementVNode("div",V8,[r.createElementVNode("h5",null,r.toDisplayString(t.change.label)+" ("+r.toDisplayString(t.change.name)+")",1),r.createElementVNode("div",P8,[r.createElementVNode("div",R8,[r.createVNode(r.unref(mc),{type:t.change.type,value:t.change.oldValue},null,8,["type","value"])]),r.createElementVNode("div",U8,[r.createVNode(r.unref(mc),{type:t.change.type,value:t.change.newValue},null,8,["type","value"])])])]),r.createElementVNode("div",z8,[t.item.user?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",null,r.toDisplayString(t.item.user.name),1),r.createElementVNode("div",null,r.toDisplayString(t.item.user.email),1)],64)):r.createCommentVNode("",!0),r.createElementVNode("div",null,r.toDisplayString(t.item.account),1),r.createElementVNode("div",null,[t.item.audit_request_id?(r.openBlock(),r.createElementBlock("a",{key:0,href:n.value,target:"_blank"},r.toDisplayString(r.unref(Go)(t.item.timestamp)),9,H8)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(r.unref(Go)(t.item.timestamp)),1)],64))])])]))}},W8=["href","target","onClick"],j8={key:0,class:"flex-shrink-0"},G8={__name:"NavigationMenu",props:{collapsed:Boolean,itemClass:{type:String,default:"hover:bg-gray-200"},activeClass:{type:String,default:"bg-blue-200"},items:{type:Array,required:!0}},setup(t){const e=t,n=fe.value.router,o=r.computed(()=>e.items.filter(a=>!a.hidden));function s(a){if(!n){console.error("Router is not available. Configure in danx options.");return}return typeof a.route=="function"?a.route():a.route}function i(a,c){!c.url&&!a.ctrlKey&&a.preventDefault(),!(c.disabled||a.ctrlKey)&&(c.onClick&&c.onClick(),c.route&&n.push(s(c)))}function l(a){var c;return a.url?a.url:a.route&&((c=n.resolve(s(a)))==null?void 0:c.href)||"#"}return(a,c)=>{const u=r.resolveComponent("QTooltip"),d=r.resolveComponent("QSeparator");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["p-4",{"is-collapsed":t.collapsed}])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value,f=>(r.openBlock(),r.createElementBlock("div",{key:"nav-item-"+f.label,class:"nav-menu-item-box"},[r.createElementVNode("a",{class:r.normalizeClass(["nav-menu-item flex flex-nowrap",f.class||t.itemClass]),href:l(f),target:f.target||"_self",onClick:h=>i(h,f)},[f.icon?(r.openBlock(),r.createElementBlock("div",j8,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(f.icon),{class:r.normalizeClass(["nav-icon",f.iconClass])},null,8,["class"]))])):r.createCommentVNode("",!0),t.collapsed?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(["label ml-2",f.labelClass])},r.toDisplayString(f.label),3)),t.collapsed?(r.openBlock(),r.createBlock(u,r.mergeProps({key:2,ref_for:!0},f.tooltip),{default:r.withCtx(()=>{var h;return[r.createTextVNode(r.toDisplayString(((h=f.tooltip)==null?void 0:h.text)||f.label),1)]}),_:2},1040)):r.createCommentVNode("",!0)],10,W8),f.separator?(r.openBlock(),r.createBlock(d,{key:"separator-"+f.label,class:"my-2"})):r.createCommentVNode("",!0)]))),128))],2)}}},Oe=class Oe{static enable(e){Oe.success(e.successMsg),Oe.error(e.errorMsg),Oe.warning(e.warningMsg),r.watch(()=>e.successMsg,n=>Oe.success(n)),r.watch(()=>e.infoMsg,n=>Oe.info(n)),r.watch(()=>e.errorMsg,n=>Oe.error(n)),r.watch(()=>e.warningMsg,n=>Oe.warning(n))}static formatMessage(e){return e=e.replace(/\r\n|\r|\n/g,"<br/>"),e=e.replace(/\t/g," "),e.replace(/<(\w+)([^>]*)>/g,"<b>$1$2</b>")}static send(e,n={}){var o;e&&(e=Oe.formatMessage(e),Oe.notify({message:e,timeout:1e4,classes:"bg-gray-500 text-white",position:"top",closeBtn:"X",...(o=fe.value.flashMessages)==null?void 0:o.default,...n}))}static success(e,n={}){var o;Oe.send(e,{classes:"bg-green-300 !text-green-900",icon:"check",...n,...(o=fe.value.flashMessages)==null?void 0:o.success})}static info(e,n={}){var o;Oe.send(e,{classes:"bg-sky-300 !text-sky-900",icon:"info",...n,...(o=fe.value.flashMessages)==null?void 0:o.info})}static error(e,n={}){var o;Oe.send(e,{classes:"bg-red-300 !text-red-900",icon:"error",...n,...(o=fe.value.flashMessages)==null?void 0:o.error})}static warning(e,n={}){var o;Oe.send(e,{classes:"bg-yellow-300 !text-yellow-900",icon:"warning",...n,...(o=fe.value.flashMessages)==null?void 0:o.warning})}static combine(e,n,o={}){const s=Oe[e];if(typeof s!="function")throw new Error(`FlashMessages.${e} is not a function`);s(n.map(i=>typeof i=="string"?i:i.message||i.Message).join("<br/>"),{...o,html:!0})}};Oe.PROP_DEFINITIONS={successMsg:{type:String,default:""},infoMsg:{type:String,default:""},errorMsg:{type:String,default:""},warningMsg:{type:String,default:""}};let et=Oe;const K8=new et,pc=new Map;function gp(t){for(const e in t)t[e]&&typeof t[e]=="object"&&(t[e]=ye(t[e]));return t}function ye(t,e={}){if(typeof t!="object")return t;const n=(t==null?void 0:t.id)||(t==null?void 0:t.name),o=t==null?void 0:t.__type;if(!n||!o){const a=r.shallowReactive(t);return ii(t,e,a),a}t.__id||(t.__id=pe.uid()),t.__timestamp||(t.__timestamp=t.updated_at||0);const s=`${o}:${n}`;if(e[s])return e[s];const i=pc.get(s);if(!_c(t,i))return e[s]=i,ii(t,e,i),i;const l=i||r.shallowReactive(t);return e[s]=l,ii(t,e),Object.assign(l,t),i||pc.set(s,l),l.__deleted_at&&Z8(l),l}function ii(t,e={},n=null){n=n||t;for(const o of Object.keys(t)){const s=t[o];if(Array.isArray(s))for(const i in s)s[i]&&typeof s[i]=="object"&&(n[o]||(n[o]=[]),n[o][i]=ye(s[i],e));else s!=null&&s.__type?n[o]=ye(s,e):s&&typeof s=="object"&&ii(s,e,n[o])}}function _c(t,e){if(!t.__timestamp||!(e!=null&&e.__timestamp)||t.__timestamp>e.__timestamp)return!0;for(const n of Object.keys(t)){const o=t[n],s=e[n];if(!(s!=null&&s.__timestamp))return!0;if(Array.isArray(o)&&o.length>0){for(const i of o)if(i!=null&&i.__type){const l=s.find(a=>a.id===i.id&&a.__type===i.__type);if(!(l!=null&&l.__timestamp)||_c(i,l))return!0}}else if(o!=null&&o.__type&&_c(o,s))return!0}return!1}function Z8(t){for(const e of pc.values())for(const n of Object.keys(e)){const o=e[n];if(Array.isArray(o)&&o.length>0){const s=o.findIndex(i=>i.__id===t.__id&&i.__type===t.__type);s!==-1&&(o.splice(s,1),e[n]=[...o])}}}const bp={};async function yp(t,e,n,o,s=3e3){if(wp(t),!(e!=null&&e.id)||!(e!=null&&e.__type))throw new Error("Invalid stored object. Cannot auto-refresh");if(n(e)){const i=await o(e);if(!i.id)return et.error(`Failed to refresh ${e.__type} (${e.id}) status: `+e.name),null;ye(i)}bp[t]=setTimeout(()=>yp(t,e,n,o,s),s)}function wp(t){const e=bp[t];e&&clearTimeout(e)}const Kn=r.shallowRef(null);function Y8(t,e=null){const n=pe.uid();function o(c,u,d){const h={...i(c),...d,id:u};return h.debounce?h.trigger=nn((m,g)=>a(h,m,g),h.debounce):h.trigger=(m,g)=>a(h,m,g),ye(h)}function s(c,u){const d=i(c);return ye({...d,...u})}function i(c,u){var h,m,g;const d=t.find(p=>p.name===c)||{name:c},f=ye({onAction:(h=e==null?void 0:e.routes)==null?void 0:h.applyAction,onBatchAction:(m=e==null?void 0:e.routes)==null?void 0:m.batchAction,onBatchSuccess:(g=e==null?void 0:e.controls)==null?void 0:g.clearSelectedRows,...d,...u,isApplying:!1,__type:"__Action:"+n});return f.debounce?f.trigger=nn((p,_)=>a(f,p,_),f.debounce):f.trigger=(p,_)=>a(f,p,_),f}function l(c){const u=[];for(const d of c)u.push(i(d));return u}async function a(c,u=null,d=null){var g;typeof c=="string"&&(c=i(c));const f=c.alias?i(c.alias):null,h=c.vnode&&c.vnode(u,d);let m;if(!(c.onStart&&!c.onStart(c,u,d)))return kp(u,!0),c.isApplying=!0,f&&(f.isApplying=!0),h?(m=await new Promise(p=>{Kn.value={vnode:h,confirm:async _=>{let b;c.useInputFromConfirm===!1?b=d:c.useInputFromConfirm===!0?b=_:b={...d,..._};const y=await xp(c,u,b);(y===void 0||y===!0||y!=null&&y.success)&&p(y)},cancel:p}}),Kn.value=null):m=await xp(c,u,d),m!=null&&m.abort||(c.isApplying=!1,kp(u,!1),f&&(f.isApplying=!1),m!=null&&m.item&&(m.item=ye(m.item)),(g=m==null?void 0:m.result)!=null&&g.__type&&(m.result=ye(m.result))),m}return{getAction:i,getActions:l,action:a,modifyAction:s,extendAction:o}}function kp(t,e){if(t){t=Array.isArray(t)?t:[t];for(const n of t)n.isSaving=e}}async function xp(t,e,n=null){if(!t.onAction)throw new Error("No onAction handler found for the selected action:"+t.name);const o=Array.isArray(e);let s;try{if(o)t.onBatchAction?s=await t.onBatchAction(t.alias||t.name,e,n):s={error:`Action ${t.name} does not support batch actions`};else{const i=Date.now();t.optimisticDelete&&ye({...e,__deleted_at:new Date().toISOString(),__timestamp:i}),typeof t.optimistic=="function"?(t.optimistic(t,e,n),ye({...e,__timestamp:i})):t.optimistic&&ye({...e,...n,__timestamp:i}),s=await t.onAction(t.alias||t.name,e,n)}}catch(i){(""+i).match(/Request was aborted/)?s={abort:!0}:(console.error(i),s={error:`An error occurred while performing the action ${t.label}. Please try again later.`})}if(s!=null&&s.abort)return s;if(s===void 0||s===!0||s!=null&&s.success)s&&s.item&&(s.item=ye(s.item)),s!=null&&s.success&&Array.isArray(e)&&et.success(`Successfully performed action ${t.label} on ${e.length} items`),t.onSuccess&&await t.onSuccess(s,e,n),o&&t.onBatchSuccess&&await t.onBatchSuccess(s,e,n);else{const i=[];if(s.errors)i.push(...s.errors);else if(s.error){let l=s.error;typeof s.error=="boolean"?l=s.message:typeof s.error=="object"?l=s.error.message:typeof s.error!="string"&&(l="An unknown error occurred. Please try again later."),i.push(l)}else i.push("An unexpected error occurred. Please try again later.");et.combine("error",i),t.onError&&await t.onError(s,e,n)}return t.onFinish&&await t.onFinish(s,e,n),s}function Q8(t,e){return[{name:"create"},{name:"create-with-name",alias:"create",label:"Create "+t,vnode:()=>r.h(lh,{title:"Create "+t}),onFinish:e&&(n=>{e.activatePanel(n.item,"edit"),e.loadListAndSummary()})},{name:"update",optimistic:!0},{name:"update-debounced",alias:"update",debounce:1e3,optimistic:!0},{name:"copy",label:"Copy",icon:Tu,onSuccess:e==null?void 0:e.loadListAndSummary},{name:"edit",label:"Edit",icon:Bn,onAction:(n,o)=>e==null?void 0:e.activatePanel(o,"edit")},{name:"delete"},{name:"delete-with-confirm",alias:"delete",label:"Delete",class:"text-red-500",iconClass:"text-red-500",icon:$u,onFinish:e==null?void 0:e.loadListAndSummary,vnode:n=>r.h(ih,{action:"Delete",label:t,target:n,confirmClass:"bg-red-900"})}]}function X8(t){const e=r.shallowRef([]),n=r.ref(!1),o=r.ref(!1);async function s(){o.value||(await i(),o.value=!0)}async function i(){n.value||(n.value=!0,e.value=(await t.list({sort:[{column:"name"}]})).data||[],n.value=!1)}return{listItems:e,isRefreshing:n,hasLoadedItems:o,loadItems:s,refreshItems:i}}let Cp=!1;function J8(t){if(Cp)return;Cp=!0;const e=document.createElement("iframe");e.style.display="none",e.src=window.location.href,document.body.appendChild(e),e.onload=()=>{document.body.removeChild(e),t()}}function gc(t,e,n=void 0,o=!1){const s=typeof e=="function"?t.findIndex(e):t.indexOf(e);if(s===!1||s===-1)return o?[...t,n]:t;const i=[...t];return n!==void 0?i.splice(s,1,n):i.splice(s,1),i}function Vr(t,e){return gc(t,e)}function Sp(t,e){return t.filter((n,o,s)=>o===s.findIndex(i=>e(n,i)))}let Ep=!1,Tp=!1,Pr=null,gn=null,li=null;function Bp(t=!0){if(!Ep&&t){const{coords:i,error:l,locatedAt:a}=hg();Pr=l,gn=a,li=i,Ep=!0}const e="geolocation"in navigator,n=r.computed(()=>gn!=null&&gn.value?li==null?void 0:li.value:null),o=r.computed(()=>!(Pr!=null&&Pr.value)&&!!(gn!=null&&gn.value));return{isLocationSupported:e,isCompatible:o,geolocationError:Pr,hasLocation:gn,location:n,waitForLocation:async(i=3e3)=>{if(Tp)return n;Tp=!0;let l=0;for(;!n.value;)if(await Cs(100),l+=100,l>i)return null;return n}}}class Zn extends Error{}class eT extends Zn{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class tT extends Zn{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class nT extends Zn{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Oo extends Zn{}class Np extends Zn{constructor(e){super(`Invalid unit ${e}`)}}class Pe extends Zn{}class bn extends Zn{constructor(){super("Zone is an abstract class")}}const z="numeric",Bt="short",at="long",ai={year:z,month:z,day:z},$p={year:z,month:Bt,day:z},oT={year:z,month:Bt,day:z,weekday:Bt},Ip={year:z,month:at,day:z},Ap={year:z,month:at,day:z,weekday:at},Lp={hour:z,minute:z},Fp={hour:z,minute:z,second:z},Mp={hour:z,minute:z,second:z,timeZoneName:Bt},Op={hour:z,minute:z,second:z,timeZoneName:at},Dp={hour:z,minute:z,hourCycle:"h23"},vp={hour:z,minute:z,second:z,hourCycle:"h23"},Vp={hour:z,minute:z,second:z,hourCycle:"h23",timeZoneName:Bt},Pp={hour:z,minute:z,second:z,hourCycle:"h23",timeZoneName:at},Rp={year:z,month:z,day:z,hour:z,minute:z},Up={year:z,month:z,day:z,hour:z,minute:z,second:z},zp={year:z,month:Bt,day:z,hour:z,minute:z},Hp={year:z,month:Bt,day:z,hour:z,minute:z,second:z},rT={year:z,month:Bt,day:z,weekday:Bt,hour:z,minute:z},qp={year:z,month:at,day:z,hour:z,minute:z,timeZoneName:Bt},Wp={year:z,month:at,day:z,hour:z,minute:z,second:z,timeZoneName:Bt},jp={year:z,month:at,day:z,weekday:at,hour:z,minute:z,timeZoneName:at},Gp={year:z,month:at,day:z,weekday:at,hour:z,minute:z,second:z,timeZoneName:at};class Rr{get type(){throw new bn}get name(){throw new bn}get ianaName(){return this.name}get isUniversal(){throw new bn}offsetName(e,n){throw new bn}formatOffset(e,n){throw new bn}offset(e){throw new bn}equals(e){throw new bn}get isValid(){throw new bn}}let bc=null;class ci extends Rr{static get instance(){return bc===null&&(bc=new ci),bc}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:o}){return b0(e,n,o)}formatOffset(e,n){return qr(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let ui={};function sT(t){return ui[t]||(ui[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),ui[t]}const iT={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function lT(t,e){const n=t.format(e).replace(/\u200E/g,""),o=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,i,l,a,c,u,d]=o;return[l,s,i,a,c,u,d]}function aT(t,e){const n=t.formatToParts(e),o=[];for(let s=0;s<n.length;s++){const{type:i,value:l}=n[s],a=iT[i];i==="era"?o[a]=l:Y(a)||(o[a]=parseInt(l,10))}return o}let di={};class Ut extends Rr{static create(e){return di[e]||(di[e]=new Ut(e)),di[e]}static resetCache(){di={},ui={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=Ut.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:o}){return b0(e,n,o,this.name)}formatOffset(e,n){return qr(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const o=sT(this.name);let[s,i,l,a,c,u,d]=o.formatToParts?aT(o,n):lT(o,n);a==="BC"&&(s=-Math.abs(s)+1);const h=_i({year:s,month:i,day:l,hour:c===24?0:c,minute:u,second:d,millisecond:0});let m=+n;const g=m%1e3;return m-=g>=0?g:1e3+g,(h-m)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Kp={};function cT(t,e={}){const n=JSON.stringify([t,e]);let o=Kp[n];return o||(o=new Intl.ListFormat(t,e),Kp[n]=o),o}let yc={};function wc(t,e={}){const n=JSON.stringify([t,e]);let o=yc[n];return o||(o=new Intl.DateTimeFormat(t,e),yc[n]=o),o}let kc={};function uT(t,e={}){const n=JSON.stringify([t,e]);let o=kc[n];return o||(o=new Intl.NumberFormat(t,e),kc[n]=o),o}let xc={};function dT(t,e={}){const{base:n,...o}=e,s=JSON.stringify([t,o]);let i=xc[s];return i||(i=new Intl.RelativeTimeFormat(t,e),xc[s]=i),i}let Ur=null;function fT(){return Ur||(Ur=new Intl.DateTimeFormat().resolvedOptions().locale,Ur)}let Zp={};function hT(t){let e=Zp[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,Zp[t]=e}return e}function mT(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let o,s;try{o=wc(t).resolvedOptions(),s=t}catch{const c=t.substring(0,n);o=wc(c).resolvedOptions(),s=c}const{numberingSystem:i,calendar:l}=o;return[s,i,l]}}function pT(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function _T(t){const e=[];for(let n=1;n<=12;n++){const o=q.utc(2009,n,1);e.push(t(o))}return e}function gT(t){const e=[];for(let n=1;n<=7;n++){const o=q.utc(2016,11,13+n);e.push(t(o))}return e}function fi(t,e,n,o){const s=t.listingMode();return s==="error"?null:s==="en"?n(e):o(e)}function bT(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class yT{constructor(e,n,o){this.padTo=o.padTo||0,this.floor=o.floor||!1;const{padTo:s,floor:i,...l}=o;if(!n||Object.keys(l).length>0){const a={useGrouping:!1,...o};o.padTo>0&&(a.minimumIntegerDigits=o.padTo),this.inf=uT(e,a)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):Ic(e,3);return Ne(n,this.padTo)}}}class wT{constructor(e,n,o){this.opts=o,this.originalZone=void 0;let s;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const l=-1*(e.offset/60),a=l>=0?`Etc/GMT+${l}`:`Etc/GMT${l}`;e.offset!==0&&Ut.create(a).valid?(s=a,this.dt=e):(s="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,s=e.zone.name):(s="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||s,this.dtf=wc(n,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const o=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:o}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class kT{constructor(e,n,o){this.opts={style:"long",...o},!n&&m0()&&(this.rtf=dT(e,o))}format(e,n){return this.rtf?this.rtf.format(e,n):qT(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const xT={firstDay:1,minimalDays:4,weekend:[6,7]};class ie{static fromOpts(e){return ie.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,o,s,i=!1){const l=e||we.defaultLocale,a=l||(i?"en-US":fT()),c=n||we.defaultNumberingSystem,u=o||we.defaultOutputCalendar,d=Nc(s)||we.defaultWeekSettings;return new ie(a,c,u,d,l)}static resetCache(){Ur=null,yc={},kc={},xc={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:o,weekSettings:s}={}){return ie.create(e,n,o,s)}constructor(e,n,o,s,i){const[l,a,c]=mT(e);this.locale=l,this.numberingSystem=n||a||null,this.outputCalendar=o||c||null,this.weekSettings=s,this.intl=pT(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=bT(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:ie.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Nc(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return fi(this,e,k0,()=>{const o=n?{month:e,day:"numeric"}:{month:e},s=n?"format":"standalone";return this.monthsCache[s][e]||(this.monthsCache[s][e]=_T(i=>this.extract(i,o,"month"))),this.monthsCache[s][e]})}weekdays(e,n=!1){return fi(this,e,S0,()=>{const o=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=n?"format":"standalone";return this.weekdaysCache[s][e]||(this.weekdaysCache[s][e]=gT(i=>this.extract(i,o,"weekday"))),this.weekdaysCache[s][e]})}meridiems(){return fi(this,void 0,()=>E0,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[q.utc(2016,11,13,9),q.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return fi(this,e,T0,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[q.utc(-40,1,1),q.utc(2017,1,1)].map(o=>this.extract(o,n,"era"))),this.eraCache[e]})}extract(e,n,o){const s=this.dtFormatter(e,n),i=s.formatToParts(),l=i.find(a=>a.type.toLowerCase()===o);return l?l.value:null}numberFormatter(e={}){return new yT(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new wT(e,this.intl,n)}relFormatter(e={}){return new kT(this.intl,this.isEnglish(),e)}listFormatter(e={}){return cT(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:p0()?hT(this.locale):xT}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Cc=null;class We extends Rr{static get utcInstance(){return Cc===null&&(Cc=new We(0)),Cc}static instance(e){return e===0?We.utcInstance:new We(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new We(gi(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${qr(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${qr(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return qr(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class CT extends Rr{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function yn(t,e){if(Y(t)||t===null)return e;if(t instanceof Rr)return t;if($T(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?ci.instance:n==="utc"||n==="gmt"?We.utcInstance:We.parseSpecifier(n)||Ut.create(t)}else return wn(t)?We.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new CT(t)}const Sc={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Yp={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},ST=Sc.hanidec.replace(/[\[|\]]/g,"").split("");function ET(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const o=t.charCodeAt(n);if(t[n].search(Sc.hanidec)!==-1)e+=ST.indexOf(t[n]);else for(const s in Yp){const[i,l]=Yp[s];o>=i&&o<=l&&(e+=o-i)}}return parseInt(e,10)}else return e}let Do={};function TT(){Do={}}function Nt({numberingSystem:t},e=""){const n=t||"latn";return Do[n]||(Do[n]={}),Do[n][e]||(Do[n][e]=new RegExp(`${Sc[n]}${e}`)),Do[n][e]}let Qp=()=>Date.now(),Xp="system",Jp=null,e0=null,t0=null,n0=60,o0,r0=null;class we{static get now(){return Qp}static set now(e){Qp=e}static set defaultZone(e){Xp=e}static get defaultZone(){return yn(Xp,ci.instance)}static get defaultLocale(){return Jp}static set defaultLocale(e){Jp=e}static get defaultNumberingSystem(){return e0}static set defaultNumberingSystem(e){e0=e}static get defaultOutputCalendar(){return t0}static set defaultOutputCalendar(e){t0=e}static get defaultWeekSettings(){return r0}static set defaultWeekSettings(e){r0=Nc(e)}static get twoDigitCutoffYear(){return n0}static set twoDigitCutoffYear(e){n0=e%100}static get throwOnInvalid(){return o0}static set throwOnInvalid(e){o0=e}static resetCaches(){ie.resetCache(),Ut.resetCache(),q.resetCache(),TT()}}class $t{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const s0=[0,31,59,90,120,151,181,212,243,273,304,334],i0=[0,31,60,91,121,152,182,213,244,274,305,335];function bt(t,e){return new $t("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Ec(t,e,n){const o=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&o.setUTCFullYear(o.getUTCFullYear()-1900);const s=o.getUTCDay();return s===0?7:s}function l0(t,e,n){return n+(zr(t)?i0:s0)[e-1]}function a0(t,e){const n=zr(t)?i0:s0,o=n.findIndex(i=>i<e),s=e-n[o];return{month:o+1,day:s}}function Tc(t,e){return(t-e+7)%7+1}function hi(t,e=4,n=1){const{year:o,month:s,day:i}=t,l=l0(o,s,i),a=Tc(Ec(o,s,i),n);let c=Math.floor((l-a+14-e)/7),u;return c<1?(u=o-1,c=Hr(u,e,n)):c>Hr(o,e,n)?(u=o+1,c=1):u=o,{weekYear:u,weekNumber:c,weekday:a,...yi(t)}}function c0(t,e=4,n=1){const{weekYear:o,weekNumber:s,weekday:i}=t,l=Tc(Ec(o,1,e),n),a=Vo(o);let c=s*7+i-l-7+e,u;c<1?(u=o-1,c+=Vo(u)):c>a?(u=o+1,c-=Vo(o)):u=o;const{month:d,day:f}=a0(u,c);return{year:u,month:d,day:f,...yi(t)}}function Bc(t){const{year:e,month:n,day:o}=t,s=l0(e,n,o);return{year:e,ordinal:s,...yi(t)}}function u0(t){const{year:e,ordinal:n}=t,{month:o,day:s}=a0(e,n);return{year:e,month:o,day:s,...yi(t)}}function d0(t,e){if(!Y(t.localWeekday)||!Y(t.localWeekNumber)||!Y(t.localWeekYear)){if(!Y(t.weekday)||!Y(t.weekNumber)||!Y(t.weekYear))throw new Oo("Cannot mix locale-based week fields with ISO-based week fields");return Y(t.localWeekday)||(t.weekday=t.localWeekday),Y(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),Y(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function BT(t,e=4,n=1){const o=mi(t.weekYear),s=yt(t.weekNumber,1,Hr(t.weekYear,e,n)),i=yt(t.weekday,1,7);return o?s?i?!1:bt("weekday",t.weekday):bt("week",t.weekNumber):bt("weekYear",t.weekYear)}function NT(t){const e=mi(t.year),n=yt(t.ordinal,1,Vo(t.year));return e?n?!1:bt("ordinal",t.ordinal):bt("year",t.year)}function f0(t){const e=mi(t.year),n=yt(t.month,1,12),o=yt(t.day,1,pi(t.year,t.month));return e?n?o?!1:bt("day",t.day):bt("month",t.month):bt("year",t.year)}function h0(t){const{hour:e,minute:n,second:o,millisecond:s}=t,i=yt(e,0,23)||e===24&&n===0&&o===0&&s===0,l=yt(n,0,59),a=yt(o,0,59),c=yt(s,0,999);return i?l?a?c?!1:bt("millisecond",s):bt("second",o):bt("minute",n):bt("hour",e)}function Y(t){return typeof t>"u"}function wn(t){return typeof t=="number"}function mi(t){return typeof t=="number"&&t%1===0}function $T(t){return typeof t=="string"}function IT(t){return Object.prototype.toString.call(t)==="[object Date]"}function m0(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function p0(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function AT(t){return Array.isArray(t)?t:[t]}function _0(t,e,n){if(t.length!==0)return t.reduce((o,s)=>{const i=[e(s),s];return o&&n(o[0],i[0])===o[0]?o:i},null)[1]}function LT(t,e){return e.reduce((n,o)=>(n[o]=t[o],n),{})}function vo(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Nc(t){if(t==null)return null;if(typeof t!="object")throw new Pe("Week settings must be an object");if(!yt(t.firstDay,1,7)||!yt(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!yt(e,1,7)))throw new Pe("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function yt(t,e,n){return mi(t)&&t>=e&&t<=n}function FT(t,e){return t-e*Math.floor(t/e)}function Ne(t,e=2){const n=t<0;let o;return n?o="-"+(""+-t).padStart(e,"0"):o=(""+t).padStart(e,"0"),o}function kn(t){if(!(Y(t)||t===null||t===""))return parseInt(t,10)}function Yn(t){if(!(Y(t)||t===null||t===""))return parseFloat(t)}function $c(t){if(!(Y(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function Ic(t,e,n=!1){const o=10**e;return(n?Math.trunc:Math.round)(t*o)/o}function zr(t){return t%4===0&&(t%100!==0||t%400===0)}function Vo(t){return zr(t)?366:365}function pi(t,e){const n=FT(e-1,12)+1,o=t+(e-n)/12;return n===2?zr(o)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function _i(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function g0(t,e,n){return-Tc(Ec(t,1,e),n)+e-1}function Hr(t,e=4,n=1){const o=g0(t,e,n),s=g0(t+1,e,n);return(Vo(t)-o+s)/7}function Ac(t){return t>99?t:t>we.twoDigitCutoffYear?1900+t:2e3+t}function b0(t,e,n,o=null){const s=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};o&&(i.timeZone=o);const l={timeZoneName:e,...i},a=new Intl.DateTimeFormat(n,l).formatToParts(s).find(c=>c.type.toLowerCase()==="timezonename");return a?a.value:null}function gi(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const o=parseInt(e,10)||0,s=n<0||Object.is(n,-0)?-o:o;return n*60+s}function y0(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new Pe(`Invalid unit value ${t}`);return e}function bi(t,e){const n={};for(const o in t)if(vo(t,o)){const s=t[o];if(s==null)continue;n[e(o)]=y0(s)}return n}function qr(t,e){const n=Math.trunc(Math.abs(t/60)),o=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${Ne(n,2)}:${Ne(o,2)}`;case"narrow":return`${s}${n}${o>0?`:${o}`:""}`;case"techie":return`${s}${Ne(n,2)}${Ne(o,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function yi(t){return LT(t,["hour","minute","second","millisecond"])}const MT=["January","February","March","April","May","June","July","August","September","October","November","December"],w0=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],OT=["J","F","M","A","M","J","J","A","S","O","N","D"];function k0(t){switch(t){case"narrow":return[...OT];case"short":return[...w0];case"long":return[...MT];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const x0=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],C0=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],DT=["M","T","W","T","F","S","S"];function S0(t){switch(t){case"narrow":return[...DT];case"short":return[...C0];case"long":return[...x0];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const E0=["AM","PM"],vT=["Before Christ","Anno Domini"],VT=["BC","AD"],PT=["B","A"];function T0(t){switch(t){case"narrow":return[...PT];case"short":return[...VT];case"long":return[...vT];default:return null}}function RT(t){return E0[t.hour<12?0:1]}function UT(t,e){return S0(e)[t.weekday-1]}function zT(t,e){return k0(e)[t.month-1]}function HT(t,e){return T0(e)[t.year<0?0:1]}function qT(t,e,n="always",o=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&i){const f=t==="days";switch(e){case 1:return f?"tomorrow":`next ${s[t][0]}`;case-1:return f?"yesterday":`last ${s[t][0]}`;case 0:return f?"today":`this ${s[t][0]}`}}const l=Object.is(e,-0)||e<0,a=Math.abs(e),c=a===1,u=s[t],d=o?c?u[1]:u[2]||u[1]:c?s[t][0]:t;return l?`${a} ${d} ago`:`in ${a} ${d}`}function B0(t,e){let n="";for(const o of t)o.literal?n+=o.val:n+=e(o.val);return n}const WT={D:ai,DD:$p,DDD:Ip,DDDD:Ap,t:Lp,tt:Fp,ttt:Mp,tttt:Op,T:Dp,TT:vp,TTT:Vp,TTTT:Pp,f:Rp,ff:zp,fff:qp,ffff:jp,F:Up,FF:Hp,FFF:Wp,FFFF:Gp};class Re{static create(e,n={}){return new Re(e,n)}static parseFormat(e){let n=null,o="",s=!1;const i=[];for(let l=0;l<e.length;l++){const a=e.charAt(l);a==="'"?(o.length>0&&i.push({literal:s||/^\s+$/.test(o),val:o}),n=null,o="",s=!s):s||a===n?o+=a:(o.length>0&&i.push({literal:/^\s+$/.test(o),val:o}),o=a,n=a)}return o.length>0&&i.push({literal:s||/^\s+$/.test(o),val:o}),i}static macroTokenToFormatOpts(e){return WT[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return Ne(e,n);const o={...this.opts};return n>0&&(o.padTo=n),this.loc.numberFormatter(o).format(e)}formatDateTimeFromString(e,n){const o=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(m,g)=>this.loc.extract(e,m,g),l=m=>e.isOffsetFixed&&e.offset===0&&m.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,m.format):"",a=()=>o?RT(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),c=(m,g)=>o?zT(e,m):i(g?{month:m}:{month:m,day:"numeric"},"month"),u=(m,g)=>o?UT(e,m):i(g?{weekday:m}:{weekday:m,month:"long",day:"numeric"},"weekday"),d=m=>{const g=Re.macroTokenToFormatOpts(m);return g?this.formatWithSystemDefault(e,g):m},f=m=>o?HT(e,m):i({era:m},"era"),h=m=>{switch(m){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return l({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return l({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return l({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return a();case"d":return s?i({day:"numeric"},"day"):this.num(e.day);case"dd":return s?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return s?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return s?i({month:"numeric"},"month"):this.num(e.month);case"MM":return s?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return s?i({year:"numeric"},"year"):this.num(e.year);case"yy":return s?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return d(m)}};return B0(Re.parseFormat(n),h)}formatDurationFromString(e,n){const o=c=>{switch(c[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},s=c=>u=>{const d=o(u);return d?this.num(c.get(d),u.length):u},i=Re.parseFormat(n),l=i.reduce((c,{literal:u,val:d})=>u?c:c.concat(d),[]),a=e.shiftTo(...l.map(o).filter(c=>c));return B0(i,s(a))}}const N0=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Po(...t){const e=t.reduce((n,o)=>n+o.source,"");return RegExp(`^${e}$`)}function Ro(...t){return e=>t.reduce(([n,o,s],i)=>{const[l,a,c]=i(e,s);return[{...n,...l},a||o,c]},[{},null,1]).slice(0,2)}function Uo(t,...e){if(t==null)return[null,null];for(const[n,o]of e){const s=n.exec(t);if(s)return o(s)}return[null,null]}function $0(...t){return(e,n)=>{const o={};let s;for(s=0;s<t.length;s++)o[t[s]]=kn(e[n+s]);return[o,null,n+s]}}const I0=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,jT=`(?:${I0.source}?(?:\\[(${N0.source})\\])?)?`,Lc=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,A0=RegExp(`${Lc.source}${jT}`),Fc=RegExp(`(?:T${A0.source})?`),GT=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,KT=/(\d{4})-?W(\d\d)(?:-?(\d))?/,ZT=/(\d{4})-?(\d{3})/,YT=$0("weekYear","weekNumber","weekDay"),QT=$0("year","ordinal"),XT=/(\d{4})-(\d\d)-(\d\d)/,L0=RegExp(`${Lc.source} ?(?:${I0.source}|(${N0.source}))?`),JT=RegExp(`(?: ${L0.source})?`);function zo(t,e,n){const o=t[e];return Y(o)?n:kn(o)}function eB(t,e){return[{year:zo(t,e),month:zo(t,e+1,1),day:zo(t,e+2,1)},null,e+3]}function Ho(t,e){return[{hours:zo(t,e,0),minutes:zo(t,e+1,0),seconds:zo(t,e+2,0),milliseconds:$c(t[e+3])},null,e+4]}function Wr(t,e){const n=!t[e]&&!t[e+1],o=gi(t[e+1],t[e+2]),s=n?null:We.instance(o);return[{},s,e+3]}function jr(t,e){const n=t[e]?Ut.create(t[e]):null;return[{},n,e+1]}const tB=RegExp(`^T?${Lc.source}$`),nB=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function oB(t){const[e,n,o,s,i,l,a,c,u]=t,d=e[0]==="-",f=c&&c[0]==="-",h=(m,g=!1)=>m!==void 0&&(g||m&&d)?-m:m;return[{years:h(Yn(n)),months:h(Yn(o)),weeks:h(Yn(s)),days:h(Yn(i)),hours:h(Yn(l)),minutes:h(Yn(a)),seconds:h(Yn(c),c==="-0"),milliseconds:h($c(u),f)}]}const rB={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Mc(t,e,n,o,s,i,l){const a={year:e.length===2?Ac(kn(e)):kn(e),month:w0.indexOf(n)+1,day:kn(o),hour:kn(s),minute:kn(i)};return l&&(a.second=kn(l)),t&&(a.weekday=t.length>3?x0.indexOf(t)+1:C0.indexOf(t)+1),a}const sB=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function iB(t){const[,e,n,o,s,i,l,a,c,u,d,f]=t,h=Mc(e,s,o,n,i,l,a);let m;return c?m=rB[c]:u?m=0:m=gi(d,f),[h,new We(m)]}function lB(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const aB=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,cB=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,uB=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function F0(t){const[,e,n,o,s,i,l,a]=t;return[Mc(e,s,o,n,i,l,a),We.utcInstance]}function dB(t){const[,e,n,o,s,i,l,a]=t;return[Mc(e,a,n,o,s,i,l),We.utcInstance]}const fB=Po(GT,Fc),hB=Po(KT,Fc),mB=Po(ZT,Fc),pB=Po(A0),M0=Ro(eB,Ho,Wr,jr),_B=Ro(YT,Ho,Wr,jr),gB=Ro(QT,Ho,Wr,jr),bB=Ro(Ho,Wr,jr);function yB(t){return Uo(t,[fB,M0],[hB,_B],[mB,gB],[pB,bB])}function wB(t){return Uo(lB(t),[sB,iB])}function kB(t){return Uo(t,[aB,F0],[cB,F0],[uB,dB])}function xB(t){return Uo(t,[nB,oB])}const CB=Ro(Ho);function SB(t){return Uo(t,[tB,CB])}const EB=Po(XT,JT),TB=Po(L0),BB=Ro(Ho,Wr,jr);function NB(t){return Uo(t,[EB,M0],[TB,BB])}const O0="Invalid Duration",D0={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},$B={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...D0},wt=146097/400,qo=146097/4800,IB={years:{quarters:4,months:12,weeks:wt/7,days:wt,hours:wt*24,minutes:wt*24*60,seconds:wt*24*60*60,milliseconds:wt*24*60*60*1e3},quarters:{months:3,weeks:wt/28,days:wt/4,hours:wt*24/4,minutes:wt*24*60/4,seconds:wt*24*60*60/4,milliseconds:wt*24*60*60*1e3/4},months:{weeks:qo/7,days:qo,hours:qo*24,minutes:qo*24*60,seconds:qo*24*60*60,milliseconds:qo*24*60*60*1e3},...D0},Qn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],AB=Qn.slice(0).reverse();function xn(t,e,n=!1){const o={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new oe(o)}function v0(t,e){let n=e.milliseconds??0;for(const o of AB.slice(1))e[o]&&(n+=e[o]*t[o].milliseconds);return n}function V0(t,e){const n=v0(t,e)<0?-1:1;Qn.reduceRight((o,s)=>{if(Y(e[s]))return o;if(o){const i=e[o]*n,l=t[s][o],a=Math.floor(i/l);e[s]+=a*n,e[o]-=a*l*n}return s},null),Qn.reduce((o,s)=>{if(Y(e[s]))return o;if(o){const i=e[o]%1;e[o]-=i,e[s]+=i*t[o][s]}return s},null)}function LB(t){const e={};for(const[n,o]of Object.entries(t))o!==0&&(e[n]=o);return e}class oe{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let o=n?IB:$B;e.matrix&&(o=e.matrix),this.values=e.values,this.loc=e.loc||ie.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=o,this.isLuxonDuration=!0}static fromMillis(e,n){return oe.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new Pe(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new oe({values:bi(e,oe.normalizeUnit),loc:ie.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(wn(e))return oe.fromMillis(e);if(oe.isDuration(e))return e;if(typeof e=="object")return oe.fromObject(e);throw new Pe(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[o]=xB(e);return o?oe.fromObject(o,n):oe.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[o]=SB(e);return o?oe.fromObject(o,n):oe.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new Pe("need to specify a reason the Duration is invalid");const o=e instanceof $t?e:new $t(e,n);if(we.throwOnInvalid)throw new nT(o);return new oe({invalid:o})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new Np(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const o={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?Re.create(this.loc,o).formatDurationFromString(this,e):O0}toHuman(e={}){if(!this.isValid)return O0;const n=Qn.map(o=>{const s=this.values[o];return Y(s)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:o.slice(0,-1)}).format(s)}).filter(o=>o);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Ic(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},q.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?v0(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=oe.fromDurationLike(e),o={};for(const s of Qn)(vo(n.values,s)||vo(this.values,s))&&(o[s]=n.get(s)+this.get(s));return xn(this,{values:o},!0)}minus(e){if(!this.isValid)return this;const n=oe.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const o of Object.keys(this.values))n[o]=y0(e(this.values[o],o));return xn(this,{values:n},!0)}get(e){return this[oe.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...bi(e,oe.normalizeUnit)};return xn(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:o,matrix:s}={}){const l={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:s,conversionAccuracy:o};return xn(this,l)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return V0(this.matrix,e),xn(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=LB(this.normalize().shiftToAll().toObject());return xn(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(l=>oe.normalizeUnit(l));const n={},o={},s=this.toObject();let i;for(const l of Qn)if(e.indexOf(l)>=0){i=l;let a=0;for(const u in o)a+=this.matrix[u][l]*o[u],o[u]=0;wn(s[l])&&(a+=s[l]);const c=Math.trunc(a);n[l]=c,o[l]=(a*1e3-c*1e3)/1e3}else wn(s[l])&&(o[l]=s[l]);for(const l in o)o[l]!==0&&(n[i]+=l===i?o[l]:o[l]/this.matrix[i][l]);return V0(this.matrix,n),xn(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return xn(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(o,s){return o===void 0||o===0?s===void 0||s===0:o===s}for(const o of Qn)if(!n(this.values[o],e.values[o]))return!1;return!0}}const Wo="Invalid Interval";function FB(t,e){return!t||!t.isValid?ke.invalid("missing or invalid start"):!e||!e.isValid?ke.invalid("missing or invalid end"):e<t?ke.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class ke{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new Pe("need to specify a reason the Interval is invalid");const o=e instanceof $t?e:new $t(e,n);if(we.throwOnInvalid)throw new tT(o);return new ke({invalid:o})}static fromDateTimes(e,n){const o=Kr(e),s=Kr(n),i=FB(o,s);return i??new ke({start:o,end:s})}static after(e,n){const o=oe.fromDurationLike(n),s=Kr(e);return ke.fromDateTimes(s,s.plus(o))}static before(e,n){const o=oe.fromDurationLike(n),s=Kr(e);return ke.fromDateTimes(s.minus(o),s)}static fromISO(e,n){const[o,s]=(e||"").split("/",2);if(o&&s){let i,l;try{i=q.fromISO(o,n),l=i.isValid}catch{l=!1}let a,c;try{a=q.fromISO(s,n),c=a.isValid}catch{c=!1}if(l&&c)return ke.fromDateTimes(i,a);if(l){const u=oe.fromISO(s,n);if(u.isValid)return ke.after(i,u)}else if(c){const u=oe.fromISO(o,n);if(u.isValid)return ke.before(a,u)}}return ke.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",n){if(!this.isValid)return NaN;const o=this.start.startOf(e,n);let s;return n!=null&&n.useLocaleWeeks?s=this.end.reconfigure({locale:o.locale}):s=this.end,s=s.startOf(e,n),Math.floor(s.diff(o,e).get(e))+(s.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?ke.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(Kr).filter(l=>this.contains(l)).sort((l,a)=>l.toMillis()-a.toMillis()),o=[];let{s}=this,i=0;for(;s<this.e;){const l=n[i]||this.e,a=+l>+this.e?this.e:l;o.push(ke.fromDateTimes(s,a)),s=a,i+=1}return o}splitBy(e){const n=oe.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:o}=this,s=1,i;const l=[];for(;o<this.e;){const a=this.start.plus(n.mapUnits(c=>c*s));i=+a>+this.e?this.e:a,l.push(ke.fromDateTimes(o,i)),o=i,s+=1}return l}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,o=this.e<e.e?this.e:e.e;return n>=o?null:ke.fromDateTimes(n,o)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,o=this.e>e.e?this.e:e.e;return ke.fromDateTimes(n,o)}static merge(e){const[n,o]=e.sort((s,i)=>s.s-i.s).reduce(([s,i],l)=>i?i.overlaps(l)||i.abutsStart(l)?[s,i.union(l)]:[s.concat([i]),l]:[s,l],[[],null]);return o&&n.push(o),n}static xor(e){let n=null,o=0;const s=[],i=e.map(c=>[{time:c.s,type:"s"},{time:c.e,type:"e"}]),l=Array.prototype.concat(...i),a=l.sort((c,u)=>c.time-u.time);for(const c of a)o+=c.type==="s"?1:-1,o===1?n=c.time:(n&&+n!=+c.time&&s.push(ke.fromDateTimes(n,c.time)),n=null);return ke.merge(s)}difference(...e){return ke.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Wo}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=ai,n={}){return this.isValid?Re.create(this.s.loc.clone(n),e).formatInterval(this):Wo}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Wo}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Wo}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Wo}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:Wo}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):oe.invalid(this.invalidReason)}mapEndpoints(e){return ke.fromDateTimes(e(this.s),e(this.e))}}class wi{static hasDST(e=we.defaultZone){const n=q.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return Ut.isValidZone(e)}static normalizeZone(e){return yn(e,we.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||ie.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||ie.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||ie.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:o=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||ie.create(n,o,i)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:o=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||ie.create(n,o,i)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:o=null,locObj:s=null}={}){return(s||ie.create(n,o,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:o=null,locObj:s=null}={}){return(s||ie.create(n,o,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return ie.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return ie.create(n,null,"gregory").eras(e)}static features(){return{relative:m0(),localeWeek:p0()}}}function P0(t,e){const n=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),o=n(e)-n(t);return Math.floor(oe.fromMillis(o).as("days"))}function MB(t,e,n){const o=[["years",(c,u)=>u.year-c.year],["quarters",(c,u)=>u.quarter-c.quarter+(u.year-c.year)*4],["months",(c,u)=>u.month-c.month+(u.year-c.year)*12],["weeks",(c,u)=>{const d=P0(c,u);return(d-d%7)/7}],["days",P0]],s={},i=t;let l,a;for(const[c,u]of o)n.indexOf(c)>=0&&(l=c,s[c]=u(t,e),a=i.plus(s),a>e?(s[c]--,t=i.plus(s),t>e&&(a=t,s[c]--,t=i.plus(s))):t=a);return[t,s,a,l]}function OB(t,e,n,o){let[s,i,l,a]=MB(t,e,n);const c=e-s,u=n.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);u.length===0&&(l<e&&(l=s.plus({[a]:1})),l!==s&&(i[a]=(i[a]||0)+c/(l-s)));const d=oe.fromObject(i,o);return u.length>0?oe.fromMillis(c,o).shiftTo(...u).plus(d):d}const DB="missing Intl.DateTimeFormat.formatToParts support";function se(t,e=n=>n){return{regex:t,deser:([n])=>e(ET(n))}}const R0="[ ]",U0=new RegExp(R0,"g");function vB(t){return t.replace(/\./g,"\\.?").replace(U0,R0)}function z0(t){return t.replace(/\./g,"").replace(U0," ").toLowerCase()}function It(t,e){return t===null?null:{regex:RegExp(t.map(vB).join("|")),deser:([n])=>t.findIndex(o=>z0(n)===z0(o))+e}}function H0(t,e){return{regex:t,deser:([,n,o])=>gi(n,o),groups:e}}function ki(t){return{regex:t,deser:([e])=>e}}function VB(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function PB(t,e){const n=Nt(e),o=Nt(e,"{2}"),s=Nt(e,"{3}"),i=Nt(e,"{4}"),l=Nt(e,"{6}"),a=Nt(e,"{1,2}"),c=Nt(e,"{1,3}"),u=Nt(e,"{1,6}"),d=Nt(e,"{1,9}"),f=Nt(e,"{2,4}"),h=Nt(e,"{4,6}"),m=_=>({regex:RegExp(VB(_.val)),deser:([b])=>b,literal:!0}),p=(_=>{if(t.literal)return m(_);switch(_.val){case"G":return It(e.eras("short"),0);case"GG":return It(e.eras("long"),0);case"y":return se(u);case"yy":return se(f,Ac);case"yyyy":return se(i);case"yyyyy":return se(h);case"yyyyyy":return se(l);case"M":return se(a);case"MM":return se(o);case"MMM":return It(e.months("short",!0),1);case"MMMM":return It(e.months("long",!0),1);case"L":return se(a);case"LL":return se(o);case"LLL":return It(e.months("short",!1),1);case"LLLL":return It(e.months("long",!1),1);case"d":return se(a);case"dd":return se(o);case"o":return se(c);case"ooo":return se(s);case"HH":return se(o);case"H":return se(a);case"hh":return se(o);case"h":return se(a);case"mm":return se(o);case"m":return se(a);case"q":return se(a);case"qq":return se(o);case"s":return se(a);case"ss":return se(o);case"S":return se(c);case"SSS":return se(s);case"u":return ki(d);case"uu":return ki(a);case"uuu":return se(n);case"a":return It(e.meridiems(),0);case"kkkk":return se(i);case"kk":return se(f,Ac);case"W":return se(a);case"WW":return se(o);case"E":case"c":return se(n);case"EEE":return It(e.weekdays("short",!1),1);case"EEEE":return It(e.weekdays("long",!1),1);case"ccc":return It(e.weekdays("short",!0),1);case"cccc":return It(e.weekdays("long",!0),1);case"Z":case"ZZ":return H0(new RegExp(`([+-]${a.source})(?::(${o.source}))?`),2);case"ZZZ":return H0(new RegExp(`([+-]${a.source})(${o.source})?`),2);case"z":return ki(/[a-z_+-/]{1,256}?/i);case" ":return ki(/[^\S\n\r]/);default:return m(_)}})(t)||{invalidReason:DB};return p.token=t,p}const RB={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function UB(t,e,n){const{type:o,value:s}=t;if(o==="literal"){const c=/^\s+$/.test(s);return{literal:!c,val:c?" ":s}}const i=e[o];let l=o;o==="hour"&&(e.hour12!=null?l=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?l="hour12":l="hour24":l=n.hour12?"hour12":"hour24");let a=RB[l];if(typeof a=="object"&&(a=a[i]),a)return{literal:!1,val:a}}function zB(t){return[`^${t.map(n=>n.regex).reduce((n,o)=>`${n}(${o.source})`,"")}$`,t]}function HB(t,e,n){const o=t.match(e);if(o){const s={};let i=1;for(const l in n)if(vo(n,l)){const a=n[l],c=a.groups?a.groups+1:1;!a.literal&&a.token&&(s[a.token.val[0]]=a.deser(o.slice(i,i+c))),i+=c}return[o,s]}else return[o,{}]}function qB(t){const e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,o;return Y(t.z)||(n=Ut.create(t.z)),Y(t.Z)||(n||(n=new We(t.Z)),o=t.Z),Y(t.q)||(t.M=(t.q-1)*3+1),Y(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),Y(t.u)||(t.S=$c(t.u)),[Object.keys(t).reduce((i,l)=>{const a=e(l);return a&&(i[a]=t[l]),i},{}),n,o]}let Oc=null;function WB(){return Oc||(Oc=q.fromMillis(1555555555555)),Oc}function jB(t,e){if(t.literal)return t;const n=Re.macroTokenToFormatOpts(t.val),o=G0(n,e);return o==null||o.includes(void 0)?t:o}function q0(t,e){return Array.prototype.concat(...t.map(n=>jB(n,e)))}class W0{constructor(e,n){if(this.locale=e,this.format=n,this.tokens=q0(Re.parseFormat(n),e),this.units=this.tokens.map(o=>PB(o,e)),this.disqualifyingUnit=this.units.find(o=>o.invalidReason),!this.disqualifyingUnit){const[o,s]=zB(this.units);this.regex=RegExp(o,"i"),this.handlers=s}}explainFromTokens(e){if(this.isValid){const[n,o]=HB(e,this.regex,this.handlers),[s,i,l]=o?qB(o):[null,null,void 0];if(vo(o,"a")&&vo(o,"H"))throw new Oo("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:o,result:s,zone:i,specificOffset:l}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function j0(t,e,n){return new W0(t,n).explainFromTokens(e)}function GB(t,e,n){const{result:o,zone:s,specificOffset:i,invalidReason:l}=j0(t,e,n);return[o,s,i,l]}function G0(t,e){if(!t)return null;const o=Re.create(e,t).dtFormatter(WB()),s=o.formatToParts(),i=o.resolvedOptions();return s.map(l=>UB(l,t,i))}const Dc="Invalid DateTime",K0=864e13;function Gr(t){return new $t("unsupported zone",`the zone "${t.name}" is not supported`)}function vc(t){return t.weekData===null&&(t.weekData=hi(t.c)),t.weekData}function Vc(t){return t.localWeekData===null&&(t.localWeekData=hi(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Xn(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new q({...n,...e,old:n})}function Z0(t,e,n){let o=t-e*60*1e3;const s=n.offset(o);if(e===s)return[o,e];o-=(s-e)*60*1e3;const i=n.offset(o);return s===i?[o,s]:[t-Math.min(s,i)*60*1e3,Math.max(s,i)]}function xi(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Ci(t,e,n){return Z0(_i(t),e,n)}function Y0(t,e){const n=t.o,o=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:o,month:s,day:Math.min(t.c.day,pi(o,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},l=oe.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=_i(i);let[c,u]=Z0(a,n,t.zone);return l!==0&&(c+=l,u=t.zone.offset(c)),{ts:c,o:u}}function jo(t,e,n,o,s,i){const{setZone:l,zone:a}=n;if(t&&Object.keys(t).length!==0||e){const c=e||a,u=q.fromObject(t,{...n,zone:c,specificOffset:i});return l?u:u.setZone(a)}else return q.invalid(new $t("unparsable",`the input "${s}" can't be parsed as ${o}`))}function Si(t,e,n=!0){return t.isValid?Re.create(ie.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Pc(t,e){const n=t.c.year>9999||t.c.year<0;let o="";return n&&t.c.year>=0&&(o+="+"),o+=Ne(t.c.year,n?6:4),e?(o+="-",o+=Ne(t.c.month),o+="-",o+=Ne(t.c.day)):(o+=Ne(t.c.month),o+=Ne(t.c.day)),o}function Q0(t,e,n,o,s,i){let l=Ne(t.c.hour);return e?(l+=":",l+=Ne(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(l+=":")):l+=Ne(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(l+=Ne(t.c.second),(t.c.millisecond!==0||!o)&&(l+=".",l+=Ne(t.c.millisecond,3))),s&&(t.isOffsetFixed&&t.offset===0&&!i?l+="Z":t.o<0?(l+="-",l+=Ne(Math.trunc(-t.o/60)),l+=":",l+=Ne(Math.trunc(-t.o%60))):(l+="+",l+=Ne(Math.trunc(t.o/60)),l+=":",l+=Ne(Math.trunc(t.o%60)))),i&&(l+="["+t.zone.ianaName+"]"),l}const X0={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},KB={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ZB={ordinal:1,hour:0,minute:0,second:0,millisecond:0},J0=["year","month","day","hour","minute","second","millisecond"],YB=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],QB=["year","ordinal","hour","minute","second","millisecond"];function XB(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new Np(t);return e}function e_(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return XB(t)}}function JB(t){return Ti[t]||(Ei===void 0&&(Ei=we.now()),Ti[t]=t.offset(Ei)),Ti[t]}function t_(t,e){const n=yn(e.zone,we.defaultZone);if(!n.isValid)return q.invalid(Gr(n));const o=ie.fromObject(e);let s,i;if(Y(t.year))s=we.now();else{for(const c of J0)Y(t[c])&&(t[c]=X0[c]);const l=f0(t)||h0(t);if(l)return q.invalid(l);const a=JB(n);[s,i]=Ci(t,a,n)}return new q({ts:s,zone:n,loc:o,o:i})}function n_(t,e,n){const o=Y(n.round)?!0:n.round,s=(l,a)=>(l=Ic(l,o||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(l,a)),i=l=>n.calendary?e.hasSame(t,l)?0:e.startOf(l).diff(t.startOf(l),l).get(l):e.diff(t,l).get(l);if(n.unit)return s(i(n.unit),n.unit);for(const l of n.units){const a=i(l);if(Math.abs(a)>=1)return s(a,l)}return s(t>e?-0:0,n.units[n.units.length-1])}function o_(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}let Ei,Ti={};class q{constructor(e){const n=e.zone||we.defaultZone;let o=e.invalid||(Number.isNaN(e.ts)?new $t("invalid input"):null)||(n.isValid?null:Gr(n));this.ts=Y(e.ts)?we.now():e.ts;let s=null,i=null;if(!o)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[s,i]=[e.old.c,e.old.o];else{const a=wn(e.o)&&!e.old?e.o:n.offset(this.ts);s=xi(this.ts,a),o=Number.isNaN(s.year)?new $t("invalid input"):null,s=o?null:s,i=o?null:a}this._zone=n,this.loc=e.loc||ie.create(),this.invalid=o,this.weekData=null,this.localWeekData=null,this.c=s,this.o=i,this.isLuxonDateTime=!0}static now(){return new q({})}static local(){const[e,n]=o_(arguments),[o,s,i,l,a,c,u]=n;return t_({year:o,month:s,day:i,hour:l,minute:a,second:c,millisecond:u},e)}static utc(){const[e,n]=o_(arguments),[o,s,i,l,a,c,u]=n;return e.zone=We.utcInstance,t_({year:o,month:s,day:i,hour:l,minute:a,second:c,millisecond:u},e)}static fromJSDate(e,n={}){const o=IT(e)?e.valueOf():NaN;if(Number.isNaN(o))return q.invalid("invalid input");const s=yn(n.zone,we.defaultZone);return s.isValid?new q({ts:o,zone:s,loc:ie.fromObject(n)}):q.invalid(Gr(s))}static fromMillis(e,n={}){if(wn(e))return e<-K0||e>K0?q.invalid("Timestamp out of range"):new q({ts:e,zone:yn(n.zone,we.defaultZone),loc:ie.fromObject(n)});throw new Pe(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(wn(e))return new q({ts:e*1e3,zone:yn(n.zone,we.defaultZone),loc:ie.fromObject(n)});throw new Pe("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const o=yn(n.zone,we.defaultZone);if(!o.isValid)return q.invalid(Gr(o));const s=ie.fromObject(n),i=bi(e,e_),{minDaysInFirstWeek:l,startOfWeek:a}=d0(i,s),c=we.now(),u=Y(n.specificOffset)?o.offset(c):n.specificOffset,d=!Y(i.ordinal),f=!Y(i.year),h=!Y(i.month)||!Y(i.day),m=f||h,g=i.weekYear||i.weekNumber;if((m||d)&&g)throw new Oo("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&d)throw new Oo("Can't mix ordinal dates with month/day");const p=g||i.weekday&&!m;let _,b,y=xi(c,u);p?(_=YB,b=KB,y=hi(y,l,a)):d?(_=QB,b=ZB,y=Bc(y)):(_=J0,b=X0);let w=!1;for(const N of _){const $=i[N];Y($)?w?i[N]=b[N]:i[N]=y[N]:w=!0}const k=p?BT(i,l,a):d?NT(i):f0(i),S=k||h0(i);if(S)return q.invalid(S);const C=p?c0(i,l,a):d?u0(i):i,[x,T]=Ci(C,u,o),B=new q({ts:x,zone:o,o:T,loc:s});return i.weekday&&m&&e.weekday!==B.weekday?q.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${B.toISO()}`):B.isValid?B:q.invalid(B.invalid)}static fromISO(e,n={}){const[o,s]=yB(e);return jo(o,s,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[o,s]=wB(e);return jo(o,s,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[o,s]=kB(e);return jo(o,s,n,"HTTP",n)}static fromFormat(e,n,o={}){if(Y(e)||Y(n))throw new Pe("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:i=null}=o,l=ie.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0}),[a,c,u,d]=GB(l,e,n);return d?q.invalid(d):jo(a,c,o,`format ${n}`,e,u)}static fromString(e,n,o={}){return q.fromFormat(e,n,o)}static fromSQL(e,n={}){const[o,s]=NB(e);return jo(o,s,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new Pe("need to specify a reason the DateTime is invalid");const o=e instanceof $t?e:new $t(e,n);if(we.throwOnInvalid)throw new eT(o);return new q({invalid:o})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const o=G0(e,ie.fromObject(n));return o?o.map(s=>s?s.val:null).join(""):null}static expandFormat(e,n={}){return q0(Re.parseFormat(e),ie.fromObject(n)).map(s=>s.val).join("")}static resetCache(){Ei=void 0,Ti={}}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?vc(this).weekYear:NaN}get weekNumber(){return this.isValid?vc(this).weekNumber:NaN}get weekday(){return this.isValid?vc(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Vc(this).weekday:NaN}get localWeekNumber(){return this.isValid?Vc(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Vc(this).weekYear:NaN}get ordinal(){return this.isValid?Bc(this.c).ordinal:NaN}get monthShort(){return this.isValid?wi.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?wi.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?wi.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?wi.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,n=6e4,o=_i(this.c),s=this.zone.offset(o-e),i=this.zone.offset(o+e),l=this.zone.offset(o-s*n),a=this.zone.offset(o-i*n);if(l===a)return[this];const c=o-l*n,u=o-a*n,d=xi(c,l),f=xi(u,a);return d.hour===f.hour&&d.minute===f.minute&&d.second===f.second&&d.millisecond===f.millisecond?[Xn(this,{ts:c}),Xn(this,{ts:u})]:[this]}get isInLeapYear(){return zr(this.year)}get daysInMonth(){return pi(this.year,this.month)}get daysInYear(){return this.isValid?Vo(this.year):NaN}get weeksInWeekYear(){return this.isValid?Hr(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Hr(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:o,calendar:s}=Re.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:o,outputCalendar:s}}toUTC(e=0,n={}){return this.setZone(We.instance(e),n)}toLocal(){return this.setZone(we.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:o=!1}={}){if(e=yn(e,we.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(n||o){const i=e.offset(this.ts),l=this.toObject();[s]=Ci(l,i,e)}return Xn(this,{ts:s,zone:e})}else return q.invalid(Gr(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:o}={}){const s=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:o});return Xn(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=bi(e,e_),{minDaysInFirstWeek:o,startOfWeek:s}=d0(n,this.loc),i=!Y(n.weekYear)||!Y(n.weekNumber)||!Y(n.weekday),l=!Y(n.ordinal),a=!Y(n.year),c=!Y(n.month)||!Y(n.day),u=a||c,d=n.weekYear||n.weekNumber;if((u||l)&&d)throw new Oo("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&l)throw new Oo("Can't mix ordinal dates with month/day");let f;i?f=c0({...hi(this.c,o,s),...n},o,s):Y(n.ordinal)?(f={...this.toObject(),...n},Y(n.day)&&(f.day=Math.min(pi(f.year,f.month),f.day))):f=u0({...Bc(this.c),...n});const[h,m]=Ci(f,this.o,this.zone);return Xn(this,{ts:h,o:m})}plus(e){if(!this.isValid)return this;const n=oe.fromDurationLike(e);return Xn(this,Y0(this,n))}minus(e){if(!this.isValid)return this;const n=oe.fromDurationLike(e).negate();return Xn(this,Y0(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const o={},s=oe.normalizeUnit(e);switch(s){case"years":o.month=1;case"quarters":case"months":o.day=1;case"weeks":case"days":o.hour=0;case"hours":o.minute=0;case"minutes":o.second=0;case"seconds":o.millisecond=0;break}if(s==="weeks")if(n){const i=this.loc.getStartOfWeek(),{weekday:l}=this;l<i&&(o.weekNumber=this.weekNumber-1),o.weekday=i}else o.weekday=1;if(s==="quarters"){const i=Math.ceil(this.month/3);o.month=(i-1)*3+1}return this.set(o)}endOf(e,n){return this.isValid?this.plus({[e]:1}).startOf(e,n).minus(1):this}toFormat(e,n={}){return this.isValid?Re.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):Dc}toLocaleString(e=ai,n={}){return this.isValid?Re.create(this.loc.clone(n),e).formatDateTime(this):Dc}toLocaleParts(e={}){return this.isValid?Re.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:o=!1,includeOffset:s=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const l=e==="extended";let a=Pc(this,l);return a+="T",a+=Q0(this,l,n,o,s,i),a}toISODate({format:e="extended"}={}){return this.isValid?Pc(this,e==="extended"):null}toISOWeekDate(){return Si(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:o=!0,includePrefix:s=!1,extendedZone:i=!1,format:l="extended"}={}){return this.isValid?(s?"T":"")+Q0(this,l==="extended",n,e,o,i):null}toRFC2822(){return Si(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Si(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Pc(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:o=!0}={}){let s="HH:mm:ss.SSS";return(n||e)&&(o&&(s+=" "),n?s+="z":e&&(s+="ZZ")),Si(this,s,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Dc}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",o={}){if(!this.isValid||!e.isValid)return oe.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...o},i=AT(n).map(oe.normalizeUnit),l=e.valueOf()>this.valueOf(),a=l?this:e,c=l?e:this,u=OB(a,c,i,s);return l?u.negate():u}diffNow(e="milliseconds",n={}){return this.diff(q.now(),e,n)}until(e){return this.isValid?ke.fromDateTimes(this,e):this}hasSame(e,n,o){if(!this.isValid)return!1;const s=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(n,o)<=s&&s<=i.endOf(n,o)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||q.fromObject({},{zone:this.zone}),o=e.padding?this<n?-e.padding:e.padding:0;let s=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(s=e.unit,i=void 0),n_(n,this.plus(o),{...e,numeric:"always",units:s,unit:i})}toRelativeCalendar(e={}){return this.isValid?n_(e.base||q.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(q.isDateTime))throw new Pe("min requires all arguments be DateTimes");return _0(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(q.isDateTime))throw new Pe("max requires all arguments be DateTimes");return _0(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,o={}){const{locale:s=null,numberingSystem:i=null}=o,l=ie.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0});return j0(l,e,n)}static fromStringExplain(e,n,o={}){return q.fromFormatExplain(e,n,o)}static buildFormatParser(e,n={}){const{locale:o=null,numberingSystem:s=null}=n,i=ie.fromOpts({locale:o,numberingSystem:s,defaultToEN:!0});return new W0(i,e)}static fromFormatParser(e,n,o={}){if(Y(e)||Y(n))throw new Pe("fromFormatParser requires an input string and a format parser");const{locale:s=null,numberingSystem:i=null}=o,l=ie.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0});if(!l.equals(n.locale))throw new Pe(`fromFormatParser called with a locale of ${l}, but the format parser was created for ${n.locale}`);const{result:a,zone:c,specificOffset:u,invalidReason:d}=n.explainFromTokens(e);return d?q.invalid(d):jo(a,c,o,`format ${n.format}`,e,u)}static get DATE_SHORT(){return ai}static get DATE_MED(){return $p}static get DATE_MED_WITH_WEEKDAY(){return oT}static get DATE_FULL(){return Ip}static get DATE_HUGE(){return Ap}static get TIME_SIMPLE(){return Lp}static get TIME_WITH_SECONDS(){return Fp}static get TIME_WITH_SHORT_OFFSET(){return Mp}static get TIME_WITH_LONG_OFFSET(){return Op}static get TIME_24_SIMPLE(){return Dp}static get TIME_24_WITH_SECONDS(){return vp}static get TIME_24_WITH_SHORT_OFFSET(){return Vp}static get TIME_24_WITH_LONG_OFFSET(){return Pp}static get DATETIME_SHORT(){return Rp}static get DATETIME_SHORT_WITH_SECONDS(){return Up}static get DATETIME_MED(){return zp}static get DATETIME_MED_WITH_SECONDS(){return Hp}static get DATETIME_MED_WITH_WEEKDAY(){return rT}static get DATETIME_FULL(){return qp}static get DATETIME_FULL_WITH_SECONDS(){return Wp}static get DATETIME_HUGE(){return jp}static get DATETIME_HUGE_WITH_SECONDS(){return Gp}}function Kr(t){if(q.isDateTime(t))return t;if(t&&t.valueOf&&wn(t.valueOf()))return q.fromJSDate(t);if(t&&typeof t=="object")return q.fromObject(t);throw new Pe(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const Rc=new Ut("America/Chicago");function Uc(t){return t=t==null?void 0:t.replace("T"," "),q.fromSQL(t,{zone:Rc}).setZone("local")}function r_(t){return t=t==null?void 0:t.replace("T"," "),q.fromSQL(t,{zone:"local"}).setZone(Rc)}function eN(t){return zt(t,{format:"yyyy/MM/dd"})}function Go(t,e={}){return Bi(Uc(t),e)}function Bi(t=null,{format:e="M/d/yy h:mma",empty:n="- -"}={}){var s;return((s=kt(t))==null?void 0:s.toFormat(e).toLowerCase())||n}function tN(t=null,{empty:e="- -"}={}){var o;return((o=kt(t))==null?void 0:o.toFormat("M/d/yy H:mm:ss.SSS").toLowerCase())||e}function zc(t=null){return Bi(t,{format:"yyyy-MM-dd HH:mm:ss",empty:void 0})}function zt(t,{empty:e="--",format:n="M/d/yy"}={}){var s;return((s=kt(t))==null?void 0:s.toFormat(n||"M/d/yy"))||e}function kt(t){return typeof t=="number"?q.fromMillis(t):typeof t=="string"?s_(t):t||q.fromSQL("0000-00-00 00:00:00")}function nN(t){const e=q.fromSQL(t.replace("T"," ").replace(/\//g,"-"));return e.isValid?e:null}function Hc(t,e="yyyy/MM/dd"){const n=q.fromFormat(t,e);return n.isValid?n:null}function qc(t,e="yyyy/MM/dd HH:mm:ss"){const n=q.fromFormat(t,e);return n.isValid?n:null}function s_(t,e="local"){if(!t)return null;const n=["yyyy-MM-dd","yyyy-MM-dd HH:mm:ss","MM/dd/yyyy","dd/MM/yyyy","MM/dd/yy","dd/MM/yy","yyyy/MM/dd","MM-dd-yyyy","dd-MM-yyyy","M/d/yyyy","d/M/yyyy","yyyyMMdd"];for(const i of n){const l=q.fromFormat(t,i,{zone:e});if(l.isValid)return l}const o=q.fromISO(t,{zone:e});if(o.isValid)return o;const s=q.fromSQL(t,{zone:e});return s.isValid?s:null}function oN(t){const e=q.now().setZone("UTC").startOf("year").set({second:t}),n=Math.floor(t/3600);return(n?n+":":"")+e.toFormat("mm:ss")}function Wc(t){const e=Math.floor(t/3600),n=Math.floor(t%3600/60),o=Math.floor(t%60);return`${e?e+"h ":""}${n?n+"m ":""}${o}s`}function rN(t){const e=Wc(Math.floor(t/1e3));return(e==="0s"?"":e)+` ${Math.floor(t%1e3)}ms`}function sN(t,e){const n=e?kt(e):q.now(),o=n==null?void 0:n.diff(kt(t)||q.now(),["hours","minutes","seconds"]);if(!(o!=null&&o.isValid))return"-";const s=o.as("seconds");return Wc(s)}function iN(t){if(!t)return"";const e=kt(t);if(!e)return"";const n=q.now(),o=Math.abs(n.toMillis()-e.toMillis()),s=Math.floor(o/1e3),i=Math.floor(o/(1e3*60)),l=Math.floor(o/(1e3*60*60));if(s<10)return"a few seconds ago";if(s<60)return`${s} seconds ago`;if(i===1)return"a minute ago";if(i<60)return`${i} minutes ago`;if(l===1)return"an hour ago";if(l<24)return`${l} hours ago`;const a=n.startOf("day"),c=e.startOf("day"),u=Math.floor(a.diff(c,"days").days);if(u===0)return"today";if(u===1)return"yesterday";if(u<7)return`${u} days ago`;if(u<30){const d=Math.floor(u/7);return d===1?"a week ago":`${d} weeks ago`}return e.toLocaleString({year:"numeric",month:"short",day:"numeric"})}function Ni(t,e){return t==null||isNaN(t)?"$-":new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",...e}).format(t)}function lN(t,e){return Ni(t,{maximumFractionDigits:0,...e})}function Jt(t,e){return new Intl.NumberFormat("en-US",e).format(t)}function aN(t,e){return"$"+i_(t,e)}function i_(t,e){if(t===""||t===null||t===void 0)return"-";const n=[{pow:3,unit:"K"},{pow:6,unit:"M"},{pow:9,unit:"B"},{pow:12,unit:"T"},{pow:15,unit:"Q"}];let o=Math.round(+t);const s=n.find(({pow:i})=>Math.pow(10,i)<o&&Math.pow(10,i+3)>o)||null;return s?(o=o/Math.pow(10,s.pow),e!=null&&e.round?o+s.unit:o.toFixed(o>100?0:1)+s.unit):o}function cN(t){const e=[{pow:0,unit:"B"},{pow:10,unit:"KB"},{pow:20,unit:"MB"},{pow:30,unit:"GB"},{pow:40,unit:"TB"},{pow:50,unit:"PB"},{pow:60,unit:"EB"},{pow:70,unit:"ZB"},{pow:80,unit:"YB"}],n=Math.round(+t),o=e.find((i,l)=>{const a=e[l+1];return!a||n<Math.pow(2,a.pow+10)})||e[e.length-1],s=Math.pow(2,o.pow);return Math.round(n/s)+" "+o.unit}function l_(t){switch(t){case"Yes":case"No":return t}return t==null?"-":t?"Yes":"No"}function a_(t,e={}){return e={multiplier:100,maximumFractionDigits:1,NaN:"N/A",...e},t=parseFloat(""+t),isNaN(t)?e.NaN:Jt(t*(e.multiplier||100),e)+"%"}function uN(t,e){if(t.length>e){const n=Math.floor((e-3)/2),o=e-n-3;return t.substring(0,n)+"..."+t.substring(t.length-o)}else return t}function dN(t){if(!t||typeof t!="string")return t||"";const e=t.replace(/\D/g,"").split("");let n="";const s=e.length>0&&e[0]==="1"?1:0;return e.map((i,l)=>{switch(l){case s:n+="(";break;case s+3:n+=") ";break;case s+6:n+="-";break;case s+10:n+=" x";break}l===0&&i==="1"?n+="+1 ":n+=i}),t==="+1 ("?"":n}function c_(t,e){return Array.isArray(t)?`${t==null?void 0:t.length} ${e}`:`${t?t.title||t.name||t.id:""}`}function fN(t,e){var n;return(n=kt(e))==null?void 0:n.diff(kt(t)||q.now(),["days"]).days}function $i(t,e,n){var o=window,s="application/octet-stream",i=n||s,l=t,a=!e&&!n&&l,c=document.createElement("a"),u=function(b){return String(b)},d=o.Blob||o.MozBlob||o.WebKitBlob||u,f=e||"download",h,m;if(d=d.call?d.bind(o):Blob,String(this)==="true"&&(l=[l,i],i=l[0],l=l[1]),a&&a.length<2048)if(f=a.split("/").pop().split("?")[0],c.href=a,c.href.indexOf(a)!==-1||c.href.indexOf(encodeURI(a))!==-1||c.href===encodeURI(a)){var g=new XMLHttpRequest;return g.open("GET",a+"?no-cache="+Date.now(),!0),g.responseType="blob",g.onload=function(b){$i(b.target.response,f,s)},g.onerror=function(b){window.open(a,"_blank").focus()},setTimeout(function(){g.send()},0),g}else throw new Error("Invalid URL given, cannot download file: "+a);if(/^data:[\w+-]+\/[\w+-]+[,;]/.test(l))if(l.length>1024*1024*1.999&&d!==u)l=p(l),i=l.type||s;else return navigator.msSaveBlob?navigator.msSaveBlob(p(l),f):_(l);h=l instanceof d?l:new d([l],{type:i});function p(b){var y=b.split(/[:;,]/),w=y[1],k=y[2]==="base64"?atob:decodeURIComponent,S=k(y.pop()),C=S.length,x=0,T=new Uint8Array(C);for(x;x<C;++x)T[x]=S.charCodeAt(x);return new d([T],{type:w})}function _(b,y){if("download"in c)return c.href=b,c.setAttribute("download",f),c.className="download-js-link",c.innerHTML="downloading...",c.style.display="none",document.body.appendChild(c),setTimeout(function(){c.click(),document.body.removeChild(c),y===!0&&setTimeout(function(){o.URL.revokeObjectURL(c.href)},250)},66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return b=b.replace(/^data:([\w/\-+]+)/,s),window.open(b)||confirm(`Displaying New Document
|
|
163
235
|
|
|
164
|
-
Use Save As... to download, then click back to return to this page.`)&&(location.href=
|
|
236
|
+
Use Save As... to download, then click back to return to this page.`)&&(location.href=b),!0;var w=document.createElement("iframe");document.body.appendChild(w),y||(b="data:"+b.replace(/^data:([\w/\-+]+)/,s)),w.src=b,setTimeout(function(){document.body.removeChild(w)},333)}if(navigator.msSaveBlob)return navigator.msSaveBlob(h,f);if(o.URL)_(o.URL.createObjectURL(h),!0);else{if(typeof h=="string"||h.constructor===u)try{return _("data:"+i+";base64,"+o.btoa(h))}catch{return _("data:"+i+","+encodeURIComponent(h))}m=new FileReader,m.onload=function(b){_(this.result)},m.readAsDataURL(h)}return!0}async function u_(t,e="",n=null){var l;let o;n&&(o={method:"POST",headers:{...(l=fe.value.request)==null?void 0:l.headers},body:JSON.stringify(n)});const s=await fetch(t,o);if(!s.ok)throw Error("File download failed: invalid response from server");let i;try{const a=JSON.parse(new TextDecoder().decode(s.data));console.error("Error downloading file:",a),i=a.message,a.errors&&(i=a.errors[0].message)}catch{}if(i)throw new Error("Failed to download file: "+i);await d_(s,e)}async function d_(t,e=""){const n=jc(t,"content-disposition",""),o=jc(t,"content-type",""),s=n.match(/filename="([^"]+)"/);e=e||s&&s[1]||"download.pdf";let i=t.data;i||(i=await t.blob()),$i(i,e,o)}function jc(t,e,n){if(t.headers)return typeof t.headers.get=="function"?t.headers.get(e)||n:t.headers[e]||n}let f_=class{constructor(e){if(hN(e))throw new Error("DataView: Passed buffer type is unsupported.");this.buffer=e,this.byteLength=this.buffer.length}getUint8(e){return this.buffer.readUInt8(e)}getUint16(e,n){return n?this.buffer.readUInt16LE(e):this.buffer.readUInt16BE(e)}getUint32(e,n){return n?this.buffer.readUInt32LE(e):this.buffer.readUInt32BE(e)}getInt32(e,n){return n?this.buffer.readInt32LE(e):this.buffer.readInt32BE(e)}};function hN(t){return typeof t!="object"||t.length===void 0||t.readUInt8===void 0||t.readUInt16LE===void 0||t.readUInt16BE===void 0||t.readUInt32LE===void 0||t.readUInt32BE===void 0||t.readInt32LE===void 0||t.readInt32BE===void 0}function h_(t,e,n){try{return new DataView(t,e,n)}catch{return new f_(t,e,n)}}function J(t,e,n){const o=[];for(let s=0;s<n&&e+s<t.byteLength;s++)o.push(t.getUint8(e+s));return Zo(o)}function Ko(t,e){const n=[];let o=0;for(;e+o<t.byteLength;){const s=t.getUint8(e+o);if(s===0)break;n.push(s),o++}return Zo(n)}function mN(t,e,n){const o=[];for(let s=0;s<n&&e+s<t.byteLength;s+=2)o.push(t.getUint16(e+s));return o[o.length-1]===0&&o.pop(),Zo(o)}function m_(t,e){const n=t.getUint8(e),o=J(t,e+1,n);return[n,o]}function Zo(t){return t.map(e=>String.fromCharCode(e)).join("")}function te(){for(let t=1;t<arguments.length;t++)for(const e in arguments[t])arguments[0][e]=arguments[t][e];return arguments[0]}function p_(t,e,n){let o=!1;Object.defineProperty(t,e,{get(){return o||(o=!0,Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n.apply(t),writable:!0})),t[e]},configurable:!0,enumerable:!0})}function __(t){if(typeof btoa<"u")return btoa(typeof t=="string"?t:Array.prototype.reduce.call(new Uint8Array(t),(e,n)=>e+String.fromCharCode(n),""));if(!(typeof Buffer>"u"))return typeof Buffer.from<"u"?Buffer.from(t).toString("base64"):new Buffer(t).toString("base64")}function pN(t){const e=t.substring(t.indexOf(",")+1);if(t.indexOf(";base64")!==-1)return typeof atob<"u"?Uint8Array.from(atob(e),o=>o.charCodeAt(0)).buffer:typeof Buffer>"u"?void 0:typeof Buffer.from<"u"?Buffer.from(e,"base64"):new Buffer(e,"base64");const n=decodeURIComponent(e);return typeof Buffer<"u"?typeof Buffer.from<"u"?Buffer.from(n):new Buffer(n):Uint8Array.from(n,o=>o.charCodeAt(0)).buffer}function _N(t,e,n){return g_(n,e-t.length)+t}function gN(t,e){return parseInt(t.replace(".",""),e)/Math.pow(e,(t.split(".")[1]||"").length)}function g_(t,e){return new Array(e+1).join(t)}const Ii=void 0,b_=0;function y_(t,e,n,o="string"){if(e===b_&&typeof DecompressionStream=="function"){const s=new DecompressionStream("deflate"),i=new Blob([t]).stream().pipeThrough(s);return o==="dataview"?new Response(i).arrayBuffer().then(l=>new DataView(l)):new Response(i).arrayBuffer().then(l=>new TextDecoder(n).decode(l))}return e!==void 0?Promise.reject(`Unknown compression method ${e}.`):t}const w_={USE_FILE:!0,USE_JFIF:!0,USE_PNG_FILE:!0,USE_EXIF:!0,USE_IPTC:!0,USE_XMP:!0,USE_ICC:!0,USE_MPF:!0,USE_PHOTOSHOP:!0,USE_THUMBNAIL:!0,USE_TIFF:!0,USE_JPEG:!0,USE_PNG:!0,USE_HEIC:!0,USE_AVIF:!0,USE_WEBP:!0,USE_GIF:!0,USE_MAKER_NOTES:!0};function $e(t){return t.map(e=>String.fromCharCode(e)).join("")}function Gc(t){if(t.length>=8){const e=$e(t.slice(0,8));if(e==="ASCII\0\0\0")return $e(t.slice(8));if(e==="JIS\0\0\0\0\0")return"[JIS encoded text]";if(e==="UNICODE\0")return"[Unicode encoded text]";if(e==="\0\0\0\0\0\0\0\0")return"[Undefined encoding]"}return"Undefined"}function Ai(t){return t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600}const Kc=18761,Zc=19789,Jn={BIG_ENDIAN:Zc,LITTLE_ENDIAN:Kc,getByteOrder:bN};function bN(t,e){if(t.getUint16(e)===Kc)return Kc;if(t.getUint16(e)===Zc)return Zc;throw new Error("Illegal byte order value. Faulty image.")}const k_={isTiffFile:yN,findTiffOffsets:kN};function yN(t){return!!t&&t.byteLength>=4&&wN(t)}function wN(t){const o=t.getUint16(0)===Jn.LITTLE_ENDIAN;return t.getUint16(2,o)===42}function kN(){return{hasAppMarkers:!0,tiffHeaderOffset:0}}const x_={isJpegFile:vN,findJpegOffsets:VN},xN=2,CN=65496,C_=2,xt=4,Ue=2,SN=2,EN=10,TN=18,S_=33,E_=79,T_=18,BN=8,Yc="ICC_PROFILE\0",B_=xt+Yc.length,NN=B_+1,N_="MPF\0",$_=65472,I_=65474,$N=65476,IN=65499,AN=65501,LN=65498,A_=65504,Qc=65505,L_=65506,FN=65517,MN=65519,ON=65534,DN=65535,F_="JFIF",M_="Exif",O_="http://ns.adobe.com/xap/1.0/\0",D_="http://ns.adobe.com/xmp/extension/\0",v_="Photoshop 3.0";function vN(t){return!!t&&t.byteLength>=xN&&t.getUint16(0)===CN}function VN(t){let e=C_,n,o,s,i,l,a,c,u,d;for(;e+xt+5<=t.byteLength;){if(PN(t,e))n=t.getUint16(e+Ue),o=e+Ue;else if(RN(t,e))n=t.getUint16(e+Ue),s=e+Ue;else if(HN(t,e))n=t.getUint16(e+Ue),i=e+SN;else if(qN(t,e))n=t.getUint16(e+Ue),l=e+EN;else if(WN(t,e))c||(c=[]),n=t.getUint16(e+Ue),c.push(ZN(e,n));else if(GN(t,e))c||(c=[]),n=t.getUint16(e+Ue),c.push(YN(e,n));else if(QN(t,e))n=t.getUint16(e+Ue),a=e+TN;else if(UN(t,e)){n=t.getUint16(e+Ue);const f=e+T_,h=n-(T_-Ue),m=t.getUint8(e+B_),g=t.getUint8(e+NN);u||(u=[]),u.push({offset:f,length:h,chunkNumber:m,chunksTotal:g})}else if(zN(t,e))n=t.getUint16(e+Ue),d=e+BN;else if(XN(t,e))n=t.getUint16(e+Ue);else if(JN(t,e)){e++;continue}else break;e+=Ue+n}return{hasAppMarkers:e>C_,fileDataOffset:o||s,jfifDataOffset:i,tiffHeaderOffset:l,iptcDataOffset:a,xmpChunks:c,iccChunks:u,mpfDataOffset:d}}function PN(t,e){return t.getUint16(e)===$_}function RN(t,e){return t.getUint16(e)===I_}function UN(t,e){const n=Yc.length;return t.getUint16(e)===L_&&J(t,e+xt,n)===Yc}function zN(t,e){const n=N_.length;return t.getUint16(e)===L_&&J(t,e+xt,n)===N_}function HN(t,e){const n=F_.length;return t.getUint16(e)===A_&&J(t,e+xt,n)===F_&&t.getUint8(e+xt+n)===0}function qN(t,e){const n=M_.length;return t.getUint16(e)===Qc&&J(t,e+xt,n)===M_&&t.getUint8(e+xt+n)===0}function WN(t,e){return t.getUint16(e)===Qc&&jN(t,e)}function jN(t,e){const n=O_.length;return J(t,e+xt,n)===O_}function GN(t,e){return t.getUint16(e)===Qc&&KN(t,e)}function KN(t,e){const n=D_.length;return J(t,e+xt,n)===D_}function ZN(t,e){return{dataOffset:t+S_,length:e-(S_-Ue)}}function YN(t,e){return{dataOffset:t+E_,length:e-(E_-Ue)}}function QN(t,e){const n=v_.length;return t.getUint16(e)===FN&&J(t,e+xt,n)===v_&&t.getUint8(e+xt+n)===0}function XN(t,e){const n=t.getUint16(e);return n>=A_&&n<=MN||n===ON||n===$_||n===I_||n===$N||n===IN||n===AN||n===LN}function JN(t,e){return t.getUint16(e)===DN}const V_={isPngFile:n6,findPngOffsets:o6},Xc=`PNG\r
|
|
165
237
|
|
|
166
|
-
`,ei=4,yt=4,Ar=0,ln=ei,ke=ei+yt,rc="XML:com.adobe.xmp\0",oc="tEXt",vn="iTXt",ti="zTXt",Zh="pHYs",Yh="tIME",GE="eXIf",WE="iCCP";function ZE(t){return!!t&&U(t,0,nc.length)===nc}function YE(t,e){const r={hasAppMarkers:!1};let s=nc.length;for(;s+ei+yt<=t.byteLength;){if(QE(t,s))r.hasAppMarkers=!0,r.pngHeaderOffset=s+ke;else if(KE(t,s)){const i=nT(t,s);i!==void 0&&(r.hasAppMarkers=!0,r.xmpChunks=[{dataOffset:i,length:t.getUint32(s+Ar)-(i-(s+ke))}])}else if(XE(t,s,e)){r.hasAppMarkers=!0;const i=U(t,s+ln,yt);r.pngTextChunks||(r.pngTextChunks=[]),r.pngTextChunks.push({length:t.getUint32(s+Ar),type:i,offset:s+ke})}else if(JE(t,s))r.hasAppMarkers=!0,r.tiffHeaderOffset=s+ke;else if(e&&eT(t,s)){r.hasAppMarkers=!0;const i=t.getUint32(s+Ar),l=s+ke,{profileName:a,compressionMethod:c,compressedProfileOffset:u}=rT(t,l);r.iccChunks||(r.iccChunks=[]),r.iccChunks.push({offset:u,length:i-(u-l),chunkNumber:1,chunksTotal:1,profileName:a,compressionMethod:c})}else tT(t,s)&&(r.hasAppMarkers=!0,r.pngChunkOffsets||(r.pngChunkOffsets=[]),r.pngChunkOffsets.push(s+Ar));s+=t.getUint32(s+Ar)+ei+yt+4}return r}function QE(t,e){return U(t,e+ln,yt)==="IHDR"}function KE(t,e){return U(t,e+ln,yt)===vn&&U(t,e+ke,rc.length)===rc}function XE(t,e,n){const r=U(t,e+ln,yt);return r===oc||r===vn||r===ti&&n}function JE(t,e){return U(t,e+ln,yt)===GE}function eT(t,e){return U(t,e+ln,yt)===WE}function tT(t,e){const n=[Zh,Yh],r=U(t,e+ln,yt);return n.includes(r)}function nT(t,e){e+=ke+rc.length+1+1;let s=0;for(;s<2&&e<t.byteLength;)t.getUint8(e)===0&&s++,e++;if(!(s<2))return e}function rT(t,e){const s=$r(t,e);e+=s.length+1;const i=t.getUint8(e);return e+=1,{profileName:s,compressionMethod:i,compressedProfileOffset:e}}function oT(t,e){return t.getUint32(e+4)}function sT(t,e,n,r){const{offsets:i,sizes:l}=iT(e,n+3),a=t.getUint8(i.offsetSize)>>4;l.item.extent.extentOffset=a;const c=t.getUint8(i.lengthSize)&15;l.item.extent.extentLength=c;const u=t.getUint8(i.baseOffsetSize)>>4;l.item.baseOffset=u;const d=lT(t,i.indexSize,e);l.item.extent.extentIndex=d!==void 0?d:0;const f=aT(t,i.itemCount,e);return{type:"iloc",items:cT(t,e,i,l,a,c,d,f),length:r}}function iT(t,e){const n={item:{dataReferenceIndex:2,extentCount:2,extent:{}}};t<2?(n.itemCount=2,n.item.itemId=2):t===2&&(n.itemCount=4,n.item.itemId=4),t===1||t===2?n.item.constructionMethod=2:n.item.constructionMethod=0;const r={offsetSize:e,lengthSize:e,baseOffsetSize:e+1,indexSize:e+1};return r.itemCount=e+2,r.items=r.itemCount+n.itemCount,r.item={itemId:0},r.item.constructionMethod=r.item.itemId+n.item.itemId,r.item.dataReferenceIndex=r.item.constructionMethod+n.item.constructionMethod,{offsets:r,sizes:n}}function lT(t,e,n){if(n===1||n===2)return t.getUint8(e)&15}function aT(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function cT(t,e,n,r,s,i,l,a){if(a===void 0)return[];const c=[];let u=n.items;for(let d=0;d<a;d++){const f={extents:[]};f.itemId=uT(t,u,e),u+=r.item.itemId,f.constructionMethod=e===1||e===2?t.getUint16(u)&15:void 0,u+=r.item.constructionMethod,f.dataReferenceIndex=t.getUint16(u),u+=r.item.dataReferenceIndex,f.baseOffset=ni(t,u,r.item.baseOffset),u+=r.item.baseOffset,f.extentCount=t.getUint16(u),u+=r.item.extentCount;for(let h=0;h<f.extentCount;h++){const _={};_.extentIndex=dT(t,e,u,l),u+=r.item.extent.extentIndex,_.extentOffset=ni(t,u,s),u+=r.item.extent.extentOffset,_.extentLength=ni(t,u,i),u+=r.item.extent.extentLength,f.extents.push(_)}c.push(f)}return c}function uT(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function dT(t,e,n,r){if((e===1||e===2)&&r>0)return ni(t,n,r)}function ni(t,e,n){return n===4?t.getUint32(e):n===8?(console.warn("This file uses an 8-bit offset which is currently not supported by ExifReader. Contact the maintainer to get it fixed."),oT(t,e)):0}const fT=1718909296,_T=1768977008,hT=1835365473,mT=1768714083,pT=1768517222,gT=1768842853,bT=1768973167,yT=1668246642,Qh=1165519206,sc=1835625829,wT=1970432288;function ri(t,e){const{length:i,contentOffset:l}=kT(t,e);if(i<8)return;const a=t.getUint32(e+4);if(a===fT)return AT(t,l,i);if(a===_T)return DT(t,e,l,i);if(a===bT)return OT(t,e,l,i);if(a===yT)return MT(t,l,i);const c=t.getUint8(l);return a===hT?LT(t,e,l+1,i):a===mT?sT(t,c,l+1,i):a===pT?PT(t,e,c,l+1,i):a===gT?RT(t,e,c,l+1,i):{type:void 0,length:i}}function kT(t,e){const l=t.getUint32(e);return xT(l)?{length:t.byteLength-e,contentOffset:e+4+4}:CT(l)&&ST(t,e)?{length:t.getUint32(e+12),contentOffset:e+4+4+8}:{length:l,contentOffset:e+4+4}}function xT(t){return t===0}function CT(t){return t===1}function ST(t,e){return t.getUint32(e+8)===0}function Kh(t){{const e={},n=ET(t);return n?(e.tiffHeaderOffset=TT(t,n),e.xmpChunks=IT(n),e.iccChunks=FT(n),e.hasAppMarkers=e.tiffHeaderOffset!==void 0||e.xmpChunks!==void 0||e.iccChunks!==void 0,e):{hasAppMarkers:!1}}}function ET(t){let r=0;for(;r+4+4<=t.byteLength;){const s=ri(t,r);if(s===void 0)break;if(s.type==="meta")return s;r+=s.length}}function TT(t,e){try{const n=BT(e).itemId,r=ic(e,n),s=r.baseOffset+r.extents[0].extentOffset;return NT(t,s)}catch{return}}function BT(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===Qh)}function ic(t,e){return t.subBoxes.find(n=>n.type==="iloc").items.find(n=>n.itemId===e)}function NT(t,e){return e+4+t.getUint32(e)}function IT(t){try{const e=$T(t).itemId,n=ic(t,e),r=ic(t,e).extents[0];return[{dataOffset:n.baseOffset+r.extentOffset,length:r.extentLength}]}catch{return}}function $T(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===sc&&e.contentType==="application/rdf+xml")}function FT(t){try{const e=t.subBoxes.find(n=>n.type==="iprp").subBoxes.find(n=>n.type==="ipco").properties.find(n=>n.type==="colr").icc;if(e)return[e]}catch{}}function AT(t,e,n){return{type:"ftyp",majorBrand:U(t,e,4),length:n}}function DT(t,e,n,r){return{type:"iprp",subBoxes:oi(t,n,r-(n-e)),length:r}}function OT(t,e,n,r){return{type:"ipco",properties:oi(t,n,r-(n-e)),length:r}}function MT(t,e,n){return{type:"colr",icc:VT(t,e),length:n}}function VT(t,e){const r=U(t,e,4);if(!(r!=="prof"&&r!=="rICC"))return{offset:e+4,length:t.getUint32(e+4),chunkNumber:1,chunksTotal:1}}function LT(t,e,n,r){return{type:"meta",subBoxes:oi(t,n+3,r-(n+3-e)),length:r}}function oi(t,e,n){const r=[Qh,sc],s=[];let i=e;for(;i<e+n;){const l=ri(t,i);if(l===void 0)break;l.type!==void 0&&(l.itemType===void 0||r.indexOf(l.itemType)!==-1)&&s.push(l),i+=l.length}return s}function PT(t,e,n,r,s){const{offsets:i}=vT(n,r);return{type:"iinf",itemInfos:oi(t,i.itemInfos,s-(i.itemInfos-e)),length:s}}function vT(t,e){const r={entryCount:e+3},s={};return t===0?s.entryCount=2:s.entryCount=4,r.itemInfos=r.entryCount+s.entryCount,{offsets:r}}function RT(t,e,n,r,s){r+=3;const l={type:"infe",length:s};return(n===0||n===1)&&(l.itemId=t.getUint16(r),r+=2,l.itemProtectionIndex=t.getUint16(r),r+=2,l.itemName=$r(t,r),r+=l.itemName.length+1),n>=2&&(n===2?(l.itemId=t.getUint16(r),r+=2):n===3&&(l.itemId=t.getUint32(r),r+=4),l.itemProtectionIndex=t.getUint16(r),r+=2,l.itemType=t.getUint32(r),r+=4,l.itemName=$r(t,r),r+=l.itemName.length+1,l.itemType===sc?(l.contentType=$r(t,r),r+=l.contentType.length+1,e+s>r&&(l.contentEncoding=$r(t,r),r+=l.contentEncoding.length+1)):l.itemType===wT&&(l.itemUri=$r(t,r),r+=l.itemUri.length+1)),l}const Xh={isHeicFile:UT,findHeicOffsets:zT};function UT(t){if(!t)return!1;const e=["heic","heix","hevc","hevx","heim","heis","hevm","hevs","mif1"];try{const n=ri(t,0);return n&&e.indexOf(n.majorBrand)!==-1}catch{return!1}}function zT(t){return Kh(t)}const Jh={isAvifFile:qT,findAvifOffsets:HT};function qT(t){if(!t)return!1;try{const e=ri(t,0);return e&&e.majorBrand==="avif"}catch{return!1}}function HT(t){return Kh(t)}const em={isWebpFile:jT,findOffsets:GT};function jT(t){const n="RIFF",s="WEBP";return!!t&&U(t,0,n.length)===n&&U(t,8,s.length)===s}function GT(t){const r="Exif\0\0";let i=12,l=!1,a,c,u,d;for(;i+8<t.byteLength;){const f=U(t,i,4),h=t.getUint32(i+4,!0);f==="EXIF"?(l=!0,U(t,i+8,r.length)===r?a=i+8+r.length:a=i+8):f==="XMP "?(l=!0,c=[{dataOffset:i+8,length:h}]):f==="ICCP"?(l=!0,u=[{offset:i+8,length:h,chunkNumber:1,chunksTotal:1}]):f==="VP8X"&&(l=!0,d=i+8),i+=8+(h%2===0?h:h+1)}return{hasAppMarkers:l,tiffHeaderOffset:a,xmpChunks:c,iccChunks:u,vp8xChunkOffset:d}}const tm={isGifFile:YT,findOffsets:QT},WT=6,ZT=["GIF87a","GIF89a"];function YT(t){return!!t&&ZT.includes(U(t,0,WT))}function QT(){return{gifHeaderOffset:0}}const nm={isXMLFile:KT,findOffsets:XT},rm=0,om="<?xpacket begin";function KT(t){return!!t&&U(t,rm,om.length)===om}function XT(t){const e=[];return e.push({dataOffset:rm,length:t.byteLength}),{xmpChunks:e}}const JT={parseAppMarkers:eB};function eB(t,e){if($h.isTiffFile(t))return an($h.findTiffOffsets(),"tiff","TIFF");if(Fh.isJpegFile(t))return an(Fh.findJpegOffsets(t),"jpeg","JPEG");if(Wh.isPngFile(t))return an(Wh.findPngOffsets(t,e),"png","PNG");if(Xh.isHeicFile(t))return an(Xh.findHeicOffsets(t),"heic","HEIC");if(Jh.isAvifFile(t))return an(Jh.findAvifOffsets(t),"avif","AVIF");if(em.isWebpFile(t))return an(em.findOffsets(t),"webp","WebP");if(tm.isGifFile(t))return an(tm.findOffsets(t),"gif","GIF");if(nm.isXMLFile(t))return an(nm.findOffsets(t),"xml","XML");throw new Error("Invalid image format")}function an(t,e,n){return H({},t,{fileType:{value:e,description:n}})}const z={ApertureValue:t=>Math.pow(Math.sqrt(2),t[0]/t[1]).toFixed(2),ColorSpace(t){return t===1?"sRGB":t===65535?"Uncalibrated":"Unknown"},ComponentsConfiguration(t){return t.map(e=>{if(e===49)return"Y";if(e===50)return"Cb";if(e===51)return"Cr";if(e===52)return"R";if(e===53)return"G";if(e===54)return"B"}).join("")},Contrast(t){return t===0?"Normal":t===1?"Soft":t===2?"Hard":"Unknown"},CustomRendered(t){return t===0?"Normal process":t===1?"Custom process":"Unknown"},ExposureMode(t){return t===0?"Auto exposure":t===1?"Manual exposure":t===2?"Auto bracket":"Unknown"},ExposureProgram(t){return t===0?"Undefined":t===1?"Manual":t===2?"Normal program":t===3?"Aperture priority":t===4?"Shutter priority":t===5?"Creative program":t===6?"Action program":t===7?"Portrait mode":t===8?"Landscape mode":t===9?"Bulb":"Unknown"},ExposureTime(t){if(t[0]/t[1]>.25){const e=t[0]/t[1];return Number.isInteger(e)?""+e:e.toFixed(1)}return t[0]!==0?`1/${Math.round(t[1]/t[0])}`:`0/${t[1]}`},FNumber:t=>`f/${t[0]/t[1]}`,FocalLength:t=>t[0]/t[1]+" mm",FocalPlaneResolutionUnit(t){return t===2?"inches":t===3?"centimeters":"Unknown"},LightSource:t=>t===1?"Daylight":t===2?"Fluorescent":t===3?"Tungsten (incandescent light)":t===4?"Flash":t===9?"Fine weather":t===10?"Cloudy weather":t===11?"Shade":t===12?"Daylight fluorescent (D 5700 – 7100K)":t===13?"Day white fluorescent (N 4600 – 5400K)":t===14?"Cool white fluorescent (W 3900 – 4500K)":t===15?"White fluorescent (WW 3200 – 3700K)":t===17?"Standard light A":t===18?"Standard light B":t===19?"Standard light C":t===20?"D55":t===21?"D65":t===22?"D75":t===23?"D50":t===24?"ISO studio tungsten":t===255?"Other light source":"Unknown",MeteringMode(t){return t===1?"Average":t===2?"CenterWeightedAverage":t===3?"Spot":t===4?"MultiSpot":t===5?"Pattern":t===6?"Partial":t===255?"Other":"Unknown"},ResolutionUnit(t){return t===2?"inches":t===3?"centimeters":"Unknown"},Saturation(t){return t===0?"Normal":t===1?"Low saturation":t===2?"High saturation":"Unknown"},SceneCaptureType(t){return t===0?"Standard":t===1?"Landscape":t===2?"Portrait":t===3?"Night scene":"Unknown"},Sharpness(t){return t===0?"Normal":t===1?"Soft":t===2?"Hard":"Unknown"},ShutterSpeedValue(t){const e=Math.pow(2,t[0]/t[1]);return e<=1?`${Math.round(1/e)}`:`1/${Math.round(e)}`},WhiteBalance(t){return t===0?"Auto white balance":t===1?"Manual white balance":"Unknown"},XResolution:t=>""+Math.round(t[0]/t[1]),YResolution:t=>""+Math.round(t[0]/t[1])},sm={11:"ProcessingSoftware",254:{name:"SubfileType",description:t=>({0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image",3:"Single page of multi-page reduced-resolution image",4:"Transparency mask",5:"Transparency mask of reduced-resolution image",6:"Transparency mask of multi-page image",7:"Transparency mask of reduced-resolution multi-page image",65537:"Alternate reduced-resolution image",4294967295:"Invalid"})[t]||"Unknown"},255:{name:"OldSubfileType",description:t=>({0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image"})[t]||"Unknown"},256:"ImageWidth",257:"ImageLength",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",263:{name:"Thresholding",description:t=>({1:"No dithering or halftoning",2:"Ordered dither or halfton",3:"Randomized dither"})[t]||"Unknown"},264:"CellWidth",265:"CellLength",266:{name:"FillOrder",description:t=>({1:"Normal",2:"Reversed"})[t]||"Unknown"},269:"DocumentName",270:"ImageDescription",271:"Make",272:"Model",273:"StripOffsets",274:{name:"Orientation",description:t=>t===1?"top-left":t===2?"top-right":t===3?"bottom-right":t===4?"bottom-left":t===5?"left-top":t===6?"right-top":t===7?"right-bottom":t===8?"left-bottom":"Undefined"},277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",280:"MinSampleValue",281:"MaxSampleValue",282:{name:"XResolution",description:z.XResolution},283:{name:"YResolution",description:z.YResolution},284:"PlanarConfiguration",285:"PageName",286:{name:"XPosition",description:t=>""+Math.round(t[0]/t[1])},287:{name:"YPosition",description:t=>""+Math.round(t[0]/t[1])},290:{name:"GrayResponseUnit",description:t=>({1:"0.1",2:"0.001",3:"0.0001",4:"1e-05",5:"1e-06"})[t]||"Unknown"},296:{name:"ResolutionUnit",description:z.ResolutionUnit},297:"PageNumber",301:"TransferFunction",305:"Software",306:"DateTime",315:"Artist",316:"HostComputer",317:"Predictor",318:{name:"WhitePoint",description:t=>t.map(e=>`${e[0]}/${e[1]}`).join(", ")},319:{name:"PrimaryChromaticities",description:t=>t.map(e=>`${e[0]}/${e[1]}`).join(", ")},321:"HalftoneHints",322:"TileWidth",323:"TileLength",330:"A100DataOffset",332:{name:"InkSet",description:t=>({1:"CMYK",2:"Not CMYK"})[t]||"Unknown"},337:"TargetPrinter",338:{name:"ExtraSamples",description:t=>({0:"Unspecified",1:"Associated Alpha",2:"Unassociated Alpha"})[t]||"Unknown"},339:{name:"SampleFormat",description:t=>{const e={1:"Unsigned",2:"Signed",3:"Float",4:"Undefined",5:"Complex int",6:"Complex float"};return Array.isArray(t)?t.map(n=>e[n]||"Unknown").join(", "):"Unknown"}},513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",529:{name:"YCbCrCoefficients",description:t=>t.map(e=>""+e[0]/e[1]).join("/")},530:"YCbCrSubSampling",531:{name:"YCbCrPositioning",description:t=>t===1?"centered":t===2?"co-sited":"undefined "+t},532:{name:"ReferenceBlackWhite",description:t=>t.map(e=>""+e[0]/e[1]).join(", ")},700:"ApplicationNotes",18246:"Rating",18249:"RatingPercent",33432:{name:"Copyright",description:t=>t.join("; ")},33550:"PixelScale",33723:"IPTC-NAA",33920:"IntergraphMatrix",33922:"ModelTiePoint",34118:"SEMInfo",34264:"ModelTransform",34377:"PhotoshopSettings",34665:"Exif IFD Pointer",34675:"ICC_Profile",34735:"GeoTiffDirectory",34736:"GeoTiffDoubleParams",34737:"GeoTiffAsciiParams",34853:"GPS Info IFD Pointer",40091:{name:"XPTitle",description:Io},40092:{name:"XPComment",description:Io},40093:{name:"XPAuthor",description:Io},40094:{name:"XPKeywords",description:Io},40095:{name:"XPSubject",description:Io},42112:"GDALMetadata",42113:"GDALNoData",50341:"PrintIM",50707:"DNGBackwardVersion",50708:"UniqueCameraModel",50709:"LocalizedCameraModel",50721:"ColorMatrix1",50722:"ColorMatrix2",50723:"CameraCalibration1",50724:"CameraCalibration2",50725:"ReductionMatrix1",50726:"ReductionMatrix2",50727:"AnalogBalance",50728:"AsShotNeutral",50729:"AsShotWhiteXY",50730:"BaselineExposure",50731:"BaselineNoise",50732:"BaselineSharpness",50734:"LinearResponseLimit",50735:"CameraSerialNumber",50736:"DNGLensInfo",50739:"ShadowScale",50741:{name:"MakerNoteSafety",description:t=>({0:"Unsafe",1:"Safe"})[t]||"Unknown"},50778:{name:"CalibrationIlluminant1",description:z.LightSource},50779:{name:"CalibrationIlluminant2",description:z.LightSource},50781:"RawDataUniqueID",50827:"OriginalRawFileName",50828:"OriginalRawFileData",50831:"AsShotICCProfile",50832:"AsShotPreProfileMatrix",50833:"CurrentICCProfile",50834:"CurrentPreProfileMatrix",50879:"ColorimetricReference",50885:"SRawType",50898:"PanasonicTitle",50899:"PanasonicTitle2",50931:"CameraCalibrationSig",50932:"ProfileCalibrationSig",50933:"ProfileIFD",50934:"AsShotProfileName",50936:"ProfileName",50937:"ProfileHueSatMapDims",50938:"ProfileHueSatMapData1",50939:"ProfileHueSatMapData2",50940:"ProfileToneCurve",50941:{name:"ProfileEmbedPolicy",description:t=>({0:"Allow Copying",1:"Embed if Used",2:"Never Embed",3:"No Restrictions"})[t]||"Unknown"},50942:"ProfileCopyright",50964:"ForwardMatrix1",50965:"ForwardMatrix2",50966:"PreviewApplicationName",50967:"PreviewApplicationVersion",50968:"PreviewSettingsName",50969:"PreviewSettingsDigest",50970:{name:"PreviewColorSpace",description:t=>({1:"Gray Gamma 2.2",2:"sRGB",3:"Adobe RGB",4:"ProPhoto RGB"})[t]||"Unknown"},50971:"PreviewDateTime",50972:"RawImageDigest",50973:"OriginalRawFileDigest",50981:"ProfileLookTableDims",50982:"ProfileLookTableData",51043:"TimeCodes",51044:"FrameRate",51058:"TStop",51081:"ReelName",51089:"OriginalDefaultFinalSize",51090:"OriginalBestQualitySize",51091:"OriginalDefaultCropSize",51105:"CameraLabel",51107:{name:"ProfileHueSatMapEncoding",description:t=>({0:"Linear",1:"sRGB"})[t]||"Unknown"},51108:{name:"ProfileLookTableEncoding",description:t=>({0:"Linear",1:"sRGB"})[t]||"Unknown"},51109:"BaselineExposureOffset",51110:{name:"DefaultBlackRender",description:t=>({0:"Auto",1:"None"})[t]||"Unknown"},51111:"NewRawImageDigest",51112:"RawToPreviewGain"};function Io(t){return new TextDecoder("utf-16").decode(new Uint8Array(t)).replace(/\u0000+$/,"")}const tB={33434:{name:"ExposureTime",description:z.ExposureTime},33437:{name:"FNumber",description:z.FNumber},34850:{name:"ExposureProgram",description:z.ExposureProgram},34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:{name:"OECF",description:()=>"[Raw OECF table data]"},34858:"TimeZoneOffset",34859:"SelfTimerMode",34864:{name:"SensitivityType",description:t=>({1:"Standard Output Sensitivity",2:"Recommended Exposure Index",3:"ISO Speed",4:"Standard Output Sensitivity and Recommended Exposure Index",5:"Standard Output Sensitivity and ISO Speed",6:"Recommended Exposure Index and ISO Speed",7:"Standard Output Sensitivity, Recommended Exposure Index and ISO Speed"})[t]||"Unknown"},34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",36864:{name:"ExifVersion",description:t=>ge(t)},36867:"DateTimeOriginal",36868:"DateTimeDigitized",36873:"GooglePlusUploadCode",36880:"OffsetTime",36881:"OffsetTimeOriginal",36882:"OffsetTimeDigitized",37121:{name:"ComponentsConfiguration",description:z.ComponentsConfiguration},37122:"CompressedBitsPerPixel",37377:{name:"ShutterSpeedValue",description:z.ShutterSpeedValue},37378:{name:"ApertureValue",description:z.ApertureValue},37379:"BrightnessValue",37380:"ExposureBiasValue",37381:{name:"MaxApertureValue",description:t=>Math.pow(Math.sqrt(2),t[0]/t[1]).toFixed(2)},37382:{name:"SubjectDistance",description:t=>t[0]/t[1]+" m"},37383:{name:"MeteringMode",description:z.MeteringMode},37384:{name:"LightSource",description:z.LightSource},37385:{name:"Flash",description:t=>t===0?"Flash did not fire":t===1?"Flash fired":t===5?"Strobe return light not detected":t===7?"Strobe return light detected":t===9?"Flash fired, compulsory flash mode":t===13?"Flash fired, compulsory flash mode, return light not detected":t===15?"Flash fired, compulsory flash mode, return light detected":t===16?"Flash did not fire, compulsory flash mode":t===24?"Flash did not fire, auto mode":t===25?"Flash fired, auto mode":t===29?"Flash fired, auto mode, return light not detected":t===31?"Flash fired, auto mode, return light detected":t===32?"No flash function":t===65?"Flash fired, red-eye reduction mode":t===69?"Flash fired, red-eye reduction mode, return light not detected":t===71?"Flash fired, red-eye reduction mode, return light detected":t===73?"Flash fired, compulsory flash mode, red-eye reduction mode":t===77?"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected":t===79?"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected":t===89?"Flash fired, auto mode, red-eye reduction mode":t===93?"Flash fired, auto mode, return light not detected, red-eye reduction mode":t===95?"Flash fired, auto mode, return light detected, red-eye reduction mode":"Unknown"},37386:{name:"FocalLength",description:z.FocalLength},37393:"ImageNumber",37394:{name:"SecurityClassification",description:t=>({C:"Confidential",R:"Restricted",S:"Secret",T:"Top Secret",U:"Unclassified"})[t]||"Unknown"},37395:"ImageHistory",37396:{name:"SubjectArea",description:t=>t.length===2?`Location; X: ${t[0]}, Y: ${t[1]}`:t.length===3?`Circle; X: ${t[0]}, Y: ${t[1]}, diameter: ${t[2]}`:t.length===4?`Rectangle; X: ${t[0]}, Y: ${t[1]}, width: ${t[2]}, height: ${t[3]}`:"Unknown"},37500:{name:"MakerNote",description:()=>"[Raw maker note data]"},37510:{name:"UserComment",description:Ka},37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",37724:"ImageSourceData",37888:{name:"AmbientTemperature",description:t=>t[0]/t[1]+" °C"},37889:{name:"Humidity",description:t=>t[0]/t[1]+" %"},37890:{name:"Pressure",description:t=>t[0]/t[1]+" hPa"},37891:{name:"WaterDepth",description:t=>t[0]/t[1]+" m"},37892:{name:"Acceleration",description:t=>t[0]/t[1]+" mGal"},37893:{name:"CameraElevationAngle",description:t=>t[0]/t[1]+" °"},40960:{name:"FlashpixVersion",description:t=>t.map(e=>String.fromCharCode(e)).join("")},40961:{name:"ColorSpace",description:z.ColorSpace},40962:"PixelXDimension",40963:"PixelYDimension",40964:"RelatedSoundFile",40965:"Interoperability IFD Pointer",41483:"FlashEnergy",41484:{name:"SpatialFrequencyResponse",description:()=>"[Raw SFR table data]"},41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:{name:"FocalPlaneResolutionUnit",description:z.FocalPlaneResolutionUnit},41492:{name:"SubjectLocation",description:([t,e])=>`X: ${t}, Y: ${e}`},41493:"ExposureIndex",41495:{name:"SensingMethod",description:t=>t===1?"Undefined":t===2?"One-chip color area sensor":t===3?"Two-chip color area sensor":t===4?"Three-chip color area sensor":t===5?"Color sequential area sensor":t===7?"Trilinear sensor":t===8?"Color sequential linear sensor":"Unknown"},41728:{name:"FileSource",description:t=>t===3?"DSC":"Unknown"},41729:{name:"SceneType",description:t=>t===1?"A directly photographed image":"Unknown"},41730:{name:"CFAPattern",description:()=>"[Raw CFA pattern table data]"},41985:{name:"CustomRendered",description:z.CustomRendered},41986:{name:"ExposureMode",description:z.ExposureMode},41987:{name:"WhiteBalance",description:z.WhiteBalance},41988:{name:"DigitalZoomRatio",description:t=>t[0]===0?"Digital zoom was not used":""+t[0]/t[1]},41989:{name:"FocalLengthIn35mmFilm",description:t=>t===0?"Unknown":t},41990:{name:"SceneCaptureType",description:z.SceneCaptureType},41991:{name:"GainControl",description:t=>t===0?"None":t===1?"Low gain up":t===2?"High gain up":t===3?"Low gain down":t===4?"High gain down":"Unknown"},41992:{name:"Contrast",description:z.Contrast},41993:{name:"Saturation",description:z.Saturation},41994:{name:"Sharpness",description:z.Sharpness},41995:{name:"DeviceSettingDescription",description:()=>"[Raw device settings table data]"},41996:{name:"SubjectDistanceRange",description:t=>t===1?"Macro":t===2?"Close view":t===3?"Distant view":"Unknown"},42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:{name:"LensSpecification",description:t=>{const e=parseFloat((t[0][0]/t[0][1]).toFixed(5)),n=parseFloat((t[1][0]/t[1][1]).toFixed(5)),r=`${e}-${n} mm`;if(t[3][1]===0)return`${r} f/?`;const s=1/(t[2][1]/t[2][1]/(t[3][0]/t[3][1]));return`${r} f/${parseFloat(s.toFixed(5))}`}},42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",42080:{name:"CompositeImage",description:t=>({1:"Not a Composite Image",2:"General Composite Image",3:"Composite Image Captured While Shooting"})[t]||"Unknown"},42081:"SourceImageNumberOfCompositeImage",42082:"SourceExposureTimesOfCompositeImage",42240:"Gamma",59932:"Padding",59933:"OffsetSchema",65e3:"OwnerName",65001:"SerialNumber",65002:"Lens",65100:"RawFile",65101:"Converter",65102:"WhiteBalance",65105:"Exposure",65106:"Shadows",65107:"Brightness",65108:"Contrast",65109:"Saturation",65110:"Sharpness",65111:"Smoothness",65112:"MoireFilter"},nB={0:{name:"GPSVersionID",description:t=>t[0]===2&&t[1]===2&&t[2]===0&&t[3]===0?"Version 2.2":"Unknown"},1:{name:"GPSLatitudeRef",description:t=>{const e=t.join("");return e==="N"?"North latitude":e==="S"?"South latitude":"Unknown"}},2:{name:"GPSLatitude",description:Js},3:{name:"GPSLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},4:{name:"GPSLongitude",description:Js},5:{name:"GPSAltitudeRef",description:t=>t===0?"Sea level":t===1?"Sea level reference (negative value)":"Unknown"},6:{name:"GPSAltitude",description:t=>t[0]/t[1]+" m"},7:{name:"GPSTimeStamp",description:t=>t.map(([e,n])=>{const r=e/n;return/^\d(\.|$)/.test(`${r}`)?`0${r}`:r}).join(":")},8:"GPSSatellites",9:{name:"GPSStatus",description:t=>{const e=t.join("");return e==="A"?"Measurement in progress":e==="V"?"Measurement Interoperability":"Unknown"}},10:{name:"GPSMeasureMode",description:t=>{const e=t.join("");return e==="2"?"2-dimensional measurement":e==="3"?"3-dimensional measurement":"Unknown"}},11:"GPSDOP",12:{name:"GPSSpeedRef",description:t=>{const e=t.join("");return e==="K"?"Kilometers per hour":e==="M"?"Miles per hour":e==="N"?"Knots":"Unknown"}},13:"GPSSpeed",14:{name:"GPSTrackRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},15:"GPSTrack",16:{name:"GPSImgDirectionRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},17:"GPSImgDirection",18:"GPSMapDatum",19:{name:"GPSDestLatitudeRef",description:t=>{const e=t.join("");return e==="N"?"North latitude":e==="S"?"South latitude":"Unknown"}},20:{name:"GPSDestLatitude",description:t=>t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600},21:{name:"GPSDestLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},22:{name:"GPSDestLongitude",description:t=>t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600},23:{name:"GPSDestBearingRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},24:"GPSDestBearing",25:{name:"GPSDestDistanceRef",description:t=>{const e=t.join("");return e==="K"?"Kilometers":e==="M"?"Miles":e==="N"?"Knots":"Unknown"}},26:"GPSDestDistance",27:{name:"GPSProcessingMethod",description:Ka},28:{name:"GPSAreaInformation",description:Ka},29:"GPSDateStamp",30:{name:"GPSDifferential",description:t=>t===0?"Measurement without differential correction":t===1?"Differential correction applied":"Unknown"},31:"GPSHPositioningError"},rB={1:"InteroperabilityIndex",2:{name:"InteroperabilityVersion",description:t=>ge(t)},4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight"},oB={45056:{name:"MPFVersion",description:t=>ge(t)},45057:"NumberOfImages",45058:"MPEntry",45059:"ImageUIDList",45060:"TotalFrames"},sB={4:{name:"ShotInfo",description:t=>t}},im=H({},sm,tB),lc="0th",lm="1st",am="exif",cm="gps",um="interoperability",dm="mpf",fm="canon",cn={[lc]:im,[lm]:sm,[am]:im,[cm]:nB,[um]:rB,[dm]:oB,[fm]:sB},_m={1:1,2:1,3:2,4:4,5:8,7:1,9:4,10:8,13:4},ac={BYTE:1,ASCII:2,SHORT:3,LONG:4,RATIONAL:5,UNDEFINED:7,SLONG:9,SRATIONAL:10,IFD:13},O={getAsciiValue:iB,getByteAt:hm,getAsciiAt:lB,getShortAt:aB,getLongAt:si,getRationalAt:cB,getUndefinedAt:uB,getSlongAt:cc,getSrationalAt:dB,getIfdPointerAt:fB,typeSizes:_m,tagTypes:ac,getTypeSize:_B};function iB(t){return t.map(e=>String.fromCharCode(e))}function hm(t,e){return t.getUint8(e)}function lB(t,e){return t.getUint8(e)}function aB(t,e,n){return t.getUint16(e,n===Pn.LITTLE_ENDIAN)}function si(t,e,n){return t.getUint32(e,n===Pn.LITTLE_ENDIAN)}function cB(t,e,n){return[si(t,e,n),si(t,e+4,n)]}function uB(t,e){return hm(t,e)}function cc(t,e,n){return t.getInt32(e,n===Pn.LITTLE_ENDIAN)}function dB(t,e,n){return[cc(t,e,n),cc(t,e+4,n)]}function fB(t,e,n){return si(t,e,n)}function _B(t){if(ac[t]===void 0)throw new Error("No such type found.");return _m[ac[t]]}const hB={1:O.getByteAt,2:O.getAsciiAt,3:O.getShortAt,4:O.getLongAt,5:O.getRationalAt,7:O.getUndefinedAt,9:O.getSlongAt,10:O.getSrationalAt,13:O.getIfdPointerAt};function mm(t,e,n){return e+O.getLongAt(t,e+4,n)}function Rn(t,e,n,r,s,i){const l=O.getTypeSize("SHORT"),a=12,c={},u=mB(t,r,s);r+=l;for(let d=0;d<u&&!(r+a>t.byteLength);d++){const f=pB(t,e,n,r,s,i);f!==void 0&&(c[f.name]={id:f.id,value:f.value,description:f.description},f.name==="MakerNote"&&(c[f.name].__offset=f.__offset)),r+=a}if(r<t.byteLength-O.getTypeSize("LONG")){const d=O.getLongAt(t,r,s);d!==0&&e===lc&&(c.Thumbnail=Rn(t,lm,n,n+d,s,i))}return c}function mB(t,e,n){return e+O.getTypeSize("SHORT")<=t.byteLength?O.getShortAt(t,e,n):0}function pB(t,e,n,r,s,i){const a=O.getTypeSize("SHORT"),c=a+O.getTypeSize("SHORT"),u=c+O.getTypeSize("LONG"),d=O.getShortAt(t,r,s),f=O.getShortAt(t,r+a,s),h=O.getLongAt(t,r+c,s);let _,g;if(O.typeSizes[f]===void 0||!i&&cn[e][d]===void 0)return;if(gB(f,h))g=r+u,_=pm(t,g,f,h,s);else if(g=O.getLongAt(t,r+u,s),bB(t,n,g,f,h)){const y=d===33723;_=pm(t,n+g,f,h,s,y)}else _="<faulty value>";f===O.tagTypes.ASCII&&(_=yB(_),_=wB(_));let m=`undefined-${d}`,p=_;if(cn[e][d]!==void 0)if(cn[e][d].name!==void 0&&cn[e][d].description!==void 0){m=cn[e][d].name;try{p=cn[e][d].description(_)}catch{p=gm(_)}}else f===O.tagTypes.RATIONAL||f===O.tagTypes.SRATIONAL?(m=cn[e][d],p=""+_[0]/_[1]):(m=cn[e][d],p=gm(_));return{id:d,name:m,value:_,description:p,__offset:g}}function gB(t,e){return O.typeSizes[t]*e<=O.getTypeSize("LONG")}function pm(t,e,n,r,s,i=!1){let l=[];i&&(r=r*O.typeSizes[n],n=O.tagTypes.BYTE);for(let a=0;a<r;a++)l.push(hB[n](t,e,s)),e+=O.typeSizes[n];return n===O.tagTypes.ASCII?l=O.getAsciiValue(l):l.length===1&&(l=l[0]),l}function bB(t,e,n,r,s){return e+n+O.typeSizes[r]*s<=t.byteLength}function yB(t){const e=[];let n=0;for(let r=0;r<t.length;r++){if(t[r]==="\0"){n++;continue}e[n]===void 0&&(e[n]=""),e[n]+=t[r]}return e}function wB(t){try{return t.map(e=>decodeURIComponent(escape(e)))}catch{return t}}function gm(t){return t instanceof Array?t.join(", "):t}const bm="Exif IFD Pointer",ym="GPS Info IFD Pointer",wm="Interoperability IFD Pointer",km={read:kB};function kB(t,e,n){const r=Pn.getByteOrder(t,e);let s=xB(t,e,r,n);return s=CB(s,t,e,r,n),s=SB(s,t,e,r,n),s=EB(s,t,e,r,n),{tags:s,byteOrder:r}}function xB(t,e,n,r){return Rn(t,lc,e,mm(t,e,n),n,r)}function CB(t,e,n,r,s){return t[bm]!==void 0?H(t,Rn(e,am,n,n+t[bm].value,r,s)):t}function SB(t,e,n,r,s){return t[ym]!==void 0?H(t,Rn(e,cm,n,n+t[ym].value,r,s)):t}function EB(t,e,n,r,s){return t[wm]!==void 0?H(t,Rn(e,um,n,n+t[wm].value,r,s)):t}const TB={read:BB},Dr=16;function BB(t,e,n){const r=Pn.getByteOrder(t,e),s=Rn(t,dm,e,mm(t,e,r),r,n);return NB(t,e,s,r)}function NB(t,e,n,r){if(!n.MPEntry)return n;const s=[];for(let i=0;i<Math.ceil(n.MPEntry.value.length/Dr);i++){s[i]={};const l=$o(n.MPEntry.value,i*Dr,O.getTypeSize("LONG"),r);s[i].ImageFlags=IB(l),s[i].ImageFormat=$B(l),s[i].ImageType=FB(l);const a=$o(n.MPEntry.value,i*Dr+4,O.getTypeSize("LONG"),r);s[i].ImageSize={value:a,description:""+a};const c=AB(i,n.MPEntry,r,e);s[i].ImageOffset={value:c,description:""+c};const u=$o(n.MPEntry.value,i*Dr+12,O.getTypeSize("SHORT"),r);s[i].DependentImage1EntryNumber={value:u,description:""+u};const d=$o(n.MPEntry.value,i*Dr+14,O.getTypeSize("SHORT"),r);s[i].DependentImage2EntryNumber={value:d,description:""+d},s[i].image=t.buffer.slice(c,c+a),Sh(s[i],"base64",function(){return Eh(this.image)})}return n.Images=s,n}function $o(t,e,n,r){if(r===Pn.LITTLE_ENDIAN){let i=0;for(let l=0;l<n;l++)i+=t[e+l]<<8*l;return i}let s=0;for(let i=0;i<n;i++)s+=t[e+i]<<8*(n-1-i);return s}function IB(t){const e=[t>>31&1,t>>30&1,t>>29&1],n=[];return e[0]&&n.push("Dependent Parent Image"),e[1]&&n.push("Dependent Child Image"),e[2]&&n.push("Representative Image"),{value:e,description:n.join(", ")||"None"}}function $B(t){const e=t>>24&7;return{value:e,description:e===0?"JPEG":"Unknown"}}function FB(t){const e=t&16777215;return{value:e,description:{196608:"Baseline MP Primary Image",65537:"Large Thumbnail (VGA equivalent)",65538:"Large Thumbnail (Full HD equivalent)",131073:"Multi-Frame Image (Panorama)",131074:"Multi-Frame Image (Disparity)",131075:"Multi-Frame Image (Multi-Angle)",0:"Undefined"}[e]||"Unknown"}}function AB(t,e,n,r){return DB(t)?0:$o(e.value,t*Dr+8,O.getTypeSize("LONG"),n)+r}function DB(t){return t===0}const OB={read:MB};function MB(t,e){const n=VB(t,e),r=RB(t,e,n);return{"Bits Per Sample":LB(t,e,n),"Image Height":PB(t,e,n),"Image Width":vB(t,e,n),"Color Components":r,Subsampling:r&&UB(t,e,r.value,n)}}function VB(t,e){return O.getShortAt(t,e)}function LB(t,e,n){if(3>n)return;const i=O.getByteAt(t,e+2);return{value:i,description:""+i}}function PB(t,e,n){if(5>n)return;const i=O.getShortAt(t,e+3);return{value:i,description:`${i}px`}}function vB(t,e,n){if(7>n)return;const i=O.getShortAt(t,e+5);return{value:i,description:`${i}px`}}function RB(t,e,n){if(8>n)return;const i=O.getByteAt(t,e+7);return{value:i,description:""+i}}function UB(t,e,n,r){if(8+3*n>r)return;const l=[];for(let a=0;a<n;a++){const c=e+8+a*3;l.push([O.getByteAt(t,c),O.getByteAt(t,c+1),O.getByteAt(t,c+2)])}return{value:l,description:l.length>1?zB(l)+qB(l):""}}function zB(t){const e={1:"Y",2:"Cb",3:"Cr",4:"I",5:"Q"};return t.map(n=>e[n[0]]).join("")}function qB(t){const e={17:"4:4:4 (1 1)",18:"4:4:0 (1 2)",20:"4:4:1 (1 4)",33:"4:2:2 (2 1)",34:"4:2:0 (2 2)",36:"4:2:1 (2 4)",65:"4:1:1 (4 1)",66:"4:1:0 (4 2)"};return t.length===0||t[0][1]===void 0||e[t[0][1]]===void 0?"":e[t[0][1]]}const HB={read:jB};function jB(t,e){const n=GB(t,e),r=XB(t,e,n),s=JB(t,e,n),i={"JFIF Version":WB(t,e,n),"Resolution Unit":ZB(t,e,n),XResolution:QB(t,e,n),YResolution:KB(t,e,n),"JFIF Thumbnail Width":r,"JFIF Thumbnail Height":s};if(r!==void 0&&s!==void 0){const l=e5(t,e,3*r.value*s.value,n);l&&(i["JFIF Thumbnail"]=l)}for(const l in i)i[l]===void 0&&delete i[l];return i}function GB(t,e){return O.getShortAt(t,e)}function WB(t,e,n){if(9>n)return;const i=O.getByteAt(t,e+7),l=O.getByteAt(t,e+7+1);return{value:i*256+l,description:i+"."+l}}function ZB(t,e,n){if(10>n)return;const i=O.getByteAt(t,e+9);return{value:i,description:YB(i)}}function YB(t){return t===0?"None":t===1?"inches":t===2?"cm":"Unknown"}function QB(t,e,n){if(12>n)return;const i=O.getShortAt(t,e+10);return{value:i,description:""+i}}function KB(t,e,n){if(14>n)return;const i=O.getShortAt(t,e+12);return{value:i,description:""+i}}function XB(t,e,n){if(15>n)return;const i=O.getByteAt(t,e+14);return{value:i,description:`${i}px`}}function JB(t,e,n){if(16>n)return;const i=O.getByteAt(t,e+15);return{value:i,description:`${i}px`}}function e5(t,e,n,r){return n===0||16+n>r?void 0:{value:t.buffer.slice(e+16,e+16+n),description:"<24-bit RGB pixel data>"}}const un={iptc:{256:{name:"Model Version",description:t=>((t[0]<<8)+t[1]).toString()},261:{name:"Destination",repeatable:!0},276:{name:"File Format",description:t=>((t[0]<<8)+t[1]).toString()},278:{name:"File Format Version",description:t=>((t[0]<<8)+t[1]).toString()},286:"Service Identifier",296:"Envelope Number",306:"Product ID",316:"Envelope Priority",326:{name:"Date Sent",description:uc},336:{name:"Time Sent",description:dc},346:{name:"Coded Character Set",description:xm,encoding_name:xm},356:"UNO",376:{name:"ARM Identifier",description:t=>((t[0]<<8)+t[1]).toString()},378:{name:"ARM Version",description:t=>((t[0]<<8)+t[1]).toString()},512:{name:"Record Version",description:t=>((t[0]<<8)+t[1]).toString()},515:"Object Type Reference",516:"Object Attribute Reference",517:"Object Name",519:"Edit Status",520:{name:"Editorial Update",description:t=>ge(t)==="01"?"Additional Language":"Unknown"},522:"Urgency",524:{name:"Subject Reference",repeatable:!0,description:t=>{const e=ge(t).split(":");return e[2]+(e[3]?"/"+e[3]:"")+(e[4]?"/"+e[4]:"")}},527:"Category",532:{name:"Supplemental Category",repeatable:!0},534:"Fixture Identifier",537:{name:"Keywords",repeatable:!0},538:{name:"Content Location Code",repeatable:!0},539:{name:"Content Location Name",repeatable:!0},542:"Release Date",547:"Release Time",549:"Expiration Date",550:"Expiration Time",552:"Special Instructions",554:{name:"Action Advised",description:t=>{const e=ge(t);return e==="01"?"Object Kill":e==="02"?"Object Replace":e==="03"?"Object Append":e==="04"?"Object Reference":"Unknown"}},557:{name:"Reference Service",repeatable:!0},559:{name:"Reference Date",repeatable:!0},562:{name:"Reference Number",repeatable:!0},567:{name:"Date Created",description:uc},572:{name:"Time Created",description:dc},574:{name:"Digital Creation Date",description:uc},575:{name:"Digital Creation Time",description:dc},577:"Originating Program",582:"Program Version",587:{name:"Object Cycle",description:t=>{const e=ge(t);return e==="a"?"morning":e==="p"?"evening":e==="b"?"both":"Unknown"}},592:{name:"By-line",repeatable:!0},597:{name:"By-line Title",repeatable:!0},602:"City",604:"Sub-location",607:"Province/State",612:"Country/Primary Location Code",613:"Country/Primary Location Name",615:"Original Transmission Reference",617:"Headline",622:"Credit",627:"Source",628:"Copyright Notice",630:{name:"Contact",repeatable:!0},632:"Caption/Abstract",634:{name:"Writer/Editor",repeatable:!0},637:{name:"Rasterized Caption",description:t=>t},642:"Image Type",643:{name:"Image Orientation",description:t=>{const e=ge(t);return e==="P"?"Portrait":e==="L"?"Landscape":e==="S"?"Square":"Unknown"}},647:"Language Identifier",662:{name:"Audio Type",description:t=>{const e=ge(t),n=e.charAt(0),r=e.charAt(1);let s="";return n==="1"?s+="Mono":n==="2"&&(s+="Stereo"),r==="A"?s+=", actuality":r==="C"?s+=", question and answer session":r==="M"?s+=", music, transmitted by itself":r==="Q"?s+=", response to a question":r==="R"?s+=", raw sound":r==="S"?s+=", scener":r==="V"?s+=", voicer":r==="W"&&(s+=", wrap"),s!==""?s:e}},663:{name:"Audio Sampling Rate",description:t=>parseInt(ge(t),10)+" Hz"},664:{name:"Audio Sampling Resolution",description:t=>{const e=parseInt(ge(t),10);return e+(e===1?" bit":" bits")}},665:{name:"Audio Duration",description:t=>{const e=ge(t);return e.length>=6?e.substr(0,2)+":"+e.substr(2,2)+":"+e.substr(4,2):e}},666:"Audio Outcue",698:"Short Document ID",699:"Unique Document ID",700:"Owner ID",712:{name:t=>t.length===2?"ObjectData Preview File Format":"Record 2 destination",description:t=>{if(t.length===2){const e=(t[0]<<8)+t[1];return e===0?"No ObjectData":e===1?"IPTC-NAA Digital Newsphoto Parameter Record":e===2?"IPTC7901 Recommended Message Format":e===3?"Tagged Image File Format (Adobe/Aldus Image data)":e===4?"Illustrator (Adobe Graphics data)":e===5?"AppleSingle (Apple Computer Inc)":e===6?"NAA 89-3 (ANPA 1312)":e===7?"MacBinary II":e===8?"IPTC Unstructured Character Oriented File Format (UCOFF)":e===9?"United Press International ANPA 1312 variant":e===10?"United Press International Down-Load Message":e===11?"JPEG File Interchange (JFIF)":e===12?"Photo-CD Image-Pac (Eastman Kodak)":e===13?"Microsoft Bit Mapped Graphics File [*.BMP]":e===14?"Digital Audio File [*.WAV] (Microsoft & Creative Labs)":e===15?"Audio plus Moving Video [*.AVI] (Microsoft)":e===16?"PC DOS/Windows Executable Files [*.COM][*.EXE]":e===17?"Compressed Binary File [*.ZIP] (PKWare Inc)":e===18?"Audio Interchange File Format AIFF (Apple Computer Inc)":e===19?"RIFF Wave (Microsoft Corporation)":e===20?"Freehand (Macromedia/Aldus)":e===21?'Hypertext Markup Language "HTML" (The Internet Society)':e===22?"MPEG 2 Audio Layer 2 (Musicom), ISO/IEC":e===23?"MPEG 2 Audio Layer 3, ISO/IEC":e===24?"Portable Document File (*.PDF) Adobe":e===25?"News Industry Text Format (NITF)":e===26?"Tape Archive (*.TAR)":e===27?"Tidningarnas Telegrambyrå NITF version (TTNITF DTD)":e===28?"Ritzaus Bureau NITF version (RBNITF DTD)":e===29?"Corel Draw [*.CDR]":`Unknown format ${e}`}return ge(t)}},713:{name:"ObjectData Preview File Format Version",description:(t,e)=>{const n={"00":{"00":"1"},"01":{"01":"1","02":"2","03":"3","04":"4"},"02":{"04":"4"},"03":{"01":"5.0","02":"6.0"},"04":{"01":"1.40"},"05":{"01":"2"},"06":{"01":"1"},11:{"01":"1.02"},20:{"01":"3.1","02":"4.0","03":"5.0","04":"5.5"},21:{"02":"2.0"}},r=ge(t);if(e["ObjectData Preview File Format"]){const s=ge(e["ObjectData Preview File Format"].value);if(n[s]&&n[s][r])return n[s][r]}return r}},714:"ObjectData Preview Data",1802:{name:"Size Mode",description:t=>t[0].toString()},1812:{name:"Max Subfile Size",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}},1882:{name:"ObjectData Size Announced",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}},1887:{name:"Maximum ObjectData Size",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}}}};function uc(t){const e=ge(t);return e.length>=8?e.substr(0,4)+"-"+e.substr(4,2)+"-"+e.substr(6,2):e}function dc(t){const e=ge(t);let n=e;return e.length>=6&&(n=e.substr(0,2)+":"+e.substr(2,2)+":"+e.substr(4,2),e.length===11&&(n+=e.substr(6,1)+e.substr(7,2)+":"+e.substr(9,2))),n}function xm(t){const e=ge(t);return e==="\x1B%G"?"UTF-8":e==="\x1B%5"?"Windows-1252":e==="\x1B%/G"?"UTF-8 Level 1":e==="\x1B%/H"?"UTF-8 Level 2":e==="\x1B%/I"?"UTF-8 Level 3":e==="\x1B/A"?"ISO-8859-1":e==="\x1B/B"?"ISO-8859-2":e==="\x1B/C"?"ISO-8859-3":e==="\x1B/D"?"ISO-8859-4":e==="\x1B/@"?"ISO-8859-5":e==="\x1B/G"?"ISO-8859-6":e==="\x1B/F"?"ISO-8859-7":e==="\x1B/H"?"ISO-8859-8":"Unknown"}const t5={get:n5};function n5(){if(typeof TextDecoder<"u")return TextDecoder}const Cm={decode:r5,TAG_HEADER_SIZE:5};function r5(t,e){const n=t5.get();if(typeof n<"u"&&t!==void 0)try{return new n(t).decode(e instanceof DataView?e.buffer:Uint8Array.from(e))}catch{}const r=e.map(s=>String.fromCharCode(s)).join("");return o5(r)}function o5(t){try{return decodeURIComponent(escape(t))}catch{return t}}const s5=943868237,Fo=4,ii=2,i5=1,l5=2,Sm=4,a5=Fo+ii+l5+Sm,c5=1028,Em=5,fc={read:u5};function u5(t,e,n){try{if(Array.isArray(t))return Tm(new DataView(Uint8Array.from(t).buffer),{size:t.length},0,n);const{naaBlock:r,dataOffset:s}=d5(t,e);return Tm(t,r,s,n)}catch{return{}}}function d5(t,e){for(;e+a5<=t.byteLength;){const n=f5(t,e);if(_5(n))return{naaBlock:n,dataOffset:e+n.headerSize};e+=n.headerSize+n.size+h5(n)}throw new Error("No IPTC NAA resource block.")}function f5(t,e){if(t.getUint32(e,!1)!==s5)throw new Error("Not an IPTC resource block.");const n=t.getUint8(e+Fo+ii),r=(n%2===0?n+1:n)+i5;return{headerSize:Fo+ii+r+Sm,type:t.getUint16(e+Fo),size:t.getUint32(e+Fo+ii+r)}}function _5(t){return t.type===c5}function h5(t){return t.size%2!==0?1:0}function Tm(t,e,n,r){const s={};let i;const l=n+e.size;for(;n<l&&n<t.byteLength;){const{tag:a,tagSize:c}=m5(t,n,s,i,r);if(a===null)break;a&&("encoding"in a&&(i=a.encoding),s[a.name]===void 0||a.repeatable===void 0?s[a.name]={id:a.id,value:a.value,description:a.description}:(s[a.name]instanceof Array||(s[a.name]=[{id:s[a.name].id,value:s[a.name].value,description:s[a.name].description}]),s[a.name].push({id:a.id,value:a.value,description:a.description}))),n+=Em+c}return s}function m5(t,e,n,r,s){if(p5(t,e))return{tag:null,tagSize:0};const a=t.getUint16(e+1),c=t.getUint16(e+3);if(!s&&!un.iptc[a])return{tag:void 0,tagSize:c};const u=g5(t,e+Em,c),d={id:a,name:b5(un.iptc[a],a,u),value:u,description:k5(un.iptc[a],u,n,r)};return S5(a)&&(d.repeatable=!0),E5(a)&&(d.encoding=un.iptc[a].encoding_name(u)),{tag:d,tagSize:c}}function p5(t,e){return t.getUint8(e)!==28}function g5(t,e,n){const r=[];for(let s=0;s<n;s++)r.push(t.getUint8(e+s));return r}function b5(t,e,n){return t?y5(t)?t:w5(t)?t.name(n):t.name:`undefined-${e}`}function y5(t){return typeof t=="string"}function w5(t){return typeof t.name=="function"}function k5(t,e,n,r){if(C5(t))try{return t.description(e,n)}catch{}return x5(t,e)?Cm.decode(r,e):e}function x5(t,e){return t&&e instanceof Array}function C5(t){return t&&t.description!==void 0}function S5(t){return un.iptc[t]&&un.iptc[t].repeatable}function E5(t){return un.iptc[t]&&un.iptc[t].encoding_name!==void 0}const li={"tiff:Orientation"(t){return t==="1"?"Horizontal (normal)":t==="2"?"Mirror horizontal":t==="3"?"Rotate 180":t==="4"?"Mirror vertical":t==="5"?"Mirror horizontal and rotate 270 CW":t==="6"?"Rotate 90 CW":t==="7"?"Mirror horizontal and rotate 90 CW":t==="8"?"Rotate 270 CW":t},"tiff:ResolutionUnit":t=>z.ResolutionUnit(parseInt(t,10)),"tiff:XResolution":t=>Or(z.XResolution,t),"tiff:YResolution":t=>Or(z.YResolution,t),"exif:ApertureValue":t=>Or(z.ApertureValue,t),"exif:GPSLatitude":Nm,"exif:GPSLongitude":Nm,"exif:FNumber":t=>Or(z.FNumber,t),"exif:FocalLength":t=>Or(z.FocalLength,t),"exif:FocalPlaneResolutionUnit":t=>z.FocalPlaneResolutionUnit(parseInt(t,10)),"exif:ColorSpace":t=>z.ColorSpace(T5(t)),"exif:ComponentsConfiguration"(t,e){if(/^\d, \d, \d, \d$/.test(e)){const n=e.split(", ").map(r=>r.charCodeAt(0));return z.ComponentsConfiguration(n)}return e},"exif:Contrast":t=>z.Contrast(parseInt(t,10)),"exif:CustomRendered":t=>z.CustomRendered(parseInt(t,10)),"exif:ExposureMode":t=>z.ExposureMode(parseInt(t,10)),"exif:ExposureProgram":t=>z.ExposureProgram(parseInt(t,10)),"exif:ExposureTime"(t){return Bm(t)?z.ExposureTime(t.split("/").map(e=>parseInt(e,10))):t},"exif:MeteringMode":t=>z.MeteringMode(parseInt(t,10)),"exif:Saturation":t=>z.Saturation(parseInt(t,10)),"exif:SceneCaptureType":t=>z.SceneCaptureType(parseInt(t,10)),"exif:Sharpness":t=>z.Sharpness(parseInt(t,10)),"exif:ShutterSpeedValue":t=>Or(z.ShutterSpeedValue,t),"exif:WhiteBalance":t=>z.WhiteBalance(parseInt(t,10))};function Or(t,e){return Bm(e)?t(e.split("/")):e}function T5(t){return t.substring(0,2)==="0x"?parseInt(t.substring(2),16):parseInt(t,10)}function Bm(t){return/^-?\d+\/-?\d+$/.test(t)}function Nm(t){const[e,n]=t.split(",");if(e!==void 0&&n!==void 0){const r=parseFloat(e),s=parseFloat(n),i=n.charAt(n.length-1);if(!Number.isNaN(r)&&!Number.isNaN(s))return""+(r+s/60)+i}return t}const B5={get:N5};function N5(){if(typeof DOMParser<"u")return new DOMParser;try{const{DOMParser:t,onErrorStopParsing:e}=__non_webpack_require__("@xmldom/xmldom");return new t({onError:e})}catch{return}}const Im={read:I5};function I5(t,e){const n={};if(typeof t=="string")return ai(n,t),n;const[r,s]=$5(t,e),i=ai(n,r);if(s){const l=ai(n,s);!i&&!l&&(delete n._raw,ai(n,_c(t,e)))}return n}function $5(t,e){if(e.length===0)return[];const n=[_c(t,e.slice(0,1))];return e.length>1&&n.push(_c(t,e.slice(1))),n}function _c(t,e){const n=e.reduce((i,l)=>i+l.length,0),r=new Uint8Array(n);let s=0;for(let i=0;i<e.length;i++){const l=e[i],a=t.buffer.slice(l.dataOffset,l.dataOffset+l.length);r.set(new Uint8Array(a),s),s+=l.length}return new DataView(r.buffer)}function ai(t,e){try{const{doc:n,raw:r}=F5(e);t._raw=(t._raw||"")+r;const s=$m(n);return H(t,Am(Fm(s,!0))),!0}catch{return!1}}function F5(t){const e=B5.get();if(!e)throw console.warn("Warning: DOMParser is not available. It is needed to be able to parse XMP tags."),new Error;const n=typeof t=="string"?t:U(t,0,t.byteLength),r=e.parseFromString(A5(n),"application/xml");if(r.documentElement.nodeName==="parsererror")throw new Error(r.documentElement.textContent);return{doc:r,raw:n}}function A5(t){return t.replace(/^.+(<\?xpacket begin)/,"$1").replace(/(<\?xpacket end=".*"\?>).+$/,"$1")}function $m(t){for(let e=0;e<t.childNodes.length;e++){if(t.childNodes[e].tagName==="x:xmpmeta")return $m(t.childNodes[e]);if(t.childNodes[e].tagName==="rdf:RDF")return t.childNodes[e]}throw new Error}function Fm(t,e=!1){const n=D5(t);return O5(n)?e?{}:M5(n[0]):V5(n)}function D5(t){const e=[];for(let n=0;n<t.childNodes.length;n++)e.push(t.childNodes[n]);return e}function O5(t){return t.length===1&&t[0].nodeName==="#text"}function M5(t){return t.nodeValue}function V5(t){const e={};return t.forEach(n=>{if(L5(n)){const r=P5(n);e[n.nodeName]!==void 0?(Array.isArray(e[n.nodeName])||(e[n.nodeName]=[e[n.nodeName]]),e[n.nodeName].push(r)):e[n.nodeName]=r}}),e}function L5(t){return t.nodeName&&t.nodeName!=="#text"}function P5(t){return{attributes:v5(t),value:Fm(t)}}function v5(t){const e={};for(let n=0;n<t.attributes.length;n++)e[t.attributes[n].nodeName]=decodeURIComponent(escape(t.attributes[n].value));return e}function Am(t){const e={};if(typeof t=="string")return t;for(const n in t){let r=t[n];Array.isArray(r)||(r=[r]),r.forEach(s=>{H(e,hc(s.attributes)),typeof s.value=="object"&&H(e,Dm(s.value))})}return e}function hc(t){const e={};for(const n in t)try{R5(n)&&(e[ui(n)]={value:t[n],attributes:{},description:Rt(t[n],n)})}catch{}return e}function R5(t){return t!=="rdf:parseType"&&!ci(t)}function ci(t){return t.split(":")[0]==="xmlns"}function ui(t){return/^MicrosoftPhoto(_\d+_)?:Rating$/i.test(t)?"RatingPercent":t.split(":")[1]}function Rt(t,e=void 0){if(Array.isArray(t)){const n=U5(t);return e&&typeof li[e]=="function"?li[e](t,n):n}if(typeof t=="object")return z5(t);try{return e&&typeof li[e]=="function"?li[e](t):decodeURIComponent(escape(t))}catch{return t}}function U5(t){return t.map(e=>e.value!==void 0?Rt(e.value):Rt(e)).join(", ")}function z5(t){const e=[];for(const n in t)e.push(`${q5(n)}: ${Rt(t[n].value)}`);return e.join("; ")}function q5(t){return t==="CiAdrCity"?"CreatorCity":t==="CiAdrCtry"?"CreatorCountry":t==="CiAdrExtadr"?"CreatorAddress":t==="CiAdrPcode"?"CreatorPostalCode":t==="CiAdrRegion"?"CreatorRegion":t==="CiEmailWork"?"CreatorWorkEmail":t==="CiTelWork"?"CreatorWorkPhone":t==="CiUrlWork"?"CreatorWorkUrl":t}function Dm(t){const e={};for(const n in t)try{ci(n)||(e[ui(n)]=H5(t[n],n))}catch{}return e}function H5(t,e){return G5(t)?W5(t,e):j5(t)?{value:"",attributes:{},description:""}:Om(t)?Mm(t,e):Vm(t)?Lm(t,e):Pm(t)?vm(t,e):Q5(t)?K5(t,e):mc(t,e)}function j5(t){return t.attributes["rdf:parseType"]==="Resource"&&typeof t.value=="string"&&t.value.trim()===""}function G5(t){return Array.isArray(t)}function W5(t,e){return mc(t[t.length-1],e)}function Om(t){return t.attributes["rdf:parseType"]==="Resource"&&t.value["rdf:value"]!==void 0||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]!==void 0}function Mm(t,e){const n=Ao(t);t.value["rdf:Description"]!==void 0&&(t=t.value["rdf:Description"]),H(n,Ao(t),Z5(t));const r=Y5(t);return{value:r,attributes:n,description:Rt(r,e)}}function Ao(t){const e={};for(const n in t.attributes)n!=="rdf:parseType"&&n!=="rdf:resource"&&!ci(n)&&(e[ui(n)]=t.attributes[n]);return e}function Z5(t){const e={};for(const n in t.value)n!=="rdf:value"&&!ci(n)&&(e[ui(n)]=t.value[n].value);return e}function Y5(t){return Um(t.value["rdf:value"])||t.value["rdf:value"].value}function Vm(t){return t.attributes["rdf:parseType"]==="Resource"||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]===void 0}function Lm(t,e){const n={value:{},attributes:{}};return t.value["rdf:Description"]!==void 0&&(H(n.value,hc(t.value["rdf:Description"].attributes)),H(n.attributes,Ao(t)),t=t.value["rdf:Description"]),H(n.value,Dm(t.value)),n.description=Rt(n.value,e),n}function Pm(t){return Object.keys(t.value).length===0&&t.attributes["xml:lang"]===void 0&&t.attributes["rdf:resource"]===void 0}function vm(t,e){const n=hc(t.attributes);return{value:n,attributes:{},description:Rt(n,e)}}function Q5(t){return Rm(t.value)!==void 0}function Rm(t){return t["rdf:Bag"]||t["rdf:Seq"]||t["rdf:Alt"]}function K5(t,e){let n=Rm(t.value).value["rdf:li"];const r=Ao(t),s=[];return n===void 0?n=[]:Array.isArray(n)||(n=[n]),n.forEach(i=>{s.push(X5(i))}),{value:s,attributes:r,description:Rt(s,e)}}function X5(t){return Om(t)?Mm(t):Vm(t)?Lm(t).value:Pm(t)?vm(t).value:mc(t)}function mc(t,e){const n=Um(t)||Am(t.value);return{value:n,attributes:Ao(t),description:Rt(n,e)}}function Um(t){return t.attributes&&t.attributes["rdf:resource"]}const Ut={CLOSED_SUBPATH_LENGTH:0,CLOSED_SUBPATH_BEZIER_LINKED:1,CLOSED_SUBPATH_BEZIER_UNLINKED:2,OPEN_SUBPATH_LENGTH:3,OPEN_SUBPATH_BEZIER_LINKED:4,OPEN_SUBPATH_BEZIER_UNLINKED:5,FILL_RULE:6,CLIPBOARD:7,INITIAL_FILL_RULE:8},zm=24,pc={2e3:{name:"PathInformation",description:J5},2999:{name:"ClippingPathName",description(t){const[,e]=Ch(t,0);return e}}};function J5(t){const n={},r=[];for(let s=0;s<t.byteLength;s+=2+zm){const i=O.getShortAt(t,s);gc[i]&&(n[i]||(n[i]=gc[i].description),r.push({type:i,path:gc[i].path(t,s+2)}))}return JSON.stringify({types:n,paths:r})}const gc={[Ut.CLOSED_SUBPATH_LENGTH]:{description:"Closed subpath length",path:(t,e)=>[O.getShortAt(t,e)]},[Ut.CLOSED_SUBPATH_BEZIER_LINKED]:{description:"Closed subpath Bezier knot, linked",path:di},[Ut.CLOSED_SUBPATH_BEZIER_UNLINKED]:{description:"Closed subpath Bezier knot, unlinked",path:di},[Ut.OPEN_SUBPATH_LENGTH]:{description:"Open subpath length",path:(t,e)=>[O.getShortAt(t,e)]},[Ut.OPEN_SUBPATH_BEZIER_LINKED]:{description:"Open subpath Bezier knot, linked",path:di},[Ut.OPEN_SUBPATH_BEZIER_UNLINKED]:{description:"Open subpath Bezier knot, unlinked",path:di},[Ut.FILL_RULE]:{description:"Path fill rule",path:()=>[]},[Ut.INITIAL_FILL_RULE]:{description:"Initial fill rule",path:(t,e)=>[O.getShortAt(t,e)]},[Ut.CLIPBOARD]:{description:"Clipboard",path:tN}};function di(t,e){const r=[];for(let s=0;s<zm;s+=8)r.push(eN(t,e+s));return r}function eN(t,e){const n=Un(t,e,8);return[Un(t,e+4,8),n]}function tN(t,e){return[[Un(t,e,8),Un(t,e+4,8),Un(t,e+8,8),Un(t,e+12,8)],Un(t,e+16,8)]}function Un(t,e,n){const r=O.getLongAt(t,e),s=r>>>31?-1:1,i=(r&2130706432)>>>32-n,l=r&parseInt(Th("1",32-n),2);return s*cE(i.toString(2)+"."+aE(l.toString(2),32-n,"0"),2)}const nN={read:sN},qm="8BIM",rN=2,oN=4,Hm=qm.length;function sN(t,e){const n=xh(new Uint8Array(t).buffer),r={};let s=0;for(;s<t.length;){const i=U(n,s,Hm);s+=Hm;const l=O.getShortAt(n,s);s+=rN;const{tagName:a,tagNameSize:c}=iN(n,s);s+=c;const u=O.getLongAt(n,s);if(s+=oN,i===qm){const d=xh(n.buffer,s,u),f={id:l,value:U(d,0,u)};if(pc[l]){try{f.description=pc[l].description(d)}catch{f.description="<no description formatter>"}r[a||pc[l].name]=f}else e&&(r[`undefined-${l}`]=f)}s+=u+u%2}return r}function iN(t,e){const[n,r]=Ch(t,e);return{tagName:r,tagNameSize:1+n+(n%2===0?1:0)}}const jm={desc:{name:"ICC Description"},cprt:{name:"ICC Copyright"},dmdd:{name:"ICC Device Model Description"},vued:{name:"ICC Viewing Conditions Description"},dmnd:{name:"ICC Device Manufacturer for Display"},tech:{name:"Technology"}},Gm={4:{name:"Preferred CMM type",value:(t,e)=>U(t,e,4),description:t=>t!==null?bc(t):""},8:{name:"Profile Version",value:(t,e)=>t.getUint8(e).toString(10)+"."+(t.getUint8(e+1)>>4).toString(10)+"."+(t.getUint8(e+1)%16).toString(10)},12:{name:"Profile/Device class",value:(t,e)=>U(t,e,4),description:t=>{switch(t.toLowerCase()){case"scnr":return"Input Device profile";case"mntr":return"Display Device profile";case"prtr":return"Output Device profile";case"link":return"DeviceLink profile";case"abst":return"Abstract profile";case"spac":return"ColorSpace profile";case"nmcl":return"NamedColor profile";case"cenc":return"ColorEncodingSpace profile";case"mid ":return"MultiplexIdentification profile";case"mlnk":return"MultiplexLink profile";case"mvis":return"MultiplexVisualization profile";default:return t}}},16:{name:"Color Space",value:(t,e)=>U(t,e,4)},20:{name:"Connection Space",value:(t,e)=>U(t,e,4)},24:{name:"ICC Profile Date",value:(t,e)=>lN(t,e).toISOString()},36:{name:"ICC Signature",value:(t,e)=>aN(t.buffer.slice(e,e+4))},40:{name:"Primary Platform",value:(t,e)=>U(t,e,4),description:t=>bc(t)},48:{name:"Device Manufacturer",value:(t,e)=>U(t,e,4),description:t=>bc(t)},52:{name:"Device Model Number",value:(t,e)=>U(t,e,4)},64:{name:"Rendering Intent",value:(t,e)=>t.getUint32(e),description:t=>{switch(t){case 0:return"Perceptual";case 1:return"Relative Colorimetric";case 2:return"Saturation";case 3:return"Absolute Colorimetric";default:return t}}},80:{name:"Profile Creator",value:(t,e)=>U(t,e,4)}};function lN(t,e){const n=t.getUint16(e),r=t.getUint16(e+2)-1,s=t.getUint16(e+4),i=t.getUint16(e+6),l=t.getUint16(e+8),a=t.getUint16(e+10);return new Date(Date.UTC(n,r,s,i,l,a))}function aN(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function bc(t){switch(t.toLowerCase()){case"appl":return"Apple";case"adbe":return"Adobe";case"msft":return"Microsoft";case"sunw":return"Sun Microsystems";case"sgi":return"Silicon Graphics";case"tgnt":return"Taligent";default:return t}}const Wm={read:gN},cN=84,uN=128,dN="acsp",fN="desc",_N="mluc",hN="text",mN="sig ",pN=12;function gN(t,e,n){return n&&e[0].compressionMethod!==Xs?bN(t,e):wN(t,e)}function bN(t,e){if(!yN(e[0].compressionMethod))return{};const n=new DataView(t.buffer.slice(e[0].offset,e[0].offset+e[0].length));return Nh(n,e[0].compressionMethod,"utf-8","dataview").then(Zm).catch(()=>({}))}function yN(t){return t===Bh}function wN(t,e){try{const n=e.reduce((l,a)=>l+a.length,0),r=new Uint8Array(n);let s=0;const i=kN(t);for(let l=1;l<=e.length;l++){const a=e.find(d=>d.chunkNumber===l);if(!a)throw new Error(`ICC chunk ${l} not found`);const c=i.slice(a.offset,a.offset+a.length),u=new Uint8Array(c);r.set(u,s),s+=u.length}return Zm(new DataView(r.buffer))}catch{return{}}}function kN(t){return Array.isArray(t)?new DataView(Uint8Array.from(t).buffer).buffer:t.buffer}function xN(t){return t.length<uN+4}function CN(t,e){return t.length<e+pN}function Zm(t){const e=t.buffer,n=t.getUint32();if(t.byteLength!==n)throw new Error("ICC profile length not matching");if(t.length<cN)throw new Error("ICC profile too short");const r={},s=Object.keys(Gm);for(let c=0;c<s.length;c++){const u=s[c],d=Gm[u],f=d.value(t,parseInt(u,10));let h=f;d.description&&(h=d.description(f)),r[d.name]={value:f,description:h}}if(fi(e.slice(36,40))!==dN)throw new Error("ICC profile: missing signature");if(xN(e))return r;const l=t.getUint32(128);let a=132;for(let c=0;c<l;c++){if(CN(e,a))return r;const u=U(t,a,4),d=t.getUint32(a+4),f=t.getUint32(a+8);if(d>e.length)return r;const h=U(t,d,4);if(h===fN){const _=t.getUint32(d+8);if(_>f)return r;const g=fi(e.slice(d+12,d+_+11));Do(r,u,g)}else if(h===_N){const _=t.getUint32(d+8),g=t.getUint32(d+12);let m=d+16;const p=[];for(let y=0;y<_;y++){const b=U(t,m+0,2),w=U(t,m+2,2),C=t.getUint32(m+4),E=t.getUint32(m+8),k=iE(t,d+E,C);p.push({languageCode:b,countryCode:w,text:k}),m+=g}if(_===1)Do(r,u,p[0].text);else{const y={};for(let b=0;b<p.length;b++)y[`${p[b].languageCode}-${p[b].countryCode}`]=p[b].text;Do(r,u,y)}}else if(h===hN){const _=fi(e.slice(d+8,d+f-7));Do(r,u,_)}else if(h===mN){const _=fi(e.slice(d+8,d+12));Do(r,u,_)}a=a+12}return r}function fi(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function Do(t,e,n){jm[e]?t[jm[e].name]={value:n,description:n}:t[e]={value:n,description:n}}const _i=27,SN={read:EN,SHOT_INFO_AUTO_ROTATE:_i};function EN(t,e,n,r,s){let i=Rn(t,fm,e,e+n,r,s);return i.ShotInfo&&(i=H({},i,TN(i.ShotInfo.value)),delete i.ShotInfo),i}function TN(t){const e={};return t[_i]!==void 0&&(e.AutoRotate={value:t[_i],description:BN(t[_i])}),e}function BN(t){return t===0?"None":t===1?"Rotate 90 CW":t===2?"Rotate 180":t===3?"Rotate 270 CW":"Unknown"}const NN={read:IN};function IN(t,e){return{"Image Width":$N(t,e),"Image Height":FN(t,e),"Bit Depth":AN(t,e),"Color Type":DN(t,e),Compression:ON(t,e),Filter:MN(t,e),Interlace:VN(t,e)}}function $N(t,e){if(e+0+4>t.byteLength)return;const s=O.getLongAt(t,e);return{value:s,description:`${s}px`}}function FN(t,e){if(e+4+4>t.byteLength)return;const s=O.getLongAt(t,e+4);return{value:s,description:`${s}px`}}function AN(t,e){if(e+8+1>t.byteLength)return;const s=O.getByteAt(t,e+8);return{value:s,description:`${s}`}}function DN(t,e){const s={0:"Grayscale",2:"RGB",3:"Palette",4:"Grayscale with Alpha",6:"RGB with Alpha"};if(e+9+1>t.byteLength)return;const i=O.getByteAt(t,e+9);return{value:i,description:s[i]||"Unknown"}}function ON(t,e){if(e+10+1>t.byteLength)return;const s=O.getByteAt(t,e+10);return{value:s,description:s===0?"Deflate/Inflate":"Unknown"}}function MN(t,e){if(e+11+1>t.byteLength)return;const s=O.getByteAt(t,e+11);return{value:s,description:s===0?"Adaptive":"Unknown"}}function VN(t,e){const s={0:"Noninterlaced",1:"Adam7 Interlace"};if(e+12+1>t.byteLength)return;const i=O.getByteAt(t,e+12);return{value:i,description:s[i]||"Unknown"}}const LN={read:zN},yc="STATE_KEYWORD",wc="STATE_COMPRESSION",kc="STATE_LANG",PN="STATE_TRANSLATED_KEYWORD",xc="STATE_TEXT",vN=1,RN=1,UN=6;function zN(t,e,n,r){const s={},i=[];for(let l=0;l<e.length;l++){const{offset:a,length:c,type:u}=e[l],d=qN(t,a,c,u,n);if(d instanceof Promise)i.push(d.then(({name:f,value:h,description:_})=>{try{if(Ih.USE_EXIF&&Qm(f,h))return{__exif:km.read(Xm(h),UN,r).tags};if(Ih.USE_IPTC&&Km(f,h))return{__iptc:fc.read(Xm(h),0,r)};if(f&&!Qm(f,h)&&!Km(f,h))return{[f]:{value:h,description:_}}}catch{}return{}}));else{const{name:f,value:h,description:_}=d;f&&(s[f]={value:h,description:_})}}return{readTags:s,readTagsPromise:i.length>0?Promise.all(i):void 0}}function qN(t,e,n,r,s){const i=[],l=[];let a,c=yc,u=Xs;for(let f=0;f<n&&e+f<t.byteLength;f++){if(c===wc){u=HN({type:r,dataView:t,offset:e+f}),r===vn&&(f+=vN),c=Ym(r,c);continue}else if(c===xc){a=new DataView(t.buffer.slice(e+f,e+n));break}const h=t.getUint8(e+f);h===0?c=Ym(r,c):c===yc?i.push(h):c===kc&&l.push(h)}if(u!==Xs&&!s)return{};const d=Nh(a,u,jN(r));return d instanceof Promise?d.then(f=>Cc(f,r,l,i)).catch(()=>Cc("<text using unknown compression>".split(""),r,l,i)):Cc(d,r,l,i)}function HN({type:t,dataView:e,offset:n}){if(t===vn){if(e.getUint8(n)===RN)return e.getUint8(n+1)}else if(t===ti)return e.getUint8(n);return Xs}function Ym(t,e){return e===yc&&[vn,ti].includes(t)?wc:e===wc?t===vn?kc:xc:e===kc?PN:xc}function jN(t){return t===oc||t===ti?"latin1":"utf-8"}function Cc(t,e,n,r){const s=WN(t);return{name:GN(e,n,r),value:s,description:e===vn?ZN(t):s}}function GN(t,e,n){const r=Fr(n);if(t===oc||e.length===0)return r;const s=Fr(e);return`${r} (${s})`}function WN(t){return t instanceof DataView?U(t,0,t.byteLength):t}function ZN(t){return Cm.decode("UTF-8",t)}function Qm(t,e){return t.toLowerCase()==="raw profile type exif"&&e.substring(1,5)==="exif"}function Km(t,e){return t.toLowerCase()==="raw profile type iptc"&&e.substring(1,5)==="iptc"}function Xm(t){const e=t.match(/\n(exif|iptc)\n\s*\d+\n([\s\S]*)$/);return YN(e[2].replace(/\n/g,""))}function YN(t){const e=new DataView(new ArrayBuffer(t.length/2));for(let n=0;n<t.length;n+=2)e.setUint8(n/2,parseInt(t.substring(n,n+2),16));return e}const QN={read:KN};function KN(t,e){const n={};for(let r=0;r<e.length;r++){const s=O.getLongAt(t,e[r]+Ar),i=U(t,e[r]+ln,yt);i===Zh?(n["Pixels Per Unit X"]=XN(t,e[r],s),n["Pixels Per Unit Y"]=JN(t,e[r],s),n["Pixel Units"]=e6(t,e[r],s)):i===Yh&&(n["Modify Date"]=t6(t,e[r],s))}return n}function XN(t,e,n){if(!hi(t,e,n,0,4))return;const i=O.getLongAt(t,e+ke+0);return{value:i,description:""+i}}function JN(t,e,n){if(!hi(t,e,n,4,4))return;const i=O.getLongAt(t,e+ke+4);return{value:i,description:""+i}}function e6(t,e,n){if(!hi(t,e,n,8,1))return;const i=O.getByteAt(t,e+ke+8);return{value:i,description:i===1?"meters":"Unknown"}}function t6(t,e,n){if(!hi(t,e,n,0,7))return;const s=O.getShortAt(t,e+ke),i=O.getByteAt(t,e+ke+2),l=O.getByteAt(t,e+ke+3),a=O.getByteAt(t,e+ke+4),c=O.getByteAt(t,e+ke+5),u=O.getByteAt(t,e+ke+6);return{value:[s,i,l,a,c,u],description:`${Mr(s,4)}-${Mr(i,2)}-${Mr(l,2)} ${Mr(a,2)}:${Mr(c,2)}:${Mr(u,2)}`}}function hi(t,e,n,r,s){return r+s<=n&&e+ke+r+s<=t.byteLength}function Mr(t,e){return`${"0".repeat(e-(""+t).length)}${t}`}const n6={read:s6},r6=4,o6=7;function s6(t,e){const n={},r=O.getByteAt(t,e);return n.Alpha=i6(r),n.Animation=l6(r),n.ImageWidth=Jm(t,e+r6),n.ImageHeight=Jm(t,e+o6),n}function i6(t){const e=t&16;return{value:e?1:0,description:e?"Yes":"No"}}function l6(t){const e=t&2;return{value:e?1:0,description:e?"Yes":"No"}}function Jm(t,e){const n=O.getByteAt(t,e)+256*O.getByteAt(t,e+1)+65536*O.getByteAt(t,e+2)+1;return{value:n,description:n+"px"}}const a6={read:c6};function c6(t){return{"GIF Version":u6(t),"Image Width":d6(t),"Image Height":f6(t),"Global Color Map":_6(t),"Bits Per Pixel":m6(t),"Color Resolution Depth":h6(t)}}function u6(t){if(6>t.byteLength)return;const r=U(t,3,3);return{value:r,description:r}}function d6(t){if(8>t.byteLength)return;const r=t.getUint16(6,!0);return{value:r,description:`${r}px`}}function f6(t){if(10>t.byteLength)return;const r=t.getUint16(8,!0);return{value:r,description:`${r}px`}}function _6(t){if(11>t.byteLength)return;const s=(t.getUint8(10)&128)>>>7;return{value:s,description:s===1?"Yes":"No"}}function h6(t){if(11>t.byteLength)return;const s=((t.getUint8(10)&112)>>>4)+1;return{value:s,description:`${s} ${s===1?"bit":"bits"}`}}function m6(t){if(11>t.byteLength)return;const s=(t.getUint8(10)&7)+1;return{value:s,description:`${s} ${s===1?"bit":"bits"}`}}const p6=[6,7,99],g6={get:b6};function b6(t,e,n){if(y6(e)){e.type="image/jpeg";const r=n+e.JPEGInterchangeFormat.value;e.image=t.buffer.slice(r,r+e.JPEGInterchangeFormatLength.value),Sh(e,"base64",function(){return Eh(this.image)})}return e}function y6(t){return t&&(t.Compression===void 0||p6.includes(t.Compression.value))&&t.JPEGInterchangeFormat&&t.JPEGInterchangeFormat.value&&t.JPEGInterchangeFormatLength&&t.JPEGInterchangeFormatLength.value}function e1(t){this.name="MetadataMissingError",this.message=t||"No Exif data",this.stack=new Error().stack}e1.prototype=new Error;const t1={MetadataMissingError:e1},w6={load:k6,loadView:n1,errors:t1};function k6(t,e={}){return x6(t)?(e.async=!0,C6(t,e).then(n=>Sc(n,e))):$6(t)?(e.async=!0,F6(t).then(n=>Sc(n,e))):Sc(t,e)}function x6(t){return typeof t=="string"}function C6(t,e){return/^\w+:\/\//.test(t)?typeof fetch<"u"?S6(t,e):E6(t,e):B6(t)?Promise.resolve(lE(t)):N6(t,e)}function S6(t,{length:e}={}){const n={method:"GET"};return Number.isInteger(e)&&e>=0&&(n.headers={range:`bytes=0-${e-1}`}),fetch(t,n).then(r=>r.arrayBuffer())}function E6(t,{length:e}={}){return new Promise((n,r)=>{const s={};Number.isInteger(e)&&e>=0&&(s.headers={range:`bytes=0-${e-1}`}),T6(t)(t,s,l=>{if(l.statusCode>=200&&l.statusCode<=299){const a=[];l.on("data",c=>a.push(Buffer.from(c))),l.on("error",c=>r(c)),l.on("end",()=>n(Buffer.concat(a)))}else r(`Could not fetch file: ${l.statusCode} ${l.statusMessage}`),l.resume()}).on("error",l=>r(l))})}function T6(t){return/^https:\/\//.test(t)?__non_webpack_require__("https").get:__non_webpack_require__("http").get}function B6(t){return/^data:[^;,]*(;base64)?,/.test(t)}function N6(t,{length:e}={}){return new Promise((n,r)=>{const s=I6();s.open(t,(i,l)=>{i?r(i):s.stat(t,(a,c)=>{if(a)r(a);else{const u=Math.min(c.size,e!==void 0?e:c.size),d=Buffer.alloc(u),f={buffer:d,length:u};s.read(l,f,h=>{h?r(h):s.close(l,_=>{_&&console.warn(`Could not close file ${t}:`,_),n(d)})})}})})})}function I6(){try{return __non_webpack_require__("fs")}catch{return}}function $6(t){return typeof File<"u"&&t instanceof File}function F6(t){return new Promise((e,n)=>{const r=new FileReader;r.onload=s=>e(s.target.result),r.onerror=()=>n(r.error),r.readAsArrayBuffer(t)})}function Sc(t,e){return A6(t)&&(t=new Uint8Array(t).buffer),n1(D6(t),e)}function A6(t){try{return Buffer.isBuffer(t)}catch{return!1}}function D6(t){try{return new DataView(t)}catch{return new kh(t)}}function n1(t,{expanded:e=!1,async:n=!1,includeUnknown:r=!1}={expanded:!1,async:!1,includeUnknown:!1}){let s=!1,i={};const l=[],{fileType:a,fileDataOffset:c,jfifDataOffset:u,tiffHeaderOffset:d,iptcDataOffset:f,xmpChunks:h,iccChunks:_,mpfDataOffset:g,pngHeaderOffset:m,pngTextChunks:p,pngChunkOffsets:y,vp8xChunkOffset:b,gifHeaderOffset:w}=JT.parseAppMarkers(t,n);if(O6(c)){s=!0;const S=OB.read(t,c);e?i.file=S:i=H({},i,S)}if(M6(u)){s=!0;const S=HB.read(t,u);e?i.jfif=S:i=H({},i,S)}if(V6(d)){s=!0;const{tags:S,byteOrder:T}=km.read(t,d,r);if(S.Thumbnail&&(i.Thumbnail=S.Thumbnail,delete S.Thumbnail),e?(i.exif=S,L6(i)):i=H({},i,S),S["IPTC-NAA"]&&!r1(f)){const B=fc.read(S["IPTC-NAA"].value,0,r);e?i.iptc=B:i=H({},i,B)}if(S.ApplicationNotes&&!o1(h)){const B=Im.read(Fr(S.ApplicationNotes.value));e?i.xmp=B:(delete B._raw,i=H({},i,B))}if(S.ImageSourceData){const B=nN.read(S.PhotoshopSettings.value,r);e?i.photoshop=B:i=H({},i,B)}if(S.ICC_Profile&&!s1(_)){const B=Wm.read(S.ICC_Profile.value,[{offset:0,length:S.ICC_Profile.value.length,chunkNumber:1,chunksTotal:1}]);e?i.icc=B:i=H({},i,B)}if(P6(S)){const B=SN.read(t,d,S.MakerNote.__offset,T,r);e?i.makerNotes=B:i=H({},i,B)}S.MakerNote&&delete S.MakerNote.__offset}if(r1(f)){s=!0;const S=fc.read(t,f,r);e?i.iptc=S:i=H({},i,S)}if(o1(h)){s=!0;const S=Im.read(t,h);e?i.xmp=S:(delete S._raw,i=H({},i,S))}if(s1(_)){s=!0;const S=Wm.read(t,_,n);S instanceof Promise?l.push(S.then(E)):E(S)}if(v6(g)){s=!0;const S=TB.read(t,g,r);e?i.mpf=S:i=H({},i,S)}if(R6(m)){s=!0;const S=NN.read(t,m);e?(i.png=i.png?H({},i.png,S):S,i.pngFile=S):i=H({},i,S)}if(U6(p)){s=!0;const{readTags:S,readTagsPromise:T}=LN.read(t,p,n,r);k(S),T&&l.push(T.then(B=>B.forEach(k)))}if(z6(y)){s=!0;const S=QN.read(t,y);e?i.png=i.png?H({},i.png,S):S:i=H({},i,S)}if(q6(b)){s=!0;const S=n6.read(t,b);e?i.riff=i.riff?H({},i.riff,S):S:i=H({},i,S)}if(H6(w)){s=!0;const S=a6.read(t,w);e?i.gif=i.gif?H({},i.gif,S):S:i=H({},i,S)}const C=g6.get(t,i.Thumbnail,d);if(C?(s=!0,i.Thumbnail=C):delete i.Thumbnail,a&&(e?(i.file||(i.file={}),i.file.FileType=a):i.FileType=a,s=!0),!s)throw new t1.MetadataMissingError;if(n)return Promise.all(l).then(()=>i);return i;function E(S){e?i.icc=S:i=H({},i,S)}function k(S){if(e){for(const T of["exif","iptc"]){const B=`__${T}`;S[B]&&(i[T]=i[T]?H({},i.exif,S[B]):S[B],delete S[B])}i.png=i.png?H({},i.png,S):S,i.pngText=i.pngText?H({},i.png,S):S}else i=H({},i,S.__exif?S.__exif:{},S.__iptc?S.__iptc:{},S),delete i.__exif,delete i.__iptc}}function O6(t){return t!==void 0}function M6(t){return t!==void 0}function V6(t){return t!==void 0}function L6(t){if(t.exif){if(t.exif.GPSLatitude&&t.exif.GPSLatitudeRef)try{t.gps=t.gps||{},t.gps.Latitude=Js(t.exif.GPSLatitude.value),t.exif.GPSLatitudeRef.value.join("")==="S"&&(t.gps.Latitude=-t.gps.Latitude)}catch{}if(t.exif.GPSLongitude&&t.exif.GPSLongitudeRef)try{t.gps=t.gps||{},t.gps.Longitude=Js(t.exif.GPSLongitude.value),t.exif.GPSLongitudeRef.value.join("")==="W"&&(t.gps.Longitude=-t.gps.Longitude)}catch{}if(t.exif.GPSAltitude&&t.exif.GPSAltitudeRef)try{t.gps=t.gps||{},t.gps.Altitude=t.exif.GPSAltitude.value[0]/t.exif.GPSAltitude.value[1],t.exif.GPSAltitudeRef.value===1&&(t.gps.Altitude=-t.gps.Altitude)}catch{}}}function r1(t){return t!==void 0}function o1(t){return Array.isArray(t)&&t.length>0}function s1(t){return Array.isArray(t)&&t.length>0}function P6(t){return t.Make&&t.Make.value&&Array.isArray(t.Make.value)&&t.Make.value[0]==="Canon"&&t.MakerNote&&t.MakerNote.__offset}function v6(t){return t!==void 0}function R6(t){return t!==void 0}function U6(t){return t!==void 0}function z6(t){return t!==void 0}function q6(t){return t!==void 0}function H6(t){return t!==void 0}async function i1(t,e=null){if(t.location)return t.location;try{const n=await w6.load(t.blobUrl||t.url||"",{expanded:!0});if(n.gps)return{latitude:n.gps.Latitude,longitude:n.gps.Longitude}}catch(n){console.error("Failed to load EXIF data from file:",n)}try{const{waitForLocation:n,location:r}=L0();if(e&&setTimeout(()=>{!r.value&&e&&Ue.warning(e)},1e3),window.location.protocol==="https:")await n();else if(window.location.href.match("localhost"))return{latitude:37.7749,longitude:-122.4194,accuracy:1,altitude:0,altitudeAccuracy:0};return r.value?{latitude:r.value.latitude,longitude:r.value.longitude,accuracy:r.value.accuracy,altitude:r.value.altitude,altitudeAccuracy:r.value.altitudeAccuracy}:null}catch(n){return console.error(n),null}}class mi{constructor(e,n){if(this.files=[],this.fileUploads=[],this.onErrorCb=null,this.onProgressCb=null,this.onCompleteCb=null,this.onAllCompleteCb=null,this.files=!Array.isArray(e)&&!(e instanceof FileList)?[e]:e,this.fileUploads=[],this.onErrorCb=null,this.onProgressCb=null,this.onCompleteCb=null,this.onAllCompleteCb=null,this.options={createPresignedUpload:null,completePresignedUpload:null,refreshFile:null,...te.value.fileUpload,...n},!this.options.createPresignedUpload||!this.options.completePresignedUpload)throw new Error("Please configure danxOptions.fileUpload: import { configure } from 'quasar-ui-danx';")}prepare(){for(const e of this.files){if(!(e instanceof File))throw Error("FileUpload constructor requires a File object or a list of File objects");e.id=ce.uid(),e.blobUrl=URL.createObjectURL(e);const n=new FormData;n.append("file",e),this.fileUploads.push({file:e,xhr:null,formData:n,isComplete:!1})}return this}onAllComplete(e){return this.onAllCompleteCb=e,this}onComplete(e){return this.onCompleteCb=e,this}onProgress(e){return this.onProgressCb=e,this}onError(e){return this.onErrorCb=e,this}errorHandler(e,n,r=null){this.onErrorCb&&this.onErrorCb({e,file:n,error:r})}async resolveLocation(e=null){for(const n of this.fileUploads)n.file.location=await i1(n.file,e),n.formData.append("meta",JSON.stringify(n.file.location));return this}fireProgressCallback(e,n){e.file.progress=n,this.onProgressCb&&this.onProgressCb({file:this.wrapFile(e.file),progress:n})}fireCompleteCallback(e,n){e.isComplete=!0,e.file.progress=1,this.onCompleteCb&&this.onCompleteCb({file:this.wrapFile(e.file),uploadedFile:n})}checkAllComplete(){this.onAllCompleteCb&&this.fileUploads.every(e=>e.isComplete)&&this.onAllCompleteCb({files:this.fileUploads})}wrapFile(e){return{id:e.id,name:e.name,size:e.size,type:e.type,progress:e.progress,location:e.location,blobUrl:e.blobUrl,url:"",__type:"BrowserFile"}}setXhrCallbacks(){var e,n,r;for(const s of this.fileUploads)(e=s.xhr)==null||e.addEventListener("error",i=>this.errorHandler(i,s.file),!1);if(this.onProgressCb)for(const s of this.fileUploads)(n=s.xhr)==null||n.upload.addEventListener("progress",i=>{const l=Math.min(.95,i.loaded/i.total);this.fireProgressCallback(s,l)},!1);for(const s of this.fileUploads)(r=s.xhr)==null||r.addEventListener("load",async i=>{try{let l=await this.completePresignedUpload(s);l=ie(l),this.fireCompleteCallback(s,l),this.checkAllComplete()}catch(l){this.errorHandler(i,s.file,l)}},!1)}async completePresignedUpload(e){if(this.fireProgressCallback(e,.95),!e.file.resource_id)throw new Error("File resource ID is required to complete presigned upload");if(!this.options.completePresignedUpload)throw new Error("Please configure danxOptions.fileUpload.completePresignedUpload");return await this.options.completePresignedUpload(e.file.resource_id,e)}async refreshFile(e){if(!this.options.refreshFile)return null;const n=await this.options.refreshFile(e.id);return n&&ie(n)}isTranscoding(e){var r;const n=((r=e==null?void 0:e.meta)==null?void 0:r.transcodes)||[];for(const s of Object.keys(n)){const i=n[s];if(i.status==="Pending"||i.status==="In Progress"){const l=at(i.started_at),a=l&&L.now().diff(l,"minutes");if(!(a!=null&&a.minutes)||a.minutes<30)return!0}}return!1}async upload(){var e;for(const n of this.fileUploads){const r=n.file.mimeType||n.file.type;if(!this.options.createPresignedUpload)throw new Error("Please configure danxOptions.fileUpload.createPresignedUpload");const s=await this.options.createPresignedUpload(this.options.directory||"",n.file.name,r);if(!s.url){Ue.error("Could not fetch presigned upload URL for file "+n.file.name);continue}const i=!s.url.match("upload-presigned-url-contents");n.file.resource_id=s.id;const l=new XMLHttpRequest;i?(l.open("PUT",s.url),l.setRequestHeader("Content-Type",r),n.body=n.file):(l.open("POST",s.url),n.body=n.formData),n.xhr=l}this.setXhrCallbacks();for(const n of this.fileUploads)(e=n.xhr)==null||e.send(n.body)}}const pi=o.ref([]),gi=o.ref([]);function j6(t){pi.value=[...pi.value,t]}function G6(t,e,n){gi.value.push({id:n,name:t,callback:e})}function W6(t){gi.value=gi.value.filter(e=>e.id!==t)}function l1(t,e,n){for(let r of pi.value)if(r.type===t&&r.key===e&&n.ctrlKey===!!r.ctrl&&n.altKey===!!r.alt&&n.shiftKey===!!r.shift)for(let s of gi.value)s.name===r.name&&s.callback(n)}function a1(t){return t.key?(""+t.key).toLowerCase():t.keyCode}function Z6(t){pi.value=t,window.addEventListener("keydown",e=>{l1("keydown",a1(e),e)}),window.addEventListener("keyup",e=>{l1("keyup",a1(e),e)})}function Y6(t){return new Promise((e,n)=>{const r=new FileReader;let s=null;r.onload=async i=>{var l;try{s=JSON.parse((l=i.target)==null?void 0:l.result),e(s)}catch(a){console.error("Invalid JSON file:",a),n(a)}},r.readAsText(t)})}function c1(t){const e=o.ref([]),n=o.ref(null),r=o.ref(null),s=h=>{e.value=[...e.value,...h.target.files],i(),new mi(h.target.files,t).prepare().onProgress(({file:_})=>{_&&l(_)}).onComplete(({file:_,uploadedFile:g})=>{_&&l(_,g)}).onError(({file:_,error:g})=>{console.error("Failed to upload",_,g),Ue.error(`Failed to upload ${_.name}: ${g}`)}).onAllComplete(()=>{n.value&&n.value({file:e.value[0],uploadedFile:e.value[0]}),i()}).upload()};function i(){r.value&&r.value(e.value)}function l(h,_=null){const g=e.value.findIndex(m=>m.id===h.id);g!==-1&&e.value.splice(g,1,_||h),i()}return{clearUploadedFiles:()=>{e.value=[],i(),n.value&&n.value({file:null,uploadedFile:null})},onRemove:h=>{const _=e.value.findIndex(g=>g.id===h.id);_!==-1&&e.value.splice(_,1),i(),n.value&&n.value({file:h,uploadedFile:h})},onComplete:h=>{n.value=h},onFilesChange:h=>{r.value=h},onDrop:h=>{var _;s({target:{files:(_=h.dataTransfer)==null?void 0:_.files}})},onFilesSelected:s,uploadedFiles:e}}const xe={activeRequests:{},url(t){var e;return t.startsWith("http")?t:(((e=te.value.request)==null?void 0:e.baseUrl)||"").replace(/\/$/,"")+"/"+t},async call(t,e){var g,m;e=e||{};const n=(e==null?void 0:e.requestKey)||t+JSON.stringify(e.params||""),r=!!(e!=null&&e.waitOnPrevious),s=!!(e!=null&&e.useMostRecentResponse),i=!r,l=Date.now(),a=xe.activeRequests[n],c={timestamp:l};if(xe.activeRequests[n]=c,i){a&&((g=a.abortController)==null||g.abort("Request was aborted due to a newer request being made"));const p=new AbortController;c.abortController=p,e.signal=p.signal}if(e.params){for(const[p,y]of Object.entries(e.params))typeof y=="object"&&y!==null&&(e.params[p]=JSON.stringify(y));t+=(t.match(/\?/)?"&":"?")+new URLSearchParams(e.params).toString(),delete e.params}let u,d;if(c.requestPromise=new Promise((p,y)=>{u=p,d=y}),r&&(a!=null&&a.requestPromise))try{await a.requestPromise}catch{}let f;try{f=await fetch(xe.url(t),e)}catch(p){if(e.ignoreAbort&&(p+"").match(/Request was aborted/)){const y={abort:!0};return u(y),y}throw d(p),p}Q6(f);let h=xe.activeRequests[n],_=await f.json();if(u(_),h.timestamp!==l){if(i)_={abort:!0};else if(s)do if(h=xe.activeRequests[n],_=await h.requestPromise,xe.activeRequests[n].timestamp===h.timestamp)break;while(h.timestamp!==xe.activeRequests[n].timestamp)}if(f.status===401){const p=(m=te.value.request)==null?void 0:m.onUnauthorized;return p?p(_,f):{error:!0,message:"Unauthorized",..._}}return f.status>400&&_.exception&&!_.error&&(_.error=!0),_},async poll(t,e,n,r){let s;r||(r=i=>!!i);do s=await xe.call(t,e),await ns(n||1e3);while(!r(s));return s},async get(t,e){var n;return await xe.call(t,{method:"get",...e,headers:{Accept:"application/json","Content-Type":"application/json",...(n=te.value.request)==null?void 0:n.headers,...e==null?void 0:e.headers}})},async post(t,e,n){var r;return await xe.call(t,{method:"post",body:e&&JSON.stringify(e),...n,headers:{Accept:"application/json","Content-Type":"application/json",...(r=te.value.request)==null?void 0:r.headers,...n==null?void 0:n.headers}})}};function Q6(t){const e=te.value.request;if(!e||!e.headers||!e.onAppVersionMismatch)return;const n=e.headers["X-App-Version"]||"",r=t.headers.get("X-App-Version");n&&n!==r&&e.onAppVersionMismatch(r)}async function K6(t,e,n,r){let s;n&&(s=e.value.find(i=>i.id===n)||(await t({id:n}))[0]),e.value=await t(r),s&&!e.value.find(i=>i.id===n)&&e.value.push(s)}function u1(t,e){return new URLSearchParams((e==null?void 0:e.replace(/.*\?/,""))||window.location.search).get(t)}function X6(t,e){return{async list(n,r){r={...r,ignoreAbort:!0};const s=await xe.post(`${t}/list`,n,r);return s.data&&(s.data=B0(s.data)),s},summary(n,r){return r={...r,ignoreAbort:!0},xe.post(`${t}/summary`,{filter:n},r)},async details(n,r,s){s={...s,ignoreAbort:!0},r&&(s.params={fields:r});const i=await xe.get(`${t}/${n.id}/details`,s);return ie(i)},fieldOptions(n){return xe.get(`${t}/field-options`,n)},async applyAction(n,r,s,i){var a,c;i={...i,waitOnPrevious:!0,useMostRecentResponse:!0,headers:{...i==null?void 0:i.headers,"X-Timestamp":Date.now().toString()}},s=s||{};const l=await xe.post(`${t}/${r?r.id+"/":""}apply-action`,{action:n,data:s},i);return l.item&&(l.item=ie(l.item)),(a=l.result)!=null&&a.__type&&((c=l.result)!=null&&c.id)&&(l.result=ie(l.result)),l},batchAction(n,r,s,i){return i={...i,waitOnPrevious:!0},xe.post(`${t}/batch-action`,{action:n,filter:{id:r.map(l=>l.id)},data:s},i)},export(n,r){return yh(`${t}/export`,r||"export.csv",{filter:n})},...e}}function d1(t=null){const e=o.ref(null),n=o.ref(null),r=o.ref(null),s=d=>{var f;e.value=null,new mi((f=d.target)==null?void 0:f.files[0],t).prepare().onProgress(({file:h})=>{h&&(e.value=h,r.value&&r.value(e.value))}).onComplete(({uploadedFile:h})=>{h&&(e.value=h,n.value&&n.value(e.value),r.value&&r.value(e.value))}).onError(({file:h,error:_})=>{console.error("Failed to upload",h,_),Ue.error(`Failed to upload ${h.name}: ${_}`)}).upload()},i=d=>{var f;s({target:{files:(f=d.dataTransfer)==null?void 0:f.files}})};return{isFileUploaded:o.computed(()=>e.value&&e.value.url),clearUploadedFile:()=>{e.value=null,r.value&&r.value(e.value),n.value&&n.value(e.value)},onComplete:d=>{n.value=d},onFileChange:d=>{r.value=d},onDrop:i,onFileSelected:s,uploadedFile:e}}function wt(t,e){localStorage.setItem(t,JSON.stringify(e))}function kt(t,e=null){const n=localStorage.getItem(t);try{return n?JSON.parse(n):e}catch{return}}function J6(t,e=""){const n=Ec(t,e),r=document.createElement("style");r.innerHTML=`:root {${n}}`,document.head.appendChild(r)}function Ec(t,e=""){return Object.entries(t).map(([n,r])=>typeof r=="object"?Ec(r,`${e}${n}-`):`--${e}${n}: ${r}`).join(";")}const eI={version:"0.4.99"},{version:f1}=eI;function tI(){console.log(`Installing Danx UI ${f1}... Nothing to do really.`)}x.ActionButton=Mo,x.ActionForm=Ld,x.ActionFormDialog=U2,x.ActionMenu=ha,x.ActionTable=E0,x.ActionTableColumn=a0,x.ActionTableHeaderColumn=f0,x.ActionTableLayout=SC,x.ActionToolbar=T0,x.ActionVnode=tx,x.AddressFormat=jk,x.AuditHistoryItem=MC,x.AuditHistoryItemValue=ba,x.AutoHeightTransition=fx,x.BadgeTab=ix,x.BooleanField=yl,x.CaretDownIcon=Ju,x.CarouselHeader=wd,x.CodeViewer=ll,x.CodeViewerCollapsed=Hu,x.CodeViewerFooter=ju,x.CollapsableFiltersSidebar=y0,x.CollapsableSidebar=Rd,x.ColumnListItem=pa,x.ColumnSettingsDialog=R3,x.ConfirmActionDialog=md,x.ConfirmDialog=Ot,x.ConfirmPasswordField=Kw,x.ContentDrawer=Tl,x.CreateNewWithNameDialog=pd,x.DateField=kl,x.DateRangeField=xl,x.DateTime=L,x.DateTimeField=a4,x.DateTimePicker=Cl,x.DragAndDrop=ma,x.DragHandleDotsIcon=ed,x.DragHandleIcon=td,x.EditOnClickTextField=_4,x.EditableDiv=Sd,x.EmptyTableState=C0,x.ExportButton=Vc,x.FILE_PLACEHOLDERS=cl,x.FieldLabel=ht,x.FileMetadataDialog=hl,x.FilePreview=no,x.FileRenderer=ml,x.FileUpload=mi,x.FileUploadButton=m4,x.FilterIcon=nd,x.FilterItem=g0,x.FilterList=b0,x.FilterListToggle=w0,x.FilterToolbarLayout=nC,x.FilterableField=ga,x.FlashMessages=Ue,x.FlatListFormat=Gk,x.FullScreenCarouselDialog=Cd,x.FullScreenDialog=Gw,x.GoogleDocsIcon=rd,x.GpsCoordinatesFormat=Yk,x.HandleDraggable=c0,x.IconWithTextFormat=Kk,x.ImageIcon=al,x.IndicatorTab=cx,x.InfoDialog=bl,x.InlineDateTimeField=b4,x.InputDialog=Zw,x.IntegerField=Td,x.InteractiveTooltip=rx,x.LabelPillWidget=$3,x.LabelValueBlock=S4,x.LabelValueFormat=Jk,x.LabelValuePillWidget=D3,x.LabeledInput=wl,x.LanguageBadge=Qr,x.ListDragAndDrop=u0,x.ListItemDraggable=d0,x.ListTransition=Hd,x.MIME_TYPES=Xr,x.MarkdownContent=Xu,x.MaxHeightTransition=_x,x.MaxLengthCounter=Ed,x.MultiFileField=Bd,x.MultiKeywordField=Nd,x.NavigationMenu=PC,x.NewPasswordField=B4,x.NumberField=to,x.NumberRangeField=_s,x.PanelsDrawer=x0,x.PanelsDrawerTabs=k0,x.PdfIcon=od,x.PercentIcon=sd,x.PopoverMenu=qd,x.PreviousNextControls=cd,x.RefreshButton=Lc,x.RenderComponent=zd,x.RenderVnode=xn,x.RenderedForm=El,x.RenderedFormDialog=gk,x.SERVER_TZ=Ha,x.SaveStateIndicator=Vd,x.SelectDrawer=A4,x.SelectField=or,x.SelectOrCreateField=v4,x.SelectWithChildrenField=Id,x.SelectionMenuField=L4,x.ShowHideButton=Vo,x.SingleFileField=$d,x.SkipNextIcon=id,x.SkipPreviousIcon=ld,x.SlideTransition=hx,x.SliderNumberField=G4,x.StaggeredListTransition=I3,x.SvgImg=vd,x.TableSummaryRow=S0,x.TextField=wn,x.ThumbnailStrip=pl,x.TitleColumnFormat=_0,x.TranscodeNavigator=xd,x.TrashIcon=ls,x.VirtualCarousel=Lk,x.VisibleColumnsToggleButtons=j3,x.WarningIcon=ad,x.WysiwygField=Md,x.XIcon=rr,x.activeActionVnode=Dn,x.addHotkey=j6,x.applyCssVars=J6,x.autoRefreshObject=I0,x.buildCssVars=Ec,x.canPreviewInline=q2,x.centerTruncate=nE,x.cloneDeep=Bb,x.configure=g1,x.danxOptions=te,x.dbDateTime=Ga,x.diffInDays=oE,x.download=Ks,x.downloadFile=yh,x.downloadFileResponse=wh,x.fBoolean=ph,x.fCurrency=Qs,x.fCurrencyNoCents=J8,x.fDate=Ft,x.fDateTime=Ys,x.fDateTimeMs=W8,x.fDuration=K8,x.fJSON=Xi,x.fLocalizedDateTime=Ir,x.fMarkdownCode=Db,x.fMillisecondsToDuration=Q8,x.fNameOrCount=bh,x.fNumber=vt,x.fPercent=gh,x.fPhone=rE,x.fQDate=G8,x.fSecondsToDuration=Ya,x.fSecondsToTime=Y8,x.fShortCurrency=eE,x.fShortNumber=mh,x.fShortSize=tE,x.fTimeAgo=X8,x.fetchResourceListWithSelected=K6,x.getFileExtension=z2,x.getFilterFromUrl=p0,x.getFootnotes=ss,x.getItem=kt,x.getMimeType=yn,x.getOptimizedUrl=yd,x.getPreviewUrl=eo,x.getResponseHeader=Qa,x.getThumbUrl=bd,x.getUrlParam=u1,x.highlightJSON=Ji,x.highlightSyntax=tr,x.highlightYAML=el,x.importJson=Y6,x.incrementName=Au,x.install=tI,x.isExternalLinkFile=ds,x.isImage=cs,x.isJSON=Du,x.isPdf=ul,x.isText=us,x.isVideo=Jr,x.latestCallOnly=Ki,x.listen=G6,x.localizedDateTime=ja,x.mapSortBy=m0,x.metersToMiles=$b,x.milesToMeters=Fb,x.minmax=Ib,x.notify=vC,x.parseCoords=Ab,x.parseDateTime=at,x.parseGenericDateTime=hh,x.parseInline=nt,x.parseMarkdownCode=os,x.parseMarkdownJSON=Ou,x.parseMarkdownYAML=Mu,x.parseQDate=Wa,x.parseQDateTime=Za,x.parseSqlDateTime=Z8,x.pollUntil=Nb,x.refreshApplication=HC,x.registerHotkeys=Z6,x.registerStickyScrolling=h0,x.remoteDateTime=_h,x.remove=bo,x.renderMarkdown=Ku,x.renderTokens=Kr,x.replace=ka,x.request=xe,x.resetParserState=ol,x.resolveFileLocation=i1,x.setItem=wt,x.sleep=ns,x.stopAutoRefreshObject=$0,x.storeObject=ie,x.storeObjects=B0,x.tokenizeBlocks=is,x.uniqueBy=O0,x.unlisten=W6,x.useActionRoutes=X6,x.useActionStore=qC,x.useActions=UC,x.useCodeFormat=Vu,x.useCodeViewerCollapse=Uu,x.useCodeViewerEditor=qu,x.useCompatibility=L0,x.useControls=G3,x.useDebounceFn=qt,x.useFileNavigation=gd,x.useFilePreview=dl,x.useKeyboardNavigation=fl,x.useMultiFileUpload=c1,x.useSingleFileUpload=d1,x.useTableColumns=EC,x.useThumbnailScroll=kd,x.useTranscodeLoader=Pd,x.useVirtualCarousel=_l,x.version=f1,x.waitForRef=Qi,x.withDefaultActions=zC,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
|
|
238
|
+
`,Li=4,At=4,Yo=0,Cn=Li,Fe=Li+At,Jc="XML:com.adobe.xmp\0",eu="tEXt",eo="iTXt",Fi="zTXt",P_="pHYs",R_="tIME",e6="eXIf",t6="iCCP";function n6(t){return!!t&&J(t,0,Xc.length)===Xc}function o6(t,e){const o={hasAppMarkers:!1};let s=Xc.length;for(;s+Li+At<=t.byteLength;){if(r6(t,s))o.hasAppMarkers=!0,o.pngHeaderOffset=s+Fe;else if(s6(t,s)){const i=u6(t,s);i!==void 0&&(o.hasAppMarkers=!0,o.xmpChunks=[{dataOffset:i,length:t.getUint32(s+Yo)-(i-(s+Fe))}])}else if(i6(t,s,e)){o.hasAppMarkers=!0;const i=J(t,s+Cn,At);o.pngTextChunks||(o.pngTextChunks=[]),o.pngTextChunks.push({length:t.getUint32(s+Yo),type:i,offset:s+Fe})}else if(l6(t,s))o.hasAppMarkers=!0,o.tiffHeaderOffset=s+Fe;else if(e&&a6(t,s)){o.hasAppMarkers=!0;const i=t.getUint32(s+Yo),l=s+Fe,{profileName:a,compressionMethod:c,compressedProfileOffset:u}=d6(t,l);o.iccChunks||(o.iccChunks=[]),o.iccChunks.push({offset:u,length:i-(u-l),chunkNumber:1,chunksTotal:1,profileName:a,compressionMethod:c})}else c6(t,s)&&(o.hasAppMarkers=!0,o.pngChunkOffsets||(o.pngChunkOffsets=[]),o.pngChunkOffsets.push(s+Yo));s+=t.getUint32(s+Yo)+Li+At+4}return o}function r6(t,e){return J(t,e+Cn,At)==="IHDR"}function s6(t,e){return J(t,e+Cn,At)===eo&&J(t,e+Fe,Jc.length)===Jc}function i6(t,e,n){const o=J(t,e+Cn,At);return o===eu||o===eo||o===Fi&&n}function l6(t,e){return J(t,e+Cn,At)===e6}function a6(t,e){return J(t,e+Cn,At)===t6}function c6(t,e){const n=[P_,R_],o=J(t,e+Cn,At);return n.includes(o)}function u6(t,e){e+=Fe+Jc.length+1+1;let s=0;for(;s<2&&e<t.byteLength;)t.getUint8(e)===0&&s++,e++;if(!(s<2))return e}function d6(t,e){const s=Ko(t,e);e+=s.length+1;const i=t.getUint8(e);return e+=1,{profileName:s,compressionMethod:i,compressedProfileOffset:e}}function f6(t,e){return t.getUint32(e+4)}function h6(t,e,n,o){const{offsets:i,sizes:l}=m6(e,n+3),a=t.getUint8(i.offsetSize)>>4;l.item.extent.extentOffset=a;const c=t.getUint8(i.lengthSize)&15;l.item.extent.extentLength=c;const u=t.getUint8(i.baseOffsetSize)>>4;l.item.baseOffset=u;const d=p6(t,i.indexSize,e);l.item.extent.extentIndex=d!==void 0?d:0;const f=_6(t,i.itemCount,e);return{type:"iloc",items:g6(t,e,i,l,a,c,d,f),length:o}}function m6(t,e){const n={item:{dataReferenceIndex:2,extentCount:2,extent:{}}};t<2?(n.itemCount=2,n.item.itemId=2):t===2&&(n.itemCount=4,n.item.itemId=4),t===1||t===2?n.item.constructionMethod=2:n.item.constructionMethod=0;const o={offsetSize:e,lengthSize:e,baseOffsetSize:e+1,indexSize:e+1};return o.itemCount=e+2,o.items=o.itemCount+n.itemCount,o.item={itemId:0},o.item.constructionMethod=o.item.itemId+n.item.itemId,o.item.dataReferenceIndex=o.item.constructionMethod+n.item.constructionMethod,{offsets:o,sizes:n}}function p6(t,e,n){if(n===1||n===2)return t.getUint8(e)&15}function _6(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function g6(t,e,n,o,s,i,l,a){if(a===void 0)return[];const c=[];let u=n.items;for(let d=0;d<a;d++){const f={extents:[]};f.itemId=b6(t,u,e),u+=o.item.itemId,f.constructionMethod=e===1||e===2?t.getUint16(u)&15:void 0,u+=o.item.constructionMethod,f.dataReferenceIndex=t.getUint16(u),u+=o.item.dataReferenceIndex,f.baseOffset=Mi(t,u,o.item.baseOffset),u+=o.item.baseOffset,f.extentCount=t.getUint16(u),u+=o.item.extentCount;for(let h=0;h<f.extentCount;h++){const m={};m.extentIndex=y6(t,e,u,l),u+=o.item.extent.extentIndex,m.extentOffset=Mi(t,u,s),u+=o.item.extent.extentOffset,m.extentLength=Mi(t,u,i),u+=o.item.extent.extentLength,f.extents.push(m)}c.push(f)}return c}function b6(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function y6(t,e,n,o){if((e===1||e===2)&&o>0)return Mi(t,n,o)}function Mi(t,e,n){return n===4?t.getUint32(e):n===8?(console.warn("This file uses an 8-bit offset which is currently not supported by ExifReader. Contact the maintainer to get it fixed."),f6(t,e)):0}const w6=1718909296,k6=1768977008,x6=1835365473,C6=1768714083,S6=1768517222,E6=1768842853,T6=1768973167,B6=1668246642,U_=1165519206,tu=1835625829,N6=1970432288;function Oi(t,e){const{length:i,contentOffset:l}=$6(t,e);if(i<8)return;const a=t.getUint32(e+4);if(a===w6)return R6(t,l,i);if(a===k6)return U6(t,e,l,i);if(a===T6)return z6(t,e,l,i);if(a===B6)return H6(t,l,i);const c=t.getUint8(l);return a===x6?W6(t,e,l+1,i):a===C6?h6(t,c,l+1,i):a===S6?j6(t,e,c,l+1,i):a===E6?K6(t,e,c,l+1,i):{type:void 0,length:i}}function $6(t,e){const l=t.getUint32(e);return I6(l)?{length:t.byteLength-e,contentOffset:e+4+4}:A6(l)&&L6(t,e)?{length:t.getUint32(e+12),contentOffset:e+4+4+8}:{length:l,contentOffset:e+4+4}}function I6(t){return t===0}function A6(t){return t===1}function L6(t,e){return t.getUint32(e+8)===0}function z_(t){{const e={},n=F6(t);return n?(e.tiffHeaderOffset=M6(t,n),e.xmpChunks=v6(n),e.iccChunks=P6(n),e.hasAppMarkers=e.tiffHeaderOffset!==void 0||e.xmpChunks!==void 0||e.iccChunks!==void 0,e):{hasAppMarkers:!1}}}function F6(t){let o=0;for(;o+4+4<=t.byteLength;){const s=Oi(t,o);if(s===void 0)break;if(s.type==="meta")return s;o+=s.length}}function M6(t,e){try{const n=O6(e).itemId,o=nu(e,n),s=o.baseOffset+o.extents[0].extentOffset;return D6(t,s)}catch{return}}function O6(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===U_)}function nu(t,e){return t.subBoxes.find(n=>n.type==="iloc").items.find(n=>n.itemId===e)}function D6(t,e){return e+4+t.getUint32(e)}function v6(t){try{const e=V6(t).itemId,n=nu(t,e),o=nu(t,e).extents[0];return[{dataOffset:n.baseOffset+o.extentOffset,length:o.extentLength}]}catch{return}}function V6(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===tu&&e.contentType==="application/rdf+xml")}function P6(t){try{const e=t.subBoxes.find(n=>n.type==="iprp").subBoxes.find(n=>n.type==="ipco").properties.find(n=>n.type==="colr").icc;if(e)return[e]}catch{}}function R6(t,e,n){return{type:"ftyp",majorBrand:J(t,e,4),length:n}}function U6(t,e,n,o){return{type:"iprp",subBoxes:Di(t,n,o-(n-e)),length:o}}function z6(t,e,n,o){return{type:"ipco",properties:Di(t,n,o-(n-e)),length:o}}function H6(t,e,n){return{type:"colr",icc:q6(t,e),length:n}}function q6(t,e){const o=J(t,e,4);if(!(o!=="prof"&&o!=="rICC"))return{offset:e+4,length:t.getUint32(e+4),chunkNumber:1,chunksTotal:1}}function W6(t,e,n,o){return{type:"meta",subBoxes:Di(t,n+3,o-(n+3-e)),length:o}}function Di(t,e,n){const o=[U_,tu],s=[];let i=e;for(;i<e+n;){const l=Oi(t,i);if(l===void 0)break;l.type!==void 0&&(l.itemType===void 0||o.indexOf(l.itemType)!==-1)&&s.push(l),i+=l.length}return s}function j6(t,e,n,o,s){const{offsets:i}=G6(n,o);return{type:"iinf",itemInfos:Di(t,i.itemInfos,s-(i.itemInfos-e)),length:s}}function G6(t,e){const o={entryCount:e+3},s={};return t===0?s.entryCount=2:s.entryCount=4,o.itemInfos=o.entryCount+s.entryCount,{offsets:o}}function K6(t,e,n,o,s){o+=3;const l={type:"infe",length:s};return(n===0||n===1)&&(l.itemId=t.getUint16(o),o+=2,l.itemProtectionIndex=t.getUint16(o),o+=2,l.itemName=Ko(t,o),o+=l.itemName.length+1),n>=2&&(n===2?(l.itemId=t.getUint16(o),o+=2):n===3&&(l.itemId=t.getUint32(o),o+=4),l.itemProtectionIndex=t.getUint16(o),o+=2,l.itemType=t.getUint32(o),o+=4,l.itemName=Ko(t,o),o+=l.itemName.length+1,l.itemType===tu?(l.contentType=Ko(t,o),o+=l.contentType.length+1,e+s>o&&(l.contentEncoding=Ko(t,o),o+=l.contentEncoding.length+1)):l.itemType===N6&&(l.itemUri=Ko(t,o),o+=l.itemUri.length+1)),l}const H_={isHeicFile:Z6,findHeicOffsets:Y6};function Z6(t){if(!t)return!1;const e=["heic","heix","hevc","hevx","heim","heis","hevm","hevs","mif1"];try{const n=Oi(t,0);return n&&e.indexOf(n.majorBrand)!==-1}catch{return!1}}function Y6(t){return z_(t)}const q_={isAvifFile:Q6,findAvifOffsets:X6};function Q6(t){if(!t)return!1;try{const e=Oi(t,0);return e&&e.majorBrand==="avif"}catch{return!1}}function X6(t){return z_(t)}const W_={isWebpFile:J6,findOffsets:e5};function J6(t){const n="RIFF",s="WEBP";return!!t&&J(t,0,n.length)===n&&J(t,8,s.length)===s}function e5(t){const o="Exif\0\0";let i=12,l=!1,a,c,u,d;for(;i+8<t.byteLength;){const f=J(t,i,4),h=t.getUint32(i+4,!0);f==="EXIF"?(l=!0,J(t,i+8,o.length)===o?a=i+8+o.length:a=i+8):f==="XMP "?(l=!0,c=[{dataOffset:i+8,length:h}]):f==="ICCP"?(l=!0,u=[{offset:i+8,length:h,chunkNumber:1,chunksTotal:1}]):f==="VP8X"&&(l=!0,d=i+8),i+=8+(h%2===0?h:h+1)}return{hasAppMarkers:l,tiffHeaderOffset:a,xmpChunks:c,iccChunks:u,vp8xChunkOffset:d}}const j_={isGifFile:o5,findOffsets:r5},t5=6,n5=["GIF87a","GIF89a"];function o5(t){return!!t&&n5.includes(J(t,0,t5))}function r5(){return{gifHeaderOffset:0}}const G_={isXMLFile:s5,findOffsets:i5},K_=0,Z_="<?xpacket begin";function s5(t){return!!t&&J(t,K_,Z_.length)===Z_}function i5(t){const e=[];return e.push({dataOffset:K_,length:t.byteLength}),{xmpChunks:e}}const l5={parseAppMarkers:a5};function a5(t,e){if(k_.isTiffFile(t))return Sn(k_.findTiffOffsets(),"tiff","TIFF");if(x_.isJpegFile(t))return Sn(x_.findJpegOffsets(t),"jpeg","JPEG");if(V_.isPngFile(t))return Sn(V_.findPngOffsets(t,e),"png","PNG");if(H_.isHeicFile(t))return Sn(H_.findHeicOffsets(t),"heic","HEIC");if(q_.isAvifFile(t))return Sn(q_.findAvifOffsets(t),"avif","AVIF");if(W_.isWebpFile(t))return Sn(W_.findOffsets(t),"webp","WebP");if(j_.isGifFile(t))return Sn(j_.findOffsets(t),"gif","GIF");if(G_.isXMLFile(t))return Sn(G_.findOffsets(t),"xml","XML");throw new Error("Invalid image format")}function Sn(t,e,n){return te({},t,{fileType:{value:e,description:n}})}const ee={ApertureValue:t=>Math.pow(Math.sqrt(2),t[0]/t[1]).toFixed(2),ColorSpace(t){return t===1?"sRGB":t===65535?"Uncalibrated":"Unknown"},ComponentsConfiguration(t){return t.map(e=>{if(e===49)return"Y";if(e===50)return"Cb";if(e===51)return"Cr";if(e===52)return"R";if(e===53)return"G";if(e===54)return"B"}).join("")},Contrast(t){return t===0?"Normal":t===1?"Soft":t===2?"Hard":"Unknown"},CustomRendered(t){return t===0?"Normal process":t===1?"Custom process":"Unknown"},ExposureMode(t){return t===0?"Auto exposure":t===1?"Manual exposure":t===2?"Auto bracket":"Unknown"},ExposureProgram(t){return t===0?"Undefined":t===1?"Manual":t===2?"Normal program":t===3?"Aperture priority":t===4?"Shutter priority":t===5?"Creative program":t===6?"Action program":t===7?"Portrait mode":t===8?"Landscape mode":t===9?"Bulb":"Unknown"},ExposureTime(t){if(t[0]/t[1]>.25){const e=t[0]/t[1];return Number.isInteger(e)?""+e:e.toFixed(1)}return t[0]!==0?`1/${Math.round(t[1]/t[0])}`:`0/${t[1]}`},FNumber:t=>`f/${t[0]/t[1]}`,FocalLength:t=>t[0]/t[1]+" mm",FocalPlaneResolutionUnit(t){return t===2?"inches":t===3?"centimeters":"Unknown"},LightSource:t=>t===1?"Daylight":t===2?"Fluorescent":t===3?"Tungsten (incandescent light)":t===4?"Flash":t===9?"Fine weather":t===10?"Cloudy weather":t===11?"Shade":t===12?"Daylight fluorescent (D 5700 – 7100K)":t===13?"Day white fluorescent (N 4600 – 5400K)":t===14?"Cool white fluorescent (W 3900 – 4500K)":t===15?"White fluorescent (WW 3200 – 3700K)":t===17?"Standard light A":t===18?"Standard light B":t===19?"Standard light C":t===20?"D55":t===21?"D65":t===22?"D75":t===23?"D50":t===24?"ISO studio tungsten":t===255?"Other light source":"Unknown",MeteringMode(t){return t===1?"Average":t===2?"CenterWeightedAverage":t===3?"Spot":t===4?"MultiSpot":t===5?"Pattern":t===6?"Partial":t===255?"Other":"Unknown"},ResolutionUnit(t){return t===2?"inches":t===3?"centimeters":"Unknown"},Saturation(t){return t===0?"Normal":t===1?"Low saturation":t===2?"High saturation":"Unknown"},SceneCaptureType(t){return t===0?"Standard":t===1?"Landscape":t===2?"Portrait":t===3?"Night scene":"Unknown"},Sharpness(t){return t===0?"Normal":t===1?"Soft":t===2?"Hard":"Unknown"},ShutterSpeedValue(t){const e=Math.pow(2,t[0]/t[1]);return e<=1?`${Math.round(1/e)}`:`1/${Math.round(e)}`},WhiteBalance(t){return t===0?"Auto white balance":t===1?"Manual white balance":"Unknown"},XResolution:t=>""+Math.round(t[0]/t[1]),YResolution:t=>""+Math.round(t[0]/t[1])},Y_={11:"ProcessingSoftware",254:{name:"SubfileType",description:t=>({0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image",3:"Single page of multi-page reduced-resolution image",4:"Transparency mask",5:"Transparency mask of reduced-resolution image",6:"Transparency mask of multi-page image",7:"Transparency mask of reduced-resolution multi-page image",65537:"Alternate reduced-resolution image",4294967295:"Invalid"})[t]||"Unknown"},255:{name:"OldSubfileType",description:t=>({0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image"})[t]||"Unknown"},256:"ImageWidth",257:"ImageLength",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",263:{name:"Thresholding",description:t=>({1:"No dithering or halftoning",2:"Ordered dither or halfton",3:"Randomized dither"})[t]||"Unknown"},264:"CellWidth",265:"CellLength",266:{name:"FillOrder",description:t=>({1:"Normal",2:"Reversed"})[t]||"Unknown"},269:"DocumentName",270:"ImageDescription",271:"Make",272:"Model",273:"StripOffsets",274:{name:"Orientation",description:t=>t===1?"top-left":t===2?"top-right":t===3?"bottom-right":t===4?"bottom-left":t===5?"left-top":t===6?"right-top":t===7?"right-bottom":t===8?"left-bottom":"Undefined"},277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",280:"MinSampleValue",281:"MaxSampleValue",282:{name:"XResolution",description:ee.XResolution},283:{name:"YResolution",description:ee.YResolution},284:"PlanarConfiguration",285:"PageName",286:{name:"XPosition",description:t=>""+Math.round(t[0]/t[1])},287:{name:"YPosition",description:t=>""+Math.round(t[0]/t[1])},290:{name:"GrayResponseUnit",description:t=>({1:"0.1",2:"0.001",3:"0.0001",4:"1e-05",5:"1e-06"})[t]||"Unknown"},296:{name:"ResolutionUnit",description:ee.ResolutionUnit},297:"PageNumber",301:"TransferFunction",305:"Software",306:"DateTime",315:"Artist",316:"HostComputer",317:"Predictor",318:{name:"WhitePoint",description:t=>t.map(e=>`${e[0]}/${e[1]}`).join(", ")},319:{name:"PrimaryChromaticities",description:t=>t.map(e=>`${e[0]}/${e[1]}`).join(", ")},321:"HalftoneHints",322:"TileWidth",323:"TileLength",330:"A100DataOffset",332:{name:"InkSet",description:t=>({1:"CMYK",2:"Not CMYK"})[t]||"Unknown"},337:"TargetPrinter",338:{name:"ExtraSamples",description:t=>({0:"Unspecified",1:"Associated Alpha",2:"Unassociated Alpha"})[t]||"Unknown"},339:{name:"SampleFormat",description:t=>{const e={1:"Unsigned",2:"Signed",3:"Float",4:"Undefined",5:"Complex int",6:"Complex float"};return Array.isArray(t)?t.map(n=>e[n]||"Unknown").join(", "):"Unknown"}},513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",529:{name:"YCbCrCoefficients",description:t=>t.map(e=>""+e[0]/e[1]).join("/")},530:"YCbCrSubSampling",531:{name:"YCbCrPositioning",description:t=>t===1?"centered":t===2?"co-sited":"undefined "+t},532:{name:"ReferenceBlackWhite",description:t=>t.map(e=>""+e[0]/e[1]).join(", ")},700:"ApplicationNotes",18246:"Rating",18249:"RatingPercent",33432:{name:"Copyright",description:t=>t.join("; ")},33550:"PixelScale",33723:"IPTC-NAA",33920:"IntergraphMatrix",33922:"ModelTiePoint",34118:"SEMInfo",34264:"ModelTransform",34377:"PhotoshopSettings",34665:"Exif IFD Pointer",34675:"ICC_Profile",34735:"GeoTiffDirectory",34736:"GeoTiffDoubleParams",34737:"GeoTiffAsciiParams",34853:"GPS Info IFD Pointer",40091:{name:"XPTitle",description:Zr},40092:{name:"XPComment",description:Zr},40093:{name:"XPAuthor",description:Zr},40094:{name:"XPKeywords",description:Zr},40095:{name:"XPSubject",description:Zr},42112:"GDALMetadata",42113:"GDALNoData",50341:"PrintIM",50707:"DNGBackwardVersion",50708:"UniqueCameraModel",50709:"LocalizedCameraModel",50721:"ColorMatrix1",50722:"ColorMatrix2",50723:"CameraCalibration1",50724:"CameraCalibration2",50725:"ReductionMatrix1",50726:"ReductionMatrix2",50727:"AnalogBalance",50728:"AsShotNeutral",50729:"AsShotWhiteXY",50730:"BaselineExposure",50731:"BaselineNoise",50732:"BaselineSharpness",50734:"LinearResponseLimit",50735:"CameraSerialNumber",50736:"DNGLensInfo",50739:"ShadowScale",50741:{name:"MakerNoteSafety",description:t=>({0:"Unsafe",1:"Safe"})[t]||"Unknown"},50778:{name:"CalibrationIlluminant1",description:ee.LightSource},50779:{name:"CalibrationIlluminant2",description:ee.LightSource},50781:"RawDataUniqueID",50827:"OriginalRawFileName",50828:"OriginalRawFileData",50831:"AsShotICCProfile",50832:"AsShotPreProfileMatrix",50833:"CurrentICCProfile",50834:"CurrentPreProfileMatrix",50879:"ColorimetricReference",50885:"SRawType",50898:"PanasonicTitle",50899:"PanasonicTitle2",50931:"CameraCalibrationSig",50932:"ProfileCalibrationSig",50933:"ProfileIFD",50934:"AsShotProfileName",50936:"ProfileName",50937:"ProfileHueSatMapDims",50938:"ProfileHueSatMapData1",50939:"ProfileHueSatMapData2",50940:"ProfileToneCurve",50941:{name:"ProfileEmbedPolicy",description:t=>({0:"Allow Copying",1:"Embed if Used",2:"Never Embed",3:"No Restrictions"})[t]||"Unknown"},50942:"ProfileCopyright",50964:"ForwardMatrix1",50965:"ForwardMatrix2",50966:"PreviewApplicationName",50967:"PreviewApplicationVersion",50968:"PreviewSettingsName",50969:"PreviewSettingsDigest",50970:{name:"PreviewColorSpace",description:t=>({1:"Gray Gamma 2.2",2:"sRGB",3:"Adobe RGB",4:"ProPhoto RGB"})[t]||"Unknown"},50971:"PreviewDateTime",50972:"RawImageDigest",50973:"OriginalRawFileDigest",50981:"ProfileLookTableDims",50982:"ProfileLookTableData",51043:"TimeCodes",51044:"FrameRate",51058:"TStop",51081:"ReelName",51089:"OriginalDefaultFinalSize",51090:"OriginalBestQualitySize",51091:"OriginalDefaultCropSize",51105:"CameraLabel",51107:{name:"ProfileHueSatMapEncoding",description:t=>({0:"Linear",1:"sRGB"})[t]||"Unknown"},51108:{name:"ProfileLookTableEncoding",description:t=>({0:"Linear",1:"sRGB"})[t]||"Unknown"},51109:"BaselineExposureOffset",51110:{name:"DefaultBlackRender",description:t=>({0:"Auto",1:"None"})[t]||"Unknown"},51111:"NewRawImageDigest",51112:"RawToPreviewGain"};function Zr(t){return new TextDecoder("utf-16").decode(new Uint8Array(t)).replace(/\u0000+$/,"")}const c5={33434:{name:"ExposureTime",description:ee.ExposureTime},33437:{name:"FNumber",description:ee.FNumber},34850:{name:"ExposureProgram",description:ee.ExposureProgram},34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:{name:"OECF",description:()=>"[Raw OECF table data]"},34858:"TimeZoneOffset",34859:"SelfTimerMode",34864:{name:"SensitivityType",description:t=>({1:"Standard Output Sensitivity",2:"Recommended Exposure Index",3:"ISO Speed",4:"Standard Output Sensitivity and Recommended Exposure Index",5:"Standard Output Sensitivity and ISO Speed",6:"Recommended Exposure Index and ISO Speed",7:"Standard Output Sensitivity, Recommended Exposure Index and ISO Speed"})[t]||"Unknown"},34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",36864:{name:"ExifVersion",description:t=>$e(t)},36867:"DateTimeOriginal",36868:"DateTimeDigitized",36873:"GooglePlusUploadCode",36880:"OffsetTime",36881:"OffsetTimeOriginal",36882:"OffsetTimeDigitized",37121:{name:"ComponentsConfiguration",description:ee.ComponentsConfiguration},37122:"CompressedBitsPerPixel",37377:{name:"ShutterSpeedValue",description:ee.ShutterSpeedValue},37378:{name:"ApertureValue",description:ee.ApertureValue},37379:"BrightnessValue",37380:"ExposureBiasValue",37381:{name:"MaxApertureValue",description:t=>Math.pow(Math.sqrt(2),t[0]/t[1]).toFixed(2)},37382:{name:"SubjectDistance",description:t=>t[0]/t[1]+" m"},37383:{name:"MeteringMode",description:ee.MeteringMode},37384:{name:"LightSource",description:ee.LightSource},37385:{name:"Flash",description:t=>t===0?"Flash did not fire":t===1?"Flash fired":t===5?"Strobe return light not detected":t===7?"Strobe return light detected":t===9?"Flash fired, compulsory flash mode":t===13?"Flash fired, compulsory flash mode, return light not detected":t===15?"Flash fired, compulsory flash mode, return light detected":t===16?"Flash did not fire, compulsory flash mode":t===24?"Flash did not fire, auto mode":t===25?"Flash fired, auto mode":t===29?"Flash fired, auto mode, return light not detected":t===31?"Flash fired, auto mode, return light detected":t===32?"No flash function":t===65?"Flash fired, red-eye reduction mode":t===69?"Flash fired, red-eye reduction mode, return light not detected":t===71?"Flash fired, red-eye reduction mode, return light detected":t===73?"Flash fired, compulsory flash mode, red-eye reduction mode":t===77?"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected":t===79?"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected":t===89?"Flash fired, auto mode, red-eye reduction mode":t===93?"Flash fired, auto mode, return light not detected, red-eye reduction mode":t===95?"Flash fired, auto mode, return light detected, red-eye reduction mode":"Unknown"},37386:{name:"FocalLength",description:ee.FocalLength},37393:"ImageNumber",37394:{name:"SecurityClassification",description:t=>({C:"Confidential",R:"Restricted",S:"Secret",T:"Top Secret",U:"Unclassified"})[t]||"Unknown"},37395:"ImageHistory",37396:{name:"SubjectArea",description:t=>t.length===2?`Location; X: ${t[0]}, Y: ${t[1]}`:t.length===3?`Circle; X: ${t[0]}, Y: ${t[1]}, diameter: ${t[2]}`:t.length===4?`Rectangle; X: ${t[0]}, Y: ${t[1]}, width: ${t[2]}, height: ${t[3]}`:"Unknown"},37500:{name:"MakerNote",description:()=>"[Raw maker note data]"},37510:{name:"UserComment",description:Gc},37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",37724:"ImageSourceData",37888:{name:"AmbientTemperature",description:t=>t[0]/t[1]+" °C"},37889:{name:"Humidity",description:t=>t[0]/t[1]+" %"},37890:{name:"Pressure",description:t=>t[0]/t[1]+" hPa"},37891:{name:"WaterDepth",description:t=>t[0]/t[1]+" m"},37892:{name:"Acceleration",description:t=>t[0]/t[1]+" mGal"},37893:{name:"CameraElevationAngle",description:t=>t[0]/t[1]+" °"},40960:{name:"FlashpixVersion",description:t=>t.map(e=>String.fromCharCode(e)).join("")},40961:{name:"ColorSpace",description:ee.ColorSpace},40962:"PixelXDimension",40963:"PixelYDimension",40964:"RelatedSoundFile",40965:"Interoperability IFD Pointer",41483:"FlashEnergy",41484:{name:"SpatialFrequencyResponse",description:()=>"[Raw SFR table data]"},41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:{name:"FocalPlaneResolutionUnit",description:ee.FocalPlaneResolutionUnit},41492:{name:"SubjectLocation",description:([t,e])=>`X: ${t}, Y: ${e}`},41493:"ExposureIndex",41495:{name:"SensingMethod",description:t=>t===1?"Undefined":t===2?"One-chip color area sensor":t===3?"Two-chip color area sensor":t===4?"Three-chip color area sensor":t===5?"Color sequential area sensor":t===7?"Trilinear sensor":t===8?"Color sequential linear sensor":"Unknown"},41728:{name:"FileSource",description:t=>t===3?"DSC":"Unknown"},41729:{name:"SceneType",description:t=>t===1?"A directly photographed image":"Unknown"},41730:{name:"CFAPattern",description:()=>"[Raw CFA pattern table data]"},41985:{name:"CustomRendered",description:ee.CustomRendered},41986:{name:"ExposureMode",description:ee.ExposureMode},41987:{name:"WhiteBalance",description:ee.WhiteBalance},41988:{name:"DigitalZoomRatio",description:t=>t[0]===0?"Digital zoom was not used":""+t[0]/t[1]},41989:{name:"FocalLengthIn35mmFilm",description:t=>t===0?"Unknown":t},41990:{name:"SceneCaptureType",description:ee.SceneCaptureType},41991:{name:"GainControl",description:t=>t===0?"None":t===1?"Low gain up":t===2?"High gain up":t===3?"Low gain down":t===4?"High gain down":"Unknown"},41992:{name:"Contrast",description:ee.Contrast},41993:{name:"Saturation",description:ee.Saturation},41994:{name:"Sharpness",description:ee.Sharpness},41995:{name:"DeviceSettingDescription",description:()=>"[Raw device settings table data]"},41996:{name:"SubjectDistanceRange",description:t=>t===1?"Macro":t===2?"Close view":t===3?"Distant view":"Unknown"},42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:{name:"LensSpecification",description:t=>{const e=parseFloat((t[0][0]/t[0][1]).toFixed(5)),n=parseFloat((t[1][0]/t[1][1]).toFixed(5)),o=`${e}-${n} mm`;if(t[3][1]===0)return`${o} f/?`;const s=1/(t[2][1]/t[2][1]/(t[3][0]/t[3][1]));return`${o} f/${parseFloat(s.toFixed(5))}`}},42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",42080:{name:"CompositeImage",description:t=>({1:"Not a Composite Image",2:"General Composite Image",3:"Composite Image Captured While Shooting"})[t]||"Unknown"},42081:"SourceImageNumberOfCompositeImage",42082:"SourceExposureTimesOfCompositeImage",42240:"Gamma",59932:"Padding",59933:"OffsetSchema",65e3:"OwnerName",65001:"SerialNumber",65002:"Lens",65100:"RawFile",65101:"Converter",65102:"WhiteBalance",65105:"Exposure",65106:"Shadows",65107:"Brightness",65108:"Contrast",65109:"Saturation",65110:"Sharpness",65111:"Smoothness",65112:"MoireFilter"},u5={0:{name:"GPSVersionID",description:t=>t[0]===2&&t[1]===2&&t[2]===0&&t[3]===0?"Version 2.2":"Unknown"},1:{name:"GPSLatitudeRef",description:t=>{const e=t.join("");return e==="N"?"North latitude":e==="S"?"South latitude":"Unknown"}},2:{name:"GPSLatitude",description:Ai},3:{name:"GPSLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},4:{name:"GPSLongitude",description:Ai},5:{name:"GPSAltitudeRef",description:t=>t===0?"Sea level":t===1?"Sea level reference (negative value)":"Unknown"},6:{name:"GPSAltitude",description:t=>t[0]/t[1]+" m"},7:{name:"GPSTimeStamp",description:t=>t.map(([e,n])=>{const o=e/n;return/^\d(\.|$)/.test(`${o}`)?`0${o}`:o}).join(":")},8:"GPSSatellites",9:{name:"GPSStatus",description:t=>{const e=t.join("");return e==="A"?"Measurement in progress":e==="V"?"Measurement Interoperability":"Unknown"}},10:{name:"GPSMeasureMode",description:t=>{const e=t.join("");return e==="2"?"2-dimensional measurement":e==="3"?"3-dimensional measurement":"Unknown"}},11:"GPSDOP",12:{name:"GPSSpeedRef",description:t=>{const e=t.join("");return e==="K"?"Kilometers per hour":e==="M"?"Miles per hour":e==="N"?"Knots":"Unknown"}},13:"GPSSpeed",14:{name:"GPSTrackRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},15:"GPSTrack",16:{name:"GPSImgDirectionRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},17:"GPSImgDirection",18:"GPSMapDatum",19:{name:"GPSDestLatitudeRef",description:t=>{const e=t.join("");return e==="N"?"North latitude":e==="S"?"South latitude":"Unknown"}},20:{name:"GPSDestLatitude",description:t=>t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600},21:{name:"GPSDestLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},22:{name:"GPSDestLongitude",description:t=>t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600},23:{name:"GPSDestBearingRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},24:"GPSDestBearing",25:{name:"GPSDestDistanceRef",description:t=>{const e=t.join("");return e==="K"?"Kilometers":e==="M"?"Miles":e==="N"?"Knots":"Unknown"}},26:"GPSDestDistance",27:{name:"GPSProcessingMethod",description:Gc},28:{name:"GPSAreaInformation",description:Gc},29:"GPSDateStamp",30:{name:"GPSDifferential",description:t=>t===0?"Measurement without differential correction":t===1?"Differential correction applied":"Unknown"},31:"GPSHPositioningError"},d5={1:"InteroperabilityIndex",2:{name:"InteroperabilityVersion",description:t=>$e(t)},4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight"},f5={45056:{name:"MPFVersion",description:t=>$e(t)},45057:"NumberOfImages",45058:"MPEntry",45059:"ImageUIDList",45060:"TotalFrames"},h5={4:{name:"ShotInfo",description:t=>t}},Q_=te({},Y_,c5),ou="0th",X_="1st",J_="exif",e1="gps",t1="interoperability",n1="mpf",o1="canon",En={[ou]:Q_,[X_]:Y_,[J_]:Q_,[e1]:u5,[t1]:d5,[n1]:f5,[o1]:h5},r1={1:1,2:1,3:2,4:4,5:8,7:1,9:4,10:8,13:4},ru={BYTE:1,ASCII:2,SHORT:3,LONG:4,RATIONAL:5,UNDEFINED:7,SLONG:9,SRATIONAL:10,IFD:13},R={getAsciiValue:m5,getByteAt:s1,getAsciiAt:p5,getShortAt:_5,getLongAt:vi,getRationalAt:g5,getUndefinedAt:b5,getSlongAt:su,getSrationalAt:y5,getIfdPointerAt:w5,typeSizes:r1,tagTypes:ru,getTypeSize:k5};function m5(t){return t.map(e=>String.fromCharCode(e))}function s1(t,e){return t.getUint8(e)}function p5(t,e){return t.getUint8(e)}function _5(t,e,n){return t.getUint16(e,n===Jn.LITTLE_ENDIAN)}function vi(t,e,n){return t.getUint32(e,n===Jn.LITTLE_ENDIAN)}function g5(t,e,n){return[vi(t,e,n),vi(t,e+4,n)]}function b5(t,e){return s1(t,e)}function su(t,e,n){return t.getInt32(e,n===Jn.LITTLE_ENDIAN)}function y5(t,e,n){return[su(t,e,n),su(t,e+4,n)]}function w5(t,e,n){return vi(t,e,n)}function k5(t){if(ru[t]===void 0)throw new Error("No such type found.");return r1[ru[t]]}const x5={1:R.getByteAt,2:R.getAsciiAt,3:R.getShortAt,4:R.getLongAt,5:R.getRationalAt,7:R.getUndefinedAt,9:R.getSlongAt,10:R.getSrationalAt,13:R.getIfdPointerAt};function i1(t,e,n){return e+R.getLongAt(t,e+4,n)}function to(t,e,n,o,s,i){const l=R.getTypeSize("SHORT"),a=12,c={},u=C5(t,o,s);o+=l;for(let d=0;d<u&&!(o+a>t.byteLength);d++){const f=S5(t,e,n,o,s,i);f!==void 0&&(c[f.name]={id:f.id,value:f.value,description:f.description},f.name==="MakerNote"&&(c[f.name].__offset=f.__offset)),o+=a}if(o<t.byteLength-R.getTypeSize("LONG")){const d=R.getLongAt(t,o,s);d!==0&&e===ou&&(c.Thumbnail=to(t,X_,n,n+d,s,i))}return c}function C5(t,e,n){return e+R.getTypeSize("SHORT")<=t.byteLength?R.getShortAt(t,e,n):0}function S5(t,e,n,o,s,i){const a=R.getTypeSize("SHORT"),c=a+R.getTypeSize("SHORT"),u=c+R.getTypeSize("LONG"),d=R.getShortAt(t,o,s),f=R.getShortAt(t,o+a,s),h=R.getLongAt(t,o+c,s);let m,g;if(R.typeSizes[f]===void 0||!i&&En[e][d]===void 0)return;if(E5(f,h))g=o+u,m=l1(t,g,f,h,s);else if(g=R.getLongAt(t,o+u,s),T5(t,n,g,f,h)){const b=d===33723;m=l1(t,n+g,f,h,s,b)}else m="<faulty value>";f===R.tagTypes.ASCII&&(m=B5(m),m=N5(m));let p=`undefined-${d}`,_=m;if(En[e][d]!==void 0)if(En[e][d].name!==void 0&&En[e][d].description!==void 0){p=En[e][d].name;try{_=En[e][d].description(m)}catch{_=a1(m)}}else f===R.tagTypes.RATIONAL||f===R.tagTypes.SRATIONAL?(p=En[e][d],_=""+m[0]/m[1]):(p=En[e][d],_=a1(m));return{id:d,name:p,value:m,description:_,__offset:g}}function E5(t,e){return R.typeSizes[t]*e<=R.getTypeSize("LONG")}function l1(t,e,n,o,s,i=!1){let l=[];i&&(o=o*R.typeSizes[n],n=R.tagTypes.BYTE);for(let a=0;a<o;a++)l.push(x5[n](t,e,s)),e+=R.typeSizes[n];return n===R.tagTypes.ASCII?l=R.getAsciiValue(l):l.length===1&&(l=l[0]),l}function T5(t,e,n,o,s){return e+n+R.typeSizes[o]*s<=t.byteLength}function B5(t){const e=[];let n=0;for(let o=0;o<t.length;o++){if(t[o]==="\0"){n++;continue}e[n]===void 0&&(e[n]=""),e[n]+=t[o]}return e}function N5(t){try{return t.map(e=>decodeURIComponent(escape(e)))}catch{return t}}function a1(t){return t instanceof Array?t.join(", "):t}const c1="Exif IFD Pointer",u1="GPS Info IFD Pointer",d1="Interoperability IFD Pointer",f1={read:$5};function $5(t,e,n){const o=Jn.getByteOrder(t,e);let s=I5(t,e,o,n);return s=A5(s,t,e,o,n),s=L5(s,t,e,o,n),s=F5(s,t,e,o,n),{tags:s,byteOrder:o}}function I5(t,e,n,o){return to(t,ou,e,i1(t,e,n),n,o)}function A5(t,e,n,o,s){return t[c1]!==void 0?te(t,to(e,J_,n,n+t[c1].value,o,s)):t}function L5(t,e,n,o,s){return t[u1]!==void 0?te(t,to(e,e1,n,n+t[u1].value,o,s)):t}function F5(t,e,n,o,s){return t[d1]!==void 0?te(t,to(e,t1,n,n+t[d1].value,o,s)):t}const M5={read:O5},Qo=16;function O5(t,e,n){const o=Jn.getByteOrder(t,e),s=to(t,n1,e,i1(t,e,o),o,n);return D5(t,e,s,o)}function D5(t,e,n,o){if(!n.MPEntry)return n;const s=[];for(let i=0;i<Math.ceil(n.MPEntry.value.length/Qo);i++){s[i]={};const l=Yr(n.MPEntry.value,i*Qo,R.getTypeSize("LONG"),o);s[i].ImageFlags=v5(l),s[i].ImageFormat=V5(l),s[i].ImageType=P5(l);const a=Yr(n.MPEntry.value,i*Qo+4,R.getTypeSize("LONG"),o);s[i].ImageSize={value:a,description:""+a};const c=R5(i,n.MPEntry,o,e);s[i].ImageOffset={value:c,description:""+c};const u=Yr(n.MPEntry.value,i*Qo+12,R.getTypeSize("SHORT"),o);s[i].DependentImage1EntryNumber={value:u,description:""+u};const d=Yr(n.MPEntry.value,i*Qo+14,R.getTypeSize("SHORT"),o);s[i].DependentImage2EntryNumber={value:d,description:""+d},s[i].image=t.buffer.slice(c,c+a),p_(s[i],"base64",function(){return __(this.image)})}return n.Images=s,n}function Yr(t,e,n,o){if(o===Jn.LITTLE_ENDIAN){let i=0;for(let l=0;l<n;l++)i+=t[e+l]<<8*l;return i}let s=0;for(let i=0;i<n;i++)s+=t[e+i]<<8*(n-1-i);return s}function v5(t){const e=[t>>31&1,t>>30&1,t>>29&1],n=[];return e[0]&&n.push("Dependent Parent Image"),e[1]&&n.push("Dependent Child Image"),e[2]&&n.push("Representative Image"),{value:e,description:n.join(", ")||"None"}}function V5(t){const e=t>>24&7;return{value:e,description:e===0?"JPEG":"Unknown"}}function P5(t){const e=t&16777215;return{value:e,description:{196608:"Baseline MP Primary Image",65537:"Large Thumbnail (VGA equivalent)",65538:"Large Thumbnail (Full HD equivalent)",131073:"Multi-Frame Image (Panorama)",131074:"Multi-Frame Image (Disparity)",131075:"Multi-Frame Image (Multi-Angle)",0:"Undefined"}[e]||"Unknown"}}function R5(t,e,n,o){return U5(t)?0:Yr(e.value,t*Qo+8,R.getTypeSize("LONG"),n)+o}function U5(t){return t===0}const z5={read:H5};function H5(t,e){const n=q5(t,e),o=K5(t,e,n);return{"Bits Per Sample":W5(t,e,n),"Image Height":j5(t,e,n),"Image Width":G5(t,e,n),"Color Components":o,Subsampling:o&&Z5(t,e,o.value,n)}}function q5(t,e){return R.getShortAt(t,e)}function W5(t,e,n){if(3>n)return;const i=R.getByteAt(t,e+2);return{value:i,description:""+i}}function j5(t,e,n){if(5>n)return;const i=R.getShortAt(t,e+3);return{value:i,description:`${i}px`}}function G5(t,e,n){if(7>n)return;const i=R.getShortAt(t,e+5);return{value:i,description:`${i}px`}}function K5(t,e,n){if(8>n)return;const i=R.getByteAt(t,e+7);return{value:i,description:""+i}}function Z5(t,e,n,o){if(8+3*n>o)return;const l=[];for(let a=0;a<n;a++){const c=e+8+a*3;l.push([R.getByteAt(t,c),R.getByteAt(t,c+1),R.getByteAt(t,c+2)])}return{value:l,description:l.length>1?Y5(l)+Q5(l):""}}function Y5(t){const e={1:"Y",2:"Cb",3:"Cr",4:"I",5:"Q"};return t.map(n=>e[n[0]]).join("")}function Q5(t){const e={17:"4:4:4 (1 1)",18:"4:4:0 (1 2)",20:"4:4:1 (1 4)",33:"4:2:2 (2 1)",34:"4:2:0 (2 2)",36:"4:2:1 (2 4)",65:"4:1:1 (4 1)",66:"4:1:0 (4 2)"};return t.length===0||t[0][1]===void 0||e[t[0][1]]===void 0?"":e[t[0][1]]}const X5={read:J5};function J5(t,e){const n=e$(t,e),o=i$(t,e,n),s=l$(t,e,n),i={"JFIF Version":t$(t,e,n),"Resolution Unit":n$(t,e,n),XResolution:r$(t,e,n),YResolution:s$(t,e,n),"JFIF Thumbnail Width":o,"JFIF Thumbnail Height":s};if(o!==void 0&&s!==void 0){const l=a$(t,e,3*o.value*s.value,n);l&&(i["JFIF Thumbnail"]=l)}for(const l in i)i[l]===void 0&&delete i[l];return i}function e$(t,e){return R.getShortAt(t,e)}function t$(t,e,n){if(9>n)return;const i=R.getByteAt(t,e+7),l=R.getByteAt(t,e+7+1);return{value:i*256+l,description:i+"."+l}}function n$(t,e,n){if(10>n)return;const i=R.getByteAt(t,e+9);return{value:i,description:o$(i)}}function o$(t){return t===0?"None":t===1?"inches":t===2?"cm":"Unknown"}function r$(t,e,n){if(12>n)return;const i=R.getShortAt(t,e+10);return{value:i,description:""+i}}function s$(t,e,n){if(14>n)return;const i=R.getShortAt(t,e+12);return{value:i,description:""+i}}function i$(t,e,n){if(15>n)return;const i=R.getByteAt(t,e+14);return{value:i,description:`${i}px`}}function l$(t,e,n){if(16>n)return;const i=R.getByteAt(t,e+15);return{value:i,description:`${i}px`}}function a$(t,e,n,o){return n===0||16+n>o?void 0:{value:t.buffer.slice(e+16,e+16+n),description:"<24-bit RGB pixel data>"}}const Tn={iptc:{256:{name:"Model Version",description:t=>((t[0]<<8)+t[1]).toString()},261:{name:"Destination",repeatable:!0},276:{name:"File Format",description:t=>((t[0]<<8)+t[1]).toString()},278:{name:"File Format Version",description:t=>((t[0]<<8)+t[1]).toString()},286:"Service Identifier",296:"Envelope Number",306:"Product ID",316:"Envelope Priority",326:{name:"Date Sent",description:iu},336:{name:"Time Sent",description:lu},346:{name:"Coded Character Set",description:h1,encoding_name:h1},356:"UNO",376:{name:"ARM Identifier",description:t=>((t[0]<<8)+t[1]).toString()},378:{name:"ARM Version",description:t=>((t[0]<<8)+t[1]).toString()},512:{name:"Record Version",description:t=>((t[0]<<8)+t[1]).toString()},515:"Object Type Reference",516:"Object Attribute Reference",517:"Object Name",519:"Edit Status",520:{name:"Editorial Update",description:t=>$e(t)==="01"?"Additional Language":"Unknown"},522:"Urgency",524:{name:"Subject Reference",repeatable:!0,description:t=>{const e=$e(t).split(":");return e[2]+(e[3]?"/"+e[3]:"")+(e[4]?"/"+e[4]:"")}},527:"Category",532:{name:"Supplemental Category",repeatable:!0},534:"Fixture Identifier",537:{name:"Keywords",repeatable:!0},538:{name:"Content Location Code",repeatable:!0},539:{name:"Content Location Name",repeatable:!0},542:"Release Date",547:"Release Time",549:"Expiration Date",550:"Expiration Time",552:"Special Instructions",554:{name:"Action Advised",description:t=>{const e=$e(t);return e==="01"?"Object Kill":e==="02"?"Object Replace":e==="03"?"Object Append":e==="04"?"Object Reference":"Unknown"}},557:{name:"Reference Service",repeatable:!0},559:{name:"Reference Date",repeatable:!0},562:{name:"Reference Number",repeatable:!0},567:{name:"Date Created",description:iu},572:{name:"Time Created",description:lu},574:{name:"Digital Creation Date",description:iu},575:{name:"Digital Creation Time",description:lu},577:"Originating Program",582:"Program Version",587:{name:"Object Cycle",description:t=>{const e=$e(t);return e==="a"?"morning":e==="p"?"evening":e==="b"?"both":"Unknown"}},592:{name:"By-line",repeatable:!0},597:{name:"By-line Title",repeatable:!0},602:"City",604:"Sub-location",607:"Province/State",612:"Country/Primary Location Code",613:"Country/Primary Location Name",615:"Original Transmission Reference",617:"Headline",622:"Credit",627:"Source",628:"Copyright Notice",630:{name:"Contact",repeatable:!0},632:"Caption/Abstract",634:{name:"Writer/Editor",repeatable:!0},637:{name:"Rasterized Caption",description:t=>t},642:"Image Type",643:{name:"Image Orientation",description:t=>{const e=$e(t);return e==="P"?"Portrait":e==="L"?"Landscape":e==="S"?"Square":"Unknown"}},647:"Language Identifier",662:{name:"Audio Type",description:t=>{const e=$e(t),n=e.charAt(0),o=e.charAt(1);let s="";return n==="1"?s+="Mono":n==="2"&&(s+="Stereo"),o==="A"?s+=", actuality":o==="C"?s+=", question and answer session":o==="M"?s+=", music, transmitted by itself":o==="Q"?s+=", response to a question":o==="R"?s+=", raw sound":o==="S"?s+=", scener":o==="V"?s+=", voicer":o==="W"&&(s+=", wrap"),s!==""?s:e}},663:{name:"Audio Sampling Rate",description:t=>parseInt($e(t),10)+" Hz"},664:{name:"Audio Sampling Resolution",description:t=>{const e=parseInt($e(t),10);return e+(e===1?" bit":" bits")}},665:{name:"Audio Duration",description:t=>{const e=$e(t);return e.length>=6?e.substr(0,2)+":"+e.substr(2,2)+":"+e.substr(4,2):e}},666:"Audio Outcue",698:"Short Document ID",699:"Unique Document ID",700:"Owner ID",712:{name:t=>t.length===2?"ObjectData Preview File Format":"Record 2 destination",description:t=>{if(t.length===2){const e=(t[0]<<8)+t[1];return e===0?"No ObjectData":e===1?"IPTC-NAA Digital Newsphoto Parameter Record":e===2?"IPTC7901 Recommended Message Format":e===3?"Tagged Image File Format (Adobe/Aldus Image data)":e===4?"Illustrator (Adobe Graphics data)":e===5?"AppleSingle (Apple Computer Inc)":e===6?"NAA 89-3 (ANPA 1312)":e===7?"MacBinary II":e===8?"IPTC Unstructured Character Oriented File Format (UCOFF)":e===9?"United Press International ANPA 1312 variant":e===10?"United Press International Down-Load Message":e===11?"JPEG File Interchange (JFIF)":e===12?"Photo-CD Image-Pac (Eastman Kodak)":e===13?"Microsoft Bit Mapped Graphics File [*.BMP]":e===14?"Digital Audio File [*.WAV] (Microsoft & Creative Labs)":e===15?"Audio plus Moving Video [*.AVI] (Microsoft)":e===16?"PC DOS/Windows Executable Files [*.COM][*.EXE]":e===17?"Compressed Binary File [*.ZIP] (PKWare Inc)":e===18?"Audio Interchange File Format AIFF (Apple Computer Inc)":e===19?"RIFF Wave (Microsoft Corporation)":e===20?"Freehand (Macromedia/Aldus)":e===21?'Hypertext Markup Language "HTML" (The Internet Society)':e===22?"MPEG 2 Audio Layer 2 (Musicom), ISO/IEC":e===23?"MPEG 2 Audio Layer 3, ISO/IEC":e===24?"Portable Document File (*.PDF) Adobe":e===25?"News Industry Text Format (NITF)":e===26?"Tape Archive (*.TAR)":e===27?"Tidningarnas Telegrambyrå NITF version (TTNITF DTD)":e===28?"Ritzaus Bureau NITF version (RBNITF DTD)":e===29?"Corel Draw [*.CDR]":`Unknown format ${e}`}return $e(t)}},713:{name:"ObjectData Preview File Format Version",description:(t,e)=>{const n={"00":{"00":"1"},"01":{"01":"1","02":"2","03":"3","04":"4"},"02":{"04":"4"},"03":{"01":"5.0","02":"6.0"},"04":{"01":"1.40"},"05":{"01":"2"},"06":{"01":"1"},11:{"01":"1.02"},20:{"01":"3.1","02":"4.0","03":"5.0","04":"5.5"},21:{"02":"2.0"}},o=$e(t);if(e["ObjectData Preview File Format"]){const s=$e(e["ObjectData Preview File Format"].value);if(n[s]&&n[s][o])return n[s][o]}return o}},714:"ObjectData Preview Data",1802:{name:"Size Mode",description:t=>t[0].toString()},1812:{name:"Max Subfile Size",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}},1882:{name:"ObjectData Size Announced",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}},1887:{name:"Maximum ObjectData Size",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}}}};function iu(t){const e=$e(t);return e.length>=8?e.substr(0,4)+"-"+e.substr(4,2)+"-"+e.substr(6,2):e}function lu(t){const e=$e(t);let n=e;return e.length>=6&&(n=e.substr(0,2)+":"+e.substr(2,2)+":"+e.substr(4,2),e.length===11&&(n+=e.substr(6,1)+e.substr(7,2)+":"+e.substr(9,2))),n}function h1(t){const e=$e(t);return e==="\x1B%G"?"UTF-8":e==="\x1B%5"?"Windows-1252":e==="\x1B%/G"?"UTF-8 Level 1":e==="\x1B%/H"?"UTF-8 Level 2":e==="\x1B%/I"?"UTF-8 Level 3":e==="\x1B/A"?"ISO-8859-1":e==="\x1B/B"?"ISO-8859-2":e==="\x1B/C"?"ISO-8859-3":e==="\x1B/D"?"ISO-8859-4":e==="\x1B/@"?"ISO-8859-5":e==="\x1B/G"?"ISO-8859-6":e==="\x1B/F"?"ISO-8859-7":e==="\x1B/H"?"ISO-8859-8":"Unknown"}const c$={get:u$};function u$(){if(typeof TextDecoder<"u")return TextDecoder}const m1={decode:d$,TAG_HEADER_SIZE:5};function d$(t,e){const n=c$.get();if(typeof n<"u"&&t!==void 0)try{return new n(t).decode(e instanceof DataView?e.buffer:Uint8Array.from(e))}catch{}const o=e.map(s=>String.fromCharCode(s)).join("");return f$(o)}function f$(t){try{return decodeURIComponent(escape(t))}catch{return t}}const h$=943868237,Qr=4,Vi=2,m$=1,p$=2,p1=4,_$=Qr+Vi+p$+p1,g$=1028,_1=5,au={read:b$};function b$(t,e,n){try{if(Array.isArray(t))return g1(new DataView(Uint8Array.from(t).buffer),{size:t.length},0,n);const{naaBlock:o,dataOffset:s}=y$(t,e);return g1(t,o,s,n)}catch{return{}}}function y$(t,e){for(;e+_$<=t.byteLength;){const n=w$(t,e);if(k$(n))return{naaBlock:n,dataOffset:e+n.headerSize};e+=n.headerSize+n.size+x$(n)}throw new Error("No IPTC NAA resource block.")}function w$(t,e){if(t.getUint32(e,!1)!==h$)throw new Error("Not an IPTC resource block.");const n=t.getUint8(e+Qr+Vi),o=(n%2===0?n+1:n)+m$;return{headerSize:Qr+Vi+o+p1,type:t.getUint16(e+Qr),size:t.getUint32(e+Qr+Vi+o)}}function k$(t){return t.type===g$}function x$(t){return t.size%2!==0?1:0}function g1(t,e,n,o){const s={};let i;const l=n+e.size;for(;n<l&&n<t.byteLength;){const{tag:a,tagSize:c}=C$(t,n,s,i,o);if(a===null)break;a&&("encoding"in a&&(i=a.encoding),s[a.name]===void 0||a.repeatable===void 0?s[a.name]={id:a.id,value:a.value,description:a.description}:(s[a.name]instanceof Array||(s[a.name]=[{id:s[a.name].id,value:s[a.name].value,description:s[a.name].description}]),s[a.name].push({id:a.id,value:a.value,description:a.description}))),n+=_1+c}return s}function C$(t,e,n,o,s){if(S$(t,e))return{tag:null,tagSize:0};const a=t.getUint16(e+1),c=t.getUint16(e+3);if(!s&&!Tn.iptc[a])return{tag:void 0,tagSize:c};const u=E$(t,e+_1,c),d={id:a,name:T$(Tn.iptc[a],a,u),value:u,description:$$(Tn.iptc[a],u,n,o)};return L$(a)&&(d.repeatable=!0),F$(a)&&(d.encoding=Tn.iptc[a].encoding_name(u)),{tag:d,tagSize:c}}function S$(t,e){return t.getUint8(e)!==28}function E$(t,e,n){const o=[];for(let s=0;s<n;s++)o.push(t.getUint8(e+s));return o}function T$(t,e,n){return t?B$(t)?t:N$(t)?t.name(n):t.name:`undefined-${e}`}function B$(t){return typeof t=="string"}function N$(t){return typeof t.name=="function"}function $$(t,e,n,o){if(A$(t))try{return t.description(e,n)}catch{}return I$(t,e)?m1.decode(o,e):e}function I$(t,e){return t&&e instanceof Array}function A$(t){return t&&t.description!==void 0}function L$(t){return Tn.iptc[t]&&Tn.iptc[t].repeatable}function F$(t){return Tn.iptc[t]&&Tn.iptc[t].encoding_name!==void 0}const Pi={"tiff:Orientation"(t){return t==="1"?"Horizontal (normal)":t==="2"?"Mirror horizontal":t==="3"?"Rotate 180":t==="4"?"Mirror vertical":t==="5"?"Mirror horizontal and rotate 270 CW":t==="6"?"Rotate 90 CW":t==="7"?"Mirror horizontal and rotate 90 CW":t==="8"?"Rotate 270 CW":t},"tiff:ResolutionUnit":t=>ee.ResolutionUnit(parseInt(t,10)),"tiff:XResolution":t=>Xo(ee.XResolution,t),"tiff:YResolution":t=>Xo(ee.YResolution,t),"exif:ApertureValue":t=>Xo(ee.ApertureValue,t),"exif:GPSLatitude":y1,"exif:GPSLongitude":y1,"exif:FNumber":t=>Xo(ee.FNumber,t),"exif:FocalLength":t=>Xo(ee.FocalLength,t),"exif:FocalPlaneResolutionUnit":t=>ee.FocalPlaneResolutionUnit(parseInt(t,10)),"exif:ColorSpace":t=>ee.ColorSpace(M$(t)),"exif:ComponentsConfiguration"(t,e){if(/^\d, \d, \d, \d$/.test(e)){const n=e.split(", ").map(o=>o.charCodeAt(0));return ee.ComponentsConfiguration(n)}return e},"exif:Contrast":t=>ee.Contrast(parseInt(t,10)),"exif:CustomRendered":t=>ee.CustomRendered(parseInt(t,10)),"exif:ExposureMode":t=>ee.ExposureMode(parseInt(t,10)),"exif:ExposureProgram":t=>ee.ExposureProgram(parseInt(t,10)),"exif:ExposureTime"(t){return b1(t)?ee.ExposureTime(t.split("/").map(e=>parseInt(e,10))):t},"exif:MeteringMode":t=>ee.MeteringMode(parseInt(t,10)),"exif:Saturation":t=>ee.Saturation(parseInt(t,10)),"exif:SceneCaptureType":t=>ee.SceneCaptureType(parseInt(t,10)),"exif:Sharpness":t=>ee.Sharpness(parseInt(t,10)),"exif:ShutterSpeedValue":t=>Xo(ee.ShutterSpeedValue,t),"exif:WhiteBalance":t=>ee.WhiteBalance(parseInt(t,10))};function Xo(t,e){return b1(e)?t(e.split("/")):e}function M$(t){return t.substring(0,2)==="0x"?parseInt(t.substring(2),16):parseInt(t,10)}function b1(t){return/^-?\d+\/-?\d+$/.test(t)}function y1(t){const[e,n]=t.split(",");if(e!==void 0&&n!==void 0){const o=parseFloat(e),s=parseFloat(n),i=n.charAt(n.length-1);if(!Number.isNaN(o)&&!Number.isNaN(s))return""+(o+s/60)+i}return t}const O$={get:D$};function D$(){if(typeof DOMParser<"u")return new DOMParser;try{const{DOMParser:t,onErrorStopParsing:e}=__non_webpack_require__("@xmldom/xmldom");return new t({onError:e})}catch{return}}const w1={read:v$};function v$(t,e){const n={};if(typeof t=="string")return Ri(n,t),n;const[o,s]=V$(t,e),i=Ri(n,o);if(s){const l=Ri(n,s);!i&&!l&&(delete n._raw,Ri(n,cu(t,e)))}return n}function V$(t,e){if(e.length===0)return[];const n=[cu(t,e.slice(0,1))];return e.length>1&&n.push(cu(t,e.slice(1))),n}function cu(t,e){const n=e.reduce((i,l)=>i+l.length,0),o=new Uint8Array(n);let s=0;for(let i=0;i<e.length;i++){const l=e[i],a=t.buffer.slice(l.dataOffset,l.dataOffset+l.length);o.set(new Uint8Array(a),s),s+=l.length}return new DataView(o.buffer)}function Ri(t,e){try{const{doc:n,raw:o}=P$(e);t._raw=(t._raw||"")+o;const s=k1(n);return te(t,C1(x1(s,!0))),!0}catch{return!1}}function P$(t){const e=O$.get();if(!e)throw console.warn("Warning: DOMParser is not available. It is needed to be able to parse XMP tags."),new Error;const n=typeof t=="string"?t:J(t,0,t.byteLength),o=e.parseFromString(R$(n),"application/xml");if(o.documentElement.nodeName==="parsererror")throw new Error(o.documentElement.textContent);return{doc:o,raw:n}}function R$(t){return t.replace(/^.+(<\?xpacket begin)/,"$1").replace(/(<\?xpacket end=".*"\?>).+$/,"$1")}function k1(t){for(let e=0;e<t.childNodes.length;e++){if(t.childNodes[e].tagName==="x:xmpmeta")return k1(t.childNodes[e]);if(t.childNodes[e].tagName==="rdf:RDF")return t.childNodes[e]}throw new Error}function x1(t,e=!1){const n=U$(t);return z$(n)?e?{}:H$(n[0]):q$(n)}function U$(t){const e=[];for(let n=0;n<t.childNodes.length;n++)e.push(t.childNodes[n]);return e}function z$(t){return t.length===1&&t[0].nodeName==="#text"}function H$(t){return t.nodeValue}function q$(t){const e={};return t.forEach(n=>{if(W$(n)){const o=j$(n);e[n.nodeName]!==void 0?(Array.isArray(e[n.nodeName])||(e[n.nodeName]=[e[n.nodeName]]),e[n.nodeName].push(o)):e[n.nodeName]=o}}),e}function W$(t){return t.nodeName&&t.nodeName!=="#text"}function j$(t){return{attributes:G$(t),value:x1(t)}}function G$(t){const e={};for(let n=0;n<t.attributes.length;n++)e[t.attributes[n].nodeName]=decodeURIComponent(escape(t.attributes[n].value));return e}function C1(t){const e={};if(typeof t=="string")return t;for(const n in t){let o=t[n];Array.isArray(o)||(o=[o]),o.forEach(s=>{te(e,uu(s.attributes)),typeof s.value=="object"&&te(e,S1(s.value))})}return e}function uu(t){const e={};for(const n in t)try{K$(n)&&(e[zi(n)]={value:t[n],attributes:{},description:en(t[n],n)})}catch{}return e}function K$(t){return t!=="rdf:parseType"&&!Ui(t)}function Ui(t){return t.split(":")[0]==="xmlns"}function zi(t){return/^MicrosoftPhoto(_\d+_)?:Rating$/i.test(t)?"RatingPercent":t.split(":")[1]}function en(t,e=void 0){if(Array.isArray(t)){const n=Z$(t);return e&&typeof Pi[e]=="function"?Pi[e](t,n):n}if(typeof t=="object")return Y$(t);try{return e&&typeof Pi[e]=="function"?Pi[e](t):decodeURIComponent(escape(t))}catch{return t}}function Z$(t){return t.map(e=>e.value!==void 0?en(e.value):en(e)).join(", ")}function Y$(t){const e=[];for(const n in t)e.push(`${Q$(n)}: ${en(t[n].value)}`);return e.join("; ")}function Q$(t){return t==="CiAdrCity"?"CreatorCity":t==="CiAdrCtry"?"CreatorCountry":t==="CiAdrExtadr"?"CreatorAddress":t==="CiAdrPcode"?"CreatorPostalCode":t==="CiAdrRegion"?"CreatorRegion":t==="CiEmailWork"?"CreatorWorkEmail":t==="CiTelWork"?"CreatorWorkPhone":t==="CiUrlWork"?"CreatorWorkUrl":t}function S1(t){const e={};for(const n in t)try{Ui(n)||(e[zi(n)]=X$(t[n],n))}catch{}return e}function X$(t,e){return eI(t)?tI(t,e):J$(t)?{value:"",attributes:{},description:""}:E1(t)?T1(t,e):B1(t)?N1(t,e):$1(t)?I1(t,e):rI(t)?sI(t,e):du(t,e)}function J$(t){return t.attributes["rdf:parseType"]==="Resource"&&typeof t.value=="string"&&t.value.trim()===""}function eI(t){return Array.isArray(t)}function tI(t,e){return du(t[t.length-1],e)}function E1(t){return t.attributes["rdf:parseType"]==="Resource"&&t.value["rdf:value"]!==void 0||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]!==void 0}function T1(t,e){const n=Xr(t);t.value["rdf:Description"]!==void 0&&(t=t.value["rdf:Description"]),te(n,Xr(t),nI(t));const o=oI(t);return{value:o,attributes:n,description:en(o,e)}}function Xr(t){const e={};for(const n in t.attributes)n!=="rdf:parseType"&&n!=="rdf:resource"&&!Ui(n)&&(e[zi(n)]=t.attributes[n]);return e}function nI(t){const e={};for(const n in t.value)n!=="rdf:value"&&!Ui(n)&&(e[zi(n)]=t.value[n].value);return e}function oI(t){return L1(t.value["rdf:value"])||t.value["rdf:value"].value}function B1(t){return t.attributes["rdf:parseType"]==="Resource"||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]===void 0}function N1(t,e){const n={value:{},attributes:{}};return t.value["rdf:Description"]!==void 0&&(te(n.value,uu(t.value["rdf:Description"].attributes)),te(n.attributes,Xr(t)),t=t.value["rdf:Description"]),te(n.value,S1(t.value)),n.description=en(n.value,e),n}function $1(t){return Object.keys(t.value).length===0&&t.attributes["xml:lang"]===void 0&&t.attributes["rdf:resource"]===void 0}function I1(t,e){const n=uu(t.attributes);return{value:n,attributes:{},description:en(n,e)}}function rI(t){return A1(t.value)!==void 0}function A1(t){return t["rdf:Bag"]||t["rdf:Seq"]||t["rdf:Alt"]}function sI(t,e){let n=A1(t.value).value["rdf:li"];const o=Xr(t),s=[];return n===void 0?n=[]:Array.isArray(n)||(n=[n]),n.forEach(i=>{s.push(iI(i))}),{value:s,attributes:o,description:en(s,e)}}function iI(t){return E1(t)?T1(t):B1(t)?N1(t).value:$1(t)?I1(t).value:du(t)}function du(t,e){const n=L1(t)||C1(t.value);return{value:n,attributes:Xr(t),description:en(n,e)}}function L1(t){return t.attributes&&t.attributes["rdf:resource"]}const tn={CLOSED_SUBPATH_LENGTH:0,CLOSED_SUBPATH_BEZIER_LINKED:1,CLOSED_SUBPATH_BEZIER_UNLINKED:2,OPEN_SUBPATH_LENGTH:3,OPEN_SUBPATH_BEZIER_LINKED:4,OPEN_SUBPATH_BEZIER_UNLINKED:5,FILL_RULE:6,CLIPBOARD:7,INITIAL_FILL_RULE:8},F1=24,fu={2e3:{name:"PathInformation",description:lI},2999:{name:"ClippingPathName",description(t){const[,e]=m_(t,0);return e}}};function lI(t){const n={},o=[];for(let s=0;s<t.byteLength;s+=2+F1){const i=R.getShortAt(t,s);hu[i]&&(n[i]||(n[i]=hu[i].description),o.push({type:i,path:hu[i].path(t,s+2)}))}return JSON.stringify({types:n,paths:o})}const hu={[tn.CLOSED_SUBPATH_LENGTH]:{description:"Closed subpath length",path:(t,e)=>[R.getShortAt(t,e)]},[tn.CLOSED_SUBPATH_BEZIER_LINKED]:{description:"Closed subpath Bezier knot, linked",path:Hi},[tn.CLOSED_SUBPATH_BEZIER_UNLINKED]:{description:"Closed subpath Bezier knot, unlinked",path:Hi},[tn.OPEN_SUBPATH_LENGTH]:{description:"Open subpath length",path:(t,e)=>[R.getShortAt(t,e)]},[tn.OPEN_SUBPATH_BEZIER_LINKED]:{description:"Open subpath Bezier knot, linked",path:Hi},[tn.OPEN_SUBPATH_BEZIER_UNLINKED]:{description:"Open subpath Bezier knot, unlinked",path:Hi},[tn.FILL_RULE]:{description:"Path fill rule",path:()=>[]},[tn.INITIAL_FILL_RULE]:{description:"Initial fill rule",path:(t,e)=>[R.getShortAt(t,e)]},[tn.CLIPBOARD]:{description:"Clipboard",path:cI}};function Hi(t,e){const o=[];for(let s=0;s<F1;s+=8)o.push(aI(t,e+s));return o}function aI(t,e){const n=no(t,e,8);return[no(t,e+4,8),n]}function cI(t,e){return[[no(t,e,8),no(t,e+4,8),no(t,e+8,8),no(t,e+12,8)],no(t,e+16,8)]}function no(t,e,n){const o=R.getLongAt(t,e),s=o>>>31?-1:1,i=(o&2130706432)>>>32-n,l=o&parseInt(g_("1",32-n),2);return s*gN(i.toString(2)+"."+_N(l.toString(2),32-n,"0"),2)}const uI={read:hI},M1="8BIM",dI=2,fI=4,O1=M1.length;function hI(t,e){const n=h_(new Uint8Array(t).buffer),o={};let s=0;for(;s<t.length;){const i=J(n,s,O1);s+=O1;const l=R.getShortAt(n,s);s+=dI;const{tagName:a,tagNameSize:c}=mI(n,s);s+=c;const u=R.getLongAt(n,s);if(s+=fI,i===M1){const d=h_(n.buffer,s,u),f={id:l,value:J(d,0,u)};if(fu[l]){try{f.description=fu[l].description(d)}catch{f.description="<no description formatter>"}o[a||fu[l].name]=f}else e&&(o[`undefined-${l}`]=f)}s+=u+u%2}return o}function mI(t,e){const[n,o]=m_(t,e);return{tagName:o,tagNameSize:1+n+(n%2===0?1:0)}}const D1={desc:{name:"ICC Description"},cprt:{name:"ICC Copyright"},dmdd:{name:"ICC Device Model Description"},vued:{name:"ICC Viewing Conditions Description"},dmnd:{name:"ICC Device Manufacturer for Display"},tech:{name:"Technology"}},v1={4:{name:"Preferred CMM type",value:(t,e)=>J(t,e,4),description:t=>t!==null?mu(t):""},8:{name:"Profile Version",value:(t,e)=>t.getUint8(e).toString(10)+"."+(t.getUint8(e+1)>>4).toString(10)+"."+(t.getUint8(e+1)%16).toString(10)},12:{name:"Profile/Device class",value:(t,e)=>J(t,e,4),description:t=>{switch(t.toLowerCase()){case"scnr":return"Input Device profile";case"mntr":return"Display Device profile";case"prtr":return"Output Device profile";case"link":return"DeviceLink profile";case"abst":return"Abstract profile";case"spac":return"ColorSpace profile";case"nmcl":return"NamedColor profile";case"cenc":return"ColorEncodingSpace profile";case"mid ":return"MultiplexIdentification profile";case"mlnk":return"MultiplexLink profile";case"mvis":return"MultiplexVisualization profile";default:return t}}},16:{name:"Color Space",value:(t,e)=>J(t,e,4)},20:{name:"Connection Space",value:(t,e)=>J(t,e,4)},24:{name:"ICC Profile Date",value:(t,e)=>pI(t,e).toISOString()},36:{name:"ICC Signature",value:(t,e)=>_I(t.buffer.slice(e,e+4))},40:{name:"Primary Platform",value:(t,e)=>J(t,e,4),description:t=>mu(t)},48:{name:"Device Manufacturer",value:(t,e)=>J(t,e,4),description:t=>mu(t)},52:{name:"Device Model Number",value:(t,e)=>J(t,e,4)},64:{name:"Rendering Intent",value:(t,e)=>t.getUint32(e),description:t=>{switch(t){case 0:return"Perceptual";case 1:return"Relative Colorimetric";case 2:return"Saturation";case 3:return"Absolute Colorimetric";default:return t}}},80:{name:"Profile Creator",value:(t,e)=>J(t,e,4)}};function pI(t,e){const n=t.getUint16(e),o=t.getUint16(e+2)-1,s=t.getUint16(e+4),i=t.getUint16(e+6),l=t.getUint16(e+8),a=t.getUint16(e+10);return new Date(Date.UTC(n,o,s,i,l,a))}function _I(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function mu(t){switch(t.toLowerCase()){case"appl":return"Apple";case"adbe":return"Adobe";case"msft":return"Microsoft";case"sunw":return"Sun Microsystems";case"sgi":return"Silicon Graphics";case"tgnt":return"Taligent";default:return t}}const V1={read:EI},gI=84,bI=128,yI="acsp",wI="desc",kI="mluc",xI="text",CI="sig ",SI=12;function EI(t,e,n){return n&&e[0].compressionMethod!==Ii?TI(t,e):NI(t,e)}function TI(t,e){if(!BI(e[0].compressionMethod))return{};const n=new DataView(t.buffer.slice(e[0].offset,e[0].offset+e[0].length));return y_(n,e[0].compressionMethod,"utf-8","dataview").then(P1).catch(()=>({}))}function BI(t){return t===b_}function NI(t,e){try{const n=e.reduce((l,a)=>l+a.length,0),o=new Uint8Array(n);let s=0;const i=$I(t);for(let l=1;l<=e.length;l++){const a=e.find(d=>d.chunkNumber===l);if(!a)throw new Error(`ICC chunk ${l} not found`);const c=i.slice(a.offset,a.offset+a.length),u=new Uint8Array(c);o.set(u,s),s+=u.length}return P1(new DataView(o.buffer))}catch{return{}}}function $I(t){return Array.isArray(t)?new DataView(Uint8Array.from(t).buffer).buffer:t.buffer}function II(t){return t.length<bI+4}function AI(t,e){return t.length<e+SI}function P1(t){const e=t.buffer,n=t.getUint32();if(t.byteLength!==n)throw new Error("ICC profile length not matching");if(t.length<gI)throw new Error("ICC profile too short");const o={},s=Object.keys(v1);for(let c=0;c<s.length;c++){const u=s[c],d=v1[u],f=d.value(t,parseInt(u,10));let h=f;d.description&&(h=d.description(f)),o[d.name]={value:f,description:h}}if(qi(e.slice(36,40))!==yI)throw new Error("ICC profile: missing signature");if(II(e))return o;const l=t.getUint32(128);let a=132;for(let c=0;c<l;c++){if(AI(e,a))return o;const u=J(t,a,4),d=t.getUint32(a+4),f=t.getUint32(a+8);if(d>e.length)return o;const h=J(t,d,4);if(h===wI){const m=t.getUint32(d+8);if(m>f)return o;const g=qi(e.slice(d+12,d+m+11));Jr(o,u,g)}else if(h===kI){const m=t.getUint32(d+8),g=t.getUint32(d+12);let p=d+16;const _=[];for(let b=0;b<m;b++){const y=J(t,p+0,2),w=J(t,p+2,2),k=t.getUint32(p+4),S=t.getUint32(p+8),C=mN(t,d+S,k);_.push({languageCode:y,countryCode:w,text:C}),p+=g}if(m===1)Jr(o,u,_[0].text);else{const b={};for(let y=0;y<_.length;y++)b[`${_[y].languageCode}-${_[y].countryCode}`]=_[y].text;Jr(o,u,b)}}else if(h===xI){const m=qi(e.slice(d+8,d+f-7));Jr(o,u,m)}else if(h===CI){const m=qi(e.slice(d+8,d+12));Jr(o,u,m)}a=a+12}return o}function qi(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function Jr(t,e,n){D1[e]?t[D1[e].name]={value:n,description:n}:t[e]={value:n,description:n}}const Wi=27,LI={read:FI,SHOT_INFO_AUTO_ROTATE:Wi};function FI(t,e,n,o,s){let i=to(t,o1,e,e+n,o,s);return i.ShotInfo&&(i=te({},i,MI(i.ShotInfo.value)),delete i.ShotInfo),i}function MI(t){const e={};return t[Wi]!==void 0&&(e.AutoRotate={value:t[Wi],description:OI(t[Wi])}),e}function OI(t){return t===0?"None":t===1?"Rotate 90 CW":t===2?"Rotate 180":t===3?"Rotate 270 CW":"Unknown"}const DI={read:vI};function vI(t,e){return{"Image Width":VI(t,e),"Image Height":PI(t,e),"Bit Depth":RI(t,e),"Color Type":UI(t,e),Compression:zI(t,e),Filter:HI(t,e),Interlace:qI(t,e)}}function VI(t,e){if(e+0+4>t.byteLength)return;const s=R.getLongAt(t,e);return{value:s,description:`${s}px`}}function PI(t,e){if(e+4+4>t.byteLength)return;const s=R.getLongAt(t,e+4);return{value:s,description:`${s}px`}}function RI(t,e){if(e+8+1>t.byteLength)return;const s=R.getByteAt(t,e+8);return{value:s,description:`${s}`}}function UI(t,e){const s={0:"Grayscale",2:"RGB",3:"Palette",4:"Grayscale with Alpha",6:"RGB with Alpha"};if(e+9+1>t.byteLength)return;const i=R.getByteAt(t,e+9);return{value:i,description:s[i]||"Unknown"}}function zI(t,e){if(e+10+1>t.byteLength)return;const s=R.getByteAt(t,e+10);return{value:s,description:s===0?"Deflate/Inflate":"Unknown"}}function HI(t,e){if(e+11+1>t.byteLength)return;const s=R.getByteAt(t,e+11);return{value:s,description:s===0?"Adaptive":"Unknown"}}function qI(t,e){const s={0:"Noninterlaced",1:"Adam7 Interlace"};if(e+12+1>t.byteLength)return;const i=R.getByteAt(t,e+12);return{value:i,description:s[i]||"Unknown"}}const WI={read:YI},pu="STATE_KEYWORD",_u="STATE_COMPRESSION",gu="STATE_LANG",jI="STATE_TRANSLATED_KEYWORD",bu="STATE_TEXT",GI=1,KI=1,ZI=6;function YI(t,e,n,o){const s={},i=[];for(let l=0;l<e.length;l++){const{offset:a,length:c,type:u}=e[l],d=QI(t,a,c,u,n);if(d instanceof Promise)i.push(d.then(({name:f,value:h,description:m})=>{try{if(w_.USE_EXIF&&U1(f,h))return{__exif:f1.read(H1(h),ZI,o).tags};if(w_.USE_IPTC&&z1(f,h))return{__iptc:au.read(H1(h),0,o)};if(f&&!U1(f,h)&&!z1(f,h))return{[f]:{value:h,description:m}}}catch{}return{}}));else{const{name:f,value:h,description:m}=d;f&&(s[f]={value:h,description:m})}}return{readTags:s,readTagsPromise:i.length>0?Promise.all(i):void 0}}function QI(t,e,n,o,s){const i=[],l=[];let a,c=pu,u=Ii;for(let f=0;f<n&&e+f<t.byteLength;f++){if(c===_u){u=XI({type:o,dataView:t,offset:e+f}),o===eo&&(f+=GI),c=R1(o,c);continue}else if(c===bu){a=new DataView(t.buffer.slice(e+f,e+n));break}const h=t.getUint8(e+f);h===0?c=R1(o,c):c===pu?i.push(h):c===gu&&l.push(h)}if(u!==Ii&&!s)return{};const d=y_(a,u,JI(o));return d instanceof Promise?d.then(f=>yu(f,o,l,i)).catch(()=>yu("<text using unknown compression>".split(""),o,l,i)):yu(d,o,l,i)}function XI({type:t,dataView:e,offset:n}){if(t===eo){if(e.getUint8(n)===KI)return e.getUint8(n+1)}else if(t===Fi)return e.getUint8(n);return Ii}function R1(t,e){return e===pu&&[eo,Fi].includes(t)?_u:e===_u?t===eo?gu:bu:e===gu?jI:bu}function JI(t){return t===eu||t===Fi?"latin1":"utf-8"}function yu(t,e,n,o){const s=tA(t);return{name:eA(e,n,o),value:s,description:e===eo?nA(t):s}}function eA(t,e,n){const o=Zo(n);if(t===eu||e.length===0)return o;const s=Zo(e);return`${o} (${s})`}function tA(t){return t instanceof DataView?J(t,0,t.byteLength):t}function nA(t){return m1.decode("UTF-8",t)}function U1(t,e){return t.toLowerCase()==="raw profile type exif"&&e.substring(1,5)==="exif"}function z1(t,e){return t.toLowerCase()==="raw profile type iptc"&&e.substring(1,5)==="iptc"}function H1(t){const e=t.match(/\n(exif|iptc)\n\s*\d+\n([\s\S]*)$/);return oA(e[2].replace(/\n/g,""))}function oA(t){const e=new DataView(new ArrayBuffer(t.length/2));for(let n=0;n<t.length;n+=2)e.setUint8(n/2,parseInt(t.substring(n,n+2),16));return e}const rA={read:sA};function sA(t,e){const n={};for(let o=0;o<e.length;o++){const s=R.getLongAt(t,e[o]+Yo),i=J(t,e[o]+Cn,At);i===P_?(n["Pixels Per Unit X"]=iA(t,e[o],s),n["Pixels Per Unit Y"]=lA(t,e[o],s),n["Pixel Units"]=aA(t,e[o],s)):i===R_&&(n["Modify Date"]=cA(t,e[o],s))}return n}function iA(t,e,n){if(!ji(t,e,n,0,4))return;const i=R.getLongAt(t,e+Fe+0);return{value:i,description:""+i}}function lA(t,e,n){if(!ji(t,e,n,4,4))return;const i=R.getLongAt(t,e+Fe+4);return{value:i,description:""+i}}function aA(t,e,n){if(!ji(t,e,n,8,1))return;const i=R.getByteAt(t,e+Fe+8);return{value:i,description:i===1?"meters":"Unknown"}}function cA(t,e,n){if(!ji(t,e,n,0,7))return;const s=R.getShortAt(t,e+Fe),i=R.getByteAt(t,e+Fe+2),l=R.getByteAt(t,e+Fe+3),a=R.getByteAt(t,e+Fe+4),c=R.getByteAt(t,e+Fe+5),u=R.getByteAt(t,e+Fe+6);return{value:[s,i,l,a,c,u],description:`${Jo(s,4)}-${Jo(i,2)}-${Jo(l,2)} ${Jo(a,2)}:${Jo(c,2)}:${Jo(u,2)}`}}function ji(t,e,n,o,s){return o+s<=n&&e+Fe+o+s<=t.byteLength}function Jo(t,e){return`${"0".repeat(e-(""+t).length)}${t}`}const uA={read:hA},dA=4,fA=7;function hA(t,e){const n={},o=R.getByteAt(t,e);return n.Alpha=mA(o),n.Animation=pA(o),n.ImageWidth=q1(t,e+dA),n.ImageHeight=q1(t,e+fA),n}function mA(t){const e=t&16;return{value:e?1:0,description:e?"Yes":"No"}}function pA(t){const e=t&2;return{value:e?1:0,description:e?"Yes":"No"}}function q1(t,e){const n=R.getByteAt(t,e)+256*R.getByteAt(t,e+1)+65536*R.getByteAt(t,e+2)+1;return{value:n,description:n+"px"}}const _A={read:gA};function gA(t){return{"GIF Version":bA(t),"Image Width":yA(t),"Image Height":wA(t),"Global Color Map":kA(t),"Bits Per Pixel":CA(t),"Color Resolution Depth":xA(t)}}function bA(t){if(6>t.byteLength)return;const o=J(t,3,3);return{value:o,description:o}}function yA(t){if(8>t.byteLength)return;const o=t.getUint16(6,!0);return{value:o,description:`${o}px`}}function wA(t){if(10>t.byteLength)return;const o=t.getUint16(8,!0);return{value:o,description:`${o}px`}}function kA(t){if(11>t.byteLength)return;const s=(t.getUint8(10)&128)>>>7;return{value:s,description:s===1?"Yes":"No"}}function xA(t){if(11>t.byteLength)return;const s=((t.getUint8(10)&112)>>>4)+1;return{value:s,description:`${s} ${s===1?"bit":"bits"}`}}function CA(t){if(11>t.byteLength)return;const s=(t.getUint8(10)&7)+1;return{value:s,description:`${s} ${s===1?"bit":"bits"}`}}const SA=[6,7,99],EA={get:TA};function TA(t,e,n){if(BA(e)){e.type="image/jpeg";const o=n+e.JPEGInterchangeFormat.value;e.image=t.buffer.slice(o,o+e.JPEGInterchangeFormatLength.value),p_(e,"base64",function(){return __(this.image)})}return e}function BA(t){return t&&(t.Compression===void 0||SA.includes(t.Compression.value))&&t.JPEGInterchangeFormat&&t.JPEGInterchangeFormat.value&&t.JPEGInterchangeFormatLength&&t.JPEGInterchangeFormatLength.value}function W1(t){this.name="MetadataMissingError",this.message=t||"No Exif data",this.stack=new Error().stack}W1.prototype=new Error;const j1={MetadataMissingError:W1},NA={load:$A,loadView:G1,errors:j1};function $A(t,e={}){return IA(t)?(e.async=!0,AA(t,e).then(n=>wu(n,e))):VA(t)?(e.async=!0,PA(t).then(n=>wu(n,e))):wu(t,e)}function IA(t){return typeof t=="string"}function AA(t,e){return/^\w+:\/\//.test(t)?typeof fetch<"u"?LA(t,e):FA(t,e):OA(t)?Promise.resolve(pN(t)):DA(t,e)}function LA(t,{length:e}={}){const n={method:"GET"};return Number.isInteger(e)&&e>=0&&(n.headers={range:`bytes=0-${e-1}`}),fetch(t,n).then(o=>o.arrayBuffer())}function FA(t,{length:e}={}){return new Promise((n,o)=>{const s={};Number.isInteger(e)&&e>=0&&(s.headers={range:`bytes=0-${e-1}`}),MA(t)(t,s,l=>{if(l.statusCode>=200&&l.statusCode<=299){const a=[];l.on("data",c=>a.push(Buffer.from(c))),l.on("error",c=>o(c)),l.on("end",()=>n(Buffer.concat(a)))}else o(`Could not fetch file: ${l.statusCode} ${l.statusMessage}`),l.resume()}).on("error",l=>o(l))})}function MA(t){return/^https:\/\//.test(t)?__non_webpack_require__("https").get:__non_webpack_require__("http").get}function OA(t){return/^data:[^;,]*(;base64)?,/.test(t)}function DA(t,{length:e}={}){return new Promise((n,o)=>{const s=vA();s.open(t,(i,l)=>{i?o(i):s.stat(t,(a,c)=>{if(a)o(a);else{const u=Math.min(c.size,e!==void 0?e:c.size),d=Buffer.alloc(u),f={buffer:d,length:u};s.read(l,f,h=>{h?o(h):s.close(l,m=>{m&&console.warn(`Could not close file ${t}:`,m),n(d)})})}})})})}function vA(){try{return __non_webpack_require__("fs")}catch{return}}function VA(t){return typeof File<"u"&&t instanceof File}function PA(t){return new Promise((e,n)=>{const o=new FileReader;o.onload=s=>e(s.target.result),o.onerror=()=>n(o.error),o.readAsArrayBuffer(t)})}function wu(t,e){return RA(t)&&(t=new Uint8Array(t).buffer),G1(UA(t),e)}function RA(t){try{return Buffer.isBuffer(t)}catch{return!1}}function UA(t){try{return new DataView(t)}catch{return new f_(t)}}function G1(t,{expanded:e=!1,async:n=!1,includeUnknown:o=!1}={expanded:!1,async:!1,includeUnknown:!1}){let s=!1,i={};const l=[],{fileType:a,fileDataOffset:c,jfifDataOffset:u,tiffHeaderOffset:d,iptcDataOffset:f,xmpChunks:h,iccChunks:m,mpfDataOffset:g,pngHeaderOffset:p,pngTextChunks:_,pngChunkOffsets:b,vp8xChunkOffset:y,gifHeaderOffset:w}=l5.parseAppMarkers(t,n);if(zA(c)){s=!0;const x=z5.read(t,c);e?i.file=x:i=te({},i,x)}if(HA(u)){s=!0;const x=X5.read(t,u);e?i.jfif=x:i=te({},i,x)}if(qA(d)){s=!0;const{tags:x,byteOrder:T}=f1.read(t,d,o);if(x.Thumbnail&&(i.Thumbnail=x.Thumbnail,delete x.Thumbnail),e?(i.exif=x,WA(i)):i=te({},i,x),x["IPTC-NAA"]&&!K1(f)){const B=au.read(x["IPTC-NAA"].value,0,o);e?i.iptc=B:i=te({},i,B)}if(x.ApplicationNotes&&!Z1(h)){const B=w1.read(Zo(x.ApplicationNotes.value));e?i.xmp=B:(delete B._raw,i=te({},i,B))}if(x.ImageSourceData){const B=uI.read(x.PhotoshopSettings.value,o);e?i.photoshop=B:i=te({},i,B)}if(x.ICC_Profile&&!Y1(m)){const B=V1.read(x.ICC_Profile.value,[{offset:0,length:x.ICC_Profile.value.length,chunkNumber:1,chunksTotal:1}]);e?i.icc=B:i=te({},i,B)}if(jA(x)){const B=LI.read(t,d,x.MakerNote.__offset,T,o);e?i.makerNotes=B:i=te({},i,B)}x.MakerNote&&delete x.MakerNote.__offset}if(K1(f)){s=!0;const x=au.read(t,f,o);e?i.iptc=x:i=te({},i,x)}if(Z1(h)){s=!0;const x=w1.read(t,h);e?i.xmp=x:(delete x._raw,i=te({},i,x))}if(Y1(m)){s=!0;const x=V1.read(t,m,n);x instanceof Promise?l.push(x.then(S)):S(x)}if(GA(g)){s=!0;const x=M5.read(t,g,o);e?i.mpf=x:i=te({},i,x)}if(KA(p)){s=!0;const x=DI.read(t,p);e?(i.png=i.png?te({},i.png,x):x,i.pngFile=x):i=te({},i,x)}if(ZA(_)){s=!0;const{readTags:x,readTagsPromise:T}=WI.read(t,_,n,o);C(x),T&&l.push(T.then(B=>B.forEach(C)))}if(YA(b)){s=!0;const x=rA.read(t,b);e?i.png=i.png?te({},i.png,x):x:i=te({},i,x)}if(QA(y)){s=!0;const x=uA.read(t,y);e?i.riff=i.riff?te({},i.riff,x):x:i=te({},i,x)}if(XA(w)){s=!0;const x=_A.read(t,w);e?i.gif=i.gif?te({},i.gif,x):x:i=te({},i,x)}const k=EA.get(t,i.Thumbnail,d);if(k?(s=!0,i.Thumbnail=k):delete i.Thumbnail,a&&(e?(i.file||(i.file={}),i.file.FileType=a):i.FileType=a,s=!0),!s)throw new j1.MetadataMissingError;if(n)return Promise.all(l).then(()=>i);return i;function S(x){e?i.icc=x:i=te({},i,x)}function C(x){if(e){for(const T of["exif","iptc"]){const B=`__${T}`;x[B]&&(i[T]=i[T]?te({},i.exif,x[B]):x[B],delete x[B])}i.png=i.png?te({},i.png,x):x,i.pngText=i.pngText?te({},i.png,x):x}else i=te({},i,x.__exif?x.__exif:{},x.__iptc?x.__iptc:{},x),delete i.__exif,delete i.__iptc}}function zA(t){return t!==void 0}function HA(t){return t!==void 0}function qA(t){return t!==void 0}function WA(t){if(t.exif){if(t.exif.GPSLatitude&&t.exif.GPSLatitudeRef)try{t.gps=t.gps||{},t.gps.Latitude=Ai(t.exif.GPSLatitude.value),t.exif.GPSLatitudeRef.value.join("")==="S"&&(t.gps.Latitude=-t.gps.Latitude)}catch{}if(t.exif.GPSLongitude&&t.exif.GPSLongitudeRef)try{t.gps=t.gps||{},t.gps.Longitude=Ai(t.exif.GPSLongitude.value),t.exif.GPSLongitudeRef.value.join("")==="W"&&(t.gps.Longitude=-t.gps.Longitude)}catch{}if(t.exif.GPSAltitude&&t.exif.GPSAltitudeRef)try{t.gps=t.gps||{},t.gps.Altitude=t.exif.GPSAltitude.value[0]/t.exif.GPSAltitude.value[1],t.exif.GPSAltitudeRef.value===1&&(t.gps.Altitude=-t.gps.Altitude)}catch{}}}function K1(t){return t!==void 0}function Z1(t){return Array.isArray(t)&&t.length>0}function Y1(t){return Array.isArray(t)&&t.length>0}function jA(t){return t.Make&&t.Make.value&&Array.isArray(t.Make.value)&&t.Make.value[0]==="Canon"&&t.MakerNote&&t.MakerNote.__offset}function GA(t){return t!==void 0}function KA(t){return t!==void 0}function ZA(t){return t!==void 0}function YA(t){return t!==void 0}function QA(t){return t!==void 0}function XA(t){return t!==void 0}async function Q1(t,e=null){if(t.location)return t.location;try{const n=await NA.load(t.blobUrl||t.url||"",{expanded:!0});if(n.gps)return{latitude:n.gps.Latitude,longitude:n.gps.Longitude}}catch(n){console.error("Failed to load EXIF data from file:",n)}try{const{waitForLocation:n,location:o}=Bp();if(e&&setTimeout(()=>{!o.value&&e&&et.warning(e)},1e3),window.location.protocol==="https:")await n();else if(window.location.href.match("localhost"))return{latitude:37.7749,longitude:-122.4194,accuracy:1,altitude:0,altitudeAccuracy:0};return o.value?{latitude:o.value.latitude,longitude:o.value.longitude,accuracy:o.value.accuracy,altitude:o.value.altitude,altitudeAccuracy:o.value.altitudeAccuracy}:null}catch(n){return console.error(n),null}}class Gi{constructor(e,n){if(this.files=[],this.fileUploads=[],this.onErrorCb=null,this.onProgressCb=null,this.onCompleteCb=null,this.onAllCompleteCb=null,this.files=!Array.isArray(e)&&!(e instanceof FileList)?[e]:e,this.fileUploads=[],this.onErrorCb=null,this.onProgressCb=null,this.onCompleteCb=null,this.onAllCompleteCb=null,this.options={createPresignedUpload:null,completePresignedUpload:null,refreshFile:null,...fe.value.fileUpload,...n},!this.options.createPresignedUpload||!this.options.completePresignedUpload)throw new Error("Please configure danxOptions.fileUpload: import { configure } from 'quasar-ui-danx';")}prepare(){for(const e of this.files){if(!(e instanceof File))throw Error("FileUpload constructor requires a File object or a list of File objects");e.id=pe.uid(),e.blobUrl=URL.createObjectURL(e);const n=new FormData;n.append("file",e),this.fileUploads.push({file:e,xhr:null,formData:n,isComplete:!1})}return this}onAllComplete(e){return this.onAllCompleteCb=e,this}onComplete(e){return this.onCompleteCb=e,this}onProgress(e){return this.onProgressCb=e,this}onError(e){return this.onErrorCb=e,this}errorHandler(e,n,o=null){this.onErrorCb&&this.onErrorCb({e,file:n,error:o})}async resolveLocation(e=null){for(const n of this.fileUploads)n.file.location=await Q1(n.file,e),n.formData.append("meta",JSON.stringify(n.file.location));return this}fireProgressCallback(e,n){e.file.progress=n,this.onProgressCb&&this.onProgressCb({file:this.wrapFile(e.file),progress:n})}fireCompleteCallback(e,n){e.isComplete=!0,e.file.progress=1,this.onCompleteCb&&this.onCompleteCb({file:this.wrapFile(e.file),uploadedFile:n})}checkAllComplete(){this.onAllCompleteCb&&this.fileUploads.every(e=>e.isComplete)&&this.onAllCompleteCb({files:this.fileUploads})}wrapFile(e){return{id:e.id,name:e.name,size:e.size,type:e.type,progress:e.progress,location:e.location,blobUrl:e.blobUrl,url:"",__type:"BrowserFile"}}setXhrCallbacks(){var e,n,o;for(const s of this.fileUploads)(e=s.xhr)==null||e.addEventListener("error",i=>this.errorHandler(i,s.file),!1);if(this.onProgressCb)for(const s of this.fileUploads)(n=s.xhr)==null||n.upload.addEventListener("progress",i=>{const l=Math.min(.95,i.loaded/i.total);this.fireProgressCallback(s,l)},!1);for(const s of this.fileUploads)(o=s.xhr)==null||o.addEventListener("load",async i=>{try{let l=await this.completePresignedUpload(s);l=ye(l),this.fireCompleteCallback(s,l),this.checkAllComplete()}catch(l){this.errorHandler(i,s.file,l)}},!1)}async completePresignedUpload(e){if(this.fireProgressCallback(e,.95),!e.file.resource_id)throw new Error("File resource ID is required to complete presigned upload");if(!this.options.completePresignedUpload)throw new Error("Please configure danxOptions.fileUpload.completePresignedUpload");return await this.options.completePresignedUpload(e.file.resource_id,e)}async refreshFile(e){if(!this.options.refreshFile)return null;const n=await this.options.refreshFile(e.id);return n&&ye(n)}isTranscoding(e){var o;const n=((o=e==null?void 0:e.meta)==null?void 0:o.transcodes)||[];for(const s of Object.keys(n)){const i=n[s];if(i.status==="Pending"||i.status==="In Progress"){const l=kt(i.started_at),a=l&&q.now().diff(l,"minutes");if(!(a!=null&&a.minutes)||a.minutes<30)return!0}}return!1}async upload(){var e;for(const n of this.fileUploads){const o=n.file.mimeType||n.file.type;if(!this.options.createPresignedUpload)throw new Error("Please configure danxOptions.fileUpload.createPresignedUpload");const s=await this.options.createPresignedUpload(this.options.directory||"",n.file.name,o);if(!s.url){et.error("Could not fetch presigned upload URL for file "+n.file.name);continue}const i=!s.url.match("upload-presigned-url-contents");n.file.resource_id=s.id;const l=new XMLHttpRequest;i?(l.open("PUT",s.url),l.setRequestHeader("Content-Type",o),n.body=n.file):(l.open("POST",s.url),n.body=n.formData),n.xhr=l}this.setXhrCallbacks();for(const n of this.fileUploads)(e=n.xhr)==null||e.send(n.body)}}const Ki=r.ref([]),Zi=r.ref([]);function JA(t){Ki.value=[...Ki.value,t]}function e9(t,e,n){Zi.value.push({id:n,name:t,callback:e})}function t9(t){Zi.value=Zi.value.filter(e=>e.id!==t)}function X1(t,e,n){for(let o of Ki.value)if(o.type===t&&o.key===e&&n.ctrlKey===!!o.ctrl&&n.altKey===!!o.alt&&n.shiftKey===!!o.shift)for(let s of Zi.value)s.name===o.name&&s.callback(n)}function J1(t){return t.key?(""+t.key).toLowerCase():t.keyCode}function n9(t){Ki.value=t,window.addEventListener("keydown",e=>{X1("keydown",J1(e),e)}),window.addEventListener("keyup",e=>{X1("keyup",J1(e),e)})}function o9(t){return new Promise((e,n)=>{const o=new FileReader;let s=null;o.onload=async i=>{var l;try{s=JSON.parse((l=i.target)==null?void 0:l.result),e(s)}catch(a){console.error("Invalid JSON file:",a),n(a)}},o.readAsText(t)})}function eg(t){const e=r.ref([]),n=r.ref(null),o=r.ref(null),s=h=>{e.value=[...e.value,...h.target.files],i(),new Gi(h.target.files,t).prepare().onProgress(({file:m})=>{m&&l(m)}).onComplete(({file:m,uploadedFile:g})=>{m&&l(m,g)}).onError(({file:m,error:g})=>{console.error("Failed to upload",m,g),et.error(`Failed to upload ${m.name}: ${g}`)}).onAllComplete(()=>{n.value&&n.value({file:e.value[0],uploadedFile:e.value[0]}),i()}).upload()};function i(){o.value&&o.value(e.value)}function l(h,m=null){const g=e.value.findIndex(p=>p.id===h.id);g!==-1&&e.value.splice(g,1,m||h),i()}return{clearUploadedFiles:()=>{e.value=[],i(),n.value&&n.value({file:null,uploadedFile:null})},onRemove:h=>{const m=e.value.findIndex(g=>g.id===h.id);m!==-1&&e.value.splice(m,1),i(),n.value&&n.value({file:h,uploadedFile:h})},onComplete:h=>{n.value=h},onFilesChange:h=>{o.value=h},onDrop:h=>{var m;s({target:{files:(m=h.dataTransfer)==null?void 0:m.files}})},onFilesSelected:s,uploadedFiles:e}}const Me={activeRequests:{},url(t){var e;return t.startsWith("http")?t:(((e=fe.value.request)==null?void 0:e.baseUrl)||"").replace(/\/$/,"")+"/"+t},async call(t,e){var g,p;e=e||{};const n=(e==null?void 0:e.requestKey)||t+JSON.stringify(e.params||""),o=!!(e!=null&&e.waitOnPrevious),s=!!(e!=null&&e.useMostRecentResponse),i=!o,l=Date.now(),a=Me.activeRequests[n],c={timestamp:l};if(Me.activeRequests[n]=c,i){a&&((g=a.abortController)==null||g.abort("Request was aborted due to a newer request being made"));const _=new AbortController;c.abortController=_,e.signal=_.signal}if(e.params){for(const[_,b]of Object.entries(e.params))typeof b=="object"&&b!==null&&(e.params[_]=JSON.stringify(b));t+=(t.match(/\?/)?"&":"?")+new URLSearchParams(e.params).toString(),delete e.params}let u,d;if(c.requestPromise=new Promise((_,b)=>{u=_,d=b}),o&&(a!=null&&a.requestPromise))try{await a.requestPromise}catch{}let f;try{f=await fetch(Me.url(t),e)}catch(_){if(e.ignoreAbort&&(_+"").match(/Request was aborted/)){const b={abort:!0};return u(b),b}throw d(_),_}r9(f);let h=Me.activeRequests[n],m=await f.json();if(u(m),h.timestamp!==l){if(i)m={abort:!0};else if(s)do if(h=Me.activeRequests[n],m=await h.requestPromise,Me.activeRequests[n].timestamp===h.timestamp)break;while(h.timestamp!==Me.activeRequests[n].timestamp)}if(f.status===401){const _=(p=fe.value.request)==null?void 0:p.onUnauthorized;return _?_(m,f):{error:!0,message:"Unauthorized",...m}}return f.status>400&&m.exception&&!m.error&&(m.error=!0),m},async poll(t,e,n,o){let s;o||(o=i=>!!i);do s=await Me.call(t,e),await Cs(n||1e3);while(!o(s));return s},async get(t,e){var n;return await Me.call(t,{method:"get",...e,headers:{Accept:"application/json","Content-Type":"application/json",...(n=fe.value.request)==null?void 0:n.headers,...e==null?void 0:e.headers}})},async post(t,e,n){var o;return await Me.call(t,{method:"post",body:e&&JSON.stringify(e),...n,headers:{Accept:"application/json","Content-Type":"application/json",...(o=fe.value.request)==null?void 0:o.headers,...n==null?void 0:n.headers}})}};function r9(t){const e=fe.value.request;if(!e||!e.headers||!e.onAppVersionMismatch)return;const n=e.headers["X-App-Version"]||"",o=t.headers.get("X-App-Version");n&&n!==o&&e.onAppVersionMismatch(o)}async function s9(t,e,n,o){let s;n&&(s=e.value.find(i=>i.id===n)||(await t({id:n}))[0]),e.value=await t(o),s&&!e.value.find(i=>i.id===n)&&e.value.push(s)}function tg(t,e){return new URLSearchParams((e==null?void 0:e.replace(/.*\?/,""))||window.location.search).get(t)}function i9(t,e){return{async list(n,o){o={...o,ignoreAbort:!0};const s=await Me.post(`${t}/list`,n,o);return s.data&&(s.data=gp(s.data)),s},summary(n,o){return o={...o,ignoreAbort:!0},Me.post(`${t}/summary`,{filter:n},o)},async details(n,o,s){s={...s,ignoreAbort:!0},o&&(s.params={fields:o});const i=await Me.get(`${t}/${n.id}/details`,s);return ye(i)},fieldOptions(n){return Me.get(`${t}/field-options`,n)},async applyAction(n,o,s,i){var a,c;i={...i,waitOnPrevious:!0,useMostRecentResponse:!0,headers:{...i==null?void 0:i.headers,"X-Timestamp":Date.now().toString()}},s=s||{};const l=await Me.post(`${t}/${o?o.id+"/":""}apply-action`,{action:n,data:s},i);return l.item&&(l.item=ye(l.item)),(a=l.result)!=null&&a.__type&&((c=l.result)!=null&&c.id)&&(l.result=ye(l.result)),l},batchAction(n,o,s,i){return i={...i,waitOnPrevious:!0},Me.post(`${t}/batch-action`,{action:n,filter:{id:o.map(l=>l.id)},data:s},i)},export(n,o){return u_(`${t}/export`,o||"export.csv",{filter:n})},...e}}function ng(t=null){const e=r.ref(null),n=r.ref(null),o=r.ref(null),s=d=>{var f;e.value=null,new Gi((f=d.target)==null?void 0:f.files[0],t).prepare().onProgress(({file:h})=>{h&&(e.value=h,o.value&&o.value(e.value))}).onComplete(({uploadedFile:h})=>{h&&(e.value=h,n.value&&n.value(e.value),o.value&&o.value(e.value))}).onError(({file:h,error:m})=>{console.error("Failed to upload",h,m),et.error(`Failed to upload ${h.name}: ${m}`)}).upload()},i=d=>{var f;s({target:{files:(f=d.dataTransfer)==null?void 0:f.files}})};return{isFileUploaded:r.computed(()=>e.value&&e.value.url),clearUploadedFile:()=>{e.value=null,o.value&&o.value(e.value),n.value&&n.value(e.value)},onComplete:d=>{n.value=d},onFileChange:d=>{o.value=d},onDrop:i,onFileSelected:s,uploadedFile:e}}function Lt(t,e){localStorage.setItem(t,JSON.stringify(e))}function Ft(t,e=null){const n=localStorage.getItem(t);try{return n?JSON.parse(n):e}catch{return}}function l9(t,e=""){const n=ku(t,e),o=document.createElement("style");o.innerHTML=`:root {${n}}`,document.head.appendChild(o)}function ku(t,e=""){return Object.entries(t).map(([n,o])=>typeof o=="object"?ku(o,`${e}${n}-`):`--${e}${n}: ${o}`).join(";")}const a9={version:"0.5.0"},{version:og}=a9;function c9(){console.log(`Installing Danx UI ${og}... Nothing to do really.`)}E.ActionButton=ns,E.ActionForm=Nh,E.ActionFormDialog=Y4,E.ActionMenu=uc,E.ActionTable=pp,E.ActionTableColumn=Xm,E.ActionTableHeaderColumn=np,E.ActionTableLayout=F8,E.ActionToolbar=_p,E.ActionVnode=u3,E.AddressFormat=e3,E.AuditHistoryItem=q8,E.AuditHistoryItemValue=mc,E.AutoHeightTransition=k3,E.BadgeTab=p3,E.BooleanField=pa,E.CURSOR_ANCHOR=Ms,E.CaretDownIcon=qf,E.CarouselHeader=dh,E.CodeViewer=Is,E.CodeViewerCollapsed=Rd,E.CodeViewerFooter=Ud,E.CollapsableFiltersSidebar=cp,E.CollapsableSidebar=Ah,E.ColumnListItem=fc,E.ColumnSettingsDialog=ZE,E.ConfirmActionDialog=ih,E.ConfirmDialog=Kt,E.ConfirmPasswordField=iC,E.ContentDrawer=xa,E.ContextMenu=Jd,E.CreateNewWithNameDialog=lh,E.DateField=ga,E.DateRangeField=ba,E.DateTime=q,E.DateTimeField=gC,E.DateTimePicker=ya,E.DragAndDrop=dc,E.DragHandleDotsIcon=Wf,E.DragHandleIcon=jf,E.EditOnClickTextField=xC,E.EditableDiv=ph,E.EmptyTableState=hp,E.ExportButton=Lu,E.FILE_PLACEHOLDERS=sa,E.FieldLabel=Et,E.FileMetadataDialog=ua,E.FilePreview=Cr,E.FileRenderer=da,E.FileUpload=Gi,E.FileUploadButton=SC,E.FilterIcon=Gf,E.FilterItem=lp,E.FilterList=ap,E.FilterListToggle=up,E.FilterToolbarLayout=d8,E.FilterableField=hc,E.FlashMessages=et,E.FlatListFormat=t3,E.FullScreenCarouselDialog=mh,E.FullScreenDialog=tC,E.GoogleDocsIcon=Kf,E.GpsCoordinatesFormat=r3,E.HandleDraggable=Jm,E.HotkeyHelpPopover=ef,E.IconWithTextFormat=i3,E.ImageIcon=ra,E.IndicatorTab=b3,E.InfoDialog=ma,E.InlineDateTimeField=BC,E.InputDialog=oC,E.IntegerField=gh,E.InteractiveTooltip=f3,E.LabelPillWidget=PE,E.LabelValueBlock=FC,E.LabelValueFormat=a3,E.LabelValuePillWidget=zE,E.LabeledInput=_a,E.LanguageBadge=mr,E.LineTypeMenu=tf,E.LinkPopover=nf,E.ListDragAndDrop=ep,E.ListItemDraggable=tp,E.ListTransition=Oh,E.MIME_TYPES=yr,E.MarkdownContent=Xd,E.MarkdownEditor=r4,E.MarkdownEditorContent=Vf,E.MarkdownEditorFooter=Pf,E.MaxHeightTransition=x3,E.MaxLengthCounter=_h,E.MultiFileField=bh,E.MultiKeywordField=yh,E.NavigationMenu=G8,E.NewPasswordField=DC,E.NumberField=xr,E.NumberRangeField=Ws,E.PanelsDrawer=fp,E.PanelsDrawerTabs=dp,E.PdfIcon=Zf,E.PercentIcon=Yf,E.PopoverMenu=Mh,E.PreviousNextControls=eh,E.RefreshButton=Fu,E.RenderComponent=Fh,E.RenderVnode=vn,E.RenderedForm=ka,E.RenderedFormDialog=TS,E.SERVER_TZ=Rc,E.SaveStateIndicator=Bh,E.SelectDrawer=UC,E.SelectField=xo,E.SelectOrCreateField=KC,E.SelectWithChildrenField=wh,E.SelectionMenuField=jC,E.ShowHideButton=os,E.SingleFileField=kh,E.SkipNextIcon=Qf,E.SkipPreviousIcon=Xf,E.SlideTransition=C3,E.SliderNumberField=tS,E.StaggeredListTransition=VE,E.SvgImg=Ih,E.TablePopover=Hf,E.TableSummaryRow=mp,E.TextField=On,E.ThumbnailStrip=fa,E.TitleColumnFormat=op,E.TranscodeNavigator=hh,E.TrashIcon=Ps,E.VirtualCarousel=jS,E.VisibleColumnsToggleButtons=e8,E.WarningIcon=Jf,E.WysiwygField=Th,E.XIcon=ko,E.activeActionVnode=Kn,E.addHotkey=JA,E.applyCssVars=l9,E.autoRefreshObject=yp,E.buildCssVars=ku,E.canPreviewInline=X4,E.centerTruncate=uN,E.cloneDeep=gw,E.configure=sg,E.convertHeading=qd,E.danxOptions=fe,E.dbDateTime=zc,E.detectBlockquotePattern=Wd,E.detectCodeFenceStart=Ol,E.detectHeadingPattern=Fl,E.detectLinePattern=jw,E.detectListPattern=Ml,E.diffInDays=fN,E.download=$i,E.downloadFile=u_,E.downloadFileResponse=d_,E.escapeMarkdownChars=Hw,E.fBoolean=l_,E.fCurrency=Ni,E.fCurrencyNoCents=lN,E.fDate=zt,E.fDateTime=Bi,E.fDateTimeMs=tN,E.fDuration=sN,E.fJSON=$l,E.fLocalizedDateTime=Go,E.fMarkdownCode=Cw,E.fMillisecondsToDuration=rN,E.fNameOrCount=c_,E.fNumber=Jt,E.fPercent=a_,E.fPhone=dN,E.fQDate=eN,E.fSecondsToDuration=Wc,E.fSecondsToTime=oN,E.fShortCurrency=aN,E.fShortNumber=i_,E.fShortSize=cN,E.fTimeAgo=iN,E.fetchResourceListWithSelected=s9,E.getFileExtension=Q4,E.getFilterFromUrl=ip,E.getFootnotes=Ns,E.getHeadingLevel=Hd,E.getItem=Ft,E.getMimeType=Mn,E.getOptimizedUrl=uh,E.getPreviewUrl=kr,E.getResponseHeader=jc,E.getThumbUrl=ch,E.getUrlParam=tg,E.highlightJSON=Il,E.highlightSyntax=sn,E.highlightYAML=Al,E.htmlToMarkdown=Ww,E.importJson=o9,E.incrementName=Nd,E.install=c9,E.isExternalLinkFile=Hs,E.isHeadingElement=zd,E.isHorizontalRule=jd,E.isImage=Us,E.isJSON=$d,E.isPdf=ia,E.isText=zs,E.isVideo=wr,E.latestCallOnly=Nl,E.listen=e9,E.localizedDateTime=Uc,E.mapSortBy=sp,E.matchesKeyCombo=df,E.metersToMiles=ww,E.milesToMeters=kw,E.minmax=yw,E.notify=K8,E.parseCoords=xw,E.parseDateTime=kt,E.parseGenericDateTime=s_,E.parseInline=ht,E.parseKeyCombo=uf,E.parseMarkdownCode=Es,E.parseMarkdownJSON=Id,E.parseMarkdownYAML=Ad,E.parseQDate=Hc,E.parseQDateTime=qc,E.parseSqlDateTime=nN,E.pollUntil=bw,E.refreshApplication=J8,E.registerHotkeys=n9,E.registerStickyScrolling=rp,E.remoteDateTime=r_,E.remove=Vr,E.renderMarkdown=zl,E.renderTokens=pr,E.replace=gc,E.request=Me,E.resetParserState=Pl,E.resolveFileLocation=Q1,E.setItem=Lt,E.sleep=Cs,E.stopAutoRefreshObject=wp,E.storeObject=ye,E.storeObjects=gp,E.tokenizeBlocks=$s,E.uniqueBy=Sp,E.unlisten=t9,E.useActionRoutes=i9,E.useActionStore=X8,E.useActions=Y8,E.useBlockquotes=yf,E.useCodeBlockManager=Sf,E.useCodeBlocks=Cf,E.useCodeFormat=Ld,E.useCodeViewerCollapse=vd,E.useCodeViewerEditor=Pd,E.useCompatibility=Bp,E.useContextMenu=of,E.useControls=t8,E.useDebounceFn=nn,E.useFileNavigation=ah,E.useFilePreview=la,E.useFocusTracking=rf,E.useHeadings=Tf,E.useInlineFormatting=Bf,E.useKeyboardNavigation=aa,E.useLineTypeMenu=lf,E.useLinkPopover=af,E.useLinks=$f,E.useLists=Lf,E.useMarkdownEditor=vf,E.useMarkdownHotkeys=ff,E.useMarkdownSelection=pf,E.useMarkdownSync=_f,E.useMultiFileUpload=eg,E.useSingleFileUpload=ng,E.useTableColumns=M8,E.useTablePopover=cf,E.useTables=Df,E.useThumbnailScroll=fh,E.useTranscodeLoader=$h,E.useVirtualCarousel=ca,E.version=og,E.waitForRef=Bl,E.withDefaultActions=Q8,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
|
|
167
239
|
//# sourceMappingURL=danx.umd.js.map
|