@turquoisehealth/pit-viper 2.72.1-dev.6 → 2.72.1-dev.8
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/_site/assets/css/pit-viper-v2-scoped.css +11 -0
- package/_site/assets/css/pit-viper-v2.css +11 -0
- package/_site/assets/css/pit-viper.css +11 -0
- package/package.json +1 -1
- package/pv-components/dist/vue/base/pv-components-base.d.ts +2 -0
- package/pv-components/dist/vue/base/pv-components-base.js +1 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs +5 -3
- package/pv-components/dist/vue/base/pv-components-base.umd.js +1 -1
- package/pv-components/dist/vue/charts/pv-components-charts.js +54 -54
- package/pv-components/dist/vue/charts/pv-components-charts.mjs +20420 -20359
- package/pv-components/dist/vue/charts/pv-components-charts.umd.js +54 -54
- package/pv-components/dist/vue/tables/pv-components-tables.js +33 -33
- package/pv-components/dist/vue/tables/pv-components-tables.mjs +4090 -4033
- package/pv-components/dist/vue/tables/pv-components-tables.umd.js +32 -32
- package/pv-components/dist/web/pv-components.iife.js +1 -1
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* @author RubaXa <trash@rubaxa.org>
|
|
23
23
|
* @author owenm <owen23355@gmail.com>
|
|
24
24
|
* @license MIT
|
|
25
|
-
*/function Jd(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),o.push.apply(o,r)}return o}function co(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?Jd(Object(o),!0).forEach(function(r){rg(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Jd(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function Pi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pi=function(t){return typeof t}:Pi=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pi(e)}function rg(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function _o(){return _o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},_o.apply(this,arguments)}function ng(e,t){if(e==null)return{};var o={},r=Object.keys(e),n,i;for(i=0;i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}function ig(e,t){if(e==null)return{};var o=ng(e,t),r,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var ag="1.15.6";function xo(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var To=xo(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),tn=xo(/Edge/i),Qd=xo(/firefox/i),on=xo(/safari/i)&&!xo(/chrome/i)&&!xo(/android/i),Qa=xo(/iP(ad|od|hone)/i),ec=xo(/chrome/i)&&xo(/android/i),tc={capture:!1,passive:!1};function we(e,t,o){e.addEventListener(t,o,!To&&tc)}function ye(e,t,o){e.removeEventListener(t,o,!To&&tc)}function Bi(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function oc(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Kt(e,t,o,r){if(e){o=o||document;do{if(t!=null&&(t[0]===">"?e.parentNode===o&&Bi(e,t):Bi(e,t))||r&&e===o)return e;if(e===o)break}while(e=oc(e))}return null}var rc=/\s+/g;function Et(e,t,o){if(e&&t)if(e.classList)e.classList[o?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(rc," ").replace(" "+t+" "," ");e.className=(r+(o?" "+t:"")).replace(rc," ")}}function de(e,t,o){var r=e&&e.style;if(r){if(o===void 0)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(o=e.currentStyle),t===void 0?o:o[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=o+(typeof o=="string"?"":"px")}}function br(e,t){var o="";if(typeof e=="string")o=e;else do{var r=de(e,"transform");r&&r!=="none"&&(o=r+" "+o)}while(!t&&(e=e.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(o)}function nc(e,t,o){if(e){var r=e.getElementsByTagName(t),n=0,i=r.length;if(o)for(;n<i;n++)o(r[n],n);return r}return[]}function uo(){var e=document.scrollingElement;return e||document.documentElement}function Ge(e,t,o,r,n){if(!(!e.getBoundingClientRect&&e!==window)){var i,a,s,l,c,d,u;if(e!==window&&e.parentNode&&e!==uo()?(i=e.getBoundingClientRect(),a=i.top,s=i.left,l=i.bottom,c=i.right,d=i.height,u=i.width):(a=0,s=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,u=window.innerWidth),(t||o)&&e!==window&&(n=n||e.parentNode,!To))do if(n&&n.getBoundingClientRect&&(de(n,"transform")!=="none"||o&&de(n,"position")!=="static")){var f=n.getBoundingClientRect();a-=f.top+parseInt(de(n,"border-top-width")),s-=f.left+parseInt(de(n,"border-left-width")),l=a+i.height,c=s+i.width;break}while(n=n.parentNode);if(r&&e!==window){var p=br(n||e),h=p&&p.a,b=p&&p.d;p&&(a/=b,s/=h,u/=h,d/=b,l=a+d,c=s+u)}return{top:a,left:s,bottom:l,right:c,width:u,height:d}}}function ic(e,t,o){for(var r=No(e,!0),n=Ge(e)[t];r;){var i=Ge(r)[o],a=void 0;if(a=n>=i,!a)return r;if(r===uo())break;r=No(r,!1)}return!1}function vr(e,t,o,r){for(var n=0,i=0,a=e.children;i<a.length;){if(a[i].style.display!=="none"&&a[i]!==ce.ghost&&(r||a[i]!==ce.dragged)&&Kt(a[i],o.draggable,e,!1)){if(n===t)return a[i];n++}i++}return null}function es(e,t){for(var o=e.lastElementChild;o&&(o===ce.ghost||de(o,"display")==="none"||t&&!Bi(o,t));)o=o.previousElementSibling;return o||null}function Ft(e,t){var o=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==ce.clone&&(!t||Bi(e,t))&&o++;return o}function ac(e){var t=0,o=0,r=uo();if(e)do{var n=br(e),i=n.a,a=n.d;t+=e.scrollLeft*i,o+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,o]}function sg(e,t){for(var o in e)if(e.hasOwnProperty(o)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[o][r])return Number(o)}return-1}function No(e,t){if(!e||!e.getBoundingClientRect)return uo();var o=e,r=!1;do if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var n=de(o);if(o.clientWidth<o.scrollWidth&&(n.overflowX=="auto"||n.overflowX=="scroll")||o.clientHeight<o.scrollHeight&&(n.overflowY=="auto"||n.overflowY=="scroll")){if(!o.getBoundingClientRect||o===document.body)return uo();if(r||t)return o;r=!0}}while(o=o.parentNode);return uo()}function lg(e,t){if(e&&t)for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);return e}function ts(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var rn;function sc(e,t){return function(){if(!rn){var o=arguments,r=this;o.length===1?e.call(r,o[0]):e.apply(r,o),rn=setTimeout(function(){rn=void 0},t)}}}function dg(){clearTimeout(rn),rn=void 0}function lc(e,t,o){e.scrollLeft+=t,e.scrollTop+=o}function dc(e){var t=window.Polymer,o=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):o?o(e).clone(!0)[0]:e.cloneNode(!0)}function cc(e,t,o){var r={};return Array.from(e.children).forEach(function(n){var i,a,s,l;if(!(!Kt(n,t.draggable,e,!1)||n.animated||n===o)){var c=Ge(n);r.left=Math.min((i=r.left)!==null&&i!==void 0?i:1/0,c.left),r.top=Math.min((a=r.top)!==null&&a!==void 0?a:1/0,c.top),r.right=Math.max((s=r.right)!==null&&s!==void 0?s:-1/0,c.right),r.bottom=Math.max((l=r.bottom)!==null&&l!==void 0?l:-1/0,c.bottom)}}),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var St="Sortable"+new Date().getTime();function cg(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(n){if(!(de(n,"display")==="none"||n===ce.ghost)){e.push({target:n,rect:Ge(n)});var i=co({},e[e.length-1].rect);if(n.thisAnimationDuration){var a=br(n,!0);a&&(i.top-=a.f,i.left-=a.e)}n.fromRect=i}})}},addAnimationState:function(r){e.push(r)},removeAnimationState:function(r){e.splice(sg(e,{target:r}),1)},animateAll:function(r){var n=this;if(!this.options.animation){clearTimeout(t),typeof r=="function"&&r();return}var i=!1,a=0;e.forEach(function(s){var l=0,c=s.target,d=c.fromRect,u=Ge(c),f=c.prevFromRect,p=c.prevToRect,h=s.rect,b=br(c,!0);b&&(u.top-=b.f,u.left-=b.e),c.toRect=u,c.thisAnimationDuration&&ts(f,u)&&!ts(d,u)&&(h.top-u.top)/(h.left-u.left)===(d.top-u.top)/(d.left-u.left)&&(l=fg(h,f,p,n.options)),ts(u,d)||(c.prevFromRect=d,c.prevToRect=u,l||(l=n.options.animation),n.animate(c,h,u,l)),l&&(i=!0,a=Math.max(a,l),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},l),c.thisAnimationDuration=l)}),clearTimeout(t),i?t=setTimeout(function(){typeof r=="function"&&r()},a):typeof r=="function"&&r(),e=[]},animate:function(r,n,i,a){if(a){de(r,"transition",""),de(r,"transform","");var s=br(this.el),l=s&&s.a,c=s&&s.d,d=(n.left-i.left)/(l||1),u=(n.top-i.top)/(c||1);r.animatingX=!!d,r.animatingY=!!u,de(r,"transform","translate3d("+d+"px,"+u+"px,0)"),this.forRepaintDummy=ug(r),de(r,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),de(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){de(r,"transition",""),de(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},a)}}}}function ug(e){return e.offsetWidth}function fg(e,t,o,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-o.top,2)+Math.pow(t.left-o.left,2))*r.animation}var yr=[],os={initializeByDefault:!0},nn={mount:function(t){for(var o in os)os.hasOwnProperty(o)&&!(o in t)&&(t[o]=os[o]);yr.forEach(function(r){if(r.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),yr.push(t)},pluginEvent:function(t,o,r){var n=this;this.eventCanceled=!1,r.cancel=function(){n.eventCanceled=!0};var i=t+"Global";yr.forEach(function(a){o[a.pluginName]&&(o[a.pluginName][i]&&o[a.pluginName][i](co({sortable:o},r)),o.options[a.pluginName]&&o[a.pluginName][t]&&o[a.pluginName][t](co({sortable:o},r)))})},initializePlugins:function(t,o,r,n){yr.forEach(function(s){var l=s.pluginName;if(!(!t.options[l]&&!s.initializeByDefault)){var c=new s(t,o,t.options);c.sortable=t,c.options=t.options,t[l]=c,_o(r,c.defaults)}});for(var i in t.options)if(t.options.hasOwnProperty(i)){var a=this.modifyOption(t,i,t.options[i]);typeof a<"u"&&(t.options[i]=a)}},getEventProperties:function(t,o){var r={};return yr.forEach(function(n){typeof n.eventProperties=="function"&&_o(r,n.eventProperties.call(o[n.pluginName],t))}),r},modifyOption:function(t,o,r){var n;return yr.forEach(function(i){t[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[o]=="function"&&(n=i.optionListeners[o].call(t[i.pluginName],r))}),n}};function pg(e){var t=e.sortable,o=e.rootEl,r=e.name,n=e.targetEl,i=e.cloneEl,a=e.toEl,s=e.fromEl,l=e.oldIndex,c=e.newIndex,d=e.oldDraggableIndex,u=e.newDraggableIndex,f=e.originalEvent,p=e.putSortable,h=e.extraEventProperties;if(t=t||o&&o[St],!!t){var b,v=t.options,k="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!To&&!tn?b=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(b=document.createEvent("Event"),b.initEvent(r,!0,!0)),b.to=a||o,b.from=s||o,b.item=n||o,b.clone=i,b.oldIndex=l,b.newIndex=c,b.oldDraggableIndex=d,b.newDraggableIndex=u,b.originalEvent=f,b.pullMode=p?p.lastPutMode:void 0;var S=co(co({},h),nn.getEventProperties(r,t));for(var _ in S)b[_]=S[_];o&&o.dispatchEvent(b),v[k]&&v[k].call(t,b)}}var hg=["evt"],$t=function(t,o){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.evt,i=ig(r,hg);nn.pluginEvent.bind(ce)(t,o,co({dragEl:Y,parentEl:Ye,ghostEl:me,rootEl:ze,nextEl:Qo,lastDownEl:Di,cloneEl:Fe,cloneHidden:Vo,dragStarted:sn,putSortable:it,activeSortable:ce.active,originalEvent:n,oldIndex:kr,oldDraggableIndex:an,newIndex:Ot,newDraggableIndex:zo,hideGhostForTarget:bc,unhideGhostForTarget:vc,cloneNowHidden:function(){Vo=!0},cloneNowShown:function(){Vo=!1},dispatchSortableEvent:function(s){vt({sortable:o,name:s,originalEvent:n})}},i))};function vt(e){pg(co({putSortable:it,cloneEl:Fe,targetEl:Y,rootEl:ze,oldIndex:kr,oldDraggableIndex:an,newIndex:Ot,newDraggableIndex:zo},e))}var Y,Ye,me,ze,Qo,Di,Fe,Vo,kr,Ot,an,zo,Mi,it,wr=!1,Ei=!1,Oi=[],er,qt,rs,ns,uc,fc,sn,Cr,ln,dn=!1,Ii=!1,Ri,pt,is=[],as=!1,Li=[],Ai=typeof document<"u",Ni=Qa,pc=tn||To?"cssFloat":"float",gg=Ai&&!ec&&!Qa&&"draggable"in document.createElement("div"),hc=function(){if(Ai){if(To)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),gc=function(t,o){var r=de(t),n=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),i=vr(t,0,o),a=vr(t,1,o),s=i&&de(i),l=a&&de(a),c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Ge(i).width,d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Ge(a).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&s.float&&s.float!=="none"){var u=s.float==="left"?"left":"right";return a&&(l.clear==="both"||l.clear===u)?"vertical":"horizontal"}return i&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||c>=n&&r[pc]==="none"||a&&r[pc]==="none"&&c+d>n)?"vertical":"horizontal"},mg=function(t,o,r){var n=r?t.left:t.top,i=r?t.right:t.bottom,a=r?t.width:t.height,s=r?o.left:o.top,l=r?o.right:o.bottom,c=r?o.width:o.height;return n===s||i===l||n+a/2===s+c/2},bg=function(t,o){var r;return Oi.some(function(n){var i=n[St].options.emptyInsertThreshold;if(!(!i||es(n))){var a=Ge(n),s=t>=a.left-i&&t<=a.right+i,l=o>=a.top-i&&o<=a.bottom+i;if(s&&l)return r=n}}),r},mc=function(t){function o(i,a){return function(s,l,c,d){var u=s.options.group.name&&l.options.group.name&&s.options.group.name===l.options.group.name;if(i==null&&(a||u))return!0;if(i==null||i===!1)return!1;if(a&&i==="clone")return i;if(typeof i=="function")return o(i(s,l,c,d),a)(s,l,c,d);var f=(a?s:l).options.group.name;return i===!0||typeof i=="string"&&i===f||i.join&&i.indexOf(f)>-1}}var r={},n=t.group;(!n||Pi(n)!="object")&&(n={name:n}),r.name=n.name,r.checkPull=o(n.pull,!0),r.checkPut=o(n.put),r.revertClone=n.revertClone,t.group=r},bc=function(){!hc&&me&&de(me,"display","none")},vc=function(){!hc&&me&&de(me,"display","")};Ai&&!ec&&document.addEventListener("click",function(e){if(Ei)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ei=!1,!1},!0);var tr=function(t){if(Y){t=t.touches?t.touches[0]:t;var o=bg(t.clientX,t.clientY);if(o){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);r.target=r.rootEl=o,r.preventDefault=void 0,r.stopPropagation=void 0,o[St]._onDragOver(r)}}},vg=function(t){Y&&Y.parentNode[St]._isOutsideThisEl(t.target)};function ce(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=_o({},t),e[St]=this;var o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return gc(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,s){a.setData("Text",s.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:ce.supportPointer!==!1&&"PointerEvent"in window&&(!on||Qa),emptyInsertThreshold:5};nn.initializePlugins(this,e,o);for(var r in o)!(r in t)&&(t[r]=o[r]);mc(t);for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));this.nativeDraggable=t.forceFallback?!1:gg,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?we(e,"pointerdown",this._onTapStart):(we(e,"mousedown",this._onTapStart),we(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(we(e,"dragover",this),we(e,"dragenter",this)),Oi.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),_o(this,cg())}ce.prototype={constructor:ce,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Cr=null)},_getDirection:function(t,o){return typeof this.options.direction=="function"?this.options.direction.call(this,t,o,Y):this.options.direction},_onTapStart:function(t){if(t.cancelable){var o=this,r=this.el,n=this.options,i=n.preventOnFilter,a=t.type,s=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(s||t).target,c=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,d=n.filter;if(xg(r),!Y&&!(/mousedown|pointerdown/.test(a)&&t.button!==0||n.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&on&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Kt(l,n.draggable,r,!1),!(l&&l.animated)&&Di!==l)){if(kr=Ft(l),an=Ft(l,n.draggable),typeof d=="function"){if(d.call(this,t,l,this)){vt({sortable:o,rootEl:c,name:"filter",targetEl:l,toEl:r,fromEl:r}),$t("filter",o,{evt:t}),i&&t.preventDefault();return}}else if(d&&(d=d.split(",").some(function(u){if(u=Kt(c,u.trim(),r,!1),u)return vt({sortable:o,rootEl:u,name:"filter",targetEl:l,fromEl:r,toEl:r}),$t("filter",o,{evt:t}),!0}),d)){i&&t.preventDefault();return}n.handle&&!Kt(c,n.handle,r,!1)||this._prepareDragStart(t,s,l)}}},_prepareDragStart:function(t,o,r){var n=this,i=n.el,a=n.options,s=i.ownerDocument,l;if(r&&!Y&&r.parentNode===i){var c=Ge(r);if(ze=i,Y=r,Ye=Y.parentNode,Qo=Y.nextSibling,Di=r,Mi=a.group,ce.dragged=Y,er={target:Y,clientX:(o||t).clientX,clientY:(o||t).clientY},uc=er.clientX-c.left,fc=er.clientY-c.top,this._lastX=(o||t).clientX,this._lastY=(o||t).clientY,Y.style["will-change"]="all",l=function(){if($t("delayEnded",n,{evt:t}),ce.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!Qd&&n.nativeDraggable&&(Y.draggable=!0),n._triggerDragStart(t,o),vt({sortable:n,name:"choose",originalEvent:t}),Et(Y,a.chosenClass,!0)},a.ignore.split(",").forEach(function(d){nc(Y,d.trim(),ss)}),we(s,"dragover",tr),we(s,"mousemove",tr),we(s,"touchmove",tr),a.supportPointer?(we(s,"pointerup",n._onDrop),!this.nativeDraggable&&we(s,"pointercancel",n._onDrop)):(we(s,"mouseup",n._onDrop),we(s,"touchend",n._onDrop),we(s,"touchcancel",n._onDrop)),Qd&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Y.draggable=!0),$t("delayStart",this,{evt:t}),a.delay&&(!a.delayOnTouchOnly||o)&&(!this.nativeDraggable||!(tn||To))){if(ce.eventCanceled){this._onDrop();return}a.supportPointer?(we(s,"pointerup",n._disableDelayedDrag),we(s,"pointercancel",n._disableDelayedDrag)):(we(s,"mouseup",n._disableDelayedDrag),we(s,"touchend",n._disableDelayedDrag),we(s,"touchcancel",n._disableDelayedDrag)),we(s,"mousemove",n._delayedDragTouchMoveHandler),we(s,"touchmove",n._delayedDragTouchMoveHandler),a.supportPointer&&we(s,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(l,a.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var o=t.touches?t.touches[0]:t;Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Y&&ss(Y),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;ye(t,"mouseup",this._disableDelayedDrag),ye(t,"touchend",this._disableDelayedDrag),ye(t,"touchcancel",this._disableDelayedDrag),ye(t,"pointerup",this._disableDelayedDrag),ye(t,"pointercancel",this._disableDelayedDrag),ye(t,"mousemove",this._delayedDragTouchMoveHandler),ye(t,"touchmove",this._delayedDragTouchMoveHandler),ye(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,o){o=o||t.pointerType=="touch"&&t,!this.nativeDraggable||o?this.options.supportPointer?we(document,"pointermove",this._onTouchMove):o?we(document,"touchmove",this._onTouchMove):we(document,"mousemove",this._onTouchMove):(we(Y,"dragend",this),we(ze,"dragstart",this._onDragStart));try{document.selection?zi(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,o){if(wr=!1,ze&&Y){$t("dragStarted",this,{evt:o}),this.nativeDraggable&&we(document,"dragover",vg);var r=this.options;!t&&Et(Y,r.dragClass,!1),Et(Y,r.ghostClass,!0),ce.active=this,t&&this._appendGhost(),vt({sortable:this,name:"start",originalEvent:o})}else this._nulling()},_emulateDragOver:function(){if(qt){this._lastX=qt.clientX,this._lastY=qt.clientY,bc();for(var t=document.elementFromPoint(qt.clientX,qt.clientY),o=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(qt.clientX,qt.clientY),t!==o);)o=t;if(Y.parentNode[St]._isOutsideThisEl(t),o)do{if(o[St]){var r=void 0;if(r=o[St]._onDragOver({clientX:qt.clientX,clientY:qt.clientY,target:t,rootEl:o}),r&&!this.options.dragoverBubble)break}t=o}while(o=oc(o));vc()}},_onTouchMove:function(t){if(er){var o=this.options,r=o.fallbackTolerance,n=o.fallbackOffset,i=t.touches?t.touches[0]:t,a=me&&br(me,!0),s=me&&a&&a.a,l=me&&a&&a.d,c=Ni&&pt&&ac(pt),d=(i.clientX-er.clientX+n.x)/(s||1)+(c?c[0]-is[0]:0)/(s||1),u=(i.clientY-er.clientY+n.y)/(l||1)+(c?c[1]-is[1]:0)/(l||1);if(!ce.active&&!wr){if(r&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<r)return;this._onDragStart(t,!0)}if(me){a?(a.e+=d-(rs||0),a.f+=u-(ns||0)):a={a:1,b:0,c:0,d:1,e:d,f:u};var f="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");de(me,"webkitTransform",f),de(me,"mozTransform",f),de(me,"msTransform",f),de(me,"transform",f),rs=d,ns=u,qt=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!me){var t=this.options.fallbackOnBody?document.body:ze,o=Ge(Y,!0,Ni,!0,t),r=this.options;if(Ni){for(pt=t;de(pt,"position")==="static"&&de(pt,"transform")==="none"&&pt!==document;)pt=pt.parentNode;pt!==document.body&&pt!==document.documentElement?(pt===document&&(pt=uo()),o.top+=pt.scrollTop,o.left+=pt.scrollLeft):pt=uo(),is=ac(pt)}me=Y.cloneNode(!0),Et(me,r.ghostClass,!1),Et(me,r.fallbackClass,!0),Et(me,r.dragClass,!0),de(me,"transition",""),de(me,"transform",""),de(me,"box-sizing","border-box"),de(me,"margin",0),de(me,"top",o.top),de(me,"left",o.left),de(me,"width",o.width),de(me,"height",o.height),de(me,"opacity","0.8"),de(me,"position",Ni?"absolute":"fixed"),de(me,"zIndex","100000"),de(me,"pointerEvents","none"),ce.ghost=me,t.appendChild(me),de(me,"transform-origin",uc/parseInt(me.style.width)*100+"% "+fc/parseInt(me.style.height)*100+"%")}},_onDragStart:function(t,o){var r=this,n=t.dataTransfer,i=r.options;if($t("dragStart",this,{evt:t}),ce.eventCanceled){this._onDrop();return}$t("setupClone",this),ce.eventCanceled||(Fe=dc(Y),Fe.removeAttribute("id"),Fe.draggable=!1,Fe.style["will-change"]="",this._hideClone(),Et(Fe,this.options.chosenClass,!1),ce.clone=Fe),r.cloneId=zi(function(){$t("clone",r),!ce.eventCanceled&&(r.options.removeCloneOnHide||ze.insertBefore(Fe,Y),r._hideClone(),vt({sortable:r,name:"clone"}))}),!o&&Et(Y,i.dragClass,!0),o?(Ei=!0,r._loopId=setInterval(r._emulateDragOver,50)):(ye(document,"mouseup",r._onDrop),ye(document,"touchend",r._onDrop),ye(document,"touchcancel",r._onDrop),n&&(n.effectAllowed="move",i.setData&&i.setData.call(r,n,Y)),we(document,"drop",r),de(Y,"transform","translateZ(0)")),wr=!0,r._dragStartId=zi(r._dragStarted.bind(r,o,t)),we(document,"selectstart",r),sn=!0,window.getSelection().removeAllRanges(),on&&de(document.body,"user-select","none")},_onDragOver:function(t){var o=this.el,r=t.target,n,i,a,s=this.options,l=s.group,c=ce.active,d=Mi===l,u=s.sort,f=it||c,p,h=this,b=!1;if(as)return;function v(B,te){$t(B,h,co({evt:t,isOwner:d,axis:p?"vertical":"horizontal",revert:a,dragRect:n,targetRect:i,canSort:u,fromSortable:f,target:r,completed:S,onMove:function(ue,be){return Vi(ze,o,Y,n,ue,Ge(ue),t,be)},changed:_},te))}function k(){v("dragOverAnimationCapture"),h.captureAnimationState(),h!==f&&f.captureAnimationState()}function S(B){return v("dragOverCompleted",{insertion:B}),B&&(d?c._hideClone():c._showClone(h),h!==f&&(Et(Y,it?it.options.ghostClass:c.options.ghostClass,!1),Et(Y,s.ghostClass,!0)),it!==h&&h!==ce.active?it=h:h===ce.active&&it&&(it=null),f===h&&(h._ignoreWhileAnimating=r),h.animateAll(function(){v("dragOverAnimationComplete"),h._ignoreWhileAnimating=null}),h!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(r===Y&&!Y.animated||r===o&&!r.animated)&&(Cr=null),!s.dragoverBubble&&!t.rootEl&&r!==document&&(Y.parentNode[St]._isOutsideThisEl(t.target),!B&&tr(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),b=!0}function _(){Ot=Ft(Y),zo=Ft(Y,s.draggable),vt({sortable:h,name:"change",toEl:o,newIndex:Ot,newDraggableIndex:zo,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),r=Kt(r,s.draggable,o,!0),v("dragOver"),ce.eventCanceled)return b;if(Y.contains(t.target)||r.animated&&r.animatingX&&r.animatingY||h._ignoreWhileAnimating===r)return S(!1);if(Ei=!1,c&&!s.disabled&&(d?u||(a=Ye!==ze):it===this||(this.lastPutMode=Mi.checkPull(this,c,Y,t))&&l.checkPut(this,c,Y,t))){if(p=this._getDirection(t,r)==="vertical",n=Ge(Y),v("dragOverValid"),ce.eventCanceled)return b;if(a)return Ye=ze,k(),this._hideClone(),v("revert"),ce.eventCanceled||(Qo?ze.insertBefore(Y,Qo):ze.appendChild(Y)),S(!0);var w=es(o,s.draggable);if(!w||Cg(t,p,this)&&!w.animated){if(w===Y)return S(!1);if(w&&o===t.target&&(r=w),r&&(i=Ge(r)),Vi(ze,o,Y,n,r,i,t,!!r)!==!1)return k(),w&&w.nextSibling?o.insertBefore(Y,w.nextSibling):o.appendChild(Y),Ye=o,_(),S(!0)}else if(w&&wg(t,p,this)){var T=vr(o,0,s,!0);if(T===Y)return S(!1);if(r=T,i=Ge(r),Vi(ze,o,Y,n,r,i,t,!1)!==!1)return k(),o.insertBefore(Y,T),Ye=o,_(),S(!0)}else if(r.parentNode===o){i=Ge(r);var O=0,G,$=Y.parentNode!==o,P=!mg(Y.animated&&Y.toRect||n,r.animated&&r.toRect||i,p),M=p?"top":"left",A=ic(r,"top","top")||ic(Y,"top","top"),j=A?A.scrollTop:void 0;Cr!==r&&(G=i[M],dn=!1,Ii=!P&&s.invertSwap||$),O=Sg(t,r,i,p,P?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,Ii,Cr===r);var ne;if(O!==0){var W=Ft(Y);do W-=O,ne=Ye.children[W];while(ne&&(de(ne,"display")==="none"||ne===me))}if(O===0||ne===r)return S(!1);Cr=r,ln=O;var F=r.nextElementSibling,D=!1;D=O===1;var R=Vi(ze,o,Y,n,r,i,t,D);if(R!==!1)return(R===1||R===-1)&&(D=R===1),as=!0,setTimeout(kg,30),k(),D&&!F?o.appendChild(Y):r.parentNode.insertBefore(Y,D?F:r),A&&lc(A,0,j-A.scrollTop),Ye=Y.parentNode,G!==void 0&&!Ii&&(Ri=Math.abs(G-Ge(r)[M])),_(),S(!0)}if(o.contains(Y))return S(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){ye(document,"mousemove",this._onTouchMove),ye(document,"touchmove",this._onTouchMove),ye(document,"pointermove",this._onTouchMove),ye(document,"dragover",tr),ye(document,"mousemove",tr),ye(document,"touchmove",tr)},_offUpEvents:function(){var t=this.el.ownerDocument;ye(t,"mouseup",this._onDrop),ye(t,"touchend",this._onDrop),ye(t,"pointerup",this._onDrop),ye(t,"pointercancel",this._onDrop),ye(t,"touchcancel",this._onDrop),ye(document,"selectstart",this)},_onDrop:function(t){var o=this.el,r=this.options;if(Ot=Ft(Y),zo=Ft(Y,r.draggable),$t("drop",this,{evt:t}),Ye=Y&&Y.parentNode,Ot=Ft(Y),zo=Ft(Y,r.draggable),ce.eventCanceled){this._nulling();return}wr=!1,Ii=!1,dn=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ls(this.cloneId),ls(this._dragStartId),this.nativeDraggable&&(ye(document,"drop",this),ye(o,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),on&&de(document.body,"user-select",""),de(Y,"transform",""),t&&(sn&&(t.cancelable&&t.preventDefault(),!r.dropBubble&&t.stopPropagation()),me&&me.parentNode&&me.parentNode.removeChild(me),(ze===Ye||it&&it.lastPutMode!=="clone")&&Fe&&Fe.parentNode&&Fe.parentNode.removeChild(Fe),Y&&(this.nativeDraggable&&ye(Y,"dragend",this),ss(Y),Y.style["will-change"]="",sn&&!wr&&Et(Y,it?it.options.ghostClass:this.options.ghostClass,!1),Et(Y,this.options.chosenClass,!1),vt({sortable:this,name:"unchoose",toEl:Ye,newIndex:null,newDraggableIndex:null,originalEvent:t}),ze!==Ye?(Ot>=0&&(vt({rootEl:Ye,name:"add",toEl:Ye,fromEl:ze,originalEvent:t}),vt({sortable:this,name:"remove",toEl:Ye,originalEvent:t}),vt({rootEl:Ye,name:"sort",toEl:Ye,fromEl:ze,originalEvent:t}),vt({sortable:this,name:"sort",toEl:Ye,originalEvent:t})),it&&it.save()):Ot!==kr&&Ot>=0&&(vt({sortable:this,name:"update",toEl:Ye,originalEvent:t}),vt({sortable:this,name:"sort",toEl:Ye,originalEvent:t})),ce.active&&((Ot==null||Ot===-1)&&(Ot=kr,zo=an),vt({sortable:this,name:"end",toEl:Ye,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){$t("nulling",this),ze=Y=Ye=me=Qo=Fe=Di=Vo=er=qt=sn=Ot=zo=kr=an=Cr=ln=it=Mi=ce.dragged=ce.ghost=ce.clone=ce.active=null,Li.forEach(function(t){t.checked=!0}),Li.length=rs=ns=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Y&&(this._onDragOver(t),yg(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],o,r=this.el.children,n=0,i=r.length,a=this.options;n<i;n++)o=r[n],Kt(o,a.draggable,this.el,!1)&&t.push(o.getAttribute(a.dataIdAttr)||_g(o));return t},sort:function(t,o){var r={},n=this.el;this.toArray().forEach(function(i,a){var s=n.children[a];Kt(s,this.options.draggable,n,!1)&&(r[i]=s)},this),o&&this.captureAnimationState(),t.forEach(function(i){r[i]&&(n.removeChild(r[i]),n.appendChild(r[i]))}),o&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,o){return Kt(t,o||this.options.draggable,this.el,!1)},option:function(t,o){var r=this.options;if(o===void 0)return r[t];var n=nn.modifyOption(this,t,o);typeof n<"u"?r[t]=n:r[t]=o,t==="group"&&mc(r)},destroy:function(){$t("destroy",this);var t=this.el;t[St]=null,ye(t,"mousedown",this._onTapStart),ye(t,"touchstart",this._onTapStart),ye(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(ye(t,"dragover",this),ye(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(o){o.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Oi.splice(Oi.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Vo){if($t("hideClone",this),ce.eventCanceled)return;de(Fe,"display","none"),this.options.removeCloneOnHide&&Fe.parentNode&&Fe.parentNode.removeChild(Fe),Vo=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Vo){if($t("showClone",this),ce.eventCanceled)return;Y.parentNode==ze&&!this.options.group.revertClone?ze.insertBefore(Fe,Y):Qo?ze.insertBefore(Fe,Qo):ze.appendChild(Fe),this.options.group.revertClone&&this.animate(Y,Fe),de(Fe,"display",""),Vo=!1}}};function yg(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Vi(e,t,o,r,n,i,a,s){var l,c=e[St],d=c.options.onMove,u;return window.CustomEvent&&!To&&!tn?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=o,l.draggedRect=r,l.related=n||t,l.relatedRect=i||Ge(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),d&&(u=d.call(c,l,a)),u}function ss(e){e.draggable=!1}function kg(){as=!1}function wg(e,t,o){var r=Ge(vr(o.el,0,o.options,!0)),n=cc(o.el,o.options,me),i=10;return t?e.clientX<n.left-i||e.clientY<r.top&&e.clientX<r.right:e.clientY<n.top-i||e.clientY<r.bottom&&e.clientX<r.left}function Cg(e,t,o){var r=Ge(es(o.el,o.options.draggable)),n=cc(o.el,o.options,me),i=10;return t?e.clientX>n.right+i||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>n.bottom+i||e.clientX>r.right&&e.clientY>r.top}function Sg(e,t,o,r,n,i,a,s){var l=r?e.clientY:e.clientX,c=r?o.height:o.width,d=r?o.top:o.left,u=r?o.bottom:o.right,f=!1;if(!a){if(s&&Ri<c*n){if(!dn&&(ln===1?l>d+c*i/2:l<u-c*i/2)&&(dn=!0),dn)f=!0;else if(ln===1?l<d+Ri:l>u-Ri)return-ln}else if(l>d+c*(1-n)/2&&l<u-c*(1-n)/2)return $g(t)}return f=f||a,f&&(l<d+c*i/2||l>u-c*i/2)?l>d+c/2?1:-1:0}function $g(e){return Ft(Y)<Ft(e)?1:-1}function _g(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,o=t.length,r=0;o--;)r+=t.charCodeAt(o);return r.toString(36)}function xg(e){Li.length=0;for(var t=e.getElementsByTagName("input"),o=t.length;o--;){var r=t[o];r.checked&&Li.push(r)}}function zi(e){return setTimeout(e,0)}function ls(e){return clearTimeout(e)}Ai&&we(document,"touchmove",function(e){(ce.active||wr)&&e.cancelable&&e.preventDefault()}),ce.utils={on:we,off:ye,css:de,find:nc,is:function(t,o){return!!Kt(t,o,t,!1)},extend:lg,throttle:sc,closest:Kt,toggleClass:Et,clone:dc,index:Ft,nextTick:zi,cancelNextTick:ls,detectDirection:gc,getChild:vr,expando:St},ce.get=function(e){return e[St]},ce.mount=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];t[0].constructor===Array&&(t=t[0]),t.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(ce.utils=co(co({},ce.utils),r.utils)),nn.mount(r)})},ce.create=function(e,t){return new ce(e,t)},ce.version=ag;var Xe=[],cn,ds,cs=!1,us,fs,Fi,un;function Tg(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(o){var r=o.originalEvent;this.sortable.nativeDraggable?we(document,"dragover",this._handleAutoScroll):this.options.supportPointer?we(document,"pointermove",this._handleFallbackAutoScroll):r.touches?we(document,"touchmove",this._handleFallbackAutoScroll):we(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(o){var r=o.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?ye(document,"dragover",this._handleAutoScroll):(ye(document,"pointermove",this._handleFallbackAutoScroll),ye(document,"touchmove",this._handleFallbackAutoScroll),ye(document,"mousemove",this._handleFallbackAutoScroll)),yc(),ji(),dg()},nulling:function(){Fi=ds=cn=cs=un=us=fs=null,Xe.length=0},_handleFallbackAutoScroll:function(o){this._handleAutoScroll(o,!0)},_handleAutoScroll:function(o,r){var n=this,i=(o.touches?o.touches[0]:o).clientX,a=(o.touches?o.touches[0]:o).clientY,s=document.elementFromPoint(i,a);if(Fi=o,r||this.options.forceAutoScrollFallback||tn||To||on){ps(o,this.options,s,r);var l=No(s,!0);cs&&(!un||i!==us||a!==fs)&&(un&&yc(),un=setInterval(function(){var c=No(document.elementFromPoint(i,a),!0);c!==l&&(l=c,ji()),ps(o,n.options,c,r)},10),us=i,fs=a)}else{if(!this.options.bubbleScroll||No(s,!0)===uo()){ji();return}ps(o,this.options,No(s,!1),!1)}}},_o(e,{pluginName:"scroll",initializeByDefault:!0})}function ji(){Xe.forEach(function(e){clearInterval(e.pid)}),Xe=[]}function yc(){clearInterval(un)}var ps=sc(function(e,t,o,r){if(t.scroll){var n=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,a=t.scrollSensitivity,s=t.scrollSpeed,l=uo(),c=!1,d;ds!==o&&(ds=o,ji(),cn=t.scroll,d=t.scrollFn,cn===!0&&(cn=No(o,!0)));var u=0,f=cn;do{var p=f,h=Ge(p),b=h.top,v=h.bottom,k=h.left,S=h.right,_=h.width,w=h.height,T=void 0,O=void 0,G=p.scrollWidth,$=p.scrollHeight,P=de(p),M=p.scrollLeft,A=p.scrollTop;p===l?(T=_<G&&(P.overflowX==="auto"||P.overflowX==="scroll"||P.overflowX==="visible"),O=w<$&&(P.overflowY==="auto"||P.overflowY==="scroll"||P.overflowY==="visible")):(T=_<G&&(P.overflowX==="auto"||P.overflowX==="scroll"),O=w<$&&(P.overflowY==="auto"||P.overflowY==="scroll"));var j=T&&(Math.abs(S-n)<=a&&M+_<G)-(Math.abs(k-n)<=a&&!!M),ne=O&&(Math.abs(v-i)<=a&&A+w<$)-(Math.abs(b-i)<=a&&!!A);if(!Xe[u])for(var W=0;W<=u;W++)Xe[W]||(Xe[W]={});(Xe[u].vx!=j||Xe[u].vy!=ne||Xe[u].el!==p)&&(Xe[u].el=p,Xe[u].vx=j,Xe[u].vy=ne,clearInterval(Xe[u].pid),(j!=0||ne!=0)&&(c=!0,Xe[u].pid=setInterval(function(){r&&this.layer===0&&ce.active._onTouchMove(Fi);var F=Xe[this.layer].vy?Xe[this.layer].vy*s:0,D=Xe[this.layer].vx?Xe[this.layer].vx*s:0;typeof d=="function"&&d.call(ce.dragged.parentNode[St],D,F,e,Fi,Xe[this.layer].el)!=="continue"||lc(Xe[this.layer].el,D,F)}.bind({layer:u}),24))),u++}while(t.bubbleScroll&&f!==l&&(f=No(f,!1)));cs=c}},30),kc=function(t){var o=t.originalEvent,r=t.putSortable,n=t.dragEl,i=t.activeSortable,a=t.dispatchSortableEvent,s=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(o){var c=r||i;s();var d=o.changedTouches&&o.changedTouches.length?o.changedTouches[0]:o,u=document.elementFromPoint(d.clientX,d.clientY);l(),c&&!c.el.contains(u)&&(a("spill"),this.onSpill({dragEl:n,putSortable:r}))}};function hs(){}hs.prototype={startIndex:null,dragStart:function(t){var o=t.oldDraggableIndex;this.startIndex=o},onSpill:function(t){var o=t.dragEl,r=t.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var n=vr(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(o,n):this.sortable.el.appendChild(o),this.sortable.animateAll(),r&&r.animateAll()},drop:kc},_o(hs,{pluginName:"revertOnSpill"});function gs(){}gs.prototype={onSpill:function(t){var o=t.dragEl,r=t.putSortable,n=r||this.sortable;n.captureAnimationState(),o.parentNode&&o.parentNode.removeChild(o),n.animateAll()},drop:kc},_o(gs,{pluginName:"removeOnSpill"}),ce.mount(new Tg),ce.mount(gs,hs);function Pg(e,t,o={}){let r;const{document:n=eg,...i}=o,a={onUpdate:d=>{Mg(t,d.oldIndex,d.newIndex,d)}},s=()=>{const d=typeof e=="string"?n?.querySelector(e):mr(e);!d||r!==void 0||(r=new ce(d,{...a,...i}))},l=()=>{r?.destroy(),r=void 0},c=(d,u)=>{if(u!==void 0)r?.option(d,u);else return r?.option(d)};return Qh(s),Si(l),{stop:l,start:s,option:c}}function Bg(e,t,o){const r=e.children[o];e.insertBefore(t,r)}function Dg(e){e.parentNode&&e.parentNode.removeChild(e)}function Mg(e,t,o,r=null){r!=null&&(Dg(r.item),Bg(r.from,r.item,t));const n=Ke(e),i=n?[...We(e)]:We(e);if(o>=0&&o<i.length){const a=i.splice(t,1)[0];ko(()=>{i.splice(o,0,a),n&&(e.value=i)})}}const Eg=["data-align"],ms=zt(ae({__name:"PvPopover",props:{alignment:{default:void 0,type:null},cssCustomProperties:{default:()=>({}),type:Object},cssCustomListProperties:{type:Object},isList:{type:Boolean,default:!1},isSortable:{type:Boolean}},emits:["list-order-updated"],setup(e,{expose:t,emit:o}){const r=He(null),n=no("popoverList"),i=e,a=o;return i.isSortable&&i.isList&&Pg(n,[],{animation:150,onUpdate:()=>{const s=Array.from(n.value?.children||[]).map(l=>l.id);a("list-order-updated",s)}}),t({popoverRoot:r}),(s,l)=>(g(),C("div",{ref_key:"popoverRoot",ref:r,class:"pv-popover","data-testid":"pv-popover","data-align":s.alignment,style:Bt(s.cssCustomProperties)},[s.isList?(g(),C("ul",{key:0,ref:"popoverList",role:"list",class:"pv-popover-list",style:Bt(s.cssCustomListProperties)},[J(s.$slots,"default",{},void 0,!0)],4)):J(s.$slots,"default",{key:1},void 0,!0)],12,Eg))}}),[["styles",[".pv-popover-list[data-v-cda1af8c]{font-size:14px}"]],["__scopeId","data-v-cda1af8c"]]),wc=$i?window:void 0;function fn(e){var t;const o=We(e);return(t=o?.$el)!=null?t:o}function Hi(...e){const t=[],o=()=>{t.forEach(s=>s()),t.length=0},r=(s,l,c,d)=>(s.addEventListener(l,c,d),()=>s.removeEventListener(l,c,d)),n=le(()=>{const s=gr(We(e[0])).filter(l=>l!=null);return s.every(l=>typeof l!="string")?s:void 0}),i=Xd(()=>{var s,l;return[(l=(s=n.value)==null?void 0:s.map(c=>fn(c)))!=null?l:[wc].filter(c=>c!=null),gr(We(n.value?e[1]:e[0])),gr(Ae(n.value?e[2]:e[1])),We(n.value?e[3]:e[2])]},([s,l,c,d])=>{if(o(),!s?.length||!l?.length||!c?.length)return;const u=qd(d)?{...d}:d;t.push(...s.flatMap(f=>l.flatMap(p=>c.map(h=>r(f,p,h,u)))))},{flush:"post"}),a=()=>{i(),o()};return Si(o),a}let Cc=!1;function Sc(e,t,o={}){const{window:r=wc,ignore:n=[],capture:i=!0,detectIframe:a=!1,controls:s=!1}=o;if(!r)return s?{stop:Mt,cancel:Mt,trigger:Mt}:Mt;if(_i&&!Cc){Cc=!0;const v={passive:!0};Array.from(r.document.body.children).forEach(k=>k.addEventListener("click",Mt,v)),r.document.documentElement.addEventListener("click",Mt,v)}let l=!0;const c=v=>We(n).some(k=>{if(typeof k=="string")return Array.from(r.document.querySelectorAll(k)).some(S=>S===v.target||v.composedPath().includes(S));{const S=fn(k);return S&&(v.target===S||v.composedPath().includes(S))}});function d(v){const k=We(v);return k&&k.$.subTree.shapeFlag===16}function u(v,k){const S=We(v),_=S.$.subTree&&S.$.subTree.children;return _==null||!Array.isArray(_)?!1:_.some(w=>w.el===k.target||k.composedPath().includes(w.el))}const f=v=>{const k=fn(e);if(v.target!=null&&!(!(k instanceof Element)&&d(e)&&u(e,v))&&!(!k||k===v.target||v.composedPath().includes(k))){if("detail"in v&&v.detail===0&&(l=!c(v)),!l){l=!0;return}t(v)}};let p=!1;const h=[Hi(r,"click",v=>{p||(p=!0,setTimeout(()=>{p=!1},0),f(v))},{passive:!0,capture:i}),Hi(r,"pointerdown",v=>{const k=fn(e);l=!c(v)&&!!(k&&!v.composedPath().includes(k))},{passive:!0}),a&&Hi(r,"blur",v=>{setTimeout(()=>{var k;const S=fn(e);((k=r.document.activeElement)==null?void 0:k.tagName)==="IFRAME"&&!S?.contains(r.document.activeElement)&&t(v)},0)},{passive:!0})].filter(Boolean),b=()=>h.forEach(v=>v());return s?{stop:b,cancel:()=>{l=!1},trigger:v=>{l=!0,f(v),l=!1}}:b}const bs=new WeakMap,vs={mounted(e,t){const o=!t.modifiers.bubble;let r;if(typeof t.value=="function")r=Sc(e,t.value,{capture:o});else{const[n,i]=t.value;r=Sc(e,n,Object.assign({capture:o},i))}bs.set(e,r)},unmounted(e){const t=bs.get(e);t&&typeof t=="function"?t():t?.stop(),bs.delete(e)}};function ys(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function $c(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const o=e.parentNode;return!o||o.tagName==="BODY"?!1:$c(o)}}function Og(e){const t=e||window.event,o=t.target;return $c(o)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const ks=new WeakMap;function Ig(e,t=!1){const o=Jn(t);let r=null,n="";Qe(Zh(e),s=>{const l=ys(We(s));if(l){const c=l;if(ks.get(c)||ks.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(n=c.style.overflow),c.style.overflow==="hidden")return o.value=!0;if(o.value)return c.style.overflow="hidden"}},{immediate:!0});const i=()=>{const s=ys(We(e));!s||o.value||(_i&&(r=Hi(s,"touchmove",l=>{Og(l)},{passive:!1})),s.style.overflow="hidden",o.value=!0)},a=()=>{const s=ys(We(e));!s||!o.value||(_i&&r?.(),s.style.overflow=n,ks.delete(s),o.value=!1)};return Si(a),le({get(){return o.value},set(s){s?i():a()}})}function Rg(){let e=!1;const t=Jn(!1);return(o,r)=>{if(t.value=r.value,e)return;e=!0;const n=Ig(o,r.value);Qe(t,i=>n.value=i)}}Rg();const Lg={class:"pv-relative",style:{width:"fit-content"}},Ag=["disabled"],Ng={key:0,class:"pv-shimmer"},Vg=zt(ae({__name:"PvDropdown",props:{defaultOpen:{type:Boolean,default:!1},popoverCssProperties:{type:Object},alignment:{default:void 0,type:null},isList:{type:Boolean,default:!1},isSortable:{type:Boolean},icon:{type:Boolean},disabled:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},useTeleport:{type:Boolean,default:!1},teleportLocation:{default:"body",type:String}},emits:["dropdown-open","dropdown-closed","list-order-updated"],setup(e,{expose:t,emit:o}){const r=e,n=o,i=He(r.defaultOpen),a=He(null),s=He(null),l=He(null),c=He(null),d=()=>{a.value&&(l.value=a.value.getBoundingClientRect()),s.value?.popoverRoot&&(c.value=s.value.popoverRoot.getBoundingClientRect())},u=le(()=>({"pv-hide":!i.value})),f=k=>{i.value=!i.value},p=()=>{i.value=!1};t({closeDropdown:p}),Qe(i,k=>{k?ko(()=>{d(),n("dropdown-open")}):n("dropdown-closed")});const h=le(()=>!l.value||!c.value?0:r.alignment==="right"||r.alignment==="top right"?l.value.left+l.value.width-c.value.width:l.value.left),b=le(()=>!l.value||!c.value?0:r.alignment==="top"||r.alignment==="top right"?l.value.top-c.value.height:l.value.top+window.scrollY+l.value.height),v=le(()=>r.useTeleport?{...{position:"absolute",left:`${h.value}px`,top:`${b.value}px`,zIndex:10},...r.popoverCssProperties}:r.popoverCssProperties);return(k,S)=>ot((g(),C("div",Lg,[H("button",{ref_key:"triggerRef",ref:a,class:pe({"pv-select":!k.icon,"pv-icon-button":k.icon}),style:{width:"auto"},onClick:f,disabled:k.disabled},[J(k.$slots,"trigger",{},()=>[S[1]||(S[1]=Ct("Open"))],!0)],10,Ag),(g(),Q(ii,{to:k.teleportLocation,disabled:!k.useTeleport},[se(ms,{ref_key:"popoverRef",ref:s,class:pe(u.value),"css-custom-properties":v.value,alignment:k.alignment,isList:k.isList,isSortable:k.isSortable,onListOrderUpdated:S[0]||(S[0]=_=>k.$emit("list-order-updated",_))},{default:Ne(()=>[J(k.$slots,"default",{},()=>[k.isLoading?(g(),C("span",Ng,"Loading...")):z("",!0)],!0)]),_:3},8,["class","css-custom-properties","alignment","isList","isSortable"])],8,["to","disabled"]))])),[[Ae(vs),p]])}}),[["styles",[".pv-icon-button[data-v-79a7def3]{background-color:transparent;border:none}.pv-icon-button[data-v-79a7def3]:hover{cursor:pointer;color:#176f6f}.pv-select[data-v-79a7def3]{padding-top:4px;padding-bottom:4px}"]],["__scopeId","data-v-79a7def3"]]),zg=["onClick","data-active"],Fg=ae({__name:"PvSegmentedControl",props:rt({size:{default:"lg",type:String},options:{default:()=>[],type:Array}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=et(e,"modelValue"),o=r=>{t.value=r};return(r,n)=>(g(),C("div",{class:pe(["pv-segmented-control",{"pv-segmented-control-large":r.size==="xl"}])},[(g(!0),C(he,null,ut(r.options,i=>(g(),C("button",{key:i.value,onClick:a=>o(i.value),"data-active":t.value===i.value?!0:null},[i.iconPosition=="left"&&i.icon?(g(),Q(qe,{key:0,name:i.icon},null,8,["name"])):z("",!0),i.label?(g(),C(he,{key:1},[Ct(Z(i.label),1)],64)):z("",!0),i.iconPosition=="right"&&i.icon?(g(),Q(qe,{key:2,name:i.icon},null,8,["name"])):z("",!0)],8,zg))),128))],2))}}),jg={role:"list",class:"pv-tab-list"},Hg=["onClick","data-active"],Wg={class:"pv-text-body-xs",style:{"font-weight":"500"}},Yg=zt(ae({__name:"PvTabList",props:{modelValue:{type:String},options:{type:Array}},emits:["update:modelValue"],setup(e,{emit:t}){const o=t,r=n=>{o("update:modelValue",n)};return(n,i)=>(g(),C("div",null,[H("ul",jg,[(g(!0),C(he,null,ut(n.options,a=>(g(),C("li",{key:a.value,style:{cursor:"pointer"},onClick:s=>r(a.value),"data-active":n.modelValue===a.value?!0:null},[H("button",Wg,Z(a.label),1)],8,Hg))),128))])]))}}),[["styles",['.pv-tab-list[data-v-498bf523]{border:none}.pv-tab-list :where(li)[data-active][data-v-498bf523]:after{content:"";display:block;height:2px;width:100%;position:absolute;bottom:0;left:0;right:0;background-color:#176f6f}']],["__scopeId","data-v-498bf523"]]);function Ug(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}const Kg=/\p{Lu}?\p{Ll}+|[0-9]+|\p{Lu}+(?!\p{Ll})|\p{Emoji_Presentation}|\p{Extended_Pictographic}|\p{L}+/gu;function _c(e){return Array.from(e.match(Kg)??[])}function qg(e){const t=_c(e);if(t.length===0)return"";const[o,...r]=t;return`${o.toLowerCase()}${r.map(n=>Ug(n)).join("")}`}function Gg(e){return _c(e).map(o=>o.toLowerCase()).join("-")}const Xg={class:"pv-flex","data-testid":"pv-company-logo"},Zg=["src"],pn=ae({__name:"PvCompanyLogo",props:{basePath:{default:"https://static-assets.turquoise.health/shared-logos/prd/payers",type:String},name:{type:String},size:{default:"md",type:null},srcPathOverride:{type:String},toCamelCase:{type:Boolean,default:!0}},setup(e){const t=e,o=He(!0),r=le(()=>Lh[t.size]||"32px"),n=le(()=>({"pv-icon":o.value,[`pv-company-${t.size}`]:t.size&&!o.value})),i=le(()=>({width:r.value})),a=le(()=>t.toCamelCase?qg(t.name)+".svg":t.name+".svg"),s=le(()=>t.srcPathOverride?t.srcPathOverride:`${t.basePath}/${a.value}`);return Qe(s,()=>{o.value=!0}),(l,c)=>(g(),C("div",Xg,[o.value?(g(),C("div",{key:0,class:pe(n.value),style:Bt(i.value)},[H("img",{src:s.value,alt:"",onError:c[0]||(c[0]=d=>o.value=!1)},null,40,Zg)],6)):(g(),C("div",{key:1,class:pe(n.value)},null,2))]))}}),Jg=["closedby"],Qg={class:"pv-inset-squish-12"},em={class:"pv-flex pv-flex-vertical pv-stack-16",style:{"--flex-align":"flex-start"}},tm={class:"pv-heading-3"},om={key:0,class:"pv-text-body-md"},rm={class:"pv-inset-squish-12 pv-border-top",style:{"--color-border":"#d2d8dc"}},nm=ae({__name:"PvModal",props:rt({header:{type:String},subheader:{type:String},closeOnClickOutside:{type:Boolean,default:!0}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,o=no("dialog"),r=et(e,"modelValue");Qe(()=>r.value,()=>{r.value?o.value?.showModal():o.value?.close()});const n=()=>{t.closeOnClickOutside&&(r.value=!1)};return(i,a)=>(g(),C("dialog",{class:"pv-modal-sm",ref_key:"dialog",ref:o,closedby:i.closeOnClickOutside?"any":void 0,style:{"--max-width":"480px"},onClose:n},[H("div",Qg,[H("div",em,[H("span",tm,Z(i.header),1),i.subheader?(g(),C("span",om,Z(i.subheader),1)):z("",!0)]),J(i.$slots,"body")]),H("div",rm,[J(i.$slots,"footer")])],40,Jg))}});var Wi=(e=>(e.Vertical="Vertical",e.Horizontal="Horizontal",e))(Wi||{}),hn=(e=>(e.Primary="Primary",e.Secondary="Secondary",e.Tertiary="Tertiary",e))(hn||{});const im={class:"pv-text-title-sm pv-line-clamp",style:{"--lines":"2"}},am={key:0,class:"pv-flex"},sm=ae({__name:"PvBanner",props:{label:{type:String},icon:{type:String},variant:{default:hn.Primary,type:null},orientation:{default:Wi.Horizontal,type:null}},setup(e){return(t,o)=>(g(),C("div",{"data-testid":"pv-banner",class:pe([{"pv-banner-primary":t.variant===Ae(hn).Primary,"pv-banner-secondary":t.variant===Ae(hn).Secondary,"pv-banner-tertiary":t.variant===Ae(hn).Tertiary,"pv-flex pv-space-between":t.orientation===Ae(Wi).Horizontal}])},[H("div",{class:pe(["pv-flex",{"pv-stack-16":t.orientation===Ae(Wi).Vertical&&t.$slots.action}])},[t.icon?(g(),Q(qe,{key:0,"data-testid":"pv-banner-icon",class:"pv-text-brand",name:t.icon},null,8,["name"])):z("",!0),H("p",im,Z(t.label),1)],2),t.$slots.action?(g(),C("div",am,[J(t.$slots,"action")])):z("",!0)],2))}}),lm=ae({__name:"PvCompanyTag",props:{companyName:{type:String},size:{default:"md",type:String},showClear:{type:Boolean,default:!1}},emits:["handle-close","handle-click"],setup(e){const t=e,o=le(()=>{switch(t.size){case"lg":return"pv-tag-lg";case"sm":return"pv-tag-sm";default:return""}});return(r,n)=>(g(),C("button",{class:pe(["pv-tag-tertiary",o.value]),onClick:n[1]||(n[1]=i=>r.$emit("handle-click",r.companyName)),"data-testid":"pv-company-tag"},[se(pn,{class:pe(r.size==="lg"?"pv-company-sm":"pv-company-xs"),"data-testid":"pv-company-tag-icon",size:r.size==="lg"?"sm":"xs",name:r.companyName},null,8,["class","size","name"]),H("span",null,Z(r.companyName),1),r.showClear?(g(),Q(qe,{key:0,"data-testid":"pv-company-tag-close-icon",size:12,name:"close",onClick:n[0]||(n[0]=Ci(i=>r.$emit("handle-close",r.companyName),["stop"]))})):z("",!0)],2))}}),dm=["data-style"],cm=ae({__name:"PvSuggestionTag",props:{size:{default:"md",type:String},label:{type:String},showIcon:{type:Boolean},rounded:{type:Boolean}},emits:["handle-click"],setup(e){const t=e,o=le(()=>{switch(t.size){case"lg":return"pv-tag-lg";case"sm":return"pv-tag-sm";default:return""}});return(r,n)=>(g(),C("button",{class:pe(["pv-border-dashed pv-tag-secondary",o.value]),onClick:n[0]||(n[0]=i=>r.$emit("handle-click",r.label)),"data-testid":"pv-suggestion-tag","data-style":r.rounded?"rounded":void 0},[r.showIcon?(g(),Q(qe,{key:0,"data-testid":"pv-suggestion-tag-icon",name:"expand",size:12})):z("",!0),H("span",null,Z(r.label),1)],10,dm))}}),um=["open","data-arrow"],fm={class:"pv-flex"},pm=ae({__name:"PvAccordion",props:{header:{type:String},chevronPosition:{default:"right",type:null},defaultOpen:{type:Boolean,default:!1},counter:{type:Number}},setup(e){return(t,o)=>(g(),C("details",{"data-testid":"pv-accordion",class:"pv-accordion",open:t.defaultOpen,"data-arrow":t.chevronPosition},[H("summary",fm,[H("span",null,Z(t.header),1),t.counter?(g(),Q(en,{key:0,value:t.counter,variant:"secondary",size:"sm"},null,8,["value"])):z("",!0)]),H("div",null,[J(t.$slots,"default")])],8,um))}}),hm={class:"pv-relative"},gm=["disabled","placeholder"],mm={key:0,"data-testid":"pv-search-input-shortcut",class:"pv-kbd"},xc="/",Yi=ae({__name:"PvSearchInput",props:rt({placeholder:{default:"Search",type:String},disabled:{type:Boolean,default:!1},displayShortcut:{type:Boolean}},{modelValue:{required:!1,default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){const o=e,r=no("search-input"),n=et(e,"modelValue"),i=le(()=>({"pv-input-search":!0,"pv-full-width":!0,"pv-input-padded-end":!0}));return io(()=>{o.displayShortcut&&Ti(xc,a=>{const s=a.target,l=s instanceof HTMLInputElement||s instanceof HTMLTextAreaElement||(s?.isContentEditable??!1),c=document.activeElement===r.value;(!l||c)&&(c||(a.preventDefault(),r.value?.focus()))})}),t({input:r}),(a,s)=>(g(),C("div",hm,[ot(H("input",{ref:"search-input","onUpdate:modelValue":s[0]||(s[0]=l=>n.value=l),"data-testid":"pv-search-input",type:"text",disabled:a.disabled,class:pe(i.value),placeholder:a.placeholder},null,10,gm),[[ki,n.value]]),a.displayShortcut?(g(),C("kbd",mm,Z(xc))):z("",!0)]))}});function jt(...e){if(e){let t=[];for(let o=0;o<e.length;o++){const r=e[o];if(!r)continue;const n=typeof r;if(n==="string"||n==="number")t.push(r);else if(n==="object"){const i=Array.isArray(r)?[jt(...r)]:Object.entries(r).map(([a,s])=>s?a:void 0);t=i.length?t.concat(i.filter(a=>!!a)):t}}return t.join(" ").trim()}}function bm(e,t){return e?e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className):!1}function vm(e,t){if(e&&t){const o=r=>{bm(e,r)||(e.classList?e.classList.add(r):e.className+=" "+r)};[t].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(o))}}function ws(e,t){if(e&&t){const o=r=>{e.classList?e.classList.remove(r):e.className=e.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," ")};[t].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(o))}}function Ui(e){for(const t of document?.styleSheets)try{for(const o of t?.cssRules)for(const r of o?.style)if(e.test(r))return{name:r,value:o.style.getPropertyValue(r).trim()}}catch{}return null}function Tc(e){const t={width:0,height:0};return e&&(e.style.visibility="hidden",e.style.display="block",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible"),t}function Pc(){const e=window,t=document,o=t.documentElement,r=t.getElementsByTagName("body")[0],n=e.innerWidth||o.clientWidth||r.clientWidth,i=e.innerHeight||o.clientHeight||r.clientHeight;return{width:n,height:i}}function Cs(e){return e?Math.abs(e.scrollLeft):0}function ym(){const e=document.documentElement;return(window.pageXOffset||Cs(e))-(e.clientLeft||0)}function km(){const e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}function wm(e){return e?getComputedStyle(e).direction==="rtl":!1}function Cm(e,t,o=!0){var r,n,i,a;if(e){const s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:Tc(e),l=s.height,c=s.width,d=t.offsetHeight,u=t.offsetWidth,f=t.getBoundingClientRect(),p=km(),h=ym(),b=Pc();let v,k,S="top";f.top+d+l>b.height?(v=f.top+p-l,S="bottom",v<0&&(v=p)):v=d+f.top+p,f.left+c>b.width?k=Math.max(0,f.left+h+u-c):k=f.left+h,wm(e)?e.style.insetInlineEnd=k+"px":e.style.insetInlineStart=k+"px",e.style.top=v+"px",e.style.transformOrigin=S,o&&(e.style.marginTop=S==="bottom"?`calc(${(n=(r=Ui(/-anchor-gutter$/))==null?void 0:r.value)!=null?n:"2px"} * -1)`:(a=(i=Ui(/-anchor-gutter$/))==null?void 0:i.value)!=null?a:"")}}function Sm(e,t){e&&(typeof t=="string"?e.style.cssText=t:Object.entries(t||{}).forEach(([o,r])=>e.style[o]=r))}function Ki(e,t){return e instanceof HTMLElement?e.offsetWidth:0}function $m(e,t,o=!0){var r,n,i,a;if(e){const s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:Tc(e),l=t.offsetHeight,c=t.getBoundingClientRect(),d=Pc();let u,f,p="top";c.top+l+s.height>d.height?(u=-1*s.height,p="bottom",c.top+u<0&&(u=-1*c.top)):u=l,s.width>d.width?f=c.left*-1:c.left+s.width>d.width?f=(c.left+s.width-d.width)*-1:f=0,e.style.top=u+"px",e.style.insetInlineStart=f+"px",e.style.transformOrigin=p,o&&(e.style.marginTop=p==="bottom"?`calc(${(n=(r=Ui(/-anchor-gutter$/))==null?void 0:r.value)!=null?n:"2px"} * -1)`:(a=(i=Ui(/-anchor-gutter$/))==null?void 0:i.value)!=null?a:"")}}function Ss(e){if(e){let t=e.parentNode;return t&&t instanceof ShadowRoot&&t.host&&(t=t.host),t}return null}function _m(e){return!!(e!==null&&typeof e<"u"&&e.nodeName&&Ss(e))}function Sr(e){return typeof Element<"u"?e instanceof Element:e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.nodeName=="string"}function qi(e,t={}){if(Sr(e)){const o=(r,n)=>{var i,a;const s=(i=e?.$attrs)!=null&&i[r]?[(a=e?.$attrs)==null?void 0:a[r]]:[];return[n].flat().reduce((l,c)=>{if(c!=null){const d=typeof c;if(d==="string"||d==="number")l.push(c);else if(d==="object"){const u=Array.isArray(c)?o(r,c):Object.entries(c).map(([f,p])=>r==="style"&&(p||p===0)?`${f.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${p}`:p?f:void 0);l=u.length?l.concat(u.filter(f=>!!f)):l}}return l},s)};Object.entries(t).forEach(([r,n])=>{if(n!=null){const i=r.match(/^on(.+)/);i?e.addEventListener(i[1].toLowerCase(),n):r==="p-bind"||r==="pBind"?qi(e,n):(n=r==="class"?[...new Set(o("class",n))].join(" ").trim():r==="style"?o("style",n).join(";").trim():n,(e.$attrs=e.$attrs||{})&&(e.$attrs[r]=n),e.setAttribute(r,n))}})}}function xm(e,t={},...o){{const r=document.createElement(e);return qi(r,t),r.append(...o),r}}function Fo(e,t){return Sr(e)?Array.from(e.querySelectorAll(t)):[]}function Gt(e,t){return Sr(e)?e.matches(t)?e:e.querySelector(t):null}function or(e,t){if(Sr(e)){const o=e.getAttribute(t);return isNaN(o)?o==="true"||o==="false"?o==="true":o:+o}}function Bc(e,t=""){const o=Fo(e,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
|
|
25
|
+
*/function Jd(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),o.push.apply(o,r)}return o}function co(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?Jd(Object(o),!0).forEach(function(r){rg(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Jd(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function Pi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pi=function(t){return typeof t}:Pi=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pi(e)}function rg(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function _o(){return _o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},_o.apply(this,arguments)}function ng(e,t){if(e==null)return{};var o={},r=Object.keys(e),n,i;for(i=0;i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}function ig(e,t){if(e==null)return{};var o=ng(e,t),r,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var ag="1.15.6";function xo(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var To=xo(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),tn=xo(/Edge/i),Qd=xo(/firefox/i),on=xo(/safari/i)&&!xo(/chrome/i)&&!xo(/android/i),Qa=xo(/iP(ad|od|hone)/i),ec=xo(/chrome/i)&&xo(/android/i),tc={capture:!1,passive:!1};function we(e,t,o){e.addEventListener(t,o,!To&&tc)}function ye(e,t,o){e.removeEventListener(t,o,!To&&tc)}function Bi(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function oc(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Kt(e,t,o,r){if(e){o=o||document;do{if(t!=null&&(t[0]===">"?e.parentNode===o&&Bi(e,t):Bi(e,t))||r&&e===o)return e;if(e===o)break}while(e=oc(e))}return null}var rc=/\s+/g;function Et(e,t,o){if(e&&t)if(e.classList)e.classList[o?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(rc," ").replace(" "+t+" "," ");e.className=(r+(o?" "+t:"")).replace(rc," ")}}function de(e,t,o){var r=e&&e.style;if(r){if(o===void 0)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(o=e.currentStyle),t===void 0?o:o[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=o+(typeof o=="string"?"":"px")}}function br(e,t){var o="";if(typeof e=="string")o=e;else do{var r=de(e,"transform");r&&r!=="none"&&(o=r+" "+o)}while(!t&&(e=e.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(o)}function nc(e,t,o){if(e){var r=e.getElementsByTagName(t),n=0,i=r.length;if(o)for(;n<i;n++)o(r[n],n);return r}return[]}function uo(){var e=document.scrollingElement;return e||document.documentElement}function Ge(e,t,o,r,n){if(!(!e.getBoundingClientRect&&e!==window)){var i,a,s,l,c,d,u;if(e!==window&&e.parentNode&&e!==uo()?(i=e.getBoundingClientRect(),a=i.top,s=i.left,l=i.bottom,c=i.right,d=i.height,u=i.width):(a=0,s=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,u=window.innerWidth),(t||o)&&e!==window&&(n=n||e.parentNode,!To))do if(n&&n.getBoundingClientRect&&(de(n,"transform")!=="none"||o&&de(n,"position")!=="static")){var f=n.getBoundingClientRect();a-=f.top+parseInt(de(n,"border-top-width")),s-=f.left+parseInt(de(n,"border-left-width")),l=a+i.height,c=s+i.width;break}while(n=n.parentNode);if(r&&e!==window){var p=br(n||e),h=p&&p.a,b=p&&p.d;p&&(a/=b,s/=h,u/=h,d/=b,l=a+d,c=s+u)}return{top:a,left:s,bottom:l,right:c,width:u,height:d}}}function ic(e,t,o){for(var r=No(e,!0),n=Ge(e)[t];r;){var i=Ge(r)[o],a=void 0;if(a=n>=i,!a)return r;if(r===uo())break;r=No(r,!1)}return!1}function vr(e,t,o,r){for(var n=0,i=0,a=e.children;i<a.length;){if(a[i].style.display!=="none"&&a[i]!==ce.ghost&&(r||a[i]!==ce.dragged)&&Kt(a[i],o.draggable,e,!1)){if(n===t)return a[i];n++}i++}return null}function es(e,t){for(var o=e.lastElementChild;o&&(o===ce.ghost||de(o,"display")==="none"||t&&!Bi(o,t));)o=o.previousElementSibling;return o||null}function Ft(e,t){var o=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==ce.clone&&(!t||Bi(e,t))&&o++;return o}function ac(e){var t=0,o=0,r=uo();if(e)do{var n=br(e),i=n.a,a=n.d;t+=e.scrollLeft*i,o+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,o]}function sg(e,t){for(var o in e)if(e.hasOwnProperty(o)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[o][r])return Number(o)}return-1}function No(e,t){if(!e||!e.getBoundingClientRect)return uo();var o=e,r=!1;do if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var n=de(o);if(o.clientWidth<o.scrollWidth&&(n.overflowX=="auto"||n.overflowX=="scroll")||o.clientHeight<o.scrollHeight&&(n.overflowY=="auto"||n.overflowY=="scroll")){if(!o.getBoundingClientRect||o===document.body)return uo();if(r||t)return o;r=!0}}while(o=o.parentNode);return uo()}function lg(e,t){if(e&&t)for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);return e}function ts(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var rn;function sc(e,t){return function(){if(!rn){var o=arguments,r=this;o.length===1?e.call(r,o[0]):e.apply(r,o),rn=setTimeout(function(){rn=void 0},t)}}}function dg(){clearTimeout(rn),rn=void 0}function lc(e,t,o){e.scrollLeft+=t,e.scrollTop+=o}function dc(e){var t=window.Polymer,o=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):o?o(e).clone(!0)[0]:e.cloneNode(!0)}function cc(e,t,o){var r={};return Array.from(e.children).forEach(function(n){var i,a,s,l;if(!(!Kt(n,t.draggable,e,!1)||n.animated||n===o)){var c=Ge(n);r.left=Math.min((i=r.left)!==null&&i!==void 0?i:1/0,c.left),r.top=Math.min((a=r.top)!==null&&a!==void 0?a:1/0,c.top),r.right=Math.max((s=r.right)!==null&&s!==void 0?s:-1/0,c.right),r.bottom=Math.max((l=r.bottom)!==null&&l!==void 0?l:-1/0,c.bottom)}}),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var St="Sortable"+new Date().getTime();function cg(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(n){if(!(de(n,"display")==="none"||n===ce.ghost)){e.push({target:n,rect:Ge(n)});var i=co({},e[e.length-1].rect);if(n.thisAnimationDuration){var a=br(n,!0);a&&(i.top-=a.f,i.left-=a.e)}n.fromRect=i}})}},addAnimationState:function(r){e.push(r)},removeAnimationState:function(r){e.splice(sg(e,{target:r}),1)},animateAll:function(r){var n=this;if(!this.options.animation){clearTimeout(t),typeof r=="function"&&r();return}var i=!1,a=0;e.forEach(function(s){var l=0,c=s.target,d=c.fromRect,u=Ge(c),f=c.prevFromRect,p=c.prevToRect,h=s.rect,b=br(c,!0);b&&(u.top-=b.f,u.left-=b.e),c.toRect=u,c.thisAnimationDuration&&ts(f,u)&&!ts(d,u)&&(h.top-u.top)/(h.left-u.left)===(d.top-u.top)/(d.left-u.left)&&(l=fg(h,f,p,n.options)),ts(u,d)||(c.prevFromRect=d,c.prevToRect=u,l||(l=n.options.animation),n.animate(c,h,u,l)),l&&(i=!0,a=Math.max(a,l),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},l),c.thisAnimationDuration=l)}),clearTimeout(t),i?t=setTimeout(function(){typeof r=="function"&&r()},a):typeof r=="function"&&r(),e=[]},animate:function(r,n,i,a){if(a){de(r,"transition",""),de(r,"transform","");var s=br(this.el),l=s&&s.a,c=s&&s.d,d=(n.left-i.left)/(l||1),u=(n.top-i.top)/(c||1);r.animatingX=!!d,r.animatingY=!!u,de(r,"transform","translate3d("+d+"px,"+u+"px,0)"),this.forRepaintDummy=ug(r),de(r,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),de(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){de(r,"transition",""),de(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},a)}}}}function ug(e){return e.offsetWidth}function fg(e,t,o,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-o.top,2)+Math.pow(t.left-o.left,2))*r.animation}var yr=[],os={initializeByDefault:!0},nn={mount:function(t){for(var o in os)os.hasOwnProperty(o)&&!(o in t)&&(t[o]=os[o]);yr.forEach(function(r){if(r.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),yr.push(t)},pluginEvent:function(t,o,r){var n=this;this.eventCanceled=!1,r.cancel=function(){n.eventCanceled=!0};var i=t+"Global";yr.forEach(function(a){o[a.pluginName]&&(o[a.pluginName][i]&&o[a.pluginName][i](co({sortable:o},r)),o.options[a.pluginName]&&o[a.pluginName][t]&&o[a.pluginName][t](co({sortable:o},r)))})},initializePlugins:function(t,o,r,n){yr.forEach(function(s){var l=s.pluginName;if(!(!t.options[l]&&!s.initializeByDefault)){var c=new s(t,o,t.options);c.sortable=t,c.options=t.options,t[l]=c,_o(r,c.defaults)}});for(var i in t.options)if(t.options.hasOwnProperty(i)){var a=this.modifyOption(t,i,t.options[i]);typeof a<"u"&&(t.options[i]=a)}},getEventProperties:function(t,o){var r={};return yr.forEach(function(n){typeof n.eventProperties=="function"&&_o(r,n.eventProperties.call(o[n.pluginName],t))}),r},modifyOption:function(t,o,r){var n;return yr.forEach(function(i){t[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[o]=="function"&&(n=i.optionListeners[o].call(t[i.pluginName],r))}),n}};function pg(e){var t=e.sortable,o=e.rootEl,r=e.name,n=e.targetEl,i=e.cloneEl,a=e.toEl,s=e.fromEl,l=e.oldIndex,c=e.newIndex,d=e.oldDraggableIndex,u=e.newDraggableIndex,f=e.originalEvent,p=e.putSortable,h=e.extraEventProperties;if(t=t||o&&o[St],!!t){var b,v=t.options,k="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!To&&!tn?b=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(b=document.createEvent("Event"),b.initEvent(r,!0,!0)),b.to=a||o,b.from=s||o,b.item=n||o,b.clone=i,b.oldIndex=l,b.newIndex=c,b.oldDraggableIndex=d,b.newDraggableIndex=u,b.originalEvent=f,b.pullMode=p?p.lastPutMode:void 0;var S=co(co({},h),nn.getEventProperties(r,t));for(var _ in S)b[_]=S[_];o&&o.dispatchEvent(b),v[k]&&v[k].call(t,b)}}var hg=["evt"],$t=function(t,o){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.evt,i=ig(r,hg);nn.pluginEvent.bind(ce)(t,o,co({dragEl:Y,parentEl:Ye,ghostEl:me,rootEl:ze,nextEl:Qo,lastDownEl:Di,cloneEl:Fe,cloneHidden:Vo,dragStarted:sn,putSortable:it,activeSortable:ce.active,originalEvent:n,oldIndex:kr,oldDraggableIndex:an,newIndex:Ot,newDraggableIndex:zo,hideGhostForTarget:bc,unhideGhostForTarget:vc,cloneNowHidden:function(){Vo=!0},cloneNowShown:function(){Vo=!1},dispatchSortableEvent:function(s){vt({sortable:o,name:s,originalEvent:n})}},i))};function vt(e){pg(co({putSortable:it,cloneEl:Fe,targetEl:Y,rootEl:ze,oldIndex:kr,oldDraggableIndex:an,newIndex:Ot,newDraggableIndex:zo},e))}var Y,Ye,me,ze,Qo,Di,Fe,Vo,kr,Ot,an,zo,Mi,it,wr=!1,Ei=!1,Oi=[],er,qt,rs,ns,uc,fc,sn,Cr,ln,dn=!1,Ii=!1,Ri,pt,is=[],as=!1,Li=[],Ai=typeof document<"u",Ni=Qa,pc=tn||To?"cssFloat":"float",gg=Ai&&!ec&&!Qa&&"draggable"in document.createElement("div"),hc=function(){if(Ai){if(To)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),gc=function(t,o){var r=de(t),n=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),i=vr(t,0,o),a=vr(t,1,o),s=i&&de(i),l=a&&de(a),c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Ge(i).width,d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Ge(a).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&s.float&&s.float!=="none"){var u=s.float==="left"?"left":"right";return a&&(l.clear==="both"||l.clear===u)?"vertical":"horizontal"}return i&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||c>=n&&r[pc]==="none"||a&&r[pc]==="none"&&c+d>n)?"vertical":"horizontal"},mg=function(t,o,r){var n=r?t.left:t.top,i=r?t.right:t.bottom,a=r?t.width:t.height,s=r?o.left:o.top,l=r?o.right:o.bottom,c=r?o.width:o.height;return n===s||i===l||n+a/2===s+c/2},bg=function(t,o){var r;return Oi.some(function(n){var i=n[St].options.emptyInsertThreshold;if(!(!i||es(n))){var a=Ge(n),s=t>=a.left-i&&t<=a.right+i,l=o>=a.top-i&&o<=a.bottom+i;if(s&&l)return r=n}}),r},mc=function(t){function o(i,a){return function(s,l,c,d){var u=s.options.group.name&&l.options.group.name&&s.options.group.name===l.options.group.name;if(i==null&&(a||u))return!0;if(i==null||i===!1)return!1;if(a&&i==="clone")return i;if(typeof i=="function")return o(i(s,l,c,d),a)(s,l,c,d);var f=(a?s:l).options.group.name;return i===!0||typeof i=="string"&&i===f||i.join&&i.indexOf(f)>-1}}var r={},n=t.group;(!n||Pi(n)!="object")&&(n={name:n}),r.name=n.name,r.checkPull=o(n.pull,!0),r.checkPut=o(n.put),r.revertClone=n.revertClone,t.group=r},bc=function(){!hc&&me&&de(me,"display","none")},vc=function(){!hc&&me&&de(me,"display","")};Ai&&!ec&&document.addEventListener("click",function(e){if(Ei)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ei=!1,!1},!0);var tr=function(t){if(Y){t=t.touches?t.touches[0]:t;var o=bg(t.clientX,t.clientY);if(o){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);r.target=r.rootEl=o,r.preventDefault=void 0,r.stopPropagation=void 0,o[St]._onDragOver(r)}}},vg=function(t){Y&&Y.parentNode[St]._isOutsideThisEl(t.target)};function ce(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=_o({},t),e[St]=this;var o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return gc(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,s){a.setData("Text",s.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:ce.supportPointer!==!1&&"PointerEvent"in window&&(!on||Qa),emptyInsertThreshold:5};nn.initializePlugins(this,e,o);for(var r in o)!(r in t)&&(t[r]=o[r]);mc(t);for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));this.nativeDraggable=t.forceFallback?!1:gg,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?we(e,"pointerdown",this._onTapStart):(we(e,"mousedown",this._onTapStart),we(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(we(e,"dragover",this),we(e,"dragenter",this)),Oi.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),_o(this,cg())}ce.prototype={constructor:ce,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Cr=null)},_getDirection:function(t,o){return typeof this.options.direction=="function"?this.options.direction.call(this,t,o,Y):this.options.direction},_onTapStart:function(t){if(t.cancelable){var o=this,r=this.el,n=this.options,i=n.preventOnFilter,a=t.type,s=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(s||t).target,c=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,d=n.filter;if(xg(r),!Y&&!(/mousedown|pointerdown/.test(a)&&t.button!==0||n.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&on&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Kt(l,n.draggable,r,!1),!(l&&l.animated)&&Di!==l)){if(kr=Ft(l),an=Ft(l,n.draggable),typeof d=="function"){if(d.call(this,t,l,this)){vt({sortable:o,rootEl:c,name:"filter",targetEl:l,toEl:r,fromEl:r}),$t("filter",o,{evt:t}),i&&t.preventDefault();return}}else if(d&&(d=d.split(",").some(function(u){if(u=Kt(c,u.trim(),r,!1),u)return vt({sortable:o,rootEl:u,name:"filter",targetEl:l,fromEl:r,toEl:r}),$t("filter",o,{evt:t}),!0}),d)){i&&t.preventDefault();return}n.handle&&!Kt(c,n.handle,r,!1)||this._prepareDragStart(t,s,l)}}},_prepareDragStart:function(t,o,r){var n=this,i=n.el,a=n.options,s=i.ownerDocument,l;if(r&&!Y&&r.parentNode===i){var c=Ge(r);if(ze=i,Y=r,Ye=Y.parentNode,Qo=Y.nextSibling,Di=r,Mi=a.group,ce.dragged=Y,er={target:Y,clientX:(o||t).clientX,clientY:(o||t).clientY},uc=er.clientX-c.left,fc=er.clientY-c.top,this._lastX=(o||t).clientX,this._lastY=(o||t).clientY,Y.style["will-change"]="all",l=function(){if($t("delayEnded",n,{evt:t}),ce.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!Qd&&n.nativeDraggable&&(Y.draggable=!0),n._triggerDragStart(t,o),vt({sortable:n,name:"choose",originalEvent:t}),Et(Y,a.chosenClass,!0)},a.ignore.split(",").forEach(function(d){nc(Y,d.trim(),ss)}),we(s,"dragover",tr),we(s,"mousemove",tr),we(s,"touchmove",tr),a.supportPointer?(we(s,"pointerup",n._onDrop),!this.nativeDraggable&&we(s,"pointercancel",n._onDrop)):(we(s,"mouseup",n._onDrop),we(s,"touchend",n._onDrop),we(s,"touchcancel",n._onDrop)),Qd&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Y.draggable=!0),$t("delayStart",this,{evt:t}),a.delay&&(!a.delayOnTouchOnly||o)&&(!this.nativeDraggable||!(tn||To))){if(ce.eventCanceled){this._onDrop();return}a.supportPointer?(we(s,"pointerup",n._disableDelayedDrag),we(s,"pointercancel",n._disableDelayedDrag)):(we(s,"mouseup",n._disableDelayedDrag),we(s,"touchend",n._disableDelayedDrag),we(s,"touchcancel",n._disableDelayedDrag)),we(s,"mousemove",n._delayedDragTouchMoveHandler),we(s,"touchmove",n._delayedDragTouchMoveHandler),a.supportPointer&&we(s,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(l,a.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var o=t.touches?t.touches[0]:t;Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Y&&ss(Y),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;ye(t,"mouseup",this._disableDelayedDrag),ye(t,"touchend",this._disableDelayedDrag),ye(t,"touchcancel",this._disableDelayedDrag),ye(t,"pointerup",this._disableDelayedDrag),ye(t,"pointercancel",this._disableDelayedDrag),ye(t,"mousemove",this._delayedDragTouchMoveHandler),ye(t,"touchmove",this._delayedDragTouchMoveHandler),ye(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,o){o=o||t.pointerType=="touch"&&t,!this.nativeDraggable||o?this.options.supportPointer?we(document,"pointermove",this._onTouchMove):o?we(document,"touchmove",this._onTouchMove):we(document,"mousemove",this._onTouchMove):(we(Y,"dragend",this),we(ze,"dragstart",this._onDragStart));try{document.selection?zi(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,o){if(wr=!1,ze&&Y){$t("dragStarted",this,{evt:o}),this.nativeDraggable&&we(document,"dragover",vg);var r=this.options;!t&&Et(Y,r.dragClass,!1),Et(Y,r.ghostClass,!0),ce.active=this,t&&this._appendGhost(),vt({sortable:this,name:"start",originalEvent:o})}else this._nulling()},_emulateDragOver:function(){if(qt){this._lastX=qt.clientX,this._lastY=qt.clientY,bc();for(var t=document.elementFromPoint(qt.clientX,qt.clientY),o=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(qt.clientX,qt.clientY),t!==o);)o=t;if(Y.parentNode[St]._isOutsideThisEl(t),o)do{if(o[St]){var r=void 0;if(r=o[St]._onDragOver({clientX:qt.clientX,clientY:qt.clientY,target:t,rootEl:o}),r&&!this.options.dragoverBubble)break}t=o}while(o=oc(o));vc()}},_onTouchMove:function(t){if(er){var o=this.options,r=o.fallbackTolerance,n=o.fallbackOffset,i=t.touches?t.touches[0]:t,a=me&&br(me,!0),s=me&&a&&a.a,l=me&&a&&a.d,c=Ni&&pt&&ac(pt),d=(i.clientX-er.clientX+n.x)/(s||1)+(c?c[0]-is[0]:0)/(s||1),u=(i.clientY-er.clientY+n.y)/(l||1)+(c?c[1]-is[1]:0)/(l||1);if(!ce.active&&!wr){if(r&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<r)return;this._onDragStart(t,!0)}if(me){a?(a.e+=d-(rs||0),a.f+=u-(ns||0)):a={a:1,b:0,c:0,d:1,e:d,f:u};var f="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");de(me,"webkitTransform",f),de(me,"mozTransform",f),de(me,"msTransform",f),de(me,"transform",f),rs=d,ns=u,qt=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!me){var t=this.options.fallbackOnBody?document.body:ze,o=Ge(Y,!0,Ni,!0,t),r=this.options;if(Ni){for(pt=t;de(pt,"position")==="static"&&de(pt,"transform")==="none"&&pt!==document;)pt=pt.parentNode;pt!==document.body&&pt!==document.documentElement?(pt===document&&(pt=uo()),o.top+=pt.scrollTop,o.left+=pt.scrollLeft):pt=uo(),is=ac(pt)}me=Y.cloneNode(!0),Et(me,r.ghostClass,!1),Et(me,r.fallbackClass,!0),Et(me,r.dragClass,!0),de(me,"transition",""),de(me,"transform",""),de(me,"box-sizing","border-box"),de(me,"margin",0),de(me,"top",o.top),de(me,"left",o.left),de(me,"width",o.width),de(me,"height",o.height),de(me,"opacity","0.8"),de(me,"position",Ni?"absolute":"fixed"),de(me,"zIndex","100000"),de(me,"pointerEvents","none"),ce.ghost=me,t.appendChild(me),de(me,"transform-origin",uc/parseInt(me.style.width)*100+"% "+fc/parseInt(me.style.height)*100+"%")}},_onDragStart:function(t,o){var r=this,n=t.dataTransfer,i=r.options;if($t("dragStart",this,{evt:t}),ce.eventCanceled){this._onDrop();return}$t("setupClone",this),ce.eventCanceled||(Fe=dc(Y),Fe.removeAttribute("id"),Fe.draggable=!1,Fe.style["will-change"]="",this._hideClone(),Et(Fe,this.options.chosenClass,!1),ce.clone=Fe),r.cloneId=zi(function(){$t("clone",r),!ce.eventCanceled&&(r.options.removeCloneOnHide||ze.insertBefore(Fe,Y),r._hideClone(),vt({sortable:r,name:"clone"}))}),!o&&Et(Y,i.dragClass,!0),o?(Ei=!0,r._loopId=setInterval(r._emulateDragOver,50)):(ye(document,"mouseup",r._onDrop),ye(document,"touchend",r._onDrop),ye(document,"touchcancel",r._onDrop),n&&(n.effectAllowed="move",i.setData&&i.setData.call(r,n,Y)),we(document,"drop",r),de(Y,"transform","translateZ(0)")),wr=!0,r._dragStartId=zi(r._dragStarted.bind(r,o,t)),we(document,"selectstart",r),sn=!0,window.getSelection().removeAllRanges(),on&&de(document.body,"user-select","none")},_onDragOver:function(t){var o=this.el,r=t.target,n,i,a,s=this.options,l=s.group,c=ce.active,d=Mi===l,u=s.sort,f=it||c,p,h=this,b=!1;if(as)return;function v(B,te){$t(B,h,co({evt:t,isOwner:d,axis:p?"vertical":"horizontal",revert:a,dragRect:n,targetRect:i,canSort:u,fromSortable:f,target:r,completed:S,onMove:function(ue,be){return Vi(ze,o,Y,n,ue,Ge(ue),t,be)},changed:_},te))}function k(){v("dragOverAnimationCapture"),h.captureAnimationState(),h!==f&&f.captureAnimationState()}function S(B){return v("dragOverCompleted",{insertion:B}),B&&(d?c._hideClone():c._showClone(h),h!==f&&(Et(Y,it?it.options.ghostClass:c.options.ghostClass,!1),Et(Y,s.ghostClass,!0)),it!==h&&h!==ce.active?it=h:h===ce.active&&it&&(it=null),f===h&&(h._ignoreWhileAnimating=r),h.animateAll(function(){v("dragOverAnimationComplete"),h._ignoreWhileAnimating=null}),h!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(r===Y&&!Y.animated||r===o&&!r.animated)&&(Cr=null),!s.dragoverBubble&&!t.rootEl&&r!==document&&(Y.parentNode[St]._isOutsideThisEl(t.target),!B&&tr(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),b=!0}function _(){Ot=Ft(Y),zo=Ft(Y,s.draggable),vt({sortable:h,name:"change",toEl:o,newIndex:Ot,newDraggableIndex:zo,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),r=Kt(r,s.draggable,o,!0),v("dragOver"),ce.eventCanceled)return b;if(Y.contains(t.target)||r.animated&&r.animatingX&&r.animatingY||h._ignoreWhileAnimating===r)return S(!1);if(Ei=!1,c&&!s.disabled&&(d?u||(a=Ye!==ze):it===this||(this.lastPutMode=Mi.checkPull(this,c,Y,t))&&l.checkPut(this,c,Y,t))){if(p=this._getDirection(t,r)==="vertical",n=Ge(Y),v("dragOverValid"),ce.eventCanceled)return b;if(a)return Ye=ze,k(),this._hideClone(),v("revert"),ce.eventCanceled||(Qo?ze.insertBefore(Y,Qo):ze.appendChild(Y)),S(!0);var w=es(o,s.draggable);if(!w||Cg(t,p,this)&&!w.animated){if(w===Y)return S(!1);if(w&&o===t.target&&(r=w),r&&(i=Ge(r)),Vi(ze,o,Y,n,r,i,t,!!r)!==!1)return k(),w&&w.nextSibling?o.insertBefore(Y,w.nextSibling):o.appendChild(Y),Ye=o,_(),S(!0)}else if(w&&wg(t,p,this)){var T=vr(o,0,s,!0);if(T===Y)return S(!1);if(r=T,i=Ge(r),Vi(ze,o,Y,n,r,i,t,!1)!==!1)return k(),o.insertBefore(Y,T),Ye=o,_(),S(!0)}else if(r.parentNode===o){i=Ge(r);var O=0,G,$=Y.parentNode!==o,P=!mg(Y.animated&&Y.toRect||n,r.animated&&r.toRect||i,p),M=p?"top":"left",A=ic(r,"top","top")||ic(Y,"top","top"),j=A?A.scrollTop:void 0;Cr!==r&&(G=i[M],dn=!1,Ii=!P&&s.invertSwap||$),O=Sg(t,r,i,p,P?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,Ii,Cr===r);var ne;if(O!==0){var W=Ft(Y);do W-=O,ne=Ye.children[W];while(ne&&(de(ne,"display")==="none"||ne===me))}if(O===0||ne===r)return S(!1);Cr=r,ln=O;var F=r.nextElementSibling,D=!1;D=O===1;var R=Vi(ze,o,Y,n,r,i,t,D);if(R!==!1)return(R===1||R===-1)&&(D=R===1),as=!0,setTimeout(kg,30),k(),D&&!F?o.appendChild(Y):r.parentNode.insertBefore(Y,D?F:r),A&&lc(A,0,j-A.scrollTop),Ye=Y.parentNode,G!==void 0&&!Ii&&(Ri=Math.abs(G-Ge(r)[M])),_(),S(!0)}if(o.contains(Y))return S(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){ye(document,"mousemove",this._onTouchMove),ye(document,"touchmove",this._onTouchMove),ye(document,"pointermove",this._onTouchMove),ye(document,"dragover",tr),ye(document,"mousemove",tr),ye(document,"touchmove",tr)},_offUpEvents:function(){var t=this.el.ownerDocument;ye(t,"mouseup",this._onDrop),ye(t,"touchend",this._onDrop),ye(t,"pointerup",this._onDrop),ye(t,"pointercancel",this._onDrop),ye(t,"touchcancel",this._onDrop),ye(document,"selectstart",this)},_onDrop:function(t){var o=this.el,r=this.options;if(Ot=Ft(Y),zo=Ft(Y,r.draggable),$t("drop",this,{evt:t}),Ye=Y&&Y.parentNode,Ot=Ft(Y),zo=Ft(Y,r.draggable),ce.eventCanceled){this._nulling();return}wr=!1,Ii=!1,dn=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ls(this.cloneId),ls(this._dragStartId),this.nativeDraggable&&(ye(document,"drop",this),ye(o,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),on&&de(document.body,"user-select",""),de(Y,"transform",""),t&&(sn&&(t.cancelable&&t.preventDefault(),!r.dropBubble&&t.stopPropagation()),me&&me.parentNode&&me.parentNode.removeChild(me),(ze===Ye||it&&it.lastPutMode!=="clone")&&Fe&&Fe.parentNode&&Fe.parentNode.removeChild(Fe),Y&&(this.nativeDraggable&&ye(Y,"dragend",this),ss(Y),Y.style["will-change"]="",sn&&!wr&&Et(Y,it?it.options.ghostClass:this.options.ghostClass,!1),Et(Y,this.options.chosenClass,!1),vt({sortable:this,name:"unchoose",toEl:Ye,newIndex:null,newDraggableIndex:null,originalEvent:t}),ze!==Ye?(Ot>=0&&(vt({rootEl:Ye,name:"add",toEl:Ye,fromEl:ze,originalEvent:t}),vt({sortable:this,name:"remove",toEl:Ye,originalEvent:t}),vt({rootEl:Ye,name:"sort",toEl:Ye,fromEl:ze,originalEvent:t}),vt({sortable:this,name:"sort",toEl:Ye,originalEvent:t})),it&&it.save()):Ot!==kr&&Ot>=0&&(vt({sortable:this,name:"update",toEl:Ye,originalEvent:t}),vt({sortable:this,name:"sort",toEl:Ye,originalEvent:t})),ce.active&&((Ot==null||Ot===-1)&&(Ot=kr,zo=an),vt({sortable:this,name:"end",toEl:Ye,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){$t("nulling",this),ze=Y=Ye=me=Qo=Fe=Di=Vo=er=qt=sn=Ot=zo=kr=an=Cr=ln=it=Mi=ce.dragged=ce.ghost=ce.clone=ce.active=null,Li.forEach(function(t){t.checked=!0}),Li.length=rs=ns=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Y&&(this._onDragOver(t),yg(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],o,r=this.el.children,n=0,i=r.length,a=this.options;n<i;n++)o=r[n],Kt(o,a.draggable,this.el,!1)&&t.push(o.getAttribute(a.dataIdAttr)||_g(o));return t},sort:function(t,o){var r={},n=this.el;this.toArray().forEach(function(i,a){var s=n.children[a];Kt(s,this.options.draggable,n,!1)&&(r[i]=s)},this),o&&this.captureAnimationState(),t.forEach(function(i){r[i]&&(n.removeChild(r[i]),n.appendChild(r[i]))}),o&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,o){return Kt(t,o||this.options.draggable,this.el,!1)},option:function(t,o){var r=this.options;if(o===void 0)return r[t];var n=nn.modifyOption(this,t,o);typeof n<"u"?r[t]=n:r[t]=o,t==="group"&&mc(r)},destroy:function(){$t("destroy",this);var t=this.el;t[St]=null,ye(t,"mousedown",this._onTapStart),ye(t,"touchstart",this._onTapStart),ye(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(ye(t,"dragover",this),ye(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(o){o.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Oi.splice(Oi.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Vo){if($t("hideClone",this),ce.eventCanceled)return;de(Fe,"display","none"),this.options.removeCloneOnHide&&Fe.parentNode&&Fe.parentNode.removeChild(Fe),Vo=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Vo){if($t("showClone",this),ce.eventCanceled)return;Y.parentNode==ze&&!this.options.group.revertClone?ze.insertBefore(Fe,Y):Qo?ze.insertBefore(Fe,Qo):ze.appendChild(Fe),this.options.group.revertClone&&this.animate(Y,Fe),de(Fe,"display",""),Vo=!1}}};function yg(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Vi(e,t,o,r,n,i,a,s){var l,c=e[St],d=c.options.onMove,u;return window.CustomEvent&&!To&&!tn?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=o,l.draggedRect=r,l.related=n||t,l.relatedRect=i||Ge(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),d&&(u=d.call(c,l,a)),u}function ss(e){e.draggable=!1}function kg(){as=!1}function wg(e,t,o){var r=Ge(vr(o.el,0,o.options,!0)),n=cc(o.el,o.options,me),i=10;return t?e.clientX<n.left-i||e.clientY<r.top&&e.clientX<r.right:e.clientY<n.top-i||e.clientY<r.bottom&&e.clientX<r.left}function Cg(e,t,o){var r=Ge(es(o.el,o.options.draggable)),n=cc(o.el,o.options,me),i=10;return t?e.clientX>n.right+i||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>n.bottom+i||e.clientX>r.right&&e.clientY>r.top}function Sg(e,t,o,r,n,i,a,s){var l=r?e.clientY:e.clientX,c=r?o.height:o.width,d=r?o.top:o.left,u=r?o.bottom:o.right,f=!1;if(!a){if(s&&Ri<c*n){if(!dn&&(ln===1?l>d+c*i/2:l<u-c*i/2)&&(dn=!0),dn)f=!0;else if(ln===1?l<d+Ri:l>u-Ri)return-ln}else if(l>d+c*(1-n)/2&&l<u-c*(1-n)/2)return $g(t)}return f=f||a,f&&(l<d+c*i/2||l>u-c*i/2)?l>d+c/2?1:-1:0}function $g(e){return Ft(Y)<Ft(e)?1:-1}function _g(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,o=t.length,r=0;o--;)r+=t.charCodeAt(o);return r.toString(36)}function xg(e){Li.length=0;for(var t=e.getElementsByTagName("input"),o=t.length;o--;){var r=t[o];r.checked&&Li.push(r)}}function zi(e){return setTimeout(e,0)}function ls(e){return clearTimeout(e)}Ai&&we(document,"touchmove",function(e){(ce.active||wr)&&e.cancelable&&e.preventDefault()}),ce.utils={on:we,off:ye,css:de,find:nc,is:function(t,o){return!!Kt(t,o,t,!1)},extend:lg,throttle:sc,closest:Kt,toggleClass:Et,clone:dc,index:Ft,nextTick:zi,cancelNextTick:ls,detectDirection:gc,getChild:vr,expando:St},ce.get=function(e){return e[St]},ce.mount=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];t[0].constructor===Array&&(t=t[0]),t.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(ce.utils=co(co({},ce.utils),r.utils)),nn.mount(r)})},ce.create=function(e,t){return new ce(e,t)},ce.version=ag;var Xe=[],cn,ds,cs=!1,us,fs,Fi,un;function Tg(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(o){var r=o.originalEvent;this.sortable.nativeDraggable?we(document,"dragover",this._handleAutoScroll):this.options.supportPointer?we(document,"pointermove",this._handleFallbackAutoScroll):r.touches?we(document,"touchmove",this._handleFallbackAutoScroll):we(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(o){var r=o.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?ye(document,"dragover",this._handleAutoScroll):(ye(document,"pointermove",this._handleFallbackAutoScroll),ye(document,"touchmove",this._handleFallbackAutoScroll),ye(document,"mousemove",this._handleFallbackAutoScroll)),yc(),ji(),dg()},nulling:function(){Fi=ds=cn=cs=un=us=fs=null,Xe.length=0},_handleFallbackAutoScroll:function(o){this._handleAutoScroll(o,!0)},_handleAutoScroll:function(o,r){var n=this,i=(o.touches?o.touches[0]:o).clientX,a=(o.touches?o.touches[0]:o).clientY,s=document.elementFromPoint(i,a);if(Fi=o,r||this.options.forceAutoScrollFallback||tn||To||on){ps(o,this.options,s,r);var l=No(s,!0);cs&&(!un||i!==us||a!==fs)&&(un&&yc(),un=setInterval(function(){var c=No(document.elementFromPoint(i,a),!0);c!==l&&(l=c,ji()),ps(o,n.options,c,r)},10),us=i,fs=a)}else{if(!this.options.bubbleScroll||No(s,!0)===uo()){ji();return}ps(o,this.options,No(s,!1),!1)}}},_o(e,{pluginName:"scroll",initializeByDefault:!0})}function ji(){Xe.forEach(function(e){clearInterval(e.pid)}),Xe=[]}function yc(){clearInterval(un)}var ps=sc(function(e,t,o,r){if(t.scroll){var n=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,a=t.scrollSensitivity,s=t.scrollSpeed,l=uo(),c=!1,d;ds!==o&&(ds=o,ji(),cn=t.scroll,d=t.scrollFn,cn===!0&&(cn=No(o,!0)));var u=0,f=cn;do{var p=f,h=Ge(p),b=h.top,v=h.bottom,k=h.left,S=h.right,_=h.width,w=h.height,T=void 0,O=void 0,G=p.scrollWidth,$=p.scrollHeight,P=de(p),M=p.scrollLeft,A=p.scrollTop;p===l?(T=_<G&&(P.overflowX==="auto"||P.overflowX==="scroll"||P.overflowX==="visible"),O=w<$&&(P.overflowY==="auto"||P.overflowY==="scroll"||P.overflowY==="visible")):(T=_<G&&(P.overflowX==="auto"||P.overflowX==="scroll"),O=w<$&&(P.overflowY==="auto"||P.overflowY==="scroll"));var j=T&&(Math.abs(S-n)<=a&&M+_<G)-(Math.abs(k-n)<=a&&!!M),ne=O&&(Math.abs(v-i)<=a&&A+w<$)-(Math.abs(b-i)<=a&&!!A);if(!Xe[u])for(var W=0;W<=u;W++)Xe[W]||(Xe[W]={});(Xe[u].vx!=j||Xe[u].vy!=ne||Xe[u].el!==p)&&(Xe[u].el=p,Xe[u].vx=j,Xe[u].vy=ne,clearInterval(Xe[u].pid),(j!=0||ne!=0)&&(c=!0,Xe[u].pid=setInterval(function(){r&&this.layer===0&&ce.active._onTouchMove(Fi);var F=Xe[this.layer].vy?Xe[this.layer].vy*s:0,D=Xe[this.layer].vx?Xe[this.layer].vx*s:0;typeof d=="function"&&d.call(ce.dragged.parentNode[St],D,F,e,Fi,Xe[this.layer].el)!=="continue"||lc(Xe[this.layer].el,D,F)}.bind({layer:u}),24))),u++}while(t.bubbleScroll&&f!==l&&(f=No(f,!1)));cs=c}},30),kc=function(t){var o=t.originalEvent,r=t.putSortable,n=t.dragEl,i=t.activeSortable,a=t.dispatchSortableEvent,s=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(o){var c=r||i;s();var d=o.changedTouches&&o.changedTouches.length?o.changedTouches[0]:o,u=document.elementFromPoint(d.clientX,d.clientY);l(),c&&!c.el.contains(u)&&(a("spill"),this.onSpill({dragEl:n,putSortable:r}))}};function hs(){}hs.prototype={startIndex:null,dragStart:function(t){var o=t.oldDraggableIndex;this.startIndex=o},onSpill:function(t){var o=t.dragEl,r=t.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var n=vr(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(o,n):this.sortable.el.appendChild(o),this.sortable.animateAll(),r&&r.animateAll()},drop:kc},_o(hs,{pluginName:"revertOnSpill"});function gs(){}gs.prototype={onSpill:function(t){var o=t.dragEl,r=t.putSortable,n=r||this.sortable;n.captureAnimationState(),o.parentNode&&o.parentNode.removeChild(o),n.animateAll()},drop:kc},_o(gs,{pluginName:"removeOnSpill"}),ce.mount(new Tg),ce.mount(gs,hs);function Pg(e,t,o={}){let r;const{document:n=eg,...i}=o,a={onUpdate:d=>{Mg(t,d.oldIndex,d.newIndex,d)}},s=()=>{const d=typeof e=="string"?n?.querySelector(e):mr(e);!d||r!==void 0||(r=new ce(d,{...a,...i}))},l=()=>{r?.destroy(),r=void 0},c=(d,u)=>{if(u!==void 0)r?.option(d,u);else return r?.option(d)};return Qh(s),Si(l),{stop:l,start:s,option:c}}function Bg(e,t,o){const r=e.children[o];e.insertBefore(t,r)}function Dg(e){e.parentNode&&e.parentNode.removeChild(e)}function Mg(e,t,o,r=null){r!=null&&(Dg(r.item),Bg(r.from,r.item,t));const n=Ke(e),i=n?[...We(e)]:We(e);if(o>=0&&o<i.length){const a=i.splice(t,1)[0];ko(()=>{i.splice(o,0,a),n&&(e.value=i)})}}const Eg=["data-align"],ms=zt(ae({__name:"PvPopover",props:{alignment:{default:void 0,type:null},cssCustomProperties:{default:()=>({}),type:Object},cssCustomListProperties:{type:Object},isList:{type:Boolean,default:!1},isSortable:{type:Boolean}},emits:["list-order-updated"],setup(e,{expose:t,emit:o}){const r=He(null),n=no("popoverList"),i=e,a=o;return i.isSortable&&i.isList&&Pg(n,[],{animation:150,onUpdate:()=>{const s=Array.from(n.value?.children||[]).map(l=>l.id);a("list-order-updated",s)}}),t({popoverRoot:r}),(s,l)=>(g(),C("div",{ref_key:"popoverRoot",ref:r,class:"pv-popover","data-testid":"pv-popover","data-align":s.alignment,style:Bt(s.cssCustomProperties)},[s.isList?(g(),C("ul",{key:0,ref:"popoverList",role:"list",class:"pv-popover-list",style:Bt(s.cssCustomListProperties)},[J(s.$slots,"default",{},void 0,!0)],4)):J(s.$slots,"default",{key:1},void 0,!0)],12,Eg))}}),[["styles",[".pv-popover-list[data-v-cda1af8c]{font-size:14px}"]],["__scopeId","data-v-cda1af8c"]]),wc=$i?window:void 0;function fn(e){var t;const o=We(e);return(t=o?.$el)!=null?t:o}function Hi(...e){const t=[],o=()=>{t.forEach(s=>s()),t.length=0},r=(s,l,c,d)=>(s.addEventListener(l,c,d),()=>s.removeEventListener(l,c,d)),n=le(()=>{const s=gr(We(e[0])).filter(l=>l!=null);return s.every(l=>typeof l!="string")?s:void 0}),i=Xd(()=>{var s,l;return[(l=(s=n.value)==null?void 0:s.map(c=>fn(c)))!=null?l:[wc].filter(c=>c!=null),gr(We(n.value?e[1]:e[0])),gr(Ae(n.value?e[2]:e[1])),We(n.value?e[3]:e[2])]},([s,l,c,d])=>{if(o(),!s?.length||!l?.length||!c?.length)return;const u=qd(d)?{...d}:d;t.push(...s.flatMap(f=>l.flatMap(p=>c.map(h=>r(f,p,h,u)))))},{flush:"post"}),a=()=>{i(),o()};return Si(o),a}let Cc=!1;function Sc(e,t,o={}){const{window:r=wc,ignore:n=[],capture:i=!0,detectIframe:a=!1,controls:s=!1}=o;if(!r)return s?{stop:Mt,cancel:Mt,trigger:Mt}:Mt;if(_i&&!Cc){Cc=!0;const v={passive:!0};Array.from(r.document.body.children).forEach(k=>k.addEventListener("click",Mt,v)),r.document.documentElement.addEventListener("click",Mt,v)}let l=!0;const c=v=>We(n).some(k=>{if(typeof k=="string")return Array.from(r.document.querySelectorAll(k)).some(S=>S===v.target||v.composedPath().includes(S));{const S=fn(k);return S&&(v.target===S||v.composedPath().includes(S))}});function d(v){const k=We(v);return k&&k.$.subTree.shapeFlag===16}function u(v,k){const S=We(v),_=S.$.subTree&&S.$.subTree.children;return _==null||!Array.isArray(_)?!1:_.some(w=>w.el===k.target||k.composedPath().includes(w.el))}const f=v=>{const k=fn(e);if(v.target!=null&&!(!(k instanceof Element)&&d(e)&&u(e,v))&&!(!k||k===v.target||v.composedPath().includes(k))){if("detail"in v&&v.detail===0&&(l=!c(v)),!l){l=!0;return}t(v)}};let p=!1;const h=[Hi(r,"click",v=>{p||(p=!0,setTimeout(()=>{p=!1},0),f(v))},{passive:!0,capture:i}),Hi(r,"pointerdown",v=>{const k=fn(e);l=!c(v)&&!!(k&&!v.composedPath().includes(k))},{passive:!0}),a&&Hi(r,"blur",v=>{setTimeout(()=>{var k;const S=fn(e);((k=r.document.activeElement)==null?void 0:k.tagName)==="IFRAME"&&!S?.contains(r.document.activeElement)&&t(v)},0)},{passive:!0})].filter(Boolean),b=()=>h.forEach(v=>v());return s?{stop:b,cancel:()=>{l=!1},trigger:v=>{l=!0,f(v),l=!1}}:b}const bs=new WeakMap,vs={mounted(e,t){const o=!t.modifiers.bubble;let r;if(typeof t.value=="function")r=Sc(e,t.value,{capture:o});else{const[n,i]=t.value;r=Sc(e,n,Object.assign({capture:o},i))}bs.set(e,r)},unmounted(e){const t=bs.get(e);t&&typeof t=="function"?t():t?.stop(),bs.delete(e)}};function ys(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function $c(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const o=e.parentNode;return!o||o.tagName==="BODY"?!1:$c(o)}}function Og(e){const t=e||window.event,o=t.target;return $c(o)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const ks=new WeakMap;function Ig(e,t=!1){const o=Jn(t);let r=null,n="";Qe(Zh(e),s=>{const l=ys(We(s));if(l){const c=l;if(ks.get(c)||ks.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(n=c.style.overflow),c.style.overflow==="hidden")return o.value=!0;if(o.value)return c.style.overflow="hidden"}},{immediate:!0});const i=()=>{const s=ys(We(e));!s||o.value||(_i&&(r=Hi(s,"touchmove",l=>{Og(l)},{passive:!1})),s.style.overflow="hidden",o.value=!0)},a=()=>{const s=ys(We(e));!s||!o.value||(_i&&r?.(),s.style.overflow=n,ks.delete(s),o.value=!1)};return Si(a),le({get(){return o.value},set(s){s?i():a()}})}function Rg(){let e=!1;const t=Jn(!1);return(o,r)=>{if(t.value=r.value,e)return;e=!0;const n=Ig(o,r.value);Qe(t,i=>n.value=i)}}Rg();const Lg={class:"pv-relative",style:{width:"fit-content"}},Ag=["disabled"],Ng={key:0,class:"pv-shimmer"},Vg=zt(ae({__name:"PvDropdown",props:{defaultOpen:{type:Boolean,default:!1},popoverCssProperties:{type:Object},alignment:{default:void 0,type:null},isList:{type:Boolean,default:!1},isSortable:{type:Boolean},icon:{type:Boolean},disabled:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},useTeleport:{type:Boolean,default:!1},teleportLocation:{default:"body",type:String}},emits:["dropdown-open","dropdown-closed","list-order-updated"],setup(e,{expose:t,emit:o}){const r=e,n=o,i=He(r.defaultOpen),a=He(null),s=He(null),l=He(null),c=He(null),d=()=>{a.value&&(l.value=a.value.getBoundingClientRect()),s.value?.popoverRoot&&(c.value=s.value.popoverRoot.getBoundingClientRect())},u=le(()=>({"pv-hide":!i.value})),f=k=>{i.value=!i.value},p=()=>{i.value=!1};t({closeDropdown:p}),Qe(i,k=>{k?ko(()=>{d(),n("dropdown-open")}):n("dropdown-closed")});const h=le(()=>!l.value||!c.value?0:r.alignment==="right"||r.alignment==="top right"?l.value.left+l.value.width-c.value.width:l.value.left),b=le(()=>!l.value||!c.value?0:r.alignment==="top"||r.alignment==="top right"?l.value.top-c.value.height:l.value.top+window.scrollY+l.value.height),v=le(()=>r.useTeleport?{...{position:"absolute",left:`${h.value}px`,top:`${b.value}px`,zIndex:10},...r.popoverCssProperties}:r.popoverCssProperties);return(k,S)=>ot((g(),C("div",Lg,[H("button",{ref_key:"triggerRef",ref:a,class:pe({"pv-select":!k.icon,"pv-icon-button":k.icon}),style:{width:"auto"},onClick:f,disabled:k.disabled},[J(k.$slots,"trigger",{},()=>[S[1]||(S[1]=Ct("Open"))],!0)],10,Ag),(g(),Q(ii,{to:k.teleportLocation,disabled:!k.useTeleport},[se(ms,{ref_key:"popoverRef",ref:s,class:pe(u.value),"css-custom-properties":v.value,alignment:k.alignment,isList:k.isList,isSortable:k.isSortable,onListOrderUpdated:S[0]||(S[0]=_=>k.$emit("list-order-updated",_))},{default:Ne(()=>[J(k.$slots,"default",{},()=>[k.isLoading?(g(),C("span",Ng,"Loading...")):z("",!0)],!0)]),_:3},8,["class","css-custom-properties","alignment","isList","isSortable"])],8,["to","disabled"]))])),[[Ae(vs),p]])}}),[["styles",[".pv-icon-button[data-v-79a7def3]{background-color:transparent;border:none}.pv-icon-button[data-v-79a7def3]:hover{cursor:pointer;color:#176f6f}.pv-select[data-v-79a7def3]{padding-top:4px;padding-bottom:4px}"]],["__scopeId","data-v-79a7def3"]]),zg=["onClick","data-active"],Fg=ae({__name:"PvSegmentedControl",props:rt({size:{default:"lg",type:String},options:{default:()=>[],type:Array}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=et(e,"modelValue"),o=r=>{t.value=r};return(r,n)=>(g(),C("div",{class:pe(["pv-segmented-control",{"pv-segmented-control-large":r.size==="xl"}])},[(g(!0),C(he,null,ut(r.options,i=>(g(),C("button",{key:i.value,onClick:a=>o(i.value),"data-active":t.value===i.value?!0:null},[i.iconPosition=="left"&&i.icon?(g(),Q(qe,{key:0,name:i.icon},null,8,["name"])):z("",!0),i.label?(g(),C(he,{key:1},[Ct(Z(i.label),1)],64)):z("",!0),i.iconPosition=="right"&&i.icon?(g(),Q(qe,{key:2,name:i.icon},null,8,["name"])):z("",!0)],8,zg))),128))],2))}}),jg={role:"list",class:"pv-tab-list"},Hg=["onClick","data-active"],Wg={class:"pv-text-body-xs",style:{"font-weight":"500"}},Yg=zt(ae({__name:"PvTabList",props:{modelValue:{type:String},options:{type:Array}},emits:["update:modelValue"],setup(e,{emit:t}){const o=t,r=n=>{o("update:modelValue",n)};return(n,i)=>(g(),C("div",null,[H("ul",jg,[(g(!0),C(he,null,ut(n.options,a=>(g(),C("li",{key:a.value,style:{cursor:"pointer"},onClick:s=>r(a.value),"data-active":n.modelValue===a.value?!0:null},[H("button",Wg,Z(a.label),1)],8,Hg))),128))])]))}}),[["styles",['.pv-tab-list[data-v-498bf523]{border:none}.pv-tab-list :where(li)[data-active][data-v-498bf523]:after{content:"";display:block;height:2px;width:100%;position:absolute;bottom:0;left:0;right:0;background-color:#176f6f}']],["__scopeId","data-v-498bf523"]]);function Ug(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}const Kg=/\p{Lu}?\p{Ll}+|[0-9]+|\p{Lu}+(?!\p{Ll})|\p{Emoji_Presentation}|\p{Extended_Pictographic}|\p{L}+/gu;function _c(e){return Array.from(e.match(Kg)??[])}function qg(e){const t=_c(e);if(t.length===0)return"";const[o,...r]=t;return`${o.toLowerCase()}${r.map(n=>Ug(n)).join("")}`}function Gg(e){return _c(e).map(o=>o.toLowerCase()).join("-")}const Xg={class:"pv-flex","data-testid":"pv-company-logo"},Zg=["src"],pn=ae({__name:"PvCompanyLogo",props:{basePath:{default:"https://static-assets.turquoise.health/shared-logos/prd/payers",type:String},name:{type:String},size:{default:"md",type:null},srcPathOverride:{type:String},toCamelCase:{type:Boolean,default:!0}},setup(e){const t=e,o=He(!0),r=le(()=>Lh[t.size]||"32px"),n=le(()=>({"pv-icon":o.value,[`pv-company-${t.size}`]:t.size&&!o.value})),i=le(()=>({width:r.value})),a=le(()=>t.toCamelCase?qg(t.name)+".svg":t.name+".svg"),s=le(()=>t.srcPathOverride?t.srcPathOverride:`${t.basePath}/${a.value}`);return Qe(s,()=>{o.value=!0}),(l,c)=>(g(),C("div",Xg,[o.value?(g(),C("div",{key:0,class:pe(n.value),style:Bt(i.value)},[H("img",{src:s.value,alt:"",onError:c[0]||(c[0]=d=>o.value=!1)},null,40,Zg)],6)):(g(),C("div",{key:1,class:pe(n.value)},null,2))]))}}),Jg=["closedby"],Qg={class:"pv-inset-squish-12"},em={class:"pv-flex pv-flex-vertical pv-stack-16",style:{"--flex-align":"flex-start"}},tm={class:"pv-heading-3"},om={key:0,class:"pv-text-body-md"},rm={class:"pv-inset-squish-12 pv-border-top",style:{"--color-border":"#d2d8dc"}},nm=ae({__name:"PvModal",props:rt({header:{type:String},subheader:{type:String},closeOnClickOutside:{type:Boolean,default:!0}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,o=no("dialog"),r=et(e,"modelValue");Qe(()=>r.value,()=>{r.value?o.value?.showModal():o.value?.close()});const n=()=>{t.closeOnClickOutside&&(r.value=!1)};return(i,a)=>(g(),C("dialog",{class:"pv-modal-sm",ref_key:"dialog",ref:o,closedby:i.closeOnClickOutside?"any":void 0,style:{"--max-width":"480px"},onClose:n},[H("div",Qg,[H("div",em,[H("span",tm,Z(i.header),1),i.subheader?(g(),C("span",om,Z(i.subheader),1)):z("",!0)]),J(i.$slots,"body")]),H("div",rm,[J(i.$slots,"footer")])],40,Jg))}});var Wi=(e=>(e.Vertical="Vertical",e.Horizontal="Horizontal",e))(Wi||{}),hn=(e=>(e.Primary="Primary",e.Secondary="Secondary",e.Tertiary="Tertiary",e))(hn||{});const im={class:"pv-text-title-sm pv-line-clamp",style:{"--lines":"2"}},am={key:0,class:"pv-flex"},sm=ae({__name:"PvBanner",props:{label:{type:String},icon:{type:String},variant:{default:hn.Primary,type:null},orientation:{default:Wi.Horizontal,type:null}},setup(e){return(t,o)=>(g(),C("div",{"data-testid":"pv-banner",class:pe([{"pv-banner-primary":t.variant===Ae(hn).Primary,"pv-banner-secondary":t.variant===Ae(hn).Secondary,"pv-banner-tertiary":t.variant===Ae(hn).Tertiary,"pv-flex pv-space-between":t.orientation===Ae(Wi).Horizontal}])},[H("div",{class:pe(["pv-flex",{"pv-stack-16":t.orientation===Ae(Wi).Vertical&&t.$slots.action}])},[t.icon?(g(),Q(qe,{key:0,"data-testid":"pv-banner-icon",class:"pv-text-brand",name:t.icon},null,8,["name"])):z("",!0),H("p",im,Z(t.label),1)],2),t.$slots.action?(g(),C("div",am,[J(t.$slots,"action")])):z("",!0)],2))}}),lm=ae({__name:"PvCompanyTag",props:{companyName:{type:String},size:{default:"md",type:String},showClear:{type:Boolean,default:!1}},emits:["handle-close","handle-click"],setup(e){const t=e,o=le(()=>{switch(t.size){case"lg":return"pv-tag-lg";case"sm":return"pv-tag-sm";default:return""}});return(r,n)=>(g(),C("button",{class:pe(["pv-tag-tertiary",o.value]),onClick:n[1]||(n[1]=i=>r.$emit("handle-click",r.companyName)),"data-testid":"pv-company-tag"},[se(pn,{class:pe(r.size==="lg"?"pv-company-sm":"pv-company-xs"),"data-testid":"pv-company-tag-icon",size:r.size==="lg"?"sm":"xs",name:r.companyName},null,8,["class","size","name"]),H("span",null,Z(r.companyName),1),r.showClear?(g(),Q(qe,{key:0,"data-testid":"pv-company-tag-close-icon",size:12,name:"close",onClick:n[0]||(n[0]=Ci(i=>r.$emit("handle-close",r.companyName),["stop"]))})):z("",!0)],2))}}),dm=["data-style","disabled"],cm=ae({__name:"PvSuggestionTag",props:{size:{default:"md",type:String},label:{type:String},showIcon:{type:Boolean},rounded:{type:Boolean},disabled:{type:Boolean,default:!1}},emits:["handle-click"],setup(e){const t=e,o=le(()=>{switch(t.size){case"lg":return"pv-tag-lg";case"sm":return"pv-tag-sm";default:return""}});return(r,n)=>(g(),C("button",{class:pe(["pv-border-dashed pv-tag-secondary",o.value]),onClick:n[0]||(n[0]=i=>r.$emit("handle-click",r.label)),"data-testid":"pv-suggestion-tag","data-style":r.rounded?"rounded":void 0,disabled:r.disabled},[r.showIcon?(g(),Q(qe,{key:0,"data-testid":"pv-suggestion-tag-icon",name:"expand",size:12})):z("",!0),H("span",null,Z(r.label),1)],10,dm))}}),um=["open","data-arrow"],fm={class:"pv-flex"},pm=ae({__name:"PvAccordion",props:{header:{type:String},chevronPosition:{default:"right",type:null},defaultOpen:{type:Boolean,default:!1},counter:{type:Number}},setup(e){return(t,o)=>(g(),C("details",{"data-testid":"pv-accordion",class:"pv-accordion",open:t.defaultOpen,"data-arrow":t.chevronPosition},[H("summary",fm,[H("span",null,Z(t.header),1),t.counter?(g(),Q(en,{key:0,value:t.counter,variant:"secondary",size:"sm"},null,8,["value"])):z("",!0)]),H("div",null,[J(t.$slots,"default")])],8,um))}}),hm={class:"pv-relative"},gm=["disabled","placeholder"],mm={key:0,"data-testid":"pv-search-input-shortcut",class:"pv-kbd"},xc="/",Yi=ae({__name:"PvSearchInput",props:rt({placeholder:{default:"Search",type:String},disabled:{type:Boolean,default:!1},displayShortcut:{type:Boolean}},{modelValue:{required:!1,default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){const o=e,r=no("search-input"),n=et(e,"modelValue"),i=le(()=>({"pv-input-search":!0,"pv-full-width":!0,"pv-input-padded-end":!0}));return io(()=>{o.displayShortcut&&Ti(xc,a=>{const s=a.target,l=s instanceof HTMLInputElement||s instanceof HTMLTextAreaElement||(s?.isContentEditable??!1),c=document.activeElement===r.value;(!l||c)&&(c||(a.preventDefault(),r.value?.focus()))})}),t({input:r}),(a,s)=>(g(),C("div",hm,[ot(H("input",{ref:"search-input","onUpdate:modelValue":s[0]||(s[0]=l=>n.value=l),"data-testid":"pv-search-input",type:"text",disabled:a.disabled,class:pe(i.value),placeholder:a.placeholder},null,10,gm),[[ki,n.value]]),a.displayShortcut?(g(),C("kbd",mm,Z(xc))):z("",!0)]))}});function jt(...e){if(e){let t=[];for(let o=0;o<e.length;o++){const r=e[o];if(!r)continue;const n=typeof r;if(n==="string"||n==="number")t.push(r);else if(n==="object"){const i=Array.isArray(r)?[jt(...r)]:Object.entries(r).map(([a,s])=>s?a:void 0);t=i.length?t.concat(i.filter(a=>!!a)):t}}return t.join(" ").trim()}}function bm(e,t){return e?e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className):!1}function vm(e,t){if(e&&t){const o=r=>{bm(e,r)||(e.classList?e.classList.add(r):e.className+=" "+r)};[t].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(o))}}function ws(e,t){if(e&&t){const o=r=>{e.classList?e.classList.remove(r):e.className=e.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," ")};[t].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(o))}}function Ui(e){for(const t of document?.styleSheets)try{for(const o of t?.cssRules)for(const r of o?.style)if(e.test(r))return{name:r,value:o.style.getPropertyValue(r).trim()}}catch{}return null}function Tc(e){const t={width:0,height:0};return e&&(e.style.visibility="hidden",e.style.display="block",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible"),t}function Pc(){const e=window,t=document,o=t.documentElement,r=t.getElementsByTagName("body")[0],n=e.innerWidth||o.clientWidth||r.clientWidth,i=e.innerHeight||o.clientHeight||r.clientHeight;return{width:n,height:i}}function Cs(e){return e?Math.abs(e.scrollLeft):0}function ym(){const e=document.documentElement;return(window.pageXOffset||Cs(e))-(e.clientLeft||0)}function km(){const e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}function wm(e){return e?getComputedStyle(e).direction==="rtl":!1}function Cm(e,t,o=!0){var r,n,i,a;if(e){const s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:Tc(e),l=s.height,c=s.width,d=t.offsetHeight,u=t.offsetWidth,f=t.getBoundingClientRect(),p=km(),h=ym(),b=Pc();let v,k,S="top";f.top+d+l>b.height?(v=f.top+p-l,S="bottom",v<0&&(v=p)):v=d+f.top+p,f.left+c>b.width?k=Math.max(0,f.left+h+u-c):k=f.left+h,wm(e)?e.style.insetInlineEnd=k+"px":e.style.insetInlineStart=k+"px",e.style.top=v+"px",e.style.transformOrigin=S,o&&(e.style.marginTop=S==="bottom"?`calc(${(n=(r=Ui(/-anchor-gutter$/))==null?void 0:r.value)!=null?n:"2px"} * -1)`:(a=(i=Ui(/-anchor-gutter$/))==null?void 0:i.value)!=null?a:"")}}function Sm(e,t){e&&(typeof t=="string"?e.style.cssText=t:Object.entries(t||{}).forEach(([o,r])=>e.style[o]=r))}function Ki(e,t){return e instanceof HTMLElement?e.offsetWidth:0}function $m(e,t,o=!0){var r,n,i,a;if(e){const s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:Tc(e),l=t.offsetHeight,c=t.getBoundingClientRect(),d=Pc();let u,f,p="top";c.top+l+s.height>d.height?(u=-1*s.height,p="bottom",c.top+u<0&&(u=-1*c.top)):u=l,s.width>d.width?f=c.left*-1:c.left+s.width>d.width?f=(c.left+s.width-d.width)*-1:f=0,e.style.top=u+"px",e.style.insetInlineStart=f+"px",e.style.transformOrigin=p,o&&(e.style.marginTop=p==="bottom"?`calc(${(n=(r=Ui(/-anchor-gutter$/))==null?void 0:r.value)!=null?n:"2px"} * -1)`:(a=(i=Ui(/-anchor-gutter$/))==null?void 0:i.value)!=null?a:"")}}function Ss(e){if(e){let t=e.parentNode;return t&&t instanceof ShadowRoot&&t.host&&(t=t.host),t}return null}function _m(e){return!!(e!==null&&typeof e<"u"&&e.nodeName&&Ss(e))}function Sr(e){return typeof Element<"u"?e instanceof Element:e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.nodeName=="string"}function qi(e,t={}){if(Sr(e)){const o=(r,n)=>{var i,a;const s=(i=e?.$attrs)!=null&&i[r]?[(a=e?.$attrs)==null?void 0:a[r]]:[];return[n].flat().reduce((l,c)=>{if(c!=null){const d=typeof c;if(d==="string"||d==="number")l.push(c);else if(d==="object"){const u=Array.isArray(c)?o(r,c):Object.entries(c).map(([f,p])=>r==="style"&&(p||p===0)?`${f.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${p}`:p?f:void 0);l=u.length?l.concat(u.filter(f=>!!f)):l}}return l},s)};Object.entries(t).forEach(([r,n])=>{if(n!=null){const i=r.match(/^on(.+)/);i?e.addEventListener(i[1].toLowerCase(),n):r==="p-bind"||r==="pBind"?qi(e,n):(n=r==="class"?[...new Set(o("class",n))].join(" ").trim():r==="style"?o("style",n).join(";").trim():n,(e.$attrs=e.$attrs||{})&&(e.$attrs[r]=n),e.setAttribute(r,n))}})}}function xm(e,t={},...o){{const r=document.createElement(e);return qi(r,t),r.append(...o),r}}function Fo(e,t){return Sr(e)?Array.from(e.querySelectorAll(t)):[]}function Gt(e,t){return Sr(e)?e.matches(t)?e:e.querySelector(t):null}function or(e,t){if(Sr(e)){const o=e.getAttribute(t);return isNaN(o)?o==="true"||o==="false"?o==="true":o:+o}}function Bc(e,t=""){const o=Fo(e,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
|
|
26
26
|
[href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
|
|
27
27
|
input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
|
|
28
28
|
select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
|