2377 lines
795 KiB
JavaScript
2377 lines
795 KiB
JavaScript
/*! For license information please see kuc.min.js.LICENSE.txt */
|
||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Kucs=t():(e.Kucs=e.Kucs||{},e.Kucs["1.18.0"]=t())}(self,(()=>(()=>{var e={35776:function(e,t,n){function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}(function(){"use strict";var e;function t(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}var r,o="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e},a=function(e){e=["object"==("undefined"==typeof globalThis?"undefined":i(globalThis))&&globalThis,e,"object"==("undefined"==typeof window?"undefined":i(window))&&window,"object"==("undefined"==typeof self?"undefined":i(self))&&self,"object"==(void 0===n.g?"undefined":i(n.g))&&n.g];for(var t=0;t<e.length;++t){var r=e[t];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")}(this);function s(e,t){if(t)e:{var n=a;e=e.split(".");for(var i=0;i<e.length-1;i++){var r=e[i];if(!(r in n))break e;n=n[r]}(t=t(i=n[e=e[e.length-1]]))!=i&&null!=t&&o(n,e,{configurable:!0,writable:!0,value:t})}}function l(e){return(e={next:e})[Symbol.iterator]=function(){return this},e}function u(e){var n="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return n?n.call(e):{next:t(e)}}function c(e){if(!(e instanceof Array)){e=u(e);for(var t,n=[];!(t=e.next()).done;)n.push(t.value);e=n}return e}if(s("Symbol",(function(e){function t(e,t){this.g=e,o(this,"description",{configurable:!0,writable:!0,value:t})}if(e)return e;t.prototype.toString=function(){return this.g};var n=0;return function e(i){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new t("jscomp_symbol_"+(i||"")+"_"+n++,i)}})),s("Symbol.iterator",(function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var n="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),i=0;i<n.length;i++){var r=a[n[i]];"function"==typeof r&&"function"!=typeof r.prototype[e]&&o(r.prototype,e,{configurable:!0,writable:!0,value:function(){return l(t(this))}})}return e})),"function"==typeof Object.setPrototypeOf)r=Object.setPrototypeOf;else{var d;e:{var h={};try{h.__proto__={a:!0},d=h.a;break e}catch(N){}d=!1}r=d?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var p=r;function f(){this.u=!1,this.h=null,this.Oa=void 0,this.g=1,this.ea=0,this.i=null}function _(e){if(e.u)throw new TypeError("Generator is already running");e.u=!0}function g(e,t){e.i={ab:t,fb:!0},e.g=e.ea}function b(e,t){return e.g=3,{value:t}}function m(e){this.g=new f,this.h=e}function v(e,t,n,i){try{var r=t.call(e.g.h,n);if(!(r instanceof Object))throw new TypeError("Iterator result "+r+" is not an object");if(!r.done)return e.g.u=!1,r;var o=r.value}catch(t){return e.g.h=null,g(e.g,t),y(e)}return e.g.h=null,i.call(e.g,o),y(e)}function y(e){for(;e.g.g;)try{var t=e.h(e.g);if(t)return e.g.u=!1,{value:t.value,done:!1}}catch(t){e.g.Oa=void 0,g(e.g,t)}if(e.g.u=!1,e.g.i){if(t=e.g.i,e.g.i=null,t.fb)throw t.ab;return{value:t.return,done:!0}}return{value:void 0,done:!0}}function k(e){this.next=function(t){return _(e.g),e.g.h?t=v(e,e.g.h.next,t,e.g.O):(e.g.O(t),t=y(e)),t},this.throw=function(t){return _(e.g),e.g.h?t=v(e,e.g.h.throw,t,e.g.O):(g(e.g,t),t=y(e)),t},this.return=function(t){return function(e,t){_(e.g);var n=e.g.h;return n?v(e,"return"in n?n.return:function(e){return{value:e,done:!0}},t,e.g.return):(e.g.return(t),y(e))}(e,t)},this[Symbol.iterator]=function(){return this}}function x(e,t){return t=new k(new m(t)),p&&e.prototype&&p(t,e.prototype),t}f.prototype.O=function(e){this.Oa=e},f.prototype.return=function(e){this.i={return:e},this.g=this.ea},Array.from||(Array.from=function(e){return[].slice.call(e)}),Object.assign||(Object.assign=function(e){for(var t,n=[].slice.call(arguments,1),i=0;i<n.length;i++)if(t=n[i])for(var r=e,o=Object.keys(t),a=0;a<o.length;a++){var s=o[a];r[s]=t[s]}return e});var w=setTimeout;function E(){}function S(e){if(!(this instanceof S))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this.N=0,this.Ha=!1,this.I=void 0,this.ba=[],D(e,this)}function C(e,t){for(;3===e.N;)e=e.I;0===e.N?e.ba.push(t):(e.Ha=!0,H((function(){var n=1===e.N?t.hb:t.ib;if(null===n)(1===e.N?T:A)(t.promise,e.I);else{try{var i=n(e.I)}catch(e){return void A(t.promise,e)}T(t.promise,i)}})))}function T(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===i(t)||"function"==typeof t)){var n=t.then;if(t instanceof S)return e.N=3,e.I=t,void I(e);if("function"==typeof n)return void D(function(e,t){return function(){e.apply(t,arguments)}}(n,t),e)}e.N=1,e.I=t,I(e)}catch(t){A(e,t)}}function A(e,t){e.N=2,e.I=t,I(e)}function I(e){2===e.N&&0===e.ba.length&&H((function(){e.Ha||"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e.I)}));for(var t=0,n=e.ba.length;t<n;t++)C(e,e.ba[t]);e.ba=null}function O(e,t,n){this.hb="function"==typeof e?e:null,this.ib="function"==typeof t?t:null,this.promise=n}function D(e,t){var n=!1;try{e((function(e){n||(n=!0,T(t,e))}),(function(e){n||(n=!0,A(t,e))}))}catch(e){n||(n=!0,A(t,e))}}function $(e){return e&&"object"===i(e)&&e.constructor===S?e:new S((function(t){t(e)}))}S.prototype.catch=function(e){return this.then(null,e)},S.prototype.then=function(e,t){var n=new this.constructor(E);return C(this,new O(e,t,n)),n},S.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))};var N,M,L,P,R,j,H="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){w(e,0)};if(!window.Promise){window.Promise=S,S.prototype.then=S.prototype.then,S.all=function(e){return new S((function(t,n){function r(e,s){try{if(s&&("object"===i(s)||"function"==typeof s)){var l=s.then;if("function"==typeof l)return void l.call(s,(function(t){r(e,t)}),n)}o[e]=s,0==--a&&t(o)}catch(e){n(e)}}if(!e||void 0===e.length)return n(new TypeError("Promise.all accepts an array"));var o=Array.prototype.slice.call(e);if(0===o.length)return t([]);for(var a=o.length,s=0;s<o.length;s++)r(s,o[s])}))},S.race=function(e){return new S((function(t,n){if(!e||void 0===e.length)return n(new TypeError("Promise.race accepts an array"));for(var i=0,r=e.length;i<r;i++)$(e[i]).then(t,n)}))},S.resolve=$,S.reject=function(e){return new S((function(t,n){n(e)}))};var B=document.createTextNode(""),V=[];new MutationObserver((function(){for(var e=V.length,t=0;t<e;t++)V[t]();V.splice(0,e)})).observe(B,{characterData:!0}),H=function(e){V.push(e),B.textContent=0<B.textContent.length?"":"a"}}!function(e,t){if(!(t in e)){var r=(void 0===n.g?"undefined":i(n.g))===i(r)?window:n.g,o=0,a=String(Math.random()),s="__symbol@@"+a,l=e.getOwnPropertyNames,u=e.getOwnPropertyDescriptor,c=e.create,d=e.keys,h=e.freeze||e,p=e.defineProperty,f=e.defineProperties,_=u(e,"getOwnPropertyNames"),g=e.prototype,b=g.hasOwnProperty,m=g.propertyIsEnumerable,v=g.toString,y=function(e,t,n){b.call(e,s)||p(e,s,{enumerable:!1,configurable:!1,writable:!1,value:{}}),e[s]["@@"+t]=n},k=function(){},x=function(e){return e!=s&&!b.call(T,e)},w=function(e){return e!=s&&b.call(T,e)},E=function(e){var t=String(e);return w(t)?b.call(this,t)&&!!this[s]&&this[s]["@@"+t]:m.call(this,e)},S=function(t){return p(g,t,{enumerable:!1,configurable:!0,get:k,set:function(e){$(this,t,{enumerable:!1,configurable:!0,writable:!0,value:e}),y(this,t,!0)}}),T[t]=p(e(t),"constructor",A),h(T[t])},C=function e(t){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return S("__symbol:".concat(t||"",a,++o))},T=c(null),A={value:C},I=function(e){return T[e]},O=function(e,t,n){var i=String(t);if(w(i)){if(t=$,n.enumerable){var r=c(n);r.enumerable=!1}else r=n;t(e,i,r),y(e,i,!!n.enumerable)}else p(e,t,n);return e},D=function(e){return l(e).filter(w).map(I)};_.value=O,p(e,"defineProperty",_),_.value=D,p(e,t,_),_.value=function(e){return l(e).filter(x)},p(e,"getOwnPropertyNames",_),_.value=function(e,t){var n=D(t);return n.length?d(t).concat(n).forEach((function(n){E.call(t,n)&&O(e,n,t[n])})):f(e,t),e},p(e,"defineProperties",_),_.value=E,p(g,"propertyIsEnumerable",_),_.value=C,p(r,"Symbol",_),_.value=function(e){return(e="__symbol:".concat("__symbol:",e,a))in g?T[e]:S(e)},p(C,"for",_),_.value=function(e){if(x(e))throw new TypeError(e+" is not a symbol");if(b.call(T,e)&&"__symbol:"===(e=e.slice(10)).slice(0,10)&&(e=e.slice(10))!==a)return 0<(e=e.slice(0,e.length-a.length)).length?e:void 0},p(C,"keyFor",_),_.value=function(e,t){var n=u(e,t);return n&&w(t)&&(n.enumerable=E.call(e,t)),n},p(e,"getOwnPropertyDescriptor",_),_.value=function(e,t){return 1===arguments.length||void 0===t?c(e):function(e,t){var n=c(e);return l(t).forEach((function(e){E.call(t,e)&&O(n,e,t[e])})),n}(e,t)},p(e,"create",_),_.value=function(){var e=v.call(this);return"[object String]"===e&&w(this)?"[object Symbol]":e},p(g,"toString",_);try{if(!0!==c(p({},"__symbol:",{get:function(){return p(this,"__symbol:",{value:!0})["__symbol:"]}}))["__symbol:"])throw"IE11";var $=p}catch(e){$=function(e,t,n){var i=u(g,t);delete g[t],p(e,t,n),p(g,t,i)}}}}(Object,"getOwnPropertySymbols"),N=Object,M=Symbol,P=N.defineProperty,R=N.prototype,j=R.toString,"iterator match replace search split hasInstance isConcatSpreadable unscopables species toPrimitive toStringTag".split(" ").forEach((function(e){e in M||(P(M,e,{value:M(e)}),"toStringTag"===e&&((L=N.getOwnPropertyDescriptor(R,"toString")).value=function(){var e=j.call(this),t=null==this?this:this[M.toStringTag];return null==t?e:"[object "+t+"]"},P(R,"toString",L)))})),function(e,t,n){function i(){return this}t[e]||(t[e]=function(){var t=0,n=this,r={next:function(){var e=n.length<=t;return e?{done:e}:{done:e,value:n[t++]}}};return r[e]=i,r}),n[e]||(n[e]=function(){var t=String.fromCodePoint,n=this,r=0,o=n.length,a={next:function(){var e=o<=r,i=e?"":t(n.codePointAt(r));return r+=i.length,e?{done:e}:{done:e,value:i}}};return a[e]=i,a})}(Symbol.iterator,Array.prototype,String.prototype);var U=Object.prototype.toString;Object.prototype.toString=function(){return void 0===this?"[object Undefined]":null===this?"[object Null]":U.call(this)},Object.keys=function(e){return Object.getOwnPropertyNames(e).filter((function(t){return(t=Object.getOwnPropertyDescriptor(e,t))&&t.enumerable}))},String.prototype[Symbol.iterator]&&String.prototype.codePointAt||(String.prototype[Symbol.iterator]=function e(){var t,n=this;return x(e,(function(e){if(1==e.g&&(t=0),3!=e.g)return t<n.length?e=b(e,n[t]):(e.g=0,e=void 0),e;t++,e.g=2}))}),Set.prototype[Symbol.iterator]||(Set.prototype[Symbol.iterator]=function e(){var t,n,i=this;return x(e,(function(e){if(1==e.g&&(t=[],i.forEach((function(e){t.push(e)})),n=0),3!=e.g)return n<t.length?e=b(e,t[n]):(e.g=0,e=void 0),e;n++,e.g=2}))}),Map.prototype[Symbol.iterator]||(Map.prototype[Symbol.iterator]=function e(){var t,n,i=this;return x(e,(function(e){if(1==e.g&&(t=[],i.forEach((function(e,n){t.push([n,e])})),n=0),3!=e.g)return n<t.length?e=b(e,t[n]):(e.g=0,e=void 0),e;n++,e.g=2}))});var F=document.createEvent("Event");if(F.initEvent("foo",!0,!0),F.preventDefault(),!F.defaultPrevented){var z=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(z.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var G=/Trident/.test(navigator.userAgent);if(!window.Event||G&&"function"!=typeof window.Event){var W=window.Event;if(window.Event=function(e,t){t=t||{};var n=document.createEvent("Event");return n.initEvent(e,!!t.bubbles,!!t.cancelable),n},W){for(var q in W)window.Event[q]=W[q];window.Event.prototype=W.prototype}}if((!window.CustomEvent||G&&"function"!=typeof window.CustomEvent)&&(window.CustomEvent=function(e,t){t=t||{};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail),n},window.CustomEvent.prototype=window.Event.prototype),!window.MouseEvent||G&&"function"!=typeof window.MouseEvent){var K=window.MouseEvent;if(window.MouseEvent=function(e,t){t=t||{};var n=document.createEvent("MouseEvent");return n.initMouseEvent(e,!!t.bubbles,!!t.cancelable,t.view||window,t.detail,t.screenX,t.screenY,t.clientX,t.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget),n},K)for(var Y in K)window.MouseEvent[Y]=K[Y];window.MouseEvent.prototype=K.prototype}var J,Z=function(){function e(){r++}var t=!1,n=!1,i={get capture(){return t=!0},get once(){return n=!0}},r=0,o=document.createElement("div");o.addEventListener("click",e,i);var a=t&&n;return a&&(o.dispatchEvent(new Event("click")),o.dispatchEvent(new Event("click")),a=1==r),o.removeEventListener("click",e,i),a}(),X=null!==(J=window.EventTarget)&&void 0!==J?J:window.Node;if(!Z&&"addEventListener"in X.prototype){var Q=function(e){if(!e||"object"!==i(e)&&"function"!=typeof e){var t=!!e;e=!1}else t=!!e.capture,e=!!e.once;return{capture:t,once:e}},ee=X.prototype.addEventListener,te=X.prototype.removeEventListener,ne=new WeakMap,ie=new WeakMap,re=function(e,t,n){var i=n?ne:ie;return void 0===(n=i.get(e))&&i.set(e,n=new Map),void 0===(e=n.get(t))&&n.set(t,e=new WeakMap),e};X.prototype.addEventListener=function(e,t,n){var i=this;if(null!=t){var r=(n=Q(n)).capture;n=n.once;var o=re(this,e,r);if(!o.has(t)){var a=n?function(n){return o.delete(t),te.call(i,e,a,r),"function"==typeof t?t.call(i,n):"function"==typeof(null==t?void 0:t.handleEvent)?t.handleEvent(n):void 0}:null;o.set(t,a),ee.call(this,e,null!=a?a:t,r)}}},X.prototype.removeEventListener=function(e,t,n){if(null!=t){n=Q(n).capture;var i=re(this,e,n),r=i.get(t);void 0!==r&&(i.delete(t),te.call(this,e,null!=r?r:t,n))}}}Object.getOwnPropertyDescriptor(Node.prototype,"baseURI")||Object.defineProperty(Node.prototype,"baseURI",{get:function(){var e=(this.ownerDocument||this).querySelector("base[href]");return e&&e.href||window.location.href},configurable:!0,enumerable:!0});var oe,ae,se=Element.prototype,le=null!==(oe=Object.getOwnPropertyDescriptor(se,"attributes"))&&void 0!==oe?oe:Object.getOwnPropertyDescriptor(Node.prototype,"attributes"),ue=null!==(ae=null==le?void 0:le.get)&&void 0!==ae?ae:function(){return this.attributes},ce=Array.prototype.map;se.hasOwnProperty("getAttributeNames")||(se.getAttributeNames=function(){return ce.call(ue.call(this),(function(e){return e.name}))});var de,he=Element.prototype;he.hasOwnProperty("matches")||(he.matches=null!==(de=he.webkitMatchesSelector)&&void 0!==de?de:he.msMatchesSelector);var pe=Node.prototype.appendChild;function fe(e){(e=e.prototype).hasOwnProperty("append")||Object.defineProperty(e,"append",{configurable:!0,enumerable:!0,writable:!0,value:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];for(n=(t=u(t)).next();!n.done;n=t.next())n=n.value,pe.call(this,"string"==typeof n?document.createTextNode(n):n)}})}fe(Document),fe(DocumentFragment),fe(Element);var _e,ge,be=Node.prototype.insertBefore,me=null!==(ge=null===(_e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild"))||void 0===_e?void 0:_e.get)&&void 0!==ge?ge:function(){return this.firstChild};function ve(e){(e=e.prototype).hasOwnProperty("prepend")||Object.defineProperty(e,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];n=me.call(this);for(var i=(t=u(t)).next();!i.done;i=t.next())i=i.value,be.call(this,"string"==typeof i?document.createTextNode(i):i,n)}})}ve(Document),ve(DocumentFragment),ve(Element);var ye,ke,xe=Node.prototype.appendChild,we=Node.prototype.removeChild,Ee=null!==(ke=null===(ye=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild"))||void 0===ye?void 0:ye.get)&&void 0!==ke?ke:function(){return this.firstChild};function Se(e){(e=e.prototype).hasOwnProperty("replaceChildren")||Object.defineProperty(e,"replaceChildren",{configurable:!0,enumerable:!0,writable:!0,value:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];for(;null!==(n=Ee.call(this));)we.call(this,n);for(n=(t=u(t)).next();!n.done;n=t.next())n=n.value,xe.call(this,"string"==typeof n?document.createTextNode(n):n)}})}Se(Document),Se(DocumentFragment),Se(Element);var Ce,Te,Ae,Ie,Oe=Node.prototype.insertBefore,De=null!==(Te=null===(Ce=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===Ce?void 0:Ce.get)&&void 0!==Te?Te:function(){return this.parentNode},$e=null!==(Ie=null===(Ae=Object.getOwnPropertyDescriptor(Node.prototype,"nextSibling"))||void 0===Ae?void 0:Ae.get)&&void 0!==Ie?Ie:function(){return this.nextSibling};function Ne(e){(e=e.prototype).hasOwnProperty("after")||Object.defineProperty(e,"after",{configurable:!0,enumerable:!0,writable:!0,value:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(null!==(n=De.call(this)))for(var i=$e.call(this),r=(t=u(t)).next();!r.done;r=t.next())r=r.value,Oe.call(n,"string"==typeof r?document.createTextNode(r):r,i)}})}Ne(CharacterData),Ne(Element);var Me,Le,Pe=Node.prototype.insertBefore,Re=null!==(Le=null===(Me=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===Me?void 0:Me.get)&&void 0!==Le?Le:function(){return this.parentNode};function je(e){(e=e.prototype).hasOwnProperty("before")||Object.defineProperty(e,"before",{configurable:!0,enumerable:!0,writable:!0,value:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(null!==(n=Re.call(this)))for(var i=(t=u(t)).next();!i.done;i=t.next())i=i.value,Pe.call(n,"string"==typeof i?document.createTextNode(i):i,this)}})}je(CharacterData),je(Element);var He,Be,Ve=Node.prototype.removeChild,Ue=null!==(Be=null===(He=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===He?void 0:He.get)&&void 0!==Be?Be:function(){return this.parentNode};function Fe(e){(e=e.prototype).hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){var e=Ue.call(this);e&&Ve.call(e,this)}})}Fe(CharacterData),Fe(Element);var ze,Ge,We=Node.prototype.insertBefore,qe=Node.prototype.removeChild,Ke=null!==(Ge=null===(ze=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===ze?void 0:ze.get)&&void 0!==Ge?Ge:function(){return this.parentNode};function Ye(e){(e=e.prototype).hasOwnProperty("replaceWith")||Object.defineProperty(e,"replaceWith",{configurable:!0,enumerable:!0,writable:!0,value:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(null!==(n=Ke.call(this))){for(var i=(t=u(t)).next();!i.done;i=t.next())i=i.value,We.call(n,"string"==typeof i?document.createTextNode(i):i,this);qe.call(n,this)}}})}Ye(CharacterData),Ye(Element);var Je=window.Element.prototype,Ze=window.HTMLElement.prototype,Xe=window.SVGElement.prototype;!Ze.hasOwnProperty("classList")||Je.hasOwnProperty("classList")||Xe.hasOwnProperty("classList")||Object.defineProperty(Je,"classList",Object.getOwnPropertyDescriptor(Ze,"classList"));var Qe=Element.prototype,et=Element.prototype.hasAttribute,tt=Element.prototype.setAttribute,nt=Element.prototype.removeAttribute;Qe.hasOwnProperty("toggleAttribute")||(Qe.toggleAttribute=function(e,t){return void 0===t?et.call(this,e)?(nt.call(this,e),!1):(tt.call(this,e,""),!0):t?(et.call(this,e)||tt.call(this,e,""),!0):(nt.call(this,e),!1)});var it=document.createElement("style");it.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var rt=document.querySelector("head");rt.insertBefore(it,rt.firstChild);var ot=window;ot.WebComponents=ot.WebComponents||{flags:{}};var at=document.querySelector('script[src*="webcomponents-bundle"]'),st=/wc-(.+)/,lt={};if(!lt.noOpts){if(location.search.slice(1).split("&").forEach((function(e){var t;(e=e.split("="))[0]&&(t=e[0].match(st))&&(lt[t[1]]=e[1]||!0)})),at)for(var ut=0,ct=void 0;ct=at.attributes[ut];ut++)"src"!==ct.name&&(lt[ct.name]=ct.value||!0);var dt={};lt.log&<.log.split&<.log.split(",").forEach((function(e){dt[e]=!0})),lt.log=dt}ot.WebComponents.flags=lt;var ht=lt.shadydom;if(ht){ot.ShadyDOM=ot.ShadyDOM||{},ot.ShadyDOM.force=ht;var pt=lt.noPatch;ot.ShadyDOM.noPatch="true"===pt||pt}var ft=lt.register||lt.ce;function _t(){}function gt(e){return e.__shady||(e.__shady=new _t),e.__shady}function bt(e){return e&&e.__shady}ft&&window.customElements&&(ot.customElements.forcePolyfill=ft),function(){function e(){}function t(e,t){if(!e.childNodes.length)return[];switch(e.nodeType){case Node.DOCUMENT_NODE:return _.call(e,t);case Node.DOCUMENT_FRAGMENT_NODE:return g.call(e,t);default:return f.call(e,t)}}var n="undefined"==typeof HTMLTemplateElement,i=!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment),r=!1;/Trident/.test(navigator.userAgent)&&function(){function e(e,t){if(e instanceof DocumentFragment)for(var i;i=e.firstChild;)n.call(this,i,t);else n.call(this,e,t);return e}r=!0;var t=Node.prototype.cloneNode;Node.prototype.cloneNode=function(e){return e=t.call(this,e),this instanceof DocumentFragment&&(e.__proto__=DocumentFragment.prototype),e},DocumentFragment.prototype.querySelectorAll=HTMLElement.prototype.querySelectorAll,DocumentFragment.prototype.querySelector=HTMLElement.prototype.querySelector,Object.defineProperties(DocumentFragment.prototype,{nodeType:{get:function(){return Node.DOCUMENT_FRAGMENT_NODE},configurable:!0},localName:{get:function(){},configurable:!0},nodeName:{get:function(){return"#document-fragment"},configurable:!0}});var n=Node.prototype.insertBefore;Node.prototype.insertBefore=e;var i=Node.prototype.appendChild;Node.prototype.appendChild=function(t){return t instanceof DocumentFragment?e.call(this,t,null):i.call(this,t),t};var o=Node.prototype.removeChild,a=Node.prototype.replaceChild;Node.prototype.replaceChild=function(t,n){return t instanceof DocumentFragment?(e.call(this,t,n),o.call(this,n)):a.call(this,t,n),n},Document.prototype.createDocumentFragment=function(){var e=this.createElement("df");return e.__proto__=DocumentFragment.prototype,e};var s=Document.prototype.importNode;Document.prototype.importNode=function(e,t){return t=s.call(this,e,t||!1),e instanceof DocumentFragment&&(t.__proto__=DocumentFragment.prototype),t}}();var o=Node.prototype.cloneNode,a=Document.prototype.createElement,s=Document.prototype.importNode,l=Node.prototype.removeChild,u=Node.prototype.appendChild,c=Node.prototype.replaceChild,d=DOMParser.prototype.parseFromString,h=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML")||{get:function(){return this.innerHTML},set:function(e){this.innerHTML=e}},p=Object.getOwnPropertyDescriptor(window.Node.prototype,"childNodes")||{get:function(){return this.childNodes}},f=Element.prototype.querySelectorAll,_=Document.prototype.querySelectorAll,g=DocumentFragment.prototype.querySelectorAll,b=function(){if(!n){var e=document.createElement("template"),t=document.createElement("template");return t.content.appendChild(document.createElement("div")),e.content.appendChild(t),0===(e=e.cloneNode(!0)).content.childNodes.length||0===e.content.firstChild.content.childNodes.length||i}}();if(n){var m=document.implementation.createHTMLDocument("template"),v=!0,y=document.createElement("style");y.textContent="template{display:none;}";var k=document.head;k.insertBefore(y,k.firstElementChild),e.prototype=Object.create(HTMLElement.prototype);var x=!document.createElement("div").hasOwnProperty("innerHTML");e.Z=function(t){if(!t.content&&t.namespaceURI===document.documentElement.namespaceURI){t.content=m.createDocumentFragment();for(var n;n=t.firstChild;)u.call(t.content,n);if(x)t.__proto__=e.prototype;else if(t.cloneNode=function(t){return e.va(this,t)},v)try{E(t),S(t)}catch(e){v=!1}e.bootstrap(t.content)}};var w={option:["select"],thead:["table"],col:["colgroup","table"],tr:["tbody","table"],th:["tr","tbody","table"],td:["tr","tbody","table"]},E=function(t){Object.defineProperty(t,"innerHTML",{get:function(){return D(this)},set:function(t){var n=w[(/<([a-z][^/\0>\x20\t\r\n\f]+)/i.exec(t)||["",""])[1].toLowerCase()];if(n)for(var i=0;i<n.length;i++)t="<"+n[i]+">"+t+"</"+n[i]+">";for(m.body.innerHTML=t,e.bootstrap(m);this.content.firstChild;)l.call(this.content,this.content.firstChild);if(t=m.body,n)for(i=0;i<n.length;i++)t=t.lastChild;for(;t.firstChild;)u.call(this.content,t.firstChild)},configurable:!0})},S=function(e){Object.defineProperty(e,"outerHTML",{get:function(){return"<template>"+this.innerHTML+"</template>"},set:function(e){if(!this.parentNode)throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");for(m.body.innerHTML=e,e=this.ownerDocument.createDocumentFragment();m.body.firstChild;)u.call(e,m.body.firstChild);c.call(this.parentNode,e,this)},configurable:!0})};E(e.prototype),S(e.prototype),e.bootstrap=function(n){for(var i,r=0,o=(n=t(n,"template")).length;r<o&&(i=n[r]);r++)e.Z(i)},document.addEventListener("DOMContentLoaded",(function(){e.bootstrap(document)})),Document.prototype.createElement=function(){var t=a.apply(this,arguments);return"template"===t.localName&&e.Z(t),t},DOMParser.prototype.parseFromString=function(){var t=d.apply(this,arguments);return e.bootstrap(t),t},Object.defineProperty(HTMLElement.prototype,"innerHTML",{get:function(){return D(this)},set:function(t){h.set.call(this,t),e.bootstrap(this)},configurable:!0,enumerable:!0});var C=/[&\u00A0"]/g,T=/[&\u00A0<>]/g,A=function(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" "}},I=(y=function(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t})("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),O=y("style script xmp iframe noembed noframes plaintext noscript".split(" ")),D=function(e,t){"template"===e.localName&&(e=e.content);for(var n,i="",r=t?t(e):p.get.call(e),o=0,a=r.length;o<a&&(n=r[o]);o++){e:{var s=n,l=e,u=t;switch(s.nodeType){case Node.ELEMENT_NODE:for(var c=s.localName,d="<"+c,h=s.attributes,f=0;l=h[f];f++)d+=" "+l.name+'="'+l.value.replace(C,A)+'"';d+=">",s=I[c]?d:d+D(s,u)+"</"+c+">";break e;case Node.TEXT_NODE:s=s.data,s=l&&O[l.localName]?s:s.replace(T,A);break e;case Node.COMMENT_NODE:s="\x3c!--"+s.data+"--\x3e";break e;default:throw window.console.error(s),Error("not implemented")}}i+=s}return i}}if(n||b){e.va=function(e,t){var n=o.call(e,!1);return this.Z&&this.Z(n),t&&(u.call(n.content,o.call(e.content,!0)),$(n.content,e.content)),n};var $=function(n,i){if(i.querySelectorAll&&0!==(i=t(i,"template")).length)for(var r,o,a=0,s=(n=t(n,"template")).length;a<s;a++)o=i[a],r=n[a],e&&e.Z&&e.Z(o),c.call(r.parentNode,N.call(o,!0),r)},N=Node.prototype.cloneNode=function(t){if(!r&&i&&this instanceof DocumentFragment){if(!t)return this.ownerDocument.createDocumentFragment();var n=M.call(this.ownerDocument,this,!0)}else n=this.nodeType===Node.ELEMENT_NODE&&"template"===this.localName&&this.namespaceURI==document.documentElement.namespaceURI?e.va(this,t):o.call(this,t);return t&&$(n,this),n},M=Document.prototype.importNode=function(n,i){if(i=i||!1,"template"===n.localName)return e.va(n,i);var r=s.call(this,n,i);if(i){$(r,n),n=t(r,'script:not([type]),script[type="application/javascript"],script[type="text/javascript"]');for(var o,l=0;l<n.length;l++){o=n[l],(i=a.call(document,"script")).textContent=o.textContent;for(var u,d=o.attributes,h=0;h<d.length;h++)u=d[h],i.setAttribute(u.name,u.value);c.call(o.parentNode,i,o)}}return r}}n&&(window.HTMLTemplateElement=e)}(),_t.prototype.toJSON=function(){return{}};var mt=window.ShadyDOM||{};mt.cb=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var vt,yt=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");mt.D=!!(yt&&yt.configurable&&yt.get),mt.Ba=mt.force||!mt.cb,mt.J=mt.noPatch||!1,mt.ha=mt.preferPerformance,mt.Da="on-demand"===mt.J;var kt=mt.querySelectorImplementation;function xt(){return Document.prototype.msElementsFromPoint?"msElementsFromPoint":"elementsFromPoint"}function wt(e){return(e=bt(e))&&void 0!==e.firstChild}function Et(e){return e instanceof ShadowRoot}function St(e){return(e=(e=bt(e))&&e.root)&&vr(e)}vt=-1<["native","selectorEngine"].indexOf(kt)?kt:void 0,mt.wb=vt,mt.Ra=navigator.userAgent.match("Trident");var Ct=Element.prototype,Tt=Ct.matches||Ct.matchesSelector||Ct.mozMatchesSelector||Ct.msMatchesSelector||Ct.oMatchesSelector||Ct.webkitMatchesSelector,At=document.createTextNode(""),It=0,Ot=[];function Dt(e){Ot.push(e),At.textContent=It++}new MutationObserver((function(){for(;Ot.length;)try{Ot.shift()()}catch(e){throw At.textContent=It++,e}})).observe(At,{characterData:!0});var $t=document.contains?function(e,t){return e.__shady_native_contains(t)}:function(e,t){return e===t||e.documentElement&&e.documentElement.__shady_native_contains(t)};function Nt(e,t){for(;t;){if(t==e)return!0;t=t.__shady_parentNode}return!1}function Mt(e){for(var t=e.length-1;0<=t;t--){var n=e[t],i=n.getAttribute("id")||n.getAttribute("name");i&&"length"!==i&&isNaN(i)&&(e[i]=n)}return e.item=function(t){return e[t]},e.namedItem=function(t){if("length"!==t&&isNaN(t)&&e[t])return e[t];for(var n=u(e),i=n.next();!i.done;i=n.next())if(((i=i.value).getAttribute("id")||i.getAttribute("name"))==t)return i;return null},e}function Lt(e){var t=[];for(e=e.__shady_native_firstChild;e;e=e.__shady_native_nextSibling)t.push(e);return t}function Pt(e){var t=[];for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling)t.push(e);return t}function Rt(e,t,n){if(n.configurable=!0,n.value)e[t]=n.value;else try{Object.defineProperty(e,t,n)}catch(e){}}function jt(e,t,n,i){for(var r in n=void 0===n?"":n,t)i&&0<=i.indexOf(r)||Rt(e,n+r,t[r])}function Ht(e,t){for(var n in t)n in e&&Rt(e,n,t[n])}function Bt(e){var t={};return Object.getOwnPropertyNames(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t}function Vt(e,t){for(var n,i=Object.getOwnPropertyNames(t),r=0;r<i.length;r++)e[n=i[r]]=t[n]}function Ut(e){return e instanceof Node?e:document.createTextNode(""+e)}function Ft(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(1===t.length)return Ut(t[0]);n=document.createDocumentFragment();for(var i=(t=u(t)).next();!i.done;i=t.next())n.appendChild(Ut(i.value));return n}function zt(e){var t;for(t=void 0===t?1:t;0<t;t--)e=e.reduce((function(e,t){return Array.isArray(t)?e.push.apply(e,c(t)):e.push(t),e}),[]);return e}var Gt,Wt=[];function qt(e){Gt||(Gt=!0,Dt(Kt)),Wt.push(e)}function Kt(){Gt=!1;for(var e=!!Wt.length;Wt.length;)Wt.shift()();return e}function Yt(){this.g=!1,this.addedNodes=[],this.removedNodes=[],this.qa=new Set}Kt.list=Wt,Yt.prototype.flush=function(){if(this.g){this.g=!1;var e=this.takeRecords();e.length&&this.qa.forEach((function(t){t(e)}))}},Yt.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var e=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],e}return[]};var Jt=/[&\u00A0"]/g,Zt=/[&\u00A0<>]/g;function Xt(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" "}}function Qt(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}var en=Qt("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),tn=Qt("style script xmp iframe noembed noframes plaintext noscript".split(" "));function nn(e,t){"template"===e.localName&&(e=e.content);for(var n="",i=t?t(e):e.childNodes,r=0,o=i.length,a=void 0;r<o&&(a=i[r]);r++){e:{var s=a,l=e,u=t;switch(s.nodeType){case Node.ELEMENT_NODE:for(var c,d="<"+(l=s.localName),h=s.attributes,p=0;c=h[p];p++)d+=" "+c.name+'="'+c.value.replace(Jt,Xt)+'"';d+=">",s=en[l]?d:d+nn(s,u)+"</"+l+">";break e;case Node.TEXT_NODE:s=s.data,s=l&&tn[l.localName]?s:s.replace(Zt,Xt);break e;case Node.COMMENT_NODE:s="\x3c!--"+s.data+"--\x3e";break e;default:throw window.console.error(s),Error("not implemented")}}n+=s}return n}var rn=mt.D,on={querySelector:function(e){return this.__shady_native_querySelector(e)},querySelectorAll:function(e){return this.__shady_native_querySelectorAll(e)}},an={};function sn(e){an[e]=function(t){return t["__shady_native_"+e]}}function ln(e,t){for(var n in jt(e,t,"__shady_native_"),t)sn(n)}function un(e,t){t=void 0===t?[]:t;for(var n=0;n<t.length;n++){var i=t[n],r=Object.getOwnPropertyDescriptor(e,i);r&&(Object.defineProperty(e,"__shady_native_"+i,r),r.value?on[i]||(on[i]=r.value):sn(i))}}var cn=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),dn=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),hn=document.implementation.createHTMLDocument("inert");function pn(e){for(var t;t=e.__shady_native_firstChild;)e.__shady_native_removeChild(t)}var fn=["firstElementChild","lastElementChild","children","childElementCount"],_n=["querySelector","querySelectorAll","append","prepend","replaceChildren"],gn=Bt({get childNodes(){return this.__shady_childNodes},get firstChild(){return this.__shady_firstChild},get lastChild(){return this.__shady_lastChild},get childElementCount(){return this.__shady_childElementCount},get children(){return this.__shady_children},get firstElementChild(){return this.__shady_firstElementChild},get lastElementChild(){return this.__shady_lastElementChild},get shadowRoot(){return this.__shady_shadowRoot}}),bn=Bt({get textContent(){return this.__shady_textContent},set textContent(e){this.__shady_textContent=e},get innerHTML(){return this.__shady_innerHTML},set innerHTML(e){this.__shady_innerHTML=e}}),mn=Bt({get parentElement(){return this.__shady_parentElement},get parentNode(){return this.__shady_parentNode},get nextSibling(){return this.__shady_nextSibling},get previousSibling(){return this.__shady_previousSibling},get nextElementSibling(){return this.__shady_nextElementSibling},get previousElementSibling(){return this.__shady_previousElementSibling},get className(){return this.__shady_className},set className(e){this.__shady_className=e}});function vn(e){for(var t in e){var n=e[t];n&&(n.enumerable=!1)}}vn(gn),vn(bn),vn(mn);var yn=mt.D||!0===mt.J,kn=yn?function(){}:function(e){var t=gt(e);t.Ta||(t.Ta=!0,Ht(e,mn))},xn=yn?function(){}:function(e){var t=gt(e);t.Sa||(t.Sa=!0,Ht(e,gn),window.customElements&&window.customElements.polyfillWrapFlushCallback&&!mt.J||Ht(e,bn))},wn="__eventWrappers"+Date.now(),En=function(){var e=Object.getOwnPropertyDescriptor(Event.prototype,"composed");return e?function(t){return e.get.call(t)}:null}(),Sn=function(){function e(){}var t=!1,n={get capture(){return t=!0,!1}};return window.addEventListener("test",e,n),window.removeEventListener("test",e,n),t}();function Cn(e){if(null===e||"object"!==i(e)&&"function"!=typeof e)var t=!!e,n=!1;else{t=!!e.capture,n=!!e.once;var r=e.U}return{Pa:r,capture:t,once:n,Na:Sn?e:t}}var Tn={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},An={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function In(e){return e instanceof Node?e.__shady_getRootNode():e}function On(e,t){var n=[],i=e;for(e=In(e);i;)n.push(i),i=i.__shady_assignedSlot?i.__shady_assignedSlot:i.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&i.host&&(t||i!==e)?i.host:i.__shady_parentNode;return n[n.length-1]===document&&n.push(window),n}function Dn(e,t){if(!Et)return e;e=On(e,!0);for(var n,i,r=0,o=void 0,a=void 0;r<t.length;r++)if((i=In(n=t[r]))!==o&&(a=e.indexOf(i),o=i),!Et(i)||-1<a)return n}var $n={get composed(){return void 0===this.__composed&&(En?this.__composed="focusin"===this.type||"focusout"===this.type||En(this):!1!==this.isTrusted&&(this.__composed=Tn[this.type])),this.__composed||!1},composedPath:function(){return this.__composedPath||(this.__composedPath=On(this.__target,this.composed)),this.__composedPath},get target(){return Dn(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){return this.__relatedTarget?(this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=On(this.__relatedTarget,!0)),Dn(this.currentTarget||this.__previousCurrentTarget,this.__relatedTargetComposedPath)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.ua=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.ua=this.__immediatePropagationStopped=!0}},Nn=mt.D&&Object.getOwnPropertyDescriptor(Event.prototype,"eventPhase");function Mn(e){function t(t,n){return(t=new e(t,n)).__composed=n&&!!n.composed,t}return t.__proto__=e,t.prototype=e.prototype,t}Nn&&(Object.defineProperty($n,"eventPhase",{get:function(){return this.currentTarget===this.target?Event.AT_TARGET:this.__shady_native_eventPhase},enumerable:!0,configurable:!0}),Object.defineProperty($n,"__shady_native_eventPhase",Nn));var Ln={focus:!0,blur:!0};function Pn(e){return e.__target!==e.target||e.__relatedTarget!==e.relatedTarget}function Rn(e,t,n){if(n=t.__handlers&&t.__handlers[e.type]&&t.__handlers[e.type][n])for(var i,r=0;(i=n[r])&&(!Pn(e)||e.target!==e.relatedTarget)&&(i.call(t,e),!e.__immediatePropagationStopped);r++);}var jn=new Event("e").hasOwnProperty("currentTarget");function Hn(e){var t=(e=jn?Object.create(e):e).composedPath(),n=t.map((function(e){return Dn(e,t)})),i=e.bubbles,r=Object.getOwnPropertyDescriptor(e,"currentTarget");Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:function(){return l}});var o=Event.CAPTURING_PHASE,a=Object.getOwnPropertyDescriptor(e,"eventPhase");Object.defineProperty(e,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return o}});try{for(var s=t.length-1;0<=s;s--){var l=t[s];if(o=l===n[s]?Event.AT_TARGET:Event.CAPTURING_PHASE,Rn(e,l,"capture"),e.ua)return}for(s=0;s<t.length;s++){var u=(l=t[s])===n[s];if((u||i)&&(o=u?Event.AT_TARGET:Event.BUBBLING_PHASE,Rn(e,l,"bubble"),e.ua))break}}finally{jn||(r?Object.defineProperty(e,"currentTarget",r):delete e.currentTarget,a?Object.defineProperty(e,"eventPhase",a):delete e.eventPhase)}}function Bn(e,t,n,i){for(var r=0;r<e.length;r++){var o=e[r],a=o.type,s=o.capture;if(t===o.node&&n===a&&i===s)return r}return-1}function Vn(e){return Kt(),!mt.ha&&this instanceof Node&&!$t(document,this)?(e.__target||Gn(e,this),Hn(e)):this.__shady_native_dispatchEvent(e)}function Un(e,t,n){var r=this,o=Cn(n),a=o.capture,s=o.once,l=o.Pa;if(o=o.Na,t){var u=i(t);if(("function"===u||"object"===u)&&("object"!==u||t.handleEvent&&"function"==typeof t.handleEvent)){if(An[e])return this.__shady_native_addEventListener(e,t,o);var c=l||this;if(l=t[wn]){if(-1<Bn(l,c,e,a))return}else t[wn]=[];l=function(i){if(s&&r.__shady_removeEventListener(e,t,n),i.__target||Gn(i),c!==r){var o=Object.getOwnPropertyDescriptor(i,"currentTarget");Object.defineProperty(i,"currentTarget",{get:function(){return c},configurable:!0});var l=Object.getOwnPropertyDescriptor(i,"eventPhase");Object.defineProperty(i,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return a?Event.CAPTURING_PHASE:Event.BUBBLING_PHASE}})}if(i.__previousCurrentTarget=i.currentTarget,(!Et(c)&&"slot"!==c.localName||-1!=i.composedPath().indexOf(c))&&(i.composed||-1<i.composedPath().indexOf(c)))if(Pn(i)&&i.target===i.relatedTarget)i.eventPhase===Event.BUBBLING_PHASE&&i.stopImmediatePropagation();else if(i.eventPhase===Event.CAPTURING_PHASE||i.bubbles||i.target===c||c instanceof Window){var d="function"===u?t.call(c,i):t.handleEvent&&t.handleEvent(i);return c!==r&&(o?(Object.defineProperty(i,"currentTarget",o),o=null):delete i.currentTarget,l?(Object.defineProperty(i,"eventPhase",l),l=null):delete i.eventPhase),d}},t[wn].push({node:c,type:e,capture:a,ub:l}),this.__handlers=this.__handlers||{},this.__handlers[e]=this.__handlers[e]||{capture:[],bubble:[]},this.__handlers[e][a?"capture":"bubble"].push(l),Ln[e]||this.__shady_native_addEventListener(e,l,o)}}}function Fn(e,t,n){if(t){var i=Cn(n);n=i.capture;var r=i.Pa;if(i=i.Na,An[e])return this.__shady_native_removeEventListener(e,t,i);var o=r||this;r=void 0;var a=null;try{a=t[wn]}catch(e){}a&&-1<(o=Bn(a,o,e,n))&&(r=a.splice(o,1)[0].ub,a.length||(t[wn]=void 0)),this.__shady_native_removeEventListener(e,r||t,i),r&&this.__handlers&&this.__handlers[e]&&-1<(t=(e=this.__handlers[e][n?"capture":"bubble"]).indexOf(r))&&e.splice(t,1)}}var zn=Bt($n);function Gn(e,t){if(t=void 0===t?e.target:t,e.__target=t,e.__relatedTarget=e.relatedTarget,mt.D){if(!(t=Object.getPrototypeOf(e)).hasOwnProperty("__shady_patchedProto")){var n=Object.create(t);n.__shady_sourceProto=t,jt(n,zn),t.__shady_patchedProto=n}e.__proto__=t.__shady_patchedProto}else jt(e,zn)}var Wn=Mn(Event),qn=Mn(CustomEvent),Kn=Mn(MouseEvent),Yn=Object.getOwnPropertyNames(Element.prototype).filter((function(e){return"on"===e.substring(0,2)})),Jn=Object.getOwnPropertyNames(HTMLElement.prototype).filter((function(e){return"on"===e.substring(0,2)}));function Zn(e){return{set:function(t){var n=gt(this),i=e.substring(2);n.T||(n.T={}),n.T[e]&&this.removeEventListener(i,n.T[e]),this.__shady_addEventListener(i,t),n.T[e]=t},get:function(){var t=bt(this);return t&&t.T&&t.T[e]},configurable:!0}}function Xn(e,t){return{index:e,ia:[],pa:t}}function Qn(e,t,n,i){var r=0,o=0,a=0,s=0,l=Math.min(t-r,i-o);if(0==r&&0==o)e:{for(a=0;a<l;a++)if(e[a]!==n[a])break e;a=l}if(t==e.length&&i==n.length){s=e.length;for(var u=n.length,c=0;c<l-a&&ei(e[--s],n[--u]);)c++;s=c}if(o+=a,i-=s,0==(t-=s)-(r+=a)&&0==i-o)return[];if(r==t){for(t=Xn(r,0);o<i;)t.ia.push(n[o++]);return[t]}if(o==i)return[Xn(r,t-r)];for(i=i-(a=o)+1,s=t-(l=r)+1,t=Array(i),u=0;u<i;u++)t[u]=Array(s),t[u][0]=u;for(u=0;u<s;u++)t[0][u]=u;for(u=1;u<i;u++)for(c=1;c<s;c++)if(e[l+c-1]===n[a+u-1])t[u][c]=t[u-1][c-1];else{var d=t[u-1][c]+1,h=t[u][c-1]+1;t[u][c]=d<h?d:h}for(l=t.length-1,a=t[0].length-1,i=t[l][a],e=[];0<l||0<a;)0==l?(e.push(2),a--):0==a?(e.push(3),l--):(s=t[l-1][a-1],(d=(u=t[l-1][a])<(c=t[l][a-1])?u<s?u:s:c<s?c:s)==s?(s==i?e.push(0):(e.push(1),i=s),l--,a--):d==u?(e.push(3),l--,i=u):(e.push(2),a--,i=c));for(e.reverse(),t=void 0,l=[],a=0;a<e.length;a++)switch(e[a]){case 0:t&&(l.push(t),t=void 0),r++,o++;break;case 1:t||(t=Xn(r,0)),t.pa++,r++,t.ia.push(n[o]),o++;break;case 2:t||(t=Xn(r,0)),t.pa++,r++;break;case 3:t||(t=Xn(r,0)),t.ia.push(n[o]),o++}return t&&l.push(t),l}function ei(e,t){return e===t}var ti=Bt({dispatchEvent:Vn,addEventListener:Un,removeEventListener:Fn}),ni=null;function ii(){return ni||(ni=window.ShadyCSS&&window.ShadyCSS.ScopingShim),ni||null}function ri(e,t,n){var i=ii();return!(!i||"class"!==t||(i.setElementClass(e,n),0))}function oi(e,t){var n=ii();n&&n.unscopeNode(e,t)}function ai(e,t){var n=ii();if(!n)return!0;if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(n=!0,e=e.__shady_firstChild;e;e=e.__shady_nextSibling)n=n&&ai(e,t);return n}return e.nodeType!==Node.ELEMENT_NODE||n.currentScopeForNode(e)===t}function si(e){if(e.nodeType!==Node.ELEMENT_NODE)return"";var t=ii();return t?t.currentScopeForNode(e):""}function li(e,t){if(e)for(e.nodeType===Node.ELEMENT_NODE&&t(e),e=e.__shady_firstChild;e;e=e.__shady_nextSibling)e.nodeType===Node.ELEMENT_NODE&&li(e,t)}var ui=window.document,ci=mt.ha,di=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),hi=di&&di.get;function pi(e){for(var t;t=e.__shady_firstChild;)e.__shady_removeChild(t)}function fi(e){var t=bt(e);if(t&&void 0!==t.ta)for(t=e.__shady_firstChild;t;t=t.__shady_nextSibling)fi(t);(e=bt(e))&&(e.ta=void 0)}function _i(e){var t=e;if(e&&"slot"===e.localName){var n=bt(e);(n=n&&n.aa)&&(t=n.length?n[0]:_i(e.__shady_nextSibling))}return t}function gi(e,t,n){if(e=(e=bt(e))&&e.ga){if(t)if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(var i=0,r=t.childNodes.length;i<r;i++)e.addedNodes.push(t.childNodes[i]);else e.addedNodes.push(t);n&&e.removedNodes.push(n),function(e){e.g||(e.g=!0,Dt((function(){e.flush()})))}(e)}}var bi=Bt({get parentNode(){var e=bt(this);return void 0!==(e=e&&e.parentNode)?e:this.__shady_native_parentNode},get firstChild(){var e=bt(this);return void 0!==(e=e&&e.firstChild)?e:this.__shady_native_firstChild},get lastChild(){var e=bt(this);return void 0!==(e=e&&e.lastChild)?e:this.__shady_native_lastChild},get nextSibling(){var e=bt(this);return void 0!==(e=e&&e.nextSibling)?e:this.__shady_native_nextSibling},get previousSibling(){var e=bt(this);return void 0!==(e=e&&e.previousSibling)?e:this.__shady_native_previousSibling},get childNodes(){if(wt(this)){var e=bt(this);if(!e.childNodes){e.childNodes=[];for(var t=this.__shady_firstChild;t;t=t.__shady_nextSibling)e.childNodes.push(t)}var n=e.childNodes}else n=this.__shady_native_childNodes;return n.item=function(e){return n[e]},n},get parentElement(){var e=bt(this);return(e=e&&e.parentNode)&&e.nodeType!==Node.ELEMENT_NODE&&(e=null),void 0!==e?e:this.__shady_native_parentElement},get isConnected(){if(hi&&hi.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;var e=this.ownerDocument;if(null===e||$t(e,this))return!0;for(e=this;e&&!(e instanceof Document);)e=e.__shady_parentNode||(Et(e)?e.host:void 0);return!!(e&&e instanceof Document)},get textContent(){if(wt(this)){for(var e=[],t=this.__shady_firstChild;t;t=t.__shady_nextSibling)t.nodeType!==Node.COMMENT_NODE&&e.push(t.__shady_textContent);return e.join("")}return this.__shady_native_textContent},set textContent(e){switch(null==e&&(e=""),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:if(!wt(this)&&mt.D){var t=this.__shady_firstChild;(t!=this.__shady_lastChild||t&&t.nodeType!=Node.TEXT_NODE)&&pi(this),this.__shady_native_textContent=e}else pi(this),(0<e.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_insertBefore(document.createTextNode(e));break;default:this.nodeValue=e}},insertBefore:function(e,t){if(this.ownerDocument!==ui&&e.ownerDocument!==ui)return this.__shady_native_insertBefore(e,t),e;if(e===this)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(t){var n=bt(t);if(void 0!==(n=n&&n.parentNode)&&n!==this||void 0===n&&t.__shady_native_parentNode!==this)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.")}if(t===e)return e;gi(this,e);var i=[],r=(n=wr(this))?n.host.localName:si(this),o=e.__shady_parentNode;if(o){var a=si(e),s=!!n||!wr(e)||ci&&void 0!==this.__noInsertionPoint;o.__shady_removeChild(e,s)}o=!0;var l=(!ci||void 0===e.__noInsertionPoint&&void 0===this.__noInsertionPoint)&&!ai(e,r),u=n&&!e.__noInsertionPoint&&(!ci||e.nodeType===Node.DOCUMENT_FRAGMENT_NODE);return(u||l)&&(l&&(a=a||si(e)),li(e,(function(e){if(u&&"slot"===e.localName&&i.push(e),l){var t=a;ii()&&(t&&oi(e,t),(t=ii())&&t.scopeNode(e,r))}}))),i.length&&(_r(n),n.i.push.apply(n.i,c(i)),cr(n)),wt(this)&&(function(e,t,n){Qi(t,2);var i=gt(t);if(void 0!==i.firstChild&&(i.childNodes=null),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(e=e.__shady_native_firstChild;e;e=e.__shady_native_nextSibling)er(e,t,i,n);else er(e,t,i,n)}(e,this,t),(s=bt(this)).root?(o=!1,St(this)&&cr(s.root)):n&&"slot"===this.localName&&(o=!1,cr(n))),o?(n=Et(this)?this.host:this,t?(t=_i(t),n.__shady_native_insertBefore(e,t)):n.__shady_native_appendChild(e)):e.ownerDocument!==this.ownerDocument&&this.ownerDocument.adoptNode(e),e},appendChild:function(e){if(this!=e||!Et(e))return this.__shady_insertBefore(e)},removeChild:function(e,t){if(t=void 0!==t&&t,this.ownerDocument!==ui)return this.__shady_native_removeChild(e);if(e.__shady_parentNode!==this)throw Error("The node to be removed is not a child of this node: "+e);gi(this,null,e);var n=wr(e),i=n&&function(e,t){if(e.g){gr(e);var n,i=e.h;for(n in i)for(var r=i[n],o=0;o<r.length;o++){var a=r[o];if(Nt(t,a)){r.splice(o,1);var s=e.g.indexOf(a);if(0<=s&&(e.g.splice(s,1),(s=bt(a.__shady_parentNode))&&s.ka&&s.ka--),o--,s=(a=bt(a)).aa)for(var l=0;l<s.length;l++){var u=s[l],c=u.__shady_native_parentNode;c&&c.__shady_native_removeChild(u)}a.aa=[],a.assignedNodes=[],s=!0}}return s}}(n,e),r=bt(this);if(wt(this)&&(function(e,t){var n=gt(e);e===(t=gt(t)).firstChild&&(t.firstChild=n.nextSibling),e===t.lastChild&&(t.lastChild=n.previousSibling),e=n.previousSibling;var i=n.nextSibling;e&&(gt(e).nextSibling=i),i&&(gt(i).previousSibling=e),n.parentNode=n.previousSibling=n.nextSibling=void 0,void 0!==t.childNodes&&(t.childNodes=null)}(e,this),St(this))){cr(r.root);var o=!0}if(ii()&&!t&&n&&e.nodeType!==Node.TEXT_NODE){var a=si(e);li(e,(function(e){oi(e,a)}))}return fi(e),n&&((t="slot"===this.localName)&&(o=!0),(i||t)&&cr(n)),o||(o=Et(this)?this.host:this,(!r.root&&"slot"!==e.localName||o===e.__shady_native_parentNode)&&o.__shady_native_removeChild(e)),e},replaceChild:function(e,t){return this.__shady_insertBefore(e,t),this.__shady_removeChild(t),e},cloneNode:function(e){if("template"==this.localName)return this.__shady_native_cloneNode(e);var t=this.__shady_native_cloneNode(!1);if(e&&t.nodeType!==Node.ATTRIBUTE_NODE){e=this.__shady_firstChild;for(var n;e;e=e.__shady_nextSibling)n=e.__shady_cloneNode(!0),t.__shady_appendChild(n)}return t},getRootNode:function(e){if(this&&this.nodeType){var t=gt(this),n=t.ta;return void 0===n&&(Et(this)?(n=this,t.ta=n):(n=(n=this.__shady_parentNode)?n.__shady_getRootNode(e):this,document.documentElement.__shady_native_contains(this)&&(t.ta=n))),n}},contains:function(e){return Nt(this,e)}}),mi=Bt({get assignedSlot(){var e=this.__shady_parentNode;return(e=e&&e.__shady_shadowRoot)&&dr(e),(e=bt(this))&&e.assignedSlot||null}}),vi=new Map;function yi(e,t,n,i){for(i=void 0===i||i;t<e.length;t++)if("\\"===e[t]&&t<e.length-1&&"\n"!==e[t+1])t++;else{if(-1!==n.indexOf(e[t]))return t;if(i&&vi.has(e[t])){var r=vi.get(e[t]);t=yi(e,t+1,[r.end],r.sa)}}return e.length}function ki(e,t,n){var i=[];return xi(e,t,n,i),i}function xi(e,t,n,i){for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling){var r;if(r=e.nodeType===Node.ELEMENT_NODE){var o=t,a=n,s=i,l=o(r=e);l&&s.push(r),a&&a(l)?r=l:(xi(r,o,a,s),r=void 0)}if(r)break}}[["(",{end:")",sa:!0}],["[",{end:"]",sa:!0}],['"',{end:'"',sa:!1}],["'",{end:"'",sa:!1}]].forEach((function(e){var t=u(e);e=t.next().value,t=t.next().value,vi.set(e,t)}));var wi={get firstElementChild(){var e=bt(this);if(e&&void 0!==e.firstChild){for(e=this.__shady_firstChild;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_nextSibling;return e}return this.__shady_native_firstElementChild},get lastElementChild(){var e=bt(this);if(e&&void 0!==e.lastChild){for(e=this.__shady_lastChild;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_previousSibling;return e}return this.__shady_native_lastElementChild},get children(){return wt(this)?Mt(Array.prototype.filter.call(Pt(this),(function(e){return e.nodeType===Node.ELEMENT_NODE}))):this.__shady_native_children},get childElementCount(){var e=this.__shady_children;return e?e.length:0}},Ei=Bt((wi.append=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];this.__shady_insertBefore(Ft.apply(null,c(t)),null)},wi.prepend=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];this.__shady_insertBefore(Ft.apply(null,c(t)),this.__shady_firstChild)},wi.replaceChildren=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];for(;null!==(n=this.__shady_firstChild);)this.__shady_removeChild(n);this.__shady_insertBefore(Ft.apply(null,c(t)),null)},wi));function Si(e,t){function n(t,n){return(t===e||-1===n.indexOf(":scope"))&&Tt.call(t,n)}var i=function(e){function t(){if(0<i.length){for(;" "===i[i.length-1];)i.pop();n.push({La:i.filter((function(e,t){return 0==t%2})),Za:i.filter((function(e,t){return 1==t%2}))}),i.length=0}}for(var n=[],i=[],r=0;r<e.length;){var o=i[i.length-1],a=yi(e,r,[","," ",">","+","~"]),s=a===r?e[r]:e.substring(r,a);","===s?t():-1!==[void 0," ",">","+","~"].indexOf(o)&&" "===s||(" "===o&&-1!==[">","+","~"].indexOf(s)?i[i.length-1]=s:i.push(s)),r=a+(a===r?1:0)}return t(),n}(t);if(1>i.length)return[];for(t=zt(ki(e,(function(){return!0})).map((function(e){return zt(i.map((function(t){var i=t.La,r=i.length-1;return n(e,i[r])?{target:e,da:t,fa:e,index:r}:[]})))})));t.some((function(e){return 0<e.index}));)t=zt(t.map((function(e){if(0>=e.index)return e;var t=e.target,i=e.fa,r=e.da;e=e.index-1;var o=r.Za[e],a=r.La[e];if(" "===o){for(o=[],i=i.__shady_parentElement;i;i=i.__shady_parentElement)n(i,a)&&o.push({target:t,da:r,fa:i,index:e});return o}if(">"===o)return n(i=i.__shady_parentElement,a)?{target:t,da:r,fa:i,index:e}:[];if("+"===o)return(i=i.__shady_previousElementSibling)&&n(i,a)?{target:t,da:r,fa:i,index:e}:[];if("~"===o){for(o=[],i=i.__shady_previousElementSibling;i;i=i.__shady_previousElementSibling)n(i,a)&&o.push({target:t,da:r,fa:i,index:e});return o}throw Error("Unrecognized combinator: '"+o+"'.")})));return function(e){for(var t=[],n=new Set,i=(e=u(e)).next();!i.done;i=e.next())i=i.value,n.has(i)||(t.push(i),n.add(i));return t}(t.map((function(e){return e.target})))}var Ci=mt.querySelectorImplementation,Ti=Bt({querySelector:function(e){if("native"===Ci){for(var t=Array.prototype.slice.call((this instanceof ShadowRoot?this.host:this).__shady_native_querySelectorAll(e)),n=this.__shady_getRootNode(),i=(t=u(t)).next();!i.done;i=t.next())if((i=i.value).__shady_getRootNode()==n)return i;return null}if("selectorEngine"===Ci)return Si(this,e)[0]||null;if(void 0===Ci)return ki(this,(function(t){return Tt.call(t,e)}),(function(e){return!!e}))[0]||null;throw Error("Unrecognized value of ShadyDOM.querySelectorImplementation: '"+Ci+"'")},querySelectorAll:function(e,t){if(t||"native"===Ci){t=Array.prototype.slice.call((this instanceof ShadowRoot?this.host:this).__shady_native_querySelectorAll(e));var n=this.__shady_getRootNode();return Mt(t.filter((function(e){return e.__shady_getRootNode()==n})))}if("selectorEngine"===Ci)return Mt(Si(this,e));if(void 0===Ci)return Mt(ki(this,(function(t){return Tt.call(t,e)})));throw Error("Unrecognized value of ShadyDOM.querySelectorImplementation: '"+Ci+"'")}}),Ai=mt.ha&&!mt.J?Vt({},Ei):Ei;Vt(Ei,Ti);var Ii=Bt({after:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(null!==(n=this.__shady_parentNode)){var i=this.__shady_nextSibling;n.__shady_insertBefore(Ft.apply(null,c(t)),i)}},before:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];null!==(n=this.__shady_parentNode)&&n.__shady_insertBefore(Ft.apply(null,c(t)),this)},remove:function(){var e=this.__shady_parentNode;null!==e&&e.__shady_removeChild(this)},replaceWith:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(null!==(n=this.__shady_parentNode)){var i=this.__shady_nextSibling;n.__shady_removeChild(this),n.__shady_insertBefore(Ft.apply(null,c(t)),i)}}}),Oi=window.document;function Di(e,t){if("slot"===t)St(e=e.__shady_parentNode)&&cr(bt(e).root);else if("slot"===e.localName&&"name"===t&&(t=wr(e))){if(t.g){gr(t);var n=e.Ua,i=br(e);if(i!==n){var r=(n=t.h[n]).indexOf(e);0<=r&&n.splice(r,1),(n=t.h[i]||(t.h[i]=[])).push(e),1<n.length&&(t.h[i]=mr(n))}}cr(t)}}var $i=Bt({get previousElementSibling(){var e=bt(this);if(e&&void 0!==e.previousSibling){for(e=this.__shady_previousSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_previousSibling;return e}return this.__shady_native_previousElementSibling},get nextElementSibling(){var e=bt(this);if(e&&void 0!==e.nextSibling){for(e=this.__shady_nextSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_nextSibling;return e}return this.__shady_native_nextElementSibling},get slot(){return this.getAttribute("slot")},set slot(e){this.__shady_setAttribute("slot",e)},get className(){return this.getAttribute("class")||""},set className(e){this.__shady_setAttribute("class",e)},setAttribute:function(e,t){this.ownerDocument!==Oi?this.__shady_native_setAttribute(e,t):ri(this,e,t)||(this.__shady_native_setAttribute(e,t),Di(this,e))},removeAttribute:function(e){this.ownerDocument!==Oi?this.__shady_native_removeAttribute(e):ri(this,e,"")?""===this.getAttribute(e)&&this.__shady_native_removeAttribute(e):(this.__shady_native_removeAttribute(e),Di(this,e))},toggleAttribute:function(e,t){return this.ownerDocument!==Oi?this.__shady_native_toggleAttribute(e,t):ri(this,e,"")?""!==this.getAttribute(e)||t?void 0:this.__shady_native_toggleAttribute(e,t):(t=this.__shady_native_toggleAttribute(e,t),Di(this,e),t)}});mt.ha||Yn.forEach((function(e){$i[e]=Zn(e)}));var Ni=Bt({attachShadow:function(e){if(!this)throw Error("Must provide a host.");if(!e)throw Error("Not enough arguments.");if(e.shadyUpgradeFragment&&!mt.Ra){var t=e.shadyUpgradeFragment;if(t.__proto__=ShadowRoot.prototype,ur(t,this,e),tr(t,t),e=t.__noInsertionPoint?null:t.querySelectorAll("slot"),t.__noInsertionPoint=void 0,e&&e.length){var n=t;_r(n),n.i.push.apply(n.i,c(e)),cr(t)}t.host.__shady_native_appendChild(t)}else t=new lr(or,this,e);return this.__CE_shadowRoot=t},get shadowRoot(){var e=bt(this);return e&&e.lb||null}});Vt($i,Ni);var Mi=document.implementation.createHTMLDocument("inert"),Li=Bt({get innerHTML(){return wt(this)?nn("template"===this.localName?this.content:this,Pt):this.__shady_native_innerHTML},set innerHTML(e){if("template"===this.localName)this.__shady_native_innerHTML=e;else{pi(this);var t=this.localName||"div";for(t=this.namespaceURI&&this.namespaceURI!==Mi.namespaceURI?Mi.createElementNS(this.namespaceURI,t):Mi.createElement(t),mt.D?t.__shady_native_innerHTML=e:t.innerHTML=e;e=t.__shady_firstChild;)this.__shady_insertBefore(e)}}}),Pi=Bt({blur:function(){var e=bt(this);(e=(e=e&&e.root)&&e.activeElement)?e.__shady_blur():this.__shady_native_blur()}});mt.ha||Jn.forEach((function(e){Pi[e]=Zn(e)}));var Ri=Bt({assignedNodes:function(e){if("slot"===this.localName){var t=this.__shady_getRootNode();return t&&Et(t)&&dr(t),(t=bt(this))&&(e&&e.flatten?t.aa:t.assignedNodes)||[]}},addEventListener:function(e,t,n){if("slot"!==this.localName||"slotchange"===e)Un.call(this,e,t,n);else{"object"!==i(n)&&(n={capture:!!n});var r=this.__shady_parentNode;if(!r)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");n.U=this,r.__shady_addEventListener(e,t,n)}},removeEventListener:function(e,t,n){if("slot"!==this.localName||"slotchange"===e)Fn.call(this,e,t,n);else{"object"!==i(n)&&(n={capture:!!n});var r=this.__shady_parentNode;if(!r)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");n.U=this,r.__shady_removeEventListener(e,t,n)}}}),ji=Bt({getElementById:function(e){return""===e?null:ki(this,(function(t){return t.id==e}),(function(e){return!!e}))[0]||null}});function Hi(e,t){for(var n;t&&!e.has(n=t.__shady_getRootNode());)t=n.host;return t}var Bi="__shady_native_"+xt(),Vi=Bt({get activeElement(){var e=mt.D?document.__shady_native_activeElement:document.activeElement;if(!e||!e.nodeType)return null;var t=!!Et(this);if(!(this===document||t&&this.host!==e&&this.host.__shady_native_contains(e)))return null;for(t=wr(e);t&&t!==this;)t=wr(e=t.host);return this===document?t?null:e:t===this?e:null},elementsFromPoint:function(e,t){if(e=document[Bi](e,t),this===document&&mt.useNativeDocumentEFP)return e;e=[].slice.call(e),t=function(e){var t=new Set;for(t.add(e);Et(e)&&e.host;)e=e.host.__shady_getRootNode(),t.add(e);return t}(this);for(var n=new Set,i=0;i<e.length;i++)n.add(Hi(t,e[i]));var r=[];return n.forEach((function(e){return r.push(e)})),r},elementFromPoint:function(e,t){return this===document&&mt.useNativeDocumentEFP?this.__shady_native_elementFromPoint(e,t):this.__shady_elementsFromPoint(e,t)[0]||null}}),Ui=window.document,Fi=Bt({importNode:function(e,t){if(e.ownerDocument!==Ui||"template"===e.localName)return this.__shady_native_importNode(e,t);var n=this.__shady_native_importNode(e,!1);if(t)for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling)t=this.__shady_importNode(e,!0),n.__shady_appendChild(t);return n}}),zi=Bt({dispatchEvent:Vn,addEventListener:Un.bind(window),removeEventListener:Fn.bind(window)}),Gi={};Object.getOwnPropertyDescriptor(HTMLElement.prototype,"parentElement")&&(Gi.parentElement=bi.parentElement),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"contains")&&(Gi.contains=bi.contains),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"children")&&(Gi.children=Ei.children),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML")&&(Gi.innerHTML=Li.innerHTML),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"className")&&(Gi.className=$i.className);var Wi={EventTarget:[ti],Node:[bi,window.EventTarget?null:ti],Text:[mi],Comment:[mi],CDATASection:[mi],ProcessingInstruction:[mi],Element:[$i,Ei,Ii,mi,!mt.D||"innerHTML"in Element.prototype?Li:null,window.HTMLSlotElement?null:Ri],HTMLElement:[Pi,Gi],HTMLSlotElement:[Ri],DocumentFragment:[Ai,ji],Document:[Fi,Ai,ji,Vi],Window:[zi],CharacterData:[Ii],XMLHttpRequest:[window.EventTarget?null:ti]},qi=mt.D?null:["innerHTML","textContent"];function Ki(e,t,n,i){t.forEach((function(t){return e&&t&&jt(e,t,n,i)}))}function Yi(e){var t,n=e?null:qi;for(t in Wi)Ki(window[t]&&window[t].prototype,Wi[t],e,n)}function Ji(e){return e.__shady_protoIsPatched=!0,Ki(e,Wi.EventTarget),Ki(e,Wi.Node),Ki(e,Wi.Element),Ki(e,Wi.HTMLElement),Ki(e,Wi.HTMLSlotElement),e}["Text","Comment","CDATASection","ProcessingInstruction"].forEach((function(e){var t=window[e],n=Object.create(t.prototype);n.__shady_protoIsPatched=!0,Ki(n,Wi.EventTarget),Ki(n,Wi.Node),Wi[e]&&Ki(n,Wi[e]),t.prototype.__shady_patchedProto=n}));var Zi=mt.Da,Xi=mt.D;function Qi(e,t){if(Zi&&!e.__shady_protoIsPatched&&!Et(e)){var n=Object.getPrototypeOf(e),i=n.hasOwnProperty("__shady_patchedProto")&&n.__shady_patchedProto;i||(Ji(i=Object.create(n)),n.__shady_patchedProto=i),Object.setPrototypeOf(e,i)}Xi||(1===t?kn(e):2===t&&xn(e))}function er(e,t,n,i){Qi(e,1),i=i||null;var r=gt(e),o=i?gt(i):null;r.previousSibling=i?o.previousSibling:t.__shady_lastChild,(o=bt(r.previousSibling))&&(o.nextSibling=e),(o=bt(r.nextSibling=i))&&(o.previousSibling=e),r.parentNode=t,i?i===n.firstChild&&(n.firstChild=e):(n.lastChild=e,n.firstChild||(n.firstChild=e)),n.childNodes=null}function tr(e,t){var n=gt(e);if(t||void 0===n.firstChild){n.childNodes=null;var i=n.firstChild=e.__shady_native_firstChild;for(n.lastChild=e.__shady_native_lastChild,Qi(e,2),n=i,i=void 0;n;n=n.__shady_native_nextSibling){var r=gt(n);r.parentNode=t||e,r.nextSibling=n.__shady_native_nextSibling,r.previousSibling=i||null,i=n,Qi(n,1)}}}var nr=Bt({addEventListener:function(e,t,n){"object"!==i(n)&&(n={capture:!!n}),n.U=n.U||this,this.host.__shady_addEventListener(e,t,n)},removeEventListener:function(e,t,n){"object"!==i(n)&&(n={capture:!!n}),n.U=n.U||this,this.host.__shady_removeEventListener(e,t,n)}});function ir(e,t){jt(e,nr,t),jt(e,Vi,t),jt(e,Li,t),jt(e,Ei,t),mt.J&&!t?(jt(e,bi,t),jt(e,ji,t)):mt.D||(jt(e,mn),jt(e,gn),jt(e,bn))}var rr,or={},ar=mt.deferConnectionCallbacks&&"loading"===document.readyState;function sr(e){var t=[];do{t.unshift(e)}while(e=e.__shady_parentNode);return t}function lr(e,t,n){if(e!==or)throw new TypeError("Illegal constructor");this.g=null,ur(this,t,n)}function ur(e,t,n){if(e.host=t,e.mode=n&&n.mode,tr(e.host),(t=gt(e.host)).root=e,t.lb="closed"!==e.mode?e:null,(t=gt(e)).firstChild=t.lastChild=t.parentNode=t.nextSibling=t.previousSibling=null,mt.preferPerformance)for(;t=e.host.__shady_native_firstChild;)e.host.__shady_native_removeChild(t);else cr(e)}function cr(e){e.Y||(e.Y=!0,qt((function(){return dr(e)})))}function dr(e){var t;if(t=e.Y){for(var n;e;)e.Y&&(n=e),Et(e=(t=e).host.__shady_getRootNode())&&(t=bt(t.host))&&0<t.ka||(e=void 0);t=n}(n=t)&&n._renderSelf()}function hr(e,t,n){var i=gt(t),r=i.xa;i.xa=null,n||(n=(e=e.h[t.__shady_slot||"__catchall"])&&e[0]),n?(gt(n).assignedNodes.push(t),i.assignedSlot=n):i.assignedSlot=void 0,r!==i.assignedSlot&&i.assignedSlot&&(gt(i.assignedSlot).Aa=!0)}function pr(e,t,n){for(var i=0,r=void 0;i<n.length&&(r=n[i]);i++)if("slot"==r.localName){var o=bt(r).assignedNodes;o&&o.length&&pr(e,t,o)}else t.push(n[i])}function fr(e,t){t.__shady_native_dispatchEvent(new Event("slotchange")),(t=bt(t)).assignedSlot&&fr(e,t.assignedSlot)}function _r(e){e.i=e.i||[],e.g=e.g||[],e.h=e.h||{}}function gr(e){if(e.i&&e.i.length){for(var t,n=e.i,i=0;i<n.length;i++){var r=n[i];tr(r);var o=r.__shady_parentNode;tr(o),(o=bt(o)).ka=(o.ka||0)+1,o=br(r),e.h[o]?((t=t||{})[o]=!0,e.h[o].push(r)):e.h[o]=[r],e.g.push(r)}if(t)for(var a in t)e.h[a]=mr(e.h[a]);e.i=[]}}function br(e){var t=e.name||e.getAttribute("name")||"__catchall";return e.Ua=t}function mr(e){return e.sort((function(e,t){e=sr(e);for(var n=sr(t),i=0;i<e.length;i++){t=e[i];var r=n[i];if(t!==r)return(e=Pt(t.__shady_parentNode)).indexOf(t)-e.indexOf(r)}}))}function vr(e){return gr(e),!(!e.g||!e.g.length)}if(lr.prototype._renderSelf=function(){var e=ar;if(ar=!0,this.Y=!1,this.g){gr(this);for(var t,n=0;n<this.g.length;n++){var i=bt(t=this.g[n]),r=i.assignedNodes;if(i.assignedNodes=[],i.aa=[],i.Ja=r)for(i=0;i<r.length;i++){var o=bt(r[i]);o.xa=o.assignedSlot,o.assignedSlot===t&&(o.assignedSlot=null)}}for(n=this.host.__shady_firstChild;n;n=n.__shady_nextSibling)hr(this,n);for(n=0;n<this.g.length;n++){if(!(r=bt(t=this.g[n])).assignedNodes.length)for(i=t.__shady_firstChild;i;i=i.__shady_nextSibling)hr(this,i,t);if((i=(i=bt(t.__shady_parentNode))&&i.root)&&(vr(i)||i.Y)&&i._renderSelf(),pr(this,r.aa,r.assignedNodes),i=r.Ja){for(o=0;o<i.length;o++)bt(i[o]).xa=null;r.Ja=null,i.length>r.assignedNodes.length&&(r.Aa=!0)}r.Aa&&(r.Aa=!1,fr(this,t))}for(t=this.g,n=[],r=0;r<t.length;r++)(o=bt(i=t[r].__shady_parentNode))&&o.root||!(0>n.indexOf(i))||n.push(i);for(t=0;t<n.length;t++){for(r=(o=n[t])===this?this.host:o,i=[],o=o.__shady_firstChild;o;o=o.__shady_nextSibling)if("slot"==o.localName)for(var a=bt(o).aa,s=0;s<a.length;s++)i.push(a[s]);else i.push(o);o=Lt(r),a=Qn(i,i.length,o,o.length);for(var l=s=0,u=void 0;s<a.length&&(u=a[s]);s++){for(var c=0,d=void 0;c<u.ia.length&&(d=u.ia[c]);c++)d.__shady_native_parentNode===r&&r.__shady_native_removeChild(d),o.splice(u.index+l,1);l-=u.pa}for(l=0,u=void 0;l<a.length&&(u=a[l]);l++)for(s=o[u.index],c=u.index;c<u.index+u.pa;c++)d=i[c],r.__shady_native_insertBefore(d,s),o.splice(c,0,d)}}if(!mt.preferPerformance&&!this.Ia)for(n=this.host.__shady_firstChild;n;n=n.__shady_nextSibling)t=bt(n),n.__shady_native_parentNode!==this.host||"slot"!==n.localName&&t.assignedSlot||this.host.__shady_native_removeChild(n);this.Ia=!0,ar=e,rr&&rr()},function(e){e.__proto__=DocumentFragment.prototype,ir(e,"__shady_"),ir(e),Object.defineProperties(e,{nodeType:{value:Node.DOCUMENT_FRAGMENT_NODE,configurable:!0},nodeName:{value:"#document-fragment",configurable:!0},nodeValue:{value:null,configurable:!0}}),["localName","namespaceURI","prefix"].forEach((function(t){Object.defineProperty(e,t,{value:void 0,configurable:!0})})),["ownerDocument","baseURI","isConnected"].forEach((function(t){Object.defineProperty(e,t,{get:function(){return this.host[t]},configurable:!0})}))}(lr.prototype),window.customElements&&window.customElements.define&&mt.Ba&&!mt.preferPerformance){var yr=new Map;rr=function(){var e=[];yr.forEach((function(t,n){e.push([n,t])})),yr.clear();for(var t=0;t<e.length;t++){var n=e[t][0];e[t][1]?n.__shadydom_connectedCallback():n.__shadydom_disconnectedCallback()}},ar&&document.addEventListener("readystatechange",(function(){ar=!1,rr()}),{once:!0});var kr=window.customElements.define,xr=function(e,t){var n=t.prototype.connectedCallback,i=t.prototype.disconnectedCallback;kr.call(window.customElements,e,function(e,t,n){var i=0,r="__isConnected"+i++;return(t||n)&&(e.prototype.connectedCallback=e.prototype.__shadydom_connectedCallback=function(){ar?yr.set(this,!0):this[r]||(this[r]=!0,t&&t.call(this))},e.prototype.disconnectedCallback=e.prototype.__shadydom_disconnectedCallback=function(){ar?this.isConnected||yr.set(this,!1):this[r]&&(this[r]=!1,n&&n.call(this))}),e}(t,n,i)),t.prototype.connectedCallback=n,t.prototype.disconnectedCallback=i};window.customElements.define=xr,Object.defineProperty(window.CustomElementRegistry.prototype,"define",{value:xr,configurable:!0})}function wr(e){if(Et(e=e.__shady_getRootNode()))return e}function Er(e){this.node=e}function Sr(e){Object.defineProperty(Er.prototype,e,{get:function(){return this.node["__shady_"+e]},set:function(t){this.node["__shady_"+e]=t},configurable:!0})}(e=Er.prototype).addEventListener=function(e,t,n){return this.node.__shady_addEventListener(e,t,n)},e.removeEventListener=function(e,t,n){return this.node.__shady_removeEventListener(e,t,n)},e.appendChild=function(e){return this.node.__shady_appendChild(e)},e.insertBefore=function(e,t){return this.node.__shady_insertBefore(e,t)},e.removeChild=function(e){return this.node.__shady_removeChild(e)},e.replaceChild=function(e,t){return this.node.__shady_replaceChild(e,t)},e.cloneNode=function(e){return this.node.__shady_cloneNode(e)},e.getRootNode=function(e){return this.node.__shady_getRootNode(e)},e.contains=function(e){return this.node.__shady_contains(e)},e.dispatchEvent=function(e){return this.node.__shady_dispatchEvent(e)},e.setAttribute=function(e,t){this.node.__shady_setAttribute(e,t)},e.getAttribute=function(e){return this.node.__shady_native_getAttribute(e)},e.hasAttribute=function(e){return this.node.__shady_native_hasAttribute(e)},e.removeAttribute=function(e){this.node.__shady_removeAttribute(e)},e.toggleAttribute=function(e,t){return this.node.__shady_toggleAttribute(e,t)},e.attachShadow=function(e){return this.node.__shady_attachShadow(e)},e.focus=function(){this.node.__shady_native_focus()},e.blur=function(){this.node.__shady_blur()},e.importNode=function(e,t){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_importNode(e,t)},e.getElementById=function(e){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_getElementById(e)},e.elementsFromPoint=function(e,t){return this.node.__shady_elementsFromPoint(e,t)},e.elementFromPoint=function(e,t){return this.node.__shady_elementFromPoint(e,t)},e.querySelector=function(e){return this.node.__shady_querySelector(e)},e.querySelectorAll=function(e,t){return this.node.__shady_querySelectorAll(e,t)},e.assignedNodes=function(e){if("slot"===this.node.localName)return this.node.__shady_assignedNodes(e)},e.append=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_append.apply(this.node,c(t))},e.prepend=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_prepend.apply(this.node,c(t))},e.after=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_after.apply(this.node,c(t))},e.before=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_before.apply(this.node,c(t))},e.remove=function(){return this.node.__shady_remove()},e.replaceWith=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_replaceWith.apply(this.node,c(t))},a.Object.defineProperties(Er.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){if(Et(this.node)||this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_activeElement}},_activeElement:{configurable:!0,enumerable:!0,get:function(){return this.activeElement}},host:{configurable:!0,enumerable:!0,get:function(){if(Et(this.node))return this.node.host}},parentNode:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_parentNode}},firstChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_firstChild}},lastChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_lastChild}},nextSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_nextSibling}},previousSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_previousSibling}},childNodes:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_childNodes}},parentElement:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_parentElement}},firstElementChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_firstElementChild}},lastElementChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_lastElementChild}},nextElementSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_nextElementSibling}},previousElementSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_previousElementSibling}},children:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_children}},childElementCount:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_childElementCount}},shadowRoot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_shadowRoot}},assignedSlot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_assignedSlot}},isConnected:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_isConnected}},innerHTML:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_innerHTML},set:function(e){this.node.__shady_innerHTML=e}},textContent:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_textContent},set:function(e){this.node.__shady_textContent=e}},slot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_slot},set:function(e){this.node.__shady_slot=e}},className:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_className},set:function(e){this.node.__shady_className=e}}}),Yn.forEach((function(e){return Sr(e)})),Jn.forEach((function(e){return Sr(e)}));var Cr=new WeakMap;function Tr(e){if(Et(e)||e instanceof Er)return e;var t=Cr.get(e);return t||(t=new Er(e),Cr.set(e,t)),t}if(mt.Ba){var Ar=mt.D?function(e){return e}:function(e){return xn(e),kn(e),e},Ir={inUse:mt.Ba,patch:Ar,isShadyRoot:Et,enqueue:qt,flush:Kt,flushInitial:function(e){!e.Ia&&e.Y&&dr(e)},settings:mt,filterMutations:function(e,t){var n=t.getRootNode();return e.map((function(e){var t=n===e.target.getRootNode();if(t&&e.addedNodes){if(t=[].slice.call(e.addedNodes).filter((function(e){return n===e.getRootNode()})),t.length)return e=Object.create(e),Object.defineProperty(e,"addedNodes",{value:t,configurable:!0}),e}else if(t)return e})).filter((function(e){return e}))},observeChildren:function(e,t){var n=gt(e);n.ga||(n.ga=new Yt),n.ga.qa.add(t);var i=n.ga;return{Va:t,X:i,Wa:e,takeRecords:function(){return i.takeRecords()}}},unobserveChildren:function(e){var t=e&&e.X;t&&(t.qa.delete(e.Va),t.qa.size||(gt(e.Wa).ga=null))},deferConnectionCallbacks:mt.deferConnectionCallbacks,preferPerformance:mt.preferPerformance,handlesDynamicScoping:!0,wrap:mt.J?Tr:Ar,wrapIfNeeded:!0===mt.J?Tr:function(e){return e},Wrapper:Er,composedPath:function(e){return e.__composedPath||(e.__composedPath=On(e.target,!0)),e.__composedPath},noPatch:mt.J,patchOnDemand:mt.Da,nativeMethods:on,nativeTree:an,patchElementProto:Ji,querySelectorImplementation:mt.querySelectorImplementation};window.ShadyDOM=Ir,function(){var e=["dispatchEvent","addEventListener","removeEventListener"];window.EventTarget?(un(window.EventTarget.prototype,e),void 0===window.__shady_native_addEventListener&&un(Window.prototype,e)):(un(Node.prototype,e),un(Window.prototype,e),un(XMLHttpRequest.prototype,e)),rn?un(Node.prototype,"parentNode firstChild lastChild previousSibling nextSibling childNodes parentElement textContent".split(" ")):ln(Node.prototype,{parentNode:{get:function(){return cn.currentNode=this,cn.parentNode()}},firstChild:{get:function(){return cn.currentNode=this,cn.firstChild()}},lastChild:{get:function(){return cn.currentNode=this,cn.lastChild()}},previousSibling:{get:function(){return cn.currentNode=this,cn.previousSibling()}},nextSibling:{get:function(){return cn.currentNode=this,cn.nextSibling()}},childNodes:{get:function(){var e=[];cn.currentNode=this;for(var t=cn.firstChild();t;)e.push(t),t=cn.nextSibling();return e}},parentElement:{get:function(){return dn.currentNode=this,dn.parentNode()}},textContent:{get:function(){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(var e,t=document.createTreeWalker(this,NodeFilter.SHOW_TEXT,null,!1),n="";e=t.nextNode();)n+=e.nodeValue;return n;default:return this.nodeValue}},set:function(e){switch(null==e&&(e=""),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:pn(this),(0<e.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_native_insertBefore(document.createTextNode(e),void 0);break;default:this.nodeValue=e}}}}),un(Node.prototype,"appendChild insertBefore removeChild replaceChild cloneNode contains".split(" ")),un(HTMLElement.prototype,["parentElement","contains"]),e={firstElementChild:{get:function(){return dn.currentNode=this,dn.firstChild()}},lastElementChild:{get:function(){return dn.currentNode=this,dn.lastChild()}},children:{get:function(){var e=[];dn.currentNode=this;for(var t=dn.firstChild();t;)e.push(t),t=dn.nextSibling();return Mt(e)}},childElementCount:{get:function(){return this.children?this.children.length:0}}},rn?(un(Element.prototype,fn),un(Element.prototype,["previousElementSibling","nextElementSibling","innerHTML","className"]),un(HTMLElement.prototype,["children","innerHTML","className"])):(ln(Element.prototype,e),ln(Element.prototype,{previousElementSibling:{get:function(){return dn.currentNode=this,dn.previousSibling()}},nextElementSibling:{get:function(){return dn.currentNode=this,dn.nextSibling()}},innerHTML:{get:function(){return nn(this,Lt)},set:function(e){var t="template"===this.localName?this.content:this;pn(t);var n=this.localName||"div";for((n=this.namespaceURI&&this.namespaceURI!==hn.namespaceURI?hn.createElementNS(this.namespaceURI,n):hn.createElement(n)).innerHTML=e,e="template"===this.localName?n.content:n;n=e.__shady_native_firstChild;)t.__shady_native_insertBefore(n,void 0)}},className:{get:function(){return this.getAttribute("class")||""},set:function(e){this.setAttribute("class",e)}}})),un(Element.prototype,"setAttribute getAttribute hasAttribute removeAttribute toggleAttribute focus blur".split(" ")),un(Element.prototype,_n),un(HTMLElement.prototype,["focus","blur"]),window.HTMLTemplateElement&&un(window.HTMLTemplateElement.prototype,["innerHTML"]),rn?un(DocumentFragment.prototype,fn):ln(DocumentFragment.prototype,e),un(DocumentFragment.prototype,_n),rn?(un(Document.prototype,fn),un(Document.prototype,["activeElement"])):ln(Document.prototype,e),un(Document.prototype,["importNode","getElementById","elementFromPoint",xt()]),un(Document.prototype,_n)}(),Yi("__shady_"),Object.defineProperty(document,"_activeElement",Vi.activeElement),jt(Window.prototype,zi,"__shady_"),mt.J?mt.Da&&jt(Element.prototype,Ni):(Yi(),function(){if(!En&&Object.getOwnPropertyDescriptor(Event.prototype,"isTrusted")){var e=function(){var e=new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0});this.__shady_dispatchEvent(e)};Element.prototype.click?Element.prototype.click=e:HTMLElement.prototype.click&&(HTMLElement.prototype.click=e)}}()),function(){for(var e in Ln)window.__shady_native_addEventListener(e,(function(e){e.__target||(Gn(e),Hn(e))}),!0)}(),window.Event=Wn,window.CustomEvent=qn,window.MouseEvent=Kn,window.ShadowRoot=lr}var Or=window.Document.prototype.createElement,Dr=window.Document.prototype.createElementNS,$r=window.Document.prototype.importNode,Nr=window.Document.prototype.prepend,Mr=window.Document.prototype.append,Lr=window.DocumentFragment.prototype.prepend,Pr=window.DocumentFragment.prototype.append,Rr=window.Node.prototype.cloneNode,jr=window.Node.prototype.appendChild,Hr=window.Node.prototype.insertBefore,Br=window.Node.prototype.removeChild,Vr=window.Node.prototype.replaceChild,Ur=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),Fr=window.Element.prototype.attachShadow,zr=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),Gr=window.Element.prototype.getAttribute,Wr=window.Element.prototype.setAttribute,qr=window.Element.prototype.removeAttribute,Kr=window.Element.prototype.toggleAttribute,Yr=window.Element.prototype.getAttributeNS,Jr=window.Element.prototype.setAttributeNS,Zr=window.Element.prototype.removeAttributeNS,Xr=window.Element.prototype.insertAdjacentElement,Qr=window.Element.prototype.insertAdjacentHTML,eo=window.Element.prototype.prepend,to=window.Element.prototype.append,no=window.Element.prototype.before,io=window.Element.prototype.after,ro=window.Element.prototype.replaceWith,oo=window.Element.prototype.remove,ao=window.HTMLElement,so=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),lo=window.HTMLElement.prototype.insertAdjacentElement,uo=window.HTMLElement.prototype.insertAdjacentHTML,co=new Set;function ho(e){var t=co.has(e);return e=/^[a-z][.0-9_a-z]*-[-.0-9_a-z]*$/.test(e),!t&&e}"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ").forEach((function(e){return co.add(e)}));var po=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);function fo(e){var t=e.isConnected;if(void 0!==t)return t;if(po(e))return!0;for(;e&&!(e.__CE_isImportDocument||e instanceof Document);)e=e.parentNode||(window.ShadowRoot&&e instanceof ShadowRoot?e.host:void 0);return!(!e||!(e.__CE_isImportDocument||e instanceof Document))}function _o(e){var t=e.children;if(t)return Array.prototype.slice.call(t);for(t=[],e=e.firstChild;e;e=e.nextSibling)e.nodeType===Node.ELEMENT_NODE&&t.push(e);return t}function go(e,t){for(;t&&t!==e&&!t.nextSibling;)t=t.parentNode;return t&&t!==e?t.nextSibling:null}function bo(e,t,n){for(var i=e;i;){if(i.nodeType===Node.ELEMENT_NODE){var r=i;t(r);var o=r.localName;if("link"===o&&"import"===r.getAttribute("rel")){if(i=r.import,void 0===n&&(n=new Set),i instanceof Node&&!n.has(i))for(n.add(i),i=i.firstChild;i;i=i.nextSibling)bo(i,t,n);i=go(e,r);continue}if("template"===o){i=go(e,r);continue}if(r=r.__CE_shadowRoot)for(r=r.firstChild;r;r=r.nextSibling)bo(r,t,n)}i=i.firstChild?i.firstChild:go(e,i)}}function mo(){var e=!(null==jo||!jo.noDocumentConstructionObserver),t=!(null==jo||!jo.shadyDomFastWalk);this.ca=[],this.g=[],this.W=!1,this.shadyDomFastWalk=t,this.sb=!e}function vo(e,t,n,i){var r=window.ShadyDOM;if(e.shadyDomFastWalk&&r&&r.inUse){if(t.nodeType===Node.ELEMENT_NODE&&n(t),t.querySelectorAll)for(e=r.nativeMethods.querySelectorAll.call(t,"*"),t=0;t<e.length;t++)n(e[t])}else bo(t,n,i)}function yo(e,t){e.W&&vo(e,t,(function(t){return ko(e,t)}))}function ko(e,t){if(e.W&&!t.__CE_patched){t.__CE_patched=!0;for(var n=0;n<e.ca.length;n++)e.ca[n](t);for(n=0;n<e.g.length;n++)e.g[n](t)}}function xo(e,t){var n=[];for(vo(e,t,(function(e){return n.push(e)})),t=0;t<n.length;t++){var i=n[t];1===i.__CE_state?e.connectedCallback(i):So(e,i)}}function wo(e,t){var n=[];for(vo(e,t,(function(e){return n.push(e)})),t=0;t<n.length;t++){var i=n[t];1===i.__CE_state&&e.disconnectedCallback(i)}}function Eo(e,t,n){var i=(n=void 0===n?{}:n).tb,r=n.upgrade||function(t){return So(e,t)},o=[];for(vo(e,t,(function(t){if(e.W&&ko(e,t),"link"===t.localName&&"import"===t.getAttribute("rel")){var n=t.import;n instanceof Node&&(n.__CE_isImportDocument=!0,n.__CE_registry=document.__CE_registry),n&&"complete"===n.readyState?n.__CE_documentLoadHandled=!0:t.addEventListener("load",(function(){var n=t.import;if(!n.__CE_documentLoadHandled){n.__CE_documentLoadHandled=!0;var o=new Set;i&&(i.forEach((function(e){return o.add(e)})),o.delete(n)),Eo(e,n,{tb:o,upgrade:r})}}))}else o.push(t)}),i),t=0;t<o.length;t++)r(o[t])}function So(e,t){try{var n=t.ownerDocument,i=n.__CE_registry,r=i&&(n.defaultView||n.__CE_isImportDocument)?Lo(i,t.localName):void 0;if(r&&void 0===t.__CE_state){r.constructionStack.push(t);try{try{if(new r.constructorFunction!==t)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{r.constructionStack.pop()}}catch(e){throw t.__CE_state=2,e}if(t.__CE_state=1,t.__CE_definition=r,r.attributeChangedCallback&&t.hasAttributes()){var o=r.observedAttributes;for(r=0;r<o.length;r++){var a=o[r],s=t.getAttribute(a);null!==s&&e.attributeChangedCallback(t,a,null,s,null)}}fo(t)&&e.connectedCallback(t)}}catch(e){To(e)}}function Co(e,t,n,i){var r=t.__CE_registry;if(r&&(null===i||"http://www.w3.org/1999/xhtml"===i)&&(r=Lo(r,n)))try{var o=new r.constructorFunction;if(void 0===o.__CE_state||void 0===o.__CE_definition)throw Error("Failed to construct '"+n+"': The returned value was not constructed with the HTMLElement constructor.");if("http://www.w3.org/1999/xhtml"!==o.namespaceURI)throw Error("Failed to construct '"+n+"': The constructed element's namespace must be the HTML namespace.");if(o.hasAttributes())throw Error("Failed to construct '"+n+"': The constructed element must not have any attributes.");if(null!==o.firstChild)throw Error("Failed to construct '"+n+"': The constructed element must not have any children.");if(null!==o.parentNode)throw Error("Failed to construct '"+n+"': The constructed element must not have a parent node.");if(o.ownerDocument!==t)throw Error("Failed to construct '"+n+"': The constructed element's owner document is incorrect.");if(o.localName!==n)throw Error("Failed to construct '"+n+"': The constructed element's local name is incorrect.");return o}catch(r){return To(r),t=null===i?Or.call(t,n):Dr.call(t,i,n),Object.setPrototypeOf(t,HTMLUnknownElement.prototype),t.__CE_state=2,t.__CE_definition=void 0,ko(e,t),t}return ko(e,t=null===i?Or.call(t,n):Dr.call(t,i,n)),t}function To(e){var t="",n="",i=0,r=0;e instanceof Error?(t=e.message,n=e.sourceURL||e.fileName||"",i=e.line||e.lineNumber||0,r=e.column||e.columnNumber||0):t="Uncaught "+String(e);var o=void 0;void 0===ErrorEvent.prototype.initErrorEvent?o=new ErrorEvent("error",{cancelable:!0,message:t,filename:n,lineno:i,colno:r,error:e}):((o=document.createEvent("ErrorEvent")).initErrorEvent("error",!1,!0,t,n,i),o.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{configurable:!0,get:function(){return!0}})}),void 0===o.error&&Object.defineProperty(o,"error",{configurable:!0,enumerable:!0,get:function(){return e}}),window.dispatchEvent(o),o.defaultPrevented||console.error(e)}function Ao(){var e=this;this.I=void 0,this.Ka=new Promise((function(t){e.g=t}))}function Io(e){var t=document;this.X=void 0,this.S=e,this.g=t,Eo(this.S,this.g),"loading"===this.g.readyState&&(this.X=new MutationObserver(this.h.bind(this)),this.X.observe(this.g,{childList:!0,subtree:!0}))}function Oo(e){e.X&&e.X.disconnect()}function Do(e){this.ma=new Map,this.na=new Map,this.Fa=new Map,this.wa=!1,this.za=new Map,this.la=function(e){return e()},this.V=!1,this.oa=[],this.S=e,this.Ga=e.sb?new Io(e):void 0}function $o(e,t){if(!ho(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(Lo(e,t))throw Error("A custom element with name '"+t+"' has already been defined.");if(e.wa)throw Error("A custom element is already being defined.")}function No(e,t,n){var i;e.wa=!0;try{var r=n.prototype;if(!(r instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var o=function(e){var t=r[e];if(void 0!==t&&!(t instanceof Function))throw Error("The '"+e+"' callback must be a function.");return t},a=o("connectedCallback"),s=o("disconnectedCallback"),l=o("adoptedCallback"),u=(i=o("attributeChangedCallback"))&&n.observedAttributes||[]}catch(e){throw e}finally{e.wa=!1}return n={localName:t,constructorFunction:n,connectedCallback:a,disconnectedCallback:s,adoptedCallback:l,attributeChangedCallback:i,observedAttributes:u,constructionStack:[]},e.na.set(t,n),e.Fa.set(n.constructorFunction,n),n}function Mo(e){if(!1!==e.V){e.V=!1;for(var t=[],n=e.oa,i=new Map,r=0;r<n.length;r++)i.set(n[r],[]);for(Eo(e.S,document,{upgrade:function(n){if(void 0===n.__CE_state){var r=n.localName,o=i.get(r);o?o.push(n):e.na.has(r)&&t.push(n)}}}),r=0;r<t.length;r++)So(e.S,t[r]);for(r=0;r<n.length;r++){for(var o=n[r],a=i.get(o),s=0;s<a.length;s++)So(e.S,a[s]);(o=e.za.get(o))&&o.resolve(void 0)}n.length=0}}function Lo(e,t){var n=e.na.get(t);if(n)return n;if(n=e.ma.get(t)){e.ma.delete(t);try{return No(e,t,n())}catch(e){To(e)}}}function Po(e,t,n){function i(t){return function(n){for(var i=[],r=0;r<arguments.length;++r)i[r]=arguments[r];r=[];for(var o=[],a=0;a<i.length;a++){var s=i[a];if(s instanceof Element&&fo(s)&&o.push(s),s instanceof DocumentFragment)for(s=s.firstChild;s;s=s.nextSibling)r.push(s);else r.push(s)}for(t.apply(this,i),i=0;i<o.length;i++)wo(e,o[i]);if(fo(this))for(i=0;i<r.length;i++)(o=r[i])instanceof Element&&xo(e,o)}}void 0!==n.prepend&&(t.prepend=i(n.prepend)),void 0!==n.append&&(t.append=i(n.append))}mo.prototype.connectedCallback=function(e){var t=e.__CE_definition;if(t.connectedCallback)try{t.connectedCallback.call(e)}catch(e){To(e)}},mo.prototype.disconnectedCallback=function(e){var t=e.__CE_definition;if(t.disconnectedCallback)try{t.disconnectedCallback.call(e)}catch(e){To(e)}},mo.prototype.attributeChangedCallback=function(e,t,n,i,r){var o=e.__CE_definition;if(o.attributeChangedCallback&&-1<o.observedAttributes.indexOf(t))try{o.attributeChangedCallback.call(e,t,n,i,r)}catch(e){To(e)}},Ao.prototype.resolve=function(e){if(this.I)throw Error("Already resolved.");this.I=e,this.g(e)},Io.prototype.h=function(e){var t=this.g.readyState;for("interactive"!==t&&"complete"!==t||Oo(this),t=0;t<e.length;t++)for(var n=e[t].addedNodes,i=0;i<n.length;i++)Eo(this.S,n[i])},(e=Do.prototype).jb=function(e,t){var n=this;if(!(t instanceof Function))throw new TypeError("Custom element constructor getters must be functions.");$o(this,e),this.ma.set(e,t),this.oa.push(e),this.V||(this.V=!0,this.la((function(){return Mo(n)})))},e.define=function(e,t){var n=this;if(!(t instanceof Function))throw new TypeError("Custom element constructors must be functions.");$o(this,e),No(this,e,t),this.oa.push(e),this.V||(this.V=!0,this.la((function(){return Mo(n)})))},e.upgrade=function(e){Eo(this.S,e)},e.get=function(e){if(e=Lo(this,e))return e.constructorFunction},e.whenDefined=function(e){if(!ho(e))return Promise.reject(new SyntaxError("'"+e+"' is not a valid custom element name."));var t=this.za.get(e);if(t)return t.Ka;t=new Ao,this.za.set(e,t);var n=this.na.has(e)||this.ma.has(e);return e=-1===this.oa.indexOf(e),n&&e&&t.resolve(void 0),t.Ka},e.polyfillWrapFlushCallback=function(e){this.Ga&&Oo(this.Ga);var t=this.la;this.la=function(n){return e((function(){return t(n)}))}},Do.prototype.define=Do.prototype.define,Do.prototype.upgrade=Do.prototype.upgrade,Do.prototype.get=Do.prototype.get,Do.prototype.whenDefined=Do.prototype.whenDefined,Do.prototype.polyfillDefineLazy=Do.prototype.jb,Do.prototype.polyfillWrapFlushCallback=Do.prototype.polyfillWrapFlushCallback;var Ro={},jo=window.customElements;function Ho(){var e=new mo;!function(e){function t(){var t=this.constructor,n=document.__CE_registry.Fa.get(t);if(!n)throw Error("Failed to construct a custom element: The constructor was not registered with `customElements`.");var i=n.constructionStack;if(0===i.length)return i=Or.call(document,n.localName),Object.setPrototypeOf(i,t.prototype),i.__CE_state=1,i.__CE_definition=n,ko(e,i),i;var r=i.length-1,o=i[r];if(o===Ro)throw Error("Failed to construct '"+n.localName+"': This element was already constructed.");return i[r]=Ro,Object.setPrototypeOf(o,t.prototype),ko(e,o),o}t.prototype=ao.prototype,Object.defineProperty(HTMLElement.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:t}),window.HTMLElement=t}(e),function(e){Document.prototype.createElement=function(t){return Co(e,this,t,null)},Document.prototype.importNode=function(t,n){return t=$r.call(this,t,!!n),this.__CE_registry?Eo(e,t):yo(e,t),t},Document.prototype.createElementNS=function(t,n){return Co(e,this,n,t)},Po(e,Document.prototype,{prepend:Nr,append:Mr})}(e),Po(e,DocumentFragment.prototype,{prepend:Lr,append:Pr}),function(e){function t(t,n){Object.defineProperty(t,"textContent",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(t){if(this.nodeType===Node.TEXT_NODE)n.set.call(this,t);else{var i=void 0;if(this.firstChild){var r=this.childNodes,o=r.length;if(0<o&&fo(this)){i=Array(o);for(var a=0;a<o;a++)i[a]=r[a]}}if(n.set.call(this,t),i)for(t=0;t<i.length;t++)wo(e,i[t])}}})}Node.prototype.insertBefore=function(t,n){if(t instanceof DocumentFragment){var i=_o(t);if(t=Hr.call(this,t,n),fo(this))for(n=0;n<i.length;n++)xo(e,i[n]);return t}return i=t instanceof Element&&fo(t),n=Hr.call(this,t,n),i&&wo(e,t),fo(this)&&xo(e,t),n},Node.prototype.appendChild=function(t){if(t instanceof DocumentFragment){var n=_o(t);if(t=jr.call(this,t),fo(this))for(var i=0;i<n.length;i++)xo(e,n[i]);return t}return n=t instanceof Element&&fo(t),i=jr.call(this,t),n&&wo(e,t),fo(this)&&xo(e,t),i},Node.prototype.cloneNode=function(t){return t=Rr.call(this,!!t),this.ownerDocument.__CE_registry?Eo(e,t):yo(e,t),t},Node.prototype.removeChild=function(t){var n=t instanceof Element&&fo(t),i=Br.call(this,t);return n&&wo(e,t),i},Node.prototype.replaceChild=function(t,n){if(t instanceof DocumentFragment){var i=_o(t);if(t=Vr.call(this,t,n),fo(this))for(wo(e,n),n=0;n<i.length;n++)xo(e,i[n]);return t}i=t instanceof Element&&fo(t);var r=Vr.call(this,t,n),o=fo(this);return o&&wo(e,n),i&&wo(e,t),o&&xo(e,t),r},Ur&&Ur.get?t(Node.prototype,Ur):function(e,t){e.W=!0,e.ca.push(t)}(e,(function(e){t(e,{enumerable:!0,configurable:!0,get:function(){for(var e=[],t=this.firstChild;t;t=t.nextSibling)t.nodeType!==Node.COMMENT_NODE&&e.push(t.textContent);return e.join("")},set:function(e){for(;this.firstChild;)Br.call(this,this.firstChild);null!=e&&""!==e&&jr.call(this,document.createTextNode(e))}})}))}(e),function(e){function t(t,n){Object.defineProperty(t,"innerHTML",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(t){var i=this,r=void 0;if(fo(this)&&(r=[],vo(e,this,(function(e){e!==i&&r.push(e)}))),n.set.call(this,t),r)for(var o=0;o<r.length;o++){var a=r[o];1===a.__CE_state&&e.disconnectedCallback(a)}return this.ownerDocument.__CE_registry?Eo(e,this):yo(e,this),t}})}function n(t,n){t.insertAdjacentElement=function(t,i){var r=fo(i);return t=n.call(this,t,i),r&&wo(e,i),fo(t)&&xo(e,i),t}}function i(t,n){function i(t,n){for(var i=[];t!==n;t=t.nextSibling)i.push(t);for(n=0;n<i.length;n++)Eo(e,i[n])}t.insertAdjacentHTML=function(e,t){if("beforebegin"===(e=e.toLowerCase())){var r=this.previousSibling;n.call(this,e,t),i(r||this.parentNode.firstChild,this)}else if("afterbegin"===e)r=this.firstChild,n.call(this,e,t),i(this.firstChild,r);else if("beforeend"===e)r=this.lastChild,n.call(this,e,t),i(r||this.firstChild,null);else{if("afterend"!==e)throw new SyntaxError("The value provided ("+String(e)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");r=this.nextSibling,n.call(this,e,t),i(this.nextSibling,r)}}}Fr&&(Element.prototype.attachShadow=function(t){if(t=Fr.call(this,t),e.W&&!t.__CE_patched){t.__CE_patched=!0;for(var n=0;n<e.ca.length;n++)e.ca[n](t)}return this.__CE_shadowRoot=t}),zr&&zr.get?t(Element.prototype,zr):so&&so.get?t(HTMLElement.prototype,so):function(e,t){e.W=!0,e.g.push(t)}(e,(function(e){t(e,{enumerable:!0,configurable:!0,get:function(){return Rr.call(this,!0).innerHTML},set:function(e){var t="template"===this.localName,n=t?this.content:this,i=Dr.call(document,this.namespaceURI,this.localName);for(i.innerHTML=e;0<n.childNodes.length;)Br.call(n,n.childNodes[0]);for(e=t?i.content:i;0<e.childNodes.length;)jr.call(n,e.childNodes[0])}})})),Element.prototype.setAttribute=function(t,n){if(1!==this.__CE_state)return Wr.call(this,t,n);var i=Gr.call(this,t);Wr.call(this,t,n),n=Gr.call(this,t),e.attributeChangedCallback(this,t,i,n,null)},Element.prototype.setAttributeNS=function(t,n,i){if(1!==this.__CE_state)return Jr.call(this,t,n,i);var r=Yr.call(this,t,n);Jr.call(this,t,n,i),i=Yr.call(this,t,n),e.attributeChangedCallback(this,n,r,i,t)},Element.prototype.removeAttribute=function(t){if(1!==this.__CE_state)return qr.call(this,t);var n=Gr.call(this,t);qr.call(this,t),null!==n&&e.attributeChangedCallback(this,t,n,null,null)},Kr&&(Element.prototype.toggleAttribute=function(t,n){if(1!==this.__CE_state)return Kr.call(this,t,n);var i=Gr.call(this,t);return null!==i!==(n=Kr.call(this,t,n))&&e.attributeChangedCallback(this,t,i,n?"":null,null),n}),Element.prototype.removeAttributeNS=function(t,n){if(1!==this.__CE_state)return Zr.call(this,t,n);var i=Yr.call(this,t,n);Zr.call(this,t,n);var r=Yr.call(this,t,n);i!==r&&e.attributeChangedCallback(this,n,i,r,t)},lo?n(HTMLElement.prototype,lo):Xr&&n(Element.prototype,Xr),uo?i(HTMLElement.prototype,uo):Qr&&i(Element.prototype,Qr),Po(e,Element.prototype,{prepend:eo,append:to}),function(e){function t(t){return function(n){for(var i=[],r=0;r<arguments.length;++r)i[r]=arguments[r];r=[];for(var o=[],a=0;a<i.length;a++){var s=i[a];if(s instanceof Element&&fo(s)&&o.push(s),s instanceof DocumentFragment)for(s=s.firstChild;s;s=s.nextSibling)r.push(s);else r.push(s)}for(t.apply(this,i),i=0;i<o.length;i++)wo(e,o[i]);if(fo(this))for(i=0;i<r.length;i++)(o=r[i])instanceof Element&&xo(e,o)}}var n=Element.prototype;void 0!==no&&(n.before=t(no)),void 0!==io&&(n.after=t(io)),void 0!==ro&&(n.replaceWith=function(t){for(var n=[],i=0;i<arguments.length;++i)n[i]=arguments[i];i=[];for(var r=[],o=0;o<n.length;o++){var a=n[o];if(a instanceof Element&&fo(a)&&r.push(a),a instanceof DocumentFragment)for(a=a.firstChild;a;a=a.nextSibling)i.push(a);else i.push(a)}for(o=fo(this),ro.apply(this,n),n=0;n<r.length;n++)wo(e,r[n]);if(o)for(wo(e,this),n=0;n<i.length;n++)(r=i[n])instanceof Element&&xo(e,r)}),void 0!==oo&&(n.remove=function(){var t=fo(this);oo.call(this),t&&wo(e,this)})}(e)}(e),window.CustomElementRegistry=Do,e=new Do(e),document.__CE_registry=e,Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:e})}function Bo(){this.end=this.start=0,this.rules=this.parent=this.previous=null,this.cssText=this.parsedCssText="",this.atRule=!1,this.type=0,this.parsedSelector=this.selector=this.keyframesName=""}function Vo(e){var t=e=e.replace(Jo,"").replace(Zo,""),n=new Bo;n.start=0,n.end=t.length;for(var i=n,r=0,o=t.length;r<o;r++)if("{"===t[r]){i.rules||(i.rules=[]);var a=i,s=a.rules[a.rules.length-1]||null;(i=new Bo).start=r+1,i.parent=a,i.previous=s,a.rules.push(i)}else"}"===t[r]&&(i.end=r+1,i=i.parent||n);return Uo(n,e)}function Uo(e,t){var n=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=n.trim(),e.parent&&(n=function(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(e,t){for(t=6-(e=t).length;t--;)e="0"+e;return"\\"+e}))}(n=t.substring(e.previous?e.previous.end:e.parent.start,e.start-1)),n=(n=n.replace(ia," ")).substring(n.lastIndexOf(";")+1),n=e.parsedSelector=e.selector=n.trim(),e.atRule=0===n.indexOf("@"),e.atRule?0===n.indexOf("@media")?e.type=Ko:n.match(na)&&(e.type=qo,e.keyframesName=e.selector.split(ia).pop()):e.type=0===n.indexOf("--")?Yo:Wo),n=e.rules)for(var i=0,r=n.length,o=void 0;i<r&&(o=n[i]);i++)Uo(o,t);return e}function Fo(e,t,n){n=void 0===n?"":n;var i="";if(e.cssText||e.rules){var r,o=e.rules;if((r=o)&&(r=!((r=o[0])&&r.selector&&0===r.selector.indexOf("--"))),r){r=0;for(var a=o.length,s=void 0;r<a&&(s=o[r]);r++)i=Fo(s,t,i)}else(i=(t=t?e.cssText:(t=(t=e.cssText).replace(Xo,"").replace(Qo,"")).replace(ea,"").replace(ta,"")).trim())&&(i=" "+i+"\n")}return i&&(e.selector&&(n+=e.selector+" {\n"),n+=i,e.selector&&(n+="}\n\n")),n}jo&&!jo.forcePolyfill&&"function"==typeof jo.define&&"function"==typeof jo.get||Ho(),window.__CE_installPolyfill=Ho;var zo,Go,Wo=1,qo=7,Ko=4,Yo=1e3,Jo=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,Zo=/@import[^;]*;/gim,Xo=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,Qo=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,ea=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,ta=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,na=/^@[^\s]*keyframes/,ia=/\s+/g,ra=!(window.ShadyDOM&&window.ShadyDOM.inUse);function oa(e){zo=(!e||!e.shimcssproperties)&&(ra||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)")))}window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(Go=window.ShadyCSS.cssBuild);var aa=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?zo=window.ShadyCSS.nativeCss:window.ShadyCSS?(oa(window.ShadyCSS),window.ShadyCSS=void 0):oa(window.WebComponents&&window.WebComponents.flags);var sa=zo,la=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,ua=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,ca=/(--[\w-]+)\s*([:,;)]|$)/gi,da=/(animation\s*:)|(animation-name\s*:)/,ha=/@media\s(.*)/,pa=/\{[^}]*\}/g,fa=new Set;function _a(e,t){return e?("string"==typeof e&&(e=Vo(e)),t&&ma(e,t),Fo(e,sa)):""}function ga(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=Vo(e.textContent)),e.__cssRules||null}function ba(e){return!!e.parent&&e.parent.type===qo}function ma(e,t,n,i){if(e){var r=!1,o=e.type;if(i&&o===Ko){var a=e.selector.match(ha);a&&(window.matchMedia(a[1]).matches||(r=!0))}if(o===Wo?t(e):n&&o===qo?n(e):o===Yo&&(r=!0),(e=e.rules)&&!r)for(r=0,o=e.length,a=void 0;r<o&&(a=e[r]);r++)ma(a,t,n,i)}}function va(e,t,n,i){var r=document.createElement("style");return t&&r.setAttribute("scope",t),r.textContent=e,xa(r,n,i),r}var ya=null;function ka(e){e=document.createComment(" Shady DOM styles for "+e+" ");var t=document.head;return t.insertBefore(e,(ya?ya.nextSibling:null)||t.firstChild),ya=e}function xa(e,t,n){(t=t||document.head).insertBefore(e,n&&n.nextSibling||t.firstChild),ya?e.compareDocumentPosition(ya)===Node.DOCUMENT_POSITION_PRECEDING&&(ya=e):ya=e}function wa(e,t){for(var n=0,i=e.length;t<i;t++)if("("===e[t])n++;else if(")"===e[t]&&0==--n)return t;return-1}function Ea(e,t){var n=e.indexOf("var(");if(-1===n)return t(e,"","","");var i=wa(e,n+3),r=e.substring(n+4,i);return n=e.substring(0,n),e=Ea(e.substring(i+1),t),-1===(i=r.indexOf(","))?t(n,r.trim(),"",e):t(n,r.substring(0,i).trim(),r.substring(i+1).trim(),e)}function Sa(e,t){ra?e.setAttribute("class",t):window.ShadyDOM.nativeMethods.setAttribute.call(e,"class",t)}var Ca=window.ShadyDOM&&window.ShadyDOM.wrap||function(e){return e};function Ta(e){var t=e.localName,n="";return t?-1<t.indexOf("-")||(n=t,t=e.getAttribute&&e.getAttribute("is")||""):(t=e.is,n=e.extends),{is:t,ja:n}}function Aa(e){for(var t=[],n="",i=0;0<=i&&i<e.length;i++)if("("===e[i]){var r=wa(e,i);n+=e.slice(i,r+1),i=r}else","===e[i]?(t.push(n),n=""):n+=e[i];return n&&t.push(n),t}function Ia(e){if(void 0!==Go)return Go;if(void 0===e.__cssBuild){var t=e.getAttribute("css-build");if(t)e.__cssBuild=t;else{if(""!==(t=(t="template"===e.localName?e.content.firstChild:e.firstChild)instanceof Comment&&"css-build"===(t=t.textContent.trim().split(":"))[0]?t[1]:"")){var n="template"===e.localName?e.content.firstChild:e.firstChild;n.parentNode.removeChild(n)}e.__cssBuild=t}}return e.__cssBuild||""}function Oa(e){return!(""===(e=void 0===e?"":e)||!sa)&&(ra?"shadow"===e:"shady"===e)}function Da(){}function $a(e,t,n){var i;if(t.nodeType===Node.ELEMENT_NODE&&n(t),i="template"===t.localName?(t.content||t._content||t).childNodes:t.children||t.childNodes)for(t=0;t<i.length;t++)$a(e,i[t],n)}function Na(e,t,n){if(t)if(e.classList)n?(e.classList.remove("style-scope"),e.classList.remove(t)):(e.classList.add("style-scope"),e.classList.add(t));else if(e.getAttribute){var i=e.getAttribute("class");n?i&&Sa(e,t=i.replace("style-scope","").replace(t,"")):Sa(e,(i?i+" ":"")+"style-scope "+t)}}function Ma(e,t,n){$a(Ja,e,(function(e){Na(e,t,!0),Na(e,n)}))}function La(e,t){$a(Ja,e,(function(e){Na(e,t||"",!0)}))}function Pa(e,t,n,i,r){var o=Ja;return""===(r=void 0===r?"":r)&&(r=ra||"shady"===(void 0===i?"":i)?_a(t,n):function(e,t,n,i,r){var o=Ra(n,i);return n=n?"."+n:"",_a(t,(function(t){t.i||(t.selector=t.G=ja(e,t,e.h,n,o),t.i=!0),r&&r(t,n,o)}))}(o,t,(e=Ta(e)).is,e.ja,n)+"\n\n"),r.trim()}function Ra(e,t){return t?"[is="+e+"]":e}function ja(e,t,n,i,r){var o=Aa(t.selector);if(!ba(t)){t=0;for(var a=o.length,s=void 0;t<a&&(s=o[t]);t++)o[t]=n.call(e,s,i,r)}return o.filter((function(e){return!!e})).join(",")}function Ha(e){return e.replace(Ua,(function(e,t,n){return-1<n.indexOf("+")?n=n.replace(/\+/g,"___"):-1<n.indexOf("___")&&(n=n.replace(/___/g,"+")),":"+t+"("+n+")"}))}function Ba(e,t){e=e.split(/(\[.+?\])/);for(var n=[],i=0;i<e.length;i++)if(1==i%2)n.push(e[i]);else{var r=e[i];""===r&&i===e.length-1||((r=r.split(":"))[0]+=t,n.push(r.join(":")))}return n.join("")}function Va(e){":root"===e.selector&&(e.selector="html")}Da.prototype.h=function(e,t,n){var i=!1;e=e.trim();var r=Ua.test(e);r&&(e=Ha(e=e.replace(Ua,(function(e,t,n){return":"+t+"("+n.replace(/\s/g,"")+")"}))));var o=Ya.test(e);if(o){var a=function(e){for(var t,n=[];t=e.match(Ya);){var i=t.index,r=wa(e,i);if(-1===r)throw Error(t.input+" selector missing ')'");t=e.slice(i,r+1),e=e.replace(t,""),n.push(t)}return{Ea:e,matches:n}}(e);e=a.Ea,a=a.matches}return e=(e=e.replace(Ga,":host $1")).replace(Fa,(function(e,r,o){return i||(e=function(e,t,n,i){var r=e.indexOf("::slotted");if(0<=e.indexOf(":host")?e=function(e,t){var n=e.match(Wa);return(n=n&&n[2].trim()||"")?n[0].match(za)?e.replace(Wa,(function(e,n,i){return t+i})):n.split(za)[0]===t?n:"should_not_match":e.replace(":host",t)}(e,i):0!==r&&(e=n?Ba(e,n):e),n=!1,0<=r&&(t="",n=!0),n){var o=!0;n&&(e=e.replace(qa,(function(e,t){return" > "+t})))}return{value:e,Ya:t,stop:o}}(o,r,t,n),i=i||e.stop,r=e.Ya,o=e.value),r+o})),o&&(e=function(e,t){var n=e.split("");return t.reduce((function(e,t,i){return e+t+n[i+1]}),n[0])}(e,a)),r&&(e=Ha(e)),e.replace(Ka,(function(e,t,n,i){return'[dir="'+n+'"] '+t+i+", "+t+'[dir="'+n+'"]'+i}))},Da.prototype.i=function(e){return e.match(":host")?"":e.match("::slotted")?this.h(e,":not(.style-scope)"):Ba(e.trim(),":not(.style-scope)")},a.Object.defineProperties(Da.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var Ua=/:(nth[-\w]+)\(([^)]+)\)/,Fa=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,za=/[[.:#*]/,Ga=/^(::slotted)/,Wa=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,qa=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Ka=/(.*):dir\((?:(ltr|rtl))\)(.*)/,Ya=/:(?:matches|any|-(?:webkit|moz)-any)/,Ja=new Da;function Za(e,t,n,i,r){this.M=e||null,this.h=t||null,this.Ca=n||[],this.K=null,this.cssBuild=r||"",this.ja=i||"",this.g=this.L=this.R=null}function Xa(e){return e?e.__styleInfo:null}function Qa(e,t){return e.__styleInfo=t}function es(e){var t=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return t&&t.call(this,e)}Za.prototype.i=function(){return this.M},Za.prototype._getStyleRules=Za.prototype.i;var ts=/:host\s*>\s*/,ns=navigator.userAgent.match("Trident");function is(){}function rs(e){if(!e.F){var t={},n={};os(e,n)&&(t.P=n,e.rules=null),t.cssText=e.parsedCssText.replace(pa,"").replace(la,""),e.F=t}}function os(e,t){var n=e.F;if(!n){n=e.parsedCssText;for(var i;e=la.exec(n);)"inherit"===(i=(e[2]||e[3]).trim())&&"unset"===i||(t[e[1].trim()]=i),i=!0;return i}if(n.P)return Object.assign(t,n.P),!0}function as(e,t,n){return t&&(t=0<=t.indexOf(";")?ss(e,t,n):Ea(t,(function(t,i,r,o){return i?((i=as(e,n[i],n))&&"initial"!==i?"apply-shim-inherit"===i&&(i="inherit"):i=as(e,n[r]||r,n)||r,t+(i||"")+o):t+o}))),t&&t.trim()||""}function ss(e,t,n){t=t.split(";");for(var i,r,o=0;o<t.length;o++)if(i=t[o]){if(ua.lastIndex=0,r=ua.exec(i))i=as(e,n[r[1]],n);else if(-1!==(r=i.indexOf(":"))){var a=i.substring(r);a=as(e,a=a.trim(),n)||a,i=i.substring(0,r)+a}t[o]=i&&i.lastIndexOf(";")===i.length-1?i.slice(0,-1):i||""}return t.join(";")}function ls(e){return function(t){return t.replace(e.u,e.g)}}function us(e,t){var n=cs,i=ga(e);e.textContent=_a(i,(function(e){var i=e.cssText=e.parsedCssText;e.F&&e.F.cssText&&(i=i.replace(Xo,"").replace(Qo,""),e.cssText=ss(n,i,t))}))}a.Object.defineProperties(is.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var cs=new is,ds={},hs=window.customElements;if(hs&&!ra&&!aa){var ps=hs.define;hs.define=function(e,t,n){ds[e]||(ds[e]=ka(e)),ps.call(hs,e,t,n)}}function fs(){this.cache={}}function _s(){}fs.prototype.store=function(e,t,n,i){var r=this.cache[e]||[];r.push({P:t,styleElement:n,L:i}),100<r.length&&r.shift(),this.cache[e]=r};var gs=new RegExp(Ja.g+"\\s*([^\\s]*)");function bs(e){return(e=(e.classList&&e.classList.value?e.classList.value:e.getAttribute("class")||"").match(gs))?e[1]:""}function ms(e){var t=Ca(e).getRootNode();return t===e||t===e.ownerDocument?"":(e=t.host)?Ta(e).is:""}function vs(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.target!==document.documentElement&&n.target!==document.head)for(var i=0;i<n.addedNodes.length;i++){var r=n.addedNodes[i];if(r.nodeType===Node.ELEMENT_NODE){var o=r.getRootNode(),a=bs(r);if(a&&o===r.ownerDocument&&("style"!==r.localName&&"template"!==r.localName||""===Ia(r)))La(r,a);else if(o instanceof ShadowRoot)for((o=ms(r))!==a&&Ma(r,a,o),r=window.ShadyDOM.nativeMethods.querySelectorAll.call(r,":not(."+Ja.g+")"),a=0;a<r.length;a++){var s=ms(o=r[a]);s&&Na(o,s)}}}}}if(!(ra||window.ShadyDOM&&window.ShadyDOM.handlesDynamicScoping)){var ys=new MutationObserver(vs),ks=function(e){ys.observe(e,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)ks(document);else{var xs=function(){ks(document.body)};window.HTMLImports?window.HTMLImports.whenReady(xs):requestAnimationFrame((function(){if("loading"===document.readyState){var e=function(){xs(),document.removeEventListener("readystatechange",e)};document.addEventListener("readystatechange",e)}else xs()}))}_s=function(){vs(ys.takeRecords())}}var ws={},Es=Promise.resolve();function Ss(e){(e=ws[e])&&(e._applyShimCurrentVersion=e._applyShimCurrentVersion||0,e._applyShimValidatingVersion=e._applyShimValidatingVersion||0,e._applyShimNextVersion=(e._applyShimNextVersion||0)+1)}function Cs(e){return e._applyShimCurrentVersion===e._applyShimNextVersion}var Ts={},As=new fs;function Is(){this.ea={},this.i=document.documentElement;var e=new Bo;e.rules=[],this.u=Qa(this.i,new Za(e)),this.O=!1,this.g=this.h=null}function Os(e){var t=Ta(e),n=t.is;t=t.ja;var i=ds[n]||null,r=ws[n];if(r)return Qa(e,t=new Za(n=r._styleAst,i,r.g,t,r=Ia(r))),t}function Ds(e){if(!e.h&&window.ShadyCSS&&window.ShadyCSS.ApplyShim){e.h=window.ShadyCSS.ApplyShim,e.h.invalidCallback=Ss;var t=!0}else t=!1;return function(e){!e.g&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(e.g=window.ShadyCSS.CustomStyleInterface,e.g.transformCallback=function(t){e.Qa(t)},e.g.validateCallback=function(){requestAnimationFrame((function(){(e.g.enqueued||e.O)&&e.flushCustomStyles()}))})}(e),t}function $s(e,t,n){var i=Ta(t).is;if(n.K){var r,o=n.K;for(r in o)null===r?t.style.removeProperty(r):t.style.setProperty(r,o[r])}!(o=ws[i])&&t!==e.i||o&&""!==Ia(o)||!o||!o._style||Cs(o)||((Cs(o)||o._applyShimValidatingVersion!==o._applyShimNextVersion)&&(Ds(e),e.h&&e.h.transformRules(o._styleAst,i),o._style.textContent=Pa(t,n.M),function(e){e._applyShimValidatingVersion=e._applyShimNextVersion,e._validating||(e._validating=!0,Es.then((function(){e._applyShimCurrentVersion=e._applyShimNextVersion,e._validating=!1})))}(o)),ra&&(e=t.shadowRoot)&&(e=e.querySelector("style"))&&(e.textContent=Pa(t,n.M)),n.M=o._styleAst)}function Ns(e,t){return(t=Ca(t).getRootNode().host)?Xa(t)||Os(t)?t:Ns(e,t):e.i}function Ms(e,t,n){var i=Ns(e,t),r=Xa(i),o=r.R;for(var a in i===e.i||o||(Ms(e,i,r),o=r.R),e=Object.create(o||null),i=function(e,t,n){var i={},r={};return ma(t,(function(t){!function(e,t,n,i){if(t.F||rs(t),t.F.P){var r=Ta(e);e=r.is,r=r.ja,r=e?Ra(e,r):"html";var o=t.parsedSelector,a=!!o.match(ts)||"html"===r&&-1<o.indexOf("html"),s=0===o.indexOf(":host")&&!a;"shady"===n&&(s=!(a=o===r+" > *."+r||-1!==o.indexOf("html"))&&0===o.indexOf(r)),(a||s)&&(n=r,s&&(t.G||(t.G=ja(Ja,t,Ja.h,e?"."+e:"",r)),n=t.G||r),a&&"html"===r&&(n=t.G||t.O),i({Ea:n,gb:s,vb:a}))}}(e,t,n,(function(n){es.call(e._element||e,n.Ea)&&(n.gb?os(t,i):os(t,r))}))}),null,!0),{mb:r,eb:i}}(t,n.M,n.cssBuild),t=function(e,t){var n={},i=[];return ma(e,(function(e){e.F||rs(e);var r=e.G||e.parsedSelector;t&&e.F.P&&r&&es.call(t,r)&&(os(e,n),e=e.index,r=parseInt(e/32,10),i[r]=(i[r]||0)|1<<e%32)}),null,!0),{P:n,key:i}}(r.M,t).P,Object.assign(e,i.eb,t,i.mb),t=n.K)((r=t[a])||0===r)&&(e[a]=r);for(a=cs,t=Object.getOwnPropertyNames(e),r=0;r<t.length;r++)e[i=t[r]]=as(a,e[i],e);n.R=e}(e=Is.prototype).flush=function(){_s()},e.bb=function(e){return ga(e)},e.qb=function(e){return _a(e)},e.prepareTemplate=function(e,t,n){this.prepareTemplateDom(e,t),this.prepareTemplateStyles(e,t,n)},e.prepareTemplateStyles=function(e,t,n){if(!e._prepared&&!aa){ra||ds[t]||(ds[t]=ka(t)),e._prepared=!0,e.name=t,e.extends=n,ws[t]=e;var i=Ia(e),r=Oa(i);n={is:t,extends:n};for(var o=[],a=e.content.querySelectorAll("style"),s=0;s<a.length;s++){var l=a[s];if(l.hasAttribute("shady-unscoped")){if(!ra){var u=l.textContent;if(!fa.has(u)){fa.add(u);var c=document.createElement("style");c.setAttribute("shady-unscoped",""),c.textContent=u,document.head.appendChild(c)}l.parentNode.removeChild(l)}}else o.push(l.textContent),l.parentNode.removeChild(l)}o=o.join("").trim()+(Ts[t]||""),Ds(this),r||((a=!i)&&(a=ua.test(o)||la.test(o),ua.lastIndex=0,la.lastIndex=0),s=Vo(o),a&&sa&&this.h&&this.h.transformRules(s,t),e._styleAst=s),a=[],sa||(a=function(e){var t={},n=[],i=0;for(var r in ma(e,(function(e){rs(e),e.index=i++,e=e.F.cssText;for(var n;n=ca.exec(e);){var r=n[1];":"!==n[2]&&(t[r]=!0)}}),(function(e){n.push(e)})),e.h=n,e=[],t)e.push(r);return e}(e._styleAst)),a.length&&!sa||(s=ra?e.content:null,t=ds[t]||null,i=(i=Pa(n,e._styleAst,null,i,r?o:"")).length?va(i,n.is,s,t):null,e._style=i),e.g=a}},e.kb=function(e,t){Ts[t]=e.join(" ")},e.prepareTemplateDom=function(e,t){if(!aa){var n=Ia(e);ra||"shady"===n||e._domPrepared||(e._domPrepared=!0,function(e,t){$a(Ja,e,(function(e){Na(e,t||"")}))}(e.content,t))}},e.flushCustomStyles=function(){if(!aa){var e=Ds(this);if(this.g){var t=this.g.processStyles();if((e||this.g.enqueued)&&!Oa(this.u.cssBuild)){if(sa){if(!this.u.cssBuild)for(e=0;e<t.length;e++){var n=this.g.getStyleForCustomStyle(t[e]);if(n&&sa&&this.h){var i=ga(n);Ds(this),this.h.transformRules(i),n.textContent=_a(i)}}}else{for(function(e,t){t=t.map((function(t){return e.g.getStyleForCustomStyle(t)})).filter((function(e){return!!e})),t.sort((function(e,t){return(e=t.compareDocumentPosition(e))&Node.DOCUMENT_POSITION_FOLLOWING?1:e&Node.DOCUMENT_POSITION_PRECEDING?-1:0})),e.u.M.rules=t.map((function(e){return ga(e)}))}(this,t),Ms(this,this.i,this.u),e=0;e<t.length;e++)(n=this.g.getStyleForCustomStyle(t[e]))&&us(n,this.u.R);this.O&&this.styleDocument()}this.g.enqueued=!1}}}},e.styleElement=function(e,t){if(aa){if(t){Xa(e)||Qa(e,new Za(null));var n=Xa(e);n.K=n.K||{},Object.assign(n.K,t),$s(this,e,n)}}else if(n=Xa(e)||Os(e))if(e!==this.i&&(this.O=!0),t&&(n.K=n.K||{},Object.assign(n.K,t)),sa)$s(this,e,n);else if(this.flush(),Ms(this,e,n),n.Ca&&n.Ca.length){var i;t=Ta(e).is;e:{if(i=As.cache[t])for(var r=i.length-1;0<=r;r--){var o=i[r];t:{for(var a=n.Ca,s=0;s<a.length;s++){var l=a[s];if(o.P[l]!==n.R[l]){a=!1;break t}}a=!0}if(a){i=o;break e}}i=void 0}a=i?i.styleElement:null,r=n.L,(o=i&&i.L)||(o=t+"-"+(o=this.ea[t]=(this.ea[t]||0)+1)),n.L=o,o=n.L,s=cs,s=a?a.textContent||"":function(e,t,n,i){var r=Ta(t),o=Ra(r.is,r.ja),a=new RegExp("(?:^|[^.#[:])"+(t.extends?"\\"+o.slice(0,-1)+"\\]":o)+"($|[.:[\\s>+~])"),s=Xa(t);r=s.M,s=s.cssBuild;var l=function(e,t){e=e.h;var n={};if(!ra&&e)for(var i=0,r=e[i];i<e.length;r=e[++i]){var o=r,a=t;o.u=new RegExp("\\b"+o.keyframesName+"(?!\\B|-)","g"),o.g=o.keyframesName+"-"+a,o.G=o.G||o.selector,o.selector=o.G.replace(o.keyframesName,o.g),n[r.keyframesName]=ls(r)}return n}(r,i);return Pa(t,r,(function(t){var r="";if(t.F||rs(t),t.F.cssText&&(r=ss(e,t.F.cssText,n)),t.cssText=r,!ra&&!ba(t)&&t.cssText){var s=r=t.cssText;if(null==t.Ma&&(t.Ma=da.test(r)),t.Ma)if(null==t.ra)for(var u in t.ra=[],l)r!==(s=(s=l[u])(r))&&(r=s,t.ra.push(u));else{for(u=0;u<t.ra.length;++u)r=(s=l[t.ra[u]])(r);s=r}t.cssText=s,t.G=t.G||t.selector,r="."+i,s=0;for(var c=(u=Aa(t.G)).length,d=void 0;s<c&&(d=u[s]);s++)u[s]=d.match(a)?d.replace(o,r):r+" "+d;t.selector=u.join(",")}}),s)}(s,e,n.R,o);var u=(l=Xa(e)).g;u&&!ra&&u!==a&&(u._useCount--,0>=u._useCount&&u.parentNode&&u.parentNode.removeChild(u)),ra?l.g?(l.g.textContent=s,a=l.g):s&&(a=va(s,o,e.shadowRoot,l.h)):a?a.parentNode||(ns&&-1<s.indexOf("@media")&&(a.textContent=s),xa(a,null,l.h)):s&&(a=va(s,o,null,l.h)),a&&(a._useCount=a._useCount||0,l.g!=a&&a._useCount++,l.g=a),o=a,ra||(a=n.L,l=s=e.getAttribute("class")||"",r&&(l=s.replace(new RegExp("\\s*x-scope\\s*"+r+"\\s*","g")," ")),s!==(l+=(l?" ":"")+"x-scope "+a)&&Sa(e,l)),i||As.store(t,n.R,o,n.L)}},e.styleDocument=function(e){this.styleSubtree(this.i,e)},e.styleSubtree=function(e,t){var n=Ca(e),i=n.shadowRoot,r=e===this.i;if((i||r)&&this.styleElement(e,t),e=r?n:i)for(e=Array.from(e.querySelectorAll("*")).filter((function(e){return Ca(e).shadowRoot})),t=0;t<e.length;t++)this.styleSubtree(e[t])},e.Qa=function(e){var t=this,n=Ia(e);if(n!==this.u.cssBuild&&(this.u.cssBuild=n),!Oa(n)){var i=ga(e);ma(i,(function(e){if(ra)Va(e);else{var i=Ja;e.selector=e.parsedSelector,Va(e),e.selector=e.G=ja(i,e,i.i,void 0,void 0)}sa&&""===n&&(Ds(t),t.h&&t.h.transformRule(e))})),sa?e.textContent=_a(i):this.u.M.rules.push(i)}},e.getComputedStyleValue=function(e,t){var n;return sa||(n=(Xa(e)||Xa(Ns(this,e))).R[t]),(n=n||window.getComputedStyle(e).getPropertyValue(t))?n.trim():""},e.pb=function(e,t){var n=Ca(e).getRootNode();if(t=t?("string"==typeof t?t:String(t)).split(/\s/):[],!(n=n.host&&n.host.localName)){var i=e.getAttribute("class");if(i){i=i.split(/\s/);for(var r=0;r<i.length;r++)if(i[r]===Ja.g){n=i[r+1];break}}}n&&t.push(Ja.g,n),sa||(n=Xa(e))&&n.L&&t.push(cs.g,n.L),Sa(e,t.join(" "))},e.Xa=function(e){return Xa(e)},e.ob=function(e,t){Na(e,t)},e.rb=function(e,t){Na(e,t,!0)},e.nb=function(e){return ms(e)},e.$a=function(e){return bs(e)},Is.prototype.flush=Is.prototype.flush,Is.prototype.prepareTemplate=Is.prototype.prepareTemplate,Is.prototype.styleElement=Is.prototype.styleElement,Is.prototype.styleDocument=Is.prototype.styleDocument,Is.prototype.styleSubtree=Is.prototype.styleSubtree,Is.prototype.getComputedStyleValue=Is.prototype.getComputedStyleValue,Is.prototype.setElementClass=Is.prototype.pb,Is.prototype._styleInfoForNode=Is.prototype.Xa,Is.prototype.transformCustomStyleForDocument=Is.prototype.Qa,Is.prototype.getStyleAst=Is.prototype.bb,Is.prototype.styleAstToString=Is.prototype.qb,Is.prototype.flushCustomStyles=Is.prototype.flushCustomStyles,Is.prototype.scopeNode=Is.prototype.ob,Is.prototype.unscopeNode=Is.prototype.rb,Is.prototype.scopeForNode=Is.prototype.nb,Is.prototype.currentScopeForNode=Is.prototype.$a,Is.prototype.prepareAdoptedCssText=Is.prototype.kb,Object.defineProperties(Is.prototype,{nativeShadow:{get:function(){return ra}},nativeCss:{get:function(){return sa}}});var Ls,Ps,Rs=new Is;window.ShadyCSS&&(Ls=window.ShadyCSS.ApplyShim,Ps=window.ShadyCSS.CustomStyleInterface),window.ShadyCSS={ScopingShim:Rs,prepareTemplate:function(e,t,n){Rs.flushCustomStyles(),Rs.prepareTemplate(e,t,n)},prepareTemplateDom:function(e,t){Rs.prepareTemplateDom(e,t)},prepareTemplateStyles:function(e,t,n){Rs.flushCustomStyles(),Rs.prepareTemplateStyles(e,t,n)},styleSubtree:function(e,t){Rs.flushCustomStyles(),Rs.styleSubtree(e,t)},styleElement:function(e){Rs.flushCustomStyles(),Rs.styleElement(e)},styleDocument:function(e){Rs.flushCustomStyles(),Rs.styleDocument(e)},flushCustomStyles:function(){Rs.flushCustomStyles()},getComputedStyleValue:function(e,t){return Rs.getComputedStyleValue(e,t)},nativeCss:sa,nativeShadow:ra,cssBuild:Go,disableRuntime:aa},Ls&&(window.ShadyCSS.ApplyShim=Ls),Ps&&(window.ShadyCSS.CustomStyleInterface=Ps),function(e){function t(e){return""==e&&(o.call(this),this.m=!0),e.toLowerCase()}function n(e){var t=e.charCodeAt(0);return 32<t&&127>t&&-1==[34,35,60,62,63,96].indexOf(t)?e:encodeURIComponent(e)}function i(e){var t=e.charCodeAt(0);return 32<t&&127>t&&-1==[34,35,60,62,96].indexOf(t)?e:encodeURIComponent(e)}function r(e,r,a){function s(e){b.push(e)}var l=r||"scheme start",p=0,f="",_=!1,g=!1,b=[];e:for(;(null!=e[p-1]||0==p)&&!this.m;){var m=e[p];switch(l){case"scheme start":if(!m||!d.test(m)){if(r){s("Invalid scheme.");break e}f="",l="no scheme";continue}f+=m.toLowerCase(),l="scheme";break;case"scheme":if(m&&h.test(m))f+=m.toLowerCase();else{if(":"!=m){if(r){null!=m&&s("Code point not allowed in scheme: "+m);break e}f="",p=0,l="no scheme";continue}if(this.l=f,f="",r)break e;void 0!==u[this.l]&&(this.H=!0),l="file"==this.l?"relative":this.H&&a&&a.l==this.l?"relative or authority":this.H?"authority first slash":"scheme data"}break;case"scheme data":"?"==m?(this.A="?",l="query"):"#"==m?(this.C="#",l="fragment"):null!=m&&"\t"!=m&&"\n"!=m&&"\r"!=m&&(this.ya+=n(m));break;case"no scheme":if(a&&void 0!==u[a.l]){l="relative";continue}s("Missing scheme."),o.call(this),this.m=!0;break;case"relative or authority":if("/"!=m||"/"!=e[p+1]){s("Expected /, got: "+m),l="relative";continue}l="authority ignore slashes";break;case"relative":if(this.H=!0,"file"!=this.l&&(this.l=a.l),null==m){this.o=a.o,this.v=a.v,this.s=a.s.slice(),this.A=a.A,this.B=a.B,this.j=a.j;break e}if("/"==m||"\\"==m)"\\"==m&&s("\\ is an invalid code point."),l="relative slash";else if("?"==m)this.o=a.o,this.v=a.v,this.s=a.s.slice(),this.A="?",this.B=a.B,this.j=a.j,l="query";else{if("#"!=m){l=e[p+1];var v=e[p+2];("file"!=this.l||!d.test(m)||":"!=l&&"|"!=l||null!=v&&"/"!=v&&"\\"!=v&&"?"!=v&&"#"!=v)&&(this.o=a.o,this.v=a.v,this.B=a.B,this.j=a.j,this.s=a.s.slice(),this.s.pop()),l="relative path";continue}this.o=a.o,this.v=a.v,this.s=a.s.slice(),this.A=a.A,this.C="#",this.B=a.B,this.j=a.j,l="fragment"}break;case"relative slash":if("/"!=m&&"\\"!=m){"file"!=this.l&&(this.o=a.o,this.v=a.v,this.B=a.B,this.j=a.j),l="relative path";continue}"\\"==m&&s("\\ is an invalid code point."),l="file"==this.l?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!=m){s("Expected '/', got: "+m),l="authority ignore slashes";continue}l="authority second slash";break;case"authority second slash":if(l="authority ignore slashes","/"!=m){s("Expected '/', got: "+m);continue}break;case"authority ignore slashes":if("/"!=m&&"\\"!=m){l="authority";continue}s("Expected authority, got: "+m);break;case"authority":if("@"==m){for(_&&(s("@ already seen."),f+="%40"),_=!0,m=0;m<f.length;m++)"\t"==(v=f[m])||"\n"==v||"\r"==v?s("Invalid whitespace in authority."):":"==v&&null===this.j?this.j="":(v=n(v),null!==this.j?this.j+=v:this.B+=v);f=""}else{if(null==m||"/"==m||"\\"==m||"?"==m||"#"==m){p-=f.length,f="",l="host";continue}f+=m}break;case"file host":if(null==m||"/"==m||"\\"==m||"?"==m||"#"==m){2!=f.length||!d.test(f[0])||":"!=f[1]&&"|"!=f[1]?(0!=f.length&&(this.o=t.call(this,f),f=""),l="relative path start"):l="relative path";continue}"\t"==m||"\n"==m||"\r"==m?s("Invalid whitespace in file host."):f+=m;break;case"host":case"hostname":if(":"!=m||g){if(null==m||"/"==m||"\\"==m||"?"==m||"#"==m){if(this.o=t.call(this,f),f="",l="relative path start",r)break e;continue}"\t"!=m&&"\n"!=m&&"\r"!=m?("["==m?g=!0:"]"==m&&(g=!1),f+=m):s("Invalid code point in host/hostname: "+m)}else if(this.o=t.call(this,f),f="",l="port","hostname"==r)break e;break;case"port":if(/[0-9]/.test(m))f+=m;else{if(null==m||"/"==m||"\\"==m||"?"==m||"#"==m||r){if(""!=f&&((f=parseInt(f,10))!=u[this.l]&&(this.v=f+""),f=""),r)break e;l="relative path start";continue}"\t"==m||"\n"==m||"\r"==m?s("Invalid code point in port: "+m):(o.call(this),this.m=!0)}break;case"relative path start":if("\\"==m&&s("'\\' not allowed in path."),l="relative path","/"!=m&&"\\"!=m)continue;break;case"relative path":null!=m&&"/"!=m&&"\\"!=m&&(r||"?"!=m&&"#"!=m)?"\t"!=m&&"\n"!=m&&"\r"!=m&&(f+=n(m)):("\\"==m&&s("\\ not allowed in relative path."),(v=c[f.toLowerCase()])&&(f=v),".."==f?(this.s.pop(),"/"!=m&&"\\"!=m&&this.s.push("")):"."==f&&"/"!=m&&"\\"!=m?this.s.push(""):"."!=f&&("file"==this.l&&0==this.s.length&&2==f.length&&d.test(f[0])&&"|"==f[1]&&(f=f[0]+":"),this.s.push(f)),f="","?"==m?(this.A="?",l="query"):"#"==m&&(this.C="#",l="fragment"));break;case"query":r||"#"!=m?null!=m&&"\t"!=m&&"\n"!=m&&"\r"!=m&&(this.A+=i(m)):(this.C="#",l="fragment");break;case"fragment":null!=m&&"\t"!=m&&"\n"!=m&&"\r"!=m&&(this.C+=m)}p++}}function o(){this.B=this.ya=this.l="",this.j=null,this.v=this.o="",this.s=[],this.C=this.A="",this.H=this.m=!1}function a(e,t){void 0===t||t instanceof a||(t=new a(String(t))),this.g=e,o.call(this),r.call(this,this.g.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,""),null,t)}var s=!1;try{var l=new URL("b","http://a");l.pathname="c%20d",s="http://a/c%20d"===l.href}catch(e){}if(!s){var u=Object.create(null);u.ftp=21,u.file=0,u.gopher=70,u.http=80,u.https=443,u.ws=80,u.wss=443;var c=Object.create(null);c["%2e"]=".",c[".%2e"]="..",c["%2e."]="..",c["%2e%2e"]="..";var d=/[a-zA-Z]/,h=/[a-zA-Z0-9+\-.]/;a.prototype={toString:function(){return this.href},get href(){if(this.m)return this.g;var e="";return""==this.B&&null==this.j||(e=this.B+(null!=this.j?":"+this.j:"")+"@"),this.protocol+(this.H?"//"+e+this.host:"")+this.pathname+this.A+this.C},set href(e){o.call(this),r.call(this,e)},get protocol(){return this.l+":"},set protocol(e){this.m||r.call(this,e+":","scheme start")},get host(){return this.m?"":this.v?this.o+":"+this.v:this.o},set host(e){!this.m&&this.H&&r.call(this,e,"host")},get hostname(){return this.o},set hostname(e){!this.m&&this.H&&r.call(this,e,"hostname")},get port(){return this.v},set port(e){!this.m&&this.H&&r.call(this,e,"port")},get pathname(){return this.m?"":this.H?"/"+this.s.join("/"):this.ya},set pathname(e){!this.m&&this.H&&(this.s=[],r.call(this,e,"relative path start"))},get search(){return this.m||!this.A||"?"==this.A?"":this.A},set search(e){!this.m&&this.H&&(this.A="?","?"==e[0]&&(e=e.slice(1)),r.call(this,e,"query"))},get hash(){return this.m||!this.C||"#"==this.C?"":this.C},set hash(e){this.m||(e?(this.C="#","#"==e[0]&&(e=e.slice(1)),r.call(this,e,"fragment")):this.C="")},get origin(){var e;if(this.m||!this.l)return"";switch(this.l){case"data":case"file":case"javascript":case"mailto":return"null"}return(e=this.host)?this.l+"://"+e:""}};var p=e.URL;p&&(a.createObjectURL=function(e){return p.createObjectURL.apply(p,arguments)},a.revokeObjectURL=function(e){p.revokeObjectURL(e)}),e.URL=a}}(window);var js=window.customElements,Hs=!1,Bs=null;function Vs(){window.HTMLTemplateElement.bootstrap&&window.HTMLTemplateElement.bootstrap(window.document),Bs&&Bs(),Hs=!0,window.WebComponents.ready=!0,document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))}js.polyfillWrapFlushCallback&&js.polyfillWrapFlushCallback((function(e){Bs=e,Hs&&e()})),"complete"!==document.readyState?(window.addEventListener("load",Vs),window.addEventListener("DOMContentLoaded",(function(){window.removeEventListener("load",Vs),Vs()}))):Vs()}).call(this)},95012:(e,t,n)=>{function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function d(e,t,n,i){var r=t&&t.prototype instanceof m?t:m,a=Object.create(r.prototype),s=new D(i||[]);return o(a,"_invoke",{value:T(e,n,s)}),a}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=d;var p="suspendedStart",f="suspendedYield",_="executing",g="completed",b={};function m(){}function v(){}function y(){}var k={};c(k,s,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x($([])));w&&w!==n&&r.call(w,s)&&(k=w);var E=y.prototype=m.prototype=Object.create(k);function S(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(o,a,s,l){var u=h(e[o],e,a);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"===i(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,l)}))}l(u.arg)}var a;o(this,"_invoke",{value:function(e,i){function r(){return new t((function(t,r){n(e,i,t,r)}))}return a=a?a.then(r,r):r()}})}function T(e,n,i){var r=p;return function(o,a){if(r===_)throw new Error("Generator is already running");if(r===g){if("throw"===o)throw a;return{value:t,done:!0}}for(i.method=o,i.arg=a;;){var s=i.delegate;if(s){var l=A(s,i);if(l){if(l===b)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===p)throw r=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=_;var u=h(e,n,i);if("normal"===u.type){if(r=i.done?g:f,u.arg===b)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(r=g,i.method="throw",i.arg=u.arg)}}}function A(e,n){var i=n.method,r=e.iterator[i];if(r===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),b;var o=h(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,b;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function $(e){if(null!=e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(i(e)+" is not iterable")}return v.prototype=y,o(E,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,u,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},S(C.prototype),c(C.prototype,l,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var a=new C(d(t,n,i,r),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(E),c(E,u,"Generator"),c(E,s,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=$,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(i,r){return s.type="throw",s.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:$(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),b}},e}("object"===i(e=n.nmd(e))?e.exports:{});try{regeneratorRuntime=r}catch(e){"object"===("undefined"==typeof globalThis?"undefined":i(globalThis))?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},79306:(e,t,n)=>{"use strict";var i=n(94901),r=n(16823),o=TypeError;e.exports=function(e){if(i(e))return e;throw new o(r(e)+" is not a function")}},35548:(e,t,n)=>{"use strict";var i=n(33517),r=n(16823),o=TypeError;e.exports=function(e){if(i(e))return e;throw new o(r(e)+" is not a constructor")}},73506:(e,t,n)=>{"use strict";var i=n(13925),r=String,o=TypeError;e.exports=function(e){if(i(e))return e;throw new o("Can't set "+r(e)+" as a prototype")}},97080:(e,t,n)=>{"use strict";var i=n(94402).has;e.exports=function(e){return i(e),e}},6469:(e,t,n)=>{"use strict";var i=n(78227),r=n(2360),o=n(24913).f,a=i("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:r(null)}),e.exports=function(e){s[a][e]=!0}},57829:(e,t,n)=>{"use strict";var i=n(68183).charAt;e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},90679:(e,t,n)=>{"use strict";var i=n(1625),r=TypeError;e.exports=function(e,t){if(i(t,e))return e;throw new r("Incorrect invocation")}},28551:(e,t,n)=>{"use strict";var i=n(20034),r=String,o=TypeError;e.exports=function(e){if(i(e))return e;throw new o(r(e)+" is not an object")}},77811:e=>{"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},67394:(e,t,n)=>{"use strict";var i=n(44576),r=n(46706),o=n(22195),a=i.ArrayBuffer,s=i.TypeError;e.exports=a&&r(a.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!==o(e))throw new s("ArrayBuffer expected");return e.byteLength}},3238:(e,t,n)=>{"use strict";var i=n(44576),r=n(27476),o=n(67394),a=i.ArrayBuffer,s=a&&a.prototype,l=s&&r(s.slice);e.exports=function(e){if(0!==o(e))return!1;if(!l)return!1;try{return l(e,0,0),!1}catch(e){return!0}}},15652:(e,t,n)=>{"use strict";var i=n(79039);e.exports=i((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},55169:(e,t,n)=>{"use strict";var i=n(3238),r=TypeError;e.exports=function(e){if(i(e))throw new r("ArrayBuffer is detached");return e}},95636:(e,t,n)=>{"use strict";var i=n(44576),r=n(79504),o=n(46706),a=n(57696),s=n(55169),l=n(67394),u=n(94483),c=n(1548),d=i.structuredClone,h=i.ArrayBuffer,p=i.DataView,f=Math.min,_=h.prototype,g=p.prototype,b=r(_.slice),m=o(_,"resizable","get"),v=o(_,"maxByteLength","get"),y=r(g.getInt8),k=r(g.setInt8);e.exports=(c||u)&&function(e,t,n){var i,r=l(e),o=void 0===t?r:a(t),_=!m||!m(e);if(s(e),c&&(e=d(e,{transfer:[e]}),r===o&&(n||_)))return e;if(r>=o&&(!n||_))i=b(e,0,o);else{var g=n&&!_&&v?{maxByteLength:v(e)}:void 0;i=new h(o,g);for(var x=new p(e),w=new p(i),E=f(o,r),S=0;S<E;S++)k(w,S,y(x,S))}return c||u(e),i}},94644:(e,t,n)=>{"use strict";var i,r,o,a=n(77811),s=n(43724),l=n(44576),u=n(94901),c=n(20034),d=n(39297),h=n(36955),p=n(16823),f=n(66699),_=n(36840),g=n(62106),b=n(1625),m=n(42787),v=n(52967),y=n(78227),k=n(33392),x=n(91181),w=x.enforce,E=x.get,S=l.Int8Array,C=S&&S.prototype,T=l.Uint8ClampedArray,A=T&&T.prototype,I=S&&m(S),O=C&&m(C),D=Object.prototype,$=l.TypeError,N=y("toStringTag"),M=k("TYPED_ARRAY_TAG"),L="TypedArrayConstructor",P=a&&!!v&&"Opera"!==h(l.opera),R=!1,j={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},H={BigInt64Array:8,BigUint64Array:8},B=function(e){var t=m(e);if(c(t)){var n=E(t);return n&&d(n,L)?n[L]:B(t)}},V=function(e){if(!c(e))return!1;var t=h(e);return d(j,t)||d(H,t)};for(i in j)(o=(r=l[i])&&r.prototype)?w(o)[L]=r:P=!1;for(i in H)(o=(r=l[i])&&r.prototype)&&(w(o)[L]=r);if((!P||!u(I)||I===Function.prototype)&&(I=function(){throw new $("Incorrect invocation")},P))for(i in j)l[i]&&v(l[i],I);if((!P||!O||O===D)&&(O=I.prototype,P))for(i in j)l[i]&&v(l[i].prototype,O);if(P&&m(A)!==O&&v(A,O),s&&!d(O,N))for(i in R=!0,g(O,N,{configurable:!0,get:function(){return c(this)?this[M]:void 0}}),j)l[i]&&f(l[i],M,i);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:R&&M,aTypedArray:function(e){if(V(e))return e;throw new $("Target is not a typed array")},aTypedArrayConstructor:function(e){if(u(e)&&(!v||b(I,e)))return e;throw new $(p(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,i){if(s){if(n)for(var r in j){var o=l[r];if(o&&d(o.prototype,e))try{delete o.prototype[e]}catch(n){try{o.prototype[e]=t}catch(e){}}}O[e]&&!n||_(O,e,n?t:P&&C[e]||t,i)}},exportTypedArrayStaticMethod:function(e,t,n){var i,r;if(s){if(v){if(n)for(i in j)if((r=l[i])&&d(r,e))try{delete r[e]}catch(e){}if(I[e]&&!n)return;try{return _(I,e,n?t:P&&I[e]||t)}catch(e){}}for(i in j)!(r=l[i])||r[e]&&!n||_(r,e,t)}},getTypedArrayConstructor:B,isView:function(e){if(!c(e))return!1;var t=h(e);return"DataView"===t||d(j,t)||d(H,t)},isTypedArray:V,TypedArray:I,TypedArrayPrototype:O}},66346:(e,t,n)=>{"use strict";var i=n(44576),r=n(79504),o=n(43724),a=n(77811),s=n(10350),l=n(66699),u=n(62106),c=n(56279),d=n(79039),h=n(90679),p=n(91291),f=n(18014),_=n(57696),g=n(15617),b=n(88490),m=n(42787),v=n(52967),y=n(84373),k=n(67680),x=n(23167),w=n(77740),E=n(10687),S=n(91181),C=s.PROPER,T=s.CONFIGURABLE,A="ArrayBuffer",I="DataView",O="prototype",D="Wrong index",$=S.getterFor(A),N=S.getterFor(I),M=S.set,L=i[A],P=L,R=P&&P[O],j=i[I],H=j&&j[O],B=Object.prototype,V=i.Array,U=i.RangeError,F=r(y),z=r([].reverse),G=b.pack,W=b.unpack,q=function(e){return[255&e]},K=function(e){return[255&e,e>>8&255]},Y=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},J=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Z=function(e){return G(g(e),23,4)},X=function(e){return G(e,52,8)},Q=function(e,t,n){u(e[O],t,{configurable:!0,get:function(){return n(this)[t]}})},ee=function(e,t,n,i){var r=N(e),o=_(n),a=!!i;if(o+t>r.byteLength)throw new U(D);var s=r.bytes,l=o+r.byteOffset,u=k(s,l,l+t);return a?u:z(u)},te=function(e,t,n,i,r,o){var a=N(e),s=_(n),l=i(+r),u=!!o;if(s+t>a.byteLength)throw new U(D);for(var c=a.bytes,d=s+a.byteOffset,h=0;h<t;h++)c[d+h]=l[u?h:t-h-1]};if(a){var ne=C&&L.name!==A;d((function(){L(1)}))&&d((function(){new L(-1)}))&&!d((function(){return new L,new L(1.5),new L(NaN),1!==L.length||ne&&!T}))?ne&&T&&l(L,"name",A):((P=function(e){return h(this,R),x(new L(_(e)),this,P)})[O]=R,R.constructor=P,w(P,L)),v&&m(H)!==B&&v(H,B);var ie=new j(new P(2)),re=r(H.setInt8);ie.setInt8(0,2147483648),ie.setInt8(1,2147483649),!ie.getInt8(0)&&ie.getInt8(1)||c(H,{setInt8:function(e,t){re(this,e,t<<24>>24)},setUint8:function(e,t){re(this,e,t<<24>>24)}},{unsafe:!0})}else R=(P=function(e){h(this,R);var t=_(e);M(this,{type:A,bytes:F(V(t),0),byteLength:t}),o||(this.byteLength=t,this.detached=!1)})[O],H=(j=function(e,t,n){h(this,H),h(e,R);var i=$(e),r=i.byteLength,a=p(t);if(a<0||a>r)throw new U("Wrong offset");if(a+(n=void 0===n?r-a:f(n))>r)throw new U("Wrong length");M(this,{type:I,buffer:e,byteLength:n,byteOffset:a,bytes:i.bytes}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=a)})[O],o&&(Q(P,"byteLength",$),Q(j,"buffer",N),Q(j,"byteLength",N),Q(j,"byteOffset",N)),c(H,{getInt8:function(e){return ee(this,1,e)[0]<<24>>24},getUint8:function(e){return ee(this,1,e)[0]},getInt16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return J(ee(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return J(ee(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return W(ee(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return W(ee(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){te(this,1,e,q,t)},setUint8:function(e,t){te(this,1,e,q,t)},setInt16:function(e,t){te(this,2,e,K,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){te(this,2,e,K,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){te(this,4,e,Y,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){te(this,4,e,Y,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){te(this,4,e,Z,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){te(this,8,e,X,t,arguments.length>2&&arguments[2])}});E(P,A),E(j,I),e.exports={ArrayBuffer:P,DataView:j}},57029:(e,t,n)=>{"use strict";var i=n(48981),r=n(35610),o=n(26198),a=n(84606),s=Math.min;e.exports=[].copyWithin||function(e,t){var n=i(this),l=o(n),u=r(e,l),c=r(t,l),d=arguments.length>2?arguments[2]:void 0,h=s((void 0===d?l:r(d,l))-c,l-u),p=1;for(c<u&&u<c+h&&(p=-1,c+=h-1,u+=h-1);h-- >0;)c in n?n[u]=n[c]:a(n,u),u+=p,c+=p;return n}},84373:(e,t,n)=>{"use strict";var i=n(48981),r=n(35610),o=n(26198);e.exports=function(e){for(var t=i(this),n=o(t),a=arguments.length,s=r(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,u=void 0===l?n:r(l,n);u>s;)t[s++]=e;return t}},90235:(e,t,n)=>{"use strict";var i=n(59213).forEach,r=n(34598)("forEach");e.exports=r?[].forEach:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}},35370:(e,t,n)=>{"use strict";var i=n(26198);e.exports=function(e,t,n){for(var r=0,o=arguments.length>2?n:i(t),a=new e(o);o>r;)a[r]=t[r++];return a}},97916:(e,t,n)=>{"use strict";var i=n(76080),r=n(69565),o=n(48981),a=n(96319),s=n(44209),l=n(33517),u=n(26198),c=n(97040),d=n(70081),h=n(50851),p=Array;e.exports=function(e){var t=o(e),n=l(this),f=arguments.length,_=f>1?arguments[1]:void 0,g=void 0!==_;g&&(_=i(_,f>2?arguments[2]:void 0));var b,m,v,y,k,x,w=h(t),E=0;if(!w||this===p&&s(w))for(b=u(t),m=n?new this(b):p(b);b>E;E++)x=g?_(t[E],E):t[E],c(m,E,x);else for(m=n?new this:[],k=(y=d(t,w)).next;!(v=r(k,y)).done;E++)x=g?a(y,_,[v.value,E],!0):v.value,c(m,E,x);return m.length=E,m}},19617:(e,t,n)=>{"use strict";var i=n(25397),r=n(35610),o=n(26198),a=function(e){return function(t,n,a){var s=i(t),l=o(s);if(0===l)return!e&&-1;var u,c=r(a,l);if(e&&n!=n){for(;l>c;)if((u=s[c++])!=u)return!0}else for(;l>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},43839:(e,t,n)=>{"use strict";var i=n(76080),r=n(47055),o=n(48981),a=n(26198),s=function(e){var t=1===e;return function(n,s,l){for(var u,c=o(n),d=r(c),h=a(d),p=i(s,l);h-- >0;)if(p(u=d[h],h,c))switch(e){case 0:return u;case 1:return h}return t?-1:void 0}};e.exports={findLast:s(0),findLastIndex:s(1)}},59213:(e,t,n)=>{"use strict";var i=n(76080),r=n(79504),o=n(47055),a=n(48981),s=n(26198),l=n(1469),u=r([].push),c=function(e){var t=1===e,n=2===e,r=3===e,c=4===e,d=6===e,h=7===e,p=5===e||d;return function(f,_,g,b){for(var m,v,y=a(f),k=o(y),x=s(k),w=i(_,g),E=0,S=b||l,C=t?S(f,x):n||h?S(f,0):void 0;x>E;E++)if((p||E in k)&&(v=w(m=k[E],E,y),e))if(t)C[E]=v;else if(v)switch(e){case 3:return!0;case 5:return m;case 6:return E;case 2:u(C,m)}else switch(e){case 4:return!1;case 7:u(C,m)}return d?-1:r||c?c:C}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},8379:(e,t,n)=>{"use strict";var i=n(18745),r=n(25397),o=n(91291),a=n(26198),s=n(34598),l=Math.min,u=[].lastIndexOf,c=!!u&&1/[1].lastIndexOf(1,-0)<0,d=s("lastIndexOf"),h=c||!d;e.exports=h?function(e){if(c)return i(u,this,arguments)||0;var t=r(this),n=a(t);if(0===n)return-1;var s=n-1;for(arguments.length>1&&(s=l(s,o(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:u},70597:(e,t,n)=>{"use strict";var i=n(79039),r=n(78227),o=n(39519),a=r("species");e.exports=function(e){return o>=51||!i((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},34598:(e,t,n)=>{"use strict";var i=n(79039);e.exports=function(e,t){var n=[][e];return!!n&&i((function(){n.call(null,t||function(){return 1},1)}))}},80926:(e,t,n)=>{"use strict";var i=n(79306),r=n(48981),o=n(47055),a=n(26198),s=TypeError,l="Reduce of empty array with no initial value",u=function(e){return function(t,n,u,c){var d=r(t),h=o(d),p=a(d);if(i(n),0===p&&u<2)throw new s(l);var f=e?p-1:0,_=e?-1:1;if(u<2)for(;;){if(f in h){c=h[f],f+=_;break}if(f+=_,e?f<0:p<=f)throw new s(l)}for(;e?f>=0:p>f;f+=_)f in h&&(c=n(c,h[f],f,d));return c}};e.exports={left:u(!1),right:u(!0)}},34527:(e,t,n)=>{"use strict";var i=n(43724),r=n(34376),o=TypeError,a=Object.getOwnPropertyDescriptor,s=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(r(e)&&!a(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},67680:(e,t,n)=>{"use strict";var i=n(79504);e.exports=i([].slice)},74488:(e,t,n)=>{"use strict";var i=n(67680),r=Math.floor,o=function(e,t){var n=e.length;if(n<8)for(var a,s,l=1;l<n;){for(s=l,a=e[l];s&&t(e[s-1],a)>0;)e[s]=e[--s];s!==l++&&(e[s]=a)}else for(var u=r(n/2),c=o(i(e,0,u),t),d=o(i(e,u),t),h=c.length,p=d.length,f=0,_=0;f<h||_<p;)e[f+_]=f<h&&_<p?t(c[f],d[_])<=0?c[f++]:d[_++]:f<h?c[f++]:d[_++];return e};e.exports=o},87433:(e,t,n)=>{"use strict";var i=n(34376),r=n(33517),o=n(20034),a=n(78227)("species"),s=Array;e.exports=function(e){var t;return i(e)&&(t=e.constructor,(r(t)&&(t===s||i(t.prototype))||o(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},1469:(e,t,n)=>{"use strict";var i=n(87433);e.exports=function(e,t){return new(i(e))(0===t?0:t)}},37628:(e,t,n)=>{"use strict";var i=n(26198);e.exports=function(e,t){for(var n=i(e),r=new t(n),o=0;o<n;o++)r[o]=e[n-o-1];return r}},39928:(e,t,n)=>{"use strict";var i=n(26198),r=n(91291),o=RangeError;e.exports=function(e,t,n,a){var s=i(e),l=r(n),u=l<0?s+l:l;if(u>=s||u<0)throw new o("Incorrect index");for(var c=new t(s),d=0;d<s;d++)c[d]=d===u?a:e[d];return c}},92804:e=>{"use strict";var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=t+"+/",i=t+"-_",r=function(e){for(var t={},n=0;n<64;n++)t[e.charAt(n)]=n;return t};e.exports={i2c:n,c2i:r(n),i2cUrl:i,c2iUrl:r(i)}},96319:(e,t,n)=>{"use strict";var i=n(28551),r=n(9539);e.exports=function(e,t,n,o){try{return o?t(i(n)[0],n[1]):t(n)}catch(t){r(e,"throw",t)}}},84428:(e,t,n)=>{"use strict";var i=n(78227)("iterator"),r=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){r=!0}};a[i]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!r)return!1}catch(e){return!1}var n=!1;try{var o={};o[i]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},22195:(e,t,n)=>{"use strict";var i=n(79504),r=i({}.toString),o=i("".slice);e.exports=function(e){return o(r(e),8,-1)}},36955:(e,t,n)=>{"use strict";var i=n(92140),r=n(94901),o=n(22195),a=n(78227)("toStringTag"),s=Object,l="Arguments"===o(function(){return arguments}());e.exports=i?o:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:l?o(t):"Object"===(i=o(t))&&r(t.callee)?"Arguments":i}},86938:(e,t,n)=>{"use strict";var i=n(2360),r=n(62106),o=n(56279),a=n(76080),s=n(90679),l=n(64117),u=n(72652),c=n(51088),d=n(62529),h=n(87633),p=n(43724),f=n(3451).fastKey,_=n(91181),g=_.set,b=_.getterFor;e.exports={getConstructor:function(e,t,n,c){var d=e((function(e,r){s(e,h),g(e,{type:t,index:i(null),first:null,last:null,size:0}),p||(e.size=0),l(r)||u(r,e[c],{that:e,AS_ENTRIES:n})})),h=d.prototype,_=b(t),m=function(e,t,n){var i,r,o=_(e),a=v(e,t);return a?a.value=n:(o.last=a={index:r=f(t,!0),key:t,value:n,previous:i=o.last,next:null,removed:!1},o.first||(o.first=a),i&&(i.next=a),p?o.size++:e.size++,"F"!==r&&(o.index[r]=a)),e},v=function(e,t){var n,i=_(e),r=f(t);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key===t)return n};return o(h,{clear:function(){for(var e=_(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=null),t=t.next;e.first=e.last=null,e.index=i(null),p?e.size=0:this.size=0},delete:function(e){var t=this,n=_(t),i=v(t,e);if(i){var r=i.next,o=i.previous;delete n.index[i.index],i.removed=!0,o&&(o.next=r),r&&(r.previous=o),n.first===i&&(n.first=r),n.last===i&&(n.last=o),p?n.size--:t.size--}return!!i},forEach:function(e){for(var t,n=_(this),i=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(i(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!v(this,e)}}),o(h,n?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),p&&r(h,"size",{configurable:!0,get:function(){return _(this).size}}),d},setStrong:function(e,t,n){var i=t+" Iterator",r=b(t),o=b(i);c(e,t,(function(e,t){g(this,{type:i,target:e,state:r(e),kind:t,last:null})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?d("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=null,d(void 0,!0))}),n?"entries":"values",!n,!0),h(t)}}},91625:(e,t,n)=>{"use strict";var i=n(79504),r=n(56279),o=n(3451).getWeakData,a=n(90679),s=n(28551),l=n(64117),u=n(20034),c=n(72652),d=n(59213),h=n(39297),p=n(91181),f=p.set,_=p.getterFor,g=d.find,b=d.findIndex,m=i([].splice),v=0,y=function(e){return e.frozen||(e.frozen=new k)},k=function(){this.entries=[]},x=function(e,t){return g(e.entries,(function(e){return e[0]===t}))};k.prototype={get:function(e){var t=x(this,e);if(t)return t[1]},has:function(e){return!!x(this,e)},set:function(e,t){var n=x(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=b(this.entries,(function(t){return t[0]===e}));return~t&&m(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,i){var d=e((function(e,r){a(e,p),f(e,{type:t,id:v++,frozen:null}),l(r)||c(r,e[i],{that:e,AS_ENTRIES:n})})),p=d.prototype,g=_(t),b=function(e,t,n){var i=g(e),r=o(s(t),!0);return!0===r?y(i).set(t,n):r[i.id]=n,e};return r(p,{delete:function(e){var t=g(this);if(!u(e))return!1;var n=o(e);return!0===n?y(t).delete(e):n&&h(n,t.id)&&delete n[t.id]},has:function(e){var t=g(this);if(!u(e))return!1;var n=o(e);return!0===n?y(t).has(e):n&&h(n,t.id)}}),r(p,n?{get:function(e){var t=g(this);if(u(e)){var n=o(e);if(!0===n)return y(t).get(e);if(n)return n[t.id]}},set:function(e,t){return b(this,e,t)}}:{add:function(e){return b(this,e,!0)}}),d}}},16468:(e,t,n)=>{"use strict";var i=n(46518),r=n(44576),o=n(79504),a=n(92796),s=n(36840),l=n(3451),u=n(72652),c=n(90679),d=n(94901),h=n(64117),p=n(20034),f=n(79039),_=n(84428),g=n(10687),b=n(23167);e.exports=function(e,t,n){var m=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),y=m?"set":"add",k=r[e],x=k&&k.prototype,w=k,E={},S=function(e){var t=o(x[e]);s(x,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(v&&!p(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return v&&!p(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(v&&!p(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!d(k)||!(v||x.forEach&&!f((function(){(new k).entries().next()})))))w=n.getConstructor(t,e,m,y),l.enable();else if(a(e,!0)){var C=new w,T=C[y](v?{}:-0,1)!==C,A=f((function(){C.has(1)})),I=_((function(e){new k(e)})),O=!v&&f((function(){for(var e=new k,t=5;t--;)e[y](t,t);return!e.has(-0)}));I||((w=t((function(e,t){c(e,x);var n=b(new k,e,w);return h(t)||u(t,n[y],{that:n,AS_ENTRIES:m}),n}))).prototype=x,x.constructor=w),(A||O)&&(S("delete"),S("has"),m&&S("get")),(O||T)&&S(y),v&&x.clear&&delete x.clear}return E[e]=w,i({global:!0,constructor:!0,forced:w!==k},E),g(w,e),v||n.setStrong(w,e,m),w}},77740:(e,t,n)=>{"use strict";var i=n(39297),r=n(35031),o=n(77347),a=n(24913);e.exports=function(e,t,n){for(var s=r(t),l=a.f,u=o.f,c=0;c<s.length;c++){var d=s[c];i(e,d)||n&&i(n,d)||l(e,d,u(t,d))}}},41436:(e,t,n)=>{"use strict";var i=n(78227)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,"/./"[e](t)}catch(e){}}return!1}},12211:(e,t,n)=>{"use strict";var i=n(79039);e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},77240:(e,t,n)=>{"use strict";var i=n(79504),r=n(67750),o=n(655),a=/"/g,s=i("".replace);e.exports=function(e,t,n,i){var l=o(r(e)),u="<"+t;return""!==n&&(u+=" "+n+'="'+s(o(i),a,""")+'"'),u+">"+l+"</"+t+">"}},62529:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},66699:(e,t,n)=>{"use strict";var i=n(43724),r=n(24913),o=n(6980);e.exports=i?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},6980:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},97040:(e,t,n)=>{"use strict";var i=n(43724),r=n(24913),o=n(6980);e.exports=function(e,t,n){i?r.f(e,t,o(0,n)):e[t]=n}},70380:(e,t,n)=>{"use strict";var i=n(79504),r=n(79039),o=n(60533).start,a=RangeError,s=isFinite,l=Math.abs,u=Date.prototype,c=u.toISOString,d=i(u.getTime),h=i(u.getUTCDate),p=i(u.getUTCFullYear),f=i(u.getUTCHours),_=i(u.getUTCMilliseconds),g=i(u.getUTCMinutes),b=i(u.getUTCMonth),m=i(u.getUTCSeconds);e.exports=r((function(){return"0385-07-25T07:06:39.999Z"!==c.call(new Date(-50000000000001))}))||!r((function(){c.call(new Date(NaN))}))?function(){if(!s(d(this)))throw new a("Invalid time value");var e=this,t=p(e),n=_(e),i=t<0?"-":t>9999?"+":"";return i+o(l(t),i?6:4,0)+"-"+o(b(e)+1,2,0)+"-"+o(h(e),2,0)+"T"+o(f(e),2,0)+":"+o(g(e),2,0)+":"+o(m(e),2,0)+"."+o(n,3,0)+"Z"}:c},53640:(e,t,n)=>{"use strict";var i=n(28551),r=n(84270),o=TypeError;e.exports=function(e){if(i(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new o("Incorrect hint");return r(this,e)}},62106:(e,t,n)=>{"use strict";var i=n(50283),r=n(24913);e.exports=function(e,t,n){return n.get&&i(n.get,t,{getter:!0}),n.set&&i(n.set,t,{setter:!0}),r.f(e,t,n)}},36840:(e,t,n)=>{"use strict";var i=n(94901),r=n(24913),o=n(50283),a=n(39433);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:t;if(i(n)&&o(n,u,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:r.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},56279:(e,t,n)=>{"use strict";var i=n(36840);e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},39433:(e,t,n)=>{"use strict";var i=n(44576),r=Object.defineProperty;e.exports=function(e,t){try{r(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},84606:(e,t,n)=>{"use strict";var i=n(16823),r=TypeError;e.exports=function(e,t){if(!delete e[t])throw new r("Cannot delete property "+i(t)+" of "+i(e))}},43724:(e,t,n)=>{"use strict";var i=n(79039);e.exports=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},94483:(e,t,n)=>{"use strict";var i,r,o,a,s=n(44576),l=n(89429),u=n(1548),c=s.structuredClone,d=s.ArrayBuffer,h=s.MessageChannel,p=!1;if(u)p=function(e){c(e,{transfer:[e]})};else if(d)try{h||(i=l("worker_threads"))&&(h=i.MessageChannel),h&&(r=new h,o=new d(2),a=function(e){r.port1.postMessage(null,[e])},2===o.byteLength&&(a(o),0===o.byteLength&&(p=a)))}catch(e){}e.exports=p},4055:(e,t,n)=>{"use strict";var i=n(44576),r=n(20034),o=i.document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},96837:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},55002:e=>{"use strict";e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},67400:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},79296:(e,t,n)=>{"use strict";var i=n(4055)("span").classList,r=i&&i.constructor&&i.constructor.prototype;e.exports=r===Object.prototype?void 0:r},88727:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},13709:(e,t,n)=>{"use strict";var i=n(82839).match(/firefox\/(\d+)/i);e.exports=!!i&&+i[1]},13763:(e,t,n)=>{"use strict";var i=n(82839);e.exports=/MSIE|Trident/.test(i)},44265:(e,t,n)=>{"use strict";var i=n(82839);e.exports=/ipad|iphone|ipod/i.test(i)&&"undefined"!=typeof Pebble},89544:(e,t,n)=>{"use strict";var i=n(82839);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(i)},38574:(e,t,n)=>{"use strict";var i=n(84215);e.exports="NODE"===i},7860:(e,t,n)=>{"use strict";var i=n(82839);e.exports=/web0s(?!.*chrome)/i.test(i)},82839:(e,t,n)=>{"use strict";var i=n(44576).navigator,r=i&&i.userAgent;e.exports=r?String(r):""},39519:(e,t,n)=>{"use strict";var i,r,o=n(44576),a=n(82839),s=o.process,l=o.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(r=(i=c.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(r=+i[1]),e.exports=r},3607:(e,t,n)=>{"use strict";var i=n(82839).match(/AppleWebKit\/(\d+)\./);e.exports=!!i&&+i[1]},84215:(e,t,n)=>{"use strict";var i=n(44576),r=n(82839),o=n(22195),a=function(e){return r.slice(0,e.length)===e};e.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":i.Bun&&"string"==typeof Bun.version?"BUN":i.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(i.process)?"NODE":i.window&&i.document?"BROWSER":"REST"},16193:(e,t,n)=>{"use strict";var i=n(79504),r=Error,o=i("".replace),a=String(new r("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);e.exports=function(e,t){if(l&&"string"==typeof e&&!r.prepareStackTrace)for(;t--;)e=o(e,s,"");return e}},80747:(e,t,n)=>{"use strict";var i=n(66699),r=n(16193),o=n(24659),a=Error.captureStackTrace;e.exports=function(e,t,n,s){o&&(a?a(e,t):i(e,"stack",r(n,s)))}},24659:(e,t,n)=>{"use strict";var i=n(79039),r=n(6980);e.exports=!i((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",r(1,7)),7!==e.stack)}))},77536:(e,t,n)=>{"use strict";var i=n(43724),r=n(79039),o=n(28551),a=n(32603),s=Error.prototype.toString,l=r((function(){if(i){var e=Object.create(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==s.call(e))return!0}return"2: 1"!==s.call({message:1,name:2})||"Error"!==s.call({})}));e.exports=l?function(){var e=o(this),t=a(e.name,"Error"),n=a(e.message);return t?n?t+": "+n:t:n}:s},46518:(e,t,n)=>{"use strict";var i=n(44576),r=n(77347).f,o=n(66699),a=n(36840),s=n(39433),l=n(77740),u=n(92796);e.exports=function(e,t){var n,c,d,h,p,f=e.target,_=e.global,g=e.stat;if(n=_?i:g?i[f]||s(f,{}):i[f]&&i[f].prototype)for(c in t){if(h=t[c],d=e.dontCallGetSet?(p=r(n,c))&&p.value:n[c],!u(_?c:f+(g?".":"#")+c,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&o(h,"sham",!0),a(n,c,h,e)}}},79039:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},89228:(e,t,n)=>{"use strict";n(27495);var i=n(69565),r=n(36840),o=n(57323),a=n(79039),s=n(78227),l=n(66699),u=s("species"),c=RegExp.prototype;e.exports=function(e,t,n,d){var h=s(e),p=!a((function(){var t={};return t[h]=function(){return 7},7!==""[e](t)})),f=p&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!p||!f||n){var _=/./[h],g=t(h,""[e],(function(e,t,n,r,a){var s=t.exec;return s===o||s===c.exec?p&&!a?{done:!0,value:i(_,t,n,r)}:{done:!0,value:i(e,n,t,r)}:{done:!1}}));r(String.prototype,e,g[0]),r(c,h,g[1])}d&&l(c[h],"sham",!0)}},70259:(e,t,n)=>{"use strict";var i=n(34376),r=n(26198),o=n(96837),a=n(76080),s=function(e,t,n,l,u,c,d,h){for(var p,f,_=u,g=0,b=!!d&&a(d,h);g<l;)g in n&&(p=b?b(n[g],g,t):n[g],c>0&&i(p)?(f=r(p),_=s(e,t,p,f,_,c-1)-1):(o(_+1),e[_]=p),_++),g++;return _};e.exports=s},92744:(e,t,n)=>{"use strict";var i=n(79039);e.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},18745:(e,t,n)=>{"use strict";var i=n(40616),r=Function.prototype,o=r.apply,a=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(o):function(){return a.apply(o,arguments)})},76080:(e,t,n)=>{"use strict";var i=n(27476),r=n(79306),o=n(40616),a=i(i.bind);e.exports=function(e,t){return r(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},40616:(e,t,n)=>{"use strict";var i=n(79039);e.exports=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},30566:(e,t,n)=>{"use strict";var i=n(79504),r=n(79306),o=n(20034),a=n(39297),s=n(67680),l=n(40616),u=Function,c=i([].concat),d=i([].join),h={};e.exports=l?u.bind:function(e){var t=r(this),n=t.prototype,i=s(arguments,1),l=function(){var n=c(i,s(arguments));return this instanceof l?function(e,t,n){if(!a(h,t)){for(var i=[],r=0;r<t;r++)i[r]="a["+r+"]";h[t]=u("C,a","return new C("+d(i,",")+")")}return h[t](e,n)}(t,n.length,n):t.apply(e,n)};return o(n)&&(l.prototype=n),l}},69565:(e,t,n)=>{"use strict";var i=n(40616),r=Function.prototype.call;e.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},10350:(e,t,n)=>{"use strict";var i=n(43724),r=n(39297),o=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,s=r(o,"name"),l=s&&"something"===function(){}.name,u=s&&(!i||i&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},46706:(e,t,n)=>{"use strict";var i=n(79504),r=n(79306);e.exports=function(e,t,n){try{return i(r(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},27476:(e,t,n)=>{"use strict";var i=n(22195),r=n(79504);e.exports=function(e){if("Function"===i(e))return r(e)}},79504:(e,t,n)=>{"use strict";var i=n(40616),r=Function.prototype,o=r.call,a=i&&r.bind.bind(o,o);e.exports=i?a:function(e){return function(){return o.apply(e,arguments)}}},89429:(e,t,n)=>{"use strict";var i=n(44576),r=n(38574);e.exports=function(e){if(r){try{return i.process.getBuiltinModule(e)}catch(e){}try{return Function('return require("'+e+'")')()}catch(e){}}}},44124:(e,t,n)=>{"use strict";var i=n(44576);e.exports=function(e,t){var n=i[e],r=n&&n.prototype;return r&&r[t]}},97751:(e,t,n)=>{"use strict";var i=n(44576),r=n(94901);e.exports=function(e,t){return arguments.length<2?(n=i[e],r(n)?n:void 0):i[e]&&i[e][t];var n}},1767:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},50851:(e,t,n)=>{"use strict";var i=n(36955),r=n(55966),o=n(64117),a=n(26269),s=n(78227)("iterator");e.exports=function(e){if(!o(e))return r(e,s)||r(e,"@@iterator")||a[i(e)]}},70081:(e,t,n)=>{"use strict";var i=n(69565),r=n(79306),o=n(28551),a=n(16823),s=n(50851),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(r(n))return o(i(n,e));throw new l(a(e)+" is not iterable")}},66933:(e,t,n)=>{"use strict";var i=n(79504),r=n(34376),o=n(94901),a=n(22195),s=n(655),l=i([].push);e.exports=function(e){if(o(e))return e;if(r(e)){for(var t=e.length,n=[],i=0;i<t;i++){var u=e[i];"string"==typeof u?l(n,u):"number"!=typeof u&&"Number"!==a(u)&&"String"!==a(u)||l(n,s(u))}var c=n.length,d=!0;return function(e,t){if(d)return d=!1,t;if(r(this))return t;for(var i=0;i<c;i++)if(n[i]===e)return t}}}},55966:(e,t,n)=>{"use strict";var i=n(79306),r=n(64117);e.exports=function(e,t){var n=e[t];return r(n)?void 0:i(n)}},83789:(e,t,n)=>{"use strict";var i=n(79306),r=n(28551),o=n(69565),a=n(91291),s=n(1767),l="Invalid size",u=RangeError,c=TypeError,d=Math.max,h=function(e,t){this.set=e,this.size=d(t,0),this.has=i(e.has),this.keys=i(e.keys)};h.prototype={getIterator:function(){return s(r(o(this.keys,this.set)))},includes:function(e){return o(this.has,this.set,e)}},e.exports=function(e){r(e);var t=+e.size;if(t!=t)throw new c(l);var n=a(t);if(n<0)throw new u(l);return new h(e,n)}},2478:(e,t,n)=>{"use strict";var i=n(79504),r=n(48981),o=Math.floor,a=i("".charAt),s=i("".replace),l=i("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,i,d,h){var p=n+e.length,f=i.length,_=c;return void 0!==d&&(d=r(d),_=u),s(h,_,(function(r,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,p);case"<":u=d[l(s,1,-1)];break;default:var c=+s;if(0===c)return r;if(c>f){var h=o(c/10);return 0===h?r:h<=f?void 0===i[h-1]?a(s,1):i[h-1]+a(s,1):r}u=i[c-1]}return void 0===u?"":u}))}},44576:function(e,t,n){"use strict";var i=function(e){return e&&e.Math===Math&&e};e.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||i("object"==typeof this&&this)||function(){return this}()||Function("return this")()},39297:(e,t,n)=>{"use strict";var i=n(79504),r=n(48981),o=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(r(e),t)}},30421:e=>{"use strict";e.exports={}},90757:e=>{"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},20397:(e,t,n)=>{"use strict";var i=n(97751);e.exports=i("document","documentElement")},35917:(e,t,n)=>{"use strict";var i=n(43724),r=n(79039),o=n(4055);e.exports=!i&&!r((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},88490:e=>{"use strict";var t=Array,n=Math.abs,i=Math.pow,r=Math.floor,o=Math.log,a=Math.LN2;e.exports={pack:function(e,s,l){var u,c,d,h=t(l),p=8*l-s-1,f=(1<<p)-1,_=f>>1,g=23===s?i(2,-24)-i(2,-77):0,b=e<0||0===e&&1/e<0?1:0,m=0;for((e=n(e))!=e||e===1/0?(c=e!=e?1:0,u=f):(u=r(o(e)/a),e*(d=i(2,-u))<1&&(u--,d*=2),(e+=u+_>=1?g/d:g*i(2,1-_))*d>=2&&(u++,d/=2),u+_>=f?(c=0,u=f):u+_>=1?(c=(e*d-1)*i(2,s),u+=_):(c=e*i(2,_-1)*i(2,s),u=0));s>=8;)h[m++]=255&c,c/=256,s-=8;for(u=u<<s|c,p+=s;p>0;)h[m++]=255&u,u/=256,p-=8;return h[m-1]|=128*b,h},unpack:function(e,t){var n,r=e.length,o=8*r-t-1,a=(1<<o)-1,s=a>>1,l=o-7,u=r-1,c=e[u--],d=127&c;for(c>>=7;l>0;)d=256*d+e[u--],l-=8;for(n=d&(1<<-l)-1,d>>=-l,l+=t;l>0;)n=256*n+e[u--],l-=8;if(0===d)d=1-s;else{if(d===a)return n?NaN:c?-1/0:1/0;n+=i(2,t),d-=s}return(c?-1:1)*n*i(2,d-t)}}},47055:(e,t,n)=>{"use strict";var i=n(79504),r=n(79039),o=n(22195),a=Object,s=i("".split);e.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?s(e,""):a(e)}:a},23167:(e,t,n)=>{"use strict";var i=n(94901),r=n(20034),o=n(52967);e.exports=function(e,t,n){var a,s;return o&&i(a=t.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},33706:(e,t,n)=>{"use strict";var i=n(79504),r=n(94901),o=n(77629),a=i(Function.toString);r(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},77584:(e,t,n)=>{"use strict";var i=n(20034),r=n(66699);e.exports=function(e,t){i(t)&&"cause"in t&&r(e,"cause",t.cause)}},3451:(e,t,n)=>{"use strict";var i=n(46518),r=n(79504),o=n(30421),a=n(20034),s=n(39297),l=n(24913).f,u=n(38480),c=n(10298),d=n(34124),h=n(33392),p=n(92744),f=!1,_=h("meta"),g=0,b=function(e){l(e,_,{value:{objectID:"O"+g++,weakData:{}}})},m=e.exports={enable:function(){m.enable=function(){},f=!0;var e=u.f,t=r([].splice),n={};n[_]=1,e(n).length&&(u.f=function(n){for(var i=e(n),r=0,o=i.length;r<o;r++)if(i[r]===_){t(i,r,1);break}return i},i({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,_)){if(!d(e))return"F";if(!t)return"E";b(e)}return e[_].objectID},getWeakData:function(e,t){if(!s(e,_)){if(!d(e))return!0;if(!t)return!1;b(e)}return e[_].weakData},onFreeze:function(e){return p&&f&&d(e)&&!s(e,_)&&b(e),e}};o[_]=!0},91181:(e,t,n)=>{"use strict";var i,r,o,a=n(58622),s=n(44576),l=n(20034),u=n(66699),c=n(39297),d=n(77629),h=n(66119),p=n(30421),f="Object already initialized",_=s.TypeError,g=s.WeakMap;if(a||d.state){var b=d.state||(d.state=new g);b.get=b.get,b.has=b.has,b.set=b.set,i=function(e,t){if(b.has(e))throw new _(f);return t.facade=e,b.set(e,t),t},r=function(e){return b.get(e)||{}},o=function(e){return b.has(e)}}else{var m=h("state");p[m]=!0,i=function(e,t){if(c(e,m))throw new _(f);return t.facade=e,u(e,m,t),t},r=function(e){return c(e,m)?e[m]:{}},o=function(e){return c(e,m)}}e.exports={set:i,get:r,has:o,enforce:function(e){return o(e)?r(e):i(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw new _("Incompatible receiver, "+e+" required");return n}}}},44209:(e,t,n)=>{"use strict";var i=n(78227),r=n(26269),o=i("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[o]===e)}},34376:(e,t,n)=>{"use strict";var i=n(22195);e.exports=Array.isArray||function(e){return"Array"===i(e)}},18727:(e,t,n)=>{"use strict";var i=n(36955);e.exports=function(e){var t=i(e);return"BigInt64Array"===t||"BigUint64Array"===t}},94901:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},33517:(e,t,n)=>{"use strict";var i=n(79504),r=n(79039),o=n(94901),a=n(36955),s=n(97751),l=n(33706),u=function(){},c=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,h=i(d.exec),p=!d.test(u),f=function(e){if(!o(e))return!1;try{return c(u,[],e),!0}catch(e){return!1}},_=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!h(d,l(e))}catch(e){return!0}};_.sham=!0,e.exports=!c||r((function(){var e;return f(f.call)||!f(Object)||!f((function(){e=!0}))||e}))?_:f},16575:(e,t,n)=>{"use strict";var i=n(39297);e.exports=function(e){return void 0!==e&&(i(e,"value")||i(e,"writable"))}},92796:(e,t,n)=>{"use strict";var i=n(79039),r=n(94901),o=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n===c||n!==u&&(r(t)?i(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},2087:(e,t,n)=>{"use strict";var i=n(20034),r=Math.floor;e.exports=Number.isInteger||function(e){return!i(e)&&isFinite(e)&&r(e)===e}},64117:e=>{"use strict";e.exports=function(e){return null==e}},20034:(e,t,n)=>{"use strict";var i=n(94901);e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},13925:(e,t,n)=>{"use strict";var i=n(20034);e.exports=function(e){return i(e)||null===e}},96395:e=>{"use strict";e.exports=!1},60788:(e,t,n)=>{"use strict";var i=n(20034),r=n(22195),o=n(78227)("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[o])?!!t:"RegExp"===r(e))}},10757:(e,t,n)=>{"use strict";var i=n(97751),r=n(94901),o=n(1625),a=n(7040),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return r(t)&&o(t.prototype,s(e))}},40507:(e,t,n)=>{"use strict";var i=n(69565);e.exports=function(e,t,n){for(var r,o,a=n?e:e.iterator,s=e.next;!(r=i(s,a)).done;)if(void 0!==(o=t(r.value)))return o}},72652:(e,t,n)=>{"use strict";var i=n(76080),r=n(69565),o=n(28551),a=n(16823),s=n(44209),l=n(26198),u=n(1625),c=n(70081),d=n(50851),h=n(9539),p=TypeError,f=function(e,t){this.stopped=e,this.result=t},_=f.prototype;e.exports=function(e,t,n){var g,b,m,v,y,k,x,w=n&&n.that,E=!(!n||!n.AS_ENTRIES),S=!(!n||!n.IS_RECORD),C=!(!n||!n.IS_ITERATOR),T=!(!n||!n.INTERRUPTED),A=i(t,w),I=function(e){return g&&h(g,"normal",e),new f(!0,e)},O=function(e){return E?(o(e),T?A(e[0],e[1],I):A(e[0],e[1])):T?A(e,I):A(e)};if(S)g=e.iterator;else if(C)g=e;else{if(!(b=d(e)))throw new p(a(e)+" is not iterable");if(s(b)){for(m=0,v=l(e);v>m;m++)if((y=O(e[m]))&&u(_,y))return y;return new f(!1)}g=c(e,b)}for(k=S?e.next:g.next;!(x=r(k,g)).done;){try{y=O(x.value)}catch(e){h(g,"throw",e)}if("object"==typeof y&&y&&u(_,y))return y}return new f(!1)}},9539:(e,t,n)=>{"use strict";var i=n(69565),r=n(28551),o=n(55966);e.exports=function(e,t,n){var a,s;r(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw n;return n}a=i(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return r(a),n}},33994:(e,t,n)=>{"use strict";var i=n(57657).IteratorPrototype,r=n(2360),o=n(6980),a=n(10687),s=n(26269),l=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=r(i,{next:o(+!u,n)}),a(e,c,!1,!0),s[c]=l,e}},51088:(e,t,n)=>{"use strict";var i=n(46518),r=n(69565),o=n(96395),a=n(10350),s=n(94901),l=n(33994),u=n(42787),c=n(52967),d=n(10687),h=n(66699),p=n(36840),f=n(78227),_=n(26269),g=n(57657),b=a.PROPER,m=a.CONFIGURABLE,v=g.IteratorPrototype,y=g.BUGGY_SAFARI_ITERATORS,k=f("iterator"),x="keys",w="values",E="entries",S=function(){return this};e.exports=function(e,t,n,a,f,g,C){l(n,t,a);var T,A,I,O=function(e){if(e===f&&L)return L;if(!y&&e&&e in N)return N[e];switch(e){case x:case w:case E:return function(){return new n(this,e)}}return function(){return new n(this)}},D=t+" Iterator",$=!1,N=e.prototype,M=N[k]||N["@@iterator"]||f&&N[f],L=!y&&M||O(f),P="Array"===t&&N.entries||M;if(P&&(T=u(P.call(new e)))!==Object.prototype&&T.next&&(o||u(T)===v||(c?c(T,v):s(T[k])||p(T,k,S)),d(T,D,!0,!0),o&&(_[D]=S)),b&&f===w&&M&&M.name!==w&&(!o&&m?h(N,"name",w):($=!0,L=function(){return r(M,this)})),f)if(A={values:O(w),keys:g?L:O(x),entries:O(E)},C)for(I in A)(y||$||!(I in N))&&p(N,I,A[I]);else i({target:t,proto:!0,forced:y||$},A);return o&&!C||N[k]===L||p(N,k,L,{name:f}),_[t]=L,A}},57657:(e,t,n)=>{"use strict";var i,r,o,a=n(79039),s=n(94901),l=n(20034),u=n(2360),c=n(42787),d=n(36840),h=n(78227),p=n(96395),f=h("iterator"),_=!1;[].keys&&("next"in(o=[].keys())?(r=c(c(o)))!==Object.prototype&&(i=r):_=!0),!l(i)||a((function(){var e={};return i[f].call(e)!==e}))?i={}:p&&(i=u(i)),s(i[f])||d(i,f,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:_}},26269:e=>{"use strict";e.exports={}},26198:(e,t,n)=>{"use strict";var i=n(18014);e.exports=function(e){return i(e.length)}},50283:(e,t,n)=>{"use strict";var i=n(79504),r=n(79039),o=n(94901),a=n(39297),s=n(43724),l=n(10350).CONFIGURABLE,u=n(33706),c=n(91181),d=c.enforce,h=c.get,p=String,f=Object.defineProperty,_=i("".slice),g=i("".replace),b=i([].join),m=s&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),v=String(String).split("String"),y=e.exports=function(e,t,n){"Symbol("===_(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?f(e,"name",{value:t,configurable:!0}):e.name=t),m&&n&&a(n,"arity")&&e.length!==n.arity&&f(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var i=d(e);return a(i,"source")||(i.source=b(v,"string"==typeof t?t:"")),e};Function.prototype.toString=y((function(){return o(this)&&h(this).source||u(this)}),"toString")},72248:(e,t,n)=>{"use strict";var i=n(79504),r=Map.prototype;e.exports={Map,set:i(r.set),get:i(r.get),has:i(r.has),remove:i(r.delete),proto:r}},53250:e=>{"use strict";var t=Math.expm1,n=Math.exp;e.exports=!t||t(10)>22025.465794806718||t(10)<22025.465794806718||-2e-17!==t(-2e-17)?function(e){var t=+e;return 0===t?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}:t},33164:(e,t,n)=>{"use strict";var i=n(77782),r=Math.abs,o=2220446049250313e-31,a=1/o;e.exports=function(e,t,n,s){var l=+e,u=r(l),c=i(l);if(u<s)return c*function(e){return e+a-a}(u/s/t)*s*t;var d=(1+t/o)*u,h=d-(d-u);return h>n||h!=h?c*(1/0):c*h}},15617:(e,t,n)=>{"use strict";var i=n(33164);e.exports=Math.fround||function(e){return i(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},49340:e=>{"use strict";var t=Math.log,n=Math.LOG10E;e.exports=Math.log10||function(e){return t(e)*n}},7740:e=>{"use strict";var t=Math.log;e.exports=Math.log1p||function(e){var n=+e;return n>-1e-8&&n<1e-8?n-n*n/2:t(1+n)}},77782:e=>{"use strict";e.exports=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1}},80741:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var i=+e;return(i>0?n:t)(i)}},91955:(e,t,n)=>{"use strict";var i,r,o,a,s,l=n(44576),u=n(93389),c=n(76080),d=n(59225).set,h=n(18265),p=n(89544),f=n(44265),_=n(7860),g=n(38574),b=l.MutationObserver||l.WebKitMutationObserver,m=l.document,v=l.process,y=l.Promise,k=u("queueMicrotask");if(!k){var x=new h,w=function(){var e,t;for(g&&(e=v.domain)&&e.exit();t=x.get();)try{t()}catch(e){throw x.head&&i(),e}e&&e.enter()};p||g||_||!b||!m?!f&&y&&y.resolve?((a=y.resolve(void 0)).constructor=y,s=c(a.then,a),i=function(){s(w)}):g?i=function(){v.nextTick(w)}:(d=c(d,l),i=function(){d(w)}):(r=!0,o=m.createTextNode(""),new b(w).observe(o,{characterData:!0}),i=function(){o.data=r=!r}),k=function(e){x.head||i(),x.add(e)}}e.exports=k},36043:(e,t,n)=>{"use strict";var i=n(79306),r=TypeError,o=function(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw new r("Bad Promise constructor");t=e,n=i})),this.resolve=i(t),this.reject=i(n)};e.exports.f=function(e){return new o(e)}},32603:(e,t,n)=>{"use strict";var i=n(655);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},60511:(e,t,n)=>{"use strict";var i=n(60788),r=TypeError;e.exports=function(e){if(i(e))throw new r("The method doesn't accept regular expressions");return e}},50360:(e,t,n)=>{"use strict";var i=n(44576).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&i(e)}},33904:(e,t,n)=>{"use strict";var i=n(44576),r=n(79039),o=n(79504),a=n(655),s=n(43802).trim,l=n(47452),u=o("".charAt),c=i.parseFloat,d=i.Symbol,h=d&&d.iterator,p=1/c(l+"-0")!=-1/0||h&&!r((function(){c(Object(h))}));e.exports=p?function(e){var t=s(a(e)),n=c(t);return 0===n&&"-"===u(t,0)?-0:n}:c},52703:(e,t,n)=>{"use strict";var i=n(44576),r=n(79039),o=n(79504),a=n(655),s=n(43802).trim,l=n(47452),u=i.parseInt,c=i.Symbol,d=c&&c.iterator,h=/^[+-]?0x/i,p=o(h.exec),f=8!==u(l+"08")||22!==u(l+"0x16")||d&&!r((function(){u(Object(d))}));e.exports=f?function(e,t){var n=s(a(e));return u(n,t>>>0||(p(h,n)?16:10))}:u},44213:(e,t,n)=>{"use strict";var i=n(43724),r=n(79504),o=n(69565),a=n(79039),s=n(71072),l=n(33717),u=n(48773),c=n(48981),d=n(47055),h=Object.assign,p=Object.defineProperty,f=r([].concat);e.exports=!h||a((function(){if(i&&1!==h({b:1},h(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!==h({},e)[n]||s(h({},t)).join("")!==r}))?function(e,t){for(var n=c(e),r=arguments.length,a=1,h=l.f,p=u.f;r>a;)for(var _,g=d(arguments[a++]),b=h?f(s(g),h(g)):s(g),m=b.length,v=0;m>v;)_=b[v++],i&&!o(p,g,_)||(n[_]=g[_]);return n}:h},2360:(e,t,n)=>{"use strict";var i,r=n(28551),o=n(96801),a=n(88727),s=n(30421),l=n(20397),u=n(4055),c=n(66119),d="prototype",h="script",p=c("IE_PROTO"),f=function(){},_=function(e){return"<"+h+">"+e+"</"+h+">"},g=function(e){e.write(_("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;b="undefined"!=typeof document?document.domain&&i?g(i):(t=u("iframe"),n="java"+h+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(_("document.F=Object")),e.close(),e.F):g(i);for(var r=a.length;r--;)delete b[d][a[r]];return b()};s[p]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f[d]=r(e),n=new f,f[d]=null,n[p]=e):n=b(),void 0===t?n:o.f(n,t)}},96801:(e,t,n)=>{"use strict";var i=n(43724),r=n(48686),o=n(24913),a=n(28551),s=n(25397),l=n(71072);t.f=i&&!r?Object.defineProperties:function(e,t){a(e);for(var n,i=s(t),r=l(t),u=r.length,c=0;u>c;)o.f(e,n=r[c++],i[n]);return e}},24913:(e,t,n)=>{"use strict";var i=n(43724),r=n(35917),o=n(48686),a=n(28551),s=n(56969),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",p="writable";t.f=i?o?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var i=c(e,t);i&&i[p]&&(e[t]=n.value,n={configurable:h in n?n[h]:i[h],enumerable:d in n?n[d]:i[d],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(a(e),t=s(t),a(n),r)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},77347:(e,t,n)=>{"use strict";var i=n(43724),r=n(69565),o=n(48773),a=n(6980),s=n(25397),l=n(56969),u=n(39297),c=n(35917),d=Object.getOwnPropertyDescriptor;t.f=i?d:function(e,t){if(e=s(e),t=l(t),c)try{return d(e,t)}catch(e){}if(u(e,t))return a(!r(o.f,e,t),e[t])}},10298:(e,t,n)=>{"use strict";var i=n(22195),r=n(25397),o=n(38480).f,a=n(67680),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===i(e)?function(e){try{return o(e)}catch(e){return a(s)}}(e):o(r(e))}},38480:(e,t,n)=>{"use strict";var i=n(61828),r=n(88727).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},33717:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},42787:(e,t,n)=>{"use strict";var i=n(39297),r=n(94901),o=n(48981),a=n(66119),s=n(12211),l=a("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=o(e);if(i(t,l))return t[l];var n=t.constructor;return r(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},34124:(e,t,n)=>{"use strict";var i=n(79039),r=n(20034),o=n(22195),a=n(15652),s=Object.isExtensible,l=i((function(){s(1)}));e.exports=l||a?function(e){return!!r(e)&&(!a||"ArrayBuffer"!==o(e))&&(!s||s(e))}:s},1625:(e,t,n)=>{"use strict";var i=n(79504);e.exports=i({}.isPrototypeOf)},61828:(e,t,n)=>{"use strict";var i=n(79504),r=n(39297),o=n(25397),a=n(19617).indexOf,s=n(30421),l=i([].push);e.exports=function(e,t){var n,i=o(e),u=0,c=[];for(n in i)!r(s,n)&&r(i,n)&&l(c,n);for(;t.length>u;)r(i,n=t[u++])&&(~a(c,n)||l(c,n));return c}},71072:(e,t,n)=>{"use strict";var i=n(61828),r=n(88727);e.exports=Object.keys||function(e){return i(e,r)}},48773:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!n.call({1:2},1);t.f=r?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},42551:(e,t,n)=>{"use strict";var i=n(96395),r=n(44576),o=n(79039),a=n(3607);e.exports=i||!o((function(){if(!(a&&a<535)){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete r[e]}}))},52967:(e,t,n)=>{"use strict";var i=n(46706),r=n(20034),o=n(67750),a=n(73506);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=i(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return o(n),a(i),r(n)?(t?e(n,i):n.__proto__=i,n):n}}():void 0)},32357:(e,t,n)=>{"use strict";var i=n(43724),r=n(79039),o=n(79504),a=n(42787),s=n(71072),l=n(25397),u=o(n(48773).f),c=o([].push),d=i&&r((function(){var e=Object.create(null);return e[2]=2,!u(e,2)})),h=function(e){return function(t){for(var n,r=l(t),o=s(r),h=d&&null===a(r),p=o.length,f=0,_=[];p>f;)n=o[f++],i&&!(h?n in r:u(r,n))||c(_,e?[n,r[n]]:r[n]);return _}};e.exports={entries:h(!0),values:h(!1)}},53179:(e,t,n)=>{"use strict";var i=n(92140),r=n(36955);e.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},84270:(e,t,n)=>{"use strict";var i=n(69565),r=n(94901),o=n(20034),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&r(n=e.toString)&&!o(s=i(n,e)))return s;if(r(n=e.valueOf)&&!o(s=i(n,e)))return s;if("string"!==t&&r(n=e.toString)&&!o(s=i(n,e)))return s;throw new a("Can't convert object to primitive value")}},35031:(e,t,n)=>{"use strict";var i=n(97751),r=n(79504),o=n(38480),a=n(33717),s=n(28551),l=r([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?l(t,n(e)):t}},19167:(e,t,n)=>{"use strict";var i=n(44576);e.exports=i},1103:e=>{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},10916:(e,t,n)=>{"use strict";var i=n(44576),r=n(80550),o=n(94901),a=n(92796),s=n(33706),l=n(78227),u=n(84215),c=n(96395),d=n(39519),h=r&&r.prototype,p=l("species"),f=!1,_=o(i.PromiseRejectionEvent),g=a("Promise",(function(){var e=s(r),t=e!==String(r);if(!t&&66===d)return!0;if(c&&(!h.catch||!h.finally))return!0;if(!d||d<51||!/native code/.test(e)){var n=new r((function(e){e(1)})),i=function(e){e((function(){}),(function(){}))};if((n.constructor={})[p]=i,!(f=n.then((function(){}))instanceof i))return!0}return!(t||"BROWSER"!==u&&"DENO"!==u||_)}));e.exports={CONSTRUCTOR:g,REJECTION_EVENT:_,SUBCLASSING:f}},80550:(e,t,n)=>{"use strict";var i=n(44576);e.exports=i.Promise},93438:(e,t,n)=>{"use strict";var i=n(28551),r=n(20034),o=n(36043);e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},90537:(e,t,n)=>{"use strict";var i=n(80550),r=n(84428),o=n(10916).CONSTRUCTOR;e.exports=o||!r((function(e){i.all(e).then(void 0,(function(){}))}))},11056:(e,t,n)=>{"use strict";var i=n(24913).f;e.exports=function(e,t,n){n in e||i(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},18265:e=>{"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},56682:(e,t,n)=>{"use strict";var i=n(69565),r=n(28551),o=n(94901),a=n(22195),s=n(57323),l=TypeError;e.exports=function(e,t){var n=e.exec;if(o(n)){var u=i(n,e,t);return null!==u&&r(u),u}if("RegExp"===a(e))return i(s,e,t);throw new l("RegExp#exec called on incompatible receiver")}},57323:(e,t,n)=>{"use strict";var i,r,o=n(69565),a=n(79504),s=n(655),l=n(67979),u=n(58429),c=n(25745),d=n(2360),h=n(91181).get,p=n(83635),f=n(18814),_=c("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,b=g,m=a("".charAt),v=a("".indexOf),y=a("".replace),k=a("".slice),x=(r=/b*/g,o(g,i=/a/,"a"),o(g,r,"a"),0!==i.lastIndex||0!==r.lastIndex),w=u.BROKEN_CARET,E=void 0!==/()??/.exec("")[1];(x||E||w||p||f)&&(b=function(e){var t,n,i,r,a,u,c,p=this,f=h(p),S=s(e),C=f.raw;if(C)return C.lastIndex=p.lastIndex,t=o(b,C,S),p.lastIndex=C.lastIndex,t;var T=f.groups,A=w&&p.sticky,I=o(l,p),O=p.source,D=0,$=S;if(A&&(I=y(I,"y",""),-1===v(I,"g")&&(I+="g"),$=k(S,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==m(S,p.lastIndex-1))&&(O="(?: "+O+")",$=" "+$,D++),n=new RegExp("^(?:"+O+")",I)),E&&(n=new RegExp("^"+O+"$(?!\\s)",I)),x&&(i=p.lastIndex),r=o(g,A?n:p,$),A?r?(r.input=k(r.input,D),r[0]=k(r[0],D),r.index=p.lastIndex,p.lastIndex+=r[0].length):p.lastIndex=0:x&&r&&(p.lastIndex=p.global?r.index+r[0].length:i),E&&r&&r.length>1&&o(_,r[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(r[a]=void 0)})),r&&T)for(r.groups=u=d(null),a=0;a<T.length;a++)u[(c=T[a])[0]]=r[c[1]];return r}),e.exports=b},67979:(e,t,n)=>{"use strict";var i=n(28551);e.exports=function(){var e=i(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},61034:(e,t,n)=>{"use strict";var i=n(69565),r=n(39297),o=n(1625),a=n(67979),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||r(e,"flags")||!o(s,e)?t:i(a,e)}},58429:(e,t,n)=>{"use strict";var i=n(79039),r=n(44576).RegExp,o=i((function(){var e=r("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=o||i((function(){return!r("a","y").sticky})),s=o||i((function(){var e=r("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},83635:(e,t,n)=>{"use strict";var i=n(79039),r=n(44576).RegExp;e.exports=i((function(){var e=r(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},18814:(e,t,n)=>{"use strict";var i=n(79039),r=n(44576).RegExp;e.exports=i((function(){var e=r("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},67750:(e,t,n)=>{"use strict";var i=n(64117),r=TypeError;e.exports=function(e){if(i(e))throw new r("Can't call method on "+e);return e}},93389:(e,t,n)=>{"use strict";var i=n(44576),r=n(43724),o=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!r)return i[e];var t=o(i,e);return t&&t.value}},3470:e=>{"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},79472:(e,t,n)=>{"use strict";var i,r=n(44576),o=n(18745),a=n(94901),s=n(84215),l=n(82839),u=n(67680),c=n(22812),d=r.Function,h=/MSIE .\./.test(l)||"BUN"===s&&((i=r.Bun.version.split(".")).length<3||"0"===i[0]&&(i[1]<3||"3"===i[1]&&"0"===i[2]));e.exports=function(e,t){var n=t?2:1;return h?function(i,r){var s=c(arguments.length,1)>n,l=a(i)?i:d(i),h=s?u(arguments,n):[],p=s?function(){o(l,this,h)}:l;return t?e(p,r):e(p)}:e}},89286:(e,t,n)=>{"use strict";var i=n(94402),r=n(38469),o=i.Set,a=i.add;e.exports=function(e){var t=new o;return r(e,(function(e){a(t,e)})),t}},83440:(e,t,n)=>{"use strict";var i=n(97080),r=n(94402),o=n(89286),a=n(25170),s=n(83789),l=n(38469),u=n(40507),c=r.has,d=r.remove;e.exports=function(e){var t=i(this),n=s(e),r=o(t);return a(t)<=n.size?l(t,(function(e){n.includes(e)&&d(r,e)})):u(n.getIterator(),(function(e){c(t,e)&&d(r,e)})),r}},94402:(e,t,n)=>{"use strict";var i=n(79504),r=Set.prototype;e.exports={Set,add:i(r.add),has:i(r.has),remove:i(r.delete),proto:r}},68750:(e,t,n)=>{"use strict";var i=n(97080),r=n(94402),o=n(25170),a=n(83789),s=n(38469),l=n(40507),u=r.Set,c=r.add,d=r.has;e.exports=function(e){var t=i(this),n=a(e),r=new u;return o(t)>n.size?l(n.getIterator(),(function(e){d(t,e)&&c(r,e)})):s(t,(function(e){n.includes(e)&&c(r,e)})),r}},64449:(e,t,n)=>{"use strict";var i=n(97080),r=n(94402).has,o=n(25170),a=n(83789),s=n(38469),l=n(40507),u=n(9539);e.exports=function(e){var t=i(this),n=a(e);if(o(t)<=n.size)return!1!==s(t,(function(e){if(n.includes(e))return!1}),!0);var c=n.getIterator();return!1!==l(c,(function(e){if(r(t,e))return u(c,"normal",!1)}))}},53838:(e,t,n)=>{"use strict";var i=n(97080),r=n(25170),o=n(38469),a=n(83789);e.exports=function(e){var t=i(this),n=a(e);return!(r(t)>n.size)&&!1!==o(t,(function(e){if(!n.includes(e))return!1}),!0)}},28527:(e,t,n)=>{"use strict";var i=n(97080),r=n(94402).has,o=n(25170),a=n(83789),s=n(40507),l=n(9539);e.exports=function(e){var t=i(this),n=a(e);if(o(t)<n.size)return!1;var u=n.getIterator();return!1!==s(u,(function(e){if(!r(t,e))return l(u,"normal",!1)}))}},38469:(e,t,n)=>{"use strict";var i=n(79504),r=n(40507),o=n(94402),a=o.Set,s=o.proto,l=i(s.forEach),u=i(s.keys),c=u(new a).next;e.exports=function(e,t,n){return n?r({iterator:u(e),next:c},t):l(e,t)}},84916:(e,t,n)=>{"use strict";var i=n(97751),r=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};e.exports=function(e){var t=i("Set");try{(new t)[e](r(0));try{return(new t)[e](r(-1)),!1}catch(e){return!0}}catch(e){return!1}}},25170:(e,t,n)=>{"use strict";var i=n(46706),r=n(94402);e.exports=i(r.proto,"size","get")||function(e){return e.size}},87633:(e,t,n)=>{"use strict";var i=n(97751),r=n(62106),o=n(78227),a=n(43724),s=o("species");e.exports=function(e){var t=i(e);a&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},83650:(e,t,n)=>{"use strict";var i=n(97080),r=n(94402),o=n(89286),a=n(83789),s=n(40507),l=r.add,u=r.has,c=r.remove;e.exports=function(e){var t=i(this),n=a(e).getIterator(),r=o(t);return s(n,(function(e){u(t,e)?c(r,e):l(r,e)})),r}},10687:(e,t,n)=>{"use strict";var i=n(24913).f,r=n(39297),o=n(78227)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!r(e,o)&&i(e,o,{configurable:!0,value:t})}},44204:(e,t,n)=>{"use strict";var i=n(97080),r=n(94402).add,o=n(89286),a=n(83789),s=n(40507);e.exports=function(e){var t=i(this),n=a(e).getIterator(),l=o(t);return s(n,(function(e){r(l,e)})),l}},66119:(e,t,n)=>{"use strict";var i=n(25745),r=n(33392),o=i("keys");e.exports=function(e){return o[e]||(o[e]=r(e))}},77629:(e,t,n)=>{"use strict";var i=n(96395),r=n(44576),o=n(39433),a="__core-js_shared__",s=e.exports=r[a]||o(a,{});(s.versions||(s.versions=[])).push({version:"3.38.1",mode:i?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})},25745:(e,t,n)=>{"use strict";var i=n(77629);e.exports=function(e,t){return i[e]||(i[e]=t||{})}},2293:(e,t,n)=>{"use strict";var i=n(28551),r=n(35548),o=n(64117),a=n(78227)("species");e.exports=function(e,t){var n,s=i(e).constructor;return void 0===s||o(n=i(s)[a])?t:r(n)}},23061:(e,t,n)=>{"use strict";var i=n(79039);e.exports=function(e){return i((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},68183:(e,t,n)=>{"use strict";var i=n(79504),r=n(91291),o=n(655),a=n(67750),s=i("".charAt),l=i("".charCodeAt),u=i("".slice),c=function(e){return function(t,n){var i,c,d=o(a(t)),h=r(n),p=d.length;return h<0||h>=p?e?"":void 0:(i=l(d,h))<55296||i>56319||h+1===p||(c=l(d,h+1))<56320||c>57343?e?s(d,h):i:e?u(d,h,h+2):c-56320+(i-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},83063:(e,t,n)=>{"use strict";var i=n(82839);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(i)},60533:(e,t,n)=>{"use strict";var i=n(79504),r=n(18014),o=n(655),a=n(72333),s=n(67750),l=i(a),u=i("".slice),c=Math.ceil,d=function(e){return function(t,n,i){var a,d,h=o(s(t)),p=r(n),f=h.length,_=void 0===i?" ":o(i);return p<=f||""===_?h:((d=l(_,c((a=p-f)/_.length))).length>a&&(d=u(d,0,a)),e?h+d:d+h)}};e.exports={start:d(!1),end:d(!0)}},3717:(e,t,n)=>{"use strict";var i=n(79504),r=2147483647,o=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",l=RangeError,u=i(a.exec),c=Math.floor,d=String.fromCharCode,h=i("".charCodeAt),p=i([].join),f=i([].push),_=i("".replace),g=i("".split),b=i("".toLowerCase),m=function(e){return e+22+75*(e<26)},v=function(e,t,n){var i=0;for(e=n?c(e/700):e>>1,e+=c(e/t);e>455;)e=c(e/35),i+=36;return c(i+36*e/(e+38))},y=function(e){var t=[];e=function(e){for(var t=[],n=0,i=e.length;n<i;){var r=h(e,n++);if(r>=55296&&r<=56319&&n<i){var o=h(e,n++);56320==(64512&o)?f(t,((1023&r)<<10)+(1023&o)+65536):(f(t,r),n--)}else f(t,r)}return t}(e);var n,i,o=e.length,a=128,u=0,_=72;for(n=0;n<e.length;n++)(i=e[n])<128&&f(t,d(i));var g=t.length,b=g;for(g&&f(t,"-");b<o;){var y=r;for(n=0;n<e.length;n++)(i=e[n])>=a&&i<y&&(y=i);var k=b+1;if(y-a>c((r-u)/k))throw new l(s);for(u+=(y-a)*k,a=y,n=0;n<e.length;n++){if((i=e[n])<a&&++u>r)throw new l(s);if(i===a){for(var x=u,w=36;;){var E=w<=_?1:w>=_+26?26:w-_;if(x<E)break;var S=x-E,C=36-E;f(t,d(m(E+S%C))),x=c(S/C),w+=36}f(t,d(m(x))),_=v(u,k,b===g),u=0,b++}}u++,a++}return p(t,"")};e.exports=function(e){var t,n,i=[],r=g(_(b(e),a,"."),".");for(t=0;t<r.length;t++)n=r[t],f(i,u(o,n)?"xn--"+y(n):n);return p(i,".")}},72333:(e,t,n)=>{"use strict";var i=n(91291),r=n(655),o=n(67750),a=RangeError;e.exports=function(e){var t=r(o(this)),n="",s=i(e);if(s<0||s===1/0)throw new a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(n+=t);return n}},18866:(e,t,n)=>{"use strict";var i=n(43802).end,r=n(60706);e.exports=r("trimEnd")?function(){return i(this)}:"".trimEnd},60706:(e,t,n)=>{"use strict";var i=n(10350).PROPER,r=n(79039),o=n(47452);e.exports=function(e){return r((function(){return!!o[e]()||"
"!=="
"[e]()||i&&o[e].name!==e}))}},53487:(e,t,n)=>{"use strict";var i=n(43802).start,r=n(60706);e.exports=r("trimStart")?function(){return i(this)}:"".trimStart},43802:(e,t,n)=>{"use strict";var i=n(79504),r=n(67750),o=n(655),a=n(47452),s=i("".replace),l=RegExp("^["+a+"]+"),u=RegExp("(^|[^"+a+"])["+a+"]+$"),c=function(e){return function(t){var n=o(r(t));return 1&e&&(n=s(n,l,"")),2&e&&(n=s(n,u,"$1")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},1548:(e,t,n)=>{"use strict";var i=n(44576),r=n(79039),o=n(39519),a=n(84215),s=i.structuredClone;e.exports=!!s&&!r((function(){if("DENO"===a&&o>92||"NODE"===a&&o>94||"BROWSER"===a&&o>97)return!1;var e=new ArrayBuffer(8),t=s(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength}))},4495:(e,t,n)=>{"use strict";var i=n(39519),r=n(79039),o=n(44576).String;e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},58242:(e,t,n)=>{"use strict";var i=n(69565),r=n(97751),o=n(78227),a=n(36840);e.exports=function(){var e=r("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=o("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return i(n,this)}),{arity:1})}},91296:(e,t,n)=>{"use strict";var i=n(4495);e.exports=i&&!!Symbol.for&&!!Symbol.keyFor},59225:(e,t,n)=>{"use strict";var i,r,o,a,s=n(44576),l=n(18745),u=n(76080),c=n(94901),d=n(39297),h=n(79039),p=n(20397),f=n(67680),_=n(4055),g=n(22812),b=n(89544),m=n(38574),v=s.setImmediate,y=s.clearImmediate,k=s.process,x=s.Dispatch,w=s.Function,E=s.MessageChannel,S=s.String,C=0,T={},A="onreadystatechange";h((function(){i=s.location}));var I=function(e){if(d(T,e)){var t=T[e];delete T[e],t()}},O=function(e){return function(){I(e)}},D=function(e){I(e.data)},$=function(e){s.postMessage(S(e),i.protocol+"//"+i.host)};v&&y||(v=function(e){g(arguments.length,1);var t=c(e)?e:w(e),n=f(arguments,1);return T[++C]=function(){l(t,void 0,n)},r(C),C},y=function(e){delete T[e]},m?r=function(e){k.nextTick(O(e))}:x&&x.now?r=function(e){x.now(O(e))}:E&&!b?(a=(o=new E).port2,o.port1.onmessage=D,r=u(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&i&&"file:"!==i.protocol&&!h($)?(r=$,s.addEventListener("message",D,!1)):r=A in _("script")?function(e){p.appendChild(_("script"))[A]=function(){p.removeChild(this),I(e)}}:function(e){setTimeout(O(e),0)}),e.exports={set:v,clear:y}},31240:(e,t,n)=>{"use strict";var i=n(79504);e.exports=i(1..valueOf)},35610:(e,t,n)=>{"use strict";var i=n(91291),r=Math.max,o=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):o(n,t)}},75854:(e,t,n)=>{"use strict";var i=n(72777),r=TypeError;e.exports=function(e){var t=i(e,"number");if("number"==typeof t)throw new r("Can't convert number to bigint");return BigInt(t)}},57696:(e,t,n)=>{"use strict";var i=n(91291),r=n(18014),o=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=i(e),n=r(t);if(t!==n)throw new o("Wrong length or index");return n}},25397:(e,t,n)=>{"use strict";var i=n(47055),r=n(67750);e.exports=function(e){return i(r(e))}},91291:(e,t,n)=>{"use strict";var i=n(80741);e.exports=function(e){var t=+e;return t!=t||0===t?0:i(t)}},18014:(e,t,n)=>{"use strict";var i=n(91291),r=Math.min;e.exports=function(e){var t=i(e);return t>0?r(t,9007199254740991):0}},48981:(e,t,n)=>{"use strict";var i=n(67750),r=Object;e.exports=function(e){return r(i(e))}},58229:(e,t,n)=>{"use strict";var i=n(99590),r=RangeError;e.exports=function(e,t){var n=i(e);if(n%t)throw new r("Wrong offset");return n}},99590:(e,t,n)=>{"use strict";var i=n(91291),r=RangeError;e.exports=function(e){var t=i(e);if(t<0)throw new r("The argument can't be less than 0");return t}},72777:(e,t,n)=>{"use strict";var i=n(69565),r=n(20034),o=n(10757),a=n(55966),s=n(84270),l=n(78227),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!r(e)||o(e))return e;var n,l=a(e,c);if(l){if(void 0===t&&(t="default"),n=i(l,e,t),!r(n)||o(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},56969:(e,t,n)=>{"use strict";var i=n(72777),r=n(10757);e.exports=function(e){var t=i(e,"string");return r(t)?t:t+""}},92140:(e,t,n)=>{"use strict";var i={};i[n(78227)("toStringTag")]="z",e.exports="[object z]"===String(i)},655:(e,t,n)=>{"use strict";var i=n(36955),r=String;e.exports=function(e){if("Symbol"===i(e))throw new TypeError("Cannot convert a Symbol value to a string");return r(e)}},58319:e=>{"use strict";var t=Math.round;e.exports=function(e){var n=t(e);return n<0?0:n>255?255:255&n}},16823:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},15823:(e,t,n)=>{"use strict";var i=n(46518),r=n(44576),o=n(69565),a=n(43724),s=n(72805),l=n(94644),u=n(66346),c=n(90679),d=n(6980),h=n(66699),p=n(2087),f=n(18014),_=n(57696),g=n(58229),b=n(58319),m=n(56969),v=n(39297),y=n(36955),k=n(20034),x=n(10757),w=n(2360),E=n(1625),S=n(52967),C=n(38480).f,T=n(43251),A=n(59213).forEach,I=n(87633),O=n(62106),D=n(24913),$=n(77347),N=n(35370),M=n(91181),L=n(23167),P=M.get,R=M.set,j=M.enforce,H=D.f,B=$.f,V=r.RangeError,U=u.ArrayBuffer,F=U.prototype,z=u.DataView,G=l.NATIVE_ARRAY_BUFFER_VIEWS,W=l.TYPED_ARRAY_TAG,q=l.TypedArray,K=l.TypedArrayPrototype,Y=l.isTypedArray,J="BYTES_PER_ELEMENT",Z="Wrong length",X=function(e,t){O(e,t,{configurable:!0,get:function(){return P(this)[t]}})},Q=function(e){var t;return E(F,e)||"ArrayBuffer"===(t=y(e))||"SharedArrayBuffer"===t},ee=function(e,t){return Y(e)&&!x(t)&&t in e&&p(+t)&&t>=0},te=function(e,t){return t=m(t),ee(e,t)?d(2,e[t]):B(e,t)},ne=function(e,t,n){return t=m(t),!(ee(e,t)&&k(n)&&v(n,"value"))||v(n,"get")||v(n,"set")||n.configurable||v(n,"writable")&&!n.writable||v(n,"enumerable")&&!n.enumerable?H(e,t,n):(e[t]=n.value,e)};a?(G||($.f=te,D.f=ne,X(K,"buffer"),X(K,"byteOffset"),X(K,"byteLength"),X(K,"length")),i({target:"Object",stat:!0,forced:!G},{getOwnPropertyDescriptor:te,defineProperty:ne}),e.exports=function(e,t,n){var a=e.match(/\d+/)[0]/8,l=e+(n?"Clamped":"")+"Array",u="get"+e,d="set"+e,p=r[l],m=p,v=m&&m.prototype,y={},x=function(e,t){H(e,t,{get:function(){return function(e,t){var n=P(e);return n.view[u](t*a+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,i){var r=P(e);r.view[d](t*a+r.byteOffset,n?b(i):i,!0)}(this,t,e)},enumerable:!0})};G?s&&(m=t((function(e,t,n,i){return c(e,v),L(k(t)?Q(t)?void 0!==i?new p(t,g(n,a),i):void 0!==n?new p(t,g(n,a)):new p(t):Y(t)?N(m,t):o(T,m,t):new p(_(t)),e,m)})),S&&S(m,q),A(C(p),(function(e){e in m||h(m,e,p[e])})),m.prototype=v):(m=t((function(e,t,n,i){c(e,v);var r,s,l,u=0,d=0;if(k(t)){if(!Q(t))return Y(t)?N(m,t):o(T,m,t);r=t,d=g(n,a);var h=t.byteLength;if(void 0===i){if(h%a)throw new V(Z);if((s=h-d)<0)throw new V(Z)}else if((s=f(i)*a)+d>h)throw new V(Z);l=s/a}else l=_(t),r=new U(s=l*a);for(R(e,{buffer:r,byteOffset:d,byteLength:s,length:l,view:new z(r)});u<l;)x(e,u++)})),S&&S(m,q),v=m.prototype=w(K)),v.constructor!==m&&h(v,"constructor",m),j(v).TypedArrayConstructor=m,W&&h(v,W,l);var E=m!==p;y[l]=m,i({global:!0,constructor:!0,forced:E,sham:!G},y),J in m||h(m,J,a),J in v||h(v,J,a),I(l)}):e.exports=function(){}},72805:(e,t,n)=>{"use strict";var i=n(44576),r=n(79039),o=n(84428),a=n(94644).NATIVE_ARRAY_BUFFER_VIEWS,s=i.ArrayBuffer,l=i.Int8Array;e.exports=!a||!r((function(){l(1)}))||!r((function(){new l(-1)}))||!o((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||r((function(){return 1!==new l(new s(2),1,void 0).length}))},26357:(e,t,n)=>{"use strict";var i=n(35370),r=n(61412);e.exports=function(e,t){return i(r(e),t)}},43251:(e,t,n)=>{"use strict";var i=n(76080),r=n(69565),o=n(35548),a=n(48981),s=n(26198),l=n(70081),u=n(50851),c=n(44209),d=n(18727),h=n(94644).aTypedArrayConstructor,p=n(75854);e.exports=function(e){var t,n,f,_,g,b,m,v,y=o(this),k=a(e),x=arguments.length,w=x>1?arguments[1]:void 0,E=void 0!==w,S=u(k);if(S&&!c(S))for(v=(m=l(k,S)).next,k=[];!(b=r(v,m)).done;)k.push(b.value);for(E&&x>2&&(w=i(w,arguments[2])),n=s(k),f=new(h(y))(n),_=d(f),t=0;n>t;t++)g=E?w(k[t],t):k[t],f[t]=_?p(g):+g;return f}},61412:(e,t,n)=>{"use strict";var i=n(94644),r=n(2293),o=i.aTypedArrayConstructor,a=i.getTypedArrayConstructor;e.exports=function(e){return o(r(e,a(e)))}},33392:(e,t,n)=>{"use strict";var i=n(79504),r=0,o=Math.random(),a=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++r+o,36)}},67416:(e,t,n)=>{"use strict";var i=n(79039),r=n(78227),o=n(43724),a=n(96395),s=r("iterator");e.exports=!i((function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),i="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),i+=n+e})),n.delete("a",2),n.delete("b",void 0),a&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(a||!o)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==i||"x"!==new URL("https://x",void 0).host}))},7040:(e,t,n)=>{"use strict";var i=n(4495);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},48686:(e,t,n)=>{"use strict";var i=n(43724),r=n(79039);e.exports=i&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},22812:e=>{"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},58622:(e,t,n)=>{"use strict";var i=n(44576),r=n(94901),o=i.WeakMap;e.exports=r(o)&&/native code/.test(String(o))},70511:(e,t,n)=>{"use strict";var i=n(19167),r=n(39297),o=n(1951),a=n(24913).f;e.exports=function(e){var t=i.Symbol||(i.Symbol={});r(t,e)||a(t,e,{value:o.f(e)})}},1951:(e,t,n)=>{"use strict";var i=n(78227);t.f=i},78227:(e,t,n)=>{"use strict";var i=n(44576),r=n(25745),o=n(39297),a=n(33392),s=n(4495),l=n(7040),u=i.Symbol,c=r("wks"),d=l?u.for||u:u&&u.withoutSetter||a;e.exports=function(e){return o(c,e)||(c[e]=s&&o(u,e)?u[e]:d("Symbol."+e)),c[e]}},47452:e=>{"use strict";e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},14601:(e,t,n)=>{"use strict";var i=n(97751),r=n(39297),o=n(66699),a=n(1625),s=n(52967),l=n(77740),u=n(11056),c=n(23167),d=n(32603),h=n(77584),p=n(80747),f=n(43724),_=n(96395);e.exports=function(e,t,n,g){var b="stackTraceLimit",m=g?2:1,v=e.split("."),y=v[v.length-1],k=i.apply(null,v);if(k){var x=k.prototype;if(!_&&r(x,"cause")&&delete x.cause,!n)return k;var w=i("Error"),E=t((function(e,t){var n=d(g?t:e,void 0),i=g?new k(e):new k;return void 0!==n&&o(i,"message",n),p(i,E,i.stack,2),this&&a(x,this)&&c(i,this,E),arguments.length>m&&h(i,arguments[m]),i}));if(E.prototype=x,"Error"!==y?s?s(E,w):l(E,w,{name:!0}):f&&b in k&&(u(E,k,b),u(E,k,"prepareStackTrace")),l(E,k),!_)try{x.name!==y&&o(x,"name",y),x.constructor=E}catch(e){}return E}}},4294:(e,t,n)=>{"use strict";var i=n(46518),r=n(97751),o=n(18745),a=n(79039),s=n(14601),l="AggregateError",u=r(l),c=!a((function(){return 1!==u([1]).errors[0]}))&&a((function(){return 7!==u([1],l,{cause:7}).cause}));i({global:!0,constructor:!0,arity:2,forced:c},{AggregateError:s(l,(function(e){return function(t,n){return o(e,this,arguments)}}),c,!0)})},17145:(e,t,n)=>{"use strict";var i=n(46518),r=n(1625),o=n(42787),a=n(52967),s=n(77740),l=n(2360),u=n(66699),c=n(6980),d=n(77584),h=n(80747),p=n(72652),f=n(32603),_=n(78227)("toStringTag"),g=Error,b=[].push,m=function(e,t){var n,i=r(v,this);a?n=a(new g,i?o(this):v):(n=i?this:l(v),u(n,_,"Error")),void 0!==t&&u(n,"message",f(t)),h(n,m,n.stack,1),arguments.length>2&&d(n,arguments[2]);var s=[];return p(e,b,{that:s}),u(n,"errors",s),n};a?a(m,g):s(m,g,{name:!0});var v=m.prototype=l(g.prototype,{constructor:c(1,m),message:c(1,""),name:c(1,"AggregateError")});i({global:!0,constructor:!0,arity:2},{AggregateError:m})},30067:(e,t,n)=>{"use strict";n(17145)},54743:(e,t,n)=>{"use strict";var i=n(46518),r=n(44576),o=n(66346),a=n(87633),s="ArrayBuffer",l=o[s];i({global:!0,constructor:!0,forced:r[s]!==l},{ArrayBuffer:l}),a(s)},16573:(e,t,n)=>{"use strict";var i=n(43724),r=n(62106),o=n(3238),a=ArrayBuffer.prototype;i&&!("detached"in a)&&r(a,"detached",{configurable:!0,get:function(){return o(this)}})},46761:(e,t,n)=>{"use strict";var i=n(46518),r=n(94644);i({target:"ArrayBuffer",stat:!0,forced:!r.NATIVE_ARRAY_BUFFER_VIEWS},{isView:r.isView})},11745:(e,t,n)=>{"use strict";var i=n(46518),r=n(27476),o=n(79039),a=n(66346),s=n(28551),l=n(35610),u=n(18014),c=n(2293),d=a.ArrayBuffer,h=a.DataView,p=h.prototype,f=r(d.prototype.slice),_=r(p.getUint8),g=r(p.setUint8);i({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o((function(){return!new d(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(f&&void 0===t)return f(s(this),e);for(var n=s(this).byteLength,i=l(e,n),r=l(void 0===t?n:t,n),o=new(c(this,d))(u(r-i)),a=new h(this),p=new h(o),b=0;i<r;)g(p,b++,_(a,i++));return o}})},77936:(e,t,n)=>{"use strict";var i=n(46518),r=n(95636);r&&i({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return r(this,arguments.length?arguments[0]:void 0,!1)}})},78100:(e,t,n)=>{"use strict";var i=n(46518),r=n(95636);r&&i({target:"ArrayBuffer",proto:!0},{transfer:function(){return r(this,arguments.length?arguments[0]:void 0,!0)}})},18107:(e,t,n)=>{"use strict";var i=n(46518),r=n(48981),o=n(26198),a=n(91291),s=n(6469);i({target:"Array",proto:!0},{at:function(e){var t=r(this),n=o(t),i=a(e),s=i>=0?i:n+i;return s<0||s>=n?void 0:t[s]}}),s("at")},28706:(e,t,n)=>{"use strict";var i=n(46518),r=n(79039),o=n(34376),a=n(20034),s=n(48981),l=n(26198),u=n(96837),c=n(97040),d=n(1469),h=n(70597),p=n(78227),f=n(39519),_=p("isConcatSpreadable"),g=f>=51||!r((function(){var e=[];return e[_]=!1,e.concat()[0]!==e})),b=function(e){if(!a(e))return!1;var t=e[_];return void 0!==t?!!t:o(e)};i({target:"Array",proto:!0,arity:1,forced:!g||!h("concat")},{concat:function(e){var t,n,i,r,o,a=s(this),h=d(a,0),p=0;for(t=-1,i=arguments.length;t<i;t++)if(b(o=-1===t?a:arguments[t]))for(r=l(o),u(p+r),n=0;n<r;n++,p++)n in o&&c(h,p,o[n]);else u(p+1),c(h,p++,o);return h.length=p,h}})},26835:(e,t,n)=>{"use strict";var i=n(46518),r=n(57029),o=n(6469);i({target:"Array",proto:!0},{copyWithin:r}),o("copyWithin")},88431:(e,t,n)=>{"use strict";var i=n(46518),r=n(59213).every;i({target:"Array",proto:!0,forced:!n(34598)("every")},{every:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},33771:(e,t,n)=>{"use strict";var i=n(46518),r=n(84373),o=n(6469);i({target:"Array",proto:!0},{fill:r}),o("fill")},2008:(e,t,n)=>{"use strict";var i=n(46518),r=n(59213).filter;i({target:"Array",proto:!0,forced:!n(70597)("filter")},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},48980:(e,t,n)=>{"use strict";var i=n(46518),r=n(59213).findIndex,o=n(6469),a="findIndex",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),i({target:"Array",proto:!0,forced:s},{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},13451:(e,t,n)=>{"use strict";var i=n(46518),r=n(43839).findLastIndex,o=n(6469);i({target:"Array",proto:!0},{findLastIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),o("findLastIndex")},10838:(e,t,n)=>{"use strict";var i=n(46518),r=n(43839).findLast,o=n(6469);i({target:"Array",proto:!0},{findLast:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),o("findLast")},50113:(e,t,n)=>{"use strict";var i=n(46518),r=n(59213).find,o=n(6469),a="find",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),i({target:"Array",proto:!0,forced:s},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},78350:(e,t,n)=>{"use strict";var i=n(46518),r=n(70259),o=n(79306),a=n(48981),s=n(26198),l=n(1469);i({target:"Array",proto:!0},{flatMap:function(e){var t,n=a(this),i=s(n);return o(e),(t=l(n,0)).length=r(t,n,n,i,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},46449:(e,t,n)=>{"use strict";var i=n(46518),r=n(70259),o=n(48981),a=n(26198),s=n(91291),l=n(1469);i({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=o(this),n=a(t),i=l(t,0);return i.length=r(i,t,t,n,0,void 0===e?1:s(e)),i}})},51629:(e,t,n)=>{"use strict";var i=n(46518),r=n(90235);i({target:"Array",proto:!0,forced:[].forEach!==r},{forEach:r})},23418:(e,t,n)=>{"use strict";var i=n(46518),r=n(97916);i({target:"Array",stat:!0,forced:!n(84428)((function(e){Array.from(e)}))},{from:r})},74423:(e,t,n)=>{"use strict";var i=n(46518),r=n(19617).includes,o=n(79039),a=n(6469);i({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},25276:(e,t,n)=>{"use strict";var i=n(46518),r=n(27476),o=n(19617).indexOf,a=n(34598),s=r([].indexOf),l=!!s&&1/s([1],1,-0)<0;i({target:"Array",proto:!0,forced:l||!a("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return l?s(this,e,t)||0:o(this,e,t)}})},64346:(e,t,n)=>{"use strict";n(46518)({target:"Array",stat:!0},{isArray:n(34376)})},23792:(e,t,n)=>{"use strict";var i=n(25397),r=n(6469),o=n(26269),a=n(91181),s=n(24913).f,l=n(51088),u=n(62529),c=n(96395),d=n(43724),h="Array Iterator",p=a.set,f=a.getterFor(h);e.exports=l(Array,"Array",(function(e,t){p(this,{type:h,target:i(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,u(void 0,!0);switch(e.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)}),"values");var _=o.Arguments=o.Array;if(r("keys"),r("values"),r("entries"),!c&&d&&"values"!==_.name)try{s(_,"name",{value:"values"})}catch(e){}},48598:(e,t,n)=>{"use strict";var i=n(46518),r=n(79504),o=n(47055),a=n(25397),s=n(34598),l=r([].join);i({target:"Array",proto:!0,forced:o!==Object||!s("join",",")},{join:function(e){return l(a(this),void 0===e?",":e)}})},8921:(e,t,n)=>{"use strict";var i=n(46518),r=n(8379);i({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},62062:(e,t,n)=>{"use strict";var i=n(46518),r=n(59213).map;i({target:"Array",proto:!0,forced:!n(70597)("map")},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},31051:(e,t,n)=>{"use strict";var i=n(46518),r=n(79039),o=n(33517),a=n(97040),s=Array;i({target:"Array",stat:!0,forced:r((function(){function e(){}return!(s.of.call(e)instanceof e)}))},{of:function(){for(var e=0,t=arguments.length,n=new(o(this)?this:s)(t);t>e;)a(n,e,arguments[e++]);return n.length=t,n}})},44114:(e,t,n)=>{"use strict";var i=n(46518),r=n(48981),o=n(26198),a=n(34527),s=n(96837);i({target:"Array",proto:!0,arity:1,forced:n(79039)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=r(this),n=o(t),i=arguments.length;s(n+i);for(var l=0;l<i;l++)t[n]=arguments[l],n++;return a(t,n),n}})},18863:(e,t,n)=>{"use strict";var i=n(46518),r=n(80926).right,o=n(34598),a=n(39519);i({target:"Array",proto:!0,forced:!n(38574)&&a>79&&a<83||!o("reduceRight")},{reduceRight:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},72712:(e,t,n)=>{"use strict";var i=n(46518),r=n(80926).left,o=n(34598),a=n(39519);i({target:"Array",proto:!0,forced:!n(38574)&&a>79&&a<83||!o("reduce")},{reduce:function(e){var t=arguments.length;return r(this,e,t,t>1?arguments[1]:void 0)}})},94490:(e,t,n)=>{"use strict";var i=n(46518),r=n(79504),o=n(34376),a=r([].reverse),s=[1,2];i({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),a(this)}})},34782:(e,t,n)=>{"use strict";var i=n(46518),r=n(34376),o=n(33517),a=n(20034),s=n(35610),l=n(26198),u=n(25397),c=n(97040),d=n(78227),h=n(70597),p=n(67680),f=h("slice"),_=d("species"),g=Array,b=Math.max;i({target:"Array",proto:!0,forced:!f},{slice:function(e,t){var n,i,d,h=u(this),f=l(h),m=s(e,f),v=s(void 0===t?f:t,f);if(r(h)&&(n=h.constructor,(o(n)&&(n===g||r(n.prototype))||a(n)&&null===(n=n[_]))&&(n=void 0),n===g||void 0===n))return p(h,m,v);for(i=new(void 0===n?g:n)(b(v-m,0)),d=0;m<v;m++,d++)m in h&&c(i,d,h[m]);return i.length=d,i}})},15086:(e,t,n)=>{"use strict";var i=n(46518),r=n(59213).some;i({target:"Array",proto:!0,forced:!n(34598)("some")},{some:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},26910:(e,t,n)=>{"use strict";var i=n(46518),r=n(79504),o=n(79306),a=n(48981),s=n(26198),l=n(84606),u=n(655),c=n(79039),d=n(74488),h=n(34598),p=n(13709),f=n(13763),_=n(39519),g=n(3607),b=[],m=r(b.sort),v=r(b.push),y=c((function(){b.sort(void 0)})),k=c((function(){b.sort(null)})),x=h("sort"),w=!c((function(){if(_)return _<70;if(!(p&&p>3)){if(f)return!0;if(g)return g<603;var e,t,n,i,r="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)b.push({k:t+i,v:n})}for(b.sort((function(e,t){return t.v-e.v})),i=0;i<b.length;i++)t=b[i].k.charAt(0),r.charAt(r.length-1)!==t&&(r+=t);return"DGBEFHACIJK"!==r}}));i({target:"Array",proto:!0,forced:y||!k||!x||!w},{sort:function(e){void 0!==e&&o(e);var t=a(this);if(w)return void 0===e?m(t):m(t,e);var n,i,r=[],c=s(t);for(i=0;i<c;i++)i in t&&v(r,t[i]);for(d(r,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:u(t)>u(n)?1:-1}}(e)),n=s(r),i=0;i<n;)t[i]=r[i++];for(;i<c;)l(t,i++);return t}})},87478:(e,t,n)=>{"use strict";n(87633)("Array")},54554:(e,t,n)=>{"use strict";var i=n(46518),r=n(48981),o=n(35610),a=n(91291),s=n(26198),l=n(34527),u=n(96837),c=n(1469),d=n(97040),h=n(84606),p=n(70597)("splice"),f=Math.max,_=Math.min;i({target:"Array",proto:!0,forced:!p},{splice:function(e,t){var n,i,p,g,b,m,v=r(this),y=s(v),k=o(e,y),x=arguments.length;for(0===x?n=i=0:1===x?(n=0,i=y-k):(n=x-2,i=_(f(a(t),0),y-k)),u(y+n-i),p=c(v,i),g=0;g<i;g++)(b=k+g)in v&&d(p,g,v[b]);if(p.length=i,n<i){for(g=k;g<y-i;g++)m=g+n,(b=g+i)in v?v[m]=v[b]:h(v,m);for(g=y;g>y-i+n;g--)h(v,g-1)}else if(n>i)for(g=y-i;g>k;g--)m=g+n-1,(b=g+i-1)in v?v[m]=v[b]:h(v,m);for(g=0;g<n;g++)v[g+k]=arguments[g+2];return l(v,y-i+n),p}})},9678:(e,t,n)=>{"use strict";var i=n(46518),r=n(37628),o=n(25397),a=n(6469),s=Array;i({target:"Array",proto:!0},{toReversed:function(){return r(o(this),s)}}),a("toReversed")},57145:(e,t,n)=>{"use strict";var i=n(46518),r=n(79504),o=n(79306),a=n(25397),s=n(35370),l=n(44124),u=n(6469),c=Array,d=r(l("Array","sort"));i({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&o(e);var t=a(this),n=s(c,t);return d(n,e)}}),u("toSorted")},71658:(e,t,n)=>{"use strict";var i=n(46518),r=n(6469),o=n(96837),a=n(26198),s=n(35610),l=n(25397),u=n(91291),c=Array,d=Math.max,h=Math.min;i({target:"Array",proto:!0},{toSpliced:function(e,t){var n,i,r,p,f=l(this),_=a(f),g=s(e,_),b=arguments.length,m=0;for(0===b?n=i=0:1===b?(n=0,i=_-g):(n=b-2,i=h(d(u(t),0),_-g)),r=o(_+n-i),p=c(r);m<g;m++)p[m]=f[m];for(;m<g+n;m++)p[m]=arguments[m-g+2];for(;m<r;m++)p[m]=f[m+i-n];return p}}),r("toSpliced")},30237:(e,t,n)=>{"use strict";n(6469)("flatMap")},93514:(e,t,n)=>{"use strict";n(6469)("flat")},13609:(e,t,n)=>{"use strict";var i=n(46518),r=n(48981),o=n(26198),a=n(34527),s=n(84606),l=n(96837);i({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}()},{unshift:function(e){var t=r(this),n=o(t),i=arguments.length;if(i){l(n+i);for(var u=n;u--;){var c=u+i;u in t?t[c]=t[u]:s(t,c)}for(var d=0;d<i;d++)t[d]=arguments[d]}return a(t,n+i)}})},11558:(e,t,n)=>{"use strict";var i=n(46518),r=n(39928),o=n(25397),a=Array;i({target:"Array",proto:!0},{with:function(e,t){return r(o(this),a,e,t)}})},24359:(e,t,n)=>{"use strict";var i=n(46518),r=n(66346);i({global:!0,constructor:!0,forced:!n(77811)},{DataView:r.DataView})},38309:(e,t,n)=>{"use strict";n(24359)},61699:(e,t,n)=>{"use strict";var i=n(46518),r=n(79504),o=n(79039)((function(){return 120!==new Date(16e11).getYear()})),a=r(Date.prototype.getFullYear);i({target:"Date",proto:!0,forced:o},{getYear:function(){return a(this)-1900}})},59089:(e,t,n)=>{"use strict";var i=n(46518),r=n(79504),o=Date,a=r(o.prototype.getTime);i({target:"Date",stat:!0},{now:function(){return a(new o)}})},91191:(e,t,n)=>{"use strict";var i=n(46518),r=n(79504),o=n(91291),a=Date.prototype,s=r(a.getTime),l=r(a.setFullYear);i({target:"Date",proto:!0},{setYear:function(e){s(this);var t=o(e);return l(this,t>=0&&t<=99?t+1900:t)}})},93515:(e,t,n)=>{"use strict";n(46518)({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},1688:(e,t,n)=>{"use strict";var i=n(46518),r=n(70380);i({target:"Date",proto:!0,forced:Date.prototype.toISOString!==r},{toISOString:r})},60739:(e,t,n)=>{"use strict";var i=n(46518),r=n(79039),o=n(48981),a=n(72777);i({target:"Date",proto:!0,arity:1,forced:r((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(e){var t=o(this),n=a(t,"number");return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},89572:(e,t,n)=>{"use strict";var i=n(39297),r=n(36840),o=n(53640),a=n(78227)("toPrimitive"),s=Date.prototype;i(s,a)||r(s,a,o)},23288:(e,t,n)=>{"use strict";var i=n(79504),r=n(36840),o=Date.prototype,a="Invalid Date",s="toString",l=i(o[s]),u=i(o.getTime);String(new Date(NaN))!==a&&r(o,s,(function(){var e=u(this);return e==e?l(this):a}))},16280:(e,t,n)=>{"use strict";var i=n(46518),r=n(44576),o=n(18745),a=n(14601),s="WebAssembly",l=r[s],u=7!==new Error("e",{cause:7}).cause,c=function(e,t){var n={};n[e]=a(e,t,u),i({global:!0,constructor:!0,arity:1,forced:u},n)},d=function(e,t){if(l&&l[e]){var n={};n[e]=a(s+"."+e,t,u),i({target:s,stat:!0,constructor:!0,arity:1,forced:u},n)}};c("Error",(function(e){return function(t){return o(e,this,arguments)}})),c("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),c("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),c("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),c("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),c("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),c("URIError",(function(e){return function(t){return o(e,this,arguments)}})),d("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),d("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),d("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},76918:(e,t,n)=>{"use strict";var i=n(36840),r=n(77536),o=Error.prototype;o.toString!==r&&i(o,"toString",r)},36456:(e,t,n)=>{"use strict";var i=n(46518),r=n(79504),o=n(655),a=r("".charAt),s=r("".charCodeAt),l=r(/./.exec),u=r(1..toString),c=r("".toUpperCase),d=/[\w*+\-./@]/,h=function(e,t){for(var n=u(e,16);n.length<t;)n="0"+n;return n};i({global:!0},{escape:function(e){for(var t,n,i=o(e),r="",u=i.length,p=0;p<u;)t=a(i,p++),l(d,t)?r+=t:r+=(n=s(t,0))<256?"%"+h(n,2):"%u"+c(h(n,4));return r}})},94170:(e,t,n)=>{"use strict";var i=n(46518),r=n(30566);i({target:"Function",proto:!0,forced:Function.bind!==r},{bind:r})},48957:(e,t,n)=>{"use strict";var i=n(94901),r=n(20034),o=n(24913),a=n(1625),s=n(78227),l=n(50283),u=s("hasInstance"),c=Function.prototype;u in c||o.f(c,u,{value:l((function(e){if(!i(this)||!r(e))return!1;var t=this.prototype;return r(t)?a(t,e):e instanceof this}),u)})},62010:(e,t,n)=>{"use strict";var i=n(43724),r=n(10350).EXISTS,o=n(79504),a=n(62106),s=Function.prototype,l=o(s.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=o(u.exec);i&&!r&&a(s,"name",{configurable:!0,get:function(){try{return c(u,l(this))[1]}catch(e){return""}}})},55081:(e,t,n)=>{"use strict";var i=n(46518),r=n(44576);i({global:!0,forced:r.globalThis!==r},{globalThis:r})},33110:(e,t,n)=>{"use strict";var i=n(46518),r=n(97751),o=n(18745),a=n(69565),s=n(79504),l=n(79039),u=n(94901),c=n(10757),d=n(67680),h=n(66933),p=n(4495),f=String,_=r("JSON","stringify"),g=s(/./.exec),b=s("".charAt),m=s("".charCodeAt),v=s("".replace),y=s(1..toString),k=/[\uD800-\uDFFF]/g,x=/^[\uD800-\uDBFF]$/,w=/^[\uDC00-\uDFFF]$/,E=!p||l((function(){var e=r("Symbol")("stringify detection");return"[null]"!==_([e])||"{}"!==_({a:e})||"{}"!==_(Object(e))})),S=l((function(){return'"\\udf06\\ud834"'!==_("\udf06\ud834")||'"\\udead"'!==_("\udead")})),C=function(e,t){var n=d(arguments),i=h(t);if(u(i)||void 0!==e&&!c(e))return n[1]=function(e,t){if(u(i)&&(t=a(i,this,f(e),t)),!c(t))return t},o(_,null,n)},T=function(e,t,n){var i=b(n,t-1),r=b(n,t+1);return g(x,e)&&!g(w,r)||g(w,e)&&!g(x,i)?"\\u"+y(m(e,0),16):e};_&&i({target:"JSON",stat:!0,arity:3,forced:E||S},{stringify:function(e,t,n){var i=d(arguments),r=o(E?C:_,null,i);return S&&"string"==typeof r?v(r,k,T):r}})},4731:(e,t,n)=>{"use strict";var i=n(44576);n(10687)(i.JSON,"JSON",!0)},48523:(e,t,n)=>{"use strict";n(16468)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(86938))},47072:(e,t,n)=>{"use strict";var i=n(46518),r=n(79504),o=n(79306),a=n(67750),s=n(72652),l=n(72248),u=n(96395),c=n(79039),d=l.Map,h=l.has,p=l.get,f=l.set,_=r([].push),g=u||c((function(){return 1!==d.groupBy("ab",(function(e){return e})).get("a").length}));i({target:"Map",stat:!0,forced:u||g},{groupBy:function(e,t){a(e),o(t);var n=new d,i=0;return s(e,(function(e){var r=t(e,i++);h(n,r)?_(p(n,r),e):f(n,r,[e])})),n}})},36033:(e,t,n)=>{"use strict";n(48523)},93153:(e,t,n)=>{"use strict";var i=n(46518),r=n(7740),o=Math.acosh,a=Math.log,s=Math.sqrt,l=Math.LN2;i({target:"Math",stat:!0,forced:!o||710!==Math.floor(o(Number.MAX_VALUE))||o(1/0)!==1/0},{acosh:function(e){var t=+e;return t<1?NaN:t>94906265.62425156?a(t)+l:r(t-1+s(t-1)*s(t+1))}})},82326:(e,t,n)=>{"use strict";var i=n(46518),r=Math.asinh,o=Math.log,a=Math.sqrt;i({target:"Math",stat:!0,forced:!(r&&1/r(0)>0)},{asinh:function e(t){var n=+t;return isFinite(n)&&0!==n?n<0?-e(-n):o(n+a(n*n+1)):n}})},36389:(e,t,n)=>{"use strict";var i=n(46518),r=Math.atanh,o=Math.log;i({target:"Math",stat:!0,forced:!(r&&1/r(-0)<0)},{atanh:function(e){var t=+e;return 0===t?t:o((1+t)/(1-t))/2}})},64444:(e,t,n)=>{"use strict";var i=n(46518),r=n(77782),o=Math.abs,a=Math.pow;i({target:"Math",stat:!0},{cbrt:function(e){var t=+e;return r(t)*a(o(t),1/3)}})},8085:(e,t,n)=>{"use strict";var i=n(46518),r=Math.floor,o=Math.log,a=Math.LOG2E;i({target:"Math",stat:!0},{clz32:function(e){var t=e>>>0;return t?31-r(o(t+.5)*a):32}})},77762:(e,t,n)=>{"use strict";var i=n(46518),r=n(53250),o=Math.cosh,a=Math.abs,s=Math.E;i({target:"Math",stat:!0,forced:!o||o(710)===1/0},{cosh:function(e){var t=r(a(e)-1)+1;return(t+1/(t*s*s))*(s/2)}})},65070:(e,t,n)=>{"use strict";var i=n(46518),r=n(53250);i({target:"Math",stat:!0,forced:r!==Math.expm1},{expm1:r})},60605:(e,t,n)=>{"use strict";n(46518)({target:"Math",stat:!0},{fround:n(15617)})},39469:(e,t,n)=>{"use strict";var i=n(46518),r=Math.hypot,o=Math.abs,a=Math.sqrt;i({target:"Math",stat:!0,arity:2,forced:!!r&&r(1/0,NaN)!==1/0},{hypot:function(e,t){for(var n,i,r=0,s=0,l=arguments.length,u=0;s<l;)u<(n=o(arguments[s++]))?(r=r*(i=u/n)*i+1,u=n):r+=n>0?(i=n/u)*i:n;return u===1/0?1/0:u*a(r)}})},72152:(e,t,n)=>{"use strict";var i=n(46518),r=n(79039),o=Math.imul;i({target:"Math",stat:!0,forced:r((function(){return-5!==o(4294967295,5)||2!==o.length}))},{imul:function(e,t){var n=65535,i=+e,r=+t,o=n&i,a=n&r;return 0|o*a+((n&i>>>16)*a+o*(n&r>>>16)<<16>>>0)}})},75376:(e,t,n)=>{"use strict";n(46518)({target:"Math",stat:!0},{log10:n(49340)})},56624:(e,t,n)=>{"use strict";n(46518)({target:"Math",stat:!0},{log1p:n(7740)})},11367:(e,t,n)=>{"use strict";var i=n(46518),r=Math.log,o=Math.LN2;i({target:"Math",stat:!0},{log2:function(e){return r(e)/o}})},5914:(e,t,n)=>{"use strict";n(46518)({target:"Math",stat:!0},{sign:n(77782)})},78553:(e,t,n)=>{"use strict";var i=n(46518),r=n(79039),o=n(53250),a=Math.abs,s=Math.exp,l=Math.E;i({target:"Math",stat:!0,forced:r((function(){return-2e-17!==Math.sinh(-2e-17)}))},{sinh:function(e){var t=+e;return a(t)<1?(o(t)-o(-t))/2:(s(t-1)-s(-t-1))*(l/2)}})},98690:(e,t,n)=>{"use strict";var i=n(46518),r=n(53250),o=Math.exp;i({target:"Math",stat:!0},{tanh:function(e){var t=+e,n=r(t),i=r(-t);return n===1/0?1:i===1/0?-1:(n-i)/(o(t)+o(-t))}})},60479:(e,t,n)=>{"use strict";n(10687)(Math,"Math",!0)},70761:(e,t,n)=>{"use strict";n(46518)({target:"Math",stat:!0},{trunc:n(80741)})},2892:(e,t,n)=>{"use strict";var i=n(46518),r=n(96395),o=n(43724),a=n(44576),s=n(19167),l=n(79504),u=n(92796),c=n(39297),d=n(23167),h=n(1625),p=n(10757),f=n(72777),_=n(79039),g=n(38480).f,b=n(77347).f,m=n(24913).f,v=n(31240),y=n(43802).trim,k="Number",x=a[k],w=s[k],E=x.prototype,S=a.TypeError,C=l("".slice),T=l("".charCodeAt),A=u(k,!x(" 0o1")||!x("0b1")||x("+0x1")),I=function(e){var t,n=arguments.length<1?0:x(function(e){var t=f(e,"number");return"bigint"==typeof t?t:function(e){var t,n,i,r,o,a,s,l,u=f(e,"number");if(p(u))throw new S("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=y(u),43===(t=T(u,0))||45===t){if(88===(n=T(u,2))||120===n)return NaN}else if(48===t){switch(T(u,1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+u}for(a=(o=C(u,2)).length,s=0;s<a;s++)if((l=T(o,s))<48||l>r)return NaN;return parseInt(o,i)}return+u}(t)}(e));return h(E,t=this)&&_((function(){v(t)}))?d(Object(n),this,I):n};I.prototype=E,A&&!r&&(E.constructor=I),i({global:!0,constructor:!0,wrap:!0,forced:A},{Number:I});var O=function(e,t){for(var n,i=o?g(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),r=0;i.length>r;r++)c(t,n=i[r])&&!c(e,n)&&m(e,n,b(t,n))};r&&w&&O(s[k],w),(A||r)&&O(s[k],x)},45374:(e,t,n)=>{"use strict";n(46518)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},25428:(e,t,n)=>{"use strict";n(46518)({target:"Number",stat:!0},{isFinite:n(50360)})},32637:(e,t,n)=>{"use strict";n(46518)({target:"Number",stat:!0},{isInteger:n(2087)})},40150:(e,t,n)=>{"use strict";n(46518)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},59149:(e,t,n)=>{"use strict";var i=n(46518),r=n(2087),o=Math.abs;i({target:"Number",stat:!0},{isSafeInteger:function(e){return r(e)&&o(e)<=9007199254740991}})},64601:(e,t,n)=>{"use strict";n(46518)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},44435:(e,t,n)=>{"use strict";n(46518)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},87220:(e,t,n)=>{"use strict";var i=n(46518),r=n(33904);i({target:"Number",stat:!0,forced:Number.parseFloat!==r},{parseFloat:r})},25843:(e,t,n)=>{"use strict";var i=n(46518),r=n(52703);i({target:"Number",stat:!0,forced:Number.parseInt!==r},{parseInt:r})},62337:(e,t,n)=>{"use strict";var i=n(46518),r=n(79504),o=n(91291),a=n(31240),s=n(72333),l=n(49340),u=n(79039),c=RangeError,d=String,h=isFinite,p=Math.abs,f=Math.floor,_=Math.pow,g=Math.round,b=r(1..toExponential),m=r(s),v=r("".slice),y="-6.9000e-11"===b(-69e-12,4)&&"1.25e+0"===b(1.255,2)&&"1.235e+4"===b(12345,3)&&"3e+1"===b(25,0);i({target:"Number",proto:!0,forced:!y||!(u((function(){b(1,1/0)}))&&u((function(){b(1,-1/0)})))||!!u((function(){b(1/0,1/0),b(NaN,1/0)}))},{toExponential:function(e){var t=a(this);if(void 0===e)return b(t);var n=o(e);if(!h(t))return String(t);if(n<0||n>20)throw new c("Incorrect fraction digits");if(y)return b(t,n);var i,r,s,u,k="";if(t<0&&(k="-",t=-t),0===t)r=0,i=m("0",n+1);else{var x=l(t);r=f(x);var w=_(10,r-n),E=g(t/w);2*t>=(2*E+1)*w&&(E+=1),E>=_(10,n+1)&&(E/=10,r+=1),i=d(E)}return 0!==n&&(i=v(i,0,1)+"."+v(i,1)),0===r?(s="+",u="0"):(s=r>0?"+":"-",u=d(p(r))),k+(i+"e")+s+u}})},9868:(e,t,n)=>{"use strict";var i=n(46518),r=n(79504),o=n(91291),a=n(31240),s=n(72333),l=n(79039),u=RangeError,c=String,d=Math.floor,h=r(s),p=r("".slice),f=r(1..toFixed),_=function(e,t,n){return 0===t?n:t%2==1?_(e,t-1,n*e):_(e*e,t/2,n)},g=function(e,t,n){for(var i=-1,r=n;++i<6;)r+=t*e[i],e[i]=r%1e7,r=d(r/1e7)},b=function(e,t){for(var n=6,i=0;--n>=0;)i+=e[n],e[n]=d(i/t),i=i%t*1e7},m=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var i=c(e[t]);n=""===n?i:n+h("0",7-i.length)+i}return n};i({target:"Number",proto:!0,forced:l((function(){return"0.000"!==f(8e-5,3)||"1"!==f(.9,0)||"1.25"!==f(1.255,2)||"1000000000000000128"!==f(0xde0b6b3a7640080,0)}))||!l((function(){f({})}))},{toFixed:function(e){var t,n,i,r,s=a(this),l=o(e),d=[0,0,0,0,0,0],f="",v="0";if(l<0||l>20)throw new u("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return c(s);if(s<0&&(f="-",s=-s),s>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(s*_(2,69,1))-69)<0?s*_(2,-t,1):s/_(2,t,1),n*=4503599627370496,(t=52-t)>0){for(g(d,0,n),i=l;i>=7;)g(d,1e7,0),i-=7;for(g(d,_(10,i,1),0),i=t-1;i>=23;)b(d,1<<23),i-=23;b(d,1<<i),g(d,1,1),b(d,2),v=m(d)}else g(d,0,n),g(d,1<<-t,0),v=m(d)+h("0",l);return l>0?f+((r=v.length)<=l?"0."+h("0",l-r)+v:p(v,0,r-l)+"."+p(v,r-l)):f+v}})},80630:(e,t,n)=>{"use strict";var i=n(46518),r=n(79504),o=n(79039),a=n(31240),s=r(1..toPrecision);i({target:"Number",proto:!0,forced:o((function(){return"1"!==s(1,void 0)}))||!o((function(){s({})}))},{toPrecision:function(e){return void 0===e?s(a(this)):s(a(this),e)}})},69085:(e,t,n)=>{"use strict";var i=n(46518),r=n(44213);i({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})},59904:(e,t,n)=>{"use strict";n(46518)({target:"Object",stat:!0,sham:!n(43724)},{create:n(2360)})},17427:(e,t,n)=>{"use strict";var i=n(46518),r=n(43724),o=n(42551),a=n(79306),s=n(48981),l=n(24913);r&&i({target:"Object",proto:!0,forced:o},{__defineGetter__:function(e,t){l.f(s(this),e,{get:a(t),enumerable:!0,configurable:!0})}})},67945:(e,t,n)=>{"use strict";var i=n(46518),r=n(43724),o=n(96801).f;i({target:"Object",stat:!0,forced:Object.defineProperties!==o,sham:!r},{defineProperties:o})},84185:(e,t,n)=>{"use strict";var i=n(46518),r=n(43724),o=n(24913).f;i({target:"Object",stat:!0,forced:Object.defineProperty!==o,sham:!r},{defineProperty:o})},87607:(e,t,n)=>{"use strict";var i=n(46518),r=n(43724),o=n(42551),a=n(79306),s=n(48981),l=n(24913);r&&i({target:"Object",proto:!0,forced:o},{__defineSetter__:function(e,t){l.f(s(this),e,{set:a(t),enumerable:!0,configurable:!0})}})},5506:(e,t,n)=>{"use strict";var i=n(46518),r=n(32357).entries;i({target:"Object",stat:!0},{entries:function(e){return r(e)}})},52811:(e,t,n)=>{"use strict";var i=n(46518),r=n(92744),o=n(79039),a=n(20034),s=n(3451).onFreeze,l=Object.freeze;i({target:"Object",stat:!0,forced:o((function(){l(1)})),sham:!r},{freeze:function(e){return l&&a(e)?l(s(e)):e}})},53921:(e,t,n)=>{"use strict";var i=n(46518),r=n(72652),o=n(97040);i({target:"Object",stat:!0},{fromEntries:function(e){var t={};return r(e,(function(e,n){o(t,e,n)}),{AS_ENTRIES:!0}),t}})},83851:(e,t,n)=>{"use strict";var i=n(46518),r=n(79039),o=n(25397),a=n(77347).f,s=n(43724);i({target:"Object",stat:!0,forced:!s||r((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},81278:(e,t,n)=>{"use strict";var i=n(46518),r=n(43724),o=n(35031),a=n(25397),s=n(77347),l=n(97040);i({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(e){for(var t,n,i=a(e),r=s.f,u=o(i),c={},d=0;u.length>d;)void 0!==(n=r(i,t=u[d++]))&&l(c,t,n);return c}})},1480:(e,t,n)=>{"use strict";var i=n(46518),r=n(79039),o=n(10298).f;i({target:"Object",stat:!0,forced:r((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:o})},49773:(e,t,n)=>{"use strict";var i=n(46518),r=n(4495),o=n(79039),a=n(33717),s=n(48981);i({target:"Object",stat:!0,forced:!r||o((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},40875:(e,t,n)=>{"use strict";var i=n(46518),r=n(79039),o=n(48981),a=n(42787),s=n(12211);i({target:"Object",stat:!0,forced:r((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(o(e))}})},77691:(e,t,n)=>{"use strict";var i=n(46518),r=n(97751),o=n(79504),a=n(79306),s=n(67750),l=n(56969),u=n(72652),c=n(79039),d=Object.groupBy,h=r("Object","create"),p=o([].push);i({target:"Object",stat:!0,forced:!d||c((function(){return 1!==d("ab",(function(e){return e})).a.length}))},{groupBy:function(e,t){s(e),a(t);var n=h(null),i=0;return u(e,(function(e){var r=l(t(e,i++));r in n?p(n[r],e):n[r]=[e]})),n}})},78347:(e,t,n)=>{"use strict";n(46518)({target:"Object",stat:!0},{hasOwn:n(39297)})},94052:(e,t,n)=>{"use strict";var i=n(46518),r=n(34124);i({target:"Object",stat:!0,forced:Object.isExtensible!==r},{isExtensible:r})},94003:(e,t,n)=>{"use strict";var i=n(46518),r=n(79039),o=n(20034),a=n(22195),s=n(15652),l=Object.isFrozen;i({target:"Object",stat:!0,forced:s||r((function(){l(1)}))},{isFrozen:function(e){return!o(e)||!(!s||"ArrayBuffer"!==a(e))||!!l&&l(e)}})},221:(e,t,n)=>{"use strict";var i=n(46518),r=n(79039),o=n(20034),a=n(22195),s=n(15652),l=Object.isSealed;i({target:"Object",stat:!0,forced:s||r((function(){l(1)}))},{isSealed:function(e){return!o(e)||!(!s||"ArrayBuffer"!==a(e))||!!l&&l(e)}})},29908:(e,t,n)=>{"use strict";n(46518)({target:"Object",stat:!0},{is:n(3470)})},79432:(e,t,n)=>{"use strict";var i=n(46518),r=n(48981),o=n(71072);i({target:"Object",stat:!0,forced:n(79039)((function(){o(1)}))},{keys:function(e){return o(r(e))}})},9220:(e,t,n)=>{"use strict";var i=n(46518),r=n(43724),o=n(42551),a=n(48981),s=n(56969),l=n(42787),u=n(77347).f;r&&i({target:"Object",proto:!0,forced:o},{__lookupGetter__:function(e){var t,n=a(this),i=s(e);do{if(t=u(n,i))return t.get}while(n=l(n))}})},7904:(e,t,n)=>{"use strict";var i=n(46518),r=n(43724),o=n(42551),a=n(48981),s=n(56969),l=n(42787),u=n(77347).f;r&&i({target:"Object",proto:!0,forced:o},{__lookupSetter__:function(e){var t,n=a(this),i=s(e);do{if(t=u(n,i))return t.set}while(n=l(n))}})},93967:(e,t,n)=>{"use strict";var i=n(46518),r=n(20034),o=n(3451).onFreeze,a=n(92744),s=n(79039),l=Object.preventExtensions;i({target:"Object",stat:!0,forced:s((function(){l(1)})),sham:!a},{preventExtensions:function(e){return l&&r(e)?l(o(e)):e}})},63548:(e,t,n)=>{"use strict";var i=n(43724),r=n(62106),o=n(20034),a=n(13925),s=n(48981),l=n(67750),u=Object.getPrototypeOf,c=Object.setPrototypeOf,d=Object.prototype,h="__proto__";if(i&&u&&c&&!(h in d))try{r(d,h,{configurable:!0,get:function(){return u(s(this))},set:function(e){var t=l(this);a(e)&&o(t)&&c(t,e)}})}catch(e){}},93941:(e,t,n)=>{"use strict";var i=n(46518),r=n(20034),o=n(3451).onFreeze,a=n(92744),s=n(79039),l=Object.seal;i({target:"Object",stat:!0,forced:s((function(){l(1)})),sham:!a},{seal:function(e){return l&&r(e)?l(o(e)):e}})},10287:(e,t,n)=>{"use strict";n(46518)({target:"Object",stat:!0},{setPrototypeOf:n(52967)})},26099:(e,t,n)=>{"use strict";var i=n(92140),r=n(36840),o=n(53179);i||r(Object.prototype,"toString",o,{unsafe:!0})},16034:(e,t,n)=>{"use strict";var i=n(46518),r=n(32357).values;i({target:"Object",stat:!0},{values:function(e){return r(e)}})},78459:(e,t,n)=>{"use strict";var i=n(46518),r=n(33904);i({global:!0,forced:parseFloat!==r},{parseFloat:r})},58940:(e,t,n)=>{"use strict";var i=n(46518),r=n(52703);i({global:!0,forced:parseInt!==r},{parseInt:r})},96167:(e,t,n)=>{"use strict";var i=n(46518),r=n(69565),o=n(79306),a=n(36043),s=n(1103),l=n(72652);i({target:"Promise",stat:!0,forced:n(90537)},{allSettled:function(e){var t=this,n=a.f(t),i=n.resolve,u=n.reject,c=s((function(){var n=o(t.resolve),a=[],s=0,u=1;l(e,(function(e){var o=s++,l=!1;u++,r(n,t,e).then((function(e){l||(l=!0,a[o]={status:"fulfilled",value:e},--u||i(a))}),(function(e){l||(l=!0,a[o]={status:"rejected",reason:e},--u||i(a))}))})),--u||i(a)}));return c.error&&u(c.value),n.promise}})},16499:(e,t,n)=>{"use strict";var i=n(46518),r=n(69565),o=n(79306),a=n(36043),s=n(1103),l=n(72652);i({target:"Promise",stat:!0,forced:n(90537)},{all:function(e){var t=this,n=a.f(t),i=n.resolve,u=n.reject,c=s((function(){var n=o(t.resolve),a=[],s=0,c=1;l(e,(function(e){var o=s++,l=!1;c++,r(n,t,e).then((function(e){l||(l=!0,a[o]=e,--c||i(a))}),u)})),--c||i(a)}));return c.error&&u(c.value),n.promise}})},93518:(e,t,n)=>{"use strict";var i=n(46518),r=n(69565),o=n(79306),a=n(97751),s=n(36043),l=n(1103),u=n(72652),c=n(90537),d="No one promise resolved";i({target:"Promise",stat:!0,forced:c},{any:function(e){var t=this,n=a("AggregateError"),i=s.f(t),c=i.resolve,h=i.reject,p=l((function(){var i=o(t.resolve),a=[],s=0,l=1,p=!1;u(e,(function(e){var o=s++,u=!1;l++,r(i,t,e).then((function(e){u||p||(p=!0,c(e))}),(function(e){u||p||(u=!0,a[o]=e,--l||h(new n(a,d)))}))})),--l||h(new n(a,d))}));return p.error&&h(p.value),i.promise}})},82003:(e,t,n)=>{"use strict";var i=n(46518),r=n(96395),o=n(10916).CONSTRUCTOR,a=n(80550),s=n(97751),l=n(94901),u=n(36840),c=a&&a.prototype;if(i({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!r&&l(a)){var d=s("Promise").prototype.catch;c.catch!==d&&u(c,"catch",d,{unsafe:!0})}},10436:(e,t,n)=>{"use strict";var i,r,o,a=n(46518),s=n(96395),l=n(38574),u=n(44576),c=n(69565),d=n(36840),h=n(52967),p=n(10687),f=n(87633),_=n(79306),g=n(94901),b=n(20034),m=n(90679),v=n(2293),y=n(59225).set,k=n(91955),x=n(90757),w=n(1103),E=n(18265),S=n(91181),C=n(80550),T=n(10916),A=n(36043),I="Promise",O=T.CONSTRUCTOR,D=T.REJECTION_EVENT,$=T.SUBCLASSING,N=S.getterFor(I),M=S.set,L=C&&C.prototype,P=C,R=L,j=u.TypeError,H=u.document,B=u.process,V=A.f,U=V,F=!!(H&&H.createEvent&&u.dispatchEvent),z="unhandledrejection",G=function(e){var t;return!(!b(e)||!g(t=e.then))&&t},W=function(e,t){var n,i,r,o=t.value,a=1===t.state,s=a?e.ok:e.fail,l=e.resolve,u=e.reject,d=e.domain;try{s?(a||(2===t.rejection&&Z(t),t.rejection=1),!0===s?n=o:(d&&d.enter(),n=s(o),d&&(d.exit(),r=!0)),n===e.promise?u(new j("Promise-chain cycle")):(i=G(n))?c(i,n,l,u):l(n)):u(o)}catch(e){d&&!r&&d.exit(),u(e)}},q=function(e,t){e.notified||(e.notified=!0,k((function(){for(var n,i=e.reactions;n=i.get();)W(n,e);e.notified=!1,t&&!e.rejection&&Y(e)})))},K=function(e,t,n){var i,r;F?((i=H.createEvent("Event")).promise=t,i.reason=n,i.initEvent(e,!1,!0),u.dispatchEvent(i)):i={promise:t,reason:n},!D&&(r=u["on"+e])?r(i):e===z&&x("Unhandled promise rejection",n)},Y=function(e){c(y,u,(function(){var t,n=e.facade,i=e.value;if(J(e)&&(t=w((function(){l?B.emit("unhandledRejection",i,n):K(z,n,i)})),e.rejection=l||J(e)?2:1,t.error))throw t.value}))},J=function(e){return 1!==e.rejection&&!e.parent},Z=function(e){c(y,u,(function(){var t=e.facade;l?B.emit("rejectionHandled",t):K("rejectionhandled",t,e.value)}))},X=function(e,t,n){return function(i){e(t,i,n)}},Q=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,q(e,!0))},ee=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new j("Promise can't be resolved itself");var i=G(t);i?k((function(){var n={done:!1};try{c(i,t,X(ee,n,e),X(Q,n,e))}catch(t){Q(n,t,e)}})):(e.value=t,e.state=1,q(e,!1))}catch(t){Q({done:!1},t,e)}}};if(O&&(R=(P=function(e){m(this,R),_(e),c(i,this);var t=N(this);try{e(X(ee,t),X(Q,t))}catch(e){Q(t,e)}}).prototype,(i=function(e){M(this,{type:I,done:!1,notified:!1,parent:!1,reactions:new E,rejection:!1,state:0,value:null})}).prototype=d(R,"then",(function(e,t){var n=N(this),i=V(v(this,P));return n.parent=!0,i.ok=!g(e)||e,i.fail=g(t)&&t,i.domain=l?B.domain:void 0,0===n.state?n.reactions.add(i):k((function(){W(i,n)})),i.promise})),r=function(){var e=new i,t=N(e);this.promise=e,this.resolve=X(ee,t),this.reject=X(Q,t)},A.f=V=function(e){return e===P||void 0===e?new r(e):U(e)},!s&&g(C)&&L!==Object.prototype)){o=L.then,$||d(L,"then",(function(e,t){var n=this;return new P((function(e,t){c(o,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete L.constructor}catch(e){}h&&h(L,R)}a({global:!0,constructor:!0,wrap:!0,forced:O},{Promise:P}),p(P,I,!1,!0),f(I)},9391:(e,t,n)=>{"use strict";var i=n(46518),r=n(96395),o=n(80550),a=n(79039),s=n(97751),l=n(94901),u=n(2293),c=n(93438),d=n(36840),h=o&&o.prototype;if(i({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){h.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=u(this,s("Promise")),n=l(e);return this.then(n?function(n){return c(t,e()).then((function(){return n}))}:e,n?function(n){return c(t,e()).then((function(){throw n}))}:e)}}),!r&&l(o)){var p=s("Promise").prototype.finally;h.finally!==p&&d(h,"finally",p,{unsafe:!0})}},3362:(e,t,n)=>{"use strict";n(10436),n(16499),n(82003),n(7743),n(51481),n(40280)},7743:(e,t,n)=>{"use strict";var i=n(46518),r=n(69565),o=n(79306),a=n(36043),s=n(1103),l=n(72652);i({target:"Promise",stat:!0,forced:n(90537)},{race:function(e){var t=this,n=a.f(t),i=n.reject,u=s((function(){var a=o(t.resolve);l(e,(function(e){r(a,t,e).then(n.resolve,i)}))}));return u.error&&i(u.value),n.promise}})},51481:(e,t,n)=>{"use strict";var i=n(46518),r=n(36043);i({target:"Promise",stat:!0,forced:n(10916).CONSTRUCTOR},{reject:function(e){var t=r.f(this);return(0,t.reject)(e),t.promise}})},40280:(e,t,n)=>{"use strict";var i=n(46518),r=n(97751),o=n(96395),a=n(80550),s=n(10916).CONSTRUCTOR,l=n(93438),u=r("Promise"),c=o&&!s;i({target:"Promise",stat:!0,forced:o||s},{resolve:function(e){return l(c&&this===u?a:this,e)}})},14628:(e,t,n)=>{"use strict";var i=n(46518),r=n(36043);i({target:"Promise",stat:!0},{withResolvers:function(){var e=r.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})},39796:(e,t,n)=>{"use strict";var i=n(46518),r=n(18745),o=n(79306),a=n(28551);i({target:"Reflect",stat:!0,forced:!n(79039)((function(){Reflect.apply((function(){}))}))},{apply:function(e,t,n){return r(o(e),t,a(n))}})},60825:(e,t,n)=>{"use strict";var i=n(46518),r=n(97751),o=n(18745),a=n(30566),s=n(35548),l=n(28551),u=n(20034),c=n(2360),d=n(79039),h=r("Reflect","construct"),p=Object.prototype,f=[].push,_=d((function(){function e(){}return!(h((function(){}),[],e)instanceof e)})),g=!d((function(){h((function(){}))})),b=_||g;i({target:"Reflect",stat:!0,forced:b,sham:b},{construct:function(e,t){s(e),l(t);var n=arguments.length<3?e:s(arguments[2]);if(g&&!_)return h(e,t,n);if(e===n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var i=[null];return o(f,i,t),new(o(a,e,i))}var r=n.prototype,d=c(u(r)?r:p),b=o(e,d,t);return u(b)?b:d}})},87411:(e,t,n)=>{"use strict";var i=n(46518),r=n(43724),o=n(28551),a=n(56969),s=n(24913);i({target:"Reflect",stat:!0,forced:n(79039)((function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})})),sham:!r},{defineProperty:function(e,t,n){o(e);var i=a(t);o(n);try{return s.f(e,i,n),!0}catch(e){return!1}}})},21211:(e,t,n)=>{"use strict";var i=n(46518),r=n(28551),o=n(77347).f;i({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=o(r(e),t);return!(n&&!n.configurable)&&delete e[t]}})},9065:(e,t,n)=>{"use strict";var i=n(46518),r=n(43724),o=n(28551),a=n(77347);i({target:"Reflect",stat:!0,sham:!r},{getOwnPropertyDescriptor:function(e,t){return a.f(o(e),t)}})},86565:(e,t,n)=>{"use strict";var i=n(46518),r=n(28551),o=n(42787);i({target:"Reflect",stat:!0,sham:!n(12211)},{getPrototypeOf:function(e){return o(r(e))}})},40888:(e,t,n)=>{"use strict";var i=n(46518),r=n(69565),o=n(20034),a=n(28551),s=n(16575),l=n(77347),u=n(42787);i({target:"Reflect",stat:!0},{get:function e(t,n){var i,c,d=arguments.length<3?t:arguments[2];return a(t)===d?t[n]:(i=l.f(t,n))?s(i)?i.value:void 0===i.get?void 0:r(i.get,d):o(c=u(t))?e(c,n,d):void 0}})},32812:(e,t,n)=>{"use strict";n(46518)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},84634:(e,t,n)=>{"use strict";var i=n(46518),r=n(28551),o=n(34124);i({target:"Reflect",stat:!0},{isExtensible:function(e){return r(e),o(e)}})},71137:(e,t,n)=>{"use strict";n(46518)({target:"Reflect",stat:!0},{ownKeys:n(35031)})},30985:(e,t,n)=>{"use strict";var i=n(46518),r=n(97751),o=n(28551);i({target:"Reflect",stat:!0,sham:!n(92744)},{preventExtensions:function(e){o(e);try{var t=r("Object","preventExtensions");return t&&t(e),!0}catch(e){return!1}}})},34873:(e,t,n)=>{"use strict";var i=n(46518),r=n(28551),o=n(73506),a=n(52967);a&&i({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){r(e),o(t);try{return a(e,t),!0}catch(e){return!1}}})},34268:(e,t,n)=>{"use strict";var i=n(46518),r=n(69565),o=n(28551),a=n(20034),s=n(16575),l=n(79039),u=n(24913),c=n(77347),d=n(42787),h=n(6980);i({target:"Reflect",stat:!0,forced:l((function(){var e=function(){},t=u.f(new e,"a",{configurable:!0});return!1!==Reflect.set(e.prototype,"a",1,t)}))},{set:function e(t,n,i){var l,p,f,_=arguments.length<4?t:arguments[3],g=c.f(o(t),n);if(!g){if(a(p=d(t)))return e(p,n,i,_);g=h(0)}if(s(g)){if(!1===g.writable||!a(_))return!1;if(l=c.f(_,n)){if(l.get||l.set||!1===l.writable)return!1;l.value=i,u.f(_,n,l)}else u.f(_,n,h(0,i))}else{if(void 0===(f=g.set))return!1;r(f,_,i)}return!0}})},15472:(e,t,n)=>{"use strict";var i=n(46518),r=n(44576),o=n(10687);i({global:!0},{Reflect:{}}),o(r.Reflect,"Reflect",!0)},84864:(e,t,n)=>{"use strict";var i=n(43724),r=n(44576),o=n(79504),a=n(92796),s=n(23167),l=n(66699),u=n(2360),c=n(38480).f,d=n(1625),h=n(60788),p=n(655),f=n(61034),_=n(58429),g=n(11056),b=n(36840),m=n(79039),v=n(39297),y=n(91181).enforce,k=n(87633),x=n(78227),w=n(83635),E=n(18814),S=x("match"),C=r.RegExp,T=C.prototype,A=r.SyntaxError,I=o(T.exec),O=o("".charAt),D=o("".replace),$=o("".indexOf),N=o("".slice),M=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,L=/a/g,P=/a/g,R=new C(L)!==L,j=_.MISSED_STICKY,H=_.UNSUPPORTED_Y;if(a("RegExp",i&&(!R||j||w||E||m((function(){return P[S]=!1,C(L)!==L||C(P)===P||"/a/i"!==String(C(L,"i"))}))))){for(var B=function(e,t){var n,i,r,o,a,c,_=d(T,this),g=h(e),b=void 0===t,m=[],k=e;if(!_&&g&&b&&e.constructor===B)return e;if((g||d(T,e))&&(e=e.source,b&&(t=f(k))),e=void 0===e?"":p(e),t=void 0===t?"":p(t),k=e,w&&"dotAll"in L&&(i=!!t&&$(t,"s")>-1)&&(t=D(t,/s/g,"")),n=t,j&&"sticky"in L&&(r=!!t&&$(t,"y")>-1)&&H&&(t=D(t,/y/g,"")),E&&(o=function(e){for(var t,n=e.length,i=0,r="",o=[],a=u(null),s=!1,l=!1,c=0,d="";i<=n;i++){if("\\"===(t=O(e,i)))t+=O(e,++i);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:if(r+=t,"?:"===N(e,i+1,i+3))continue;I(M,N(e,i+1))&&(i+=2,l=!0),c++;continue;case">"===t&&l:if(""===d||v(a,d))throw new A("Invalid capture group name");a[d]=!0,o[o.length]=[d,c],l=!1,d="";continue}l?d+=t:r+=t}return[r,o]}(e),e=o[0],m=o[1]),a=s(C(e,t),_?this:T,B),(i||r||m.length)&&(c=y(a),i&&(c.dotAll=!0,c.raw=B(function(e){for(var t,n=e.length,i=0,r="",o=!1;i<=n;i++)"\\"!==(t=O(e,i))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),r+=t):r+="[\\s\\S]":r+=t+O(e,++i);return r}(e),n)),r&&(c.sticky=!0),m.length&&(c.groups=m)),e!==k)try{l(a,"source",""===k?"(?:)":k)}catch(e){}return a},V=c(C),U=0;V.length>U;)g(B,C,V[U++]);T.constructor=B,B.prototype=T,b(r,"RegExp",B,{constructor:!0})}k("RegExp")},57465:(e,t,n)=>{"use strict";var i=n(43724),r=n(83635),o=n(22195),a=n(62106),s=n(91181).get,l=RegExp.prototype,u=TypeError;i&&r&&a(l,"dotAll",{configurable:!0,get:function(){if(this!==l){if("RegExp"===o(this))return!!s(this).dotAll;throw new u("Incompatible receiver, RegExp required")}}})},27495:(e,t,n)=>{"use strict";var i=n(46518),r=n(57323);i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},69479:(e,t,n)=>{"use strict";var i=n(44576),r=n(43724),o=n(62106),a=n(67979),s=n(79039),l=i.RegExp,u=l.prototype;r&&s((function(){var e=!0;try{l(".","d")}catch(t){e=!1}var t={},n="",i=e?"dgimsy":"gimsy",r=function(e,i){Object.defineProperty(t,e,{get:function(){return n+=i,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(o.hasIndices="d"),o)r(a,o[a]);return Object.getOwnPropertyDescriptor(u,"flags").get.call(t)!==i||n!==i}))&&o(u,"flags",{configurable:!0,get:a})},87745:(e,t,n)=>{"use strict";var i=n(43724),r=n(58429).MISSED_STICKY,o=n(22195),a=n(62106),s=n(91181).get,l=RegExp.prototype,u=TypeError;i&&r&&a(l,"sticky",{configurable:!0,get:function(){if(this!==l){if("RegExp"===o(this))return!!s(this).sticky;throw new u("Incompatible receiver, RegExp required")}}})},90906:(e,t,n)=>{"use strict";n(27495);var i,r,o=n(46518),a=n(69565),s=n(94901),l=n(28551),u=n(655),c=(i=!1,(r=/[ac]/).exec=function(){return i=!0,/./.exec.apply(this,arguments)},!0===r.test("abc")&&i),d=/./.test;o({target:"RegExp",proto:!0,forced:!c},{test:function(e){var t=l(this),n=u(e),i=t.exec;if(!s(i))return a(d,t,n);var r=a(i,t,n);return null!==r&&(l(r),!0)}})},38781:(e,t,n)=>{"use strict";var i=n(10350).PROPER,r=n(36840),o=n(28551),a=n(655),s=n(79039),l=n(61034),u="toString",c=RegExp.prototype,d=c[u],h=s((function(){return"/a/b"!==d.call({source:"a",flags:"b"})})),p=i&&d.name!==u;(h||p)&&r(c,u,(function(){var e=o(this);return"/"+a(e.source)+"/"+a(l(e))}),{unsafe:!0})},92405:(e,t,n)=>{"use strict";n(16468)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(86938))},17642:(e,t,n)=>{"use strict";var i=n(46518),r=n(83440);i({target:"Set",proto:!0,real:!0,forced:!n(84916)("difference")},{difference:r})},58004:(e,t,n)=>{"use strict";var i=n(46518),r=n(79039),o=n(68750);i({target:"Set",proto:!0,real:!0,forced:!n(84916)("intersection")||r((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:o})},33853:(e,t,n)=>{"use strict";var i=n(46518),r=n(64449);i({target:"Set",proto:!0,real:!0,forced:!n(84916)("isDisjointFrom")},{isDisjointFrom:r})},45876:(e,t,n)=>{"use strict";var i=n(46518),r=n(53838);i({target:"Set",proto:!0,real:!0,forced:!n(84916)("isSubsetOf")},{isSubsetOf:r})},32475:(e,t,n)=>{"use strict";var i=n(46518),r=n(28527);i({target:"Set",proto:!0,real:!0,forced:!n(84916)("isSupersetOf")},{isSupersetOf:r})},31415:(e,t,n)=>{"use strict";n(92405)},15024:(e,t,n)=>{"use strict";var i=n(46518),r=n(83650);i({target:"Set",proto:!0,real:!0,forced:!n(84916)("symmetricDifference")},{symmetricDifference:r})},31698:(e,t,n)=>{"use strict";var i=n(46518),r=n(44204);i({target:"Set",proto:!0,real:!0,forced:!n(84916)("union")},{union:r})},89907:(e,t,n)=>{"use strict";var i=n(46518),r=n(77240);i({target:"String",proto:!0,forced:n(23061)("anchor")},{anchor:function(e){return r(this,"a","name",e)}})},67357:(e,t,n)=>{"use strict";var i=n(46518),r=n(79504),o=n(67750),a=n(91291),s=n(655),l=n(79039),u=r("".charAt);i({target:"String",proto:!0,forced:l((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function(e){var t=s(o(this)),n=t.length,i=a(e),r=i>=0?i:n+i;return r<0||r>=n?void 0:u(t,r)}})},11898:(e,t,n)=>{"use strict";var i=n(46518),r=n(77240);i({target:"String",proto:!0,forced:n(23061)("big")},{big:function(){return r(this,"big","","")}})},35490:(e,t,n)=>{"use strict";var i=n(46518),r=n(77240);i({target:"String",proto:!0,forced:n(23061)("blink")},{blink:function(){return r(this,"blink","","")}})},5745:(e,t,n)=>{"use strict";var i=n(46518),r=n(77240);i({target:"String",proto:!0,forced:n(23061)("bold")},{bold:function(){return r(this,"b","","")}})},23860:(e,t,n)=>{"use strict";var i=n(46518),r=n(68183).codeAt;i({target:"String",proto:!0},{codePointAt:function(e){return r(this,e)}})},99449:(e,t,n)=>{"use strict";var i,r=n(46518),o=n(27476),a=n(77347).f,s=n(18014),l=n(655),u=n(60511),c=n(67750),d=n(41436),h=n(96395),p=o("".slice),f=Math.min,_=d("endsWith");r({target:"String",proto:!0,forced:!(!h&&!_&&(i=a(String.prototype,"endsWith"),i&&!i.writable)||_)},{endsWith:function(e){var t=l(c(this));u(e);var n=arguments.length>1?arguments[1]:void 0,i=t.length,r=void 0===n?i:f(s(n),i),o=l(e);return p(t,r-o.length,r)===o}})},94298:(e,t,n)=>{"use strict";var i=n(46518),r=n(77240);i({target:"String",proto:!0,forced:n(23061)("fixed")},{fixed:function(){return r(this,"tt","","")}})},60268:(e,t,n)=>{"use strict";var i=n(46518),r=n(77240);i({target:"String",proto:!0,forced:n(23061)("fontcolor")},{fontcolor:function(e){return r(this,"font","color",e)}})},69546:(e,t,n)=>{"use strict";var i=n(46518),r=n(77240);i({target:"String",proto:!0,forced:n(23061)("fontsize")},{fontsize:function(e){return r(this,"font","size",e)}})},27337:(e,t,n)=>{"use strict";var i=n(46518),r=n(79504),o=n(35610),a=RangeError,s=String.fromCharCode,l=String.fromCodePoint,u=r([].join);i({target:"String",stat:!0,arity:1,forced:!!l&&1!==l.length},{fromCodePoint:function(e){for(var t,n=[],i=arguments.length,r=0;i>r;){if(t=+arguments[r++],o(t,1114111)!==t)throw new a(t+" is not a valid code point");n[r]=t<65536?s(t):s(55296+((t-=65536)>>10),t%1024+56320)}return u(n,"")}})},21699:(e,t,n)=>{"use strict";var i=n(46518),r=n(79504),o=n(60511),a=n(67750),s=n(655),l=n(41436),u=r("".indexOf);i({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~u(s(a(this)),s(o(e)),arguments.length>1?arguments[1]:void 0)}})},42043:(e,t,n)=>{"use strict";var i=n(46518),r=n(79504),o=n(67750),a=n(655),s=r("".charCodeAt);i({target:"String",proto:!0},{isWellFormed:function(){for(var e=a(o(this)),t=e.length,n=0;n<t;n++){var i=s(e,n);if(55296==(63488&i)&&(i>=56320||++n>=t||56320!=(64512&s(e,n))))return!1}return!0}})},20781:(e,t,n)=>{"use strict";var i=n(46518),r=n(77240);i({target:"String",proto:!0,forced:n(23061)("italics")},{italics:function(){return r(this,"i","","")}})},47764:(e,t,n)=>{"use strict";var i=n(68183).charAt,r=n(655),o=n(91181),a=n(51088),s=n(62529),l="String Iterator",u=o.set,c=o.getterFor(l);a(String,"String",(function(e){u(this,{type:l,string:r(e),index:0})}),(function(){var e,t=c(this),n=t.string,r=t.index;return r>=n.length?s(void 0,!0):(e=i(n,r),t.index+=e.length,s(e,!1))}))},50778:(e,t,n)=>{"use strict";var i=n(46518),r=n(77240);i({target:"String",proto:!0,forced:n(23061)("link")},{link:function(e){return r(this,"a","href",e)}})},28543:(e,t,n)=>{"use strict";var i=n(46518),r=n(69565),o=n(27476),a=n(33994),s=n(62529),l=n(67750),u=n(18014),c=n(655),d=n(28551),h=n(64117),p=n(22195),f=n(60788),_=n(61034),g=n(55966),b=n(36840),m=n(79039),v=n(78227),y=n(2293),k=n(57829),x=n(56682),w=n(91181),E=n(96395),S=v("matchAll"),C="RegExp String",T=C+" Iterator",A=w.set,I=w.getterFor(T),O=RegExp.prototype,D=TypeError,$=o("".indexOf),N=o("".matchAll),M=!!N&&!m((function(){N("a",/./)})),L=a((function(e,t,n,i){A(this,{type:T,regexp:e,string:t,global:n,unicode:i,done:!1})}),C,(function(){var e=I(this);if(e.done)return s(void 0,!0);var t=e.regexp,n=e.string,i=x(t,n);return null===i?(e.done=!0,s(void 0,!0)):e.global?(""===c(i[0])&&(t.lastIndex=k(n,u(t.lastIndex),e.unicode)),s(i,!1)):(e.done=!0,s(i,!1))})),P=function(e){var t,n,i,r=d(this),o=c(e),a=y(r,RegExp),s=c(_(r));return t=new a(a===RegExp?r.source:r,s),n=!!~$(s,"g"),i=!!~$(s,"u"),t.lastIndex=u(r.lastIndex),new L(t,o,n,i)};i({target:"String",proto:!0,forced:M},{matchAll:function(e){var t,n,i,o,a=l(this);if(h(e)){if(M)return N(a,e)}else{if(f(e)&&(t=c(l(_(e))),!~$(t,"g")))throw new D("`.matchAll` does not allow non-global regexes");if(M)return N(a,e);if(void 0===(i=g(e,S))&&E&&"RegExp"===p(e)&&(i=P),i)return r(i,e,a)}return n=c(a),o=new RegExp(e,"g"),E?r(P,o,n):o[S](n)}}),E||S in O||b(O,S,P)},71761:(e,t,n)=>{"use strict";var i=n(69565),r=n(89228),o=n(28551),a=n(64117),s=n(18014),l=n(655),u=n(67750),c=n(55966),d=n(57829),h=n(56682);r("match",(function(e,t,n){return[function(t){var n=u(this),r=a(t)?void 0:c(t,e);return r?i(r,t,n):new RegExp(t)[e](l(n))},function(e){var i=o(this),r=l(e),a=n(t,i,r);if(a.done)return a.value;if(!i.global)return h(i,r);var u=i.unicode;i.lastIndex=0;for(var c,p=[],f=0;null!==(c=h(i,r));){var _=l(c[0]);p[f]=_,""===_&&(i.lastIndex=d(r,s(i.lastIndex),u)),f++}return 0===f?null:p}]}))},35701:(e,t,n)=>{"use strict";var i=n(46518),r=n(60533).end;i({target:"String",proto:!0,forced:n(83063)},{padEnd:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},68156:(e,t,n)=>{"use strict";var i=n(46518),r=n(60533).start;i({target:"String",proto:!0,forced:n(83063)},{padStart:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},85906:(e,t,n)=>{"use strict";var i=n(46518),r=n(79504),o=n(25397),a=n(48981),s=n(655),l=n(26198),u=r([].push),c=r([].join);i({target:"String",stat:!0},{raw:function(e){var t=o(a(e).raw),n=l(t);if(!n)return"";for(var i=arguments.length,r=[],d=0;;){if(u(r,s(t[d++])),d===n)return c(r,"");d<i&&u(r,s(arguments[d]))}}})},42781:(e,t,n)=>{"use strict";n(46518)({target:"String",proto:!0},{repeat:n(72333)})},79978:(e,t,n)=>{"use strict";var i=n(46518),r=n(69565),o=n(79504),a=n(67750),s=n(94901),l=n(64117),u=n(60788),c=n(655),d=n(55966),h=n(61034),p=n(2478),f=n(78227),_=n(96395),g=f("replace"),b=TypeError,m=o("".indexOf),v=o("".replace),y=o("".slice),k=Math.max;i({target:"String",proto:!0},{replaceAll:function(e,t){var n,i,o,f,x,w,E,S,C,T,A=a(this),I=0,O="";if(!l(e)){if((n=u(e))&&(i=c(a(h(e))),!~m(i,"g")))throw new b("`.replaceAll` does not allow non-global regexes");if(o=d(e,g))return r(o,e,A,t);if(_&&n)return v(c(A),e,t)}for(f=c(A),x=c(e),(w=s(t))||(t=c(t)),E=x.length,S=k(1,E),C=m(f,x);-1!==C;)T=w?c(t(x,C,f)):p(x,f,C,[],void 0,t),O+=y(f,I,C)+T,I=C+E,C=C+S>f.length?-1:m(f,x,C+S);return I<f.length&&(O+=y(f,I)),O}})},25440:(e,t,n)=>{"use strict";var i=n(18745),r=n(69565),o=n(79504),a=n(89228),s=n(79039),l=n(28551),u=n(94901),c=n(64117),d=n(91291),h=n(18014),p=n(655),f=n(67750),_=n(57829),g=n(55966),b=n(2478),m=n(56682),v=n(78227)("replace"),y=Math.max,k=Math.min,x=o([].concat),w=o([].push),E=o("".indexOf),S=o("".slice),C="$0"==="a".replace(/./,"$0"),T=!!/./[v]&&""===/./[v]("a","$0");a("replace",(function(e,t,n){var o=T?"$":"$0";return[function(e,n){var i=f(this),o=c(e)?void 0:g(e,v);return o?r(o,e,i,n):r(t,p(i),e,n)},function(e,r){var a=l(this),s=p(e);if("string"==typeof r&&-1===E(r,o)&&-1===E(r,"$<")){var c=n(t,a,s,r);if(c.done)return c.value}var f=u(r);f||(r=p(r));var g,v=a.global;v&&(g=a.unicode,a.lastIndex=0);for(var C,T=[];null!==(C=m(a,s))&&(w(T,C),v);)""===p(C[0])&&(a.lastIndex=_(s,h(a.lastIndex),g));for(var A,I="",O=0,D=0;D<T.length;D++){for(var $,N=p((C=T[D])[0]),M=y(k(d(C.index),s.length),0),L=[],P=1;P<C.length;P++)w(L,void 0===(A=C[P])?A:String(A));var R=C.groups;if(f){var j=x([N],L,M,s);void 0!==R&&w(j,R),$=p(i(r,void 0,j))}else $=b(N,s,M,L,R,r);M>=O&&(I+=S(s,O,M)+$,O=M+N.length)}return I+S(s,O)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!C||T)},5746:(e,t,n)=>{"use strict";var i=n(69565),r=n(89228),o=n(28551),a=n(64117),s=n(67750),l=n(3470),u=n(655),c=n(55966),d=n(56682);r("search",(function(e,t,n){return[function(t){var n=s(this),r=a(t)?void 0:c(t,e);return r?i(r,t,n):new RegExp(t)[e](u(n))},function(e){var i=o(this),r=u(e),a=n(t,i,r);if(a.done)return a.value;var s=i.lastIndex;l(s,0)||(i.lastIndex=0);var c=d(i,r);return l(i.lastIndex,s)||(i.lastIndex=s),null===c?-1:c.index}]}))},89195:(e,t,n)=>{"use strict";var i=n(46518),r=n(77240);i({target:"String",proto:!0,forced:n(23061)("small")},{small:function(){return r(this,"small","","")}})},90744:(e,t,n)=>{"use strict";var i=n(69565),r=n(79504),o=n(89228),a=n(28551),s=n(64117),l=n(67750),u=n(2293),c=n(57829),d=n(18014),h=n(655),p=n(55966),f=n(56682),_=n(58429),g=n(79039),b=_.UNSUPPORTED_Y,m=Math.min,v=r([].push),y=r("".slice),k=!g((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),x="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;o("split",(function(e,t,n){var r="0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:i(t,this,e,n)}:t;return[function(t,n){var o=l(this),a=s(t)?void 0:p(t,e);return a?i(a,t,o,n):i(r,h(o),t,n)},function(e,i){var o=a(this),s=h(e);if(!x){var l=n(r,o,s,i,r!==t);if(l.done)return l.value}var p=u(o,RegExp),_=o.unicode,g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(b?"g":"y"),k=new p(b?"^(?:"+o.source+")":o,g),w=void 0===i?4294967295:i>>>0;if(0===w)return[];if(0===s.length)return null===f(k,s)?[s]:[];for(var E=0,S=0,C=[];S<s.length;){k.lastIndex=b?0:S;var T,A=f(k,b?y(s,S):s);if(null===A||(T=m(d(k.lastIndex+(b?S:0)),s.length))===E)S=c(s,S,_);else{if(v(C,y(s,E,S)),C.length===w)return C;for(var I=1;I<=A.length-1;I++)if(v(C,A[I]),C.length===w)return C;S=E=T}}return v(C,y(s,E)),C}]}),x||!k,b)},11392:(e,t,n)=>{"use strict";var i,r=n(46518),o=n(27476),a=n(77347).f,s=n(18014),l=n(655),u=n(60511),c=n(67750),d=n(41436),h=n(96395),p=o("".slice),f=Math.min,_=d("startsWith");r({target:"String",proto:!0,forced:!(!h&&!_&&(i=a(String.prototype,"startsWith"),i&&!i.writable)||_)},{startsWith:function(e){var t=l(c(this));u(e);var n=s(f(arguments.length>1?arguments[1]:void 0,t.length)),i=l(e);return p(t,n,n+i.length)===i}})},46276:(e,t,n)=>{"use strict";var i=n(46518),r=n(77240);i({target:"String",proto:!0,forced:n(23061)("strike")},{strike:function(){return r(this,"strike","","")}})},48718:(e,t,n)=>{"use strict";var i=n(46518),r=n(77240);i({target:"String",proto:!0,forced:n(23061)("sub")},{sub:function(){return r(this,"sub","","")}})},50375:(e,t,n)=>{"use strict";var i=n(46518),r=n(79504),o=n(67750),a=n(91291),s=n(655),l=r("".slice),u=Math.max,c=Math.min;i({target:"String",proto:!0,forced:!"".substr||"b"!=="ab".substr(-1)},{substr:function(e,t){var n,i,r=s(o(this)),d=r.length,h=a(e);return h===1/0&&(h=0),h<0&&(h=u(d+h,0)),(n=void 0===t?d:a(t))<=0||n===1/0||h>=(i=c(h+n,d))?"":l(r,h,i)}})},16308:(e,t,n)=>{"use strict";var i=n(46518),r=n(77240);i({target:"String",proto:!0,forced:n(23061)("sup")},{sup:function(){return r(this,"sup","","")}})},67438:(e,t,n)=>{"use strict";var i=n(46518),r=n(69565),o=n(79504),a=n(67750),s=n(655),l=n(79039),u=Array,c=o("".charAt),d=o("".charCodeAt),h=o([].join),p="".toWellFormed,f=p&&l((function(){return"1"!==r(p,1)}));i({target:"String",proto:!0,forced:f},{toWellFormed:function(){var e=s(a(this));if(f)return r(p,e);for(var t=e.length,n=u(t),i=0;i<t;i++){var o=d(e,i);55296!=(63488&o)?n[i]=c(e,i):o>=56320||i+1>=t||56320!=(64512&d(e,i+1))?n[i]="<22>":(n[i]=c(e,i),n[++i]=c(e,i))}return h(n,"")}})},39202:(e,t,n)=>{"use strict";n(33313);var i=n(46518),r=n(18866);i({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==r},{trimEnd:r})},58934:(e,t,n)=>{"use strict";var i=n(46518),r=n(53487);i({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==r},{trimLeft:r})},33313:(e,t,n)=>{"use strict";var i=n(46518),r=n(18866);i({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==r},{trimRight:r})},43359:(e,t,n)=>{"use strict";n(58934);var i=n(46518),r=n(53487);i({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==r},{trimStart:r})},42762:(e,t,n)=>{"use strict";var i=n(46518),r=n(43802).trim;i({target:"String",proto:!0,forced:n(60706)("trim")},{trim:function(){return r(this)}})},66412:(e,t,n)=>{"use strict";n(70511)("asyncIterator")},6761:(e,t,n)=>{"use strict";var i=n(46518),r=n(44576),o=n(69565),a=n(79504),s=n(96395),l=n(43724),u=n(4495),c=n(79039),d=n(39297),h=n(1625),p=n(28551),f=n(25397),_=n(56969),g=n(655),b=n(6980),m=n(2360),v=n(71072),y=n(38480),k=n(10298),x=n(33717),w=n(77347),E=n(24913),S=n(96801),C=n(48773),T=n(36840),A=n(62106),I=n(25745),O=n(66119),D=n(30421),$=n(33392),N=n(78227),M=n(1951),L=n(70511),P=n(58242),R=n(10687),j=n(91181),H=n(59213).forEach,B=O("hidden"),V="Symbol",U="prototype",F=j.set,z=j.getterFor(V),G=Object[U],W=r.Symbol,q=W&&W[U],K=r.RangeError,Y=r.TypeError,J=r.QObject,Z=w.f,X=E.f,Q=k.f,ee=C.f,te=a([].push),ne=I("symbols"),ie=I("op-symbols"),re=I("wks"),oe=!J||!J[U]||!J[U].findChild,ae=function(e,t,n){var i=Z(G,t);i&&delete G[t],X(e,t,n),i&&e!==G&&X(G,t,i)},se=l&&c((function(){return 7!==m(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?ae:X,le=function(e,t){var n=ne[e]=m(q);return F(n,{type:V,tag:e,description:t}),l||(n.description=t),n},ue=function(e,t,n){e===G&&ue(ie,t,n),p(e);var i=_(t);return p(n),d(ne,i)?(n.enumerable?(d(e,B)&&e[B][i]&&(e[B][i]=!1),n=m(n,{enumerable:b(0,!1)})):(d(e,B)||X(e,B,b(1,m(null))),e[B][i]=!0),se(e,i,n)):X(e,i,n)},ce=function(e,t){p(e);var n=f(t),i=v(n).concat(fe(n));return H(i,(function(t){l&&!o(de,n,t)||ue(e,t,n[t])})),e},de=function(e){var t=_(e),n=o(ee,this,t);return!(this===G&&d(ne,t)&&!d(ie,t))&&(!(n||!d(this,t)||!d(ne,t)||d(this,B)&&this[B][t])||n)},he=function(e,t){var n=f(e),i=_(t);if(n!==G||!d(ne,i)||d(ie,i)){var r=Z(n,i);return!r||!d(ne,i)||d(n,B)&&n[B][i]||(r.enumerable=!0),r}},pe=function(e){var t=Q(f(e)),n=[];return H(t,(function(e){d(ne,e)||d(D,e)||te(n,e)})),n},fe=function(e){var t=e===G,n=Q(t?ie:f(e)),i=[];return H(n,(function(e){!d(ne,e)||t&&!d(G,e)||te(i,ne[e])})),i};u||(T(q=(W=function(){if(h(q,this))throw new Y("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=$(e),n=function(e){var i=void 0===this?r:this;i===G&&o(n,ie,e),d(i,B)&&d(i[B],t)&&(i[B][t]=!1);var a=b(1,e);try{se(i,t,a)}catch(e){if(!(e instanceof K))throw e;ae(i,t,a)}};return l&&oe&&se(G,t,{configurable:!0,set:n}),le(t,e)})[U],"toString",(function(){return z(this).tag})),T(W,"withoutSetter",(function(e){return le($(e),e)})),C.f=de,E.f=ue,S.f=ce,w.f=he,y.f=k.f=pe,x.f=fe,M.f=function(e){return le(N(e),e)},l&&(A(q,"description",{configurable:!0,get:function(){return z(this).description}}),s||T(G,"propertyIsEnumerable",de,{unsafe:!0}))),i({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:W}),H(v(re),(function(e){L(e)})),i({target:V,stat:!0,forced:!u},{useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),i({target:"Object",stat:!0,forced:!u,sham:!l},{create:function(e,t){return void 0===t?m(e):ce(m(e),t)},defineProperty:ue,defineProperties:ce,getOwnPropertyDescriptor:he}),i({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:pe}),P(),R(W,V),D[B]=!0},89463:(e,t,n)=>{"use strict";var i=n(46518),r=n(43724),o=n(44576),a=n(79504),s=n(39297),l=n(94901),u=n(1625),c=n(655),d=n(62106),h=n(77740),p=o.Symbol,f=p&&p.prototype;if(r&&l(p)&&(!("description"in f)||void 0!==p().description)){var _={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=u(f,this)?new p(e):void 0===e?p():p(e);return""===e&&(_[t]=!0),t};h(g,p),g.prototype=f,f.constructor=g;var b="Symbol(description detection)"===String(p("description detection")),m=a(f.valueOf),v=a(f.toString),y=/^Symbol\((.*)\)[^)]+$/,k=a("".replace),x=a("".slice);d(f,"description",{configurable:!0,get:function(){var e=m(this);if(s(_,e))return"";var t=v(e),n=b?x(t,7,-1):k(t,y,"$1");return""===n?void 0:n}}),i({global:!0,constructor:!0,forced:!0},{Symbol:g})}},81510:(e,t,n)=>{"use strict";var i=n(46518),r=n(97751),o=n(39297),a=n(655),s=n(25745),l=n(91296),u=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=a(e);if(o(u,t))return u[t];var n=r("Symbol")(t);return u[t]=n,c[n]=t,n}})},60193:(e,t,n)=>{"use strict";n(70511)("hasInstance")},92168:(e,t,n)=>{"use strict";n(70511)("isConcatSpreadable")},2259:(e,t,n)=>{"use strict";n(70511)("iterator")},52675:(e,t,n)=>{"use strict";n(6761),n(81510),n(97812),n(33110),n(49773)},97812:(e,t,n)=>{"use strict";var i=n(46518),r=n(39297),o=n(10757),a=n(16823),s=n(25745),l=n(91296),u=s("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!o(e))throw new TypeError(a(e)+" is not a symbol");if(r(u,e))return u[e]}})},83142:(e,t,n)=>{"use strict";n(70511)("matchAll")},86964:(e,t,n)=>{"use strict";n(70511)("match")},83237:(e,t,n)=>{"use strict";n(70511)("replace")},61833:(e,t,n)=>{"use strict";n(70511)("search")},67947:(e,t,n)=>{"use strict";n(70511)("species")},31073:(e,t,n)=>{"use strict";n(70511)("split")},45700:(e,t,n)=>{"use strict";var i=n(70511),r=n(58242);i("toPrimitive"),r()},78125:(e,t,n)=>{"use strict";var i=n(97751),r=n(70511),o=n(10687);r("toStringTag"),o(i("Symbol"),"Symbol")},20326:(e,t,n)=>{"use strict";n(70511)("unscopables")},48140:(e,t,n)=>{"use strict";var i=n(94644),r=n(26198),o=n(91291),a=i.aTypedArray;(0,i.exportTypedArrayMethod)("at",(function(e){var t=a(this),n=r(t),i=o(e),s=i>=0?i:n+i;return s<0||s>=n?void 0:t[s]}))},81630:(e,t,n)=>{"use strict";var i=n(79504),r=n(94644),o=i(n(57029)),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("copyWithin",(function(e,t){return o(a(this),e,t,arguments.length>2?arguments[2]:void 0)}))},72170:(e,t,n)=>{"use strict";var i=n(94644),r=n(59213).every,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("every",(function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)}))},75044:(e,t,n)=>{"use strict";var i=n(94644),r=n(84373),o=n(75854),a=n(36955),s=n(69565),l=n(79504),u=n(79039),c=i.aTypedArray,d=i.exportTypedArrayMethod,h=l("".slice);d("fill",(function(e){var t=arguments.length;c(this);var n="Big"===h(a(this),0,3)?o(e):+e;return s(r,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),u((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},69539:(e,t,n)=>{"use strict";var i=n(94644),r=n(59213).filter,o=n(26357),a=i.aTypedArray;(0,i.exportTypedArrayMethod)("filter",(function(e){var t=r(a(this),e,arguments.length>1?arguments[1]:void 0);return o(this,t)}))},89955:(e,t,n)=>{"use strict";var i=n(94644),r=n(59213).findIndex,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("findIndex",(function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)}))},91134:(e,t,n)=>{"use strict";var i=n(94644),r=n(43839).findLastIndex,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("findLastIndex",(function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)}))},21903:(e,t,n)=>{"use strict";var i=n(94644),r=n(43839).findLast,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("findLast",(function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)}))},31694:(e,t,n)=>{"use strict";var i=n(94644),r=n(59213).find,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("find",(function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)}))},34594:(e,t,n)=>{"use strict";n(15823)("Float32",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},29833:(e,t,n)=>{"use strict";n(15823)("Float64",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},33206:(e,t,n)=>{"use strict";var i=n(94644),r=n(59213).forEach,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("forEach",(function(e){r(o(this),e,arguments.length>1?arguments[1]:void 0)}))},48345:(e,t,n)=>{"use strict";var i=n(72805);(0,n(94644).exportTypedArrayStaticMethod)("from",n(43251),i)},44496:(e,t,n)=>{"use strict";var i=n(94644),r=n(19617).includes,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("includes",(function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)}))},66651:(e,t,n)=>{"use strict";var i=n(94644),r=n(19617).indexOf,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("indexOf",(function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)}))},72107:(e,t,n)=>{"use strict";n(15823)("Int16",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},95477:(e,t,n)=>{"use strict";n(15823)("Int32",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},46594:(e,t,n)=>{"use strict";n(15823)("Int8",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},12887:(e,t,n)=>{"use strict";var i=n(44576),r=n(79039),o=n(79504),a=n(94644),s=n(23792),l=n(78227)("iterator"),u=i.Uint8Array,c=o(s.values),d=o(s.keys),h=o(s.entries),p=a.aTypedArray,f=a.exportTypedArrayMethod,_=u&&u.prototype,g=!r((function(){_[l].call([1])})),b=!!_&&_.values&&_[l]===_.values&&"values"===_.values.name,m=function(){return c(p(this))};f("entries",(function(){return h(p(this))}),g),f("keys",(function(){return d(p(this))}),g),f("values",m,g||!b,{name:"values"}),f(l,m,g||!b,{name:"values"})},19369:(e,t,n)=>{"use strict";var i=n(94644),r=n(79504),o=i.aTypedArray,a=i.exportTypedArrayMethod,s=r([].join);a("join",(function(e){return s(o(this),e)}))},66812:(e,t,n)=>{"use strict";var i=n(94644),r=n(18745),o=n(8379),a=i.aTypedArray;(0,i.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return r(o,a(this),t>1?[e,arguments[1]]:[e])}))},8995:(e,t,n)=>{"use strict";var i=n(94644),r=n(59213).map,o=n(61412),a=i.aTypedArray;(0,i.exportTypedArrayMethod)("map",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(o(e))(t)}))}))},52568:(e,t,n)=>{"use strict";var i=n(94644),r=n(72805),o=i.aTypedArrayConstructor;(0,i.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,n=new(o(this))(t);t>e;)n[e]=arguments[e++];return n}),r)},36072:(e,t,n)=>{"use strict";var i=n(94644),r=n(80926).right,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return r(o(this),e,t,t>1?arguments[1]:void 0)}))},31575:(e,t,n)=>{"use strict";var i=n(94644),r=n(80926).left,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return r(o(this),e,t,t>1?arguments[1]:void 0)}))},88747:(e,t,n)=>{"use strict";var i=n(94644),r=i.aTypedArray,o=i.exportTypedArrayMethod,a=Math.floor;o("reverse",(function(){for(var e,t=this,n=r(t).length,i=a(n/2),o=0;o<i;)e=t[o],t[o++]=t[--n],t[n]=e;return t}))},28845:(e,t,n)=>{"use strict";var i=n(44576),r=n(69565),o=n(94644),a=n(26198),s=n(58229),l=n(48981),u=n(79039),c=i.RangeError,d=i.Int8Array,h=d&&d.prototype,p=h&&h.set,f=o.aTypedArray,_=o.exportTypedArrayMethod,g=!u((function(){var e=new Uint8ClampedArray(2);return r(p,e,{length:1,0:3},1),3!==e[1]})),b=g&&o.NATIVE_ARRAY_BUFFER_VIEWS&&u((function(){var e=new d(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));_("set",(function(e){f(this);var t=s(arguments.length>1?arguments[1]:void 0,1),n=l(e);if(g)return r(p,this,n,t);var i=this.length,o=a(n),u=0;if(o+t>i)throw new c("Wrong length");for(;u<o;)this[t+u]=n[u++]}),!g||b)},29423:(e,t,n)=>{"use strict";var i=n(94644),r=n(61412),o=n(79039),a=n(67680),s=i.aTypedArray;(0,i.exportTypedArrayMethod)("slice",(function(e,t){for(var n=a(s(this),e,t),i=r(this),o=0,l=n.length,u=new i(l);l>o;)u[o]=n[o++];return u}),o((function(){new Int8Array(1).slice()})))},57301:(e,t,n)=>{"use strict";var i=n(94644),r=n(59213).some,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("some",(function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)}))},373:(e,t,n)=>{"use strict";var i=n(44576),r=n(27476),o=n(79039),a=n(79306),s=n(74488),l=n(94644),u=n(13709),c=n(13763),d=n(39519),h=n(3607),p=l.aTypedArray,f=l.exportTypedArrayMethod,_=i.Uint16Array,g=_&&r(_.prototype.sort),b=!(!g||o((function(){g(new _(2),null)}))&&o((function(){g(new _(2),{})}))),m=!!g&&!o((function(){if(d)return d<74;if(u)return u<67;if(c)return!0;if(h)return h<602;var e,t,n=new _(516),i=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,i[e]=e-2*t+3;for(g(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==i[e])return!0}));f("sort",(function(e){return void 0!==e&&a(e),m?g(this,e):s(p(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!m||b)},86614:(e,t,n)=>{"use strict";var i=n(94644),r=n(18014),o=n(35610),a=n(61412),s=i.aTypedArray;(0,i.exportTypedArrayMethod)("subarray",(function(e,t){var n=s(this),i=n.length,l=o(e,i);return new(a(n))(n.buffer,n.byteOffset+l*n.BYTES_PER_ELEMENT,r((void 0===t?i:o(t,i))-l))}))},41405:(e,t,n)=>{"use strict";var i=n(44576),r=n(18745),o=n(94644),a=n(79039),s=n(67680),l=i.Int8Array,u=o.aTypedArray,c=o.exportTypedArrayMethod,d=[].toLocaleString,h=!!l&&a((function(){d.call(new l(1))}));c("toLocaleString",(function(){return r(d,h?s(u(this)):u(this),s(arguments))}),a((function(){return[1,2].toLocaleString()!==new l([1,2]).toLocaleString()}))||!a((function(){l.prototype.toLocaleString.call([1,2])})))},37467:(e,t,n)=>{"use strict";var i=n(37628),r=n(94644),o=r.aTypedArray,a=r.exportTypedArrayMethod,s=r.getTypedArrayConstructor;a("toReversed",(function(){return i(o(this),s(this))}))},44732:(e,t,n)=>{"use strict";var i=n(94644),r=n(79504),o=n(79306),a=n(35370),s=i.aTypedArray,l=i.getTypedArrayConstructor,u=i.exportTypedArrayMethod,c=r(i.TypedArrayPrototype.sort);u("toSorted",(function(e){void 0!==e&&o(e);var t=s(this),n=a(l(t),t);return c(n,e)}))},33684:(e,t,n)=>{"use strict";var i=n(94644).exportTypedArrayMethod,r=n(79039),o=n(44576),a=n(79504),s=o.Uint8Array,l=s&&s.prototype||{},u=[].toString,c=a([].join);r((function(){u.call({})}))&&(u=function(){return c(this)});var d=l.toString!==u;i("toString",u,d)},3690:(e,t,n)=>{"use strict";n(15823)("Uint16",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},61740:(e,t,n)=>{"use strict";n(15823)("Uint32",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},21489:(e,t,n)=>{"use strict";n(15823)("Uint8",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},22134:(e,t,n)=>{"use strict";n(15823)("Uint8",(function(e){return function(t,n,i){return e(this,t,n,i)}}),!0)},79577:(e,t,n)=>{"use strict";var i=n(39928),r=n(94644),o=n(18727),a=n(91291),s=n(75854),l=r.aTypedArray,u=r.getTypedArrayConstructor,c=r.exportTypedArrayMethod,d=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}();c("with",{with:function(e,t){var n=l(this),r=a(e),c=o(n)?s(t):+t;return i(n,u(n),r,c)}}.with,!d)},88267:(e,t,n)=>{"use strict";var i=n(46518),r=n(79504),o=n(655),a=String.fromCharCode,s=r("".charAt),l=r(/./.exec),u=r("".slice),c=/^[\da-f]{2}$/i,d=/^[\da-f]{4}$/i;i({global:!0},{unescape:function(e){for(var t,n,i=o(e),r="",h=i.length,p=0;p<h;){if("%"===(t=s(i,p++)))if("u"===s(i,p)){if(n=u(i,p+1,p+5),l(d,n)){r+=a(parseInt(n,16)),p+=5;continue}}else if(n=u(i,p,p+2),l(c,n)){r+=a(parseInt(n,16)),p+=2;continue}r+=t}return r}})},65746:(e,t,n)=>{"use strict";var i,r=n(92744),o=n(44576),a=n(79504),s=n(56279),l=n(3451),u=n(16468),c=n(91625),d=n(20034),h=n(91181).enforce,p=n(79039),f=n(58622),_=Object,g=Array.isArray,b=_.isExtensible,m=_.isFrozen,v=_.isSealed,y=_.freeze,k=_.seal,x=!o.ActiveXObject&&"ActiveXObject"in o,w=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},E=u("WeakMap",w,c),S=E.prototype,C=a(S.set);if(f)if(x){i=c.getConstructor(w,"WeakMap",!0),l.enable();var T=a(S.delete),A=a(S.has),I=a(S.get);s(S,{delete:function(e){if(d(e)&&!b(e)){var t=h(this);return t.frozen||(t.frozen=new i),T(this,e)||t.frozen.delete(e)}return T(this,e)},has:function(e){if(d(e)&&!b(e)){var t=h(this);return t.frozen||(t.frozen=new i),A(this,e)||t.frozen.has(e)}return A(this,e)},get:function(e){if(d(e)&&!b(e)){var t=h(this);return t.frozen||(t.frozen=new i),A(this,e)?I(this,e):t.frozen.get(e)}return I(this,e)},set:function(e,t){if(d(e)&&!b(e)){var n=h(this);n.frozen||(n.frozen=new i),A(this,e)?C(this,e,t):n.frozen.set(e,t)}else C(this,e,t);return this}})}else r&&p((function(){var e=y([]);return C(new E,e,1),!m(e)}))&&s(S,{set:function(e,t){var n;return g(e)&&(m(e)?n=y:v(e)&&(n=k)),C(this,e,t),n&&n(e),this}})},73772:(e,t,n)=>{"use strict";n(65746)},5240:(e,t,n)=>{"use strict";n(16468)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(91625))},30958:(e,t,n)=>{"use strict";n(5240)},2945:(e,t,n)=>{"use strict";var i=n(46518),r=n(44576),o=n(97751),a=n(79504),s=n(69565),l=n(79039),u=n(655),c=n(22812),d=n(92804).c2i,h=/[^\d+/a-z]/i,p=/[\t\n\f\r ]+/g,f=/[=]{1,2}$/,_=o("atob"),g=String.fromCharCode,b=a("".charAt),m=a("".replace),v=a(h.exec),y=!!_&&!l((function(){return"hi"!==_("aGk=")})),k=y&&l((function(){return""!==_(" ")})),x=y&&!l((function(){_("a")})),w=y&&!l((function(){_()})),E=y&&1!==_.length;i({global:!0,bind:!0,enumerable:!0,forced:!y||k||x||w||E},{atob:function(e){if(c(arguments.length,1),y&&!k&&!x)return s(_,r,e);var t,n,i,a=m(u(e),p,""),l="",w=0,E=0;if(a.length%4==0&&(a=m(a,f,"")),(t=a.length)%4==1||v(h,a))throw new(o("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;w<t;)n=b(a,w++),i=E%4?64*i+d[n]:d[n],E++%4&&(l+=g(255&i>>(-2*E&6)));return l}})},42207:(e,t,n)=>{"use strict";var i=n(46518),r=n(44576),o=n(97751),a=n(79504),s=n(69565),l=n(79039),u=n(655),c=n(22812),d=n(92804).i2c,h=o("btoa"),p=a("".charAt),f=a("".charCodeAt),_=!!h&&!l((function(){return"aGk="!==h("hi")})),g=_&&!l((function(){h()})),b=_&&l((function(){return"bnVsbA=="!==h(null)})),m=_&&1!==h.length;i({global:!0,bind:!0,enumerable:!0,forced:!_||g||b||m},{btoa:function(e){if(c(arguments.length,1),_)return s(h,r,u(e));for(var t,n,i=u(e),a="",l=0,g=d;p(i,l)||(g="=",l%1);){if((n=f(i,l+=3/4))>255)throw new(o("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");a+=p(g,63&(t=t<<8|n)>>8-l%1*8)}return a}})},86368:(e,t,n)=>{"use strict";var i=n(46518),r=n(44576),o=n(59225).clear;i({global:!0,bind:!0,enumerable:!0,forced:r.clearImmediate!==o},{clearImmediate:o})},23500:(e,t,n)=>{"use strict";var i=n(44576),r=n(67400),o=n(79296),a=n(90235),s=n(66699),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var u in r)r[u]&&l(i[u]&&i[u].prototype);l(o)},62953:(e,t,n)=>{"use strict";var i=n(44576),r=n(67400),o=n(79296),a=n(23792),s=n(66699),l=n(10687),u=n(78227)("iterator"),c=a.values,d=function(e,t){if(e){if(e[u]!==c)try{s(e,u,c)}catch(t){e[u]=c}if(l(e,t,!0),r[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var h in r)d(i[h]&&i[h].prototype,h);d(o,"DOMTokenList")},55815:(e,t,n)=>{"use strict";var i=n(46518),r=n(97751),o=n(89429),a=n(79039),s=n(2360),l=n(6980),u=n(24913).f,c=n(36840),d=n(62106),h=n(39297),p=n(90679),f=n(28551),_=n(77536),g=n(32603),b=n(55002),m=n(16193),v=n(91181),y=n(43724),k=n(96395),x="DOMException",w="DATA_CLONE_ERR",E=r("Error"),S=r(x)||function(){try{(new(r("MessageChannel")||o("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(e){if(e.name===w&&25===e.code)return e.constructor}}(),C=S&&S.prototype,T=E.prototype,A=v.set,I=v.getterFor(x),O="stack"in new E(x),D=function(e){return h(b,e)&&b[e].m?b[e].c:0},$=function(){p(this,N);var e=arguments.length,t=g(e<1?void 0:arguments[0]),n=g(e<2?void 0:arguments[1],"Error"),i=D(n);if(A(this,{type:x,name:n,message:t,code:i}),y||(this.name=n,this.message=t,this.code=i),O){var r=new E(t);r.name=x,u(this,"stack",l(1,m(r.stack,1)))}},N=$.prototype=s(T),M=function(e){return{enumerable:!0,configurable:!0,get:e}},L=function(e){return M((function(){return I(this)[e]}))};y&&(d(N,"code",L("code")),d(N,"message",L("message")),d(N,"name",L("name"))),u(N,"constructor",l(1,$));var P=a((function(){return!(new S instanceof E)})),R=P||a((function(){return T.toString!==_||"2: 1"!==String(new S(1,2))})),j=P||a((function(){return 25!==new S(1,"DataCloneError").code})),H=P||25!==S[w]||25!==C[w],B=k?R||j||H:P;i({global:!0,constructor:!0,forced:B},{DOMException:B?$:S});var V=r(x),U=V.prototype;for(var F in R&&(k||S===V)&&c(U,"toString",_),j&&y&&S===V&&d(U,"code",M((function(){return D(f(this).name)}))),b)if(h(b,F)){var z=b[F],G=z.s,W=l(6,z.c);h(V,G)||u(V,G,W),h(U,G)||u(U,G,W)}},64979:(e,t,n)=>{"use strict";var i=n(46518),r=n(44576),o=n(97751),a=n(6980),s=n(24913).f,l=n(39297),u=n(90679),c=n(23167),d=n(32603),h=n(55002),p=n(16193),f=n(43724),_=n(96395),g="DOMException",b=o("Error"),m=o(g),v=function(){u(this,y);var e=arguments.length,t=d(e<1?void 0:arguments[0]),n=d(e<2?void 0:arguments[1],"Error"),i=new m(t,n),r=new b(t);return r.name=g,s(i,"stack",a(1,p(r.stack,1))),c(i,this,v),i},y=v.prototype=m.prototype,k="stack"in new b(g),x="stack"in new m(1,2),w=m&&f&&Object.getOwnPropertyDescriptor(r,g),E=!(!w||w.writable&&w.configurable),S=k&&!E&&!x;i({global:!0,constructor:!0,forced:_||S},{DOMException:S?v:m});var C=o(g),T=C.prototype;if(T.constructor!==C)for(var A in _||s(T,"constructor",a(1,C)),h)if(l(h,A)){var I=h[A],O=I.s;l(C,O)||s(C,O,a(6,I.c))}},79739:(e,t,n)=>{"use strict";var i=n(97751),r="DOMException";n(10687)(i(r),r)},59848:(e,t,n)=>{"use strict";n(86368),n(29309)},122:(e,t,n)=>{"use strict";var i=n(46518),r=n(44576),o=n(91955),a=n(79306),s=n(22812),l=n(79039),u=n(43724);i({global:!0,enumerable:!0,dontCallGetSet:!0,forced:l((function(){return u&&1!==Object.getOwnPropertyDescriptor(r,"queueMicrotask").value.length}))},{queueMicrotask:function(e){s(arguments.length,1),o(a(e))}})},13611:(e,t,n)=>{"use strict";var i=n(46518),r=n(44576),o=n(62106),a=n(43724),s=TypeError,l=Object.defineProperty,u=r.self!==r;try{if(a){var c=Object.getOwnPropertyDescriptor(r,"self");!u&&c&&c.get&&c.enumerable||o(r,"self",{get:function(){return r},set:function(e){if(this!==r)throw new s("Illegal invocation");l(r,"self",{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else i({global:!0,simple:!0,forced:u},{self:r})}catch(e){}},29309:(e,t,n)=>{"use strict";var i=n(46518),r=n(44576),o=n(59225).set,a=n(79472),s=r.setImmediate?a(o,!1):o;i({global:!0,bind:!0,enumerable:!0,forced:r.setImmediate!==s},{setImmediate:s})},15575:(e,t,n)=>{"use strict";var i=n(46518),r=n(44576),o=n(79472)(r.setInterval,!0);i({global:!0,bind:!0,forced:r.setInterval!==o},{setInterval:o})},24599:(e,t,n)=>{"use strict";var i=n(46518),r=n(44576),o=n(79472)(r.setTimeout,!0);i({global:!0,bind:!0,forced:r.setTimeout!==o},{setTimeout:o})},71678:(e,t,n)=>{"use strict";var i,r=n(96395),o=n(46518),a=n(44576),s=n(97751),l=n(79504),u=n(79039),c=n(33392),d=n(94901),h=n(33517),p=n(64117),f=n(20034),_=n(10757),g=n(72652),b=n(28551),m=n(36955),v=n(39297),y=n(97040),k=n(66699),x=n(26198),w=n(22812),E=n(61034),S=n(72248),C=n(94402),T=n(38469),A=n(94483),I=n(24659),O=n(1548),D=a.Object,$=a.Array,N=a.Date,M=a.Error,L=a.TypeError,P=a.PerformanceMark,R=s("DOMException"),j=S.Map,H=S.has,B=S.get,V=S.set,U=C.Set,F=C.add,z=C.has,G=s("Object","keys"),W=l([].push),q=l((!0).valueOf),K=l(1..valueOf),Y=l("".valueOf),J=l(N.prototype.getTime),Z=c("structuredClone"),X="DataCloneError",Q="Transferring",ee=function(e){return!u((function(){var t=new a.Set([7]),n=e(t),i=e(D(7));return n===t||!n.has(7)||!f(i)||7!=+i}))&&e},te=function(e,t){return!u((function(){var n=new t,i=e({a:n,b:n});return!(i&&i.a===i.b&&i.a instanceof t&&i.a.stack===n.stack)}))},ne=a.structuredClone,ie=r||!te(ne,M)||!te(ne,R)||(i=ne,!!u((function(){var e=i(new a.AggregateError([1],Z,{cause:3}));return"AggregateError"!==e.name||1!==e.errors[0]||e.message!==Z||3!==e.cause}))),re=!ne&&ee((function(e){return new P(Z,{detail:e}).detail})),oe=ee(ne)||re,ae=function(e){throw new R("Uncloneable type: "+e,X)},se=function(e,t){throw new R((t||"Cloning")+" of "+e+" cannot be properly polyfilled in this engine",X)},le=function(e,t){return oe||se(t),oe(e)},ue=function(e,t,n){if(H(t,e))return B(t,e);var i,r,o,s,l,u;if("SharedArrayBuffer"===(n||m(e)))i=oe?oe(e):e;else{var c=a.DataView;c||d(e.slice)||se("ArrayBuffer");try{if(d(e.slice)&&!e.resizable)i=e.slice(0);else{r=e.byteLength,o="maxByteLength"in e?{maxByteLength:e.maxByteLength}:void 0,i=new ArrayBuffer(r,o),s=new c(e),l=new c(i);for(u=0;u<r;u++)l.setUint8(u,s.getUint8(u))}}catch(e){throw new R("ArrayBuffer is detached",X)}}return V(t,e,i),i},ce=function(e,t){if(_(e)&&ae("Symbol"),!f(e))return e;if(t){if(H(t,e))return B(t,e)}else t=new j;var n,i,r,o,l,u,c,h,p=m(e);switch(p){case"Array":r=$(x(e));break;case"Object":r={};break;case"Map":r=new j;break;case"Set":r=new U;break;case"RegExp":r=new RegExp(e.source,E(e));break;case"Error":switch(i=e.name){case"AggregateError":r=new(s(i))([]);break;case"EvalError":case"RangeError":case"ReferenceError":case"SuppressedError":case"SyntaxError":case"TypeError":case"URIError":r=new(s(i));break;case"CompileError":case"LinkError":case"RuntimeError":r=new(s("WebAssembly",i));break;default:r=new M}break;case"DOMException":r=new R(e.message,e.name);break;case"ArrayBuffer":case"SharedArrayBuffer":r=ue(e,t,p);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":u="DataView"===p?e.byteLength:e.length,r=function(e,t,n,i,r){var o=a[t];return f(o)||se(t),new o(ue(e.buffer,r),n,i)}(e,p,e.byteOffset,u,t);break;case"DOMQuad":try{r=new DOMQuad(ce(e.p1,t),ce(e.p2,t),ce(e.p3,t),ce(e.p4,t))}catch(t){r=le(e,p)}break;case"File":if(oe)try{r=oe(e),m(r)!==p&&(r=void 0)}catch(e){}if(!r)try{r=new File([e],e.name,e)}catch(e){}r||se(p);break;case"FileList":if(o=function(){var e;try{e=new a.DataTransfer}catch(t){try{e=new a.ClipboardEvent("").clipboardData}catch(e){}}return e&&e.items&&e.files?e:null}()){for(l=0,u=x(e);l<u;l++)o.items.add(ce(e[l],t));r=o.files}else r=le(e,p);break;case"ImageData":try{r=new ImageData(ce(e.data,t),e.width,e.height,{colorSpace:e.colorSpace})}catch(t){r=le(e,p)}break;default:if(oe)r=oe(e);else switch(p){case"BigInt":r=D(e.valueOf());break;case"Boolean":r=D(q(e));break;case"Number":r=D(K(e));break;case"String":r=D(Y(e));break;case"Date":r=new N(J(e));break;case"Blob":try{r=e.slice(0,e.size,e.type)}catch(e){se(p)}break;case"DOMPoint":case"DOMPointReadOnly":n=a[p];try{r=n.fromPoint?n.fromPoint(e):new n(e.x,e.y,e.z,e.w)}catch(e){se(p)}break;case"DOMRect":case"DOMRectReadOnly":n=a[p];try{r=n.fromRect?n.fromRect(e):new n(e.x,e.y,e.width,e.height)}catch(e){se(p)}break;case"DOMMatrix":case"DOMMatrixReadOnly":n=a[p];try{r=n.fromMatrix?n.fromMatrix(e):new n(e)}catch(e){se(p)}break;case"AudioData":case"VideoFrame":d(e.clone)||se(p);try{r=e.clone()}catch(e){ae(p)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":se(p);default:ae(p)}}switch(V(t,e,r),p){case"Array":case"Object":for(c=G(e),l=0,u=x(c);l<u;l++)h=c[l],y(r,h,ce(e[h],t));break;case"Map":e.forEach((function(e,n){V(r,ce(n,t),ce(e,t))}));break;case"Set":e.forEach((function(e){F(r,ce(e,t))}));break;case"Error":k(r,"message",ce(e.message,t)),v(e,"cause")&&k(r,"cause",ce(e.cause,t)),"AggregateError"===i?r.errors=ce(e.errors,t):"SuppressedError"===i&&(r.error=ce(e.error,t),r.suppressed=ce(e.suppressed,t));case"DOMException":I&&k(r,"stack",ce(e.stack,t))}return r};o({global:!0,enumerable:!0,sham:!O,forced:ie},{structuredClone:function(e){var t,n,i=w(arguments.length,1)>1&&!p(arguments[1])?b(arguments[1]):void 0,r=i?i.transfer:void 0;void 0!==r&&(n=function(e,t){if(!f(e))throw new L("Transfer option cannot be converted to a sequence");var n=[];g(e,(function(e){W(n,b(e))}));for(var i,r,o,s,l,u=0,c=x(n),p=new U;u<c;){if(i=n[u++],"ArrayBuffer"===(r=m(i))?z(p,i):H(t,i))throw new R("Duplicate transferable",X);if("ArrayBuffer"!==r){if(O)s=ne(i,{transfer:[i]});else switch(r){case"ImageBitmap":o=a.OffscreenCanvas,h(o)||se(r,Q);try{(l=new o(i.width,i.height)).getContext("bitmaprenderer").transferFromImageBitmap(i),s=l.transferToImageBitmap()}catch(e){}break;case"AudioData":case"VideoFrame":d(i.clone)&&d(i.close)||se(r,Q);try{s=i.clone(),i.close()}catch(e){}break;case"MediaSourceHandle":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":se(r,Q)}if(void 0===s)throw new R("This object cannot be transferred: "+r,X);V(t,i,s)}else F(p,i)}return p}(r,t=new j));var o=ce(e,t);return n&&function(e){T(e,(function(e){O?oe(e,{transfer:[e]}):d(e.transfer)?e.transfer():A?A(e):se("ArrayBuffer",Q)}))}(n),o}})},76031:(e,t,n)=>{"use strict";n(15575),n(24599)},98406:(e,t,n)=>{"use strict";n(23792),n(27337);var i=n(46518),r=n(44576),o=n(93389),a=n(97751),s=n(69565),l=n(79504),u=n(43724),c=n(67416),d=n(36840),h=n(62106),p=n(56279),f=n(10687),_=n(33994),g=n(91181),b=n(90679),m=n(94901),v=n(39297),y=n(76080),k=n(36955),x=n(28551),w=n(20034),E=n(655),S=n(2360),C=n(6980),T=n(70081),A=n(50851),I=n(62529),O=n(22812),D=n(78227),$=n(74488),N=D("iterator"),M="URLSearchParams",L=M+"Iterator",P=g.set,R=g.getterFor(M),j=g.getterFor(L),H=o("fetch"),B=o("Request"),V=o("Headers"),U=B&&B.prototype,F=V&&V.prototype,z=r.TypeError,G=r.encodeURIComponent,W=String.fromCharCode,q=a("String","fromCodePoint"),K=parseInt,Y=l("".charAt),J=l([].join),Z=l([].push),X=l("".replace),Q=l([].shift),ee=l([].splice),te=l("".split),ne=l("".slice),ie=l(/./.exec),re=/\+/g,oe=/^[0-9a-f]+$/i,ae=function(e,t){var n=ne(e,t,t+2);return ie(oe,n)?K(n,16):NaN},se=function(e){for(var t=0,n=128;n>0&&0!=(e&n);n>>=1)t++;return t},le=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},ue=function(e){for(var t=(e=X(e,re," ")).length,n="",i=0;i<t;){var r=Y(e,i);if("%"===r){if("%"===Y(e,i+1)||i+3>t){n+="%",i++;continue}var o=ae(e,i+1);if(o!=o){n+=r,i++;continue}i+=2;var a=se(o);if(0===a)r=W(o);else{if(1===a||a>4){n+="<22>",i++;continue}for(var s=[o],l=1;l<a&&!(3+ ++i>t||"%"!==Y(e,i));){var u=ae(e,i+1);if(u!=u){i+=3;break}if(u>191||u<128)break;Z(s,u),i+=2,l++}if(s.length!==a){n+="<22>";continue}var c=le(s);null===c?n+="<22>":r=q(c)}}n+=r,i++}return n},ce=/[!'()~]|%20/g,de={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},he=function(e){return de[e]},pe=function(e){return X(G(e),ce,he)},fe=_((function(e,t){P(this,{type:L,target:R(e).entries,index:0,kind:t})}),M,(function(){var e=j(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,I(void 0,!0);var i=t[n];switch(e.kind){case"keys":return I(i.key,!1);case"values":return I(i.value,!1)}return I([i.key,i.value],!1)}),!0),_e=function(e){this.entries=[],this.url=null,void 0!==e&&(w(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Y(e,0)?ne(e,1):e:E(e)))};_e.prototype={type:M,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,i,r,o,a,l,u=this.entries,c=A(e);if(c)for(n=(t=T(e,c)).next;!(i=s(n,t)).done;){if(o=(r=T(x(i.value))).next,(a=s(o,r)).done||(l=s(o,r)).done||!s(o,r).done)throw new z("Expected sequence with length 2");Z(u,{key:E(a.value),value:E(l.value)})}else for(var d in e)v(e,d)&&Z(u,{key:d,value:E(e[d])})},parseQuery:function(e){if(e)for(var t,n,i=this.entries,r=te(e,"&"),o=0;o<r.length;)(t=r[o++]).length&&(n=te(t,"="),Z(i,{key:ue(Q(n)),value:ue(J(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],i=0;i<t.length;)e=t[i++],Z(n,pe(e.key)+"="+pe(e.value));return J(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ge=function(){b(this,be);var e=P(this,new _e(arguments.length>0?arguments[0]:void 0));u||(this.size=e.entries.length)},be=ge.prototype;if(p(be,{append:function(e,t){var n=R(this);O(arguments.length,2),Z(n.entries,{key:E(e),value:E(t)}),u||this.length++,n.updateURL()},delete:function(e){for(var t=R(this),n=O(arguments.length,1),i=t.entries,r=E(e),o=n<2?void 0:arguments[1],a=void 0===o?o:E(o),s=0;s<i.length;){var l=i[s];if(l.key!==r||void 0!==a&&l.value!==a)s++;else if(ee(i,s,1),void 0!==a)break}u||(this.size=i.length),t.updateURL()},get:function(e){var t=R(this).entries;O(arguments.length,1);for(var n=E(e),i=0;i<t.length;i++)if(t[i].key===n)return t[i].value;return null},getAll:function(e){var t=R(this).entries;O(arguments.length,1);for(var n=E(e),i=[],r=0;r<t.length;r++)t[r].key===n&&Z(i,t[r].value);return i},has:function(e){for(var t=R(this).entries,n=O(arguments.length,1),i=E(e),r=n<2?void 0:arguments[1],o=void 0===r?r:E(r),a=0;a<t.length;){var s=t[a++];if(s.key===i&&(void 0===o||s.value===o))return!0}return!1},set:function(e,t){var n=R(this);O(arguments.length,1);for(var i,r=n.entries,o=!1,a=E(e),s=E(t),l=0;l<r.length;l++)(i=r[l]).key===a&&(o?ee(r,l--,1):(o=!0,i.value=s));o||Z(r,{key:a,value:s}),u||(this.size=r.length),n.updateURL()},sort:function(){var e=R(this);$(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=R(this).entries,i=y(e,arguments.length>1?arguments[1]:void 0),r=0;r<n.length;)i((t=n[r++]).value,t.key,this)},keys:function(){return new fe(this,"keys")},values:function(){return new fe(this,"values")},entries:function(){return new fe(this,"entries")}},{enumerable:!0}),d(be,N,be.entries,{name:"entries"}),d(be,"toString",(function(){return R(this).serialize()}),{enumerable:!0}),u&&h(be,"size",{get:function(){return R(this).entries.length},configurable:!0,enumerable:!0}),f(ge,M),i({global:!0,constructor:!0,forced:!c},{URLSearchParams:ge}),!c&&m(V)){var me=l(F.has),ve=l(F.set),ye=function(e){if(w(e)){var t,n=e.body;if(k(n)===M)return t=e.headers?new V(e.headers):new V,me(t,"content-type")||ve(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),S(e,{body:C(0,E(n)),headers:C(0,t)})}return e};if(m(H)&&i({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return H(e,arguments.length>1?ye(arguments[1]):{})}}),m(B)){var ke=function(e){return b(this,U),new B(e,arguments.length>1?ye(arguments[1]):{})};U.constructor=ke,ke.prototype=U,i({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ke})}}e.exports={URLSearchParams:ge,getState:R}},14603:(e,t,n)=>{"use strict";var i=n(36840),r=n(79504),o=n(655),a=n(22812),s=URLSearchParams,l=s.prototype,u=r(l.append),c=r(l.delete),d=r(l.forEach),h=r([].push),p=new s("a=1&a=2&b=3");p.delete("a",1),p.delete("b",void 0),p+""!="a=2"&&i(l,"delete",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return c(this,e);var i=[];d(this,(function(e,t){h(i,{key:t,value:e})})),a(t,1);for(var r,s=o(e),l=o(n),p=0,f=0,_=!1,g=i.length;p<g;)r=i[p++],_||r.key===s?(_=!0,c(this,r.key)):f++;for(;f<g;)(r=i[f++]).key===s&&r.value===l||u(this,r.key,r.value)}),{enumerable:!0,unsafe:!0})},47566:(e,t,n)=>{"use strict";var i=n(36840),r=n(79504),o=n(655),a=n(22812),s=URLSearchParams,l=s.prototype,u=r(l.getAll),c=r(l.has),d=new s("a=1");!d.has("a",2)&&d.has("a",void 0)||i(l,"has",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return c(this,e);var i=u(this,e);a(t,1);for(var r=o(n),s=0;s<i.length;)if(i[s++]===r)return!0;return!1}),{enumerable:!0,unsafe:!0})},48408:(e,t,n)=>{"use strict";n(98406)},98721:(e,t,n)=>{"use strict";var i=n(43724),r=n(79504),o=n(62106),a=URLSearchParams.prototype,s=r(a.forEach);i&&!("size"in a)&&o(a,"size",{get:function(){var e=0;return s(this,(function(){e++})),e},configurable:!0,enumerable:!0})},2222:(e,t,n)=>{"use strict";var i=n(46518),r=n(97751),o=n(79039),a=n(22812),s=n(655),l=n(67416),u=r("URL"),c=l&&o((function(){u.canParse()})),d=o((function(){return 1!==u.canParse.length}));i({target:"URL",stat:!0,forced:!c||d},{canParse:function(e){var t=a(arguments.length,1),n=s(e),i=t<2||void 0===arguments[1]?void 0:s(arguments[1]);try{return!!new u(n,i)}catch(e){return!1}}})},45806:(e,t,n)=>{"use strict";n(47764);var i,r=n(46518),o=n(43724),a=n(67416),s=n(44576),l=n(76080),u=n(79504),c=n(36840),d=n(62106),h=n(90679),p=n(39297),f=n(44213),_=n(97916),g=n(67680),b=n(68183).codeAt,m=n(3717),v=n(655),y=n(10687),k=n(22812),x=n(98406),w=n(91181),E=w.set,S=w.getterFor("URL"),C=x.URLSearchParams,T=x.getState,A=s.URL,I=s.TypeError,O=s.parseInt,D=Math.floor,$=Math.pow,N=u("".charAt),M=u(/./.exec),L=u([].join),P=u(1..toString),R=u([].pop),j=u([].push),H=u("".replace),B=u([].shift),V=u("".split),U=u("".slice),F=u("".toLowerCase),z=u([].unshift),G="Invalid scheme",W="Invalid host",q="Invalid port",K=/[a-z]/i,Y=/[\d+-.a-z]/i,J=/\d/,Z=/^0x/i,X=/^[0-7]+$/,Q=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,ie=/^[\u0000-\u0020]+/,re=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,oe=/[\t\n\r]/g,ae=function(e){var t,n,i,r;if("number"==typeof e){for(t=[],n=0;n<4;n++)z(t,e%256),e=D(e/256);return L(t,".")}if("object"==typeof e){for(t="",i=function(e){for(var t=null,n=1,i=null,r=0,o=0;o<8;o++)0!==e[o]?(r>n&&(t=i,n=r),i=null,r=0):(null===i&&(i=o),++r);return r>n?i:t}(e),n=0;n<8;n++)r&&0===e[n]||(r&&(r=!1),i===n?(t+=n?":":"::",r=!0):(t+=P(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},se={},le=f({},se,{" ":1,'"':1,"<":1,">":1,"`":1}),ue=f({},le,{"#":1,"?":1,"{":1,"}":1}),ce=f({},ue,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),de=function(e,t){var n=b(e,0);return n>32&&n<127&&!p(t,e)?e:encodeURIComponent(e)},he={ftp:21,file:null,http:80,https:443,ws:80,wss:443},pe=function(e,t){var n;return 2===e.length&&M(K,N(e,0))&&(":"===(n=N(e,1))||!t&&"|"===n)},fe=function(e){var t;return e.length>1&&pe(U(e,0,2))&&(2===e.length||"/"===(t=N(e,2))||"\\"===t||"?"===t||"#"===t)},_e=function(e){return"."===e||"%2e"===F(e)},ge={},be={},me={},ve={},ye={},ke={},xe={},we={},Ee={},Se={},Ce={},Te={},Ae={},Ie={},Oe={},De={},$e={},Ne={},Me={},Le={},Pe={},Re=function(e,t,n){var i,r,o,a=v(e);if(t){if(r=this.parse(a))throw new I(r);this.searchParams=null}else{if(void 0!==n&&(i=new Re(n,!0)),r=this.parse(a,null,i))throw new I(r);(o=T(new C)).bindURL(this),this.searchParams=o}};Re.prototype={type:"URL",parse:function(e,t,n){var r,o,a,s,l,u=this,c=t||ge,d=0,h="",f=!1,b=!1,m=!1;for(e=v(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=H(e,ie,""),e=H(e,re,"$1")),e=H(e,oe,""),r=_(e);d<=r.length;){switch(o=r[d],c){case ge:if(!o||!M(K,o)){if(t)return G;c=me;continue}h+=F(o),c=be;break;case be:if(o&&(M(Y,o)||"+"===o||"-"===o||"."===o))h+=F(o);else{if(":"!==o){if(t)return G;h="",c=me,d=0;continue}if(t&&(u.isSpecial()!==p(he,h)||"file"===h&&(u.includesCredentials()||null!==u.port)||"file"===u.scheme&&!u.host))return;if(u.scheme=h,t)return void(u.isSpecial()&&he[u.scheme]===u.port&&(u.port=null));h="","file"===u.scheme?c=Ie:u.isSpecial()&&n&&n.scheme===u.scheme?c=ve:u.isSpecial()?c=we:"/"===r[d+1]?(c=ye,d++):(u.cannotBeABaseURL=!0,j(u.path,""),c=Me)}break;case me:if(!n||n.cannotBeABaseURL&&"#"!==o)return G;if(n.cannotBeABaseURL&&"#"===o){u.scheme=n.scheme,u.path=g(n.path),u.query=n.query,u.fragment="",u.cannotBeABaseURL=!0,c=Pe;break}c="file"===n.scheme?Ie:ke;continue;case ve:if("/"!==o||"/"!==r[d+1]){c=ke;continue}c=Ee,d++;break;case ye:if("/"===o){c=Se;break}c=Ne;continue;case ke:if(u.scheme=n.scheme,o===i)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=g(n.path),u.query=n.query;else if("/"===o||"\\"===o&&u.isSpecial())c=xe;else if("?"===o)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=g(n.path),u.query="",c=Le;else{if("#"!==o){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=g(n.path),u.path.length--,c=Ne;continue}u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=g(n.path),u.query=n.query,u.fragment="",c=Pe}break;case xe:if(!u.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,c=Ne;continue}c=Se}else c=Ee;break;case we:if(c=Ee,"/"!==o||"/"!==N(h,d+1))continue;d++;break;case Ee:if("/"!==o&&"\\"!==o){c=Se;continue}break;case Se:if("@"===o){f&&(h="%40"+h),f=!0,a=_(h);for(var y=0;y<a.length;y++){var k=a[y];if(":"!==k||m){var x=de(k,ce);m?u.password+=x:u.username+=x}else m=!0}h=""}else if(o===i||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()){if(f&&""===h)return"Invalid authority";d-=_(h).length+1,h="",c=Ce}else h+=o;break;case Ce:case Te:if(t&&"file"===u.scheme){c=De;continue}if(":"!==o||b){if(o===i||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()){if(u.isSpecial()&&""===h)return W;if(t&&""===h&&(u.includesCredentials()||null!==u.port))return;if(s=u.parseHost(h))return s;if(h="",c=$e,t)return;continue}"["===o?b=!0:"]"===o&&(b=!1),h+=o}else{if(""===h)return W;if(s=u.parseHost(h))return s;if(h="",c=Ae,t===Te)return}break;case Ae:if(!M(J,o)){if(o===i||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()||t){if(""!==h){var w=O(h,10);if(w>65535)return q;u.port=u.isSpecial()&&w===he[u.scheme]?null:w,h=""}if(t)return;c=$e;continue}return q}h+=o;break;case Ie:if(u.scheme="file","/"===o||"\\"===o)c=Oe;else{if(!n||"file"!==n.scheme){c=Ne;continue}switch(o){case i:u.host=n.host,u.path=g(n.path),u.query=n.query;break;case"?":u.host=n.host,u.path=g(n.path),u.query="",c=Le;break;case"#":u.host=n.host,u.path=g(n.path),u.query=n.query,u.fragment="",c=Pe;break;default:fe(L(g(r,d),""))||(u.host=n.host,u.path=g(n.path),u.shortenPath()),c=Ne;continue}}break;case Oe:if("/"===o||"\\"===o){c=De;break}n&&"file"===n.scheme&&!fe(L(g(r,d),""))&&(pe(n.path[0],!0)?j(u.path,n.path[0]):u.host=n.host),c=Ne;continue;case De:if(o===i||"/"===o||"\\"===o||"?"===o||"#"===o){if(!t&&pe(h))c=Ne;else if(""===h){if(u.host="",t)return;c=$e}else{if(s=u.parseHost(h))return s;if("localhost"===u.host&&(u.host=""),t)return;h="",c=$e}continue}h+=o;break;case $e:if(u.isSpecial()){if(c=Ne,"/"!==o&&"\\"!==o)continue}else if(t||"?"!==o)if(t||"#"!==o){if(o!==i&&(c=Ne,"/"!==o))continue}else u.fragment="",c=Pe;else u.query="",c=Le;break;case Ne:if(o===i||"/"===o||"\\"===o&&u.isSpecial()||!t&&("?"===o||"#"===o)){if(".."===(l=F(l=h))||"%2e."===l||".%2e"===l||"%2e%2e"===l?(u.shortenPath(),"/"===o||"\\"===o&&u.isSpecial()||j(u.path,"")):_e(h)?"/"===o||"\\"===o&&u.isSpecial()||j(u.path,""):("file"===u.scheme&&!u.path.length&&pe(h)&&(u.host&&(u.host=""),h=N(h,0)+":"),j(u.path,h)),h="","file"===u.scheme&&(o===i||"?"===o||"#"===o))for(;u.path.length>1&&""===u.path[0];)B(u.path);"?"===o?(u.query="",c=Le):"#"===o&&(u.fragment="",c=Pe)}else h+=de(o,ue);break;case Me:"?"===o?(u.query="",c=Le):"#"===o?(u.fragment="",c=Pe):o!==i&&(u.path[0]+=de(o,se));break;case Le:t||"#"!==o?o!==i&&("'"===o&&u.isSpecial()?u.query+="%27":u.query+="#"===o?"%23":de(o,se)):(u.fragment="",c=Pe);break;case Pe:o!==i&&(u.fragment+=de(o,le))}d++}},parseHost:function(e){var t,n,i;if("["===N(e,0)){if("]"!==N(e,e.length-1))return W;if(t=function(e){var t,n,i,r,o,a,s,l=[0,0,0,0,0,0,0,0],u=0,c=null,d=0,h=function(){return N(e,d)};if(":"===h()){if(":"!==N(e,1))return;d+=2,c=++u}for(;h();){if(8===u)return;if(":"!==h()){for(t=n=0;n<4&&M(ee,h());)t=16*t+O(h(),16),d++,n++;if("."===h()){if(0===n)return;if(d-=n,u>6)return;for(i=0;h();){if(r=null,i>0){if(!("."===h()&&i<4))return;d++}if(!M(J,h()))return;for(;M(J,h());){if(o=O(h(),10),null===r)r=o;else{if(0===r)return;r=10*r+o}if(r>255)return;d++}l[u]=256*l[u]+r,2!=++i&&4!==i||u++}if(4!==i)return;break}if(":"===h()){if(d++,!h())return}else if(h())return;l[u++]=t}else{if(null!==c)return;d++,c=++u}}if(null!==c)for(a=u-c,u=7;0!==u&&a>0;)s=l[u],l[u--]=l[c+a-1],l[c+--a]=s;else if(8!==u)return;return l}(U(e,1,-1)),!t)return W;this.host=t}else if(this.isSpecial()){if(e=m(e),M(te,e))return W;if(t=function(e){var t,n,i,r,o,a,s,l=V(e,".");if(l.length&&""===l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(n=[],i=0;i<t;i++){if(""===(r=l[i]))return e;if(o=10,r.length>1&&"0"===N(r,0)&&(o=M(Z,r)?16:8,r=U(r,8===o?1:2)),""===r)a=0;else{if(!M(10===o?Q:8===o?X:ee,r))return e;a=O(r,o)}j(n,a)}for(i=0;i<t;i++)if(a=n[i],i===t-1){if(a>=$(256,5-t))return null}else if(a>255)return null;for(s=R(n),i=0;i<n.length;i++)s+=n[i]*$(256,3-i);return s}(e),null===t)return W;this.host=t}else{if(M(ne,e))return W;for(t="",n=_(e),i=0;i<n.length;i++)t+=de(n[i],se);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return p(he,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&pe(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,i=e.password,r=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,u=t+":";return null!==r?(u+="//",e.includesCredentials()&&(u+=n+(i?":"+i:"")+"@"),u+=ae(r),null!==o&&(u+=":"+o)):"file"===t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+L(a,"/"):"",null!==s&&(u+="?"+s),null!==l&&(u+="#"+l),u},setHref:function(e){var t=this.parse(e);if(t)throw new I(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new je(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+ae(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(v(e)+":",ge)},getUsername:function(){return this.username},setUsername:function(e){var t=_(v(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=de(t[n],ce)}},getPassword:function(){return this.password},setPassword:function(e){var t=_(v(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=de(t[n],ce)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ae(e):ae(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Ce)},getHostname:function(){var e=this.host;return null===e?"":ae(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Te)},getPort:function(){var e=this.port;return null===e?"":v(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=v(e))?this.port=null:this.parse(e,Ae))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+L(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,$e))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=v(e))?this.query=null:("?"===N(e,0)&&(e=U(e,1)),this.query="",this.parse(e,Le)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=v(e))?("#"===N(e,0)&&(e=U(e,1)),this.fragment="",this.parse(e,Pe)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var je=function(e){var t=h(this,He),n=k(arguments.length,1)>1?arguments[1]:void 0,i=E(t,new Re(e,!1,n));o||(t.href=i.serialize(),t.origin=i.getOrigin(),t.protocol=i.getProtocol(),t.username=i.getUsername(),t.password=i.getPassword(),t.host=i.getHost(),t.hostname=i.getHostname(),t.port=i.getPort(),t.pathname=i.getPathname(),t.search=i.getSearch(),t.searchParams=i.getSearchParams(),t.hash=i.getHash())},He=je.prototype,Be=function(e,t){return{get:function(){return S(this)[e]()},set:t&&function(e){return S(this)[t](e)},configurable:!0,enumerable:!0}};if(o&&(d(He,"href",Be("serialize","setHref")),d(He,"origin",Be("getOrigin")),d(He,"protocol",Be("getProtocol","setProtocol")),d(He,"username",Be("getUsername","setUsername")),d(He,"password",Be("getPassword","setPassword")),d(He,"host",Be("getHost","setHost")),d(He,"hostname",Be("getHostname","setHostname")),d(He,"port",Be("getPort","setPort")),d(He,"pathname",Be("getPathname","setPathname")),d(He,"search",Be("getSearch","setSearch")),d(He,"searchParams",Be("getSearchParams")),d(He,"hash",Be("getHash","setHash"))),c(He,"toJSON",(function(){return S(this).serialize()}),{enumerable:!0}),c(He,"toString",(function(){return S(this).serialize()}),{enumerable:!0}),A){var Ve=A.createObjectURL,Ue=A.revokeObjectURL;Ve&&c(je,"createObjectURL",l(Ve,A)),Ue&&c(je,"revokeObjectURL",l(Ue,A))}y(je,"URL"),r({global:!0,constructor:!0,forced:!a,sham:!o},{URL:je})},3296:(e,t,n)=>{"use strict";n(45806)},45781:(e,t,n)=>{"use strict";var i=n(46518),r=n(97751),o=n(22812),a=n(655),s=n(67416),l=r("URL");i({target:"URL",stat:!0,forced:!s},{parse:function(e){var t=o(arguments.length,1),n=a(e),i=t<2||void 0===arguments[1]?void 0:a(arguments[1]);try{return new l(n,i)}catch(e){return null}}})},27208:(e,t,n)=>{"use strict";var i=n(46518),r=n(69565);i({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return r(URL.prototype.toString,this)}})},84315:(e,t,n)=>{"use strict";n(52675),n(89463),n(66412),n(60193),n(92168),n(2259),n(86964),n(83142),n(83237),n(61833),n(67947),n(31073),n(45700),n(78125),n(20326),n(16280),n(76918),n(30067),n(4294),n(18107),n(28706),n(26835),n(88431),n(33771),n(2008),n(50113),n(48980),n(10838),n(13451),n(46449),n(78350),n(51629),n(23418),n(74423),n(25276),n(64346),n(23792),n(48598),n(8921),n(62062),n(31051),n(44114),n(72712),n(18863),n(94490),n(34782),n(15086),n(26910),n(87478),n(54554),n(9678),n(57145),n(71658),n(93514),n(30237),n(13609),n(11558),n(54743),n(46761),n(11745),n(38309),n(16573),n(78100),n(77936),n(61699),n(59089),n(91191),n(93515),n(1688),n(60739),n(89572),n(23288),n(36456),n(94170),n(48957),n(62010),n(55081),n(33110),n(4731),n(36033),n(47072),n(93153),n(82326),n(36389),n(64444),n(8085),n(77762),n(65070),n(60605),n(39469),n(72152),n(75376),n(56624),n(11367),n(5914),n(78553),n(98690),n(60479),n(70761),n(2892),n(45374),n(25428),n(32637),n(40150),n(59149),n(64601),n(44435),n(87220),n(25843),n(62337),n(9868),n(80630),n(69085),n(59904),n(17427),n(67945),n(84185),n(87607),n(5506),n(52811),n(53921),n(83851),n(81278),n(1480),n(40875),n(77691),n(78347),n(29908),n(94052),n(94003),n(221),n(79432),n(9220),n(7904),n(93967),n(63548),n(93941),n(10287),n(26099),n(16034),n(78459),n(58940),n(3362),n(96167),n(93518),n(9391),n(14628),n(39796),n(60825),n(87411),n(21211),n(40888),n(9065),n(86565),n(32812),n(84634),n(71137),n(30985),n(34268),n(34873),n(15472),n(84864),n(57465),n(27495),n(69479),n(87745),n(90906),n(38781),n(31415),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698),n(67357),n(23860),n(99449),n(27337),n(21699),n(42043),n(47764),n(71761),n(28543),n(35701),n(68156),n(85906),n(42781),n(25440),n(79978),n(5746),n(90744),n(11392),n(50375),n(67438),n(42762),n(39202),n(43359),n(89907),n(11898),n(35490),n(5745),n(94298),n(60268),n(69546),n(20781),n(50778),n(89195),n(46276),n(48718),n(16308),n(34594),n(29833),n(46594),n(72107),n(95477),n(21489),n(22134),n(3690),n(61740),n(48140),n(81630),n(72170),n(75044),n(69539),n(31694),n(89955),n(21903),n(91134),n(33206),n(48345),n(44496),n(66651),n(12887),n(19369),n(66812),n(8995),n(52568),n(31575),n(36072),n(88747),n(28845),n(29423),n(57301),n(373),n(86614),n(41405),n(37467),n(44732),n(33684),n(79577),n(88267),n(73772),n(30958),n(2945),n(42207),n(23500),n(62953),n(55815),n(64979),n(79739),n(59848),n(122),n(13611),n(71678),n(76031),n(3296),n(2222),n(45781),n(27208),n(48408),n(14603),n(47566),n(98721),n(19167)}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var i={};return(()=>{"use strict";function e(e,n){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,n){if(e){if("string"==typeof e)return t(e,n);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?t(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){i&&(e=i);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==i.return||i.return()}finally{if(l)throw a}}}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,a(i.key),i)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}n.r(i),n.d(i,{Attachment:()=>br,BaseError:()=>tr,BaseLabel:()=>ir,BaseMobileError:()=>Jo,BaseMobileLabel:()=>Xo,Button:()=>yr,Checkbox:()=>wr,Combobox:()=>Cr,DatePicker:()=>Gr,DateTimePicker:()=>Jr,Dialog:()=>Qr,Dropdown:()=>no,FieldGroup:()=>ao,MobileButton:()=>Ko,MobileCheckbox:()=>ta,MobileDatePicker:()=>$a,MobileDateTimePicker:()=>Ba,MobileDropdown:()=>ra,MobileMultiChoice:()=>sa,MobileNotification:()=>va,MobileRadioButton:()=>ca,MobileText:()=>pa,MobileTextArea:()=>ga,MobileTimePicker:()=>Ra,MultiChoice:()=>uo,Notification:()=>po,RadioButton:()=>go,ReadOnlyTable:()=>ko,Spinner:()=>Eo,Table:()=>Oo,Tabs:()=>No,Text:()=>Po,TextArea:()=>Ho,TimePicker:()=>Uo,Tooltip:()=>Go,dev_info:()=>Ua,version:()=>Va}),n(84315),n(95012),n(35776);var s,l,u,c=globalThis,d=c.ShadowRoot&&(void 0===c.ShadyCSS||c.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,h=Symbol(),p=new WeakMap,f=function(){return function(e,t,n){return t&&o(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,i){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._$cssResult$=!0,i!==h)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=n}),[{key:"styleSheet",get:function(){var e=this.o,t=this.t;if(d&&void 0===e){var n=void 0!==t&&1===t.length;n&&(e=p.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&p.set(t,e))}return e}},{key:"toString",value:function(){return this.cssText}}])}(),_=function(t,n){if(d)t.adoptedStyleSheets=n.map((function(e){return e instanceof CSSStyleSheet?e:e.styleSheet}));else{var i,r=e(n);try{for(r.s();!(i=r.n()).done;){var o=i.value,a=document.createElement("style"),s=c.litNonce;void 0!==s&&a.setAttribute("nonce",s),a.textContent=o.cssText,t.appendChild(a)}}catch(e){r.e(e)}finally{r.f()}}},g=d?function(e){return e}:function(t){return t instanceof CSSStyleSheet?function(t){var n,i="",r=e(t.cssRules);try{for(r.s();!(n=r.n()).done;)i+=n.value.cssText}catch(e){r.e(e)}finally{r.f()}return function(e){return new f("string"==typeof e?e:e+"",void 0,h)}(i)}(t):t};function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function m(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||w(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){u=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return s}}(e,t)||w(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(){y=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var o=t&&t.prototype instanceof m?t:m,a=Object.create(o.prototype),s=new $(i||[]);return r(a,"_invoke",{value:A(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",p="suspendedYield",f="executing",_="completed",g={};function m(){}function v(){}function k(){}var x={};u(x,a,(function(){return this}));var w=Object.getPrototypeOf,E=w&&w(w(N([])));E&&E!==n&&i.call(E,a)&&(x=E);var S=k.prototype=m.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function n(r,o,a,s){var l=d(e[r],e,o);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==b(c)&&i.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;r(this,"_invoke",{value:function(e,i){function r(){return new t((function(t,r){n(e,i,t,r)}))}return o=o?o.then(r,r):r()}})}function A(t,n,i){var r=h;return function(o,a){if(r===f)throw Error("Generator is already running");if(r===_){if("throw"===o)throw a;return{value:e,done:!0}}for(i.method=o,i.arg=a;;){var s=i.delegate;if(s){var l=I(s,i);if(l){if(l===g)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===h)throw r=_,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=f;var u=d(t,n,i);if("normal"===u.type){if(r=i.done?_:p,u.arg===g)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(r=_,i.method="throw",i.arg=u.arg)}}}function I(t,n){var i=n.method,r=t.iterator[i];if(r===e)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=e,I(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var o=d(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function $(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(b(t)+" is not iterable")}return v.prototype=k,r(S,"constructor",{value:k,configurable:!0}),r(k,"constructor",{value:v,configurable:!0}),v.displayName=u(k,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,k):(e.__proto__=k,u(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},C(T.prototype),u(T.prototype,s,(function(){return this})),t.AsyncIterator=T,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new T(c(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(S),u(S,l,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},t.values=N,$.prototype={constructor:$,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(i,r){return s.type="throw",s.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;D(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:N(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}function k(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}function x(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=w(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function w(e,t){if(e){if("string"==typeof e)return E(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function S(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,C(i.key),i)}}function C(e){var t=function(e,t){if("object"!=b(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=b(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==b(t)?t:t+""}function T(e){var t="function"==typeof Map?new Map:void 0;return T=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(A())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var r=new(e.bind.apply(e,i));return n&&I(r,n.prototype),r}(e,arguments,O(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),I(n,e)},T(e)}function A(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(A=function(){return!!e})()}function I(e,t){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},I(e,t)}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}var D=Object.is,$=Object.defineProperty,N=Object.getOwnPropertyDescriptor,M=Object.getOwnPropertyNames,L=Object.getOwnPropertySymbols,P=Object.getPrototypeOf,R=globalThis,j=R.trustedTypes,H=j?j.emptyScript:"",B=R.reactiveElementPolyfillSupport,V=function(e,t){return e},U={toAttribute:function(e,t){switch(t){case Boolean:e=e?H:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute:function(e,t){var n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},F=function(e,t){return!D(e,t)},z={attribute:!0,type:String,converter:U,reflect:!1,hasChanged:F};null!==(s=Symbol.metadata)&&void 0!==s||(Symbol.metadata=Symbol("metadata")),null!==(l=R.litPropertyMetadata)&&void 0!==l||(R.litPropertyMetadata=new WeakMap);var G,W=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=O(t),function(e,t){if(t&&("object"==b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,A()?Reflect.construct(t,n||[],O(e).constructor):t.apply(e,n))}(this,t))._$Ep=void 0,e.isUpdatePending=!1,e.hasUpdated=!1,e._$Em=null,e._$Ev(),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&I(e,t)}(t,e),function(e,t,n){return t&&S(e.prototype,t),n&&S(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"_$Ev",value:function(){var e,t=this;this._$ES=new Promise((function(e){return t.enableUpdating=e})),this._$AL=new Map,this._$E_(),this.requestUpdate(),null===(e=this.constructor.l)||void 0===e||e.forEach((function(e){return e(t)}))}},{key:"addController",value:function(e){var t,n;(null!==(t=this._$EO)&&void 0!==t?t:this._$EO=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&(null===(n=e.hostConnected)||void 0===n||n.call(e))}},{key:"removeController",value:function(e){var t;null===(t=this._$EO)||void 0===t||t.delete(e)}},{key:"_$E_",value:function(){var e,t=new Map,n=x(this.constructor.elementProperties.keys());try{for(n.s();!(e=n.n()).done;){var i=e.value;this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i])}}catch(e){n.e(e)}finally{n.f()}t.size>0&&(this._$Ep=t)}},{key:"createRenderRoot",value:function(){var e,t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return _(t,this.constructor.elementStyles),t}},{key:"connectedCallback",value:function(){var e,t;null!==(e=this.renderRoot)&&void 0!==e||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$EO)||void 0===t||t.forEach((function(e){var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}},{key:"enableUpdating",value:function(e){}},{key:"disconnectedCallback",value:function(){var e;null===(e=this._$EO)||void 0===e||e.forEach((function(e){var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}},{key:"attributeChangedCallback",value:function(e,t,n){this._$AK(e,n)}},{key:"_$EC",value:function(e,t){var n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(void 0!==i&&!0===n.reflect){var r,o=(void 0!==(null===(r=n.converter)||void 0===r?void 0:r.toAttribute)?n.converter:U).toAttribute(t,n.type);this._$Em=e,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}},{key:"_$AK",value:function(e,t){var n=this.constructor,i=n._$Eh.get(e);if(void 0!==i&&this._$Em!==i){var r,o=n.getPropertyOptions(i),a="function"==typeof o.converter?{fromAttribute:o.converter}:void 0!==(null===(r=o.converter)||void 0===r?void 0:r.fromAttribute)?o.converter:U;this._$Em=i,this[i]=a.fromAttribute(t,o.type),this._$Em=null}}},{key:"requestUpdate",value:function(e,t,n){if(void 0!==e){var i,r;if(null!==(i=n)&&void 0!==i||(n=this.constructor.getPropertyOptions(e)),!(null!==(r=n.hasChanged)&&void 0!==r?r:F)(this[e],t))return;this.P(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}},{key:"P",value:function(e,t,n){var i;this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$Em!==e&&(null!==(i=this._$Ej)&&void 0!==i?i:this._$Ej=new Set).add(e)}},{key:"_$ET",value:(n=function(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(e){k(o,i,r,a,s,"next",e)}function s(e){k(o,i,r,a,s,"throw",e)}a(void 0)}))}}(y().mark((function e(){var t;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isUpdatePending=!0,e.prev=1,e.next=4,this._$ES;case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),Promise.reject(e.t0);case 9:if(t=this.scheduleUpdate(),e.t1=null!=t,!e.t1){e.next=14;break}return e.next=14,t;case 14:return e.abrupt("return",!this.isUpdatePending);case 15:case"end":return e.stop()}}),e,this,[[1,6]])}))),function(){return n.apply(this,arguments)})},{key:"scheduleUpdate",value:function(){return this.performUpdate()}},{key:"performUpdate",value:function(){if(this.isUpdatePending){if(!this.hasUpdated){var e;if(null!==(e=this.renderRoot)&&void 0!==e||(this.renderRoot=this.createRenderRoot()),this._$Ep){var t,n=x(this._$Ep);try{for(n.s();!(t=n.n()).done;){var i=v(t.value,2),r=i[0],o=i[1];this[r]=o}}catch(e){n.e(e)}finally{n.f()}this._$Ep=void 0}var a=this.constructor.elementProperties;if(a.size>0){var s,l=x(a);try{for(l.s();!(s=l.n()).done;){var u=v(s.value,2),c=u[0],d=u[1];!0!==d.wrapped||this._$AL.has(c)||void 0===this[c]||this.P(c,this[c],d)}}catch(e){l.e(e)}finally{l.f()}}}var h=!1,p=this._$AL;try{var f;(h=this.shouldUpdate(p))?(this.willUpdate(p),null!==(f=this._$EO)&&void 0!==f&&f.forEach((function(e){var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(p)):this._$EU()}catch(p){throw h=!1,this._$EU(),p}h&&this._$AE(p)}}},{key:"willUpdate",value:function(e){}},{key:"_$AE",value:function(e){var t;null!==(t=this._$EO)&&void 0!==t&&t.forEach((function(e){var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}},{key:"_$EU",value:function(){this._$AL=new Map,this.isUpdatePending=!1}},{key:"updateComplete",get:function(){return this.getUpdateComplete()}},{key:"getUpdateComplete",value:function(){return this._$ES}},{key:"shouldUpdate",value:function(e){return!0}},{key:"update",value:function(e){var t=this;this._$Ej&&(this._$Ej=this._$Ej.forEach((function(e){return t._$EC(e,t[e])}))),this._$EU()}},{key:"updated",value:function(e){}},{key:"firstUpdated",value:function(e){}}],[{key:"addInitializer",value:function(e){var t;this._$Ei(),(null!==(t=this.l)&&void 0!==t?t:this.l=[]).push(e)}},{key:"observedAttributes",get:function(){return this.finalize(),this._$Eh&&m(this._$Eh.keys())}},{key:"createProperty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z;if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){var n=Symbol(),i=this.getPropertyDescriptor(e,n,t);void 0!==i&&$(this.prototype,e,i)}}},{key:"getPropertyDescriptor",value:function(e,t,n){var i,r=null!==(i=N(this.prototype,e))&&void 0!==i?i:{get:function(){return this[t]},set:function(e){this[t]=e}},o=r.get,a=r.set;return{get:function(){return null==o?void 0:o.call(this)},set:function(t){var i=null==o?void 0:o.call(this);a.call(this,t),this.requestUpdate(e,i,n)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(e){var t;return null!==(t=this.elementProperties.get(e))&&void 0!==t?t:z}},{key:"_$Ei",value:function(){if(!this.hasOwnProperty(V("elementProperties"))){var e=P(this);e.finalize(),void 0!==e.l&&(this.l=m(e.l)),this.elementProperties=new Map(e.elementProperties)}}},{key:"finalize",value:function(){if(!this.hasOwnProperty(V("finalized"))){if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(V("properties"))){var e,t=this.properties,n=x([].concat(m(M(t)),m(L(t))));try{for(n.s();!(e=n.n()).done;){var i=e.value;this.createProperty(i,t[i])}}catch(e){n.e(e)}finally{n.f()}}var r=this[Symbol.metadata];if(null!==r){var o=litPropertyMetadata.get(r);if(void 0!==o){var a,s=x(o);try{for(s.s();!(a=s.n()).done;){var l=v(a.value,2),u=l[0],c=l[1];this.elementProperties.set(u,c)}}catch(e){s.e(e)}finally{s.f()}}}this._$Eh=new Map;var d,h=x(this.elementProperties);try{for(h.s();!(d=h.n()).done;){var p=v(d.value,2),f=p[0],_=p[1],g=this._$Eu(f,_);void 0!==g&&this._$Eh.set(g,f)}}catch(e){h.e(e)}finally{h.f()}this.elementStyles=this.finalizeStyles(this.styles)}}},{key:"finalizeStyles",value:function(e){var t=[];if(Array.isArray(e)){var n,i=x(new Set(e.flat(1/0).reverse()));try{for(i.s();!(n=i.n()).done;){var r=n.value;t.unshift(g(r))}}catch(e){i.e(e)}finally{i.f()}}else void 0!==e&&t.push(g(e));return t}},{key:"_$Eu",value:function(e,t){var n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}}]);var n}(T(HTMLElement));function q(e,t,n){return t=Y(t),function(e,t){if(t&&("object"==oe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,K()?Reflect.construct(t,n||[],Y(e).constructor):t.apply(e,n))}function K(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(K=function(){return!!e})()}function Y(e){return Y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Y(e)}function J(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Z(e,t)}function Z(e,t){return Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Z(e,t)}function X(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Q(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Q(e,t){if(e){if("string"==typeof e)return ee(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ee(e,t):void 0}}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function te(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ne(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,re(i.key),i)}}function ie(e,t,n){return t&&ne(e.prototype,t),n&&ne(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function re(e){var t=function(e,t){if("object"!=oe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=oe(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oe(t)?t:t+""}function oe(e){return oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oe(e)}W.elementStyles=[],W.shadowRootOptions={mode:"open"},W[V("elementProperties")]=new Map,W[V("finalized")]=new Map,null!=B&&B({ReactiveElement:W}),(null!==(u=R.reactiveElementVersions)&&void 0!==u?u:R.reactiveElementVersions=[]).push("2.0.4");var ae=globalThis,se=ae.trustedTypes,le=se?se.createPolicy("lit-html",{createHTML:function(e){return e}}):void 0,ue="$lit$",ce="lit$".concat(Math.random().toFixed(9).slice(2),"$"),de="?"+ce,he="<".concat(de,">"),pe=document,fe=function(){return pe.createComment("")},_e=function(e){return null===e||"object"!=oe(e)&&"function"!=typeof e},ge=Array.isArray,be="[ \t\n\f\r]",me=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ve=/-->/g,ye=/>/g,ke=RegExp(">|".concat(be,"(?:([^\\s\"'>=/]+)(").concat(be,"*=").concat(be,"*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)"),"g"),xe=/'/g,we=/"/g,Ee=/^(?:script|style|textarea|title)$/i,Se=function(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return{_$litType$:e,strings:t,values:i}}},Ce=(Se(1),Se(2),Se(3),Symbol.for("lit-noChange")),Te=Symbol.for("lit-nothing"),Ae=new WeakMap,Ie=pe.createTreeWalker(pe,129);function Oe(e,t){if(!ge(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==le?le.createHTML(t):t}var De=function(){return ie((function e(t,n){var i,r=t.strings,o=t._$litType$;te(this,e),this.parts=[];var a=0,s=0,l=r.length-1,u=this.parts,c=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){u=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return s}}(e,t)||Q(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(function(e,t){for(var n,i=e.length-1,r=[],o=2===t?"<svg>":3===t?"<math>":"",a=me,s=0;s<i;s++){for(var l=e[s],u=void 0,c=void 0,d=-1,h=0;h<l.length&&(a.lastIndex=h,null!==(c=a.exec(l)));){var p;h=a.lastIndex,a===me?"!--"===c[1]?a=ve:void 0!==c[1]?a=ye:void 0!==c[2]?(Ee.test(c[2])&&(n=RegExp("</"+c[2],"g")),a=ke):void 0!==c[3]&&(a=ke):a===ke?">"===c[0]?(a=null!==(p=n)&&void 0!==p?p:me,d=-1):void 0===c[1]?d=-2:(d=a.lastIndex-c[2].length,u=c[1],a=void 0===c[3]?ke:'"'===c[3]?we:xe):a===we||a===xe?a=ke:a===ve||a===ye?a=me:(a=ke,n=void 0)}var f=a===ke&&e[s+1].startsWith("/>")?" ":"";o+=a===me?l+he:d>=0?(r.push(u),l.slice(0,d)+ue+l.slice(d)+ce+f):l+ce+(-2===d?s:f)}return[Oe(e,o+(e[i]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),r]}(r,o),2),d=c[0],h=c[1];if(this.el=e.createElement(d,n),Ie.currentNode=this.el.content,2===o||3===o){var p=this.el.content.firstChild;p.replaceWith.apply(p,function(e){return function(e){if(Array.isArray(e))return ee(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Q(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(p.childNodes))}for(;null!==(i=Ie.nextNode())&&u.length<l;){if(1===i.nodeType){if(i.hasAttributes()){var f,_=X(i.getAttributeNames());try{for(_.s();!(f=_.n()).done;){var g=f.value;if(g.endsWith(ue)){var b=h[s++],m=i.getAttribute(g).split(ce),v=/([.?@])?(.*)/.exec(b);u.push({type:1,index:a,name:v[2],strings:m,ctor:"."===v[1]?Re:"?"===v[1]?je:"@"===v[1]?He:Pe}),i.removeAttribute(g)}else g.startsWith(ce)&&(u.push({type:6,index:a}),i.removeAttribute(g))}}catch(e){_.e(e)}finally{_.f()}}if(Ee.test(i.tagName)){var y=i.textContent.split(ce),k=y.length-1;if(k>0){i.textContent=se?se.emptyScript:"";for(var x=0;x<k;x++)i.append(y[x],fe()),Ie.nextNode(),u.push({type:2,index:++a});i.append(y[k],fe())}}}else if(8===i.nodeType)if(i.data===de)u.push({type:2,index:a});else for(var w=-1;-1!==(w=i.data.indexOf(ce,w+1));)u.push({type:7,index:a}),w+=ce.length-1;a++}}),null,[{key:"createElement",value:function(e,t){var n=pe.createElement("template");return n.innerHTML=e,n}}])}();function $e(e,t){var n,i,r,o,a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,l=arguments.length>3?arguments[3]:void 0;if(t===Ce)return t;var u=void 0!==l?null===(n=s.o)||void 0===n?void 0:n[l]:s.l,c=_e(t)?void 0:t._$litDirective$;return(null===(i=u)||void 0===i?void 0:i.constructor)!==c&&(null!==(r=u)&&void 0!==r&&null!==(o=r._$AO)&&void 0!==o&&o.call(r,!1),void 0===c?u=void 0:(u=new c(e))._$AT(e,s,l),void 0!==l?(null!==(a=s.o)&&void 0!==a?a:s.o=[])[l]=u:s.l=u),void 0!==u&&(t=$e(e,u._$AS(e,t.values),u,l)),t}var Ne,Me=function(){return ie((function e(t,n){te(this,e),this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=n}),[{key:"parentNode",get:function(){return this._$AM.parentNode}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"u",value:function(e){var t,n=this._$AD,i=n.el.content,r=n.parts,o=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:pe).importNode(i,!0);Ie.currentNode=o;for(var a=Ie.nextNode(),s=0,l=0,u=r[0];void 0!==u;){var c;if(s===u.index){var d=void 0;2===u.type?d=new Le(a,a.nextSibling,this,e):1===u.type?d=new u.ctor(a,u.name,u.strings,this,e):6===u.type&&(d=new Be(a,this,e)),this._$AV.push(d),u=r[++l]}s!==(null===(c=u)||void 0===c?void 0:c.index)&&(a=Ie.nextNode(),s++)}return Ie.currentNode=pe,o}},{key:"p",value:function(e){var t,n=0,i=X(this._$AV);try{for(i.s();!(t=i.n()).done;){var r=t.value;void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,n),n+=r.strings.length-2):r._$AI(e[n])),n++}}catch(e){i.e(e)}finally{i.f()}}}])}(),Le=function(){function e(t,n,i,r){var o;te(this,e),this.type=2,this._$AH=Te,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=i,this.options=r,this.v=null===(o=null==r?void 0:r.isConnected)||void 0===o||o}return ie(e,[{key:"_$AU",get:function(){var e,t;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this.v}},{key:"parentNode",get:function(){var e,t=this._$AA.parentNode,n=this._$AM;return void 0!==n&&11===(null===(e=t)||void 0===e?void 0:e.nodeType)&&(t=n.parentNode),t}},{key:"startNode",get:function(){return this._$AA}},{key:"endNode",get:function(){return this._$AB}},{key:"_$AI",value:function(e){e=$e(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this),_e(e)?e===Te||null==e||""===e?(this._$AH!==Te&&this._$AR(),this._$AH=Te):e!==this._$AH&&e!==Ce&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):function(e){return ge(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator])}(e)?this.k(e):this._(e)}},{key:"O",value:function(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}},{key:"T",value:function(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}},{key:"_",value:function(e){this._$AH!==Te&&_e(this._$AH)?this._$AA.nextSibling.data=e:this.T(pe.createTextNode(e)),this._$AH=e}},{key:"$",value:function(e){var t,n=e.values,i=e._$litType$,r="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=De.createElement(Oe(i.h,i.h[0]),this.options)),i);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===r)this._$AH.p(n);else{var o=new Me(r,this),a=o.u(this.options);o.p(n),this.T(a),this._$AH=o}}},{key:"_$AC",value:function(e){var t=Ae.get(e.strings);return void 0===t&&Ae.set(e.strings,t=new De(e)),t}},{key:"k",value:function(t){ge(this._$AH)||(this._$AH=[],this._$AR());var n,i,r=this._$AH,o=0,a=X(t);try{for(a.s();!(i=a.n()).done;){var s=i.value;o===r.length?r.push(n=new e(this.O(fe()),this.O(fe()),this,this.options)):n=r[o],n._$AI(s),o++}}catch(e){a.e(e)}finally{a.f()}o<r.length&&(this._$AR(n&&n._$AB.nextSibling,o),r.length=o)}},{key:"_$AR",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,t=arguments.length>1?arguments[1]:void 0;for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,t);e&&e!==this._$AB;){var n,i=e.nextSibling;e.remove(),e=i}}},{key:"setConnected",value:function(e){var t;void 0===this._$AM&&(this.v=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}])}(),Pe=function(){return ie((function e(t,n,i,r,o){te(this,e),this.type=1,this._$AH=Te,this._$AN=void 0,this.element=t,this.name=n,this._$AM=r,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Te}),[{key:"tagName",get:function(){return this.element.tagName}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,r=this.strings,o=!1;if(void 0===r)e=$e(this,e,t,0),(o=!_e(e)||e!==this._$AH&&e!==Ce)&&(this._$AH=e);else{var a,s,l=e;for(e=r[0],a=0;a<r.length-1;a++){var u;(s=$e(this,l[n+a],t,a))===Ce&&(s=this._$AH[a]),o||(o=!_e(s)||s!==this._$AH[a]),s===Te?e=Te:e!==Te&&(e+=(null!==(u=s)&&void 0!==u?u:"")+r[a+1]),this._$AH[a]=s}}o&&!i&&this.j(e)}},{key:"j",value:function(e){e===Te?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}])}(),Re=function(e){function t(){var e;return te(this,t),(e=q(this,t,arguments)).type=3,e}return J(t,e),ie(t,[{key:"j",value:function(e){this.element[this.name]=e===Te?void 0:e}}])}(Pe),je=function(e){function t(){var e;return te(this,t),(e=q(this,t,arguments)).type=4,e}return J(t,e),ie(t,[{key:"j",value:function(e){this.element.toggleAttribute(this.name,!!e&&e!==Te)}}])}(Pe),He=function(e){function t(e,n,i,r,o){var a;return te(this,t),(a=q(this,t,[e,n,i,r,o])).type=5,a}return J(t,e),ie(t,[{key:"_$AI",value:function(e){var t;if((e=null!==(t=$e(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,0))&&void 0!==t?t:Te)!==Ce){var n=this._$AH,i=e===Te&&n!==Te||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,r=e!==Te&&(n===Te||i);i&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}}},{key:"handleEvent",value:function(e){var t,n;"function"==typeof this._$AH?this._$AH.call(null!==(t=null===(n=this.options)||void 0===n?void 0:n.host)&&void 0!==t?t:this.element,e):this._$AH.handleEvent(e)}}])}(Pe),Be=function(){return ie((function e(t,n,i){te(this,e),this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=i}),[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){$e(this,e)}}])}(),Ve=ae.litHtmlPolyfillSupport;function Ue(e,t,n){return t=ze(t),function(e,t){if(t&&("object"==et(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Fe()?Reflect.construct(t,n||[],ze(e).constructor):t.apply(e,n))}function Fe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Fe=function(){return!!e})()}function ze(e){return ze=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ze(e)}function Ge(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&We(e,t)}function We(e,t){return We=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},We(e,t)}function qe(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ke(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ke(e,t){if(e){if("string"==typeof e)return Ye(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ye(e,t):void 0}}function Ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function Je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ze(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Qe(i.key),i)}}function Xe(e,t,n){return t&&Ze(e.prototype,t),n&&Ze(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qe(e){var t=function(e,t){if("object"!=et(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=et(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==et(t)?t:t+""}function et(e){return et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},et(e)}null!=Ve&&Ve(De,Le),(null!==(G=ae.litHtmlVersions)&&void 0!==G?G:ae.litHtmlVersions=[]).push("3.2.0");var tt=globalThis,nt=tt.trustedTypes,it=nt?nt.createPolicy("lit-html",{createHTML:function(e){return e}}):void 0,rt="$lit$",ot="lit$".concat(Math.random().toFixed(9).slice(2),"$"),at="?"+ot,st="<".concat(at,">"),lt=document,ut=function(){return lt.createComment("")},ct=function(e){return null===e||"object"!=et(e)&&"function"!=typeof e},dt=Array.isArray,ht="[ \t\n\f\r]",pt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ft=/-->/g,_t=/>/g,gt=RegExp(">|".concat(ht,"(?:([^\\s\"'>=/]+)(").concat(ht,"*=").concat(ht,"*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)"),"g"),bt=/'/g,mt=/"/g,vt=/^(?:script|style|textarea|title)$/i,yt=function(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return{_$litType$:e,strings:t,values:i}}},kt=yt(1),xt=yt(2),wt=(yt(3),Symbol.for("lit-noChange")),Et=Symbol.for("lit-nothing"),St=new WeakMap,Ct=lt.createTreeWalker(lt,129);function Tt(e,t){if(!dt(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==it?it.createHTML(t):t}var At=function(){return Xe((function e(t,n){var i,r=t.strings,o=t._$litType$;Je(this,e),this.parts=[];var a=0,s=0,l=r.length-1,u=this.parts,c=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){u=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return s}}(e,t)||Ke(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(function(e,t){for(var n,i=e.length-1,r=[],o=2===t?"<svg>":3===t?"<math>":"",a=pt,s=0;s<i;s++){for(var l=e[s],u=void 0,c=void 0,d=-1,h=0;h<l.length&&(a.lastIndex=h,null!==(c=a.exec(l)));){var p;h=a.lastIndex,a===pt?"!--"===c[1]?a=ft:void 0!==c[1]?a=_t:void 0!==c[2]?(vt.test(c[2])&&(n=RegExp("</"+c[2],"g")),a=gt):void 0!==c[3]&&(a=gt):a===gt?">"===c[0]?(a=null!==(p=n)&&void 0!==p?p:pt,d=-1):void 0===c[1]?d=-2:(d=a.lastIndex-c[2].length,u=c[1],a=void 0===c[3]?gt:'"'===c[3]?mt:bt):a===mt||a===bt?a=gt:a===ft||a===_t?a=pt:(a=gt,n=void 0)}var f=a===gt&&e[s+1].startsWith("/>")?" ":"";o+=a===pt?l+st:d>=0?(r.push(u),l.slice(0,d)+rt+l.slice(d)+ot+f):l+ot+(-2===d?s:f)}return[Tt(e,o+(e[i]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),r]}(r,o),2),d=c[0],h=c[1];if(this.el=e.createElement(d,n),Ct.currentNode=this.el.content,2===o||3===o){var p=this.el.content.firstChild;p.replaceWith.apply(p,function(e){return function(e){if(Array.isArray(e))return Ye(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ke(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(p.childNodes))}for(;null!==(i=Ct.nextNode())&&u.length<l;){if(1===i.nodeType){if(i.hasAttributes()){var f,_=qe(i.getAttributeNames());try{for(_.s();!(f=_.n()).done;){var g=f.value;if(g.endsWith(rt)){var b=h[s++],m=i.getAttribute(g).split(ot),v=/([.?@])?(.*)/.exec(b);u.push({type:1,index:a,name:v[2],strings:m,ctor:"."===v[1]?Lt:"?"===v[1]?Pt:"@"===v[1]?Rt:Mt}),i.removeAttribute(g)}else g.startsWith(ot)&&(u.push({type:6,index:a}),i.removeAttribute(g))}}catch(e){_.e(e)}finally{_.f()}}if(vt.test(i.tagName)){var y=i.textContent.split(ot),k=y.length-1;if(k>0){i.textContent=nt?nt.emptyScript:"";for(var x=0;x<k;x++)i.append(y[x],ut()),Ct.nextNode(),u.push({type:2,index:++a});i.append(y[k],ut())}}}else if(8===i.nodeType)if(i.data===at)u.push({type:2,index:a});else for(var w=-1;-1!==(w=i.data.indexOf(ot,w+1));)u.push({type:7,index:a}),w+=ot.length-1;a++}}),null,[{key:"createElement",value:function(e,t){var n=lt.createElement("template");return n.innerHTML=e,n}}])}();function It(e,t){var n,i,r,o,a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,l=arguments.length>3?arguments[3]:void 0;if(t===wt)return t;var u=void 0!==l?null===(n=s.o)||void 0===n?void 0:n[l]:s.l,c=ct(t)?void 0:t._$litDirective$;return(null===(i=u)||void 0===i?void 0:i.constructor)!==c&&(null!==(r=u)&&void 0!==r&&null!==(o=r._$AO)&&void 0!==o&&o.call(r,!1),void 0===c?u=void 0:(u=new c(e))._$AT(e,s,l),void 0!==l?(null!==(a=s.o)&&void 0!==a?a:s.o=[])[l]=u:s.l=u),void 0!==u&&(t=It(e,u._$AS(e,t.values),u,l)),t}var Ot,Dt,$t=function(){return Xe((function e(t,n){Je(this,e),this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=n}),[{key:"parentNode",get:function(){return this._$AM.parentNode}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"u",value:function(e){var t,n=this._$AD,i=n.el.content,r=n.parts,o=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:lt).importNode(i,!0);Ct.currentNode=o;for(var a=Ct.nextNode(),s=0,l=0,u=r[0];void 0!==u;){var c;if(s===u.index){var d=void 0;2===u.type?d=new Nt(a,a.nextSibling,this,e):1===u.type?d=new u.ctor(a,u.name,u.strings,this,e):6===u.type&&(d=new jt(a,this,e)),this._$AV.push(d),u=r[++l]}s!==(null===(c=u)||void 0===c?void 0:c.index)&&(a=Ct.nextNode(),s++)}return Ct.currentNode=lt,o}},{key:"p",value:function(e){var t,n=0,i=qe(this._$AV);try{for(i.s();!(t=i.n()).done;){var r=t.value;void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,n),n+=r.strings.length-2):r._$AI(e[n])),n++}}catch(e){i.e(e)}finally{i.f()}}}])}(),Nt=function(){function e(t,n,i,r){var o;Je(this,e),this.type=2,this._$AH=Et,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=i,this.options=r,this.v=null===(o=null==r?void 0:r.isConnected)||void 0===o||o}return Xe(e,[{key:"_$AU",get:function(){var e,t;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this.v}},{key:"parentNode",get:function(){var e,t=this._$AA.parentNode,n=this._$AM;return void 0!==n&&11===(null===(e=t)||void 0===e?void 0:e.nodeType)&&(t=n.parentNode),t}},{key:"startNode",get:function(){return this._$AA}},{key:"endNode",get:function(){return this._$AB}},{key:"_$AI",value:function(e){e=It(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this),ct(e)?e===Et||null==e||""===e?(this._$AH!==Et&&this._$AR(),this._$AH=Et):e!==this._$AH&&e!==wt&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):function(e){return dt(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator])}(e)?this.k(e):this._(e)}},{key:"O",value:function(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}},{key:"T",value:function(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}},{key:"_",value:function(e){this._$AH!==Et&&ct(this._$AH)?this._$AA.nextSibling.data=e:this.T(lt.createTextNode(e)),this._$AH=e}},{key:"$",value:function(e){var t,n=e.values,i=e._$litType$,r="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=At.createElement(Tt(i.h,i.h[0]),this.options)),i);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===r)this._$AH.p(n);else{var o=new $t(r,this),a=o.u(this.options);o.p(n),this.T(a),this._$AH=o}}},{key:"_$AC",value:function(e){var t=St.get(e.strings);return void 0===t&&St.set(e.strings,t=new At(e)),t}},{key:"k",value:function(t){dt(this._$AH)||(this._$AH=[],this._$AR());var n,i,r=this._$AH,o=0,a=qe(t);try{for(a.s();!(i=a.n()).done;){var s=i.value;o===r.length?r.push(n=new e(this.O(ut()),this.O(ut()),this,this.options)):n=r[o],n._$AI(s),o++}}catch(e){a.e(e)}finally{a.f()}o<r.length&&(this._$AR(n&&n._$AB.nextSibling,o),r.length=o)}},{key:"_$AR",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,t=arguments.length>1?arguments[1]:void 0;for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,t);e&&e!==this._$AB;){var n,i=e.nextSibling;e.remove(),e=i}}},{key:"setConnected",value:function(e){var t;void 0===this._$AM&&(this.v=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}])}(),Mt=function(){return Xe((function e(t,n,i,r,o){Je(this,e),this.type=1,this._$AH=Et,this._$AN=void 0,this.element=t,this.name=n,this._$AM=r,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Et}),[{key:"tagName",get:function(){return this.element.tagName}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,r=this.strings,o=!1;if(void 0===r)e=It(this,e,t,0),(o=!ct(e)||e!==this._$AH&&e!==wt)&&(this._$AH=e);else{var a,s,l=e;for(e=r[0],a=0;a<r.length-1;a++){var u;(s=It(this,l[n+a],t,a))===wt&&(s=this._$AH[a]),o||(o=!ct(s)||s!==this._$AH[a]),s===Et?e=Et:e!==Et&&(e+=(null!==(u=s)&&void 0!==u?u:"")+r[a+1]),this._$AH[a]=s}}o&&!i&&this.j(e)}},{key:"j",value:function(e){e===Et?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}])}(),Lt=function(e){function t(){var e;return Je(this,t),(e=Ue(this,t,arguments)).type=3,e}return Ge(t,e),Xe(t,[{key:"j",value:function(e){this.element[this.name]=e===Et?void 0:e}}])}(Mt),Pt=function(e){function t(){var e;return Je(this,t),(e=Ue(this,t,arguments)).type=4,e}return Ge(t,e),Xe(t,[{key:"j",value:function(e){this.element.toggleAttribute(this.name,!!e&&e!==Et)}}])}(Mt),Rt=function(e){function t(e,n,i,r,o){var a;return Je(this,t),(a=Ue(this,t,[e,n,i,r,o])).type=5,a}return Ge(t,e),Xe(t,[{key:"_$AI",value:function(e){var t;if((e=null!==(t=It(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,0))&&void 0!==t?t:Et)!==wt){var n=this._$AH,i=e===Et&&n!==Et||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,r=e!==Et&&(n===Et||i);i&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}}},{key:"handleEvent",value:function(e){var t,n;"function"==typeof this._$AH?this._$AH.call(null!==(t=null===(n=this.options)||void 0===n?void 0:n.host)&&void 0!==t?t:this.element,e):this._$AH.handleEvent(e)}}])}(Mt),jt=function(){return Xe((function e(t,n,i){Je(this,e),this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=i}),[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){It(this,e)}}])}(),Ht=tt.litHtmlPolyfillSupport;function Bt(e){return Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bt(e)}function Vt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ut(i.key),i)}}function Ut(e){var t=function(e,t){if("object"!=Bt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Bt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Bt(t)?t:t+""}function Ft(e,t,n){return t=Kt(t),function(e,t){if(t&&("object"==Bt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return zt(e)}(e,Gt()?Reflect.construct(t,n||[],Kt(e).constructor):t.apply(e,n))}function zt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Gt=function(){return!!e})()}function Wt(e,t,n,i){var r=qt(Kt(1&i?e.prototype:e),t,n);return 2&i&&"function"==typeof r?function(e){return r.apply(n,e)}:r}function qt(){return qt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Kt(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},qt.apply(null,arguments)}function Kt(e){return Kt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Kt(e)}function Yt(e,t){return Yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Yt(e,t)}null!=Ht&&Ht(At,Nt),(null!==(Ne=tt.litHtmlVersions)&&void 0!==Ne?Ne:tt.litHtmlVersions=[]).push("3.2.0");var Jt=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=Ft(this,t,arguments)).renderOptions={host:zt(e)},e.o=void 0,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yt(e,t)}(t,e),function(e,t,n){return t&&Vt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"createRenderRoot",value:function(){var e,n,i=Wt(t,"createRenderRoot",this,3)([]);return null!==(n=(e=this.renderOptions).renderBefore)&&void 0!==n||(e.renderBefore=i.firstChild),i}},{key:"update",value:function(e){var n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),Wt(t,"update",this,3)([e]),this.o=function(e,t,n){var i,r=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:t,o=r._$litPart$;if(void 0===o){var a,s=null!==(a=null==n?void 0:n.renderBefore)&&void 0!==a?a:null;r._$litPart$=o=new Nt(t.insertBefore(ut(),s),s,void 0,null!=n?n:{})}return o._$AI(e),o}(n,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function(){var e;Wt(t,"connectedCallback",this,3)([]),null===(e=this.o)||void 0===e||e.setConnected(!0)}},{key:"disconnectedCallback",value:function(){var e;Wt(t,"disconnectedCallback",this,3)([]),null===(e=this.o)||void 0===e||e.setConnected(!1)}},{key:"render",value:function(){return wt}}])}(W);Jt._$litElement$=!0,Jt.finalized=!0,null===(Ot=globalThis.litElementHydrateSupport)||void 0===Ot||Ot.call(globalThis,{LitElement:Jt});var Zt=globalThis.litElementPolyfillSupport;function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(n),!0).forEach((function(t){en(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function en(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=tn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=tn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==tn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tn(e){return tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tn(e)}null==Zt||Zt({LitElement:Jt}),(null!==(Dt=globalThis.litElementVersions)&&void 0!==Dt?Dt:globalThis.litElementVersions=[]).push("4.1.0");var nn={attribute:!0,type:String,converter:U,reflect:!1,hasChanged:F},rn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nn,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=n.kind,r=n.metadata,o=globalThis.litPropertyMetadata.get(r);if(void 0===o&&globalThis.litPropertyMetadata.set(r,o=new Map),o.set(n.name,e),"accessor"===i){var a=n.name;return{set:function(n){var i=t.get.call(this);t.set.call(this,n),this.requestUpdate(a,i,e)},init:function(t){return void 0!==t&&this.P(a,void 0,e),t}}}if("setter"===i){var s=n.name;return function(n){var i=this[s];t.call(this,n),this.requestUpdate(s,i,e)}}throw Error("Unsupported decorator location: "+i)};function on(e){return function(t,n){return"object"==tn(n)?rn(e,t,n):function(e,t,n){var i=t.hasOwnProperty(n);return t.constructor.createProperty(n,i?Qt(Qt({},e),{},{wrapped:!0}):e),i?Object.getOwnPropertyDescriptor(t,n):void 0}(e,t,n)}}function an(e){return an="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},an(e)}function sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sn(Object(n),!0).forEach((function(t){un(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function un(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=an(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=an(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==an(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cn(e){return on(ln(ln({},e),{},{state:!0,attribute:!1}))}function dn(e){return dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dn(e)}var hn,pn=function(e,t,n){return n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=dn(t)&&Object.defineProperty(e,t,n),n};function fn(e){return fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fn(e)}function _n(e,t){return function(n,i,r){var o=function(t){var n,i;return null!==(n=null===(i=t.renderRoot)||void 0===i?void 0:i.querySelector(e))&&void 0!==n?n:null};if(t){var a="object"==fn(i)?n:null!=r?r:function(){var e=Symbol();return{get:function(){return this[e]},set:function(t){this[e]=t}}}(),s=a.get,l=a.set;return pn(n,i,{get:function(){var e=s.call(this);return void 0===e&&(null!==(e=o(this))||this.hasUpdated)&&l.call(this,e),e}})}return pn(n,i,{get:function(){return o(this)}})}}function gn(e){return function(t,n){return pn(t,n,{get:function(){var t,n;return(null!==(t=this.renderRoot)&&void 0!==t?t:null!==(n=hn)&&void 0!==n?n:hn=document.createDocumentFragment()).querySelectorAll(e)}})}}const bn=1048576,mn=1073741824,vn={ATTACHMENT_BROWSE:"Browse",ATTACHMENT_DRAG_DROP_ZONE:"Drop files here."},yn={ATTACHMENT_BROWSE:"参照",ATTACHMENT_DRAG_DROP_ZONE:"ここにファイルをドロップします。"},kn={ATTACHMENT_BROWSE:"选择文件",ATTACHMENT_DRAG_DROP_ZONE:"拖动文件到此。"},xn={ATTACHMENT_BROWSE:"選擇檔案",ATTACHMENT_DRAG_DROP_ZONE:"拖曳檔案到此。"},wn={ATTACHMENT_BROWSE:"Examinar",ATTACHMENT_DRAG_DROP_ZONE:"Suelte los archivos aquí."},En="'items' property is not array.",Sn="'value' property is not unique in items.",Cn="'value' property is not specified in items.",Tn="'files' property is not array.",An="'value' property is not array.",In="'value' property is not string.",On="'selectedIndex' property is not array.",Dn="'selectedIndex' property is not number.",$n="'columns' property is not array.",Nn="'field' property is not specified in columns.",Mn="'field' property is not unique in columns.",Ln="'rowsPerPage' property is not positive integer.",Pn="'data' property is not array.",Rn="'container' property is not HTMLElement.";function jn(e){return jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jn(e)}function Hn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function Bn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Vn(i.key),i)}}function Vn(e){var t=function(e,t){if("object"!=jn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=jn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jn(t)?t:t+""}var Un=function(){return function(e,t,n){return t&&Bn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}),[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AT",value:function(e,t,n){this.t=e,this._$AM=t,this.i=n}},{key:"_$AS",value:function(e,t){return this.update(e,t)}},{key:"update",value:function(e,t){return this.render.apply(this,function(e){if(Array.isArray(e))return Hn(e)}(n=t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return Hn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hn(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var n}}])}();function Fn(e){return Fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fn(e)}function zn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Gn(i.key),i)}}function Gn(e){var t=function(e,t){if("object"!=Fn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Fn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Fn(t)?t:t+""}function Wn(e,t,n){return t=Yn(t),function(e,t){if(t&&("object"==Fn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return qn(e)}(e,Kn()?Reflect.construct(t,n||[],Yn(e).constructor):t.apply(e,n))}function qn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kn=function(){return!!e})()}function Yn(e){return Yn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Yn(e)}function Jn(e,t){return Jn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Jn(e,t)}var Zn=function(e){function t(e){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Wn(this,t,[e])).it=Te,2!==e.type)throw Error(n.constructor.directiveName+"() can only be used in child bindings");return qn(n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jn(e,t)}(t,e),function(e,t,n){return t&&zn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"render",value:function(e){if(e===Te||null==e)return this._t=void 0,this.it=e;if(e===Ce)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;var t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}])}(Un);Zn.directiveName="unsafeHTML",Zn.resultType=1;var Xn=function(e){return function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return{_$litDirective$:e,values:n}}}(Zn);const Qn=24,ei=12,ti="AM",ni="PM",ii='"max" must be greater than or equal to "min".',ri="Time is out of valid range.",oi="'timeStep' property is not number.",ai="00:00",si="23:59",li="'value' property format is not valid.",ui="'max' property format is not valid.",ci="'min' property format is not valid.",di="'timeStep' property format is not valid.",hi={MONTH_SELECT:["JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"],YEAR_SELECT_POSTFIX:"",WEEK_DAYS:[{text:"SUN",abbr:"Sunday"},{text:"MON",abbr:"Monday"},{text:"TUE",abbr:"Tuesday"},{text:"WED",abbr:"Wednesday"},{text:"THU",abbr:"Thursday"},{text:"FRI",abbr:"Friday"},{text:"SAT",abbr:"Saturday"}],INVALID_FORMAT:"Format is not valid.",INVALID_TIME_FORMAT:"Format is not valid.",CALENDAR_FOOTER_TEXT:{none:"None",today:"Today",close:"Close"},TIME_IS_OUT_OF_VALID_RANGE:"Time is out of valid range."},pi={MONTH_SELECT:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],YEAR_SELECT_POSTFIX:"年",WEEK_DAYS:[{text:"日",abbr:"日"},{text:"月",abbr:"月"},{text:"火",abbr:"火"},{text:"水",abbr:"水"},{text:"木",abbr:"木"},{text:"金",abbr:"金"},{text:"土",abbr:"土"}],INVALID_FORMAT:"日付の形式が不正です。",INVALID_TIME_FORMAT:"時刻の形式が不正です。",CALENDAR_FOOTER_TEXT:{none:"選択を解除",today:"今日",close:"閉じる"},TIME_IS_OUT_OF_VALID_RANGE:"時刻が有効な範囲外です。"},fi={MONTH_SELECT:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],YEAR_SELECT_POSTFIX:"年",WEEK_DAYS:[{text:"周日",abbr:"周日"},{text:"周一",abbr:"周一"},{text:"周二",abbr:"周二"},{text:"周三",abbr:"周三"},{text:"周四",abbr:"周四"},{text:"周五",abbr:"周五"},{text:"周六",abbr:"周六"}],INVALID_FORMAT:"日期格式不正确。",INVALID_TIME_FORMAT:"时间格式不正确。",CALENDAR_FOOTER_TEXT:{none:"清空",today:"今天",close:"关闭"},TIME_IS_OUT_OF_VALID_RANGE:"时间超出有效范围。"},_i={MONTH_SELECT:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],YEAR_SELECT_POSTFIX:"年",WEEK_DAYS:[{text:"週日",abbr:"週日"},{text:"週一",abbr:"週一"},{text:"週二",abbr:"週二"},{text:"週三",abbr:"週三"},{text:"週四",abbr:"週四"},{text:"週五",abbr:"週五"},{text:"週六",abbr:"週六"}],INVALID_FORMAT:"日期格式錯誤。",INVALID_TIME_FORMAT:"時間格式錯誤。",CALENDAR_FOOTER_TEXT:{none:"清空",today:"今天",close:"關閉"},TIME_IS_OUT_OF_VALID_RANGE:"時間超出有效範圍。"},gi={MONTH_SELECT:["ENERO","FEBRERO","MARZO","ABRIL","MAYO","JUNIO","JULIO","AGOSTO","SEPTIEMBRE","OCTUBRE","NOVIEMBRE","DICIEMBRE"],YEAR_SELECT_POSTFIX:"",WEEK_DAYS:[{text:"Do.",abbr:"Domingo"},{text:"Lu.",abbr:"Lunes"},{text:"Ma.",abbr:"Martes"},{text:"Mi.",abbr:"Miércoles"},{text:"Ju.",abbr:"Jueves"},{text:"Vi.",abbr:"Viernes"},{text:"Sá.",abbr:"Sábado"}],INVALID_FORMAT:"Formato no válido.",INVALID_TIME_FORMAT:"Formato no válido.",CALENDAR_FOOTER_TEXT:{none:"Ninguno",today:"Hoy",close:"Cerrar"},TIME_IS_OUT_OF_VALID_RANGE:"La hora está fuera del rango válido."},bi=(e,t)=>{const n=$i(e,t);let i=new Date(n.start),r=[];const o=[];for(;i<=n.end;)r.push(Si(i)),7===r.length&&(o.push(r),r=[]),i.setDate(i.getDate()+1),i=new Date(i);return o},mi=(e,t)=>{let n,i;n=Math.floor(e/60),i=e%60;const r=n%Qn<ei?ti:ni;return n=t?n%ei:n%Qn,0===n&&t&&(n=ei),n<10&&(n="0"+n),i<10&&(i="0"+i),{label:n+":"+i+(t?" "+r:""),value:n+":"+i+(t?" "+r:"")}},vi=e=>{const t=e.split(":");let n=parseInt(t[0],10),i=parseInt(t[1],10);return isNaN(n)||isNaN(i)?0:(n<0?n=0:n>=Qn&&(n=23),i<0?i=0:i>=60&&(i=59),60*n+i)},yi=(e,t)=>{const n=vi(e),i=vi(t);return n>i?1:n===i?0:-1},ki=e=>{let t=e%ei;return t=0===t?ei:t,t},xi=e=>e>=ei?ni:ti,wi=e=>{const[t,n]=e.split(" "),[i,r]=t.split(":");return n?`${Ei(i,n)}:${r}`:e},Ei=(e,t)=>{const n=parseInt(e,10);return Di(t===ni?n===ei?12:n+12:n===ei?0:n)},Si=e=>{const t=new Date(e),n=t.getFullYear(),i=Di(t.getMonth()+1),r=Di(t.getDate());return{text:`${t.getFullYear()}-${t.getMonth()+1}-${t.getDate()}`,attr:`${n}-${i}-${r}`}},Ci=(e,t)=>{if(t&&!Ai(t)){const n=t.split("-");if(3!==n.length)return t;const i=n[0],r=n[1],o=n[2];return"en"===e?`${r}/${o}/${i}`:`${i}-${r}-${o}`}return t},Ti=(e,t)=>{if(Ai(t))return t;const n="en"===e,i=n?"/":"-",r=t.split(i);return`${n?r[2]:r[0]}-${n?r[0]:r[1]}-${n?r[1]:r[2]}`},Ai=e=>null==e||0===e.length||!/[^(^\s*)|(\s*$)]/.test(e),Ii=(e="ja")=>{const t=new Date,n=t.getFullYear(),i=Di(t.getMonth()+1),r=Di(t.getDate());return"ja"===e||"zh"===e?n+"-"+i+"-"+r:i+"/"+r+"/"+n},Oi=(e,t)=>{if(t&&!Ai(t)){const n="en"===e,i=n?"/":"-";if(new Date(`${t}${n?"":"T00:00:00"}`).getDate()!==parseInt(t.split(i)[n?1:2],10))return!1;const r=/^(0[1-9]|1[0-2])\/(0[1-9]|[12][0-9]|3[01])\/(\d{4})$/;if("en"===e)return null!==t.match(r);const o=/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/g;return null!==t.match(o)}return!1},Di=(e,t=2)=>{const n=`0000000000${e}`;return n.substr(n.length-t)},$i=(e,t)=>{const n=new Date(e,t);n.setDate(1);const i=new Date(n);i.setDate(i.getDate()-i.getDay());const r=new Date(e,t);r.setMonth(r.getMonth()+1,0);const o=new Date(r);o.setDate(o.getDate()+(6-o.getDay()));const a=(o.getTime()-i.getTime())/864e5;return o.setDate(o.getDate()+(42-a)),{start:i,end:o}},Ni=e=>{switch(e){case"en":default:return hi;case"zh":return fi;case"ja":return pi;case"zh-TW":return _i;case"es":return gi}},Mi=e=>{const t=[];t.push({value:`${e} 12`,label:`${e} 12`});for(let n=1;n<=11;n++)t.push({value:`${e} ${Di(n)}`,label:`${e} ${Di(n)}`});return t},Li=()=>xt`
|
||
<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 0.5V1.2764L6 7.5L12 1.2764V0.5L6 6.5L0 0.5Z" fill="#888888"/>
|
||
</svg>
|
||
`;function Pi(e,t){const n=e.querySelector(".kuc-base-datetime-listbox-1-18-0__listbox"),i=Ri(e);if(!e.parentElement||!n||!i)return;const{inputToBottom:r,inputToTop:o}=i,a="kuc-base-datetime-header-month-1-18-0"===e.tagName.toLowerCase()?360:300,s=e.parentElement.getBoundingClientRect().height;return n.style.maxHeight=a+"px",e.parentElement.style.position="relative",r>=a?(n.style.height=a+"px","bottom"===t?void(n.style.top=s+"px"):void(n.style.bottom=s+"px")):"bottom"===t?(n.style.top=s+"px",void(n.style.height=r-18+"px")):(n.style.height=o-18+"px",n.style.top="auto",void(n.style.bottom=e.parentElement.getBoundingClientRect().height+"px"))}const Ri=e=>{var t,n;if(!e.parentElement)return{inputToBottom:0,inputToTop:0,inputToRight:0,inputToLeft:0};const i=null!==(t=e.closest("kuc-base-date-1-18-0"))&&void 0!==t?t:e.closest("kuc-mobile-base-date-1-18-0"),r=(null!==(n=i.getElementsByClassName("kuc-base-date-1-18-0__input")[0])&&void 0!==n?n:i.getElementsByClassName("kuc-mobile-base-date-1-18-0__group")[0]).getBoundingClientRect().width;return{inputToBottom:window.innerHeight-e.parentElement.getBoundingClientRect().bottom,inputToTop:e.parentElement.getBoundingClientRect().top,inputToRight:window.innerWidth-e.parentElement.getBoundingClientRect().left,inputToLeft:e.parentElement.getBoundingClientRect().left+r}},ji={fromAttribute:e=>null===e,toAttribute:e=>e?null:""},Hi={fromAttribute:e=>!e||-1===["en","ja","zh","zh-TW","es"].indexOf(e),toAttribute:e=>{const t=["en","ja","zh","zh-TW","es"];return-1!==t.indexOf(e)?e:-1!==t.indexOf(document.documentElement.lang)?document.documentElement.lang:"en"}},Bi=e=>e instanceof HTMLElement?e:Xn(e),Vi=e=>{if(void 0===e||""===e)return"";let t=[];return e.indexOf("-")>0&&(t=e.split("-")),t.length<2?`${e}-01-01`:2===t.length?`${Di(t[0],4)}-${Di(t[1])}-01`:t.length>2?`${Di(t[0],4)}-${Di(t[1])}-${Di(t[2])}`:""},Ui=e=>{if(5===e.length||""===e)return e;const t=e.indexOf(":"),n=e.substr(0,t),i=e.substr(t+1,5);return`${Di(n)}:${Di(i)}`},Fi={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var zi,Gi=new Uint8Array(16);function Wi(){if(!zi&&!(zi="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return zi(Gi)}for(var qi=[],Ki=0;Ki<256;++Ki)qi.push((Ki+256).toString(16).slice(1));const Yi=function(e,t,n){if(Fi.randomUUID&&!t&&!e)return Fi.randomUUID();var i=(e=e||{}).random||(e.rng||Wi)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=i[r];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(qi[e[t+0]]+qi[e[t+1]]+qi[e[t+2]]+qi[e[t+3]]+"-"+qi[e[t+4]]+qi[e[t+5]]+"-"+qi[e[t+6]]+qi[e[t+7]]+"-"+qi[e[t+8]]+qi[e[t+9]]+"-"+qi[e[t+10]]+qi[e[t+11]]+qi[e[t+12]]+qi[e[t+13]]+qi[e[t+14]]+qi[e[t+15]]).toLowerCase()}(i)};class Ji extends Jt{createRenderRoot(){return this}async throwErrorAfterUpdateComplete(e){throw await this.updateComplete,new Error(e)}}const Zi=(e,t,n)=>{const i=new CustomEvent(t,{detail:n,bubbles:!0,composed:!0});return e.dispatchEvent(i)},Xi=e=>{const t="kuc-style-1-18-0";let n=document.getElementById(t);n||(n=document.createElement("style"),n.id=t,document.head.appendChild(n)),n.appendChild(document.createTextNode(e))},Qi=()=>Yi();var er=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class tr extends Ji{constructor(){super(...arguments),this.ariaLive="",this.guid="",this.text=""}render(){return kt`
|
||
${this.ariaLive&&""!==this.ariaLive?kt`
|
||
<div
|
||
class="kuc-base-error-1-18-0__error"
|
||
.id="${this.guid}-error"
|
||
role="alert"
|
||
aria-live="${this.ariaLive}"
|
||
?hidden="${!this.text}"
|
||
>
|
||
${this.text}
|
||
</div>
|
||
`:kt`
|
||
<div
|
||
class="kuc-base-error-1-18-0__error"
|
||
.id="${this.guid}-error"
|
||
role="alert"
|
||
?hidden="${!this.text}"
|
||
>
|
||
${this.text}
|
||
</div>
|
||
`}
|
||
`}}er([on({type:String})],tr.prototype,"ariaLive",void 0),er([on({type:String})],tr.prototype,"guid",void 0),er([on({type:String})],tr.prototype,"text",void 0),window.customElements.get("kuc-base-error-1-18-0")||(Xi('\n kuc-base-error-1-18-0,\n kuc-base-error-1-18-0 *,\n kuc-base-error-1-18-0:lang(en),\n kuc-base-error-1-18-0:lang(en) * {\n font-family: sans-serif;\n }\n kuc-base-error-1-18-0:lang(es),\n kuc-base-error-1-18-0:lang(es) * {\n font-family: sans-serif;\n }\n kuc-base-error-1-18-0:lang(ja),\n kuc-base-error-1-18-0:lang(ja) * {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo,\n sans-serif;\n }\n kuc-base-error-1-18-0:lang(zh),\n kuc-base-error-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", sans-serif;\n }\n kuc-base-error-1-18-0:lang(zh-TW),\n kuc-base-error-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC",sans-serif;\n }\n kuc-base-error-1-18-0 {\n width: 100%;\n font-size: 14px;\n display: inline-table;\n vertical-align: top;\n }\n kuc-base-error-1-18-0[hidden] {\n display: none;\n }\n .kuc-base-error-1-18-0__error {\n line-height: 1.5;\n padding: 4px 18px;\n box-sizing: border-box;\n background-color: #e74c3c;\n color: #ffffff;\n margin: 8px 0px;\n word-break: break-all;\n white-space: normal;\n }\n .kuc-base-error-1-18-0__error[hidden] {\n display: none;\n }\n'),window.customElements.define("kuc-base-error-1-18-0",tr));var nr=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class ir extends Ji{constructor(){super(...arguments),this.requiredIcon=!1,this.guid="",this.text=""}render(){return kt`
|
||
${this._getTextTemplate()}
|
||
<span
|
||
class="kuc-base-label-1-18-0__required-icon"
|
||
?hidden="${!this.requiredIcon}"
|
||
>*</span
|
||
>
|
||
`}_getTextTemplate(){return this.guid&&""!==this.guid?kt`
|
||
<span class="kuc-base-label-1-18-0__text" .id="${this.guid}-group"
|
||
>${this.text}</span
|
||
>
|
||
`:kt` <span class="kuc-base-label-1-18-0__text">${this.text}</span> `}}function rr(e){if(!e||"object"!=typeof e)return{};const t={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&void 0===t[e]&&delete t[e];return t}function or(e){return!(""!==e&&void 0!==e&&!/(^(\d{1,4})-(0?[1-9]|1[0-2])-(0?[1-9]|[12][0-9]|3[01])$)|(^(\d{1,4})$)|(^(\d{1,4})-(0?[1-9]|1[0-2])$)/g.test(e))}function ar(e){return!(""!==e&&!/^(2[0-3]|[01]?[0-9]):([0-9]|[0-5][0-9])$/.test(e))}function sr(e,t,n){const i=Math.round(e),r=vi(t),o=vi(n);return!isNaN(i)&&i>0&&i<=r-o}function lr(e){const[t,n,i]=e.split("-"),r=new Date(`${e}T00:00:00`),o=r.getFullYear(),a=r.getMonth(),s=r.getDate();return o===Number(t)&&a===Number(n)-1&&s===Number(i)}function ur(e){return"string"==typeof e}function cr(e,t){return!(!/(^(\d{4})-(0[0-9]|1[0-2])-(0[1-9]|([12][0-9]|3[01]))$)|(^(\d{4})$)|(^(\d{4})-(0[0-9]|1[0-2])$)/g.test(e)||!/(^([01][0-9]|2[0-3])$)|(^([01][0-9]|2[0-3]):([0-5][0-9]))$|(^([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9])$/.test(t))}function dr(e){return e.length<2||!e.some((t=>e.indexOf(t)!==e.lastIndexOf(t)))}function hr(e){return!(e<.5||!pr(e))}function pr(e){return"number"==typeof e&&!Number.isNaN(e)}function fr(e){return Array.isArray(e)}nr([on({type:Boolean})],ir.prototype,"requiredIcon",void 0),nr([on({type:String})],ir.prototype,"guid",void 0),nr([on({type:String})],ir.prototype,"text",void 0),window.customElements.get("kuc-base-label-1-18-0")||(Xi('\n kuc-base-label-1-18-0,\n kuc-base-label-1-18-0 *,\n kuc-base-label-1-18-0:lang(en),\n kuc-base-label-1-18-0:lang(en) * {\n font-family: sans-serif;\n }\n kuc-base-label-1-18-0:lang(es),\n kuc-base-label-1-18-0:lang(es) * {\n font-family: sans-serif;\n }\n kuc-base-label-1-18-0:lang(ja),\n kuc-base-label-1-18-0:lang(ja) * {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo,\n sans-serif;\n }\n kuc-base-label-1-18-0:lang(zh),\n kuc-base-label-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", sans-serif;\n }\n kuc-base-label-1-18-0:lang(zh-TW),\n kuc-base-label-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC",sans-serif;\n }\n kuc-base-label-1-18-0 {\n font-size: 14px;\n color: #333333;\n display: inline-table;\n vertical-align: top;\n }\n kuc-base-label-1-18-0[hidden] {\n display: none;\n }\n .kuc-base-label-1-18-0__required-icon {\n font-size: 20px;\n vertical-align: -3px;\n color: #e74c3c;\n margin-left: 4px;\n line-height: 1;\n }\n .kuc-base-label-1-18-0__required-icon[hidden] {\n display: none;\n }\n'),window.customElements.define("kuc-base-label-1-18-0",ir));var _r=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let gr;(()=>{if(gr=window.customElements.get("kuc-attachment-1-18-0"),!gr){class e extends Ji{constructor(e){super(),this.className="",this.error="",this.id="",this.label="",this.language="auto",this.message="",this.disabled=!1,this.requiredIcon=!1,this.visible=!0,this.files=[],this._isDraging=!1,this._dragEnterCounter=0,this._locale=this._getLocale(),this._isFileOrDirectoryDrag=e=>{if(!e.dataTransfer)return!1;if(void 0!==e.dataTransfer.items)for(let t=0;t<e.dataTransfer.items.length;t++)if("file"===e.dataTransfer.items[t].kind.toLowerCase())return!0;if(void 0!==e.dataTransfer.types)for(let t=0;t<e.dataTransfer.types.length;t++)if("files"===e.dataTransfer.types[t].toLowerCase())return!0;return!1},this._GUID=Qi();const t=rr(e);Object.assign(this,t)}shouldUpdate(e){return!(e.has("files")&&!fr(this.files)&&(this.throwErrorAfterUpdateComplete(Tn),1))}willUpdate(e){return e.has("language")&&(this._locale=this._getLocale()),!0}render(){return kt`
|
||
<div class="kuc-attachment-1-18-0__group">
|
||
<label
|
||
class="kuc-attachment-1-18-0__group__label"
|
||
?hidden="${!this.label}"
|
||
for="${this._GUID}-input"
|
||
@click="${this._handleClickLabel}"
|
||
>
|
||
<kuc-base-label-1-18-0
|
||
.text="${this.label}"
|
||
.requiredIcon="${this.requiredIcon}"
|
||
></kuc-base-label-1-18-0>
|
||
</label>
|
||
<div
|
||
class="kuc-attachment-1-18-0__group__files ${this.disabled?" kuc-attachment-1-18-0__group__files--disabled":""}"
|
||
@dragenter="${this._handleDragEnter}"
|
||
@dragover="${this._handleDragOver}"
|
||
@dragleave="${this._handleDragLeave}"
|
||
@drop="${this._handleDragDrop}"
|
||
>
|
||
<div
|
||
class="kuc-attachment-1-18-0__group__files__droppable"
|
||
?hidden="${!this._isDraging}"
|
||
>
|
||
<div class="kuc-attachment-1-18-0__group__files__droppable__text">${this._locale.ATTACHMENT_DRAG_DROP_ZONE}</div>
|
||
</div>
|
||
<ul
|
||
class="kuc-attachment-1-18-0__group__files__display-area${this._isDraging?" kuc-attachment-1-18-0__group__files__not-droppable--dragenter":""}"
|
||
>
|
||
${this.files.map(((e,t)=>this._getAttachmentItemTemplate(e,t)))}
|
||
</ul>
|
||
<div class="kuc-attachment-1-18-0__group__files__browse-button${this._isDraging?" kuc-attachment-1-18-0__group__files__not-droppable--dragenter":""}"
|
||
?hidden="${this.disabled}">
|
||
<span class="kuc-attachment-1-18-0__group__files__browse-button__text">${this._locale.ATTACHMENT_BROWSE}</span>
|
||
<div class="kuc-attachment-1-18-0__group__files__browse-button__input-container">
|
||
<input class="kuc-attachment-1-18-0__group__files__browse-button__input-container__input" type="file" multiple
|
||
.id="${this._GUID}-input"
|
||
aria-required="${this.requiredIcon}"
|
||
aria-invalid="${this.error}"
|
||
aria-describedby="${this._GUID}-error"
|
||
@change="${this._handleChangeFiles}"></input>
|
||
</div>
|
||
</div>
|
||
<p class="kuc-attachment-1-18-0__group__files__browse-message${this.disabled?" kuc-attachment-1-18-0__group__files__browse-message--disabled":""}"
|
||
?hidden="${!this.message}"
|
||
>
|
||
${this.message}
|
||
</p>
|
||
</div>
|
||
<kuc-base-error-1-18-0
|
||
class="kuc-attachment-1-18-0__error"
|
||
?hidden="${!this.error}"
|
||
.text="${this.error}"
|
||
.guid="${this._GUID}"
|
||
></kuc-base-error-1-18-0>
|
||
</div>
|
||
`}_getAttachmentItemTemplate(e,t){return kt`
|
||
<li class="kuc-attachment-1-18-0__group__files__display-area__item">
|
||
<div
|
||
title="${e.name||""}"
|
||
class="kuc-attachment-1-18-0__group__files__display-area__item__name"
|
||
>
|
||
${e.name||""}
|
||
</div>
|
||
<div
|
||
class="kuc-attachment-1-18-0__group__files__display-area__item__remove-button__container"
|
||
?hidden="${this.disabled}"
|
||
>
|
||
<button
|
||
class="kuc-attachment-1-18-0__group__files__display-area__item__remove-button__container__button"
|
||
aria-label="Cancel File"
|
||
data-file-index="${t}"
|
||
@click="${this._handleClickFileRemove}"
|
||
tabindex="0"
|
||
>
|
||
${this._getRemoveButtonIcon()}
|
||
</button>
|
||
</div>
|
||
<span class="kuc-attachment-1-18-0__group__files__display-area__item__size">
|
||
${this._getFileSize(e.size)}
|
||
</span>
|
||
</li>
|
||
`}async updated(e){await this.updateComplete,this._updateFileNameMaxWidth()}_updateFileNameMaxWidth(){const e=this._labelEl.getBoundingClientRect().width;this._fileItemsEl.forEach((t=>{t.style.maxWidth=`calc(var(--kuc-attachment-width, ${e<191?191:e}px) - 14px)`}))}_getRemoveButtonIcon(){return xt`<svg
|
||
xmlns="http://www.w3.org/2000/svg"
|
||
width="14"
|
||
height="14"
|
||
viewBox="0 0 14 14"
|
||
fill="none"
|
||
>
|
||
<path
|
||
fill-rule="evenodd"
|
||
clip-rule="evenodd"
|
||
d="M5.93933 7.00001L1.96966 3.03034L1.43933 2.50001L2.49999 1.43935L3.03032 1.96968L6.99999 5.93935L10.9697 1.96968L11.5 1.43935L12.5607 2.50001L12.0303 3.03034L8.06065 7.00001L12.0303 10.9697L12.5607 11.5L11.5 12.5607L10.9697 12.0303L6.99999 8.06067L3.03032 12.0303L2.49999 12.5607L1.43933 11.5L1.96966 10.9697L5.93933 7.00001Z"
|
||
fill="#a8a8a8"
|
||
/>
|
||
</svg>`}_getLanguage(){const e=["en","ja","zh","zh-TW","es"];return-1!==e.indexOf(this.language)?this.language:-1!==e.indexOf(document.documentElement.lang)?document.documentElement.lang:"en"}_getLocale(){switch(this._getLanguage()){case"en":default:return vn;case"zh":return kn;case"zh-TW":return xn;case"ja":return yn;case"es":return wn}}_handleClickFileRemove(e){const t=e.currentTarget,n=parseInt(t.getAttribute("data-file-index"),10);if(this.files){n===this.files.length-1&&this._inputEl.focus();const e=[...this.files];this.files.splice(n,1);const t={oldFiles:e,files:this.files,type:"remove-file",fileIndex:[n]};Zi(this,"change",t),this.requestUpdate(),n<=this.files.length-1&&this._fileRemoveButtons[n].focus()}}_handleClickLabel(e){e.preventDefault()}_handleDragEnter(e){if(!this.disabled&&(this._dragEnterCounter++,1===this._dragEnterCounter&&this._isFileOrDirectoryDrag(e))){e.preventDefault();const t=2,n=1;this._groupFilesEl.style.height=this._groupFilesEl.getBoundingClientRect().height+"px",this._dragTextEl.style.width=this._groupFilesEl.getBoundingClientRect().width-2*n+"px",this._dragTextEl.style.height=this._groupFilesEl.getBoundingClientRect().height-2*(n+t)+"px",this._isDraging=!0}}_handleDragOver(e){this.disabled||(e.stopPropagation(),this._isFileOrDirectoryDrag(e)&&e.preventDefault())}_handleDragDrop(e){!this.disabled&&this._isDraging&&(e.preventDefault(),this._handleDragLeave(),this._isFileDrop(e)&&this._addFiles(e))}_isFileDrop(e){var t;if(e.dataTransfer&&e.dataTransfer.items)for(let n=0;n<e.dataTransfer.items.length;n++)if("function"==typeof e.dataTransfer.items[n].webkitGetAsEntry&&(null===(t=e.dataTransfer.items[n].webkitGetAsEntry())||void 0===t?void 0:t.isDirectory))return!1;return!0}_handleDragLeave(){this.disabled||(this._dragEnterCounter--,0===this._dragEnterCounter&&(this._groupFilesEl.style.height="var(--kuc-attachment-height, auto)",this._isDraging=!1))}_handleChangeFiles(e){e.preventDefault(),e.stopPropagation(),this._addFiles(e)}_addFiles(e){if(this.files){let t=e.dataTransfer?e.dataTransfer.files:e.target.files;t=Object.keys(t).map((e=>t[e]));const n=[...this.files],i=t.map(((e,t)=>n.length+t));t.forEach((e=>this.files.push(e)));const r={oldFiles:n,files:this.files,type:"add-file",fileIndex:i};Zi(this,"change",r),this.requestUpdate()}this._inputEl.value=""}_getFileSize(e){return"number"==typeof e?this._formatFileSize(e):/^[1-9]\d*$/.test(e)?this._formatFileSize(parseInt(e,10)):"NaN size"}_formatFileSize(e){return e>=mn?Math.round(e/mn)+" GB":e>=bn?Math.round(e/bn)+" MB":e>=1024?Math.round(e/1024)+" KB":Math.round(e)+" bytes"}}_r([on({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),_r([on({type:String})],e.prototype,"error",void 0),_r([on({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),_r([on({type:String})],e.prototype,"label",void 0),_r([on({type:String,attribute:"lang",reflect:!0,converter:Hi})],e.prototype,"language",void 0),_r([on({type:String})],e.prototype,"message",void 0),_r([on({type:Boolean})],e.prototype,"disabled",void 0),_r([on({type:Boolean})],e.prototype,"requiredIcon",void 0),_r([on({type:Boolean,attribute:"hidden",reflect:!0,converter:ji})],e.prototype,"visible",void 0),_r([on({type:Array})],e.prototype,"files",void 0),_r([cn()],e.prototype,"_isDraging",void 0),_r([_n(".kuc-attachment-1-18-0__group__files")],e.prototype,"_groupFilesEl",void 0),_r([_n(".kuc-attachment-1-18-0__group__files__droppable__text")],e.prototype,"_dragTextEl",void 0),_r([_n(".kuc-attachment-1-18-0__group__files__browse-button__input-container__input")],e.prototype,"_inputEl",void 0),_r([_n(".kuc-attachment-1-18-0__group__label")],e.prototype,"_labelEl",void 0),_r([gn(".kuc-attachment-1-18-0__group__files__display-area__item__name")],e.prototype,"_fileItemsEl",void 0),_r([gn(".kuc-attachment-1-18-0__group__files__display-area__item__remove-button__container__button")],e.prototype,"_fileRemoveButtons",void 0),window.customElements.define("kuc-attachment-1-18-0",e),Xi('\n kuc-attachment-1-18-0,\n kuc-attachment-1-18-0 *,\n kuc-attachment-1-18-0:lang(en),\n kuc-attachment-1-18-0:lang(en) * {\n font-family: sans-serif;\n }\n kuc-attachment-1-18-0:lang(ja),\n kuc-attachment-1-18-0:lang(ja) * {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo,\n sans-serif;\n }\n kuc-attachment-1-18-0:lang(zh),\n kuc-attachment-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", sans-serif;\n }\n kuc-attachment-1-18-0:lang(zh-TW),\n kuc-attachment-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC",sans-serif;\n }\n kuc-attachment-1-18-0:lang(es),\n kuc-attachment-1-18-0:lang(es) * {\n font-family: sans-serif;\n }\n kuc-attachment-1-18-0 {\n font-size: 14px;\n display: inline-table;\n vertical-align: top;\n width: var(--kuc-attachment-width, 191px);\n min-width: var(--kuc-attachment-width, 191px);\n }\n kuc-attachment-1-18-0[hidden] {\n display: none;\n }\n .kuc-attachment-1-18-0__group {\n width: 100%;\n height: auto;\n box-sizing: border-box;\n position: relative;\n display: block;\n }\n .kuc-attachment-1-18-0__group__label {\n display: inline-block;\n padding: 4px 0 8px 0;\n color: #333333;\n white-space: nowrap;\n }\n .kuc-attachment-1-18-0__group__label[hidden] {\n display: none;\n }\n .kuc-attachment-1-18-0__group__files {\n border: solid 1px #e3e7e8;\n background-color: #eeeeee;\n padding: 16px 4px;\n display: block;\n font-size: 14px;\n overflow: hidden;\n position: relative;\n box-sizing: border-box;\n width: var(--kuc-attachment-width, auto);\n height: var(--kuc-attachment-height, auto);\n }\n .kuc-attachment-1-18-0__group__files--disabled {\n cursor: not-allowed;\n }\n .kuc-attachment-1-18-0__group__files__browse-button {\n border: 1px solid transparent;\n position: relative;\n display: inline-block;\n margin-right: 16px;\n padding: 8px;\n text-decoration: none;\n }\n .kuc-attachment-1-18-0__group__files__browse-button[hidden]{\n display: none;\n }\n .kuc-attachment-1-18-0__group__files__browse-button:focus-within {\n border: 1px solid #3498db;\n }\n .kuc-attachment-1-18-0__group__files__browse-button:hover\n .kuc-attachment-1-18-0__group__files__browse-button__text {\n color: #217dbb;\n }\n .kuc-attachment-1-18-0__group__files__browse-button__text {\n color: #3498db;\n font-size: 14px;\n }\n .kuc-attachment-1-18-0__group__files__browse-button__input-container {\n opacity: 0;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n display: inline-block;\n }\n .kuc-attachment-1-18-0__group__files__browse-button__input-container__input {\n cursor: pointer;\n font-size: 999px;\n vertical-align: middle;\n height: 100%;\n width: 100%;\n line-height: 1.5;\n }\n .kuc-attachment-1-18-0__group__files__display-area {\n padding-inline-start: 0px;\n list-style-type: disc;\n margin-block-start: 0em;\n margin-block-end: 0em;\n }\n .kuc-attachment-1-18-0__group__files__display-area__item {\n position: relative;\n margin-bottom: 8px;\n height: auto;\n min-height: 24px;\n border: 2px solid #f1f4f5;\n background-color: #f1f4f5;\n list-style: none;\n display: flex;\n align-items: center;\n }\n .kuc-attachment-1-18-0__group__files__display-area__item__name {\n display: inline-block;\n padding: 3px calc(4.6em + 4px) 3px 26px;\n width: 100%;\n max-width: 177px;\n box-sizing: border-box;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n word-wrap: normal;\n font-size: var(--kuc-attachment-item-font-size, 14px);\n line-height: 1.2;\n }\n .kuc-attachment-1-18-0__group__files__display-area__item__remove-button__container {\n display: inline-block;\n position: absolute;\n top: calc(50% - 12px);\n left: 0;\n width: 24px;\n height: 24px;\n }\n .kuc-attachment-1-18-0__group__files__display-area__item__remove-button__container[hidden] {\n display: none;\n }\n .kuc-attachment-1-18-0__group__files__display-area__item__remove-button__container__button {\n background-color: #f2f4f6;\n display: flex;\n align-items: center;\n justify-content: center;\n border: 1px solid transparent;\n padding: 0px;\n width:100%;\n height:100%;\n }\n .kuc-attachment-1-18-0__group__files__display-area__item__remove-button__container__button:hover {\n background: #d8e1e6;\n }\n .kuc-attachment-1-18-0__group__files__display-area__item__remove-button__container__button:focus-within {\n border: 1px solid #3498db;\n }\n .kuc-attachment-1-18-0__group__files__display-area__item__remove-button__container__button:focus {\n outline: none;\n }\n .kuc-attachment-1-18-0__group__files__display-area__item__size {\n display: inline-block;\n position: absolute;\n right: 0;\n color: #888888;\n padding: 0 3px 0 0;\n max-width: 4.6em;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n word-wrap: normal;\n font-size: var(--kuc-attachment-item-font-size, 14px);\n line-height: 1.2;\n }\n .kuc-attachment-1-18-0__group__files__droppable {\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n margin: auto 0;\n }\n .kuc-attachment-1-18-0__group__files__droppable[hidden] {\n display: none;\n }\n .kuc-attachment-1-18-0__group__files__droppable__text {\n background-color: #e2f2fe;\n border: dashed 2px #3498db;\n display: table-cell;\n vertical-align: middle;\n text-align: center;\n color: #3498db;\n font-size: 14px;\n }\n .kuc-attachment-1-18-0__group__files__browse-message {\n display: inline-block;\n color: var(--kuc-attachment-message-color, #888888);\n font-size: var(--kuc-attachment-message-font-size, 14px);\n margin: 3px 0 0;\n word-break: break-all;\n }\n .kuc-attachment-1-18-0__group__files__browse-message--disabled {\n color: #888888;\n }\n .kuc-attachment-1-18-0__group__files__browse-message[hidden] {\n display: none;\n }\n .kuc-attachment-1-18-0__group__files__not-droppable--dragenter {\n visibility: hidden;\n }\n'),gr=e}})();const br=gr;var mr=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let vr;(()=>{if(vr=window.customElements.get("kuc-button-1-18-0"),!vr){class e extends Ji{constructor(e){super(),this.className="",this.id="",this.text="",this.type="normal",this.content="",this.disabled=!1,this.visible=!0;const t=rr(e);Object.assign(this,t)}_handleClickButton(e){e.stopPropagation(),Zi(this,"click")}_getButtonColorType(){return"normal"===this.type||"submit"===this.type||"alert"===this.type?this.type:"normal"}render(){return kt`
|
||
<button
|
||
type="button"
|
||
class="kuc-button-1-18-0__button kuc-button-1-18-0__button--${this._getButtonColorType()}"
|
||
?disabled="${this.disabled}"
|
||
@click="${this._handleClickButton}"
|
||
>
|
||
${this.content?Bi(this.content):this.text}
|
||
</button>
|
||
`}}mr([on({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),mr([on({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),mr([on({type:String})],e.prototype,"text",void 0),mr([on({type:String})],e.prototype,"type",void 0),mr([on()],e.prototype,"content",void 0),mr([on({type:Boolean})],e.prototype,"disabled",void 0),mr([on({type:Boolean,attribute:"hidden",reflect:!0,converter:ji})],e.prototype,"visible",void 0),window.customElements.define("kuc-button-1-18-0",e),Xi('\n kuc-button-1-18-0,\n kuc-button-1-18-0 *,\n kuc-button-1-18-0:lang(en),\n kuc-button-1-18-0:lang(en) * {\n font-family: sans-serif;\n }\n kuc-button-1-18-0:lang(es),\n kuc-button-1-18-0:lang(es) * {\n font-family: sans-serif;\n }\n kuc-button-1-18-0:lang(ja),\n kuc-button-1-18-0:lang(ja) * {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;\n }\n kuc-button-1-18-0:lang(zh),\n kuc-button-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti, Hei,\n "Heiti SC", sans-serif;\n }\n kuc-button-1-18-0:lang(zh-TW),\n kuc-button-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC",sans-serif;\n }\n kuc-button-1-18-0 {\n display: inline-block;\n vertical-align: top;\n }\n kuc-button-1-18-0[hidden] {\n display: none;\n }\n .kuc-button-1-18-0__button {\n display: grid;\n align-items: center;\n align-content: center;\n font-size: var(--kuc-button-font-size, 16px);\n width: var(--kuc-button-width, "auto");\n height: var(--kuc-button-height, 48px);\n min-width: var(--kuc-button-width, 163px);\n padding: 0px 16px;\n user-select: none;\n white-space: nowrap;\n }\n .kuc-button-1-18-0__button--normal {\n background-color: var(--kuc-button-background-color, #f7f9fa);\n color: var(--kuc-button-text-color, #3498db);\n border: 1px solid #e3e7e8;\n }\n .kuc-button-1-18-0__button--normal:hover,\n .kuc-button-1-18-0__button--normal:focus-visible,\n .kuc-button-1-18-0__button--normal:active {\n cursor: pointer;\n }\n .kuc-button-1-18-0__button--normal:hover {\n background-color: var(--kuc-button-background-color-hover, #c8d6dd);\n }\n .kuc-button-1-18-0__button--normal:focus-visible {\n background-color: var(--kuc-button-background-color-focus, #c8d6dd);\n }\n .kuc-button-1-18-0__button--normal:active {\n background-color: var(--kuc-button-background-color-active, #c8d6dd);\n }\n .kuc-button-1-18-0__button--submit {\n background-color: var(--kuc-button-background-color, #3498db);\n color: var(--kuc-button-text-color, #ffffff);\n border: 1px solid #e3e7e8;\n }\n .kuc-button-1-18-0__button--submit:hover,\n .kuc-button-1-18-0__button--submit:focus-visible,\n .kuc-button-1-18-0__button--submit:active {\n cursor: pointer;\n }\n .kuc-button-1-18-0__button--submit:hover {\n background-color: var(--kuc-button-background-color-hover, #1d6fa5);\n }\n .kuc-button-1-18-0__button--submit:focus-visible {\n background-color: var(--kuc-button-background-color-focus, #1d6fa5);\n }\n .kuc-button-1-18-0__button--submit:active {\n background-color: var(--kuc-button-background-color-active, #1d6fa5);\n }\n .kuc-button-1-18-0__button--alert {\n background-color: var(--kuc-button-background-color, #e74c3c);\n color: var(--kuc-button-text-color, #ffffff);\n border: 1px solid #e3e7e8;\n }\n .kuc-button-1-18-0__button--alert:hover,\n .kuc-button-1-18-0__button--alert:focus-visible,\n .kuc-button-1-18-0__button--alert:active {\n cursor: pointer;\n }\n .kuc-button-1-18-0__button--alert:hover {\n background-color: var(--kuc-button-background-color-hover, #bf2718);\n }\n .kuc-button-1-18-0__button--alert:focus-visible {\n background-color: var(--kuc-button-background-color-focus, #bf2718);\n }\n .kuc-button-1-18-0__button--alert:active {\n background-color: var(--kuc-button-background-color-active, #bf2718);\n }\n .kuc-button-1-18-0__button:disabled {\n background-color: #d4d7d7;\n border: 1px solid #e3e7e8;\n color: #888888;\n cursor: not-allowed;\n }\n .kuc-button-1-18-0__button--normal:focus-visible,\n .kuc-button-1-18-0__button--submit:focus-visible,\n .kuc-button-1-18-0__button--alert:focus-visible {\n outline: 1px solid #3498db;\n }\n'),vr=e}})();const yr=vr;var kr=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let xr;(()=>{if(xr=window.customElements.get("kuc-checkbox-1-18-0"),!xr){class e extends Ji{constructor(e){super(),this.className="",this.error="",this.id="",this.itemLayout="horizontal",this.label="",this.borderVisible=!0,this.disabled=!1,this.requiredIcon=!1,this.visible=!0,this.items=[],this.selectedIndex=[],this.value=[],this._valueMapping={},this._GUID=Qi();const t=rr(e);this._setInitialValue(t),Object.assign(this,t)}_setInitialValue(e){const t="value"in e,n="selectedIndex"in e,i=e.selectedIndex||[];if(!t&&n){if(!fr(i))return;const t=this._getValueMapping(e);this.value=this._getValidValue(t,i)}}shouldUpdate(e){return e.has("items")&&!fr(this.items)?(this.throwErrorAfterUpdateComplete(En),!1):e.has("value")&&!fr(this.value)?(this.throwErrorAfterUpdateComplete(An),!1):!(e.has("selectedIndex")&&!fr(this.selectedIndex)&&(this.throwErrorAfterUpdateComplete(On),1))}willUpdate(e){if(e.has("value")){if(this.value.length>0)return;this.selectedIndex=[]}}_getNewValueMapping(e,t){const n=parseInt(t,10),i=Object.keys(this._valueMapping),r={...this._valueMapping};return i.indexOf(t)>-1?(delete r[n],r):(r[n]=e,r)}_handleChangeInput(e){e.stopPropagation();const t=e.target,n=t.dataset.index||"0",i=t.value,r=this.value?[...this.value]:this.value,o=this._getNewValueMapping(i,n),a=this.items.map((e=>e.value)),s=Object.values(o).filter((e=>a.indexOf(e)>-1));if(s===r)return;const l=Object.keys(o).map((e=>parseInt(e,10)));this.value=s,this.selectedIndex=l,Zi(this,"change",{oldValue:r,value:s})}_handleFocusInput(e){e.target.parentNode.setAttribute("focused","")}_handleBlurInput(e){e.target.parentNode.removeAttribute("focused")}_getCheckboxIconSvgTemplate(e,t){return xt`
|
||
<svg
|
||
class="kuc-checkbox-1-18-0__group__select-menu__item__label__icon"
|
||
width="21"
|
||
height="21"
|
||
viewBox="0 0 21 21"
|
||
fill="none"
|
||
xmlns="http://www.w3.org/2000/svg"
|
||
>
|
||
<rect
|
||
x="1"
|
||
y="1"
|
||
width="19"
|
||
height="19"
|
||
rx="1"
|
||
fill="white"
|
||
stroke="${this._getSVGStrokeValue(e,t)}"
|
||
stroke-width="2"/>
|
||
${t?xt`<path
|
||
fill-rule="evenodd"
|
||
clip-rule="evenodd"
|
||
d="M5 11L6.5 9L9.5 11.5L14.5 6L16 7.5L9.5 14.5L5 11Z"
|
||
fill="${e?"#d8d8d8":"#3498db"}"/>`:""}
|
||
</svg>
|
||
`}_getSVGStrokeValue(e,t){return e?"#d8d8d8":t?"#3498db":"#d8d8d8"}_isCheckedItem(e,t){const n=Object.values(this._valueMapping),i=Object.keys(this._valueMapping);return n.filter(((n,r)=>n===e.value&&t===parseInt(i[r],10))).length>0}_getItemTemplate(e,t){const n=this._isCheckedItem(e,t),i=e.disabled||this.disabled;return kt`
|
||
<div
|
||
class="kuc-checkbox-1-18-0__group__select-menu__item"
|
||
itemLayout="${this.itemLayout}"
|
||
>
|
||
<input
|
||
type="checkbox"
|
||
aria-describedby="${this._GUID}-error"
|
||
aria-required="${this.requiredIcon}"
|
||
data-index="${t}"
|
||
id="${this._GUID}-item-${t}"
|
||
class="kuc-checkbox-1-18-0__group__select-menu__item__input"
|
||
name="${this._GUID}-group"
|
||
value="${void 0!==e.value?e.value:""}"
|
||
?disabled="${i}"
|
||
@change="${this._handleChangeInput}"
|
||
@focus="${this._handleFocusInput}"
|
||
@blur="${this._handleBlurInput}"
|
||
/>
|
||
<label
|
||
for="${this._GUID}-item-${t}"
|
||
class="kuc-checkbox-1-18-0__group__select-menu__item__label"
|
||
>${this._getCheckboxIconSvgTemplate(i,n)}${void 0===e.label?e.value:e.label}
|
||
</label>
|
||
</div>
|
||
`}update(e){(e.has("items")||e.has("value")||e.has("selectedIndex"))&&(this._valueMapping=this._getValueMapping({items:this.items,value:this.value,selectedIndex:this.selectedIndex}),this._setValueAndSelectedIndex()),super.update(e)}render(){return kt`
|
||
<div
|
||
class="kuc-checkbox-1-18-0__group"
|
||
role="group"
|
||
aria-labelledby="${this._GUID}-group"
|
||
>
|
||
<div class="kuc-checkbox-1-18-0__group__label" ?hidden="${!this.label}">
|
||
<kuc-base-label-1-18-0
|
||
.text="${this.label}"
|
||
.guid="${this._GUID}"
|
||
.requiredIcon="${this.requiredIcon}"
|
||
></kuc-base-label-1-18-0>
|
||
</div>
|
||
<div
|
||
class="kuc-checkbox-1-18-0__group__select-menu"
|
||
?borderVisible="${this.borderVisible}"
|
||
itemLayout="${this.itemLayout}"
|
||
>
|
||
${this.items.map(((e,t)=>this._getItemTemplate(e,t)))}
|
||
</div>
|
||
<kuc-base-error-1-18-0
|
||
.text="${this.error}"
|
||
.guid="${this._GUID}"
|
||
?hidden="${!this.error}"
|
||
ariaLive="assertive"
|
||
></kuc-base-error-1-18-0>
|
||
</div>
|
||
`}updated(){this._inputEls.forEach((e=>{e.checked=this.value.indexOf(e.value)>-1}))}_getValueMapping(e){const t=e.items||[],n=e.value||[],i=e.selectedIndex||[],r=t.map((e=>e.value||"")),o=Object.assign({},r),a={};if(0===n.length){const e=this._getValidValue(o,i);return i.forEach(((t,n)=>a[t]=e[n])),a}return this._getValidSelectedIndex(o).forEach(((e,t)=>a[e]=n[t])),a}_getValidValue(e,t){return t.filter((t=>e[t])).map((t=>e[t]))}_getValidSelectedIndex(e){const t=[];for(let n=0;n<this.value.length;n++){const i=this.selectedIndex[n];if(e[i]===this.value[n]){t.push(i);continue}const r=this.items.findIndex((e=>e.value===this.value[n]));t.push(r)}return t}_setValueAndSelectedIndex(){this.value=Object.values(this._valueMapping),this.selectedIndex=Object.keys(this._valueMapping).map((e=>parseInt(e,10)))}}kr([on({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),kr([on({type:String})],e.prototype,"error",void 0),kr([on({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),kr([on({type:String})],e.prototype,"itemLayout",void 0),kr([on({type:String})],e.prototype,"label",void 0),kr([on({type:Boolean})],e.prototype,"borderVisible",void 0),kr([on({type:Boolean})],e.prototype,"disabled",void 0),kr([on({type:Boolean})],e.prototype,"requiredIcon",void 0),kr([on({type:Boolean,attribute:"hidden",reflect:!0,converter:ji})],e.prototype,"visible",void 0),kr([on({type:Array})],e.prototype,"items",void 0),kr([on({type:Array})],e.prototype,"selectedIndex",void 0),kr([on({type:Array})],e.prototype,"value",void 0),kr([gn(".kuc-checkbox-1-18-0__group__select-menu__item__input")],e.prototype,"_inputEls",void 0),kr([cn()],e.prototype,"_valueMapping",void 0),window.customElements.define("kuc-checkbox-1-18-0",e),Xi('\n kuc-checkbox-1-18-0,\n kuc-checkbox-1-18-0 *,\n kuc-checkbox-1-18-0:lang(en),\n kuc-checkbox-1-18-0:lang(en) * {\n font-family: sans-serif;\n }\n kuc-checkbox-1-18-0:lang(es),\n kuc-checkbox-1-18-0:lang(es) * {\n font-family: sans-serif;\n }\n kuc-checkbox-1-18-0:lang(ja),\n kuc-checkbox-1-18-0:lang(ja) * {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo,\n sans-serif;\n }\n kuc-checkbox-1-18-0:lang(zh),\n kuc-checkbox-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", sans-serif;\n }\n kuc-checkbox-1-18-0:lang(zh-TW),\n kuc-checkbox-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC",sans-serif;\n }\n kuc-checkbox-1-18-0 {\n font-size: 14px;\n color: #333333;\n display: inline-table;\n vertical-align: top;\n width: var(--kuc-checkbox-menu-width, 239px);\n min-width: var(--kuc-checkbox-menu-width, 239px);\n line-height: 1.5;\n }\n kuc-checkbox-1-18-0[hidden] {\n display: none;\n }\n .kuc-checkbox-1-18-0__group {\n border: none;\n padding: 0px;\n height: auto;\n display: inline-block;\n width: 100%;\n margin: 0px;\n }\n .kuc-checkbox-1-18-0__group__select-menu {\n white-space: nowrap;\n width: var(--kuc-checkbox-menu-width, auto);\n height: var(--kuc-checkbox-menu-height, auto);\n color: var(--kuc-checkbox-menu-color, #333333);\n font-size: var(--kuc-checkbox-menu-font-size, 14px);\n display: flex;\n align-items: flex-start;\n }\n .kuc-checkbox-1-18-0__group__select-menu[itemLayout="vertical"] {\n display: block;\n }\n .kuc-checkbox-1-18-0__group__label {\n display: inline-block;\n padding: 4px 0 8px 0;\n white-space: nowrap;\n }\n .kuc-checkbox-1-18-0__group__label[hidden] {\n display: none;\n }\n .kuc-checkbox-1-18-0__group__select-menu[borderVisible] {\n border-color: #e3e7e8;\n border-width: 1px;\n border-style: solid;\n padding: 4px 0 0 4px;\n }\n .kuc-checkbox-1-18-0__group__select-menu__item {\n margin-bottom: 4px;\n margin-right: 16px;\n padding: 4px;\n border: 1px solid transparent;\n position: relative;\n white-space: normal;\n word-wrap: normal;\n display: flex;\n align-items: center;\n }\n .kuc-checkbox-1-18-0__group__select-menu__item[focused] {\n border: 1px solid #3498db;\n }\n .kuc-checkbox-1-18-0__group__select-menu__item__input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n }\n .kuc-checkbox-1-18-0__group__select-menu__item__input:hover\n + .kuc-checkbox-1-18-0__group__select-menu__item__label {\n color: var(--kuc-checkbox-menu-color-hover, #666666);\n }\n .kuc-checkbox-1-18-0__group__select-menu__item__label__icon {\n position: absolute;\n left: -30px;\n box-sizing: border-box;\n width: 21px;\n height: 21px;\n box-shadow: 1px 1px 3px #f5f5f5 inset, -1px -1px 3px #f5f5f5 inset;\n content: "";\n }\n .kuc-checkbox-1-18-0__group__select-menu__item__input[disabled]\n + .kuc-checkbox-1-18-0__group__select-menu__item__label {\n color: #888888;\n cursor: not-allowed;\n }\n .kuc-checkbox-1-18-0__group__select-menu__item__label {\n cursor: pointer;\n position: relative;\n margin-left: 32px;\n display: flex;\n align-items: center;\n vertical-align: middle;\n white-space: nowrap;\n min-height: 24px;\n line-height: 1.2;\n }\n '),xr=e}})();const wr=xr;var Er=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Sr;(()=>{if(Sr=window.customElements.get("kuc-combobox-1-18-0"),!Sr){class e extends Ji{constructor(e){super(),this.className="",this.error="",this.id="",this.label="",this.value="",this.disabled=!1,this.requiredIcon=!1,this.visible=!0,this.items=[],this._selectorVisible=!1,this._searchText="",this._DISABLED_CLASS="kuc-combobox-1-18-0__group__select-menu__item--disabled",this._query="",this._matchingItems=[],this._GUID=Qi();const t=rr(e);this._handleClickDocument=this._handleClickDocument.bind(this),Object.assign(this,t)}shouldUpdate(e){if(e.has("items")){if(!fr(this.items))return this.throwErrorAfterUpdateComplete(En),!1;if(!dr(this.items.map((e=>e.value))))return this.throwErrorAfterUpdateComplete(Sn),!1}return!(e.has("value")&&!ur(this.value)&&(this.throwErrorAfterUpdateComplete(In),1))}willUpdate(e){e.has("value")&&(this._searchText=this._getSelectedLabel()||"")}render(){return kt`
|
||
<div class="kuc-combobox-1-18-0__group">
|
||
<div
|
||
class="kuc-combobox-1-18-0__group__label"
|
||
id="${this._GUID}-label"
|
||
?hidden="${!this.label}"
|
||
>
|
||
<kuc-base-label-1-18-0
|
||
.text="${this.label}"
|
||
.requiredIcon="${this.requiredIcon}"
|
||
></kuc-base-label-1-18-0>
|
||
</div>
|
||
<div class="kuc-combobox-1-18-0__group__toggle">
|
||
<input
|
||
class="kuc-combobox-1-18-0__group__toggle__input"
|
||
role="combobox"
|
||
type="text"
|
||
.value="${this._searchText}"
|
||
aria-haspopup="listbox"
|
||
aria-autocomplete="list"
|
||
aria-labelledby="${this._GUID}-label"
|
||
aria-controls="${this._GUID}-listbox"
|
||
aria-describedby="${this._GUID}-error"
|
||
aria-expanded="${this._selectorVisible}"
|
||
aria-required="${this.requiredIcon}"
|
||
?disabled="${this.disabled}"
|
||
@change="${this._handleChangeComboboxInput}"
|
||
@input="${this._handleInputComboboxInput}"
|
||
@keydown="${this._handleKeyDownComboboxInput}"
|
||
@click="${this._handleClickComboboxInput}"
|
||
@blur="${this._handleBlurComboboxInput}"
|
||
/>
|
||
<div class="kuc-combobox-1-18-0__group__toggle__icon">
|
||
<button
|
||
class="kuc-combobox-1-18-0__group__toggle__icon__button"
|
||
tabindex="-1"
|
||
type="button"
|
||
aria-labelledby="${this._GUID}-label"
|
||
aria-controls="${this._GUID}-listbox"
|
||
aria-expanded="${this._selectorVisible}"
|
||
?disabled="${this.disabled}"
|
||
@click="${this._handleClickToggleButton}"
|
||
>
|
||
${this._getToggleIconSvgTemplate()}
|
||
</button>
|
||
</div>
|
||
</div>
|
||
<ul
|
||
class="kuc-combobox-1-18-0__group__select-menu"
|
||
role="listbox"
|
||
id="${this._GUID}-listbox"
|
||
aria-labelledby="${this._GUID}-label"
|
||
aria-hidden="${!this._selectorVisible}"
|
||
?hidden="${!this._selectorVisible}"
|
||
@mouseleave="${this._handleMouseLeaveMenu}"
|
||
@mousedown="${this._handleMouseDownMenu}"
|
||
>
|
||
${this._matchingItems.map(((e,t)=>this._getItemTemplate(e,t)))}
|
||
</ul>
|
||
<kuc-base-error-1-18-0
|
||
.text="${this.error}"
|
||
.guid="${this._GUID}"
|
||
?hidden="${!this.error}"
|
||
ariaLive="assertive"
|
||
></kuc-base-error-1-18-0>
|
||
</div>
|
||
`}firstUpdated(){window.addEventListener("resize",(()=>{this._actionResizeScrollWindow()})),window.addEventListener("scroll",(()=>{this._actionResizeScrollWindow()}))}async updated(e){super.updated(e),await this.updateComplete,this._selectorVisible?(this._setMenuPosition(),this._scrollToView(),null===this._selectedItemEl||this._selectedItemEl.classList.contains(this._DISABLED_CLASS)?this._actionClearAllHighlightMenuItem():this._setHighlightAndActiveDescendantMenu(this._selectedItemEl),setTimeout((()=>{document.addEventListener("click",this._handleClickDocument,!0)}),1)):setTimeout((()=>{document.removeEventListener("click",this._handleClickDocument,!0)}),1)}_getToggleIconSvgTemplate(){return xt`
|
||
<svg
|
||
width="36"
|
||
height="36"
|
||
viewBox="0 0 36 36"
|
||
fill="none"
|
||
xmlns="http://www.w3.org/2000/svg"
|
||
>
|
||
<path
|
||
fill-rule="evenodd"
|
||
clip-rule="evenodd"
|
||
d="M24.2122 15.6665L25 16.1392L19.7332 21.4998H18.2668L13 16.1392L13.7878 15.6665L18.765 20.6866H19.235L24.2122 15.6665Z"
|
||
fill="#3498db"/>
|
||
</svg>
|
||
`}_getItemTemplate(e,t){const n=this._isCheckedItem(e),i=e.disabled,r=void 0===e.label?e.value:e.label;let o=n?kt`<b>${r}</b>`:kt`${r}`;const a=this._query.trim().toLowerCase();if(a&&r){const e=r.toLowerCase().indexOf(a),t=e+a.length;o=kt`
|
||
${r.slice(0,e)}<b>${r.slice(e,t)}</b>${r.slice(t)}
|
||
`}return kt`
|
||
<li
|
||
class="kuc-combobox-1-18-0__group__select-menu__item ${i?this._DISABLED_CLASS:""}"
|
||
role="option"
|
||
aria-selected="${n?"true":"false"}"
|
||
value="${void 0!==e.value?e.value:""}"
|
||
id="${this._GUID}-menuitem-${t}"
|
||
@mousedown="${i?null:this._handleMouseDownComboboxItem}"
|
||
@mouseover="${i?null:this._handleMouseOverComboboxItem}"
|
||
>
|
||
${this._getComboboxIconSvgTemplate(n,i)}
|
||
${o}
|
||
</li>
|
||
`}_getComboboxIconSvgTemplate(e,t){return xt`
|
||
${e?xt`<svg
|
||
class="kuc-combobox-1-18-0__group__select-menu__item__icon"
|
||
width="11"
|
||
height="9"
|
||
viewBox="0 0 11 9"
|
||
fill="none"
|
||
xmlns="http://www.w3.org/2000/svg"
|
||
>
|
||
<path
|
||
fill-rule="evenodd"
|
||
clip-rule="evenodd"
|
||
d="M0 5L1.5 3L4.5 5.5L9.5 0L11 1.5L4.5 8.5L0 5Z"
|
||
fill="${t?"#888888":"#3498db"}"/>
|
||
</svg>`:""}`}_handleMouseDownComboboxItem(e){const t=this._getItemElementWhenMouseOverDown(e.target).getAttribute("value");this._actionUpdateValue(t)}_handleMouseOverComboboxItem(e){const t=this._getItemElementWhenMouseOverDown(e.target);this._actionHighlightMenuItem(t)}_handleMouseLeaveMenu(){this._actionClearAllHighlightMenuItem()}_handleMouseDownMenu(e){e.preventDefault()}_handleClickToggleButton(e){e.preventDefault(),this._inputEl.focus(),this._inputEl.select(),this._resetToggleInputValue(),this._actionToggleMenu()}_handleInputComboboxInput(e){e.stopPropagation(),this._searchText=this._inputEl.value,this._query=this._inputEl.value,this._setMatchingItems()}_handleClickComboboxInput(e){e.stopPropagation(),this._inputEl.select(),this._setMatchingItems()}_handleChangeComboboxInput(e){e.stopPropagation()}_handleBlurComboboxInput(e){this._resetToggleInputValue()}_handleClickDocument(e){(e.target===this._toggleEl||this._toggleEl.contains(e.target))&&(this._inputEl.focus(),e.stopPropagation()),Array.from(this._disabledItemsEl).some((t=>t===e.target||t.contains(e.target)))||this._actionHideMenu()}_handleKeyDownComboboxInput(e){switch(e.key){case"Up":case"ArrowUp":if(e.preventDefault(),!this._selectorVisible){this._actionShowMenu();break}this._actionHighlightPrevMenuItem();break;case"Tab":this._selectorVisible&&this._actionHideMenu();break;case"Down":case"ArrowDown":if(e.preventDefault(),!this._selectorVisible){this._actionShowMenu();break}this._actionHighlightNextMenuItem();break;case"Enter":{e.preventDefault();const t=this._highlightItemEl;if(null===t)break;const n=t.getAttribute("value");this._actionUpdateValue(n),this._actionHideMenu();break}case"Escape":e.preventDefault(),this._selectorVisible&&e.stopPropagation(),this._resetToggleInputValue(),this._actionHideMenu();break;case"Home":this._selectorVisible&&(e.preventDefault(),this._actionHighlightFirstMenuItem());break;case"End":this._selectorVisible&&(e.preventDefault(),this._actionHighlightLastMenuItem())}}_getSelectedLabel(){const e=this.items.filter(((e,t)=>this._isCheckedItem(e)));return 0===e.length?"":void 0===e[0].label?e[0].value:e[0].label}_actionShowMenu(){""===this._query.trim()&&(this._matchingItems=this.items),0!==this.items.length&&0!==this._matchingItems.length&&(this._inputEl.focus(),this._selectorVisible=!0)}_actionHideMenu(){this._selectorVisible=!1,this._actionRemoveActiveDescendant()}_actionToggleMenu(){this._selectorVisible?this._actionHideMenu():this._actionShowMenu()}_actionHighlightFirstMenuItem(){let e=this._firstItemEl,t=!1;for(let n=0;n<this._matchingItems.length&&(t=e.classList.contains(this._DISABLED_CLASS),t);n++)e=e.nextElementSibling;!t&&this._setHighlightAndActiveDescendantMenu(e)}_actionHighlightLastMenuItem(){let e=this._lastItemEl,t=!1;for(let n=0;n<this._matchingItems.length&&(t=e.classList.contains(this._DISABLED_CLASS),t);n++)e=e.previousElementSibling;!t&&this._setHighlightAndActiveDescendantMenu(e)}_actionHighlightPrevMenuItem(){let e=null;null!==this._highlightItemEl&&(e=this._highlightItemEl.previousElementSibling),null===e&&(e=this._lastItemEl);let t=!1;for(let n=0;n<this._matchingItems.length&&(t=e.classList.contains(this._DISABLED_CLASS),t);n++)e=e.previousElementSibling,null===e&&(e=this._lastItemEl);!t&&this._setHighlightAndActiveDescendantMenu(e)}_actionHighlightNextMenuItem(){let e=null;null!==this._highlightItemEl&&(e=this._highlightItemEl.nextElementSibling),null===e&&(e=this._firstItemEl);let t=!1;for(let n=0;n<this._matchingItems.length&&(t=e.classList.contains(this._DISABLED_CLASS),t);n++)e=e.nextElementSibling,null===e&&(e=this._firstItemEl);!t&&this._setHighlightAndActiveDescendantMenu(e)}_actionClearAllHighlightMenuItem(){this._itemsEl.forEach((e=>{e.classList.remove("kuc-combobox-1-18-0__group__select-menu__highlight")})),this._actionRemoveActiveDescendant()}_setHighlightAndActiveDescendantMenu(e){this._actionHighlightMenuItem(e),this._actionSetActiveDescendant(e.id),this._scrollToView()}_actionHighlightMenuItem(e){this._actionClearAllHighlightMenuItem(),e.classList.add("kuc-combobox-1-18-0__group__select-menu__highlight")}_actionUpdateValue(e){if(this.value===e)return void this._resetToggleInputValue();const t={oldValue:this.value,value:e};this.value=e,this._query="",Zi(this,"change",t)}_actionSetActiveDescendant(e){void 0!==e&&null!==this._inputEl&&this._inputEl.setAttribute("aria-activedescendant",e)}_actionRemoveActiveDescendant(){this._inputEl.removeAttribute("aria-activedescendant")}_setMatchingItems(){const e=this.items.filter((e=>{const t=new RegExp(this._query.trim().replace(/[.*+?^=!:${}()|[\]/\\]/g,"\\$&"),"gi");return e.label?t.test(e.label):!!e.value&&t.test(e.value)}));0===e.length?(this._matchingItems=[],this._actionHideMenu()):(this._matchingItems=e,this._actionShowMenu())}_getScrollbarWidthHeight(){const e=document.createElement("div");e.style.cssText="overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e);const t=e.offsetWidth-e.clientWidth,n=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),{scrollbarWidth:t,scrollbarHeight:n}}_getDistanceToggleButton(){const{scrollbarWidth:e,scrollbarHeight:t}=this._getScrollbarWidthHeight(),n=document.body.scrollHeight>window.innerHeight,i=document.body.scrollWidth>window.innerWidth;return{toTop:this._toggleEl.getBoundingClientRect().top,toBottom:window.innerHeight-this._toggleEl.getBoundingClientRect().bottom-(i?t:0),toLeft:this._toggleEl.getBoundingClientRect().left,toRight:window.innerWidth-this._toggleEl.getBoundingClientRect().left-(n?e:0)}}_setMenuPositionAboveOrBelow(){this._menuEl.style.height="auto",this._menuEl.style.bottom="auto",this._menuEl.style.overflowY="";const e=this._menuEl.getBoundingClientRect().height,t=this._getDistanceToggleButton();if(!(t.toBottom>=e))if(t.toBottom<t.toTop){const n=this._errorEl.offsetHeight?this._errorEl.offsetHeight+16:0;if(this._menuEl.style.bottom=`${this._toggleEl.offsetHeight+n}px`,t.toTop>=e)return;this._menuEl.style.height=`${t.toTop}px`,this._menuEl.style.overflowY="scroll"}else this._menuEl.style.height=`${t.toBottom}px`,this._menuEl.style.overflowY="scroll"}_setMenuPositionLeftOrRight(){this._menuEl.style.right="auto";const e=this._menuEl.getBoundingClientRect().width,t=this._getDistanceToggleButton();if(t.toRight>=e||t.toLeft<e||t.toRight<0)return;const n=this._toggleEl.offsetWidth-t.toRight;this._menuEl.style.right=n>0?`${n}px`:"0px"}_setMenuPosition(){this._setMenuPositionAboveOrBelow(),this._setMenuPositionLeftOrRight()}_scrollToView(){if(!this._highlightItemEl||!this._menuEl)return;const e=this._menuEl.getBoundingClientRect(),t=this._highlightItemEl.getBoundingClientRect();t.top<e.top&&(this._menuEl.scrollTop-=e.top-t.top),e.bottom<t.bottom&&(this._menuEl.scrollTop+=t.bottom-e.bottom)}_actionResizeScrollWindow(){!this._timeoutID&&this._selectorVisible&&(this._timeoutID=window.setTimeout((()=>{this._timeoutID=null,this._setMenuPosition()}),50))}_isCheckedItem(e){return e.value===this.value}_resetToggleInputValue(){const e=this._getSelectedLabel();this._searchText!==e&&(this._searchText=e||""),this._query=""}_getItemElementWhenMouseOverDown(e){return e.classList.value.split(" ").includes("kuc-combobox-1-18-0__group__select-menu__item")?e:this._getItemElementWhenMouseOverDown(e.parentElement)}}Er([on({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),Er([on({type:String})],e.prototype,"error",void 0),Er([on({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),Er([on({type:String})],e.prototype,"label",void 0),Er([on({type:String})],e.prototype,"value",void 0),Er([on({type:Boolean})],e.prototype,"disabled",void 0),Er([on({type:Boolean})],e.prototype,"requiredIcon",void 0),Er([on({type:Boolean,attribute:"hidden",reflect:!0,converter:ji})],e.prototype,"visible",void 0),Er([on({type:Array})],e.prototype,"items",void 0),Er([cn()],e.prototype,"_selectorVisible",void 0),Er([_n(".kuc-combobox-1-18-0__group__toggle")],e.prototype,"_toggleEl",void 0),Er([_n(".kuc-combobox-1-18-0__group__toggle__input")],e.prototype,"_inputEl",void 0),Er([_n(".kuc-combobox-1-18-0__group__select-menu")],e.prototype,"_menuEl",void 0),Er([gn(".kuc-combobox-1-18-0__group__select-menu__item")],e.prototype,"_itemsEl",void 0),Er([_n(".kuc-combobox-1-18-0__group__select-menu__item")],e.prototype,"_firstItemEl",void 0),Er([_n(".kuc-combobox-1-18-0__group__select-menu__item:last-child")],e.prototype,"_lastItemEl",void 0),Er([_n(".kuc-combobox-1-18-0__group__select-menu__item[aria-selected=true]")],e.prototype,"_selectedItemEl",void 0),Er([_n(".kuc-combobox-1-18-0__group__select-menu__highlight")],e.prototype,"_highlightItemEl",void 0),Er([_n(".kuc-base-error-1-18-0__error")],e.prototype,"_errorEl",void 0),Er([gn(".kuc-combobox-1-18-0__group__select-menu__item--disabled")],e.prototype,"_disabledItemsEl",void 0),Er([cn()],e.prototype,"_searchText",void 0),window.customElements.define("kuc-combobox-1-18-0",e),Xi('\n kuc-combobox-1-18-0,\n kuc-combobox-1-18-0 *,\n kuc-combobox-1-18-0:lang(en),\n kuc-combobox-1-18-0:lang(en) * {\n font-family: sans-serif;\n }\n kuc-combobox-1-18-0:lang(es),\n kuc-combobox-1-18-0:lang(es) * {\n font-family: sans-serif;\n }\n kuc-combobox-1-18-0:lang(ja),\n kuc-combobox-1-18-0:lang(ja) * {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo,\n sans-serif;\n }\n kuc-combobox-1-18-0:lang(zh),\n kuc-combobox-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", sans-serif;\n }\n kuc-combobox-1-18-0:lang(zh-TW),\n kuc-combobox-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黑體", "Microsoft JhengHei", "新宋体", NSimSun, STHeiti, Hei, "Heiti SC", sans-serif;\n }\n kuc-combobox-1-18-0 {\n position: relative;\n display: inline-table;\n font-size: 14px;\n color: #333333;\n width: var(--kuc-combobox-toggle-width, 180px);\n vertical-align: top;\n line-height: 1.5;\n }\n kuc-combobox-1-18-0[hidden] {\n display: none;\n }\n .kuc-combobox-1-18-0__group {\n border: none;\n padding: 0px;\n height: auto;\n display: inline-block;\n width: 100%;\n margin: 0px;\n position: relative;\n }\n .kuc-combobox-1-18-0__group__label {\n padding: 4px 0px 8px 0px;\n display: inline-block;\n white-space: nowrap;\n }\n .kuc-combobox-1-18-0__group__label[hidden] {\n display: none;\n }\n .kuc-combobox-1-18-0__group__toggle {\n position: relative;\n display: flex;\n width: var(--kuc-combobox-toggle-width);\n }\n input[type=text].kuc-combobox-1-18-0__group__toggle__input {\n width: 100%;\n height: var(--kuc-combobox-toggle-height, 40px);\n box-sizing: border-box;\n box-shadow: 2px 2px 4px #f5f5f5 inset, -2px -2px 4px #f5f5f5 inset;\n border: 1px solid #e3e7e8;\n background-color: #ffffff;\n color: var(--kuc-combobox-toggle-color, #000000);\n font-size: var(--kuc-combobox-font-size, 14px);\n line-height: 1.5;\n padding: 0 40px 0 8px;\n margin: 0;\n }\n input[type=text].kuc-combobox-1-18-0__group__toggle__input:focus {\n outline: none;\n border: 1px solid #3498db;\n background-color: #e2f2fe;\n box-shadow: none;\n }\n input[type=text].kuc-combobox-1-18-0__group__toggle__input:disabled,\n .kuc-combobox-1-18-0__group__toggle__icon__button:disabled {\n background-color: #d4d7d7;\n box-shadow: none;\n cursor: not-allowed;\n color: #888888;\n }\n .kuc-combobox-1-18-0__group__toggle__icon {\n position: absolute;\n right: 0px;\n top: 2px;\n border-left: 1px solid #e3e7e8;\n }\n .kuc-combobox-1-18-0__group__toggle__icon__button {\n width: 40px;\n height: calc(var(--kuc-combobox-toggle-height, 40px) - 4px);\n display: flex;\n justify-content: center;\n align-items: center;\n margin: 0;\n padding: 0;\n border-style: none;\n background-color: transparent;\n cursor: pointer;\n }\n .kuc-combobox-1-18-0__group__select-menu {\n min-width: 280px;\n color: var(--kuc-combobox-menu-color);\n padding: 8px 0;\n border: 1px solid #e3e7e8;\n box-sizing: border-box;\n background-color: #ffffff;\n box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);\n position: absolute;\n z-index: 2000;\n margin: 0;\n list-style: none;\n }\n .kuc-combobox-1-18-0__group__select-menu[hidden] {\n display: none;\n }\n .kuc-combobox-1-18-0__group__select-menu__item {\n font-size: var(--kuc-combobox-font-size, 14px);\n padding: 8px 16px 8px 24px;\n line-height: 1;\n position: relative;\n cursor: pointer;\n white-space: nowrap;\n }\n .kuc-combobox-1-18-0__group__select-menu__item:lang(en) b,\n .kuc-combobox-1-18-0__group__select-menu__item:lang(ja) b,\n .kuc-combobox-1-18-0__group__select-menu__item:lang(zh) b,\n .kuc-combobox-1-18-0__group__select-menu__item:lang(zh-TW) b{\n font-weight: 700;\n }\n .kuc-combobox-1-18-0__group__select-menu__item__icon {\n position: absolute;\n top: 50%;\n left: 6px;\n margin-top: -5px;\n }\n .kuc-combobox-1-18-0__group__select-menu__item[aria-selected="true"] {\n color: var(--kuc-combobox-menu-color-selected, #3498db);\n }\n .kuc-combobox-1-18-0__group__select-menu__item--disabled,\n .kuc-combobox-1-18-0__group__select-menu__item--disabled[aria-selected="true"] {\n background-color: #d4d7d7;\n cursor: not-allowed;\n color: #888888;\n }\n .kuc-combobox-1-18-0__group__select-menu__highlight[role="option"] {\n background-color: #e2f2fe;\n }\n'),Sr=e}})();const Cr=Sr;var Tr=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class Ar extends Ji{constructor(){super(),this.year=(new Date).getFullYear(),this.postfix="",this._listBoxVisible=!1,this._handleScrollDocument=this._handleScrollDocument.bind(this)}connectedCallback(){super.connectedCallback(),setTimeout((()=>{document.addEventListener("scroll",this._handleScrollDocument)}),1)}disconnectedCallback(){document.removeEventListener("scroll",this._handleScrollDocument),super.disconnectedCallback()}update(e){this._listBoxItems=this._getYearOptions().map((e=>({value:`${e}`,label:`${e}${this.postfix}`}))),super.update(e)}render(){return kt`
|
||
<button
|
||
class="kuc-base-datetime-header-year-1-18-0__toggle"
|
||
aria-haspopup="listbox"
|
||
aria-expanded="${this._listBoxVisible}"
|
||
tabindex="${this._listBoxVisible?"-1":"0"}"
|
||
@mouseup="${this._handleMouseUpDropdownToggle}"
|
||
@mousedown="${this._handleMouseDownDropdownToggle}"
|
||
@click="${this._handleClickDropdownYearToggle}"
|
||
@keydown="${this._handleKeyDownYearToggle}"
|
||
>
|
||
<span class="kuc-base-datetime-header-year-1-18-0__toggle__label"
|
||
>${this.year}${this.postfix}</span
|
||
>
|
||
<span class="kuc-base-datetime-header-year-1-18-0__toggle__icon"
|
||
>${Li()}
|
||
</span>
|
||
</button>
|
||
${this._getListBoxTemplate()}
|
||
`}async updated(e){await this.updateComplete,e.has("_listBoxVisible")&&this._listBoxVisible&&this._handleScrollDocument(),super.update(e)}closeListBox(){this._listBoxVisible=!1,this._toggleEl.focus()}_handleScrollDocument(){const e=Ri(this);e.inputToBottom>=e.inputToTop?Pi(this,"bottom"):Pi(this,"top")}_getListBoxTemplate(){return this._listBoxVisible?kt`
|
||
<kuc-base-datetime-listbox-1-18-0
|
||
.items="${this._listBoxItems||[]}"
|
||
.value="${this.year.toString()}"
|
||
class="kuc-base-datetime-header-year-1-18-0__listbox"
|
||
@kuc:listbox-click="${this._handleChangeListBox}"
|
||
@kuc:listbox-blur="${this._handleFocusOutListBox}"
|
||
@kuc:listbox-escape="${this._handleListBoxEscape}"
|
||
aria-hidden="${!this._listBoxVisible}"
|
||
>
|
||
</kuc-base-datetime-listbox-1-18-0>
|
||
`:""}_handleFocusOutListBox(){this._listBoxVisible=!1,this._toggleEl.focus()}_handleListBoxEscape(){this._handleFocusOutListBox()}_handleMouseUpDropdownToggle(e){e.preventDefault()}_handleMouseDownDropdownToggle(e){e.preventDefault()}_handleClickDropdownYearToggle(e){e.stopPropagation(),e.preventDefault(),this._listBoxVisible?this.closeListBox():this._openListBox(),Zi(this,"kuc:year-dropdown-click",{value:this._listBoxVisible.toString(),oldValue:(!this._listBoxVisible).toString()})}_handleKeyDownYearToggle(e){"Tab"!==e.key&&(e.preventDefault(),this._openListBoxByKey(e.key))}_openListBoxByKey(e){[" ","Up","ArrowUp","Down","ArrowDown","Enter"].indexOf(e)>-1&&this._openListBox()}_handleChangeListBox(e){if(e.preventDefault(),e.stopPropagation(),this.closeListBox(),!e.detail.value)return;this.year=Number(e.detail.value);const t={value:`${this.year}`};Zi(this,"kuc:year-dropdown-change",t)}_openListBox(){this._listBoxVisible=!0}_getYearOptions(){const e=[];Number.isInteger(this.year)||(this.year=(new Date).getFullYear());let t=this.year<100?0:this.year-100;const n=this.year>=9899?9999:this.year+100;for(;t<=n;t++)e.push(t);return e}}Tr([on({type:Number})],Ar.prototype,"year",void 0),Tr([on({type:String})],Ar.prototype,"postfix",void 0),Tr([cn()],Ar.prototype,"_listBoxVisible",void 0),Tr([_n(".kuc-base-datetime-header-year-1-18-0__toggle")],Ar.prototype,"_toggleEl",void 0),window.customElements.get("kuc-base-datetime-header-year-1-18-0")||(Xi("\n.kuc-base-datetime-header-year-1-18-0__toggle {\n position: relative;\n box-sizing: border-box;\n height: 32px;\n padding: 0 24px 0 8px;\n line-height: 30px;\n overflow: hidden;\n background-color: white;\n border: 1px solid transparent;\n cursor: pointer;\n}\n.kuc-base-datetime-header-year-1-18-0__toggle__icon {\n position: absolute;\n flex: none;\n width: 24px;\n height: 32px;\n}\n.kuc-base-datetime-header-year-1-18-0__toggle__label {\n font-size: 13px;\n color: #333333;\n}\n.kuc-base-datetime-header-year-1-18-0__toggle:focus {\n border: 1px solid #3498db;\n outline: none;\n}\n"),window.customElements.define("kuc-base-datetime-header-year-1-18-0",Ar));var Ir=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class Or extends Ji{constructor(){super(),this.language="auto",this.month=1,this._listBoxVisible=!1,this._locale=Ni("en"),this._monthLabel="",this._maxHeight=1e3,this._handleScrollDocument=this._handleScrollDocument.bind(this)}connectedCallback(){super.connectedCallback(),setTimeout((()=>{document.addEventListener("scroll",this._handleScrollDocument)}),1)}disconnectedCallback(){document.removeEventListener("scroll",this._handleScrollDocument),super.disconnectedCallback()}update(e){e.has("language")&&(this._locale=Ni(this.language),this._listBoxItems=this._getListBoxItems()),e.has("month")&&(this._monthLabel=this._getMonthLabel()),super.update(e)}render(){return kt`
|
||
<button
|
||
class="kuc-base-datetime-header-month-1-18-0__toggle"
|
||
aria-haspopup="listbox"
|
||
aria-expanded="${this._listBoxVisible}"
|
||
tabindex="${this._listBoxVisible?"-1":"0"}"
|
||
@mouseup="${this._handleMouseUpDropdownToggle}"
|
||
@mousedown="${this._handleMouseDownDropdownToggle}"
|
||
@click="${this._handleClickDropdownMonthToggle}"
|
||
@keydown="${this._handleKeyDownMonthToggle}"
|
||
>
|
||
<span class="kuc-base-datetime-header-month-1-18-0__toggle__label"
|
||
>${this._monthLabel}</span
|
||
>
|
||
<span class="kuc-base-datetime-header-month-1-18-0__toggle__icon"
|
||
>${Li()}
|
||
</span>
|
||
</button>
|
||
${this._getListBoxTemplate()}
|
||
`}async updated(e){await this.updateComplete,e.has("_listBoxVisible")&&this._listBoxVisible&&this._handleScrollDocument(),super.update(e)}_handleScrollDocument(){const e=Ri(this);e.inputToBottom>=e.inputToTop?Pi(this,"bottom"):Pi(this,"top")}closeListBox(){this._listBoxVisible=!1,this._toggleEl.focus()}_getListBoxTemplate(){return this._listBoxVisible?kt`
|
||
<kuc-base-datetime-listbox-1-18-0
|
||
.items="${this._listBoxItems||[]}"
|
||
.value="${this.month.toString()}"
|
||
.maxHeight="${this._maxHeight}"
|
||
class="kuc-base-datetime-header-month-1-18-0__listbox"
|
||
@kuc:listbox-click="${this._handleChangeListBox}"
|
||
@kuc:listbox-blur="${this._handleFocusOutListBox}"
|
||
@kuc:listbox-escape="${this._handleListBoxEscape}"
|
||
aria-hidden="${!this._listBoxVisible}"
|
||
>
|
||
</kuc-base-datetime-listbox-1-18-0>
|
||
`:""}_handleFocusOutListBox(){this._listBoxVisible=!1,this._toggleEl.focus()}_handleListBoxEscape(){this._handleFocusOutListBox()}_handleClickDropdownMonthToggle(e){e.stopPropagation(),e.preventDefault(),this._listBoxVisible?this.closeListBox():this._openListBox(),Zi(this,"kuc:month-dropdown-click",{value:this._listBoxVisible.toString(),oldValue:(!this._listBoxVisible).toString()})}_handleMouseUpDropdownToggle(e){e.preventDefault()}_handleMouseDownDropdownToggle(e){e.preventDefault()}_handleKeyDownMonthToggle(e){this._handleTabKey(e.key)||(e.preventDefault(),this._openListBoxByKey(e.key))}_openListBoxByKey(e){[" ","Up","ArrowUp","Down","ArrowDown","Enter"].indexOf(e)>-1&&this._openListBox()}_handleTabKey(e){return"Tab"===e}_handleChangeListBox(e){if(e.preventDefault(),e.stopPropagation(),this.closeListBox(),!e.detail.value)return;this.month=Number(e.detail.value);const t={value:`${this.month}`};Zi(this,"kuc:month-dropdown-change",t)}_openListBox(){this._listBoxVisible=!0}_getListBoxItems(){return this._locale.MONTH_SELECT.map(((e,t)=>({value:`${t+1}`,label:`${e}`})))}_getMonthLabel(){const e=this._locale.MONTH_SELECT.filter(((e,t)=>this.month===t+1));return e.length>0?e[0]:"JANUARY"}}Ir([on({type:String,attribute:"lang",reflect:!0})],Or.prototype,"language",void 0),Ir([on({type:Number})],Or.prototype,"month",void 0),Ir([cn()],Or.prototype,"_listBoxVisible",void 0),Ir([_n(".kuc-base-datetime-header-month-1-18-0__toggle")],Or.prototype,"_toggleEl",void 0),window.customElements.get("kuc-base-datetime-header-month-1-18-0")||(Xi("\n.kuc-base-datetime-header-month-1-18-0__toggle {\n position: relative;\n box-sizing: border-box;\n height: 32px;\n padding: 0 24px 0 8px;\n line-height: 30px;\n overflow: hidden;\n background-color: white;\n border: 1px solid transparent;\n cursor: pointer;\n}\n.kuc-base-datetime-header-month-1-18-0__toggle__icon {\n position: absolute;\n flex: none;\n width: 24px;\n height: 32px;\n}\n.kuc-base-datetime-header-month-1-18-0__toggle__label {\n font-size: 13px;\n color: #333333;\n}\n.kuc-base-datetime-header-month-1-18-0__toggle:focus {\n border: 1px solid #3498db;\n outline: none;\n}\n"),window.customElements.define("kuc-base-datetime-header-month-1-18-0",Or));var Dr=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class $r extends Ji{constructor(){super(...arguments),this.language="en",this.month=1,this.year=(new Date).getFullYear(),this._locale=Ni("en")}update(e){e.has("language")&&(this._locale=Ni(this.language)),super.update(e)}render(){return kt`
|
||
<div class="kuc-base-datetime-calendar-header-1-18-0__group">
|
||
<button
|
||
aria-label="previous month"
|
||
type="button"
|
||
class="kuc-base-datetime-calendar-header-1-18-0__group__button kuc-base-datetime-calendar-header-1-18-0__group__button--previous-month"
|
||
@click="${this._handleClickCalendarPrevMonthBtn}"
|
||
@keydown="${this._handleKeyDownCalendarPrevMonthBtn}"
|
||
>
|
||
${xt`
|
||
<svg
|
||
class="kuc-base-datetime-calendar-header-1-18-0__group__button-icon"
|
||
width="9"
|
||
height="14"
|
||
viewBox="0 0 9 14"
|
||
fill="none"
|
||
xmlns="http://www.w3.org/2000/svg"
|
||
>
|
||
<path
|
||
fill-rule="evenodd"
|
||
clip-rule="evenodd"
|
||
d="M3.06077 7L8.53044 1.53033L7.46978 0.469666L0.939453 7L7.46978 13.5303L8.53044 12.4697L3.06077 7Z"
|
||
fill="#888888"
|
||
/>
|
||
</svg>`}
|
||
</button>
|
||
<div class="kuc-base-datetime-calendar-header-1-18-0__group__center">
|
||
${this._getYearMonthTemplate()}
|
||
</div>
|
||
<button
|
||
aria-label="next month"
|
||
type="button"
|
||
class="kuc-base-datetime-calendar-header-1-18-0__group__button kuc-base-datetime-calendar-header-1-18-0__group__button--next-month"
|
||
@click="${this._handleClickCalendarNextMonthBtn}"
|
||
>
|
||
${xt`
|
||
<svg
|
||
class="kuc-base-datetime-calendar-header-1-18-0__group__button-icon"
|
||
width="9"
|
||
height="14"
|
||
viewBox="0 0 9 14"
|
||
fill="none"
|
||
xmlns="http://www.w3.org/2000/svg"
|
||
>
|
||
<path
|
||
fill-rule="evenodd"
|
||
clip-rule="evenodd"
|
||
d="M5.93923 7L0.469557 1.53033L1.53022 0.469666L8.06055 7L1.53022 13.5303L0.469557 12.4697L5.93923 7Z"
|
||
fill="#888888"
|
||
/>
|
||
</svg>`}
|
||
</button>
|
||
</div>
|
||
`}_getYearTemplate(){return kt`
|
||
<kuc-base-datetime-header-year-1-18-0
|
||
class="kuc-base-datetime-calendar-header-1-18-0__year"
|
||
.postfix="${this._locale.YEAR_SELECT_POSTFIX}"
|
||
.year="${this.year}"
|
||
@kuc:year-dropdown-change="${this._handleYearDropdownChange}"
|
||
@kuc:year-dropdown-click="${this._handleYearDropdownClick}"
|
||
>
|
||
</kuc-base-datetime-header-year-1-18-0>
|
||
`}_getMonthTemplate(){return kt`
|
||
<kuc-base-datetime-header-month-1-18-0
|
||
class="kuc-base-datetime-calendar-header-1-18-0__month"
|
||
.month="${this.month}"
|
||
.language="${this.language}"
|
||
@kuc:month-dropdown-change="${this._handleMonthDropdownChange}"
|
||
@kuc:month-dropdown-click="${this._handleMonthDropdownClick}"
|
||
>
|
||
</kuc-base-datetime-header-month-1-18-0>
|
||
`}_getYearMonthTemplate(){return"zh"===this.language||"ja"===this.language||"zh-TW"===this.language?kt` ${this._getYearTemplate()}${this._getMonthTemplate()} `:kt` ${this._getMonthTemplate()}${this._getYearTemplate()} `}_handleMonthDropdownChange(e){e.stopPropagation(),e.preventDefault(),this.month=parseInt(e.detail.value,10),this._dispatchCalendarHeaderChangeEvent()}_handleYearDropdownChange(e){e.stopPropagation(),e.preventDefault(),this.year=parseInt(e.detail.value,10),this._dispatchCalendarHeaderChangeEvent()}_handleYearDropdownClick(){this._listBoxMonthEl&&this._baseDateTimeHeaderMonthEl.closeListBox()}_handleMonthDropdownClick(){this._listBoxYearEl&&this._baseDateTimeHeaderYearEl.closeListBox()}_handleClickCalendarPrevMonthBtn(e){e.stopPropagation(),1===this.month?(this.month=12,this.year--):this.month-=1,this._dispatchCalendarHeaderChangeEvent()}_handleKeyDownCalendarPrevMonthBtn(e){e.shiftKey&&"Tab"===e.key&&(e.preventDefault(),Zi(this,"kuc:calendar-header-previous-shifttab"))}_handleClickCalendarNextMonthBtn(e){e.stopPropagation(),12===this.month?(this.month=1,this.year++):this.month+=1,this._dispatchCalendarHeaderChangeEvent()}_dispatchCalendarHeaderChangeEvent(){const e=this.year,t=this.month;Zi(this,"kuc:calendar-header-change",{value:`${e}-${t}`})}}Dr([on({type:String,attribute:"lang",reflect:!0})],$r.prototype,"language",void 0),Dr([on({type:Number,hasChanged(e){return(t=e)>0&&t<13;var t}})],$r.prototype,"month",void 0),Dr([on({type:Number,hasChanged(e){return(t=e)>=0&&t<1e4;var t}})],$r.prototype,"year",void 0),Dr([_n(".kuc-base-datetime-calendar-header-1-18-0__month")],$r.prototype,"_baseDateTimeHeaderMonthEl",void 0),Dr([_n(".kuc-base-datetime-calendar-header-1-18-0__year")],$r.prototype,"_baseDateTimeHeaderYearEl",void 0),Dr([_n(".kuc-base-datetime-header-month-1-18-0__listbox")],$r.prototype,"_listBoxMonthEl",void 0),Dr([_n(".kuc-base-datetime-header-year-1-18-0__listbox")],$r.prototype,"_listBoxYearEl",void 0),window.customElements.get("kuc-base-datetime-calendar-header-1-18-0")||(Xi('\nkuc-base-datetime-calendar-header-1-18-0,\nkuc-base-datetime-calendar-header-1-18-0 *,\nkuc-base-datetime-calendar-header-1-18-0:lang(en),\nkuc-base-datetime-calendar-header-1-18-0:lang(en) * {\n font-family: sans-serif;\n}\nkuc-base-datetime-calendar-header-1-18-0:lang(ja),\nkuc-base-datetime-calendar-header-1-18-0:lang(ja) * {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo,\n sans-serif;\n font-weight: 700;\n}\nkuc-base-datetime-calendar-header-1-18-0:lang(zh),\nkuc-base-datetime-calendar-header-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", sans-serif;\n}\nkuc-base-datetime-calendar-header-1-18-0:lang(zh-TW),\nkuc-base-datetime-calendar-header-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC",sans-serif;\n}\nkuc-base-datetime-calendar-header-1-18-0:lang(es),\nkuc-base-datetime-calendar-header-1-18-0:lang(es) * {\n font-family: sans-serif;\n}\nkuc-base-datetime-calendar-header-1-18-0:lang(ja) kuc-base-datetime-listbox-1-18-0 * {\n font-weight: 400;\n}\n.kuc-base-datetime-calendar-header-1-18-0__group {\n display: flex;\n align-items: center;\n box-sizing: border-box;\n border-bottom: 1px solid #e3e7e8;\n padding: 0;\n white-space: nowrap;\n width: 266px;\n height: 44px;\n}\n.kuc-base-datetime-calendar-header-1-18-0__group__button {\n background: transparent;\n border: none;\n cursor: pointer;\n outline: none;\n width: 38px;\n height: 32px;\n margin: 0;\n text-align: center;\n}\n.kuc-base-datetime-calendar-header-1-18-0__group__button:focus {\n border: 1px solid #3498db;\n outline: none;\n}\n.kuc-base-datetime-calendar-header-1-18-0__group__button-icon {\n vertical-align: middle;\n}\n.kuc-base-datetime-calendar-header-1-18-0__group__center {\n width: 190px;\n text-align: center;\n display: flex;\n justify-content: center;\n}\n.kuc-base-datetime-calendar-header-1-18-0__month {\n margin: 0 4px 0 4px;\n}\n'),window.customElements.define("kuc-base-datetime-calendar-header-1-18-0",$r));var Nr=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class Mr extends Ji{constructor(){super(),this.month=1,this.year=2021,this.language="en",this.value="",this._month=1,this._year=2021,this._locale=Ni("en"),this._handleClickDocument=this._handleClickDocument.bind(this),this._handleKeyDownDocument=this._handleKeyDownDocument.bind(this)}connectedCallback(){super.connectedCallback(),setTimeout((()=>{document.addEventListener("click",this._handleClickDocument),document.addEventListener("keydown",this._handleKeyDownDocument)}),1)}disconnectedCallback(){document.removeEventListener("click",this._handleClickDocument),document.removeEventListener("keydown",this._handleKeyDownDocument),super.disconnectedCallback()}update(e){if(e.forEach(((e,t)=>{"language"===t&&(this._locale=Ni(this.language))})),e.has("month")&&(this._month=this.month),e.has("year")&&(this._year=this.year),e.has("value")){const{month:e,year:t}=this._separateDateValue();this._month=parseInt(e,10),this._year=parseInt(t,10)}super.update(e)}render(){return kt`
|
||
<table class="kuc-base-datetime-calendar-body-1-18-0__table" role="grid">
|
||
${this._getHeaderItemsTemplate()}<!--
|
||
-->${this._getDateItemsTemplate()}
|
||
</table>
|
||
`}updated(e){e.has("value")&&this._focusDateEl(),super.update(e)}_handleClickDocument(){Zi(this,"kuc:calendar-body-blur",{})}_handleKeyDownDocument(e){"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),Zi(this,"kuc:calendar-body-blur",{}))}_handleClickDate(e){e.preventDefault(),e.stopPropagation();const t=e.target;t.setAttribute("aria-selected","true");const n=t.getAttribute("data-date")||"";this._dispatchClickEvent(n)}_handleKeyDownDate(e){let t=!1;switch(e.key){case"Up":case"ArrowUp":t=!0,this._moveToDate(-7);break;case"Down":case"ArrowDown":t=!0,this._moveToDate(7);break;case"Left":case"ArrowLeft":t=!0,this._moveToDate(-1);break;case"Right":case"ArrowRight":t=!0,this._moveToDate(1);break;case" ":case"Enter":{t=!0;const e=this._getSelectedValue();this._dispatchClickEvent(e);break}}t&&(e.stopPropagation(),e.preventDefault())}_dispatchClickEvent(e){const t={oldValue:this.value,value:e};Zi(this,"kuc:calendar-body-click-date",t),this.value=e}_isToday(e){const t=new Date;return parseInt(e[0],10)===t.getFullYear()&&parseInt(e[1],10)===t.getMonth()+1&&parseInt(e[2],10)===t.getDate()}_moveToDate(e){let t=this.value;const n=this._getSelectedValue(),{day:i}=this._separateDateValue(n);t=`${this._year}-${Di(this._month)}-${i}`;const r=new Date(`${t||this._getValueItemFocused()}T00:00:00`);if(isNaN(r.getTime()))return;r.setDate(r.getDate()+e);const o=this._getDateString(r),a=t;this.value=o,Zi(this,"kuc:calendar-body-change-date",{oldValue:a,value:o})}_separateDateValue(e=this.value){const t=e.split("-");return{day:t[2],month:t[1],year:t[0]}}_getSelectedValue(){return this._highlightItem?this._highlightItem.dataset.date||"":this._selectedItem&&this._selectedItem.getAttribute("data-date")||""}_getValueItemFocused(){return this._focusedItem&&this._focusedItem.getAttribute("data-date")||""}_getDateClass(e,t){return t?this._isToday(e)?" kuc-base-datetime-calendar-body-1-18-0__table__date--selected--today":"":this._isToday(e)?" kuc-base-datetime-calendar-body-1-18-0__table__date--selected--today":" kuc-base-datetime-calendar-body-1-18-0__table__date--other-month"}_getDateString(e=new Date){return`${e.getFullYear()}-${Di(e.getMonth()+1)}-${Di(e.getDate())}`}_isSameDayOfMoment(e){const t=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[0],10);let r=(new Date).getDate();if(!this.value.split("-")[2])return!1;if(this.value&&(r=new Date(`${this.value}T00:00:00`).getDate()),r===n&&t===this._month)return!0;const o=new Date(i,this._month,0).getDate();return r>o&&o===n&&t===this._month}_getHeaderItemsTemplate(){return kt`
|
||
<thead>
|
||
<tr>
|
||
${this._locale.WEEK_DAYS.map((e=>kt`
|
||
<th
|
||
class="kuc-base-datetime-calendar-body-1-18-0__table__header"
|
||
role="columnheader"
|
||
abbr="${e.abbr}"
|
||
>
|
||
${e.text}
|
||
</th>
|
||
`))}
|
||
</tr>
|
||
</thead>
|
||
`}_getDateItemsTemplate(){const e=bi(this._year,this._month-1),t=this._locale.MONTH_SELECT[this._month-1];return kt`
|
||
<tbody>
|
||
${e.map((e=>kt`
|
||
<tr>
|
||
${e.map((e=>{const n=e.text.split("-"),i=this._isSameDayOfMoment(n),r=parseInt(n[1],10)===this._month,o=(this.value===e.attr||i)&&r;return kt`
|
||
<td
|
||
role="gridcell"
|
||
class="kuc-base-datetime-calendar-body-1-18-0__table__date${o?"--selected":""}${this._getDateClass(n,r)}"
|
||
aria-selected="${this.value===e.attr}"
|
||
tabindex="${o?"0":"-1"}"
|
||
aria-current="${!!this._isToday(n)&&"date"}"
|
||
aria-label="${n[2]} ${t}"
|
||
data-date="${e.attr}"
|
||
@click="${this._handleClickDate}"
|
||
@keydown="${this._handleKeyDownDate}"
|
||
>
|
||
${n[2]||""}
|
||
</td>
|
||
`}))}
|
||
</tr>
|
||
`))}
|
||
</tbody>
|
||
`}_focusDateEl(){this._focusedItem&&this._focusedItem.focus({preventScroll:!0})}}Nr([on({type:Number})],Mr.prototype,"month",void 0),Nr([on({type:Number})],Mr.prototype,"year",void 0),Nr([on({type:String,attribute:"lang",reflect:!0})],Mr.prototype,"language",void 0),Nr([on({type:String,reflect:!0})],Mr.prototype,"value",void 0),Nr([cn()],Mr.prototype,"_month",void 0),Nr([cn()],Mr.prototype,"_year",void 0),Nr([_n('.kuc-base-datetime-calendar-body-1-18-0__table__date--selected[aria-selected="true"]')],Mr.prototype,"_selectedItem",void 0),Nr([_n(".kuc-base-datetime-calendar-body-1-18-0__table__date--selected")],Mr.prototype,"_highlightItem",void 0),Nr([_n('.kuc-base-datetime-calendar-body-1-18-0__table__date--selected[tabindex="0"]')],Mr.prototype,"_focusedItem",void 0),window.customElements.get("kuc-base-datetime-calendar-body-1-18-0")||(Xi('\nkuc-base-datetime-calendar-body-1-18-0,\nkuc-base-datetime-calendar-body-1-18-0 *,\nkuc-base-datetime-calendar-body-1-18-0:lang(en),\nkuc-base-datetime-calendar-body-1-18-0:lang(en) * {\n font-family: sans-serif;\n}\nkuc-base-datetime-calendar-body-1-18-0:lang(ja),\nkuc-base-datetime-calendar-body-1-18-0:lang(ja) * {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo,\n sans-serif;\n}\nkuc-base-datetime-calendar-body-1-18-0:lang(zh),\nkuc-base-datetime-calendar-body-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", sans-serif;\n}\nkuc-base-datetime-calendar-body-1-18-0:lang(zh-TW),\nkuc-base-datetime-calendar-body-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC",sans-serif;\n}\nkuc-base-datetime-calendar-body-1-18-0:lang(es),\nkuc-base-datetime-calendar-body-1-18-0:lang(es) * {\n font-family: sans-serif;\n}\n.kuc-base-datetime-calendar-body-1-18-0__table,\n.kuc-base-datetime-calendar-body-1-18-0__table tr {\n border-collapse: separate;\n border-spacing: 0;\n}\n.kuc-base-datetime-calendar-body-1-18-0__table__date,\n.kuc-base-datetime-calendar-body-1-18-0__table__date--selected {\n border-spacing: 1px;\n padding: 0px;\n border: 1px solid #ffffff;\n}\n.kuc-base-datetime-calendar-body-1-18-0__table__header {\n text-align: center;\n text-transform: uppercase;\n font-size: 10px;\n font-weight: 400;\n color: #333333;\n}\n:lang(ja) th.kuc-base-datetime-calendar-body-1-18-0__table__header {\n font-weight: 700;\n}\n:lang(es) th.kuc-base-datetime-calendar-body-1-18-0__table__header {\n text-transform: revert;\n}\n.kuc-base-datetime-calendar-body-1-18-0__table__date--selected,\n.kuc-base-datetime-calendar-body-1-18-0__table__date,\n.kuc-base-datetime-calendar-body-1-18-0__table__header {\n box-sizing: border-box;\n padding: 8px 0;\n width: 36px;\n height: 31px;\n border: 1px solid #ffffff;\n text-align: center;\n text-transform: uppercase;\n font-size: 10px;\n font-weight: 400;\n color: #333333;\n cursor: pointer;\n}\n.kuc-base-datetime-calendar-body-1-18-0__table__header:nth-child(1),\n.kuc-base-datetime-calendar-body-1-18-0__table__header:nth-child(7) {\n color: #d4d7d7;\n}\n.kuc-base-datetime-calendar-body-1-18-0__table__date:focus,\n.kuc-base-datetime-calendar-body-1-18-0__table__date--selected:focus {\n outline: none;\n}\n.kuc-base-datetime-calendar-body-1-18-0__table__date\n .kuc-base-datetime-calendar-body-1-18-0__table__date__button:hover {\n color: #000000;\n}\n.kuc-base-datetime-calendar-body-1-18-0__table__date--selected {\n border-color: #3498db;\n}\n.kuc-base-datetime-calendar-body-1-18-0__table__date--selected--today,\n.kuc-base-datetime-calendar-body-1-18-0__table__date--today {\n color: #ffffff;\n background: #888888;\n}\n.kuc-base-datetime-calendar-body-1-18-0__table__date--today:hover {\n color: #333333;\n}\n.kuc-base-datetime-calendar-body-1-18-0__table__date--other-month,\n.kuc-base-datetime-calendar-body-1-18-0__table__date--other-month:hover {\n color: #d4d7d7;\n}\n'),window.customElements.define("kuc-base-datetime-calendar-body-1-18-0",Mr));var Lr=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class Pr extends Ji{constructor(){super(...arguments),this.language="en",this._locale=Ni("en")}update(e){e.has("language")&&(this._locale=Ni(this.language)),super.update(e)}_handleClickCalendarFooterButtonNone(e){e.stopPropagation(),Zi(this,"kuc:calendar-footer-click-none")}_handleClickCalendarFooterButtonToday(e){e.stopPropagation(),Zi(this,"kuc:calendar-footer-click-today")}_handleKeyDownCalendarFooterButtonNone(e){"Tab"===e.key&&(e.shiftKey||(e.preventDefault(),Zi(this,"kuc:calendar-footer-tab-none")))}render(){return kt`
|
||
<div class="kuc-base-datetime-calendar-footer-1-18-0__group">
|
||
<button
|
||
type="button"
|
||
tabindex="0"
|
||
class="kuc-base-datetime-calendar-footer-1-18-0__group__button kuc-base-datetime-calendar-footer-1-18-0__group__button--today"
|
||
@click="${this._handleClickCalendarFooterButtonToday}"
|
||
>
|
||
${this._locale.CALENDAR_FOOTER_TEXT.today}
|
||
</button>
|
||
<span class="kuc-base-datetime-calendar-footer-1-18-0__group__center"></span>
|
||
<button
|
||
type="button"
|
||
tabindex="0"
|
||
class="kuc-base-datetime-calendar-footer-1-18-0__group__button kuc-base-datetime-calendar-footer-1-18-0__group__button--none"
|
||
@click="${this._handleClickCalendarFooterButtonNone}"
|
||
@keydown="${this._handleKeyDownCalendarFooterButtonNone}"
|
||
>
|
||
${this._locale.CALENDAR_FOOTER_TEXT.none}
|
||
</button>
|
||
</div>
|
||
`}}Lr([on({type:String,attribute:"lang",reflect:!0})],Pr.prototype,"language",void 0),Lr([cn()],Pr.prototype,"_locale",void 0),window.customElements.get("kuc-base-datetime-calendar-footer-1-18-0")||(Xi('\nkuc-base-datetime-calendar-footer-1-18-0,\nkuc-base-datetime-calendar-footer-1-18-0 *,\nkuc-base-datetime-calendar-footer-1-18-0:lang(en),\nkuc-base-datetime-calendar-footer-1-18-0:lang(en) * {\n font-family: sans-serif;\n}\nkuc-base-datetime-calendar-footer-1-18-0:lang(ja),\nkuc-base-datetime-calendar-footer-1-18-0:lang(ja) * {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo,\n sans-serif;\n}\nkuc-base-datetime-calendar-footer-1-18-0:lang(zh),\nkuc-base-datetime-calendar-footer-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", sans-serif;\n}\nkuc-base-datetime-calendar-footer-1-18-0:lang(zh-TW),\nkuc-base-datetime-calendar-footer-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC",sans-serif;\n}\nkuc-base-datetime-calendar-footer-1-18-0:lang(es),\nkuc-base-datetime-calendar-footer-1-18-0:lang(es) * {\n font-family: sans-serif;\n}\n.kuc-base-datetime-calendar-footer-1-18-0__group {\n display: flex;\n align-items: flex-end;\n box-sizing: border-box;\n padding: 0;\n height: 27px;\n white-space: nowrap;\n width: 272px;\n}\n.kuc-base-datetime-calendar-footer-1-18-0__group__button {\n background: transparent;\n border: 1px solid transparent;\n color: #3498db;\n cursor: pointer;\n font-size: 13px;\n outline: none;\n}\n.kuc-base-datetime-calendar-footer-1-18-0__group__button:hover {\n color: #217dbb;\n}\n.kuc-base-datetime-calendar-footer-1-18-0__group__button:focus {\n border: 1px solid #3498db;\n outline: none;\n}\n.kuc-base-datetime-calendar-footer-1-18-0__group__center {\n width: 100%;\n}\n'),window.customElements.define("kuc-base-datetime-calendar-footer-1-18-0",Pr));var Rr=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class jr extends Ji{constructor(){super(...arguments),this.language="en",this.value="",this._month=1,this._year=(new Date).getFullYear()}update(e){e.has("value")&&this._updateValue(),super.update(e)}render(){return kt`
|
||
<div
|
||
class="kuc-base-datetime-calendar-1-18-0__group"
|
||
role="dialog"
|
||
aria-modal="true"
|
||
aria-label="Calender"
|
||
@click="${this._handleClickCalendarGroup}"
|
||
@keydown="${this._handleKeyDownCalendarGroup}"
|
||
>
|
||
<kuc-base-datetime-calendar-header-1-18-0
|
||
.year="${this._year}"
|
||
.month="${this._month}"
|
||
.language="${this.language}"
|
||
@kuc:calendar-header-change="${this._handleCalendarHeaderChange}"
|
||
></kuc-base-datetime-calendar-header-1-18-0>
|
||
<kuc-base-datetime-calendar-body-1-18-0
|
||
.year="${this._year}"
|
||
.month="${this._month}"
|
||
.value="${this.value}"
|
||
.language="${this.language}"
|
||
@kuc:calendar-body-change-date="${this._handleCalendarBodyChangeDate}"
|
||
></kuc-base-datetime-calendar-body-1-18-0>
|
||
<kuc-base-datetime-calendar-footer-1-18-0
|
||
.language="${this.language}"
|
||
></kuc-base-datetime-calendar-footer-1-18-0>
|
||
</div>
|
||
`}async updated(e){await this.updateComplete,this._calculateBodyCalendarPosition(),super.updated(e)}_handleKeyDownCalendarGroup(e){"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),Zi(this,"kuc:calendar-escape",{}))}_handleClickCalendarGroup(e){e.stopPropagation(),this._listBoxMonthEl&&this._monthEl.closeListBox(),this._listBoxYearEl&&this._yearEl.closeListBox()}_calculateBodyCalendarPosition(){const{inputToBottom:e,inputToTop:t,inputToRight:n,inputToLeft:i}=Ri(this);e>=this._baseCalendarGroupEl.getBoundingClientRect().height||t<0||e>t?this._calculateCalendarPosition(n,i,"bottom"):this._calculateCalendarPosition(n,i,"top")}_calculateCalendarPosition(e,t,n){if(!this.parentElement)return;const i=this.parentElement.getElementsByClassName("kuc-base-date-1-18-0__input")[0],r=i.getBoundingClientRect().height,o=i.getBoundingClientRect().width;if(e<336&&e<t){const e=this.parentElement.getBoundingClientRect().width,t="bottom"===n?r:"auto",i="bottom"===n?"auto":r,a=e>o?e-o:0;return void this._setCalendarPosition({top:t,bottom:i,right:a})}const a="bottom"===n?r:"auto",s="bottom"===n?"auto":r;this._setCalendarPosition({bottom:s,top:a,left:0})}_setCalendarPosition({top:e="auto",left:t="auto",right:n="auto",bottom:i="auto"}){const r=this._baseCalendarGroupEl.parentElement;this.parentElement&&r&&(this.parentElement.style.position="relative",r.style.bottom="auto"===i?i:i+"px",r.style.top="auto"===e?e:e+"px",r.style.left="auto"===t?t:t+"px",r.style.right="auto"===n?n:n+"px")}_handleCalendarHeaderChange(e){const{year:t,month:n}=this._separateValue(e.detail.value);this._year=t,this._month=n}_handleCalendarBodyChangeDate(e){const{year:t,month:n}=this._separateValue(e.detail.value);this._year=t,this._month=n}_updateValue(){""===this.value&&(this.value=Ii().slice(0,7)+"-01");const{year:e,month:t}=this._separateValue(this.value);this._year=e,this._month=t}_separateValue(e){const t=e.split("-");return{year:parseInt(t[0],10),month:parseInt(t[1],10)}}}Rr([on({type:String,attribute:"lang",reflect:!0})],jr.prototype,"language",void 0),Rr([on({type:String,reflect:!0})],jr.prototype,"value",void 0),Rr([_n(".kuc-base-datetime-calendar-1-18-0__group")],jr.prototype,"_baseCalendarGroupEl",void 0),Rr([_n(".kuc-base-datetime-calendar-header-1-18-0__month")],jr.prototype,"_monthEl",void 0),Rr([_n(".kuc-base-datetime-calendar-header-1-18-0__year")],jr.prototype,"_yearEl",void 0),Rr([_n(".kuc-base-datetime-header-month-1-18-0__listbox")],jr.prototype,"_listBoxMonthEl",void 0),Rr([_n(".kuc-base-datetime-header-year-1-18-0__listbox")],jr.prototype,"_listBoxYearEl",void 0),Rr([cn()],jr.prototype,"_month",void 0),Rr([cn()],jr.prototype,"_year",void 0),window.customElements.get("kuc-base-datetime-calendar-1-18-0")||(Xi("\n.kuc-base-datetime-calendar-1-18-0__group {\n display: inline-block;\n box-sizing: border-box;\n width: 336px;\n padding: 32px 32px 24px;\n background: #ffffff;\n box-shadow: 0 0 8px 2px rgb(0 0 0 / 10%);\n text-align: center;\n font-size: 13px;\n}\n"),window.customElements.define("kuc-base-datetime-calendar-1-18-0",jr));var Hr=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class Br extends Ji{constructor(){super(),this.value="",this.items=[],this.maxHeight=300,this.doFocus=!0,this._actionKeyboard=!1,this._firstHighlight=!0,this._handleClickDocument=this._handleClickDocument.bind(this)}connectedCallback(){super.connectedCallback(),setTimeout((()=>{document.addEventListener("click",this._handleClickDocument)}),1)}disconnectedCallback(){document.removeEventListener("click",this._handleClickDocument),super.disconnectedCallback()}getHighlightItemEl(){return this._highlightItemEl}render(){return kt`
|
||
<ul
|
||
style="max-height: ${this.maxHeight}px;"
|
||
class="kuc-base-datetime-listbox-1-18-0__listbox"
|
||
role="listbox"
|
||
@mousedown="${this._handleMouseDownListBox}"
|
||
@click="${this._handleClickListBox}"
|
||
>
|
||
${this.items.map((e=>this._getListBoxItemTemplate(e)))}
|
||
</ul>
|
||
`}async updated(e){await this.updateComplete,e.has("value")&&this._highlightSelectedItem(),this._setListBoxPosition(),this._scrollToView(),super.updated(e)}_handleClickDocument(){Zi(this,"kuc:listbox-blur",{})}_handleClickListBox(e){e.stopPropagation()}_handleKeyDownListBox(e){switch(e.preventDefault(),e.stopPropagation(),e.key){case"Up":case"ArrowUp":this._actionKeyboard=!0,this._highlightPrevItemEl(),this._focusHighlightItemEl(),this._scrollToView();break;case"Down":case"ArrowDown":this._actionKeyboard=!0,this._highlightNextItemEl(),this._focusHighlightItemEl(),this._scrollToView();break;case"Home":this._actionKeyboard=!0,this._highlightFirstItem(),this._focusHighlightItemEl();break;case"End":this._actionKeyboard=!0,this._highlightLastItem(),this._focusHighlightItemEl();break;case"Tab":Zi(this,"kuc:listbox-click",{});break;case"Escape":Zi(this,"kuc:listbox-escape",{});break;case" ":case"Enter":{const e=this._highlightItemEl.getAttribute("value");Zi(this,"kuc:listbox-click",{value:e||""});break}}}_handleMouseDownListBox(e){if(e.preventDefault(),e.stopPropagation(),e.target===e.currentTarget)return;const t=e.target.getAttribute("value")||"";Zi(this,"kuc:listbox-click",{value:t})}_handleMouseOverItem(e){if(this._actionKeyboard)return void(this._actionKeyboard=!1);const t=e.target;this._setHighlightItemEl(t),this.doFocus&&this._focusHighlightItemEl(!1)}_setListBoxPosition(){const e=this._listBoxEl.getBoundingClientRect().height;if(!this._listBoxEl.parentElement||!this.parentElement)return;const t=window.innerHeight-this.parentElement.getBoundingClientRect().bottom,n=this.parentElement.offsetHeight;this._listBoxEl.style.bottom="auto",this._listBoxEl.style.left="auto",t>=e||(this.parentElement.style.position="relative",this._listBoxEl.style.bottom=n+"px",this._listBoxEl.style.left="0px")}_setHighlightItemEl(e){this._removeHighlight(),e.classList.add("kuc-base-datetime-listbox-1-18-0__listbox--highlight"),e.setAttribute("tabindex","0")}_highlightSelectedItem(){if(!this.doFocus)return;const e=Array.from(this._itemsEl).filter((e=>"true"===e.getAttribute("aria-selected")))[0];e&&(this._itemSelectedEl=e,this._setHighlightItemEl(e),this._focusHighlightItemEl())}_highlightFirstItem(){this._itemSelectedEl=this._firstItemEl,this._setHighlightItemEl(this._firstItemEl)}_highlightLastItem(){this._itemSelectedEl=this._lastItemEl,this._setHighlightItemEl(this._lastItemEl)}_highlightNextItemEl(){if(null===this._highlightItemEl||null===this._iconChecked)return void this._highlightFirstItem();const e=this._getNextItemEl();if(e)return this._setHighlightItemEl(e),this._firstHighlight=!1,void(this._itemSelectedEl=e);this._highlightFirstItem()}_getNextItemEl(){const e=this._iconChecked.parentElement;!this._itemSelectedEl&&e&&this._firstHighlight&&(this._itemSelectedEl=e);let t=this._highlightItemEl.nextElementSibling;return this._itemSelectedEl?this._itemSelectedEl.nextElementSibling?(t=this._itemSelectedEl.nextElementSibling,t):this._firstItemEl:t}_highlightPrevItemEl(){if(null===this._highlightItemEl||null===this._iconChecked)return void this._highlightLastItem();const e=this._getPreviousItemEl();if(e)return this._setHighlightItemEl(e),this._firstHighlight=!1,void(this._itemSelectedEl=e);this._highlightLastItem()}_getPreviousItemEl(){const e=this._iconChecked.parentElement;!this._itemSelectedEl&&e&&this._firstHighlight&&(this._itemSelectedEl=e);let t=this._highlightItemEl.previousElementSibling;return this._itemSelectedEl?this._itemSelectedEl.previousElementSibling?(t=this._itemSelectedEl.previousElementSibling,t):this._lastItemEl:t}_removeHighlight(){this._highlightItemEl&&(this._highlightItemEl.setAttribute("tabindex","-1"),this._highlightItemEl.classList.remove("kuc-base-datetime-listbox-1-18-0__listbox--highlight"))}_focusHighlightItemEl(e){const t=this._highlightItemEl;t&&(t.focus({preventScroll:!0}),!1!==e&&this._dispatchListBoxFocusChange())}_dispatchListBoxFocusChange(){const e=this._highlightItemEl.getAttribute("value")||"";Zi(this,"kuc:listbox-focus-change",{value:e})}_scrollToView(){const e=this._highlightItemEl||this._getHighlightItemByValue();if(!e||!this._listBoxEl)return;const t=e.offsetHeight,n=this._listBoxEl.clientHeight/t/2;let i=e.offsetTop-n*t;i<0&&(i=0),this._listBoxEl.scrollTop=i}_getHighlightItemByValue(){const e=Array.from(this._listBoxEl.children),t=new Date(Date.parse(`2021/01/01 ${this.value}`));let n=e.find((e=>new Date(Date.parse(`2021/01/01 ${e.title}`))>=t));return n||(n=e[e.length-1]),this.doFocus&&n?(this._setHighlightItemEl(n),this._focusHighlightItemEl(),n):n}_getListBoxItemTemplate(e){const t=this.value===e.value&&this.doFocus;return kt`
|
||
<li
|
||
class="kuc-base-datetime-listbox-1-18-0__listbox__item"
|
||
role="option"
|
||
tabindex="${t?"0":"-1"}"
|
||
aria-selected="${t}"
|
||
title="${e.label||""}"
|
||
value="${void 0!==e.value?e.value:""}"
|
||
@mouseover="${this._handleMouseOverItem}"
|
||
@keydown="${this._handleKeyDownListBox}"
|
||
>
|
||
${t?this._getCheckedIconSvgTemplate():""}
|
||
${void 0===e.label?e.value:e.label}
|
||
</li>
|
||
`}_getCheckedIconSvgTemplate(){return xt`<svg
|
||
class="kuc-base-datetime-listbox-1-18-0__listbox__item__icon"
|
||
width="11"
|
||
height="9"
|
||
viewBox="0 0 11 9"
|
||
fill="none"
|
||
xmlns="http://www.w3.org/2000/svg"
|
||
>
|
||
<path
|
||
fill-rule="evenodd"
|
||
clip-rule="evenodd"
|
||
d="M0 5L1.5 3L4.5 5.5L9.5 0L11 1.5L4.5 8.5L0 5Z"
|
||
fill="#3498db"
|
||
/>
|
||
</svg>`}}Hr([on({type:String})],Br.prototype,"value",void 0),Hr([on({type:Array})],Br.prototype,"items",void 0),Hr([on({type:Number})],Br.prototype,"maxHeight",void 0),Hr([on({type:Boolean})],Br.prototype,"doFocus",void 0),Hr([_n(".kuc-base-datetime-listbox-1-18-0__listbox")],Br.prototype,"_listBoxEl",void 0),Hr([gn(".kuc-base-datetime-listbox-1-18-0__listbox__item")],Br.prototype,"_itemsEl",void 0),Hr([_n(".kuc-base-datetime-listbox-1-18-0__listbox__item")],Br.prototype,"_firstItemEl",void 0),Hr([_n(".kuc-base-datetime-listbox-1-18-0__listbox__item:last-child")],Br.prototype,"_lastItemEl",void 0),Hr([_n(".kuc-base-datetime-listbox-1-18-0__listbox--highlight")],Br.prototype,"_highlightItemEl",void 0),Hr([_n(".kuc-base-datetime-listbox-1-18-0__listbox__item__icon")],Br.prototype,"_iconChecked",void 0),Hr([cn()],Br.prototype,"_actionKeyboard",void 0),Hr([cn()],Br.prototype,"_firstHighlight",void 0),window.customElements.get("kuc-base-datetime-listbox-1-18-0")||(Xi('\nkuc-base-datetime-listbox-1-18-0,\nkuc-base-datetime-listbox-1-18-0 *,\nkuc-base-datetime-listbox-1-18-0:lang(en),\nkuc-base-datetime-listbox-1-18-0:lang(en) * {\n font-family: sans-serif;\n}\nkuc-base-datetime-listbox-1-18-0:lang(ja),\nkuc-base-datetime-listbox-1-18-0:lang(ja) * {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo,\n sans-serif;\n}\nkuc-base-datetime-listbox-1-18-0:lang(zh),\nkuc-base-datetime-listbox-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", sans-serif;\n}\nkuc-base-datetime-listbox-1-18-0:lang(zh-TW),\nkuc-base-datetime-listbox-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC"\n}\nkuc-base-datetime-listbox-1-18-0:lang(es),\nkuc-base-datetime-listbox-1-18-0:lang(es) * {\n font-family: sans-serif;\n}\n.kuc-base-datetime-listbox-1-18-0__listbox {\n position: absolute;\n z-index: 2000;\n min-width: 280px;\n margin: 0;\n padding: 8px 0;\n border: 1px solid #e3e7e8;\n background-color: #ffffff;\n list-style: none;\n line-height: 1;\n overflow-y: auto;\n -webkit-tap-highlight-color: transparent;\n box-shadow: 0 5px 10px rgb(0 0 0 / 10%);\n}\n.kuc-base-datetime-listbox-1-18-0__listbox__item {\n position: relative;\n display: block;\n box-sizing: border-box;\n width: 100%;\n padding: 8px 16px 8px 25px;\n color: #333333;\n cursor: pointer;\n -webkit-tap-highlight-color: initial;\n text-align: left;\n font-size: 14px;\n user-select: none;\n}\n.kuc-base-datetime-listbox-1-18-0__listbox__item[aria-selected="true"] {\n color: #3498db;\n}\n.kuc-base-datetime-listbox-1-18-0__listbox--highlight {\n background-color: #e2f2fe;\n cursor: pointer;\n}\n.kuc-base-datetime-listbox-1-18-0__listbox__item__icon {\n position: absolute;\n left: 8px;\n top: 10px;\n background-color: transparent;\n}\n.kuc-base-datetime-listbox-1-18-0__listbox__item:focus {\n outline: none;\n}\n'),window.customElements.define("kuc-base-datetime-listbox-1-18-0",Br));var Vr=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class Ur extends Ji{constructor(){super(...arguments),this.inputAriaLabel="",this.inputId="",this.language="en",this.value="",this.disabled=!1,this.inputAriaInvalid=!1,this.required=!1,this._dateTimeCalendarVisible=!1,this._locale=Ni("en"),this._calendarValue="",this._inputValue="",this._valueForReset=""}update(e){e.has("inputId")&&(this._GUID=this.inputId),e.has("language")&&(this._locale=Ni(this.language),this._updateValueProp()),e.has("value")&&this._updateValueProp(),super.update(e)}render(){return kt`
|
||
<input
|
||
class="kuc-base-date-1-18-0__input"
|
||
id="${this._GUID}-label"
|
||
type="text"
|
||
text-align="center"
|
||
.value="${this._inputValue}"
|
||
aria-describedby="${this._GUID}-error"
|
||
aria-invalid="${this.inputAriaInvalid}"
|
||
aria-required="${this.required}"
|
||
?disabled="${this.disabled}"
|
||
?required="${this.required}"
|
||
@click="${this._handleClickInput}"
|
||
@change="${this._handleChangeInput}"
|
||
@keydown="${this._handleKeyDownInput}"
|
||
@input="${this._handleInputValue}"
|
||
/>
|
||
<button
|
||
aria-haspopup="dialog"
|
||
aria-expanded="${this._dateTimeCalendarVisible}"
|
||
class="kuc-base-date-1-18-0__assistive-text"
|
||
@click="${this._handleClickButton}"
|
||
@focus="${this._handleFocusButton}"
|
||
@blur="${this._handleBlurButton}"
|
||
?disabled="${this.disabled}"
|
||
>
|
||
show date picker
|
||
</button>
|
||
${this._dateTimeCalendarVisible?kt`
|
||
<kuc-base-datetime-calendar-1-18-0
|
||
class="kuc-base-date-1-18-0__calendar"
|
||
.language="${this.language}"
|
||
.value="${this._calendarValue}"
|
||
?hidden="${!this._dateTimeCalendarVisible}"
|
||
@kuc:calendar-header-previous-shifttab="${this._handleShiftTabCalendarPrevMonth}"
|
||
@kuc:calendar-body-change-date="${this._handleClickCalendarChangeDate}"
|
||
@kuc:calendar-body-click-date="${this._handleClickCalendarClickDate}"
|
||
@kuc:calendar-footer-click-none="${this._handleClickCalendarFooterButtonNone}"
|
||
@kuc:calendar-footer-tab-none="${this._handleTabCalendarFooterButtonNone}"
|
||
@kuc:calendar-footer-click-today="${this._handleClickCalendarFooterButtonToday}"
|
||
@kuc:calendar-escape="${this._handleCalendarEscape}"
|
||
@kuc:calendar-body-blur="${this._handleCalendarBlurBody}"
|
||
>
|
||
</kuc-base-datetime-calendar-1-18-0>
|
||
`:""}
|
||
`}updated(e){e.has("inputAriaLabel")&&this.inputAriaLabel&&this._dateInput.setAttribute("aria-label",this.inputAriaLabel),super.updated(e)}_handleInputValue(e){const t=e.target.value;this._inputValue=t||""}_handleClickInput(){if(!this._dateTimeCalendarVisible)return this._valueForReset=this.value,this._calendarValue=this._getNewCalendarValue(this._inputValue||""),void this._openCalendar();this._closeCalendar()}_updateValueProp(){if(this.value){const e=this._setCalendarValueWhenInvalidValue();return this._inputValue=Ci(this.language,this.value),void(this._calendarValue=e||this.value)}const e=Ii();this._inputValue="",this._calendarValue=this._calendarValue?this._calendarValue.slice(0,7)+"-01":e.slice(0,7)}_setCalendarValueWhenInvalidValue(){if(this.value&&!lr(this.value)){const e=Ii();return this._calendarValue||e.slice(0,7)}return""}_getNewCalendarValue(e){if(Oi(this.language,e))return Ti(this.language,e);if(!this._calendarValue)return"";let t=this._calendarValue.slice(0,7);return""===e&&(t=this._calendarValue.slice(0,7)+"-01"),t}_handleChangeInput(e){e.stopPropagation();const t=(null==e?void 0:e.target).value;if(this._calendarValue=this._getNewCalendarValue(t),this._calendarValue.length>7)return void this._dispathDateChangeCustomEvent(Ti(this.language,t));const n={value:void 0,oldValue:this.value,error:this._locale.INVALID_FORMAT};this._inputValue=t,Zi(this,"kuc:base-date-change",n)}_handleKeyDownInput(e){"Escape"===e.key&&this._closeCalendar()}_closeCalendar(){this._dateTimeCalendarVisible=!1}_openCalendar(){this._dateTimeCalendarVisible=!0}_handleShiftTabCalendarPrevMonth(){this._footerNoneBtn.focus()}_handleClickCalendarChangeDate(e){e.detail.oldValue=this.value,this.value=e.detail.value,Zi(this,"kuc:base-date-change",e.detail)}_handleClickCalendarClickDate(e){this._closeCalendar(),e.detail.oldValue=this.value,this._dateInput.focus(),e.detail.oldValue!==e.detail.value&&(this.value=e.detail.value,Zi(this,"kuc:base-date-change",e.detail))}_handleClickCalendarFooterButtonNone(){this._closeCalendar(),this._dateInput.focus(),this._inputValue="";const e=Ii();let t=this._setCalendarValueWhenInvalidValue();t||(t=this._calendarValue?this._calendarValue.slice(0,7)+"-01":e.slice(0,7)+"-01"),this._calendarValue=t,this._dispathDateChangeCustomEvent(void 0)}_handleTabCalendarFooterButtonNone(){this._previousMonth.focus()}_handleClickCalendarFooterButtonToday(){this._closeCalendar();const e=Ii();this._dateInput.focus(),this._dispathDateChangeCustomEvent(e)}_handleCalendarEscape(){const e=this._valueForReset;if(this._closeCalendar(),this._dateInput.focus(),e===this.value)return;const t={oldValue:this.value,value:e};this.value=e,Zi(this,"kuc:base-date-change",t)}_handleCalendarBlurBody(e){e.preventDefault(),this._dateTimeCalendarVisible=!1}_dispathDateChangeCustomEvent(e){const t={value:e,oldValue:this.value};this.value=void 0===e?"":e,Zi(this,"kuc:base-date-change",t)}_handleClickButton(){if(!this._dateTimeCalendarVisible)return this._valueForReset=this.value,this._calendarValue=this._getNewCalendarValue(this._inputValue||""),void this._openCalendar();this._closeCalendar()}_handleBlurButton(){this._dateInput.classList.remove("kuc-base-date-1-18-0__input--focus")}_handleFocusButton(){this._dateInput.classList.add("kuc-base-date-1-18-0__input--focus")}}Vr([on({type:String})],Ur.prototype,"inputAriaLabel",void 0),Vr([on({type:String})],Ur.prototype,"inputId",void 0),Vr([on({type:String,attribute:"lang",reflect:!0})],Ur.prototype,"language",void 0),Vr([on({type:String,reflect:!0})],Ur.prototype,"value",void 0),Vr([on({type:Boolean})],Ur.prototype,"disabled",void 0),Vr([on({type:Boolean})],Ur.prototype,"inputAriaInvalid",void 0),Vr([on({type:Boolean})],Ur.prototype,"required",void 0),Vr([_n(".kuc-base-date-1-18-0__input")],Ur.prototype,"_dateInput",void 0),Vr([_n(".kuc-base-datetime-calendar-header-1-18-0__group__button--previous-month")],Ur.prototype,"_previousMonth",void 0),Vr([_n(".kuc-base-datetime-calendar-footer-1-18-0__group__button--none")],Ur.prototype,"_footerNoneBtn",void 0),Vr([cn()],Ur.prototype,"_dateTimeCalendarVisible",void 0),window.customElements.get("kuc-base-date-1-18-0")||(Xi("\ninput.kuc-base-date-1-18-0__input {\n width: 100px;\n height: 40px;\n padding: 0px;\n text-align: center;\n border: 1px solid #e3e7e8;\n color: #333333;\n box-sizing: border-box;\n font-size: 14px;\n box-shadow: 2px 2px 4px #f5f5f5 inset, -2px -2px 4px #f5f5f5 inset;\n}\n\ninput.kuc-base-date-1-18-0__input:focus {\n outline: none;\n border: 1px solid #3498db;\n}\ninput.kuc-base-date-1-18-0__input--focus {\n box-shadow: 2px 2px 4px #f5f5f5 inset, -2px -2px 4px #f5f5f5 inset;\n border: 1px solid #3498db;\n background-color: #ffffff;\n color: #333333;\n}\n.kuc-datetime-picker-1-18-0__group__inputs--date\n input.kuc-base-date-1-18-0__input--focus {\n border-color: #3498db;\n}\ninput.kuc-base-date-1-18-0__input:disabled {\n color: #888888 !important;\n background-color: #d4d7d7;\n box-shadow: none;\n cursor: not-allowed;\n}\n.kuc-base-date-1-18-0__calendar {\n position: absolute;\n z-index: 2000;\n background-color: #ffffff;\n text-align: center;\n box-sizing: border-box;\n}\n.kuc-base-date-1-18-0__assistive-text {\n clip: rect(1px, 1px, 1px, 1px);\n overflow: hidden;\n position: absolute !important;\n padding: 0px !important;\n border: 0px !important;\n height: 1px !important;\n width: 1px !important;\n}\n"),window.customElements.define("kuc-base-date-1-18-0",Ur));var Fr=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let zr;(()=>{if(zr=window.customElements.get("kuc-date-picker-1-18-0"),!zr){class e extends Ji{constructor(e){super(),this.className="",this.error="",this.id="",this.label="",this.disabled=!1,this.requiredIcon=!1,this.language="auto",this.value="",this.visible=!0,this._errorFormat="",this._errorText="",this._inputValue="",this._invalidValue="",this._valueConverted="",this._GUID=Qi();const t=rr(e);Object.assign(this,t)}shouldUpdate(e){return!(void 0!==this.value&&""!==this.value&&("string"==typeof this.value&&or(this.value)?(this._valueConverted=Vi(this.value),this._valueConverted&&!lr(this._valueConverted)&&(this.throwErrorAfterUpdateComplete(li),1)):(this.throwErrorAfterUpdateComplete(li),1)))}willUpdate(e){e.has("value")&&(void 0===this.value?this._inputValue=this._invalidValue:(this.value=""===this.value?this.value:this._valueConverted,this._inputValue=this.value,this._errorFormat="")),this._updateErrorText()}render(){return kt`
|
||
<div class="kuc-date-picker-1-18-0__group">
|
||
<label
|
||
class="kuc-date-picker-1-18-0__group__label"
|
||
for="${this._GUID}-label"
|
||
@click="${this._handleClickLabel}"
|
||
?hidden="${!this.label}"
|
||
>
|
||
<kuc-base-label-1-18-0
|
||
.text="${this.label}"
|
||
.requiredIcon="${this.requiredIcon}"
|
||
></kuc-base-label-1-18-0>
|
||
</label>
|
||
<kuc-base-date-1-18-0
|
||
.inputId="${this._GUID}"
|
||
.inputAriaInvalid="${""!==this.error}"
|
||
.disabled="${this.disabled}"
|
||
.value="${this._inputValue}"
|
||
.required="${this.requiredIcon}"
|
||
.language="${this._getLanguage()}"
|
||
@kuc:base-date-change="${this._handleDateChange}"
|
||
>
|
||
</kuc-base-date-1-18-0>
|
||
<kuc-base-error-1-18-0
|
||
.text="${this._errorText}"
|
||
.guid="${this._GUID}"
|
||
></kuc-base-error-1-18-0>
|
||
</div>
|
||
`}updated(){this._invalidValue=""}_updateErrorText(){this._errorText=this._errorFormat||this.error}_getLanguage(){const e=["en","ja","zh","zh-TW","es"];return-1!==e.indexOf(this.language)?this.language:-1!==e.indexOf(document.documentElement.lang)?document.documentElement.lang:"en"}_handleClickLabel(e){e.preventDefault()}_handleDateChange(e){e.stopPropagation(),e.preventDefault();const t={oldValue:this.value,value:""};e.detail.error?(this.value=void 0,this._invalidValue=this._dateInput.value,this._errorFormat=e.detail.error,this.error="",t.value=void 0):(this._errorFormat="",this.value=void 0===e.detail.value?"":e.detail.value,t.value=this.value),this._dispatchChangeEvent(t)}_dispatchChangeEvent(e){Zi(this,"change",e)}}Fr([on({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),Fr([on({type:String})],e.prototype,"error",void 0),Fr([on({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),Fr([on({type:String})],e.prototype,"label",void 0),Fr([on({type:Boolean})],e.prototype,"disabled",void 0),Fr([on({type:Boolean})],e.prototype,"requiredIcon",void 0),Fr([on({type:String,attribute:"lang",reflect:!0,converter:Hi})],e.prototype,"language",void 0),Fr([on({type:String})],e.prototype,"value",void 0),Fr([on({type:Boolean,attribute:"hidden",reflect:!0,converter:ji})],e.prototype,"visible",void 0),Fr([_n(".kuc-base-date-1-18-0__input")],e.prototype,"_dateInput",void 0),window.customElements.define("kuc-date-picker-1-18-0",e),Xi('\nkuc-date-picker-1-18-0,\nkuc-date-picker-1-18-0 *,\nkuc-date-picker-1-18-0:lang(en),\nkuc-date-picker-1-18-0:lang(en) * {\n font-family: sans-serif;\n}\nkuc-date-picker-1-18-0:lang(ja),\nkuc-date-picker-1-18-0:lang(ja) * {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo,\n sans-serif;\n}\nkuc-date-picker-1-18-0:lang(zh),\nkuc-date-picker-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", sans-serif;\n}\nkuc-date-picker-1-18-0:lang(zh-TW),\nkuc-date-picker-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC"\n}\nkuc-date-picker-1-18-0:lang(es),\nkuc-date-picker-1-18-0:lang(es) * {\n font-family: sans-serif;\n}\nkuc-date-picker-1-18-0 {\n font-size: 14px;\n color: #333333;\n display: inline-table;\n vertical-align: top;\n max-width: var(--kuc-date-picker-input-width, 100px);\n width: var(--kuc-date-picker-input-width, 100px);\n line-height: 1.5;\n}\nkuc-date-picker-1-18-0[hidden] {\n display: none;\n}\n.kuc-date-picker-1-18-0__group {\n display: flex;\n flex-direction: column;\n border: none;\n padding: 0px;\n height: auto;\n margin: 0px;\n}\n.kuc-date-picker-1-18-0__group__label {\n display: inline-block;\n padding: 4px 0px 8px 0px;\n white-space: nowrap;\n}\n.kuc-date-picker-1-18-0__group__label[hidden] {\n display: none;\n}\n.kuc-date-picker-1-18-0__group input[type=text].kuc-base-date-1-18-0__input {\n width: var(--kuc-date-picker-input-width, 100px);\n height: var(--kuc-date-picker-input-height, 40px);\n padding: 0px;\n text-align: center;\n color: var(--kuc-date-picker-input-color);\n border: 1px solid #e3e7e8;\n box-sizing: border-box;\n font-size: var(--kuc-date-picker-input-font-size, 14px);\n box-shadow: 2px 2px 4px #f5f5f5 inset, -2px -2px 4px #f5f5f5 inset;\n}\n\n.kuc-date-picker-1-18-0__group kuc-base-date-1-18-0 {\n display: inline-flex;\n}\n\n.kuc-date-picker-1-18-0__group input[type=text].kuc-base-date-1-18-0__input:focus {\n outline: none;\n border: 1px solid #3498db;\n}\n.kuc-date-picker-1-18-0__group input[type=text].kuc-base-date-1-18-0__input--focus {\n box-shadow: 2px 2px 4px #f5f5f5 inset, -2px -2px 4px #f5f5f5 inset;\n border: 1px solid #3498db;\n background-color: #ffffff;\n color: var(--kuc-date-picker-input-color, #333333);\n}\n.kuc-date-picker-1-18-0__group input[type=text].kuc-base-date-1-18-0__input:disabled {\n color: #888888;\n background-color: #d4d7d7;\n box-shadow: none;\n cursor: not-allowed;\n}\n'),zr=e}})();const Gr=zr;var Wr=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class qr extends Ji{constructor(){super(...arguments),this.language="en",this.max="",this.min="",this.value="",this.disabled=!1,this.hour12=!1,this.timeStep=30,this._listBoxVisible=!1,this._valueLabel="",this._doFocusListBox=!1,this._hours="",this._minutes="",this._suffix="",this._valueForReset="",this._locale=Ni("en")}update(e){(e.has("hour12")||e.has("timeStep")||e.has("max")||e.has("min"))&&(this._listBoxItems=((e,t,n,i)=>{const r=[],o=Math.round(t),a=vi(i),s=vi(n);if(o>0){const t=Math.floor((a-s)/o)+1;for(let n=0;n<t;n++){const t=mi(s+n*o,e);r.push(t)}}return r})(this.hour12,this.timeStep,this.min,this.max),this._updateInputValue()),e.has("value")&&this._updateInputValue(),e.has("language")&&(this._locale=Ni(this.language)),super.update(e)}render(){return kt`
|
||
<div class="kuc-base-time-1-18-0__group" @click="${this._handleClickInputGroup}">
|
||
<input
|
||
type="text"
|
||
class="kuc-base-time-1-18-0__group__hours"
|
||
role="spinbutton"
|
||
tabindex="${this._hours?"0":"-1"}"
|
||
aria-label="Hour"
|
||
@focus="${this._handleFocusInput}"
|
||
@blur="${this._handleBlurInput}"
|
||
@keydown="${this._handleKeyDownInput}"
|
||
@paste="${this._handlePasteInput}"
|
||
?disabled="${this.disabled}"
|
||
value="${this._hours}"
|
||
/>
|
||
${this._getColonTemplate()}
|
||
<input
|
||
type="text"
|
||
class="kuc-base-time-1-18-0__group__minutes"
|
||
role="spinbutton"
|
||
tabindex="${this._minutes?"0":"-1"}"
|
||
aria-label="Minute"
|
||
@focus="${this._handleFocusInput}"
|
||
@blur="${this._handleBlurInput}"
|
||
@keydown="${this._handleKeyDownInput}"
|
||
@paste="${this._handlePasteInput}"
|
||
?disabled="${this.disabled}"
|
||
value="${this._minutes}"
|
||
/>
|
||
${this._getSuffixTemplate()}
|
||
</div>
|
||
<button
|
||
aria-haspopup="listbox"
|
||
aria-expanded="${this._listBoxVisible}"
|
||
class="kuc-base-time-1-18-0__assistive-text"
|
||
@keydown="${this._handleKeyDownButton}"
|
||
@focus="${this._handleFocusButton}"
|
||
@blur="${this._handleBlurButton}"
|
||
?disabled="${this.disabled}"
|
||
>
|
||
show time picker
|
||
</button>
|
||
${this._getListBoxTemplate()}
|
||
`}updated(e){e.has("disabled")&&this._toggleDisabledGroup(),super.update(e)}_handleClickInputGroup(e){if(this.disabled)return;if(""===this.value)return this._toggleEl.focus(),void this._openListBox();const t=e.target;this._openListBox(),"INPUT"!==t.tagName.toUpperCase()?this._hoursEl.select():t.select()}_handleBlurListBox(e){e.preventDefault(),this._inputFocusEl||(this._listBoxVisible=!1)}_toggleDisabledGroup(){return this.disabled?this._inputGroupEl.classList.add("kuc-base-time-1-18-0__group--disabled"):this._inputGroupEl.classList.remove("kuc-base-time-1-18-0__group--disabled")}_updateInputValue(){var e;const t=((e,t)=>{const n=e.split(":"),i=parseInt(n[0],10),r=parseInt(n[1],10),o=i%Qn;return isNaN(o)||isNaN(r)?{hours:"",minutes:"",suffix:""}:t?((e,t)=>{const n=xi(e),i=ki(e);return{hours:Di(i),minutes:Di(t),suffix:n}})(i,r):{hours:Di(o),minutes:Di(r),suffix:""}})(this.value,this.hour12);this._hours=t.hours,this._minutes=t.minutes,this._suffix=t.suffix||"",this._valueLabel=this._getValueLabel(t),this._inputGroupEl&&(this._setValueToInput(t),null===(e=this._inputFocusEl)||void 0===e||e.select())}_getValueLabel(e){if(!e.hours||!e.minutes)return"";const t=`${e.hours}:${e.minutes}`;return e.suffix?t+` ${e.suffix}`:t}_setValueToInput(e){this._hoursEl.value=e.hours,this._minutesEl.value=e.minutes,this._suffixEl&&(this._suffixEl.value=e.suffix||"")}_handleKeyDownButton(e){switch(e.key){case"Tab":case"Escape":if("Escape"===e.key&&e.preventDefault(),!this._listBoxVisible)return;this._closeListBox();break;case"Enter":case" ":case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this._openListBoxByKey();break;default:e.preventDefault(),e.stopPropagation(),this._handleDefaultKeyButton(e.key)}}_handleBlurButton(){this._inputGroupEl.classList.remove("kuc-base-time-1-18-0__group--focus")}_handleFocusButton(e){e.stopPropagation(),this._inputGroupEl.classList.add("kuc-base-time-1-18-0__group--focus")}_openListBoxByKey(){return!this._listBoxVisible&&(this._valueForReset=this.value,this._doFocusListBox=!0,this._listBoxVisible=!0,this._inputGroupEl.classList.remove("kuc-base-time-1-18-0__group--focus"),!0)}_handleListBoxEscape(){this._closeListBox(),this.value=this._valueForReset,this._actionUpdateInputValue(this.value),""!==this.value?this._hoursEl.select():this._toggleEl.focus()}_handleDefaultKeyButton(e){if(!/^[0-9]$/i.test(e)||""!==this.value)return;const t=this._computeNumberKeyValueHours(e);this._actionUpdateInputValue(t),this._hoursEl.select()}_handleChangeListBox(e){if(e.preventDefault(),e.stopPropagation(),this._closeListBox(),this._inputFocusEl=this._hoursEl,this._hoursEl.select(),!e.detail.value)return;const t=e.detail.value;this._actionUpdateInputValue(t)}_handleListBoxFocusChange(e){const t=e.detail.value,n=wi(t);this._actionUpdateInputValue(n)}_handleFocusInput(e){this._inputFocusEl=e.target,this._inputFocusEl.select(),this._inputGroupEl.classList.add("kuc-base-time-1-18-0__group--focus")}_handleBlurInput(e){this._inputFocusEl=null;const t=e.relatedTarget;t&&t instanceof HTMLInputElement&&[this._hoursEl,this._minutesEl,this._suffixEl].indexOf(t)>-1||(this._closeListBox(),this._inputGroupEl.classList.remove("kuc-base-time-1-18-0__group--focus"))}_handleTabKey(e){return"Tab"===e.key}_handleKeyDownInput(e){this._closeListBox(),this._handleTabKey(e)||this._handleSupportedKey(e)}_handlePasteInput(e){e.preventDefault()}_handleSupportedKey(e){e.preventDefault();const t=e.key;let n;switch(t){case"Enter":case"ArrowRight":this._actionSelectNextRange();break;case"ArrowLeft":this._actionSelectPreviousRange();break;case"ArrowUp":n=this._computeArrowUpDownValue(1),this._actionUpdateInputValue(n);break;case"ArrowDown":n=this._computeArrowUpDownValue(-1),this._actionUpdateInputValue(n);break;case"Backspace":case"Delete":n=this._computeDeleteValue(),this._actionUpdateInputValue(n);break;default:n=this._computeDefaultKeyValue(t),this._actionUpdateInputValue(n)}}_actionUpdateInputValue(e){const t=""===this.value?this.value:this._formatKeyDownValue(),n=wi(t),i=wi(e);n!==i&&(this.value=i,this._dispatchEventTimeChange(i,n))}_computeDeleteValue(){return this._inputFocusEl===this._minutesEl?this._formatKeyDownValue({minutes:"00"}):this._inputFocusEl===this._hoursEl?this._formatKeyDownValue({hours:"00"}):this._formatKeyDownValue()}_computeArrowUpDownValue(e){return this._inputFocusEl===this._hoursEl?this._computeArrowUpDownHourValue(e):this._inputFocusEl===this._minutesEl?this._computeArrowUpDownMinuteValue(e):this._computeKeyDownSuffixValue()}_computeKeyDownSuffixValue(e){if(!e){const e=this._suffix===ti?ni:ti;return this._formatKeyDownValue({suffix:e})}if(-1===["a","A","p","P"].indexOf(e))return this._formatKeyDownValue();const t="a"===e||"A"===e?ti:ni;return""===this.value&&this._hoursEl.select(),this._formatKeyDownValue({suffix:t})}_computeArrowUpDownHourValue(e){let t=parseInt(this._hours,10)+e;return this.hour12?(t%=ei,t=t<=0?ei:t):(t%=Qn,t=t<0?23:t),this._formatKeyDownValue({hours:t.toString()})}_computeArrowUpDownMinuteValue(e){let t=parseInt(this._minutes,10)+e;return t%=60,t=t<0?59:t,this._formatKeyDownValue({minutes:t.toString()})}_computeDefaultKeyValue(e){return/^[0-9]$/i.test(e)?this._computeNumberKeyValue(e):this._inputFocusEl===this._suffixEl?this._computeKeyDownSuffixValue(e):this._formatKeyDownValue()}_computeNumberKeyValue(e){return this._inputFocusEl===this._minutesEl?this._computeNumberKeyValueMinutes(e):this._inputFocusEl===this._hoursEl?this._computeNumberKeyValueHours(e):this._formatKeyDownValue()}_computeNumberKeyValueMinutes(e){const t=this._getPreviousMinutes(this._minutes),n=Di(t+e);return""===this.value?(this._hoursEl.select(),this._computeNumberKeyValueHours(e)):this._formatKeyDownValue({minutes:n})}_computeNumberKeyValueHours(e){const t=this._getPreviousHours(this._hours,e),n=Di(t+e);return""===this.value?this._formatKeyDownValue({hours:n,minutes:"00"}):this._formatKeyDownValue({hours:n})}_getPreviousMinutes(e){let t;return t=parseInt(e,10)>10?(""+e)[1]:""+e,t=parseInt(t,10)>5?"0":t,t}_getPreviousHours(e,t){let n;n=parseInt(e,10)>10?(""+e)[1]:""+e;const i=parseInt(n+t,10);return n=this.hour12&&i>ei||!this.hour12&&i>=Qn?"0":n,n}_actionSelectNextRange(){this._inputFocusEl!==this._hoursEl?this.hour12&&this._inputFocusEl===this._minutesEl&&this._suffixEl.select():this._minutesEl.select()}_actionSelectPreviousRange(){this._inputFocusEl!==this._suffixEl?this._inputFocusEl===this._minutesEl&&this._hoursEl.select():this._minutesEl.select()}_dispatchEventTimeChange(e,t){const n={value:e,oldValue:t};(yi(e,this.min)<0||yi(this.max,e)<0)&&(n.error=this._locale.TIME_IS_OUT_OF_VALID_RANGE),Zi(this,"kuc:base-time-change",n)}_formatKeyDownValue(e={hours:this._hours,minutes:this._minutes,suffix:this._suffix}){const t=e.hours||this._hours,n=e.minutes||this._minutes,i=e.suffix||this._suffix,r=`${Di(t)}:${Di(n)}`;return i?`${r} ${i}`:r}_openListBox(){this._listBoxVisible||(this._doFocusListBox=!1,this._listBoxVisible=!0)}_closeListBox(){this._doFocusListBox=!1,this._listBoxVisible=!1}_getColonTemplate(){return this._hours?kt` <span class="kuc-base-time-1-18-0__group__colon">:</span> `:""}_getSuffixTemplate(){return this.hour12?kt`
|
||
<input
|
||
class="kuc-base-time-1-18-0__group__suffix"
|
||
role="spinbutton"
|
||
tabindex="${this._suffix?"0":"-1"}"
|
||
aria-label="${this._suffix||"suffix"}"
|
||
@focus="${this._handleFocusInput}"
|
||
@blur="${this._handleBlurInput}"
|
||
@keydown="${this._handleKeyDownInput}"
|
||
@paste="${this._handlePasteInput}"
|
||
?disabled="${this.disabled}"
|
||
value="${this._suffix}"
|
||
/>
|
||
`:""}_getListBoxTemplate(){return this._listBoxVisible?kt`
|
||
<kuc-base-datetime-listbox-1-18-0
|
||
maxHeight="165"
|
||
aria-hidden="${!this._listBoxVisible}"
|
||
class="kuc-base-time-1-18-0__group__listbox"
|
||
.items="${this._listBoxItems||[]}"
|
||
.value="${this._valueLabel}"
|
||
.doFocus="${this._doFocusListBox}"
|
||
@kuc:listbox-click="${this._handleChangeListBox}"
|
||
@kuc:listbox-blur="${this._handleBlurListBox}"
|
||
@kuc:listbox-focus-change="${this._handleListBoxFocusChange}"
|
||
@kuc:listbox-escape="${this._handleListBoxEscape}"
|
||
></kuc-base-datetime-listbox-1-18-0>
|
||
`:""}}Wr([on({type:String,attribute:"lang",reflect:!0})],qr.prototype,"language",void 0),Wr([on({type:String})],qr.prototype,"max",void 0),Wr([on({type:String})],qr.prototype,"min",void 0),Wr([on({type:String})],qr.prototype,"value",void 0),Wr([on({type:Boolean})],qr.prototype,"disabled",void 0),Wr([on({type:Boolean})],qr.prototype,"hour12",void 0),Wr([on({type:Number})],qr.prototype,"timeStep",void 0),Wr([cn()],qr.prototype,"_listBoxVisible",void 0),Wr([cn()],qr.prototype,"_valueLabel",void 0),Wr([cn()],qr.prototype,"_doFocusListBox",void 0),Wr([cn()],qr.prototype,"_hours",void 0),Wr([cn()],qr.prototype,"_minutes",void 0),Wr([cn()],qr.prototype,"_suffix",void 0),Wr([cn()],qr.prototype,"_inputFocusEl",void 0),Wr([_n(".kuc-base-time-1-18-0__group__hours")],qr.prototype,"_hoursEl",void 0),Wr([_n(".kuc-base-time-1-18-0__group__minutes")],qr.prototype,"_minutesEl",void 0),Wr([_n(".kuc-base-time-1-18-0__group__suffix")],qr.prototype,"_suffixEl",void 0),Wr([_n(".kuc-base-time-1-18-0__assistive-text")],qr.prototype,"_toggleEl",void 0),Wr([_n(".kuc-base-time-1-18-0__group")],qr.prototype,"_inputGroupEl",void 0),window.customElements.get("kuc-base-time-1-18-0")||(Xi("\n:lang(ja) .kuc-base-time-1-18-0__group input.kuc-base-time-1-18-0__group__hours,\n:lang(ja) .kuc-base-time-1-18-0__group input.kuc-base-time-1-18-0__group__minutes {\n width: 2ch;\n}\n.kuc-base-time-1-18-0__group {\n display: inline-flex;\n position: relative;\n justify-content: center;\n -webkit-box-align: center;\n align-items: center;\n max-width: 85px;\n width: 85px;\n height: 40px;\n color: #333333;\n border: solid 1px #e3e7e8;\n box-sizing: border-box;\n padding: 0px 8px;\n box-shadow: 2px 2px 4px #f5f5f5 inset, -2px -2px 4px #f5f5f5 inset;\n background-color: #ffffff;\n overflow: hidden;\n}\n.kuc-base-time-1-18-0__group input.kuc-base-time-1-18-0__group__hours {\n border: 0px;\n padding: 0px;\n width: 2ch;\n font-size: inherit;\n outline: none;\n background-color: transparent;\n color: #333333;\n caret-color: transparent;\n user-select: none;\n}\n.kuc-base-time-1-18-0__group input.kuc-base-time-1-18-0__group__minutes {\n border: 0px;\n padding: 0px;\n width: 2ch;\n font-size: inherit;\n outline: none;\n background-color: transparent;\n color: #333333;\n caret-color: transparent;\n user-select: none;\n}\n.kuc-base-time-1-18-0__group input.kuc-base-time-1-18-0__group__hours:focus {\n border: 0px;\n}\n.kuc-base-time-1-18-0__group input.kuc-base-time-1-18-0__group__minutes:focus {\n border: 0px;\n}\n.kuc-base-time-1-18-0__group__colon {\n width: auto;\n text-align: center;\n}\n.kuc-base-time-1-18-0__group input.kuc-base-time-1-18-0__group__suffix {\n border: 0px;\n width: 3ch;\n text-align: right;\n font-size: inherit;\n outline: none;\n appearance: none;\n margin-left: 1px;\n padding: 0px;\n background-color: transparent;\n color: #333333;\n caret-color: transparent;\n user-select: none;\n}\n.kuc-base-time-1-18-0__group--focus {\n box-shadow: 2px 2px 4px #f5f5f5 inset, -2px -2px 4px #f5f5f5 inset;\n border: 1px solid #3498db;\n background-color: #ffffff;\n color: #333333;\n}\n.kuc-base-time-1-18-0__assistive-text {\n clip: rect(1px, 1px, 1px, 1px);\n overflow: hidden;\n position: absolute !important;\n padding: 0px !important;\n border: 0px !important;\n height: 1px !important;\n width: 1px !important;\n}\n.kuc-base-time-1-18-0__group--disabled {\n background-color: #d4d7d7;\n box-shadow: none;\n color: #888888;\n cursor: not-allowed;\n}\n.kuc-base-time-1-18-0__group--disabled input:disabled,\n.kuc-base-time-1-18-0__group--disabled span {\n cursor: not-allowed;\n color: #888888;\n -webkit-text-fill-color: #888888;\n}\n"),window.customElements.define("kuc-base-time-1-18-0",qr));var Kr=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Yr;(()=>{if(Yr=window.customElements.get("kuc-datetime-picker-1-18-0"),!Yr){class e extends Ji{constructor(e){super(),this.className="",this.error="",this.id="",this.label="",this.language="auto",this.max="",this.min="",this.value="",this.disabled=!1,this.hour12=!1,this.requiredIcon=!1,this.visible=!0,this.timeStep=30,this._dateValue="",this._timeValue="",this._previousTimeValue="",this._previousDateValue="",this._errorFormat="",this._errorText="",this._dateConverted="",this._changeDateByUI=!1,this._changeTimeByUI=!1,this._inputMax="",this._inputMin="",this._timeConverted="",this._errorInvalidTime="",this._inputTimeStep=30,this._GUID=Qi();const t=rr(e);Object.assign(this,t)}shouldUpdate(e){return!((e.has("max")||e.has("min"))&&!this._checkAndUpdateMaxMinProperty())&&(!(e.has("timeStep")&&!this._checkAndUpdateTimeStepProperty())&&(void 0===this.value||""===this.value||("string"!=typeof this.value?(this.throwErrorAfterUpdateComplete(li),!1):(this._dateAndTime=this._getDateTimeValue(this.value),this._dateConverted=Vi(this._dateAndTime.date),cr(this._dateAndTime.date,this._dateAndTime.time)&&lr(this._dateConverted)?(this._timeConverted=Ui(this._dateAndTime.time.slice(0,5)),!e.has("value")||!(yi(this._timeConverted,this._inputMin)<0||yi(this._inputMax,this._timeConverted)<0)||(this.throwErrorAfterUpdateComplete(ri),!1)):(this.throwErrorAfterUpdateComplete(li),!1)))))}willUpdate(e){this._changeDateByUI||this._changeTimeByUI?this._updateValueChangeByUI():this._updateValueWhenSetter()}_checkAndUpdateMaxMinProperty(){let e=this._inputMin,t=this._inputMax;if(void 0===this.max||""===this.max)t=si;else{if(!ar(this.max))return this.throwErrorAfterUpdateComplete(ui),!1;t=this.max=Ui(this.max)}if(void 0===this.min||""===this.min)e=ai;else{if(!ar(this.min))return this.throwErrorAfterUpdateComplete(ci),!1;e=this.min=Ui(this.min)}return yi(t,e)<0?(this.throwErrorAfterUpdateComplete(ii),!1):(this._inputMin=e,this._inputMax=t,!0)}_checkAndUpdateTimeStepProperty(){return pr(this.timeStep)?sr(this.timeStep,this._inputMax,this._inputMin)?(this._inputTimeStep=this.timeStep,!0):(this.throwErrorAfterUpdateComplete(di),!1):(this.throwErrorAfterUpdateComplete(oi),!1)}_updateValueChangeByUI(){const e=this._validateDateTimeFormat();this.value=e?this.value:void 0,!e||this._dateValue||this._timeValue||(this.value="");const t=!this._dateValue&&this._timeValue,n=this._dateValue&&!this._timeValue;this._errorText=t||n?this.error||this._errorFormat||this._errorInvalidTime:e?this.error:this._errorFormat||this._errorInvalidTime}_validateDateTimeFormat(){const e=Boolean(this._timeValue)&&!this._dateValue,t=Boolean(this._dateValue)&&!this._timeValue;return!(this._errorFormat||this._errorInvalidTime||e||t)}_updateValueWhenSetter(){if(this._errorText=this.error,""===this.value||void 0===this.value)return this._previousTimeValue="",this._errorFormat="",void(this._errorInvalidTime="");this._setDateTimeValueSeparate(this._dateAndTime,this._dateConverted),this.value=this._getDateTimeString()}_setDateTimeValueSeparate(e,t){this._dateValue=t||this._dateInput.value,this._timeValue=this._dateValue&&lr(t)?Ui(e.time.slice(0,5)):this._previousTimeValue}update(e){e.has("value")&&(void 0===this.value&&this._setUndefinedValue(),""===this.value&&this._setEmptyValue()),(e.has("max")||e.has("min")||e.has("value"))&&void 0!==this.value&&(this._errorInvalidTime=""),super.update(e)}_setUndefinedValue(){if(!this._changeTimeByUI){if(this._errorFormat)return this._changeDateByUI?void(this._dateValue=this._dateInput.value):(this._dateValue="",void(this._timeValue=""));this._dateValue=this._previousDateValue,this._timeValue=this._previousTimeValue}}_setEmptyValue(){this._dateValue="",this._timeValue="",this._previousTimeValue="",this._previousDateValue="",this._errorFormat="",this._errorInvalidTime=""}render(){return kt`
|
||
<fieldset
|
||
class="kuc-datetime-picker-1-18-0__group"
|
||
aria-describedby="${this._GUID}-error"
|
||
>
|
||
<legend
|
||
class="kuc-datetime-picker-1-18-0__group__label"
|
||
?hidden="${!this.label}"
|
||
>
|
||
<kuc-base-label-1-18-0
|
||
.text="${this.label}"
|
||
.requiredIcon="${this.requiredIcon}"
|
||
></kuc-base-label-1-18-0>
|
||
</legend>
|
||
<div class="kuc-datetime-picker-1-18-0__group__inputs">
|
||
<kuc-base-date-1-18-0
|
||
class="kuc-datetime-picker-1-18-0__group__inputs--date"
|
||
.value="${this._dateValue}"
|
||
.language="${this._getLanguage()}"
|
||
.disabled="${this.disabled}"
|
||
inputAriaLabel="date"
|
||
@kuc:base-date-change="${this._handleDateChange}"
|
||
></kuc-base-date-1-18-0
|
||
><kuc-base-time-1-18-0
|
||
class="kuc-datetime-picker-1-18-0__group__inputs--time"
|
||
.value="${this._timeValue}"
|
||
.hour12="${this.hour12}"
|
||
.disabled="${this.disabled}"
|
||
.timeStep="${this._inputTimeStep}"
|
||
.min="${this._inputMin}"
|
||
.max="${this._inputMax}"
|
||
.language="${this._getLanguage()}"
|
||
@kuc:base-time-change="${this._handleTimeChange}"
|
||
></kuc-base-time-1-18-0>
|
||
</div>
|
||
<kuc-base-error-1-18-0
|
||
.text="${this._errorText}"
|
||
.guid="${this._GUID}"
|
||
?hidden="${!this._errorText}"
|
||
></kuc-base-error-1-18-0>
|
||
</fieldset>
|
||
`}updated(){this._resetState()}_resetState(){this._previousTimeValue="",this._previousDateValue="",this._changeDateByUI=!1,this._changeTimeByUI=!1}_handleDateChange(e){e.stopPropagation(),e.preventDefault(),this._changeDateByUI=!0;let t=this._dateValue;e.detail.error?(this._errorFormat=e.detail.error,this.error=""):(t=e.detail.value,this._errorFormat=""),this._updateDateTimeValue(t,"date")}_handleTimeChange(e){e.preventDefault(),e.stopPropagation(),this._changeTimeByUI=!0;const t=e.detail.value;e.detail.error?(this._errorInvalidTime=e.detail.error,this.error=""):this._errorInvalidTime="",this._updateDateTimeValue(t,"time")}_updateDateTimeValue(e,t){const n=this.value;"date"===t?this._dateValue=e||"":this._timeValue=e,this._previousTimeValue=this._timeValue,this._previousDateValue=this._dateValue;const i=this._errorFormat||this._errorInvalidTime?void 0:this._getDateTimeString(),r=this._errorFormat||this._errorInvalidTime?void 0:i;this.value=r,!this._validateDateTimeFormat()||this._dateValue||this._timeValue||(this.value="");const o={value:this.value,oldValue:n,changedPart:t};Zi(this,"change",o)}_getDateTimeString(){if(!this._dateValue||!this._timeValue)return;if(!this.value)return`${this._dateValue}T${this._timeValue}:00`;const e=this.value.split(":");return 3===e.length?`${this._dateValue}T${this._timeValue}:${e[2]}`:`${this._dateValue}T${this._timeValue}:00`}_getDateTimeValue(e){if(""===e||void 0===e)return{date:"",time:""};const t=e.split("T"),n=t[0],i=t[1];if(e.indexOf("T")===e.length-1||t.length>2)return{date:n,time:""};if(!i)return{date:n,time:ai};const[r,o,a]=i.split(":");if(""===r||""===o||""===a)return{date:n,time:i};const s=`${r}:${o||"00"}`;return a?{date:n,time:`${s}:${a}`}:{date:n,time:s}}_getLanguage(){const e=["en","ja","zh","zh-TW","es"];return-1!==e.indexOf(this.language)?this.language:-1!==e.indexOf(document.documentElement.lang)?document.documentElement.lang:"en"}}Kr([on({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),Kr([on({type:String})],e.prototype,"error",void 0),Kr([on({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),Kr([on({type:String})],e.prototype,"label",void 0),Kr([on({type:String,attribute:"lang",reflect:!0,converter:Hi})],e.prototype,"language",void 0),Kr([on({type:String})],e.prototype,"max",void 0),Kr([on({type:String})],e.prototype,"min",void 0),Kr([on({type:String,hasChanged:(e,t)=>(""===e||void 0===e)&&e===t||e!==t})],e.prototype,"value",void 0),Kr([on({type:Boolean})],e.prototype,"disabled",void 0),Kr([on({type:Boolean})],e.prototype,"hour12",void 0),Kr([on({type:Boolean})],e.prototype,"requiredIcon",void 0),Kr([on({type:Boolean,attribute:"hidden",reflect:!0,converter:ji})],e.prototype,"visible",void 0),Kr([on({type:Number})],e.prototype,"timeStep",void 0),Kr([_n(".kuc-base-date-1-18-0__input")],e.prototype,"_dateInput",void 0),window.customElements.define("kuc-datetime-picker-1-18-0",e),Xi('\nkuc-datetime-picker-1-18-0,\nkuc-datetime-picker-1-18-0 *,\nkuc-datetime-picker-1-18-0:lang(en),\nkuc-datetime-picker-1-18-0:lang(en) * {\n font-family: sans-serif;\n}\nkuc-datetime-picker-1-18-0:lang(ja),\nkuc-datetime-picker-1-18-0:lang(ja) * {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo,\n sans-serif;\n}\nkuc-datetime-picker-1-18-0:lang(zh),\nkuc-datetime-picker-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", sans-serif;\n}\nkuc-datetime-picker-1-18-0:lang(zh-TW),\nkuc-datetime-picker-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC"\n}\nkuc-datetime-picker-1-18-0:lang(es),\nkuc-datetime-picker-1-18-0:lang(es) * {\n font-family: sans-serif;\n}\nkuc-datetime-picker-1-18-0 {\n font-size: 14px;\n display: inline-table;\n vertical-align: top;\n line-height: 1.5;\n max-width: calc(var(--kuc-date-time-picker-date-input-width, 100px) + var(--kuc-date-time-picker-time-input-width, 85px));\n width: calc(var(--kuc-date-time-picker-date-input-width, 100px) + var(--kuc-date-time-picker-time-input-width, 85px));\n}\nkuc-datetime-picker-1-18-0[hidden] {\n display: none;\n}\n.kuc-datetime-picker-1-18-0__group {\n border: none;\n padding: 0px;\n height: auto;\n display: flex;\n flex-direction: column;\n margin: 0px;\n}\n.kuc-datetime-picker-1-18-0__group__label {\n display: inline-block;\n padding: 4px 0px 8px 0px;\n white-space: nowrap;\n}\n.kuc-datetime-picker-1-18-0__group__label[hidden] {\n display: none;\n}\n.kuc-datetime-picker-1-18-0__group__inputs {\n display: flex;\n width: calc(var(--kuc-date-time-picker-date-input-width, 100px) + var(--kuc-date-time-picker-time-input-width, 85px));\n}\n.kuc-datetime-picker-1-18-0__group input[type=text].kuc-base-date-1-18-0__input {\n width: var(--kuc-date-time-picker-date-input-width, 100px);\n height: var(--kuc-date-time-picker-input-height, 40px);\n color: var(--kuc-date-time-picker-input-color, #333333);\n font-size: var(--kuc-date-time-picker-input-font-size, 14px);\n}\n.kuc-datetime-picker-1-18-0__group .kuc-base-time-1-18-0__group {\n max-width: var(--kuc-date-time-picker-time-input-width, 85px);\n width: var(--kuc-date-time-picker-time-input-width, 85px);\n font-size: var(--kuc-date-time-picker-input-font-size, 14px);\n height: var(--kuc-date-time-picker-input-height, 40px);\n color: var(--kuc-date-time-picker-input-color, #333333);\n}\n.kuc-datetime-picker-1-18-0__group .kuc-base-time-1-18-0__group input[type=text].kuc-base-time-1-18-0__group__hours,\n.kuc-datetime-picker-1-18-0__group .kuc-base-time-1-18-0__group input[type=text].kuc-base-time-1-18-0__group__minutes,\n.kuc-datetime-picker-1-18-0__group .kuc-base-time-1-18-0__group input.kuc-base-time-1-18-0__group__suffix,\n.kuc-datetime-picker-1-18-0__group .kuc-base-time-1-18-0__group--focus {\n color: var(--kuc-date-time-picker-input-color, #333333);\n}\n'),Yr=e}})();const Jr=Yr;var Zr=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Xr;(()=>{if(Xr=window.customElements.get("kuc-dialog-1-18-0"),!Xr){class e extends Ji{constructor(e){super(),this.icon="",this.title="",this.content="",this.footer="",this.header="",this.container=document.body,this.footerVisible=!0,this._isOpened=!1,this._triggeredElement=null,this._content="",this._footer="",this._header="",this._GUID=Qi();const t=rr(e);Object.assign(this,t)}_handleFocusFirstDummy(){const e=this._focusableElements[this._focusableElements.length-2];e&&e.focus()}_handleFocusLastDummy(){this._dialogEl.focus()}_handleKeyDownDialog(e){"Escape"===e.key&&(e.preventDefault(),this.close())}_handleClickCloseButton(e){this.close()}_getCloseButtonSvgTemplate(){return xt`
|
||
<svg
|
||
class="kuc-dialog-1-18-0__dialog__header__close-button-svg"
|
||
width="32"
|
||
height="32"
|
||
viewBox="0 0 32 32"
|
||
fill="none"
|
||
xmlns="http://www.w3.org/2000/svg"
|
||
>
|
||
<path
|
||
fill-rule="evenodd"
|
||
clip-rule="evenodd"
|
||
d="M16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z"
|
||
fill="#f7f9fa"
|
||
/>
|
||
<path
|
||
fill-rule="evenodd"
|
||
clip-rule="evenodd"
|
||
d="M16.4765 15.7071L20.1229 12.0607L20.4765 11.7071L19.7694 11L19.4158 11.3536L15.7694 15L12.1229 11.3536L11.7694 11L11.0623 11.7071L11.4158 12.0607L15.0623 15.7071L11.3536 19.4158L11 19.7694L11.7071 20.4765L12.0607 20.1229L15.7694 16.4142L19.4781 20.1229L19.8316 20.4765L20.5387 19.7694L20.1852 19.4158L16.4765 15.7071Z"
|
||
fill="#888888"
|
||
/>
|
||
</svg>
|
||
`}_getIconTemplate(){switch(this.icon){case"info":return xt`
|
||
<svg
|
||
class="kuc-dialog-1-18-0__dialog__content__icon-info"
|
||
width="18"
|
||
height="18"
|
||
viewBox="0 0 18 18"
|
||
fill="none"
|
||
xmlns="http://www.w3.org/2000/svg"
|
||
>
|
||
<path
|
||
d="M9.09673 17.7173C13.9604 17.7173 17.9032 13.7933 17.9032 8.95287C17.9032 4.11243 13.9604 0.188477 9.09673 0.188477C4.23306 0.188477 0.290283 4.11243 0.290283 8.95287C0.290283 13.7933 4.23306 17.7173 9.09673 17.7173Z"
|
||
fill="#448aca"
|
||
/>
|
||
<path
|
||
fill-rule="evenodd"
|
||
clip-rule="evenodd"
|
||
d="M8.71195 7.96235C8.81719 7.69023 8.67929 7.5524 8.5559 7.5524C7.98977 7.5524 7.24945 8.87059 6.97364 8.87059C6.86531 8.86323 6.77965 8.7783 6.77405 8.67269C6.77405 8.40057 7.44905 7.76444 7.64864 7.57007C8.25505 6.95498 9.08189 6.59163 9.95671 6.5558C10.6172 6.5558 11.3249 6.94808 10.7696 8.4147L9.66276 11.3656C9.53205 11.6338 9.44394 11.9198 9.40147 12.2138C9.3955 12.2661 9.41197 12.3186 9.44701 12.3587C9.48204 12.3988 9.53253 12.4231 9.58655 12.4258C10.0474 12.4258 10.893 11.1394 11.1107 11.1394C11.221 11.1597 11.2987 11.2565 11.2922 11.3656C11.2922 11.8038 9.49582 13.6804 7.9426 13.6804C7.38735 13.6804 7.00268 13.4224 7.00268 12.8499C7.00268 12.1219 7.52889 10.8815 7.63413 10.6235L8.71195 7.96235ZM9.53937 4.97962C9.55317 4.3095 10.114 3.77277 10.8023 3.77099C11.0868 3.75724 11.364 3.86105 11.5658 4.05686C11.7675 4.25267 11.8751 4.52229 11.862 4.79939C11.8604 5.12532 11.7247 5.43704 11.4853 5.66484C11.2459 5.89264 10.9228 6.01752 10.5882 6.01156C10.3033 6.02775 10.0251 5.92385 9.82434 5.72636C9.62362 5.52886 9.51981 5.25684 9.53937 4.97962Z"
|
||
fill="white"
|
||
/>
|
||
</svg>
|
||
`;case"success":return xt`
|
||
<svg
|
||
class="kuc-dialog-1-18-0__dialog__content__icon-success"
|
||
width="18"
|
||
height="18"
|
||
viewBox="0 0 18 18"
|
||
fill="none"
|
||
xmlns="http://www.w3.org/2000/svg"
|
||
>
|
||
<path
|
||
d="M9.09673 17.7173C13.9604 17.7173 17.9032 13.7933 17.9032 8.95287C17.9032 4.11243 13.9604 0.188477 9.09673 0.188477C4.23306 0.188477 0.290283 4.11243 0.290283 8.95287C0.290283 13.7933 4.23306 17.7173 9.09673 17.7173Z"
|
||
fill="#2ecc71"
|
||
/>
|
||
<path
|
||
d="M7.45159 10.3666L4.64513 7.44514L2.9032 9.32996L7.45159 13.9478L15.0967 6.59697L13.258 4.8064L7.45159 10.3666Z"
|
||
fill="white"
|
||
/>
|
||
</svg>
|
||
`;case"error":return xt`
|
||
<svg
|
||
class="kuc-dialog-1-18-0__dialog__content__icon-error"
|
||
width="18"
|
||
height="18"
|
||
viewBox="0 0 18 18"
|
||
fill="none"
|
||
xmlns="http://www.w3.org/2000/svg"
|
||
>
|
||
<path
|
||
d="M9 18C13.9706 18 18 13.9706 18 9C18 4.02944 13.9706 0 9 0C4.02944 0 0 4.02944 0 9C0 13.9706 4.02944 18 9 18Z"
|
||
fill="#e74c3c"
|
||
/>
|
||
<path
|
||
d="M10.1497 8.99989L12.7572 6.39244L12.9339 6.21567L12.7572 6.03889L11.9617 5.24339L11.7849 5.06661L11.6081 5.24339L9.00063 7.85084L6.39317 5.24339L6.2164 5.06661L6.03962 5.24339L5.24412 6.03889L5.06734 6.21567L5.24412 6.39244L7.85159 8.99989L5.24412 11.6074L5.06734 11.7842L5.24412 11.9609L6.03962 12.7564L6.2164 12.9332L6.39317 12.7564L9.00063 10.1489L11.6081 12.7564L11.7849 12.9332L11.9617 12.7564L12.7572 11.9609L12.9339 11.7842L12.7572 11.6074L10.1497 8.99989Z"
|
||
fill="white"
|
||
stroke="white"
|
||
stroke-width="0.5"
|
||
/>
|
||
</svg>
|
||
`;case"warning":return xt`
|
||
<svg
|
||
class="kuc-dialog-1-18-0__dialog__content__icon-warning"
|
||
width="18"
|
||
height="18"
|
||
viewBox="0 0 18 18"
|
||
fill="none"
|
||
xmlns="http://www.w3.org/2000/svg"
|
||
>
|
||
<path
|
||
d="M9.09673 17.7173C13.9604 17.7173 17.9032 13.7933 17.9032 8.95287C17.9032 4.11243 13.9604 0.188477 9.09673 0.188477C4.23306 0.188477 0.290283 4.11243 0.290283 8.95287C0.290283 13.7933 4.23306 17.7173 9.09673 17.7173Z"
|
||
fill="#ffcc00"
|
||
/>
|
||
<path
|
||
d="M7.74182 3.76978H10.645L9.91924 9.42423H8.46763L7.74182 3.76978Z"
|
||
fill="#333333"
|
||
/>
|
||
<rect
|
||
x="7.74182"
|
||
y="11.3088"
|
||
width="2.90323"
|
||
height="2.82722"
|
||
rx="1"
|
||
fill="#333333"
|
||
/>
|
||
</svg>
|
||
`;case"question":return xt`
|
||
<svg
|
||
class="kuc-dialog-1-18-0__dialog__content__icon-question"
|
||
width="18"
|
||
height="18"
|
||
viewBox="0 0 18 18"
|
||
fill="none"
|
||
xmlns="http://www.w3.org/2000/svg"
|
||
>
|
||
<path
|
||
fill-rule="evenodd"
|
||
clip-rule="evenodd"
|
||
d="M11.0933 8.87676C10.383 9.34006 10.1707 9.73991 10.1469 10.6575C10.1447 10.7581 10.0632 10.8371 9.96337 10.8371H8.08135C8.03123 10.8371 7.89783 10.7033 7.89783 10.6532V9.90432C7.89783 9.11869 8.32111 8.42752 9.1947 7.79043C9.2632 7.7432 9.91722 7.31559 9.91722 6.72573C9.91722 6.23647 9.54947 5.89467 9.022 5.89467C8.27063 5.89467 7.85168 6.27144 7.81166 6.99037C7.80589 7.08736 7.72549 7.16344 7.62815 7.16344H7.53044H5.64914C5.59902 7.16344 5.54999 7.14252 5.51574 7.10611C5.48149 7.07005 5.46274 7.02066 5.46562 6.97054C5.56802 4.97527 6.86452 3.83053 9.02416 3.83053C10.6614 3.83053 12.4248 4.71892 12.4248 6.66984C12.4248 7.97683 12.1266 8.22381 11.0933 8.87676ZM8.99982 0C4.02976 0 0 4.02948 0 9C0 13.9709 4.02976 18 8.99982 18C13.9702 18 18 13.9709 18 9C18 4.02948 13.9702 0 8.99982 0ZM10.503 14.5101C10.503 14.7124 10.3383 14.8775 10.136 14.8775H7.89742C7.69516 14.8775 7.53003 14.7124 7.53003 14.5101V12.3061C7.53003 12.1038 7.69516 11.9387 7.89742 11.9387H10.136C10.3383 11.9387 10.503 12.1038 10.503 12.3061V14.5101Z"
|
||
fill="#666666"
|
||
/>
|
||
<path
|
||
fill-rule="evenodd"
|
||
clip-rule="evenodd"
|
||
d="M11.0933 8.8768C10.383 9.3401 10.1707 9.73995 10.1469 10.6575C10.1447 10.7581 10.0632 10.8371 9.96337 10.8371H8.08135C8.03123 10.8371 7.89783 10.7033 7.89783 10.6532V9.90436C7.89783 9.11872 8.32111 8.42755 9.1947 7.79047C9.2632 7.74323 9.91722 7.31562 9.91722 6.72577C9.91722 6.2365 9.54947 5.8947 9.022 5.8947C8.27063 5.8947 7.85168 6.27148 7.81166 6.99041C7.80589 7.0874 7.72549 7.16347 7.62815 7.16347H7.53044H5.64914C5.59902 7.16347 5.54999 7.14256 5.51574 7.10615C5.48149 7.07009 5.46274 7.0207 5.46562 6.97058C5.56802 4.97531 6.86452 3.83057 9.02416 3.83057C10.6614 3.83057 12.4248 4.71896 12.4248 6.66988C12.4248 7.97687 12.1266 8.22384 11.0933 8.8768V8.8768Z"
|
||
fill="white"
|
||
/>
|
||
<path
|
||
fill-rule="evenodd"
|
||
clip-rule="evenodd"
|
||
d="M10.503 14.5101C10.503 14.7124 10.3383 14.8775 10.136 14.8775H7.89742C7.69516 14.8775 7.53003 14.7124 7.53003 14.5101V12.3061C7.53003 12.1039 7.69516 11.9387 7.89742 11.9387H10.136C10.3383 11.9387 10.503 12.1039 10.503 12.3061V14.5101Z"
|
||
fill="white"
|
||
/>
|
||
</svg>
|
||
`;default:return""}}shouldUpdate(e){if(e.has("container")){if(null===this.container||void 0===this.container)return this._isOpened&&this._close(),!1;const e=this._isValidContainerElement(),t=!e||!document.contains(this.container);if(this._isOpened&&t&&this._close(),!e)return this.throwErrorAfterUpdateComplete(Rn),!1}return!0}update(e){e.has("content")&&(this._content=Bi(this.content)),e.has("footer")&&(this._footer=Bi(this.footer)),(e.has("header")||e.has("title"))&&(this._header=this.header?Bi(this.header):this.title),super.update(e)}_isValidContainerElement(){return this.container instanceof HTMLElement}open(){if(!this._isValidContainerElement())return document.body.appendChild(this),requestAnimationFrame((()=>{document.body.removeChild(this)})),void this.performUpdate();this.container.appendChild(this),this.container.classList.add("kuc--has-dialog"),this.performUpdate(),this.setAttribute("opened",""),this._isOpened=!0,this._triggeredElement=document.activeElement,this._dialogEl&&this._dialogEl.focus()}close(){this._close(),Zi(this,"close")}_close(){this._isOpened=!1,document.getElementsByTagName("body")[0].classList.remove("kuc--has-dialog"),this.removeAttribute("opened"),this._triggeredElement instanceof HTMLElement&&this._triggeredElement.focus()}render(){return kt`
|
||
<span
|
||
class="kuc-dialog-1-18-0__first-dummy"
|
||
tabIndex="0"
|
||
@focus="${this._handleFocusFirstDummy}"
|
||
></span>
|
||
<div
|
||
class="kuc-dialog-1-18-0__dialog"
|
||
role="dialog"
|
||
tabindex="-1"
|
||
aria-labelledby="${this._GUID}-title"
|
||
aria-modal="true"
|
||
@keydown="${this._handleKeyDownDialog}"
|
||
>
|
||
<div class="kuc-dialog-1-18-0__dialog__header">
|
||
<h2
|
||
class="kuc-dialog-1-18-0__dialog__header__title"
|
||
id="${this._GUID}-title"
|
||
>
|
||
${this._header}
|
||
</h2>
|
||
<button
|
||
class="kuc-dialog-1-18-0__dialog__header__close-button"
|
||
type="button"
|
||
aria-label="close"
|
||
@click="${this._handleClickCloseButton}"
|
||
>
|
||
${this._getCloseButtonSvgTemplate()}
|
||
</button>
|
||
</div>
|
||
<div class="kuc-dialog-1-18-0__dialog__content">
|
||
<div class="kuc-dialog-1-18-0__dialog__content__icon">
|
||
${this._getIconTemplate()}
|
||
</div>
|
||
<div class="kuc-dialog-1-18-0__dialog__content__content">
|
||
${this._content}
|
||
</div>
|
||
</div>
|
||
<div
|
||
class="kuc-dialog-1-18-0__dialog__footer"
|
||
?hidden="${!this.footerVisible}"
|
||
>
|
||
${this._footer}
|
||
</div>
|
||
</div>
|
||
<span
|
||
class="kuc-dialog-1-18-0__last-dummy"
|
||
tabIndex="0"
|
||
@focus="${this._handleFocusLastDummy}"
|
||
></span>
|
||
<div class="kuc-dialog-1-18-0__mask"></div>
|
||
`}}Zr([on({type:String})],e.prototype,"icon",void 0),Zr([on({type:String})],e.prototype,"title",void 0),Zr([on()],e.prototype,"content",void 0),Zr([on()],e.prototype,"footer",void 0),Zr([on()],e.prototype,"header",void 0),Zr([on()],e.prototype,"container",void 0),Zr([on({type:Boolean})],e.prototype,"footerVisible",void 0),Zr([cn()],e.prototype,"_isOpened",void 0),Zr([_n(".kuc-dialog-1-18-0__dialog")],e.prototype,"_dialogEl",void 0),Zr([gn("a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type='text']:not([disabled]), input[type='radio']:not([disabled]), input[type='checkbox']:not([disabled]), select:not([disabled]),[tabindex='0']")],e.prototype,"_focusableElements",void 0),window.customElements.define("kuc-dialog-1-18-0",e),Xi('\n kuc-dialog-1-18-0,\n kuc-dialog-1-18-0 *,\n kuc-dialog-1-18-0:lang(en),\n kuc-dialog-1-18-0:lang(en) * {\n font-family: sans-serif;\n }\n kuc-dialog-1-18-0:lang(es),\n kuc-dialog-1-18-0:lang(es) * {\n font-family: sans-serif;\n }\n kuc-dialog-1-18-0:lang(ja),\n kuc-dialog-1-18-0:lang(ja) * {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo,\n sans-serif;\n }\n kuc-dialog-1-18-0:lang(zh),\n kuc-dialog-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", sans-serif;\n }\n kuc-dialog-1-18-0:lang(zh-TW),\n kuc-dialog-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC",sans-serif;\n }\n\n kuc-dialog-1-18-0 {\n display: none;\n }\n\n kuc-dialog-1-18-0[opened] {\n display: block;\n }\n\n .kuc-dialog-1-18-0__dialog {\n min-width: 400px;\n max-width: var(--kuc-dialog-max-width, 600px);\n width: max-content;\n font-size: 20px;\n background-color: #ffffff;\n position: fixed;\n line-height: normal;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: 10000;\n }\n \n .kuc-dialog-1-18-0__dialog:focus-visible {\n outline: 1px solid #3498db;\n }\n\n .kuc-dialog-1-18-0__dialog__header {\n min-height: 64px;\n border-bottom: 1px solid #e3e7e8;\n display: flex;\n justify-content: space-between;\n }\n\n .kuc-dialog-1-18-0__dialog__header__title {\n font-size: var(--kuc-dialog-header-font-size, 24px);\n color: var(--kuc-dialog-header-color);\n padding: 0 24px;\n align-self: center;\n overflow-wrap: anywhere;\n word-break: normal;\n font-weight: 400;\n }\n\n .kuc-dialog-1-18-0__dialog__header__close-button {\n width: 48px;\n height: 48px;\n border: none;\n background-color: #ffffff;\n margin-right: 12px;\n margin-top: 11px;\n cursor: pointer;\n }\n\n .kuc-dialog-1-18-0__dialog__header__close-button:focus-visible {\n outline: 1px solid #3498db;\n }\n\n .kuc-dialog-1-18-0__dialog__header__close-button-svg {\n vertical-align: middle;\n }\n\n .kuc-dialog-1-18-0__dialog__content {\n border-bottom: #e3e7e8 solid 1px;\n background-color: #f7f9fa;\n padding: 24px;\n display: flex;\n overflow: auto;\n }\n\n .kuc-dialog-1-18-0__dialog__content__content {\n line-height: 1.2;\n overflow-wrap: anywhere;\n word-break: normal;\n }\n\n .kuc-dialog-1-18-0__dialog__content__icon-info,\n .kuc-dialog-1-18-0__dialog__content__icon-success,\n .kuc-dialog-1-18-0__dialog__content__icon-error,\n .kuc-dialog-1-18-0__dialog__content__icon-warning,\n .kuc-dialog-1-18-0__dialog__content__icon-question {\n margin-right: 16px;\n width: 24px;\n height: 24px;\n }\n\n .kuc-dialog-1-18-0__dialog__footer {\n padding: 24px;\n overflow-wrap: anywhere;\n word-break: normal;\n }\n\n .kuc-dialog-1-18-0__dialog__footer[hidden] {\n display: none;\n }\n\n .kuc-dialog-1-18-0__mask {\n position: fixed;\n top: 0;\n right: 0;\n display: block;\n width: 100%;\n height: 100%;\n background-color: #000000;\n opacity: 0.6;\n z-index: 9999;\n }\n\n .kuc--has-dialog {\n overflow: hidden;\n }\n\n .kuc--has-dialog .kuc-dialog-1-18-0__dialog {\n overflow-x: hidden;\n overflow-y: auto;\n max-height: 80vh;\n }\n'),Xr=e}})();const Qr=Xr;var eo=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let to;(()=>{if(to=window.customElements.get("kuc-dropdown-1-18-0"),!to){class e extends Ji{constructor(e){super(),this.className="",this.error="",this.id="",this.label="",this.value="",this.selectedIndex=-1,this.disabled=!1,this.requiredIcon=!1,this.visible=!0,this.items=[],this._selectorVisible=!1,this._DISABLED_CLASS="kuc-dropdown-1-18-0__group__select-menu__item--disabled",this._hasValueInItems=!1,this._GUID=Qi();const t=rr(e);this._handleClickDocument=this._handleClickDocument.bind(this),this._setInitialValue(t),Object.assign(this,t)}_setInitialValue(e){!("value"in e)&&"selectedIndex"in e&&(this.value=this._getValue(e)||"")}_getSelectedLabel(){const e=this.items.filter(((e,t)=>this._isCheckedItem(e,t)));return 0===e.length?"":void 0===e[0].label?e[0].value:e[0].label}_getToggleIconSvgTemplate(){return xt`
|
||
<svg
|
||
width="36"
|
||
height="36"
|
||
viewBox="0 0 36 36"
|
||
fill="none"
|
||
xmlns="http://www.w3.org/2000/svg"
|
||
>
|
||
<path
|
||
fill-rule="evenodd"
|
||
clip-rule="evenodd"
|
||
d="M24.2122 15.6665L25 16.1392L19.7332 21.4998H18.2668L13 16.1392L13.7878 15.6665L18.765 20.6866H19.235L24.2122 15.6665Z"
|
||
fill="#3498db"/>
|
||
</svg>
|
||
`}shouldUpdate(e){return e.has("items")&&!fr(this.items)?(this.throwErrorAfterUpdateComplete(En),!1):e.has("value")&&!ur(this.value)?(this.throwErrorAfterUpdateComplete(In),!1):!(e.has("selectedIndex")&&!pr(this.selectedIndex)&&(this.throwErrorAfterUpdateComplete(Dn),1))}willUpdate(e){if((e.has("items")||e.has("value"))&&(this._hasValueInItems=this.items.some((e=>e.value===this.value))),e.has("value")){if(""!==this.value||this._hasValueInItems)return;this.selectedIndex=-1}}update(e){(e.has("items")||e.has("value")||e.has("selectedIndex"))&&(this.selectedIndex=this._getSelectedIndex(),this.value=this._getValue({items:this.items,selectedIndex:this.selectedIndex})||""),super.update(e)}_getSelectedIndex(){if(!this.value&&!this._hasValueInItems)return this.items[this.selectedIndex]?this.selectedIndex:-1;const e=this.items.findIndex((e=>e.value===this.value));if(-1===e)return-1;const t=this.items.findIndex(((e,t)=>e.value===this.value&&t===this.selectedIndex));return t>-1?t:e}_getValue(e){const t=(e.items||[])[0===e.selectedIndex||e.selectedIndex?e.selectedIndex:-1];return t?t.value:""}render(){return kt`
|
||
<div class="kuc-dropdown-1-18-0__group">
|
||
<div
|
||
class="kuc-dropdown-1-18-0__group__label"
|
||
id="${this._GUID}-label"
|
||
?hidden="${!this.label}"
|
||
>
|
||
<kuc-base-label-1-18-0
|
||
.text="${this.label}"
|
||
.requiredIcon="${this.requiredIcon}"
|
||
></kuc-base-label-1-18-0>
|
||
</div>
|
||
<button
|
||
class="kuc-dropdown-1-18-0__group__toggle"
|
||
id="${this._GUID}-toggle"
|
||
type="button"
|
||
aria-haspopup="true"
|
||
aria-labelledby="${this._GUID}-label ${this._GUID}-toggle"
|
||
aria-describedby="${this._GUID}-error"
|
||
aria-required="${this.requiredIcon}"
|
||
?disabled="${this.disabled}"
|
||
@mouseup="${this._handleMouseUpDropdownToggle}"
|
||
@mousedown="${this._handleMouseDownDropdownToggle}"
|
||
@click="${this._handleClickDropdownToggle}"
|
||
@keydown="${this._handleKeyDownDropdownToggle}"
|
||
>
|
||
<span class="kuc-dropdown-1-18-0__group__toggle__selected-item-label"
|
||
>${this._getSelectedLabel()}</span
|
||
>
|
||
<span class="kuc-dropdown-1-18-0__group__toggle__icon">
|
||
${this._getToggleIconSvgTemplate()}
|
||
</span>
|
||
</button>
|
||
<ul
|
||
class="kuc-dropdown-1-18-0__group__select-menu"
|
||
role="listbox"
|
||
aria-hidden="${!this._selectorVisible}"
|
||
?hidden="${!this._selectorVisible}"
|
||
@mouseleave="${this._handleMouseLeaveMenu}"
|
||
@mousedown="${this._handleMouseDownMenu}"
|
||
>
|
||
${this.items.map(((e,t)=>this._getItemTemplate(e,t)))}
|
||
</ul>
|
||
<kuc-base-error-1-18-0
|
||
.text="${this.error}"
|
||
.guid="${this._GUID}"
|
||
?hidden="${!this.error}"
|
||
ariaLive="assertive"
|
||
></kuc-base-error-1-18-0>
|
||
</div>
|
||
`}firstUpdated(){window.addEventListener("resize",(()=>{this._actionResizeScrollWindow()})),window.addEventListener("scroll",(()=>{this._actionResizeScrollWindow()}))}async updated(){await this.updateComplete,this._selectorVisible?(this._setMenuPosition(),this._scrollToView(),setTimeout((()=>{document.addEventListener("click",this._handleClickDocument,!0)}),1)):setTimeout((()=>{document.removeEventListener("click",this._handleClickDocument,!0)}),1)}_handleMouseDownDropdownItem(e){const t=this._getItemElementWhenMouseOverDown(e.target),n=t.getAttribute("value"),i=t.dataset.index||"0";this._actionUpdateValue(n,i)}_handleMouseOverDropdownItem(e){const t=this._getItemElementWhenMouseOverDown(e.target);this._actionHighlightMenuItem(t)}_handleMouseLeaveMenu(){this._actionClearAllHighlightMenuItem()}_handleMouseDownMenu(e){e.preventDefault()}_handleMouseDownDropdownToggle(e){e.preventDefault()}_handleMouseUpDropdownToggle(e){e.preventDefault()}_handleClickDropdownToggle(e){e.stopPropagation(),this._actionToggleMenu()}_handleClickDocument(e){(e.target===this._buttonEl||this._buttonEl.contains(e.target))&&e.stopPropagation(),Array.from(this._disabledItemsEl).some((t=>t===e.target||t.contains(e.target)))||this._actionHideMenu()}_handleKeyDownDropdownToggle(e){switch(e.key){case"Up":case"ArrowUp":if(e.preventDefault(),0===this.items.length)break;if(!this._selectorVisible){this._actionShowMenu();break}this._actionHighlightPrevMenuItem();break;case"Tab":this._selectorVisible&&this._actionHideMenu();break;case"Down":case"ArrowDown":if(e.preventDefault(),0===this.items.length)break;if(!this._selectorVisible){this._actionShowMenu();break}this._actionHighlightNextMenuItem();break;case"Enter":{if(e.preventDefault(),0===this.items.length)break;if(!this._selectorVisible){this._actionShowMenu();break}const{value:t,selectedIndex:n}=this._getInfoHighlightItem();if(null===t)break;this._actionUpdateValue(t,n),this._actionHideMenu();break}case"Escape":e.preventDefault(),this._selectorVisible&&e.stopPropagation(),this._actionHideMenu();break;case"Home":this._selectorVisible&&(e.preventDefault(),this._actionHighlightFirstMenuItem());break;case"End":this._selectorVisible&&(e.preventDefault(),this._actionHighlightLastMenuItem())}}_getInfoHighlightItem(){const e=this._highlightItemEl;return null===e?{value:null,selectedIndex:"-1"}:{value:e.getAttribute("value"),selectedIndex:e.dataset.index||"0"}}_actionShowMenu(){this._buttonEl.focus(),0!==this.items.length&&(this._selectorVisible=!0,null===this._selectedItemEl||this._selectedItemEl.classList.contains(this._DISABLED_CLASS)||this._setHighlightAndActiveDescendantMenu(this._selectedItemEl))}_actionHideMenu(){this._selectorVisible=!1,this._actionRemoveActiveDescendant()}_actionToggleMenu(){0!==this.items.length&&(this._selectorVisible?this._actionHideMenu():this._actionShowMenu())}_actionHighlightFirstMenuItem(){let e=this._firstItemEl,t=!1;for(let n=0;n<this.items.length&&(t=e.classList.contains(this._DISABLED_CLASS),t);n++)e=e.nextElementSibling;!t&&this._setHighlightAndActiveDescendantMenu(e)}_actionHighlightLastMenuItem(){let e=this._lastItemEl,t=!1;for(let n=0;n<this.items.length&&(t=e.classList.contains(this._DISABLED_CLASS),t);n++)e=e.previousElementSibling;!t&&this._setHighlightAndActiveDescendantMenu(e)}_actionHighlightPrevMenuItem(){let e=null;null!==this._highlightItemEl&&(e=this._highlightItemEl.previousElementSibling),null===e&&(e=this._lastItemEl);let t=!1;for(let n=0;n<this.items.length&&(t=e.classList.contains(this._DISABLED_CLASS),t);n++)e=e.previousElementSibling,null===e&&(e=this._lastItemEl);!t&&this._setHighlightAndActiveDescendantMenu(e)}_actionHighlightNextMenuItem(){let e=null;null!==this._highlightItemEl&&(e=this._highlightItemEl.nextElementSibling),null===e&&(e=this._firstItemEl);let t=!1;for(let n=0;n<this.items.length&&(t=e.classList.contains(this._DISABLED_CLASS),t);n++)e=e.nextElementSibling,null===e&&(e=this._firstItemEl);!t&&this._setHighlightAndActiveDescendantMenu(e)}_actionClearAllHighlightMenuItem(){this._itemsEl.forEach((e=>{e.classList.remove("kuc-dropdown-1-18-0__group__select-menu__highlight")})),this._actionRemoveActiveDescendant()}_setHighlightAndActiveDescendantMenu(e){this._actionHighlightMenuItem(e),this._actionSetActiveDescendant(e.id),this._scrollToView()}_actionHighlightMenuItem(e){this._actionClearAllHighlightMenuItem(),e.classList.add("kuc-dropdown-1-18-0__group__select-menu__highlight")}_actionUpdateValue(e,t){const n=parseInt(t,10);if(this.value===e&&this.selectedIndex===n)return;const i={oldValue:this.value,value:e};this.value=e,this.selectedIndex=n,Zi(this,"change",i)}_actionSetActiveDescendant(e){void 0!==e&&null!==this._buttonEl&&this._buttonEl.setAttribute("aria-activedescendant",e)}_actionRemoveActiveDescendant(){this._buttonEl.removeAttribute("aria-activedescendant")}_getScrollbarWidthHeight(){const e=document.createElement("div");e.style.cssText="overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e);const t=e.offsetWidth-e.clientWidth,n=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),{scrollbarWidth:t,scrollbarHeight:n}}_getDistanceToggleButton(){const{scrollbarWidth:e,scrollbarHeight:t}=this._getScrollbarWidthHeight(),n=document.body.scrollHeight>window.innerHeight,i=document.body.scrollWidth>window.innerWidth;return{toTop:this._buttonEl.getBoundingClientRect().top,toBottom:window.innerHeight-this._buttonEl.getBoundingClientRect().bottom-(i?t:0),toLeft:this._buttonEl.getBoundingClientRect().left,toRight:window.innerWidth-this._buttonEl.getBoundingClientRect().left-(n?e:0)}}_setMenuPositionAboveOrBelow(){this._menuEl.style.height="auto",this._menuEl.style.bottom="auto",this._menuEl.style.overflowY="";const e=this._menuEl.getBoundingClientRect().height,t=this._getDistanceToggleButton();if(!(t.toBottom>=e))if(t.toBottom<t.toTop){const n=this._errorEl.offsetHeight?this._errorEl.offsetHeight+16:0;if(this._menuEl.style.bottom=`${this._buttonEl.offsetHeight+n}px`,t.toTop>=e)return;this._menuEl.style.height=`${t.toTop}px`,this._menuEl.style.overflowY="scroll"}else this._menuEl.style.height=`${t.toBottom}px`,this._menuEl.style.overflowY="scroll"}_setMenuPositionLeftOrRight(){this._menuEl.style.right="auto";const e=this._menuEl.getBoundingClientRect().width,t=this._getDistanceToggleButton();if(t.toRight>=e||t.toLeft<e||t.toRight<0)return;const n=this._buttonEl.offsetWidth-t.toRight;this._menuEl.style.right=n>0?`${n}px`:"0px"}_setMenuPosition(){this._setMenuPositionAboveOrBelow(),this._setMenuPositionLeftOrRight()}_scrollToView(){if(!this._highlightItemEl||!this._menuEl)return;const e=this._menuEl.getBoundingClientRect(),t=this._highlightItemEl.getBoundingClientRect();t.top<e.top&&(this._menuEl.scrollTop-=e.top-t.top),e.bottom<t.bottom&&(this._menuEl.scrollTop+=t.bottom-e.bottom)}_actionResizeScrollWindow(){!this._timeoutID&&this._selectorVisible&&(this._timeoutID=window.setTimeout((()=>{this._timeoutID=null,this._setMenuPosition()}),50))}_isCheckedItem(e,t){return this.value?e.value===this.value&&this.selectedIndex===t:this.selectedIndex===t}_getItemTemplate(e,t){const n=this._isCheckedItem(e,t);return kt`
|
||
<li
|
||
class="kuc-dropdown-1-18-0__group__select-menu__item ${e.disabled?this._DISABLED_CLASS:""}"
|
||
role="option"
|
||
tabindex="${!e.disabled&&n?"0":"-1"}"
|
||
aria-selected="${n?"true":"false"}"
|
||
data-index="${t}"
|
||
value="${void 0!==e.value?e.value:""}"
|
||
id="${this._GUID}-menuitem-${t}"
|
||
@mousedown="${e.disabled?null:this._handleMouseDownDropdownItem}"
|
||
@mouseover="${e.disabled?null:this._handleMouseOverDropdownItem}"
|
||
>
|
||
${this._getDropdownIconSvgTemplate(n,!!e.disabled)}
|
||
${void 0===e.label?e.value:e.label}
|
||
</li>
|
||
`}_getDropdownIconSvgTemplate(e,t){return xt`
|
||
${e?xt`<svg
|
||
class="kuc-dropdown-1-18-0__group__select-menu__item__icon"
|
||
width="11"
|
||
height="9"
|
||
viewBox="0 0 11 9"
|
||
fill="none"
|
||
xmlns="http://www.w3.org/2000/svg"
|
||
>
|
||
<path
|
||
fill-rule="evenodd"
|
||
clip-rule="evenodd"
|
||
d="M0 5L1.5 3L4.5 5.5L9.5 0L11 1.5L4.5 8.5L0 5Z"
|
||
fill="${t?"#888888":"#3498db"}"/>
|
||
</svg>`:""}`}_getItemElementWhenMouseOverDown(e){return e.classList.value.split(" ").includes("kuc-dropdown-1-18-0__group__select-menu__item")?e:this._getItemElementWhenMouseOverDown(e.parentElement)}}eo([on({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),eo([on({type:String})],e.prototype,"error",void 0),eo([on({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),eo([on({type:String})],e.prototype,"label",void 0),eo([on({type:String})],e.prototype,"value",void 0),eo([on({type:Number})],e.prototype,"selectedIndex",void 0),eo([on({type:Boolean})],e.prototype,"disabled",void 0),eo([on({type:Boolean})],e.prototype,"requiredIcon",void 0),eo([on({type:Boolean,attribute:"hidden",reflect:!0,converter:ji})],e.prototype,"visible",void 0),eo([on({type:Array})],e.prototype,"items",void 0),eo([cn()],e.prototype,"_selectorVisible",void 0),eo([_n(".kuc-dropdown-1-18-0__group__select-menu")],e.prototype,"_menuEl",void 0),eo([gn(".kuc-dropdown-1-18-0__group__select-menu__item")],e.prototype,"_itemsEl",void 0),eo([_n("button.kuc-dropdown-1-18-0__group__toggle")],e.prototype,"_buttonEl",void 0),eo([_n(".kuc-dropdown-1-18-0__group__select-menu__item")],e.prototype,"_firstItemEl",void 0),eo([_n(".kuc-dropdown-1-18-0__group__select-menu__item:last-child")],e.prototype,"_lastItemEl",void 0),eo([_n(".kuc-dropdown-1-18-0__group__select-menu__item[aria-selected=true]")],e.prototype,"_selectedItemEl",void 0),eo([_n(".kuc-dropdown-1-18-0__group__select-menu__highlight")],e.prototype,"_highlightItemEl",void 0),eo([gn(".kuc-dropdown-1-18-0__group__select-menu__item--disabled")],e.prototype,"_disabledItemsEl",void 0),eo([_n(".kuc-base-error-1-18-0__error")],e.prototype,"_errorEl",void 0),window.customElements.define("kuc-dropdown-1-18-0",e),Xi('\n kuc-dropdown-1-18-0,\n kuc-dropdown-1-18-0 *,\n kuc-dropdown-1-18-0:lang(en),\n kuc-dropdown-1-18-0:lang(en) * {\n font-family: sans-serif;\n }\n kuc-dropdown-1-18-0:lang(es),\n kuc-dropdown-1-18-0:lang(es) * {\n font-family: sans-serif;\n }\n kuc-dropdown-1-18-0:lang(ja),\n kuc-dropdown-1-18-0:lang(ja) * {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo,\n sans-serif;\n }\n kuc-dropdown-1-18-0:lang(zh),\n kuc-dropdown-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", sans-serif;\n }\n kuc-dropdown-1-18-0:lang(zh-TW),\n kuc-dropdown-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC",sans-serif;\n }\n kuc-dropdown-1-18-0 {\n display: inline-table;\n font-size: 14px;\n color: #333333;\n vertical-align: top;\n width: var(--kuc-dropdown-toggle-width, 180px);\n min-width: var(--kuc-dropdown-toggle-width, 180px);\n line-height: 1.5;\n }\n kuc-dropdown-1-18-0[hidden] {\n display: none;\n }\n .kuc-dropdown-1-18-0__group {\n border: none;\n padding: 0px;\n height: auto;\n display: inline-block;\n width: 100%;\n margin: 0px;\n position: relative;\n }\n .kuc-dropdown-1-18-0__group__label {\n padding: 4px 0px 8px 0px;\n display: inline-block;\n white-space: nowrap;\n }\n .kuc-dropdown-1-18-0__group__label[hidden] {\n display: none;\n }\n .kuc-dropdown-1-18-0__group__toggle {\n height: var(--kuc-dropdown-toggle-height, 40px);\n box-sizing: border-box;\n box-shadow: 1px 1px 1px #ffffff inset;\n border: 1px solid #e3e7e8;\n color: var(--kuc-dropdown-toggle-color, #3498db);\n background-color: #f7f9fa;\n padding: 0 0 0 24px;\n display: grid;\n grid: auto / auto-flow;\n align-items: center;\n align-content: center;\n justify-content: space-between;\n width: var(--kuc-dropdown-toggle-width, 100%);\n cursor: pointer;\n }\n .kuc-dropdown-1-18-0__group__toggle:focus {\n outline: none;\n border: 1px solid #3498db;\n }\n .kuc-dropdown-1-18-0__group__toggle:disabled {\n background-color: #d4d7d7;\n box-shadow: none;\n cursor: not-allowed;\n color: #888888;\n }\n .kuc-dropdown-1-18-0__group__toggle__selected-item-label {\n font-size: var(--kuc-dropdown-font-size, 14px);\n text-align: left;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n .kuc-dropdown-1-18-0__group__toggle__icon {\n flex: none;\n width: 38px;\n height: 38px;\n }\n .kuc-dropdown-1-18-0__group__select-menu {\n position: absolute;\n min-width: 280px;\n margin: 0;\n padding: 8px 0;\n box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);\n background-color: #ffffff;\n z-index: 2000;\n list-style: none;\n box-sizing: border-box;\n }\n .kuc-dropdown-1-18-0__group__select-menu[hidden] {\n display: none;\n }\n .kuc-dropdown-1-18-0__group__select-menu__item {\n padding: 8px 16px 8px 24px;\n line-height: 1;\n position: relative;\n cursor: pointer;\n white-space: nowrap;\n color: var(--kuc-dropdown-menu-color, #333333);\n font-size: var(--kuc-dropdown-font-size, 14px);\n }\n .kuc-dropdown-1-18-0__group__select-menu__item__icon {\n position: absolute;\n top: 50%;\n left: 6px;\n margin-top: -5px;\n }\n .kuc-dropdown-1-18-0__group__select-menu__item[aria-selected="true"] {\n color: var(--kuc-dropdown-menu-color-selected, #3498db);\n }\n .kuc-dropdown-1-18-0__group__select-menu__highlight[role="option"] {\n background-color: #e2f2fe;\n }\n .kuc-dropdown-1-18-0__group__select-menu__item--disabled,\n .kuc-dropdown-1-18-0__group__select-menu__item--disabled[aria-selected="true"] {\n background-color: #d4d7d7;\n cursor: not-allowed;\n color: #888888;\n }\n'),to=e}})();const no=to;var io=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};const ro=517;let oo;(()=>{if(oo=window.customElements.get("kuc-field-group-1-18-0"),!oo){class e extends Ji{constructor(e){super(),this.className="",this.content="",this.id="",this.label="",this.disabled=!1,this.expanded=!1,this.visible=!0,this._content="",this._GUID=Qi();const t=rr(e);Object.assign(this,t)}update(e){e.has("content")&&(this._content=Bi(this.content)),super.update(e)}render(){return kt`
|
||
<div
|
||
class="kuc-field-group-1-18-0__group"
|
||
role="group"
|
||
aria-labelledby="${this._GUID}-control"
|
||
>
|
||
<button
|
||
type="button"
|
||
id="${this._GUID}-control"
|
||
class="kuc-field-group-1-18-0__group__toggle"
|
||
aria-controls="${this._GUID}-body"
|
||
aria-expanded="${this.expanded&&!this.disabled}"
|
||
?disabled="${this.disabled}"
|
||
@click="${this._handleClickButton}"
|
||
@keydown="${this._handleKeyDownButton}"
|
||
>
|
||
${this._getSvgTemplate()}
|
||
<kuc-base-label-1-18-0
|
||
.text="${this.label}"
|
||
.requiredIcon="${!1}"
|
||
></kuc-base-label-1-18-0>
|
||
</button>
|
||
<div
|
||
id="${this._GUID}-body"
|
||
class="kuc-field-group-1-18-0__group__body"
|
||
?hidden="${!this.expanded||this.disabled}"
|
||
@change="${this._handleChangeBody}"
|
||
>
|
||
${this._content}
|
||
</div>
|
||
</div>
|
||
`}updated(e){e.has("content")&&(this._groupEl.style.minWidth=ro+"px",requestAnimationFrame((()=>{this._updateContainerWidth()})))}_updateContainerWidth(){if(!this._bodyEl)return;const e=this._bodyEl.hasAttribute("hidden");e&&this._bodyEl.removeAttribute("hidden");const t=this._bodyEl.offsetWidth;e&&this._bodyEl.setAttribute("hidden",""),t<=ro||(this._groupEl.style.minWidth=t+"px")}_getSvgTemplate(){return this.expanded?kt`<svg
|
||
width="13"
|
||
height="8"
|
||
viewBox="0 0 13 8"
|
||
fill="none"
|
||
xmlns="http://www.w3.org/2000/svg"
|
||
>
|
||
<path
|
||
fill-rule="evenodd"
|
||
clip-rule="evenodd"
|
||
d="M11.7122 0.5L12.5 1.03608L7.23318 7.11548L5.76682 7.11548L0.5 1.03608L1.2878 0.5L6.26504 6.19318L6.73496 6.19318L11.7122 0.5Z"
|
||
fill="#939393"
|
||
/>
|
||
</svg>`:kt`<svg
|
||
width="8"
|
||
height="13"
|
||
viewBox="0 0 8 13"
|
||
fill="none"
|
||
xmlns="http://www.w3.org/2000/svg"
|
||
>
|
||
<path
|
||
fill-rule="evenodd"
|
||
clip-rule="evenodd"
|
||
d="M0.5 1.2878L1.03608 0.5L7.11548 5.76682V7.23318L1.03608 12.5L0.5 11.7122L6.19318 6.73496V6.26504L0.5 1.2878Z"
|
||
fill="#939393"
|
||
/>
|
||
</svg> `}_handleChangeBody(e){e.stopPropagation()}_handleKeyDownButton(e){"Tab"!==e.key&&(e.preventDefault(),"Enter"!==e.key&&" "!==e.key||this._handleClickButton(e))}_handleClickButton(e){if(e.target!==document.activeElement&&this._toggle.focus(),this.expanded){const e=this._bodyEl.getBoundingClientRect().width;e>ro&&(this._groupEl.style.minWidth=e+"px")}else this._groupEl.style.minWidth=ro+"px";this.expanded=!this.expanded;const t={expanded:this.expanded};Zi(this,"change",t)}}io([on({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),io([on()],e.prototype,"content",void 0),io([on({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),io([on({type:String})],e.prototype,"label",void 0),io([on({type:Boolean})],e.prototype,"disabled",void 0),io([on({type:Boolean})],e.prototype,"expanded",void 0),io([on({type:Boolean,attribute:"hidden",reflect:!0,converter:ji})],e.prototype,"visible",void 0),io([_n(".kuc-field-group-1-18-0__group")],e.prototype,"_groupEl",void 0),io([_n(".kuc-field-group-1-18-0__group__body")],e.prototype,"_bodyEl",void 0),io([_n(".kuc-field-group-1-18-0__group__toggle")],e.prototype,"_toggle",void 0),window.customElements.define("kuc-field-group-1-18-0",e),Xi('\n kuc-field-group-1-18-0 .kuc-field-group-1-18-0__group__toggle .kuc-base-label-1-18-0__text,\n kuc-field-group-1-18-0:lang(en) .kuc-field-group-1-18-0__group__toggle .kuc-base-label-1-18-0__text {\n font-family: sans-serif;\n }\n kuc-field-group-1-18-0:lang(es) .kuc-field-group-1-18-0__group__toggle .kuc-base-label-1-18-0__text {\n font-family: sans-serif;\n }\n kuc-field-group-1-18-0:lang(ja) .kuc-field-group-1-18-0__group__toggle .kuc-base-label-1-18-0__text {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo,\n sans-serif;\n }\n kuc-field-group-1-18-0:lang(zh) .kuc-field-group-1-18-0__group__toggle .kuc-base-label-1-18-0__text {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", sans-serif;\n }\n kuc-field-group-1-18-0:lang(zh-TW) .kuc-field-group-1-18-0__group__toggle .kuc-base-label-1-18-0__text {\n font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC",sans-serif;\n }\n kuc-field-group-1-18-0 {\n display: inline-table;\n }\n kuc-field-group-1-18-0[hidden] {\n display: none;\n }\n .kuc-field-group-1-18-0__group {\n min-width: 517px;\n padding: 0px 8px;\n border: 1px solid #e3e7e8;\n background-color: #f5f5f5;\n }\n .kuc-field-group-1-18-0__group h3 {\n margin: 0px;\n padding: 0px;\n }\n .kuc-field-group-1-18-0__group__toggle {\n display: flex;\n align-items: center;\n border-style: none;\n position: relative;\n outline: none;\n margin: 12px 0px 12px 8px;\n min-height: 34px;\n padding: 4px 8px 4px 24px;\n color: #333333;\n font-size: 16px;\n cursor: pointer;\n border: 1px solid transparent;\n background-color: inherit;\n line-height: 1.5;\n }\n .kuc-field-group-1-18-0__group__toggle:disabled {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n }\n .kuc-field-group-1-18-0__group__toggle:disabled .kuc-base-label-1-18-0__text {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n }\n .kuc-field-group-1-18-0__group__toggle .kuc-base-label-1-18-0__text {\n font-size: 16px;\n }\n .kuc-field-group-1-18-0__group__toggle:disabled:focus {\n outline: 0;\n border: 1px solid transparent;\n }\n .kuc-field-group-1-18-0__group__toggle:focus {\n outline: 0;\n border: 1px solid #3498db;\n }\n .kuc-field-group-1-18-0__group__toggle svg {\n position: absolute;\n left: 8px;\n }\n .kuc-field-group-1-18-0__group__body {\n padding: 0px 8px;\n margin-left: 0px;\n white-space: nowrap;\n word-wrap: normal;\n margin-bottom: 12px;\n }\n'),oo=e}})();const ao=oo;var so=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let lo;(()=>{if(lo=window.customElements.get("kuc-multi-choice-1-18-0"),!lo){class e extends Ji{constructor(e){super(),this.className="",this.error="",this.id="",this.label="",this.disabled=!1,this.requiredIcon=!1,this.visible=!0,this.items=[],this.selectedIndex=[],this.value=[],this._valueMapping={},this._DISABLED_CLASS="kuc-multi-choice-1-18-0__group__menu__item--disabled",this._GUID=Qi();const t=rr(e);this._setInitialValue(t),Object.assign(this,t)}_setInitialValue(e){const t="value"in e,n="selectedIndex"in e,i=e.selectedIndex||[];if(!t&&n){if(!fr(i))return;const t=this._getValueMapping(e);this.value=this._getValidValue(t,i)}}shouldUpdate(e){return e.has("items")&&!fr(this.items)?(this.throwErrorAfterUpdateComplete(En),!1):e.has("value")&&!fr(this.value)?(this.throwErrorAfterUpdateComplete(An),!1):!(e.has("selectedIndex")&&!fr(this.selectedIndex)&&(this.throwErrorAfterUpdateComplete(On),1))}willUpdate(e){if(e.has("value")){if(this.value.length>0)return;this.selectedIndex=[]}}update(e){(e.has("items")||e.has("value")||e.has("selectedIndex"))&&(this._valueMapping=this._getValueMapping({items:this.items,value:this.value,selectedIndex:this.selectedIndex}),this._setValueAndSelectedIndex()),super.update(e)}render(){return kt`
|
||
<div class="kuc-multi-choice-1-18-0__group">
|
||
<div
|
||
class="kuc-multi-choice-1-18-0__group__label"
|
||
id="${this._GUID}-label"
|
||
?hidden="${!this.label}"
|
||
>
|
||
<kuc-base-label-1-18-0
|
||
.text="${this.label}"
|
||
.requiredIcon="${this.requiredIcon}"
|
||
></kuc-base-label-1-18-0>
|
||
</div>
|
||
<div
|
||
class="kuc-multi-choice-1-18-0__group__menu"
|
||
role="listbox"
|
||
aria-multiselectable="true"
|
||
aria-describedby="${this._GUID}-error"
|
||
aria-labelledby="${this._GUID}-label"
|
||
?disabled="${this.disabled}"
|
||
tabindex="${this.disabled?"-1":"0"}"
|
||
@keydown="${this._handleKeyDownMultiChoice}"
|
||
>
|
||
${this.items.map(((e,t)=>this._getMenuItemTemplate(e,t)))}
|
||
</div>
|
||
<kuc-base-error-1-18-0
|
||
.text="${this.error}"
|
||
.guid="${this._GUID}"
|
||
?hidden="${!this.error}"
|
||
ariaLive="assertive"
|
||
></kuc-base-error-1-18-0>
|
||
</div>
|
||
`}_getValueMapping(e){const t=e.items||[],n=e.value||[],i=e.selectedIndex||[],r=t.map((e=>e.value||"")),o=Object.assign({},r),a={};if(0===n.length){const e=this._getValidValue(o,i);return i.forEach(((t,n)=>a[t]=e[n])),a}return this._getValidSelectedIndex(o).forEach(((e,t)=>a[e]=n[t])),a}_getValidValue(e,t){return t.filter((t=>e[t])).map((t=>e[t]))}_getValidSelectedIndex(e){const t=[];for(let n=0;n<this.value.length;n++){const i=this.selectedIndex[n];if(e[i]===this.value[n]){t.push(i);continue}const r=this.items.findIndex((e=>e.value===this.value[n]));t.push(r)}return t}_setValueAndSelectedIndex(){this.value=Object.values(this._valueMapping),this.selectedIndex=Object.keys(this._valueMapping).map((e=>parseInt(e,10)))}_handleMouseDownMultiChoiceItem(e){if(this.disabled)return;const t=e.target,n=t.getAttribute("value"),i=t.dataset.index||"0";this._handleChangeValue(n,i)}_handleMouseOverMultiChoiceItem(e){if(this.disabled)return;this._itemsEl.forEach((e=>{e.classList.contains("kuc-multi-choice-1-18-0__group__menu__highlight")&&e.classList.remove("kuc-multi-choice-1-18-0__group__menu__highlight")}));const t=e.currentTarget;t.classList.add("kuc-multi-choice-1-18-0__group__menu__highlight"),this._setActiveDescendant(t.id)}_handleMouseLeaveMultiChoiceItem(e){this.disabled||(e.currentTarget.classList.remove("kuc-multi-choice-1-18-0__group__menu__highlight"),this._setActiveDescendant())}_handleKeyDownMultiChoice(e){if(!this.disabled)switch(e.key){case"Up":case"ArrowUp":if(e.preventDefault(),0===this.items.length)break;this._actionHighlightPrevMenuItem();break;case"Down":case"ArrowDown":if(e.preventDefault(),0===this.items.length)break;this._actionHighlightNextMenuItem();break;case"Spacebar":case" ":e.preventDefault(),this._actionUpdateValue()}}_actionHighlightPrevMenuItem(){let e=null;null!==this._highlightItemEl&&(e=this._highlightItemEl.previousElementSibling),null===e&&(e=this._lastItemEl,null===this._highlightItemEl&&(e=this._firstItemEl));let t=!1;this._actionClearAllHighlightMenuItem();for(let n=0;n<this._itemsEl.length&&(t=e.classList.contains(this._DISABLED_CLASS),t);n++)e=e.previousElementSibling,null===e&&(e=this._lastItemEl);t||(e.classList.add("kuc-multi-choice-1-18-0__group__menu__highlight"),this._setActiveDescendant(e.id))}_actionHighlightNextMenuItem(){let e=null;null!==this._highlightItemEl&&(e=this._highlightItemEl.nextElementSibling),null===e&&(e=this._firstItemEl);let t=!1;this._actionClearAllHighlightMenuItem();for(let n=0;n<this._itemsEl.length&&(t=e.classList.contains(this._DISABLED_CLASS),t);n++)e=e.nextElementSibling,null===e&&(e=this._firstItemEl);t||(e.classList.add("kuc-multi-choice-1-18-0__group__menu__highlight"),this._setActiveDescendant(e.id))}_actionClearAllHighlightMenuItem(){this._itemsEl.forEach((e=>{e.classList.remove("kuc-multi-choice-1-18-0__group__menu__highlight")}))}_actionUpdateValue(){this._itemsEl.forEach((e=>{if(e.classList.contains("kuc-multi-choice-1-18-0__group__menu__highlight")){const t=e.getAttribute("value"),n=e.dataset.index||"0";this._handleChangeValue(t,n)}}))}_getMultiChoiceCheckedIconSvgTemplate(e,t){return xt`
|
||
${t?xt`<svg
|
||
class="kuc-multi-choice-1-18-0__group__menu__item__icon"
|
||
width="11"
|
||
height="9"
|
||
viewBox="0 0 11 9"
|
||
fill="none"
|
||
xmlns="http://www.w3.org/2000/svg"
|
||
>
|
||
<path
|
||
fill-rule="evenodd"
|
||
clip-rule="evenodd"
|
||
d="M0 5L1.5 3L4.5 5.5L9.5 0L11 1.5L4.5 8.5L0 5Z"
|
||
fill="${e?"#888888":"#3498db"}"
|
||
/>
|
||
</svg>`:""}`}_isCheckedItem(e,t){const n=Object.values(this._valueMapping),i=Object.keys(this._valueMapping);return n.filter(((n,r)=>n===e.value&&t===parseInt(i[r],10))).length>0}_getMenuItemTemplate(e,t){const n=this._isCheckedItem(e,t),i=e.disabled||this.disabled;return kt`
|
||
<div
|
||
class="kuc-multi-choice-1-18-0__group__menu__item ${i?this._DISABLED_CLASS:""}"
|
||
role="option"
|
||
aria-selected="${n}"
|
||
aria-required="${this.requiredIcon}"
|
||
data-index="${t}"
|
||
value="${void 0!==e.value?e.value:""}"
|
||
id="${this._GUID}-menuitem-${t}"
|
||
@mousedown="${i?null:this._handleMouseDownMultiChoiceItem}"
|
||
@mouseover="${i?null:this._handleMouseOverMultiChoiceItem}"
|
||
@mouseleave="${i?null:this._handleMouseLeaveMultiChoiceItem}"
|
||
>
|
||
${this._getMultiChoiceCheckedIconSvgTemplate(i,n)}
|
||
${void 0===e.label?e.value:e.label}
|
||
</div>
|
||
`}_setActiveDescendant(e){void 0!==e&&null!==this._menuEl?this._menuEl.setAttribute("aria-activedescendant",e):this._menuEl.removeAttribute("aria-activedescendant")}_handleChangeValue(e,t){const n=this.value?[...this.value]:this.value,i=this._getNewValueMapping(e,t),r=this.items.map((e=>e.value)),o=Object.values(i).filter((e=>r.indexOf(e)>-1));if(o===n)return;const a=Object.keys(i).map((e=>parseInt(e,10)));this.value=o,this.selectedIndex=a,Zi(this,"change",{oldValue:n,value:o})}_getNewValueMapping(e,t){const n=parseInt(t,10),i=Object.keys(this._valueMapping),r={...this._valueMapping};return i.indexOf(t)>-1?(delete r[n],r):(r[n]=e,r)}}so([on({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),so([on({type:String})],e.prototype,"error",void 0),so([on({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),so([on({type:String})],e.prototype,"label",void 0),so([on({type:Boolean})],e.prototype,"disabled",void 0),so([on({type:Boolean})],e.prototype,"requiredIcon",void 0),so([on({type:Boolean,attribute:"hidden",reflect:!0,converter:ji})],e.prototype,"visible",void 0),so([on({type:Array})],e.prototype,"items",void 0),so([on({type:Array})],e.prototype,"selectedIndex",void 0),so([on({type:Array})],e.prototype,"value",void 0),so([_n(".kuc-multi-choice-1-18-0__group__menu")],e.prototype,"_menuEl",void 0),so([gn(".kuc-multi-choice-1-18-0__group__menu__item")],e.prototype,"_itemsEl",void 0),so([_n(".kuc-multi-choice-1-18-0__group__menu__item")],e.prototype,"_firstItemEl",void 0),so([_n(".kuc-multi-choice-1-18-0__group__menu__item:last-child")],e.prototype,"_lastItemEl",void 0),so([_n(".kuc-multi-choice-1-18-0__group__menu__highlight")],e.prototype,"_highlightItemEl",void 0),so([cn()],e.prototype,"_valueMapping",void 0),window.customElements.define("kuc-multi-choice-1-18-0",e),Xi('\n kuc-multi-choice-1-18-0,\n kuc-multi-choice-1-18-0 *,\n kuc-multi-choice-1-18-0:lang(en),\n kuc-multi-choice-1-18-0:lang(en) * {\n font-family: sans-serif;\n }\n kuc-multi-choice-1-18-0:lang(es),\n kuc-multi-choice-1-18-0:lang(es) * {\n font-family: sans-serif;\n }\n kuc-multi-choice-1-18-0:lang(ja),\n kuc-multi-choice-1-18-0:lang(ja) * {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo,\n sans-serif;\n }\n kuc-multi-choice-1-18-0:lang(zh),\n kuc-multi-choice-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", sans-serif;\n }\n kuc-multi-choice-1-18-0:lang(zh-TW),\n kuc-multi-choice-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC",sans-serif;\n }\n kuc-multi-choice-1-18-0 {\n display: inline-table;\n font-size: 14px;\n color: var(--kuc-multi-choice-menu-color, #333333);\n width: var(--kuc-multi-choice-menu-width, 180px);\n min-width: var(--kuc-multi-choice-menu-width, 180px);\n line-height: 1.5;\n }\n kuc-multi-choice-1-18-0[hidden] {\n display: none;\n }\n .kuc-multi-choice-1-18-0__group {\n border: none;\n padding: 0px;\n height: auto;\n display: inline-block;\n vertical-align: top;\n width: 100%;\n margin: 0px;\n }\n .kuc-multi-choice-1-18-0__group__label {\n padding: 4px 0px 8px 0px;\n display: inline-block;\n white-space: nowrap;\n }\n .kuc-multi-choice-1-18-0__group__label[hidden] {\n display: none;\n }\n .kuc-multi-choice-1-18-0__group__menu {\n position: relative;\n background: #ffffff;\n border: 1px solid #e3e7e8;\n box-sizing: border-box;\n box-shadow: 1px 1px 12px #f5f5f5 inset, -1px -1px 12px #f5f5f5 inset;\n padding: 6px 0;\n overflow-y: auto;\n overflow-x: hidden;\n height: var(--kuc-multi-choice-menu-height, auto);\n max-height: var(--kuc-multi-choice-menu-height, 134px);\n width: var(--kuc-multi-choice-menu-width, auto);\n font-size: var(--kuc-multi-choice-menu-font-size, 14px);\n }\n .kuc-multi-choice-1-18-0__group__menu:not([disabled]):focus {\n outline: none;\n border: 1px solid #3498db;\n }\n .kuc-multi-choice-1-18-0__group__menu[disabled] {\n background-color: #dbdcdd;\n box-shadow: none;\n cursor: not-allowed;\n color: #888888;\n outline: none;\n }\n .kuc-multi-choice-1-18-0__group__menu__item {\n padding: 4px 16px;\n margin-bottom: 2px;\n line-height: 1;\n position: relative;\n white-space: nowrap;\n }\n .kuc-multi-choice-1-18-0__group__menu__item__icon {\n position: absolute;\n top: 50%;\n left: 16px;\n margin-top: -6px;\n pointer-events: none;\n }\n .kuc-multi-choice-1-18-0__group__menu__item--disabled {\n background-color: #d4d7d7;\n cursor: not-allowed;\n color: #888888;\n }\n .kuc-multi-choice-1-18-0__group__menu__item[aria-selected="true"] {\n color: var(--kuc-multi-choice-menu-color-selected, #3498db);\n padding-left: 32px;\n }\n .kuc-multi-choice-1-18-0__group__menu__item--disabled[aria-selected="true"] {\n color: #888888;\n padding-left: 32px;\n }\n .kuc-multi-choice-1-18-0__group__menu[disabled]\n .kuc-multi-choice-1-18-0__group__menu__item[aria-selected="true"] {\n color: #888888;\n }\n .kuc-multi-choice-1-18-0__group__menu__highlight[role="option"] {\n background-color: var(--kuc-multi-choice-menu-background-color-hover, #e2f2fe);\n cursor: pointer;\n }\n'),lo=e}})();const uo=lo;var co=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let ho;(()=>{if(ho=window.customElements.get("kuc-notification-1-18-0"),!ho){class e extends Ji{constructor(e){super(),this.className="",this.text="",this.type="danger",this.duration=-1,this.container=document.body,this._isOpened=!1;const t=rr(e);Object.assign(this,t)}shouldUpdate(e){if(e.has("container")){if(null===this.container||void 0===this.container)return this._isOpened&&this._close(),!1;const e=this._isValidContainerElement(),t=!e||!document.contains(this.container);if(this._isOpened&&t&&this._close(),!e)return this.throwErrorAfterUpdateComplete(Rn),!1}return!0}_isValidContainerElement(){return this.container instanceof HTMLElement}_handleClickCloseButton(e){this.close()}_getCloseButtonColorType(){switch(this.type){case"info":case"success":return this.type;default:return"danger"}}_getCloseButtonSvgTemplate(){return xt`
|
||
<svg
|
||
width="32"
|
||
height="32"
|
||
viewBox="0 0 32 32"
|
||
fill="none"
|
||
xmlns="http://www.w3.org/2000/svg"
|
||
>
|
||
<title>close button</title>
|
||
<path
|
||
class="kuc-notification-1-18-0__notification__close-button__icon-background--${this._getCloseButtonColorType()}"
|
||
fill-rule="evenodd"
|
||
clip-rule="evenodd"
|
||
d="M16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z"
|
||
/>
|
||
<path
|
||
fill-rule="evenodd"
|
||
clip-rule="evenodd"
|
||
d="M16.4765 15.7071L20.1229 12.0607L20.4765 11.7071L19.7694 11L19.4158 11.3536L15.7694 15L12.1229 11.3536L11.7694 11L11.0623 11.7071L11.4158 12.0607L15.0623 15.7071L11.3536 19.4158L11 19.7694L11.7071 20.4765L12.0607 20.1229L15.7694 16.4142L19.4781 20.1229L19.8316 20.4765L20.5387 19.7694L20.1852 19.4158L16.4765 15.7071Z"
|
||
fill="white"
|
||
/>
|
||
</svg>
|
||
`}_setAutoCloseTimer(){!Number.isFinite(this.duration)||this.duration<0||(this._clearAutoCloseTimer(),this._timeoutID=window.setTimeout((()=>{this.close()}),this.duration))}_clearAutoCloseTimer(){this._timeoutID&&window.clearTimeout(this._timeoutID)}open(){if(!this._isValidContainerElement())return document.body.appendChild(this),requestAnimationFrame((()=>{document.body.removeChild(this)})),void this.performUpdate();this.container.appendChild(this),this.performUpdate(),this.classList.remove("kuc-notification-fadeout-1-18-0"),this.classList.add("kuc-notification-fadein-1-18-0"),this._isOpened=!0,this._setAutoCloseTimer()}_close(){this._isOpened=!1,this.classList.remove("kuc-notification-fadein-1-18-0"),this.classList.add("kuc-notification-fadeout-1-18-0"),this._clearAutoCloseTimer()}close(){this._close(),Zi(this,"close")}render(){return kt`
|
||
<div
|
||
class="kuc-notification-1-18-0__notification kuc-notification-1-18-0__notification--${this.type}"
|
||
>
|
||
<pre
|
||
class="kuc-notification-1-18-0__notification__title"
|
||
aria-live="assertive"
|
||
role="${this._isOpened?"alert":""}"
|
||
><!--
|
||
-->${this.text}</pre>
|
||
<button
|
||
class="kuc-notification-1-18-0__notification__close-button"
|
||
type="button"
|
||
aria-label="close"
|
||
@click="${this._handleClickCloseButton}"
|
||
>
|
||
${this._getCloseButtonSvgTemplate()}
|
||
</button>
|
||
</div>
|
||
`}}co([on({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),co([on({type:String})],e.prototype,"text",void 0),co([on({type:String})],e.prototype,"type",void 0),co([on({type:Number})],e.prototype,"duration",void 0),co([on()],e.prototype,"container",void 0),co([cn()],e.prototype,"_isOpened",void 0),window.customElements.define("kuc-notification-1-18-0",e),Xi('\n kuc-notification-1-18-0,\n kuc-notification-1-18-0 *,\n kuc-notification-1-18-0:lang(en),\n kuc-notification-1-18-0:lang(en) * {\n font-family: sans-serif;\n }\n kuc-notification-1-18-0:lang(es),\n kuc-notification-1-18-0:lang(es) * {\n font-family: sans-serif;\n }\n kuc-notification-1-18-0:lang(ja),\n kuc-notification-1-18-0:lang(ja) * {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo,\n sans-serif;\n }\n kuc-notification-1-18-0:lang(zh),\n kuc-notification-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", sans-serif;\n }\n kuc-notification-1-18-0:lang(zh-TW),\n kuc-notification-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC",sans-serif;\n }\n kuc-notification-1-18-0 {\n color: #ffffff;\n font-weight: 700;\n text-align: center;\n text-shadow: 1px -1px 0 rgba(0, 0, 0, 0.5);\n }\n kuc-notification-1-18-0 {\n position: fixed;\n display: inline-block;\n top: 0;\n left: 0;\n width: 100%;\n line-height: 1.5;\n z-index: 10000;\n margin-top: 16px;\n pointer-events: none;\n visibility: hidden;\n animation-fill-mode: forwards;\n }\n .kuc-notification-fadein-1-18-0 {\n animation-name: kuc-notification-fade-in-1-18-0;\n animation-duration: 250ms;\n animation-timing-function: ease-out;\n }\n .kuc-notification-fadeout-1-18-0 {\n animation-name: kuc-notification-fade-out-1-18-0;\n animation-duration: 250ms;\n animation-timing-function: ease-out;\n }\n .kuc-notification-1-18-0__notification {\n position: relative;\n display: inline-block;\n text-align: left;\n padding: 16px 56px 16px 24px;\n background-color: var(--kuc-notification-background-color, #e74c3c);\n }\n .kuc-notification-1-18-0__notification--info {\n background-color: var(--kuc-notification-background-color, #3498db);\n }\n .kuc-notification-1-18-0__notification--success {\n background-color: var(--kuc-notification-background-color, #91c36c);\n }\n .kuc-notification-1-18-0__notification--danger {\n background-color: var(--kuc-notification-background-color, #e74c3c);\n }\n .kuc-notification-1-18-0__notification__title {\n display: flex;\n align-items: center;\n margin: 0;\n font-size: var(--kuc-notification-font-size, 16px);\n color: var(--kuc-notification-color, #ffffff);\n max-width: 500px;\n min-height: 24px;\n word-break: break-word;\n white-space: pre-wrap;\n }\n .kuc-notification-1-18-0__notification__close-button {\n position: absolute;\n top: 4px;\n right: 0;\n width: 48px;\n height: 48px;\n background-color: transparent;\n outline: none;\n border: none;\n pointer-events: auto;\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 0;\n }\n .kuc-notification-1-18-0__notification__close-button__icon-background--danger {\n fill: var(--kuc-notification-close-button-background-color, #c65040);\n }\n .kuc-notification-1-18-0__notification__close-button__icon-background--info {\n fill: var(--kuc-notification-close-button-background-color, #448aca);\n }\n .kuc-notification-1-18-0__notification__close-button__icon-background--success {\n fill: var(--kuc-notification-close-button-background-color, #9bbc65);\n }\n @keyframes kuc-notification-fade-in-1-18-0 {\n 0% {\n visibility: visible;\n top: -56px;\n }\n 100% {\n visibility: visible;\n top: 0;\n }\n }\n @keyframes kuc-notification-fade-out-1-18-0 {\n 0% {\n visibility: visible;\n top: 0;\n }\n 10% {\n visibility: visible;\n top: 14px;\n }\n 100% {\n top: -56px;\n }\n }\n'),ho=e}})();const po=ho;var fo=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let _o;(()=>{if(_o=window.customElements.get("kuc-radio-button-1-18-0"),!_o){class e extends Ji{constructor(e){super(),this.className="",this.error="",this.id="",this.itemLayout="horizontal",this.label="",this.value="",this.selectedIndex=-1,this.borderVisible=!0,this.disabled=!1,this.requiredIcon=!1,this.visible=!0,this.items=[],this._GUID=Qi();const t=rr(e);this._setInitialValue(t),Object.assign(this,t)}_setInitialValue(e){!("value"in e)&&"selectedIndex"in e&&(this.value=this._getValue(e)||"")}shouldUpdate(e){return e.has("items")&&!fr(this.items)?(this.throwErrorAfterUpdateComplete(En),!1):e.has("value")&&!ur(this.value)?(this.throwErrorAfterUpdateComplete(In),!1):!(e.has("selectedIndex")&&!pr(this.selectedIndex)&&(this.throwErrorAfterUpdateComplete(Dn),1))}_findItemToFocus(){let e=-1;for(let t=0;t<this.items.length;t++){const n=this.items[t];n.disabled||(this.selectedIndex!==t||n.value!==this.value?-1===e&&(e=t):e=t)}return e}willUpdate(e){if(e.has("value")){if(""!==this.value)return;this.selectedIndex=-1}}_handleChangeInput(e){e.stopPropagation();const t=e.target,n=t.value,i=t.dataset.index||"0",r=parseInt(i,10);if(this.value===n&&this.selectedIndex===r)return;const o={oldValue:this.value,value:n};this.value=n,this.selectedIndex=r,Zi(this,"change",o)}_handleFocusInput(e){e.target.parentNode.setAttribute("focused","")}_handleBlurInput(e){e.target.parentNode.removeAttribute("focused")}_getRadioIconSvgTemplate(e,t){return xt`
|
||
<svg
|
||
class="kuc-radio-button-1-18-0__group__select-menu__item__label__icon"
|
||
width="21"
|
||
height="21"
|
||
viewBox="0 0 21 21"
|
||
fill="none"
|
||
xmlns="http://www.w3.org/2000/svg"
|
||
>
|
||
<circle
|
||
cx="10.5"
|
||
cy="10.5"
|
||
r="10"
|
||
fill="white"
|
||
stroke="#e3e7e8" stroke-width="1"/>
|
||
${t?xt`<circle cx="10.5" cy="10.5" r="6.5" fill="${e?"#e3e7e8":"#3498db"}"/>`:""}
|
||
</svg>
|
||
`}_isCheckedItem(e,t){return this.value?e.value===this.value&&this.selectedIndex===t:this.selectedIndex===t}_getItemTemplate(e,t){const n=this._isCheckedItem(e,t),i=e.disabled||this.disabled,r=void 0!==e.value?e.value:"",o=t===this._findItemToFocus()?"0":"-1";return kt`
|
||
<div
|
||
class="kuc-radio-button-1-18-0__group__select-menu__item"
|
||
itemLayout="${this.itemLayout}"
|
||
>
|
||
<input
|
||
type="radio"
|
||
aria-checked="${n?"true":"false"}"
|
||
aria-describedby="${this._GUID}-error"
|
||
data-index="${t}"
|
||
id="${this._GUID}-item-${t}"
|
||
class="kuc-radio-button-1-18-0__group__select-menu__item__input"
|
||
name="${this._GUID}-group"
|
||
value="${r}"
|
||
tabindex="${o}"
|
||
aria-required="${this.requiredIcon}"
|
||
?disabled="${i}"
|
||
@change="${this._handleChangeInput}"
|
||
@focus="${this._handleFocusInput}"
|
||
@blur="${this._handleBlurInput}"
|
||
/>
|
||
<label
|
||
class="kuc-radio-button-1-18-0__group__select-menu__item__label"
|
||
for="${this._GUID}-item-${t}"
|
||
>${this._getRadioIconSvgTemplate(i,n)}${void 0===e.label?e.value:e.label}
|
||
</label>
|
||
</div>
|
||
`}update(e){(e.has("items")||e.has("value")||e.has("selectedIndex"))&&(this.selectedIndex=this._getSelectedIndex(),this.value=this._getValue({items:this.items,selectedIndex:this.selectedIndex})||""),super.update(e)}render(){return kt`
|
||
<div
|
||
class="kuc-radio-button-1-18-0__group"
|
||
role="radiogroup"
|
||
aria-labelledby="${this._GUID}-group"
|
||
>
|
||
<div class="kuc-radio-button-1-18-0__group__label" ?hidden="${!this.label}">
|
||
<kuc-base-label-1-18-0
|
||
.text="${this.label}"
|
||
.guid="${this._GUID}"
|
||
.requiredIcon="${this.requiredIcon}"
|
||
></kuc-base-label-1-18-0>
|
||
</div>
|
||
<div
|
||
class="kuc-radio-button-1-18-0__group__select-menu"
|
||
?borderVisible="${this.borderVisible}"
|
||
itemLayout="${this.itemLayout}"
|
||
>
|
||
${this.items.map(((e,t)=>this._getItemTemplate(e,t)))}
|
||
</div>
|
||
<kuc-base-error-1-18-0
|
||
.text="${this.error}"
|
||
.guid="${this._GUID}"
|
||
?hidden="${!this.error}"
|
||
ariaLive="assertive"
|
||
></kuc-base-error-1-18-0>
|
||
</div>
|
||
`}updated(){this._inputEls.forEach(((e,t)=>{e.checked=this.value===e.value&&t===this.selectedIndex}))}_getSelectedIndex(){if(!this.value)return this.items[this.selectedIndex]?this.selectedIndex:-1;const e=this.items.findIndex((e=>e.value===this.value));if(-1===e)return-1;const t=this.items.findIndex(((e,t)=>e.value===this.value&&t===this.selectedIndex));return t>-1?t:e}_getValue(e){const t=(e.items||[])[0===e.selectedIndex||e.selectedIndex?e.selectedIndex:-1];return t?t.value:""}}fo([on({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),fo([on({type:String})],e.prototype,"error",void 0),fo([on({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),fo([on({type:String})],e.prototype,"itemLayout",void 0),fo([on({type:String})],e.prototype,"label",void 0),fo([on({type:String})],e.prototype,"value",void 0),fo([on({type:Number})],e.prototype,"selectedIndex",void 0),fo([on({type:Boolean})],e.prototype,"borderVisible",void 0),fo([on({type:Boolean})],e.prototype,"disabled",void 0),fo([on({type:Boolean})],e.prototype,"requiredIcon",void 0),fo([on({type:Boolean,attribute:"hidden",reflect:!0,converter:ji})],e.prototype,"visible",void 0),fo([on({type:Array})],e.prototype,"items",void 0),fo([gn(".kuc-radio-button-1-18-0__group__select-menu__item__input")],e.prototype,"_inputEls",void 0),window.customElements.define("kuc-radio-button-1-18-0",e),Xi('\n kuc-radio-button-1-18-0,\n kuc-radio-button-1-18-0 *,\n kuc-radio-button-1-18-0:lang(en),\n kuc-radio-button-1-18-0:lang(en) * {\n font-family: sans-serif;\n }\n kuc-radio-button-1-18-0:lang(es),\n kuc-radio-button-1-18-0:lang(es) * {\n font-family: sans-serif;\n }\n kuc-radio-button-1-18-0:lang(ja),\n kuc-radio-button-1-18-0:lang(ja) * {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo,\n sans-serif;\n }\n kuc-radio-button-1-18-0:lang(zh),\n kuc-radio-button-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", sans-serif;\n }\n kuc-radio-button-1-18-0:lang(zh-TW),\n kuc-radio-button-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC",sans-serif;\n }\n kuc-radio-button-1-18-0 {\n font-size: 14px;\n color: #333333;\n display: inline-table;\n width: var(--kuc-radio-button-menu-width, 239px);\n min-width: var(--kuc-radio-button-menu-width, 239px);\n vertical-align: top;\n line-height: 1.5;\n }\n\n kuc-radio-button-1-18-0[hidden] {\n display: none;\n }\n\n .kuc-radio-button-1-18-0__group {\n border: none;\n padding: 0px;\n height: auto;\n display: inline-block;\n margin: 0px;\n width: 100%;\n }\n\n .kuc-radio-button-1-18-0__group__label {\n display: inline-block;\n padding: 4px 0 8px 0;\n white-space: nowrap;\n }\n\n .kuc-radio-button-1-18-0__group__label[hidden] {\n display: none;\n }\n\n .kuc-radio-button-1-18-0__group__select-menu {\n display: flex;\n align-items: flex-start;\n width: var(--kuc-radio-button-menu-width, 100%);\n height: var(--kuc-radio-button-menu-height);\n color: var(--kuc-radio-button-menu-color, #333333);\n font-size: var(--kuc-radio-button-menu-font-size, 14px);\n }\n\n .kuc-radio-button-1-18-0__group__select-menu[itemlayout="vertical"] {\n display: block;\n }\n\n .kuc-radio-button-1-18-0__group__select-menu[bordervisible] {\n border-color: #e3e7e8;\n border-width: 1px;\n border-style: solid;\n padding-top: 4px;\n box-sizing: border-box;\n }\n\n .kuc-radio-button-1-18-0__group__select-menu__item {\n margin-left: 4px;\n margin-bottom: 4px;\n margin-right: 16px;\n padding: 4px;\n border: 1px solid transparent;\n position: relative;\n white-space: normal;\n word-wrap: normal;\n display: flex;\n align-items: center;\n }\n\n .kuc-radio-button-1-18-0__group__select-menu__item[focused] {\n border: 1px solid #3498db;\n }\n\n .kuc-radio-button-1-18-0__group__select-menu__item__input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n }\n\n .kuc-radio-button-1-18-0__group__select-menu__item__input:hover\n + .kuc-radio-button-1-18-0__group__select-menu__item__label {\n color: var(--kuc-radio-button-menu-color-hover, #666666);\n }\n\n .kuc-radio-button-1-18-0__group__select-menu__item__label__icon {\n position: absolute;\n left: -30px;\n box-sizing: border-box;\n width: 21px;\n height: 21px;\n box-shadow: 1px 1px 3px #f5f5f5 inset, -1px -1px 3px #f5f5f5 inset;\n content: "";\n border-radius: 9px;\n }\n\n .kuc-radio-button-1-18-0__group__select-menu__item__input[disabled]\n + .kuc-radio-button-1-18-0__group__select-menu__item__label {\n color: #888888;\n cursor: not-allowed;\n }\n\n .kuc-radio-button-1-18-0__group__select-menu__item__label {\n cursor: pointer;\n position: relative;\n margin-left: 32px;\n display: flex;\n align-items: center;\n vertical-align: middle;\n white-space: nowrap;\n line-height: 1.2;\n min-height: 24px;\n }\n'),_o=e}})();const go=_o;var bo=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let mo;(()=>{if(mo=window.customElements.get("kuc-base-pagination-1-18-0"),!mo){class e extends Ji{constructor(){super(...arguments),this.pagePosition=1,this.rowsPerPage=5,this.total=1,this.isNext=!0,this.isPrev=!0,this.visible=!0}render(){return kt`
|
||
<div class="kuc-base-pagination-1-18-0__group" ?hidden="${!this.visible}">
|
||
<button
|
||
title="previous"
|
||
class="kuc-base-pagination-1-18-0__group__pager-prev${this.isPrev?"":" kuc-base-pagination-1-18-0__group__pager-disable"}"
|
||
type="button"
|
||
@click="${this._handleClickPrevButton}"
|
||
@focus="${this._handleFocusPrevButton}"
|
||
@blur="${this._handleBlurPrevButton}"
|
||
@mouseover="${this._handleMouseOverPrevButton}"
|
||
@mouseleave="${this._handleMouseLeavePrevButton}"
|
||
>
|
||
${this._getPrevButtonSvgTemplate()}</button
|
||
>${this._getCurrentPageNumberTemplate()}<button
|
||
title="next"
|
||
class="kuc-base-pagination-1-18-0__group__pager-next${this.isNext?"":" kuc-base-pagination-1-18-0__group__pager-disable"}"
|
||
type="button"
|
||
@click="${this._handleClickNextButton}"
|
||
@focus="${this._handleFocusNextButton}"
|
||
@blur="${this._handleBlurNextButton}"
|
||
@mouseover="${this._handleMouseOverNextButton}"
|
||
@mouseleave="${this._handleMouseLeaveNextButton}"
|
||
>
|
||
${this._getNextButtonSvgTemplate()}
|
||
</button>
|
||
</div>
|
||
`}_handleClickPrevButton(e){e.stopPropagation(),Zi(this,"kuc:pagination-click-prev")}_handleFocusPrevButton(){this._prevButtonEl.classList.add("kuc-base-pagination-1-18-0__group__pager--focus")}_handleBlurPrevButton(){this._prevButtonEl.classList.remove("kuc-base-pagination-1-18-0__group__pager--focus")}_handleMouseOverPrevButton(){this._prevButtonEl.classList.add("kuc-base-pagination-1-18-0__group__pager--horver")}_handleMouseLeavePrevButton(){this._prevButtonEl.classList.remove("kuc-base-pagination-1-18-0__group__pager--horver")}_handleClickNextButton(e){e.stopPropagation(),Zi(this,"kuc:pagination-click-next")}_handleFocusNextButton(){this._nextButtonEl.classList.add("kuc-base-pagination-1-18-0__group__pager--focus")}_handleBlurNextButton(){this._nextButtonEl.classList.remove("kuc-base-pagination-1-18-0__group__pager--focus")}_handleMouseOverNextButton(){this._nextButtonEl.classList.add("kuc-base-pagination-1-18-0__group__pager--horver")}_handleMouseLeaveNextButton(){this._nextButtonEl.classList.remove("kuc-base-pagination-1-18-0__group__pager--horver")}_getPrevButtonSvgTemplate(){return xt`
|
||
<svg
|
||
width="9"
|
||
height="15"
|
||
viewBox="0 0 9 15"
|
||
fill="none"
|
||
xmlns="http://www.w3.org/2000/svg">
|
||
<path
|
||
fill-rule="evenodd"
|
||
clip-rule="evenodd"
|
||
d="M1.99061 7.5L9 0.0604158L7.06632 0L0 7.5L7.06632 15L9 14.9396L1.99061 7.5Z"
|
||
fill="#888888"
|
||
/>
|
||
</svg>
|
||
`}_getNextButtonSvgTemplate(){return xt`
|
||
<svg
|
||
width="9"
|
||
height="15"
|
||
viewBox="0 0 9 15"
|
||
fill="none"
|
||
xmlns="http://www.w3.org/2000/svg">
|
||
<path
|
||
fill-rule="evenodd"
|
||
clip-rule="evenodd"
|
||
d="M7.00939 7.5L0 0.0604158L1.93368 0L9 7.5L1.93368 15L0 14.9396L7.00939 7.5Z"
|
||
fill="#888888"
|
||
/>
|
||
</svg>
|
||
`}_getCurrentPageNumberTemplate(){const e=this._createCurrentPageInfo(),t=`${e.firstNum} - ${e.lastNum} / ${this.total}`;return kt`<span class="kuc-base-pagination-1-18-0__group__pager-current"
|
||
>${t}</span
|
||
>`}_createCurrentPageInfo(){const e=(this.pagePosition-1)*this.rowsPerPage+1;let t=this.pagePosition*this.rowsPerPage;return t=t>this.total?this.total:t,{firstNum:e,lastNum:t}}}bo([on({type:Number})],e.prototype,"pagePosition",void 0),bo([on({type:Number})],e.prototype,"rowsPerPage",void 0),bo([on({type:Number})],e.prototype,"total",void 0),bo([on({type:Boolean})],e.prototype,"isNext",void 0),bo([on({type:Boolean})],e.prototype,"isPrev",void 0),bo([on({type:Boolean,attribute:"hidden",reflect:!0,converter:ji})],e.prototype,"visible",void 0),bo([_n(".kuc-base-pagination-1-18-0__group__pager-prev")],e.prototype,"_prevButtonEl",void 0),bo([_n(".kuc-base-pagination-1-18-0__group__pager-next")],e.prototype,"_nextButtonEl",void 0),window.customElements.define("kuc-base-pagination-1-18-0",e),Xi("\n .kuc-base-pagination-1-18-0__group {\n margin-top: 10px;\n }\n .kuc-base-pagination-1-18-0__group button {\n cursor: pointer;\n }\n .kuc-base-pagination-1-18-0__group__pager-prev {\n border: none;\n background-color: transparent;\n visibility: visible;\n height: 23px;\n vertical-align: middle;\n }\n .kuc-base-pagination-1-18-0__group__pager-next {\n border: none;\n background-color: transparent;\n visibility: visible;\n height: 23px;\n vertical-align: middle;\n }\n .kuc-base-pagination-1-18-0__group__pager-next:hover svg path,\n .kuc-base-pagination-1-18-0__group__pager-prev:hover svg path,\n .kuc-base-pagination-1-18-0__group__pager-next:focus-visible svg path,\n .kuc-base-pagination-1-18-0__group__pager-prev:focus-visible svg path\n {\n fill: #3498db;\n }\n .kuc-base-pagination-1-18-0__group__pager--focus,\n .kuc-base-pagination-1-18-0__group__pager-next:focus-visible,\n .kuc-base-pagination-1-18-0__group__pager-prev:focus-visible {\n outline: 1px solid #3498db;\n }\n .kuc-base-pagination-1-18-0__group__pager--horver svg path {\n fill: #3498db;\n }\n .kuc-base-pagination-1-18-0__group__pager-next svg,\n .kuc-base-pagination-1-18-0__group__pager-prev svg {\n margin-top: 3px;\n }\n .kuc-base-pagination-1-18-0__group__pager-disable {\n visibility: hidden;\n }\n .kuc-base-pagination-1-18-0__group__pager-current {\n display: inline-block;\n height: 23px;\n line-height: 23px;\n vertical-align: middle;\n font-size: 14px;\n color: #333333;\n }\n"),mo=e}})();var vo=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let yo;(()=>{if(yo=window.customElements.get("kuc-readonly-table-1-18-0"),!yo){class e extends Ji{constructor(e){if(super(),this.className="",this.id="",this.label="",this.columns=[],this.data=[],this.pagination=!0,this.rowsPerPage=5,this.visible=!0,this._pagePosition=1,this._columnOrder=[],!e)return;const t=rr(e);Object.assign(this,t)}shouldUpdate(e){return e.has("columns")&&!fr(this.columns)?(this.throwErrorAfterUpdateComplete($n),!1):e.has("data")&&!fr(this.data)?(this.throwErrorAfterUpdateComplete(Pn),!1):!(e.has("rowsPerPage")&&!hr(this.rowsPerPage)&&(this.throwErrorAfterUpdateComplete(Ln),1))}willUpdate(e){e.has("columns")&&(this._columnOrder=[],this.columns.map((e=>this._columnOrder.push(e.field?e.field:"")))),e.has("rowsPerPage")&&(this.rowsPerPage=Math.round(this.rowsPerPage))}render(){const e=this._createDisplayData();return!this.columns||this.columns.length<1?kt`
|
||
<table class="kuc-readonly-table-1-18-0__table">
|
||
<caption
|
||
class="kuc-readonly-table-1-18-0__table__label kuc-readonly-table-1-18-0__table__label--no-column"
|
||
?hidden="${!this.label}"
|
||
>
|
||
${this.label}
|
||
</caption>
|
||
</table>
|
||
`:kt`
|
||
<table class="kuc-readonly-table-1-18-0__table">
|
||
<caption
|
||
class="kuc-readonly-table-1-18-0__table__label"
|
||
?hidden="${!this.label}"
|
||
>
|
||
${this.label}
|
||
</caption>
|
||
<thead class="kuc-readonly-table-1-18-0__table__header">
|
||
<tr>
|
||
${this.columns.map(((e,t)=>this._getColumnsTemplate(e,t)))}
|
||
</tr>
|
||
</thead>
|
||
<tbody class="kuc-readonly-table-1-18-0__table__body">
|
||
${e.map(((e,t)=>this._getDataTemplate(e,t)))}
|
||
</tbody>
|
||
</table>
|
||
<kuc-base-pagination-1-18-0
|
||
.pagePosition="${this._pagePosition}"
|
||
.rowsPerPage="${this.rowsPerPage}"
|
||
.total="${this.data.length}"
|
||
.visible="${this.pagination}"
|
||
.isPrev="${this._toggleDisplayPreviousButton()}"
|
||
.isNext="${this._toggleDisplayNextButton()}"
|
||
@kuc:pagination-click-prev=${this._handleClickPreviousButton}
|
||
@kuc:pagination-click-next=${this._handleClickNextButton}
|
||
></kuc-base-pagination-1-18-0>
|
||
`}_createDisplayData(){if(!this.pagination)return this.data;const e=(this._pagePosition-1)*this.rowsPerPage+1,t=this._pagePosition*this.rowsPerPage;return this.data.filter(((n,i)=>i>=e-1&&i<=t-1))}_customWidthVariables(e){return`var(--kuc-readonly-table-header-${e}-width, var(--kuc-readonly-table-header-width, auto))`}_getColumnsTemplate(e,t){const n=this._customWidthVariables(t);return kt`
|
||
<th
|
||
class="kuc-readonly-table-1-18-0__table__header__cell"
|
||
?hidden="${!1===e.visible}"
|
||
style="width: ${n}; min-width: ${n}; max-width: ${n}"
|
||
>
|
||
${e.title||""}
|
||
</th>
|
||
`}_getDataTemplate(e,t){return kt`
|
||
<tr
|
||
class="kuc-readonly-table-1-18-0__table__body__row kuc-readonly-table-1-18-0__table__body__row-${t}"
|
||
>
|
||
${this._columnOrder.map(((t,n)=>{var i;const r=null===(i=this.columns[n].visible)||void 0===i||i;let o=e[t];this._isHTML(o)&&(o=kt`<div
|
||
class="kuc-readonly-table-1-18-0__table__body__row__cell-data--html"
|
||
>
|
||
${Bi(o)}
|
||
</div>`);const a=this._customWidthVariables(n);return kt`<td class="kuc-readonly-table-1-18-0__table__body__row__cell-data" ?hidden="${!r}" style="width: ${a}; min-width: ${a}; max-width: ${a}">${o}</td>`}))}
|
||
</tr>
|
||
`}_toggleDisplayPreviousButton(){return this._pagePosition>1}_toggleDisplayNextButton(){return this._pagePosition<this.data.length/this.rowsPerPage}_handleClickPreviousButton(e){this._pagePosition<2||(hr(this.rowsPerPage)?this._pagePosition-=1:this.throwErrorAfterUpdateComplete(Ln))}_handleClickNextButton(e){hr(this.rowsPerPage)?!1!==this._toggleDisplayNextButton()&&(this._pagePosition+=1):this.throwErrorAfterUpdateComplete(Ln)}_isHTML(e){if(e instanceof HTMLElement)return!0;const t=document.createElement("div");return t.innerHTML=e,t.childElementCount>0}}vo([on({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),vo([on({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),vo([on({type:String})],e.prototype,"label",void 0),vo([on({type:Array})],e.prototype,"columns",void 0),vo([on({type:Array})],e.prototype,"data",void 0),vo([on({type:Boolean})],e.prototype,"pagination",void 0),vo([on({type:Number})],e.prototype,"rowsPerPage",void 0),vo([on({type:Boolean,attribute:"hidden",reflect:!0,converter:ji})],e.prototype,"visible",void 0),vo([cn()],e.prototype,"_pagePosition",void 0),vo([cn()],e.prototype,"_columnOrder",void 0),window.customElements.define("kuc-readonly-table-1-18-0",e),Xi('\n kuc-readonly-table-1-18-0 ,\n kuc-readonly-table-1-18-0 *,\n kuc-readonly-table-1-18-0:lang(en),\n kuc-readonly-table-1-18-0:lang(en) * {\n font-family: sans-serif;\n }\n kuc-readonly-table-1-18-0:lang(es),\n kuc-readonly-table-1-18-0:lang(es) * {\n font-family: sans-serif;\n }\n kuc-readonly-table-1-18-0:lang(ja),\n kuc-readonly-table-1-18-0:lang(ja) * {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo,\n sans-serif;\n }\n kuc-readonly-table-1-18-0:lang(zh),\n kuc-readonly-table-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", sans-serif;\n }\n kuc-readonly-table-1-18-0:lang(zh-TW),\n kuc-readonly-table-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC",sans-serif;\n }\n kuc-readonly-table-1-18-0 {\n font-size: 14px;\n color: #333333;\n display: block;\n }\n kuc-readonly-table-1-18-0[hidden] {\n display: none;\n }\n .kuc-readonly-table-1-18-0__table {\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n display: inline-block;\n }\n .kuc-readonly-table-1-18-0__table__header {\n border-width: 0px 1px;\n border-color: var(--kuc-readonly-table-header-background-color, #3498db);\n border-style: solid;\n }\n .kuc-readonly-table-1-18-0__table__label {\n text-align: left;\n white-space: normal;\n overflow-wrap: anywhere;\n padding: 4px 0px;\n }\n .kuc-readonly-table-1-18-0__table__label[hidden] {\n display: none;\n }\n .kuc-readonly-table-1-18-0__table__label--no-column {\n overflow-wrap: break-word;\n }\n .kuc-readonly-table-1-18-0__table__header__cell {\n background-color: var(--kuc-readonly-table-header-background-color, #3498db);\n color: var(--kuc-readonly-table-header-color, #ffffff);\n height: var(--kuc-readonly-table-header-height, 40px);\n box-sizing: border-box;\n text-align: left;\n overflow: auto;\n white-space: nowrap;\n word-wrap: break-word;\n padding: 4px 8px;\n font-weight: 400;\n font-size: var(--kuc-readonly-table-header-font-size, 12px);\n }\n .kuc-readonly-table-1-18-0__table__header__cell[hidden] {\n display: none;\n }\n .kuc-readonly-table-1-18-0__table__body {\n vertical-align: top;\n }\n .kuc-readonly-table-1-18-0__table__body__row__cell-data {\n box-sizing: border-box;\n padding: 4px 8px;\n white-space: pre-wrap;\n overflow-wrap: break-word;\n border-color: #e3e7e8;\n border-style: solid;\n border-width: 1px;\n }\n .kuc-readonly-table-1-18-0__table__body__row__cell-data[hidden] {\n display: none;\n }\n .kuc-readonly-table-1-18-0__table__header__cell,\n .kuc-readonly-table-1-18-0__table__body__row__cell-data {\n scrollbar-width: none; /* Firefox */\n }\n .kuc-readonly-table-1-18-0__table__header__cell::-webkit-scrollbar,\n .kuc-readonly-table-1-18-0__table__body__row__cell-data::-webkit-scrollbar {\n width: 0; /* Safari and Chrome */\n display: none\n }\n .kuc-readonly-table-1-18-0__table__body__row__cell-data--html {\n white-space: normal;\n }\n'),yo=e}})();const ko=yo;var xo=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let wo;(()=>{if(wo=window.customElements.get("kuc-spinner-1-18-0"),!wo){class e extends Ji{constructor(e){super(),this.text="",this.container=document.body,this._isOpened=!1;const t=rr(e);Object.assign(this,t)}_getSpinnerSvgTemplate(){return xt`
|
||
<svg
|
||
class="kuc-spinner-1-18-0__spinner__loader"
|
||
viewBox="0 0 50 50"
|
||
aria-hidden="true"
|
||
>
|
||
<circle r="4" cx="30.43" cy="4.72" opacity="0.3" />
|
||
<circle r="4" cx="39.85" cy="10.15" opacity="0.3" />
|
||
<circle r="4" cx="45.28" cy="19.56" opacity="0.3" />
|
||
<circle r="4" cx="45.28" cy="30.43" opacity="0.3" />
|
||
<circle r="4" cx="39.85" cy="39.85" opacity="0.3" />
|
||
<circle r="4" cx="30.44" cy="45.28" opacity="0.4" />
|
||
<circle r="4" cx="19.56" cy="45.28" opacity="0.5" />
|
||
<circle r="4" cx="10.15" cy="39.85" opacity="0.6" />
|
||
<circle r="4" cx="4.7" cy="30.44" opacity="0.7" />
|
||
<circle r="4" cx="4.7" cy="19.56" opacity="0.8" />
|
||
<circle r="4" cx="10.15" cy="10.15" opacity="0.9" />
|
||
<circle r="4" cx="19.56" cy="4.72" opacity="1" />
|
||
</svg>
|
||
`}_isValidContainerElement(){return this.container instanceof HTMLElement}open(){if(!this._isValidContainerElement())return document.body.appendChild(this),requestAnimationFrame((()=>{document.body.removeChild(this)})),void this.performUpdate();this.parentElement&&this.parentElement.classList.remove("kuc--has-spinner"),this.container.appendChild(this),this.performUpdate(),this.container.classList.contains("kuc--has-spinner")||this.container.classList.add("kuc--has-spinner"),this._isOpened=!0}close(){this.parentElement&&this.parentElement.classList.remove("kuc--has-spinner"),this._isOpened=!1,this.parentNode&&this.parentNode.removeChild(this)}shouldUpdate(e){if(e.has("container")){if(null===this.container||void 0===this.container)return this._isOpened&&this.close(),!1;const e=this._isValidContainerElement(),t=!e||!document.contains(this.container);if(this._isOpened&&t&&this.close(),!e)return this.throwErrorAfterUpdateComplete(Rn),!1}return!0}render(){return kt`
|
||
<div class="kuc-spinner-1-18-0__spinner" aria-live="assertive" role="alert">
|
||
${this._getSpinnerSvgTemplate()}
|
||
<div
|
||
class="kuc-spinner-1-18-0__spinner__text${this.text?"":" visually-hidden"}"
|
||
>
|
||
${this.text?this.text:"now loading…"}
|
||
</div>
|
||
</div>
|
||
<div class="kuc-spinner-1-18-0__mask"></div>
|
||
`}}xo([on({type:String})],e.prototype,"text",void 0),xo([on()],e.prototype,"container",void 0),window.customElements.define("kuc-spinner-1-18-0",e),Xi('\n kuc-spinner-1-18-0,\n kuc-spinner-1-18-0 *,\n kuc-spinner-1-18-0:lang(en),\n kuc-spinner-1-18-0:lang(en) * {\n font-family: sans-serif;\n }\n kuc-spinner-1-18-0:lang(es),\n kuc-spinner-1-18-0:lang(es) * {\n font-family: sans-serif;\n }\n kuc-spinner-1-18-0:lang(ja),\n kuc-spinner-1-18-0:lang(ja) * {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo,\n sans-serif;\n }\n kuc-spinner-1-18-0:lang(zh),\n kuc-spinner-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", sans-serif;\n }\n kuc-spinner-1-18-0:lang(zh-TW),\n kuc-spinner-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC",sans-serif;\n }\n kuc-spinner-1-18-0 {\n font-size: 14px;\n color: #333333;\n }\n .kuc-spinner-1-18-0__spinner {\n position: fixed;\n top: 0;\n left: 0;\n z-index: 10000;\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n }\n .kuc-spinner-1-18-0__spinner__loader {\n width: var(--kuc-spinner-loader-width, 50px);\n height: var(--kuc-spinner-loader-height, 50px);\n animation: rotate-loading 1s steps(12) infinite;\n fill: var(--kuc-spinner-loader-color, #99ccff);\n }\n .kuc-spinner-1-18-0__spinner__text {\n margin: 10px 0;\n font-size: var(--kuc-spinner-text-font-size, 14px);\n color: var(--kuc-spinner-text-color, #333333);\n }\n .visually-hidden {\n position: absolute;\n white-space: nowrap;\n width: 1px;\n height: 1px;\n overflow: hidden;\n border: 0;\n padding: 0;\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n margin: -1px;\n }\n .kuc-spinner-1-18-0__mask {\n position: fixed;\n top: 0;\n right: 0;\n display: block;\n width: 100%;\n height: 100%;\n background-color: #666666;\n opacity: 0.6;\n z-index: 9999;\n }\n .kuc--has-spinner {\n overflow: hidden;\n }\n @keyframes rotate-loading {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n'),wo=e}})();const Eo=wo;var So=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};const Co="kuc-table-1-18-0__table__body__row__action-add",To="kuc-table-1-18-0__table__body__row__action-remove",Ao=e=>`var(--kuc-table-header-${e}-width, var(--kuc-table-header-width, auto))`;let Io;(()=>{if(Io=window.customElements.get("kuc-table-1-18-0"),!Io){class e extends Ji{constructor(e){if(super(),this.className="",this.id="",this.label="",this.columns=[],this.data=[],this.actionButton=!0,this.headerVisible=!0,this.visible=!0,!e)return;const t=rr(e);Object.assign(this,t)}shouldUpdate(e){if(e.has("data")||e.has("columns")){const e=this._getErrorValidateColumnsAndData();if(e)return this.throwErrorAfterUpdateComplete(e),!1}return!0}willUpdate(e){this._tBody&&(this._tBody.innerHTML="")}_getErrorMessageWhenValidateColumns(){return fr(this.columns)?(e=>{for(let t=0;t<e.length;t++)if(!Object.prototype.hasOwnProperty.call(e[t],"field"))return!1;return!0})(this.columns)?(e=>{const t=this.columns.map((e=>e.field));return t.some((function(e,n){return t.indexOf(e)!==n}))})()?Mn:"":Nn:$n}render(){return!this.columns||this.columns.length<1?kt`<table class="kuc-table-1-18-0__table">
|
||
<caption
|
||
class="kuc-table-1-18-0__table__label kuc-table-1-18-0__table__label--no-column"
|
||
?hidden="${!this.label}"
|
||
>
|
||
${this.label}
|
||
</caption>
|
||
</table>`:kt`
|
||
<table class="kuc-table-1-18-0__table">
|
||
<caption class="kuc-table-1-18-0__table__label" ?hidden="${!this.label}">
|
||
${this.label}
|
||
</caption>
|
||
<thead
|
||
class="kuc-table-1-18-0__table__header"
|
||
?hidden="${!this.headerVisible}"
|
||
>
|
||
${this._getTableHeaderTemplate()}
|
||
</thead>
|
||
<tbody class="kuc-table-1-18-0__table__body"></tbody>
|
||
</table>
|
||
`}updated(e){if(0!==this.columns.length)for(let e=0;e<this.data.length;e++)this._addRowToTable(e,this.data[e])}_getTableHeaderTemplate(){return kt`
|
||
<tr>
|
||
${this.columns.map(((e,t)=>this._getColumnHeaderTemplate(e,t)))}
|
||
</tr>
|
||
`}_getColumnHeaderTemplate(e,t){const n=Ao(t);return kt`
|
||
<th
|
||
class="kuc-table-1-18-0__table__header__cell"
|
||
?hidden="${!1===e.visible}"
|
||
style="width: ${n}; min-width: ${n}; max-width: ${n}"
|
||
>
|
||
<div class="kuc-table-1-18-0__table__header__cell-title">
|
||
${e.title?Bi(e.title):""}<!--
|
||
--><span
|
||
class="kuc-base-label-1-18-0__required-icon"
|
||
?hidden="${!e.requiredIcon}"
|
||
>*</span
|
||
>
|
||
</div>
|
||
</th>
|
||
`}_getActionsCellWhenRemoveRow(e){let t=null,n=e;for(;this.data.length>1;){const e=this._table.rows[n];if(e){t=e.cells[this.columns.length];break}n--}return t}_getDefaultDataRow(e){const t={};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(Array.isArray(e[n])){t[n]=[];continue}if("object"==typeof e[n]&&null!==e[n]){t[n]={};continue}t[n]=""}return t}_addRowToTable(e,t){var n;const i=this._tBody.insertRow(e);i.classList.add("kuc-table-1-18-0__table__body__row");for(let r=0;r<this.columns.length;r++){const o=Ao(r),a=i.insertCell(r),s=this.columns[r];a.classList.add("kuc-table-1-18-0__table__body__row__cell-data"),a.style.width=o,a.style.maxWidth=o,a.style.minWidth=o,a.addEventListener("change",(e=>{this._handleChangeCell(e,s.field)})),a.hidden=!(null===(n=s.visible)||void 0===n||n);const l=s.render?s.render(t[s.field],t,e):t[s.field];l&&l.nodeType?a.appendChild(l):a.innerText=l||""}this.actionButton&&this._addActionsCellToNewRow(i)}_handleChangeCell(e,t){e.stopPropagation();const n=this._deepCloneObject(this.data),i=e.currentTarget.parentElement.rowIndex-1,r=this.data[i];if(t in r){let n=e.target.value;"detail"in e&&(n=e.detail.value),r[t]=n}const o={type:"change-cell",rowIndex:i,data:this._deepCloneObject(this.data),oldData:n,field:t};this._dispatchChangeEvent(o)}_handleAddRow(e){const t=this._deepCloneObject(this.data),n=this._getDefaultDataRow(this.data[0]);this._addRowToTable(e,n),this.data.splice(e,0,n);const i={type:"add-row",rowIndex:e,data:this._deepCloneObject(this.data),oldData:t};this._dispatchChangeEvent(i),this._toggleRemoveRowButton()}_handleRemoveRow(e){if(1===this.data.length)return;const t=e-1,n=this._deepCloneObject(this.data);this._table.deleteRow(e),this.data.splice(t,1);const i={type:"remove-row",rowIndex:t,data:this._deepCloneObject(this.data),oldData:n};this._dispatchChangeEvent(i),this._toggleRemoveRowButton(),this._focusActionsButtonWhenRemoveRow(e)}_focusActionsButtonWhenRemoveRow(e){const t=this._getActionsCellWhenRemoveRow(e);t?this._focusRemoveRowButton(t):this._focusFirstAddRowButton()}_focusRemoveRowButton(e){e.querySelector(`.${To}`).focus()}_focusFirstAddRowButton(){const e=this._table.rows[1].cells[this.columns.length].querySelector(`.${Co}`);null==e||e.focus()}_toggleRemoveRowButton(){var e;const t=this._tBody.rows[0].lastChild.lastChild;if(1!==this.data.length){if(2===this.data.length){const n=null===(e=this._tBody.rows[1].lastChild)||void 0===e?void 0:e.lastChild;t.style.display=n.style.display="block"}}else t.style.display="none"}_getSvgDOM(e,t){const n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("fill","none"),n.setAttribute("width","18"),n.setAttribute("height","18"),n.setAttribute("viewBox","0 0 16 16"),n.setAttribute("aria-hidden","true");const i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("d",t),i.setAttribute("fill-rule","evenodd"),i.setAttribute("clip-rule","evenodd"),i.setAttribute("fill",e),n.appendChild(i),n}_addActionsCellToNewRow(e){const t={add:!0,remove:!0};if("object"==typeof this.actionButton&&(t.add=!Object.prototype.hasOwnProperty.call(this.actionButton,"add")||this.actionButton.add,t.remove=!Object.prototype.hasOwnProperty.call(this.actionButton,"remove")||this.actionButton.remove),!t.add&&!t.remove)return;const n=e.insertCell(this.columns.length);if(n.classList.add("kuc-table-1-18-0__table__body__row__action"),t.add){const t=this._getActionButtonDOM("add",e);n.appendChild(t)}if(t.remove){const t=this._getActionButtonDOM("remove",e);n.appendChild(t),1===this.data.length&&(t.style.display="none")}}_getActionButtonDOM(e,t){let n=To,i="Delete this row";const r="add"===e;r&&(n=Co,i="Add row");const o=r?"#3498db":"#b5b5b5",a=r?"M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM12.0355 8.49997V7.49997H8.50008V3.96454H7.50008V7.49997H3.96443V8.49997H7.50008V12.0356H8.50008V8.49997H12.0355Z":"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM12.0355 7.49997V8.49997L3.96443 8.49997V7.49997H12.0355Z",s=this._getSvgDOM(o,a),l=document.createElement("button");return l.classList.add(n),l.setAttribute("title",i),l.appendChild(s),l.addEventListener("click",(()=>{const e=this._getErrorValidateColumnsAndData();e?this.throwErrorAfterUpdateComplete(e):r?this._handleAddRow(t.rowIndex):this._handleRemoveRow(t.rowIndex)})),l}_getErrorValidateColumnsAndData(){return this._getErrorMessageWhenValidateColumns()||(fr(this.data)?"":Pn)}_deepCloneObject(e){return JSON.parse(JSON.stringify(e))}_dispatchChangeEvent(e){Zi(this,"change",e)}}So([on({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),So([on({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),So([on({type:String})],e.prototype,"label",void 0),So([on({type:Array})],e.prototype,"columns",void 0),So([on({type:Array})],e.prototype,"data",void 0),So([on()],e.prototype,"actionButton",void 0),So([on({type:Boolean})],e.prototype,"headerVisible",void 0),So([on({type:Boolean,attribute:"hidden",reflect:!0,converter:ji})],e.prototype,"visible",void 0),So([_n(".kuc-table-1-18-0__table")],e.prototype,"_table",void 0),So([_n(".kuc-table-1-18-0__table__body")],e.prototype,"_tBody",void 0),window.customElements.define("kuc-table-1-18-0",e),Xi('\n kuc-table-1-18-0,\n kuc-table-1-18-0 *,\n kuc-table-1-18-0:lang(en),\n kuc-table-1-18-0:lang(en) * {\n font-family: sans-serif;\n }\n kuc-table-1-18-0:lang(es),\n kuc-table-1-18-0:lang(es) * {\n font-family: sans-serif;\n }\n kuc-table-1-18-0:lang(ja),\n kuc-table-1-18-0:lang(ja) * {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo,\n sans-serif;\n }\n kuc-table-1-18-0:lang(zh),\n kuc-table-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", sans-serif;\n }\n kuc-table-1-18-0:lang(zh-TW),\n kuc-table-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC",sans-serif;\n }\n kuc-table-1-18-0 {\n font-size: 14px;\n color: #333333;\n display: block;\n }\n kuc-table-1-18-0[hidden] {\n display: none;\n }\n kuc-table-1-18-0 kuc-* {\n line-height: 1;\n }\n .kuc-table-1-18-0__table {\n border-collapse: collapse;\n }\n .kuc-table-1-18-0__table__header {\n border-width: 0px 1px;\n border-color: var(--kuc-table-header-background-color, #3498db);\n border-style: solid;\n border-right: 0;\n }\n .kuc-table-1-18-0__table__header[hidden] {\n display: none;\n }\n .kuc-table-1-18-0__table__header__cell {\n box-sizing: border-box;\n font-size: var(--kuc-table-header-font-size, 12px);\n font-weight: 400;\n background-color: var(--kuc-table-header-background-color, #3498db);\n color: var(--kuc-table-header-color, #ffffff);\n height: var(--kuc-table-header-height, 40px);\n padding: 4px 8px;\n text-align: left;\n white-space: normal;\n }\n .kuc-table-1-18-0__table__header__cell-title {\n overflow-wrap: break-word;\n display: flex;\n align-items: center;\n }\n .kuc-table-1-18-0__table__header__cell[hidden] {\n display: none;\n }\n .kuc-table-1-18-0__table__header__cell .kuc-base-label-1-18-0__required-icon {\n font-size: var(--kuc-table-header-font-size, 20px);\n align-self: flex-start;\n }\n .kuc-table-1-18-0__table__body__row__cell-data {\n box-sizing: border-box;\n overflow-wrap: break-word;\n white-space: normal;\n border-color: #e3e7e8;\n border-style: solid;\n border-width: 1px;\n padding: 8px 8px;\n vertical-align: top;\n }\n .kuc-table-1-18-0__table__body__row__cell-data[hidden] {\n display: none;\n }\n .kuc-table-1-18-0__table__body__row__action {\n display: flex;\n vertical-align: top;\n }\n .kuc-table-1-18-0__table__body__row__action button {\n display: flex;\n align-items: center;\n width: 24px;\n height: 24px;\n background: transparent;\n border: 1px solid transparent;\n padding: 2px;\n cursor: pointer;\n }\n .kuc-table-1-18-0__table__body__row__action button[hidden] {\n display: none;\n }\n .kuc-table-1-18-0__table__body__row__action-add {\n margin-left: 12px;\n }\n .kuc-table-1-18-0__table__body__row__action-remove {\n margin-left: 4px;\n }\n .kuc-table-1-18-0__table__body__row__action-add:focus,\n .kuc-table-1-18-0__table__body__row__action-remove:focus {\n border: 1px solid #3498db;\n outline: none;\n }\n .kuc-table-1-18-0__table__body__row__action-remove:hover path {\n fill: #e74c3c;\n }\n .kuc-table-1-18-0__table__body__row__action[hidden] {\n display: none;\n }\n .kuc-table-1-18-0__table caption {\n text-align: left;\n margin-bottom: 6px;\n overflow-wrap: anywhere;\n white-space: normal;\n }\n .kuc-table-1-18-0__table .kuc-table-1-18-0__table__label--no-column {\n overflow-wrap: break-word;\n }\n'),Io=e}})();const Oo=Io;var Do=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let $o;(()=>{if($o=window.customElements.get("kuc-tabs-1-18-0"),!$o){class e extends Ji{constructor(e){super(),this.className="",this.id="",this.value="",this.borderVisible=!0,this.visible=!0,this.items=[],this._selectedValue="",this._isClick=!1,this._GUID=Qi();const t=rr(e);Object.assign(this,t)}shouldUpdate(e){if(e.has("items")){if(!fr(this.items))return this.throwErrorAfterUpdateComplete(En),!1;for(let e=0;e<this.items.length;e++)if(void 0===this.items[e].value)return this.throwErrorAfterUpdateComplete(Cn),!1;if(!dr(this.items.map((e=>e.value))))return this.throwErrorAfterUpdateComplete(Sn),!1}return!(e.has("value")&&!ur(this.value)&&(this.throwErrorAfterUpdateComplete(In),1))}willUpdate(e){let t=this._getMatchedTabIndex();-1===t&&(t=this._getFirstVisibleTabIndex()),t>-1&&(this._selectedValue=this.items[t].value)}render(){return kt`
|
||
<div class="kuc-tabs-1-18-0__group">
|
||
<ul
|
||
class="kuc-tabs-1-18-0__group__tab-list"
|
||
role="tablist"
|
||
@blur="${this._handleBlur}"
|
||
>
|
||
${this.items.map(((e,t)=>this._getTabTemplate(e,t)))}
|
||
</ul>
|
||
<div
|
||
class="kuc-tabs-1-18-0__group__tab-panel"
|
||
?border-visible="${this.borderVisible}"
|
||
>
|
||
${this.items.map(((e,t)=>this._getTabContentTemplate(e,t)))}
|
||
</div>
|
||
</div>
|
||
`}_getTabTemplate(e,t){const n=e.value===this._selectedValue;return kt`<li
|
||
role="presentation"
|
||
class="kuc-tabs-1-18-0__group__tab-list__tab"
|
||
>
|
||
<button
|
||
role="tab"
|
||
?hidden="${!1===e.visible}"
|
||
aria-selected="${n}"
|
||
tabindex="${n&&!e.disabled?"0":"-1"}"
|
||
class="kuc-tabs-1-18-0__group__tab-list__tab__button ${this._isClick?"kuc-tabs-1-18-0__group__tab-list__tab__button--click":""}"
|
||
id="${this._GUID}-button-${t}"
|
||
aria-controls="${this._GUID}-tabpanel-${t}"
|
||
value="${e.value}"
|
||
@click="${this._handleClickTab}"
|
||
@mousedown="${this._handleMouseDown}"
|
||
@keydown="${this._handleKeyDownTab}"
|
||
?disabled="${e.disabled}"
|
||
>
|
||
${e.label?e.label:""}
|
||
</button>
|
||
</li>`}_getTabContentTemplate(e,t){const n=e.value===this._selectedValue;return kt`<div
|
||
class="kuc-tabs-1-18-0__group__tab-panel__content"
|
||
role="tabpanel"
|
||
id="${this._GUID}-tabpanel-${t}"
|
||
aria-labelledby="${this._GUID}-button-${t}"
|
||
?hidden="${!n||!1===e.visible}"
|
||
@change="${this._handleChangeEvent}"
|
||
>
|
||
${e.content?Bi(e.content):""}
|
||
</div>`}_handleMouseDown(e){this._isClick=!0}_handleClickTab(e){const t=e.target;t.blur();const n=this._getCurrentTabIndex(t.getAttribute("value"));if(this._tabButtons[n].focus(),this.value===t.value)return;const i=this._generateEventDetail(t.value);Zi(this,"change",i)}_handleChangeEvent(e){e.stopPropagation()}_handleBlur(e){this._isClick=!1}_handleKeyDownTab(e){this._isClick=!1;let t=!1;switch(e.key){case"Left":case"ArrowLeft":t=!0,this._moveToAdjacentTab(e.target,"prev");break;case"Right":case"ArrowRight":t=!0,this._moveToAdjacentTab(e.target,"next");break;case"Home":t=!0,this._moveToLastFirstTab(e.target,"first");break;case"End":t=!0,this._moveToLastFirstTab(e.target,"last")}t&&(e.stopPropagation(),e.preventDefault())}_getCurrentTabIndex(e){let t=-1;for(let n=0;n<this.items.length;n++)if(this.items[n].value===e){t=n;break}return-1===t&&(t=this._getFirstVisibleTabIndex()),t}_getFirstVisibleTabIndex(){return this.items.findIndex((e=>!1!==e.visible))}_getMatchedTabIndex(){return this.items.findIndex((e=>!1!==e.visible&&e.value===this.value))}_moveToLastFirstTab(e,t){const n=this._getCurrentTabIndex(e.getAttribute("value")),i="last"===t?-1:1;let r="last"===t?this.items.length-1:0;for(;r!==n;){if(!1!==this.items[r].visible&&!0!==this.items[r].disabled){e.blur(),Zi(this,"change",this._generateEventDetail(this._tabButtons[r].getAttribute("value"))),this._tabButtons[this._getCurrentTabIndex(this.value)].focus();break}r+=i}}_moveToAdjacentTab(e,t){const n=this._getCurrentTabIndex(e.getAttribute("value")),i="next"===t?1:-1;let r=n+i;for(;r!==n&&(r===this.items.length?r=0:-1===r&&(r=this.items.length-1),r!==n);){if(!1!==this.items[r].visible&&!0!==this.items[r].disabled){e.blur(),Zi(this,"change",this._generateEventDetail(this._tabButtons[r].getAttribute("value"))),this._tabButtons[this._getCurrentTabIndex(this.value)].focus();break}r+=i}}_generateEventDetail(e){const t=this.value;return this.value=e,{oldValue:t,value:e}}}Do([on({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),Do([on({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),Do([on({type:String})],e.prototype,"value",void 0),Do([on({type:Boolean})],e.prototype,"borderVisible",void 0),Do([on({type:Boolean,attribute:"hidden",reflect:!0,converter:ji})],e.prototype,"visible",void 0),Do([on({type:Array})],e.prototype,"items",void 0),Do([gn(".kuc-tabs-1-18-0__group__tab-list__tab__button")],e.prototype,"_tabButtons",void 0),Do([cn()],e.prototype,"_isClick",void 0),window.customElements.define("kuc-tabs-1-18-0",e),Xi('\n kuc-tabs-1-18-0,\n kuc-tabs-1-18-0 *,\n kuc-tabs-1-18-0:lang(en),\n kuc-tabs-1-18-0:lang(en) * {\n font-family: sans-serif;\n }\n kuc-tabs-1-18-0:lang(es),\n kuc-tabs-1-18-0:lang(es) * {\n font-family: sans-serif;\n }\n kuc-tabs-1-18-0:lang(ja),\n kuc-tabs-1-18-0:lang(ja) * {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo,\n sans-serif;\n }\n kuc-tabs-1-18-0:lang(zh),\n kuc-tabs-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", sans-serif;\n }\n kuc-tabs-1-18-0:lang(zh-TW),\n kuc-tabs-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC",sans-serif;\n }\n kuc-tabs-1-18-0 {\n display: inline-block;\n }\n kuc-tabs-1-18-0[hidden] {\n display: none;\n }\n .kuc-tabs-1-18-0__group__tab-list {\n display: flex;\n flex: 1;\n padding: 16px 16px 0 16px;\n margin: 0;\n list-style: none;\n }\n .kuc-tabs-1-18-0__group__tab-list__tab {\n min-height: var(--kuc-tabs-tab-height, 48px);\n height: var(--kuc-tabs-tab-height, 48px);\n white-space: normal;\n }\n .kuc-tabs-1-18-0__group__tab-list__tab__button:disabled {\n color: GrayText;\n background-color: #d4d7d7;\n cursor: not-allowed;\n }\n .kuc-tabs-1-18-0__group__tab-list__tab__button {\n height: 100%;\n margin: 0;\n padding: 0 24px;\n display: grid;\n align-items: center;\n align-content: center;\n font-size: var(--kuc-tabs-tab-font-size, 14px);\n background-color: var(--kuc-tabs-tab-background-color, #d4d7d7);\n color: var(--kuc-tabs-tab-color, #333333);\n border-style: none;\n border-top: 1px solid #c7cbcb;\n border-left: 1px solid #c7cbcb;\n box-shadow: 1px 0 3px #c7cbcb inset;\n box-sizing: border-box;\n cursor: pointer;\n line-height: 1.5;\n width: var(--kuc-tabs-tab-width, auto);\n min-width: var(--kuc-tabs-tab-width, 200px);\n word-wrap: break-word;\n }\n .kuc-tabs-1-18-0__group__tab-list__tab__button[hidden] {\n display: none;\n }\n .kuc-tabs-1-18-0__group__tab-list__tab__button:last-of-type {\n border-right: 1px solid #c7cbcb;\n }\n\n .kuc-tabs-1-18-0__group__tab-list__tab__button:focus {\n outline: none;\n border: 1px solid #3498db;\n }\n .kuc-tabs-1-18-0__group__tab-list__tab__button--click:focus{\n border: none;\n border-top: 1px solid #c7cbcb;\n border-left: 1px solid #c7cbcb;\n border-right: 1px solid #c7cbcb;\n }\n .kuc-tabs-1-18-0__group__tab-list__tab__button[aria-selected="true"] {\n background-color: var(--kuc-tabs-tab-background-color-selected, #ffffff);\n color: var(--kuc-tabs-tab-color-selected, #333333);\n box-shadow: none;\n }\n .kuc-tabs-1-18-0__group__tab-panel {\n display:block;\n padding: 0;\n border-top: 0;\n }\n .kuc-tabs-1-18-0__group__tab-panel[border-visible] {\n box-shadow: 0 0 8px 2px rgb(0 0 0 / 10%);\n }\n .kuc-tabs-1-18-0__group__tab-panel__content[hidden]{\n display:none;\n }\n'),$o=e}})();const No=$o;var Mo=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Lo;(()=>{if(Lo=window.customElements.get("kuc-text-1-18-0"),!Lo){class e extends Ji{constructor(e){super(),this.className="",this.error="",this.id="",this.label="",this.placeholder="",this.prefix="",this.suffix="",this.textAlign="left",this.value="",this.disabled=!1,this.requiredIcon=!1,this.visible=!0,this._GUID=Qi();const t=rr(e);Object.assign(this,t)}_handleFocusInput(e){const t={value:this.value};Zi(this,"focus",t)}_handleChangeInput(e){e.stopPropagation();const t=e.target,n={value:"",oldValue:this.value};this.value=t.value,n.value=this.value,Zi(this,"change",n)}_handleInputText(e){e.stopPropagation();const t={value:e.target.value,data:e.data};Zi(this,"input",t)}render(){return kt`
|
||
<div class="kuc-text-1-18-0__group">
|
||
<label
|
||
class="kuc-text-1-18-0__group__label"
|
||
for="${this._GUID}-label"
|
||
?hidden="${!this.label}"
|
||
>
|
||
<kuc-base-label-1-18-0
|
||
.text="${this.label}"
|
||
.requiredIcon="${this.requiredIcon}"
|
||
></kuc-base-label-1-18-0>
|
||
</label>
|
||
<div class="kuc-text-1-18-0__group__input-form">
|
||
<div class="kuc-text-1-18-0__group__input-form__prefix-outer">
|
||
<span
|
||
class="kuc-text-1-18-0__group__input-form__prefix-outer__prefix"
|
||
?hidden="${!this.prefix}"
|
||
>${this.prefix}</span
|
||
>
|
||
</div>
|
||
<div class="kuc-text-1-18-0__group__input-form__input-outer">
|
||
<input
|
||
class="kuc-text-1-18-0__group__input-form__input-outer__input"
|
||
id="${this._GUID}-label"
|
||
placeholder="${this.placeholder}"
|
||
textAlign="${this.textAlign}"
|
||
type="text"
|
||
.value="${this.value}"
|
||
aria-required="${this.requiredIcon}"
|
||
aria-invalid="${""!==this.error}"
|
||
aria-describedby="${this._GUID}-error"
|
||
@focus="${this._handleFocusInput}"
|
||
@change="${this._handleChangeInput}"
|
||
@input="${this._handleInputText}"
|
||
?disabled="${this.disabled}"
|
||
/>
|
||
</div>
|
||
<div class="kuc-text-1-18-0__group__input-form__suffix-outer">
|
||
<span
|
||
class="kuc-text-1-18-0__group__input-form__suffix-outer__suffix"
|
||
?hidden="${!this.suffix}"
|
||
>${this.suffix}</span
|
||
>
|
||
</div>
|
||
</div>
|
||
<kuc-base-error-1-18-0
|
||
.text="${this.error}"
|
||
.guid="${this._GUID}"
|
||
?hidden="${!this.error}"
|
||
></kuc-base-error-1-18-0>
|
||
</div>
|
||
`}}Mo([on({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),Mo([on({type:String})],e.prototype,"error",void 0),Mo([on({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),Mo([on({type:String})],e.prototype,"label",void 0),Mo([on({type:String})],e.prototype,"placeholder",void 0),Mo([on({type:String})],e.prototype,"prefix",void 0),Mo([on({type:String})],e.prototype,"suffix",void 0),Mo([on({type:String})],e.prototype,"textAlign",void 0),Mo([on({type:String})],e.prototype,"value",void 0),Mo([on({type:Boolean})],e.prototype,"disabled",void 0),Mo([on({type:Boolean})],e.prototype,"requiredIcon",void 0),Mo([on({type:Boolean,attribute:"hidden",reflect:!0,converter:ji})],e.prototype,"visible",void 0),window.customElements.define("kuc-text-1-18-0",e),Xi('\nkuc-text-1-18-0,\nkuc-text-1-18-0 *,\nkuc-text-1-18-0:lang(en),\nkuc-text-1-18-0:lang(en) * {\n font-family: sans-serif;\n}\nkuc-text-1-18-0:lang(es),\nkuc-text-1-18-0:lang(es) * {\n font-family: sans-serif;\n}\nkuc-text-1-18-0:lang(ja),\nkuc-text-1-18-0:lang(ja) * {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo,\n sans-serif;\n}\nkuc-text-1-18-0:lang(zh),\nkuc-text-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", sans-serif;\n}\nkuc-text-1-18-0:lang(zh-TW),\nkuc-text-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC",sans-serif;\n}\nkuc-text-1-18-0 {\n font-size: 14px;\n color: #333333;\n display: inline-table;\n vertical-align: top;\n min-width: var(--kuc-text-input-width, 177px);\n width: var(--kuc-text-input-width, 177px);\n line-height: 1.5;\n}\nkuc-text-1-18-0[hidden] {\n display: none;\n}\n.kuc-text-1-18-0__group {\n border: none;\n padding: 0px;\n height: auto;\n display: inline-block;\n vertical-align: top;\n width: 100%;\n margin: 0px;\n}\n.kuc-text-1-18-0__group__label {\n display: inline-block;\n padding: 4px 0px 8px 0px;\n white-space: nowrap;\n}\n.kuc-text-1-18-0__group__label[hidden] {\n display: none;\n}\n.kuc-text-1-18-0__group__input-form {\n display: flex;\n align-items: center;\n width: 100%;\n}\n.kuc-text-1-18-0__group__input-form__prefix-outer__prefix {\n padding-right: 4px;\n white-space: nowrap;\n}\n.kuc-text-1-18-0__group__input-form__input-outer {\n display: flex;\n min-width: var(--kuc-text-input-width, 26px);\n width: var(--kuc-text-input-width, 100%);\n}\ninput[type="text"].kuc-text-1-18-0__group__input-form__input-outer__input {\n width: var(--kuc-text-input-width, 100%);\n height: var(--kuc-text-input-height, 40px);\n font-size: var(--kuc-text-input-font-size, 14px);\n color: var(--kuc-text-input-color, #000000);\n padding: 0 8px;\n border: 1px solid #e3e7e8;\n box-sizing: border-box;\n box-shadow: 2px 2px 4px #f5f5f5 inset, -2px -2px 4px #f5f5f5 inset;\n}\n.kuc-text-1-18-0__group__input-form__input-outer__input[textAlign="left"] {\n text-align: left;\n}\n.kuc-text-1-18-0__group__input-form__input-outer__input[textAlign="right"] {\n text-align: right;\n}\ninput[type=text].kuc-text-1-18-0__group__input-form__input-outer__input:focus {\n outline: none;\n border: 1px solid #3498db;\n}\ninput[type=text].kuc-text-1-18-0__group__input-form__input-outer__input:disabled {\n color: #888888;\n background-color: #d4d7d7;\n box-shadow: none;\n cursor: not-allowed;\n}\n.kuc-text-1-18-0__group__input-form__suffix-outer__suffix {\n padding-left: 4px;\n white-space: nowrap;\n}\n'),Lo=e}})();const Po=Lo;var Ro=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let jo;(()=>{if(jo=window.customElements.get("kuc-textarea-1-18-0"),jo)return;class e extends Ji{constructor(e){super(),this.className="",this.error="",this.id="",this.label="",this.placeholder="",this.value="",this.disabled=!1,this.requiredIcon=!1,this.visible=!0,this._onResize=!1,this._GUID=Qi();const t=rr(e);Object.assign(this,t)}_handleFocusTextarea(e){const t={value:this.value};Zi(this,"focus",t)}_handleChangeTextarea(e){e.stopPropagation();const t=e.target,n={value:"",oldValue:this.value};this.value=t.value,n.value=this.value,Zi(this,"change",n)}_handleInputTextArea(e){e.stopPropagation();const t={value:e.target.value,data:e.data};Zi(this,"input",t)}_handleMouseDownResize(){this._onResize=!0}_handleMouseUpDocument(){this._onResize=!1}_handleMouseMoveDocument(e){if(!this._onResize)return;const t=this._textarea.getBoundingClientRect();let n=e.clientX-t.left,i=e.clientY-t.top;n<16&&(n=16),i<16&&(i=16),this._container.style.width=n+"px",this._textarea.style.height=i+"px"}_getResizerButtonSvgTemplate(){return xt`
|
||
<svg height="16" width="16">
|
||
<g fill="none" stroke="#b6b6b6" stroke-width="2">
|
||
<line x1="14" x2="16" y1="15" y2="15" />
|
||
<line x1="14" x2="16" y1="11" y2="11" />
|
||
<line x1="14" x2="16" y1="7" y2="7" />
|
||
<line x1="10" x2="12" y1="15" y2="15" />
|
||
<line x1="6" x2="8" y1="15" y2="15" />
|
||
<line x1="10" x2="12" y1="11" y2="11" />
|
||
</g>
|
||
</svg>
|
||
`}firstUpdated(){document.addEventListener("mousemove",(e=>this._handleMouseMoveDocument(e))),document.addEventListener("mouseup",(e=>this._handleMouseUpDocument()))}render(){return kt`
|
||
<div class="kuc-textarea-1-18-0__group">
|
||
<label
|
||
class="kuc-textarea-1-18-0__group__label"
|
||
?hidden="${!this.label}"
|
||
for="${this._GUID}-label"
|
||
>
|
||
<kuc-base-label-1-18-0
|
||
.text="${this.label}"
|
||
.requiredIcon="${this.requiredIcon}"
|
||
></kuc-base-label-1-18-0>
|
||
</label>
|
||
<div class="kuc-textarea-1-18-0__group__container">
|
||
<textarea
|
||
id="${this._GUID}-label"
|
||
class="kuc-textarea-1-18-0__group__textarea"
|
||
placeholder="${this.placeholder}"
|
||
.value="${this.value}"
|
||
aria-describedby="${this._GUID}-error"
|
||
aria-required="${this.requiredIcon}"
|
||
aria-invalid="${""!==this.error}"
|
||
@change="${this._handleChangeTextarea}"
|
||
@focus="${this._handleFocusTextarea}"
|
||
@input="${this._handleInputTextArea}"
|
||
?disabled="${this.disabled}"
|
||
>
|
||
</textarea>
|
||
<div
|
||
class="kuc-textarea-1-18-0__group__resizer"
|
||
@mousedown="${this._handleMouseDownResize}"
|
||
?hidden="${this.disabled}"
|
||
>
|
||
${this._getResizerButtonSvgTemplate()}
|
||
</div>
|
||
</div>
|
||
<kuc-base-error-1-18-0
|
||
.text="${this.error}"
|
||
.guid="${this._GUID}"
|
||
?hidden="${!this.error}"
|
||
></kuc-base-error-1-18-0>
|
||
</div>
|
||
`}}Ro([on({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),Ro([on({type:String})],e.prototype,"error",void 0),Ro([on({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),Ro([on({type:String})],e.prototype,"label",void 0),Ro([on({type:String})],e.prototype,"placeholder",void 0),Ro([on({type:String})],e.prototype,"value",void 0),Ro([on({type:Boolean})],e.prototype,"disabled",void 0),Ro([on({type:Boolean})],e.prototype,"requiredIcon",void 0),Ro([on({type:Boolean,attribute:"hidden",reflect:!0,converter:ji})],e.prototype,"visible",void 0),Ro([_n(".kuc-textarea-1-18-0__group__container")],e.prototype,"_container",void 0),Ro([_n(".kuc-textarea-1-18-0__group__textarea")],e.prototype,"_textarea",void 0),window.customElements.define("kuc-textarea-1-18-0",e),Xi('\n kuc-textarea-1-18-0,\n kuc-textarea-1-18-0 *,\n kuc-textarea-1-18-0:lang(en),\n kuc-textarea-1-18-0:lang(en) * {\n font-family: sans-serif;\n }\n kuc-textarea-1-18-0:lang(es),\n kuc-textarea-1-18-0:lang(es) * {\n font-family: sans-serif;\n }\n kuc-textarea-1-18-0:lang(ja),\n kuc-textarea-1-18-0:lang(ja) * {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo,\n sans-serif;\n }\n kuc-textarea-1-18-0:lang(zh),\n kuc-textarea-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", sans-serif;\n }\n kuc-textarea-1-18-0:lang(zh-TW),\n kuc-textarea-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC",sans-serif;\n }\n kuc-textarea-1-18-0 {\n font-size: 14px;\n color: var(--kuc-textarea-input-color, #333333);\n display: inline-table;\n vertical-align: top;\n width: var(--kuc-textarea-input-width, 299px);\n height: var(--kuc-textarea-input-height, 125px);\n line-height: 1.5;\n }\n kuc-textarea-1-18-0[hidden] {\n display: none;\n }\n .kuc-textarea-1-18-0__group {\n border: none;\n padding: 0px;\n height: auto;\n display: inline-block;\n vertical-align: top;\n width: 100%;\n margin: 0px;\n white-space: normal;\n }\n .kuc-textarea-1-18-0__group__label {\n white-space: nowrap;\n display: inline-block;\n padding: 4px 0px 8px 0px;\n }\n .kuc-textarea-1-18-0__group__label[hidden] {\n display: none;\n }\n .kuc-textarea-1-18-0__group__container {\n position: relative;\n display: inline-table;\n width: var(--kuc-textarea-input-width, 100%);\n min-width: var(--kuc-textarea-input-width, 100%);\n }\n textarea.kuc-textarea-1-18-0__group__textarea {\n display: block;\n border: 1px solid #e3e7e8;\n box-sizing: border-box;\n font-size: var(--kuc-textarea-input-font-size, 14px);\n box-shadow: 2px 2px 4px #f5f5f5 inset, -2px -2px 4px #f5f5f5 inset;\n min-width: var(--kuc-textarea-input-width, 299px);\n min-height: var(--kuc-textarea-input-height, 125px);\n width: var(--kuc-textarea-input-width, 299px);\n height: var(--kuc-textarea-input-height, 125px);\n padding: 8px;\n resize: none;\n width: 100%;\n background-color: #ffffff;\n color: var(--kuc-textarea-input-color, #333333);\n }\n .kuc-textarea-1-18-0__group__textarea:focus {\n outline: none;\n border-color: #3498db;\n box-shadow: 2px 2px 4px #f5f5f5 inset, -2px -2px 4px #f5f5f5 inset;\n border: 1px solid #3498db;\n background-color: #ffffff;\n color: var(--kuc-textarea-input-color, #333333);\n }\n .kuc-textarea-1-18-0__group__textarea:disabled {\n color: #888888;\n background-color: #d4d7d7;\n box-shadow: none;\n cursor: not-allowed;\n resize: none;\n }\n .kuc-textarea-1-18-0__group__resizer {\n position: absolute;\n width: 16px;\n height: 16px;\n cursor: se-resize;\n float: right;\n margin: -16px 0px;\n right: 0px;\n }\n'),jo=e})();const Ho=jo;var Bo=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Vo;(()=>{if(Vo=window.customElements.get("kuc-time-picker-1-18-0"),!Vo){class e extends Ji{constructor(e){super(),this.className="",this.error="",this.id="",this.label="",this.language="auto",this.max="",this.min="",this.value="",this.disabled=!1,this.hour12=!1,this.requiredIcon=!1,this.visible=!0,this.timeStep=30,this._errorText="",this._inputValue="",this._errorInvalid="",this._inputMax="",this._inputMin="",this._inputTimeStep=30,this._valueConverted="",this._GUID=Qi();const t=rr(e);Object.assign(this,t)}shouldUpdate(e){if(e.has("max")||e.has("min")){let e=this._inputMin,t=this._inputMax;if(void 0===this.max||""===this.max)t=si;else{if(!ar(this.max))return this.throwErrorAfterUpdateComplete(ui),!1;t=this.max=Ui(this.max)}if(void 0===this.min||""===this.min)e=ai;else{if(!ar(this.min))return this.throwErrorAfterUpdateComplete(ci),!1;e=this.min=Ui(this.min)}if(yi(t,e)<0)return this.throwErrorAfterUpdateComplete(ii),!1;this._inputMin=e,this._inputMax=t}if(e.has("timeStep")){if(!pr(this.timeStep))return this.throwErrorAfterUpdateComplete(oi),!1;if(!sr(this.timeStep,this._inputMax,this._inputMin))return this.throwErrorAfterUpdateComplete(di),!1;this._inputTimeStep=this.timeStep}return!(void 0!==this.value&&""!==this.value&&(ar(this.value)?(this._valueConverted=Ui(this.value),e.has("value")&&(yi(this._valueConverted,this._inputMin)<0||yi(this._inputMax,this._valueConverted)<0)&&(this.throwErrorAfterUpdateComplete(ri),1)):(this.throwErrorAfterUpdateComplete(li),1)))}update(e){e.has("value")&&(void 0===this.value?""===this._errorInvalid&&(this._inputValue=""):(this.value=""===this.value?this.value:this._valueConverted,this._inputValue=this.value)),(e.has("max")||e.has("min")||e.has("value"))&&void 0!==this.value&&(this._errorInvalid=""),this._errorText=this._errorInvalid||this.error,super.update(e)}render(){return kt`
|
||
<fieldset
|
||
class="kuc-time-picker-1-18-0__group"
|
||
aria-describedby="${this._GUID}-error"
|
||
>
|
||
<legend
|
||
class="kuc-time-picker-1-18-0__group__label"
|
||
?hidden="${!this.label}"
|
||
>
|
||
<kuc-base-label-1-18-0
|
||
.text="${this.label}"
|
||
.requiredIcon="${this.requiredIcon}"
|
||
></kuc-base-label-1-18-0>
|
||
</legend>
|
||
<kuc-base-time-1-18-0
|
||
class="kuc-time-picker-1-18-0__group__input"
|
||
.value="${this._inputValue}"
|
||
.hour12="${this.hour12}"
|
||
.disabled="${this.disabled}"
|
||
.timeStep="${this._inputTimeStep}"
|
||
.min="${this._inputMin}"
|
||
.max="${this._inputMax}"
|
||
.language="${this._getLanguage()}"
|
||
@kuc:base-time-change="${this._handleTimeChange}"
|
||
>
|
||
</kuc-base-time-1-18-0>
|
||
<kuc-base-error-1-18-0
|
||
.text="${this._errorText}"
|
||
.guid="${this._GUID}"
|
||
?hidden="${!this._errorText}"
|
||
></kuc-base-error-1-18-0>
|
||
</fieldset>
|
||
`}_handleTimeChange(e){e.preventDefault(),e.stopPropagation();const t={value:e.detail.value,oldValue:this.value};e.detail.error?(t.value=void 0,this.value=void 0,this._errorInvalid=e.detail.error,this.error=""):(this.value=e.detail.value,this._errorInvalid=""),this._inputValue=e.detail.value,Zi(this,"change",t)}_getLanguage(){const e=["en","ja","zh","zh-TW","es"];return-1!==e.indexOf(this.language)?this.language:-1!==e.indexOf(document.documentElement.lang)?document.documentElement.lang:"en"}}Bo([on({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),Bo([on({type:String})],e.prototype,"error",void 0),Bo([on({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),Bo([on({type:String})],e.prototype,"label",void 0),Bo([on({type:String,attribute:"lang",reflect:!0,converter:Hi})],e.prototype,"language",void 0),Bo([on({type:String})],e.prototype,"max",void 0),Bo([on({type:String})],e.prototype,"min",void 0),Bo([on({type:String})],e.prototype,"value",void 0),Bo([on({type:Boolean})],e.prototype,"disabled",void 0),Bo([on({type:Boolean})],e.prototype,"hour12",void 0),Bo([on({type:Boolean})],e.prototype,"requiredIcon",void 0),Bo([on({type:Boolean,attribute:"hidden",reflect:!0,converter:ji})],e.prototype,"visible",void 0),Bo([on({type:Number})],e.prototype,"timeStep",void 0),window.customElements.define("kuc-time-picker-1-18-0",e),Xi('\nkuc-time-picker-1-18-0,\nkuc-time-picker-1-18-0 *,\nkuc-time-picker-1-18-0:lang(en),\nkuc-time-picker-1-18-0:lang(en) * {\n font-family: sans-serif;\n}\nkuc-time-picker-1-18-0:lang(ja),\nkuc-time-picker-1-18-0:lang(ja) * {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo,\n sans-serif;\n}\nkuc-time-picker-1-18-0:lang(zh),\nkuc-time-picker-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", sans-serif;\n}\nkuc-time-picker-1-18-0:lang(zh-TW),\nkuc-time-picker-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC"\n}\nkuc-time-picker-1-18-0:lang(es),\nkuc-time-picker-1-18-0:lang(es) * {\n font-family: sans-serif;\n}\nkuc-time-picker-1-18-0 {\n font-size: 14px;\n color: var(--kuc-time-picker-input-color, #333333);\n display: inline-table;\n max-width: var(--kuc-time-picker-input-width, 85px);\n width: var(--kuc-time-picker-input-width, 85px);\n vertical-align: top;\n line-height: 1.5;\n}\n.kuc-time-picker-1-18-0__group__input {\n position: relative;\n}\nkuc-time-picker-1-18-0[hidden] {\n display: none;\n}\n.kuc-time-picker-1-18-0__group {\n display: flex;\n flex-direction: column;\n border: none;\n padding: 0px;\n height: auto;\n margin: 0px;\n}\n\n.kuc-time-picker-1-18-0__group kuc-base-time-1-18-0 {\n display: inline-flex;\n flex-direction: column;\n}\n\n.kuc-time-picker-1-18-0__group .kuc-base-time-1-18-0__group {\n max-width: var(--kuc-time-picker-input-width, 85px);\n width: var(--kuc-time-picker-input-width, 85px);\n font-size: var(--kuc-time-picker-input-font-size, 14px);\n height: var(--kuc-time-picker-input-height, 40px);\n color: var(--kuc-time-picker-input-color, #333333);\n}\n.kuc-time-picker-1-18-0__group .kuc-base-time-1-18-0__group input[type=text].kuc-base-time-1-18-0__group__hours,\n.kuc-time-picker-1-18-0__group .kuc-base-time-1-18-0__group input[type=text].kuc-base-time-1-18-0__group__minutes,\n.kuc-time-picker-1-18-0__group .kuc-base-time-1-18-0__group input.kuc-base-time-1-18-0__group__suffix,\n.kuc-time-picker-1-18-0__group .kuc-base-time-1-18-0__group--focus {\n color: var(--kuc-time-picker-input-color, #333333);\n}\n.kuc-time-picker-1-18-0__group__label {\n padding: 4px 0px 8px 0px;\n display: inline-block;\n white-space: nowrap;\n}\n.kuc-time-picker-1-18-0__group__label[hidden] {\n display: none;\n}\n'),Vo=e}})();const Uo=Vo;var Fo=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let zo;(()=>{if(zo=window.customElements.get("kuc-tooltip-1-18-0"),!zo){class e extends Ji{constructor(e){super(),this.className="",this.id="",this.placement="top",this.title="",this.container="",this.describeChild=!1,this._container="",this._GUID=Qi();const t=rr(e);Object.assign(this,t),this._globalEscapeBound=this._globalEscape.bind(this)}update(e){e.has("container")&&(this._container=Bi(this.container)),super.update(e)}render(){return kt`
|
||
<div
|
||
class="kuc-tooltip-1-18-0__group kuc-tooltip-1-18-0__group--${this._getPlacement()}"
|
||
>
|
||
<div
|
||
class="kuc-tooltip-1-18-0__group__container"
|
||
@focusin="${this._handleFocusinContainer}"
|
||
@focusout="${this._handleFocusoutContainer}"
|
||
@mouseenter="${this._handleMouseEnterContainer}"
|
||
@mouseleave="${this._handleMouseLeaveContainer}"
|
||
@touchstart="${this._handleTouchStartContainer}"
|
||
>
|
||
${this._container}
|
||
</div>
|
||
${this._getTitleTemplate()}
|
||
</div>
|
||
`}updated(){this._initializeFirstChildElement(),this.describeChild?this._setChildTitleAttribute():this._setChildAriaLabelAttribute()}_handleMouseEnterContainer(){this._openTooltip()}_handleTouchStartContainer(){this._openTooltip()}_handleMouseLeaveContainer(e){const t=e.relatedTarget;this._titleWrapper&&this._titleWrapper.contains(t)||this._closeTooltip()}_initializeFirstChildElement(){if("string"!=typeof this._container){const e=this._groupContainerEL.firstElementChild;e&&!e.getAttribute("aria-describedby")&&(this._firstChildEl=e)}}_setChildTitleAttribute(){this._firstChildEl&&(this._firstChildEl.setAttribute("title",this.title),this._firstChildEl.removeAttribute("aria-label"))}_setChildAriaLabelAttribute(){this._firstChildEl&&(this._firstChildEl.setAttribute("aria-label",this.title),this._firstChildEl.removeAttribute("title"))}_getTitleTemplate(){return this.title?kt`
|
||
<div
|
||
id="${this._GUID}-title"
|
||
class="kuc-tooltip-1-18-0__group__title kuc-tooltip-1-18-0__group__title--hidden"
|
||
role="tooltip"
|
||
@mouseleave="${this._handleMouseLeaveTitle}"
|
||
>
|
||
<div class="kuc-tooltip-1-18-0__group__title__wrapper">
|
||
<div class="kuc-tooltip-1-18-0__group__title__wrapper__arrow"></div>
|
||
<div class="kuc-tooltip-1-18-0__group__title__wrapper__text">
|
||
${this.title}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
`:kt``}_handleMouseLeaveTitle(e){const t=e.relatedTarget;this._groupContainerEL.contains(t)||this._closeTooltip()}_handleFocusinContainer(){this._openTooltip()}_handleFocusoutContainer(){this._closeTooltip()}_openTooltip(){this._updateChildElementAttributes(!0),this._showTooltip(),this._attachGlobalListener()}_closeTooltip(){this._updateChildElementAttributes(!1),this._hideTooltip(),this._removeGlobalListener()}_updateChildElementAttributes(e){if(this._firstChildEl&&this.describeChild){if(e)return this._firstChildEl.removeAttribute("title"),void this._firstChildEl.setAttribute("aria-describedby",`${this._GUID}-title`);this._firstChildEl.removeAttribute("aria-describedby"),this._firstChildEl.setAttribute("title",this.title)}}_showTooltip(){0!==this._tooltips.length&&this._tooltips.forEach((e=>{e.id===`${this._GUID}-title`&&e.classList.remove("kuc-tooltip-1-18-0__group__title--hidden")}))}_hideTooltip(){0!==this._tooltips.length&&this._tooltips.forEach((e=>{e.id===`${this._GUID}-title`&&e.classList.add("kuc-tooltip-1-18-0__group__title--hidden")}))}_attachGlobalListener(){document.addEventListener("keydown",this._globalEscapeBound)}_removeGlobalListener(){document.removeEventListener("keydown",this._globalEscapeBound)}_globalEscape(e){"Escape"!==e.key&&"Esc"!==e.key||this._closeTooltip()}_getPlacement(){return["top","bottom","left","right"].includes(this.placement)?this.placement:"top"}}Fo([on({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),Fo([on({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),Fo([on({type:String})],e.prototype,"placement",void 0),Fo([on({type:String})],e.prototype,"title",void 0),Fo([on()],e.prototype,"container",void 0),Fo([on({type:Boolean})],e.prototype,"describeChild",void 0),Fo([_n(".kuc-tooltip-1-18-0__group__container")],e.prototype,"_groupContainerEL",void 0),Fo([_n(".kuc-tooltip-1-18-0__group__title__wrapper")],e.prototype,"_titleWrapper",void 0),Fo([gn(".kuc-tooltip-1-18-0__group__title")],e.prototype,"_tooltips",void 0),window.customElements.define("kuc-tooltip-1-18-0",e),Xi('\n kuc-tooltip-1-18-0,\n kuc-tooltip-1-18-0 *,\n kuc-tooltip-1-18-0:lang(en),\n kuc-tooltip-1-18-0:lang(en) * {\n font-family: sans-serif;\n }\n kuc-tooltip-1-18-0:lang(es),\n kuc-tooltip-1-18-0:lang(es) * {\n font-family: sans-serif;\n }\n kuc-tooltip-1-18-0:lang(ja),\n kuc-tooltip-1-18-0:lang(ja) * {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo,\n sans-serif;\n }\n kuc-tooltip-1-18-0:lang(zh),\n kuc-tooltip-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", sans-serif;\n }\n kuc-tooltip-1-18-0:lang(zh-TW),\n kuc-tooltip-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC",sans-serif;\n }\n .kuc-tooltip-1-18-0__group__title--hidden {\n display: none;\n }\n .kuc-tooltip-1-18-0__group {\n position: relative;\n display: inline-block;\n }\n .kuc-tooltip-1-18-0__group::after {\n position: absolute;\n right: -20%;\n top: 100%;\n left: -20%;\n display: block;\n height: calc(0.5em * 2);\n }\n .kuc-tooltip-1-18-0__group__title .kuc-tooltip-1-18-0__group__title__wrapper__text {\n max-width: var(--kuc-tooltip-width, 250px);\n width: var(--kuc-tooltip-width, auto);\n min-height: var(--kuc-tooltip-height, 32px);;\n height: var(--kuc-tooltip-height, auto);\n padding: 6px 8px;\n color: var(--kuc-tooltip-color, #ffffff);\n text-align: start;\n text-decoration: none;\n word-wrap: break-word;\n overflow: auto;\n white-space: normal;\n background-color: var(--kuc-tooltip-background-color, #000000);\n font-size: var(--kuc-tooltip-font-size);\n border-radius: 6px;\n box-shadow: 0 6px 16px 0 rgb(0 0 0 / 8%), 0 3px 6px -4px rgb(0 0 0 / 12%), 0 9px 28px 8px rgb(0 0 0 / 5%);\n box-sizing: border-box;\n }\n .kuc-tooltip-1-18-0__group__title {\n position: absolute;\n top: calc(100% + calc(0.5em * 2));\n left: 50%;\n transform: translateX(-50%);\n margin: 0;\n border-radius: 0.25em;\n color: var(--kuc-tooltip-color, #ffffff);\n width: max-content;\n z-index: 1000;\n }\n .kuc-tooltip-1-18-0__group.kuc-tooltip-1-18-0__group--top > .kuc-tooltip-1-18-0__group__title {\n top: unset;\n bottom: 100%;\n }\n .kuc-tooltip-1-18-0__group.kuc-tooltip-1-18-0__group--bottom > .kuc-tooltip-1-18-0__group__title {\n width: max-content;\n top: auto;\n }\n .kuc-tooltip-1-18-0__group.kuc-tooltip-1-18-0__group--left > .kuc-tooltip-1-18-0__group__title {\n width: max-content;\n height: fit-content;\n margin: auto 0;\n right: 100%;\n left: auto;\n top: 0;\n bottom: 0;\n transform: translateX(0);\n }\n .kuc-tooltip-1-18-0__group.kuc-tooltip-1-18-0__group--right > .kuc-tooltip-1-18-0__group__title {\n width: max-content;\n height: fit-content;\n margin: auto 0;\n left: 100%;\n top: 0;\n bottom: 0;\n transform: translateX(0);\n }\n .kuc-tooltip-1-18-0__group .kuc-tooltip-1-18-0__group__title__wrapper__arrow {\n border: 0.5em solid transparent;\n border-bottom-color: var(--kuc-tooltip-background-color, #000000);\n }\n .kuc-tooltip-1-18-0__group.kuc-tooltip-1-18-0__group--top > .kuc-tooltip-1-18-0__group__title .kuc-tooltip-1-18-0__group__title__wrapper__arrow {\n border-top-color: var(--kuc-tooltip-background-color, #000000);\n border-right-color: transparent;\n border-bottom-color: transparent;\n margin: auto 0;\n }\n .kuc-tooltip-1-18-0__group.kuc-tooltip-1-18-0__group--left > .kuc-tooltip-1-18-0__group__title .kuc-tooltip-1-18-0__group__title__wrapper__arrow {\n border-left-color: var(--kuc-tooltip-background-color, #000000);\n border-bottom-color: transparent;\n }\n .kuc-tooltip-1-18-0__group.kuc-tooltip-1-18-0__group--right > .kuc-tooltip-1-18-0__group__title .kuc-tooltip-1-18-0__group__title__wrapper__arrow {\n border-right-color: var(--kuc-tooltip-background-color, #000000);\n border-bottom-color: transparent;\n width: fit-content;\n height: fit-content;\n margin: auto 0;\n top: 0;\n bottom: 0;\n right: 100%;\n left: auto;\n }\n .kuc-tooltip-1-18-0__group .kuc-tooltip-1-18-0__group__title__wrapper {\n display: flex;\n align-items: center;\n }\n .kuc-tooltip-1-18-0__group.kuc-tooltip-1-18-0__group--top > .kuc-tooltip-1-18-0__group__title .kuc-tooltip-1-18-0__group__title__wrapper {\n flex-direction: column-reverse;\n }\n .kuc-tooltip-1-18-0__group.kuc-tooltip-1-18-0__group--bottom > .kuc-tooltip-1-18-0__group__title .kuc-tooltip-1-18-0__group__title__wrapper {\n flex-direction: column;\n }\n .kuc-tooltip-1-18-0__group.kuc-tooltip-1-18-0__group--left > .kuc-tooltip-1-18-0__group__title .kuc-tooltip-1-18-0__group__title__wrapper {\n flex-direction: row-reverse;\n }\n'),zo=e}})();const Go=zo;var Wo=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let qo;(()=>{if(qo=window.customElements.get("kuc-mobile-button-1-18-0"),!qo){class e extends Ji{constructor(e){super(),this.className="",this.id="",this.text="",this.type="normal",this.content="",this.disabled=!1,this.visible=!0;const t=rr(e);Object.assign(this,t)}_handleClickButton(e){e.stopPropagation(),Zi(this,"click")}_getButtonColorType(){return"normal"===this.type||"submit"===this.type?this.type:"normal"}render(){return kt`
|
||
<button
|
||
type="button"
|
||
class="kuc-mobile-button-1-18-0__button kuc-mobile-button-1-18-0__button--${this._getButtonColorType()}"
|
||
?disabled="${this.disabled}"
|
||
@click="${this._handleClickButton}"
|
||
>
|
||
${this.content?Bi(this.content):this.text}
|
||
</button>
|
||
`}}Wo([on({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),Wo([on({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),Wo([on({type:String})],e.prototype,"text",void 0),Wo([on({type:String})],e.prototype,"type",void 0),Wo([on()],e.prototype,"content",void 0),Wo([on({type:Boolean})],e.prototype,"disabled",void 0),Wo([on({type:Boolean,attribute:"hidden",reflect:!0,converter:ji})],e.prototype,"visible",void 0),window.customElements.define("kuc-mobile-button-1-18-0",e),Xi('\n kuc-mobile-button-1-18-0,\n kuc-mobile-button-1-18-0 * {\n font-family: "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN",\n "ヒラギノ角ゴ ProN W3", "MS Pゴシック", "Lucida Grande",\n "Lucida Sans Unicode", Arial, Verdana, sans-serif;\n }\n kuc-mobile-button-1-18-0:lang(es),\n kuc-mobile-button-1-18-0:lang(es) * {\n font-family: sans-serif;\n }\n kuc-mobile-button-1-18-0:lang(zh),\n kuc-mobile-button-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", "Lucida Grande", "Lucida Sans Unicode", Arial,\n Verdana, sans-serif;\n }\n kuc-mobile-button-1-18-0:lang(zh-TW),\n kuc-mobile-button-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黒體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC","Lucida Grande","Lucida Sans Unicode",Arial,\n Verdana,sans-serif\n }\n kuc-mobile-button-1-18-0 {\n display: inline-block;\n vertical-align: top;\n }\n kuc-mobile-button-1-18-0[hidden] {\n display: none;\n }\n .kuc-mobile-button-1-18-0__button {\n min-width: var(--kuc-mobile-button-width, 100px);\n width: var(--kuc-mobile-button-width, auto);\n height: var(--kuc-mobile-button-height, 42px);\n padding: 0 12px;\n user-select: none;\n font-weight: 700;\n font-size: var(--kuc-mobile-button-font-size, 14px);\n line-height: 1;\n display: grid;\n align-items: center;\n align-content: center;\n }\n .kuc-mobile-button-1-18-0__button:focus {\n outline: none;\n }\n .kuc-mobile-button-1-18-0__button--submit {\n border: 2px solid;\n border-color: var(--kuc-mobile-button-background-color, #206694);\n background-color: var(--kuc-mobile-button-background-color, #206694);\n color: var(--kuc-mobile-button-text-color, #ffffff);\n border-radius: 6px;\n }\n .kuc-mobile-button-1-18-0__button--submit:focus {\n border-color: var(--kuc-mobile-button-background-color-focus, var(--kuc-mobile-button-background-color, #206694));\n background-color: var(--kuc-mobile-button-background-color-focus, var(--kuc-mobile-button-background-color, #206694));\n }\n .kuc-mobile-button-1-18-0__button--submit:active {\n border-color: var(--kuc-mobile-button-background-color-active, var(--kuc-mobile-button-background-color, #206694));\n background-color: var(--kuc-mobile-button-background-color-active, var(--kuc-mobile-button-background-color, #206694));\n }\n .kuc-mobile-button-1-18-0__button--submit:disabled {\n color: #ffffff;\n border-color: #a5a5a5;\n background: #a5a5a5;\n }\n .kuc-mobile-button-1-18-0__button--normal {\n border: 2px solid;\n border-color: var(--kuc-mobile-button-background-color, #206694);\n background-color: var(--kuc-mobile-button-background-color, #ffffff);\n color: var(--kuc-mobile-button-text-color, #206694);\n border-radius: 6px;\n }\n .kuc-mobile-button-1-18-0__button--normal:focus {\n border-color: var(--kuc-mobile-button-background-color-focus, var(--kuc-mobile-button-background-color, #206694));\n background-color: var(--kuc-mobile-button-background-color-focus, var(--kuc-mobile-button-background-color, #ffffff));\n }\n .kuc-mobile-button-1-18-0__button--normal:active {\n border-color: var(--kuc-mobile-button-background-color-active, var(--kuc-mobile-button-background-color, #206694));\n background-color: var(--kuc-mobile-button-background-color-active, var(--kuc-mobile-button-background-color, #ffffff));\n }\n .kuc-mobile-button-1-18-0__button--normal:disabled {\n color: #a5a5a5;\n border-color: #a5a5a5;\n background-color: #ffffff;\n cursor: default;\n }\n'),qo=e}})();const Ko=qo;var Yo=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class Jo extends Ji{constructor(){super(...arguments),this.ariaLive="",this.guid="",this.text=""}render(){return kt`
|
||
${this.ariaLive&&""!==this.ariaLive?kt`
|
||
<div
|
||
class="kuc-base-mobile-error-1-18-0__error"
|
||
.id="${this.guid}-error"
|
||
role="alert"
|
||
aria-live="${this.ariaLive}"
|
||
?hidden="${!this.text}"
|
||
>
|
||
${this.text}
|
||
</div>
|
||
`:kt`
|
||
<div
|
||
class="kuc-base-mobile-error-1-18-0__error"
|
||
.id="${this.guid}-error"
|
||
role="alert"
|
||
?hidden="${!this.text}"
|
||
>
|
||
${this.text}
|
||
</div>
|
||
`}
|
||
`}}Yo([on({type:String})],Jo.prototype,"ariaLive",void 0),Yo([on({type:String})],Jo.prototype,"guid",void 0),Yo([on({type:String})],Jo.prototype,"text",void 0),window.customElements.get("kuc-base-mobile-error-1-18-0")||(Xi('\n kuc-base-mobile-error-1-18-0 {\n display: block;\n font-size: 13px;\n font-family: "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN",\n "ヒラギノ角ゴ ProN W3", "MS Pゴシック", "Lucida Grande",\n "Lucida Sans Unicode", Arial, Verdana, sans-serif;\n }\n kuc-base-mobile-error-1-18-0:lang(es),\n kuc-base-mobile-error-1-18-0:lang(es) * {\n font-family: sans-serif;\n }\n kuc-base-mobile-error-1-18-0:lang(zh),\n kuc-base-mobile-error-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", "Lucida Grande", "Lucida Sans Unicode", Arial,\n Verdana, sans-serif;\n }\n kuc-base-mobile-error-1-18-0:lang(zh-TW),\n kuc-base-mobile-error-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黒體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC","Lucida Grande","Lucida Sans Unicode",Arial,\n Verdana,sans-serif\n }\n kuc-base-mobile-error-1-18-0[hidden] {\n display: none;\n }\n .kuc-base-mobile-error-1-18-0__error {\n line-height: 1.5;\n color: #000000;\n background-color: #fdffc9;\n border: 1px solid #e5db68;\n border-radius: 0.4em;\n padding: 0.4em 1em;\n margin-top: 0.3em;\n margin-left: 0.5em;\n }\n .kuc-base-mobile-error-1-18-0__error[hidden] {\n display: none;\n }\n'),window.customElements.define("kuc-base-mobile-error-1-18-0",Jo));var Zo=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class Xo extends Ji{constructor(){super(...arguments),this.requiredIcon=!1,this.guid="",this.text=""}render(){return kt`
|
||
${this._getTextTemplate()}
|
||
<span
|
||
class="kuc-base-mobile-label-1-18-0__required-icon"
|
||
?hidden="${!this.requiredIcon}"
|
||
>*</span
|
||
>
|
||
`}_getTextTemplate(){return this.guid&&""!==this.guid?kt`
|
||
<span class="kuc-base-mobile-label-1-18-0__text" .id="${this.guid}-group"
|
||
>${this.text}</span
|
||
>
|
||
`:kt` <span class="kuc-base-mobile-label-1-18-0__text">${this.text}</span> `}}Zo([on({type:Boolean})],Xo.prototype,"requiredIcon",void 0),Zo([on({type:String})],Xo.prototype,"guid",void 0),Zo([on({type:String})],Xo.prototype,"text",void 0),window.customElements.get("kuc-base-mobile-label-1-18-0")||(Xi('\n kuc-base-mobile-label-1-18-0 {\n display: inline-table;\n font-size: 13px;\n font-family: "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN",\n "ヒラギノ角ゴ ProN W3", "MS Pゴシック", "Lucida Grande",\n "Lucida Sans Unicode", Arial, Verdana, sans-serif;\n }\n kuc-base-mobile-label-1-18-0:lang(es) ,\n kuc-base-mobile-label-1-18-0:lang(es) * {\n font-family: sans-serif;\n }\n kuc-base-mobile-label-1-18-0:lang(zh) ,\n kuc-base-mobile-label-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", "Lucida Grande", "Lucida Sans Unicode", Arial,\n Verdana, sans-serif;\n }\n kuc-base-mobile-label-1-18-0:lang(zh-TW),\n kuc-base-mobile-label-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黒體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC","Lucida Grande","Lucida Sans Unicode",Arial,\n Verdana,sans-serif\n }\n kuc-base-mobile-label-1-18-0[hidden] {\n display: none;\n }\n .kuc-base-mobile-label-1-18-0__text {\n text-shadow: 0 1px 0 #ffffff;\n color: #888888;\n white-space: normal;\n font-size: 86%;\n }\n .kuc-base-mobile-label-1-18-0__required-icon {\n font-size: 86%;\n position: relative;\n left: 3px;\n color: #d01212;\n }\n .kuc-base-mobile-label-1-18-0__required-icon[hidden] {\n display: none;\n }\n'),window.customElements.define("kuc-base-mobile-label-1-18-0",Xo));var Qo=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let ea;(()=>{if(ea=window.customElements.get("kuc-mobile-checkbox-1-18-0"),!ea){class e extends Ji{constructor(e){super(),this.className="",this.error="",this.id="",this.label="",this.borderVisible=!0,this.disabled=!1,this.requiredIcon=!1,this.visible=!0,this.items=[],this.selectedIndex=[],this.value=[],this._valueMapping={},this._GUID=Qi();const t=rr(e);this._setInitialValue(t),Object.assign(this,t)}_setInitialValue(e){const t="value"in e,n="selectedIndex"in e,i=e.selectedIndex||[];if(!t&&n){if(!fr(i))return;const t=this._getValueMapping(e);this.value=this._getValidValue(t,i)}}_getNewValueMapping(e,t){const n=parseInt(t,10),i=Object.keys(this._valueMapping),r={...this._valueMapping};return i.indexOf(t)>-1?(delete r[n],r):(r[n]=e,r)}_handleChangeInput(e){e.stopPropagation();const t=e.target,n=t.dataset.index||"0",i=t.value,r=this.value?[...this.value]:this.value,o=this._getNewValueMapping(i,n),a=this.items.map((e=>e.value)),s=Object.values(o).filter((e=>a.indexOf(e)>-1));if(s===r)return;const l=Object.keys(o).map((e=>parseInt(e,10)));this.value=s,this.selectedIndex=l,Zi(this,"change",{oldValue:r,value:s})}_getCheckboxIconSvgTemplate(e){return xt`
|
||
<svg
|
||
class="kuc-mobile-checkbox-1-18-0__group__select-menu__item__label__icon"
|
||
xmlns="http://www.w3.org/2000/svg"
|
||
x="0px"
|
||
y="0px"
|
||
width="44px"
|
||
height="34px"
|
||
viewBox="0 0 44 34"
|
||
enable-background="new 0 0 44 34"
|
||
xml:space="preserve">
|
||
<image width="44" height="34" x="0" y="0" href="${this._getSVGStrokeValue(e)}"/>
|
||
</svg>
|
||
`}_getSVGStrokeValue(e){return e?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAiCAQAAACOh/P6AAAABGdBTUEAALGPC/xhBQAAACBjSFJN AAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAHdElN RQfkCQcFITUNIbrXAAADHklEQVRIx63US2sTURQH8P9kmsykQtoMSbStreZRkRBxY3BR7EJwEyuo WQiCmy4EBXHhyi8g4qYfQCjYpRgQBK0GEoUmohYUsURjKz4WrTTNNDYzmUcz42Lymkfz0nN298z9 zeXcM0OgJeLoJxLkhTn14+P5uJJoWR3oy9Kx5xcCl6s4RybuQ2muk60PhXtmWc/xh8GL+0GBnvGu 599D/S9wwetOH51yg4UEt4H+B7jgZVKTkX0oQYUKEcNwttB9wwUvkwpFHOCg1lLEMOgZX43uE9ZY OwTdqgh3g7b12NYGG4yQ4KEYkoUD9nsnfX2NW8HLpAIRG3iLGge2/G32AweiZ1hjCUuWB8vlr6+8 gWRqBetRFljPXmiC4CaZlD+iWjRBAQeWy19bSaMACWiFCW5yKB24MpQueK3ZWHRwORRRLFke23VW hAoQTTYWpZMBFwkRPz4VT3s2zSydDLkEwyTUm8Dp2CZMxKJ0MuiqoAInSPw00Inaa/+gasEK2FnL Xi3km2wdJmJROul3lWrbnLDr6IShrg8R5bXXs5t5sJCa/wpbnT3sYiE3rkHEeIRJab1OmOqtKWjs Z2zFxSYLDGjsIVdRdxoOCsYjxGrlzNPl2AlzvR4yeI1l47K+QsJxbGnMV8Ru45vXUoKKEap8KVCi H0y4tkx1FSpkVHRsTgdTeEdOgSEstvHwU9TZUWrDkt2FaDitHkaBK2ZHThEMTFsV7MCHX5ZsFZKp CXpYhcRzxczoNMFYbWdRtWBVyBa9NZwY1TptY1R0k4CQeXtj84vxyowwoGj02LSNUTqyBCrPn93k vmPbOAlmuAeaRGVx8RbWUYrvGofPCm7QB6dtTHVPdgCCxv6JW4y1NdwFbYfYht0bRlzJSTzHLh04 Yp8wj5gDUlu2DRxGWMlJXPnrK3+ACulbSHdk28JAWMlJkFYz/qAjJDdOS0PuyHaAa7S8mg0EHSEJ KkjQEB69uN2J7QgDYTUnazQVUkCBvftyDuvYac92AbfSzhB7JzOPDZQ7sV3BDXrJkV1+gt/g4kon Vg8TbZ8kMQg7BAjogtXHX2EwhA6/OKOlAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIwLTA5LTA3VDA1 OjMzOjUzKzAwOjAwOdR5sgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMC0wOS0wN1QwNTozMzo1Mysw MDowMEiJwQ4AAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAAAAElFTkSuQmCC":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAiCAQAAACOh/P6AAAABGdBTUEAALGPC/xhBQAAACBjSFJN AAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAHdElN RQfkCQcFIRBGJW6QAAACvklEQVRIx6XWQZKbRhSA4Z8GBhACenwC5wZUypXKMlRlmUVcXrtKHMEn meQEUmWfmnHZe65ATpDcIA3MMGKEhBdgGRAaWZqnjarp94H6PTWtNWg0tPEX54fARNzwT72qed8b Ny6weqFzhbO0Fg1rHlf9Ky+CdSw5X3q/O+x4WAro0S+ADSw5T4LQw6LBRFt+5rc9LV7CeokMA1xs bOYE+MvPixfCBpb0ExkGzDDR0bFG9EVwywahzwwDAWiIPf1pcSHcZ/U90NIuHrObv+UF8DTb0hoG utKjd+qgKzSA/R9mirWlN8lCw5Yn9RT9kh4shc6VtJdXUp9ENQzs18fZmkrdR2/Sr4/QC+e1dWuG m3AdVaqeYJ3QS3zp4xxhi+jHdD//215xF84TV17xRJEWI7pl/SSQ8wl2x5a1uu+xvaW4C/3kWl4T IJGhn1jSGLCz0E+k9HC6Bhuyj2nxg0r7o92cj13aDBsXn6BHt6yXSOlhY3QFHrJ59L/KOIA/9tJ0 dGYdbUsD0WOtSbZMs0ipnMcxfDtKE+jMCJBh8K8b2rgn2DzKVM6aYbkNcG496Q7SBOAAQhpJ/cG8 8eT8BFsx7iIBRmSmBmKQJtBx8HklXy2vL2BBwK//raNNumM3umBg4xFwrGTPsV3xflZ5VKbbEa2h Y2Jhoh+w9Ql2324/HaEFYrRIsGNDedd2wjEWxNctZ5o+jB0bylX2VqniGXawCX0PvWPDwyqLFcVB gx2FITtBt2weKwoqts/+sgGcd3Q9SX9j70+yI7giR6ksKu82B/SQPVWJEVxTUaBU9rZcDelz2YNX U03TfuIGd2F29z2fnTgJbaloaCAGd2Gitewf+YfsDHbyiLWlar/EMFvobCjjfJXxcAZ75Oy26+gm 3mIuqrhYZTyexR49FLZ0wyY2/qzSkpKns1jQmrOmf398ARuVc7WA4gOtAAAAJXRFWHRkYXRlOmNy ZWF0ZQAyMDIwLTA5LTA3VDA1OjMzOjE2KzAwOjAw76ZY7wAAACV0RVh0ZGF0ZTptb2RpZnkAMjAy MC0wOS0wN1QwNTozMzoxNiswMDowMJ774FMAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVh ZHlxyWU8AAAAAElFTkSuQmCC"}_isCheckedItem(e,t){const n=Object.values(this._valueMapping),i=Object.keys(this._valueMapping);return n.filter(((n,r)=>n===e.value&&t===parseInt(i[r],10))).length>0}_getItemTemplate(e,t){const n=this._isCheckedItem(e,t);return kt`
|
||
<label
|
||
for="${this._GUID}-item-${t}"
|
||
class="kuc-mobile-checkbox-1-18-0__group__select-menu__item${e.disabled?" kuc-mobile-checkbox-1-18-0__group__select-menu__item--disabled":""}"
|
||
?borderVisible="${this.borderVisible}"
|
||
>
|
||
<input
|
||
type="checkbox"
|
||
id="${this._GUID}-item-${t}"
|
||
class="kuc-mobile-checkbox-1-18-0__group__select-menu__item__input"
|
||
name="${this._GUID}-group"
|
||
data-index="${t}"
|
||
value="${void 0!==e.value?e.value:""}"
|
||
aria-describedby="${this._GUID}-error}"
|
||
aria-required="${this.requiredIcon}"
|
||
aria-invalid="${""!==this.error}"
|
||
?disabled="${e.disabled||this.disabled}"
|
||
@change="${this._handleChangeInput}"
|
||
/>
|
||
<div class="kuc-mobile-checkbox-1-18-0__group__select-menu__item__label">
|
||
${this._getCheckboxIconSvgTemplate(n)}${void 0===e.label?e.value:e.label}
|
||
</div>
|
||
</label>
|
||
`}shouldUpdate(e){return e.has("items")&&!fr(this.items)?(this.throwErrorAfterUpdateComplete(En),!1):e.has("value")&&!fr(this.value)?(this.throwErrorAfterUpdateComplete(An),!1):!(e.has("selectedIndex")&&!fr(this.selectedIndex)&&(this.throwErrorAfterUpdateComplete(On),1))}willUpdate(e){if(e.has("value")){if(this.value.length>0)return;this.selectedIndex=[]}}update(e){(e.has("items")||e.has("value")||e.has("selectedIndex"))&&(this._valueMapping=this._getValueMapping({items:this.items,value:this.value,selectedIndex:this.selectedIndex}),this._setValueAndSelectedIndex()),super.update(e)}render(){return kt`
|
||
<fieldset class="kuc-mobile-checkbox-1-18-0__group">
|
||
<legend
|
||
class="kuc-mobile-checkbox-1-18-0__group__label"
|
||
?hidden="${!this.label}"
|
||
>
|
||
<kuc-base-mobile-label-1-18-0
|
||
.text="${this.label}"
|
||
.requiredIcon="${this.requiredIcon}"
|
||
></kuc-base-mobile-label-1-18-0>
|
||
</legend>
|
||
<div
|
||
class="kuc-mobile-checkbox-1-18-0__group__select-menu ${this.requiredIcon?"kuc-mobile-checkbox-1-18-0__group__select-menu--required":""}"
|
||
?borderVisible="${this.borderVisible}"
|
||
?disabled="${this.disabled}"
|
||
>
|
||
${this.items.map(((e,t)=>this._getItemTemplate(e,t)))}
|
||
</div>
|
||
<kuc-base-mobile-error-1-18-0
|
||
.text="${this.error}"
|
||
.guid="${this._GUID}"
|
||
ariaLive="assertive"
|
||
>
|
||
</kuc-base-mobile-error-1-18-0>
|
||
</fieldset>
|
||
`}updated(){this._inputEls.forEach((e=>{e.checked=this.value.indexOf(e.value)>-1}))}_setValueAndSelectedIndex(){this.value=Object.values(this._valueMapping),this.selectedIndex=Object.keys(this._valueMapping).map((e=>parseInt(e,10)))}_getValueMapping(e){const t=e.items||[],n=e.value||[],i=e.selectedIndex||[],r=t.map((e=>e.value||"")),o=Object.assign({},r),a={};if(0===n.length){const e=this._getValidValue(o,i);return i.forEach(((t,n)=>a[t]=e[n])),a}return this._getValidSelectedIndex(o).forEach(((e,t)=>a[e]=n[t])),a}_getValidValue(e,t){return t.filter((t=>e[t])).map((t=>e[t]))}_getValidSelectedIndex(e){const t=[];for(let n=0;n<this.value.length;n++){const i=this.selectedIndex[n];if(e[i]===this.value[n]){t.push(i);continue}const r=this.items.findIndex((e=>e.value===this.value[n]));t.push(r)}return t}}Qo([on({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),Qo([on({type:String})],e.prototype,"error",void 0),Qo([on({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),Qo([on({type:String})],e.prototype,"label",void 0),Qo([on({type:Boolean})],e.prototype,"borderVisible",void 0),Qo([on({type:Boolean})],e.prototype,"disabled",void 0),Qo([on({type:Boolean})],e.prototype,"requiredIcon",void 0),Qo([on({type:Boolean,attribute:"hidden",reflect:!0,converter:ji})],e.prototype,"visible",void 0),Qo([on({type:Array})],e.prototype,"items",void 0),Qo([on({type:Array})],e.prototype,"selectedIndex",void 0),Qo([on({type:Array})],e.prototype,"value",void 0),Qo([gn(".kuc-mobile-checkbox-1-18-0__group__select-menu__item__input")],e.prototype,"_inputEls",void 0),Qo([cn()],e.prototype,"_valueMapping",void 0),window.customElements.define("kuc-mobile-checkbox-1-18-0",e),Xi('\n kuc-mobile-checkbox-1-18-0,\n kuc-mobile-checkbox-1-18-0 * {\n font-size: 13px;\n color: #333333;\n font-family: "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN",\n "ヒラギノ角ゴ ProN W3", "MS Pゴシック", "Lucida Grande",\n "Lucida Sans Unicode", Arial, Verdana, sans-serif;\n }\n kuc-mobile-checkbox-1-18-0:lang(es),\n kuc-mobile-checkbox-1-18-0:lang(es) * {\n font-family: sans-serif;\n }\n kuc-mobile-checkbox-1-18-0:lang(zh),\n kuc-mobile-checkbox-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", "Lucida Grande", "Lucida Sans Unicode", Arial,\n Verdana, sans-serif;\n }\n kuc-mobile-checkbox-1-18-0:lang(zh-TW),\n kuc-mobile-checkbox-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黒體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC","Lucida Grande","Lucida Sans Unicode",Arial,\n Verdana,sans-serif\n }\n kuc-mobile-checkbox-1-18-0 {\n width: 100%;\n display: inline-block;\n }\n kuc-mobile-checkbox-1-18-0[hidden] {\n display: none;\n }\n .kuc-mobile-checkbox-1-18-0__group {\n border: none;\n padding: 0px;\n height: auto;\n display: inline-block;\n width: 100%;\n box-sizing: border-box;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n }\n .kuc-mobile-checkbox-1-18-0__group__label {\n display: inline-block;\n font-size: 86%;\n font-weight: bold;\n line-height: 1.5;\n padding: 0px;\n margin: 0 0 4px 0;\n white-space: nowrap;\n }\n .kuc-mobile-checkbox-1-18-0__group__label[hidden] {\n display: none;\n }\n .kuc-mobile-checkbox-1-18-0__group__label__text {\n text-shadow: 0 1px 0 #ffffff;\n color: #888888;\n white-space: normal;\n font-size: inherit;\n }\n .kuc-mobile-checkbox-1-18-0__group__label__required-icon {\n position: relative;\n left: 3px;\n color: #d01212;\n }\n .kuc-mobile-checkbox-1-18-0__group__label__required-icon[hidden] {\n display: none;\n }\n .kuc-mobile-checkbox-1-18-0__group__select-menu {\n margin-left: 0.5em;\n margin-right: 0.5em;\n }\n .kuc-mobile-checkbox-1-18-0__group__select-menu[bordervisible] {\n border-color: #b3b3b3;\n border-width: 1px;\n border-style: solid;\n border-radius: 8px;\n }\n .kuc-mobile-checkbox-1-18-0__group__select-menu[disabled],\n .kuc-mobile-checkbox-1-18-0__group__select-menu__item--disabled {\n background-color: #d5d7d9;\n color: #999999;\n -webkit-text-fill-color: #999999;\n background-color: #d5d7d9;\n opacity: 1;\n }\n .kuc-mobile-checkbox-1-18-0__group__select-menu--required[bordervisible] {\n border-color: #cf4a38;\n border-width: 1px;\n border-style: solid;\n border-radius: 8px;\n }\n .kuc-mobile-checkbox-1-18-0__group__select-menu__item[bordervisible] {\n padding: 4px;\n border: 1px solid transparent;\n position: relative;\n white-space: normal;\n word-wrap: normal;\n height: 30px;\n display: block;\n border-bottom: 1px solid #b3b3b3;\n padding: 8px;\n }\n .kuc-mobile-checkbox-1-18-0__group__select-menu__item {\n padding: 4px;\n border: 1px solid transparent;\n position: relative;\n white-space: normal;\n word-wrap: normal;\n height: 30px;\n display: block;\n padding: 8px;\n }\n .kuc-mobile-checkbox-1-18-0__group__select-menu__item:last-child {\n border-bottom: 0px;\n }\n .kuc-mobile-checkbox-1-18-0__group__select-menu[bordervisible]\n .kuc-mobile-checkbox-1-18-0__group__select-menu__item:first-child {\n border-top-left-radius: 7px;\n border-top-right-radius: 7px;\n }\n .kuc-mobile-checkbox-1-18-0__group__select-menu[bordervisible]\n .kuc-mobile-checkbox-1-18-0__group__select-menu__item:last-child {\n border-bottom-left-radius: 7px;\n border-bottom-right-radius: 7px;\n }\n .kuc-mobile-checkbox-1-18-0__group__select-menu__item__input {\n position: absolute;\n opacity: 0;\n }\n .kuc-mobile-checkbox-1-18-0__group__select-menu__item__input[disabled]\n + .kuc-mobile-checkbox-1-18-0__group__select-menu__item__label {\n background-color: #d5d7d9;\n color: #999999;\n -webkit-text-fill-color: #999999;\n background-color: #d5d7d9;\n opacity: 1;\n }\n .kuc-mobile-checkbox-1-18-0__group__select-menu__item__label {\n position: relative;\n margin: -7px 0px 0px 34px;\n display: inline-block;\n vertical-align: middle;\n white-space: nowrap;\n padding: 11px 13px 13px 0px;\n font-size: 14.04px;\n }\n .kuc-mobile-checkbox-1-18-0__group__select-menu__item__label__icon {\n position: absolute;\n top: 50%;\n left: -30px;\n margin-top: -13px;\n box-sizing: border-box;\n width: 22px;\n height: 22px;\n background-size: 22px 17px;\n content: "";\n }\n .kuc-mobile-checkbox-1-18-0__group__error {\n line-height: 1.5;\n border: 1px solid #e5db68;\n background-color: #fdffc9;\n margin-top: 0.3em;\n margin-left: 0.5em;\n padding: 0.4em 1em;\n border-radius: 0.4em;\n color: #000000;\n }\n .kuc-mobile-checkbox-1-18-0__group__error[hidden] {\n display: none;\n }\n'),ea=e}})();const ta=ea;var na=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let ia;(()=>{if(ia=window.customElements.get("kuc-mobile-dropdown-1-18-0"),!ia){class e extends Ji{constructor(e){super(),this.className="",this.error="",this.id="",this.label="",this.value="",this.selectedIndex=-1,this.disabled=!1,this.requiredIcon=!1,this.visible=!0,this.items=[],this._hasValueInItems=!1,this._GUID=Qi();const t=rr(e);this._setInitialValue(t),Object.assign(this,t)}_setInitialValue(e){!("value"in e)&&"selectedIndex"in e&&(this.value=this._getValue(e)||"")}_handleChangeInput(e){e.stopPropagation();const t=e.target,n=t.value;if(this.value===n&&this.selectedIndex===t.selectedIndex)return;const i={oldValue:this.value,value:n};this.value=n,this.selectedIndex=t.selectedIndex,Zi(this,"change",i)}shouldUpdate(e){return e.has("items")&&!fr(this.items)?(this.throwErrorAfterUpdateComplete(En),!1):e.has("value")&&!ur(this.value)?(this.throwErrorAfterUpdateComplete(In),!1):!(e.has("selectedIndex")&&!pr(this.selectedIndex)&&(this.throwErrorAfterUpdateComplete(Dn),1))}willUpdate(e){if((e.has("items")||e.has("value"))&&(this._hasValueInItems=this.items.some((e=>e.value===this.value))),e.has("value")){if(""!==this.value||this._hasValueInItems)return;this.selectedIndex=-1}}update(e){(e.has("items")||e.has("value")||e.has("selectedIndex"))&&(this.selectedIndex=this._getSelectedIndex(),this.value=this._getValue({items:this.items,selectedIndex:this.selectedIndex})||""),super.update(e)}_getSelectedIndex(){if(!this.value&&!this._hasValueInItems)return this.items[this.selectedIndex]?this.selectedIndex:-1;const e=this.items.findIndex((e=>e.value===this.value));if(-1===e)return-1;const t=this.items.findIndex(((e,t)=>e.value===this.value&&t===this.selectedIndex));return t>-1?t:e}_getValue(e){const t=(e.items||[])[0===e.selectedIndex||e.selectedIndex?e.selectedIndex:-1];return t?t.value:""}_isCheckedItem(e,t){return this.value?e.value===this.value&&this.selectedIndex===t:this.selectedIndex===t}_getItemTemplate(e,t){const n=this._isCheckedItem(e,t);return kt`
|
||
<option
|
||
value="${e.value||""}"
|
||
?selected="${n}"
|
||
?disabled="${e.disabled}"
|
||
>
|
||
${void 0===e.label?e.value:e.label}
|
||
</option>
|
||
`}render(){return kt`
|
||
<label
|
||
class="kuc-mobile-dropdown-1-18-0__label"
|
||
for="${this._GUID}-label"
|
||
?hidden="${!this.label}"
|
||
>
|
||
<kuc-base-mobile-label-1-18-0
|
||
.text="${this.label}"
|
||
.requiredIcon="${this.requiredIcon}"
|
||
></kuc-base-mobile-label-1-18-0>
|
||
</label>
|
||
<div class="kuc-mobile-dropdown-1-18-0__input-form">
|
||
<div
|
||
class="kuc-mobile-dropdown-1-18-0__input-form__select
|
||
${this.requiredIcon?"kuc--required":""}"
|
||
>
|
||
<select
|
||
class="kuc-mobile-dropdown-1-18-0__input-form__select__input"
|
||
id="${this._GUID}-label"
|
||
aria-describedby="${this._GUID}-error"
|
||
aria-required="${this.requiredIcon}"
|
||
aria-invalid="${""!==this.error}"
|
||
?disabled="${this.disabled}"
|
||
@change="${this._handleChangeInput}"
|
||
>
|
||
${this.items.map(((e,t)=>this._getItemTemplate(e,t)))}
|
||
</select>
|
||
</div>
|
||
</div>
|
||
<kuc-base-mobile-error-1-18-0
|
||
.text="${this.error}"
|
||
.guid="${this._GUID}"
|
||
ariaLive="assertive"
|
||
>
|
||
</kuc-base-mobile-error-1-18-0>
|
||
`}updated(e){e.has("selectedIndex")&&(this._selectEl.selectedIndex=this.selectedIndex),super.update(e)}}na([on({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),na([on({type:String})],e.prototype,"error",void 0),na([on({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),na([on({type:String})],e.prototype,"label",void 0),na([on({type:String})],e.prototype,"value",void 0),na([on({type:Number})],e.prototype,"selectedIndex",void 0),na([on({type:Boolean})],e.prototype,"disabled",void 0),na([on({type:Boolean})],e.prototype,"requiredIcon",void 0),na([on({type:Boolean,attribute:"hidden",reflect:!0,converter:ji})],e.prototype,"visible",void 0),na([on({type:Array})],e.prototype,"items",void 0),na([_n(".kuc-mobile-dropdown-1-18-0__input-form__select__input")],e.prototype,"_selectEl",void 0),window.customElements.define("kuc-mobile-dropdown-1-18-0",e),Xi('\n kuc-mobile-dropdown-1-18-0,\n kuc-mobile-dropdown-1-18-0 * {\n font-size: 13px;\n color: #333333;\n font-family: "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN",\n "ヒラギノ角ゴ ProN W3", "MS Pゴシック", "Lucida Grande",\n "Lucida Sans Unicode", Arial, Verdana, sans-serif;\n }\n kuc-mobile-dropdown-1-18-0:lang(es),\n kuc-mobile-dropdown-1-18-0:lang(es) * {\n font-family: sans-serif;\n }\n kuc-mobile-dropdown-1-18-0:lang(zh),\n kuc-mobile-dropdown-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", "Lucida Grande", "Lucida Sans Unicode", Arial,\n Verdana, sans-serif;\n }\n kuc-mobile-dropdown-1-18-0:lang(zh-TW),\n kuc-mobile-dropdown-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黒體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC","Lucida Grande","Lucida Sans Unicode",Arial,\n Verdana,sans-serif\n }\n kuc-mobile-dropdown-1-18-0 {\n display: inline-block;\n width: 100%;\n }\n\n kuc-mobile-dropdown-1-18-0[hidden] {\n display: none;\n }\n\n .kuc-mobile-dropdown-1-18-0__label {\n display: inline-block;\n font-size: 86%;\n font-weight: bold;\n line-height: 1.5;\n padding: 0px;\n margin: 0 0 4px 0;\n white-space: nowrap;\n }\n\n .kuc-mobile-dropdown-1-18-0__label[hidden] {\n display: none;\n }\n\n .kuc-mobile-dropdown-1-18-0__input-form {\n word-wrap: break-word;\n min-height: 1em;\n padding-left: 0.5em;\n padding-right: 0.5em;\n }\n\n .kuc-mobile-dropdown-1-18-0__input-form__select {\n display: inline-block;\n border-radius: 0.4em;\n max-width: 100%;\n }\n\n .kuc-mobile-dropdown-1-18-0__input-form__select.kuc--required {\n border: 1px solid #cf4a38;\n }\n\n .kuc-mobile-dropdown-1-18-0__input-form__select__input {\n min-width: 100px;\n max-width: 100%;\n }\n\n .kuc-mobile-dropdown-1-18-0__input-form__select__input:disabled {\n color: #999999;\n -webkit-text-fill-color: #999999;\n background-color: #d5d7d9;\n opacity: 1;\n }\n'),ia=e}})();const ra=ia;var oa=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let aa;(()=>{if(aa=window.customElements.get("kuc-mobile-multi-choice-1-18-0"),!aa){class e extends Ji{constructor(e){super(),this.className="",this.error="",this.id="",this.label="",this.disabled=!1,this.requiredIcon=!1,this.visible=!0,this.items=[],this.selectedIndex=[],this.value=[],this._valueMapping={},this._GUID=Qi();const t=rr(e);this._setInitialValue(t),Object.assign(this,t)}_setInitialValue(e){const t="value"in e,n="selectedIndex"in e,i=e.selectedIndex||[];if(!t&&n){if(!fr(i))return;const t=this._getValueMapping(e);this.value=this._getValidValue(t,i)}}_handleChangeInput(e){e.stopPropagation();const t=e.target,n=this.value?[...this.value]:this.value,i=Array.from(t.selectedOptions,(e=>e.value)),r=Array.from(t.selectedOptions,(e=>e.dataset.index)),o={value:i,oldValue:n};this.value=i,this.selectedIndex=r.map((e=>e?parseInt(e,10):0)),Zi(this,"change",o)}shouldUpdate(e){return e.has("items")&&!fr(this.items)?(this.throwErrorAfterUpdateComplete(En),!1):e.has("value")&&!fr(this.value)?(this.throwErrorAfterUpdateComplete(An),!1):!(e.has("selectedIndex")&&!fr(this.selectedIndex)&&(this.throwErrorAfterUpdateComplete(On),1))}willUpdate(e){if(e.has("value")){if(this.value.length>0)return;this.selectedIndex=[]}}update(e){(e.has("items")||e.has("value")||e.has("selectedIndex"))&&(this._valueMapping=this._getValueMapping({items:this.items,value:this.value,selectedIndex:this.selectedIndex}),this._setValueAndSelectedIndex()),super.update(e)}_getValueMapping(e){const t=e.items||[],n=e.value||[],i=e.selectedIndex||[],r=t.map((e=>e.value||"")),o=Object.assign({},r),a={};if(0===n.length){const e=this._getValidValue(o,i);return i.forEach(((t,n)=>a[t]=e[n])),a}return this._getValidSelectedIndex(o).forEach(((e,t)=>a[e]=n[t])),a}_getValidValue(e,t){return t.filter((t=>e[t])).map((t=>e[t]))}_getValidSelectedIndex(e){const t=[];for(let n=0;n<this.value.length;n++){const i=this.selectedIndex[n];if(e[i]===this.value[n]){t.push(i);continue}const r=this.items.findIndex((e=>e.value===this.value[n]));t.push(r)}return t}_setValueAndSelectedIndex(){this.value=Object.values(this._valueMapping),this.selectedIndex=Object.keys(this._valueMapping).map((e=>parseInt(e,10)))}_isCheckedItem(e,t){const n=Object.values(this._valueMapping),i=Object.keys(this._valueMapping);return n.filter(((n,r)=>n===e.value&&t===parseInt(i[r],10))).length>0}_getItemTemplate(e,t){const n=this._isCheckedItem(e,t);return kt`
|
||
<option
|
||
value="${e.value||""}"
|
||
data-index="${t}"
|
||
?selected="${void 0!==e.value&&n}"
|
||
?disabled="${e.disabled}"
|
||
>
|
||
${void 0===e.label?e.value:e.label}
|
||
</option>
|
||
`}render(){return kt`
|
||
<label
|
||
class="kuc-mobile-multi-choice-1-18-0__label"
|
||
for="${this._GUID}-label"
|
||
?hidden="${!this.label}"
|
||
>
|
||
<kuc-base-mobile-label-1-18-0
|
||
.text="${this.label}"
|
||
.requiredIcon="${this.requiredIcon}"
|
||
></kuc-base-mobile-label-1-18-0>
|
||
</label>
|
||
<div class="kuc-mobile-multi-choice-1-18-0__input-form">
|
||
<div
|
||
class="kuc-mobile-multi-choice-1-18-0__input-form__select
|
||
${this.requiredIcon?"kuc--required":""}"
|
||
>
|
||
<select
|
||
class="kuc-mobile-multi-choice-1-18-0__input-form__select__input"
|
||
id="${this._GUID}-label"
|
||
aria-describedby="${this._GUID}-error"
|
||
aria-required="${this.requiredIcon}"
|
||
aria-invalid="${""!==this.error}"
|
||
?disabled="${this.disabled}"
|
||
multiple
|
||
@change="${this._handleChangeInput}"
|
||
>
|
||
${this.items.map(((e,t)=>this._getItemTemplate(e,t)))}
|
||
</select>
|
||
</div>
|
||
</div>
|
||
<kuc-base-mobile-error-1-18-0
|
||
.text="${this.error}"
|
||
.guid="${this._GUID}"
|
||
ariaLive="assertive"
|
||
>
|
||
</kuc-base-mobile-error-1-18-0>
|
||
`}}oa([on({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),oa([on({type:String})],e.prototype,"error",void 0),oa([on({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),oa([on({type:String})],e.prototype,"label",void 0),oa([on({type:Boolean})],e.prototype,"disabled",void 0),oa([on({type:Boolean})],e.prototype,"requiredIcon",void 0),oa([on({type:Boolean,attribute:"hidden",reflect:!0,converter:ji})],e.prototype,"visible",void 0),oa([on({type:Array})],e.prototype,"items",void 0),oa([on({type:Array})],e.prototype,"selectedIndex",void 0),oa([on({type:Array})],e.prototype,"value",void 0),oa([cn()],e.prototype,"_valueMapping",void 0),window.customElements.define("kuc-mobile-multi-choice-1-18-0",e),Xi('\n kuc-mobile-multi-choice-1-18-0,\n kuc-mobile-multi-choice-1-18-0 * {\n font-size: 13px;\n color: #333333;\n font-family: "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN",\n "ヒラギノ角ゴ ProN W3", "MS Pゴシック", "Lucida Grande",\n "Lucida Sans Unicode", Arial, Verdana, sans-serif;\n }\n kuc-mobile-multi-choice-1-18-0:lang(es),\n kuc-mobile-multi-choice-1-18-0:lang(es) * {\n font-family: sans-serif;\n }\n kuc-mobile-multi-choice-1-18-0:lang(zh),\n kuc-mobile-multi-choice-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", "Lucida Grande", "Lucida Sans Unicode", Arial,\n Verdana, sans-serif;\n }\n kuc-mobile-multi-choice-1-18-0:lang(zh-TW),\n kuc-mobile-multi-choice-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黒體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC","Lucida Grande","Lucida Sans Unicode",Arial,\n Verdana,sans-serif\n }\n kuc-mobile-multi-choice-1-18-0 {\n display: inline-block;\n width: 100%;\n }\n\n kuc-mobile-multi-choice-1-18-0[hidden] {\n display: none;\n }\n\n .kuc-mobile-multi-choice-1-18-0__label {\n display: inline-block;\n font-size: 86%;\n font-weight: bold;\n line-height: 1.5;\n padding: 0px;\n margin: 0 0 4px 0;\n white-space: nowrap;\n }\n\n .kuc-mobile-multi-choice-1-18-0__label[hidden] {\n display: none;\n }\n\n .kuc-mobile-multi-choice-1-18-0__input-form {\n word-wrap: break-word;\n min-height: 1em;\n padding-left: 0.5em;\n padding-right: 0.5em;\n }\n\n .kuc-mobile-multi-choice-1-18-0__input-form__select {\n display: inline-block;\n border-radius: 0.4em;\n max-width: 100%;\n }\n\n .kuc-mobile-multi-choice-1-18-0__input-form__select.kuc--required {\n border: 1px solid #cf4a38;\n }\n\n .kuc-mobile-multi-choice-1-18-0__input-form__select__input {\n min-width: 100px;\n max-width: 100%;\n }\n\n .kuc-mobile-multi-choice-1-18-0__input-form__select__input:disabled {\n color: #999999;\n -webkit-text-fill-color: #999999;\n background-color: #d5d7d9;\n opacity: 1;\n }\n\n .kuc-mobile-multi-choice-1-18-0__input-form__select__input option:disabled {\n color: #999999;\n -webkit-text-fill-color: #999999;\n background-color: #d5d7d9;\n opacity: 1;\n }\n\n .kuc-mobile-multi-choice-1-18-0__input-form__select__input option:disabled[selected] {\n background-color: #cecece; /* Chrome */\n background-color: -moz-cellhighlight; /* Firefox */\n opacity: 1;\n }\n\n .kuc-mobile-multi-choice-1-18-0__input-form__select__input:disabled option {\n color: #999999;\n -webkit-text-fill-color: #999999;\n }\n'),aa=e}})();const sa=aa;var la=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let ua;(()=>{if(ua=window.customElements.get("kuc-mobile-radio-button-1-18-0"),!ua){class e extends Ji{constructor(e){super(),this.className="",this.error="",this.id="",this.label="",this.value="",this.selectedIndex=-1,this.borderVisible=!0,this.disabled=!1,this.requiredIcon=!1,this.visible=!0,this.items=[],this._GUID=Qi();const t=rr(e);this._setInitialValue(t),Object.assign(this,t)}_setInitialValue(e){!("value"in e)&&"selectedIndex"in e&&(this.value=this._getValue(e)||"")}willUpdate(e){if(e.has("value")){if(""!==this.value)return;this.selectedIndex=-1}}_handleChangeInput(e){e.stopPropagation();const t=e.target,n=t.value,i=t.dataset.index||"0",r=parseInt(i,10);if(this.value===n&&this.selectedIndex===r)return;const o={oldValue:this.value,value:n};this.value=n,this.selectedIndex=r,Zi(this,"change",o)}_getRadioIconSvgTemplate(e,t){return xt`
|
||
<svg
|
||
class="kuc-mobile-radio-button-1-18-0__group__select-menu__item__label__icon"
|
||
width="21"
|
||
height="21"
|
||
viewBox="0 0 21 21"
|
||
fill="none"
|
||
xmlns="http://www.w3.org/2000/svg"
|
||
>
|
||
<defs>
|
||
<radialGradient id="${this._GUID}-shadow">
|
||
<stop offset="0%" style="stop-color:#5b5b5b;stop-opacity:0" />
|
||
<stop offset="30%" style="stop-color:#5b5b5b;stop-opacity:0" />
|
||
<stop offset="80%" style="stop-color:#5b5b5b;stop-opacity:0.1" />
|
||
<stop offset="90%" style="stop-color:#5b5b5b;stop-opacity:0.15" />
|
||
<stop offset="100%" style="stop-color:#5b5b5b;stop-opacity:0.2" />
|
||
</radialGradient>
|
||
</defs>
|
||
<circle
|
||
fill="url(#shadow)"
|
||
cx="10.5"
|
||
cy="10.5"
|
||
r="10.15"
|
||
stroke="#bbbbbb" stroke-width="1"/>
|
||
${t?xt`<circle cx="10.5" cy="10.5" r="6.5" fill="${"#5b5b5b"}"/>`:""}
|
||
</svg>
|
||
`}_isCheckedItem(e,t){return this.value?e.value===this.value&&this.selectedIndex===t:this.selectedIndex===t}_getItemTemplate(e,t){const n=this._isCheckedItem(e,t);return kt`
|
||
<div
|
||
class="kuc-mobile-radio-button-1-18-0__group__select-menu__item${e.disabled?" kuc-mobile-radio-button-1-18-0__group__select-menu__item--disabled":""}"
|
||
>
|
||
<input
|
||
type="radio"
|
||
aria-describedby="${this._GUID}-error"
|
||
id="${this._GUID}-item-${t}"
|
||
data-index="${t}"
|
||
class="kuc-mobile-radio-button-1-18-0__group__select-menu__item__input"
|
||
name="${this._GUID}-group"
|
||
value="${void 0!==e.value?e.value:""}"
|
||
aria-invalid="${""!==this.error}"
|
||
aria-required="${this.requiredIcon}"
|
||
?disabled="${this.disabled||e.disabled}"
|
||
@change="${this._handleChangeInput}"
|
||
/>
|
||
<label
|
||
class="kuc-mobile-radio-button-1-18-0__group__select-menu__item__label"
|
||
for="${this._GUID}-item-${t}"
|
||
>${this._getRadioIconSvgTemplate(this.disabled,n)}
|
||
<div
|
||
class="kuc-mobile-radio-button-1-18-0__group__select-menu__item__label__value"
|
||
>
|
||
${void 0===e.label?e.value:e.label}
|
||
</div>
|
||
</label>
|
||
</div>
|
||
`}shouldUpdate(e){return e.has("items")&&!fr(this.items)?(this.throwErrorAfterUpdateComplete(En),!1):e.has("value")&&!ur(this.value)?(this.throwErrorAfterUpdateComplete(In),!1):!(e.has("selectedIndex")&&!pr(this.selectedIndex)&&(this.throwErrorAfterUpdateComplete(Dn),1))}update(e){(e.has("items")||e.has("value")||e.has("selectedIndex"))&&(this.selectedIndex=this._getSelectedIndex(),this.value=this._getValue({items:this.items,selectedIndex:this.selectedIndex})||""),super.update(e)}render(){return kt`
|
||
<div class="kuc-mobile-radio-button-1-18-0__group">
|
||
<div
|
||
class="kuc-mobile-radio-button-1-18-0__group__label"
|
||
?hidden="${!this.label}"
|
||
>
|
||
<kuc-base-mobile-label-1-18-0
|
||
.text="${this.label}"
|
||
.requiredIcon="${this.requiredIcon}"
|
||
></kuc-base-mobile-label-1-18-0>
|
||
</div>
|
||
<div
|
||
class="kuc-mobile-radio-button-1-18-0__group__select-menu"
|
||
?borderVisible="${this.borderVisible}"
|
||
?disabled="${this.disabled}"
|
||
>
|
||
${this.items.map(((e,t)=>this._getItemTemplate(e,t)))}
|
||
</div>
|
||
<kuc-base-mobile-error-1-18-0
|
||
.text="${this.error}"
|
||
.guid="${this._GUID}"
|
||
ariaLive="assertive"
|
||
>
|
||
</kuc-base-mobile-error-1-18-0>
|
||
</div>
|
||
`}updated(){this._inputEls.forEach(((e,t)=>{e.checked=this.value===e.value&&t===this.selectedIndex}))}_getSelectedIndex(){if(!this.value)return this.items[this.selectedIndex]?this.selectedIndex:-1;const e=this.items.findIndex((e=>e.value===this.value));if(-1===e)return-1;const t=this.items.findIndex(((e,t)=>e.value===this.value&&t===this.selectedIndex));return t>-1?t:e}_getValue(e){const t=(e.items||[])[0===e.selectedIndex||e.selectedIndex?e.selectedIndex:-1];return t?t.value:""}}la([on({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),la([on({type:String})],e.prototype,"error",void 0),la([on({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),la([on({type:String})],e.prototype,"label",void 0),la([on({type:String})],e.prototype,"value",void 0),la([on({type:Number})],e.prototype,"selectedIndex",void 0),la([on({type:Boolean})],e.prototype,"borderVisible",void 0),la([on({type:Boolean})],e.prototype,"disabled",void 0),la([on({type:Boolean})],e.prototype,"requiredIcon",void 0),la([on({type:Boolean,attribute:"hidden",reflect:!0,converter:ji})],e.prototype,"visible",void 0),la([on({type:Array})],e.prototype,"items",void 0),la([gn(".kuc-mobile-radio-button-1-18-0__group__select-menu__item__input")],e.prototype,"_inputEls",void 0),window.customElements.define("kuc-mobile-radio-button-1-18-0",e),Xi('\n kuc-mobile-radio-button-1-18-0,\n kuc-mobile-radio-button-1-18-0 * {\n font-size: 13px;\n color: #333333;\n font-family: "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN",\n "ヒラギノ角ゴ ProN W3", "MS Pゴシック", "Lucida Grande",\n "Lucida Sans Unicode", Arial, Verdana, sans-serif;\n }\n kuc-mobile-radio-button-1-18-0:lang(es),\n kuc-mobile-radio-button-1-18-0:lang(es) * {\n font-family: sans-serif;\n }\n kuc-mobile-radio-button-1-18-0:lang(zh) ,\n kuc-mobile-radio-button-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", "Lucida Grande", "Lucida Sans Unicode", Arial,\n Verdana, sans-serif;\n }\n kuc-mobile-radio-button-1-18-0:lang(zh-TW),\n kuc-mobile-radio-button-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黒體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC","Lucida Grande","Lucida Sans Unicode",Arial,\n Verdana,sans-serif\n }\n kuc-mobile-radio-button-1-18-0 {\n width: 100%;\n display: inline-block;\n }\n\n kuc-mobile-radio-button-1-18-0[hidden] {\n display: none;\n }\n\n .kuc-mobile-radio-button-1-18-0__group {\n border: none;\n height: auto;\n display: inline-block;\n width: 100%;\n vertical-align: top;\n }\n\n .kuc-mobile-radio-button-1-18-0__group__label {\n display: inline-block;\n font-size: 86%;\n font-weight: bold;\n line-height: 1.5;\n padding: 0px;\n margin: 0 0 4px 0;\n white-space: nowrap;\n }\n\n .kuc-mobile-radio-button-1-18-0__group__label[hidden] {\n display: none;\n }\n\n .kuc-mobile-radio-button-1-18-0__group__select-menu {\n margin-right: 0.5em;\n margin-left: 0.5em;\n }\n\n .kuc-mobile-radio-button-1-18-0__group__select-menu[bordervisible] {\n border-color: #b3b3b3;\n border-width: 1px;\n border-style: solid;\n border-radius: 0.4em;\n }\n\n .kuc-mobile-radio-button-1-18-0__group__select-menu__item {\n border: 1px solid transparent;\n position: relative;\n white-space: normal;\n word-wrap: normal;\n height: 45px;\n display: block;\n }\n\n .kuc-mobile-radio-button-1-18-0__group__select-menu[bordervisible]\n .kuc-mobile-radio-button-1-18-0__group__select-menu__item {\n border-bottom: 1px solid #b3b3b3;\n }\n\n .kuc-mobile-radio-button-1-18-0__group__select-menu[bordervisible]\n .kuc-mobile-radio-button-1-18-0__group__select-menu__item:last-child {\n border-bottom: 0px;\n }\n\n .kuc-mobile-radio-button-1-18-0__group__select-menu__item__input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n }\n\n .kuc-mobile-radio-button-1-18-0__group__select-menu__item__label__icon {\n position: absolute;\n top: 50%;\n box-sizing: border-box;\n margin-top: -11px;\n width: 21px;\n height: 21px;\n box-shadow: 1px 1px 3px #f5f5f5 inset, -1px -1px 3px #f5f5f5 inset;\n content: "";\n border-radius: 9px;\n left: 8px;\n }\n\n .kuc-mobile-radio-button-1-18-0__group__select-menu__item__label__value {\n height: 45px;\n line-height: 45px;\n padding-left: 35px;\n }\n\n .kuc-mobile-radio-button-1-18-0__group__select-menu[disabled], \n .kuc-mobile-radio-button-1-18-0__group__select-menu__item--disabled {\n background-color: #d5d7d9;\n color: #999999;\n -webkit-text-fill-color: #999999;\n background-color: #d5d7d9;\n opacity: 1;\n }\n .kuc-mobile-radio-button-1-18-0__group__select-menu[bordervisible]\n .kuc-mobile-radio-button-1-18-0__group__select-menu__item--disabled:last-child {\n border-bottom-left-radius: 0.3em;\n border-bottom-right-radius: 0.3em;\n }\n .kuc-mobile-radio-button-1-18-0__group__select-menu[bordervisible]\n .kuc-mobile-radio-button-1-18-0__group__select-menu__item--disabled:first-child {\n border-top-left-radius: 0.3em;\n border-top-right-radius: 0.3em;\n }\n\n .kuc-mobile-radio-button-1-18-0__group__select-menu__item__label {\n position: absolute;\n white-space: nowrap;\n width: 100%;\n top: 50%;\n transform: translateY(-50%);\n height: 100%;\n padding: 0px;\n }\n'),ua=e}})();const ca=ua;var da=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let ha;(()=>{if(ha=window.customElements.get("kuc-mobile-text-1-18-0"),!ha){class e extends Ji{constructor(e){super(),this.className="",this.error="",this.id="",this.label="",this.placeholder="",this.prefix="",this.suffix="",this.textAlign="left",this.value="",this.disabled=!1,this.requiredIcon=!1,this.visible=!0,this._GUID=Qi();const t=rr(e);Object.assign(this,t)}_handleFocusInput(e){const t={value:this.value};Zi(this,"focus",t)}_handleChangeInput(e){e.stopPropagation();const t=e.target,n={value:"",oldValue:this.value};this.value=t.value,n.value=this.value,Zi(this,"change",n)}_handleInputText(e){e.stopPropagation();const t={value:e.target.value,data:e.data};Zi(this,"input",t)}render(){return kt`
|
||
<label
|
||
class="kuc-mobile-text-1-18-0__label"
|
||
for="${this._GUID}-label"
|
||
?hidden="${!this.label}"
|
||
>
|
||
<kuc-base-mobile-label-1-18-0
|
||
.requiredIcon="${this.requiredIcon}"
|
||
.text="${this.label}"
|
||
></kuc-base-mobile-label-1-18-0>
|
||
</label>
|
||
<div class="kuc-mobile-text-1-18-0__input-form">
|
||
<span
|
||
class="kuc-mobile-text-1-18-0__input-form__prefix"
|
||
?hidden="${!this.prefix}"
|
||
>${this.prefix}</span
|
||
>
|
||
<input
|
||
class="kuc-mobile-text-1-18-0__input-form__input"
|
||
id="${this._GUID}-label"
|
||
placeholder="${this.placeholder}"
|
||
textAlign="${this.textAlign}"
|
||
type="text"
|
||
.value="${this.value}"
|
||
?disabled="${this.disabled}"
|
||
aria-invalid="${""!==this.error}"
|
||
aria-describedby="${this._GUID}-error"
|
||
aria-required="${this.requiredIcon}"
|
||
@focus="${this._handleFocusInput}"
|
||
@change="${this._handleChangeInput}"
|
||
@input="${this._handleInputText}"
|
||
/>
|
||
<span
|
||
class="kuc-mobile-text-1-18-0__input-form__suffix"
|
||
?hidden="${!this.suffix}"
|
||
>${this.suffix}</span
|
||
>
|
||
</div>
|
||
<kuc-base-mobile-error-1-18-0 .guid="${this._GUID}" .text="${this.error}">
|
||
</kuc-base-mobile-error-1-18-0>
|
||
`}}da([on({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),da([on({type:String})],e.prototype,"error",void 0),da([on({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),da([on({type:String})],e.prototype,"label",void 0),da([on({type:String})],e.prototype,"placeholder",void 0),da([on({type:String})],e.prototype,"prefix",void 0),da([on({type:String})],e.prototype,"suffix",void 0),da([on({type:String})],e.prototype,"textAlign",void 0),da([on({type:String})],e.prototype,"value",void 0),da([on({type:Boolean})],e.prototype,"disabled",void 0),da([on({type:Boolean})],e.prototype,"requiredIcon",void 0),da([on({type:Boolean,attribute:"hidden",reflect:!0,converter:ji})],e.prototype,"visible",void 0),window.customElements.define("kuc-mobile-text-1-18-0",e),Xi('\n kuc-mobile-text-1-18-0,\n kuc-mobile-text-1-18-0 * {\n font-size: 13px;\n font-family: "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN",\n "ヒラギノ角ゴ ProN W3", "MS Pゴシック", "Lucida Grande",\n "Lucida Sans Unicode", Arial, Verdana, sans-serif;\n }\n kuc-mobile-text-1-18-0:lang(es),\n kuc-mobile-text-1-18-0:lang(es) * {\n font-family: sans-serif;\n }\n kuc-mobile-text-1-18-0:lang(zh),\n kuc-mobile-text-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", "Lucida Grande", "Lucida Sans Unicode", Arial,\n Verdana, sans-serif;\n }\n kuc-mobile-text-1-18-0:lang(zh-TW),\n kuc-mobile-text-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黒體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC","Lucida Grande","Lucida Sans Unicode",Arial,\n Verdana,sans-serif\n }\n kuc-mobile-text-1-18-0 {\n display: block;\n }\n kuc-mobile-text-1-18-0[hidden] {\n display: none;\n }\n .kuc-mobile-text-1-18-0__label {\n display: inline-block;\n font-weight: bold;\n line-height: 1.5;\n padding: 0;\n margin: 0 0 4px 0;\n white-space: nowrap;\n }\n .kuc-mobile-text-1-18-0__label[hidden] {\n display: none;\n }\n .kuc-mobile-text-1-18-0__input-form {\n padding-left: 0.5em;\n padding-right: 0.5em;\n display: flex;\n align-items: center;\n }\n .kuc-mobile-text-1-18-0__input-form__prefix {\n margin-right: 4px;\n color: #888888;\n }\n .kuc-mobile-text-1-18-0__input-form__prefix[hidden] {\n display: none;\n }\n .kuc-mobile-text-1-18-0__input-form__input {\n width: 100%;\n min-width: 20px;\n padding: 0.4em;\n border: 1px solid #b3b3b3;\n outline: 0;\n box-shadow: 0 1px 0 #ffffff, inset 0 2px 3px #dadada;\n border-radius: 0.4em;\n box-sizing: border-box;\n text-align: left;\n }\n .kuc-mobile-text-1-18-0__input-form__input[aria-required="true"] {\n border: 1px solid #cf4a38;\n }\n .kuc-mobile-text-1-18-0__input-form__input[textAlign="right"] {\n text-align: right;\n }\n .kuc-mobile-text-1-18-0__input-form__input:disabled {\n color: #999999;\n background-color: #d5d7d9;\n -webkit-text-fill-color: #999999;\n opacity: 1;\n -webkit-opacity: 1;\n }\n .kuc-mobile-text-1-18-0__input-form__suffix {\n margin-left: 4px;\n color: #888888;\n }\n .kuc-mobile-text-1-18-0__input-form__suffix[hidden] {\n display: none;\n }\n'),ha=e}})();const pa=ha;var fa=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let _a;(()=>{if(_a=window.customElements.get("kuc-mobile-textarea-1-18-0"),!_a){class e extends Ji{constructor(e){super(),this.className="",this.error="",this.id="",this.label="",this.placeholder="",this.value="",this.disabled=!1,this.requiredIcon=!1,this.visible=!0,this._GUID=Qi();const t=rr(e);Object.assign(this,t)}_handleFocusInput(e){const t={value:this.value};Zi(this,"focus",t)}_handleChangeInput(e){e.stopPropagation();const t=e.target,n={value:"",oldValue:this.value};this.value=t.value,n.value=this.value,Zi(this,"change",n)}_handleInputTextArea(e){e.stopPropagation();const t={value:e.target.value,data:e.data};Zi(this,"input",t)}render(){return kt`
|
||
<label
|
||
class="kuc-mobile-textarea-1-18-0__label"
|
||
for="${this._GUID}-label"
|
||
?hidden="${!this.label}"
|
||
>
|
||
<kuc-base-mobile-label-1-18-0
|
||
.requiredIcon="${this.requiredIcon}"
|
||
.text="${this.label}"
|
||
></kuc-base-mobile-label-1-18-0>
|
||
</label>
|
||
<div class="kuc-mobile-textarea-1-18-0__form">
|
||
<textarea
|
||
class="kuc-mobile-textarea-1-18-0__form__textarea"
|
||
id="${this._GUID}-label"
|
||
placeholder="${this.placeholder}"
|
||
?disabled="${this.disabled}"
|
||
.value="${this.value}"
|
||
aria-invalid="${""!==this.error}"
|
||
aria-describedby="${this._GUID}-error"
|
||
aria-required="${this.requiredIcon}"
|
||
@focus="${this._handleFocusInput}"
|
||
@change="${this._handleChangeInput}"
|
||
@input="${this._handleInputTextArea}"
|
||
/></textarea>
|
||
</div>
|
||
<kuc-base-mobile-error-1-18-0 .guid="${this._GUID}" .text="${this.error}">
|
||
</kuc-base-mobile-error-1-18-0>
|
||
`}}fa([on({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),fa([on({type:String})],e.prototype,"error",void 0),fa([on({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),fa([on({type:String})],e.prototype,"label",void 0),fa([on({type:String})],e.prototype,"placeholder",void 0),fa([on({type:String})],e.prototype,"value",void 0),fa([on({type:Boolean})],e.prototype,"disabled",void 0),fa([on({type:Boolean})],e.prototype,"requiredIcon",void 0),fa([on({type:Boolean,attribute:"hidden",reflect:!0,converter:ji})],e.prototype,"visible",void 0),window.customElements.define("kuc-mobile-textarea-1-18-0",e),Xi('\n kuc-mobile-textarea-1-18-0,\n kuc-mobile-textarea-1-18-0 * {\n font-size: 13px;\n font-family: "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN",\n "ヒラギノ角ゴ ProN W3", "MS Pゴシック", "Lucida Grande",\n "Lucida Sans Unicode", Arial, Verdana, sans-serif;\n }\n kuc-mobile-textarea-1-18-0:lang(es),\n kuc-mobile-textarea-1-18-0:lang(es) * {\n font-family: sans-serif;\n }\n kuc-mobile-textarea-1-18-0:lang(zh),\n kuc-mobile-textarea-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", "Lucida Grande", "Lucida Sans Unicode", Arial,\n Verdana, sans-serif;\n }\n kuc-mobile-textarea-1-18-0:lang(zh-TW),\n kuc-mobile-textarea-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黒體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC","Lucida Grande","Lucida Sans Unicode",Arial,\n Verdana,sans-serif\n }\n kuc-mobile-textarea-1-18-0 {\n display: block;\n }\n kuc-mobile-textarea-1-18-0[hidden] {\n display: none;\n }\n .kuc-mobile-textarea-1-18-0__label {\n padding: 0;\n margin: 0 0 4px 0;\n display: inline-block;\n font-weight: bold;\n line-height: 1.5;\n white-space: nowrap;\n }\n .kuc-mobile-textarea-1-18-0__label[hidden] {\n display: none;\n }\n .kuc-mobile-textarea-1-18-0__form {\n padding-left: 0.5em;\n padding-right: 0.5em;\n }\n .kuc-mobile-textarea-1-18-0__form__textarea {\n width: 100%;\n height: 120px;\n padding: 0.4em;\n border: 1px solid #b3b3b3;\n outline: 0;\n box-shadow: 0 1px 0 #ffffff, inset 0 2px 3px #dadada;\n border-radius: 0.4em;\n box-sizing: border-box;\n vertical-align: top;\n }\n .kuc-mobile-textarea-1-18-0__form__textarea[aria-required="true"] {\n border: 1px solid #cf4a38;\n }\n .kuc-mobile-textarea-1-18-0__form__textarea:disabled {\n color: #999999;\n background-color: #d5d7d9;\n opacity: 1;\n }\n'),_a=e}})();const ga=_a;var ba=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let ma;(()=>{if(ma=window.customElements.get("kuc-mobile-notification-1-18-0"),!ma){class e extends Ji{constructor(e){super(),this.className="",this.text="",this.duration=-1,this.container=document.body,this._isOpened=!1;const t=rr(e);Object.assign(this,t)}_handleClickCloseButton(e){this.close()}_getCloseButtonSvgTemplate(){return xt`
|
||
<svg
|
||
height="12"
|
||
width="12"
|
||
viewBox="0 0 512.001 512.001"
|
||
xmlns="http://www.w3.org/2000/svg">
|
||
<g>
|
||
<path
|
||
d="m512.001 84.853-84.853-84.853-171.147 171.147-171.148-171.147-84.853 84.853 171.148 171.147-171.148 171.148 84.853 84.853 171.148-171.147 171.147 171.147 84.853-84.853-171.148-171.148z"/>
|
||
</g>
|
||
</svg>
|
||
`}_setAutoCloseTimer(){!Number.isFinite(this.duration)||this.duration<0||(this._clearAutoCloseTimer(),this._timeoutID=window.setTimeout((()=>{this.close()}),this.duration))}_clearAutoCloseTimer(){this._timeoutID&&window.clearTimeout(this._timeoutID)}open(){if(!this._isValidContainerElement())return document.body.appendChild(this),requestAnimationFrame((()=>{document.body.removeChild(this)})),void this.performUpdate();this.container.appendChild(this),this.performUpdate(),this.classList.remove("kuc-mobile-notification-fadeout-1-18-0"),this.classList.add("kuc-mobile-notification-fadein-1-18-0"),this._isOpened=!0,this._setAutoCloseTimer()}close(){this._close(),Zi(this,"close")}_close(){this._isOpened=!1,this.classList.remove("kuc-mobile-notification-fadein-1-18-0"),this.classList.add("kuc-mobile-notification-fadeout-1-18-0"),this._clearAutoCloseTimer()}shouldUpdate(e){if(e.has("container")){if(null===this.container||void 0===this.container)return this._isOpened&&this._close(),!1;const e=this._isValidContainerElement(),t=!e||!document.contains(this.container);if(this._isOpened&&t&&this._close(),!e)return this.throwErrorAfterUpdateComplete(Rn),!1}return!0}_isValidContainerElement(){return this.container instanceof HTMLElement}render(){return kt`
|
||
<div class="kuc-mobile-notification-1-18-0__notification">
|
||
<pre
|
||
class="kuc-mobile-notification-1-18-0__notification__title"
|
||
aria-live="assertive"
|
||
role="${this._isOpened?"alert":""}"
|
||
><!---->${this.text}</pre>
|
||
<button
|
||
class="kuc-mobile-notification-1-18-0__notification__close-button"
|
||
type="button"
|
||
aria-label="close"
|
||
@click="${this._handleClickCloseButton}"
|
||
>
|
||
${this._getCloseButtonSvgTemplate()}
|
||
</button>
|
||
</div>
|
||
`}}ba([on({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),ba([on({type:String})],e.prototype,"text",void 0),ba([on({type:Number})],e.prototype,"duration",void 0),ba([on()],e.prototype,"container",void 0),ba([cn()],e.prototype,"_isOpened",void 0),window.customElements.define("kuc-mobile-notification-1-18-0",e),Xi('\n kuc-mobile-notification-1-18-0 {\n display: block;\n font-size: 13px;\n font-family: "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN",\n "ヒラギノ角ゴ ProN W3", "MS Pゴシック", "Lucida Grande",\n "Lucida Sans Unicode", Arial, Verdana, sans-serif;\n visibility: hidden;\n animation-fill-mode: forwards;\n position: relative;\n top: -100px;\n left: 0;\n }\n kuc-mobile-notification-1-18-0:lang(es),\n kuc-mobile-notification-1-18-0:lang(es) * {\n font-family: sans-serif;\n }\n kuc-mobile-notification-1-18-0:lang(zh),\n kuc-mobile-notification-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", "Lucida Grande", "Lucida Sans Unicode", Arial,\n Verdana, sans-serif;\n }\n kuc-mobile-notification-1-18-0:lang(zh-TW),\n kuc-mobile-notification-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黒體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC","Lucida Grande","Lucida Sans Unicode",Arial,\n Verdana,sans-serif\n }\n .kuc-mobile-notification-fadein-1-18-0 {\n animation-name: kuc-mobile-notification-fade-in-1-18-0;\n animation-duration: 250ms;\n animation-timing-function: ease-out;\n width: 100%;\n position: fixed;\n visibility: visible;\n }\n\n .kuc-mobile-notification-fadeout-1-18-0 {\n animation-name: kuc-mobile-notification-fade-out-1-18-0;\n animation-duration: 250ms;\n animation-timing-function: ease-out;\n width: 100%;\n position: fixed;\n }\n\n .kuc-mobile-notification-1-18-0__notification {\n background-color: #ffffcf;\n background: linear-gradient(#ffda4a, #ffc32c);\n width: 100%;\n min-height: 48px;\n z-index: 20;\n font-size: 12px;\n font-weight: 700;\n line-height: 14px;\n text-shadow: rgba(255, 255, 255, 0.5) 0 1px 0;\n color: #333333;\n text-align: center;\n vertical-align: top;\n }\n\n .kuc-mobile-notification-1-18-0__notification__title {\n display: inline-block;\n vertical-align: middle;\n padding: 17px 44px 11px 44px;\n margin: 0 0 0 -20px;\n text-align: left;\n font-weight: inherit;\n font-family: inherit;\n word-break: break-word;\n white-space: pre-wrap;\n }\n\n .kuc-mobile-notification-1-18-0__notification__close-button {\n position: absolute;\n right: 0;\n top: 0;\n width: 44px;\n height: 48px;\n padding: 0;\n background-color: transparent;\n border: none;\n vertical-align: middle;\n pointer-events: auto;\n outline: none;\n }\n @keyframes kuc-mobile-notification-fade-in-1-18-0 {\n 0% {\n top: -100px;\n left: 0;\n }\n 50% {\n top: -50px;\n left: 0;\n }\n 100% {\n top: 0;\n left: 0;\n }\n }\n @keyframes kuc-mobile-notification-fade-out-1-18-0 {\n 0% {\n visibility: visible;\n top: 0;\n left: 0;\n }\n 50% {\n visibility: visible;\n top: -50px;\n left: 0;\n }\n 100% {\n top: -100px;\n left: 0;\n }\n }\n'),ma=e}})();const va=ma;var ya=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class ka extends Ji{constructor(){super(...arguments),this.language="en",this.month=1,this.year=(new Date).getFullYear(),this._locale=Ni("en")}update(e){e.has("language")&&(this._locale=Ni(this.language)),this._monthOptions=this._generateMonthOptions(),this._yearOptions=this._generateYearOptions(),super.update(e)}render(){return kt`
|
||
<div class="kuc-base-mobile-datetime-calendar-header-1-18-0__group">
|
||
<button
|
||
aria-label="previous month"
|
||
type="button"
|
||
class="kuc-base-mobile-datetime-calendar-header-1-18-0__group__button kuc-base-mobile-datetime-calendar-header-1-18-0__group__button--previous-month"
|
||
@click="${this._handleClickCalendarPrevMonthBtn}"
|
||
>
|
||
${this._getLeftArrowIconSvgTemplate()}
|
||
</button>
|
||
<div class="kuc-base-mobile-datetime-calendar-header-1-18-0__group__center">
|
||
${this._getYearMonthTemplate()}
|
||
</div>
|
||
<button
|
||
aria-label="next month"
|
||
type="button"
|
||
class="kuc-base-mobile-datetime-calendar-header-1-18-0__group__button kuc-base-mobile-datetime-calendar-header-1-18-0__group__button--next-month"
|
||
@click="${this._handleClickCalendarNextMonthBtn}"
|
||
>
|
||
${this._getRightArrowIconSvgTemplate()}
|
||
</button>
|
||
</div>
|
||
`}updated(e){e.has("month")&&this._setSelectMonthWidth(this.month),e.has("year")&&this._setYearSelectedIndex(),super.update(e)}_setSelectMonthWidth(e){const t=this._monthOptions[e-1].label;if(!t)return;const n=document.createElement("span");n.innerText=t;const i=(e=>{const t=(e=>{const t=document.createElement("div");return t.style.cssText=`\n height: 0px;\n overflow: hidden;\n display: inline-block;\n font-size: 14px;\n font-family: ${window.getComputedStyle(e).fontFamily};\n `,t})(e),n=e.cloneNode(!0);if(n.hasAttribute("hidden"))return 0;t.appendChild(n),document.body.appendChild(t);const i=t.getBoundingClientRect().width;return document.body.removeChild(t),i})(n);this._selectMonthEl.selectedIndex=this.month-1,this._selectMonthEl.style.width=i+35+"px"}_setYearSelectedIndex(){this.year<100?this._selectYearEl.selectedIndex=this.year:this._selectYearEl.selectedIndex=100}_generateMonthOptions(){return this._locale.MONTH_SELECT.map(((e,t)=>({value:`${t+1}`,label:`${e}`})))}_generateYearOptions(){return this._getYearOptions().map((e=>({value:`${e}`,label:`${e}${this._locale.YEAR_SELECT_POSTFIX}`})))}_getYearOptions(){const e=[];Number.isInteger(this.year)||(this.year=(new Date).getFullYear());let t=this.year<100?0:this.year-100;const n=this.year>=9899?9999:this.year+100;for(t>=n&&(t=n-100);t<=n;t++)e.push(t);return e}_getYearMonthTemplate(){return"zh"===this.language||"ja"===this.language||"zh-TW"===this.language?kt` ${this._getYearTemplate()}${this._getMonthTemplate()} `:kt` ${this._getMonthTemplate()}${this._getYearTemplate()} `}_handleChangeMonthDropdown(e){e.stopPropagation(),e.preventDefault();const t=e.target;this.month=parseInt(t.value,10),this._dispatchCalendarHeaderChangeEvent()}_handleChangeYearDropdown(e){e.stopPropagation(),e.preventDefault();const t=e.target;this.year=parseInt(t.value,10),this._dispatchCalendarHeaderChangeEvent()}_handleClickCalendarPrevMonthBtn(e){e.stopPropagation(),1===this.month?(this.month=12,this.year--):this.month-=1,this._dispatchCalendarHeaderChangeEvent()}_handleClickCalendarNextMonthBtn(e){e.stopPropagation(),12===this.month?(this.month=1,this.year++):this.month+=1,this._dispatchCalendarHeaderChangeEvent()}_dispatchCalendarHeaderChangeEvent(){const e=this.year,t=this.month;Zi(this,"kuc:mobile-calendar-header-change",{value:`${e}-${t}`})}_getOptionsMonthTemplate(){return this._monthOptions.map((e=>kt`
|
||
<option
|
||
?selected="${parseInt(e.value,10)===this.month}"
|
||
value="${e.value}"
|
||
>
|
||
${e.label}
|
||
</option>
|
||
`))}_getOptionsYearTemplate(){return this._yearOptions.map((e=>kt`
|
||
<option
|
||
?selected="${parseInt(e.value,10)===this.year}"
|
||
value="${e.value}"
|
||
>
|
||
${e.label}
|
||
</option>
|
||
`))}_getMonthTemplate(){return kt`
|
||
<div
|
||
class="kuc-base-mobile-datetime-calendar-header-1-18-0__group__center__month"
|
||
>
|
||
<select
|
||
class="kuc-base-mobile-datetime-calendar-header-1-18-0__group__center__month__select"
|
||
@change="${this._handleChangeMonthDropdown}"
|
||
>
|
||
${this._getOptionsMonthTemplate()}
|
||
</select>
|
||
</div>
|
||
`}_getYearTemplate(){return kt`
|
||
<div
|
||
class="kuc-base-mobile-datetime-calendar-header-1-18-0__group__center__year"
|
||
>
|
||
<select
|
||
class="kuc-base-mobile-datetime-calendar-header-1-18-0__group__center__year__select"
|
||
@change="${this._handleChangeYearDropdown}"
|
||
>
|
||
${this._getOptionsYearTemplate()}
|
||
</select>
|
||
</div>
|
||
`}_getLeftArrowIconSvgTemplate(){return xt`
|
||
<svg
|
||
width="16"
|
||
height="14"
|
||
viewBox="0 0 16 14"
|
||
fill="none"
|
||
xmlns="http://www.w3.org/2000/svg"
|
||
>
|
||
<path
|
||
fill-rule="evenodd"
|
||
clip-rule="evenodd"
|
||
d="M8.70788 11.9567C9.0984 12.3472 9.0984 12.9804 8.70788 13.3709C8.31735 13.7614 7.68419 13.7614 7.29366 13.3709L2.34392 8.42118L0.929703 7.00696L2.34392 5.59275L7.29366 0.643003C7.68419 0.25248 8.31735 0.25248 8.70788 0.643003C9.0984 1.03353 9.0984 1.66669 8.70788 2.05722L4.68709 6.07801L14.0718 6.07801C14.6241 6.07801 15.0718 6.52572 15.0718 7.07801C15.0718 7.63029 14.6241 8.07801 14.0718 8.07801L4.82917 8.07801L8.70788 11.9567Z"
|
||
fill="#206694"
|
||
/>
|
||
</svg>`}_getRightArrowIconSvgTemplate(){return xt`
|
||
<svg
|
||
width="16"
|
||
height="14"
|
||
viewBox="0 0 16 14"
|
||
fill="none"
|
||
xmlns="http://www.w3.org/2000/svg"
|
||
>
|
||
<path
|
||
fill-rule="evenodd"
|
||
clip-rule="evenodd"
|
||
d="M7.29396 2.0572C6.90344 1.66668 6.90344 1.03351 7.29396 0.642991C7.68449 0.252466 8.31765 0.252467 8.70817 0.642991L13.6579 5.59274L15.0721 7.00695L13.6579 8.42117L8.70817 13.3709C8.31765 13.7614 7.68448 13.7614 7.29396 13.3709C6.90344 12.9804 6.90344 12.3472 7.29396 11.9567L11.3148 7.93591L1.93 7.93591C1.37772 7.93591 0.93 7.48819 0.93 6.93591C0.93 6.38362 1.37772 5.93591 1.93 5.93591L11.1727 5.93591L7.29396 2.0572Z"
|
||
fill="#206694"
|
||
/>
|
||
</svg>`}}ya([on({type:String,attribute:"lang",reflect:!0})],ka.prototype,"language",void 0),ya([on({type:Number,hasChanged(e){return(t=e)>0&&t<13;var t}})],ka.prototype,"month",void 0),ya([on({type:Number,hasChanged(e){return(t=e)>=0&&t<1e4;var t}})],ka.prototype,"year",void 0),ya([cn()],ka.prototype,"_monthOptions",void 0),ya([cn()],ka.prototype,"_yearOptions",void 0),ya([_n(".kuc-base-mobile-datetime-calendar-header-1-18-0__group__center__month__select")],ka.prototype,"_selectMonthEl",void 0),ya([_n(".kuc-base-mobile-datetime-calendar-header-1-18-0__group__center__year__select")],ka.prototype,"_selectYearEl",void 0),window.customElements.get("kuc-base-mobile-datetime-calendar-header-1-18-0")||(Xi('\nkuc-base-mobile-datetime-calendar-header-1-18-0,\nkuc-base-mobile-datetime-calendar-header-1-18-0 * {\n font-family: "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN",\n "ヒラギノ角ゴ ProN W3", "MS Pゴシック", "Lucida Grande",\n "Lucida Sans Unicode", Arial, Verdana, sans-serif;\n}\nkuc-base-mobile-datetime-calendar-header-1-18-0:lang(zh),\nkuc-base-mobile-datetime-calendar-header-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", "Lucida Grande", "Lucida Sans Unicode", Arial,\n Verdana, sans-serif;\n}\nkuc-base-mobile-datetime-calendar-header-1-18-0:lang(zh-TW),\nkuc-base-mobile-datetime-calendar-header-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黒體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC","Lucida Grande","Lucida Sans Unicode",Arial,\n Verdana,sans-serif\n}\nkuc-base-mobile-datetime-calendar-header-1-18-0:lang(es),\nkuc-base-mobile-datetime-calendar-header-1-18-0:lang(es) * {\n font-family: sans-serif;\n}\n.kuc-base-mobile-datetime-calendar-header-1-18-0__group {\n display: flex;\n justify-content: space-between;\n align-items: center;\n box-sizing: border-box;\n border-bottom: 1px solid #e3e7e8;\n padding: 0;\n white-space: nowrap;\n}\n.kuc-base-mobile-datetime-calendar-header-1-18-0__group__button {\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: inherit;\n border: 0;\n margin: 0;\n padding: 0;\n min-width: 40px;\n width: 40px;\n height: 40px;\n overflow: hidden;\n text-indent: 100%;\n white-space: nowrap;\n word-wrap: normal;\n cursor: pointer;\n -webkit-appearance: button;\n}\n.kuc-base-mobile-datetime-calendar-header-1-18-0__group__button-icon {\n vertical-align: middle;\n}\n.kuc-base-mobile-datetime-calendar-header-1-18-0__group__button:focus {\n outline: none;\n}\n.kuc-base-mobile-datetime-calendar-header-1-18-0__group__center {\n text-align: center;\n display: flex;\n flex: 1;\n justify-content: center;\n min-width: 186px;\n}\n.kuc-base-mobile-datetime-calendar-header-1-18-0__group__center\n > :first-child {\n padding-left: 13px;\n}\n.kuc-base-mobile-datetime-calendar-header-1-18-0__group__center__month,\n.kuc-base-mobile-datetime-calendar-header-1-18-0__group__center__year {\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.kuc-base-mobile-datetime-calendar-header-1-18-0__group__center__month__select,\n.kuc-base-mobile-datetime-calendar-header-1-18-0__group__center__year__select {\n font-size: 14px;\n font-weight: 700;\n padding: 0 22.4px 0 0;\n line-height: 40px;\n border: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n background: url("data:image/svg+xml,%3Csvg%0A%20%20%20%20width%3D%2211%22%0A%20%20%20%20height%3D%226%22%0A%20%20%20%20viewBox%3D%220%200%2011%206%22%0A%20%20%20%20fill%3D%22none%22%0A%20%20%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20%3E%0A%20%20%20%20%3Cpath%0A%20%20%20%20%20%20fill-rule%3D%22evenodd%22%0A%20%20%20%20%20%20clip-rule%3D%22evenodd%22%0A%20%20%20%20%20%20d%3D%22M5.5061%206L0%200L11%200L5.5061%206Z%22%0A%20%20%20%20%20%20fill%3D%22%234b4b4b%22%0A%20%20%20%20%2F%3E%0A%20%20%3C%2Fsvg%3E")\n no-repeat center right 0.6em #ffffff;\n}\n.kuc-base-mobile-datetime-calendar-header-1-18-0__group__center__month__select:focus,\n.kuc-base-mobile-datetime-calendar-header-1-18-0__group__center__year__select:focus {\n outline: none;\n}\n.kuc-base-mobile-datetime-calendar-header-1-18-0__month {\n margin: 0 4px 0 4px;\n}\n'),window.customElements.define("kuc-base-mobile-datetime-calendar-header-1-18-0",ka));var xa=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class wa extends Ji{constructor(){super(),this.month=1,this.year=2021,this.language="en",this.value="",this._month=1,this._year=2021,this._locale=Ni("en"),this._handleClickDocument=this._handleClickDocument.bind(this)}connectedCallback(){super.connectedCallback(),setTimeout((()=>{document.addEventListener("click",this._handleClickDocument)}),1)}disconnectedCallback(){document.removeEventListener("click",this._handleClickDocument),super.disconnectedCallback()}update(e){if(e.forEach(((e,t)=>{"language"===t&&(this._locale=Ni(this.language))})),e.has("month")&&(this._month=this.month),e.has("year")&&(this._year=this.year),e.has("value")){const{month:e,year:t}=this._separateDateValue();this._month=parseInt(e,10),this._year=parseInt(t,10)}super.update(e)}render(){return kt`
|
||
<table class="kuc-base-mobile-datetime-calendar-body-1-18-0__table" role="grid">
|
||
${this._getHeaderItemsTemplate()}<!--
|
||
-->${this._getDateItemsTemplate()}
|
||
</table>
|
||
`}_handleClickDocument(){Zi(this,"kuc:mobile-calendar-body-blur",{})}_handleClickDate(e){e.preventDefault(),e.stopPropagation();const t=e.target;t.setAttribute("aria-selected","true");const n=t.getAttribute("data-date");this._dispatchClickEvent(n)}_dispatchClickEvent(e){const t={oldValue:this.value,value:e};Zi(this,"kuc:mobile-calendar-body-click-date",t),this.value=e}_isToday(e){const t=new Date;return parseInt(e[0],10)===t.getFullYear()&&parseInt(e[1],10)===t.getMonth()+1&&parseInt(e[2],10)===t.getDate()}_separateDateValue(e=this.value){const t=e.split("-");return{day:t[2],month:t[1],year:t[0]}}_getDateClass(e,t){return t?this._isToday(e)?" kuc-base-mobile-datetime-calendar-body-1-18-0__table__date--today":"":" kuc-base-mobile-datetime-calendar-body-1-18-0__table__date--other-month"}_isSameDayOfMoment(e){const t=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[0],10);let r=(new Date).getDate();if(!this.value.split("-")[2])return!1;if(this.value&&(r=new Date(`${this.value}T00:00:00`).getDate()),r===n&&t===this._month)return!0;const o=new Date(i,this._month,0).getDate();return r>o&&o===n&&t===this._month}_getHeaderItemsTemplate(){return kt`
|
||
<thead>
|
||
<tr>
|
||
${this._locale.WEEK_DAYS.map((e=>kt`
|
||
<th
|
||
class="kuc-base-mobile-datetime-calendar-body-1-18-0__table__header"
|
||
role="columnheader"
|
||
abbr="${e.abbr}"
|
||
>
|
||
${e.text}
|
||
</th>
|
||
`))}
|
||
</tr>
|
||
</thead>
|
||
`}_getDateItemsTemplate(){const e=bi(this._year,this._month-1),t=this._locale.MONTH_SELECT[this._month-1];return kt`
|
||
<tbody>
|
||
${e.map((e=>kt`
|
||
<tr>
|
||
${e.map((e=>{const n=e.text.split("-"),i=this._isSameDayOfMoment(n),r=parseInt(n[1],10)===this._month,o=(this.value===e.attr||i)&&r;return kt`
|
||
<td
|
||
role="gridcell"
|
||
tabindex="${o?0:-1}"
|
||
aria-selected="${this.value===e.attr}"
|
||
aria-current="${!!this._isToday(n)&&"date"}"
|
||
class="kuc-base-mobile-datetime-calendar-body-1-18-0__table__date${o?"--selected":""}${this._getDateClass(n,r)}"
|
||
data-date="${e.attr}"
|
||
aria-label="${n[2]} ${t}"
|
||
@click="${this._handleClickDate}"
|
||
>
|
||
${n[2]||""}
|
||
</td>
|
||
`}))}
|
||
</tr>
|
||
`))}
|
||
</tbody>
|
||
`}}xa([on({type:Number})],wa.prototype,"month",void 0),xa([on({type:Number})],wa.prototype,"year",void 0),xa([on({type:String,attribute:"lang",reflect:!0})],wa.prototype,"language",void 0),xa([on({type:String,reflect:!0})],wa.prototype,"value",void 0),xa([cn()],wa.prototype,"_month",void 0),xa([cn()],wa.prototype,"_year",void 0),window.customElements.get("kuc-base-mobile-datetime-calendar-body-1-18-0")||(Xi('\nkuc-base-mobile-datetime-calendar-body-1-18-0,\nkuc-base-mobile-datetime-calendar-body-1-18-0 * {\n font-family: "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN",\n "ヒラギノ角ゴ ProN W3", "MS Pゴシック", "Lucida Grande",\n "Lucida Sans Unicode", Arial, Verdana, sans-serif;\n}\n\nkuc-base-mobile-datetime-calendar-body-1-18-0:lang(zh),\nkuc-base-mobile-datetime-calendar-body-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", "Lucida Grande", "Lucida Sans Unicode", Arial,\n Verdana, sans-serif;\n}\n\nkuc-base-mobile-datetime-calendar-body-1-18-0:lang(zh-TW),\nkuc-base-mobile-datetime-calendar-body-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黒體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC","Lucida Grande","Lucida Sans Unicode",Arial,\n Verdana,sans-serif\n}\n\nkuc-base-mobile-datetime-calendar-body-1-18-0:lang(es),\nkuc-base-mobile-datetime-calendar-body-1-18-0:lang(es) * {\n font-family: sans-serif;\n}\n\n.kuc-base-mobile-datetime-calendar-body-1-18-0__table,\n.kuc-base-mobile-datetime-calendar-body-1-18-0__table tr {\n border-collapse: separate;\n border-spacing: 0;\n}\n.kuc-base-mobile-datetime-calendar-body-1-18-0__table__date--selected {\n border-spacing: 1px;\n padding: 0px;\n}\n.kuc-base-mobile-datetime-calendar-body-1-18-0__table__date {\n max-width: 40px;\n border-spacing: 1px;\n cursor: pointer;\n box-sizing: border-box;\n width: 40px;\n height: 40px;\n border: 1px solid #ffffff;\n text-align: center;\n vertical-align: middle;\n user-select: none;\n color: #333333;\n font-size: 14px;\n font-weight: 400;\n}\n.kuc-base-mobile-datetime-calendar-body-1-18-0__table__date\n .kuc-base-mobile-datetime-calendar-body-1-18-0__table__date__button {\n border-spacing: 1px;\n cursor: pointer;\n box-sizing: border-box;\n text-align: center;\n vertical-align: middle;\n color: #333333;\n}\n.kuc-base-mobile-datetime-calendar-body-1-18-0__table__date,\n.kuc-base-mobile-datetime-calendar-body-1-18-0__table__date--selected,\n.kuc-base-mobile-datetime-calendar-body-1-18-0__table__header {\n box-sizing: border-box;\n height: 40px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n font-weight: 400;\n font-size: 12px;\n color: #333333;\n padding: 0;\n}\n.kuc-base-mobile-datetime-calendar-body-1-18-0__table__date {\n font-size: 14px;\n}\nth.kuc-base-mobile-datetime-calendar-body-1-18-0__table__header {\n font-weight: 700;\n}\n.kuc-base-mobile-datetime-calendar-body-1-18-0__table__date--selected\n .kuc-base-mobile-datetime-calendar-body-1-18-0__table__date__button,\n.kuc-base-mobile-datetime-calendar-body-1-18-0__table__date\n .kuc-base-mobile-datetime-calendar-body-1-18-0__table__date__button,\n.kuc-base-mobile-datetime-calendar-body-1-18-0__table__header {\n box-sizing: border-box;\n border: 1px solid #ffffff;\n}\n.kuc-base-mobile-datetime-calendar-body-1-18-0__table__date--selected\n .kuc-base-mobile-datetime-calendar-body-1-18-0__table__date__button,\n.kuc-base-mobile-datetime-calendar-body-1-18-0__table__date\n .kuc-base-mobile-datetime-calendar-body-1-18-0__table__date__button {\n background: none;\n cursor: pointer;\n max-width: 40px;\n}\n.kuc-base-mobile-datetime-calendar-body-1-18-0__table__date--selected {\n border: 1px solid #206694;\n box-sizing: border-box;\n text-align: center;\n font-size: 14px;\n}\n.kuc-base-mobile-datetime-calendar-body-1-18-0__table__date--selected\n .kuc-base-mobile-datetime-calendar-body-1-18-0__table__date__button {\n outline: none;\n}\n.kuc-base-mobile-datetime-calendar-body-1-18-0__table__date\n .kuc-base-mobile-datetime-calendar-body-1-18-0__table__date__button:focus-visible {\n outline: none;\n}\n.kuc-base-mobile-datetime-calendar-body-1-18-0__table__date--today {\n color: #333333;\n background: #d8d8d8;\n}\n.kuc-base-mobile-datetime-calendar-body-1-18-0__table__date--other-month {\n color: #a5a5a5;\n}\n.kuc-base-mobile-datetime-calendar-body-1-18-0__table__date--selected:focus {\n outline: none;\n}\n'),window.customElements.define("kuc-base-mobile-datetime-calendar-body-1-18-0",wa));var Ea=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class Sa extends Ji{constructor(){super(...arguments),this.language="en",this._locale=Ni("en")}update(e){e.has("language")&&(this._locale=Ni(this.language)),super.update(e)}_handleClickCalendarFooterButtonClose(e){e.stopPropagation(),Zi(this,"kuc:mobile-calendar-footer-click-close")}_handleClickCalendarFooterButtonNone(e){e.stopPropagation(),Zi(this,"kuc:mobile-calendar-footer-click-none")}_handleClickCalendarFooterButtonToday(e){e.stopPropagation(),Zi(this,"kuc:mobile-calendar-footer-click-today")}render(){return kt`
|
||
<div class="kuc-base-mobile-datetime-calendar-footer-1-18-0__group">
|
||
<button
|
||
type="button"
|
||
class="kuc-base-mobile-datetime-calendar-footer-1-18-0__group__button kuc-base-mobile-datetime-calendar-footer-1-18-0__group__button--today"
|
||
@click="${this._handleClickCalendarFooterButtonToday}"
|
||
>
|
||
${this._locale.CALENDAR_FOOTER_TEXT.today}
|
||
</button>
|
||
<button
|
||
type="button"
|
||
class="kuc-base-mobile-datetime-calendar-footer-1-18-0__group__button kuc-base-mobile-datetime-calendar-footer-1-18-0__group__button--none"
|
||
@click="${this._handleClickCalendarFooterButtonNone}"
|
||
>
|
||
${this._locale.CALENDAR_FOOTER_TEXT.none}
|
||
</button>
|
||
<button
|
||
type="button"
|
||
class="kuc-base-mobile-datetime-calendar-footer-1-18-0__group__button kuc-base-mobile-datetime-calendar-footer-1-18-0__group__button--close"
|
||
@click="${this._handleClickCalendarFooterButtonClose}"
|
||
>
|
||
${this._locale.CALENDAR_FOOTER_TEXT.close}
|
||
</button>
|
||
</div>
|
||
`}}Ea([on({type:String,attribute:"lang",reflect:!0})],Sa.prototype,"language",void 0),Ea([cn()],Sa.prototype,"_locale",void 0),window.customElements.get("kuc-base-mobile-datetime-calendar-footer-1-18-0")||(Xi('\nkuc-base-mobile-datetime-calendar-footer-1-18-0,\nkuc-base-mobile-datetime-calendar-footer-1-18-0 * {\n font-family: "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN",\n "ヒラギノ角ゴ ProN W3", "MS Pゴシック", "Lucida Grande",\n "Lucida Sans Unicode", Arial, Verdana, sans-serif;\n}\n\nkuc-base-mobile-datetime-calendar-footer-1-18-0:lang(zh),\nkuc-base-mobile-datetime-calendar-footer-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", "Lucida Grande", "Lucida Sans Unicode", Arial,\n Verdana, sans-serif;\n}\nkuc-base-mobile-datetime-calendar-footer-1-18-0:lang(zh-TW),\nkuc-base-mobile-datetime-calendar-footer-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黒體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC","Lucida Grande","Lucida Sans Unicode",Arial,\n Verdana,sans-serif\n}\nkuc-base-mobile-datetime-calendar-footer-1-18-0:lang(es),\nkuc-base-mobile-datetime-calendar-footer-1-18-0:lang(es) * {\n font-family: sans-serif;\n}\n.kuc-base-mobile-datetime-calendar-footer-1-18-0__group {\n display: flex;\n justify-content: space-between;\n box-sizing: border-box;\n padding: 0;\n white-space: nowrap;\n}\n.kuc-base-mobile-datetime-calendar-footer-1-18-0__group__button {\n background: transparent;\n border: 1px solid transparent;\n color: #206694;\n height: 40px;\n cursor: pointer;\n font-size: 14px;\n outline: none;\n padding: 0;\n margin: 0;\n font-weight: 700;\n}\n.kuc-base-mobile-datetime-calendar-footer-1-18-0__group__center {\n width: 100%;\n}\n'),window.customElements.define("kuc-base-mobile-datetime-calendar-footer-1-18-0",Sa));var Ca=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class Ta extends Ji{constructor(){super(...arguments),this.language="en",this.value="",this._month=1,this._year=(new Date).getFullYear()}update(e){e.has("value")&&this._updateValue(),super.update(e)}render(){return kt`
|
||
<div
|
||
class="kuc-base-mobile-datetime-calendar-1-18-0__group"
|
||
role="dialog"
|
||
aria-modal="true"
|
||
aria-label="Calender"
|
||
@click="${this._handleClickCalendarGroup}"
|
||
>
|
||
<kuc-base-mobile-datetime-calendar-header-1-18-0
|
||
.year="${this._year}"
|
||
.month="${this._month}"
|
||
.language="${this.language}"
|
||
@kuc:mobile-calendar-header-change="${this._handleCalendarHeaderChange}"
|
||
></kuc-base-mobile-datetime-calendar-header-1-18-0>
|
||
<kuc-base-mobile-datetime-calendar-body-1-18-0
|
||
.year="${this._year}"
|
||
.month="${this._month}"
|
||
.value="${this.value}"
|
||
.language="${this.language}"
|
||
></kuc-base-mobile-datetime-calendar-body-1-18-0>
|
||
<kuc-base-mobile-datetime-calendar-footer-1-18-0
|
||
.language="${this.language}"
|
||
></kuc-base-mobile-datetime-calendar-footer-1-18-0>
|
||
</div>
|
||
`}updated(e){super.updated(e)}_handleClickCalendarGroup(e){e.stopPropagation()}_handleCalendarHeaderChange(e){const{year:t,month:n}=this._separateValue(e.detail.value);this._year=t,this._month=n}_updateValue(){""===this.value&&(this.value=Ii().slice(0,7)+"-01");const{year:e,month:t}=this._separateValue(this.value);this._year=e,this._month=t}_separateValue(e){const t=e.split("-");return{year:parseInt(t[0],10),month:parseInt(t[1],10)}}}Ca([on({type:String,attribute:"lang",reflect:!0})],Ta.prototype,"language",void 0),Ca([on({type:String,reflect:!0})],Ta.prototype,"value",void 0),Ca([cn()],Ta.prototype,"_month",void 0),Ca([cn()],Ta.prototype,"_year",void 0),window.customElements.get("kuc-base-mobile-datetime-calendar-1-18-0")||(Xi("\n.kuc-base-mobile-datetime-calendar-1-18-0__group {\n display: inline-block;\n box-sizing: border-box;\n width: 290px;\n padding: 0 10px;\n background: #ffffff;\n text-align: center;\n font-size: 13px;\n border: 1px solid #d8d8d8;\n}\n"),window.customElements.define("kuc-base-mobile-datetime-calendar-1-18-0",Ta));var Aa=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class Ia extends Ji{constructor(){super(...arguments),this.inputId="",this.language="en",this.value="",this.disabled=!1,this.inputAriaInvalid=!1,this.required=!1,this._dateTimeCalendarVisible=!1,this._calendarValue="",this._inputValue=""}update(e){e.has("inputId")&&(this._GUID=this.inputId),(e.has("value")||e.has("language"))&&this._updateValueProp(),super.update(e)}render(){return kt`
|
||
<div class="kuc-mobile-base-date-1-18-0__group${this._getGroupClass()}">
|
||
<input
|
||
class="kuc-mobile-base-date-1-18-0__group__input"
|
||
type="text"
|
||
id="${this._GUID}-label"
|
||
readonly="readonly"
|
||
.value="${this._inputValue}"
|
||
aria-label="Date"
|
||
aria-describedby="${this._GUID}-error"
|
||
aria-invalid="${this.inputAriaInvalid}"
|
||
aria-required="${this.required}"
|
||
?disabled="${this.disabled}"
|
||
@click="${this._handleClickOpenCalendar}"
|
||
/>
|
||
<button
|
||
type="button"
|
||
class="kuc-mobile-base-date-1-18-0__group__button"
|
||
aria-label="calendar"
|
||
@click="${this._handleClickOpenCalendar}"
|
||
?disabled="${this.disabled}"
|
||
>
|
||
${this._getCalendarIconTemplate()}
|
||
</button>
|
||
${this._getCalendarTemplate()}
|
||
</div>
|
||
`}updated(e){this._dateTimeCalendarVisible&&this._setCalendarPosition(),super.updated(e)}_setCalendarPosition(){const{inputToBottom:e,inputToTop:t}=Ri(this),n=this._inputEl.getBoundingClientRect().height;e>=t||(this._calendarEl.style.bottom=n+2+"px",this._calendarEl.style.top="auto")}_getGroupClass(){let e="";return this.disabled&&(e+=" kuc-mobile-base-date-1-18-0__group--disabled"),this.required&&(e+=" kuc-mobile-base-date-1-18-0__group--required"),e}_handleClickOpenCalendar(e){if(this._dateTimeCalendarVisible)return e.preventDefault(),void e.stopPropagation();this._calendarValue=this._getNewCalendarValue(this._inputValue||""),this._openCalendar()}_updateValueProp(){if(this.value)return this._inputValue=Ci(this.language,this.value),void(this._calendarValue=this.value);const e=Ii();this._inputValue="",this._calendarValue=this._calendarValue?this._calendarValue.slice(0,7)+"-01":e.slice(0,7)}_getNewCalendarValue(e){if(Oi(this.language,e))return Ti(this.language,e);let t=this._calendarValue.slice(0,7);return""===e&&(t=this._calendarValue.slice(0,7)+"-01"),t}_closeCalendar(){this._dateTimeCalendarVisible=!1}_openCalendar(){this._dateTimeCalendarVisible=!0}_handleClickCalendarClickDate(e){this._closeCalendar(),e.detail.oldValue=this.value,e.detail.oldValue!==e.detail.value&&(this.value=e.detail.value,Zi(this,"kuc:mobile-base-date-change",e.detail),this._btnToggleEl.focus())}_handleClickCalendarFooterButtonNone(){this._closeCalendar(),this._inputValue="";let e=this.value?this.value.slice(0,7)+"-01":"";e||(e=this._calendarValue.slice(0,7)+"-01"),this._calendarValue=e,this._dispathDateChangeCustomEvent("")}_handleClickCalendarFooterButtonToday(){this._closeCalendar();const e=Ii();this._dispathDateChangeCustomEvent(e)}_handleClickCalendarFooterButtonClose(){this._closeCalendar(),this._btnToggleEl.focus()}_handleCalendarBlurBody(e){e.preventDefault(),this._dateTimeCalendarVisible=!1}_dispathDateChangeCustomEvent(e){const t={value:e,oldValue:this.value};this.value=e,Zi(this,"kuc:mobile-base-date-change",t),this._btnToggleEl.focus()}_getCalendarTemplate(){return this._dateTimeCalendarVisible?kt`
|
||
<kuc-base-mobile-datetime-calendar-1-18-0
|
||
class="kuc-base-mobile-date-1-18-0__calendar"
|
||
.language="${this.language}"
|
||
.value="${this._calendarValue}"
|
||
?hidden="${!this._dateTimeCalendarVisible}"
|
||
@kuc:mobile-calendar-body-click-date="${this._handleClickCalendarClickDate}"
|
||
@kuc:mobile-calendar-footer-click-none="${this._handleClickCalendarFooterButtonNone}"
|
||
@kuc:mobile-calendar-footer-click-today="${this._handleClickCalendarFooterButtonToday}"
|
||
@kuc:mobile-calendar-footer-click-close="${this._handleClickCalendarFooterButtonClose}"
|
||
@kuc:mobile-calendar-body-blur="${this._handleCalendarBlurBody}"
|
||
>
|
||
</kuc-base-mobile-datetime-calendar-1-18-0>
|
||
`:""}_getCalendarIconTemplate(){return kt`
|
||
<svg width="24" height="24" viewBox="0 0 28 28" fill="none">
|
||
<path
|
||
fill-rule="evenodd"
|
||
clip-rule="evenodd"
|
||
d="M10 4C9.44772 4 9 4.44772 9 5V6H6C4.89543 6 4 6.89543 4 8V21C4 22.1046 4.89543 23 6 23H22C23.1046 23 24 22.1046 24 21V8C24 6.89543 23.1046 6 22 6H19V5C19 4.44772 18.5523 4 18 4C17.4477 4 17 4.44772 17 5V6H11V5C11 4.44772 10.5523 4 10 4ZM9 8V9C9 9.55228 9.44772 10 10 10C10.5523 10 11 9.55228 11 9V8H17V9C17 9.55228 17.4477 10 18 10C18.5523 10 19 9.55228 19 9V8H22V11H6V8H9ZM6 13V21H22V13H6Z"
|
||
fill="#4b4b4b"
|
||
/>
|
||
</svg>
|
||
`}}Aa([on({type:String})],Ia.prototype,"inputId",void 0),Aa([on({type:String,attribute:"lang",reflect:!0})],Ia.prototype,"language",void 0),Aa([on({type:String,reflect:!0})],Ia.prototype,"value",void 0),Aa([on({type:Boolean})],Ia.prototype,"disabled",void 0),Aa([on({type:Boolean})],Ia.prototype,"inputAriaInvalid",void 0),Aa([on({type:Boolean})],Ia.prototype,"required",void 0),Aa([_n(".kuc-mobile-base-date-1-18-0__group__button")],Ia.prototype,"_btnToggleEl",void 0),Aa([_n(".kuc-mobile-base-date-1-18-0__group__input")],Ia.prototype,"_inputEl",void 0),Aa([_n(".kuc-base-mobile-date-1-18-0__calendar")],Ia.prototype,"_calendarEl",void 0),Aa([cn()],Ia.prototype,"_dateTimeCalendarVisible",void 0),window.customElements.get("kuc-mobile-base-date-1-18-0")||(Xi('\nkuc-mobile-base-date-1-18-0,\nkuc-mobile-base-date-1-18-0 * {\n font-family: "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN",\n "ヒラギノ角ゴ ProN W3", "MS Pゴシック", "Lucida Grande",\n "Lucida Sans Unicode", Arial, Verdana, sans-serif;\n}\nkuc-mobile-base-date-1-18-0:lang(zh),\nkuc-mobile-base-date-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", "Lucida Grande", "Lucida Sans Unicode", Arial,\n Verdana, sans-serif;\n}\nkuc-mobile-base-date-1-18-0:lang(zh-TW),\nkuc-mobile-base-date-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黒體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC","Lucida Grande","Lucida Sans Unicode",Arial,\n Verdana,sans-serif\n}\nkuc-mobile-base-date-1-18-0:lang(es),\nkuc-mobile-base-date-1-18-0:lang(es) * {\n font-family: sans-serif;\n}\n.kuc-mobile-base-date-1-18-0__group {\n display: flex;\n align-items: center;\n position: relative;\n border-radius: 5.148px;\n background-color: #ffffff;\n}\n.kuc-mobile-base-date-1-18-0__group__input[aria-required="true"] {\n border-color: #cf4a38;\n}\ninput.kuc-mobile-base-date-1-18-0__group__input {\n color: #000000;\n width: 100%;\n height: 31.28px;\n font-size: 99%;\n -webkit-flex-grow: 1;\n flex-grow: 1;\n padding: 5.148px;\n border-radius: 5.148px;\n box-shadow: 0px 1px 0px #ffffff, inset 0px 2px 3px #dadada;\n border: 1px solid #b3b3b3;\n font-weight: 400;\n -webkit-appearance: none;\n appearance: none;\n outline: 0;\n background: transparent;\n box-sizing: border-box;\n}\n.kuc-mobile-base-date-1-18-0__group--disabled {\n background-color: #d5d7d9;\n opacity: 1;\n}\n.kuc-mobile-base-date-1-18-0__group--disabled input {\n color: #999999;\n -webkit-text-fill-color: #999999;\n}\n.kuc-base-mobile-date-1-18-0__calendar {\n position: absolute;\n left: 0;\n top: 39px;\n z-index: 1000;\n}\n.kuc-mobile-base-date-1-18-0__group__button {\n position: absolute;\n display: flex;\n right: 10px;\n background-color: transparent;\n border: 0;\n padding: 0;\n height: 100%;\n align-items: center;\n}\n'),window.customElements.define("kuc-mobile-base-date-1-18-0",Ia));var Oa=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Da;(()=>{if(Da=window.customElements.get("kuc-mobile-date-picker-1-18-0"),!Da){class e extends Ji{constructor(e){super(),this.className="",this.error="",this.id="",this.label="",this.disabled=!1,this.requiredIcon=!1,this.language="auto",this.value="",this.visible=!0,this._dateConverted="",this._inputValue="",this._GUID=Qi();const t=rr(e);Object.assign(this,t)}shouldUpdate(e){return!(void 0!==this.value&&""!==this.value&&(or(this.value)?(this._dateConverted=Vi(this.value),""!==this._dateConverted&&!lr(this._dateConverted)&&(this.throwErrorAfterUpdateComplete(li),1)):(this.throwErrorAfterUpdateComplete(li),1)))}willUpdate(e){e.has("value")&&void 0!==this.value&&""!==this.value&&(this.value=this._dateConverted)}update(e){e.has("value")&&this._updateInputValue(),super.update(e)}render(){return kt`
|
||
<div class="kuc-mobile-date-picker-1-18-0__group">
|
||
<label
|
||
class="kuc-mobile-date-picker-1-18-0__group__label"
|
||
for="${this._GUID}-label"
|
||
@click="${this._handleClickLabel}"
|
||
?hidden="${!this.label}"
|
||
>
|
||
<kuc-base-mobile-label-1-18-0
|
||
.requiredIcon="${this.requiredIcon}"
|
||
.text="${this.label}"
|
||
></kuc-base-mobile-label-1-18-0>
|
||
</label>
|
||
<kuc-mobile-base-date-1-18-0
|
||
class="kuc-mobile-date-picker-1-18-0__group__base__date"
|
||
.disabled="${this.disabled}"
|
||
.value="${this._inputValue}"
|
||
.inputId="${this._GUID}"
|
||
.inputAriaInvalid="${""!==this.error}"
|
||
.required="${this.requiredIcon}"
|
||
.language="${this._getLanguage()}"
|
||
@kuc:mobile-base-date-change="${this._handleDateChange}"
|
||
>
|
||
</kuc-mobile-base-date-1-18-0>
|
||
<kuc-base-mobile-error-1-18-0 .guid="${this._GUID}" .text="${this.error}">
|
||
</kuc-base-mobile-error-1-18-0>
|
||
</div>
|
||
`}_updateInputValue(){void 0!==this.value&&""!==this.value?this._inputValue=this.value:this._inputValue=""}_getLanguage(){const e=["en","ja","zh","zh-TW","es"];return-1!==e.indexOf(this.language)?this.language:-1!==e.indexOf(document.documentElement.lang)?document.documentElement.lang:"en"}_handleClickLabel(e){e.preventDefault()}_handleDateChange(e){e.stopPropagation(),e.preventDefault();const t={oldValue:this.value,value:""};this.value=e.detail.value,t.value=this.value,this._dispatchChangeEvent(t)}_dispatchChangeEvent(e){Zi(this,"change",e)}}Oa([on({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),Oa([on({type:String})],e.prototype,"error",void 0),Oa([on({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),Oa([on({type:String})],e.prototype,"label",void 0),Oa([on({type:Boolean})],e.prototype,"disabled",void 0),Oa([on({type:Boolean})],e.prototype,"requiredIcon",void 0),Oa([on({type:String,attribute:"lang",reflect:!0,converter:Hi})],e.prototype,"language",void 0),Oa([on({type:String})],e.prototype,"value",void 0),Oa([on({type:Boolean,attribute:"hidden",reflect:!0,converter:ji})],e.prototype,"visible",void 0),Oa([cn()],e.prototype,"_inputValue",void 0),window.customElements.define("kuc-mobile-date-picker-1-18-0",e),Xi('\nkuc-mobile-date-picker-1-18-0,\nkuc-mobile-date-picker-1-18-0 * {\n color: #333333;\n font-family: "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN",\n "ヒラギノ角ゴ ProN W3", "MS Pゴシック", "Lucida Grande",\n "Lucida Sans Unicode", Arial, Verdana, sans-serif;\n}\nkuc-mobile-date-picker-1-18-0:lang(zh),\nkuc-mobile-date-picker-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", "Lucida Grande", "Lucida Sans Unicode", Arial,\n Verdana, sans-serif;\n}\nkuc-mobile-date-picker-1-18-0:lang(zh-TW),\nkuc-mobile-date-picker-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黒體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC","Lucida Grande","Lucida Sans Unicode",Arial,\n Verdana,sans-serif\n}\nkuc-mobile-date-picker-1-18-0:lang(es),\nkuc-mobile-date-picker-1-18-0:lang(es) * {\n font-family: sans-serif;\n}\nkuc-mobile-date-picker-1-18-0 {\n font-size: 13px;\n color: #333333;\n display: inline-table;\n vertical-align: top;\n width: 100%;\n}\nkuc-mobile-date-picker-1-18-0[hidden] {\n display: none;\n}\n.kuc-mobile-date-picker-1-18-0__group {\n display: flex;\n flex-direction: column;\n border: none;\n padding: 0px;\n height: auto;\n margin: 0px;\n}\n.kuc-mobile-date-picker-1-18-0__group__label {\n display: inline-block;\n font-weight: bold;\n line-height: 1.5;\n padding: 0px;\n white-space: nowrap;\n margin: 0 0 4px 0;\n}\n.kuc-mobile-date-picker-1-18-0__group__base__date {\n width: 130px;\n margin-right: 0.5em;\n margin-left: 0.5em;\n}\n.kuc-mobile-date-picker-1-18-0__group__label[hidden] {\n display: none;\n}\n.kuc-mobile-date-picker-1-18-0__group input.kuc-base-date-1-18-0__input {\n width: 100px;\n height: 40px;\n padding: 0px;\n text-align: center;\n border: 1px solid #e3e7e8;\n box-sizing: border-box;\n font-size: 14px;\n box-shadow: 2px 2px 4px #f5f5f5 inset, -2px -2px 4px #f5f5f5 inset;\n}\n\n.kuc-mobile-date-picker-1-18-0__group input.kuc-base-date-1-18-0__input:focus {\n outline: none;\n border: 1px solid #3498db;\n}\n.kuc-mobile-date-picker-1-18-0__group input.kuc-base-date-1-18-0__input--focus {\n box-shadow: 2px 2px 4px #f5f5f5 inset, -2px -2px 4px #f5f5f5 inset;\n border: 1px solid #3498db;\n background-color: #ffffff;\n color: #333333;\n}\n.kuc-mobile-date-picker-1-18-0__group input.kuc-base-date-1-18-0__input:disabled {\n color: #888888;\n background-color: #d4d7d7;\n box-shadow: none;\n cursor: not-allowed;\n}\n'),Da=e}})();const $a=Da;var Na=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class Ma extends Ji{constructor(e){super(),this.guid="",this.language="en",this.value="",this.disabled=!1,this.hour12=!1,this.required=!1,this._timeStep=1,this._hours="",this._minutes="",this._suffix="",this._locale=Ni("en");const t=rr(e);Object.assign(this,t)}update(e){e.has("language")&&(this._locale=Ni(this.language)),e.has("hour12")&&(this._hourOptions=((e=!1)=>e?Mi("AM").concat(Mi("PM")):(()=>{const e=[];e.push({value:"00",label:"00"});for(let t=1;t<=23;t++)e.push({value:Di(t),label:`${Di(t)}`});return e})())(this.hour12)),e.has("_timeStep")&&(this._minuteOptions=((e=1)=>{const t=[];for(let n=0;n<=59;n+=e)t.push({value:Di(n),label:Di(n)});return t})(this._timeStep)),super.update(e)}render(){return kt`
|
||
<fieldset
|
||
class="kuc-base-mobile-time-1-18-0__group${this.disabled?" kuc-base-mobile-time-1-18-0__group--disabled":""}${this.required?" kuc-base-mobile-time-1-18-0__group--required":""}"
|
||
aria-label="label-text"
|
||
>
|
||
<select
|
||
class="kuc-base-mobile-time-1-18-0__group__hours"
|
||
aria-label="Hour"
|
||
aria-describedby="${this.guid}-error"
|
||
?disabled="${this.disabled}"
|
||
@change="${this._handleChangeHours}"
|
||
>
|
||
<option value selected></option>
|
||
${this._getOptionsHourTemplate()}
|
||
</select>
|
||
<span class="kuc-base-mobile-time-1-18-0__group__colon">:</span>
|
||
<select
|
||
class="kuc-base-mobile-time-1-18-0__group__minutes"
|
||
aria-label="Minute"
|
||
aria-describedby="${this.guid}-error"
|
||
?disabled="${this.disabled}"
|
||
@change="${this._handleChangeMinutes}"
|
||
>
|
||
<option value selected></option>
|
||
${this._getOptionsMinuteTemplate()}
|
||
</select>
|
||
</fieldset>
|
||
`}updated(e){e.has("value")&&this._updateInputValue(),super.update(e)}_updateInputValue(){const e=((e,t)=>{const n={hours:"",minutes:"",suffix:""},i=e.split(":"),r=parseInt(i[0],10),o=parseInt(i[1],10),a=r%Qn;return isNaN(a)||(n.hours=Di(t?ki(a):a),n.suffix=t?xi(a):""),isNaN(o)||(n.minutes=Di(o)),n})(this.value,this.hour12);this._hours=e.hours,this._minutes=e.minutes,this._suffix=e.suffix||"",this._setValueToInput(e)}_setValueToInput(e){this._minutesEl.value=e.minutes,e.suffix?this._hoursEl.value=e.suffix+" "+e.hours:this._hoursEl.value=e.hours}_handleChangeMinutes(e){e.preventDefault(),e.stopPropagation();const t=this._getTimeValueString(),n=e.target.value;this._minutes=n;const i=this._getTimeValueString();this.value=i,this._dispatchEventTimeChange(i,t)}_handleChangeHours(e){e.preventDefault(),e.stopPropagation();const t=this._getTimeValueString(),n=e.target.value.split(" ");2===n.length?(this._hours=n[1],this._suffix=n[0]):(this._hours=n[0],this._suffix="");const i=this._getTimeValueString();this.value=i,this._dispatchEventTimeChange(i,t)}_getTimeValueString(){const e=`${this._hours}:${this._minutes}`;return this._suffix?wi(`${e} ${this._suffix}`):wi(e)}_dispatchEventTimeChange(e,t){const n=":"===e?"":e,i={value:n,oldValue:":"===t?"":t};i.error=ar(n)?"":this._locale.INVALID_TIME_FORMAT,Zi(this,"kuc:base-mobile-time-change",i)}_getOptionsMinuteTemplate(){return this._minuteOptions.map((e=>kt` <option value="${e.value}">${e.label}</option> `))}_getOptionsHourTemplate(){return this._hourOptions.map((e=>kt` <option value="${e.value}">${e.label}</option> `))}}Na([on({type:String})],Ma.prototype,"guid",void 0),Na([on({type:String,attribute:"lang",reflect:!0})],Ma.prototype,"language",void 0),Na([on({type:String})],Ma.prototype,"value",void 0),Na([on({type:Boolean})],Ma.prototype,"disabled",void 0),Na([on({type:Boolean})],Ma.prototype,"hour12",void 0),Na([on({type:Boolean})],Ma.prototype,"required",void 0),Na([cn()],Ma.prototype,"_timeStep",void 0),Na([cn()],Ma.prototype,"_hours",void 0),Na([cn()],Ma.prototype,"_minutes",void 0),Na([cn()],Ma.prototype,"_suffix",void 0),Na([cn()],Ma.prototype,"_hourOptions",void 0),Na([cn()],Ma.prototype,"_minuteOptions",void 0),Na([_n(".kuc-base-mobile-time-1-18-0__group__hours")],Ma.prototype,"_hoursEl",void 0),Na([_n(".kuc-base-mobile-time-1-18-0__group__minutes")],Ma.prototype,"_minutesEl",void 0),window.customElements.get("kuc-base-mobile-time-1-18-0")||(Xi('\nkuc-base-mobile-time-1-18-0,\nkuc-base-mobile-time-1-18-0 * {\n font-size: 13px;\n font-family: "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN",\n "ヒラギノ角ゴ ProN W3", "MS Pゴシック", "Lucida Grande",\n "Lucida Sans Unicode", Arial, Verdana, sans-serif;\n}\n\nkuc-base-mobile-time-1-18-0:lang(zh),\nkuc-base-mobile-time-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", "Lucida Grande", "Lucida Sans Unicode", Arial,\n Verdana, sans-serif;\n}\n\nkuc-base-mobile-time-1-18-0:lang(zh-TW),\nkuc-base-mobile-time-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黒體", "Microsoft JhengHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", "Lucida Grande", "Lucida Sans Unicode", Arial,\n Verdana, sans-serif\n}\n\nkuc-base-mobile-time-1-18-0:lang(es),\nkuc-base-mobile-time-1-18-0:lang(es) * {\n font-family: sans-serif;\n}\n\nkuc-base-mobile-time-1-18-0 {\n width: 100%;\n display: inline-block;\n vertical-align: top;\n}\n\nkuc-base-mobile-time-1-18-0[hidden] {\n display: none;\n}\n\n.kuc-base-mobile-time-1-18-0__group {\n padding: 0;\n margin: 0;\n height: 31.28px;\n border: 1px solid #b3b3b3;\n border-radius: 5.2px;\n box-sizing: border-box;\n background-color: #ffffff;\n display: -webkit-flex;\n display: flex;\n -webkit-align-items: center;\n align-items: center;\n box-shadow: 0px 1px 0px #ffffff, inset 0px 2px 3px #dadada;\n}\n\n.kuc-base-mobile-time-1-18-0__group--required {\n border-color: #cf4a38;\n}\n\n.kuc-base-mobile-time-1-18-0__group__hours {\n padding: 5.148px 7.722px;\n}\n\n.kuc-base-mobile-time-1-18-0__group__minutes {\n padding: 5.148px 7.722px;\n -webkit-flex-grow: 1;\n flex-grow: 1;\n}\n\n.kuc-base-mobile-time-1-18-0__group__hours,\n.kuc-base-mobile-time-1-18-0__group__minutes {\n font-size: 99%;\n height: 100%;\n color: #000000;\n border: none;\n border-radius: 5.148px;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n background-color: transparent;\n}\n\n.kuc-base-mobile-time-1-18-0__group__colon {\n color: #000000;\n}\n\n.kuc-base-mobile-time-1-18-0__group__hours:disabled\n+ .kuc-base-mobile-time-1-18-0__group__colon {\n color: #999999;\n -webkit-text-fill-color: #999999;\n opacity: 1;\n}\n\n.kuc-base-mobile-time-1-18-0__group--disabled {\n color: #999999;\n -webkit-text-fill-color: #999999;\n background-color: #d5d7d9;\n opacity: 1;\n}\n\n.kuc-base-mobile-time-1-18-0__group__hours:disabled,\n.kuc-base-mobile-time-1-18-0__group__minutes:disabled {\n color: #999999;\n -webkit-text-fill-color: #999999;\n opacity: 1;\n}\n\n.kuc-base-mobile-time-1-18-0__group__hours:focus {\n outline: none;\n}\n\n.kuc-base-mobile-time-1-18-0__group__minutes:focus {\n outline: none;\n}\n'),window.customElements.define("kuc-base-mobile-time-1-18-0",Ma));var La=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Pa;(()=>{if(Pa=window.customElements.get("kuc-mobile-time-picker-1-18-0"),!Pa){class e extends Ji{constructor(e){super(),this.className="",this.error="",this.id="",this.label="",this.language="auto",this.value="",this.disabled=!1,this.hour12=!1,this.requiredIcon=!1,this.visible=!0,this._inputValue="",this._errorFormat="",this._isSelectError=!1,this._GUID=Qi();const t=rr(e);Object.assign(this,t)}shouldUpdate(e){return void 0===this.value||""===this.value||!!ar(this.value)||(this.throwErrorAfterUpdateComplete(li),!1)}willUpdate(){void 0!==this.value&&""!==this.value&&(this.value=Ui(this.value))}update(e){e.has("value")&&!this._isSelectError&&(void 0===this.value?this._inputValue="":this._inputValue=this.value||"",this._errorFormat=""),super.update(e)}render(){return kt`
|
||
<div class="kuc-mobile-time-picker-1-18-0__group">
|
||
<label
|
||
class="kuc-mobile-time-picker-1-18-0__group__label"
|
||
?hidden="${!this.label}"
|
||
>
|
||
<kuc-base-mobile-label-1-18-0
|
||
.guid="${this._GUID}"
|
||
.text="${this.label}"
|
||
.requiredIcon="${this.requiredIcon}"
|
||
></kuc-base-mobile-label-1-18-0>
|
||
</label>
|
||
<div class="kuc-base-mobile-time-1-18-0__group__wrapper">
|
||
<kuc-base-mobile-time-1-18-0
|
||
.value="${this._inputValue}"
|
||
.disabled="${this.disabled}"
|
||
.hour12="${this.hour12}"
|
||
.guid="${this._GUID}"
|
||
.language="${this._getLanguage()}"
|
||
.required="${this.requiredIcon}"
|
||
@kuc:base-mobile-time-change="${this._handleTimeChange}"
|
||
></kuc-base-mobile-time-1-18-0>
|
||
</div>
|
||
<kuc-base-mobile-error-1-18-0
|
||
.guid="${this._GUID}"
|
||
.text="${this._errorFormat||this.error}"
|
||
ariaLive="assertive"
|
||
></kuc-base-mobile-error-1-18-0>
|
||
</div>
|
||
`}updated(){this._isSelectError=!1}_handleTimeChange(e){e.preventDefault(),e.stopPropagation();const t={value:e.detail.value,oldValue:this.value};if(this._inputValue=e.detail.value,e.detail.error)return this._isSelectError=!0,this._errorFormat=e.detail.error,this.value=void 0,t.value=void 0,this.error="",void Zi(this,"change",t);this._isSelectError=!1,this._errorFormat="",this.value=e.detail.value,Zi(this,"change",t)}_getLanguage(){const e=["en","ja","zh","zh-TW","es"];return-1!==e.indexOf(this.language)?this.language:-1!==e.indexOf(document.documentElement.lang)?document.documentElement.lang:"en"}}La([on({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),La([on({type:String})],e.prototype,"error",void 0),La([on({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),La([on({type:String})],e.prototype,"label",void 0),La([on({type:String,attribute:"lang",reflect:!0,converter:Hi})],e.prototype,"language",void 0),La([on({type:String,hasChanged:(e,t)=>(""===e||void 0===e)&&e===t||e!==t})],e.prototype,"value",void 0),La([on({type:Boolean})],e.prototype,"disabled",void 0),La([on({type:Boolean})],e.prototype,"hour12",void 0),La([on({type:Boolean})],e.prototype,"requiredIcon",void 0),La([on({type:Boolean,attribute:"hidden",reflect:!0,converter:ji})],e.prototype,"visible",void 0),La([cn()],e.prototype,"_inputValue",void 0),La([cn()],e.prototype,"_errorFormat",void 0),window.customElements.define("kuc-mobile-time-picker-1-18-0",e),Xi('\nkuc-mobile-time-picker-1-18-0,\nkuc-mobile-time-picker-1-18-0 * {\n font-family: "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN",\n "ヒラギノ角ゴ ProN W3", "MS Pゴシック", "Lucida Grande",\n "Lucida Sans Unicode", Arial, Verdana, sans-serif;\n}\nkuc-mobile-time-picker-1-18-0:lang(zh),\nkuc-mobile-time-picker-1-18-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", "Lucida Grande", "Lucida Sans Unicode", Arial,\n Verdana, sans-serif;\n}\nkuc-mobile-time-picker-1-18-0:lang(zh-TW),\nkuc-mobile-time-picker-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黒體", "Microsoft JhengHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", "Lucida Grande", "Lucida Sans Unicode", Arial,\n Verdana, sans-serif\n}\nkuc-mobile-time-picker-1-18-0:lang(es),\nkuc-mobile-time-picker-1-18-0:lang(es) * {\n font-family: sans-serif;\n}\nkuc-mobile-time-picker-1-18-0 {\n font-size: 13px;\n display: inline-block;\n vertical-align: top;\n width: 100%;\n}\nkuc-mobile-time-picker-1-18-0[hidden] {\n display: none;\n}\n.kuc-mobile-time-picker-1-18-0__group__label {\n display: inline-block;\n font-weight: bold;\n line-height: 1.5;\n padding: 0px;\n margin: 0 0 4px 0;\n white-space: nowrap;\n}\n.kuc-mobile-time-picker-1-18-0__group__label[hidden] {\n display: none;\n}\n.kuc-base-mobile-time-1-18-0__group__wrapper {\n padding-left: 0.5em;\n max-width: 10px;\n}\n'),Pa=e}})();const Ra=Pa;var ja=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let Ha;(()=>{if(Ha=window.customElements.get("kuc-mobile-datetime-picker-1-18-0"),!Ha){class e extends Ji{constructor(e){super(),this.className="",this.error="",this.id="",this.label="",this.language="auto",this.value="",this.disabled=!1,this.hour12=!1,this.requiredIcon=!1,this.visible=!0,this._dateConverted="",this._changeDateByUI=!1,this._changeTimeByUI=!1,this._previousTimeValue="",this._previousDateValue="",this._dateValue="",this._timeValue="",this._errorFormat="",this._errorText="",this._GUID=Qi();const t=rr(e);Object.assign(this,t)}shouldUpdate(e){return void 0===this.value||""===this.value||("string"!=typeof this.value?(this.throwErrorAfterUpdateComplete(li),!1):(this._dateAndTime=this._getDateTimeValue(this.value),this._dateConverted=Vi(this._dateAndTime.date),!(!cr(this._dateAndTime.date,this._dateAndTime.time)||!lr(this._dateConverted))||(this.throwErrorAfterUpdateComplete(li),!1)))}willUpdate(e){this._changeDateByUI||this._changeTimeByUI?this._updateValueAndErrorWhenUIChange():(this._errorFormat="",this._updateErrorText(),this._updateValueWhenSetter())}update(e){e.has("value")&&(void 0===this.value&&this._setUndefinedValue(),""===this.value&&this._setEmptyValue()),super.update(e)}_updateValueWhenSetter(){this._errorFormat="",""!==this.value&&void 0!==this.value?(this._setDateTimeValueSeparate(this._dateAndTime,this._dateConverted),this.value=this._getDateTimeString()):this._previousTimeValue=""}_setDateTimeValueSeparate(e,t){this._dateValue=t,this._timeValue=this._dateValue&&lr(t)?Ui(e.time.slice(0,5)):this._previousTimeValue}_updateValueAndErrorWhenUIChange(){const e=this._checkDateTimeFormat();this.value=e?this.value:void 0,this._updateErrorText()}_checkDateTimeFormat(){const e=Boolean(this._timeValue)&&!this._dateValue,t=Boolean(this._dateValue)&&!this._timeValue;return!this._errorFormat&&!e&&!t}_setUndefinedValue(){if(!this._changeTimeByUI){if(this._errorFormat){if(this._changeDateByUI)return;return this._dateValue="",void(this._timeValue="")}this._dateValue=this._previousDateValue,this._timeValue=this._previousTimeValue}}_setEmptyValue(){this._dateValue="",this._timeValue="",this._previousTimeValue="",this._previousDateValue=""}_getDateTimeValue(e){if(""===e||void 0===e)return{date:"",time:""};const t=e.split("T"),n=t[0],i=t[1];if(e.indexOf("T")===e.length-1||t.length>2)return{date:n,time:""};if(!i)return{date:n,time:"00:00"};const[r,o,a]=i.split(":"),s=`${r}:${o||"00"}`;return a?{date:n,time:`${s}:${a}`}:{date:n,time:s}}render(){return kt`
|
||
<fieldset
|
||
class="kuc-mobile-datetime-picker-1-18-0__group"
|
||
aria-describedby="${this._GUID}-error"
|
||
>
|
||
<legend
|
||
class="kuc-mobile-datetime-picker-1-18-0__group__label"
|
||
?hidden="${!this.label}"
|
||
>
|
||
<kuc-base-mobile-label-1-18-0
|
||
.requiredIcon="${this.requiredIcon}"
|
||
.text="${this.label}"
|
||
></kuc-base-mobile-label-1-18-0>
|
||
</legend>
|
||
<div class="kuc-mobile-datetime-picker-1-18-0__group__input">
|
||
<kuc-mobile-base-date-1-18-0
|
||
class="kuc-mobile-datetime-picker-1-18-0__group__input--date"
|
||
.disabled="${this.disabled}"
|
||
.value="${this._dateValue}"
|
||
.inputId="${this._GUID}"
|
||
.inputAriaInvalid="${""!==this.error}"
|
||
.required="${this.requiredIcon}"
|
||
.language="${this._getLanguage()}"
|
||
@kuc:mobile-base-date-change="${this._handleDateChange}"
|
||
>
|
||
</kuc-mobile-base-date-1-18-0>
|
||
<kuc-base-mobile-time-1-18-0
|
||
class="kuc-mobile-datetime-picker-1-18-0__group__input--time"
|
||
.value="${this._timeValue}"
|
||
.disabled="${this.disabled}"
|
||
.hour12="${this.hour12}"
|
||
.guid="${this._GUID}"
|
||
.language="${this._getLanguage()}"
|
||
.required="${this.requiredIcon}"
|
||
@kuc:base-mobile-time-change="${this._handleTimeChange}"
|
||
></kuc-base-mobile-time-1-18-0>
|
||
</div>
|
||
<kuc-base-mobile-error-1-18-0
|
||
.guid="${this._GUID}"
|
||
.text="${this._errorText}"
|
||
>
|
||
</kuc-base-mobile-error-1-18-0>
|
||
</fieldset>
|
||
`}updated(){this._resetState()}_resetState(){this._previousTimeValue="",this._previousDateValue="",this._changeDateByUI=!1,this._changeTimeByUI=!1}_updateErrorText(){this._errorText=this._errorFormat||this.error}_getLanguage(){const e=["en","ja","zh","zh-TW","es"];return-1!==e.indexOf(this.language)?this.language:-1!==e.indexOf(document.documentElement.lang)?document.documentElement.lang:"en"}_handleDateChange(e){if(e.stopPropagation(),e.preventDefault(),e.detail.value===this._dateValue)return;this._changeDateByUI=!0;let t=this._dateValue;e.detail.error?(this._errorFormat=e.detail.error,this.error=""):t=e.detail.value,this._updateDateTimeValue(t,"date")}_handleTimeChange(e){e.preventDefault(),e.stopPropagation(),this._changeTimeByUI=!0;let t=this._timeValue;e.detail.error?(this._errorFormat=e.detail.error,this.error=""):this._errorFormat="",t=e.detail.value,this._updateDateTimeValue(t,"time")}_updateDateTimeValue(e,t){const n=this.value;"date"===t?this._dateValue=e||"":this._timeValue=e,this._previousTimeValue=this._timeValue,this._previousDateValue=this._dateValue;const i=this._errorFormat?void 0:this._getDateTimeString(),r=this._errorFormat?void 0:i;this.value=r;const o=this._errorFormat?void 0:i;this.value=o,Zi(this,"change",{value:r,oldValue:n,changedPart:t})}_getDateTimeString(){if(""===this._dateValue&&""===this._timeValue)return"";if(!this._dateValue||!this._timeValue)return;if(!this.value)return`${this._dateValue}T${this._timeValue}:00`;const e=this.value.split(":");return 3===e.length?`${this._dateValue}T${this._timeValue}:${e[2]}`:`${this._dateValue}T${this._timeValue}:00`}}ja([on({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),ja([on({type:String})],e.prototype,"error",void 0),ja([on({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),ja([on({type:String})],e.prototype,"label",void 0),ja([on({type:String,attribute:"lang",reflect:!0,converter:Hi})],e.prototype,"language",void 0),ja([on({type:String,hasChanged:(e,t)=>(""===e||void 0===e)&&e===t||e!==t})],e.prototype,"value",void 0),ja([on({type:Boolean})],e.prototype,"disabled",void 0),ja([on({type:Boolean})],e.prototype,"hour12",void 0),ja([on({type:Boolean})],e.prototype,"requiredIcon",void 0),ja([on({type:Boolean,attribute:"hidden",reflect:!0,converter:ji})],e.prototype,"visible",void 0),ja([cn()],e.prototype,"_dateValue",void 0),ja([cn()],e.prototype,"_timeValue",void 0),ja([cn()],e.prototype,"_errorFormat",void 0),ja([cn()],e.prototype,"_errorText",void 0),window.customElements.define("kuc-mobile-datetime-picker-1-18-0",e),Xi('\nkuc-mobile-datetime-picker-1-18-0,\nkuc-mobile-datetime-picker-1-18-0 * {\ncolor: #333333;\nfont-family: "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN",\n "ヒラギノ角ゴ ProN W3", "MS Pゴシック", "Lucida Grande",\n "Lucida Sans Unicode", Arial, Verdana, sans-serif;\n}\nkuc-mobile-datetime-picker-1-18-0:lang(zh),\nkuc-mobile-datetime-picker-1-18-0:lang(zh) * {\nfont-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", "Lucida Grande", "Lucida Sans Unicode", Arial,\n Verdana, sans-serif;\n}\nkuc-mobile-datetime-picker-1-18-0:lang(zh-TW),\nkuc-mobile-datetime-picker-1-18-0:lang(zh-TW) * {\n font-family: "微軟正黒體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC","Lucida Grande","Lucida Sans Unicode",Arial,\n Verdana,sans-serif\n}\nkuc-mobile-datetime-picker-1-18-0:lang(es),\nkuc-mobile-datetime-picker-1-18-0:lang(es) * {\n font-family: sans-serif;\n}\nkuc-mobile-datetime-picker-1-18-0 {\nfont-size: 13px;\ncolor: #333333;\ndisplay: inline-table;\nvertical-align: top;\nwidth: 100%;\n}\nkuc-mobile-datetime-picker-1-18-0[hidden] {\ndisplay: none;\n}\n.kuc-mobile-datetime-picker-1-18-0__group {\nborder: 0;\npadding: 0;\n}\n.kuc-mobile-datetime-picker-1-18-0__group__label {\ndisplay: inline-block;\nfont-weight: bold;\nline-height: 1.5;\npadding: 0px;\nwhite-space: nowrap;\nmargin: 0 0 4px 0;\n}\n.kuc-mobile-datetime-picker-1-18-0__group__label[hidden] {\ndisplay: none;\n}\n.kuc-mobile-datetime-picker-1-18-0__group__input {\ndisplay: flex;\nalign-items: center;\nmargin-right: 0.5em;\nmargin-left: 0.5em;\n}\n.kuc-mobile-datetime-picker-1-18-0__group__input--date {\nwidth: 130px;\nmargin-right: 10px;\n}\n.kuc-mobile-datetime-picker-1-18-0__group__input--time {\nmax-width: 10px;\n}\n'),Ha=e}})();const Ba=Ha,Va="1.18.0",Ua=void 0})(),i})()));(_=>{window.Kuc=window.Kucs["1.18.0"];})(); |