targetj 1.0.229 → 1.0.231
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -17
- package/build/LoadingManager.js +3 -3
- package/build/LocationManager.js +7 -5
- package/build/TModelManager.js +7 -4
- package/build/TargetData.js +4 -0
- package/build/TargetExecutor.js +2 -2
- package/build/TargetManager.js +3 -1
- package/build/TargetParser.js +1 -1
- package/build/TargetUtil.js +6 -1
- package/dist/targetjs.js +1 -1
- package/dist/targetjs.js.gz +0 -0
- package/package.json +1 -1
package/dist/targetjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){"use strict";var __webpack_modules__={185:function(e,t,r){r.d(t,{J:function(){return s}});var n=r(129),i=r(142);function a(e){return a="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},a(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var s=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"string"==typeof t)this.selector=t,this.element=e.query(t);else if(t&&(this.element=t,1===t.nodeType)){var r=this.element.getAttribute("id");this.selector="string"==typeof r?r.startsWith("#")?r:"#"+r:null}this.hasRealChildren=!1,this.slotModeEnabled=!1,this.contentSlot=null,this.originalContent=void 0,this.textOnly=!0,this.transformProp=null,this.initTransformProp()}return t=e,r=[{key:"create",value:function(e){this.element=document.createElement(e),this.initTransformProp()}},{key:"initTransformProp",value:function(){if(this.element&&this.element.style){var e=this.element.style;this.transformProp="transform"in e?"transform":"webkitTransform"in e?"webkitTransform":null}else this.transformProp=null}},{key:"cloneTemplate",value:function(){var t;return new e(null===(t=this.element.content)||void 0===t?void 0:t.cloneNode(!0).children[0])}},{key:"clone",value:function(){return this.element.cloneNode(!0)}},{key:"exists",value:function(){return!!this.selector&&!!e.query(this.selector)}},{key:"getElement",value:function(){return this.element}},{key:"supportsWAAPI",value:function(){return!(!this.element||"function"!=typeof this.element.animate)}},{key:"findContentSlot",value:function(){if(this.contentSlot&&this.contentSlot.parentNode===this.element)return this.contentSlot;if(!this.element.firstElementChild)return null;var e=this.element.querySelector(':scope > [data-tj-slot="content"]');return e&&(this.contentSlot=e),e}},{key:"isNoSlotHost",value:function(){var e;return"body"===this.getTagName()||"true"===(null===(e=this.element)||void 0===e?void 0:e.getAttribute("data-tj-no-slot"))}},{key:"ensureContentSlotFirst",value:function(){var e=this.findContentSlot();return e?this.element.firstChild!==e&&this.element.insertBefore(e,this.element.firstChild):((e=document.createElement("div")).setAttribute("data-tj-slot","content"),this.element.insertBefore(e,this.element.firstChild),this.contentSlot=e),e}},{key:"enableSlotMode",value:function(){var e;if(!this.slotModeEnabled)if(this.isNoSlotHost())this.slotModeEnabled=!0;else if(null!==(e=this.element)&&void 0!==e&&e.firstChild){for(var t=this.ensureContentSlotFirst(),r=t.nextSibling;r;){var n=r.nextSibling;t.appendChild(r),r=n}this.slotModeEnabled=!0}else this.slotModeEnabled=!0}},{key:"ensureSlotMode",value:function(){if(this.isNoSlotHost())this.slotModeEnabled=!0;else{this.enableSlotMode();var e=this.findContentSlot();e&&this.element.firstChild!==e&&this.element.insertBefore(e,this.element.firstChild)}}},{key:"getComputedStyle",value:function(e){if(this.element){var t=window.getComputedStyle(this.element);return e?t.getPropertyValue(e)||t[e]:t}}},{key:"contains",value:function(e){return e instanceof Node&&this.element.contains(e)}},{key:"getTagName",value:function(){var e;return null===(e=this.element)||void 0===e||null===(e=e.tagName)||void 0===e?void 0:e.toLowerCase()}},{key:"setSelector",value:function(e){this.selector=e}},{key:"ensureId",value:function(e){this.selector="#"===e[0]?e:"#"+e,this.attr("id",this.selector.slice(1))}},{key:"getId",value:function(){return this.attr("id")}},{key:"focus",value:function(){this.element.focus()}},{key:"blur",value:function(){this.element.blur()}},{key:"attr",value:function(e,t){if(this.element)return n.d.isDefined(t)?void this.element.setAttribute(e,t):this.element.getAttribute(e)}},{key:"value",value:function(e){if(this.element){var t=this.element.value;return n.d.isDefined(e)&&(this.element.value=e),t}}},{key:"select",value:function(){this.element&&"function"==typeof this.element.select&&this.element.select()}},{key:"width",value:function(e){if(!n.d.isDefined(e))return this.element.offsetWidth;this.element.style.width=n.d.isNumber(e)?"".concat(e,"px"):e}},{key:"height",value:function(e){if(!n.d.isDefined(e))return this.element.offsetHeight;this.element.style.height=n.d.isNumber(e)?"".concat(e,"px"):e}},{key:"css",value:function(e){if(!n.d.isDefined(e))return this.element.className;this.element.className=e}},{key:"setStyleByMap",value:function(e){var t=this;Object.keys(e).forEach((function(r){t.style(r,e[r])}))}},{key:"style",value:function(e,t){if(2!==arguments.length)return 1===arguments.length?this.element.style[e]:this.element.style;this.element.style[e]=t}},{key:"getStyleValue",value:function(e){var t=this.style(e),r=n.d.isDefined(t)?t.replace(/[^-\d.]/g,""):0;return parseFloat(r)}},{key:"getBoundingClientRect",value:function(){return this.element.getBoundingClientRect()}},{key:"isXYWithinElement",value:function(e,t){var r=this.getBoundingClientRect();return e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom}},{key:"parent",value:function(){return this.element?this.element.parentElement:null}},{key:"detach",value:function(){e.detach(this.element)}},{key:"child",value:function(e){return this.element.children[e]}},{key:"elementCount",value:function(){return this.element.children.length}},{key:"swapElements",value:function(e,t){var r=t.nextSibling;r===e?this.element.insertBefore(e,t):(this.element.insertBefore(t,e),this.element.insertBefore(e,r))}},{key:"insertAfterContentSlot",value:function(e){if(this.element)if(this.isNoSlotHost())this.element.appendChild(e);else{var t=this.ensureContentSlotFirst(),r=t?t.nextSibling:this.element.firstChild;r?this.element.insertBefore(e,r):this.element.appendChild(e)}}},{key:"insertFirst$Dom",value:function(e){this.ensureSlotMode(),this.insertAfterContentSlot(e.element),this.hasRealChildren=!0}},{key:"relocate",value:function(e,t){this.ensureSlotMode();var r=t+(this.findContentSlot()?1:0);this.element.insertBefore(e.$dom.element,this.element.children[r]||null)}},{key:"appendTModel$Dom",value:function(e){this.ensureSlotMode(),this.element.appendChild(e.$dom.element),this.hasRealChildren=!0}},{key:"append$Dom",value:function(e){this.ensureSlotMode(),this.element.appendChild(e.element),this.hasRealChildren=!0}},{key:"appendElement",value:function(e){this.ensureSlotMode(),this.element.appendChild(e),this.hasRealChildren=!0}},{key:"removeElement",value:function(e){if(e){var t=e.parentNode;return t===this.element?(this.element.removeChild(e),!0):t?(t.removeChild(e),!1):void 0}}},{key:"html",value:function(e){n.d.isDefined(e)&&(this.isNoSlotHost()||!this.hasRealChildren?this.element.innerHTML=e:this.ensureContentSlotFirst().innerHTML=e,this.originalContent=e,this.textOnly=!1)}},{key:"text",value:function(e){n.d.isDefined(e)&&(this.isNoSlotHost()||!this.hasRealChildren?this.element.textContent=e:this.ensureContentSlotFirst().textContent=e,this.originalContent=e,this.textOnly=!0)}},{key:"clearContent",value:function(){this.element&&(!this.isNoSlotHost()&&this.hasRealChildren?this.ensureContentSlotFirst().innerHTML=this.originalContent||"":this.element.innerHTML=this.originalContent||"")}},{key:"deleteAll",value:function(){this.element&&(this.element.innerHTML=this.originalContent||"",this.hasRealChildren=!1,this.contentSlot=null,this.slotModeEnabled=!1)}},{key:"outerHTML",value:function(e){this.element.outerHTML=e}},{key:"isEmpty",value:function(){return""===this.element.innerHTML}},{key:"innerHTML",value:function(e){if(!n.d.isDefined(e))return this.element.innerHTML;this.element.innerHTML=e}},{key:"innerText",value:function(e){if(!n.d.isDefined(e))return this.element.innerText;this.element.innerText=e}},{key:"addClass",value:function(e){var t=this.attr("class"),r=t?t.includes(e)?t:"".concat(t," ").concat(e):e;r!==t&&this.attr("class",r)}},{key:"addEvent",value:function(e,t,r,n){this.element.addEventListener?this.element.addEventListener(e,t,{capture:!!r,passive:!!n}):this.element.attachEvent("on".concat(e),t)}},{key:"detachEvent",value:function(e,t,r){this.element.removeEventListener?this.element.removeEventListener(e,t,r):this.element.detachEvent?this.element.detachEvent("on".concat(e),t):this.element["on".concat(e)]=null}},{key:"transform",value:function(e){this.element.style[this.transformProp]=e}},{key:"animate",value:function(e,t){return this.element.animate(e,t)}},{key:"getContext",value:function(t,r){var i=n.d.isDefined(r)?e.query(r):this.query("canvas");return i?i.getContext(t):void 0}},{key:"query",value:function(e){return this.element.querySelector(e)}},{key:"queryAll",value:function(e){return this.element.querySelectorAll(e)}},{key:"findFirstByClass",value:function(t){return e.findFirstByClass(t,this.element)}},{key:"findFirstByTag",value:function(t){return e.findFirstByTag(t,this.element)}},{key:"getScrollTop",value:function(){var e,t;return null!==(e=null===(t=this.element)||void 0===t?void 0:t.scrollTop)&&void 0!==e?e:0}},{key:"getScrollLeft",value:function(){var e,t;return null!==(e=null===(t=this.element)||void 0===t?void 0:t.scrollLeft)&&void 0!==e?e:0}}],a=[{key:"createTemplate",value:function(t){var r=new e;return r.create("template"),r.innerHTML(t.trim()),r}},{key:"createDocumentFragment",value:function(){return document.createDocumentFragment()}},{key:"query",value:function(t){return"#"===t[0]?e.findById(t):"."===t[0]?e.findFirstByClass(t):e.findFirstByTag(t)}},{key:"querySelector",value:function(e){return document.querySelector(e)}},{key:"findById",value:function(e){return document.getElementById("#"===e[0]?e.slice(1):e)}},{key:"findFirstByClass",value:function(t,r){var n=e.findByClass(t,r);return n.length>0?n[0]:null}},{key:"findFirstByTag",value:function(t,r){var n=e.findByTag(t,r);return n.length>0?n[0]:null}},{key:"findByTag",value:function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).getElementsByTagName(e)}},{key:"findByClass",value:function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).getElementsByClassName("."===e[0]?e.slice(1):e)}},{key:"findNearestParentWithId",value:function(e){for(;e;){var t="function"==typeof e.getAttribute&&e.getAttribute("id")?e.getAttribute("id"):null;if(t&&(0,i.EI)().visibleOidMap[t])return t;e=e.parentElement}}},{key:"detach",value:function(e){var t=n.d.isDefined(e)?e.parentElement:null;t&&t.removeChild(e)}},{key:"hasFocus",value:function(e){return e.hasDom()&&document.activeElement===e.$dom.element}},{key:"getWindowScrollTop",value:function(){return window.pageYOffset||document.documentElement.scrollTop||0}},{key:"getWindowScrollLeft",value:function(){return window.pageXOffset||document.documentElement.scrollLeft||0}},{key:"getScreenWidth",value:function(){return document.documentElement.clientWidth||document.body.clientWidth}},{key:"getScreenHeight",value:function(){return document.documentElement.clientHeight||document.body.clientHeight}},{key:"ready",value:function(t){new e(document).addEvent("DOMContentLoaded",t)}},{key:"ajax",value:function(e){var t=new XMLHttpRequest,r="";e.data&&(r=Object.keys(e.data).map((function(t){return"".concat(t,"=").concat(encodeURIComponent(e.data[t]))})).join("&")),t.onreadystatechange=function(){if(4===t.readyState)if(200===t.status){var r="json"===e.dataType?JSON.parse(this.responseText):this.responseText;e.success(r)}else e.error(t.status)},"POST"===e.type?(t.open(e.type,e.url,!0),t.setRequestHeader("Content-type","application/x-www-form-urlencoded"),t.send(r)):(e.url+=r?e.url>""&&e.url.indexOf("?")>=0?"&".concat(r):"?".concat(r):"",t.open(e.type,e.url,!0),t.send())}}],r&&o(t.prototype,r),a&&o(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,a}()},580:function(e,t,r){r.d(t,{_:function(){return S}});var n=r(144),i=r(515),a=r(432),o=r(142),l=r(956),s=r(129);function u(e){return u="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},u(e)}function c(){c=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var a=t&&t.prototype instanceof b?t:b,o=Object.create(a.prototype),l=new A(n||[]);return i(o,"_invoke",{value:x(e,r,l)}),o}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var v="suspendedStart",y="suspendedYield",g="executing",p="completed",m={};function b(){}function T(){}function w(){}var k={};d(k,o,(function(){return this}));var S=Object.getPrototypeOf,M=S&&S(S(P([])));M&&M!==r&&n.call(M,o)&&(k=M);var D=w.prototype=b.prototype=Object.create(k);function E(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(i,a,o,l){var s=f(e[i],e,a);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==u(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(d).then((function(e){c.value=e,o(c)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function x(t,r,n){var i=v;return function(a,o){if(i===g)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var l=n.delegate;if(l){var s=_(l,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===v)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=g;var u=f(t,r,n);if("normal"===u.type){if(i=n.done?p:y,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=p,n.method="throw",n.arg=u.arg)}}}function _(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function L(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 A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(u(t)+" is not iterable")}return T.prototype=w,i(D,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:T,configurable:!0}),T.displayName=d(w,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===T||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,s,"GeneratorFunction")),e.prototype=Object.create(D),e},t.awrap=function(e){return{__await:e}},E(C.prototype),d(C.prototype,l,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new C(h(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},E(D),d(D,s,"Generator"),d(D,o,(function(){return this})),d(D,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=P,A.prototype={constructor:A,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(O),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=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 r=this;function i(n,i){return l.type="throw",l.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(o)},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),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;O(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function d(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,i)}function h(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){d(a,n,i,o,l,"next",e)}function l(e){d(a,n,i,o,l,"throw",e)}o(void 0)}))}}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||b(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 v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e,t,r){return(t=k(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=b(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function m(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(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 b(e,t){if(e){if("string"==typeof e)return T(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?T(e,t):void 0}}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,k(n.key),n)}}function k(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}var S=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.waapiPoller={rafId:0,alive:!0},this.recordMap=new Map,this.isShuttingDown=!1,this.toid="blank"},t=[{key:"animate",value:function(e,t,r){if(!this.isShuttingDown&&e.hasDom()){var a=e.$dom.getElement();if(t.frames.sort((function(e,t){return e.keyTime-t.keyTime})),this.cancelElementAnimationsForKeys(a,Object.keys(t.keyMap)),e.lastBatch){var o=Math.min(s.d.now()-e.lastBatch.startTime,e.lastBatch.totalDuration);this.cutLastBatch(e,e.lastBatch,o),this.callFireOnEndOnConflict(e,e.lastBatch,t),this.mergeBatches(e.lastBatch,t),this.deleteAnimation(e)}var u,c=Math.max(t.totalDuration,1),d=m(new Set(Object.values(t.keyMap).flatMap((function(e){return m(e)})))),h=p(d);try{for(h.s();!(u=h.n()).done;){var f=u.value;this.backfillKeyAcrossFramesUsingMorph(e,f,t.frames)}}catch(e){h.e(e)}finally{h.f()}var v=!1,g=t.frames.map((function(t){var r=y({},t.styleMap);if(r.offset=t.keyTime/c,Object.keys(t.tfMap).length){Object.keys(e.tfMap).forEach((function(t){e.tfMap[t]=e.val(t)}));var a=y(y({},e.tfMap),t.tfMap);r.transform=n.a.getTransformString(e,a),t.tfMap=a,v=!0}return i.T.addUnitsToFrame(r),r})),b=this.filterRedundantKeyframes(g),T={duration:c,fill:"none",iterations:1,easing:t.easing||"linear"};t.startTime=s.d.now(),e.lastBatch=t,e.lastBatch.transformAnimation=v,e.finalKeyframe=b[b.length-1],e.finalRawFrame=t.frames[t.frames.length-1];var w,k=a.animate(b,T),S=p(d);try{for(S.s();!(w=S.n()).done;){var M=w.value,D=l.g.getTargetName(M),E=this.getRecordId(e,M),C=l.g.getOriginalNames(e,M),x=C.originalTModel,_=C.originalTargetName,L={recId:E,cleanKey:D,originalKey:M,tmodel:e,anim:k,originalTModel:x,originalTargetName:_,frames:this.collectFramesForKey(t,D),status:"playing",needsFireOnStep:!0,hooks:r};e.addToAnimatingMap(M,L),e.targetValues[M]&&(e.targetValues[M].status="updating"),this.recordMap.set(E,L)}}catch(e){S.e(e)}finally{S.f()}this.startProgressPoller()}}},{key:"finalizeAnimation",value:function(e){var t,r=p(this.recordMap);try{for(r.s();!(t=r.n()).done;){var n=f(t.value,2),a=n[0],l=n[1];if(l.anim===e&&"playing"!==l.status&&"canceled"!==l.status){var s=l.tmodel,u=l.originalKey,c=l.cleanKey;if(s.removeFromAnimatingMap(u),this.recordMap.delete(a),s.finalRawFrame){var d=l.frames,h=d&&d[d.length-1],v=h?h.value:this.getAt(s.finalRawFrame,c);this.setAt(s,c,v),s.val(u,v);var y,g,m=s.targetValues[u];m&&(m.step=s.getTargetSteps(u),m.valuePointer=null!==(y=null===(g=m.valueList)||void 0===g?void 0:g.length)&&void 0!==y?y:0,m.value=v,s.setActual(u,v),s.isTargetImperative(u)&&(m.cycle=m.cycles))}s.hasAnimatingTargets()||(s.finalKeyframe&&s.hasDom()&&i.T.fixStyleByAnimation(s,s.finalKeyframe),s.lastBatch=void 0,s.pausedBatch=void 0),l.status="complete",l.hooks.fireOnEnd(s,u),(0,o.fB)().scheduleOnlyIfEarlier(1,"animate-".concat(s.oid,"---").concat(u))}}}catch(e){r.e(e)}finally{r.f()}(0,o.fB)().schedule(35,"finalizeAnimation")}},{key:"startProgressPoller",value:function(){var e=this;if(!this.waapiPoller.rafId){this.waapiPoller.alive=!0;var t=function(){var r,n=new Set,i=!1,a=p(e.recordMap);try{for(a.s();!(r=a.n()).done;){var o,l,s,u=f(r.value,2)[1];if("canceled"!==u.status){"playing"===u.status&&(i=!0),e.updateTModelFromRecord(u);var c=u.anim.playState,d=null===(o=u.anim.effect)||void 0===o||null===(l=(s=o).getComputedTiming)||void 0===l?void 0:l.call(s);("finished"===c||"idle"===c||d&&d.progress>=.999999)&&(u.status="done",n.add(u.anim))}}}catch(e){a.e(e)}finally{a.f()}var h,v=p(n);try{for(v.s();!(h=v.n()).done;){var y=h.value;e.finalizeAnimation(y)}}catch(e){v.e(e)}finally{v.f()}e.recordMap.size>0||i?e.waapiPoller.rafId=requestAnimationFrame(t):(e.waapiPoller.alive=!1,e.waapiPoller.rafId=0)};this.waapiPoller.rafId=requestAnimationFrame(t)}}},{key:"getAt",value:function(e,t){return a.u.isTransformKey(t)?e.tfMap[t]:e.styleMap[t]}},{key:"setAt",value:function(e,t,r){a.u.isTransformKey(t)?e.tfMap[t]=r:e.styleMap[t]=r}},{key:"backfillKeyAcrossFramesUsingMorph",value:function(e,t,r){for(var i=l.g.getTargetName(t),a=r.map((function(e){return e.keyTime})),o=[],u=0;u<r.length;u++)void 0!==this.getAt(r[u],i)&&o.push(u);if(o.length>=2)for(var c=0;c<o.length-1;c++){var d=o[c],h=o[c+1],f=this.getAt(r[d],i),v=this.getAt(r[h],i),y=r[h].keyMeta.get(i);if(y)for(var g=y.steps,p=y.interval,m=g*p,b=a[d],T=(a[h]-b)/m,w=d+1;w<h;w++){var k=a[w]-b,S=s.d.limit(Math.round(k/(T*p)),0,g),M=n.a.easingMorph(e,t,f,v,S,g);this.setAt(r[w],i,M),r[w].keyMeta.set(i,{steps:S,interval:p})}}if(o.length)for(var D=o[o.length-1],E=r[D],C=this.getAt(E,i),x=D+1;x<r.length;x++)this.setAt(r[x],i,C),r[x].keyMeta.set(i,{steps:0})}},{key:"freezeTModelAtCurrentTime",value:function(e){var t=e.lastBatch,r=Math.min(s.d.now()-t.startTime,t.totalDuration);this.cutLastBatch(e,t,r);var a=t.frames[0];if(a){var o=y({},a.styleMap);if(Object.keys(a.tfMap).length>0){Object.keys(e.tfMap).forEach((function(t){e.tfMap[t]=e.val(t)}));var l=y(y({},e.tfMap),a.tfMap);a.tfMap=l,o.transform=n.a.getTransformString(e,l)}i.T.addUnitsToFrame(o),i.T.fixStyleByAnimation(e,o)}}},{key:"collectFramesForKey",value:function(e,t){var r,n=[],i=e.totalDuration,a=p(e.frames);try{for(a.s();!(r=a.n()).done;){var o=r.value,l=this.getAt(o,t);if(void 0!==l){var s=o.keyMeta.get(t);n.push({value:l,time:o.keyTime,steps:null==s?void 0:s.steps,interval:null==s?void 0:s.interval,offset:o.keyTime/i})}}}catch(e){a.e(e)}finally{a.f()}return n.sort((function(e,t){return e.time-t.time})),n.length>=2?n:void 0}},{key:"getRecordId",value:function(e,t){return"".concat(e.oid,"-").concat(t)}},{key:"updateTModelFromRecord",value:function(e){var t=e.tmodel,r=e.originalKey,n=e.cleanKey,i=this.getValueFromAnim(e);if(i){var a=i.value,o=i.step;this.setAt(t,n,a),t.val(r,a),t.targetValues[r]&&(t.targetValues[r].step=o,t.setActual(r,a),e.needsFireOnStep&&(e.hooks.fireOnStep(t,r,o)||(e.needsFireOnStep=!1)))}}},{key:"delete",value:function(e){var t=e.recId,r=e.originalKey,n=e.tmodel;e.anim.cancel(),n.removeFromAnimatingMap(r),this.recordMap.delete(t)}},{key:"deleteAnimation",value:function(e){var t,r=p(this.recordMap);try{for(r.s();!(t=r.n()).done;){var n=f(t.value,2),i=n[0],a=n[1];i.startsWith("".concat(e.oid,"-"))&&this.delete(a)}}catch(e){r.e(e)}finally{r.f()}e.lastBatch=void 0,e.finalKeyframe=void 0,e.finalRawFrame=void 0,e.clearAnimatingMap()}},{key:"cancelKey",value:function(e,t){var r=this.getRecordId(e,t),n=this.recordMap.get(r);n&&(n.status="canceled")}},{key:"deleteAll",value:(d=h(c().mark((function e(){var t,r,n,i,a,o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.isShuttingDown=!0,this.waapiPoller.rafId&&(cancelAnimationFrame(this.waapiPoller.rafId),this.waapiPoller.rafId=0,this.waapiPoller.alive=!1),t=new Set,r=p(this.recordMap),e.prev=4,r.s();case 6:if((n=r.n()).done){e.next=22;break}if(i=f(n.value,2),a=i[1],o=a.tmodel,this.updateTModelFromRecord(a),this.delete(a),!t.has(o.oid)){e.next=13;break}return e.abrupt("continue",20);case 13:t.add(o.oid),this.freezeTModelAtCurrentTime(o),o.pausedBatch=o.lastBatch,o.lastBatch=void 0,o.finalKeyframe=void 0,o.finalRawFrame=void 0,o.clearAnimatingMap();case 20:e.next=6;break;case 22:e.next=27;break;case 24:e.prev=24,e.t0=e.catch(4),r.e(e.t0);case 27:return e.prev=27,r.f(),e.finish(27);case 30:this.recordMap.clear();case 31:case"end":return e.stop()}}),e,this,[[4,24,27,30]])}))),function(){return d.apply(this,arguments)})},{key:"flushOneFrame",value:(u=h(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise(requestAnimationFrame);case 2:this.isShuttingDown=!1;case 3:case"end":return e.stop()}}),e,this)}))),function(){return u.apply(this,arguments)})},{key:"getValueFromAnim",value:function(e){var t,r,i=e.originalKey,a=e.anim,o=e.frames;if(o){var l=null===(t=a.effect)||void 0===t||null===(r=t.getComputedTiming)||void 0===r?void 0:r.call(t);if(l){var u=s.d.isDefined(l.progress)?s.d.limit(l.progress,0,1):1,c=o.length-1,d=0;if(u<=o[0].offset)d=0;else if(u>=o[c].offset)d=c-1;else for(var h=0;h<c;h++)if(u>=o[h].offset&&u<o[h+1].offset){d=h;break}var f=o[d],v=o[d+1],y=f.value,g=v.value,p=f.offset,m=v.offset-p;if(m>0){var b=s.d.limit((u-p)/m,0,1),T=v.steps,w=Math.round(b*T);return w=s.d.limit(w,0,T),{value:n.a.morph(i,y,g,b),step:w,steps:T}}}}}},{key:"cutLastBatch",value:function(e,t,r){for(var n=0;n<t.frames.length&&t.frames[n].keyTime<=r;)n++;if(n<t.frames.length&&r!==t.frames[n].keyTime){t.frames.splice(n,0,{keyTime:r,tfMap:{},styleMap:{},keyMeta:new Map});var i,a=p(m(new Set(Object.values(t.keyMap).flatMap((function(e){return m(e)})))));try{for(a.s();!(i=a.n()).done;){var o=i.value;this.backfillKeyAcrossFramesUsingMorph(e,o,t.frames)}}catch(e){a.e(e)}finally{a.f()}t.frames=t.frames.slice(n)}t.frames.forEach((function(e){e.keyTime=Math.max(0,e.keyTime-r)})),t.totalDuration=t.frames.length?t.frames[t.frames.length-1].keyTime:0}},{key:"callFireOnEndOnConflict",value:function(e,t,r){for(var n=t.keyMap,i=r.keyMap,a=0,o=Object.keys(i);a<o.length;a++){var l=o[a],s=n[l],u=i[l];if(s&&u){var c,d=p(s);try{for(d.s();!(c=d.n()).done;){var h=c.value;if(!u.has(h)){var f=this.getRecordId(e,h),v=this.recordMap.get(f);v&&"playing"===v.status&&(this.updateTModelFromRecord(v),v.status="complete",v.hooks.fireOnEnd(v.tmodel,h),v.tmodel.removeFromAnimatingMap(h),this.recordMap.delete(f))}}}catch(e){d.e(e)}finally{d.f()}}}}},{key:"mergeBatches",value:function(e,t){var r,n=Object.keys(t.keyMap),i=[],a=p(e.frames);try{for(a.s();!(r=a.n()).done;){var o,l=r.value,s=p(n);try{for(s.s();!(o=s.n()).done;){var u=o.value;delete l.styleMap[u],delete l.tfMap[u],delete e.keyMap[u]}}catch(e){s.e(e)}finally{s.f()}(Object.keys(l.styleMap).length||Object.keys(l.tfMap).length)&&i.push(l)}}catch(e){a.e(e)}finally{a.f()}t.frames=[].concat(i,m(t.frames)),t.frames.sort((function(e,t){return e.keyTime-t.keyTime}));var c,d=[],h=p(t.frames);try{for(h.s();!(c=h.n()).done;){var v=c.value,g=d[d.length-1];if(g&&g.keyTime===v.keyTime){if(Object.assign(g.styleMap,v.styleMap),Object.assign(g.tfMap,v.tfMap),v.keyMeta){var b,T=p(v.keyMeta);try{for(T.s();!(b=T.n()).done;){var w=f(b.value,2),k=w[0],S=w[1];g.keyMeta.set(k,S)}}catch(e){T.e(e)}finally{T.f()}}}else d.push(v)}}catch(e){h.e(e)}finally{h.f()}t.keyMap=y(y({},t.keyMap),e.keyMap),t.frames=d,t.totalDuration=t.frames.length?t.frames[t.frames.length-1].keyTime:0}},{key:"pauseTModel",value:function(e){var t=e.lastBatch;if(t){var r,n=p(e.animatingMap);try{for(n.s();!(r=n.n()).done;){var i=f(r.value,1)[0];e.targetValues[i]&&(e.targetValues[i].status="pause")}}catch(e){n.e(e)}finally{n.f()}var a=Math.min(s.d.now()-t.startTime,t.totalDuration);this.cutLastBatch(e,t,a),e.pausedBatch=t,e.lastBatch=void 0,this.deleteAnimation(e)}}},{key:"areFramesEqual",value:function(e,t){var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0,a=r;i<a.length;i++){var o=a[i];if("offset"!==o&&e[o]!==t[o])return!1}return!0}},{key:"filterRedundantKeyframes",value:function(e){if(e.length<=2)return e;for(var t=[e[0]],r=1;r<e.length-1;r++){var n=t[t.length-1],i=e[r];this.areFramesEqual(n,i)||t.push(i)}return t.push(e[e.length-1]),t}},{key:"cancelElementAnimationsForKeys",value:function(e,t){if(e.getAnimations){var r,n=new Set(t),i=p(e.getAnimations());try{for(i.s();!(r=i.n()).done;){var a=r.value,o=a.effect;if(null!=o&&o.getKeyframes){var l,s=o.getKeyframes(),u=!1,c=p(s);try{for(c.s();!(l=c.n()).done;){for(var d=l.value,h=0,f=Object.keys(d);h<f.length;h++){var v=f[h];if(n.has(v)){u=!0;break}}if(u)break}}catch(e){c.e(e)}finally{c.f()}if(u)try{a.cancel()}catch(e){}}}}catch(e){i.e(e)}finally{i.f()}}}}],t&&w(e.prototype,t),r&&w(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r,u,d}()},515:function(e,t,r){r.d(t,{T:function(){return c}});var n=r(956),i=r(432),a=r(144),o=r(142);function l(e){return l="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},l(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function u(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,l=[{key:"overrideAnimatedKeyWithSnap",value:function(t,r,a){for(var l=Array.isArray(r)?r:[r],s=Array.isArray(a)?a:[a],u={},c={},d=new Map,h={},f={},v=new Map,y={},g=!1,p=0;p<l.length;p++){var m=l[p];g=!0;var b=s[p],T=t.targetValues[m],w=n.g.getTargetName(m);i.u.isTransformKey(w)?(u[w]=b,h[w]=b):(c[w]=b,f[w]=b),d.set(w,{steps:1,interval:1}),v.set(w,{steps:1,interval:1}),(y[w]=new Set).add(m),T&&(T.value=b,T.steps=1,T.interval=0,T.snapAnimation=!0)}if(g){var k=[];k.push({keyTime:0,tfMap:u,styleMap:c,keyMeta:d}),k.push({keyTime:1,tfMap:h,styleMap:f,keyMeta:v});var S={frames:k,keyMap:y,totalDuration:1};(0,o.s)().animate(t,S,e.getAnimationHooks())}}},{key:"fixStyleByAnimation",value:function(e,t){if(e.hasDom())for(var r=0,n=Object.keys(t);r<n.length;r++){var a=n[r];if("offset"!==a){var o=t[a];if(null!==o){var l=o;if("string"==typeof o&&o.endsWith("px")){var s=Number(o.slice(0,-2));Number.isNaN(s)||(l=s)}"width"===a?(e.styleMap.width=l,e.$dom.width(o)):"height"===a?(e.styleMap.height=l,e.$dom.height(o)):"transform"===a?e.$dom.transform(o,e.val("transformOrder")):i.u.transformMap[a]||(e.$dom.style(a,o),e.styleMap[a]=l)}}}}},{key:"addUnitsToFrame",value:function(e){for(var t=0,r=Object.keys(e);t<r.length;t++){var n=r[t];if("offset"!==n&&"transform"!==n){var a=e[n];null==a||Number.isNaN(a)?delete e[n]:"number"==typeof a&&i.u.styleWithUnitMap[n]&&(("width"===n||"height"===n)&&a<0&&(a=0),e[n]="".concat(a,"px"))}}}},{key:"getAnimationHooks",value:function(){return{morph:function(e,t,r,n,i,o){return a.a.morph(e,t,r,n,i,o)},fireOnStep:function(e,t,r){return(0,o.HJ)().fireOnStep(e,t,r)},fireOnEnd:function(e,t){return(0,o.HJ)().fireOnEnd(e,t)}}}}],(r=null)&&s(t.prototype,r),l&&s(t,l),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,l}()},142:function(e,t,r){r.d(t,{qw:function(){return Re},hd:function(){return qe},aK:function(){return Ke},s:function(){return Je},UR:function(){return at},kQ:function(){return $e},qI:function(){return Ye},zw:function(){return Ge},EI:function(){return ze},cI:function(){return Xe},S9:function(){return nt},fB:function(){return Ze},c$:function(){return tt},r5:function(){return et},iP:function(){return it},HJ:function(){return Qe},U$:function(){return rt},W_:function(){return Ue},E_:function(){return _e},Bt:function(){return We}});var n=r(185),i=r(528),a=r(745),o=r(129),l=r(432),s=r(985);function u(e){return u="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},u(e)}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||h(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 d(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=h(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function h(e,t){if(e){if("string"==typeof e)return f(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g(n.key),n)}}function y(e,t,r){return(t=g(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}var p=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$document=new n.J(document),this.currentTouch={deltaY:0,deltaX:0,prevDeltaX:0,prevDeltaY:0,pinchDelta:0,key:"",manualMomentumFlag:!1,orientation:"none",dir:"",source:""},this.lastEvent=void 0,this.touchTimeStamp=0,this.cursor={x:0,y:0},this.start0=void 0,this.start1=void 0,this.end0=void 0,this.end1=void 0,this.touchCount=0,this.canFindHandlers=!0,this.swipeStartX=0,this.swipeStartY=0,this.currentEventName="",this.currentEventType="",this.currentOriginalEvent=void 0,this.currentKey="",this.currentHandlers={touch:null,scrollLeft:null,scrollTop:null,swipe:null,pinch:null,focus:null,justFocused:null,blur:null,leave:null,enter:null,start:null,end:null,hover:null},this.eventQueue=[],this.attachedEventMap={},this.eventTargetMap={},this.allEvents={},this.windowScrollX=0|window.scrollX,this.windowScrollY=0|window.scrollY,this.windowEpoch=0,this.eventEpoch=0,Object.values(l.u.events).forEach((function(e){Object.assign(t.allEvents,e)})),this.hovered=new Set,this.bindedHandleWindowEvent=this.handleWindowEvent.bind(this),this.bindedHandleEvent=this.handleEvent.bind(this),this.bindedParentHandleEvent=this.handleDocEvent.bind(this)}return t=e,r=[{key:"detachWindowEvents",value:function(){var e=this;Object.keys(l.u.events.windowEvents).forEach((function(t){_e.$window.detachEvent(t,e.bindedHandleWindowEvent)}))}},{key:"attachWindowEvents",value:function(){var e=this;Object.keys(l.u.events.windowEvents).forEach((function(t){_e.$window.addEvent(t,e.bindedHandleWindowEvent)}))}},{key:"detachDocumentEvents",value:function(e){var t=this,r=l.u.events[e];Object.keys(r).forEach((function(e){var n=r[e];t.$document.detachEvent(e,t.bindedParentHandleEvent,n.capture)}))}},{key:"attachDocumentEvents",value:function(e){var t=this,r=l.u.events[e];Object.keys(r).forEach((function(e){var n=r[e];t.$document.addEvent(e,t.bindedParentHandleEvent,n.capture,n.passive)}))}},{key:"attachEvents",value:function(e){var t,r=d(e);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(n.externalEventMap){var i,a=d(n.externalEventMap);try{for(a.s();!(i=a.n()).done;){var o=c(i.value,1)[0];this.attachTargetEvents(n,o,!0)}}catch(e){a.e(e)}finally{a.f()}}}}catch(e){r.e(e)}finally{r.f()}}},{key:"attachTargetEvents",value:function(e,t,r){var n=this,i="".concat(e.oid," ").concat(t),a=l.u.targetToEventsMapping[t];a&&Array.isArray(a)&&0!==a.length&&a.forEach((function(t){var a=l.u.events[t];if(a){var o="undefined"!=typeof window&&!!window.PointerEvent;Object.keys(a).forEach((function(t){if(!o||!t.startsWith("mouse")){var l=a[t],s=!!l.windowEvent,u=s?_e.$window:e.hasDom()?e.$dom:null;if(!u)return!1;var c="".concat(i," ").concat(s?"win":"dom"),d=n.eventTargetMap[c]===u,h="".concat(e.oid," ").concat(t," ").concat(s?"win":"dom"),f=n.attachedEventMap[h]&&n.attachedEventMap[h].$dom===u;!r&&d&&f||(u.detachEvent(t,n.bindedHandleEvent,l.capture),u.addEvent(t,n.bindedHandleEvent,l.capture,l.passive),n.eventTargetMap[c]=u,n.attachedEventMap[h]={$dom:u,event:t,capture:!!l.capture})}}))}}))}},{key:"detachAll",value:function(){for(var e=0,t=Object.keys(this.attachedEventMap);e<t.length;e++){var r=t[e],n=this.attachedEventMap[r],i=n.$dom,a=n.event,o=n.capture;i.exists()&&i.detachEvent(a,this.bindedHandleEvent,o)}this.attachedEventMap={},this.eventTargetMap={}}},{key:"resetEventsOnTimeout",value:function(){if(this.currentTouch.deltaY||this.currentTouch.deltaX||this.currentTouch.pinchDelta){var e=this.touchTimeStamp-o.d.now();e>100&&(this.currentTouch.deltaY*=.95,this.currentTouch.deltaX*=.95,this.currentTouch.pinchDelta*=.95,Math.abs(this.currentTouch.deltaY)<.1&&(this.currentTouch.deltaY=0),Math.abs(this.currentTouch.deltaX)<.1&&(this.currentTouch.deltaX=0),Math.abs(this.currentTouch.pinchDelta)<.1&&(this.currentTouch.pinchDelta=0),0===this.currentTouch.deltaX&&0===this.currentTouch.deltaY&&0===this.currentTouch.pinchDelta&&(this.touchTimeStamp=0)),(e<=0||0===this.touchTimeStamp)&&(this.currentTouch.deltaY=0,this.currentTouch.deltaX=0,this.currentTouch.pinchDelta=0,this.currentTouch.dir="",this.touchTimeStamp=0),Ze().schedule(10,"scroll decay")}}},{key:"findEventHandlers",value:function(e){var t,r,i,o,l,s,u,c,d=e.tmodel,h=e.eventType;d&&(t=a.X.findFirstClickHandler(d),r=a.X.findFirstSwipeHandler(d),u=a.X.findFirstEnterHandler(d),c=a.X.findFirstLeaveHandler(d),i=a.X.findFirstScrollLeftHandler(d,h),o=a.X.findFirstScrollTopHandler(d,h),l=a.X.findFirstPinchHandler(d),s=n.J.hasFocus(d)?d:this.currentHandlers.focus),this.currentHandlers.scrollLeft===i&&this.currentHandlers.scrollTop===o||this.clearTouch(),this.currentHandlers.focus!==s&&(this.currentHandlers.justFocused=s,this.currentHandlers.blur=this.currentHandlers.focus),this.currentHandlers.hover=null!=d&&d.canHandleEvent("onHover")?d:void 0,this.currentHandlers.click=t,this.currentHandlers.swipe=r,this.currentHandlers.scrollLeft=i,this.currentHandlers.scrollTop=o,this.currentHandlers.pinch=l,this.currentHandlers.focus=s,this.currentHandlers.enter=u,this.currentHandlers.leave=c}},{key:"captureEvents",value:function(){if(this.currentTouch.prevDeltaX=0,this.currentTouch.prevDeltaY=0,this.currentHandlers.enter=void 0,this.currentHandlers.leave=void 0,this.currentHandlers.justFocused=void 0,this.currentHandlers.blur=void 0,this.currentHandlers.end=void 0,this.currentKey=this.currentTouch.key,0===this.eventQueue.length)return this.currentEventName="",this.currentEventType="",this.currentOriginalEvent=void 0,void(this.currentKey="");var e,t=this.eventQueue.shift();(this.canFindHandlers&&this.findEventHandlers(t),"end"===t.eventType||"click"===t.eventType)&&("end"===t.eventType&&(this.currentHandlers.end=this.currentHandlers.start,null===(e=this.currentHandlers.end)||void 0===e||e.markLayoutDirty("end-event"),this.currentHandlers.start=void 0),this.canFindHandlers=!0);this.currentEventName=t.eventName,this.currentEventType=t.eventType,this.currentOriginalEvent=t.originalEvent,this.currentTouch.key=""}},{key:"handleDocEvent",value:function(e){this.handleEvent(e,!0,!1)}},{key:"handleWindowEvent",value:function(e){this.handleEvent(e,!1,!0)}},{key:"handleEvent",value:function(t,r,n){var i,l,s,u,c,d,h,f,v;if(t){var y=t.type,g=this.allEvents[y];if(g){var p,m,b=g.eventName,T=g.inputType,w=g.eventType,k=g.order,S=g.queue,M=g.rateLimit,D=o.d.now(),E={eventName:b,eventItem:g,eventType:w,originalName:y,tmodel:p="move"===w&&this.touchCount>0&&this.currentHandlers.start?this.currentHandlers.start:this.getTModelFromEvent(t),originalEvent:t,timeStamp:D};if(null!==(i=this.lastEvent)&&void 0!==i&&i.eventItem){var C=this.lastEvent,x=C.eventItem,_=D-C.timeStamp;if("end"!==w&&"cancel"!==w&&"start"!==w&&T&&x.inputType&&x.inputType!==T&&k>x.order)return;if(this.eventQueue.length>e.MAX_EVENT_QUEUE_SIZE&&M>0&&_<M)for(var L=0,O=this.eventQueue.length-1;O>=0;O--){var A;if((null===(A=this.eventQueue[O].eventItem)||void 0===A?void 0:A.eventType)!==w)break;if(++L>e.MAX_EVENT_TYPE_CAPACITY)return void(this.preventDefault(p,b)&&(t.preventDefault(),t.stopPropagation()))}}switch(this.eventEpoch++,null===(l=p)||void 0===l||l.markEventDirty(),null===(s=p)||void 0===s||s.markLayoutDirty("event"),this.lastEvent=E,S&&this.eventQueue.push(this.lastEvent),b){case"mousedown":case"touchstart":this.clearStart(),this.clearEnd(),this.clearTouch(),this.eventQueue.length=0,this.eventQueue.push(this.lastEvent),this.touchCount=this.countTouches(t)||1,this.preventDefault(p,b)&&t.cancelable&&t.preventDefault(),this.start0=this.getTouch(t),this.start1=this.getTouch(t,1),this.cursor.x=this.start0.x,this.cursor.y=this.start0.y,this.currentHandlers.start=p,this.findEventHandlers(E),this.canFindHandlers=!1,this.swipeStartX=this.start0.x-(null!==(u=null===(c=this.currentHandlers.swipe)||void 0===c?void 0:c.getX())&&void 0!==u?u:0),this.swipeStartY=this.start0.y-(null!==(d=null===(h=this.currentHandlers.swipe)||void 0===h?void 0:h.getY())&&void 0!==d?d:0),t.stopPropagation(),this.detachDocumentEvents("documentDragEvents"),this.attachDocumentEvents("documentDragEvents");break;case"mousemove":case"touchmove":var P;m=this.getTouch(t),this.cursor.x=m.x,this.cursor.y=m.y,this.preventDefault(p,b)&&t.cancelable&&t.preventDefault(),this.touchCount>0?(this.touchTimeStamp=D+10,this.move(t),t.stopPropagation(),null===(P=this.currentHandlers.swipe)||void 0===P||P.markLayoutDirty("swipe-event")):this.isCurrentSource("wheel")&&this.clearTouch();break;case"mouseup":case"touchend":this.detachDocumentEvents("documentDragEvents"),this.preventDefault(p,b)&&t.cancelable&&t.preventDefault(),this.end(t),this.clearEnd(),this.touchCount=0,t.stopPropagation();break;case"click":this.preventDefault(p,b)&&t.preventDefault(),this.end0=this.getTouch(t);var j=a.X.findFirstClickHandler(p),I=!this.start0||j===this.currentHandlers.click&&(j!==this.currentHandlers.swipe||this.getSwipeDistance()<5);j&&I&&(this.eventQueue.length=0,this.eventQueue.push({eventName:b,eventItem:g,eventType:w,originalName:y,tmodel:p,originalEvent:t,timeStamp:D})),this.clearEnd(),this.touchCount=0,t.stopPropagation();break;case"wheel":this.preventDefault(p,b)&&(t.preventDefault(),t.stopPropagation()),this.touchTimeStamp=D+500,this.wheel(t);break;case"mouseleave":r&&this.touchCount>0&&(this.detachDocumentEvents("documentDragEvents"),m=this.getTouch(t),this.cursor.x=m.x,this.cursor.y=m.y,this.end(t),this.clearEnd(),this.touchCount=0,t.stopPropagation());break;case"mousecancel":case"touchcancel":this.canFindHandlers=!0,this.detachDocumentEvents("documentDragEvents"),this.clearStart(),this.clearEnd(),this.clearTouch(),this.touchCount=0,t.stopPropagation();break;case"key":this.currentTouch.key=t.which||t.keyCode,null===(f=this.currentHandlers.focus)||void 0===f||f.markLayoutDirty("key-event");break;case"keydown":this.currentTouch.key=t.which||t.keyCode,null===(v=this.currentHandlers.focus)||void 0===v||v.markLayoutDirty("keydown-event");break;case"resize":this.windowEpoch++,this.resizeRoot(),ze().getVisibles().forEach((function(e){e.targets.onResize&&e.markLayoutDirty("resize-event")}));break;case"scroll":n?(this.windowEpoch++,this.windowScrollX=0|window.scrollX,this.windowScrollY=0|window.scrollY,Ge().domIslandSet.forEach((function(e){e.markLayoutDirty("winScroll-event")}))):p.markLayoutDirty("winScroll-event")}Ze().schedule(0,"".concat(y,"-").concat(b,"-").concat((t.target.tagName||"").toUpperCase()))}}}},{key:"resizeRoot",value:function(){s.j.executeDeclarativeTarget(We(),"screenWidth"),s.j.executeDeclarativeTarget(We(),"screenHeight")}},{key:"preventDefault",value:function(e,t){return!(!e||!(!0===e.preventDefault()||Array.isArray(e.preventDefault())&&e.preventDefault().includes(t)))}},{key:"getTModelFromEvent",value:function(e){var t,r=e.currentTarget||e.target;return r&&1===r.nodeType&&(t=r.getAttribute("tgjs-oid")||r.id),t&&_e.manager.visibleOidMap[t]||(t=null==r?void 0:r.id)&&ze().visibleOidMap[t]||(t=n.J.findNearestParentWithId(e.target)),ze().visibleOidMap[t]}},{key:"clearStart",value:function(){this.start0=void 0,this.start1=void 0}},{key:"clearEnd",value:function(){this.end0=void 0,this.end1=void 0}},{key:"clearTouch",value:function(){this.currentTouch={deltaY:0,deltaX:0,prevDeltaX:0,prevDeltaY:0,pinchDelta:0,key:"",manualMomentumFlag:!1,orientation:"none",dir:"",source:""}}},{key:"clearAll",value:function(){this.clearStart(),this.clearEnd(),this.clearTouch(),this.eventQueue.length=0,this.touchTimeStamp=0,this.touchCount=0,this.canFindHandlers=!0,this.lastEvent=void 0,this.attachedEventMap={},this.eventTargetMap={},this.swipeStartX=0,this.swipeStartY=0,this.hovered.clear()}},{key:"deltaX",value:function(){return this.currentTouch.deltaX}},{key:"deltaY",value:function(){return this.currentTouch.deltaY}},{key:"cursorX",value:function(){return this.cursor.x}},{key:"cursorY",value:function(){return this.cursor.y}},{key:"swipeX",value:function(){return this.cursor.x-this.swipeStartX}},{key:"swipeY",value:function(){return this.cursor.y-this.swipeStartY}},{key:"getSwipeDistance",value:function(){return this.start0&&this.end0?o.d.distance(this.start0.originalX,this.start0.originalY,this.end0.x,this.end0.y):0}},{key:"pinchDelta",value:function(){return this.currentTouch.pinchDelta}},{key:"dir",value:function(){return this.currentTouch.dir}},{key:"getScrollLeftHandler",value:function(){return this.currentHandlers.scrollLeft}},{key:"getScrollTopHandler",value:function(){return this.currentHandlers.scrollTop}},{key:"getWindowScrollX",value:function(){return this.windowScrollX}},{key:"getWindowScrollY",value:function(){return this.windowScrollY}},{key:"getWindowEpoch",value:function(){return this.windowEpoch}},{key:"getPinchHandler",value:function(){return this.currentHandlers.pinch}},{key:"getClickHandler",value:function(){return this.currentHandlers.click}},{key:"getTouchCount",value:function(){return this.touchCount}},{key:"isClickEvent",value:function(){return"click"===this.getEventType()}},{key:"isMoveEvent",value:function(){return"move"===this.getEventType()}},{key:"isResizeEvent",value:function(){return"resize"===this.getEventType()}},{key:"isSwipeEvent",value:function(){return this.hasDelta()&&1===this.touchCount}},{key:"isScrollEvent",value:function(){return this.hasDelta()&&this.isCurrentSource("wheel")}},{key:"hasDelta",value:function(){return 0!==this.deltaX()||0!==this.deltaY()}},{key:"isEndEvent",value:function(){return"end"===this.getEventType()||"click"===this.getEventType()}},{key:"isStartEvent",value:function(){return"start"===this.getEventType()}},{key:"getEventName",value:function(){return this.currentEventName}},{key:"getCurrentOriginalEvent",value:function(){return this.currentOriginalEvent}},{key:"getEventType",value:function(){return this.currentEventType}},{key:"isClickHandler",value:function(e){return this.getClickHandler()===e&&this.isClickEvent()}},{key:"isEnterHandler",value:function(e){return!(!e||e!==this.currentHandlers.enter||"mouseenter"!==this.getEventName()||this.hovered.has(e.oid)||(this.hovered.add(e.oid),0))}},{key:"isLeaveHandler",value:function(e){return!(!e||e!==this.currentHandlers.leave||"mouseleave"!==this.getEventName()||!this.hovered.has(e.oid)||(this.hovered.delete(e.oid),0))}},{key:"isHoverHandler",value:function(e){return e===this.currentHandlers.hover}},{key:"isSwipeHandler",value:function(e){return e===this.currentHandlers.swipe}},{key:"isStartHandler",value:function(e){return e===this.currentHandlers.start}},{key:"isEndHandler",value:function(e){return e===this.currentHandlers.end}},{key:"onFocus",value:function(e){return this.currentHandlers.justFocused===e}},{key:"onBlur",value:function(e){return this.currentHandlers.blur===e}},{key:"hasFocus",value:function(e){return this.currentHandlers.focus===e}},{key:"isScrollLeftHandler",value:function(e){return this.currentHandlers.scrollLeft===e}},{key:"isScrollTopHandler",value:function(e){return this.currentHandlers.scrollTop===e}},{key:"isPinchHandler",value:function(e){return this.currentHandlers.pinch===e}},{key:"isCurrentSource",value:function(e){return this.currentTouch.source===e}},{key:"isFormHandler",value:function(e){var t,r,n=this.currentOriginalEvent,i=null===(t=e.$dom)||void 0===t?void 0:t.element,a=null==n?void 0:n.target;return!!(i&&a&&(a===i||null!==(r=i.contains)&&void 0!==r&&r.call(i,a)))}},{key:"getOrientation",value:function(){return this.currentTouch.orientation}},{key:"countTouches",value:function(e){var t,r;return(null===(t=e.touches)||void 0===t?void 0:t.length)||(null===(r=e.originalEvent)||void 0===r||null===(r=r.touches)||void 0===r?void 0:r.length)}},{key:"getTouch",value:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(null===(t=e.touches)||void 0===t?void 0:t[n])||(null===(r=e.originalEvent)||void 0===r||null===(r=r.touches)||void 0===r?void 0:r[n])||e,a=o.d.isDefined(i.clientX)?i.clientX:i.pageX||0,l=o.d.isDefined(i.clientY)?i.clientY:i.pageY||0;return{x:a,y:l,originalX:a,originalY:l,target:i.target,timeStamp:o.d.now()}}},{key:"move",value:function(e){if(1===this.touchCount){if(this.start0.y=this.end0?this.end0.y:this.start0.y,this.start0.x=this.end0?this.end0.x:this.start0.x,this.end0=this.getTouch(e),o.d.isDefined(this.end0)){var t=this.start0.x-this.end0.x,r=this.start0.y-this.end0.y;this.setDeltaXDeltaY(t,r,"touch")}}else if(this.touchCount>=2){this.end0=this.getTouch(e),this.end1=this.getTouch(e,1);var n=o.d.distance(this.start0.x,this.start0.y,this.start1.x,this.start1.y),i=o.d.distance(this.end0.x,this.end0.y,this.end1.x,this.end1.y)-n;this.currentTouch.pinchDelta=i>0?.3:i<0?-.3:0}}},{key:"end",value:function(){if(this.touchCount<=1&&this.start0){var e,t=0,r=0,n=0;o.d.isDefined(this.end0)&&(t=this.start0.originalX-this.end0.x,r=this.start0.originalY-this.end0.y,n=o.d.now()-this.start0.timeStamp<250?o.d.now()-this.start0.timeStamp:0),"horizontal"===this.currentTouch.orientation&&Math.abs(t)>0&&n>0?(e=o.d.momentum(0,t,n),this.touchTimeStamp=this.end0.timeStamp+e.duration,this.touchTimeStamp-o.d.now()>0&&(this.currentTouch.deltaX=e.distance,this.currentTouch.manualMomentumFlag=!0)):"vertical"===this.currentTouch.orientation&&Math.abs(r)>0&&n>0&&(e=o.d.momentum(0,r,n),this.touchTimeStamp=this.end0.timeStamp+e.duration,this.touchTimeStamp-o.d.now()>0&&(this.currentTouch.deltaY=e.distance,this.currentTouch.manualMomentumFlag=!0))}}},{key:"setDeltaXDeltaY",value:function(e,t,r){var n=Math.abs(e)-Math.abs(t);n>=1?("none"===this.currentTouch.orientation||"vertical"===this.currentTouch.orientation&&n>=2||"horizontal"===this.currentTouch.orientation)&&(this.currentTouch.orientation="horizontal"):("none"===this.currentTouch.orientation||"horizontal"===this.currentTouch.orientation&&n<=-2||"vertical"===this.currentTouch.orientation)&&(this.currentTouch.orientation="vertical"),"horizontal"===this.currentTouch.orientation?this.currentTouch.dir=e<0?"left":e>0?"right":this.currentTouch.dir:this.currentTouch.dir=t<0?"up":t>0?"down":this.currentTouch.dir,this.currentTouch.source=r,this.currentTouch.prevDeltaX+=e,this.currentTouch.prevDeltaY+=t,this.currentTouch.deltaX=this.currentTouch.prevDeltaX,this.currentTouch.deltaY=this.currentTouch.prevDeltaY}},{key:"wheel",value:function(e){var t=0,r=0;this.currentTouch.pinchDelta=0,this.start0=this.getTouch(e),e.ctrlKey&&"deltaY"in e?this.currentTouch.pinchDelta=-e.deltaY/10:"deltaX"in e?(t=e.deltaX,r=e.deltaY):"wheelDeltaX"in e?(t=-e.wheelDeltaX/120,r=-e.wheelDeltaY/120):"wheelDelta"in e?t=-e.wheelDelta/120:"detail"in e&&(t=e.detail/3),this.setDeltaXDeltaY(t,r,"wheel")}}],r&&v(t.prototype,r),i&&v(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,i}();y(p,"MAX_EVENT_QUEUE_SIZE",10),y(p,"MAX_EVENT_TYPE_CAPACITY",2);var m=r(956),b=["url","cacheId"];function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}(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 w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach((function(t){M(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function M(e,t,r){return(t=C(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D(e){return D="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},D(e)}function E(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,C(n.key),n)}}function C(e){var t=function(e,t){if("object"!=D(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=D(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==D(t)?t:t+""}var x=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cacheMap={},this.tmodelKeyMap={},this.fetchingAPIMap={},this.fetchingImageMap={},this.fetchSeq=0},t=[{key:"clear",value:function(){this.tmodelKeyMap={},this.fetchingAPIMap={},this.fetchingImageMap={},this.fetchSeq=0}},{key:"fetchCommon",value:function(e,t,r,n,i){return m.g.markFetchAction(r),this.isFetched(t)?n[e]||(n[e]={fetchId:e,cacheId:t,startTime:o.d.now(),targets:[{tmodel:r,targetName:r.key}],fetchMap:n}):n[e]||(n[e]={fetchId:e,cacheId:t,startTime:o.d.now(),targets:[{tmodel:r,targetName:r.key}],fetchMap:n},i()),this.addToTModelKeyMap(r,r.key,e,t),e}},{key:"fetch",value:function(e,t,r,n){var i=this;if(!t||"object"!==D(t)||Array.isArray(t))(Array.isArray(t)?t:[t]).forEach((function(t){i.fetchOne(e,t,r,n)}));else{var a=t.url,o=t.cacheId,l=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,b);this.fetchOne(e,a,l,null!=o?o:n)}}},{key:"fetchOne",value:function(e,t,r,n){var i=this,a=this.getFetchKey(e,t,r);this.fetchCommon(a,n,e,this.fetchingAPIMap,(function(){i.ajaxAPI(t,r,i.fetchingAPIMap[a])}))}},{key:"fetchImage",value:function(e,t,r){var n=this;(Array.isArray(t)?t:[t]).forEach((function(t){var i=n.getFetchKey(e,t);n.fetchCommon(i,r,e,n.fetchingImageMap,(function(){n.loadImage(t,n.fetchingImageMap[i])}))}))}},{key:"getFetchKey",value:function(e,t,r){var n=r?"".concat(e.oid,"_").concat(t,"_").concat(e.getTargetCycle(e.key),"_").concat(JSON.stringify(r)):"".concat(e.oid,"_").concat(t,"_").concat(e.getTargetCycle(e.key));return"".concat(n,"_").concat(++this.fetchSeq)}},{key:"getTModelKey",value:function(e,t){return"".concat(document.URL,"_").concat(e.oid,"_").concat(t)}},{key:"addToTModelKeyMap",value:function(e,t,r,n){var i,a,l=this.getTModelKey(e,t),s=o.d.getLoadTargetName(t);!this.isLoadingComplete(e,t)&&this.tmodelKeyMap[l]&&e.val(s)||(null!==(a=(i=this.tmodelKeyMap)[l])&&void 0!==a||(i[l]={fetchMap:{},entryCount:0,resultCount:0,errorCount:0,activeIndex:0,accessIndex:0}),e.val(s,[])),this.tmodelKeyMap[l].fetchMap[r]||(this.tmodelKeyMap[l].fetchMap[r]={fetchId:r}),this.tmodelKeyMap[l].fetchMap[r].order=this.tmodelKeyMap[l].entryCount,this.tmodelKeyMap[l].entryCount++,e.val(s).push(void 0),n&&this.isFetched(n)&&(this.fetchingAPIMap[r].startTime=o.d.now(),this.handleSuccess(this.fetchingAPIMap[r],this.cacheMap[n].result))}},{key:"removeFromTModelKeyMap",value:function(e,t){var r=this.getTModelKey(e,t);delete this.tmodelKeyMap[r]}},{key:"isLoading",value:function(e,t){var r=this.getTModelKey(e,t);return this.tmodelKeyMap[r]}},{key:"isLoadingSuccessful",value:function(e,t){var r=this.getTModelKey(e,t);return this.tmodelKeyMap[r]&&this.tmodelKeyMap[r].resultCount===this.tmodelKeyMap[r].entryCount}},{key:"isLoadingComplete",value:function(e,t){var r=this.getTModelKey(e,t);return!!this.tmodelKeyMap[r]&&this.tmodelKeyMap[r].resultCount===this.tmodelKeyMap[r].entryCount&&this.tmodelKeyMap[r].activeIndex===this.tmodelKeyMap[r].entryCount}},{key:"resetLoadingError",value:function(e,t){var r=this.getTModelKey(e,t),n=this.tmodelKeyMap[r];n&&(n.errorCount=0)}},{key:"nextActiveItem",value:function(e,t){var r=this.getTModelKey(e,t),n=this.tmodelKeyMap[r];return!!n&&n.activeIndex++}},{key:"isNextLoadingItemSuccessful",value:function(e,t){var r=this.getTModelKey(e,t),n=this.tmodelKeyMap[r];if(!n)return!1;var i=o.d.getLoadTargetName(t),a=e.val(i);return Array.isArray(a)&&o.d.isDefined(a[n.activeIndex])}},{key:"getLoadingItemValue",value:function(e,t,r){var n=this.getTModelKey(e,t),i=this.tmodelKeyMap[n];if(i&&!(i.accessIndex>=i.resultCount)){var a,l=o.d.getLoadTargetName(t),s=e.val(l);return s&&(null!=r&&r.endsWith("$$")?(a=s.slice(i.accessIndex,i.resultCount),i.accessIndex+=a.length):o.d.isDefined(s[i.accessIndex])&&(a=s[i.accessIndex],i.accessIndex=Math.min(i.accessIndex+1,i.entryCount-1))),a}}},{key:"isFetched",value:function(e){var t,r;return null!==(t=null===(r=this.cacheMap[e])||void 0===r?void 0:r.success)&&void 0!==t&&t}},{key:"getFetchingPeriod",value:function(e){return this.fetchingAPIMap[e]?o.d.now()-this.fetchingAPIMap[e].startTime:void 0}},{key:"fetchCache",value:function(e){return this.cacheMap[e]}},{key:"calculateTargetStatus",value:function(e,t){var r=e.getTargetCycle(t),n=e.getTargetCycles(t);return e.isTargetInLoop(t)||r<n-1?"active":this.isLoadingSuccessful(e,t)?"done":"fetching"}},{key:"handleSuccess",value:function(e,t){var r=this,n=o.d.now(),i=e.fetchId,a=e.cacheId,l=e.startTime,s=e.targets,u=e.fetchMap,c={fetchingPeriod:n-l,success:!0,result:t};s.forEach((function(e){var t=e.tmodel,n=e.targetName,a=r.getTModelKey(t,n),l=r.tmodelKeyMap[a],s=o.d.getLoadTargetName(n);if(l&&l.fetchMap[i]){var u=l.fetchMap[i];r.callOnSuccessHandler(t,n,S(S({},c),{},{order:u.order}));var d=t.val(s);d&&(o.d.isDefined(d[u.order])||l.resultCount++,d[u.order]=c.result),t.val(n,c.result);var h=r.calculateTargetStatus(t,n);t.setTargetStatus(n,h),t.setLastUpdate(n),m.g.shouldActivateNextTarget(t,n)}})),delete u[i],a&&(this.cacheMap[a]=c),Ze().schedule(0,"api_success_".concat(i))}},{key:"handleError",value:function(e,t){var r=this,n=o.d.now(),i=e.fetchId,a=e.cacheId,l=e.startTime,s=e.targets,u=e.fetchMap;s.forEach((function(e){var a=e.tmodel,s=e.targetName,u=r.getTModelKey(a,s),c=r.tmodelKeyMap[u],d=o.d.getLoadTargetName(s);if(c&&c.fetchMap[i]){var h=c.fetchMap[i],f={fetchingPeriod:n-l,success:!1,order:h.order,error:t},v=a.val(d);v&&(o.d.isDefined(v[h.order])||c.resultCount++,v[h.order]=f),a.val(s,f),c.errorCount++,r.callOnErrorHandler(a,s);var y=r.calculateTargetStatus(a,s);a.setTargetStatus(s,y),a.setLastUpdate(s),m.g.shouldActivateNextTarget(a,s)}})),delete u[i],a&&delete this.cacheMap[a],Ze().schedule(0,"api_error_".concat(i))}},{key:"callOnSuccessHandler",value:function(e,t,r){var n,i=null===(n=e.targets[t])||void 0===n?void 0:n.onSuccess;i&&("function"==typeof i?(e.setTargetMethodName(t,"onSuccess"),i.call(e,r)):Array.isArray(i)?i.forEach((function(t){return m.g.activateSingleTarget(e,t)})):m.g.activateSingleTarget(e,i))}},{key:"callOnErrorHandler",value:function(e,t){var r,n=null===(r=e.targets[t])||void 0===r?void 0:r.onError;n&&("function"==typeof n?(e.setTargetMethodName(t,"onSuccess"),n.call(e,e.val(t))):Array.isArray(n)?n.forEach((function(t){return m.g.activateSingleTarget(e,t)})):m.g.activateSingleTarget(e,n))}},{key:"ajaxAPI",value:function(e,t,r){var i,a,o,l=this,s={url:e,dataType:"json",type:"GET",success:function(e){return l.handleSuccess(r,e)},error:function(e){return l.handleError(r,e)}};if((u=t)&&"object"===D(u)&&!Array.isArray(u)){for(var u,c=new Set(["data","type","method","requestType","dataType","headers","contentType","timeout","processData","cache","beforeSend","withCredentials","xhrFields"]),d={},h={},f=0,v=Object.entries(t);f<v.length;f++){var y=T(v[f],2),g=y[0],p=y[1];"requestType"===g?d.type=p:c.has(g)?d[g]=p:h[g]=p}var m=S(S(S({},s),d),{},{type:null!==(i=null!==(a=d.method)&&void 0!==a?a:d.type)&&void 0!==i?i:s.type,dataType:null!==(o=d.dataType)&&void 0!==o?o:s.dataType});!("data"in m)&&Object.keys(h).length&&(m.data=h),n.J.ajax(m)}else n.J.ajax(S(S({},s),{},{data:t}))}},{key:"loadImage",value:function(e,t){var r=this,n=new Image;n.src=e,n.onload=function(){var e={width:n.width,height:n.height,src:n.src};r.handleSuccess(t,e)},n.onerror=function(){r.handleError(t,"not found")}}}],t&&E(e.prototype,t),r&&E(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),_=r(780),L=r(144),O=r(515);function A(e){return A="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},A(e)}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||I(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 j(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=I(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function I(e,t){if(e){if("string"==typeof e)return V(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?V(e,t):void 0}}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?N(Object(r),!0).forEach((function(t){F(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function F(e,t,r){return(t=$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B(){B=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var a=t&&t.prototype instanceof p?t:p,o=Object.create(a.prototype),l=new L(n||[]);return i(o,"_invoke",{value:E(e,r,l)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",v="executing",y="completed",g={};function p(){}function m(){}function b(){}var T={};u(T,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(O([])));k&&k!==r&&n.call(k,o)&&(T=k);var S=b.prototype=p.prototype=Object.create(T);function M(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function D(e,t){function r(i,a,o,l){var s=d(e[i],e,a);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==A(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function E(t,r,n){var i=h;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===y){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var l=n.delegate;if(l){var s=C(l,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?y:f,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function C(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=d(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function x(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 _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function O(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(A(t)+" is not iterable")}return m.prototype=b,i(S,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=u(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},M(D.prototype),u(D.prototype,l,(function(){return this})),t.AsyncIterator=D,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new D(c(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},M(S),u(S,s,"Generator"),u(S,o,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,L.prototype={constructor:L,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(_),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=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 r=this;function i(n,i){return l.type="throw",l.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(o)},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 r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;_(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function R(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,i)}function U(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){R(a,n,i,o,l,"next",e)}function l(e){R(a,n,i,o,l,"throw",e)}o(void 0)}))}}function W(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$(n.key),n)}}function $(e){var t=function(e,t){if("object"!=A(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==A(t)?t:t+""}var X=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hasLocationList=[],this.hasLocationMap={},this.visibleChildrenLengthMap={},this.updatedContainerMap={},this.locationListStats=[],this.domIslandSet=new Set,this.activatedList=[],this.activatedMap={},this.calcBusy=!1,this.calcQueued=!1,this.resumePausedList=[],this.resumePausedMap={},this.resumeScheduled=!1},t=[{key:"clear",value:function(){this.visibleChildrenLengthMap={},this.updatedContainerMap={},this.activatedList=[],this.activatedMap={},this.domIslandSet.clear(),this.calcBusy=!1,this.calcQueued=!1,this.resumePausedList=[],this.resumePausedMap={},this.resumeScheduled=!1}},{key:"calculateActivated",value:function(){var e=0,t=this.activatedList;for(this.activatedList=[],this.activatedMap={};e<t.length;){var r=t[e++],n=r.activatedTargets.slice(0);r.activatedTargets.length=0,Qe().applyTargetValues(r,n),r.updatingTargetList.length>0&&Qe().setActualValues(r,r.updatingTargetList),this.hasLocationMap[r.oid]||this.addToLocationList(r)}}},{key:"calculateAll",value:(i=U(B().mark((function e(){var t,r,n,i=arguments;return B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:8,!this.calcBusy){e.next=4;break}return this.calcQueued=!0,e.abrupt("return");case 4:return this.calcBusy=!0,this.hasLocationList.length=0,this.hasLocationMap={},this.locationListStats=[],(r=[]).push({container:We(),stage:"init",children:[],viewport:void 0,index:0}),n={budgetMs:t,sliceStart:o.d.now()},e.next=13,this.processStack(r,n);case 13:if(this.processAfterStack(),this.scheduleResumePaused(),this.calcBusy=!1,!this.calcQueued){e.next=19;break}return this.calcQueued=!1,e.abrupt("return",this.calculateAll(t));case 19:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"processStack",value:(n=U(B().mark((function e(t,r){var n,i,a,l,s,u,c,d=this;return B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=function(e){var t=e.container;t.adjustViewport(),t.calcContentWidthHeight()},i=function(e){var t=e.children[e.index];t&&t.getDirtyLayout()&&(t.isComplete()&&!t.hasChildren()||!t.isVisible())&&t.removeLayoutDirty(t,t.dirtyLayout.oids?Object.keys(t.dirtyLayout.oids):void 0),e.stage="afterChild"},a=function(e){var t=e.container,r=e.children,n=e.viewport,i=r[e.index];i&&(i.useContentHeight()&&(i.actualValues.height!==i.getContentHeight()&&(i.actualValues.height=i.getContentHeight(),i.markLayoutDirty("contentWidthHeight")),i.addToStyleTargetList("height")),i.useContentWidth()&&(i.actualValues.width!==i.getContentWidth()&&(i.actualValues.width=i.getContentWidth(),i.markLayoutDirty("contentWidthHeight")),i.addToStyleTargetList("width")),i.isInFlow()&&(o.d.isNumber(i.val("appendNewLine"))?n.appendNewLine():n.nextLocation(),t.calcContentWidthHeight()),(i.hasEventDirty()||$e().getEventType()||$e().hasDelta())&&(d.checkExternalEvents(i),i.hasEventDirty()&&(i.processedEventEpoch=i.eventDirtyEpoch))),e.index++,e.index<e.children.length&&(e.stage="child")},l=function(e){var r,n=e.container,i=e.children,a=e.viewport,o=i[e.index];if(o){if(o.isDomIsland()&&o.originWindowEpoch!==$e().getWindowEpoch()&&o.hasDom()&&(o.calcAbsolutePositionFromDom(),o.originWindowEpoch=$e().getWindowEpoch()),a.setCurrentChild(o),!o.getDirtyLayout()&&!o.currentStatus&&0===o.activeTargetList.length)return d.calcNextLocation(o,n,a),void e.index++;o.isDomIsland()&&d.domIslandSet.add(o),a.setLocation(),a.isOverflow()&&(a.overflow(),a.setLocation());var l,s,u,c,h=o.actualValues.x,f=o.actualValues.y,v=o.getMinWidth();o.isIncluded()&&d.calculateTargets(o),v!==o.getMinWidth()&&a.isOverflow()&&o.markLayoutDirty("overflow"),o.isIncluded()&&o.targets.onVisibleChildrenChange&&!d.visibleChildrenLengthMap[o.oid]&&(d.visibleChildrenLengthMap[o.oid]={tmodel:o,visibleCount:o.visibleChildren.length}),d.addToLocationList(o),L.a.isXDefined(o)||(o.actualValues.x=o.x),L.a.isYDefined(o)||(o.actualValues.y=o.y),o.isDomIsland()||o.calcAbsolutePosition(o.getX(),o.getY()),o.excludeDefaultStyling()||d.fixLocation(o,h,f),d.calculateVisibility(o),(null===(r=o.getDirtyLayout())||void 0===r?void 0:r.count)>0?d.locationListStats.push("".concat(o.oid,"|").concat(null===(l=o.getDirtyLayout())||void 0===l?void 0:l.count,"|").concat(null===(s=o.getDirtyLayout())||void 0===s?void 0:s.lastKey)):d.locationListStats.push("".concat(o.oid,"|").concat(null!==(u=null===(c=o.getDirtyLayout())||void 0===c?void 0:c.count)&&void 0!==u?u:0)),e.stage="resetDirtyLayout",o.hasChildren()&&o.shouldCalculateChildren()&&t.push({container:o,stage:"init",children:[],viewport:void 0,index:0})}else e.index++};case 4:if(!t.length){e.next=21;break}if(!(o.d.now()-r.sliceStart>r.budgetMs)){e.next=10;break}return e.next=8,new Promise(requestAnimationFrame);case 8:return r.sliceStart=o.d.now(),e.abrupt("continue",4);case 10:if("init"===(s=t[t.length-1]).stage&&(u=s.container,c=this.calcChildren(u),u.childrenUpdateFlag&&(u.childrenUpdateFlag=!1,u.targets.onChildrenChange&&(this.updatedContainerMap[u.oid]=u)),u.shouldBeBracketed()&&(u.backupDirtyLayout=H({},u.dirtyLayout)),u.visibleChildren.length=0,s.children=c.slice(0),s.index=0,s.viewport=u.createViewport(),s.stage="child"),"resetDirtyLayout"===s.stage&&i(s),"afterChild"===s.stage&&a(s),!(s.index>=s.children.length)){e.next=18;break}return n(s),t.pop(),e.abrupt("continue",4);case 18:"child"===s.stage&&l(s),e.next=4;break;case 21:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"processAfterStack",value:function(){for(var e in this.visibleChildrenLengthMap){var t=this.visibleChildrenLengthMap[e],r=t.tmodel,n=t.visibleCount;!r.isVisible()||n===r.visibleChildren.length&&0!==r.visibleChildren.length||(this.runEventTargets(r,["onVisibleChildrenChange"]),this.visibleChildrenLengthMap[e].visibleCount=r.visibleChildren.length)}for(var i in this.updatedContainerMap){var a=this.updatedContainerMap[i];a.isVisible()&&this.runEventTargets(a,["onChildrenChange"]),delete this.updatedContainerMap[i]}}},{key:"calcChildren",value:function(e){return e.getChildren(),e.shouldBeBracketed()?_.M.generate(e):(e.lastChildrenUpdate.additions.length=0,e.lastChildrenUpdate.deletions.length=0,_.M.bracketMap[e.oid]&&(delete _.M.bracketMap[e.oid],delete _.M.pageMap[e.oid]),e.getChildren())}},{key:"calcNextLocation",value:function(e,t,r){var n;r.setLocation(),r.isOverflow()&&(r.overflow(),r.setLocation()),e.isIncluded()&&e.targets.onVisibleChildrenChange&&!this.visibleChildrenLengthMap[e.oid]&&(this.visibleChildrenLengthMap[e.oid]={tmodel:e,visibleCount:e.visibleChildren.length}),L.a.isXDefined(e)||(e.actualValues.x=e.x),L.a.isYDefined(e)||(e.actualValues.y=e.y),e.isDomIsland()||e.calcAbsolutePosition(e.getX(),e.getY()),e.excludeDefaultStyling()||(this.addToTransformTargetList(e,"x"),this.addToTransformTargetList(e,"y")),((null===(n=e.styleTargetMap)||void 0===n?void 0:n.size)>0||e.updatingTargetList.length>0)&&this.addToLocationList(e),this.calculateVisibility(e),e.isInFlow()&&(o.d.isNumber(e.val("appendNewLine"))?r.appendNewLine():r.nextLocation(),t.calcContentWidthHeight())}},{key:"calculateVisibility",value:function(e){var t,r,n,i=e.isVisible(),a=null!==(t=null===(r=e.visibilityStatus)||void 0===r?void 0:r.isVisible)&&void 0!==t?t:void 0;e.visibilityStatus||(e.visibilityStatus={}),e.visibilityStatus.lastIsVisible=e.visibilityStatus.isVisible;var l=e.calcVisibility();n=o.d.isDefined(e.targets.isVisible)?"function"==typeof e.targets.isVisible.value?e.targets.isVisible.value.call(e):!!e.targets.isVisible:l,e.actualValues.isVisible=n,e.isNowVisible=!i&&n||!a&&l,e.isNowInvisible=(i||void 0===i)&&!n||a&&!l,e.isNowVisible&&e.markLayoutDirty("isNowVisible"),e.isNowInvisible&&this.addToLocationList(e),e.addToParentVisibleChildren()}},{key:"calculateTargets",value:function(e){e.hasDom()&&e.pausedBatch&&(this.resumePausedMap[e.oid]||(this.resumePausedMap[e.oid]=!0,this.resumePausedList.push(e))),this.checkInternalEvents(e);for(var t=0;e.activatedTargets.length&&t++<50;){var r=e.activatedTargets.slice(0);e.activatedTargets.length=0;var n,i=j(r);try{for(i.s();!(n=i.n()).done;){var a=n.value;Qe().applyTargetValue(e,a)}}catch(e){i.e(e)}finally{i.f()}}Qe().applyTargetValues(e),e.updatingTargetList.length>0&&Qe().setActualValues(e,e.updatingTargetList),L.a.shouldMeasureWidthFromDom(e)&&(e.hasDom()?L.a.setWidthFromDom(e):e.markLayoutDirty("width")),L.a.shouldMeasureHeightFromDom(e)&&(e.hasDom()?L.a.setHeightFromDom(e):e.markLayoutDirty("height")),e.isNowVisible=!1,e.hasDomNow=!1,e.targetExecutionCount++}},{key:"scheduleResumePaused",value:function(){var e=this;!this.resumeScheduled&&this.resumePausedList.length&&(this.resumeScheduled=!0,requestAnimationFrame((function(){requestAnimationFrame((function(){e.resumeScheduled=!1;var t=e.resumePausedList.slice();e.resumePausedList.length=0,e.resumePausedMap={};var r,n=j(t);try{for(n.s();!(r=n.n()).done;){var i=r.value,a=i.pausedBatch;if(a&&i.hasDom()){var o=i.$dom.getElement();o&&o.isConnected&&"visible"===document.visibilityState&&(Je().animate(i,a,O.T.getAnimationHooks()),i.pausedBatch=void 0)}}}catch(e){n.e(e)}finally{n.f()}}))})))}},{key:"checkExternalEvents",value:function(e){var t=e.externalEventMap;if((null==t?void 0:t.size)>0){var r,n=[],i=l.u.allEventMap,a=j(t);try{for(a.s();!(r=a.n()).done;){var o=P(r.value,1)[0];i[o](e)&&n.push(e.allTargetMap[o])}}catch(e){a.e(e)}finally{a.f()}this.runEventTargets(e,n)}}},{key:"checkInternalEvents",value:function(e){var t=[],r=l.u.internalEventMap,n=e.internalEventMap;if((null==n?void 0:n.size)>0){var i,a=j(n);try{for(a.s();!(i=a.n()).done;){var o=P(i.value,1)[0];r[o](e)&&t.push(e.allTargetMap[o])}}catch(e){a.e(e)}finally{a.f()}}this.runEventTargets(e,t)}},{key:"runEventTargets",value:function(e,t){t.forEach((function(t){var r=e.targets[t];if(e.isTargetEnabled(t)&&!e.isTargetUpdating(r)){e.targetValues[t]&&(e.targetValues[t].status=""),s.j.prepareTarget(e,t),s.j.resolveTargetValue(e,t),s.j.updateTarget(e,e.targetValues[t],t,!1);var n=e.val(t);Array.isArray(n)?n.forEach((function(t){return m.g.activateSingleTarget(e,t)})):"string"==typeof n&&m.g.activateSingleTarget(e,n),m.g.shouldActivateNextTarget(e,t)}}))}},{key:"addToLocationList",value:function(e){this.hasLocationMap[e.oid]||(this.hasLocationList.push(e),this.hasLocationMap[e.oid]=e)}},{key:"addToActivatedList",value:function(e){this.activatedMap[e.oid]||(this.activatedList.push(e),this.activatedMap[e.oid]=e)}},{key:"fixLocation",value:function(e,t,r,n){if(e.hasValidAnimation()){var i=[],a=[],o=e.actualValues.x!==t,l=e.actualValues.y!==r;if(!o||e.isKeyAnimating(e.allTargetMap.x)&&!n||(i.push("x"),a.push(e.val("x"))),!l||e.isKeyAnimating(e.allTargetMap.y)&&!n||(i.push("y"),a.push(e.val("y"))),i.length>0)return void O.T.overrideAnimatedKeyWithSnap(e,i,a)}this.addToTransformTargetList(e,"x"),this.addToTransformTargetList(e,"y")}},{key:"addToTransformTargetList",value:function(e,t){L.a.getTransformValue(e,t)!==Math.floor(e.tfMap[t])&&e.addToStyleTargetList(t)}},{key:"isActivated",value:function(e){return this.activatedMap[e.oid]}}],t&&W(e.prototype,t),r&&W(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r,n,i}(),Y=r(728);function q(e){return q="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},q(e)}function K(){K=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var a=t&&t.prototype instanceof p?t:p,o=Object.create(a.prototype),l=new L(n||[]);return i(o,"_invoke",{value:E(e,r,l)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",v="executing",y="completed",g={};function p(){}function m(){}function b(){}var T={};u(T,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(O([])));k&&k!==r&&n.call(k,o)&&(T=k);var S=b.prototype=p.prototype=Object.create(T);function M(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function D(e,t){function r(i,a,o,l){var s=d(e[i],e,a);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==q(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function E(t,r,n){var i=h;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===y){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var l=n.delegate;if(l){var s=C(l,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?y:f,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function C(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=d(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function x(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 _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function O(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(q(t)+" is not iterable")}return m.prototype=b,i(S,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=u(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},M(D.prototype),u(D.prototype,l,(function(){return this})),t.AsyncIterator=D,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new D(c(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},M(S),u(S,s,"Generator"),u(S,o,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,L.prototype={constructor:L,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(_),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=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 r=this;function i(n,i){return l.type="throw",l.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(o)},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 r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;_(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?z(Object(r),!0).forEach((function(t){J(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function J(e,t,r){return(t=te(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,i)}function G(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){Z(a,n,i,o,l,"next",e)}function l(e){Z(a,n,i,o,l,"throw",e)}o(void 0)}))}}function ee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,te(n.key),n)}}function te(e){var t=function(e,t){if("object"!=q(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=q(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==q(t)?t:t+""}var re=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.lastLink=o.d.getFullLink(document.URL),this.pageCache={},this.initHistory()},t=[{key:"initHistory",value:function(){var e=o.d.getFullLink(document.URL),t=history.state;t&&(t.link||t.browserUrl)||history.replaceState({link:e},"",e),this.lastLink=e}},{key:"initPage",value:function(e){_e.tRoot.$dom.outerHTML(e),_e.tRoot.$dom=n.J.query("#tgjs-root")?new n.J("#tgjs-root"):new n.J("body"),"body"!==_e.tRoot.$dom.getTagName()&&_e.tRoot.$dom.attr("data-tj-no-slot","true"),Y.v.initPageDoms(_e.tRoot.$dom)}},{key:"openPage",value:(l=G(K().mark((function e(t){var r,i;return K().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_e.stop();case 2:return e.next=4,_e.reset();case 4:t=o.d.getFullLink(t),this.pageCache[t]?(_e.tRoot=this.pageCache[t].tRoot,Re.oids=this.pageCache[t].oids,Re.tmodelIdMap=this.pageCache[t].tmodelIdMap,_e.tRoot.$dom=n.J.query("#tgjs-root")?new n.J("#tgjs-root"):new n.J("body"),_e.tRoot.$dom.innerHTML(this.pageCache[t].html),r=Object.values(this.pageCache[t].visibleOidMap),i=Y.v.initCacheDoms(r),r.forEach((function(e){e.visibilityStatus=void 0})),_e.manager.visibleOidMap=Q({},this.pageCache[t].visibleOidMap),i.forEach((function(e){_e.manager.visibleOidMap[e.oid]=e})),window.scrollTo(this.pageCache[t].scrollLeft,this.pageCache[t].scrollTop),this.lastLink=t,_e.start()):(_e.tRoot.$dom.innerHTML(""),Re.oids={},Re.tmodelIdMap={},_e.tRoot=_e.tRootFactory(),this.lastLink=t,_e.start());case 6:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"openLinkFromHistory",value:(a=G(K().mark((function e(t){return K().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.link){e.next=6;break}return this.onPageClose(),e.next=4,this.openLink(t.link,!1);case 4:e.next=10;break;case 6:if(!t.browserUrl){e.next=10;break}return history.replaceState({link:t.browserUrl},"",t.browserUrl),e.next=10,this.openPage(t.browserUrl);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"onPageClose",value:function(){_e.resizeLastUpdate=o.d.now(),$e().resizeRoot(),_e.manager.getVisibles().forEach((function(e){Ge().runEventTargets(e,["onPageClose"])}))}},{key:"openLink",value:(i=G(K().mark((function e(t){var r,i,a=arguments;return K().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=!(a.length>1&&void 0!==a[1])||a[1],t=o.d.getFullLink(t),this.lastLink&&(_e.tRoot.$dom=n.J.query("#tgjs-root")?new n.J("#tgjs-root"):new n.J("body"),i=_e.tRoot.$dom.innerHTML(),this.onPageClose(),this.pageCache[this.lastLink]={link:this.lastLink,html:i,oids:Q({},Re.oids),tmodelIdMap:Q({},Re.tmodelIdMap),visibleOidMap:Q({},_e.manager.visibleOidMap),scrollLeft:n.J.getWindowScrollLeft()||0,scrollTop:n.J.getWindowScrollTop()||0,tRoot:_e.tRoot}),r&&history.pushState({link:t},"",t),e.next=6,this.openPage(t);case 6:Ze().schedule(0,"pagemanager-processOpenLink");case 7:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"updateBrowserUrl",value:function(e,t){_e.tRoot.$dom=n.J.query("#tgjs-root")?new n.J("#tgjs-root"):new n.J("body"),this.pageCache[document.URL]={link:document.URL,html:_e.tRoot.$dom.innerHTML(),oids:Q({},Re.oids),tmodelIdMap:Q({},Re.tmodelIdMap),visibleOidMap:Q({},_e.manager.visibleOidMap),scrollLeft:n.J.getWindowScrollLeft()||0,scrollTop:n.J.getWindowScrollTop()||0,tRoot:_e.tRoot},t?history.pushState({browserUrl:e},"",e):history.replaceState({browserUrl:e},"",e),Ze().schedule(0,"pagemanager-processUpdateBrowserUrl")}},{key:"back",value:function(){return history.back()}}],t&&ee(e.prototype,t),r&&ee(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r,i,a,l}();function ne(e){return ne="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},ne(e)}function ie(e){return function(e){if(Array.isArray(e))return le(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||oe(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 ae(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=oe(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function oe(e,t){if(e){if("string"==typeof e)return le(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?le(e,t):void 0}}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function se(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?se(Object(r),!0).forEach((function(t){ce(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):se(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ce(e,t,r){return(t=he(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function de(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,he(n.key),n)}}function he(e){var t=function(e,t){if("object"!=ne(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ne(t)?t:t+""}var fe=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.init()},t=[{key:"init",value:function(){this.lists={visible:[],rerender:[],restyle:[],reasyncStyle:[],reattach:[],relocation:[],invisibleDom:[],noDom:[],updatingTModels:[],activeTModels:[],updatingTargets:[],activeTargets:[]},this.visibleOidMap={},this.targetMethodMap={},this.noDomMap={}}},{key:"clearFrameLists",value:function(){this.lists.visible.length=0,this.lists.rerender.length=0,this.lists.restyle.length=0,this.lists.reasyncStyle.length=0,this.lists.reattach.length=0,this.lists.relocation.length=0,this.lists.noDom.length=0,this.lists.updatingTModels.length=0,this.lists.activeTModels.length=0,this.lists.updatingTargets.length=0,this.lists.activeTargets.length=0,this.targetMethodMap={},this.noDomMap={}}},{key:"clearAll",value:function(){this.visibleOidMap={},this.clearFrameLists(),this.deleteDoms()}},{key:"analyze",value:function(){var e=this,t=ue({},this.visibleOidMap);this.clearFrameLists();var r,n=[],i=ae(Ge().hasLocationList);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(t[a.oid]=void 0,Re.tmodelIdMap[a.oid]){var o=a.isVisible();o&&a.isIncluded()?(this.visibleOidMap[a.oid]=a,this.lists.visible.push(a)):delete this.visibleOidMap[a.oid];var l,s,u=this.shouldPreserveDom(a);if(u&&(this.visibleOidMap[a.oid]=a),a.hasDom()&&(a.canHaveDom()&&a.isIncluded()&&(!a.canDeleteDom()||o||u)||(this.addToInvisibleDom(a),a.getChildren().forEach((function(t){e.addToRecursiveInvisibleDom(t)})))),o||a.isActivated()||u){var c,d,h=a.state();((null===(c=h.updatingTargetList)||void 0===c?void 0:c.length)>0||a.hasAnimatingTargets())&&(this.lists.updatingTModels.push(a),this.lists.updatingTargets=[].concat(ie(this.lists.updatingTargets),ie(h.updatingTargetList))),(null===(d=h.activeTargetList)||void 0===d?void 0:d.length)>0&&(this.lists.activeTModels.push(a),this.lists.activeTargets=[].concat(ie(this.lists.activeTargets),ie(h.activeTargetList)))}if(o||a.isActivated()||u){this.needsRerender(a)&&this.lists.rerender.push(a),this.needsRestyle(a)&&this.lists.restyle.push(a),this.needsReasyncStyle(a)&&this.lists.reasyncStyle.push(a),this.needsReattach(a)&&this.lists.reattach.push(a),this.needsRelocation(a)&&this.lists.relocation.push(a);var f=a.state();f.targetMethodMap&&Object.keys(f.targetMethodMap).length>0&&(this.targetMethodMap[a.oid]=ue({},f.targetMethodMap),f.targetMethodMap={}),a.isActivated()&&n.push(a)}(o||a.requiresDom()||u)&&a.canHaveDom()&&!a.hasDom()&&a.isIncluded()&&!this.noDomMap[a.oid]&&(null!==(l=a.getDomHolder())&&void 0!==l&&l.exists()||this.noDomMap[null===(s=a.getDomParent())||void 0===s?void 0:s.oid]?(this.lists.noDom.push(a),this.noDomMap[a.oid]=!0):a.markLayoutDirty("noDomHolder"))}else a.hasDom()&&this.addToInvisibleDom(a),delete this.visibleOidMap[a.oid]}}catch(e){i.e(e)}finally{i.f()}return n.forEach((function(e){return e.deactivate()})),Object.values(t).filter((function(e){return void 0!==e})).forEach((function(t){t.hasDom()&&(Re.tmodelIdMap[t.oid]&&t.isIncluded()||e.addToInvisibleDom(t))})),this.lists.noDom.length>0?0:this.lists.reattach.length>0?1:this.lists.relocation.length>0?2:this.lists.rerender.length>0?3:this.lists.reasyncStyle.length>0?4:this.lists.invisibleDom.length>0?5:this.lists.restyle.length>0?10:-1}},{key:"shouldPreserveDom",value:function(e){var t=e.parent;if(!e.isIncluded())return!1;for(;t&&t!==We();){if(o.d.isDefined(t.targets.canDeleteDom)&&!1===t.val("canDeleteDom"))return!0;if(o.d.isDefined(t.targets.isVisible)&&!0===t.val("isVisible"))return!0;t=t.parent}return!1}},{key:"isBracketVisible",value:function(e){for(e=e.bracket;e&&"BI"===e.type;){if(!e.isVisible())return!1;e=e.getParent()}return!0}},{key:"addToRecursiveInvisibleDom",value:function(e){var t=this;delete this.visibleOidMap[e.oid],this.lists.invisibleDom.includes(e)||(e.hasDom()&&this.lists.invisibleDom.push(e),e.getChildren().forEach((function(e){t.addToRecursiveInvisibleDom(e)})))}},{key:"addToInvisibleDom",value:function(e){delete this.visibleOidMap[e.oid],this.lists.invisibleDom.includes(e)||this.lists.invisibleDom.push(e)}},{key:"getVisibles",value:function(){return Object.values(this.visibleOidMap)}},{key:"needsRelocation",value:function(e){return!(!e.hasDom()||!o.d.isDefined(e.domOrderIndex))}},{key:"needsRerender",value:function(e){return!(!e.hasDom()||!o.d.isDefined(e.getHtml())||e.$dom.innerHTML()===e.getHtml()&&e.$dom.textOnly===e.isTextOnly())}},{key:"needsRestyle",value:function(e){var t;return e.hasDom()&&(null===(t=e.styleTargetMap)||void 0===t?void 0:t.size)>0}},{key:"needsReasyncStyle",value:function(e){var t;return e.hasDom()&&(null===(t=e.asyncStyleTargetMap)||void 0===t?void 0:t.size)>0}},{key:"needsReattach",value:function(e){return!(!e.hasDom()||e.reuseDomDefinition())&&(e.hasDomHolderChanged()||e.hasBaseElementChanged())}},{key:"renderTModels",value:function(){var e,t=ae(this.lists.rerender);try{for(t.s();!(e=t.n()).done;){var r,n,i=e.value;i.isTextOnly()?null===(r=i.$dom)||void 0===r||r.text(i.getHtml()):null===(n=i.$dom)||void 0===n||n.html(i.getHtml()),i.setLastUpdate("html"),i.domHeightTimestamp=0,i.domWidthTimestamp=0}}catch(e){t.e(e)}finally{t.f()}}},{key:"reattachTModels",value:function(){var e,t=[],r=ae(this.lists.reattach);try{for(r.s();!(e=r.n()).done;){var n=e.value,i=n.hasBaseElementChanged(),a=n.getDomParent();a&&a.$dom&&(a.$dom.removeElement(n.$dom.element),i&&(L.a.createDom(n),L.a.patchDom(n),L.a.initStyleMaps(n),this.needsRestyle(n)&&this.lists.restyle.push(n),this.needsReasyncStyle(n)&&this.lists.reasyncStyle.push(n),t.push(n)),n.getDomHolder()&&n.getDomHolder().appendTModel$Dom(n))}}catch(e){r.e(e)}finally{r.f()}this.activatePendingTargetsAfterDom(t)}},{key:"relocateTModels",value:function(){this.lists.relocation.sort((function(e,t){return t.domOrderIndex-e.domOrderIndex}));var e,t=ae(this.lists.relocation);try{for(t.s();!(e=t.n()).done;){var r=e.value,n=r.getDomParent();n&&n.$dom&&(n.$dom.relocate(r,r.domOrderIndex),r.domOrderIndex=void 0)}}catch(e){t.e(e)}finally{t.f()}}},{key:"resetTModelDom",value:function(e){e.styleMap={},e.tfMap={},e.actualValues.isVisible=!1,e.hasDomNow=!1,e.$dom=null}},{key:"deleteDoms",value:function(){var e,t=ae(this.lists.invisibleDom);try{for(t.s();!(e=t.n()).done;){var r=e.value;r.val("sourceDom")||this.deleteDom(r)}}catch(e){t.e(e)}finally{t.f()}this.lists.invisibleDom.length=0}},{key:"deleteDom",value:function(e){e.hasAnimatingTargets()&&Je().pauseTModel(e),Object.keys(e.targetValues).forEach((function(t){"updating"===e.targetValues[t].status&&-1===e.updatingTargetList.indexOf(t)&&e.setTargetStatus("active")}));var t=e.getDomParent();t&&t.$dom&&t.$dom.removeElement(e.$dom.element),this.resetTModelDom(e)}},{key:"fixStyles",value:function(){var e,t=ae(this.lists.restyle);try{for(t.s();!(e=t.n()).done;){var r=e.value;r.hasDom()&&L.a.fixStyle(r)}}catch(e){t.e(e)}finally{t.f()}}},{key:"fixAsyncStyles",value:function(){var e,t=ae(this.lists.reasyncStyle);try{for(t.s();!(e=t.n()).done;){var r=e.value;r.hasDom()&&L.a.fixAsyncStyle(r)}}catch(e){t.e(e)}finally{t.f()}}},{key:"activatePendingTargetsAfterDom",value:function(e){var t,r=ae(e);try{for(r.s();!(t=r.n()).done;){var n=t.value,i=n.pendingTargets;if(null!=i&&i.size)for(var a=0,o=ie(i);a<o.length;a++){var l=o[a];m.g.shouldActivateNextTarget(n,l)}}}catch(e){r.e(e)}finally{r.f()}}},{key:"createDoms",value:function(){if(0!==this.lists.noDom.length){var e=new Map,t=[],r=[];this.lists.noDom.sort((function(e,t){return e.getUIDepth()<t.getUIDepth()?-1:1}));var i,a=ae(this.lists.noDom);try{for(a.s();!(i=a.n()).done;){var o,l=i.value,s=null!==(o=l.domId)&&void 0!==o?o:l.oid;n.J.query("#".concat(s))?(l.$dom=new n.J("#".concat(s)),l.$dom.attr("tgjs","true"),l.hasDomNow=!0,l.markLayoutDirty("hasDomNow"),this.needsRerender(l)&&this.lists.rerender.push(l),this.needsRestyle(l)&&this.lists.restyle.push(l),this.needsReasyncStyle(l)&&this.lists.reasyncStyle.push(l)):r.push(l)}}catch(e){a.e(e)}finally{a.f()}this.activatePendingTargetsAfterDom(this.lists.noDom);for(var u=0,c=r;u<c.length;u++){var d=c[u],h=d.getDomHolder();if(h)if(d.$dom=void 0,d.val("$dom"))d.$dom=d.val("$dom"),d.hasDom()||h.appendTModel$Dom(d);else{L.a.createDom(d),L.a.patchDom(d),t.push(d);var f=e.get(h);f||(f={domHolder:h,fragment:n.J.createDocumentFragment(),tmodels:[]},e.set(h,f)),f.fragment.appendChild(d.$dom.element),f.tmodels.push(d)}else d.markLayoutDirty("noDomHolder")}var v,y=ae(e.values());try{for(y.s();!(v=y.n()).done;){var g=v.value,p=g.domHolder,m=g.fragment;p.appendElement(m)}}catch(e){y.e(e)}finally{y.f()}for(var b=0,T=t;b<T.length;b++){var w=T[b];w.hasDom()&&(w.hasDomNow=!0,w.markLayoutDirty("hasDomNow")),L.a.initStyleMaps(w),L.a.fixStyle(w),L.a.fixAsyncStyle(w)}this.activatePendingTargetsAfterDom(t),$e().attachEvents(this.lists.noDom.filter((function(e){var t;return(null===(t=e.externalEventMap)||void 0===t?void 0:t.size)>0})))}}}],t&&de(e.prototype,t),r&&de(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function ve(e){return ve="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},ve(e)}function ye(){ye=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var a=t&&t.prototype instanceof p?t:p,o=Object.create(a.prototype),l=new L(n||[]);return i(o,"_invoke",{value:E(e,r,l)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",v="executing",y="completed",g={};function p(){}function m(){}function b(){}var T={};u(T,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(O([])));k&&k!==r&&n.call(k,o)&&(T=k);var S=b.prototype=p.prototype=Object.create(T);function M(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function D(e,t){function r(i,a,o,l){var s=d(e[i],e,a);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==ve(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function E(t,r,n){var i=h;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===y){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var l=n.delegate;if(l){var s=C(l,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?y:f,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function C(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=d(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function x(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 _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function O(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(ve(t)+" is not iterable")}return m.prototype=b,i(S,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=u(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},M(D.prototype),u(D.prototype,l,(function(){return this})),t.AsyncIterator=D,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new D(c(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},M(S),u(S,s,"Generator"),u(S,o,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,L.prototype={constructor:L,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(_),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=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 r=this;function i(n,i){return l.type="throw",l.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(o)},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 r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;_(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function ge(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,i)}function pe(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){ge(a,n,i,o,l,"next",e)}function l(e){ge(a,n,i,o,l,"throw",e)}o(void 0)}))}}function me(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,be(n.key),n)}}function be(e){var t=function(e,t){if("object"!=ve(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ve(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ve(t)?t:t+""}var Te,we,ke,Se=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.nextRuns=[],this.domProcessing=0,this.runningFlag=!1,this.runId="",this.runStartTime=void 0,this.runDuration=0,this.rerunId="",this.delayProcess=void 0,this.resetting=!1,this.activeStartTime=void 0,this.phase=0,this.runningStep=-1,this.sliceQueued=!1}return t=e,r=[{key:"resetRuns",value:(a=pe(ye().mark((function e(){var t;return ye().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.resetting=!0,e.next=3,new Promise((function(e){return requestAnimationFrame(e)}));case 3:null!==(t=this.delayProcess)&&void 0!==t&&t.timeoutId&&clearTimeout(this.delayProcess.timeoutId),this.nextRuns=[],this.domProcessing=0,this.runningFlag=!1,this.runId="",this.runStartTime=void 0,this.runDuration=0,this.rerunId="",this.delayProcess=void 0,this.resetting=!1,this.activeStartTime=void 0,this.phase=0,this.runningStep=-1,this.sliceQueued=!1;case 17:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"scheduleOnlyIfEarlier",value:function(e,t){var r,n=(this.runningFlag&&null!==(r=this.runStartTime)&&void 0!==r?r:o.d.now())+(null!=e?e:0);this.delayProcess&&n>=this.delayProcess.runTime||this.schedule(e,t)}},{key:"schedule",value:function(e,t){if(_e.isRunning()&&!this.resetting){var r=0===_e.throttle?null!=e?e:0:_e.throttle,n=o.d.now();this.delayRun(r,t,n)}}},{key:"timeSchedule",value:function(e,t){_e.isRunning()&&!this.resetting&&this.delayRun(e,t,o.d.now())}},{key:"run",value:(i=pe(ye().mark((function e(t,r){var n;return ye().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(_e.isRunning()&&!this.resetting){e.next=2;break}return e.abrupt("return");case 2:if(!this.runningFlag){e.next=5;break}return this.rerunId||(this.rerunId="rerun ".concat(r)),e.abrupt("return");case 5:if(this.rerunId="",this.runId=r,this.runningFlag=!0,this.runStartTime=o.d.now(),1===_e.debugLevel&&o.d.log(!0)("Request from: ".concat(r," delay: ").concat(t," runningStep:").concat(this.runningStep," dom:").concat(this.domProcessing," runs:").concat(this.nextRuns.length," D:").concat(null===(n=this.delayProcess)||void 0===n?void 0:n.delay," events:").concat($e().eventQueue.length)),0!==this.phase){e.next=16;break}return $e().captureEvents(),_e.targetManager.applyTargetValues(We()),e.next=15,Ge().calculateAll();case 15:this.phase=1;case 16:if(!(o.d.now()-this.runStartTime>20)){e.next=19;break}return this.requestNextSlice(r),e.abrupt("return");case 19:if(1===this.phase&&(this.runningStep=_e.manager.analyze(),this.phase=2),!(o.d.now()-this.runStartTime>20)){e.next=23;break}return this.requestNextSlice(r),e.abrupt("return");case 23:if(2===this.phase&&(Ge().calculateActivated(),_e.events.resetEventsOnTimeout(),this.phase=3),!(o.d.now()-this.runStartTime>20)){e.next=27;break}return this.requestNextSlice(r),e.abrupt("return");case 27:3===this.phase&&(this.runningStep>=0&&(0===this.domProcessing?this.domOperations(this.runningStep):this.rerunId||(this.rerunId="domrun ".concat(r))),this.phase=4),this.runDuration=o.d.now()-this.runStartTime,0===this.domProcessing&&this.needsRerun();case 30:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"requestNextSlice",value:function(e){var t=this;this.runningFlag=!1,this.sliceQueued||(this.sliceQueued=!0,requestAnimationFrame((function(){t.sliceQueued=!1,t.delayRun(0,"slice-".concat(e),o.d.now())})))}},{key:"needsRerun",value:function(){if(this.phase=0,this.runningFlag=!1,this.rerunId){var e=this.rerunId;return this.rerunId="",void this.schedule(0,"rerun-".concat(e))}if(void 0===(this.nextRuns.length>0?this.nextRuns[0].delay-(o.d.now()-this.nextRuns[0].insertTime):void 0)||ze().lists.activeTModels.length>0||ze().lists.updatingTModels.length>0||ze().lists.restyle.length>0||ze().lists.reasyncStyle.length>0||$e().eventQueue.length>0||Ge().activatedList.length>0)if($e().eventQueue.length>0)this.schedule(1,"events-".concat($e().eventQueue.length));else if(Ge().activatedList.length>0)this.schedule(1,"getManager-locationManager-activatedList");else if(ze().lists.updatingTModels.length>0)this.schedule(1,"getManager-needsRerun-updatingTModels");else if(ze().lists.activeTModels.length>0){var t=ze().lists.activeTModels.find((function(e){return 0===e.targetExecutionCount||e.activeTargetList.filter((function(t){return!e.isScheduledPending(t)})).some((function(t){return e.shouldScheduleRun(t)}))}));if(t){var r=!this.activeStartTime||o.d.now()-this.activeStartTime>15?1:15;this.activeStartTime=o.d.now(),this.schedule(r,"getManager-needsRerun-".concat(t.oid,"-").concat(t.activeTargetList))}}if(!this.delayProcess&&this.nextRuns.length>0){var n=Math.max(1,this.nextRuns[0].delay-(o.d.now()-this.nextRuns[0].insertTime));this.schedule(n,"wake-nextRun")}}},{key:"domOperations",value:function(t){var r=this;this.domProcessing=1,10===t?this.domFixStyles():Promise.all(e.domSteps.filter((function(e,r){return r>=t})).map((function(e){return Promise.resolve().then(e)}))).then((function(){ze().lists.restyle.length?r.domFixStyles():(r.domProcessing=0,r.needsRerun())}))}},{key:"domFixStyles",value:function(){var e=this;this.domProcessing=2,requestAnimationFrame((function(){ze().fixStyles(),e.domProcessing=0,e.needsRerun()}))}},{key:"setDelayProcess",value:function(e,t,r,n,i){var a=this;this.delayProcess={runId:e,insertTime:t,runTime:n,interval:r,timeoutId:setTimeout(pe(ye().mark((function t(){return ye().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a.delayProcess.timeoutId=void 0,t.next=3,a.run(i,e);case 3:a.executeNextRun();case 4:case"end":return t.stop()}}),t)}))),Math.max(0,i))}}},{key:"executeNextRun",value:function(){for(var e=null,t=null;this.nextRuns.length>0;){var r=this.nextRuns.shift(),n=o.d.now();if(!(r.delay-(n-r.insertTime)<0)){e=null,t=r;break}e=r}if(e)this.setDelayProcess(e.runId,e.insertTime,e.delay,o.d.now(),0);else if(t){var i=o.d.now(),a=Math.max(1,t.delay-(i-t.insertTime));this.setDelayProcess(t.runId,t.insertTime,t.delay,i+a,a)}else this.delayProcess=void 0}},{key:"delayRun",value:function(e,t,r){var n=r+e;this.delayProcess?this.delayProcess.timeoutId&&n<this.delayProcess.runTime?(clearTimeout(this.delayProcess.timeoutId),this.insertRun(this.delayProcess.runId,this.delayProcess.insertTime,this.delayProcess.interval),this.setDelayProcess(t,r,e,n,e)):this.insertRun(t,r,e):this.setDelayProcess(t,r,e,n,e)}},{key:"insertRun",value:function(e,t,r){for(var n=0,i=this.nextRuns.length;n<i;){var a=n+i>>1,o=this.nextRuns[a],l=o.insertTime+o.delay-(t+r);if(0===l)return void(o.runId+="-"+e);l>0?i=a:n=a+1}this.nextRuns.splice(n,0,{runId:e,insertTime:t,delay:r})}}],r&&me(t.prototype,r),n&&me(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n,i,a}();function Me(e){return Me="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},Me(e)}function De(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Ee(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ee(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Ce(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xe(n.key),n)}}function xe(e){var t=function(e,t){if("object"!=Me(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Me(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Me(t)?t:t+""}Te=Se,ke=[function(){return ze().createDoms()},function(){return ze().reattachTModels()},function(){return ze().relocateTModels()},function(){return ze().renderTModels()},function(){return ze().fixAsyncStyles()},function(){return ze().deleteDoms()}],(we=be(we="domSteps"))in Te?Object.defineProperty(Te,we,{value:ke,enumerable:!0,configurable:!0,writable:!0}):Te[we]=ke;var _e,Le=function(){return function(e,t,r){return t&&Ce(e.prototype,t),r&&Ce(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}),[{key:"applyTargetValues",value:function(e){var t,r=De(arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.activeTargetList.slice(0));try{for(r.s();!(t=r.n()).done;){var n=t.value;e.isTargetImperative(n)||this.applyTargetValue(e,n)}}catch(e){r.e(e)}finally{r.f()}}},{key:"applyTargetValue",value:function(e,t){var r=e.targets[t];if(o.d.isDefined(r)){if(!e.isExecuted(t)||!e.hasUpdatingImperativeTargets(t)){if(e.isExecuted(t)&&e.getTargetStep(t)===e.getTargetSteps(t)){if(e.isScheduledPending(t))return;var n=o.d.scheduleExecution(e,t);if(n>0)return void Ze().timeSchedule(n,"targetSchedule__".concat(e.oid,"__").concat(t,"_").concat(n))}e.isTargetEnabled(t)?(e.resetScheduleTimeStamp(t),s.j.prepareTarget(e,t),s.j.executeDeclarativeTarget(e,t),m.g.shouldActivateNextTarget(e,t)):r.needsReactivation&&e.removeFromActiveTargets(t)}}else e.removeFromActiveTargets(t)}},{key:"setActualValues",value:function(e,t){if(t.length){var r,n=0,i=De(t=t.slice(0));try{for(i.s();!(r=i.n()).done;){var a=r.value;(n=o.d.scheduleExecution(e,a))>0?Ze().schedule(n,"setActualValues-".concat(e.oid,"__").concat(a,"_").concat(n)):(e.resetScheduleTimeStamp(a),this.setActualValue(e,a))}}catch(e){i.e(e)}finally{i.f()}var l=e.waapiBatch;l&&e.hasDom()?(Je().animate(e,l,O.T.getAnimationHooks()),e.waapiBatch=void 0):e.waapiBatch=void 0}}},{key:"findOriginalTModel",value:function(e,t){return a.X.findParentByTarget(e,t)||rt().find((function(e){return e.targets[t]}))}},{key:"fireOnStep",value:function(e,t,r){var n=e.targetValues[t],i=e.getTargetValue(t),a=e.getTargetSteps(t),l=e.targets[t];e.setLastUpdate(t),e.setTargetMethodName(t,"value");var s=n.originalTargetName,u=e.targets[s],c=e;e.setTargetMethodName(t,"value"),!u&&s&&(u=(c=this.findOriginalTModel(e,s))?c.targets[s]:null);var d=!1;if(e.isTargetImperative(t)){if(u){var h=m.g.getTargetName(o.d.capitalizeFirstLetter(t));"function"==typeof u["on".concat(h,"Step")]?(u["on".concat(h,"Step")].call(c,c.val(t),i,r,a),c.setTargetMethodName(s,["on".concat(h,"Step")]),d=!0):"function"==typeof u.onImperativeStep&&(u.onImperativeStep.call(c,t,c.val(t),i,r,a),c.setTargetMethodName(s,"onImperativeStep"),d=!0),u.activateNextTarget&&!u.activateNextTarget.endsWith("$$")&&u.activateNextTarget.endsWith("$")&&(d=!0,m.g.shouldActivateNextTarget(e,t))}}else d=o.d.handleValueChange(e,t),null!=l&&l.activateNextTarget&&!l.activateNextTarget.endsWith("$$")&&l.activateNextTarget.endsWith("$")&&(d=!0,m.g.shouldActivateNextTarget(e,t));return d}},{key:"fireOnEnd",value:function(e,t){var r=e.targetValues[t];if(r){var n=e.getTargetValue(t),i=e.getTargetSteps(t);e.setLastUpdate(t);var a=r.originalTargetName,l=e.targets[a],u=e;!l&&a&&(l=(u=this.findOriginalTModel(e,a))?u.targets[a]:null);var c=this.calculateTargetStatus(e,r,t);if(e.setTargetStatus(t,c),e.isTargetImperative(t)){var d=m.g.getTargetName(o.d.capitalizeFirstLetter(t));l&&"function"==typeof l["on".concat(d,"End")]?(l["on".concat(d,"End")].call(u,u.val(t),n,i,i),u.setTargetMethodName(a,["on".concat(d,"End")])):l&&"function"==typeof l.onImperativeEnd&&(l.onImperativeEnd.call(u,t,u.val(t)),u.setTargetMethodName(a,"onImperativeEnd")),e.getTargetCycle(t)<e.getTargetCycles(t)-1&&(e.incrementTargetCycle(t),e.resetTargetStep(t),e.resetTargetInitialValue(t))}else{var h;e.getTargetCycle(t)<e.getTargetCycles(t)-1&&(e.incrementTargetCycle(t),e.resetTargetStep(t),e.resetTargetInitialValue(t),e.resetTargetExecutionFlag(t),s.j.executeDeclarativeTarget(e,t)),"function"==typeof(null===(h=e.targets[t])||void 0===h?void 0:h.onStepsEnd)&&(e.targets[t].onStepsEnd.call(e,e.getTargetCycle(t)),e.setTargetMethodName(t,"onStepsEnd"))}m.g.shouldActivateNextTarget(e,t)}}},{key:"calculateTargetStatus",value:function(e,t,r){var n=e.getValueListPointer(r),i=e.getTargetCycle(r),a=e.getTargetCycles(r);return Array.isArray(t.valueList)&&n<t.valueList.length||e.isTargetImperative(r)&&i<a-1?"updating":e.isTargetInLoop(r)||i<a-1?"active":"done"}},{key:"handleWebAnimationAPI",value:function(e,t,r,n,i,a,s,u,c){var d,h=arguments.length>9&&void 0!==arguments[9]&&arguments[9],f=e.waapiBatch||(e.waapiBatch={frames:[],easing:void 0,keyMap:{},totalDuration:0}),v=l.u.isTransformKey(t),y=function(e){for(var t=Math.max(0,e+c),r=0;r<f.frames.length;r++){var n=f.frames[r];if(Math.abs(n.keyTime-t)<1e-4)return n}var i={keyTime:t,tfMap:{},styleMap:{},keyMeta:new Map};return f.frames.push(i),i},g=0;if(n.valueList&&n.valueList.length){var p=n.valueList,m=n.stepList||[1],b=n.intervalList,T=n.step;if(!h){var w=y(0);v?(w.tfMap[t]=T>0&&o.d.isDefined(e.val(r))?e.val(r):p[0],e.val(r,w.tfMap[t])):(w.styleMap[t]=p[0],e.val(r,w.styleMap[t]))}for(var k=1;k<p.length;k++){var S=m[(k-1)%m.length],M=b[(k-1)%b.length],D=y(g+=S*M);v?D.tfMap[t]=p[k]:D.styleMap[t]=p[k],D.keyMeta.set(t,{steps:S,interval:M})}n.valuePointer=p.length}else{if(g=s*(u=u||8),!h){var E=y(0);v?E.tfMap[t]=i:E.styleMap[t]=i}var C=y(g);v?C.tfMap[t]=a:C.styleMap[t]=a,e.val(r,i),C.keyMeta.set(t,{steps:s,interval:u})}return e.getTargetEasing(r)&&(f.easing=e.getTargetEasing(r)),f.totalDuration=Math.max(0,f.totalDuration,c+g),((d=f.keyMap)[t]||(d[t]=new Set)).add(r),e.removeFromUpdatingTargets(r),g}},{key:"setActualValue",value:function(e,t){var r=e.targetValues[t];if(r)if(e.isTargetImperative(t)||e.isTargetEnabled(t)){var n=e.getTargetValue(t),i=m.g.getTargetName(t),a=e.getTargetStep(t),l=e.getTargetSteps(t),s=e.getTargetCycle(t),u=e.getValueListPointer(t),c=e.getTargetInterval(t),d=e.getTargetInitialValue(t),h=e.getLastUpdate(t),f=o.d.now();if(o.d.isDefined(d)||(d=o.d.isDefined(e.val(t))?e.val(t):"number"==typeof n?0:void 0,e.setTargetInitialValue(t,d)),e.canBeAnimated(i)){if(e.hasDom())for(var v=e.isTargetImperative(t)?e.getTargetCycles(t):0,y=this.handleWebAnimationAPI(e,i,t,r,d,n,l,c,0),g=1;g<v;g++)this.handleWebAnimationAPI(e,i,t,r,d,n,l,c,g*y,!0)}else{if(a<=l){e.incrementTargetStep(t,f,h,c,l);var p=L.a.easingMorph(e,t,d,n,a,l);if(e.val(t,p),e.setActual(t,p),e.addToStyleTargetList(t),this.fireOnStep(e,t,a),e.getTargetStep(t)<l)return void Ze().scheduleOnlyIfEarlier(c,"".concat(e.oid,"---").concat(t,"-").concat(a,"/").concat(l,"-").concat(s,"-").concat(c))}e.val(t,n),e.setActual(t,n),e.addToStyleTargetList(t),r.step=l,e.setLastUpdate(t),a=l;var b=1;r.valueList&&u<r.valueList.length?(e.incrementValueListPointer(t),u=e.getValueListPointer(t),e.resetTargetStep(t),r.initialValue=r.value,r.value=r.valueList[u],r.steps=r.stepList[(u-1)%r.stepList.length],r.interval=Array.isArray(r.intervalList)?r.intervalList[(u-1)%r.intervalList.length]:0,r.easing=r.easingList[(u-1)%r.easingList.length],b=c):this.fireOnEnd(e,t),Ze().scheduleOnlyIfEarlier(b,"".concat(e.oid,"---").concat(t,"-").concat(a,"/").concat(l,"-").concat(s,"-").concat(b))}}else Ze().schedule(15,"setActualValue-postpone-".concat(e.oid,"__").concat(t))}}])}(),Oe=r(580);function Ae(e){return Ae="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},Ae(e)}function Pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||Ie(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 je(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Ie(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function Ie(e,t){if(e){if("string"==typeof e)return Ve(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ve(e,t):void 0}}function Ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Ne(){Ne=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var a=t&&t.prototype instanceof p?t:p,o=Object.create(a.prototype),l=new L(n||[]);return i(o,"_invoke",{value:E(e,r,l)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",v="executing",y="completed",g={};function p(){}function m(){}function b(){}var T={};u(T,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(O([])));k&&k!==r&&n.call(k,o)&&(T=k);var S=b.prototype=p.prototype=Object.create(T);function M(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function D(e,t){function r(i,a,o,l){var s=d(e[i],e,a);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==Ae(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function E(t,r,n){var i=h;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===y){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var l=n.delegate;if(l){var s=C(l,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?y:f,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function C(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=d(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function x(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 _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function O(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(Ae(t)+" is not iterable")}return m.prototype=b,i(S,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=u(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},M(D.prototype),u(D.prototype,l,(function(){return this})),t.AsyncIterator=D,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new D(c(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},M(S),u(S,s,"Generator"),u(S,o,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,L.prototype={constructor:L,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(_),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=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 r=this;function i(n,i){return l.type="throw",l.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(o)},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 r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;_(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function He(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,i)}function Fe(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){He(a,n,i,o,l,"next",e)}function l(e){He(a,n,i,o,l,"throw",e)}o(void 0)}))}}var Be=[],Re=function(e){var t;if(e){var r,n=e instanceof i.c?e:new i.c("App",e);return null!==(t=_e)&&void 0!==t&&t.tRoot?(_e.tRoot.addChild(n),n):"loading"===document.readyState?(Be.push(n),n):(null!==(r=_e)&&void 0!==r&&r.tRoot||"loading"===document.readyState||ot(),_e.tRoot.addChild(n),n)}};Re.unmount=Fe(Ne().mark((function e(){var t;return Ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(_e){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,_e.stop();case 4:return t=_e.tRoot,t.getChildren().forEach((function(e){var r,n;e.val("sourceDom")?Y.v.restoreDomState(null===(n=e.$dom)||void 0===n?void 0:n.element,e.domState):null!==(r=e.$dom)&&void 0!==r&&r.attr("tgjs")&&t.$dom.removeElement(e.$dom.element)})),t.allChildrenList=[],t.allChildrenMap={},t.clearUpdatingChildren(),t.clearActiveChildren(),t.clearAnimatingChildren(),e.next=14,_e.reset();case 14:Re.oids={},Re.tmodelIdMap={},_e=void 0;case 17:case"end":return e.stop()}}),e)}))),Re.oids={},Re.tmodelIdMap={},Re.getOid=function(e){var t=Re.oids;o.d.isDefined(t[e])||(t[e]=0);var r=t[e]++;return{oid:r>0||e.endsWith("_")?"".concat(e).concat(r):e,num:r}};var Ue=function(){return!!_e&&_e.runningFlag},We=function(){var e;return null===(e=_e)||void 0===e?void 0:e.tRoot},$e=function(){var e;return null===(e=_e)||void 0===e?void 0:e.events},Xe=function(){var e;return null===(e=_e)||void 0===e?void 0:e.pager},Ye=function(){var e;return null===(e=_e)||void 0===e?void 0:e.loader},qe=function(e,t,r,n){var i;return null===(i=_e)||void 0===i||null===(i=i.loader)||void 0===i?void 0:i.fetch(e,t,r,n)},Ke=function(e,t,r){var n;return null===(n=_e)||void 0===n||null===(n=n.loader)||void 0===n?void 0:n.fetchImage(e,t,r)},ze=function(){var e;return null===(e=_e)||void 0===e?void 0:e.manager},Qe=function(){var e;return null===(e=_e)||void 0===e?void 0:e.targetManager},Je=function(){var e;return null===(e=_e)||void 0===e?void 0:e.animationManager},Ze=function(){var e;return null===(e=_e)||void 0===e?void 0:e.runScheduler},Ge=function(){var e;return null===(e=_e)||void 0===e?void 0:e.locationManager},et=function(){var e,t;return null!==(e=null===(t=_e)||void 0===t||null===(t=t.tRoot)||void 0===t?void 0:t.val("screenWidth"))&&void 0!==e?e:0},tt=function(){var e,t;return null!==(e=null===(t=_e)||void 0===t||null===(t=t.tRoot)||void 0===t?void 0:t.val("screenHeight"))&&void 0!==e?e:0},rt=function(){var e;return null===(e=_e)||void 0===e||null===(e=e.manager)||void 0===e?void 0:e.getVisibles()},nt=function(){var e;return null===(e=_e)||void 0===e?void 0:e.resizeLastUpdate},it=function(e){return Re.tmodelIdMap[e]},at=function(e){var t=Re.tmodelIdMap[e];return t&&t.targets.sourceDom?t:void 0};window.t=window.t||it;var ot=function(){var e;_e||(e={throttle:0,debugLevel:0,runningFlag:!1,resizeLastUpdate:0,init:function(){return e.$window=new n.J(window),e.loader=new x,e.pager=new re,e.events=new p,e.locationManager=new X,e.targetManager=new Le,e.animationManager=new Oe._,e.manager=new fe,e.runScheduler=new Se,e.tRootFactory=function(){var t=new i.c("tRoot",{styling:!1,domHolder:!0,isVisible:!0,screenWidth:function(){var r=n.J.getScreenWidth();return r!==t.val("screenWidth")&&(e.resizeLastUpdate=o.d.now()),r},screenHeight:function(){var r=n.J.getScreenHeight();return r!==t.val("screenHeight")&&(e.resizeLastUpdate=o.d.now()),r},initPageDom:function(){var e=this;Y.v.initPageDoms(this.$dom),Be.length&&(Be.forEach((function(t){return e.addChild(t)})),Be.length=0)}});return t.$dom=n.J.query("#tgjs-root")?new n.J("#tgjs-root"):new n.J("body"),"body"!==t.$dom.getTagName()&&t.$dom.attr("data-tjno-slot","true"),t.val("screenWidth",n.J.getScreenWidth()),t.val("screenHeight",n.J.getScreenHeight()),e.tRoot&&e.tRoot.getChildren().forEach((function(e){if(!e.val("sourceDom")){var r=new i.c(e.type,e.targets);t.addChild(r)}})),t},e.tRoot=e.tRootFactory(),e}},e.start=Fe(Ne().mark((function t(){return Ne().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.runningFlag=!1,s.j.executeDeclarativeTarget(e.tRoot,"screenWidth"),s.j.executeDeclarativeTarget(e.tRoot,"screenHeight"),e.events.detachAll(),e.events.detachWindowEvents(),e.events.attachWindowEvents(),e.events.clearAll(),e.events.attachEvents(e.manager.getVisibles()),t.next=10,e.runScheduler.resetRuns();case 10:return e.runningFlag=!0,e.runScheduler.schedule(0,"appStart"),t.abrupt("return",e);case 13:case"end":return t.stop()}}),t)}))),e.stop=Fe(Ne().mark((function t(){return Ne().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.runningFlag=!1,e.events.detachAll(),e.events.detachWindowEvents(),e.events.clearAll(),t.next=6,e.animationManager.deleteAll();case 6:return t.next=8,e.animationManager.flushOneFrame();case 8:return t.next=10,e.runScheduler.resetRuns();case 10:return t.abrupt("return",e);case 11:case"end":return t.stop()}}),t)}))),e.reset=Fe(Ne().mark((function t(){return Ne().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.manager.getVisibles().forEach((function(e){var t;if(e.tfMap={},e.styleMap={},null!==(t=e.allStyleTargetMap)&&void 0!==t&&t.size){var r,n=je(e.allStyleTargetMap);try{for(n.s();!(r=n.n()).done;){var i=Pe(r.value,1)[0];o.d.isDefined(e.val(i))&&e.addToStyleTargetList(i)}}catch(e){n.e(e)}finally{n.f()}}})),t.next=3,e.runScheduler.resetRuns();case 3:e.manager.clearAll(),e.locationManager.clear(),e.loader.clear(),a.X.clear();case 7:case"end":return t.stop()}}),t)}))),e.isRunning=function(){return e.runningFlag},e.find=function(e){return a.X.find(e)},(_e=e).init().start())};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",ot):ot()},901:function(e,t,r){r.d(t,{d:function(){return h}});var n=r(528),i=r(675);function a(e){return a="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},a(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}function s(e,t,r){return t=c(t),function(e,t){if(t&&("object"==a(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,u()?Reflect.construct(t,r||[],c(e).constructor):t.apply(e,r))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var h=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=s(this,t,["BI"])).parent=e,r.currentBrakcetStatus=2,r}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&&d(e,t)}(t,e),r=t,(n=[{key:"canHaveDom",value:function(){return!1}},{key:"shouldBeBracketed",value:function(){return!1}},{key:"excludeDefaultStyling",value:function(){return!0}},{key:"isIncluded",value:function(){return!1}},{key:"getWidth",value:function(){return this.getContentWidth()}},{key:"getHeight",value:function(){return this.getContentHeight()}},{key:"getMinWidth",value:function(){return this.bottomBaseWidth}},{key:"getBaseWidth",value:function(){return this.bottomBaseWidth}},{key:"getBaseHeight",value:function(){return this.topBaseHeight}},{key:"useContentWidth",value:function(){return this.getRealParent().useContentWidth()}},{key:"useContentHeight",value:function(){return this.getRealParent().useContentHeight()}},{key:"getContainerOverflowMode",value:function(){return this.getRealParent().getContainerOverflowMode()}},{key:"getTopBaseHeight",value:function(){return this.topBaseHeight}},{key:"isVisible",value:function(){return!!this.visibilityStatus&&this.visibilityStatus.top&&this.visibilityStatus.bottom}},{key:"getBracketThreshold",value:function(){return this.getRealParent().getBracketSize()}},{key:"addToParentVisibleChildren",value:function(){}},{key:"createViewport",value:function(){return this.viewport=this.viewport||new i.L,this.viewport.xNext=this.x,this.viewport.xNorth=this.x,this.viewport.xEast=this.x,this.viewport.xSouth=this.x,this.viewport.xWest=this.x,this.viewport.absX=this.getRealParent().viewport.absX,this.viewport.absY=this.getRealParent().viewport.absY,this.viewport.scrollTop=this.getRealParent().viewport.scrollTop,this.viewport.scrollLeft=this.getRealParent().viewport.scrollLeft,this.viewport.xOverflowReset=this.getRealParent().viewport.xOverflowReset,this.viewport.xOverflowLimit=this.getRealParent().viewport.xOverflowLimit,this.viewport.yNext=this.y,this.viewport.yNorth=this.y,this.viewport.yWest=this.y,this.viewport.yEast=this.y,this.viewport.ySouth=this.y,this.viewport.container=this,this.viewport}},{key:"getRealParent",value:function(){return this.realParent}},{key:"getRightMargin",value:function(){return 0}},{key:"getBottomMargin",value:function(){return 0}},{key:"calcAbsolutePosition",value:function(e,t){this.absX=e+this.getRealParent().absX,this.absY=t+this.getRealParent().absY}},{key:"shouldCalculateChildren",value:function(){var e=this.isVisible();return this.currentBrakcetStatus>=1||this.isNowVisible||this.isNowInvisible?(this.currentBrakcetStatus=Math.max(0,this.currentBrakcetStatus-1),!0):(e&&(this.currentBrakcetStatus=Math.min(2,this.currentBrakcetStatus+1)),!1!==this.getDirtyLayout()&&e)}},{key:"getDirtyLayout",value:function(){return this.getRealParent().managesOwnScroll()?this.getRealParent().backupDirtyLayout:this.dirtyLayout}},{key:"validateVisibilityInParent",value:function(){return!0}},{key:"adjustViewport",value:function(){this.viewport.xEast=Math.max(this.viewport.xEast,this.getRealParent().viewport.xEast),this.viewport.ySouth=Math.max(this.viewport.ySouth,this.getRealParent().viewport.ySouth)}},{key:"getChildren",value:function(){return this.allChildrenList}}])&&o(r.prototype,n),a&&o(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,a}(n.c)},780:function(e,t,r){r.d(t,{M:function(){return f}});var n=r(901),i=r(142);function a(e){return a="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},a(e)}function o(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(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 l(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=s(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function s(e,t){if(e){if("string"==typeof e)return u(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function d(e,t,r){return(t=h(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,a=[{key:"generate",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!e.bracketMap[t.oid]||e.pageMap[t.oid]!==t.allChildrenList||r?(e.bracketMap[t.oid]=e.buildTreeBottomUp(t,t.getChildren()),e.pageMap[t.oid]=t.allChildrenList):(t.lastChildrenUpdate.deletions.length>0&&(e.updateTreeOnDeletions(t,t.lastChildrenUpdate.deletions),e.reindexTree(t)),t.lastChildrenUpdate.additions.length>0&&e.updateTreeOnAdditions(t,t.lastChildrenUpdate.additions),(t.lastChildrenUpdate.deletions.length>0||t.lastChildrenUpdate.additions.length>0)&&e.reindexTree(t)),t.lastChildrenUpdate.additions.length=0,t.lastChildrenUpdate.deletions.length=0,e.bracketMap[t.oid]}},{key:"updateTreeOnDeletions",value:function(t,r){function i(r,a){if(r)if(a instanceof n.d&&a.parent===a.realParent){var o=e.bracketMap[t.oid],l=o.indexOf(a);l>=0&&o.splice(l,1)}else{var s=r.allChildrenList.indexOf(a);s>=0&&(r.allChildrenList.splice(s,1),e.markBracketDirty(r),0===r.allChildrenList.length&&i(r.parent,r))}}r.forEach((function(e){return i(e.bracket,e)}))}},{key:"reindexTree",value:function(t){function r(e,t){if(0===e.allChildrenList.length)return t;if(e.allChildrenList[0]instanceof n.d){e.startIndex=t;var i,a=l(e.allChildrenList);try{for(a.s();!(i=a.n()).done;)t=r(i.value,t)}catch(e){a.e(e)}finally{a.f()}e.endIndex=t}else e.startIndex=t,t+=e.allChildrenList.length,e.endIndex=t;return t}var i,a=0,o=l(e.bracketMap[t.oid]);try{for(o.s();!(i=o.n()).done;)a=r(i.value,a)}catch(e){o.e(e)}finally{o.f()}}},{key:"updateTreeOnAdditions",value:function(t,r){var i=t.getBracketSize();r.forEach((function(r){var a=r.index,o=r.child,l=e.findOrCreateBracket(t,a),s=a-l.startIndex;s<l.allChildrenList.length?l.allChildrenList.splice(s,0,o):l.allChildrenList.push(o),o.bracket=l;var u=l;for(u.startIndex=Math.min(u.startIndex,a),u.endIndex=u.startIndex+u.allChildrenList.length,u.currentStatus="new",u.markLayoutDirty("update"),u=l.getParent();u instanceof n.d;)u.startIndex=Math.min(u.startIndex,a),u.endIndex=Math.max(u.endIndex,a+1),u.currentStatus="new",u.markLayoutDirty("update"),u=u.getParent();l.allChildrenList.length>i&&e.splitBracket(t,l)}))}},{key:"splitBracket",value:function(t,r){for(var i=r.allChildrenList,a=t.getBracketSize(),l=[],s=r.startIndex,u=0;u<i.length;u+=a){var c=i.slice(u,u+a),d=s+c.length,h=e.createBracket(t,s,d,c);h.parent=r.parent,s=h.endIndex,l.push(h)}if(r.parent!==r.realParent){var f,v=r.parent.allChildrenList.indexOf(r);if(v>=0&&(f=r.parent.allChildrenList).splice.apply(f,[v,1].concat(l)),e.markBracketDirty(r),r.parent.allChildrenList.length>=a){var y=e.buildTreeBottomUp(t,r.parent.allChildrenList);if(r.parent.allChildrenList=y,r.parent.allChildrenList.forEach((function(t){t.parent=r.parent,e.markBracketDirty(t)})),r.parent.parent){var g,p=r.parent.parent.allChildrenList.indexOf(r.parent);p>=0&&((g=r.parent.parent.allChildrenList).splice.apply(g,[p,1].concat(o(y))),r.parent.parent.allChildrenList.forEach((function(e){e.parent=r.parent.parent})))}}}else{var m=e.bracketMap[t.oid],b=m.indexOf(r);b>=0&&m.splice.apply(m,[b,1].concat(l)),m.length>t.getBracketSize()&&(e.bracketMap[t.oid]=e.buildTreeBottomUp(t,m))}l.forEach((function(t){return e.markBracketDirty(t)})),l[0].parent instanceof n.d&&e.markBracketDirty(l[0].parent)}},{key:"findOrCreateBracket",value:function(t,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.bracketMap[t.oid],o=l(a);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s.startIndex<=r&&s.endIndex>=r)return s.getFirstChild()instanceof n.d?e.findOrCreateBracket(t,r,s.allChildrenList):s}}catch(e){o.e(e)}finally{o.f()}var u=e.createBracket(t,r,r);if(a.push(u),a.length>t.getBracketSize()){var c=e.buildTreeBottomUp(t,a);e.bracketMap[t.oid]=c}return u}},{key:"buildTreeBottomUp",value:function(t,r){for(var i=r.length,a=t.getBracketSize(),o=[],l=0;l<i;l+=a){var s=r.slice(l,l+a),u=s[0]instanceof n.d,c=u?s[0].startIndex:l,d=u?s[s.length-1].endIndex:l+s.length,h=e.createBracket(t,c,d,s);o.push(h)}return o.length>a?e.buildTreeBottomUp(t,o):o}},{key:"createBracket",value:function(t,r,a,o){var l=new n.d(t);return i.qw.tmodelIdMap[l.oid]=l,l.realParent=t,l.allChildrenList=o||l.allChildrenList,l.startIndex=r,l.endIndex=a,l.allChildrenList.forEach((function(e){e instanceof n.d?(e.realParent=t,e.parent=l):e.bracket=l})),e.all[l.oid]=l,l}},{key:"reset",value:function(){e.bracketMap={},e.pageMap={},e.all={}}},{key:"markBracketDirty",value:function(e){for(var t=e;t&&"BI"===t.type;)t.currentStatus="new",t.markLayoutDirty("update"),t=t.parent}}],(r=null)&&c(t.prototype,r),a&&c(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,a}();d(f,"bracketMap",{}),d(f,"pageMap",{}),d(f,"all",{})},210:function(e,t,r){function n(e){return n="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},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.d(t,{I:function(){return u}});var o,l,s,u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,n=[{key:"color2Integers",value:function(t){if(t=t?String(t):"",t=e.colors[t.toLowerCase()]||t){if(t.startsWith("#")){t=3===(t=t.slice(1)).length?t.split("").map((function(e){return e+e})).join(""):t;var r=parseInt(t,16);return[r>>16&255,r>>8&255,255&r]}var n=t.match(/\d+/g);return n&&3===n.length?n.map(Number):void 0}}}],(r=null)&&i(t.prototype,r),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();o=u,s={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},(l=a(l="colors"))in o?Object.defineProperty(o,l,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[l]=s},728:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{v:function(){return DomInit}});var _$Dom_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(185),_TUtil_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(129),_App_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(142),_TargetData_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(432);function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){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 _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _typeof(e){return _typeof="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},_typeof(e)}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _createForOfIteratorHelper(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var DomInit=function(){function DomInit(){_classCallCheck(this,DomInit)}return _createClass(DomInit,null,[{key:"initCacheDoms",value:function(e){var t=(0,_App_js__WEBPACK_IMPORTED_MODULE_2__.Bt)().$dom.queryAll("[tgjs]");e.forEach((function(e){e.$dom=null}));var r,n=_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.list2map(e.filter((function(e){return"BI"!==e.type}))),i=[],a=_createForOfIteratorHelper(t);try{for(a.s();!(r=a.n()).done;){var o=r.value,l=o.getAttribute("id"),s=n[l];s?s.$dom=new _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J("#".concat(l)):(s=(0,_App_js__WEBPACK_IMPORTED_MODULE_2__.iP)(l))?(i.push(s),s.$dom=new _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J("#".concat(l))):_$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J.detach(o)}}catch(e){a.e(e)}finally{a.f()}return i}},{key:"mount",value:function(e,t){if(void 0!==t){var r=DomInit.normalizeElementTarget(t);if(r){var n;null!==(n=e.$dom)&&void 0!==n&&n.exists()&&(e.domState?DomInit.restoreDomState(e.$dom.element,e.domState):e.$dom.detach()),e.domState=DomInit.snapshotDomState(r.element),e.targets.$dom=r,e.val("$dom",r);var i=r.getTagName().toLowerCase(),a={};e.val("element")!==i&&(a.element=i),a.position=r.getStyleValue("position")||"relative",a.sourceDom=!0,a.domIsland=!0,_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(e.targets.reuseDomDefinition)||(a.reuseDomDefinition=!0,a.domHolder=!0,_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(e.targets.excludeXYCalc)||(a.excludeXYCalc=!0),_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(e.targets.x)||_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(e.targets.excludeX)||(a.excludeX=!0),_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(e.targets.y)||_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(e.targets.excludeY)||(a.excludeY=!0)),e.addTargets(a);var o=r.getId();if(o&&o!==e.oid)e.domId=o;else if(!o){var l="tgjs-".concat(e.oid);r.ensureId(l),e.domId=l}r.attr("tgjs-oid",e.oid),r.attr("tgjs","true"),e.$dom=void 0}}}},{key:"initPageDoms",value:function(e){var t,r=new Map,n=_createForOfIteratorHelper(e.queryAll("*"));try{for(n.s();!(t=n.n()).done;){var i=t.value,a=void 0,o=Array.from(i.attributes),l=o.some((function(e){return"tg"===e.name||e.name.startsWith("tg-")})),s={};if(l){var u,c=_createForOfIteratorHelper(o);try{for(c.s();!(u=c.n()).done;){var d=u.value;if(d.name.startsWith("tg-")){var h=d.name.slice(3),f=_TargetData_js__WEBPACK_IMPORTED_MODULE_3__.u.toCanonicalKey(h),v=d.value.trim(),y=DomInit.parseString(v);s[f]=y}else"tg"===d.name&&(s[d.name]=!0)}}catch(e){c.e(e)}finally{c.f()}}var g=i.parentElement,p=r.get(g),m=void 0;if(Object.keys(s).length>0&&((m=i.getAttribute("id"))||p||(m=_App_js__WEBPACK_IMPORTED_MODULE_2__.qw.getOid("blank").oid,i.setAttribute("id",m)),i.getAttribute("tgjs")||i.setAttribute("tgjs",!0),a=_objectSpread({id:m,baseElement:i.tagName.toLowerCase(),$dom:new _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J(i)},s)),p){a||(a={textOnly:!1,html:i.outerHTML,$dom:new _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J(i)});var b=DomInit.getChildrenKey(p);b?Array.isArray(p[b].value)?p[b].value.push(a):"string"==typeof p[b]?p[b]={cycles:_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isNumber(+p[b])?+p[b]:1,value:[a]}:"object"===_typeof(p[b])&&(p[b].value=[a]):p.children$={cycles:1,value:[a]},r.set(i,a)}else a&&r.set(i,a)}}catch(e){n.e(e)}finally{n.f()}var T,w=[],k=_createForOfIteratorHelper(r.values());try{for(k.s();!(T=k.n()).done;){var S=T.value,M=S.$dom.element.parentElement,D=r.get(M);D?(S.$dom.detach(),delete S.$dom,delete S.id,S.sourceDom=!0,S.otype=S.id||(D.id||_App_js__WEBPACK_IMPORTED_MODULE_2__.qw.getOid("blank").oid)+"_",S.isVisible=_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(S.isVisible)?S.isVisible:function(){return this.getParent().isVisible()},S.domParent=_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(S.domParent)?S.domParent:function(){return this.getParent()}):(S.isVisible=!_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(S.isVisible)||S.isVisible,S.domHolder=!_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(S.domHolder)||S.domHolder,S.sourceDom=!0,(0,_App_js__WEBPACK_IMPORTED_MODULE_2__.Bt)().addChild(S),S.isVisible||w.push({$dom:S.$dom,tmodel:(0,_App_js__WEBPACK_IMPORTED_MODULE_2__.Bt)().getLastChild()}))}}catch(e){k.e(e)}finally{k.f()}w.forEach((function(e){var t=e.$dom,r=e.tmodel;t.exists()&&!r.hasChildren()&&(t.detach(),r.val("requiresDom",!1))}))}},{key:"getChildrenKey",value:function(e){for(var t=0,r=Object.keys(e);t<r.length;t++){var n=r[t];if(n.toLowerCase().includes("children"))return n}return null}},{key:"parseString",value:function parseString(rawValue){if("string"!=typeof rawValue)return rawValue;var trimmed=rawValue.trim(),isFunction=/^function\s*\([\s\S]*?\)\s*\{[\s\S]*\}$/m.test(trimmed)||/^\(?[\w\s,]*\)?\s*=>\s*(\{[\s\S]*\}|\S+)/m.test(trimmed),isObject=/^(\{[\s\S]*\}|\[[\s\S]*\])$/.test(trimmed),containsCode=["return","setTarget","TargetJS.","addChild","addSibling","activateTarget","removeChild","removeAll"].some((function(e){return trimmed.includes(e)}));if(!isObject&&!isFunction&&containsCode)try{return new Function(trimmed)}catch(e){}if(isObject||isFunction)try{return eval("(".concat(trimmed,")"))}catch(e){}try{return JSON.parse(trimmed)}catch(e){}return rawValue}},{key:"snapshotDomState",value:function(e){if(e&&1===e.nodeType){for(var t={},r=0,n=Array.from(e.attributes);r<n.length;r++){var i=n[r],a=i.name,o=i.value;t[a]=o}return{attrs:t,styleAttr:e.getAttribute("style"),html:e.innerHTML}}}},{key:"restoreDomState",value:function(e,t){if(e&&1===e.nodeType&&t){for(var r=t.attrs,n=t.styleAttr,i=0,a=Array.from(e.attributes);i<a.length;i++){var o=a[i].name;o in r||e.removeAttribute(o)}for(var l=0,s=Object.entries(r);l<s.length;l++){var u=_slicedToArray(s[l],2),c=u[0],d=u[1];e.getAttribute(c)!==d&&e.setAttribute(c,d)}n?e.setAttribute("style",n):e.removeAttribute("style"),e.innerHTML=t.html}}},{key:"normalizeElementTarget",value:function(e){if(e instanceof _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J)return e;if(e instanceof Element)return new _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J(e);if("string"==typeof e){var t=_$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J.querySelector(e);return t?new _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J(t):null}return null}}])}()},736:function(e,t,r){var 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 a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function o(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}r.d(t,{G:function(){return s}});var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,n=[{key:"easingFunction",value:function(t){return t&&e.easeMap.get(t)||u}},{key:"cubicBezier",value:function(e,t,r,n){var i=function(e,t,r){var n=3*t,i=3*(r-t)-n;return(((1-n-i)*e+i)*e+n)*e},a=function(e,t,r){var n=3*t,i=3*(r-t)-n;return(3*(1-n-i)*e+2*i)*e+n};return function(o){var l=function(t){for(var n=t,o=0;o<8;o++){var l=i(n,e,r)-t;if(Math.abs(l)<1e-6)return n;var s=a(n,e,r);if(Math.abs(s)<1e-6)break;(n-=l/s)<0?n=0:n>1&&(n=1)}for(var u=0,c=1,d=0,h=0;h<20;h++){var f=i(d=(u+c)/2,e,r);if(Math.abs(f-t)<1e-6)return d;f<t?u=d:c=d}return d}(o=function(e){return e<=0?0:e>=1?1:e}(o));return i(l,t,n)}}}],(r=null)&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();function u(e){return e}n=s,o(s,"LINEAR","linear"),o(s,"EASE","ease"),o(s,"EASE_IN","ease-in"),o(s,"EASE_OUT","ease-out"),o(s,"EASE_IN_OUT","ease-in-out"),o(s,"STEP_START","step-start"),o(s,"STEP_END","step-end");var c={_:n.cubicBezier(.25,.1,.25,1)},d={_:n.cubicBezier(.42,0,1,1)},h={_:n.cubicBezier(0,0,.58,1)},f={_:n.cubicBezier(.42,0,.58,1)};o(s,"easeMap",new Map([[n.LINEAR,u],[n.EASE,c._],[n.EASE_IN,d._],[n.EASE_OUT,h._],[n.EASE_IN_OUT,f._],[n.STEP_START,function(e){return e<=0?0:1}],[n.STEP_END,function(e){return e<1?0:1}]]))},745:function(e,t,r){r.d(t,{X:function(){return d}});var n=r(129),i=r(142);function a(e){return a="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},a(e)}function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return l(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function u(e,t,r){return(t=c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,a=[{key:"clear",value:function(){e.foundParentWithType={},e.foundParentWithTarget={},e.foundTypeMap={},e.foundTargetMap={},e.foundOids={},e.foundHandler={}}},{key:"findFirstScrollHandler",value:function(t,r,n){if(t){var i="".concat(t.oid," ").concat(r," ").concat(n);if(e.foundHandler[i])return e.foundHandler[i];var a=this.findScrollHandler(t,n,r);return a&&(e.foundHandler[i]=a),a}}},{key:"findFirstHandler",value:function(t,r){if(t){var n="".concat(t.oid," ").concat(r);if(e.foundHandler[n])return e.foundHandler[n];var i=this.findEventHandler(t,r);return i&&(e.foundHandler[n]=i),i}}},{key:"findFirstScrollTopHandler",value:function(e,t){return this.findFirstScrollHandler(e,"onScrollTop",t)}},{key:"findFirstScrollLeftHandler",value:function(e,t){return this.findFirstScrollHandler(e,"onScrollLeft",t)}},{key:"findFirstPinchHandler",value:function(e){return this.findFirstHandler(e,"onPinch")}},{key:"findFirstSwipeHandler",value:function(e){return this.findFirstHandler(e,"onSwipe")}},{key:"findFirstEnterHandler",value:function(e){return this.findFirstHandler(e,"onEnter")}},{key:"findFirstLeaveHandler",value:function(e){return this.findFirstHandler(e,"onLeave")}},{key:"findFirstClickHandler",value:function(e){return this.findFirstHandler(e,"onClick")||this.findFirstHandler(e,"onAnyClick")}},{key:"findScrollHandler",value:function(e,t,r){for(;e&&(!e.canHandleEvent("onSwipe")||"wheel"===t);){if(e.canHandleEvent(r)||e.canHandleEvent("onScroll"))return e;e=e.getParent()}}},{key:"findEventHandler",value:function(e,t){for(;e;){if(e.canHandleEvent(t))return e;e=e.getParent()}}},{key:"findParentByType",value:function(t,r){var i="".concat(t.oid,"__").concat(r);if(!n.d.isDefined(e.foundParentWithType[i]))for(var a=t.getParent();a;){if(a.type===r){e.foundParentWithType[i]=a;break}a=a.getParent()}return e.foundParentWithType[i]}},{key:"findParentByTarget",value:function(t,r,i){var a="".concat(t.oid,"__").concat(r);if(!n.d.isDefined(e.foundParentWithTarget[a]))for(var o=t.getParent();o;){if(n.d.isDefined(o.targets[r])||n.d.isDefined(o.targetValues[r])){if(!n.d.isDefined(i)){e.foundParentWithTarget[a]=o;break}if(o.getTargetValue(r)===i){e.foundParentWithTarget[a]=o;break}}o=o.getParent()}return e.foundParentWithTarget[a]}},{key:"findByType",value:function(t){if(!n.d.isDefined(e.foundTypeMap[t])){var r=function(e){if(e.type===t)return e;var n,i=o(e.getChildren());try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a&&a.hasChildren()){var l=r(a);if(l)return l}else if(a&&a.type===t)return a}}catch(e){i.e(e)}finally{i.f()}},a=r((0,i.Bt)());a&&(e.foundTypeMap[t]=a)}return e.foundTypeMap[t]}},{key:"findByTarget",value:function(t){if(!n.d.isDefined(e.foundTargetMap[t])){var r=function(e){if(e.targets[t])return e;var n,i=o(e.getChildren());try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a&&a.hasChildren()){var l=r(a);if(l)return l}else if(a&&a.targets[t])return a}}catch(e){i.e(e)}finally{i.f()}},a=r((0,i.Bt)());a&&(e.foundTargetMap[t]=a)}return e.foundTargetMap[t]}},{key:"find",value:function(t){if(!n.d.isDefined(e.foundOids[t])){var r=function(e){if(e.oid===t)return e;var n,i=o(e.getChildren());try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a&&a.hasChildren()){var l=r(a);if(l)return l}else if(a&&a.oid===t)return a}}catch(e){i.e(e)}finally{i.f()}},a=r((0,i.Bt)());a&&(e.foundOids[t]=a)}return e.foundOids[t]}}],(r=null)&&s(t.prototype,r),a&&s(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,a}();u(d,"foundParentWithType",{}),u(d,"foundParentWithTarget",{}),u(d,"foundTypeMap",{}),u(d,"foundTargetMap",{}),u(d,"foundOids",{}),u(d,"foundHandler",{})},528:function(e,t,r){r.d(t,{c:function(){return A}});var n=r(142),i=r(985),a=r(129),o=r(347),l=r(956),s=r(432),u=r(185);function c(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(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 d(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=f(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||f(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 f(e,t){if(e){if("string"==typeof e)return v(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function y(e){return y="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},y(e)}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,p(n.key),n)}}function p(e){var t=function(e,t){if("object"!=y(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==y(t)?t:t+""}var m=function(){return e=function e(t,r,i){var o;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"object"===y(t)&&void 0===r&&(r=t,t=""),this.targets=Object.assign({},r),i=i||this.targets.id,a.d.isDefined(i))n.qw.getOid(i),this.type=i,this.oid=i,this.oidNum=0;else{this.type=this.targets.otype||t||"blank";var l=n.qw.getOid(this.type);this.oid=l.oid,this.oidNum=l.num}null!==(o=r)&&void 0!==o&&o.sourceDom||!a.d.isDefined(i)||(this.originalId=i),this._state={}},t=[{key:"state",value:function(){return this._state}},{key:"targetValues",get:function(){var e,t;return null!==(t=(e=this.state()).targetValues)&&void 0!==t?t:e.targetValues={}},set:function(e){this.state().targetValues=e}},{key:"actualValues",get:function(){var e,t;return null!==(t=(e=this.state()).actualValues)&&void 0!==t?t:e.actualValues={}},set:function(e){this.state().actualValues=e}},{key:"lastActualValues",get:function(){var e,t;return null!==(t=(e=this.state()).lastActualValues)&&void 0!==t?t:e.lastActualValues={}}},{key:"activeTargetList",get:function(){var e,t;return null!==(t=(e=this.state()).activeTargetList)&&void 0!==t?t:e.activeTargetList=[]},set:function(e){this.state().activeTargetList=e}},{key:"activeTargetMap",get:function(){var e,t;return null!==(t=(e=this.state()).activeTargetMap)&&void 0!==t?t:e.activeTargetMap={}},set:function(e){this.state().activeTargetMap=e}},{key:"updatingTargetList",get:function(){var e,t;return null!==(t=(e=this.state()).updatingTargetList)&&void 0!==t?t:e.updatingTargetList=[]},set:function(e){this.state().updatingTargetList=e}},{key:"updatingTargetMap",get:function(){var e,t;return null!==(t=(e=this.state()).updatingTargetMap)&&void 0!==t?t:e.updatingTargetMap={}},set:function(e){this.state().updatingTargetMap=e}},{key:"fetchActionTargetList",get:function(){var e,t;return null!==(t=(e=this.state()).fetchActionTargetList)&&void 0!==t?t:e.fetchActionTargetList=[]}},{key:"activatedTargets",get:function(){var e,t;return null!==(t=(e=this.state()).activatedTargets)&&void 0!==t?t:e.activatedTargets=[]}},{key:"targetMethodMap",get:function(){var e,t;return null!==(t=(e=this.state()).targetMethodMap)&&void 0!==t?t:e.targetMethodMap={}}},{key:"targetExecutionCount",get:function(){var e,t;return null!==(t=(e=this.state()).targetExecutionCount)&&void 0!==t?t:e.targetExecutionCount=0},set:function(e){this.state().targetExecutionCount=e}},{key:"addedChildren",get:function(){var e,t;return null!==(t=(e=this.state()).addedChildren)&&void 0!==t?t:e.addedChildren=[]}},{key:"deletedChildren",get:function(){var e,t;return null!==(t=(e=this.state()).deletedChildren)&&void 0!==t?t:e.deletedChildren=[]}},{key:"movedChildren",get:function(){var e,t;return null!==(t=(e=this.state()).movedChildren)&&void 0!==t?t:e.movedChildren=[]}},{key:"lastChildrenUpdate",get:function(){var e,t;return null!==(t=(e=this.state()).lastChildrenUpdate)&&void 0!==t?t:e.lastChildrenUpdate={additions:[],deletions:[]}}},{key:"visibleChildren",get:function(){var e,t;return null!==(t=(e=this.state()).visibleChildren)&&void 0!==t?t:e.visibleChildren=[]}},{key:"getParent",value:function(){return this.parent}},{key:"initTargets",value:function(){var e=this;if(this.targetsVersion=1,this.originalTargetNames=Object.keys(this.targets).filter((function(e){return!s.u.excludedTargetKeys.has(e)})),this.functionTargetNames=[],this.allTargetMap={},a.d.isDefined(this.originalId)&&(0,n.UR)(this.originalId))return a.d.mergeTargets((0,n.UR)(this.originalId),this),void(this.toDiscard=!0);this.actualValues=s.u.defaultActualValues(),this.targetValues={},this.activeTargetMap={},this.activeTargetList=[],this.originalTargetNames=Object.keys(this.targets).filter((function(e){return!s.u.excludedTargetKeys.has(e)})).map((function(e){return e.startsWith("_")?e.slice(1):e}));var t=u.J.query("#".concat(this.oid))||this.originalTargetNames.indexOf("$dom")>=0;t||this.excludeDefaultStyling()?t&&(this.targets.domIsland=!0,a.d.isDefined(this.targets.reuseDomDefinition)||(this.targets.reuseDomDefinition=!0,this.targets.domHolder=!0,a.d.isDefined(this.targets.excludeXYCalc)||(this.targets.excludeXYCalc=!0),a.d.isDefined(this.targets.x)||(this.targets.excludeX=!0),a.d.isDefined(this.targets.y)||(this.targets.excludeY=!0),a.d.isDefined(this.targets.position)||(this.targets.position="relative"))):(Object.entries(s.u.defaultTargetStyles).forEach((function(t){var r=h(t,2),n=r[0],i=r[1];n in e.targets||(e.targets[n]=i)})),!1===this.targets.canHaveDom||a.d.isDefined(this.targets.domHolder)||(this.targets.domHolder=!0)),Object.keys(this.targets).filter((function(e){return!s.u.excludedTargetKeys.has(e)})).forEach((function(t,r){e.processNewTarget(t,r)}))}},{key:"processNewTarget",value:function(e,t){this.targetsVersion++;var r=l.g.getTargetName(e),n=this.targets[e];if(a.d.isDefined(n)){var i=y(n),u=e.startsWith("_")||e.endsWith("$"),c=s.u.mustExecuteTargets[r]||u||"string"!==i&&"number"!==i&&"boolean"!==i,d=!!s.u.allEventMap[r],h=!!s.u.internalEventMap[r];if(("object"!==i||Array.isArray(n))&&c&&(n=l.g.wrapTarget(this,n,e)),a.d.isDefined(t)){var f=t>0?this.originalTargetNames[t-1]:void 0,v=t<this.originalTargetNames.length-1?this.originalTargetNames[t+1]:void 0;(v&&v.endsWith("$")||u||d||h||"object"===i||"function"===i)&&(a.d.isDefined(n.value)||o.D.isChildObjectTarget(e,n)||o.D.isIntervalTarget(n)||(c=!0,n=l.g.wrapTarget(this,n,e)),l.g.bindTarget(this,e,f,v,t))}if(e.startsWith("_")){var g=e.slice(1);this.targets[e]&&(this.targets[g]=this.targets[e]),delete this.targets[e],e=g,n=this.targets[g]}if(d&&(this.externalEventMap||(this.externalEventMap=new Map),this.externalEventMap.set(r,!0),n.active=!1),h&&(this.internalEventMap||(this.internalEventMap=new Map),this.internalEventMap.set(r,!0),n.active=!1),this.allTargetMap[r]=e,u&&(this.targets[e].active=!1),!s.u.bypassInitialProcessingTargetMap[r]){if(a.d.isDefined(n.initialValue)&&this.val(e,n.initialValue),(!1!==n.active||a.d.isDefined(n.initialValue))&&this.addToStyleTargetList(e),o.D.isIntervalTarget(n))n.cycles=2,n.isInterval=!0;else if(!c){var p;return void this.val(r,a.d.isDefined(null===(p=n)||void 0===p?void 0:p.value)?n.value:n)}!1!==n.active&&this.canTargetBeActivated(e)&&this.addToActiveTargets(e),this.functionTargetNames.push(e)}}else this.delVal(e)}},{key:"activate",value:function(e){(0,n.zw)().addToActivatedList(this),this.currentStatus="active",e&&this.isTargetEnabled(e)&&-1===this.activatedTargets.indexOf(e)&&this.activatedTargets.push(e)}},{key:"isActivated",value:function(){return"active"===this.currentStatus}},{key:"deactivate",value:function(){this.currentStatus=void 0}},{key:"excludeDefaultStyling",value:function(){return!1===this.targets.defaultStyling||this.excludeStyling()||this.reuseDomDefinition()&&!this.allStyleTargetMap}},{key:"canTargetBeActivated",value:function(e){var t=this.targets.onDomEvent;return!(t&&(Array.isArray(t)?t.includes(e):t===e)&&!this.hasDom())&&!this.activeTargetMap[e]}},{key:"addToStyleTargetList",value:function(e,t){var r;if(e=l.g.getTargetName(e),t||!this.excludeStyling()&&!this.targets["exclude".concat(a.d.capitalizeFirstLetter(e))]){var n,i=s.u.asyncStyleTargetMap[e],o=s.u.attributeTargetMap[e];if(i||o)null!==(n=this.asyncStyleTargetMap)&&void 0!==n&&n.has(e)||(this.asyncStyleTargetMap||(this.asyncStyleTargetMap=new Map),this.asyncStyleTargetMap.set(e,!0));else if(this.isStyleTarget(e)){var u,c=!0;if(s.u.transformMap[e])this.getParent()&&this.calcAbsolutePosition(this.getX(),this.getY());else if("width"===e||"height"===e){var d=Math.floor("width"===e?this.getWidth():this.getHeight());this.styleMap[e]===d&&(c=!1)}else"dim"===e?this.styleMap[e]===Math.floor(this.val("dim"))&&(c=!1):a.d.isDefined(this.val(e))&&this.styleMap[e]===this.val(e)&&(c=!1);!c||null!==(u=this.styleTargetMap)&&void 0!==u&&u.has(e)||(this.styleTargetMap||(this.styleTargetMap=new Map),this.styleTargetMap.set(e,!0))}!s.u.styleSet.has(e)||null!==(r=this.allStyleTargetMap)&&void 0!==r&&r.has(e)||(this.allStyleTargetMap||(this.allStyleTargetMap=new Map),this.allStyleTargetMap.set(e,!0))}}},{key:"isStyleTarget",value:function(e){return s.u.styleTargetMap[e]}},{key:"removeTarget",value:function(e){delete this.targets[e],this.removeFromActiveTargets(e),this.removeFromUpdatingTargets(e),delete this.targetValues[e]}},{key:"addTarget",value:function(e,t){var r,n,i;this.addTargets((r={},i=t,(n=p(n=e))in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,r))}},{key:"addTargets",value:function(e){var t,r=this;Object.keys(e).forEach((function(t){r.targets[t]=e[t],r.removeFromUpdatingTargets(t),r.originalTargetNames.includes(t)||r.originalTargetNames.push(t);var n=r.originalTargetNames.indexOf(t);r.processNewTarget(t,n)})),this.hasDom()&&(0,n.kQ)().attachEvents([this]),null===(t=(0,n.fB)())||void 0===t||t.schedule(1,"addTargets-"+this.oid)}},{key:"getTargetStepPercent",value:function(e,t,r){return t=a.d.isDefined(t)?t:this.getTargetStep(e),r?t/r:1}},{key:"resetTargetStep",value:function(e){return this.targetValues[e]&&(this.targetValues[e].step=0),this}},{key:"resetTargetExecutionFlag",value:function(e){return this.targetValues[e]&&(this.targetValues[e].executionFlag=!1),this}},{key:"resetTargetCycle",value:function(e){return this.targetValues[e]&&(this.targetValues[e].cycle=0),this}},{key:"resetScheduleTimeStamp",value:function(e){return this.targetValues[e]&&(this.targetValues[e].scheduleTimeStamp=void 0),this}},{key:"resetTargetInitialValue",value:function(e){return this.targetValues[e]&&(this.targetValues[e].initialValue=void 0),this}},{key:"setTargetStatus",value:function(e,t){var r=this.targetValues[e];if(r){var n=r.status;"done"!==t||"done"===n||"complete"===n||r.resetFlag||(r.completeCount++,r.completeTime=a.d.now()),r.resetFlag=!1,r.status=t,"fetching"===r.status?(this.removeFromActiveTargets(e),this.removeFromUpdatingTargets(e),this.getParent().addToActiveChildren(this)):this.isTargetUpdating(e)?(this.addToUpdatingTargets(e),this.removeFromActiveTargets(e)):this.isTargetActive(e)?(this.addToActiveTargets(e),this.removeFromUpdatingTargets(e)):(this.removeFromActiveTargets(e),this.removeFromUpdatingTargets(e))}}},{key:"getTargetStatus",value:function(e){var t,r;return null!==(t=null===(r=this.targetValues[e])||void 0===r?void 0:r.status)&&void 0!==t?t:""}},{key:"isTargetActive",value:function(e){var t;return"active"===(null===(t=this.targetValues[e])||void 0===t?void 0:t.status)}},{key:"isTargetUpdating",value:function(e){var t;return"updating"===(null===(t=this.targetValues[e])||void 0===t?void 0:t.status)}},{key:"isTargetDone",value:function(e){var t;return"done"===(null===(t=this.targetValues[e])||void 0===t?void 0:t.status)}},{key:"isTargetComplete",value:function(e){var t;return"complete"===(null===(t=this.targetValues[e])||void 0===t?void 0:t.status)||void 0===this.targetValues[e]&&void 0}},{key:"isTargetCompleteDeep",value:function(e){return l.g.isTargetCompleteDeep(this,e)}},{key:"isTargetFullyCompleted",value:function(e){return l.g.isTargetFullyCompleted(this,e)}},{key:"arePreviousTargetsComplete",value:function(e){return l.g.arePreviousTargetsComplete(this,e)}},{key:"cleanupTarget",value:function(e){l.g.cleanupTarget(this,e)}},{key:"isComplete",value:function(){return l.g.isTModelComplete(this)}},{key:"isExecuted",value:function(e){return this.targetValues[e]&&this.targetValues[e].executionFlag}},{key:"neverExecuted",value:function(e){return!this.targetValues[e]}},{key:"isTargetImperative",value:function(e){return!!this.targetValues[e]&&this.targetValues[e].isImperative}},{key:"getTargetExecutionCount",value:function(e){return this.targetValues[e]?this.targetValues[e].executionCount:0}},{key:"setTargetComplete",value:function(e){this.targetValues[e]&&(this.targetValues[e].status="complete")}},{key:"isTargetEnabled",value:function(e){var t=this.targets[e];return!!a.d.isDefined(t)&&("function"!=typeof t.enabledOn||(this.setTargetMethodName(e,"enabledOn"),t.enabledOn.call(this)))}},{key:"doesTargetEqualActual",value:function(e){if(this.targetValues[e]){var t=!!this.targets[e]&&this.targets[e].deepEquality;return t?a.d.areEqual(this.getTargetValue(e),this.val(e),t):this.getTargetValue(e)===this.val(e)}return!1}},{key:"getTargetValue",value:function(e){var t,r=this.targetValues[e]||this.targets[e];if(r){var n=null!==(t=r.value)&&void 0!==t?t:r;return"function"==typeof n?n.call(this):n}}},{key:"getTargetStep",value:function(e){return this.targetValues[e]?this.targetValues[e].step:0}},{key:"getScheduleTimeStamp",value:function(e){var t;return null===(t=this.targetValues[e])||void 0===t?void 0:t.scheduleTimeStamp}},{key:"isScheduledPending",value:function(e){var t=this.getScheduleTimeStamp(e),r=this.getTargetInterval(e);return t&&t+r>a.d.now()}},{key:"isTargetInLoop",value:function(e){var t=this.targets[e];if(!t)return!1;var r="function"==typeof t.loop?t.loop.call(this,e):t.loop;return!0===r||"passive"===r}},{key:"shouldScheduleRun",value:function(e){var t=this.targets[e];return!!t&&(void 0!==t.triggerRerun?!!t.triggerRerun:void 0===t.loop||"passive"!==("function"==typeof t.loop?t.loop.call(this,e):t.loop)||o.D.getValueStepsCycles(this,e)[0]!==this.getTargetValue(e))}},{key:"getTargetInitialValue",value:function(e){var t;return null===(t=this.targetValues[e])||void 0===t?void 0:t.initialValue}},{key:"getLastUpdate",value:function(e){var t;return null===(t=this.targetValues[e])||void 0===t?void 0:t.lastUpdate}},{key:"getDimLastUpdate",value:function(){var e,t,r,n,i;return Math.max(null!==(e=this.getLastUpdate("width"))&&void 0!==e?e:0,null!==(t=this.getLastUpdate("height"))&&void 0!==t?t:0,null!==(r=this.getLastUpdate("dim"))&&void 0!==r?r:0,null!==(n=this.domHeightTimestamp)&&void 0!==n?n:0,null!==(i=this.domWidthTimestamp)&&void 0!==i?i:0)}},{key:"getTargetActivationTime",value:function(e){var t,r;return null!==(t=null===(r=this.targetValues[e])||void 0===r?void 0:r.activationTime)&&void 0!==t?t:0}},{key:"getTargetCreationTime",value:function(e){return this.targetValues[e]?this.targetValues[e].creationTime:void 0}},{key:"incrementTargetStep",value:function(e,t,r,n,i){var a=this.targetValues[e];if(a){var o=n||8,l=t-r,s=Math.max(1,Math.floor(l/o));return a.step=Math.min(i,a.step+s),a.step}}},{key:"getTargetEasing",value:function(e){var t,r=null===(t=this.targetValues[e])||void 0===t?void 0:t.easing,n=this.targets[e];return n&&"function"==typeof n.easing?n.easing.call(this,this.getTargetCycle(e)):r}},{key:"getTargetInterval",value:function(e){var t,r,n=null!==(t=null===(r=this.targetValues[e])||void 0===r?void 0:r.interval)&&void 0!==t?t:0,i=this.targets[e];return i&&"function"==typeof i.interval?i.interval.call(this,this.getTargetCycle(e)):n}},{key:"getTargetSteps",value:function(e){var t,r,n=null!==(t=null===(r=this.targetValues[e])||void 0===r?void 0:r.steps)&&void 0!==t?t:0,i=this.targets[e];return i&&"function"==typeof i.steps?i.steps.call(this,this.getTargetCycle(e)):n}},{key:"getTargetCycles",value:function(e){var t,r,n=null!==(t=null===(r=this.targetValues[e])||void 0===r?void 0:r.cycles)&&void 0!==t?t:1,i=this.targets[e];return i&&"function"==typeof i.cycles?i.cycles.call(this,this.getTargetCycle(e),n):n}},{key:"getTargetCycle",value:function(e){var t,r;return null!==(t=null===(r=this.targetValues[e])||void 0===r?void 0:r.cycle)&&void 0!==t?t:0}},{key:"getValueListPointer",value:function(e){var t,r;return null!==(t=null===(r=this.targetValues[e])||void 0===r?void 0:r.valuePointer)&&void 0!==t?t:0}},{key:"incrementTargetCycle",value:function(e){this.targetValues[e]&&this.targetValues[e].cycle++}},{key:"incrementValueListPointer",value:function(e){this.targetValues[e]&&this.targetValues[e].valuePointer++}},{key:"setTargetInterval",value:function(e,t){return this.targetValues[e]&&(this.targetValues[e].interval=t),this.targetValues[e].interval}},{key:"setScheduleTimeStamp",value:function(e,t){this.targetValues[e]&&(this.targetValues[e].scheduleTimeStamp=t)}},{key:"setTargetInitialValue",value:function(e,t){this.targetValues[e]&&(this.targetValues[e].initialValue=t)}},{key:"setLastUpdate",value:function(e){this.targetValues[e]&&(this.targetValues[e].lastUpdate=a.d.now(),this.targetValues[e].updateCount++)}},{key:"setTarget",value:function(e,t,r,n,a){if("object"===y(e)&&null!==e){var o=[e,t,r,n,a];t=o[0],r=o[1],n=o[2],a=o[3],e=""}"string"==typeof e&&(e=e.endsWith("+")?e:e+"+");var s=l.g.currentTargetName,u=l.g.currentTModel;return this.getParent()===u&&l.g.markChildAction(u,s,this),this.markLayoutDirty(e),i.j.executeImperativeTarget(this,e,t,r,n,a,s,u),this}},{key:"cancelAnimation",value:function(){if(this.hasAnimatingTargets()){var e,t=d(this.animatingMap);try{for(t.s();!(e=t.n()).done;){var r=h(e.value,1)[0];this.targetValues[r]&&(this.targetValues[r].status="done",this.removeFromUpdatingTargets(r),this.removeFromActiveTargets(r))}}catch(e){t.e(e)}finally{t.f()}(0,n.s)().deleteAnimation(this),this.pausedBatch=void 0}}},{key:"hasTargetUpdates",value:function(e){var t;return e?!0===this.updatingTargetMap[e]||(null===(t=this.animatingMap)||void 0===t?void 0:t.has(e)):this.updatingTargetList.length>0}},{key:"addToActiveTargets",value:function(e){var t;!this.activeTargetMap[e]&&this.canTargetBeActivated(e)&&(this.markLayoutDirty(e),this.activeTargetMap[e]=!0,this.activeTargetList.push(e),null===(t=this.getParent())||void 0===t||t.addToActiveChildren(this))}},{key:"removeFromActiveTargets",value:function(e){if(this.activeTargetMap[e]){delete this.activeTargetMap[e];var t=this.activeTargetList.indexOf(e);t>=0&&this.activeTargetList.splice(t,1)}var r;0===this.activeTargetList.length&&(null===(r=this.getParent())||void 0===r||r.removeFromActiveChildren(this))}},{key:"addToUpdatingTargets",value:function(e){var t;this.updatingTargetMap[e]||(this.markLayoutDirty(e),this.updatingTargetMap[e]=!0,this.updatingTargetList.push(e),null===(t=this.getParent())||void 0===t||t.addToUpdatingChildren(this))}},{key:"removeFromUpdatingTargets",value:function(e){if(this.updatingTargetMap[e]){delete this.updatingTargetMap[e];var t=this.updatingTargetList.indexOf(e);t>=0&&this.updatingTargetList.splice(t,1)}var r;0===this.updatingTargetList.length&&(null===(r=this.getParent())||void 0===r||r.removeFromUpdatingChildren(this))}},{key:"hasUpdatingImperativeTargets",value:function(e){var t,r,n=d([].concat(c(null!==(t=this.updatingTargetList)&&void 0!==t?t:[]),c(this.hasAnimatingTargets()?c(this.animatingMap.keys()):[])));try{for(n.s();!(r=n.n()).done;){var i=r.value;if(this.isTargetImperative(i)&&this.targetValues[i].originalTargetName===e)return!0}}catch(e){n.e(e)}finally{n.f()}return!1}},{key:"getUpdatingImperativeTargets",value:function(e){var t,r=[],n=d(this.updatingTargetList);try{for(n.s();!(t=n.n()).done;){var i=t.value;this.isTargetImperative(i)&&this.targetValues[i].originalTargetName===e&&r.push(i)}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"hasAnyUpdates",value:function(){var e,t;return 0!==this.updatingTargetList.length||0!==this.activeTargetList.length||0!==(null!==(e=null===(t=this.animatingMap)||void 0===t?void 0:t.size)&&void 0!==e?e:0)}},{key:"removeFromAnimatingMap",value:function(e){var t,r;null!==(t=this.animatingMap)&&void 0!==t&&t.has(e)&&(this.animatingMap.delete(e),0===this.animatingMap.size&&(null===(r=this.getParent())||void 0===r||r.removeFromAnimatingChildren(this)))}},{key:"clearAnimatingMap",value:function(){var e,t;null===(e=this.animatingMap)||void 0===e||e.clear(),null===(t=this.getParent())||void 0===t||t.removeFromAnimatingChildren(this)}},{key:"addToAnimatingMap",value:function(e){var t,r,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];null!==(t=this.targetValues[e])&&void 0!==t&&t.snapAnimation||(this.animatingMap||(this.animatingMap=new Map),this.animatingMap.set(e,n),null===(r=this.getParent())||void 0===r||r.addToAnimatingChildren(this))}},{key:"isKeyAnimating",value:function(e){if(!this.animatingMap)return!1;var t=l.g.getOriginalNames(this,e).originalTargetName;return this.animatingMap.has(e)&&this.animatingMap.get(e).originalTargetName===t}},{key:"addToUpdatingChildren",value:function(e){this.updatingChildrenMap||(this.updatingChildrenMap=new Map),this.updatingChildrenMap.set(e.oid,e)}},{key:"removeFromUpdatingChildren",value:function(e){var t;null===(t=this.updatingChildrenMap)||void 0===t||t.delete(e.oid)}},{key:"addToAnimatingChildren",value:function(e){this.animatingChildrenMap||(this.animatingChildrenMap=new Map),this.animatingChildrenMap.set(e.oid,e)}},{key:"removeFromAnimatingChildren",value:function(e){var t;null===(t=this.animatingChildrenMap)||void 0===t||t.delete(e.oid)}},{key:"addToActiveChildren",value:function(e){this.activeChildrenMap||(this.activeChildrenMap=new Map),this.activeChildrenMap.set(e.oid,e)}},{key:"removeFromActiveChildren",value:function(e){var t;null===(t=this.activeChildrenMap)||void 0===t||t.delete(e.oid)}},{key:"hasActiveChildren",value:function(){var e;return!(null===(e=this.activeChildrenMap)||void 0===e||!e.size)}},{key:"hasUpdatingChildren",value:function(){var e;return!(null===(e=this.updatingChildrenMap)||void 0===e||!e.size)}},{key:"hasAnimatingChildren",value:function(){var e;return!(null===(e=this.animatingChildrenMap)||void 0===e||!e.size)}},{key:"hasAnimatingTargets",value:function(){var e;return!(null===(e=this.animatingMap)||void 0===e||!e.size)}},{key:"hasValidAnimation",value:function(){return this.hasAnimatingTargets()&&this.lastBatch&&this.lastBatch.totalDuration>0}},{key:"deleteTargetValue",value:function(e){return delete this.targetValues[e],this.addToActiveTargets(e),this.removeFromUpdatingTargets(e),this}},{key:"clearAnimatingChildren",value:function(){var e;null===(e=this.animatingChildrenMap)||void 0===e||e.clear()}},{key:"clearUpdatingChildren",value:function(){var e;null===(e=this.updatingChildrenMap)||void 0===e||e.clear()}},{key:"clearActiveChildren",value:function(){var e;null===(e=this.activeChildrenMap)||void 0===e||e.clear()}},{key:"resetTarget",value:function(e){var t=this.targetValues[e];return t&&(t.isImperative=!1,t.executionFlag=!1,t.scheduleTimeStamp=void 0,t.step=0,t.cycle=0,t.steps=0,t.cycles=1,t.interval=0,t.status=""),this}},{key:"activateTargets",value:function(e){var t=this;Array.isArray(e)&&e.forEach((function(e){return t.activateTarget(e)}))}},{key:"activateTarget",value:function(e,t,r){var n=t,i=r;if(null!=t&&t.reset&&1===Object.keys(t).length&&!r&&(n=void 0,i=t),this.canTargetBeActivated(e)){var o,s,u;null!==(o=i)&&void 0!==o&&o.reset&&l.g.resetTargetPipelineState(this,e),a.d.isDefined(n)&&this.val("___".concat(e),n),this.isVisible()&&this.markLayoutDirty(e);var c=this.targets[e];null!=c&&null!==(s=c.childAction)&&void 0!==s&&s.length&&(c.childAction=[]),null!=c&&null!==(u=c.addChildAction)&&void 0!==u&&u.length&&(c.addChildAction=[]);var d,h,f=l.g.currentTModel,v=l.g.currentTargetName,y=this.targetValues[e]||l.g.emptyValue();this.getParent()===f&&l.g.markChildAction(f,v,this),y.invokerTModel=f,y.invokerTarget=v,this.targetValues[e]?(y.activationTime=a.d.now(),y.lastUpdate=a.d.now(),y.isImperative=!1,y.executionFlag=!1,y.scheduleTimeStamp=void 0,y.step=0,y.cycle=0,y.valuePointer=Array.isArray(y.valueList)?1:0,y.initialValue=void 0):(this.targetValues[e]=y,y.cycles=null!==(d=null===(h=this.targets[e])||void 0===h?void 0:h.cycles)&&void 0!==d?d:y.cycles),this.setTargetStatus(e,"active"),this.activate(e)}return this}},{key:"manageChildTargetExecution",value:function(e){return e.hasChildren()||e.addedChildren.length>0||e.dirtyLayout||0===e.targetExecutionCount}},{key:"setTargetMethodName",value:function(e,t){(!s.u.ignoreTargetMethodNameMap[e]||this.isTargetUpdating(e)||this.isTargetImperative(e))&&(this.targetMethodMap[e]||(this.targetMethodMap[e]=[]),this.targetMethodMap[e].includes(t)||this.targetMethodMap[e].push(t))}}],t&&g(e.prototype,t),r&&g(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),b=r(675),T=r(745),w=r(144),k=r(728);function S(e){return function(e){if(Array.isArray(e))return M(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?M(e,t):void 0}}(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 M(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function D(e){return D="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},D(e)}function E(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,C(n.key),n)}}function C(e){var t=function(e,t){if("object"!=D(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=D(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==D(t)?t:t+""}function x(e,t,r){return t=L(t),function(e,t){if(t&&("object"==D(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,_()?Reflect.construct(t,r||[],L(e).constructor):t.apply(e,r))}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_=function(){return!!e})()}function L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},L(e)}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}var A=function(e){function t(e,r,n){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=x(this,t,[e,r,n])).allChildrenList=[],i.allChildrenMap={},i.childrenUpdateFlag=!1,i.$dom=null,i.x=0,i.y=0,i.absX=0,i.absY=0,i.domHeightTimestamp=0,i.domWidthTimestamp=0,i.contentWidth=0,i.contentHeight=0,i.bottomBaseWidth=0,i.topBaseHeight=0,i.styleMap={},i.tfMap={},i.visibilityStatus=void 0,i.hasDomNow=!1,i.isNowVisible=!1,i.currentStatus="new",i.dirtyLayout=!1,i.originWindowEpoch=-1,i.initTargets(),i}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&&O(e,t)}(t,e),r=t,i=[{key:"createViewport",value:function(){var e,t,r,n;this.viewport=this.viewport||new b.L;var i=-this.getScrollLeft(),a=-this.getScrollTop();return this.viewport.xNext=i,this.viewport.xNorth=i,this.viewport.xEast=i,this.viewport.xSouth=i,this.viewport.xWest=i,this.viewport.scrollLeft=-(this.getScrollLeft()+(null!==(e=null===(t=this.getParent())||void 0===t||null===(t=t.$dom)||void 0===t?void 0:t.getScrollLeft())&&void 0!==e?e:0)),this.viewport.scrollTop=-(this.getScrollTop()+(null!==(r=null===(n=this.getParent())||void 0===n||null===(n=n.$dom)||void 0===n?void 0:n.getScrollTop())&&void 0!==r?r:0)),this.viewport.absX=this.absX,this.viewport.absY=this.absY,this.viewport.xOverflowReset=i,this.viewport.xOverflowLimit=i+this.getWidth(),this.viewport.yNext=a,this.viewport.yNorth=a,this.viewport.yWest=a,this.viewport.yEast=a,this.viewport.ySouth=a,this.calcContentWidthHeight(),this.viewport.container=this,this.viewport}},{key:"calcContentWidthHeight",value:function(){var e=this.viewport.ySouth-this.viewport.yNorth,t=this.viewport.xEast-this.viewport.xWest,r=this.viewport.yEast-this.viewport.yNorth,n=this.viewport.xSouth-this.viewport.xWest;e===this.contentHeight&&this.contentWidth===t&&this.topBaseHeight===r&&this.bottomBaseWidth===n||(this.contentHeight=e,this.topBaseHeight=r,this.bottomBaseWidth=n,this.contentWidth=t)}},{key:"adjustViewport",value:function(){}},{key:"calcAbsolutePosition",value:function(e,t){this.absX=a.d.isDefined(this.val("absX"))?this.val("absX"):this.getParent().absX+e,this.absY=a.d.isDefined(this.val("absY"))?this.val("absY"):this.getParent().absY+t}},{key:"calcAbsolutePositionFromDom",value:function(){w.a.calcAbsolutePositionFromDom(this)}},{key:"removeChild",value:function(e){if(e&&this.allChildrenMap[e.oid])return l.g.resetBeforeDeletion(e),this.deletedChildren.push(e),this.removeFromUpdatingChildren(e),this.removeFromActiveChildren(e),this.removeFromAnimatingChildren(e),this.childrenUpdateFlag=!0,(0,n.zw)().calcChildren(this),this.markLayoutDirty("removeChild"),(0,n.fB)().schedule(1,"removeChild-"+e.oid),this}},{key:"moveChild",value:function(e,t){return this.movedChildren.push({index:t,child:e}),e.hasDom()&&e.requiresDomRelocation()&&(e.domOrderIndex=t,e.activate()),this.childrenUpdateFlag=!0,this.markLayoutDirty("moveChild"),(0,n.fB)().schedule(1,"moveChild-"+this.oid+"-"+e.oid),this}},{key:"addChild",value:function(e){var r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.addedChildren.length+this.allChildrenList.length;if("object"===D(e)){if(this.childrenUpdateFlag=!0,!(e instanceof t)){var a=Object.keys(this.actualValues).find((function(t){return r.actualValues[t]===e}));e=new t(a?e.id||a:"".concat(this.oid,"_"),e)}e.toDiscard||(n.qw.tmodelIdMap[e.oid]=e,this.addedChildren.push({index:i,child:e}),e.parent=this,e.markLayoutDirty("addChild"),e.updatingTargetList.length>0&&this.addToUpdatingChildren(e),e.activeTargetList.length>0&&this.addToActiveChildren(e),l.g.markChildAction(this,l.g.currentTargetName,e))}return this}},{key:"addSibling",value:function(e){this.getParent().addChild(e)}},{key:"removeSibling",value:function(e){var t=this;e||(e=this.getParent().getChildren().find((function(e){return e!==t}))),this.getParent().removeChild(e)}},{key:"getChildren",value:function(){var e,t,r,n=this,i=this.state();if((null===(e=i.deletedChildren)||void 0===e?void 0:e.length)>0&&(this.deletedChildren.forEach((function(e){if(n.allChildrenMap[e.oid]){var t=n.allChildrenList.indexOf(e);n.lastChildrenUpdate.deletions.push(e),n.allChildrenList.splice(t,1),delete n.allChildrenMap[e.oid]}})),this.deletedChildren.length=0),(null===(t=i.addedChildren)||void 0===t?void 0:t.length)>0&&(this.addedChildren.sort((function(e,t){return e.index-t.index})),this.addedChildren.forEach((function(e){var t=e.index,r=e.child;n.allChildrenMap[r.oid]||(a.d.isDefined(r.val("canDeleteDom"))||!1!==n.val("canDeleteDom")||r.val("canDeleteDom",!1),t>=n.allChildrenList.length?n.allChildrenList.push(r):n.allChildrenList.splice(t,0,r),n.allChildrenMap[r.oid]=r,n.lastChildrenUpdate.additions.push({index:t,child:r}))})),this.addedChildren.length=0),(null===(r=i.movedChildren)||void 0===r?void 0:r.length)>0){this.movedChildren.sort((function(e,t){return e.index-t.index}));var o={},l={};this.movedChildren.forEach((function(e){var t=e.index,r=e.child;n.lastChildrenUpdate.deletions.push(r),n.lastChildrenUpdate.additions.push({index:t,child:r});var i=n.allChildrenList.indexOf(r);if(t!==i){l[r.oid]&&delete l[r.oid];var a=n.allChildrenList.splice(t,1,r);!o[t]&&a.length>0&&(l[a[0].oid]={child:a[0],index:t+1}),i>=0&&(o[i]={fromIndex:i<t?i:t,child:r}),o[t]&&delete o[t]}})),Object.values(l).forEach((function(e){var t=e.index,r=e.child;n.allChildrenList.splice(t,0,r)})),Object.values(o).forEach((function(e){var t=e.fromIndex,r=e.child,i=n.allChildrenList.indexOf(r,t);n.allChildrenList.splice(i,1)})),this.movedChildren.length=0}return this.allChildrenList}},{key:"removeChildren",value:function(){return this.hasChildren()?(this.markLayoutDirty("removeChildren"),this.allChildrenList.forEach((function(e){l.g.resetBeforeDeletion(e),e.$dom=void 0})),this.allChildrenList=[],this.allChildrenMap={},this.clearUpdatingChildren(),this.clearActiveChildren(),this.clearAnimatingChildren(),this.hasDom()&&this.$dom.deleteAll(),this):this}},{key:"addToParentVisibleChildren",value:function(){this.isVisible()&&this.isInFlow()&&this.getParent()&&this.getParent().visibleChildren.push(this)}},{key:"markEventDirty",value:function(){this.eventDirtyEpoch=(0,n.kQ)().eventEpoch,this.parent&&this.parent.markEventDirty()}},{key:"hasEventDirty",value:function(){var e,t;return(null!==(e=this.eventDirtyEpoch)&&void 0!==e?e:-1)>(null!==(t=this.processedEventEpoch)&&void 0!==t?t:-1)}},{key:"markLayoutDirty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this.dirtyLayout||(this.dirtyLayout={oids:{},count:0}),this.dirtyLayout.oids[t.oid]||(this.dirtyLayout.oids[t.oid]=t,this.dirtyLayout.count++),t===this&&(e=t.oid+"#"+e),this.dirtyLayout.lastKey=e,this.bracket&&this.bracket.markLayoutDirty(e,t),this.parent&&this.parent.markLayoutDirty(e,t)}},{key:"removeLayoutDirty",value:function(e,t){var r=this;this.dirtyLayout&&(t?t.forEach((function(e){r.dirtyLayout.oids[e]&&(r.dirtyLayout.count--,delete r.dirtyLayout.oids[e])})):this.dirtyLayout.oids[e.oid]&&(this.dirtyLayout.count--,delete this.dirtyLayout.oids[e.oid]),0===this.dirtyLayout.count&&(this.dirtyLayout=!1)),this.bracket&&this.bracket.removeLayoutDirty(e,t),this.parent&&this.parent.removeLayoutDirty(e,t)}},{key:"getDirtyLayout",value:function(){return this.dirtyLayout}},{key:"shouldCalculateChildren",value:function(){if(a.d.isDefined(this.val("calculateChildren")))return this.val("calculateChildren");if(!this.isIncluded()||this.isDomIsland()&&!this.hasDom())return!1;var e=!1!==this.dirtyLayout,t=this.hasEventDirty(),r=this.hasDom(),n=this.isVisible(),i="active"===this.currentStatus||e||n&&t||this.isNowVisible||r&&t;return this.currentStatus=void 0,i}},{key:"getFirstChild",value:function(){return this.getChildren()[0]}},{key:"hasChildren",value:function(){return this.getChildren().length>0}},{key:"findChildren",value:function(e){return this.getChildren().filter((function(t){return t.type===e}))}},{key:"getLastChild",value:function(){return this.getChildren()[this.allChildrenList.length-1]}},{key:"getChild",value:function(e){return"number"==typeof e?this.getChildren()[e]:this.findChild(e)}},{key:"getChildIndex",value:function(e){return this.getChildren().indexOf(e)}},{key:"getChildrenOids",value:function(){return this.getChildren().map((function(e){return e.oid})).join(" ")}},{key:"findChild",value:function(e){return this.getChildren().find((function(t){return t.type===e}))}},{key:"findLastChild",value:function(e){return this.getChildren().findLast((function(t){return t.type===e}))}},{key:"getChildByOid",value:function(e){return this.getChildren(),this.allChildrenMap[e]}},{key:"getParentValue",value:function(e){var t;return null===(t=this.parent)||void 0===t?void 0:t.val(e)}},{key:"pval",value:function(e){return this.getParentValue(e)}},{key:"getParentValueAtMyIndex",value:function(e){var t=this.getParentValue(e);if(Array.isArray(t)){var r,n=null===(r=this.getParent())||void 0===r?void 0:r.getChildIndex(this);if("number"==typeof n)return t[n]}return t}},{key:"getLoadedItems",value:function(e){return this.val(a.d.getLoadTargetName(e))}},{key:"delVal",value:function(e){this.markLayoutDirty("del-".concat(e)),e.startsWith("_")?delete this[e.slice(1)]:delete this.actualValues[e]}},{key:"val",value:function(e,t){var r=this.actualValues,n=this.lastActualValues;return e=l.g.getTargetName(e),2===arguments.length?(n[e]=r[e],t!==r[e]&&(r[e]=t,this.markLayoutDirty("val-".concat(e))),this):r[e]}},{key:"lastVal",value:function(e){return this.lastActualValues[e]}},{key:"setActual",value:function(e,t){this.targetValues[e]&&(this.targetValues[e].actual=t)}},{key:"floorVal",value:function(e){var t;return Math.floor(null!==(t=this.val(e))&&void 0!==t?t:0)}},{key:"getDomParent",value:function(){return this.val("domParent")||T.X.findParentByTarget(this,"domHolder",!0)}},{key:"getDomHolder",value:function(){var e=this.val("domHolder");if(e&&!0!==e&&this.$dom!==e)return e;var t=this.getDomParent();return t?t.$dom:null}},{key:"bug",value:function(){return[{visible:this.isVisible()},{visibilityStatus:this.visibilityStatus},{hasDom:this.hasDom()},{x:this.getX()},{y:this.getY()},{width:this.getWidth()},{height:this.getHeight()},{activeTargetList:this.activeTargetList},{updatingTargetList:this.updatingTargetList},{updatingChildren:this.updatingChildrenMap?S(this.updatingChildrenMap.keys()):[]},{activeChildren:this.activeChildrenMap?S(this.activeChildrenMap.keys()):[]},{children:this.getChildren()},{targetValues:this.targetValues},{actualValues:this.actualValues}]}},{key:"logTree",value:function(){a.d.logTree(this)}},{key:"isVisible",value:function(){return this.val("isVisible")}},{key:"makeVisible",value:function(){this.val("isVisible",!0),this.targets.isVisible=!0}},{key:"makeInvisible",value:function(){this.val("isVisible",!1),this.targets.isVisible=!1}},{key:"managesOwnScroll",value:function(){return a.d.isDefined(this.val("managesOwnScroll"))?!!this.val("managesOwnScroll"):!!(this.allTargetMap.onScroll||this.allTargetMap.onScrollLeft||this.allTargetMap.onScrollTop||this.allTargetMap.onWindowScroll)}},{key:"calcVisibility",value:function(){return a.d.calcVisibility(this)}},{key:"validateVisibilityInParent",value:function(){return a.d.isDefined(this.val("validateVisibilityInParent"))?this.val("validateVisibilityInParent"):this.parent.managesOwnScroll()}},{key:"hasDomHolderChanged",value:function(){return!this.reuseDomDefinition()&&this.getDomHolder()&&this.getDomHolder().exists()&&this.$dom.parent()!==this.getDomHolder().element}},{key:"hasBaseElementChanged",value:function(){return!!this.hasDom()&&this.getBaseElement()!==this.$dom.getTagName()}},{key:"mount",value:function(e){return k.v.mount(this,e),this}},{key:"unmount",value:function(){var e;this.hasDom()&&this.val("sourceDom")&&this.domState&&k.v.restoreDomState(this.$dom.element,this.domState),null===(e=this.parent)||void 0===e||e.removeChild(this)}},{key:"hasDom",value:function(){return!!this.$dom&&this.$dom.exists()}},{key:"isDomIsland",value:function(){return this.val("domIsland")}},{key:"getRealParent",value:function(){return this.parent}},{key:"getContentHeight",value:function(){return this.contentHeight}},{key:"getContentWidth",value:function(){return this.contentWidth}},{key:"useContentWidth",value:function(){return w.a.useContentWidth(this)}},{key:"useContentHeight",value:function(){return w.a.useContentHeight(this)}},{key:"getBaseWidth",value:function(){var e;return null!==(e=this.val("baseWidth"))&&void 0!==e?e:this.getWidth()}},{key:"getBaseHeight",value:function(){var e;return null!==(e=this.val("baseHeight"))&&void 0!==e?e:this.getHeight()}},{key:"getMinWidth",value:function(){var e;return null!==(e=this.val("minWidth"))&&void 0!==e?e:Math.min(this.getWidth(),this.getBaseWidth())}},{key:"getTopBaseHeight",value:function(){var e;return null!==(e=this.val("topBaseHeight"))&&void 0!==e?e:0}},{key:"getContainerOverflowMode",value:function(){var e;return null!==(e=this.val("containerOverflowMode"))&&void 0!==e?e:"auto"}},{key:"getItemOverflowMode",value:function(){var e=this.targets.itemOverflowMode;if(void 0!==e)return"function"==typeof e?e.call(this):e;var t=this.val("itemOverflowMode");return void 0!==t?t:"auto"}},{key:"getUIDepth",value:function(){for(var e=0,t=this.parent;t;)e++,t=t.parent;return e}},{key:"canBeAnimated",value:function(e){return s.u.isGpuPreferred(e)&&!1!==this.actualValues.webAnimation}},{key:"isTextOnly",value:function(){return a.d.isDefined(this.val("textOnly"))?this.val("textOnly"):"string"!=typeof this.getHtml()||!this.getHtml().trim().startsWith("<")}},{key:"getHtml",value:function(){return this.val("html")}},{key:"isInFlow",value:function(){return!a.d.isDefined(this.val("isInFlow"))||this.val("isInFlow")}},{key:"canHandleEvent",value:function(e){return!!this.allTargetMap[e]}},{key:"preventDefault",value:function(){return a.d.isDefined(this.val("preventDefault"))?this.val("preventDefault"):this.getParentValue("preventDefault")||!1}},{key:"canDeleteDom",value:function(){return a.d.isDefined(this.val("canDeleteDom"))?this.val("canDeleteDom"):!this.reuseDomDefinition()}},{key:"requiresDom",value:function(){return a.d.isDefined(this.val("requiresDom"))?this.val("requiresDom"):this.reuseDomDefinition()}},{key:"excludeStyling",value:function(){return!1===this.targets.styling}},{key:"getBracketThreshold",value:function(){return this.val("bracketThreshold")}},{key:"getBracketSize",value:function(){return this.val("bracketSize")}},{key:"shouldBeBracketed",value:function(){return a.d.isDefined(this.val("shouldBeBracketed"))?this.val("shouldBeBracketed"):this.getChildren().length>this.getBracketThreshold()}},{key:"isIncluded",value:function(){return this.val("isIncluded")}},{key:"canHaveDom",value:function(){return!(this.targets.$dom&&!this.val("$dom"))&&this.val("canHaveDom")}},{key:"requiresDomRelocation",value:function(){return a.d.isDefined(this.val("requiresDomRelocation"))?this.val("requiresDomRelocation"):!a.d.isDefined(this.tfMap.x)&&!a.d.isDefined(this.tfMap.y)}},{key:"getBaseElement",value:function(){var e;return this.val("baseElement")||this.val("element")||(null===(e=this.$dom)||void 0===e||null===(e=e.element)||void 0===e||null===(e=e.tagName)||void 0===e?void 0:e.toLowerCase())}},{key:"getOpacity",value:function(){return this.val("opacity")}},{key:"getCenterX",value:function(){return(this.parent.getWidth()-this.getWidth())/2}},{key:"getCenterY",value:function(){return(this.parent.getHeight()-this.getHeight())/2}},{key:"getX",value:function(){return this.val("x")}},{key:"getY",value:function(){return this.val("y")}},{key:"getZ",value:function(){return this.val("z")}},{key:"getPerspective",value:function(){return this.val("perspective")}},{key:"getRotate",value:function(){return this.val("rotate")}},{key:"getRotateX",value:function(){return this.val("rotateX")}},{key:"getRotateY",value:function(){return this.val("rotateY")}},{key:"getRotateZ",value:function(){return this.val("rotateZ")}},{key:"getScale",value:function(){return this.val("scale")}},{key:"getScaleX",value:function(){return this.val("scaleX")}},{key:"getScaleY",value:function(){return this.val("scaleY")}},{key:"getScaleZ",value:function(){return this.val("scaleZ")}},{key:"getSkewX",value:function(){return this.val("skewX")}},{key:"getSkewY",value:function(){return this.val("skewY")}},{key:"getSkewZ",value:function(){return this.val("skewZ")}},{key:"getMeasuringScale",value:function(){var e;return null!==(e=this.val("measuringScale"))&&void 0!==e?e:1}},{key:"getZIndex",value:function(){return this.val("zIndex")}},{key:"getTopMargin",value:function(){return this.val("topMargin")}},{key:"getLeftMargin",value:function(){return this.val("leftMargin")}},{key:"getRightMargin",value:function(){var e;return this.val("rightMargin")+(null!==(e=this.getParentValue("gap"))&&void 0!==e?e:0)}},{key:"getBottomMargin",value:function(){var e;return this.val("bottomMargin")+(null!==(e=this.getParentValue("gap"))&&void 0!==e?e:0)}},{key:"getWidth",value:function(){return a.d.isDefined(this.targets.width)||a.d.isDefined(this.targetValues.width)?this.val("width"):a.d.isDefined(this.targets.dim)||a.d.isDefined(this.targetValues.dim)?this.val("dim"):this.val("width")}},{key:"getHeight",value:function(){return a.d.isDefined(this.targets.height)||a.d.isDefined(this.targetValues.height)?this.val("height"):a.d.isDefined(this.targets.dim)||a.d.isDefined(this.targetValues.dim)?this.val("dim"):this.val("height")}},{key:"getScrollTop",value:function(){return this.val("scrollTop")}},{key:"getScrollLeft",value:function(){return this.val("scrollLeft")}},{key:"getCss",value:function(){return this.val("css")}},{key:"getStyle",value:function(){return this.val("style")}},{key:"getBackground",value:function(){return this.val("background")}},{key:"getBackgroundColor",value:function(){return this.val("backgroundColor")}},{key:"getAttributes",value:function(){return this.val("attributes")}},{key:"getInputValue",value:function(){return this.hasDom()?this.$dom.value():void 0}},{key:"isFormControl",value:function(){var e,t=this.getBaseElement();return"input"===t||"select"===t||"textarea"===t||(null===(e=this.$dom)||void 0===e||null===(e=e.element)||void 0===e?void 0:e.isContentEditable)}},{key:"isOverflowHidden",value:function(){return"hidden"===this.val("overflow")}},{key:"reuseDomDefinition",value:function(){return this.val("reuseDomDefinition")}}],i&&E(r.prototype,i),o&&E(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,o}(m)},144:function(e,t,r){r.d(t,{a:function(){return p}});var n=r(129),i=r(956),a=r(432),o=r(142),l=r(185),s=r(210),u=r(736);function c(e){return c="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},c(e)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||f(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 h(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=f(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function f(e,t){if(e){if("string"==typeof e)return v(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g(n.key),n)}}function g(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}var p=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,c=[{key:"shouldMeasureHeightFromDom",value:function(t){return!1!==t.val("heightFromDom")&&(!t.excludeDefaultStyling()&&!n.d.isDefined(t.targetValues.height)&&!t.val("heightFromDom")&&!e.isHeightDefined(t)&&!t.hasChildren()||t.val("heightFromDom"))}},{key:"shouldMeasureWidthFromDom",value:function(t){return!1!==t.val("widthFromDom")&&(!t.excludeDefaultStyling()&&!t.reuseDomDefinition()&&!t.val("widthFromDom")&&!n.d.isDefined(t.targetValues.width)&&!e.isWidthDefined(t)&&!t.hasChildren()||t.val("widthFromDom"))}},{key:"isHeightDefined",value:function(e){var t;return e.isTargetImperative("height")||!!e.allTargetMap.height||!!e.allTargetMap.dim||n.d.isDefined(null===(t=e.targets.style)||void 0===t?void 0:t.height)}},{key:"isWidthDefined",value:function(e){var t;return e.isTargetImperative("width")||!!e.allTargetMap.width||!!e.allTargetMap.dim||n.d.isDefined(null===(t=e.targets.style)||void 0===t?void 0:t.width)}},{key:"isXDefined",value:function(e){return!!e.allTargetMap.x||!!e.targetValues.x}},{key:"isYDefined",value:function(e){return!!e.allTargetMap.y||!!e.targetValues.y}},{key:"useContentWidth",value:function(t){return!e.isWidthDefined(t)&&!t.val("widthFromDom")&&t.getContentWidth()>0}},{key:"useContentHeight",value:function(t){return!e.isHeightDefined(t)&&!t.val("heightFromDom")&&t.getContentHeight()>0}},{key:"createDom",value:function(e){e.$dom=new l.J,e.$dom.create(e.getBaseElement())}},{key:"patchDom",value:function(e){e.$dom.ensureId(e.oid),e.$dom.attr("tgjs","true"),e.getHtml()&&(e.isTextOnly()?e.$dom.text(e.getHtml()):e.$dom.html(e.getHtml())),e.setLastUpdate("html")}},{key:"initStyleMaps",value:function(e){e.domHeightTimestamp=0,e.domWidthTimestamp=0,e.tfMap={},e.styleMap={};var t,r=h(e.allStyleTargetMap);try{for(r.s();!(t=r.n()).done;){var i=d(t.value,1)[0];n.d.isDefined(e.val(i))&&e.addToStyleTargetList(i)}}catch(e){r.e(e)}finally{r.f()}}},{key:"getTransformValue",value:function(e,t){var r;return"x"===t?r=Math.floor(e.getX()):"y"===t?r=Math.floor(e.getY()):a.u.transformMap[t]&&(r=a.u.rotate3D[t]?e.val(t):a.u.scaleMap[t]?n.d.formatNum(e.val(t),2):e.floorVal(t)),r}},{key:"fixStyle",value:function(t){if(t.styleTargetMap){var r,i=!1,o=h(t.styleTargetMap);try{for(o.s();!(r=o.n()).done;){var l=d(r.value,1)[0];if(!t.isKeyAnimating(l))if(a.u.transformMap[l]){var s=e.getTransformValue(t,l);t.tfMap[l]!==s&&(t.tfMap[l]=s,i=!0)}else if("dim"===l){var u=Math.floor(t.val("dim"));t.styleMap.height===u&&t.$dom.getStyleValue("height")===u||(t.styleMap.height=u,t.$dom.height(u)),t.styleMap.width===u&&t.$dom.getStyleValue("width")===u||(t.styleMap.width=u,t.$dom.width(u))}else if("width"===l){var c=Math.floor(t.getWidth());t.styleMap.width===c&&t.$dom.getStyleValue("width")===c||(t.styleMap.width=c,t.$dom.width(c))}else if("height"===l){var f=Math.floor(t.getHeight());t.styleMap.height===f&&t.$dom.getStyleValue("height")===f||(t.styleMap.height=f,t.$dom.height(f))}else a.u.styleWithUnitMap[l]?n.d.isDefined(t.val(l))&&t.styleMap[l]!==t.val(l)&&(t.$dom.style(l,n.d.isNumber(t.val(l))?"".concat(t.val(l),"px"):t.val(l)),t.styleMap[l]=t.val(l)):n.d.isDefined(t.val(l))&&t.styleMap[l]!==t.val(l)&&(t.$dom.style(l,"".concat(t.val(l))),t.styleMap[l]=t.val(l))}}catch(e){o.e(e)}finally{o.f()}i&&t.$dom.transform(e.getTransformString(t,t.tfMap)),t.styleTargetMap.clear()}}},{key:"setWidthFromDom",value:function(e){var t=e.domWidthTimestamp,r=e.getParent(),i=e.getDomParent(),a=!1;if((0,o.EI)().needsRerender(e)&&(e.isTextOnly()?e.$dom.text(e.getHtml()):e.$dom.html(e.getHtml()),a=!0),a||r&&t<=r.getDimLastUpdate()||i&&t<=i.getDimLastUpdate()){e.$dom.width("auto");var l=e.$dom.width();l=l>0&&e.getHtml()?l+1:l,e.domWidthTimestamp=n.d.now(),e.val("width",l),(l>0||0===l&&e.lastVal("width")>0)&&e.addToStyleTargetList("width"),e.markLayoutDirty("width"),(0,o.fB)().schedule(15,"resize")}}},{key:"setHeightFromDom",value:function(e){var t=e.domHeightTimestamp,r=e.getParent(),i=e.getDomParent(),a=!1;if((0,o.EI)().needsRerender(e)&&(e.isTextOnly()?e.$dom.text(e.getHtml()):e.$dom.html(e.getHtml()),a=!0),a||r&&t<=r.getDimLastUpdate()||i&&t<=i.getDimLastUpdate()){e.$dom.height("auto");var l=e.$dom.height();e.domHeightTimestamp=n.d.now(),e.val("height",l),(l>0||0===l&&e.lastVal("height")>0)&&e.addToStyleTargetList("height"),e.markLayoutDirty("height"),(0,o.fB)().schedule(15,"resize")}}},{key:"easingMorph",value:function(t,r,n,i,a,o){var l=t.getTargetEasing(r),s=l?u.G.easingFunction(l):void 0,c=s?s(t.getTargetStepPercent(r,a,o)):t.getTargetStepPercent(r,a,o);return e.morph(r,n,i,c)}},{key:"morph",value:function(e,t,r,n){if(a.u.colorMap[i.g.getTargetName(e)]){var o=s.I.color2Integers(r),l=t?s.I.color2Integers(t):s.I.color2Integers("#fff");if(o&&l){var u=Math.floor(o[0]*n+l[0]*(1-n)),c=Math.floor(o[1]*n+l[1]*(1-n)),d=Math.floor(o[2]*n+l[2]*(1-n));return"rgb(".concat(u,",").concat(c,",").concat(d,")")}return r}return"number"==typeof r?t+(r-t)*n:r}},{key:"fixAsyncStyle",value:function(e){if(e.asyncStyleTargetMap){var t,r=h(e.asyncStyleTargetMap);try{var i=function(){var r=d(t.value,1)[0];if("style"===r){var i=e.getStyle();n.d.isDefined(i)&&e.styleMap.style!==i&&(e.$dom.setStyleByMap(i),i.height&&e.val("height",parseInt(i.height,10)),i.width&&e.val("width",parseInt(i.width,10)),e.styleMap.style=i)}else if("attributes"===r){var o=e.getAttributes();n.d.isDefined(o)&&e.styleMap.attributes!==o&&(Object.keys(o).forEach((function(t){e.$dom.attr(t,o[t])})),e.styleMap.attributes=o)}else if("css"===r){var l=e.getCss();e.$dom.css()!==l&&e.$dom.css(l)}else a.u.attributeTargetMap[r]?e.$dom.attr(r,e.val(r)):n.d.isDefined(e.val(r))&&e.styleMap[r]!==e.val(r)&&(e.$dom.style(r,"".concat(e.val(r))),e.styleMap[r]=e.val(r))};for(r.s();!(t=r.n()).done;)i()}catch(e){r.e(e)}finally{r.f()}e.asyncStyleTargetMap.clear()}}},{key:"getTransformBaseFromActualValues",value:function(e){var t={},r=a.u.transformMap;for(var i in e.actualValues)if(r[i]){var o=e.actualValues[i];n.d.isDefined(o)&&(t[i]=o)}return t}},{key:"num",value:function(e,t){var r=Number(e);return Number.isFinite(r)?r:t}},{key:"shouldUseImplicitTransformOrder",value:function(e){if(e.val("useTargetTransformOrder"))return!0;var t=e.originalTargetNames||[],r=function(e){return e.some((function(e){return t.indexOf(e)>=0}))},n=0;return r(["perspective"])&&n++,r(["translateX","translateY","translateZ","x","y","z"])&&n++,(r(["rotateX","rotateY","rotateZ"])||r(["rotate3DX"])&&r(["rotate3DY"])&&r(["rotate3DZ"])&&r(["rotate3DAngle"]))&&n++,r(["skewX","skewY","skew"])&&n++,(r(["scaleX","scaleY","scaleZ"])||r(["scale3DX"])&&r(["scale3DY"])&&r(["scale3DZ"]))&&n++,n>1}},{key:"buildImplicitTransformOrderMap",value:function(e){var t=function(t){return e.indexOf(t)>=0},r=function(t){var r,n=1/0,i=h(t);try{for(i.s();!(r=i.n()).done;){var a=r.value,o=e.indexOf(a);o>=0&&o<n&&(n=o)}}catch(e){i.e(e)}finally{i.f()}return n},n=t("translateX")||t("translateY")||t("translateZ"),i=t("x")||t("y")||t("z"),a=t("rotate3DX")&&t("rotate3DY")&&t("rotate3DZ")&&t("rotate3DAngle"),o=t("scale3DX")&&t("scale3DY")&&t("scale3DZ"),l=t("skewX")&&t("skewY"),s=[];if(t("perspective")&&s.push({group:"perspective",order:r(["perspective"]),outputs:["perspective"]}),n?s.push({group:"translate",order:r(["translateX","translateY","translateZ"]),outputs:["translateX","translateY","translateZ"].filter(t)}):i&&s.push({group:"translate",order:r(["x","y","z"]),outputs:["translate3d"]}),a)s.push({group:"rotate",order:r(["rotate3DX","rotate3DY","rotate3DZ","rotate3DAngle"]),outputs:["rotate3d"]});else{var u=["rotateX","rotateY","rotateZ","rotate"],c=u.filter(t);c.length&&s.push({group:"rotate",order:r(u),outputs:c})}if(l)s.push({group:"skew",order:r(["skewX","skewY"]),outputs:["skew"]});else{var d=["skewX","skewY"].filter(t);d.length&&s.push({group:"skew",order:r(["skewX","skewY"]),outputs:d})}if(o)s.push({group:"scale",order:r(["scale3DX","scale3DY","scale3DZ"]),outputs:["scale3d"]});else{var f=["scaleX","scaleY","scaleZ","scale"],v=f.filter(t);v.length&&s.push({group:"scale",order:r(f),outputs:v})}var y={perspective:0,translate:1,rotate:2,skew:3,scale:4};s.sort((function(e,t){var r,n,i=Number.isFinite(e.order)?e.order:1/0,a=Number.isFinite(t.order)?t.order:1/0;return i!==a?i-a:(null!==(r=y[e.group])&&void 0!==r?r:999)-(null!==(n=y[t.group])&&void 0!==n?n:999)}));var g=s.flatMap((function(e){return e.outputs})),p={};return g.forEach((function(e,t){return p[e]=t})),p}},{key:"getTransformString",value:function(t,r){for(var i={},o={},l=n.d.isDefined(r.translateX)||n.d.isDefined(r.translateY)||n.d.isDefined(r.translateZ),s=0,u=Object.keys(r);s<u.length;s++){var c=u[s];if(!i[c])switch(c){case"translateX":case"translateY":case"translateZ":null!==r[c]&&(o[c]="".concat(c,"(").concat(e.num(r[c],0),"px)"),i[c]=!0);break;case"x":case"y":case"z":if(l){i.x=i.y=i.z=!0;break}var d="".concat(e.num(r.x,0),"px"),h="".concat(e.num(r.y,0),"px"),f="".concat(e.num(r.z,0),"px");o.translate3d="translate3d(".concat(d,", ").concat(h,", ").concat(f,")"),i.x=i.y=i.z=!0;break;case"rotate":case"rotateX":case"rotateY":case"rotateZ":case"rotate3DX":case"rotate3DY":case"rotate3DZ":case"rotate3DAngle":n.d.isDefined(r.rotate3DX)&&n.d.isDefined(r.rotate3DY)&&n.d.isDefined(r.rotate3DZ)&&n.d.isDefined(r.rotate3DAngle)?(o.rotate3d="rotate3d(".concat(e.num(r.rotate3DX,0),", ").concat(e.num(r.rotate3DY,0),", ").concat(e.num(r.rotate3DZ,0),", ").concat(e.num(r.rotate3DAngle,0),"deg)"),i.rotate3DX=i.rotate3DY=i.rotate3DZ=i.rotate3DAngle=!0):null!==r[c]&&(o[c]="".concat(c,"(").concat(e.num(r[c],0),"deg)"),i[c]=!0);break;case"scale":case"scaleX":case"scaleY":case"scaleZ":case"scale3DX":case"scale3DY":case"scale3DZ":var v,y,g;n.d.isDefined(r.scale3DX)&&n.d.isDefined(r.scale3DY)&&n.d.isDefined(r.scale3DZ)?(o.scale3d="scale3d(".concat(Number(null!==(v=r.scale3DX)&&void 0!==v?v:1),", ").concat(Number(null!==(y=r.scale3DY)&&void 0!==y?y:1),", ").concat(Number(null!==(g=r.scale3DZ)&&void 0!==g?g:1),")"),i.scale3DX=i.scale3DY=i.scale3DZ=!0):(o[c]="".concat(c,"(").concat(e.num(r[c],1),")"),i[c]=!0);break;case"skewX":case"skewY":var p,m;if(n.d.isDefined(r.skewX)&&n.d.isDefined(r.skewY))o.skew="skew(".concat(Number(null!==(p=r.skewX)&&void 0!==p?p:0),"deg, ").concat(Number(null!==(m=r.skewY)&&void 0!==m?m:0),"deg)"),i.skewX=i.skewY=!0;else if(null!==r[c]){var b;o[c]="".concat(c,"(").concat(Number(null!==(b=r[c])&&void 0!==b?b:0),"deg)"),i[c]=!0}break;case"perspective":o[c]="perspective(".concat(e.num(r.perspective,0),"px)"),i.perspective=!0}}var T={},w=t.val("transformOrder");Array.isArray(w)&&w.length?w.forEach((function(e,t){T[e]=t})):e.shouldUseImplicitTransformOrder(t)&&(t.implicitTransformOrderVersion!==t.targetsVersion&&(t.implicitTransformOrderMap=e.buildImplicitTransformOrderMap(t.originalTargetNames),t.implicitTransformOrderVersion=t.targetsVersion),T=t.implicitTransformOrderMap),Object.keys(T).length||(T=a.u.transformOrder);var k=Object.keys(o).sort((function(e,t){var r,n;return(null!==(r=T[e])&&void 0!==r?r:999)-(null!==(n=T[t])&&void 0!==n?n:999)})).map((function(e){return o[e]}));return k.join(" ")}},{key:"calcAbsolutePositionFromDom",value:function(e){if(e.hasDom()){var t=e.$dom.getBoundingClientRect(),r=Math.floor(t.left),n=Math.floor(t.top);r===Math.floor(e.absX)&&n===Math.floor(e.absY)||(e.absX=t.left,e.absY=t.top,e.markLayoutDirty("islandAbsXY"))}}}],(r=null)&&y(t.prototype,r),c&&y(t,c),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,c}()},129:function(e,t,r){r.d(t,{d:function(){return h}});var n=r(142),i=r(956),a=r(432);function o(e){return o="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},o(e)}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(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 s(e,t){if(e){if("string"==typeof e)return u(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function d(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var h=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,u=[{key:"calcVisibility",value:function(t){var r,n=t.getRealParent();if((null===(r=null==n?void 0:n.targets.onVisibleChildrenChange)||void 0===r||!r)&&t.isVisible()&&(t.isTargetUpdating(t.allTargetMap.x)||t.isTargetUpdating(t.allTargetMap.y)))return!0;var i=(t.getDomParent().getMeasuringScale()||1)*t.getMeasuringScale(),a=t.absX,o=t.absY,l=e.isDefined(t.getWidth())?i*t.getWidth():0,s=e.isDefined(t.getHeight())?i*t.getHeight():0;t.visibilityStatus||(t.visibilityStatus={});var u=t.visibilityStatus,c=this.getVisibilityClipRect(t.getParent());return c?(u.right=a-20<=c.r,u.left=a+l+20>=c.x,u.bottom=o-t.getTopMargin()-20<=c.b,u.top=o+s+20>=c.y,u.clipX=c.x,u.clipY=c.y,u.clipR=c.r,u.clipB=c.b,u.parent=c.source,u.isVisible=u.left&&u.right&&u.top&&u.bottom):(u.right=!0,u.left=!0,u.bottom=!0,u.top=!0,u.clipX=void 0,u.clipY=void 0,u.clipR=void 0,u.clipB=void 0,u.parent="none",u.isVisible=!0),u.x=a,u.y=o,u.width=l,u.height=s,t.actualValues.isVisible=u.isVisible,u.isVisible}},{key:"getVisibilityClipRect",value:function(e){for(var t=null;e&&e!==(0,n.Bt)();){if(this.shouldClipByAncestor(e)){var r=this.getAncestorViewportRect(e);if((t=t?this.intersectVisibilityRects(t,r):r).r<=t.x||t.b<=t.y)break}e=e.getParent()}return t}},{key:"shouldClipByAncestor",value:function(e){return e.managesOwnScroll()}},{key:"getAncestorViewportRect",value:function(e){var t,r,n=(null===(t=e.$dom)||void 0===t?void 0:t.getScrollLeft())||0,i=(null===(r=e.$dom)||void 0===r?void 0:r.getScrollTop())||0;return{x:e.absX+n,y:e.absY+i,r:e.absX+n+e.getWidth(),b:e.absY+i+e.getHeight(),source:e}}},{key:"intersectVisibilityRects",value:function(e,t){return{x:Math.max(e.x,t.x),y:Math.max(e.y,t.y),r:Math.min(e.r,t.r),b:Math.min(e.b,t.b),source:t.source}}},{key:"updateClipRect",value:function(e){var t=e.getParent(),r=(null==t?void 0:t.visibilityClipRect)||null;if(this.shouldClipByAncestor(e)){var n=this.getLocalViewportRect(e);e.visibilityClipRect=r?this.intersectVisibilityRects(r,n):n}else e.visibilityClipRect=r;return e.visibilityClipRect}},{key:"contains",value:function(e,t){var r;return!(!e||!t||e!==t&&t.getDomParent()!==e&&(null===(r=t.getDomParent())||void 0===r?void 0:r.getDomParent())!==e)}},{key:"list2map",value:function(t,r){return t.reduce((function(t,n){return t[n.oid]=e.isDefined(r)?r:n,t}),{})}},{key:"getDeepList",value:function(e){var t=[];return function e(r){if(r&&r.hasChildren()){var n=r.getChildren();t.push.apply(t,l(n)),n.forEach(e)}}(e),t}},{key:"areEqual",value:function(e,t,r){return r?JSON.stringify(e)===JSON.stringify(t):e===t}},{key:"momentum",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.002,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:100,a=t-e,o=r<10?Math.abs(a)/10:Math.abs(a)/r,l=o/n,s=Math.pow(o,2)/(2*n);s>i&&(s=i);var u=a>0?a+s:a-s;return{distance:Math.round(u)/5,duration:Math.round(l),momentumDistance:s}}},{key:"isDefined",value:function(e){return null!=e}},{key:"isNumber",value:function(e){return"number"==typeof e&&!isNaN(e)}},{key:"limit",value:function(t,r,n){return t=(t=(t=e.isDefined(t)?t:r)>n?n:t)<r?r:t}},{key:"capitalizeFirstLetter",value:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},{key:"getLoadTargetName",value:function(e){return"load-".concat(e)}},{key:"formatNum",value:function(e,t){return e?parseFloat(e.toString()).toFixed(t):0}},{key:"now",value:function(){return performance.now()}},{key:"log",value:function(e){return!0===e?console.log:function(){}}},{key:"distance",value:function(e,t,r,n){return Math.sqrt(Math.pow(r-e,2)+Math.pow(n-t,2))}},{key:"getFullLink",value:function(t){if(e.isDefined(t)){if(!t.startsWith("http")){var r=window.location.protocol;r+=r.endsWith(":")?"//":"://";var n="".concat(r).concat(window.location.hostname);t=t.startsWith("/")?n+t:"".concat(n,"/").concat(t)}return t.endsWith("/")?t.slice(0,-1):t}}},{key:"isStringBooleanOrNumber",value:function(e){var t=o(e);return"string"===t||"boolean"===t||"number"===t}},{key:"logTree",value:function(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,n.Bt)(),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=s(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}((0,n.zw)().calcChildren(r));try{for(a.s();!(t=a.n()).done;){var o=t.value,l=o.isVisible()?i+"| ":i+"x ";"BI"===o.type?console.log("".concat(l).concat(o.oid," v:").concat(o.isVisible()," x:").concat(Math.floor(o.getX())," y:").concat(Math.floor(o.getY()),", absX:").concat(Math.floor(o.absX),", absY:").concat(Math.floor(o.absY)," n-e-s:").concat(Math.floor(o.viewport.yNorth),"-").concat(Math.floor(o.viewport.yEast),"-").concat(Math.floor(o.viewport.ySouth)," w:").concat(Math.floor(o.getBaseWidth())," ww:").concat(Math.floor(o.getContentWidth())," h:").concat(Math.floor(o.getBaseHeight())," hh:").concat(Math.floor(o.getContentHeight()))):console.log("".concat(l).concat(o.oid," v:").concat(o.isVisible()," x:").concat(Math.floor(o.getX())," y:").concat(Math.floor(o.getY())," absX:").concat(Math.floor(o.absX),", absY:").concat(Math.floor(o.absY)," w:").concat(Math.floor(o.getWidth())," h:").concat(Math.floor(o.getHeight())," hc:").concat(Math.floor(o.getContentHeight()))),o.hasChildren()&&"exampleItem"!==o.type&&e.logTree(o,l)}}catch(e){a.e(e)}finally{a.f()}}},{key:"logBranch",value:function(e){for(var t=[];e;)t.unshift(e),e=e.bracket?e.bracket:e.getParent();for(var r=1;r<t.length;r++){var i=t[r-1],a=t[r];if((0,n.zw)().getChildren(i).indexOf(a)<0){console.log("branch is not valid: "+i.oid+", "+a.oid);break}}console.log(t.map((function(e){return e.oid})))}},{key:"handleValueChange",value:function(t,r){var n=t.targets[r];n||(r=i.g.getTargetName(r),n=t.targets[r]);var a=t.val(r),l=t.lastVal(r);return"object"===o(n)&&"function"==typeof n.onValueChange&&(!e.areEqual(a,l,n.deepEquality)&&(n.onValueChange.call(t,a,l,t.getTargetCycle(r)),t.setTargetMethodName(r,"onValueChange")),!0)}},{key:"scheduleExecution",value:function(t,r){var n=t.getTargetInterval(r),i=e.now();if(n<=0)return 0;if(t.isTargetImperative(r)&&0===t.getTargetStep(r))return t.setScheduleTimeStamp(r,i),0;var a=t.getScheduleTimeStamp(r);if(e.isDefined(a)){var o=i-a;return Math.max(n-o,0)}return t.setScheduleTimeStamp(r,i),n}},{key:"runTargetValue",value:function(t,r,o,l,s){var u=i.g.getTargetName(o);return a.u.allEventMap[u]?"function"==typeof r.value?r.value.call(t,(0,n.kQ)().getCurrentOriginalEvent(),l,s):e.isDefined(r.value)?r.value:r:t.val("___".concat(o))?"function"==typeof r.value?r.value.call(t,t.val("___".concat(o)),l,s):e.isDefined(r.value)?r.value:r:"function"==typeof r.value?r.value.call(t,l,s):e.isDefined(r.value)?r.value:r}},{key:"mergeTargets",value:function(t,r){var n,i=r.targets,a=r.originalTargetNames,o=t.targets,l=[];a.forEach((function(t){e.isDefined(o[t])||l.push(t)})),(n=t.originalTargetNames).push.apply(n,l),l.forEach((function(e){var r=t.originalTargetNames.indexOf(e);o[e]=i[e],t.processNewTarget(e,r)}))}}],(r=null)&&c(t.prototype,r),u&&c(t,u),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,u}()},432:function(e,t,r){r.d(t,{u:function(){return y}});var n,i=r(142),a=r(129),o=r(956);function l(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e){return d="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},d(e)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,v(n.key),n)}}function f(e,t,r){return(t=v(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}var y=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,n=[{key:"defaultActualValues",value:function(){return{x:0,y:0,width:0,height:0,leftMargin:0,rightMargin:0,topMargin:0,bottomMargin:0,opacity:1,scale:1,scrollLeft:0,scrollTop:0,borderRadius:0,children:[],isInFlow:!0,element:"div",canHaveDom:!0,isIncluded:!0,bracketThreshold:40,bracketSize:2,preventDefault:void 0,canDeleteDom:void 0}}},{key:"toCanonicalKey",value:function(t){var r,n=String(t),i=n.toLowerCase();return null!==(r=e.attributesToTargets[i])&&void 0!==r?r:n}},{key:"isLifeCycleMethod",value:function(t){return e.lifecycleMethodSet.has(t)||e.lifecyclePatterns.step.test(t)||e.lifecyclePatterns.end.test(t)}},{key:"isGpuPreferred",value:function(t){return!!e.gpuTargetMap[o.g.getTargetName(t)]}},{key:"isTransformKey",value:function(t){return!!e.transformMap[t]}}],(r=null)&&h(t.prototype,r),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();n=y,f(y,"transformOrder",{perspective:0,translateX:1,translateY:1,translateZ:1,translate:1,translate3d:1,rotate:2,rotateX:2,rotateY:2,rotateZ:2,rotate3d:2,skew:3,skewX:3,skewY:3,scale:4,scaleX:4,scaleY:4,scaleZ:4,scale3DX:4,scale3DY:4,scale3DZ:4}),f(y,"defaultTargetStyles",{position:"absolute",left:0,top:0,zIndex:1}),f(y,"transformMap",{x:!0,y:!0,z:!0,translateX:!0,translateY:!0,translateZ:!0,perspective:!0,rotate:!0,rotateX:!0,rotateY:!0,rotateZ:!0,rotate3DX:!0,rotate3DY:!0,rotate3DZ:!0,rotate3DAngle:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,scale3DX:!0,scale3DY:!0,scale3DZ:!0,skew:!0,skewX:!0,skewY:!0}),f(y,"dimMap",{width:!0,height:!0,dim:!0}),f(y,"styleWithUnitMap",{width:!0,height:!0,fontSize:!0,lineHeight:!0,borderRadius:!0,padding:!0,paddingLeft:!0,paddingRight:!0,paddingTop:!0,paddingBottom:!0,left:!0,top:!0,right:!0,bottom:!0,wordSpacing:!0,letterSpacing:!0}),f(y,"colorMap",{color:!0,backgroundColor:!0,borderColor:!0,background:!0}),f(y,"styleTargetMap",c(c(c(c({},n.transformMap),n.styleWithUnitMap),n.colorMap),{},{dim:!0,color:!0,opacity:!0,zIndex:!0,border:!0,borderTop:!0,borderLeft:!0,borderRight:!0,borderBottom:!0})),f(y,"gpuTargetMap",c(c({},n.transformMap),{},{color:!0,backgroundColor:!0,borderColor:!0,opacity:!0,width:!0,height:!0})),f(y,"asyncStyleTargetMap",{position:!0,css:!0,style:!0,textAlign:!0,boxSizing:!0,transformStyle:!0,transformOrigin:!0,attributes:!0,justifyContent:!0,flexDirection:!0,alignItems:!0,display:!0,cursor:!0,fontFamily:!0,overflow:!0,overflowX:!0,overflowY:!0,textDecoration:!0,boxShadow:!0,fontWeight:!0,willChange:!0,backgroundImage:!0,backgroundSize:!0,flexWrap:!0,userSelect:!0,outline:!0,backfaceVisibility:!0,filter:!0}),f(y,"scaleMap",{scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,scale3DX:!0,scale3DY:!0,scale3DZ:!0}),f(y,"rotate3D",{rotate3DX:!0,rotate3DY:!0,rotate3DZ:!0}),f(y,"attributeTargetMap",{lang:!0,autoFocus:!0,placeholder:!0,autoComplete:!0,name:!0,type:!0,src:!0,href:!0,method:!0,size:!0,value:!0,maxLength:!0,minLength:!0,max:!0,min:!0,readonly:!0,required:!0,alt:!0,disabled:!0,action:!0,accept:!0,selected:!0,rows:!0,cols:!0,tabIndex:!0,role:!0,ariaLabel:!0,ariaCurrent:!0,ariaPressed:!0}),f(y,"mustExecuteTargets",{width:!0,height:!0,heightFromDom:!0,widthFromDom:!0,fetch:!0,fetchImage:!0,isVisible:!0,canDeleteDom:!0}),f(y,"ignoreRerun",{isVisible:!0}),f(y,"ignoreTargetMethodNameMap",{isVisible:!0}),f(y,"cssFunctionMap",{skew:{x:0,y:0},translate3d:{x:0,y:0,z:0},rotate3d:{x:0,y:0,z:0,a:0},scale3d:{x:0,y:0,z:0}}),f(y,"bypassInitialProcessingTargetMap",{onChildrenChange:!0,onVisibleChildrenChange:!0,onPageClose:!0}),f(y,"controlTargetMap",{defaultStyling:!0,styling:!0,reuseDomDefinition:!0,useWindowFrame:!0,canDeleteDom:!0,onDomEvent:!0,canHaveDom:!0}),f(y,"events",{mouseStart:{pointerdown:{eventName:"mousedown",inputType:"pointer",eventType:"start",order:2,windowEvent:!1,queue:!0,rateLimit:0},mousedown:{eventName:"mousedown",inputType:"mouse",eventType:"start",order:3,windowEvent:!1,queue:!0,rateLimit:0}},mouseEnd:{pointerup:{eventName:"mouseup",inputType:"pointer",eventType:"end",order:2,windowEvent:!1,queue:!0,rateLimit:0},mouseup:{eventName:"mouseup",inputType:"mouse",eventType:"end",order:3,windowEvent:!1,queue:!0,rateLimit:0}},clickEvents:{click:{eventName:"click",inputType:"mouse",eventType:"click",order:1,windowEvent:!1,queue:!1,rateLimit:0}},touchStart:{touchstart:{eventName:"touchstart",inputType:"touch",eventType:"start",order:1,windowEvent:!1,queue:!0,rateLimit:0}},touchEnd:{touchend:{eventName:"touchend",inputType:"touch",eventType:"end",order:1,windowEvent:!1,queue:!0,rateLimit:0}},cancelEvents:{touchcancel:{eventName:"touchcancel",inputType:"touch",eventType:"cancel",order:1,windowEvent:!1,queue:!0,rateLimit:0},pointercancel:{eventName:"mousecancel",inputType:"pointer",eventType:"cancel",order:2,windowEvent:!1,queue:!0,rateLimit:0}},windowEvents:{keyup:{eventName:"key",inputType:"",eventType:"key",order:1,windowEvent:!0,queue:!0,rateLimit:50},keydown:{eventName:"keydown",inputType:"",eventType:"keydown",order:1,windowEvent:!0,queue:!0,rateLimit:50},blur:{eventName:"blur",inputType:"mouse",eventType:"cancel",order:2,windowEvent:!0,queue:!0,rateLimit:0},resize:{eventName:"resize",inputType:"",eventType:"resize",order:1,windowEvent:!0,queue:!0,rateLimit:50},orientationchange:{eventName:"resize",inputType:"",eventType:"resize",order:1,windowEvent:!0,queue:!0,rateLimit:50},scroll:{eventName:"scroll",inputType:"",eventType:"scroll",order:1,windowEvent:!0,queue:!0,rateLimit:50}},containerScroll:{scroll:{eventName:"scroll",inputType:"",eventType:"scroll",order:1,windowEvent:!1,queue:!0,rateLimit:50}},inputEvents:{input:{eventName:"input",inputType:"",eventType:"input",order:1,windowEvent:!1,queue:!0,rateLimit:50}},changeEvents:{change:{eventName:"change",inputType:"",eventType:"change",order:1,windowEvent:!1,queue:!0,rateLimit:0}},submitEvents:{submit:{eventName:"submit",inputType:"form",eventType:"submit",order:1,windowEvent:!1,queue:!0,rateLimit:0}},popState:{popstate:{eventName:"popstate",inputType:"",eventType:"popstate",order:1,windowEvent:!0,queue:!0,rateLimit:0}},leaveEvents:{pointerleave:{eventName:"mouseleave",inputType:"pointer",eventType:"leave",order:2,windowEvent:!1,queue:!0,rateLimit:0},mouseleave:{eventName:"mouseleave",inputType:"mouse",eventType:"leave",order:3,windowEvent:!1,queue:!0,rateLimit:0}},enterEvents:{pointerenter:{eventName:"mouseenter",inputType:"pointer",eventType:"enter",order:2,windowEvent:!1,queue:!0,rateLimit:0},mouseenter:{eventName:"mouseenter",inputType:"mouse",eventType:"enter",order:3,windowEvent:!1,queue:!0,rateLimit:0}},moveEvents:{touchmove:{eventName:"touchmove",inputType:"touch",eventType:"move",order:1,windowEvent:!1,queue:!0,rateLimit:50},pointermove:{eventName:"mousemove",inputType:"pointer",eventType:"move",order:2,windowEvent:!1,queue:!0,rateLimit:50},mousemove:{eventName:"mousemove",inputType:"mouse",eventType:"move",order:3,windowEvent:!1,queue:!0,rateLimit:50}},documentDragEvents:{pointermove:{eventName:"mousemove",inputType:"pointer",eventType:"move",order:2,windowEvent:!1,queue:!0,rateLimit:50,capture:!0},mousemove:{eventName:"mousemove",inputType:"mouse",eventType:"move",order:3,windowEvent:!1,queue:!0,rateLimit:50,capture:!0},touchmove:{eventName:"touchmove",inputType:"touch",eventType:"move",order:1,windowEvent:!1,queue:!0,rateLimit:50,capture:!0},pointerup:{eventName:"mouseup",inputType:"pointer",eventType:"end",order:2,windowEvent:!1,queue:!0,rateLimit:0,capture:!0},mouseup:{eventName:"mouseup",inputType:"mouse",eventType:"end",order:3,windowEvent:!1,queue:!0,rateLimit:0,capture:!0},touchend:{eventName:"touchend",inputType:"touch",eventType:"end",order:1,windowEvent:!1,queue:!0,rateLimit:0,capture:!0},pointercancel:{eventName:"mousecancel",inputType:"pointer",eventType:"cancel",order:2,windowEvent:!1,queue:!0,rateLimit:0,capture:!0},touchcancel:{eventName:"touchcancel",inputType:"touch",eventType:"cancel",order:1,windowEvent:!1,queue:!0,rateLimit:0,capture:!0}},wheelEvents:{wheel:{eventName:"wheel",inputType:"",eventType:"wheel",order:1,windowEvent:!1,queue:!0,rateLimit:50},mousewheel:{eventName:"wheel",inputType:"",eventType:"wheel",order:1,windowEvent:!1,queue:!0,rateLimit:50}}}),f(y,"attributesToTargets",{onstart:"onStart",onend:"onEnd",onkey:"onKey",onkeydown:"onKeyDown",onanykey:"onAnyKey",onclick:"onClick",onanyclick:"onAnyClick",onhover:"onHover",onswipe:"onSwipe",onanyswipe:"onAnySwipe",onpinch:"onPinch",onenter:"onEnter",onleave:"onLeave",onblur:"onBlur",onfocus:"onFocus",onscroll:"onScroll",onscrollleft:"onScrollLeft",onscrolltop:"onScrollTop",onwindowscroll:"onWindowScroll",onpopstate:"onPopState",onchange:"onChange",oninput:"onInput",onsubmit:"onSubmit",onvisible:"onVisible",onresize:"onResize",textalign:"textAlign",preventdefault:"preventDefault",translatex:"translateX",translatey:"translateY",translatez:"translateZ",rotate3dx:"rotate3DX",rotate3dy:"rotate3DY",rotate3dz:"rotate3DZ",rotate3dangle:"rotate3DAngle",scale3dx:"scale3DX",scale3dy:"scale3DY",scale3dz:"scale3DZ",skewx:"skewX",skewy:"skewY",lineheight:"lineHeight",fontsize:"fontSize",borderradius:"borderRadius",letterspacing:"letterSpacing",backgroundcolor:"backgroundColor",backgroundimage:"backgroundImage",backgroundsize:"backgroundSize",bordertop:"borderTop",borderleft:"borderLeft",borderright:"borderRight",borderbottom:"borderBottom",boxsizing:"boxSizing",transformstyle:"transformStyle",transformorigin:"transformOrigin",justifycontent:"justifyContent",flexdirection:"flexDirection",flexwrap:"flexWrap",alignitems:"alignItems",fontfamily:"fontFamily",overflowx:"overflowX",overflowy:"overflowY",textdecoration:"textDecoration",boxshadow:"boxShadow",fontweight:"fontWeight",willchange:"willChange",domholder:"domHolder",shouldcalculatechildtargets:"shouldCalculateChildTargets",domparent:"domParent",containeroverflowmode:"containerOverflowMode",itemoverflowmode:"itemOverflowMode",onvisiblechildrenchange:"onVisibleChildrenChange",onchildrenchange:"onChildrenChange",isvisible:"isVisible",isinflow:"isInFlow",basewidth:"baseWidth",baseheight:"baseHeight",paddingleft:"paddingLeft",paddingright:"paddingRight",paddingtop:"paddingTop",paddingbottom:"paddingBottom",userselect:"userSelect",arialabel:"ariaLabel",ariacurrent:"ariaCurrent",ariapressed:"ariaPressed",tabindex:"tabIndex",backfacevisibility:"backfaceVisibility"}),f(y,"targetToEventsMapping",{onStart:["touchStart","mouseStart"],onEnd:[],onKey:[],onKeyDown:[],onAnyKey:[],onBlur:[],onFocus:[],onClick:["clickEvents","touchStart","mouseStart"],onAnyClick:["clickEvents","touchStart","mouseStart"],onHover:["moveEvents"],onSwipe:["touchStart","mouseStart"],onAnySwipe:["touchStart","mouseStart"],onPinch:["touchStart"],onEnter:["enterEvents"],onLeave:["leaveEvents"],onScroll:["touchStart","mouseStart","wheelEvents"],onScrollLeft:["touchStart","mouseStart","wheelEvents"],onScrollTop:["touchStart","mouseStart","wheelEvents"],onWindowScroll:["containerScroll"],onPopState:["popState"],onChange:["changeEvents"],onInput:["inputEvents"],onSubmit:["submitEvents"]}),f(y,"internalEventMap",{onDomEvent:function(e){return e.hasDomNow},onVisible:function(e){return e.isNowVisible},onResize:function(e){var t=e.getDimLastUpdate();if(!t)return!1;var r=e.getParent(),n=(0,i.S9)(),a=r?r.getDimLastUpdate():0;return(a>n?a:n)>t}}),f(y,"allEventMap",{onStart:function(e){return(0,i.kQ)().isStartEvent()&&(0,i.kQ)().isStartHandler(e)},onEnd:function(e){return(0,i.kQ)().isEndEvent()&&(0,i.kQ)().isEndHandler(e)},onAnySwipe:function(){return(0,i.kQ)().isSwipeEvent()&&a.d.isDefined((0,i.kQ)().swipeStartX)},onHover:function(e){return(0,i.kQ)().isMoveEvent()&&(0,i.kQ)().isHoverHandler(e)},onClick:function(e){return(0,i.kQ)().isClickEvent()&&(0,i.kQ)().isClickHandler(e)},onAnyClick:function(){return(0,i.kQ)().isClickEvent()},onEnter:function(e){return(0,i.kQ)().isEnterHandler(e)},onLeave:function(e){return(0,i.kQ)().isLeaveHandler(e)},onSwipe:function(e){return(0,i.kQ)().isSwipeHandler(e)&&(0,i.kQ)().isSwipeEvent()&&a.d.isDefined((0,i.kQ)().swipeStartX)},onFocus:function(e){return(0,i.kQ)().onFocus(e)},onBlur:function(e){return(0,i.kQ)().onBlur(e)},onPinch:function(e){return(0,i.kQ)().isPinchHandler(e)},onKey:function(e){return"key"===(0,i.kQ)().getEventType()&&(0,i.kQ)().currentKey&&(0,i.kQ)().currentHandlers.focus===e&&(0,i.kQ)().currentHandlers.justFocused!==e},onKeyDown:function(e){return"keydown"===(0,i.kQ)().getEventType()&&(0,i.kQ)().currentKey&&(0,i.kQ)().currentHandlers.focus===e&&(0,i.kQ)().currentHandlers.justFocused!==e},onAnyKey:function(){return"key"===(0,i.kQ)().getEventType()&&(0,i.kQ)().currentKey},onScroll:function(e){return(0,i.kQ)().isScrollLeftHandler(e)&&(0,i.kQ)().deltaX()||(0,i.kQ)().isScrollTopHandler(e)&&(0,i.kQ)().deltaY()},onScrollTop:function(e){return"horizontal"!==(0,i.kQ)().getOrientation()&&(0,i.kQ)().isScrollTopHandler(e)&&(0,i.kQ)().deltaY()},onScrollLeft:function(e){return"vertical"!==(0,i.kQ)().getOrientation()&&(0,i.kQ)().isScrollLeftHandler(e)&&(0,i.kQ)().deltaX()},onWindowScroll:function(){return"scroll"===(0,i.kQ)().getEventType()},onPopState:function(){return"popstate"===(0,i.kQ)().getEventType()},onChange:function(e){return"change"===(0,i.kQ)().getEventType()&&(0,i.kQ)().isFormHandler(e)},onInput:function(e){return"input"===(0,i.kQ)().getEventType()&&(0,i.kQ)().isFormHandler(e)},onSubmit:function(){return"submit"===(0,i.kQ)().getEventType()}}),f(y,"excludedTargetKeys",new Set(["originalTargetName","originalTModel","activateNextTarget","invokerTarget","invokerTModel","active","addChildAction","childAction","fetchAction"])),f(y,"lifecycleCallbackSet",new Set(["onComplete","onValueChange","onImperativeEnd","onImperativeStep","onStepsEnd","onSuccess","onError"])),f(y,"lifecycleCoreSet",new Set(["value","steps","cycles","enabledOn","loop","interval"])),f(y,"lifecycleMethodSet",new Set([].concat(l(n.lifecycleCallbackSet),l(n.lifecycleCoreSet)))),f(y,"lifecyclePatterns",{step:/^on[A-Za-z]+Step$/,end:/^on[A-Za-z]+End$/}),f(y,"eventSet",new Set([].concat(l(Object.keys(n.allEventMap)),l(Object.keys(n.internalEventMap))))),f(y,"styleSet",new Set([].concat(l(Object.keys(n.styleTargetMap)),l(Object.keys(n.asyncStyleTargetMap)),l(Object.keys(n.attributeTargetMap))))),f(y,"reservedKeywordSet",new Set([].concat(l(n.styleSet),l(Object.keys(n.defaultActualValues())),l(Object.keys(n.allEventMap)),l(Object.keys(n.internalEventMap)),l(Object.keys(n.mustExecuteTargets)),["html","isInFlow","domHolder","domParent","gap","widthFromDom","heightFromDom","requiresDom","preventDefault","canDeleteDom","textOnly","styling","$dom","defaultStyling","reuseDomDefinition","canHaveDom","excludeXYCalc","excludeX","excludeY","containerOverflowMode","itemOverflowMode","baseElement","element","otype","calculateChildren","domIsland","bracketThreshold","bracketSize","shouldBeBracketed","sourceDom"]))),f(y,"activationKeywordSet",new Set(["originalTModel","originalTargetName","activateNextTarget"]))},985:function(e,t,r){r.d(t,{j:function(){return b}});var n=r(956),i=r(347),a=r(432),o=r(528),l=r(129),s=r(515),u=r(736),c=r(142);function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}(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 h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function f(e){return f="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},f(e)}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e,t,r){return(t=m(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,m(n.key),n)}}function m(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:t+""}var b=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,h=[{key:"prepareTarget",value:function(e,t){n.g.currentTargetName=t,n.g.currentTModel=e,e.isExecuted(t)&&e.getTargetCycles(t)>1&&(e.getTargetCycle(t)<e.getTargetCycles(t)-1?e.incrementTargetCycle(t):e.resetTargetCycle(t),e.resetTargetStep(t),e.resetTargetInitialValue(t))}},{key:"executeDeclarativeTarget",value:function(t,r){var i=n.g.getTargetName(r);t.allTargetMap[i]=r,e.resolveTargetValue(t,r),e.updateTarget(t,t.targetValues[r],r,!1)}},{key:"assignImperativeTargetValue",value:function(e,t,r,i){var a;e.targetValues[t]=e.targetValues[t]||n.g.emptyValue();var o=e.targetValues[t];return o.isImperative=!0,o.originalTargetName=r,o.originalTModel=i,(null===(a=e.animatingMap)||void 0===a?void 0:a.has(t))&&e.getTargetSteps(t)>0&&(0,c.s)().cancelKey(e,t),o}},{key:"executeImperativeTarget",value:function(t,r,o,s,u,c,d,h){var v,g=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1;if("string"==typeof r){var p=n.g.getTargetName(r);r=r.endsWith("+")?r:r+"+",t.allTargetMap[p]=r}if(i.D.isListTarget(o)){var m=l.d.isDefined(o.steps)?o.steps:s,b=l.d.isDefined(o.interval)?o.interval:u,T=l.d.isDefined(o.easing)?o.easing:c,w=l.d.isDefined(o.cycles)?o.cycles:g;v=e.assignImperativeTargetValue(t,r,d,h),e.assignListTarget(t,r,v,o.list,o.list[0],m,b,T,w)}else{if(i.D.isTargetSpecObject(o)){var k=i.D.getValueStepsCycles(t,r,o),S=k[0],M=k[1],D=k[2],E=k[3],C=k[4];return s=l.d.isDefined(M)?M:s,u=l.d.isDefined(D)?D:u,c=l.d.isDefined(E)?E:c,g=l.d.isDefined(C)?C:g,void e.executeImperativeTarget(t,r,S,s,u,c,d,h,g)}if(i.D.isObjectTarget(r,o)){var x=a.u.cssFunctionMap[r]?y(y({},a.u.cssFunctionMap[r]),o):o;Object.keys(x).forEach((function(r){var n=x[r],a=s,o=u,v=c,y=g;if("object"===f(n)&&!i.D.isListTarget(n)){var p=i.D.getValueStepsCycles(t,r,x[r]);n=p[0],a=l.d.isDefined(p[1])?p[1]:s,o=l.d.isDefined(p[2])?p[2]:u,v=l.d.isDefined(p[3])?p[3]:c,y=l.d.isDefined(p[4])?p[4]:g}e.executeImperativeTarget(t,r,n,a,o,v,d,h,y)}))}else if("object"!==f(o)||i.D.isListTarget(o))v=e.assignImperativeTargetValue(t,r,d,h,g),e.assignSingleTarget(v,o,void 0,s,g,u,c),v.step=0,v.cycle=0;else{var _=i.D.getValueStepsCycles(t,r,o);o!==_[0]?(o=_[0],s=l.d.isDefined(_[1])?_[1]:s,u=l.d.isDefined(_[2])?_[2]:u,c=l.d.isDefined(_[3])?_[3]:c,g=l.d.isDefined(_[4])?_[4]:g,e.executeImperativeTarget(t,r,o,s,u,c,d,h,g)):(v=e.assignImperativeTargetValue(t,r,d,h,g),e.assignSingleTarget(v,o,void 0,s,g,u,c),v.step=0,v.cycle=0)}}v&&(e.updateTarget(t,v,r,!0),t.isTargetDone(r)&&n.g.shouldActivateNextTarget(t,r))}},{key:"updateTarget",value:function(t,r,n,i){t.setLastUpdate(n),0===t.getTargetSteps(n)&&e.snapActualToTarget(t,n),r.executionFlag=!0,r.executionCount++,t.addToStyleTargetList(n,i),t.setTargetMethodName(n,"value");var o=e.calculateTargetStatus(t,r,n);t.setTargetStatus(n,o),!a.u.ignoreRerun[n]&&t.shouldScheduleRun(n)&&(0,c.fB)().schedule(1,"updateTarget2-"+t.oid+"-"+n)}},{key:"calculateTargetStatus",value:function(e,t,r){var n,i=e.getValueListPointer(r),a=e.getTargetCycle(r),o=e.getTargetCycles(r),l=e.getTargetStep(r),s=e.getTargetSteps(r);return t.snapAnimation?"done":l<s||Array.isArray(t.valueList)&&i<t.valueList.length-1?"updating":e.isTargetInLoop(r)||a<o-1?"active":null!==(n=e.targets[r])&&void 0!==n&&n.fetchAction&&!(0,c.qI)().isLoadingSuccessful(e,r)?"fetching":"done"}},{key:"assignListTarget",value:function(e,t,r,n,i,a,o,s,c){r.valueList=n,r.stepList=Array.isArray(a)?a:l.d.isDefined(a)&&a>0?[a]:[1],r.intervalList=Array.isArray(o)?o:l.d.isDefined(o)?[o||8]:[8],r.easingList=Array.isArray(s)?s:l.d.isDefined(s)?[s]:[u.G.LINEAR],r.cycles=c,r.valuePointer=1,r.value=n[1],r.initialValue=i,r.steps=r.stepList[0],r.interval=r.intervalList[0],r.easing=r.easingList[0],r.step=0,r.snapAnimation=!1,e.val(t,i),e.setActual(t,i)}},{key:"assignSingleTarget",value:function(e,t,r,n,i,a,o){delete e.valueList,delete e.stepList,delete e.intervalList,delete e.easingList,l.d.isDefined(e.valuePointer)&&(e.valuePointer=0),e.initialValue=r,e.lastValue=e.value,e.value=t,e.steps=n||0,e.cycles=i||1,e.interval=a||0,e.easing=o,e.snapAnimation=!1}},{key:"snapActualToTarget",value:function(e,t){var r=e.targetValues[t].value,n="function"==typeof r?r.call(e):r;if(e.val(t)!==n)return e.hasValidAnimation()&&e.canBeAnimated(t)?void s.T.overrideAnimatedKeyWithSnap(e,t,n):(e.val(t,n),e.setActual(t,n),void l.d.handleValueChange(e,t))}},{key:"resolveTargetValue",value:function(t,r){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.getTargetCycle(r);if(!i.D.isIntervalTarget(t.targets[r])||1!==s){var u=!t.targetValues[r]&&l.d.isDefined(t.targets[r].initialValue)?t.targets[r].initialValue:void 0,h=i.D.getValueStepsCycles(t,r,t.targets[r],s),v=h[0],y=h[1]||0,g=h[2]||0,p=h[3],m=h[4]||1,b=t.targetValues[r]||n.g.emptyValue();t.targetValues[r]=b;var T=l.d.isDefined(p)?p:l.d.isDefined(t.targets[r].easing)?t.targets[r].easing:void 0;if(i.D.isIntervalTarget(v))e.assignSingleTarget(b,void 0,u,0,2,v.interval,T);else if(i.D.isChildTarget(r,v))t.addChild(v),e.assignSingleTarget(b,v,void 0,0,m,g,T);else if(i.D.isChildrenTarget(r,v))(Array.isArray(v)?v:v?[v]:[]).forEach((function(e){t.addChild(e),n.g.markAddChild(t,n.g.currentTargetName,t.addedChildren[t.addedChildren.length-1].child)})),e.assignSingleTarget(b,v,void 0,0,m,g,T);else if(i.D.isChildObjectTarget(r,t.targets[r])){var w=new o.c(r,t.targets[r]);t.addChild(w);var k=Object.fromEntries(Object.entries(v).filter((function(e){var t=d(e,1)[0];return!a.u.excludedTargetKeys.has(t)})));e.assignSingleTarget(b,k,void 0,0,m,g,T)}else if("object"===f(v)&&!0===v.asChild){var S=new o.c(r,v);t.addChild(S),e.assignSingleTarget(b,v,void 0,0,m,g,T)}else if(i.D.isFetchTarget(r,v))(0,c.qI)().fetch(t,v),e.assignSingleTarget(b,v,void 0,0,m,g,T);else if(i.D.isFetchImageTarget(r,v))(0,c.qI)().fetchImage(t,v),e.assignSingleTarget(b,v,void 0,0,m,g,T);else if(i.D.isListTarget(v))e.assignListTarget(t,r,b,v.list,v.list[0],y,g,T,m);else{var M,D;y>0&&!l.d.areEqual(t.val(r),v,null!==(M=null===(D=t.targets[r])||void 0===D?void 0:D.deepEquality)&&void 0!==M&&M)&&t.resetTargetStep(r),e.assignSingleTarget(b,v,u,y,m,g,T)}}}}],(r=null)&&p(t.prototype,r),h&&p(t,h),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,h}()},347:function(e,t,r){r.d(t,{D:function(){return d}});var n=r(956),i=r(432),a=r(129),o=r(528),l=r(736);function s(e){return s="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},s(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function c(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}var d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,c=[{key:"isPlainObject",value:function(e){return!!e&&"object"===s(e)&&!Array.isArray(e)&&e.constructor===Object}},{key:"hasLifecycle",value:function(e){for(var t in e)if("function"==typeof e[t]&&i.u.isLifeCycleMethod(t))return!0;return!1}},{key:"hasTargetSuffix",value:function(e){return/\${1,2}$/.test(e)||e.startsWith("_")}},{key:"isTargetKey",value:function(e){return e=n.g.getTargetName(e),i.u.reservedKeywordSet.has(e)}},{key:"scoreChild",value:function(t){var r=0,n=0;for(var a in t){var o=t[a];if(!i.u.defaultTargetStyles[a]&&!i.u.excludedTargetKeys.has(a)&&"active"!==a){if(e.hasTargetSuffix(a))return!0;if(this.hasLifecycle(o))return!0;e.isTargetKey(a)?r++:i.u.activationKeywordSet.has(a)||"function"==typeof t[a]||n++}}return r-n>=1}},{key:"classifyEntry",value:function(t,r){return e.isPlainObject(r)?e.isTargetKey(t)?"target2":"originalTModel"===t?"target3":r instanceof o.c?"children":e.isListTarget(r)||e.isFetchTarget(t,r)||e.isFetchImageTarget(t,r)?"target4":this.hasLifecycle(r)?"target5":this.scoreChild(r)?"children":"target6":"target1"}},{key:"isTargetSpecObject",value:function(e){return!(!e||"object"!==s(e)||Array.isArray(e)||Object.getPrototypeOf(e)!==Object.prototype)&&(Object.prototype.hasOwnProperty.call(e,"value")||Object.prototype.hasOwnProperty.call(e,"steps")||Object.prototype.hasOwnProperty.call(e,"interval")||Object.prototype.hasOwnProperty.call(e,"easing")||Object.prototype.hasOwnProperty.call(e,"cycles"))}},{key:"isChildrenTarget",value:function(e,t){return("children"===n.g.getTargetName(e)||"addChildren"===n.g.getTargetName(e))&&"object"===s(t)}},{key:"isChildTarget",value:function(e,t){return"child"===n.g.getTargetName(e)&&"object"===s(t)}},{key:"isChildObjectTarget",value:function(t,r){return"children"===e.classifyEntry(t,r)}},{key:"isListTarget",value:function(e){return"object"===s(e)&&null!==e&&Array.isArray(e.list)}},{key:"isFetchTarget",value:function(e,t){return!("fetch"!==n.g.getTargetName(e)||"string"!=typeof t&&!Array.isArray(t)&&(!t||"object"!==s(t)||"string"!=typeof t.url))}},{key:"isFetchImageTarget",value:function(e,t){return"fetchImage"===n.g.getTargetName(e)&&t&&("string"==typeof t||Array.isArray(t))}},{key:"isObjectTarget",value:function(t,r){return"style"!==n.g.getTargetName(t)&&"object"===s(r)&&null!==r&&!Array.isArray(r)&&Object.getPrototypeOf(r)===Object.prototype&&!e.isTargetSpecObject(r)}},{key:"isIntervalTarget",value:function(e){return!(!e||"object"!==s(e))&&(!(!e.isInterval||!a.d.isDefined(e.interval))||a.d.isDefined(e.interval)&&!a.d.isDefined(e.steps)&&!a.d.isDefined(e.cycles))}},{key:"isPrimitiveArray",value:function(e){return!!Array.isArray(e)&&e.every((function(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e}))}},{key:"isValueStepsCycleArray",value:function(t){if(!Array.isArray(t)||0===t.length||t.length>5)return!1;if("number"!=typeof t[0]&&"string"!=typeof t[0]&&!e.isListTarget(t[0]))return!1;if(t.length>=2&&"number"!=typeof t[1])return!1;if(t.length>=3&&"number"!=typeof t[2])return!1;if(t.length>=4){var r=t[3],n="number"==typeof r,i="string"==typeof r&&l.G.easeMap.has(r);if(!n&&!i)return!1}if(5===t.length){var a=t[3],o=t[4];if("string"!=typeof a||!l.G.easeMap.has(a))return!1;if("number"!=typeof o)return!1}return e.isListTarget(t[0])||t.length>=2}},{key:"getValueStepsCycles",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.targets[r],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.getTargetCycle(r),o=n&&n.valueOnly,l=t.val(r),u=null,c=0,d=0,h=void 0,f=1,v=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return"function"==typeof e?e.call.apply(e,[t].concat(n)):e};return function n(y){if(Array.isArray(y))return g=y,o||!e.isValueStepsCycleArray(g)?[g,c,d,h,f]:(u=g[0],c=g.length>=2?g[1]:c,d=g.length>=3?g[2]:d,g.length>=4&&("string"==typeof g[3]?(h=g[3],f=g.length>=5?g[4]:f):f=g[3]),[u,c,d,h,f]);var g;if("object"===s(y)&&null!==y&&Object.getPrototypeOf(y)===Object.prototype){var p=a.d.runTargetValue(t,y,r,i,l);return e.isPrimitiveArray(p)&&(a.d.isDefined(y.steps)||a.d.isDefined(y.interval)||a.d.isDefined(y.easing)||a.d.isDefined(y.cycles))?(u={list:p},c=a.d.isDefined(y.steps)?v(y.steps,i):0,d=a.d.isDefined(y.interval)?v(y.interval,i):8,h=a.d.isDefined(y.easing)?v(y.easing,i):h,f=a.d.isDefined(y.cycles)?v(y.cycles,i,t.getTargetCycles(r)):1,[u,c,d,h,f]):"object"===s(p)&&a.d.isDefined(p.value)&&a.d.isDefined(p.steps)?n(p):(u=p,c=a.d.isDefined(y.steps)?v(y.steps,i):0,d=a.d.isDefined(y.interval)?v(y.interval,i):0,h=a.d.isDefined(y.easing)?v(y.easing,i):h,f=a.d.isDefined(y.cycles)?v(y.cycles,i,t.getTargetCycles(r)):1,Array.isArray(u)?n(u):[u,c,d,h,f])}return"function"==typeof y?n(y.call(t,i,l)):[y,c,d,h,f]}(n)}}],(r=null)&&u(t.prototype,r),c&&u(t,c),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,c}()},956:function(e,t,r){r.d(t,{g:function(){return f}});var n=r(142),i=r(129),a=r(432);function o(e){return o="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},o(e)}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(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 s(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=u(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function u(e,t){if(e){if("string"==typeof e)return c(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function h(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,u=[{key:"emptyValue",value:function(){return{value:void 0,actual:void 0,step:0,steps:0,cycle:0,valuePointer:0,cycles:1,interval:0,initialValue:void 0,scheduleTimeStamp:void 0,lastUpdate:0,updateCount:0,completeCount:0,completeTime:0,executionCount:0,status:"",executionFlag:!1,isImperative:!1,originalTargetName:void 0,easing:void 0,creationTime:i.d.now()}}},{key:"getTargetName",value:function(e){if(e){for(var t=e.startsWith("_")?1:0,r=e.length;r>t&&"$"===e[r-1];)r--;return"+"===e[r-1]&&r--,e.slice(t,r)}}},{key:"bindTarget",value:function(t,r,i,o,l){var s=t.targets[r],u=void 0!==i?t.getLastUpdate(i):void 0,c=function(){return void 0!==i?t.getLastUpdate(i):void 0},d=function(){var e=c();return(void 0!==u||void 0!==e)&&(void 0===u&&void 0!==e||e!==u)};s.originalTargetName=e.currentTargetName,s.originalTModel=e.currentTModel;var h=r.startsWith("_")?r.slice(1):r,f=!(!o||!o.endsWith("$"));if(!s.activateNextTarget){var v;if(f)v=o;else for(var y=t.originalTargetNames,g=l+1;g<y.length;g++){var p=y[g];if(p.endsWith("$$")){v=p;break}}v&&(s.activateNextTarget=v)}Object.keys(s).forEach((function(o){var l=s[o];("value"===o||"function"==typeof l&&a.u.isLifeCycleMethod(o))&&(s[o]=function(){var s;a.u.lifecycleCoreSet.has(o)||(e.currentTargetName=r,e.currentTModel=t),this.key=h,this.value=this.val(h),this.prevTargetValue=function(){if(i)return(0,n.qI)().isLoading(t,i)?(0,n.qI)().getLoadingItemValue(t,i,r):t.targetValues[i]?t.targetValues[i].actual:t.val(i)}(),this.isPrevTargetUpdated=d;var f="function"==typeof l?l.apply(this,arguments):l;return u=null!==(s=c())&&void 0!==s?s:u,f})}))}},{key:"shouldActivateNextTarget",value:function(t,r){var i,a,o,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!(l>4)&&t){var c="update"===(arguments.length>5&&void 0!==arguments[5]?arguments[5]:"complete"),d=!c;if(t.isTargetImperative(r)){var h=t.targetValues[r],f=h.originalTModel,v=h.originalTargetName;return e.shouldActivateNextTarget(f,v,l+1,s,!0,"update"),void(d&&(e.cleanupTarget(t,r),e.isTargetFullyCompleted(t,r)&&e.shouldActivateNextTarget(f,v,l+1,s,!0,"complete")))}var y=t.targets[r],g=t.targetValues[r];if(y&&g){var p=y.activateNextTarget,m=null!==(i=null==p?void 0:p.endsWith("$$"))&&void 0!==i&&i,b=y.fetchAction;if(!c||!m){var T=!1,w=!1;if(p){if(m){var k,S,M=null!==(k=null===(S=t.targetValues[p])||void 0===S?void 0:S.triggeredByCompleteCount)&&void 0!==k?k:0;g.completeCount>M&&(w=!0)}else{var D,E=null!==(D=g.nextTargetUpdateCount)&&void 0!==D?D:0;w=g.updateCount>E}if(!m&&0===s&&(w||u)||m&&w){var C=!!m&&e.arePreviousTargetsComplete(t,p);if(b)if(m)!0===C?(e.activateTargetOnce(t,p),T=!0,e.clearPendingTargets(t,r),t.targetValues[p].triggeredByCompleteCount=g.completeCount):e.markPendingTargets(t,r);else for(;(0,n.qI)().isNextLoadingItemSuccessful(t,r);)t.activatedTargets.indexOf(p)>=0?t.activatedTargets.push(p):e.activateTarget(t,p),(0,n.qI)().nextActiveItem(t,r),T=!0;else m?!0===C?(t.removeFromActiveTargets(p),e.activateTarget(t,p),T=!0,e.clearPendingTargets(t,r),t.targetValues[p].triggeredByCompleteCount=g.completeCount):e.markPendingTargets(t,r):m||(t.activatedTargets.indexOf(p)>=0&&!t.isTargetUpdating(r)?t.activatedTargets.push(p):(e.activateTarget(t,p),T=!0))}else d&&t.isTargetDone(p)&&e.cleanupTarget(t,p)}T&&(m||(g.nextTargetUpdateCount=g.updateCount));var x=p&&null!==(a=null===(o=t.targetValues[p])||void 0===o?void 0:o.completeCount)&&void 0!==a?a:0,_=!!m&&g.completeCount<=x;if(!T&&d)if(p&&_&&!b)e.shouldActivateNextTarget(t,p,l,s+1,u,"complete");else if(!p){var L=y.originalTModel,O=y.originalTargetName;L&&O&&e.shouldActivateNextTarget(L,O,l+1,s,u,"complete")}d&&e.cleanupTarget(t,r)}}}}},{key:"markPendingTargets",value:function(e,t){(e.pendingTargets||(e.pendingTargets=new Set)).add(t)}},{key:"clearPendingTargets",value:function(e,t){var r=e.pendingTargets;r&&(r.delete(t),0===r.size&&(e.pendingTargets=void 0))}},{key:"cleanupTarget",value:function(t,r){if(!t.isTargetComplete(r)&&e.isTargetFullyCompleted(t,r)){t.setTargetComplete(r);var i=t.targets[r];if("function"==typeof(null==i?void 0:i.onComplete)&&(i.onComplete.call(t),t.setTargetMethodName(r,"onComplete")),(null==i?void 0:i.fetchAction)&&(0,n.qI)().isLoadingComplete(t,r)){var a=t.fetchActionTargetList.indexOf(r);a>=0&&t.fetchActionTargetList.splice(a,1),i.fetchAction=!1}e.bubbleInvokerCompletion(t,r)}}},{key:"bubbleInvokerCompletion",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Set,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(t&&r){var o="".concat(t.oid,":").concat(r);if(!(n.has(o)||a>4)){n.add(o);var l=t.targetValues[r];if(l){var s,u,c=function(t,r){if(t&&r){var o="".concat(t.oid,":").concat(r);i.has(o)||(i.add(o),e.cleanupTarget(t,r)),e.bubbleInvokerCompletion(t,r,n,i,a+1)}};c(l.originalTModel,l.originalTargetName),t.isTargetImperative(r)||(c(l.invokerTModel,l.invokerTargetName),c(null===(s=t.targets[r])||void 0===s?void 0:s.originalTModel,null===(u=t.targets[r])||void 0===u?void 0:u.originalTargetName))}}}}},{key:"activateTargetOnce",value:function(t,r){var n,i,a=(n=t.targetValues)[r]||(n[r]=e.emptyValue()),o=null!==(i=a.activationTime)&&void 0!==i?i:0;if(o>0&&o>=t.getLastUpdate(r))return!1;a.activationTime=t.getLastUpdate(r)+.001,t.activateTarget(r)}},{key:"activateTarget",value:function(e,t){e.activateTarget(t)}},{key:"isTModelComplete",value:function(t){var r,i,a,o,l;if(!t)return!1;var s=t.state();return!(null!==(r=s.updatingTargetList)&&void 0!==r&&r.length)&&!(null!==(i=s.activeTargetList)&&void 0!==i&&i.length)&&!(null!==(a=s.activatedTargets)&&void 0!==a&&a.length)&&!t.hasAnimatingTargets()&&e.isFetchingComplete(t)&&!t.hasAnimatingChildren()&&!t.hasUpdatingChildren()&&!t.hasActiveChildren()&&!(null!==(o=s.lastChildrenUpdate)&&void 0!==o&&null!==(o=o.deletions)&&void 0!==o&&o.length)&&!(null!==(l=s.lastChildrenUpdate)&&void 0!==l&&null!==(l=l.additions)&&void 0!==l&&l.length)&&!t.pausedBatch&&!(0,n.EI)().needsReattach(t)}},{key:"isFetchingComplete",value:function(e){var t=e.state().fetchActionTargetList;if(!t)return!0;var r,i=s(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(!(0,n.qI)().isLoadingSuccessful(e,a))return!1}}catch(e){i.e(e)}finally{i.f()}return!0}},{key:"isTargetFullyCompleted",value:function(t,r){var n=!t.isTargetUpdating(r)&&!0===t.isTargetCompleteDeep(r);return n&&!t.isTargetImperative(r)&&(n=!t.hasUpdatingImperativeTargets(r)),n&&r.endsWith("$$")&&(n=!0===e.arePreviousTargetsComplete(t,r)),n}},{key:"arePreviousTargetsComplete",value:function(t,r){for(var n=t.functionTargetNames.findIndex((function(e){return r===e}))-1;n>=0;n--){var i=t.functionTargetNames[n];if(!t.isTargetImperative(i)){if(t.activatedTargets.indexOf(i)>=0)return"activated targets";if(t.hasUpdatingImperativeTargets(i))return t.oid+"."+i+": "+t.getUpdatingImperativeTargets(i);if(!0!==t.isTargetCompleteDeep(i)){var a,o,s=l(null!==(a=null===(o=t.activeChildrenMap)||void 0===o?void 0:o.values())&&void 0!==a?a:[]);return t.oid+"."+i+" ==> "+t.getTargetStatus(i)+", "+t.isTargetCompleteDeep(i)+":: "+s.map((function(e){return e.oid+":"+e.hasAnyUpdates()}))+", "+l(e.getUpdatingChildren(t,i).keys())}}}return!0}},{key:"isTargetCompleteDeep",value:function(t,r){var i=t.targets[r];if(i){var l,s,u,c=o(i.value);if(a.u.controlTargetMap[r])return!0;if(!i.fetchAction&&("string"===c||"number"===c||"boolean"===c))return!0;if((0,n.EI)().needsReattach(t))return"needs Reattach";if(t.canHaveDom()&&!t.hasDom())return"no dom";if(!t.isTargetComplete(r)&&!t.isTargetDone(r))return"not done";if((null===(l=i.childAction)||void 0===l?void 0:l.length)>0&&e.getUpdatingChildren(t,r).size>0)return"updating children";if((null===(s=i.childAction)||void 0===s?void 0:s.length)>0&&e.getActiveChildren(t).size>0)return"active children";if((null===(u=i.childAction)||void 0===u?void 0:u.length)>0&&!0!==e.areTargetChildrenComplete(i.childAction))return"incomplete children";if(i.fetchAction&&!(0,n.qI)().isLoadingSuccessful(t,r))return"incomplete loading"}return!0}},{key:"areTargetChildrenComplete",value:function(t){if(!t)return!0;var r,i=s(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a.isVisible()||!a.visibilityStatus){if(n.qw.tmodelIdMap[a.oid]&&!e.isTModelComplete(a))return!1;if(a.hasChildren()&&!e.areTargetChildrenComplete(a.getChildren()))return!1}}}catch(e){i.e(e)}finally{i.f()}return!0}},{key:"getUpdatingChildren",value:function(e,t){var r,n,i,a,o=new Map;return[].concat(l(null!==(r=null===(n=e.updatingChildrenMap)||void 0===n?void 0:n.values())&&void 0!==r?r:[]),l(null!==(i=null===(a=e.animatingChildrenMap)||void 0===a?void 0:a.values())&&void 0!==i?i:[])).filter((function(e){return e.isVisible()||!e.visibilityStatus})).forEach((function(e){var r,n,i=s([].concat(l(null!==(r=e.updatingTargetList)&&void 0!==r?r:[]),l(e.animatingMap?l(e.animatingMap.keys()):[])));try{for(i.s();!(n=i.n()).done;){var a,u,c=n.value;if(null===(a=e.targetValues[c])||void 0===a||!a.snapAnimation)if(e.isTargetImperative(c)){var d,h=null===(d=e.targetValues[c])||void 0===d?void 0:d.originalTargetName;if(h===t)o.set(e.oid,e);else if(h){var f,v;(null===(v=(null===(f=e.targetValues[c])||void 0===f?void 0:f.originalTModel).targets[h])||void 0===v?void 0:v.originalTargetName)===t&&o.set(e.oid,e)}}else(null===(u=e.targets[c])||void 0===u?void 0:u.invokerTargetName)===t&&o.set(e.oid,e)}}catch(e){i.e(e)}finally{i.f()}})),o}},{key:"getActiveChildren",value:function(e){var t,r,n=new Map;return l(null!==(t=null===(r=e.activeChildrenMap)||void 0===r?void 0:r.values())&&void 0!==t?t:[]).filter((function(e){return e.isVisible()||!e.visibilityStatus})).forEach((function(e){e.activeTargetList.length&&n.set(e.oid,e)})),n}},{key:"activateSingleTarget",value:function(e,t){e.targets[t]&&e.canTargetBeActivated(t)&&(e.isTargetEnabled(t)?e.activateTarget(t):e.addToActiveTargets(t))}},{key:"markChildAction",value:function(e,t,r){var n=e.targets[t];"object"===o(n)&&(n.childAction?n.childAction.includes(r)||n.childAction.push(r):n.childAction=[r])}},{key:"markAddChild",value:function(e,t,r){var n=e.targets[t];"object"===o(n)&&(n.addChildAction?n.addChildAction.includes(r)||n.addChildAction.push(r):n.addChildAction=[r])}},{key:"markFetchAction",value:function(t){if(t){var r=e.currentTargetName,n=t.targets[r];"object"===o(n)&&(n.fetchAction=!0,t.fetchActionTargetList.includes(r)||t.fetchActionTargetList.push(r))}}},{key:"wrapTarget",value:function(t,r,n){return a.u.controlTargetMap[n]||(t.targets[n]={value:r,originalTargetName:e.currentTargetName,originalTModel:e.currentTModel},r=t.targets[n]),r}},{key:"resetBeforeDeletion",value:function(e){var t;e.updatingTargetList.length=0,e.activeTargetList.length=0,null===(t=e.animatingMap)||void 0===t||t.clear(),e.clearUpdatingChildren(),e.clearActiveChildren(),e.clearAnimatingChildren(),(0,n.zw)().domIslandSet.delete(e),delete n.qw.tmodelIdMap[e.oid]}},{key:"getOriginalNames",value:function(e,t){var r,n,i,a,o,l;return e.isTargetImperative(t)?(r=null===(i=e.targetValues[t])||void 0===i?void 0:i.originalTModel,n=null===(a=e.targetValues[t])||void 0===a?void 0:a.originalTargetName):(r=null===(o=e.targets[t])||void 0===o?void 0:o.originalTModel,n=null===(l=e.targets[t])||void 0===l?void 0:l.originalTargetName),{originalTModel:r,originalTargetName:n}}},{key:"resetTargetPipelineState",value:function(t,r){var n,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set;if(t&&r){var o=t.targets[r];e.resetSingleTargetState(t,r),null!==(n=o.childAction)&&void 0!==n&&n.length&&(o.childAction.forEach((function(t){t&&e.resetTargetChildState(t,a)})),o.childAction=[]),null!==(i=o.addChildAction)&&void 0!==i&&i.length&&(o.addChildAction.forEach((function(t){t&&e.resetTargetChildState(t,a)})),o.addChildAction=[]);var l=null==o?void 0:o.activateNextTarget;if(l){var s=t.targets[l];s&&(l.endsWith("$")||!1!==s.active)&&e.resetTargetPipelineState(t,l,a)}}}},{key:"resetTargetChildState",value:function(t,r){var n="".concat(t.oid);if(!r.has(n)){r.add(n);for(var i=Object.keys(t.targetValues),a=0;a<i.length;a++){var o,l,s=i[a],u=t.targets[s];e.resetSingleTargetState(t,s),null!=u&&null!==(o=u.childAction)&&void 0!==o&&o.length&&(u.childAction.forEach((function(t){t&&e.resetTargetChildState(t,r)})),u.childAction=[]),null!=u&&null!==(l=u.addChildAction)&&void 0!==l&&l.length&&(u.addChildAction.forEach((function(t){t&&e.resetTargetChildState(t,r)})),u.addChildAction=[])}}}},{key:"resetSingleTargetState",value:function(t,r){var n=t.targetValues[r];n&&(n.completeCount=0,n.triggeredByCompleteCount=0,n.resetFlag=!0,n.nextTargetUpdateCount=0,n.status="complete"),t.cancelAnimation(),t.activatedTargets.length=0,t.removeFromActiveTargets(r),t.removeFromAnimatingMap(r),t.removeFromUpdatingTargets(r),e.clearPendingTargets(t,r)}}],(r=null)&&d(t.prototype,r),u&&d(t,u),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,u}()},675:function(e,t,r){r.d(t,{L:function(){return l}});var n=r(144);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 a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}var l=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.xNext=0,this.xNorth=0,this.xWest=0,this.xEast=0,this.xSouth=0,this.scrollLeft=0,this.scrollTop=0,this.absX=0,this.absY=0,this.xOverflowReset=0,this.xOverflowLimit=0,this.yNext=0,this.yNorth=0,this.yWest=0,this.yEast=0,this.ySouth=0,this.container=void 0,this.time=0},(t=[{key:"setCurrentChild",value:function(e){this.currentChild=e}},{key:"setLocation",value:function(){var e=this.currentChild;e.targets.excludeXYCalc||(e.x=this.xNext+e.getLeftMargin(),e.y=this.yNext+e.getTopMargin())}},{key:"isOverflow",value:function(){return"BI"!==this.currentChild.type&&(!("always"!==this.container.getContainerOverflowMode()&&"always"!==this.currentChild.getItemOverflowMode()&&("auto"!==this.container.getContainerOverflowMode()||"auto"!==this.currentChild.getItemOverflowMode()||this.currentChild.useContentWidth()||!this.checkChildOverflow()))||void 0)}},{key:"checkChildOverflow",value:function(){var e=this.currentChild.getMinWidth();return this.currentChild.x+e+this.currentChild.getLeftMargin()>this.xOverflowLimit}},{key:"overflow",value:function(){this.xNext=this.scrollLeft-this.xOverflowReset,this.yNext=Math.max(this.currentChild.getRealParent().viewport.ySouth,this.ySouth)}},{key:"appendNewLine",value:function(){var e=this.currentChild,t=e.getMeasuringScale(),r=e.getHeight()*t+this.currentChild.getTopMargin()+this.currentChild.getBottomMargin();this.xNext=this.scrollLeft-this.xOverflowReset;var n=this.yNext+r+e.val("appendNewLine");this.yEast=this.yNext,this.xSouth=this.xNext,this.ySouth=Math.max(this.ySouth,n),this.yEast=this.ySouth,this.yNext=this.ySouth,e.getRealParent().viewport.xEast=Math.max(e.getRealParent().viewport.xEast,this.xEast),e.getRealParent().viewport.ySouth=Math.max(e.getRealParent().viewport.ySouth,this.ySouth)}},{key:"computeBoundary",value:function(e,t){var r,n,i,a,o,l,s=e.getMeasuringScale(),u=e.getBaseWidth()*s,c=e.getBaseHeight()*s;return"layout"===t?(r=e.x,n=e.y,i=r-e.getLeftMargin(),a=r+u+e.getRightMargin(),o=n-e.getTopMargin(),l=n+c+e.getBottomMargin()):"absolute"===t?(r=e.absX-this.absX,n=e.absY-this.absY,i=r,a=r+u+e.getRightMargin(),o=n,l=n+c+e.getBottomMargin()):(i=r=e.getX(),a=r+u,o=n=e.getY(),l=n+c),{left:i,top:o,right:a,bottom:l}}},{key:"nextLocation",value:function(){var e=this.currentChild,t=e.getMeasuringScale(),r=e.getTopBaseHeight()*t,i=e.getHeight()*t+this.currentChild.getTopMargin()+this.currentChild.getBottomMargin(),a="always"===e.getItemOverflowMode()&&n.a.isWidthDefined(this.container)?this.container.getWidth():e.getBaseWidth()*t+this.currentChild.getLeftMargin()+this.currentChild.getRightMargin();if("BI"!==e.type&&"BI"===this.container.type){var o=this.computeBoundary(e,"layout"),l=this.computeBoundary(e,"animated");i=Math.max(i,o.bottom-l.top,l.bottom-o.top,o.bottom-o.top,l.bottom-l.top),a=Math.max(a,o.right-l.left,l.right-o.left,o.right-o.left,l.right-l.left)}var s=this.yNext+i;if(this.xNext+=a,e.isDomIsland()&&e.hasDom()){var u=this.computeBoundary(e,"absolute");s=u.bottom,this.xNext=u.right,this.xWest=u.left,this.yWest=u.top}this.yNext+=r,this.xSouth=this.xNext,this.yEast=this.yNext,this.xEast=Math.max(this.xNext,this.xEast),this.ySouth=Math.max(s,this.ySouth),e.getRealParent().viewport.xEast=Math.max(e.getRealParent().viewport.xEast,this.xEast),e.getRealParent().viewport.ySouth=Math.max(e.getRealParent().viewport.ySouth,this.ySouth)}}])&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.d=function(e,t){for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{$Dom:function(){return $Dom.J},AnimationManager:function(){return AnimationManager._},AnimationUtil:function(){return AnimationUtil.T},App:function(){return App.qw},Bracket:function(){return Bracket.d},BracketGenerator:function(){return BracketGenerator.M},ColorUtil:function(){return ColorUtil.I},DomInit:function(){return DomInit.v},Easing:function(){return Easing.G},Moves:function(){return Moves},SearchUtil:function(){return SearchUtil.X},TModel:function(){return TModel.c},TModelUtil:function(){return TModelUtil.a},TUtil:function(){return TUtil.d},TargetData:function(){return TargetData.u},TargetExecutor:function(){return TargetExecutor.j},TargetParser:function(){return TargetParser.D},TargetUtil:function(){return TargetUtil.g},fetch:function(){return App.hd},fetchImage:function(){return App.aK},getAnimationManager:function(){return App.s},getDomTModelById:function(){return App.UR},getEvents:function(){return App.kQ},getLoader:function(){return App.qI},getLocationManager:function(){return App.zw},getManager:function(){return App.EI},getPager:function(){return App.cI},getResizeLastUpdate:function(){return App.S9},getRunScheduler:function(){return App.fB},getScreenHeight:function(){return App.c$},getScreenWidth:function(){return App.r5},getTModelById:function(){return App.iP},getTargetManager:function(){return App.HJ},getVisibles:function(){return App.U$},isRunning:function(){return App.W_},tApp:function(){return App.E_},tRoot:function(){return App.Bt}});var App=__webpack_require__(142),TModel=__webpack_require__(528),TUtil=__webpack_require__(129);function _typeof(e){return _typeof="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},_typeof(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Moves=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"bounce",value:function(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.yStart,i=void 0===n?void 0:n,a=r.xStart,o=void 0===a?(0,App.r5)()/2:a,l=r.widthStart,s=void 0===l?50:l,u=r.heightStart,c=void 0===u?50:u,d=r.bFactor,h=void 0===d?.6:d,f=r.cFactor,v=void 0===f?.2:f,y=r.rotationStart,g=void 0===y?0:y,p=r.rIncrement,m=void 0===p?360:p,b=Math.max(10,(t-e)*h),T=TUtil.d.isDefined(i)?[i,e]:[e],w=[o],k=[s],S=[c],M=[g];Math.abs(0|b)>1;){T.push(t),T.push(t-b);var D=s*(1+v),E=c*(1-v);k.push(D),k.push(s),S.push(E),S.push(c),w.push(o-(D-s)/2),w.push(o),M.push(M[M.length-1]+m),b*=h,m*=.8,v*=h}w.push(o),T.push(t),k.push(s),S.push(c);var C=M[M.length-1]%360;return C>0&&C<360&&M.push(360),{x:{list:w},y:{list:T},width:{list:k},height:{list:S},rotate:{list:M}}}},{key:"bounceSimple",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.from,i=void 0===n?void 0:n,a=r.to,o=void 0===a?void 0:a,l=r.widthStart,s=void 0===l?void 0:l,u=r.heightStart,c=void 0===u?void 0:u,d=r.xStart,h=void 0===d?void 0:d,f=r.yStart,v=void 0===f?void 0:f,y=r.bFactor,g=void 0===y?.5:y,p=r.cFactor,m=void 0===p?.7:p;i=TUtil.d.isDefined(i)?i:t.getY()-70,o=TUtil.d.isDefined(o)?o:t.getY(),s=TUtil.d.isDefined(s)?s:t.getWidth(),c=TUtil.d.isDefined(c)?c:t.getHeight(),v=TUtil.d.isDefined(v)?v:t.getY(),h=TUtil.d.isDefined(h)?h:t.getX();return e.bounce(i,o,{yStart:v,xStart:h,widthStart:s,heightStart:c,bFactor:g,cFactor:m,rIncrement:0})}},{key:"shake",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.getWidth(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.getHeight(),i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=i.bFactor,o=void 0===a?.6:a,l=i.cFactor,s=void 0===l?.3:l,u=i.strength,c=void 0===u?20:u,d=(t.getParentValue("width")-r)/2,h=t.getY(),f=r,v=n,y=e.bounce(h-c,h,{xStart:d,widthStart:f,heightStart:v,bFactor:o,cFactor:s});return{x:y.x,width:y.width}}},{key:"spiral",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.startAngle,r=void 0===t?0:t,n=e.endAngle,i=void 0===n?360:n,a=e.angleStep,o=void 0===a?18:a,l=e.x,s=void 0===l?0:l,u=e.y,c=void 0===u?0:u,d=e.width,h=void 0===d?100:d,f=e.height,v=void 0===f?100:f,y=[],g=[],p=[],m=r;m<=i;m+=o){var b=m*(Math.PI/180);y.push(Math.floor(s+h*Math.cos(b))),g.push(Math.floor(c+v*Math.sin(b))),p.push(90+m)}return{x:{list:y},y:{list:g},rotate:{list:p}}}}])}();_defineProperty(Moves,"shakeMap",{});var SearchUtil=__webpack_require__(745),TargetData=__webpack_require__(432),TargetUtil=__webpack_require__(956),TargetParser=__webpack_require__(347),TModelUtil=__webpack_require__(144),DomInit=__webpack_require__(728),$Dom=__webpack_require__(185),Bracket=__webpack_require__(901),BracketGenerator=__webpack_require__(780),ColorUtil=__webpack_require__(210),Easing=__webpack_require__(736),TargetExecutor=__webpack_require__(985),AnimationManager=__webpack_require__(580),AnimationUtil=__webpack_require__(515);window.TargetJS=__webpack_exports__})();
|
|
1
|
+
(function(){"use strict";var __webpack_modules__={185:function(e,t,r){r.d(t,{J:function(){return s}});var n=r(129),i=r(142);function a(e){return a="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},a(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var s=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"string"==typeof t)this.selector=t,this.element=e.query(t);else if(t&&(this.element=t,1===t.nodeType)){var r=this.element.getAttribute("id");this.selector="string"==typeof r?r.startsWith("#")?r:"#"+r:null}this.hasRealChildren=!1,this.slotModeEnabled=!1,this.contentSlot=null,this.originalContent=void 0,this.textOnly=!0,this.transformProp=null,this.initTransformProp()}return t=e,r=[{key:"create",value:function(e){this.element=document.createElement(e),this.initTransformProp()}},{key:"initTransformProp",value:function(){if(this.element&&this.element.style){var e=this.element.style;this.transformProp="transform"in e?"transform":"webkitTransform"in e?"webkitTransform":null}else this.transformProp=null}},{key:"cloneTemplate",value:function(){var t;return new e(null===(t=this.element.content)||void 0===t?void 0:t.cloneNode(!0).children[0])}},{key:"clone",value:function(){return this.element.cloneNode(!0)}},{key:"exists",value:function(){return!!this.selector&&!!e.query(this.selector)}},{key:"getElement",value:function(){return this.element}},{key:"supportsWAAPI",value:function(){return!(!this.element||"function"!=typeof this.element.animate)}},{key:"findContentSlot",value:function(){if(this.contentSlot&&this.contentSlot.parentNode===this.element)return this.contentSlot;if(!this.element.firstElementChild)return null;var e=this.element.querySelector(':scope > [data-tj-slot="content"]');return e&&(this.contentSlot=e),e}},{key:"isNoSlotHost",value:function(){var e;return"body"===this.getTagName()||"true"===(null===(e=this.element)||void 0===e?void 0:e.getAttribute("data-tj-no-slot"))}},{key:"ensureContentSlotFirst",value:function(){var e=this.findContentSlot();return e?this.element.firstChild!==e&&this.element.insertBefore(e,this.element.firstChild):((e=document.createElement("div")).setAttribute("data-tj-slot","content"),this.element.insertBefore(e,this.element.firstChild),this.contentSlot=e),e}},{key:"enableSlotMode",value:function(){var e;if(!this.slotModeEnabled)if(this.isNoSlotHost())this.slotModeEnabled=!0;else if(null!==(e=this.element)&&void 0!==e&&e.firstChild){for(var t=this.ensureContentSlotFirst(),r=t.nextSibling;r;){var n=r.nextSibling;t.appendChild(r),r=n}this.slotModeEnabled=!0}else this.slotModeEnabled=!0}},{key:"ensureSlotMode",value:function(){if(this.isNoSlotHost())this.slotModeEnabled=!0;else{this.enableSlotMode();var e=this.findContentSlot();e&&this.element.firstChild!==e&&this.element.insertBefore(e,this.element.firstChild)}}},{key:"getComputedStyle",value:function(e){if(this.element){var t=window.getComputedStyle(this.element);return e?t.getPropertyValue(e)||t[e]:t}}},{key:"contains",value:function(e){return e instanceof Node&&this.element.contains(e)}},{key:"getTagName",value:function(){var e;return null===(e=this.element)||void 0===e||null===(e=e.tagName)||void 0===e?void 0:e.toLowerCase()}},{key:"setSelector",value:function(e){this.selector=e}},{key:"ensureId",value:function(e){this.selector="#"===e[0]?e:"#"+e,this.attr("id",this.selector.slice(1))}},{key:"getId",value:function(){return this.attr("id")}},{key:"focus",value:function(){this.element.focus()}},{key:"blur",value:function(){this.element.blur()}},{key:"attr",value:function(e,t){if(this.element)return n.d.isDefined(t)?void this.element.setAttribute(e,t):this.element.getAttribute(e)}},{key:"value",value:function(e){if(this.element){var t=this.element.value;return n.d.isDefined(e)&&(this.element.value=e),t}}},{key:"select",value:function(){this.element&&"function"==typeof this.element.select&&this.element.select()}},{key:"width",value:function(e){if(!n.d.isDefined(e))return this.element.offsetWidth;this.element.style.width=n.d.isNumber(e)?"".concat(e,"px"):e}},{key:"height",value:function(e){if(!n.d.isDefined(e))return this.element.offsetHeight;this.element.style.height=n.d.isNumber(e)?"".concat(e,"px"):e}},{key:"css",value:function(e){if(!n.d.isDefined(e))return this.element.className;this.element.className=e}},{key:"setStyleByMap",value:function(e){var t=this;Object.keys(e).forEach((function(r){t.style(r,e[r])}))}},{key:"style",value:function(e,t){if(2!==arguments.length)return 1===arguments.length?this.element.style[e]:this.element.style;this.element.style[e]=t}},{key:"getStyleValue",value:function(e){var t=this.style(e),r=n.d.isDefined(t)?t.replace(/[^-\d.]/g,""):0;return parseFloat(r)}},{key:"getBoundingClientRect",value:function(){return this.element.getBoundingClientRect()}},{key:"isXYWithinElement",value:function(e,t){var r=this.getBoundingClientRect();return e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom}},{key:"parent",value:function(){return this.element?this.element.parentElement:null}},{key:"detach",value:function(){e.detach(this.element)}},{key:"child",value:function(e){return this.element.children[e]}},{key:"elementCount",value:function(){return this.element.children.length}},{key:"swapElements",value:function(e,t){var r=t.nextSibling;r===e?this.element.insertBefore(e,t):(this.element.insertBefore(t,e),this.element.insertBefore(e,r))}},{key:"insertAfterContentSlot",value:function(e){if(this.element)if(this.isNoSlotHost())this.element.appendChild(e);else{var t=this.ensureContentSlotFirst(),r=t?t.nextSibling:this.element.firstChild;r?this.element.insertBefore(e,r):this.element.appendChild(e)}}},{key:"insertFirst$Dom",value:function(e){this.ensureSlotMode(),this.insertAfterContentSlot(e.element),this.hasRealChildren=!0}},{key:"relocate",value:function(e,t){this.ensureSlotMode();var r=t+(this.findContentSlot()?1:0);this.element.insertBefore(e.$dom.element,this.element.children[r]||null)}},{key:"appendTModel$Dom",value:function(e){this.ensureSlotMode(),this.element.appendChild(e.$dom.element),this.hasRealChildren=!0}},{key:"append$Dom",value:function(e){this.ensureSlotMode(),this.element.appendChild(e.element),this.hasRealChildren=!0}},{key:"appendElement",value:function(e){this.ensureSlotMode(),this.element.appendChild(e),this.hasRealChildren=!0}},{key:"removeElement",value:function(e){if(e){var t=e.parentNode;return t===this.element?(this.element.removeChild(e),!0):t?(t.removeChild(e),!1):void 0}}},{key:"html",value:function(e){n.d.isDefined(e)&&(this.isNoSlotHost()||!this.hasRealChildren?this.element.innerHTML=e:this.ensureContentSlotFirst().innerHTML=e,this.originalContent=e,this.textOnly=!1)}},{key:"text",value:function(e){n.d.isDefined(e)&&(this.isNoSlotHost()||!this.hasRealChildren?this.element.textContent=e:this.ensureContentSlotFirst().textContent=e,this.originalContent=e,this.textOnly=!0)}},{key:"clearContent",value:function(){this.element&&(!this.isNoSlotHost()&&this.hasRealChildren?this.ensureContentSlotFirst().innerHTML=this.originalContent||"":this.element.innerHTML=this.originalContent||"")}},{key:"deleteAll",value:function(){this.element&&(this.element.innerHTML=this.originalContent||"",this.hasRealChildren=!1,this.contentSlot=null,this.slotModeEnabled=!1)}},{key:"outerHTML",value:function(e){this.element.outerHTML=e}},{key:"isEmpty",value:function(){return""===this.element.innerHTML}},{key:"innerHTML",value:function(e){if(!n.d.isDefined(e))return this.element.innerHTML;this.element.innerHTML=e}},{key:"innerText",value:function(e){if(!n.d.isDefined(e))return this.element.innerText;this.element.innerText=e}},{key:"addClass",value:function(e){var t=this.attr("class"),r=t?t.includes(e)?t:"".concat(t," ").concat(e):e;r!==t&&this.attr("class",r)}},{key:"addEvent",value:function(e,t,r,n){this.element.addEventListener?this.element.addEventListener(e,t,{capture:!!r,passive:!!n}):this.element.attachEvent("on".concat(e),t)}},{key:"detachEvent",value:function(e,t,r){this.element.removeEventListener?this.element.removeEventListener(e,t,r):this.element.detachEvent?this.element.detachEvent("on".concat(e),t):this.element["on".concat(e)]=null}},{key:"transform",value:function(e){this.element.style[this.transformProp]=e}},{key:"animate",value:function(e,t){return this.element.animate(e,t)}},{key:"getContext",value:function(t,r){var i=n.d.isDefined(r)?e.query(r):this.query("canvas");return i?i.getContext(t):void 0}},{key:"query",value:function(e){return this.element.querySelector(e)}},{key:"queryAll",value:function(e){return this.element.querySelectorAll(e)}},{key:"findFirstByClass",value:function(t){return e.findFirstByClass(t,this.element)}},{key:"findFirstByTag",value:function(t){return e.findFirstByTag(t,this.element)}},{key:"getScrollTop",value:function(){var e,t;return null!==(e=null===(t=this.element)||void 0===t?void 0:t.scrollTop)&&void 0!==e?e:0}},{key:"getScrollLeft",value:function(){var e,t;return null!==(e=null===(t=this.element)||void 0===t?void 0:t.scrollLeft)&&void 0!==e?e:0}}],a=[{key:"createTemplate",value:function(t){var r=new e;return r.create("template"),r.innerHTML(t.trim()),r}},{key:"createDocumentFragment",value:function(){return document.createDocumentFragment()}},{key:"query",value:function(t){return"#"===t[0]?e.findById(t):"."===t[0]?e.findFirstByClass(t):e.findFirstByTag(t)}},{key:"querySelector",value:function(e){return document.querySelector(e)}},{key:"findById",value:function(e){return document.getElementById("#"===e[0]?e.slice(1):e)}},{key:"findFirstByClass",value:function(t,r){var n=e.findByClass(t,r);return n.length>0?n[0]:null}},{key:"findFirstByTag",value:function(t,r){var n=e.findByTag(t,r);return n.length>0?n[0]:null}},{key:"findByTag",value:function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).getElementsByTagName(e)}},{key:"findByClass",value:function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).getElementsByClassName("."===e[0]?e.slice(1):e)}},{key:"findNearestParentWithId",value:function(e){for(;e;){var t="function"==typeof e.getAttribute&&e.getAttribute("id")?e.getAttribute("id"):null;if(t&&(0,i.EI)().visibleOidMap[t])return t;e=e.parentElement}}},{key:"detach",value:function(e){var t=n.d.isDefined(e)?e.parentElement:null;t&&t.removeChild(e)}},{key:"hasFocus",value:function(e){return e.hasDom()&&document.activeElement===e.$dom.element}},{key:"getWindowScrollTop",value:function(){return window.pageYOffset||document.documentElement.scrollTop||0}},{key:"getWindowScrollLeft",value:function(){return window.pageXOffset||document.documentElement.scrollLeft||0}},{key:"getScreenWidth",value:function(){return document.documentElement.clientWidth||document.body.clientWidth}},{key:"getScreenHeight",value:function(){return document.documentElement.clientHeight||document.body.clientHeight}},{key:"ready",value:function(t){new e(document).addEvent("DOMContentLoaded",t)}},{key:"ajax",value:function(e){var t=new XMLHttpRequest,r="";e.data&&(r=Object.keys(e.data).map((function(t){return"".concat(t,"=").concat(encodeURIComponent(e.data[t]))})).join("&")),t.onreadystatechange=function(){if(4===t.readyState)if(200===t.status){var r="json"===e.dataType?JSON.parse(this.responseText):this.responseText;e.success(r)}else e.error(t.status)},"POST"===e.type?(t.open(e.type,e.url,!0),t.setRequestHeader("Content-type","application/x-www-form-urlencoded"),t.send(r)):(e.url+=r?e.url>""&&e.url.indexOf("?")>=0?"&".concat(r):"?".concat(r):"",t.open(e.type,e.url,!0),t.send())}}],r&&o(t.prototype,r),a&&o(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,a}()},580:function(e,t,r){r.d(t,{_:function(){return S}});var n=r(144),i=r(515),a=r(432),o=r(142),l=r(956),s=r(129);function u(e){return u="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},u(e)}function c(){c=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var a=t&&t.prototype instanceof b?t:b,o=Object.create(a.prototype),l=new A(n||[]);return i(o,"_invoke",{value:_(e,r,l)}),o}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var v="suspendedStart",y="suspendedYield",g="executing",p="completed",m={};function b(){}function T(){}function w(){}var k={};d(k,o,(function(){return this}));var S=Object.getPrototypeOf,M=S&&S(S(P([])));M&&M!==r&&n.call(M,o)&&(k=M);var D=w.prototype=b.prototype=Object.create(k);function E(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(i,a,o,l){var s=f(e[i],e,a);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==u(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(d).then((function(e){c.value=e,o(c)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function _(t,r,n){var i=v;return function(a,o){if(i===g)throw Error("Generator is already running");if(i===p){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var l=n.delegate;if(l){var s=x(l,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===v)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=g;var u=f(t,r,n);if("normal"===u.type){if(i=n.done?p:y,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=p,n.method="throw",n.arg=u.arg)}}}function x(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function L(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 A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(u(t)+" is not iterable")}return T.prototype=w,i(D,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:T,configurable:!0}),T.displayName=d(w,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===T||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,s,"GeneratorFunction")),e.prototype=Object.create(D),e},t.awrap=function(e){return{__await:e}},E(C.prototype),d(C.prototype,l,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new C(h(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},E(D),d(D,s,"Generator"),d(D,o,(function(){return this})),d(D,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=P,A.prototype={constructor:A,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(O),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=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 r=this;function i(n,i){return l.type="throw",l.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(o)},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),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;O(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function d(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,i)}function h(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){d(a,n,i,o,l,"next",e)}function l(e){d(a,n,i,o,l,"throw",e)}o(void 0)}))}}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||b(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 v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e,t,r){return(t=k(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=b(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function m(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(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 b(e,t){if(e){if("string"==typeof e)return T(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?T(e,t):void 0}}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,k(n.key),n)}}function k(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}var S=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.waapiPoller={rafId:0,alive:!0},this.recordMap=new Map,this.isShuttingDown=!1,this.toid="blank"},t=[{key:"animate",value:function(e,t,r){if(!this.isShuttingDown&&e.hasDom()){var a=e.$dom.getElement();if(t.frames.sort((function(e,t){return e.keyTime-t.keyTime})),this.cancelElementAnimationsForKeys(a,Object.keys(t.keyMap)),e.lastBatch){var o=Math.min(s.d.now()-e.lastBatch.startTime,e.lastBatch.totalDuration);this.cutLastBatch(e,e.lastBatch,o),this.callFireOnEndOnConflict(e,e.lastBatch,t),this.mergeBatches(e.lastBatch,t),this.deleteAnimation(e)}var u,c=Math.max(t.totalDuration,1),d=m(new Set(Object.values(t.keyMap).flatMap((function(e){return m(e)})))),h=p(d);try{for(h.s();!(u=h.n()).done;){var f=u.value;this.backfillKeyAcrossFramesUsingMorph(e,f,t.frames)}}catch(e){h.e(e)}finally{h.f()}var v=!1,g=t.frames.map((function(t){var r=y({},t.styleMap);if(r.offset=t.keyTime/c,Object.keys(t.tfMap).length){Object.keys(e.tfMap).forEach((function(t){e.tfMap[t]=e.val(t)}));var a=y(y({},e.tfMap),t.tfMap);r.transform=n.a.getTransformString(e,a),t.tfMap=a,v=!0}return i.T.addUnitsToFrame(r),r})),b=this.filterRedundantKeyframes(g),T={duration:c,fill:"none",iterations:1,easing:t.easing||"linear"};t.startTime=s.d.now(),e.lastBatch=t,e.lastBatch.transformAnimation=v,e.finalKeyframe=b[b.length-1],e.finalRawFrame=t.frames[t.frames.length-1];var w,k=a.animate(b,T),S=p(d);try{for(S.s();!(w=S.n()).done;){var M=w.value,D=l.g.getTargetName(M),E=this.getRecordId(e,M),C=l.g.getOriginalNames(e,M),_=C.originalTModel,x=C.originalTargetName,L={recId:E,cleanKey:D,originalKey:M,tmodel:e,anim:k,originalTModel:_,originalTargetName:x,frames:this.collectFramesForKey(t,D),status:"playing",needsFireOnStep:!0,hooks:r};e.addToAnimatingMap(M,L),e.targetValues[M]&&(e.targetValues[M].status="updating"),this.recordMap.set(E,L)}}catch(e){S.e(e)}finally{S.f()}this.startProgressPoller()}}},{key:"finalizeAnimation",value:function(e){var t,r=p(this.recordMap);try{for(r.s();!(t=r.n()).done;){var n=f(t.value,2),a=n[0],l=n[1];if(l.anim===e&&"playing"!==l.status&&"canceled"!==l.status){var s=l.tmodel,u=l.originalKey,c=l.cleanKey;if(s.removeFromAnimatingMap(u),this.recordMap.delete(a),s.finalRawFrame){var d=l.frames,h=d&&d[d.length-1],v=h?h.value:this.getAt(s.finalRawFrame,c);this.setAt(s,c,v),s.val(u,v);var y,g,m=s.targetValues[u];m&&(m.step=s.getTargetSteps(u),m.valuePointer=null!==(y=null===(g=m.valueList)||void 0===g?void 0:g.length)&&void 0!==y?y:0,m.value=v,s.setActual(u,v),s.isTargetImperative(u)&&(m.cycle=m.cycles))}s.hasAnimatingTargets()||(s.finalKeyframe&&s.hasDom()&&i.T.fixStyleByAnimation(s,s.finalKeyframe),s.lastBatch=void 0,s.pausedBatch=void 0),l.status="complete",l.hooks.fireOnEnd(s,u),(0,o.fB)().scheduleOnlyIfEarlier(1,"animate-".concat(s.oid,"---").concat(u))}}}catch(e){r.e(e)}finally{r.f()}(0,o.fB)().schedule(35,"finalizeAnimation")}},{key:"startProgressPoller",value:function(){var e=this;if(!this.waapiPoller.rafId){this.waapiPoller.alive=!0;var t=function(){var r,n=new Set,i=!1,a=p(e.recordMap);try{for(a.s();!(r=a.n()).done;){var o,l,s,u=f(r.value,2)[1];if("canceled"!==u.status){"playing"===u.status&&(i=!0),e.updateTModelFromRecord(u);var c=u.anim.playState,d=null===(o=u.anim.effect)||void 0===o||null===(l=(s=o).getComputedTiming)||void 0===l?void 0:l.call(s);("finished"===c||"idle"===c||d&&d.progress>=.999999)&&(u.status="done",n.add(u.anim))}}}catch(e){a.e(e)}finally{a.f()}var h,v=p(n);try{for(v.s();!(h=v.n()).done;){var y=h.value;e.finalizeAnimation(y)}}catch(e){v.e(e)}finally{v.f()}e.recordMap.size>0||i?e.waapiPoller.rafId=requestAnimationFrame(t):(e.waapiPoller.alive=!1,e.waapiPoller.rafId=0)};this.waapiPoller.rafId=requestAnimationFrame(t)}}},{key:"getAt",value:function(e,t){return a.u.isTransformKey(t)?e.tfMap[t]:e.styleMap[t]}},{key:"setAt",value:function(e,t,r){a.u.isTransformKey(t)?e.tfMap[t]=r:e.styleMap[t]=r}},{key:"backfillKeyAcrossFramesUsingMorph",value:function(e,t,r){for(var i=l.g.getTargetName(t),a=r.map((function(e){return e.keyTime})),o=[],u=0;u<r.length;u++)void 0!==this.getAt(r[u],i)&&o.push(u);if(o.length>=2)for(var c=0;c<o.length-1;c++){var d=o[c],h=o[c+1],f=this.getAt(r[d],i),v=this.getAt(r[h],i),y=r[h].keyMeta.get(i);if(y)for(var g=y.steps,p=y.interval,m=g*p,b=a[d],T=(a[h]-b)/m,w=d+1;w<h;w++){var k=a[w]-b,S=s.d.limit(Math.round(k/(T*p)),0,g),M=n.a.easingMorph(e,t,f,v,S,g);this.setAt(r[w],i,M),r[w].keyMeta.set(i,{steps:S,interval:p})}}if(o.length)for(var D=o[o.length-1],E=r[D],C=this.getAt(E,i),_=D+1;_<r.length;_++)this.setAt(r[_],i,C),r[_].keyMeta.set(i,{steps:0})}},{key:"freezeTModelAtCurrentTime",value:function(e){var t=e.lastBatch,r=Math.min(s.d.now()-t.startTime,t.totalDuration);this.cutLastBatch(e,t,r);var a=t.frames[0];if(a){var o=y({},a.styleMap);if(Object.keys(a.tfMap).length>0){Object.keys(e.tfMap).forEach((function(t){e.tfMap[t]=e.val(t)}));var l=y(y({},e.tfMap),a.tfMap);a.tfMap=l,o.transform=n.a.getTransformString(e,l)}i.T.addUnitsToFrame(o),i.T.fixStyleByAnimation(e,o)}}},{key:"collectFramesForKey",value:function(e,t){var r,n=[],i=e.totalDuration,a=p(e.frames);try{for(a.s();!(r=a.n()).done;){var o=r.value,l=this.getAt(o,t);if(void 0!==l){var s=o.keyMeta.get(t);n.push({value:l,time:o.keyTime,steps:null==s?void 0:s.steps,interval:null==s?void 0:s.interval,offset:o.keyTime/i})}}}catch(e){a.e(e)}finally{a.f()}return n.sort((function(e,t){return e.time-t.time})),n.length>=2?n:void 0}},{key:"getRecordId",value:function(e,t){return"".concat(e.oid,"-").concat(t)}},{key:"updateTModelFromRecord",value:function(e){var t=e.tmodel,r=e.originalKey,n=e.cleanKey,i=this.getValueFromAnim(e);if(i){var a=i.value,o=i.step;this.setAt(t,n,a),t.val(r,a),t.targetValues[r]&&(t.targetValues[r].step=o,t.setActual(r,a),e.needsFireOnStep&&(e.hooks.fireOnStep(t,r,o)||(e.needsFireOnStep=!1)))}}},{key:"delete",value:function(e){var t=e.recId,r=e.originalKey,n=e.tmodel;e.anim.cancel(),n.removeFromAnimatingMap(r),this.recordMap.delete(t)}},{key:"deleteAnimation",value:function(e){var t,r=p(this.recordMap);try{for(r.s();!(t=r.n()).done;){var n=f(t.value,2),i=n[0],a=n[1];i.startsWith("".concat(e.oid,"-"))&&this.delete(a)}}catch(e){r.e(e)}finally{r.f()}e.lastBatch=void 0,e.finalKeyframe=void 0,e.finalRawFrame=void 0,e.clearAnimatingMap()}},{key:"cancelKey",value:function(e,t){var r=this.getRecordId(e,t),n=this.recordMap.get(r);n&&(n.status="canceled")}},{key:"deleteAll",value:(d=h(c().mark((function e(){var t,r,n,i,a,o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.isShuttingDown=!0,this.waapiPoller.rafId&&(cancelAnimationFrame(this.waapiPoller.rafId),this.waapiPoller.rafId=0,this.waapiPoller.alive=!1),t=new Set,r=p(this.recordMap),e.prev=4,r.s();case 6:if((n=r.n()).done){e.next=22;break}if(i=f(n.value,2),a=i[1],o=a.tmodel,this.updateTModelFromRecord(a),this.delete(a),!t.has(o.oid)){e.next=13;break}return e.abrupt("continue",20);case 13:t.add(o.oid),this.freezeTModelAtCurrentTime(o),o.pausedBatch=o.lastBatch,o.lastBatch=void 0,o.finalKeyframe=void 0,o.finalRawFrame=void 0,o.clearAnimatingMap();case 20:e.next=6;break;case 22:e.next=27;break;case 24:e.prev=24,e.t0=e.catch(4),r.e(e.t0);case 27:return e.prev=27,r.f(),e.finish(27);case 30:this.recordMap.clear();case 31:case"end":return e.stop()}}),e,this,[[4,24,27,30]])}))),function(){return d.apply(this,arguments)})},{key:"flushOneFrame",value:(u=h(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise(requestAnimationFrame);case 2:this.isShuttingDown=!1;case 3:case"end":return e.stop()}}),e,this)}))),function(){return u.apply(this,arguments)})},{key:"getValueFromAnim",value:function(e){var t,r,i=e.originalKey,a=e.anim,o=e.frames;if(o){var l=null===(t=a.effect)||void 0===t||null===(r=t.getComputedTiming)||void 0===r?void 0:r.call(t);if(l){var u=s.d.isDefined(l.progress)?s.d.limit(l.progress,0,1):1,c=o.length-1,d=0;if(u<=o[0].offset)d=0;else if(u>=o[c].offset)d=c-1;else for(var h=0;h<c;h++)if(u>=o[h].offset&&u<o[h+1].offset){d=h;break}var f=o[d],v=o[d+1],y=f.value,g=v.value,p=f.offset,m=v.offset-p;if(m>0){var b=s.d.limit((u-p)/m,0,1),T=v.steps,w=Math.round(b*T);return w=s.d.limit(w,0,T),{value:n.a.morph(i,y,g,b),step:w,steps:T}}}}}},{key:"cutLastBatch",value:function(e,t,r){for(var n=0;n<t.frames.length&&t.frames[n].keyTime<=r;)n++;if(n<t.frames.length&&r!==t.frames[n].keyTime){t.frames.splice(n,0,{keyTime:r,tfMap:{},styleMap:{},keyMeta:new Map});var i,a=p(m(new Set(Object.values(t.keyMap).flatMap((function(e){return m(e)})))));try{for(a.s();!(i=a.n()).done;){var o=i.value;this.backfillKeyAcrossFramesUsingMorph(e,o,t.frames)}}catch(e){a.e(e)}finally{a.f()}t.frames=t.frames.slice(n)}t.frames.forEach((function(e){e.keyTime=Math.max(0,e.keyTime-r)})),t.totalDuration=t.frames.length?t.frames[t.frames.length-1].keyTime:0}},{key:"callFireOnEndOnConflict",value:function(e,t,r){for(var n=t.keyMap,i=r.keyMap,a=0,o=Object.keys(i);a<o.length;a++){var l=o[a],s=n[l],u=i[l];if(s&&u){var c,d=p(s);try{for(d.s();!(c=d.n()).done;){var h=c.value;if(!u.has(h)){var f=this.getRecordId(e,h),v=this.recordMap.get(f);v&&"playing"===v.status&&(this.updateTModelFromRecord(v),v.status="complete",v.hooks.fireOnEnd(v.tmodel,h),v.tmodel.removeFromAnimatingMap(h),this.recordMap.delete(f))}}}catch(e){d.e(e)}finally{d.f()}}}}},{key:"mergeBatches",value:function(e,t){var r,n=Object.keys(t.keyMap),i=[],a=p(e.frames);try{for(a.s();!(r=a.n()).done;){var o,l=r.value,s=p(n);try{for(s.s();!(o=s.n()).done;){var u=o.value;delete l.styleMap[u],delete l.tfMap[u],delete e.keyMap[u]}}catch(e){s.e(e)}finally{s.f()}(Object.keys(l.styleMap).length||Object.keys(l.tfMap).length)&&i.push(l)}}catch(e){a.e(e)}finally{a.f()}t.frames=[].concat(i,m(t.frames)),t.frames.sort((function(e,t){return e.keyTime-t.keyTime}));var c,d=[],h=p(t.frames);try{for(h.s();!(c=h.n()).done;){var v=c.value,g=d[d.length-1];if(g&&g.keyTime===v.keyTime){if(Object.assign(g.styleMap,v.styleMap),Object.assign(g.tfMap,v.tfMap),v.keyMeta){var b,T=p(v.keyMeta);try{for(T.s();!(b=T.n()).done;){var w=f(b.value,2),k=w[0],S=w[1];g.keyMeta.set(k,S)}}catch(e){T.e(e)}finally{T.f()}}}else d.push(v)}}catch(e){h.e(e)}finally{h.f()}t.keyMap=y(y({},t.keyMap),e.keyMap),t.frames=d,t.totalDuration=t.frames.length?t.frames[t.frames.length-1].keyTime:0}},{key:"pauseTModel",value:function(e){var t=e.lastBatch;if(t){var r,n=p(e.animatingMap);try{for(n.s();!(r=n.n()).done;){var i=f(r.value,1)[0];e.targetValues[i]&&(e.targetValues[i].status="pause")}}catch(e){n.e(e)}finally{n.f()}var a=Math.min(s.d.now()-t.startTime,t.totalDuration);this.cutLastBatch(e,t,a),e.pausedBatch=t,e.lastBatch=void 0,this.deleteAnimation(e)}}},{key:"areFramesEqual",value:function(e,t){var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0,a=r;i<a.length;i++){var o=a[i];if("offset"!==o&&e[o]!==t[o])return!1}return!0}},{key:"filterRedundantKeyframes",value:function(e){if(e.length<=2)return e;for(var t=[e[0]],r=1;r<e.length-1;r++){var n=t[t.length-1],i=e[r];this.areFramesEqual(n,i)||t.push(i)}return t.push(e[e.length-1]),t}},{key:"cancelElementAnimationsForKeys",value:function(e,t){if(e.getAnimations){var r,n=new Set(t),i=p(e.getAnimations());try{for(i.s();!(r=i.n()).done;){var a=r.value,o=a.effect;if(null!=o&&o.getKeyframes){var l,s=o.getKeyframes(),u=!1,c=p(s);try{for(c.s();!(l=c.n()).done;){for(var d=l.value,h=0,f=Object.keys(d);h<f.length;h++){var v=f[h];if(n.has(v)){u=!0;break}}if(u)break}}catch(e){c.e(e)}finally{c.f()}if(u)try{a.cancel()}catch(e){}}}}catch(e){i.e(e)}finally{i.f()}}}}],t&&w(e.prototype,t),r&&w(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r,u,d}()},515:function(e,t,r){r.d(t,{T:function(){return c}});var n=r(956),i=r(432),a=r(144),o=r(142);function l(e){return l="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},l(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function u(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,l=[{key:"overrideAnimatedKeyWithSnap",value:function(t,r,a){for(var l=Array.isArray(r)?r:[r],s=Array.isArray(a)?a:[a],u={},c={},d=new Map,h={},f={},v=new Map,y={},g=!1,p=0;p<l.length;p++){var m=l[p];g=!0;var b=s[p],T=t.targetValues[m],w=n.g.getTargetName(m);i.u.isTransformKey(w)?(u[w]=b,h[w]=b):(c[w]=b,f[w]=b),d.set(w,{steps:1,interval:1}),v.set(w,{steps:1,interval:1}),(y[w]=new Set).add(m),T&&(T.value=b,T.steps=1,T.interval=0,T.snapAnimation=!0)}if(g){var k=[];k.push({keyTime:0,tfMap:u,styleMap:c,keyMeta:d}),k.push({keyTime:1,tfMap:h,styleMap:f,keyMeta:v});var S={frames:k,keyMap:y,totalDuration:1};(0,o.s)().animate(t,S,e.getAnimationHooks())}}},{key:"fixStyleByAnimation",value:function(e,t){if(e.hasDom())for(var r=0,n=Object.keys(t);r<n.length;r++){var a=n[r];if("offset"!==a){var o=t[a];if(null!==o){var l=o;if("string"==typeof o&&o.endsWith("px")){var s=Number(o.slice(0,-2));Number.isNaN(s)||(l=s)}"width"===a?(e.styleMap.width=l,e.$dom.width(o)):"height"===a?(e.styleMap.height=l,e.$dom.height(o)):"transform"===a?e.$dom.transform(o,e.val("transformOrder")):i.u.transformMap[a]||(e.$dom.style(a,o),e.styleMap[a]=l)}}}}},{key:"addUnitsToFrame",value:function(e){for(var t=0,r=Object.keys(e);t<r.length;t++){var n=r[t];if("offset"!==n&&"transform"!==n){var a=e[n];null==a||Number.isNaN(a)?delete e[n]:"number"==typeof a&&i.u.styleWithUnitMap[n]&&(("width"===n||"height"===n)&&a<0&&(a=0),e[n]="".concat(a,"px"))}}}},{key:"getAnimationHooks",value:function(){return{morph:function(e,t,r,n,i,o){return a.a.morph(e,t,r,n,i,o)},fireOnStep:function(e,t,r){return(0,o.HJ)().fireOnStep(e,t,r)},fireOnEnd:function(e,t){return(0,o.HJ)().fireOnEnd(e,t)}}}}],(r=null)&&s(t.prototype,r),l&&s(t,l),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,l}()},142:function(e,t,r){r.d(t,{qw:function(){return Re},hd:function(){return qe},aK:function(){return Ke},s:function(){return Je},UR:function(){return at},kQ:function(){return $e},qI:function(){return Ye},zw:function(){return Ge},EI:function(){return ze},cI:function(){return Xe},S9:function(){return nt},fB:function(){return Ze},c$:function(){return tt},r5:function(){return et},iP:function(){return it},HJ:function(){return Qe},U$:function(){return rt},W_:function(){return Ue},E_:function(){return xe},Bt:function(){return We}});var n=r(185),i=r(528),a=r(745),o=r(129),l=r(432),s=r(985);function u(e){return u="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},u(e)}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||h(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 d(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=h(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function h(e,t){if(e){if("string"==typeof e)return f(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g(n.key),n)}}function y(e,t,r){return(t=g(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}var p=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$document=new n.J(document),this.currentTouch={deltaY:0,deltaX:0,prevDeltaX:0,prevDeltaY:0,pinchDelta:0,key:"",manualMomentumFlag:!1,orientation:"none",dir:"",source:""},this.lastEvent=void 0,this.touchTimeStamp=0,this.cursor={x:0,y:0},this.start0=void 0,this.start1=void 0,this.end0=void 0,this.end1=void 0,this.touchCount=0,this.canFindHandlers=!0,this.swipeStartX=0,this.swipeStartY=0,this.currentEventName="",this.currentEventType="",this.currentOriginalEvent=void 0,this.currentKey="",this.currentHandlers={touch:null,scrollLeft:null,scrollTop:null,swipe:null,pinch:null,focus:null,justFocused:null,blur:null,leave:null,enter:null,start:null,end:null,hover:null},this.eventQueue=[],this.attachedEventMap={},this.eventTargetMap={},this.allEvents={},this.windowScrollX=0|window.scrollX,this.windowScrollY=0|window.scrollY,this.windowEpoch=0,this.eventEpoch=0,Object.values(l.u.events).forEach((function(e){Object.assign(t.allEvents,e)})),this.hovered=new Set,this.bindedHandleWindowEvent=this.handleWindowEvent.bind(this),this.bindedHandleEvent=this.handleEvent.bind(this),this.bindedParentHandleEvent=this.handleDocEvent.bind(this)}return t=e,r=[{key:"detachWindowEvents",value:function(){var e=this;Object.keys(l.u.events.windowEvents).forEach((function(t){xe.$window.detachEvent(t,e.bindedHandleWindowEvent)}))}},{key:"attachWindowEvents",value:function(){var e=this;Object.keys(l.u.events.windowEvents).forEach((function(t){xe.$window.addEvent(t,e.bindedHandleWindowEvent)}))}},{key:"detachDocumentEvents",value:function(e){var t=this,r=l.u.events[e];Object.keys(r).forEach((function(e){var n=r[e];t.$document.detachEvent(e,t.bindedParentHandleEvent,n.capture)}))}},{key:"attachDocumentEvents",value:function(e){var t=this,r=l.u.events[e];Object.keys(r).forEach((function(e){var n=r[e];t.$document.addEvent(e,t.bindedParentHandleEvent,n.capture,n.passive)}))}},{key:"attachEvents",value:function(e){var t,r=d(e);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(n.externalEventMap){var i,a=d(n.externalEventMap);try{for(a.s();!(i=a.n()).done;){var o=c(i.value,1)[0];this.attachTargetEvents(n,o,!0)}}catch(e){a.e(e)}finally{a.f()}}}}catch(e){r.e(e)}finally{r.f()}}},{key:"attachTargetEvents",value:function(e,t,r){var n=this,i="".concat(e.oid," ").concat(t),a=l.u.targetToEventsMapping[t];a&&Array.isArray(a)&&0!==a.length&&a.forEach((function(t){var a=l.u.events[t];if(a){var o="undefined"!=typeof window&&!!window.PointerEvent;Object.keys(a).forEach((function(t){if(!o||!t.startsWith("mouse")){var l=a[t],s=!!l.windowEvent,u=s?xe.$window:e.hasDom()?e.$dom:null;if(!u)return!1;var c="".concat(i," ").concat(s?"win":"dom"),d=n.eventTargetMap[c]===u,h="".concat(e.oid," ").concat(t," ").concat(s?"win":"dom"),f=n.attachedEventMap[h]&&n.attachedEventMap[h].$dom===u;!r&&d&&f||(u.detachEvent(t,n.bindedHandleEvent,l.capture),u.addEvent(t,n.bindedHandleEvent,l.capture,l.passive),n.eventTargetMap[c]=u,n.attachedEventMap[h]={$dom:u,event:t,capture:!!l.capture})}}))}}))}},{key:"detachAll",value:function(){for(var e=0,t=Object.keys(this.attachedEventMap);e<t.length;e++){var r=t[e],n=this.attachedEventMap[r],i=n.$dom,a=n.event,o=n.capture;i.exists()&&i.detachEvent(a,this.bindedHandleEvent,o)}this.attachedEventMap={},this.eventTargetMap={}}},{key:"resetEventsOnTimeout",value:function(){if(this.currentTouch.deltaY||this.currentTouch.deltaX||this.currentTouch.pinchDelta){var e=this.touchTimeStamp-o.d.now();e>100&&(this.currentTouch.deltaY*=.95,this.currentTouch.deltaX*=.95,this.currentTouch.pinchDelta*=.95,Math.abs(this.currentTouch.deltaY)<.1&&(this.currentTouch.deltaY=0),Math.abs(this.currentTouch.deltaX)<.1&&(this.currentTouch.deltaX=0),Math.abs(this.currentTouch.pinchDelta)<.1&&(this.currentTouch.pinchDelta=0),0===this.currentTouch.deltaX&&0===this.currentTouch.deltaY&&0===this.currentTouch.pinchDelta&&(this.touchTimeStamp=0)),(e<=0||0===this.touchTimeStamp)&&(this.currentTouch.deltaY=0,this.currentTouch.deltaX=0,this.currentTouch.pinchDelta=0,this.currentTouch.dir="",this.touchTimeStamp=0),Ze().schedule(10,"scroll decay")}}},{key:"findEventHandlers",value:function(e){var t,r,i,o,l,s,u,c,d=e.tmodel,h=e.eventType;d&&(t=a.X.findFirstClickHandler(d),r=a.X.findFirstSwipeHandler(d),u=a.X.findFirstEnterHandler(d),c=a.X.findFirstLeaveHandler(d),i=a.X.findFirstScrollLeftHandler(d,h),o=a.X.findFirstScrollTopHandler(d,h),l=a.X.findFirstPinchHandler(d),s=n.J.hasFocus(d)?d:this.currentHandlers.focus),this.currentHandlers.scrollLeft===i&&this.currentHandlers.scrollTop===o||this.clearTouch(),this.currentHandlers.focus!==s&&(this.currentHandlers.justFocused=s,this.currentHandlers.blur=this.currentHandlers.focus),this.currentHandlers.hover=null!=d&&d.canHandleEvent("onHover")?d:void 0,this.currentHandlers.click=t,this.currentHandlers.swipe=r,this.currentHandlers.scrollLeft=i,this.currentHandlers.scrollTop=o,this.currentHandlers.pinch=l,this.currentHandlers.focus=s,this.currentHandlers.enter=u,this.currentHandlers.leave=c}},{key:"captureEvents",value:function(){if(this.currentTouch.prevDeltaX=0,this.currentTouch.prevDeltaY=0,this.currentHandlers.enter=void 0,this.currentHandlers.leave=void 0,this.currentHandlers.justFocused=void 0,this.currentHandlers.blur=void 0,this.currentHandlers.end=void 0,this.currentKey=this.currentTouch.key,0===this.eventQueue.length)return this.currentEventName="",this.currentEventType="",this.currentOriginalEvent=void 0,void(this.currentKey="");var e,t=this.eventQueue.shift();(this.canFindHandlers&&this.findEventHandlers(t),"end"===t.eventType||"click"===t.eventType)&&("end"===t.eventType&&(this.currentHandlers.end=this.currentHandlers.start,null===(e=this.currentHandlers.end)||void 0===e||e.markLayoutDirty("end-event"),this.currentHandlers.start=void 0),this.canFindHandlers=!0);this.currentEventName=t.eventName,this.currentEventType=t.eventType,this.currentOriginalEvent=t.originalEvent,this.currentTouch.key=""}},{key:"handleDocEvent",value:function(e){this.handleEvent(e,!0,!1)}},{key:"handleWindowEvent",value:function(e){this.handleEvent(e,!1,!0)}},{key:"handleEvent",value:function(t,r,n){var i,l,s,u,c,d,h,f,v;if(t){var y=t.type,g=this.allEvents[y];if(g){var p,m,b=g.eventName,T=g.inputType,w=g.eventType,k=g.order,S=g.queue,M=g.rateLimit,D=o.d.now(),E={eventName:b,eventItem:g,eventType:w,originalName:y,tmodel:p="move"===w&&this.touchCount>0&&this.currentHandlers.start?this.currentHandlers.start:this.getTModelFromEvent(t),originalEvent:t,timeStamp:D};if(null!==(i=this.lastEvent)&&void 0!==i&&i.eventItem){var C=this.lastEvent,_=C.eventItem,x=D-C.timeStamp;if("end"!==w&&"cancel"!==w&&"start"!==w&&T&&_.inputType&&_.inputType!==T&&k>_.order)return;if(this.eventQueue.length>e.MAX_EVENT_QUEUE_SIZE&&M>0&&x<M)for(var L=0,O=this.eventQueue.length-1;O>=0;O--){var A;if((null===(A=this.eventQueue[O].eventItem)||void 0===A?void 0:A.eventType)!==w)break;if(++L>e.MAX_EVENT_TYPE_CAPACITY)return void(this.preventDefault(p,b)&&(t.preventDefault(),t.stopPropagation()))}}switch(this.eventEpoch++,null===(l=p)||void 0===l||l.markEventDirty(),null===(s=p)||void 0===s||s.markLayoutDirty("event"),this.lastEvent=E,S&&this.eventQueue.push(this.lastEvent),b){case"mousedown":case"touchstart":this.clearStart(),this.clearEnd(),this.clearTouch(),this.eventQueue.length=0,this.eventQueue.push(this.lastEvent),this.touchCount=this.countTouches(t)||1,this.preventDefault(p,b)&&t.cancelable&&t.preventDefault(),this.start0=this.getTouch(t),this.start1=this.getTouch(t,1),this.cursor.x=this.start0.x,this.cursor.y=this.start0.y,this.currentHandlers.start=p,this.findEventHandlers(E),this.canFindHandlers=!1,this.swipeStartX=this.start0.x-(null!==(u=null===(c=this.currentHandlers.swipe)||void 0===c?void 0:c.getX())&&void 0!==u?u:0),this.swipeStartY=this.start0.y-(null!==(d=null===(h=this.currentHandlers.swipe)||void 0===h?void 0:h.getY())&&void 0!==d?d:0),t.stopPropagation(),this.detachDocumentEvents("documentDragEvents"),this.attachDocumentEvents("documentDragEvents");break;case"mousemove":case"touchmove":var P;m=this.getTouch(t),this.cursor.x=m.x,this.cursor.y=m.y,this.preventDefault(p,b)&&t.cancelable&&t.preventDefault(),this.touchCount>0?(this.touchTimeStamp=D+10,this.move(t),t.stopPropagation(),null===(P=this.currentHandlers.swipe)||void 0===P||P.markLayoutDirty("swipe-event")):this.isCurrentSource("wheel")&&this.clearTouch();break;case"mouseup":case"touchend":this.detachDocumentEvents("documentDragEvents"),this.preventDefault(p,b)&&t.cancelable&&t.preventDefault(),this.end(t),this.clearEnd(),this.touchCount=0,t.stopPropagation();break;case"click":this.preventDefault(p,b)&&t.preventDefault(),this.end0=this.getTouch(t);var j=a.X.findFirstClickHandler(p),I=!this.start0||j===this.currentHandlers.click&&(j!==this.currentHandlers.swipe||this.getSwipeDistance()<5);j&&I&&(this.eventQueue.length=0,this.eventQueue.push({eventName:b,eventItem:g,eventType:w,originalName:y,tmodel:p,originalEvent:t,timeStamp:D})),this.clearEnd(),this.touchCount=0,t.stopPropagation();break;case"wheel":this.preventDefault(p,b)&&(t.preventDefault(),t.stopPropagation()),this.touchTimeStamp=D+500,this.wheel(t);break;case"mouseleave":r&&this.touchCount>0&&(this.detachDocumentEvents("documentDragEvents"),m=this.getTouch(t),this.cursor.x=m.x,this.cursor.y=m.y,this.end(t),this.clearEnd(),this.touchCount=0,t.stopPropagation());break;case"mousecancel":case"touchcancel":this.canFindHandlers=!0,this.detachDocumentEvents("documentDragEvents"),this.clearStart(),this.clearEnd(),this.clearTouch(),this.touchCount=0,t.stopPropagation();break;case"key":this.currentTouch.key=t.which||t.keyCode,null===(f=this.currentHandlers.focus)||void 0===f||f.markLayoutDirty("key-event");break;case"keydown":this.currentTouch.key=t.which||t.keyCode,null===(v=this.currentHandlers.focus)||void 0===v||v.markLayoutDirty("keydown-event");break;case"resize":this.windowEpoch++,this.resizeRoot(),ze().getVisibles().forEach((function(e){e.targets.onResize&&e.markLayoutDirty("resize-event")}));break;case"scroll":n?(this.windowEpoch++,this.windowScrollX=0|window.scrollX,this.windowScrollY=0|window.scrollY,Ge().domIslandSet.forEach((function(e){e.markLayoutDirty("winScroll-event")}))):p.markLayoutDirty("winScroll-event")}Ze().schedule(0,"".concat(y,"-").concat(b,"-").concat((t.target.tagName||"").toUpperCase()))}}}},{key:"resizeRoot",value:function(){s.j.executeDeclarativeTarget(We(),"screenWidth"),s.j.executeDeclarativeTarget(We(),"screenHeight")}},{key:"preventDefault",value:function(e,t){return!(!e||!(!0===e.preventDefault()||Array.isArray(e.preventDefault())&&e.preventDefault().includes(t)))}},{key:"getTModelFromEvent",value:function(e){var t,r=e.currentTarget||e.target;return r&&1===r.nodeType&&(t=r.getAttribute("tgjs-oid")||r.id),t&&xe.manager.visibleOidMap[t]||(t=null==r?void 0:r.id)&&ze().visibleOidMap[t]||(t=n.J.findNearestParentWithId(e.target)),ze().visibleOidMap[t]}},{key:"clearStart",value:function(){this.start0=void 0,this.start1=void 0}},{key:"clearEnd",value:function(){this.end0=void 0,this.end1=void 0}},{key:"clearTouch",value:function(){this.currentTouch={deltaY:0,deltaX:0,prevDeltaX:0,prevDeltaY:0,pinchDelta:0,key:"",manualMomentumFlag:!1,orientation:"none",dir:"",source:""}}},{key:"clearAll",value:function(){this.clearStart(),this.clearEnd(),this.clearTouch(),this.eventQueue.length=0,this.touchTimeStamp=0,this.touchCount=0,this.canFindHandlers=!0,this.lastEvent=void 0,this.attachedEventMap={},this.eventTargetMap={},this.swipeStartX=0,this.swipeStartY=0,this.hovered.clear()}},{key:"deltaX",value:function(){return this.currentTouch.deltaX}},{key:"deltaY",value:function(){return this.currentTouch.deltaY}},{key:"cursorX",value:function(){return this.cursor.x}},{key:"cursorY",value:function(){return this.cursor.y}},{key:"swipeX",value:function(){return this.cursor.x-this.swipeStartX}},{key:"swipeY",value:function(){return this.cursor.y-this.swipeStartY}},{key:"getSwipeDistance",value:function(){return this.start0&&this.end0?o.d.distance(this.start0.originalX,this.start0.originalY,this.end0.x,this.end0.y):0}},{key:"pinchDelta",value:function(){return this.currentTouch.pinchDelta}},{key:"dir",value:function(){return this.currentTouch.dir}},{key:"getScrollLeftHandler",value:function(){return this.currentHandlers.scrollLeft}},{key:"getScrollTopHandler",value:function(){return this.currentHandlers.scrollTop}},{key:"getWindowScrollX",value:function(){return this.windowScrollX}},{key:"getWindowScrollY",value:function(){return this.windowScrollY}},{key:"getWindowEpoch",value:function(){return this.windowEpoch}},{key:"getPinchHandler",value:function(){return this.currentHandlers.pinch}},{key:"getClickHandler",value:function(){return this.currentHandlers.click}},{key:"getTouchCount",value:function(){return this.touchCount}},{key:"isClickEvent",value:function(){return"click"===this.getEventType()}},{key:"isMoveEvent",value:function(){return"move"===this.getEventType()}},{key:"isResizeEvent",value:function(){return"resize"===this.getEventType()}},{key:"isSwipeEvent",value:function(){return this.hasDelta()&&1===this.touchCount}},{key:"isScrollEvent",value:function(){return this.hasDelta()&&this.isCurrentSource("wheel")}},{key:"hasDelta",value:function(){return 0!==this.deltaX()||0!==this.deltaY()}},{key:"isEndEvent",value:function(){return"end"===this.getEventType()||"click"===this.getEventType()}},{key:"isStartEvent",value:function(){return"start"===this.getEventType()}},{key:"getEventName",value:function(){return this.currentEventName}},{key:"getCurrentOriginalEvent",value:function(){return this.currentOriginalEvent}},{key:"getEventType",value:function(){return this.currentEventType}},{key:"isClickHandler",value:function(e){return this.getClickHandler()===e&&this.isClickEvent()}},{key:"isEnterHandler",value:function(e){return!(!e||e!==this.currentHandlers.enter||"mouseenter"!==this.getEventName()||this.hovered.has(e.oid)||(this.hovered.add(e.oid),0))}},{key:"isLeaveHandler",value:function(e){return!(!e||e!==this.currentHandlers.leave||"mouseleave"!==this.getEventName()||!this.hovered.has(e.oid)||(this.hovered.delete(e.oid),0))}},{key:"isHoverHandler",value:function(e){return e===this.currentHandlers.hover}},{key:"isSwipeHandler",value:function(e){return e===this.currentHandlers.swipe}},{key:"isStartHandler",value:function(e){return e===this.currentHandlers.start}},{key:"isEndHandler",value:function(e){return e===this.currentHandlers.end}},{key:"onFocus",value:function(e){return this.currentHandlers.justFocused===e}},{key:"onBlur",value:function(e){return this.currentHandlers.blur===e}},{key:"hasFocus",value:function(e){return this.currentHandlers.focus===e}},{key:"isScrollLeftHandler",value:function(e){return this.currentHandlers.scrollLeft===e}},{key:"isScrollTopHandler",value:function(e){return this.currentHandlers.scrollTop===e}},{key:"isPinchHandler",value:function(e){return this.currentHandlers.pinch===e}},{key:"isCurrentSource",value:function(e){return this.currentTouch.source===e}},{key:"isFormHandler",value:function(e){var t,r,n=this.currentOriginalEvent,i=null===(t=e.$dom)||void 0===t?void 0:t.element,a=null==n?void 0:n.target;return!!(i&&a&&(a===i||null!==(r=i.contains)&&void 0!==r&&r.call(i,a)))}},{key:"getOrientation",value:function(){return this.currentTouch.orientation}},{key:"countTouches",value:function(e){var t,r;return(null===(t=e.touches)||void 0===t?void 0:t.length)||(null===(r=e.originalEvent)||void 0===r||null===(r=r.touches)||void 0===r?void 0:r.length)}},{key:"getTouch",value:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(null===(t=e.touches)||void 0===t?void 0:t[n])||(null===(r=e.originalEvent)||void 0===r||null===(r=r.touches)||void 0===r?void 0:r[n])||e,a=o.d.isDefined(i.clientX)?i.clientX:i.pageX||0,l=o.d.isDefined(i.clientY)?i.clientY:i.pageY||0;return{x:a,y:l,originalX:a,originalY:l,target:i.target,timeStamp:o.d.now()}}},{key:"move",value:function(e){if(1===this.touchCount){if(this.start0.y=this.end0?this.end0.y:this.start0.y,this.start0.x=this.end0?this.end0.x:this.start0.x,this.end0=this.getTouch(e),o.d.isDefined(this.end0)){var t=this.start0.x-this.end0.x,r=this.start0.y-this.end0.y;this.setDeltaXDeltaY(t,r,"touch")}}else if(this.touchCount>=2){this.end0=this.getTouch(e),this.end1=this.getTouch(e,1);var n=o.d.distance(this.start0.x,this.start0.y,this.start1.x,this.start1.y),i=o.d.distance(this.end0.x,this.end0.y,this.end1.x,this.end1.y)-n;this.currentTouch.pinchDelta=i>0?.3:i<0?-.3:0}}},{key:"end",value:function(){if(this.touchCount<=1&&this.start0){var e,t=0,r=0,n=0;o.d.isDefined(this.end0)&&(t=this.start0.originalX-this.end0.x,r=this.start0.originalY-this.end0.y,n=o.d.now()-this.start0.timeStamp<250?o.d.now()-this.start0.timeStamp:0),"horizontal"===this.currentTouch.orientation&&Math.abs(t)>0&&n>0?(e=o.d.momentum(0,t,n),this.touchTimeStamp=this.end0.timeStamp+e.duration,this.touchTimeStamp-o.d.now()>0&&(this.currentTouch.deltaX=e.distance,this.currentTouch.manualMomentumFlag=!0)):"vertical"===this.currentTouch.orientation&&Math.abs(r)>0&&n>0&&(e=o.d.momentum(0,r,n),this.touchTimeStamp=this.end0.timeStamp+e.duration,this.touchTimeStamp-o.d.now()>0&&(this.currentTouch.deltaY=e.distance,this.currentTouch.manualMomentumFlag=!0))}}},{key:"setDeltaXDeltaY",value:function(e,t,r){var n=Math.abs(e)-Math.abs(t);n>=1?("none"===this.currentTouch.orientation||"vertical"===this.currentTouch.orientation&&n>=2||"horizontal"===this.currentTouch.orientation)&&(this.currentTouch.orientation="horizontal"):("none"===this.currentTouch.orientation||"horizontal"===this.currentTouch.orientation&&n<=-2||"vertical"===this.currentTouch.orientation)&&(this.currentTouch.orientation="vertical"),"horizontal"===this.currentTouch.orientation?this.currentTouch.dir=e<0?"left":e>0?"right":this.currentTouch.dir:this.currentTouch.dir=t<0?"up":t>0?"down":this.currentTouch.dir,this.currentTouch.source=r,this.currentTouch.prevDeltaX+=e,this.currentTouch.prevDeltaY+=t,this.currentTouch.deltaX=this.currentTouch.prevDeltaX,this.currentTouch.deltaY=this.currentTouch.prevDeltaY}},{key:"wheel",value:function(e){var t=0,r=0;this.currentTouch.pinchDelta=0,this.start0=this.getTouch(e),e.ctrlKey&&"deltaY"in e?this.currentTouch.pinchDelta=-e.deltaY/10:"deltaX"in e?(t=e.deltaX,r=e.deltaY):"wheelDeltaX"in e?(t=-e.wheelDeltaX/120,r=-e.wheelDeltaY/120):"wheelDelta"in e?t=-e.wheelDelta/120:"detail"in e&&(t=e.detail/3),this.setDeltaXDeltaY(t,r,"wheel")}}],r&&v(t.prototype,r),i&&v(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,i}();y(p,"MAX_EVENT_QUEUE_SIZE",10),y(p,"MAX_EVENT_TYPE_CAPACITY",2);var m=r(956),b=["url","cacheId"];function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}(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 w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach((function(t){M(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function M(e,t,r){return(t=C(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D(e){return D="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},D(e)}function E(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,C(n.key),n)}}function C(e){var t=function(e,t){if("object"!=D(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=D(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==D(t)?t:t+""}var _=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cacheMap={},this.tmodelKeyMap={},this.fetchingAPIMap={},this.fetchingImageMap={},this.fetchSeq=0},t=[{key:"clear",value:function(){this.tmodelKeyMap={},this.fetchingAPIMap={},this.fetchingImageMap={},this.fetchSeq=0}},{key:"fetchCommon",value:function(e,t,r,n,i){return m.g.markFetchAction(r),this.isFetched(t)?n[e]||(n[e]={fetchId:e,cacheId:t,startTime:o.d.now(),targets:[{tmodel:r,targetName:r.key}],fetchMap:n}):n[e]||(n[e]={fetchId:e,cacheId:t,startTime:o.d.now(),targets:[{tmodel:r,targetName:r.key}],fetchMap:n},i()),this.addToTModelKeyMap(r,r.key,e,t),e}},{key:"fetch",value:function(e,t,r,n){var i=this;if(!t||"object"!==D(t)||Array.isArray(t))(Array.isArray(t)?t:[t]).forEach((function(t){i.fetchOne(e,t,r,n)}));else{var a=t.url,o=t.cacheId,l=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,b);this.fetchOne(e,a,l,null!=o?o:n)}}},{key:"fetchOne",value:function(e,t,r,n){var i=this,a=this.getFetchKey(e,t,r);this.fetchCommon(a,n,e,this.fetchingAPIMap,(function(){i.ajaxAPI(t,r,i.fetchingAPIMap[a])}))}},{key:"fetchImage",value:function(e,t,r){var n=this;(Array.isArray(t)?t:[t]).forEach((function(t){var i=n.getFetchKey(e,t);n.fetchCommon(i,r,e,n.fetchingImageMap,(function(){n.loadImage(t,n.fetchingImageMap[i])}))}))}},{key:"getFetchKey",value:function(e,t,r){var n=r?"".concat(e.oid,"_").concat(t,"_").concat(e.getTargetCycle(e.key),"_").concat(JSON.stringify(r)):"".concat(e.oid,"_").concat(t,"_").concat(e.getTargetCycle(e.key));return"".concat(n,"_").concat(++this.fetchSeq)}},{key:"getTModelKey",value:function(e,t){return"".concat(document.URL,"_").concat(e.oid,"_").concat(t)}},{key:"addToTModelKeyMap",value:function(e,t,r,n){var i,a,l=this.getTModelKey(e,t),s=o.d.getLoadTargetName(t);!this.isLoadingComplete(e,t)&&this.tmodelKeyMap[l]&&e.val(s)||(null!==(a=(i=this.tmodelKeyMap)[l])&&void 0!==a||(i[l]={fetchMap:{},entryCount:0,resultCount:0,errorCount:0,activeIndex:0,accessIndex:0}),e.val(s,[])),this.tmodelKeyMap[l].fetchMap[r]||(this.tmodelKeyMap[l].fetchMap[r]={fetchId:r}),this.tmodelKeyMap[l].fetchMap[r].order=this.tmodelKeyMap[l].entryCount,this.tmodelKeyMap[l].entryCount++,e.val(s).push(void 0),n&&this.isFetched(n)&&(this.fetchingAPIMap[r].startTime=o.d.now(),this.handleSuccess(this.fetchingAPIMap[r],this.cacheMap[n].result))}},{key:"removeFromTModelKeyMap",value:function(e,t){var r=this.getTModelKey(e,t);delete this.tmodelKeyMap[r]}},{key:"isLoading",value:function(e,t){var r=this.getTModelKey(e,t);return this.tmodelKeyMap[r]}},{key:"isLoadingSuccessful",value:function(e,t){var r=this.getTModelKey(e,t);return this.tmodelKeyMap[r]&&this.tmodelKeyMap[r].resultCount===this.tmodelKeyMap[r].entryCount}},{key:"isLoadingComplete",value:function(e,t){var r=this.getTModelKey(e,t);return!!this.tmodelKeyMap[r]&&this.tmodelKeyMap[r].resultCount===this.tmodelKeyMap[r].entryCount&&this.tmodelKeyMap[r].activeIndex===this.tmodelKeyMap[r].entryCount&&this.tmodelKeyMap[r].resultCount===e.getTargetCycles(t)}},{key:"resetLoadingError",value:function(e,t){var r=this.getTModelKey(e,t),n=this.tmodelKeyMap[r];n&&(n.errorCount=0)}},{key:"nextActiveItem",value:function(e,t){var r=this.getTModelKey(e,t),n=this.tmodelKeyMap[r];return!!n&&n.activeIndex++}},{key:"isNextLoadingItemSuccessful",value:function(e,t){var r=this.getTModelKey(e,t),n=this.tmodelKeyMap[r];if(!n)return!1;var i=o.d.getLoadTargetName(t),a=e.val(i);return Array.isArray(a)&&o.d.isDefined(a[n.activeIndex])&&o.d.isDefined(a[n.accessIndex])}},{key:"getLoadingItemValue",value:function(e,t,r){var n=this.getTModelKey(e,t),i=this.tmodelKeyMap[n];if(i&&!(i.accessIndex>=i.resultCount)){var a,l=o.d.getLoadTargetName(t),s=e.val(l);return s&&(null!=r&&r.endsWith("$$")?(a=s.slice(i.accessIndex,i.resultCount),i.accessIndex+=a.length):o.d.isDefined(s[i.accessIndex])&&(a=s[i.accessIndex],i.accessIndex=Math.min(i.accessIndex+1,i.entryCount))),a}}},{key:"isFetched",value:function(e){var t,r;return null!==(t=null===(r=this.cacheMap[e])||void 0===r?void 0:r.success)&&void 0!==t&&t}},{key:"getFetchingPeriod",value:function(e){return this.fetchingAPIMap[e]?o.d.now()-this.fetchingAPIMap[e].startTime:void 0}},{key:"fetchCache",value:function(e){return this.cacheMap[e]}},{key:"calculateTargetStatus",value:function(e,t){var r=e.getTargetCycle(t),n=e.getTargetCycles(t);return e.isTargetInLoop(t)||r<n-1?"active":this.isLoadingSuccessful(e,t)?"done":"fetching"}},{key:"handleSuccess",value:function(e,t){var r=this,n=o.d.now(),i=e.fetchId,a=e.cacheId,l=e.startTime,s=e.targets,u=e.fetchMap,c={fetchingPeriod:n-l,success:!0,result:t};s.forEach((function(e){var t=e.tmodel,n=e.targetName,a=r.getTModelKey(t,n),l=r.tmodelKeyMap[a],s=o.d.getLoadTargetName(n);if(l&&l.fetchMap[i]){var u=l.fetchMap[i];r.callOnSuccessHandler(t,n,S(S({},c),{},{order:u.order}));var d=t.val(s);d&&(o.d.isDefined(d[u.order])||l.resultCount++,d[u.order]=c.result),t.val(n,c.result);var h=r.calculateTargetStatus(t,n);t.setTargetStatus(n,h),t.setLastUpdate(n),m.g.shouldActivateNextTarget(t,n)}})),delete u[i],a&&(this.cacheMap[a]=c),Ze().schedule(0,"api_success_".concat(i))}},{key:"handleError",value:function(e,t){var r=this,n=o.d.now(),i=e.fetchId,a=e.cacheId,l=e.startTime,s=e.targets,u=e.fetchMap;s.forEach((function(e){var a=e.tmodel,s=e.targetName,u=r.getTModelKey(a,s),c=r.tmodelKeyMap[u],d=o.d.getLoadTargetName(s);if(c&&c.fetchMap[i]){var h=c.fetchMap[i],f={fetchingPeriod:n-l,success:!1,order:h.order,error:t},v=a.val(d);v&&(o.d.isDefined(v[h.order])||c.resultCount++,v[h.order]=f),a.val(s,f),c.errorCount++,r.callOnErrorHandler(a,s);var y=r.calculateTargetStatus(a,s);a.setTargetStatus(s,y),a.setLastUpdate(s),m.g.shouldActivateNextTarget(a,s)}})),delete u[i],a&&delete this.cacheMap[a],Ze().schedule(0,"api_error_".concat(i))}},{key:"callOnSuccessHandler",value:function(e,t,r){var n,i=null===(n=e.targets[t])||void 0===n?void 0:n.onSuccess;i&&("function"==typeof i?(e.setTargetMethodName(t,"onSuccess"),i.call(e,r)):Array.isArray(i)?i.forEach((function(t){return m.g.activateSingleTarget(e,t)})):m.g.activateSingleTarget(e,i))}},{key:"callOnErrorHandler",value:function(e,t){var r,n=null===(r=e.targets[t])||void 0===r?void 0:r.onError;n&&("function"==typeof n?(e.setTargetMethodName(t,"onSuccess"),n.call(e,e.val(t))):Array.isArray(n)?n.forEach((function(t){return m.g.activateSingleTarget(e,t)})):m.g.activateSingleTarget(e,n))}},{key:"ajaxAPI",value:function(e,t,r){var i,a,o,l=this,s={url:e,dataType:"json",type:"GET",success:function(e){return l.handleSuccess(r,e)},error:function(e){return l.handleError(r,e)}};if((u=t)&&"object"===D(u)&&!Array.isArray(u)){for(var u,c=new Set(["data","type","method","requestType","dataType","headers","contentType","timeout","processData","cache","beforeSend","withCredentials","xhrFields"]),d={},h={},f=0,v=Object.entries(t);f<v.length;f++){var y=T(v[f],2),g=y[0],p=y[1];"requestType"===g?d.type=p:c.has(g)?d[g]=p:h[g]=p}var m=S(S(S({},s),d),{},{type:null!==(i=null!==(a=d.method)&&void 0!==a?a:d.type)&&void 0!==i?i:s.type,dataType:null!==(o=d.dataType)&&void 0!==o?o:s.dataType});!("data"in m)&&Object.keys(h).length&&(m.data=h),n.J.ajax(m)}else n.J.ajax(S(S({},s),{},{data:t}))}},{key:"loadImage",value:function(e,t){var r=this,n=new Image;n.src=e,n.onload=function(){var e={width:n.width,height:n.height,src:n.src};r.handleSuccess(t,e)},n.onerror=function(){r.handleError(t,"not found")}}}],t&&E(e.prototype,t),r&&E(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),x=r(780),L=r(144),O=r(515);function A(e){return A="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},A(e)}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||I(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 j(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=I(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function I(e,t){if(e){if("string"==typeof e)return V(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?V(e,t):void 0}}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?N(Object(r),!0).forEach((function(t){F(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function F(e,t,r){return(t=$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B(){B=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var a=t&&t.prototype instanceof p?t:p,o=Object.create(a.prototype),l=new L(n||[]);return i(o,"_invoke",{value:E(e,r,l)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",v="executing",y="completed",g={};function p(){}function m(){}function b(){}var T={};u(T,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(O([])));k&&k!==r&&n.call(k,o)&&(T=k);var S=b.prototype=p.prototype=Object.create(T);function M(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function D(e,t){function r(i,a,o,l){var s=d(e[i],e,a);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==A(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function E(t,r,n){var i=h;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===y){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var l=n.delegate;if(l){var s=C(l,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?y:f,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function C(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=d(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function _(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function O(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(A(t)+" is not iterable")}return m.prototype=b,i(S,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=u(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},M(D.prototype),u(D.prototype,l,(function(){return this})),t.AsyncIterator=D,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new D(c(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},M(S),u(S,s,"Generator"),u(S,o,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,L.prototype={constructor:L,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(x),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=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 r=this;function i(n,i){return l.type="throw",l.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(o)},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 r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function R(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,i)}function U(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){R(a,n,i,o,l,"next",e)}function l(e){R(a,n,i,o,l,"throw",e)}o(void 0)}))}}function W(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$(n.key),n)}}function $(e){var t=function(e,t){if("object"!=A(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==A(t)?t:t+""}var X=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hasLocationList=[],this.hasLocationMap={},this.visibleChildrenLengthMap={},this.updatedContainerMap={},this.locationListStats=[],this.domIslandSet=new Set,this.activatedList=[],this.activatedMap={},this.calcBusy=!1,this.calcQueued=!1,this.resumePausedList=[],this.resumePausedMap={},this.resumeScheduled=!1},t=[{key:"clear",value:function(){this.visibleChildrenLengthMap={},this.updatedContainerMap={},this.activatedList=[],this.activatedMap={},this.domIslandSet.clear(),this.calcBusy=!1,this.calcQueued=!1,this.resumePausedList=[],this.resumePausedMap={},this.resumeScheduled=!1}},{key:"calculateActivated",value:function(){var e=0,t=this.activatedList;for(this.activatedList=[],this.activatedMap={};e<t.length;){var r=t[e++],n=r.activatedTargets.slice(0);r.activatedTargets.length=0,Qe().applyTargetValues(r,n),r.updatingTargetList.length>0&&Qe().setActualValues(r,r.updatingTargetList),this.hasLocationMap[r.oid]||this.addToLocationList(r)}}},{key:"calculateAll",value:(i=U(B().mark((function e(){var t,r,n,i=arguments;return B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:8,!this.calcBusy){e.next=4;break}return this.calcQueued=!0,e.abrupt("return");case 4:return this.calcBusy=!0,this.hasLocationList.length=0,this.hasLocationMap={},this.locationListStats=[],(r=[]).push({container:We(),stage:"init",children:[],viewport:void 0,index:0}),n={budgetMs:t,sliceStart:o.d.now()},e.next=13,this.processStack(r,n);case 13:if(this.processAfterStack(),this.scheduleResumePaused(),this.calcBusy=!1,!this.calcQueued){e.next=19;break}return this.calcQueued=!1,e.abrupt("return",this.calculateAll(t));case 19:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"processStack",value:(n=U(B().mark((function e(t,r){var n,i,a,l,s,u,c,d=this;return B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=function(e){var t=e.container;t.adjustViewport(),t.calcContentWidthHeight()},i=function(e){var t=e.children[e.index];t&&t.getDirtyLayout()&&(t.isComplete()&&!t.hasChildren()||!t.isVisible())&&t.removeLayoutDirty(t,t.dirtyLayout.oids?Object.keys(t.dirtyLayout.oids):void 0),e.stage="afterChild"},a=function(e){var t=e.container,r=e.children,n=e.viewport,i=r[e.index];i&&(i.useContentHeight()&&(i.actualValues.height!==i.getContentHeight()&&(i.actualValues.height=i.getContentHeight(),i.markLayoutDirty("contentWidthHeight")),i.addToStyleTargetList("height")),i.useContentWidth()&&(i.actualValues.width!==i.getContentWidth()&&(i.actualValues.width=i.getContentWidth(),i.markLayoutDirty("contentWidthHeight")),i.addToStyleTargetList("width")),i.isInFlow()&&(o.d.isNumber(i.val("appendNewLine"))?n.appendNewLine():n.nextLocation(),t.calcContentWidthHeight()),(i.hasEventDirty()||$e().getEventType()||$e().hasDelta())&&(d.checkExternalEvents(i),i.hasEventDirty()&&(i.processedEventEpoch=i.eventDirtyEpoch))),e.index++,e.index<e.children.length&&(e.stage="child")},l=function(e){var r,n=e.container,i=e.children,a=e.viewport,o=i[e.index];if(o){if(o.isDomIsland()&&o.originWindowEpoch!==$e().getWindowEpoch()&&o.hasDom()&&(o.calcAbsolutePositionFromDom(),o.originWindowEpoch=$e().getWindowEpoch()),a.setCurrentChild(o),!o.getDirtyLayout()&&!o.currentStatus&&0===o.activeTargetList.length)return d.calcNextLocation(o,n,a),void e.index++;o.isDomIsland()&&d.domIslandSet.add(o),a.setLocation(),a.isOverflow()&&(a.overflow(),a.setLocation());var l,s,u,c,h=o.actualValues.x,f=o.actualValues.y,v=o.getMinWidth();o.isIncluded()&&d.calculateTargets(o),v!==o.getMinWidth()&&a.isOverflow()&&o.markLayoutDirty("overflow"),o.isIncluded()&&o.targets.onVisibleChildrenChange&&!d.visibleChildrenLengthMap[o.oid]&&(d.visibleChildrenLengthMap[o.oid]={tmodel:o,visibleCount:o.visibleChildren.length}),d.addToLocationList(o),L.a.isXDefined(o)||(o.actualValues.x=o.x),L.a.isYDefined(o)||(o.actualValues.y=o.y),o.isDomIsland()||o.calcAbsolutePosition(o.getX(),o.getY()),o.excludeDefaultStyling()||d.fixLocation(o,h,f),d.calculateVisibility(o),(null===(r=o.getDirtyLayout())||void 0===r?void 0:r.count)>0?d.locationListStats.push("".concat(o.oid,"|").concat(null===(l=o.getDirtyLayout())||void 0===l?void 0:l.count,"|").concat(null===(s=o.getDirtyLayout())||void 0===s?void 0:s.lastKey)):d.locationListStats.push("".concat(o.oid,"|").concat(null!==(u=null===(c=o.getDirtyLayout())||void 0===c?void 0:c.count)&&void 0!==u?u:0)),e.stage="resetDirtyLayout",o.hasChildren()&&o.shouldCalculateChildren()&&t.push({container:o,stage:"init",children:[],viewport:void 0,index:0})}else e.index++};case 4:if(!t.length){e.next=21;break}if(!(o.d.now()-r.sliceStart>r.budgetMs)){e.next=10;break}return e.next=8,new Promise(requestAnimationFrame);case 8:return r.sliceStart=o.d.now(),e.abrupt("continue",4);case 10:if("init"===(s=t[t.length-1]).stage&&(u=s.container,c=this.calcChildren(u),u.childrenUpdateFlag&&(u.childrenUpdateFlag=!1,u.targets.onChildrenChange&&(this.updatedContainerMap[u.oid]=u)),u.shouldBeBracketed()&&(u.backupDirtyLayout=H({},u.dirtyLayout)),u.visibleChildren.length=0,s.children=c.slice(0),s.index=0,s.viewport=u.createViewport(),s.stage="child"),"resetDirtyLayout"===s.stage&&i(s),"afterChild"===s.stage&&a(s),!(s.index>=s.children.length)){e.next=18;break}return n(s),t.pop(),e.abrupt("continue",4);case 18:"child"===s.stage&&l(s),e.next=4;break;case 21:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"processAfterStack",value:function(){for(var e in this.visibleChildrenLengthMap){var t=this.visibleChildrenLengthMap[e],r=t.tmodel,n=t.visibleCount;!r.isVisible()||n===r.visibleChildren.length&&0!==r.visibleChildren.length||(this.runEventTargets(r,["onVisibleChildrenChange"]),this.visibleChildrenLengthMap[e].visibleCount=r.visibleChildren.length)}for(var i in this.updatedContainerMap){var a=this.updatedContainerMap[i];a.isVisible()&&this.runEventTargets(a,["onChildrenChange"]),delete this.updatedContainerMap[i]}}},{key:"calcChildren",value:function(e){return e.getChildren(),e.shouldBeBracketed()?x.M.generate(e):(e.lastChildrenUpdate.additions.length=0,e.lastChildrenUpdate.deletions.length=0,x.M.bracketMap[e.oid]&&(delete x.M.bracketMap[e.oid],delete x.M.pageMap[e.oid]),e.getChildren())}},{key:"calcNextLocation",value:function(e,t,r){var n;r.setLocation(),r.isOverflow()&&(r.overflow(),r.setLocation()),e.isIncluded()&&e.targets.onVisibleChildrenChange&&!this.visibleChildrenLengthMap[e.oid]&&(this.visibleChildrenLengthMap[e.oid]={tmodel:e,visibleCount:e.visibleChildren.length}),L.a.isXDefined(e)||(e.actualValues.x=e.x),L.a.isYDefined(e)||(e.actualValues.y=e.y),e.isDomIsland()||e.calcAbsolutePosition(e.getX(),e.getY()),e.excludeDefaultStyling()||(this.addToTransformTargetList(e,"x"),this.addToTransformTargetList(e,"y")),((null===(n=e.styleTargetMap)||void 0===n?void 0:n.size)>0||e.updatingTargetList.length>0)&&this.addToLocationList(e),this.calculateVisibility(e),e.isInFlow()&&(o.d.isNumber(e.val("appendNewLine"))?r.appendNewLine():r.nextLocation(),t.calcContentWidthHeight())}},{key:"calculateVisibility",value:function(e){var t,r,n,i=e.isVisible(),a=null!==(t=null===(r=e.visibilityStatus)||void 0===r?void 0:r.isVisible)&&void 0!==t?t:void 0;if(e.visibilityStatus||(e.visibilityStatus={}),e.visibilityStatus.lastIsVisible=e.visibilityStatus.isVisible,o.d.isDefined(e.targets.isVisible))n="function"==typeof e.targets.isVisible.value?e.targets.isVisible.value.call(e):!!e.targets.isVisible,e.isNowVisible=!i&&n,e.isNowInvisible=(i||void 0===i)&&!n;else{var l=e.calcVisibility();n=l,e.isNowVisible=!i&&n||!a&&l,e.isNowInvisible=(i||void 0===i)&&!n||a&&!l,e.actualValues.isVisible=n}(e.isNowVisible||e.isNowInvisible)&&e.markLayoutDirty("isNowVisible"),e.isNowInvisible&&this.addToLocationList(e),e.addToParentVisibleChildren()}},{key:"calculateTargets",value:function(e){e.hasDom()&&e.pausedBatch&&(this.resumePausedMap[e.oid]||(this.resumePausedMap[e.oid]=!0,this.resumePausedList.push(e))),this.checkInternalEvents(e);for(var t=0;e.activatedTargets.length&&t++<50;){var r=e.activatedTargets.slice(0);e.activatedTargets.length=0;var n,i=j(r);try{for(i.s();!(n=i.n()).done;){var a=n.value;Qe().applyTargetValue(e,a)}}catch(e){i.e(e)}finally{i.f()}}Qe().applyTargetValues(e),e.updatingTargetList.length>0&&Qe().setActualValues(e,e.updatingTargetList),L.a.shouldMeasureWidthFromDom(e)&&(e.hasDom()?L.a.setWidthFromDom(e):e.markLayoutDirty("width")),L.a.shouldMeasureHeightFromDom(e)&&(e.hasDom()?L.a.setHeightFromDom(e):e.markLayoutDirty("height")),e.isNowVisible=!1,e.hasDomNow=!1,e.targetExecutionCount++}},{key:"scheduleResumePaused",value:function(){var e=this;!this.resumeScheduled&&this.resumePausedList.length&&(this.resumeScheduled=!0,requestAnimationFrame((function(){requestAnimationFrame((function(){e.resumeScheduled=!1;var t=e.resumePausedList.slice();e.resumePausedList.length=0,e.resumePausedMap={};var r,n=j(t);try{for(n.s();!(r=n.n()).done;){var i=r.value,a=i.pausedBatch;if(a&&i.hasDom()){var o=i.$dom.getElement();o&&o.isConnected&&"visible"===document.visibilityState&&(Je().animate(i,a,O.T.getAnimationHooks()),i.pausedBatch=void 0)}}}catch(e){n.e(e)}finally{n.f()}}))})))}},{key:"checkExternalEvents",value:function(e){var t=e.externalEventMap;if((null==t?void 0:t.size)>0){var r,n=[],i=l.u.allEventMap,a=j(t);try{for(a.s();!(r=a.n()).done;){var o=P(r.value,1)[0];i[o](e)&&n.push(e.allTargetMap[o])}}catch(e){a.e(e)}finally{a.f()}this.runEventTargets(e,n)}}},{key:"checkInternalEvents",value:function(e){var t=[],r=l.u.internalEventMap,n=e.internalEventMap;if((null==n?void 0:n.size)>0){var i,a=j(n);try{for(a.s();!(i=a.n()).done;){var o=P(i.value,1)[0];r[o](e)&&t.push(e.allTargetMap[o])}}catch(e){a.e(e)}finally{a.f()}}this.runEventTargets(e,t)}},{key:"runEventTargets",value:function(e,t){t.forEach((function(t){var r=e.targets[t];if(e.isTargetEnabled(t)&&!e.isTargetUpdating(r)){e.targetValues[t]&&(e.targetValues[t].status=""),s.j.prepareTarget(e,t),s.j.resolveTargetValue(e,t),s.j.updateTarget(e,e.targetValues[t],t,!1);var n=e.val(t);Array.isArray(n)?n.forEach((function(t){return m.g.activateSingleTarget(e,t)})):"string"==typeof n&&m.g.activateSingleTarget(e,n),m.g.shouldActivateNextTarget(e,t)}}))}},{key:"addToLocationList",value:function(e){this.hasLocationMap[e.oid]||(this.hasLocationList.push(e),this.hasLocationMap[e.oid]=e)}},{key:"addToActivatedList",value:function(e){this.activatedMap[e.oid]||(this.activatedList.push(e),this.activatedMap[e.oid]=e)}},{key:"fixLocation",value:function(e,t,r,n){if(e.hasValidAnimation()){var i=[],a=[],o=e.actualValues.x!==t,l=e.actualValues.y!==r;if(!o||e.isKeyAnimating(e.allTargetMap.x)&&!n||(i.push("x"),a.push(e.val("x"))),!l||e.isKeyAnimating(e.allTargetMap.y)&&!n||(i.push("y"),a.push(e.val("y"))),i.length>0)return void O.T.overrideAnimatedKeyWithSnap(e,i,a)}this.addToTransformTargetList(e,"x"),this.addToTransformTargetList(e,"y")}},{key:"addToTransformTargetList",value:function(e,t){L.a.getTransformValue(e,t)!==Math.floor(e.tfMap[t])&&e.addToStyleTargetList(t)}},{key:"isActivated",value:function(e){return this.activatedMap[e.oid]}}],t&&W(e.prototype,t),r&&W(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r,n,i}(),Y=r(728);function q(e){return q="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},q(e)}function K(){K=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var a=t&&t.prototype instanceof p?t:p,o=Object.create(a.prototype),l=new L(n||[]);return i(o,"_invoke",{value:E(e,r,l)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",v="executing",y="completed",g={};function p(){}function m(){}function b(){}var T={};u(T,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(O([])));k&&k!==r&&n.call(k,o)&&(T=k);var S=b.prototype=p.prototype=Object.create(T);function M(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function D(e,t){function r(i,a,o,l){var s=d(e[i],e,a);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==q(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function E(t,r,n){var i=h;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===y){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var l=n.delegate;if(l){var s=C(l,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?y:f,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function C(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=d(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function _(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function O(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(q(t)+" is not iterable")}return m.prototype=b,i(S,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=u(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},M(D.prototype),u(D.prototype,l,(function(){return this})),t.AsyncIterator=D,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new D(c(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},M(S),u(S,s,"Generator"),u(S,o,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,L.prototype={constructor:L,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(x),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=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 r=this;function i(n,i){return l.type="throw",l.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(o)},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 r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?z(Object(r),!0).forEach((function(t){J(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function J(e,t,r){return(t=te(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,i)}function G(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){Z(a,n,i,o,l,"next",e)}function l(e){Z(a,n,i,o,l,"throw",e)}o(void 0)}))}}function ee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,te(n.key),n)}}function te(e){var t=function(e,t){if("object"!=q(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=q(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==q(t)?t:t+""}var re=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.lastLink=o.d.getFullLink(document.URL),this.pageCache={},this.initHistory()},t=[{key:"initHistory",value:function(){var e=o.d.getFullLink(document.URL),t=history.state;t&&(t.link||t.browserUrl)||history.replaceState({link:e},"",e),this.lastLink=e}},{key:"initPage",value:function(e){xe.tRoot.$dom.outerHTML(e),xe.tRoot.$dom=n.J.query("#tgjs-root")?new n.J("#tgjs-root"):new n.J("body"),"body"!==xe.tRoot.$dom.getTagName()&&xe.tRoot.$dom.attr("data-tj-no-slot","true"),Y.v.initPageDoms(xe.tRoot.$dom)}},{key:"openPage",value:(l=G(K().mark((function e(t){var r,i;return K().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,xe.stop();case 2:return e.next=4,xe.reset();case 4:t=o.d.getFullLink(t),this.pageCache[t]?(xe.tRoot=this.pageCache[t].tRoot,Re.oids=this.pageCache[t].oids,Re.tmodelIdMap=this.pageCache[t].tmodelIdMap,xe.tRoot.$dom=n.J.query("#tgjs-root")?new n.J("#tgjs-root"):new n.J("body"),xe.tRoot.$dom.innerHTML(this.pageCache[t].html),r=Object.values(this.pageCache[t].visibleOidMap),i=Y.v.initCacheDoms(r),r.forEach((function(e){e.visibilityStatus=void 0})),xe.manager.visibleOidMap=Q({},this.pageCache[t].visibleOidMap),i.forEach((function(e){xe.manager.visibleOidMap[e.oid]=e})),window.scrollTo(this.pageCache[t].scrollLeft,this.pageCache[t].scrollTop),this.lastLink=t,xe.start()):(xe.tRoot.$dom.innerHTML(""),Re.oids={},Re.tmodelIdMap={},xe.tRoot=xe.tRootFactory(),this.lastLink=t,xe.start());case 6:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"openLinkFromHistory",value:(a=G(K().mark((function e(t){return K().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.link){e.next=6;break}return this.onPageClose(),e.next=4,this.openLink(t.link,!1);case 4:e.next=10;break;case 6:if(!t.browserUrl){e.next=10;break}return history.replaceState({link:t.browserUrl},"",t.browserUrl),e.next=10,this.openPage(t.browserUrl);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"onPageClose",value:function(){xe.resizeLastUpdate=o.d.now(),$e().resizeRoot(),xe.manager.getVisibles().forEach((function(e){Ge().runEventTargets(e,["onPageClose"])}))}},{key:"openLink",value:(i=G(K().mark((function e(t){var r,i,a=arguments;return K().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=!(a.length>1&&void 0!==a[1])||a[1],t=o.d.getFullLink(t),this.lastLink&&(xe.tRoot.$dom=n.J.query("#tgjs-root")?new n.J("#tgjs-root"):new n.J("body"),i=xe.tRoot.$dom.innerHTML(),this.onPageClose(),this.pageCache[this.lastLink]={link:this.lastLink,html:i,oids:Q({},Re.oids),tmodelIdMap:Q({},Re.tmodelIdMap),visibleOidMap:Q({},xe.manager.visibleOidMap),scrollLeft:n.J.getWindowScrollLeft()||0,scrollTop:n.J.getWindowScrollTop()||0,tRoot:xe.tRoot}),r&&history.pushState({link:t},"",t),e.next=6,this.openPage(t);case 6:Ze().schedule(0,"pagemanager-processOpenLink");case 7:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"updateBrowserUrl",value:function(e,t){xe.tRoot.$dom=n.J.query("#tgjs-root")?new n.J("#tgjs-root"):new n.J("body"),this.pageCache[document.URL]={link:document.URL,html:xe.tRoot.$dom.innerHTML(),oids:Q({},Re.oids),tmodelIdMap:Q({},Re.tmodelIdMap),visibleOidMap:Q({},xe.manager.visibleOidMap),scrollLeft:n.J.getWindowScrollLeft()||0,scrollTop:n.J.getWindowScrollTop()||0,tRoot:xe.tRoot},t?history.pushState({browserUrl:e},"",e):history.replaceState({browserUrl:e},"",e),Ze().schedule(0,"pagemanager-processUpdateBrowserUrl")}},{key:"back",value:function(){return history.back()}}],t&&ee(e.prototype,t),r&&ee(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r,i,a,l}();function ne(e){return ne="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},ne(e)}function ie(e){return function(e){if(Array.isArray(e))return le(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||oe(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 ae(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=oe(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function oe(e,t){if(e){if("string"==typeof e)return le(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?le(e,t):void 0}}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function se(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?se(Object(r),!0).forEach((function(t){ce(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):se(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ce(e,t,r){return(t=he(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function de(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,he(n.key),n)}}function he(e){var t=function(e,t){if("object"!=ne(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ne(t)?t:t+""}var fe=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.init()},t=[{key:"init",value:function(){this.lists={visible:[],rerender:[],restyle:[],reasyncStyle:[],reattach:[],relocation:[],invisibleDom:[],noDom:[],updatingTModels:[],activeTModels:[],updatingTargets:[],activeTargets:[]},this.visibleOidMap={},this.targetMethodMap={},this.noDomMap={}}},{key:"clearFrameLists",value:function(){this.lists.visible.length=0,this.lists.rerender.length=0,this.lists.restyle.length=0,this.lists.reasyncStyle.length=0,this.lists.reattach.length=0,this.lists.relocation.length=0,this.lists.noDom.length=0,this.lists.updatingTModels.length=0,this.lists.activeTModels.length=0,this.lists.updatingTargets.length=0,this.lists.activeTargets.length=0,this.targetMethodMap={},this.noDomMap={}}},{key:"clearAll",value:function(){this.visibleOidMap={},this.clearFrameLists(),this.deleteDoms()}},{key:"analyze",value:function(){var e=this,t=ue({},this.visibleOidMap);this.clearFrameLists();var r,n=[],i=ae(Ge().hasLocationList);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(t[a.oid]=void 0,Re.tmodelIdMap[a.oid]){var o=a.isVisible();o&&a.isIncluded()?(this.visibleOidMap[a.oid]=a,this.lists.visible.push(a)):delete this.visibleOidMap[a.oid];var l,s,u=this.shouldPreserveDom(a);if(u&&(this.visibleOidMap[a.oid]=a),a.hasDom()&&(a.canHaveDom()&&a.isIncluded()&&(!a.canDeleteDom()||o||u)||(this.addToInvisibleDom(a),a.getChildren().forEach((function(t){e.addToRecursiveInvisibleDom(t)})))),o||a.isActivated()||u){var c,d,h=a.state();((null===(c=h.updatingTargetList)||void 0===c?void 0:c.length)>0||a.hasAnimatingTargets())&&(this.lists.updatingTModels.push(a),this.lists.updatingTargets=[].concat(ie(this.lists.updatingTargets),ie(h.updatingTargetList))),(null===(d=h.activeTargetList)||void 0===d?void 0:d.length)>0&&(this.lists.activeTModels.push(a),this.lists.activeTargets=[].concat(ie(this.lists.activeTargets),ie(h.activeTargetList)))}if(o||a.isActivated()||u){this.needsRerender(a)&&this.lists.rerender.push(a),this.needsRestyle(a)&&this.lists.restyle.push(a),this.needsReasyncStyle(a)&&this.lists.reasyncStyle.push(a),this.needsReattach(a)&&this.lists.reattach.push(a),this.needsRelocation(a)&&this.lists.relocation.push(a);var f=a.state();f.targetMethodMap&&Object.keys(f.targetMethodMap).length>0&&(this.targetMethodMap[a.oid]=ue({},f.targetMethodMap),f.targetMethodMap={}),a.isActivated()&&n.push(a)}(o||a.requiresDom()||u)&&a.canHaveDom()&&!a.hasDom()&&a.isIncluded()&&!this.noDomMap[a.oid]&&(null!==(l=a.getDomHolder())&&void 0!==l&&l.exists()||this.noDomMap[null===(s=a.getDomParent())||void 0===s?void 0:s.oid]?(this.lists.noDom.push(a),this.noDomMap[a.oid]=!0):a.markLayoutDirty("noDomHolder"))}else a.hasDom()&&this.addToInvisibleDom(a),delete this.visibleOidMap[a.oid]}}catch(e){i.e(e)}finally{i.f()}return n.forEach((function(e){return e.deactivate()})),Object.values(t).filter((function(e){return void 0!==e})).forEach((function(t){t.hasDom()&&(Re.tmodelIdMap[t.oid]&&t.isIncluded()||e.addToInvisibleDom(t))})),this.lists.noDom.length>0?0:this.lists.reattach.length>0?1:this.lists.relocation.length>0?2:this.lists.rerender.length>0?3:this.lists.reasyncStyle.length>0?4:this.lists.invisibleDom.length>0?5:this.lists.restyle.length>0?10:-1}},{key:"shouldPreserveDom",value:function(e){if(!e.isVisible()&&o.d.isDefined(e.targets.isVisible))return!1;var t=e.parent;if(!e.isIncluded())return!1;for(;t&&t!==We();){if(o.d.isDefined(t.targets.canDeleteDom))return!1===t.val("canDeleteDom");if(o.d.isDefined(t.targets.isVisible))return!0===t.val("isVisible");t=t.parent}return!1}},{key:"isBracketVisible",value:function(e){for(e=e.bracket;e&&"BI"===e.type;){if(!e.isVisible())return!1;e=e.getParent()}return!0}},{key:"addToRecursiveInvisibleDom",value:function(e){var t=this;delete this.visibleOidMap[e.oid],this.lists.invisibleDom.includes(e)||(e.hasDom()&&this.lists.invisibleDom.push(e),e.getChildren().forEach((function(e){t.addToRecursiveInvisibleDom(e)})))}},{key:"addToInvisibleDom",value:function(e){delete this.visibleOidMap[e.oid],this.lists.invisibleDom.includes(e)||this.lists.invisibleDom.push(e)}},{key:"getVisibles",value:function(){return Object.values(this.visibleOidMap)}},{key:"needsRelocation",value:function(e){return!(!e.hasDom()||!o.d.isDefined(e.domOrderIndex))}},{key:"needsRerender",value:function(e){return!(!e.hasDom()||!o.d.isDefined(e.getHtml())||e.$dom.innerHTML()===e.getHtml()&&e.$dom.textOnly===e.isTextOnly())}},{key:"needsRestyle",value:function(e){var t;return e.hasDom()&&(null===(t=e.styleTargetMap)||void 0===t?void 0:t.size)>0}},{key:"needsReasyncStyle",value:function(e){var t;return e.hasDom()&&(null===(t=e.asyncStyleTargetMap)||void 0===t?void 0:t.size)>0}},{key:"needsReattach",value:function(e){return!(!e.hasDom()||e.reuseDomDefinition())&&(e.hasDomHolderChanged()||e.hasBaseElementChanged())}},{key:"renderTModels",value:function(){var e,t=ae(this.lists.rerender);try{for(t.s();!(e=t.n()).done;){var r,n,i=e.value;i.isTextOnly()?null===(r=i.$dom)||void 0===r||r.text(i.getHtml()):null===(n=i.$dom)||void 0===n||n.html(i.getHtml()),i.setLastUpdate("html"),i.domHeightTimestamp=0,i.domWidthTimestamp=0}}catch(e){t.e(e)}finally{t.f()}}},{key:"reattachTModels",value:function(){var e,t=[],r=ae(this.lists.reattach);try{for(r.s();!(e=r.n()).done;){var n=e.value,i=n.hasBaseElementChanged(),a=n.getDomParent();a&&a.$dom&&(a.$dom.removeElement(n.$dom.element),i&&(L.a.createDom(n),L.a.patchDom(n),L.a.initStyleMaps(n),this.needsRestyle(n)&&this.lists.restyle.push(n),this.needsReasyncStyle(n)&&this.lists.reasyncStyle.push(n),t.push(n)),n.getDomHolder()&&n.getDomHolder().appendTModel$Dom(n))}}catch(e){r.e(e)}finally{r.f()}this.activatePendingTargetsAfterDom(t)}},{key:"relocateTModels",value:function(){this.lists.relocation.sort((function(e,t){return t.domOrderIndex-e.domOrderIndex}));var e,t=ae(this.lists.relocation);try{for(t.s();!(e=t.n()).done;){var r=e.value,n=r.getDomParent();n&&n.$dom&&(n.$dom.relocate(r,r.domOrderIndex),r.domOrderIndex=void 0)}}catch(e){t.e(e)}finally{t.f()}}},{key:"resetTModelDom",value:function(e){e.styleMap={},e.tfMap={},e.actualValues.isVisible=!1,e.hasDomNow=!1,e.$dom=null}},{key:"deleteDoms",value:function(){var e,t=ae(this.lists.invisibleDom);try{for(t.s();!(e=t.n()).done;){var r=e.value;r.val("sourceDom")||this.deleteDom(r)}}catch(e){t.e(e)}finally{t.f()}this.lists.invisibleDom.length=0}},{key:"deleteDom",value:function(e){e.hasAnimatingTargets()&&Je().pauseTModel(e),Object.keys(e.targetValues).forEach((function(t){"updating"===e.targetValues[t].status&&-1===e.updatingTargetList.indexOf(t)&&e.setTargetStatus("active")}));var t=e.getDomParent();t&&t.$dom&&t.$dom.removeElement(e.$dom.element),this.resetTModelDom(e)}},{key:"fixStyles",value:function(){var e,t=ae(this.lists.restyle);try{for(t.s();!(e=t.n()).done;){var r=e.value;r.hasDom()&&L.a.fixStyle(r)}}catch(e){t.e(e)}finally{t.f()}}},{key:"fixAsyncStyles",value:function(){var e,t=ae(this.lists.reasyncStyle);try{for(t.s();!(e=t.n()).done;){var r=e.value;r.hasDom()&&L.a.fixAsyncStyle(r)}}catch(e){t.e(e)}finally{t.f()}}},{key:"activatePendingTargetsAfterDom",value:function(e){var t,r=ae(e);try{for(r.s();!(t=r.n()).done;){var n=t.value,i=n.pendingTargets;if(null!=i&&i.size)for(var a=0,o=ie(i);a<o.length;a++){var l=o[a];m.g.shouldActivateNextTarget(n,l)}}}catch(e){r.e(e)}finally{r.f()}}},{key:"createDoms",value:function(){if(0!==this.lists.noDom.length){var e=new Map,t=[],r=[];this.lists.noDom.sort((function(e,t){return e.getUIDepth()<t.getUIDepth()?-1:1}));var i,a=ae(this.lists.noDom);try{for(a.s();!(i=a.n()).done;){var o,l=i.value,s=null!==(o=l.domId)&&void 0!==o?o:l.oid;n.J.query("#".concat(s))?(l.$dom=new n.J("#".concat(s)),l.$dom.attr("tgjs","true"),l.hasDomNow=!0,l.markLayoutDirty("hasDomNow"),this.needsRerender(l)&&this.lists.rerender.push(l),this.needsRestyle(l)&&this.lists.restyle.push(l),this.needsReasyncStyle(l)&&this.lists.reasyncStyle.push(l)):r.push(l)}}catch(e){a.e(e)}finally{a.f()}this.activatePendingTargetsAfterDom(this.lists.noDom);for(var u=0,c=r;u<c.length;u++){var d=c[u],h=d.getDomHolder();if(h)if(d.$dom=void 0,d.val("$dom"))d.$dom=d.val("$dom"),d.hasDom()||h.appendTModel$Dom(d);else{L.a.createDom(d),L.a.patchDom(d),t.push(d);var f=e.get(h);f||(f={domHolder:h,fragment:n.J.createDocumentFragment(),tmodels:[]},e.set(h,f)),f.fragment.appendChild(d.$dom.element),f.tmodels.push(d)}else d.markLayoutDirty("noDomHolder")}var v,y=ae(e.values());try{for(y.s();!(v=y.n()).done;){var g=v.value,p=g.domHolder,m=g.fragment;p.appendElement(m)}}catch(e){y.e(e)}finally{y.f()}for(var b=0,T=t;b<T.length;b++){var w=T[b];w.hasDom()&&(w.hasDomNow=!0,w.markLayoutDirty("hasDomNow")),L.a.initStyleMaps(w),L.a.fixStyle(w),L.a.fixAsyncStyle(w)}this.activatePendingTargetsAfterDom(t),$e().attachEvents(this.lists.noDom.filter((function(e){var t;return(null===(t=e.externalEventMap)||void 0===t?void 0:t.size)>0})))}}}],t&&de(e.prototype,t),r&&de(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function ve(e){return ve="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},ve(e)}function ye(){ye=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var a=t&&t.prototype instanceof p?t:p,o=Object.create(a.prototype),l=new L(n||[]);return i(o,"_invoke",{value:E(e,r,l)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",v="executing",y="completed",g={};function p(){}function m(){}function b(){}var T={};u(T,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(O([])));k&&k!==r&&n.call(k,o)&&(T=k);var S=b.prototype=p.prototype=Object.create(T);function M(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function D(e,t){function r(i,a,o,l){var s=d(e[i],e,a);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==ve(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function E(t,r,n){var i=h;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===y){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var l=n.delegate;if(l){var s=C(l,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?y:f,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function C(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=d(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function _(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function O(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(ve(t)+" is not iterable")}return m.prototype=b,i(S,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=u(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},M(D.prototype),u(D.prototype,l,(function(){return this})),t.AsyncIterator=D,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new D(c(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},M(S),u(S,s,"Generator"),u(S,o,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,L.prototype={constructor:L,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(x),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=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 r=this;function i(n,i){return l.type="throw",l.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(o)},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 r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function ge(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,i)}function pe(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){ge(a,n,i,o,l,"next",e)}function l(e){ge(a,n,i,o,l,"throw",e)}o(void 0)}))}}function me(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,be(n.key),n)}}function be(e){var t=function(e,t){if("object"!=ve(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ve(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ve(t)?t:t+""}var Te,we,ke,Se=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.nextRuns=[],this.domProcessing=0,this.runningFlag=!1,this.runId="",this.runStartTime=void 0,this.runDuration=0,this.rerunId="",this.delayProcess=void 0,this.resetting=!1,this.activeStartTime=void 0,this.phase=0,this.runningStep=-1,this.sliceQueued=!1}return t=e,r=[{key:"resetRuns",value:(a=pe(ye().mark((function e(){var t;return ye().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.resetting=!0,e.next=3,new Promise((function(e){return requestAnimationFrame(e)}));case 3:null!==(t=this.delayProcess)&&void 0!==t&&t.timeoutId&&clearTimeout(this.delayProcess.timeoutId),this.nextRuns=[],this.domProcessing=0,this.runningFlag=!1,this.runId="",this.runStartTime=void 0,this.runDuration=0,this.rerunId="",this.delayProcess=void 0,this.resetting=!1,this.activeStartTime=void 0,this.phase=0,this.runningStep=-1,this.sliceQueued=!1;case 17:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"scheduleOnlyIfEarlier",value:function(e,t){var r,n=(this.runningFlag&&null!==(r=this.runStartTime)&&void 0!==r?r:o.d.now())+(null!=e?e:0);this.delayProcess&&n>=this.delayProcess.runTime||this.schedule(e,t)}},{key:"schedule",value:function(e,t){if(xe.isRunning()&&!this.resetting){var r=0===xe.throttle?null!=e?e:0:xe.throttle,n=o.d.now();this.delayRun(r,t,n)}}},{key:"timeSchedule",value:function(e,t){xe.isRunning()&&!this.resetting&&this.delayRun(e,t,o.d.now())}},{key:"run",value:(i=pe(ye().mark((function e(t,r){var n;return ye().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(xe.isRunning()&&!this.resetting){e.next=2;break}return e.abrupt("return");case 2:if(!this.runningFlag){e.next=5;break}return this.rerunId||(this.rerunId="rerun ".concat(r)),e.abrupt("return");case 5:if(this.rerunId="",this.runId=r,this.runningFlag=!0,this.runStartTime=o.d.now(),1===xe.debugLevel&&o.d.log(!0)("Request from: ".concat(r," delay: ").concat(t," runningStep:").concat(this.runningStep," dom:").concat(this.domProcessing," runs:").concat(this.nextRuns.length," D:").concat(null===(n=this.delayProcess)||void 0===n?void 0:n.delay," events:").concat($e().eventQueue.length)),0!==this.phase){e.next=16;break}return $e().captureEvents(),xe.targetManager.applyTargetValues(We()),e.next=15,Ge().calculateAll();case 15:this.phase=1;case 16:if(!(o.d.now()-this.runStartTime>20)){e.next=19;break}return this.requestNextSlice(r),e.abrupt("return");case 19:if(1===this.phase&&(this.runningStep=xe.manager.analyze(),this.phase=2),!(o.d.now()-this.runStartTime>20)){e.next=23;break}return this.requestNextSlice(r),e.abrupt("return");case 23:if(2===this.phase&&(Ge().calculateActivated(),xe.events.resetEventsOnTimeout(),this.phase=3),!(o.d.now()-this.runStartTime>20)){e.next=27;break}return this.requestNextSlice(r),e.abrupt("return");case 27:3===this.phase&&(this.runningStep>=0&&(0===this.domProcessing?this.domOperations(this.runningStep):this.rerunId||(this.rerunId="domrun ".concat(r))),this.phase=4),this.runDuration=o.d.now()-this.runStartTime,0===this.domProcessing&&this.needsRerun();case 30:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"requestNextSlice",value:function(e){var t=this;this.runningFlag=!1,this.sliceQueued||(this.sliceQueued=!0,requestAnimationFrame((function(){t.sliceQueued=!1,t.delayRun(0,"slice-".concat(e),o.d.now())})))}},{key:"needsRerun",value:function(){if(this.phase=0,this.runningFlag=!1,this.rerunId){var e=this.rerunId;return this.rerunId="",void this.schedule(0,"rerun-".concat(e))}if(void 0===(this.nextRuns.length>0?this.nextRuns[0].delay-(o.d.now()-this.nextRuns[0].insertTime):void 0)||ze().lists.activeTModels.length>0||ze().lists.updatingTModels.length>0||ze().lists.restyle.length>0||ze().lists.reasyncStyle.length>0||$e().eventQueue.length>0||Ge().activatedList.length>0)if($e().eventQueue.length>0)this.schedule(1,"events-".concat($e().eventQueue.length));else if(Ge().activatedList.length>0)this.schedule(1,"getManager-locationManager-activatedList");else if(ze().lists.updatingTModels.length>0)this.schedule(1,"getManager-needsRerun-updatingTModels");else if(ze().lists.activeTModels.length>0){var t=ze().lists.activeTModels.find((function(e){return 0===e.targetExecutionCount||e.activeTargetList.filter((function(t){return!e.isScheduledPending(t)})).some((function(t){return e.shouldScheduleRun(t)}))}));if(t){var r=!this.activeStartTime||o.d.now()-this.activeStartTime>15?1:15;this.activeStartTime=o.d.now(),this.schedule(r,"getManager-needsRerun-".concat(t.oid,"-").concat(t.activeTargetList))}}if(!this.delayProcess&&this.nextRuns.length>0){var n=Math.max(1,this.nextRuns[0].delay-(o.d.now()-this.nextRuns[0].insertTime));this.schedule(n,"wake-nextRun")}}},{key:"domOperations",value:function(t){var r=this;this.domProcessing=1,10===t?this.domFixStyles():Promise.all(e.domSteps.filter((function(e,r){return r>=t})).map((function(e){return Promise.resolve().then(e)}))).then((function(){ze().lists.restyle.length?r.domFixStyles():(r.domProcessing=0,r.needsRerun())}))}},{key:"domFixStyles",value:function(){var e=this;this.domProcessing=2,requestAnimationFrame((function(){ze().fixStyles(),e.domProcessing=0,e.needsRerun()}))}},{key:"setDelayProcess",value:function(e,t,r,n,i){var a=this;this.delayProcess={runId:e,insertTime:t,runTime:n,interval:r,timeoutId:setTimeout(pe(ye().mark((function t(){return ye().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a.delayProcess.timeoutId=void 0,t.next=3,a.run(i,e);case 3:a.executeNextRun();case 4:case"end":return t.stop()}}),t)}))),Math.max(0,i))}}},{key:"executeNextRun",value:function(){for(var e=null,t=null;this.nextRuns.length>0;){var r=this.nextRuns.shift(),n=o.d.now();if(!(r.delay-(n-r.insertTime)<0)){e=null,t=r;break}e=r}if(e)this.setDelayProcess(e.runId,e.insertTime,e.delay,o.d.now(),0);else if(t){var i=o.d.now(),a=Math.max(1,t.delay-(i-t.insertTime));this.setDelayProcess(t.runId,t.insertTime,t.delay,i+a,a)}else this.delayProcess=void 0}},{key:"delayRun",value:function(e,t,r){var n=r+e;this.delayProcess?this.delayProcess.timeoutId&&n<this.delayProcess.runTime?(clearTimeout(this.delayProcess.timeoutId),this.insertRun(this.delayProcess.runId,this.delayProcess.insertTime,this.delayProcess.interval),this.setDelayProcess(t,r,e,n,e)):this.insertRun(t,r,e):this.setDelayProcess(t,r,e,n,e)}},{key:"insertRun",value:function(e,t,r){for(var n=0,i=this.nextRuns.length;n<i;){var a=n+i>>1,o=this.nextRuns[a],l=o.insertTime+o.delay-(t+r);if(0===l)return void(o.runId+="-"+e);l>0?i=a:n=a+1}this.nextRuns.splice(n,0,{runId:e,insertTime:t,delay:r})}}],r&&me(t.prototype,r),n&&me(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n,i,a}();function Me(e){return Me="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},Me(e)}function De(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Ee(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ee(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Ce(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_e(n.key),n)}}function _e(e){var t=function(e,t){if("object"!=Me(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Me(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Me(t)?t:t+""}Te=Se,ke=[function(){return ze().createDoms()},function(){return ze().reattachTModels()},function(){return ze().relocateTModels()},function(){return ze().renderTModels()},function(){return ze().fixAsyncStyles()},function(){return ze().deleteDoms()}],(we=be(we="domSteps"))in Te?Object.defineProperty(Te,we,{value:ke,enumerable:!0,configurable:!0,writable:!0}):Te[we]=ke;var xe,Le=function(){return function(e,t,r){return t&&Ce(e.prototype,t),r&&Ce(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}),[{key:"applyTargetValues",value:function(e){var t,r=De(arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.activeTargetList.slice(0));try{for(r.s();!(t=r.n()).done;){var n=t.value;e.isTargetImperative(n)||this.applyTargetValue(e,n)}}catch(e){r.e(e)}finally{r.f()}}},{key:"applyTargetValue",value:function(e,t){var r=e.targets[t];if(o.d.isDefined(r)){if(!e.isExecuted(t)||!e.hasUpdatingImperativeTargets(t)){if(e.isExecuted(t)&&e.getTargetStep(t)===e.getTargetSteps(t)){if(e.isScheduledPending(t))return;var n=o.d.scheduleExecution(e,t);if(n>0)return void Ze().timeSchedule(n,"targetSchedule__".concat(e.oid,"__").concat(t,"_").concat(n))}e.isTargetEnabled(t)?(e.resetScheduleTimeStamp(t),s.j.prepareTarget(e,t),s.j.executeDeclarativeTarget(e,t),o.d.isDefined(r.fetchAction)||m.g.shouldActivateNextTarget(e,t)):r.needsReactivation&&e.removeFromActiveTargets(t)}}else e.removeFromActiveTargets(t)}},{key:"setActualValues",value:function(e,t){if(t.length){var r,n=0,i=De(t=t.slice(0));try{for(i.s();!(r=i.n()).done;){var a=r.value;(n=o.d.scheduleExecution(e,a))>0?Ze().schedule(n,"setActualValues-".concat(e.oid,"__").concat(a,"_").concat(n)):(e.resetScheduleTimeStamp(a),this.setActualValue(e,a))}}catch(e){i.e(e)}finally{i.f()}var l=e.waapiBatch;l&&e.hasDom()?(Je().animate(e,l,O.T.getAnimationHooks()),e.waapiBatch=void 0):e.waapiBatch=void 0}}},{key:"findOriginalTModel",value:function(e,t){return a.X.findParentByTarget(e,t)||rt().find((function(e){return e.targets[t]}))}},{key:"fireOnStep",value:function(e,t,r){var n=e.targetValues[t],i=e.getTargetValue(t),a=e.getTargetSteps(t),l=e.targets[t];e.setLastUpdate(t),e.setTargetMethodName(t,"value");var s=n.originalTargetName,u=e.targets[s],c=e;e.setTargetMethodName(t,"value"),!u&&s&&(u=(c=this.findOriginalTModel(e,s))?c.targets[s]:null);var d=!1;if(e.isTargetImperative(t)){if(u){var h=m.g.getTargetName(o.d.capitalizeFirstLetter(t));"function"==typeof u["on".concat(h,"Step")]?(u["on".concat(h,"Step")].call(c,c.val(t),i,r,a),c.setTargetMethodName(s,["on".concat(h,"Step")]),d=!0):"function"==typeof u.onImperativeStep&&(u.onImperativeStep.call(c,t,c.val(t),i,r,a),c.setTargetMethodName(s,"onImperativeStep"),d=!0),u.activateNextTarget&&!u.activateNextTarget.endsWith("$$")&&u.activateNextTarget.endsWith("$")&&(d=!0,m.g.shouldActivateNextTarget(e,t))}}else d=o.d.handleValueChange(e,t),null!=l&&l.activateNextTarget&&!l.activateNextTarget.endsWith("$$")&&l.activateNextTarget.endsWith("$")&&(d=!0,m.g.shouldActivateNextTarget(e,t));return d}},{key:"fireOnEnd",value:function(e,t){var r=e.targetValues[t];if(r){var n=e.getTargetValue(t),i=e.getTargetSteps(t);e.setLastUpdate(t);var a=r.originalTargetName,l=e.targets[a],u=e;!l&&a&&(l=(u=this.findOriginalTModel(e,a))?u.targets[a]:null);var c=this.calculateTargetStatus(e,r,t);if(e.setTargetStatus(t,c),e.isTargetImperative(t)){var d=m.g.getTargetName(o.d.capitalizeFirstLetter(t));l&&"function"==typeof l["on".concat(d,"End")]?(l["on".concat(d,"End")].call(u,u.val(t),n,i,i),u.setTargetMethodName(a,["on".concat(d,"End")])):l&&"function"==typeof l.onImperativeEnd&&(l.onImperativeEnd.call(u,t,u.val(t)),u.setTargetMethodName(a,"onImperativeEnd")),e.getTargetCycle(t)<e.getTargetCycles(t)-1&&(e.incrementTargetCycle(t),e.resetTargetStep(t),e.resetTargetInitialValue(t))}else{var h;e.getTargetCycle(t)<e.getTargetCycles(t)-1&&(e.incrementTargetCycle(t),e.resetTargetStep(t),e.resetTargetInitialValue(t),e.resetTargetExecutionFlag(t),s.j.executeDeclarativeTarget(e,t)),"function"==typeof(null===(h=e.targets[t])||void 0===h?void 0:h.onStepsEnd)&&(e.targets[t].onStepsEnd.call(e,e.getTargetCycle(t)),e.setTargetMethodName(t,"onStepsEnd"))}m.g.shouldActivateNextTarget(e,t)}}},{key:"calculateTargetStatus",value:function(e,t,r){var n=e.getValueListPointer(r),i=e.getTargetCycle(r),a=e.getTargetCycles(r);return Array.isArray(t.valueList)&&n<t.valueList.length||e.isTargetImperative(r)&&i<a-1?"updating":e.isTargetInLoop(r)||i<a-1?"active":"done"}},{key:"handleWebAnimationAPI",value:function(e,t,r,n,i,a,s,u,c){var d,h=arguments.length>9&&void 0!==arguments[9]&&arguments[9],f=e.waapiBatch||(e.waapiBatch={frames:[],easing:void 0,keyMap:{},totalDuration:0}),v=l.u.isTransformKey(t),y=function(e){for(var t=Math.max(0,e+c),r=0;r<f.frames.length;r++){var n=f.frames[r];if(Math.abs(n.keyTime-t)<1e-4)return n}var i={keyTime:t,tfMap:{},styleMap:{},keyMeta:new Map};return f.frames.push(i),i},g=0;if(n.valueList&&n.valueList.length){var p=n.valueList,m=n.stepList||[1],b=n.intervalList,T=n.step;if(!h){var w=y(0);v?(w.tfMap[t]=T>0&&o.d.isDefined(e.val(r))?e.val(r):p[0],e.val(r,w.tfMap[t])):(w.styleMap[t]=p[0],e.val(r,w.styleMap[t]))}for(var k=1;k<p.length;k++){var S=m[(k-1)%m.length],M=b[(k-1)%b.length],D=y(g+=S*M);v?D.tfMap[t]=p[k]:D.styleMap[t]=p[k],D.keyMeta.set(t,{steps:S,interval:M})}n.valuePointer=p.length}else{if(g=s*(u=u||8),!h){var E=y(0);v?E.tfMap[t]=i:E.styleMap[t]=i}var C=y(g);v?C.tfMap[t]=a:C.styleMap[t]=a,e.val(r,i),C.keyMeta.set(t,{steps:s,interval:u})}return e.getTargetEasing(r)&&(f.easing=e.getTargetEasing(r)),f.totalDuration=Math.max(0,f.totalDuration,c+g),((d=f.keyMap)[t]||(d[t]=new Set)).add(r),e.removeFromUpdatingTargets(r),g}},{key:"setActualValue",value:function(e,t){var r=e.targetValues[t];if(r)if(e.isTargetImperative(t)||e.isTargetEnabled(t)){var n=e.getTargetValue(t),i=m.g.getTargetName(t),a=e.getTargetStep(t),l=e.getTargetSteps(t),s=e.getTargetCycle(t),u=e.getValueListPointer(t),c=e.getTargetInterval(t),d=e.getTargetInitialValue(t),h=e.getLastUpdate(t),f=o.d.now();if(o.d.isDefined(d)||(d=o.d.isDefined(e.val(t))?e.val(t):"number"==typeof n?0:void 0,e.setTargetInitialValue(t,d)),e.canBeAnimated(i)){if(e.hasDom())for(var v=e.isTargetImperative(t)?e.getTargetCycles(t):0,y=this.handleWebAnimationAPI(e,i,t,r,d,n,l,c,0),g=1;g<v;g++)this.handleWebAnimationAPI(e,i,t,r,d,n,l,c,g*y,!0)}else{if(a<=l){e.incrementTargetStep(t,f,h,c,l);var p=L.a.easingMorph(e,t,d,n,a,l);if(e.val(t,p),e.setActual(t,p),e.addToStyleTargetList(t),this.fireOnStep(e,t,a),e.getTargetStep(t)<l)return void Ze().scheduleOnlyIfEarlier(c,"".concat(e.oid,"---").concat(t,"-").concat(a,"/").concat(l,"-").concat(s,"-").concat(c))}e.val(t,n),e.setActual(t,n),e.addToStyleTargetList(t),r.step=l,e.setLastUpdate(t),a=l;var b=1;r.valueList&&u<r.valueList.length?(e.incrementValueListPointer(t),u=e.getValueListPointer(t),e.resetTargetStep(t),r.initialValue=r.value,r.value=r.valueList[u],r.steps=r.stepList[(u-1)%r.stepList.length],r.interval=Array.isArray(r.intervalList)?r.intervalList[(u-1)%r.intervalList.length]:0,r.easing=r.easingList[(u-1)%r.easingList.length],b=c):this.fireOnEnd(e,t),Ze().scheduleOnlyIfEarlier(b,"".concat(e.oid,"---").concat(t,"-").concat(a,"/").concat(l,"-").concat(s,"-").concat(b))}}else Ze().schedule(15,"setActualValue-postpone-".concat(e.oid,"__").concat(t))}}])}(),Oe=r(580);function Ae(e){return Ae="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},Ae(e)}function Pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||Ie(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 je(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Ie(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function Ie(e,t){if(e){if("string"==typeof e)return Ve(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ve(e,t):void 0}}function Ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Ne(){Ne=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var a=t&&t.prototype instanceof p?t:p,o=Object.create(a.prototype),l=new L(n||[]);return i(o,"_invoke",{value:E(e,r,l)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",v="executing",y="completed",g={};function p(){}function m(){}function b(){}var T={};u(T,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(O([])));k&&k!==r&&n.call(k,o)&&(T=k);var S=b.prototype=p.prototype=Object.create(T);function M(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function D(e,t){function r(i,a,o,l){var s=d(e[i],e,a);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==Ae(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function E(t,r,n){var i=h;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===y){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var l=n.delegate;if(l){var s=C(l,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var u=d(t,r,n);if("normal"===u.type){if(i=n.done?y:f,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function C(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=d(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function _(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function O(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(Ae(t)+" is not iterable")}return m.prototype=b,i(S,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:m,configurable:!0}),m.displayName=u(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},M(D.prototype),u(D.prototype,l,(function(){return this})),t.AsyncIterator=D,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new D(c(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},M(S),u(S,s,"Generator"),u(S,o,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,L.prototype={constructor:L,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(x),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=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 r=this;function i(n,i){return l.type="throw",l.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(o)},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 r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function He(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,i)}function Fe(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){He(a,n,i,o,l,"next",e)}function l(e){He(a,n,i,o,l,"throw",e)}o(void 0)}))}}var Be=[],Re=function(e){var t;if(e){var r,n=e instanceof i.c?e:new i.c("App",e);return null!==(t=xe)&&void 0!==t&&t.tRoot?(xe.tRoot.addChild(n),n):"loading"===document.readyState?(Be.push(n),n):(null!==(r=xe)&&void 0!==r&&r.tRoot||"loading"===document.readyState||ot(),xe.tRoot.addChild(n),n)}};Re.unmount=Fe(Ne().mark((function e(){var t;return Ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(xe){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,xe.stop();case 4:return t=xe.tRoot,t.getChildren().forEach((function(e){var r,n;e.val("sourceDom")?Y.v.restoreDomState(null===(n=e.$dom)||void 0===n?void 0:n.element,e.domState):null!==(r=e.$dom)&&void 0!==r&&r.attr("tgjs")&&t.$dom.removeElement(e.$dom.element)})),t.allChildrenList=[],t.allChildrenMap={},t.clearUpdatingChildren(),t.clearActiveChildren(),t.clearAnimatingChildren(),e.next=14,xe.reset();case 14:Re.oids={},Re.tmodelIdMap={},xe=void 0;case 17:case"end":return e.stop()}}),e)}))),Re.oids={},Re.tmodelIdMap={},Re.getOid=function(e){var t=Re.oids;o.d.isDefined(t[e])||(t[e]=0);var r=t[e]++;return{oid:r>0||e.endsWith("_")?"".concat(e).concat(r):e,num:r}};var Ue=function(){return!!xe&&xe.runningFlag},We=function(){var e;return null===(e=xe)||void 0===e?void 0:e.tRoot},$e=function(){var e;return null===(e=xe)||void 0===e?void 0:e.events},Xe=function(){var e;return null===(e=xe)||void 0===e?void 0:e.pager},Ye=function(){var e;return null===(e=xe)||void 0===e?void 0:e.loader},qe=function(e,t,r,n){var i;return null===(i=xe)||void 0===i||null===(i=i.loader)||void 0===i?void 0:i.fetch(e,t,r,n)},Ke=function(e,t,r){var n;return null===(n=xe)||void 0===n||null===(n=n.loader)||void 0===n?void 0:n.fetchImage(e,t,r)},ze=function(){var e;return null===(e=xe)||void 0===e?void 0:e.manager},Qe=function(){var e;return null===(e=xe)||void 0===e?void 0:e.targetManager},Je=function(){var e;return null===(e=xe)||void 0===e?void 0:e.animationManager},Ze=function(){var e;return null===(e=xe)||void 0===e?void 0:e.runScheduler},Ge=function(){var e;return null===(e=xe)||void 0===e?void 0:e.locationManager},et=function(){var e,t;return null!==(e=null===(t=xe)||void 0===t||null===(t=t.tRoot)||void 0===t?void 0:t.val("screenWidth"))&&void 0!==e?e:0},tt=function(){var e,t;return null!==(e=null===(t=xe)||void 0===t||null===(t=t.tRoot)||void 0===t?void 0:t.val("screenHeight"))&&void 0!==e?e:0},rt=function(){var e;return null===(e=xe)||void 0===e||null===(e=e.manager)||void 0===e?void 0:e.getVisibles()},nt=function(){var e;return null===(e=xe)||void 0===e?void 0:e.resizeLastUpdate},it=function(e){return Re.tmodelIdMap[e]},at=function(e){var t=Re.tmodelIdMap[e];return t&&t.targets.sourceDom?t:void 0};window.t=window.t||it;var ot=function(){var e;xe||(e={throttle:0,debugLevel:0,runningFlag:!1,resizeLastUpdate:0,init:function(){return e.$window=new n.J(window),e.loader=new _,e.pager=new re,e.events=new p,e.locationManager=new X,e.targetManager=new Le,e.animationManager=new Oe._,e.manager=new fe,e.runScheduler=new Se,e.tRootFactory=function(){var t=new i.c("tRoot",{styling:!1,domHolder:!0,isVisible:!0,screenWidth:function(){var r=n.J.getScreenWidth();return r!==t.val("screenWidth")&&(e.resizeLastUpdate=o.d.now()),r},screenHeight:function(){var r=n.J.getScreenHeight();return r!==t.val("screenHeight")&&(e.resizeLastUpdate=o.d.now()),r},initPageDom:function(){var e=this;Y.v.initPageDoms(this.$dom),Be.length&&(Be.forEach((function(t){return e.addChild(t)})),Be.length=0)}});return t.$dom=n.J.query("#tgjs-root")?new n.J("#tgjs-root"):new n.J("body"),"body"!==t.$dom.getTagName()&&t.$dom.attr("data-tjno-slot","true"),t.val("screenWidth",n.J.getScreenWidth()),t.val("screenHeight",n.J.getScreenHeight()),e.tRoot&&e.tRoot.getChildren().forEach((function(e){if(!e.val("sourceDom")){var r=new i.c(e.type,e.targets);t.addChild(r)}})),t},e.tRoot=e.tRootFactory(),e}},e.start=Fe(Ne().mark((function t(){return Ne().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.runningFlag=!1,s.j.executeDeclarativeTarget(e.tRoot,"screenWidth"),s.j.executeDeclarativeTarget(e.tRoot,"screenHeight"),e.events.detachAll(),e.events.detachWindowEvents(),e.events.attachWindowEvents(),e.events.clearAll(),e.events.attachEvents(e.manager.getVisibles()),t.next=10,e.runScheduler.resetRuns();case 10:return e.runningFlag=!0,e.runScheduler.schedule(0,"appStart"),t.abrupt("return",e);case 13:case"end":return t.stop()}}),t)}))),e.stop=Fe(Ne().mark((function t(){return Ne().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.runningFlag=!1,e.events.detachAll(),e.events.detachWindowEvents(),e.events.clearAll(),t.next=6,e.animationManager.deleteAll();case 6:return t.next=8,e.animationManager.flushOneFrame();case 8:return t.next=10,e.runScheduler.resetRuns();case 10:return t.abrupt("return",e);case 11:case"end":return t.stop()}}),t)}))),e.reset=Fe(Ne().mark((function t(){return Ne().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.manager.getVisibles().forEach((function(e){var t;if(e.tfMap={},e.styleMap={},null!==(t=e.allStyleTargetMap)&&void 0!==t&&t.size){var r,n=je(e.allStyleTargetMap);try{for(n.s();!(r=n.n()).done;){var i=Pe(r.value,1)[0];o.d.isDefined(e.val(i))&&e.addToStyleTargetList(i)}}catch(e){n.e(e)}finally{n.f()}}})),t.next=3,e.runScheduler.resetRuns();case 3:e.manager.clearAll(),e.locationManager.clear(),e.loader.clear(),a.X.clear();case 7:case"end":return t.stop()}}),t)}))),e.isRunning=function(){return e.runningFlag},e.find=function(e){return a.X.find(e)},(xe=e).init().start())};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",ot):ot()},901:function(e,t,r){r.d(t,{d:function(){return h}});var n=r(528),i=r(675);function a(e){return a="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},a(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}function s(e,t,r){return t=c(t),function(e,t){if(t&&("object"==a(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,u()?Reflect.construct(t,r||[],c(e).constructor):t.apply(e,r))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var h=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=s(this,t,["BI"])).parent=e,r.currentBrakcetStatus=2,r}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&&d(e,t)}(t,e),r=t,(n=[{key:"canHaveDom",value:function(){return!1}},{key:"shouldBeBracketed",value:function(){return!1}},{key:"excludeDefaultStyling",value:function(){return!0}},{key:"isIncluded",value:function(){return!1}},{key:"getWidth",value:function(){return this.getContentWidth()}},{key:"getHeight",value:function(){return this.getContentHeight()}},{key:"getMinWidth",value:function(){return this.bottomBaseWidth}},{key:"getBaseWidth",value:function(){return this.bottomBaseWidth}},{key:"getBaseHeight",value:function(){return this.topBaseHeight}},{key:"useContentWidth",value:function(){return this.getRealParent().useContentWidth()}},{key:"useContentHeight",value:function(){return this.getRealParent().useContentHeight()}},{key:"getContainerOverflowMode",value:function(){return this.getRealParent().getContainerOverflowMode()}},{key:"getTopBaseHeight",value:function(){return this.topBaseHeight}},{key:"isVisible",value:function(){return!!this.visibilityStatus&&this.visibilityStatus.top&&this.visibilityStatus.bottom}},{key:"getBracketThreshold",value:function(){return this.getRealParent().getBracketSize()}},{key:"addToParentVisibleChildren",value:function(){}},{key:"createViewport",value:function(){return this.viewport=this.viewport||new i.L,this.viewport.xNext=this.x,this.viewport.xNorth=this.x,this.viewport.xEast=this.x,this.viewport.xSouth=this.x,this.viewport.xWest=this.x,this.viewport.absX=this.getRealParent().viewport.absX,this.viewport.absY=this.getRealParent().viewport.absY,this.viewport.scrollTop=this.getRealParent().viewport.scrollTop,this.viewport.scrollLeft=this.getRealParent().viewport.scrollLeft,this.viewport.xOverflowReset=this.getRealParent().viewport.xOverflowReset,this.viewport.xOverflowLimit=this.getRealParent().viewport.xOverflowLimit,this.viewport.yNext=this.y,this.viewport.yNorth=this.y,this.viewport.yWest=this.y,this.viewport.yEast=this.y,this.viewport.ySouth=this.y,this.viewport.container=this,this.viewport}},{key:"getRealParent",value:function(){return this.realParent}},{key:"getRightMargin",value:function(){return 0}},{key:"getBottomMargin",value:function(){return 0}},{key:"calcAbsolutePosition",value:function(e,t){this.absX=e+this.getRealParent().absX,this.absY=t+this.getRealParent().absY}},{key:"shouldCalculateChildren",value:function(){var e=this.isVisible();return this.currentBrakcetStatus>=1||this.isNowVisible||this.isNowInvisible?(this.currentBrakcetStatus=Math.max(0,this.currentBrakcetStatus-1),!0):(e&&(this.currentBrakcetStatus=Math.min(2,this.currentBrakcetStatus+1)),!1!==this.getDirtyLayout()&&e)}},{key:"getDirtyLayout",value:function(){return this.getRealParent().managesOwnScroll()?this.getRealParent().backupDirtyLayout:this.dirtyLayout}},{key:"validateVisibilityInParent",value:function(){return!0}},{key:"adjustViewport",value:function(){this.viewport.xEast=Math.max(this.viewport.xEast,this.getRealParent().viewport.xEast),this.viewport.ySouth=Math.max(this.viewport.ySouth,this.getRealParent().viewport.ySouth)}},{key:"getChildren",value:function(){return this.allChildrenList}}])&&o(r.prototype,n),a&&o(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,a}(n.c)},780:function(e,t,r){r.d(t,{M:function(){return f}});var n=r(901),i=r(142);function a(e){return a="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},a(e)}function o(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(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 l(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=s(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function s(e,t){if(e){if("string"==typeof e)return u(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function d(e,t,r){return(t=h(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,a=[{key:"generate",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!e.bracketMap[t.oid]||e.pageMap[t.oid]!==t.allChildrenList||r?(e.bracketMap[t.oid]=e.buildTreeBottomUp(t,t.getChildren()),e.pageMap[t.oid]=t.allChildrenList):(t.lastChildrenUpdate.deletions.length>0&&(e.updateTreeOnDeletions(t,t.lastChildrenUpdate.deletions),e.reindexTree(t)),t.lastChildrenUpdate.additions.length>0&&e.updateTreeOnAdditions(t,t.lastChildrenUpdate.additions),(t.lastChildrenUpdate.deletions.length>0||t.lastChildrenUpdate.additions.length>0)&&e.reindexTree(t)),t.lastChildrenUpdate.additions.length=0,t.lastChildrenUpdate.deletions.length=0,e.bracketMap[t.oid]}},{key:"updateTreeOnDeletions",value:function(t,r){function i(r,a){if(r)if(a instanceof n.d&&a.parent===a.realParent){var o=e.bracketMap[t.oid],l=o.indexOf(a);l>=0&&o.splice(l,1)}else{var s=r.allChildrenList.indexOf(a);s>=0&&(r.allChildrenList.splice(s,1),e.markBracketDirty(r),0===r.allChildrenList.length&&i(r.parent,r))}}r.forEach((function(e){return i(e.bracket,e)}))}},{key:"reindexTree",value:function(t){function r(e,t){if(0===e.allChildrenList.length)return t;if(e.allChildrenList[0]instanceof n.d){e.startIndex=t;var i,a=l(e.allChildrenList);try{for(a.s();!(i=a.n()).done;)t=r(i.value,t)}catch(e){a.e(e)}finally{a.f()}e.endIndex=t}else e.startIndex=t,t+=e.allChildrenList.length,e.endIndex=t;return t}var i,a=0,o=l(e.bracketMap[t.oid]);try{for(o.s();!(i=o.n()).done;)a=r(i.value,a)}catch(e){o.e(e)}finally{o.f()}}},{key:"updateTreeOnAdditions",value:function(t,r){var i=t.getBracketSize();r.forEach((function(r){var a=r.index,o=r.child,l=e.findOrCreateBracket(t,a),s=a-l.startIndex;s<l.allChildrenList.length?l.allChildrenList.splice(s,0,o):l.allChildrenList.push(o),o.bracket=l;var u=l;for(u.startIndex=Math.min(u.startIndex,a),u.endIndex=u.startIndex+u.allChildrenList.length,u.currentStatus="new",u.markLayoutDirty("update"),u=l.getParent();u instanceof n.d;)u.startIndex=Math.min(u.startIndex,a),u.endIndex=Math.max(u.endIndex,a+1),u.currentStatus="new",u.markLayoutDirty("update"),u=u.getParent();l.allChildrenList.length>i&&e.splitBracket(t,l)}))}},{key:"splitBracket",value:function(t,r){for(var i=r.allChildrenList,a=t.getBracketSize(),l=[],s=r.startIndex,u=0;u<i.length;u+=a){var c=i.slice(u,u+a),d=s+c.length,h=e.createBracket(t,s,d,c);h.parent=r.parent,s=h.endIndex,l.push(h)}if(r.parent!==r.realParent){var f,v=r.parent.allChildrenList.indexOf(r);if(v>=0&&(f=r.parent.allChildrenList).splice.apply(f,[v,1].concat(l)),e.markBracketDirty(r),r.parent.allChildrenList.length>=a){var y=e.buildTreeBottomUp(t,r.parent.allChildrenList);if(r.parent.allChildrenList=y,r.parent.allChildrenList.forEach((function(t){t.parent=r.parent,e.markBracketDirty(t)})),r.parent.parent){var g,p=r.parent.parent.allChildrenList.indexOf(r.parent);p>=0&&((g=r.parent.parent.allChildrenList).splice.apply(g,[p,1].concat(o(y))),r.parent.parent.allChildrenList.forEach((function(e){e.parent=r.parent.parent})))}}}else{var m=e.bracketMap[t.oid],b=m.indexOf(r);b>=0&&m.splice.apply(m,[b,1].concat(l)),m.length>t.getBracketSize()&&(e.bracketMap[t.oid]=e.buildTreeBottomUp(t,m))}l.forEach((function(t){return e.markBracketDirty(t)})),l[0].parent instanceof n.d&&e.markBracketDirty(l[0].parent)}},{key:"findOrCreateBracket",value:function(t,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.bracketMap[t.oid],o=l(a);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s.startIndex<=r&&s.endIndex>=r)return s.getFirstChild()instanceof n.d?e.findOrCreateBracket(t,r,s.allChildrenList):s}}catch(e){o.e(e)}finally{o.f()}var u=e.createBracket(t,r,r);if(a.push(u),a.length>t.getBracketSize()){var c=e.buildTreeBottomUp(t,a);e.bracketMap[t.oid]=c}return u}},{key:"buildTreeBottomUp",value:function(t,r){for(var i=r.length,a=t.getBracketSize(),o=[],l=0;l<i;l+=a){var s=r.slice(l,l+a),u=s[0]instanceof n.d,c=u?s[0].startIndex:l,d=u?s[s.length-1].endIndex:l+s.length,h=e.createBracket(t,c,d,s);o.push(h)}return o.length>a?e.buildTreeBottomUp(t,o):o}},{key:"createBracket",value:function(t,r,a,o){var l=new n.d(t);return i.qw.tmodelIdMap[l.oid]=l,l.realParent=t,l.allChildrenList=o||l.allChildrenList,l.startIndex=r,l.endIndex=a,l.allChildrenList.forEach((function(e){e instanceof n.d?(e.realParent=t,e.parent=l):e.bracket=l})),e.all[l.oid]=l,l}},{key:"reset",value:function(){e.bracketMap={},e.pageMap={},e.all={}}},{key:"markBracketDirty",value:function(e){for(var t=e;t&&"BI"===t.type;)t.currentStatus="new",t.markLayoutDirty("update"),t=t.parent}}],(r=null)&&c(t.prototype,r),a&&c(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,a}();d(f,"bracketMap",{}),d(f,"pageMap",{}),d(f,"all",{})},210:function(e,t,r){function n(e){return n="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},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.d(t,{I:function(){return u}});var o,l,s,u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,n=[{key:"color2Integers",value:function(t){if(t=t?String(t):"",t=e.colors[t.toLowerCase()]||t){if(t.startsWith("#")){t=3===(t=t.slice(1)).length?t.split("").map((function(e){return e+e})).join(""):t;var r=parseInt(t,16);return[r>>16&255,r>>8&255,255&r]}var n=t.match(/\d+/g);return n&&3===n.length?n.map(Number):void 0}}}],(r=null)&&i(t.prototype,r),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();o=u,s={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},(l=a(l="colors"))in o?Object.defineProperty(o,l,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[l]=s},728:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{v:function(){return DomInit}});var _$Dom_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(185),_TUtil_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(129),_App_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(142),_TargetData_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(432);function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){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 _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _typeof(e){return _typeof="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},_typeof(e)}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _createForOfIteratorHelper(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var DomInit=function(){function DomInit(){_classCallCheck(this,DomInit)}return _createClass(DomInit,null,[{key:"initCacheDoms",value:function(e){var t=(0,_App_js__WEBPACK_IMPORTED_MODULE_2__.Bt)().$dom.queryAll("[tgjs]");e.forEach((function(e){e.$dom=null}));var r,n=_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.list2map(e.filter((function(e){return"BI"!==e.type}))),i=[],a=_createForOfIteratorHelper(t);try{for(a.s();!(r=a.n()).done;){var o=r.value,l=o.getAttribute("id"),s=n[l];s?s.$dom=new _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J("#".concat(l)):(s=(0,_App_js__WEBPACK_IMPORTED_MODULE_2__.iP)(l))?(i.push(s),s.$dom=new _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J("#".concat(l))):_$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J.detach(o)}}catch(e){a.e(e)}finally{a.f()}return i}},{key:"mount",value:function(e,t){if(void 0!==t){var r=DomInit.normalizeElementTarget(t);if(r){var n;null!==(n=e.$dom)&&void 0!==n&&n.exists()&&(e.domState?DomInit.restoreDomState(e.$dom.element,e.domState):e.$dom.detach()),e.domState=DomInit.snapshotDomState(r.element),e.targets.$dom=r,e.val("$dom",r);var i=r.getTagName().toLowerCase(),a={};e.val("element")!==i&&(a.element=i),a.position=r.getStyleValue("position")||"relative",a.sourceDom=!0,a.domIsland=!0,_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(e.targets.reuseDomDefinition)||(a.reuseDomDefinition=!0,a.domHolder=!0,_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(e.targets.excludeXYCalc)||(a.excludeXYCalc=!0),_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(e.targets.x)||_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(e.targets.excludeX)||(a.excludeX=!0),_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(e.targets.y)||_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(e.targets.excludeY)||(a.excludeY=!0)),e.addTargets(a);var o=r.getId();if(o&&o!==e.oid)e.domId=o;else if(!o){var l="tgjs-".concat(e.oid);r.ensureId(l),e.domId=l}r.attr("tgjs-oid",e.oid),r.attr("tgjs","true"),e.$dom=void 0}}}},{key:"initPageDoms",value:function(e){var t,r=new Map,n=_createForOfIteratorHelper(e.queryAll("*"));try{for(n.s();!(t=n.n()).done;){var i=t.value,a=void 0,o=Array.from(i.attributes),l=o.some((function(e){return"tg"===e.name||e.name.startsWith("tg-")})),s={};if(l){var u,c=_createForOfIteratorHelper(o);try{for(c.s();!(u=c.n()).done;){var d=u.value;if(d.name.startsWith("tg-")){var h=d.name.slice(3),f=_TargetData_js__WEBPACK_IMPORTED_MODULE_3__.u.toCanonicalKey(h),v=d.value.trim(),y=DomInit.parseString(v);s[f]=y}else"tg"===d.name&&(s[d.name]=!0)}}catch(e){c.e(e)}finally{c.f()}}var g=i.parentElement,p=r.get(g),m=void 0;if(Object.keys(s).length>0&&((m=i.getAttribute("id"))||p||(m=_App_js__WEBPACK_IMPORTED_MODULE_2__.qw.getOid("blank").oid,i.setAttribute("id",m)),i.getAttribute("tgjs")||i.setAttribute("tgjs",!0),a=_objectSpread({id:m,baseElement:i.tagName.toLowerCase(),$dom:new _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J(i)},s)),p){a||(a={textOnly:!1,html:i.outerHTML,$dom:new _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J(i)});var b=DomInit.getChildrenKey(p);b?Array.isArray(p[b].value)?p[b].value.push(a):"string"==typeof p[b]?p[b]={cycles:_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isNumber(+p[b])?+p[b]:1,value:[a]}:"object"===_typeof(p[b])&&(p[b].value=[a]):p.children$={cycles:1,value:[a]},r.set(i,a)}else a&&r.set(i,a)}}catch(e){n.e(e)}finally{n.f()}var T,w=[],k=_createForOfIteratorHelper(r.values());try{for(k.s();!(T=k.n()).done;){var S=T.value,M=S.$dom.element.parentElement,D=r.get(M);D?(S.$dom.detach(),delete S.$dom,delete S.id,S.sourceDom=!0,S.otype=S.id||(D.id||_App_js__WEBPACK_IMPORTED_MODULE_2__.qw.getOid("blank").oid)+"_",S.isVisible=_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(S.isVisible)?S.isVisible:function(){return this.getParent().isVisible()},S.domParent=_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(S.domParent)?S.domParent:function(){return this.getParent()}):(S.isVisible=!_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(S.isVisible)||S.isVisible,S.domHolder=!_TUtil_js__WEBPACK_IMPORTED_MODULE_1__.d.isDefined(S.domHolder)||S.domHolder,S.sourceDom=!0,(0,_App_js__WEBPACK_IMPORTED_MODULE_2__.Bt)().addChild(S),S.isVisible||w.push({$dom:S.$dom,tmodel:(0,_App_js__WEBPACK_IMPORTED_MODULE_2__.Bt)().getLastChild()}))}}catch(e){k.e(e)}finally{k.f()}w.forEach((function(e){var t=e.$dom,r=e.tmodel;t.exists()&&!r.hasChildren()&&(t.detach(),r.val("requiresDom",!1))}))}},{key:"getChildrenKey",value:function(e){for(var t=0,r=Object.keys(e);t<r.length;t++){var n=r[t];if(n.toLowerCase().includes("children"))return n}return null}},{key:"parseString",value:function parseString(rawValue){if("string"!=typeof rawValue)return rawValue;var trimmed=rawValue.trim(),isFunction=/^function\s*\([\s\S]*?\)\s*\{[\s\S]*\}$/m.test(trimmed)||/^\(?[\w\s,]*\)?\s*=>\s*(\{[\s\S]*\}|\S+)/m.test(trimmed),isObject=/^(\{[\s\S]*\}|\[[\s\S]*\])$/.test(trimmed),containsCode=["return","setTarget","TargetJS.","addChild","addSibling","activateTarget","removeChild","removeAll"].some((function(e){return trimmed.includes(e)}));if(!isObject&&!isFunction&&containsCode)try{return new Function(trimmed)}catch(e){}if(isObject||isFunction)try{return eval("(".concat(trimmed,")"))}catch(e){}try{return JSON.parse(trimmed)}catch(e){}return rawValue}},{key:"snapshotDomState",value:function(e){if(e&&1===e.nodeType){for(var t={},r=0,n=Array.from(e.attributes);r<n.length;r++){var i=n[r],a=i.name,o=i.value;t[a]=o}return{attrs:t,styleAttr:e.getAttribute("style"),html:e.innerHTML}}}},{key:"restoreDomState",value:function(e,t){if(e&&1===e.nodeType&&t){for(var r=t.attrs,n=t.styleAttr,i=0,a=Array.from(e.attributes);i<a.length;i++){var o=a[i].name;o in r||e.removeAttribute(o)}for(var l=0,s=Object.entries(r);l<s.length;l++){var u=_slicedToArray(s[l],2),c=u[0],d=u[1];e.getAttribute(c)!==d&&e.setAttribute(c,d)}n?e.setAttribute("style",n):e.removeAttribute("style"),e.innerHTML=t.html}}},{key:"normalizeElementTarget",value:function(e){if(e instanceof _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J)return e;if(e instanceof Element)return new _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J(e);if("string"==typeof e){var t=_$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J.querySelector(e);return t?new _$Dom_js__WEBPACK_IMPORTED_MODULE_0__.J(t):null}return null}}])}()},736:function(e,t,r){var 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 a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function o(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}r.d(t,{G:function(){return s}});var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,n=[{key:"easingFunction",value:function(t){return t&&e.easeMap.get(t)||u}},{key:"cubicBezier",value:function(e,t,r,n){var i=function(e,t,r){var n=3*t,i=3*(r-t)-n;return(((1-n-i)*e+i)*e+n)*e},a=function(e,t,r){var n=3*t,i=3*(r-t)-n;return(3*(1-n-i)*e+2*i)*e+n};return function(o){var l=function(t){for(var n=t,o=0;o<8;o++){var l=i(n,e,r)-t;if(Math.abs(l)<1e-6)return n;var s=a(n,e,r);if(Math.abs(s)<1e-6)break;(n-=l/s)<0?n=0:n>1&&(n=1)}for(var u=0,c=1,d=0,h=0;h<20;h++){var f=i(d=(u+c)/2,e,r);if(Math.abs(f-t)<1e-6)return d;f<t?u=d:c=d}return d}(o=function(e){return e<=0?0:e>=1?1:e}(o));return i(l,t,n)}}}],(r=null)&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();function u(e){return e}n=s,o(s,"LINEAR","linear"),o(s,"EASE","ease"),o(s,"EASE_IN","ease-in"),o(s,"EASE_OUT","ease-out"),o(s,"EASE_IN_OUT","ease-in-out"),o(s,"STEP_START","step-start"),o(s,"STEP_END","step-end");var c={_:n.cubicBezier(.25,.1,.25,1)},d={_:n.cubicBezier(.42,0,1,1)},h={_:n.cubicBezier(0,0,.58,1)},f={_:n.cubicBezier(.42,0,.58,1)};o(s,"easeMap",new Map([[n.LINEAR,u],[n.EASE,c._],[n.EASE_IN,d._],[n.EASE_OUT,h._],[n.EASE_IN_OUT,f._],[n.STEP_START,function(e){return e<=0?0:1}],[n.STEP_END,function(e){return e<1?0:1}]]))},745:function(e,t,r){r.d(t,{X:function(){return d}});var n=r(129),i=r(142);function a(e){return a="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},a(e)}function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return l(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function u(e,t,r){return(t=c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,a=[{key:"clear",value:function(){e.foundParentWithType={},e.foundParentWithTarget={},e.foundTypeMap={},e.foundTargetMap={},e.foundOids={},e.foundHandler={}}},{key:"findFirstScrollHandler",value:function(t,r,n){if(t){var i="".concat(t.oid," ").concat(r," ").concat(n);if(e.foundHandler[i])return e.foundHandler[i];var a=this.findScrollHandler(t,n,r);return a&&(e.foundHandler[i]=a),a}}},{key:"findFirstHandler",value:function(t,r){if(t){var n="".concat(t.oid," ").concat(r);if(e.foundHandler[n])return e.foundHandler[n];var i=this.findEventHandler(t,r);return i&&(e.foundHandler[n]=i),i}}},{key:"findFirstScrollTopHandler",value:function(e,t){return this.findFirstScrollHandler(e,"onScrollTop",t)}},{key:"findFirstScrollLeftHandler",value:function(e,t){return this.findFirstScrollHandler(e,"onScrollLeft",t)}},{key:"findFirstPinchHandler",value:function(e){return this.findFirstHandler(e,"onPinch")}},{key:"findFirstSwipeHandler",value:function(e){return this.findFirstHandler(e,"onSwipe")}},{key:"findFirstEnterHandler",value:function(e){return this.findFirstHandler(e,"onEnter")}},{key:"findFirstLeaveHandler",value:function(e){return this.findFirstHandler(e,"onLeave")}},{key:"findFirstClickHandler",value:function(e){return this.findFirstHandler(e,"onClick")||this.findFirstHandler(e,"onAnyClick")}},{key:"findScrollHandler",value:function(e,t,r){for(;e&&(!e.canHandleEvent("onSwipe")||"wheel"===t);){if(e.canHandleEvent(r)||e.canHandleEvent("onScroll"))return e;e=e.getParent()}}},{key:"findEventHandler",value:function(e,t){for(;e;){if(e.canHandleEvent(t))return e;e=e.getParent()}}},{key:"findParentByType",value:function(t,r){var i="".concat(t.oid,"__").concat(r);if(!n.d.isDefined(e.foundParentWithType[i]))for(var a=t.getParent();a;){if(a.type===r){e.foundParentWithType[i]=a;break}a=a.getParent()}return e.foundParentWithType[i]}},{key:"findParentByTarget",value:function(t,r,i){var a="".concat(t.oid,"__").concat(r);if(!n.d.isDefined(e.foundParentWithTarget[a]))for(var o=t.getParent();o;){if(n.d.isDefined(o.targets[r])||n.d.isDefined(o.targetValues[r])){if(!n.d.isDefined(i)){e.foundParentWithTarget[a]=o;break}if(o.getTargetValue(r)===i){e.foundParentWithTarget[a]=o;break}}o=o.getParent()}return e.foundParentWithTarget[a]}},{key:"findByType",value:function(t){if(!n.d.isDefined(e.foundTypeMap[t])){var r=function(e){if(e.type===t)return e;var n,i=o(e.getChildren());try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a&&a.hasChildren()){var l=r(a);if(l)return l}else if(a&&a.type===t)return a}}catch(e){i.e(e)}finally{i.f()}},a=r((0,i.Bt)());a&&(e.foundTypeMap[t]=a)}return e.foundTypeMap[t]}},{key:"findByTarget",value:function(t){if(!n.d.isDefined(e.foundTargetMap[t])){var r=function(e){if(e.targets[t])return e;var n,i=o(e.getChildren());try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a&&a.hasChildren()){var l=r(a);if(l)return l}else if(a&&a.targets[t])return a}}catch(e){i.e(e)}finally{i.f()}},a=r((0,i.Bt)());a&&(e.foundTargetMap[t]=a)}return e.foundTargetMap[t]}},{key:"find",value:function(t){if(!n.d.isDefined(e.foundOids[t])){var r=function(e){if(e.oid===t)return e;var n,i=o(e.getChildren());try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a&&a.hasChildren()){var l=r(a);if(l)return l}else if(a&&a.oid===t)return a}}catch(e){i.e(e)}finally{i.f()}},a=r((0,i.Bt)());a&&(e.foundOids[t]=a)}return e.foundOids[t]}}],(r=null)&&s(t.prototype,r),a&&s(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,a}();u(d,"foundParentWithType",{}),u(d,"foundParentWithTarget",{}),u(d,"foundTypeMap",{}),u(d,"foundTargetMap",{}),u(d,"foundOids",{}),u(d,"foundHandler",{})},528:function(e,t,r){r.d(t,{c:function(){return A}});var n=r(142),i=r(985),a=r(129),o=r(347),l=r(956),s=r(432),u=r(185);function c(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(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 d(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=f(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||f(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 f(e,t){if(e){if("string"==typeof e)return v(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function y(e){return y="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},y(e)}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,p(n.key),n)}}function p(e){var t=function(e,t){if("object"!=y(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==y(t)?t:t+""}var m=function(){return e=function e(t,r,i){var o;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"object"===y(t)&&void 0===r&&(r=t,t=""),this.targets=Object.assign({},r),i=i||this.targets.id,a.d.isDefined(i))n.qw.getOid(i),this.type=i,this.oid=i,this.oidNum=0;else{this.type=this.targets.otype||t||"blank";var l=n.qw.getOid(this.type);this.oid=l.oid,this.oidNum=l.num}null!==(o=r)&&void 0!==o&&o.sourceDom||!a.d.isDefined(i)||(this.originalId=i),this._state={}},t=[{key:"state",value:function(){return this._state}},{key:"targetValues",get:function(){var e,t;return null!==(t=(e=this.state()).targetValues)&&void 0!==t?t:e.targetValues={}},set:function(e){this.state().targetValues=e}},{key:"actualValues",get:function(){var e,t;return null!==(t=(e=this.state()).actualValues)&&void 0!==t?t:e.actualValues={}},set:function(e){this.state().actualValues=e}},{key:"lastActualValues",get:function(){var e,t;return null!==(t=(e=this.state()).lastActualValues)&&void 0!==t?t:e.lastActualValues={}}},{key:"activeTargetList",get:function(){var e,t;return null!==(t=(e=this.state()).activeTargetList)&&void 0!==t?t:e.activeTargetList=[]},set:function(e){this.state().activeTargetList=e}},{key:"activeTargetMap",get:function(){var e,t;return null!==(t=(e=this.state()).activeTargetMap)&&void 0!==t?t:e.activeTargetMap={}},set:function(e){this.state().activeTargetMap=e}},{key:"updatingTargetList",get:function(){var e,t;return null!==(t=(e=this.state()).updatingTargetList)&&void 0!==t?t:e.updatingTargetList=[]},set:function(e){this.state().updatingTargetList=e}},{key:"updatingTargetMap",get:function(){var e,t;return null!==(t=(e=this.state()).updatingTargetMap)&&void 0!==t?t:e.updatingTargetMap={}},set:function(e){this.state().updatingTargetMap=e}},{key:"fetchActionTargetList",get:function(){var e,t;return null!==(t=(e=this.state()).fetchActionTargetList)&&void 0!==t?t:e.fetchActionTargetList=[]}},{key:"activatedTargets",get:function(){var e,t;return null!==(t=(e=this.state()).activatedTargets)&&void 0!==t?t:e.activatedTargets=[]}},{key:"targetMethodMap",get:function(){var e,t;return null!==(t=(e=this.state()).targetMethodMap)&&void 0!==t?t:e.targetMethodMap={}}},{key:"targetExecutionCount",get:function(){var e,t;return null!==(t=(e=this.state()).targetExecutionCount)&&void 0!==t?t:e.targetExecutionCount=0},set:function(e){this.state().targetExecutionCount=e}},{key:"addedChildren",get:function(){var e,t;return null!==(t=(e=this.state()).addedChildren)&&void 0!==t?t:e.addedChildren=[]}},{key:"deletedChildren",get:function(){var e,t;return null!==(t=(e=this.state()).deletedChildren)&&void 0!==t?t:e.deletedChildren=[]}},{key:"movedChildren",get:function(){var e,t;return null!==(t=(e=this.state()).movedChildren)&&void 0!==t?t:e.movedChildren=[]}},{key:"lastChildrenUpdate",get:function(){var e,t;return null!==(t=(e=this.state()).lastChildrenUpdate)&&void 0!==t?t:e.lastChildrenUpdate={additions:[],deletions:[]}}},{key:"visibleChildren",get:function(){var e,t;return null!==(t=(e=this.state()).visibleChildren)&&void 0!==t?t:e.visibleChildren=[]}},{key:"getParent",value:function(){return this.parent}},{key:"initTargets",value:function(){var e=this;if(this.targetsVersion=1,this.originalTargetNames=Object.keys(this.targets).filter((function(e){return!s.u.excludedTargetKeys.has(e)})),this.functionTargetNames=[],this.allTargetMap={},a.d.isDefined(this.originalId)&&(0,n.UR)(this.originalId))return a.d.mergeTargets((0,n.UR)(this.originalId),this),void(this.toDiscard=!0);this.actualValues=s.u.defaultActualValues(),this.targetValues={},this.activeTargetMap={},this.activeTargetList=[],this.originalTargetNames=Object.keys(this.targets).filter((function(e){return!s.u.excludedTargetKeys.has(e)})).map((function(e){return e.startsWith("_")?e.slice(1):e}));var t=u.J.query("#".concat(this.oid))||this.originalTargetNames.indexOf("$dom")>=0;t||this.excludeDefaultStyling()?t&&(this.targets.domIsland=!0,a.d.isDefined(this.targets.reuseDomDefinition)||(this.targets.reuseDomDefinition=!0,this.targets.domHolder=!0,a.d.isDefined(this.targets.excludeXYCalc)||(this.targets.excludeXYCalc=!0),a.d.isDefined(this.targets.x)||(this.targets.excludeX=!0),a.d.isDefined(this.targets.y)||(this.targets.excludeY=!0),a.d.isDefined(this.targets.position)||(this.targets.position="relative"))):(Object.entries(s.u.defaultTargetStyles).forEach((function(t){var r=h(t,2),n=r[0],i=r[1];n in e.targets||(e.targets[n]=i)})),!1===this.targets.canHaveDom||a.d.isDefined(this.targets.domHolder)||(this.targets.domHolder=!0)),Object.keys(this.targets).filter((function(e){return!s.u.excludedTargetKeys.has(e)})).forEach((function(t,r){e.processNewTarget(t,r)}))}},{key:"processNewTarget",value:function(e,t){this.targetsVersion++;var r=l.g.getTargetName(e),n=this.targets[e];if(a.d.isDefined(n)){var i=y(n),u=e.startsWith("_")||e.endsWith("$"),c=s.u.mustExecuteTargets[r]||u||"string"!==i&&"number"!==i&&"boolean"!==i,d=!!s.u.allEventMap[r],h=!!s.u.internalEventMap[r];if(("object"!==i||Array.isArray(n))&&c&&(n=l.g.wrapTarget(this,n,e)),a.d.isDefined(t)){var f=t>0?this.originalTargetNames[t-1]:void 0,v=t<this.originalTargetNames.length-1?this.originalTargetNames[t+1]:void 0;(v&&v.endsWith("$")||u||d||h||"object"===i||"function"===i)&&(a.d.isDefined(n.value)||o.D.isChildObjectTarget(e,n)||o.D.isIntervalTarget(n)||(c=!0,n=l.g.wrapTarget(this,n,e)),l.g.bindTarget(this,e,f,v,t))}if(e.startsWith("_")){var g=e.slice(1);this.targets[e]&&(this.targets[g]=this.targets[e]),delete this.targets[e],e=g,n=this.targets[g]}if(d&&(this.externalEventMap||(this.externalEventMap=new Map),this.externalEventMap.set(r,!0),n.active=!1),h&&(this.internalEventMap||(this.internalEventMap=new Map),this.internalEventMap.set(r,!0),n.active=!1),this.allTargetMap[r]=e,u&&(this.targets[e].active=!1),!s.u.bypassInitialProcessingTargetMap[r]){if(a.d.isDefined(n.initialValue)&&this.val(e,n.initialValue),(!1!==n.active||a.d.isDefined(n.initialValue))&&this.addToStyleTargetList(e),o.D.isIntervalTarget(n))n.cycles=2,n.isInterval=!0;else if(!c){var p;return void this.val(r,a.d.isDefined(null===(p=n)||void 0===p?void 0:p.value)?n.value:n)}!1!==n.active&&this.canTargetBeActivated(e)&&this.addToActiveTargets(e),this.functionTargetNames.push(e)}}else this.delVal(e)}},{key:"activate",value:function(e){(0,n.zw)().addToActivatedList(this),this.currentStatus="active",e&&this.isTargetEnabled(e)&&-1===this.activatedTargets.indexOf(e)&&this.activatedTargets.push(e)}},{key:"isActivated",value:function(){return"active"===this.currentStatus}},{key:"deactivate",value:function(){this.currentStatus=void 0}},{key:"excludeDefaultStyling",value:function(){return!1===this.targets.defaultStyling||this.excludeStyling()||this.reuseDomDefinition()&&!this.allStyleTargetMap}},{key:"canTargetBeActivated",value:function(e){var t=this.targets.onDomEvent;return!(t&&(Array.isArray(t)?t.includes(e):t===e)&&!this.hasDom())&&!this.activeTargetMap[e]}},{key:"addToStyleTargetList",value:function(e,t){var r;if(e=l.g.getTargetName(e),t||!this.excludeStyling()&&!this.targets["exclude".concat(a.d.capitalizeFirstLetter(e))]){var n,i=s.u.asyncStyleTargetMap[e],o=s.u.attributeTargetMap[e];if(i||o)null!==(n=this.asyncStyleTargetMap)&&void 0!==n&&n.has(e)||(this.asyncStyleTargetMap||(this.asyncStyleTargetMap=new Map),this.asyncStyleTargetMap.set(e,!0));else if(this.isStyleTarget(e)){var u,c=!0;if(s.u.transformMap[e])this.getParent()&&this.calcAbsolutePosition(this.getX(),this.getY());else if("width"===e||"height"===e){var d=Math.floor("width"===e?this.getWidth():this.getHeight());this.styleMap[e]===d&&(c=!1)}else"dim"===e?this.styleMap[e]===Math.floor(this.val("dim"))&&(c=!1):a.d.isDefined(this.val(e))&&this.styleMap[e]===this.val(e)&&(c=!1);!c||null!==(u=this.styleTargetMap)&&void 0!==u&&u.has(e)||(this.styleTargetMap||(this.styleTargetMap=new Map),this.styleTargetMap.set(e,!0))}!s.u.styleSet.has(e)||null!==(r=this.allStyleTargetMap)&&void 0!==r&&r.has(e)||(this.allStyleTargetMap||(this.allStyleTargetMap=new Map),this.allStyleTargetMap.set(e,!0))}}},{key:"isStyleTarget",value:function(e){return s.u.styleTargetMap[e]}},{key:"removeTarget",value:function(e){delete this.targets[e],this.removeFromActiveTargets(e),this.removeFromUpdatingTargets(e),delete this.targetValues[e]}},{key:"addTarget",value:function(e,t){var r,n,i;this.addTargets((r={},i=t,(n=p(n=e))in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,r))}},{key:"addTargets",value:function(e){var t,r=this;Object.keys(e).forEach((function(t){r.targets[t]=e[t],r.removeFromUpdatingTargets(t),r.originalTargetNames.includes(t)||r.originalTargetNames.push(t);var n=r.originalTargetNames.indexOf(t);r.processNewTarget(t,n)})),this.hasDom()&&(0,n.kQ)().attachEvents([this]),null===(t=(0,n.fB)())||void 0===t||t.schedule(1,"addTargets-"+this.oid)}},{key:"getTargetStepPercent",value:function(e,t,r){return t=a.d.isDefined(t)?t:this.getTargetStep(e),r?t/r:1}},{key:"resetTargetStep",value:function(e){return this.targetValues[e]&&(this.targetValues[e].step=0),this}},{key:"resetTargetExecutionFlag",value:function(e){return this.targetValues[e]&&(this.targetValues[e].executionFlag=!1),this}},{key:"resetTargetCycle",value:function(e){return this.targetValues[e]&&(this.targetValues[e].cycle=0),this}},{key:"resetScheduleTimeStamp",value:function(e){return this.targetValues[e]&&(this.targetValues[e].scheduleTimeStamp=void 0),this}},{key:"resetTargetInitialValue",value:function(e){return this.targetValues[e]&&(this.targetValues[e].initialValue=void 0),this}},{key:"setTargetStatus",value:function(e,t){var r=this.targetValues[e];if(r){var n=r.status;"done"!==t||"done"===n||"complete"===n||r.resetFlag||(r.completeCount++,r.completeTime=a.d.now()),r.resetFlag=!1,r.status=t,"fetching"===r.status?(this.removeFromActiveTargets(e),this.removeFromUpdatingTargets(e),this.getParent().addToActiveChildren(this)):this.isTargetUpdating(e)?(this.addToUpdatingTargets(e),this.removeFromActiveTargets(e)):this.isTargetActive(e)?(this.addToActiveTargets(e),this.removeFromUpdatingTargets(e)):(this.removeFromActiveTargets(e),this.removeFromUpdatingTargets(e))}}},{key:"getTargetStatus",value:function(e){var t,r;return null!==(t=null===(r=this.targetValues[e])||void 0===r?void 0:r.status)&&void 0!==t?t:""}},{key:"isTargetActive",value:function(e){var t;return"active"===(null===(t=this.targetValues[e])||void 0===t?void 0:t.status)}},{key:"isTargetUpdating",value:function(e){var t;return"updating"===(null===(t=this.targetValues[e])||void 0===t?void 0:t.status)}},{key:"isTargetDone",value:function(e){var t;return"done"===(null===(t=this.targetValues[e])||void 0===t?void 0:t.status)}},{key:"isTargetComplete",value:function(e){var t;return"complete"===(null===(t=this.targetValues[e])||void 0===t?void 0:t.status)||void 0===this.targetValues[e]&&void 0}},{key:"isTargetCompleteDeep",value:function(e){return l.g.isTargetCompleteDeep(this,e)}},{key:"isTargetFullyCompleted",value:function(e){return l.g.isTargetFullyCompleted(this,e)}},{key:"arePreviousTargetsComplete",value:function(e){return l.g.arePreviousTargetsComplete(this,e)}},{key:"cleanupTarget",value:function(e){l.g.cleanupTarget(this,e)}},{key:"isComplete",value:function(){return l.g.isTModelComplete(this)}},{key:"isExecuted",value:function(e){return this.targetValues[e]&&this.targetValues[e].executionFlag}},{key:"neverExecuted",value:function(e){return!this.targetValues[e]}},{key:"isTargetImperative",value:function(e){return!!this.targetValues[e]&&this.targetValues[e].isImperative}},{key:"getTargetExecutionCount",value:function(e){return this.targetValues[e]?this.targetValues[e].executionCount:0}},{key:"setTargetComplete",value:function(e){this.targetValues[e]&&(this.targetValues[e].status="complete")}},{key:"isTargetEnabled",value:function(e){var t=this.targets[e];return!!a.d.isDefined(t)&&("function"!=typeof t.enabledOn||(this.setTargetMethodName(e,"enabledOn"),t.enabledOn.call(this)))}},{key:"doesTargetEqualActual",value:function(e){if(this.targetValues[e]){var t=!!this.targets[e]&&this.targets[e].deepEquality;return t?a.d.areEqual(this.getTargetValue(e),this.val(e),t):this.getTargetValue(e)===this.val(e)}return!1}},{key:"getTargetValue",value:function(e){var t,r=this.targetValues[e]||this.targets[e];if(r){var n=null!==(t=r.value)&&void 0!==t?t:r;return"function"==typeof n?n.call(this):n}}},{key:"getTargetStep",value:function(e){return this.targetValues[e]?this.targetValues[e].step:0}},{key:"getScheduleTimeStamp",value:function(e){var t;return null===(t=this.targetValues[e])||void 0===t?void 0:t.scheduleTimeStamp}},{key:"isScheduledPending",value:function(e){var t=this.getScheduleTimeStamp(e),r=this.getTargetInterval(e);return t&&t+r>a.d.now()}},{key:"isTargetInLoop",value:function(e){var t=this.targets[e];if(!t)return!1;var r="function"==typeof t.loop?t.loop.call(this,e):t.loop;return!0===r||"passive"===r}},{key:"shouldScheduleRun",value:function(e){var t=this.targets[e];return!!t&&(void 0!==t.triggerRerun?!!t.triggerRerun:void 0===t.loop||"passive"!==("function"==typeof t.loop?t.loop.call(this,e):t.loop)||o.D.getValueStepsCycles(this,e)[0]!==this.getTargetValue(e))}},{key:"getTargetInitialValue",value:function(e){var t;return null===(t=this.targetValues[e])||void 0===t?void 0:t.initialValue}},{key:"getLastUpdate",value:function(e){var t;return null===(t=this.targetValues[e])||void 0===t?void 0:t.lastUpdate}},{key:"getDimLastUpdate",value:function(){var e,t,r,n,i;return Math.max(null!==(e=this.getLastUpdate("width"))&&void 0!==e?e:0,null!==(t=this.getLastUpdate("height"))&&void 0!==t?t:0,null!==(r=this.getLastUpdate("dim"))&&void 0!==r?r:0,null!==(n=this.domHeightTimestamp)&&void 0!==n?n:0,null!==(i=this.domWidthTimestamp)&&void 0!==i?i:0)}},{key:"getTargetActivationTime",value:function(e){var t,r;return null!==(t=null===(r=this.targetValues[e])||void 0===r?void 0:r.activationTime)&&void 0!==t?t:0}},{key:"getTargetCreationTime",value:function(e){return this.targetValues[e]?this.targetValues[e].creationTime:void 0}},{key:"incrementTargetStep",value:function(e,t,r,n,i){var a=this.targetValues[e];if(a){var o=n||8,l=t-r,s=Math.max(1,Math.floor(l/o));return a.step=Math.min(i,a.step+s),a.step}}},{key:"getTargetEasing",value:function(e){var t,r=null===(t=this.targetValues[e])||void 0===t?void 0:t.easing,n=this.targets[e];return n&&"function"==typeof n.easing?n.easing.call(this,this.getTargetCycle(e)):r}},{key:"getTargetInterval",value:function(e){var t,r,n=null!==(t=null===(r=this.targetValues[e])||void 0===r?void 0:r.interval)&&void 0!==t?t:0,i=this.targets[e];return i&&"function"==typeof i.interval?i.interval.call(this,this.getTargetCycle(e)):n}},{key:"getTargetSteps",value:function(e){var t,r,n=null!==(t=null===(r=this.targetValues[e])||void 0===r?void 0:r.steps)&&void 0!==t?t:0,i=this.targets[e];return i&&"function"==typeof i.steps?i.steps.call(this,this.getTargetCycle(e)):n}},{key:"getTargetCycles",value:function(e){var t,r,n=null!==(t=null===(r=this.targetValues[e])||void 0===r?void 0:r.cycles)&&void 0!==t?t:1,i=this.targets[e];return i&&"function"==typeof i.cycles?i.cycles.call(this,this.getTargetCycle(e),n):n}},{key:"getTargetCycle",value:function(e){var t,r;return null!==(t=null===(r=this.targetValues[e])||void 0===r?void 0:r.cycle)&&void 0!==t?t:0}},{key:"getValueListPointer",value:function(e){var t,r;return null!==(t=null===(r=this.targetValues[e])||void 0===r?void 0:r.valuePointer)&&void 0!==t?t:0}},{key:"incrementTargetCycle",value:function(e){this.targetValues[e]&&this.targetValues[e].cycle++}},{key:"incrementValueListPointer",value:function(e){this.targetValues[e]&&this.targetValues[e].valuePointer++}},{key:"setTargetInterval",value:function(e,t){return this.targetValues[e]&&(this.targetValues[e].interval=t),this.targetValues[e].interval}},{key:"setScheduleTimeStamp",value:function(e,t){this.targetValues[e]&&(this.targetValues[e].scheduleTimeStamp=t)}},{key:"setTargetInitialValue",value:function(e,t){this.targetValues[e]&&(this.targetValues[e].initialValue=t)}},{key:"setLastUpdate",value:function(e){this.targetValues[e]&&(this.targetValues[e].lastUpdate=a.d.now(),this.targetValues[e].updateCount++)}},{key:"setTarget",value:function(e,t,r,n,a){if("object"===y(e)&&null!==e){var o=[e,t,r,n,a];t=o[0],r=o[1],n=o[2],a=o[3],e=""}"string"==typeof e&&(e=e.endsWith("+")?e:e+"+");var s=l.g.currentTargetName,u=l.g.currentTModel;return this.getParent()===u&&l.g.markChildAction(u,s,this),this.markLayoutDirty(e),i.j.executeImperativeTarget(this,e,t,r,n,a,s,u),this}},{key:"cancelAnimation",value:function(){if(this.hasAnimatingTargets()){var e,t=d(this.animatingMap);try{for(t.s();!(e=t.n()).done;){var r=h(e.value,1)[0];this.targetValues[r]&&(this.targetValues[r].status="done",this.removeFromUpdatingTargets(r),this.removeFromActiveTargets(r))}}catch(e){t.e(e)}finally{t.f()}(0,n.s)().deleteAnimation(this),this.pausedBatch=void 0}}},{key:"hasTargetUpdates",value:function(e){var t;return e?!0===this.updatingTargetMap[e]||(null===(t=this.animatingMap)||void 0===t?void 0:t.has(e)):this.updatingTargetList.length>0}},{key:"addToActiveTargets",value:function(e){var t;!this.activeTargetMap[e]&&this.canTargetBeActivated(e)&&(this.markLayoutDirty(e),this.activeTargetMap[e]=!0,this.activeTargetList.push(e),null===(t=this.getParent())||void 0===t||t.addToActiveChildren(this))}},{key:"removeFromActiveTargets",value:function(e){if(this.activeTargetMap[e]){delete this.activeTargetMap[e];var t=this.activeTargetList.indexOf(e);t>=0&&this.activeTargetList.splice(t,1)}var r;0===this.activeTargetList.length&&(null===(r=this.getParent())||void 0===r||r.removeFromActiveChildren(this))}},{key:"addToUpdatingTargets",value:function(e){var t;this.updatingTargetMap[e]||(this.markLayoutDirty(e),this.updatingTargetMap[e]=!0,this.updatingTargetList.push(e),null===(t=this.getParent())||void 0===t||t.addToUpdatingChildren(this))}},{key:"removeFromUpdatingTargets",value:function(e){if(this.updatingTargetMap[e]){delete this.updatingTargetMap[e];var t=this.updatingTargetList.indexOf(e);t>=0&&this.updatingTargetList.splice(t,1)}var r;0===this.updatingTargetList.length&&(null===(r=this.getParent())||void 0===r||r.removeFromUpdatingChildren(this))}},{key:"hasUpdatingImperativeTargets",value:function(e){var t,r,n=d([].concat(c(null!==(t=this.updatingTargetList)&&void 0!==t?t:[]),c(this.hasAnimatingTargets()?c(this.animatingMap.keys()):[])));try{for(n.s();!(r=n.n()).done;){var i=r.value;if(this.isTargetImperative(i)&&this.targetValues[i].originalTargetName===e)return!0}}catch(e){n.e(e)}finally{n.f()}return!1}},{key:"getUpdatingImperativeTargets",value:function(e){var t,r=[],n=d(this.updatingTargetList);try{for(n.s();!(t=n.n()).done;){var i=t.value;this.isTargetImperative(i)&&this.targetValues[i].originalTargetName===e&&r.push(i)}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"hasAnyUpdates",value:function(){var e,t;return 0!==this.updatingTargetList.length||0!==this.activeTargetList.length||0!==(null!==(e=null===(t=this.animatingMap)||void 0===t?void 0:t.size)&&void 0!==e?e:0)}},{key:"removeFromAnimatingMap",value:function(e){var t,r;null!==(t=this.animatingMap)&&void 0!==t&&t.has(e)&&(this.animatingMap.delete(e),0===this.animatingMap.size&&(null===(r=this.getParent())||void 0===r||r.removeFromAnimatingChildren(this)))}},{key:"clearAnimatingMap",value:function(){var e,t;null===(e=this.animatingMap)||void 0===e||e.clear(),null===(t=this.getParent())||void 0===t||t.removeFromAnimatingChildren(this)}},{key:"addToAnimatingMap",value:function(e){var t,r,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];null!==(t=this.targetValues[e])&&void 0!==t&&t.snapAnimation||(this.animatingMap||(this.animatingMap=new Map),this.animatingMap.set(e,n),null===(r=this.getParent())||void 0===r||r.addToAnimatingChildren(this))}},{key:"isKeyAnimating",value:function(e){if(!this.animatingMap)return!1;var t=l.g.getOriginalNames(this,e).originalTargetName;return this.animatingMap.has(e)&&this.animatingMap.get(e).originalTargetName===t}},{key:"addToUpdatingChildren",value:function(e){this.updatingChildrenMap||(this.updatingChildrenMap=new Map),this.updatingChildrenMap.set(e.oid,e)}},{key:"removeFromUpdatingChildren",value:function(e){var t;null===(t=this.updatingChildrenMap)||void 0===t||t.delete(e.oid)}},{key:"addToAnimatingChildren",value:function(e){this.animatingChildrenMap||(this.animatingChildrenMap=new Map),this.animatingChildrenMap.set(e.oid,e)}},{key:"removeFromAnimatingChildren",value:function(e){var t;null===(t=this.animatingChildrenMap)||void 0===t||t.delete(e.oid)}},{key:"addToActiveChildren",value:function(e){this.activeChildrenMap||(this.activeChildrenMap=new Map),this.activeChildrenMap.set(e.oid,e)}},{key:"removeFromActiveChildren",value:function(e){var t;null===(t=this.activeChildrenMap)||void 0===t||t.delete(e.oid)}},{key:"hasActiveChildren",value:function(){var e;return!(null===(e=this.activeChildrenMap)||void 0===e||!e.size)}},{key:"hasUpdatingChildren",value:function(){var e;return!(null===(e=this.updatingChildrenMap)||void 0===e||!e.size)}},{key:"hasAnimatingChildren",value:function(){var e;return!(null===(e=this.animatingChildrenMap)||void 0===e||!e.size)}},{key:"hasAnimatingTargets",value:function(){var e;return!(null===(e=this.animatingMap)||void 0===e||!e.size)}},{key:"hasValidAnimation",value:function(){return this.hasAnimatingTargets()&&this.lastBatch&&this.lastBatch.totalDuration>0}},{key:"deleteTargetValue",value:function(e){return delete this.targetValues[e],this.addToActiveTargets(e),this.removeFromUpdatingTargets(e),this}},{key:"clearAnimatingChildren",value:function(){var e;null===(e=this.animatingChildrenMap)||void 0===e||e.clear()}},{key:"clearUpdatingChildren",value:function(){var e;null===(e=this.updatingChildrenMap)||void 0===e||e.clear()}},{key:"clearActiveChildren",value:function(){var e;null===(e=this.activeChildrenMap)||void 0===e||e.clear()}},{key:"resetTarget",value:function(e){var t=this.targetValues[e];return t&&(t.isImperative=!1,t.executionFlag=!1,t.scheduleTimeStamp=void 0,t.step=0,t.cycle=0,t.steps=0,t.cycles=1,t.interval=0,t.status=""),this}},{key:"activateTargets",value:function(e){var t=this;Array.isArray(e)&&e.forEach((function(e){return t.activateTarget(e)}))}},{key:"activateTarget",value:function(e,t,r){var n=t,i=r;if(null!=t&&t.reset&&1===Object.keys(t).length&&!r&&(n=void 0,i=t),this.canTargetBeActivated(e)){var o,s,u;null!==(o=i)&&void 0!==o&&o.reset&&l.g.resetTargetPipelineState(this,e),a.d.isDefined(n)&&this.val("___".concat(e),n),this.isVisible()&&this.markLayoutDirty(e);var c=this.targets[e];null!=c&&null!==(s=c.childAction)&&void 0!==s&&s.length&&(c.childAction=[]),null!=c&&null!==(u=c.addChildAction)&&void 0!==u&&u.length&&(c.addChildAction=[]);var d,h,f=l.g.currentTModel,v=l.g.currentTargetName,y=this.targetValues[e]||l.g.emptyValue();this.getParent()===f&&l.g.markChildAction(f,v,this),y.invokerTModel=f,y.invokerTarget=v,this.targetValues[e]?(y.activationTime=a.d.now(),y.lastUpdate=a.d.now(),y.isImperative=!1,y.executionFlag=!1,y.scheduleTimeStamp=void 0,y.step=0,y.cycle=0,y.valuePointer=Array.isArray(y.valueList)?1:0,y.initialValue=void 0):(this.targetValues[e]=y,y.cycles=null!==(d=null===(h=this.targets[e])||void 0===h?void 0:h.cycles)&&void 0!==d?d:y.cycles),this.setTargetStatus(e,"active"),this.activate(e)}return this}},{key:"manageChildTargetExecution",value:function(e){return e.hasChildren()||e.addedChildren.length>0||e.dirtyLayout||0===e.targetExecutionCount}},{key:"setTargetMethodName",value:function(e,t){(!s.u.ignoreTargetMethodNameMap[e]||this.isTargetUpdating(e)||this.isTargetImperative(e))&&(this.targetMethodMap[e]||(this.targetMethodMap[e]=[]),this.targetMethodMap[e].includes(t)||this.targetMethodMap[e].push(t))}}],t&&g(e.prototype,t),r&&g(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),b=r(675),T=r(745),w=r(144),k=r(728);function S(e){return function(e){if(Array.isArray(e))return M(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?M(e,t):void 0}}(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 M(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function D(e){return D="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},D(e)}function E(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,C(n.key),n)}}function C(e){var t=function(e,t){if("object"!=D(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=D(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==D(t)?t:t+""}function _(e,t,r){return t=L(t),function(e,t){if(t&&("object"==D(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,x()?Reflect.construct(t,r||[],L(e).constructor):t.apply(e,r))}function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(x=function(){return!!e})()}function L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},L(e)}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}var A=function(e){function t(e,r,n){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=_(this,t,[e,r,n])).allChildrenList=[],i.allChildrenMap={},i.childrenUpdateFlag=!1,i.$dom=null,i.x=0,i.y=0,i.absX=0,i.absY=0,i.domHeightTimestamp=0,i.domWidthTimestamp=0,i.contentWidth=0,i.contentHeight=0,i.bottomBaseWidth=0,i.topBaseHeight=0,i.styleMap={},i.tfMap={},i.visibilityStatus=void 0,i.hasDomNow=!1,i.isNowVisible=!1,i.currentStatus="new",i.dirtyLayout=!1,i.originWindowEpoch=-1,i.initTargets(),i}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&&O(e,t)}(t,e),r=t,i=[{key:"createViewport",value:function(){var e,t,r,n;this.viewport=this.viewport||new b.L;var i=-this.getScrollLeft(),a=-this.getScrollTop();return this.viewport.xNext=i,this.viewport.xNorth=i,this.viewport.xEast=i,this.viewport.xSouth=i,this.viewport.xWest=i,this.viewport.scrollLeft=-(this.getScrollLeft()+(null!==(e=null===(t=this.getParent())||void 0===t||null===(t=t.$dom)||void 0===t?void 0:t.getScrollLeft())&&void 0!==e?e:0)),this.viewport.scrollTop=-(this.getScrollTop()+(null!==(r=null===(n=this.getParent())||void 0===n||null===(n=n.$dom)||void 0===n?void 0:n.getScrollTop())&&void 0!==r?r:0)),this.viewport.absX=this.absX,this.viewport.absY=this.absY,this.viewport.xOverflowReset=i,this.viewport.xOverflowLimit=i+this.getWidth(),this.viewport.yNext=a,this.viewport.yNorth=a,this.viewport.yWest=a,this.viewport.yEast=a,this.viewport.ySouth=a,this.calcContentWidthHeight(),this.viewport.container=this,this.viewport}},{key:"calcContentWidthHeight",value:function(){var e=this.viewport.ySouth-this.viewport.yNorth,t=this.viewport.xEast-this.viewport.xWest,r=this.viewport.yEast-this.viewport.yNorth,n=this.viewport.xSouth-this.viewport.xWest;e===this.contentHeight&&this.contentWidth===t&&this.topBaseHeight===r&&this.bottomBaseWidth===n||(this.contentHeight=e,this.topBaseHeight=r,this.bottomBaseWidth=n,this.contentWidth=t)}},{key:"adjustViewport",value:function(){}},{key:"calcAbsolutePosition",value:function(e,t){this.absX=a.d.isDefined(this.val("absX"))?this.val("absX"):this.getParent().absX+e,this.absY=a.d.isDefined(this.val("absY"))?this.val("absY"):this.getParent().absY+t}},{key:"calcAbsolutePositionFromDom",value:function(){w.a.calcAbsolutePositionFromDom(this)}},{key:"removeChild",value:function(e){if(e&&this.allChildrenMap[e.oid])return l.g.resetBeforeDeletion(e),this.deletedChildren.push(e),this.removeFromUpdatingChildren(e),this.removeFromActiveChildren(e),this.removeFromAnimatingChildren(e),this.childrenUpdateFlag=!0,(0,n.zw)().calcChildren(this),this.markLayoutDirty("removeChild"),(0,n.fB)().schedule(1,"removeChild-"+e.oid),this}},{key:"moveChild",value:function(e,t){return this.movedChildren.push({index:t,child:e}),e.hasDom()&&e.requiresDomRelocation()&&(e.domOrderIndex=t,e.activate()),this.childrenUpdateFlag=!0,this.markLayoutDirty("moveChild"),(0,n.fB)().schedule(1,"moveChild-"+this.oid+"-"+e.oid),this}},{key:"addChild",value:function(e){var r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.addedChildren.length+this.allChildrenList.length;if("object"===D(e)){if(this.childrenUpdateFlag=!0,!(e instanceof t)){var a=Object.keys(this.actualValues).find((function(t){return r.actualValues[t]===e}));e=new t(a?e.id||a:"".concat(this.oid,"_"),e)}e.toDiscard||(n.qw.tmodelIdMap[e.oid]=e,this.addedChildren.push({index:i,child:e}),e.parent=this,e.markLayoutDirty("addChild"),e.updatingTargetList.length>0&&this.addToUpdatingChildren(e),e.activeTargetList.length>0&&this.addToActiveChildren(e),l.g.markChildAction(this,l.g.currentTargetName,e))}return this}},{key:"addSibling",value:function(e){this.getParent().addChild(e)}},{key:"removeSibling",value:function(e){var t=this;e||(e=this.getParent().getChildren().find((function(e){return e!==t}))),this.getParent().removeChild(e)}},{key:"getChildren",value:function(){var e,t,r,n=this,i=this.state();if((null===(e=i.deletedChildren)||void 0===e?void 0:e.length)>0&&(this.deletedChildren.forEach((function(e){if(n.allChildrenMap[e.oid]){var t=n.allChildrenList.indexOf(e);n.lastChildrenUpdate.deletions.push(e),n.allChildrenList.splice(t,1),delete n.allChildrenMap[e.oid]}})),this.deletedChildren.length=0),(null===(t=i.addedChildren)||void 0===t?void 0:t.length)>0&&(this.addedChildren.sort((function(e,t){return e.index-t.index})),this.addedChildren.forEach((function(e){var t=e.index,r=e.child;n.allChildrenMap[r.oid]||(a.d.isDefined(r.val("canDeleteDom"))||!1!==n.val("canDeleteDom")||r.val("canDeleteDom",!1),t>=n.allChildrenList.length?n.allChildrenList.push(r):n.allChildrenList.splice(t,0,r),n.allChildrenMap[r.oid]=r,n.lastChildrenUpdate.additions.push({index:t,child:r}))})),this.addedChildren.length=0),(null===(r=i.movedChildren)||void 0===r?void 0:r.length)>0){this.movedChildren.sort((function(e,t){return e.index-t.index}));var o={},l={};this.movedChildren.forEach((function(e){var t=e.index,r=e.child;n.lastChildrenUpdate.deletions.push(r),n.lastChildrenUpdate.additions.push({index:t,child:r});var i=n.allChildrenList.indexOf(r);if(t!==i){l[r.oid]&&delete l[r.oid];var a=n.allChildrenList.splice(t,1,r);!o[t]&&a.length>0&&(l[a[0].oid]={child:a[0],index:t+1}),i>=0&&(o[i]={fromIndex:i<t?i:t,child:r}),o[t]&&delete o[t]}})),Object.values(l).forEach((function(e){var t=e.index,r=e.child;n.allChildrenList.splice(t,0,r)})),Object.values(o).forEach((function(e){var t=e.fromIndex,r=e.child,i=n.allChildrenList.indexOf(r,t);n.allChildrenList.splice(i,1)})),this.movedChildren.length=0}return this.allChildrenList}},{key:"removeChildren",value:function(){return this.hasChildren()?(this.markLayoutDirty("removeChildren"),this.allChildrenList.forEach((function(e){l.g.resetBeforeDeletion(e),e.$dom=void 0})),this.allChildrenList=[],this.allChildrenMap={},this.clearUpdatingChildren(),this.clearActiveChildren(),this.clearAnimatingChildren(),this.hasDom()&&this.$dom.deleteAll(),this):this}},{key:"addToParentVisibleChildren",value:function(){this.isVisible()&&this.isInFlow()&&this.getParent()&&this.getParent().visibleChildren.push(this)}},{key:"markEventDirty",value:function(){this.eventDirtyEpoch=(0,n.kQ)().eventEpoch,this.parent&&this.parent.markEventDirty()}},{key:"hasEventDirty",value:function(){var e,t;return(null!==(e=this.eventDirtyEpoch)&&void 0!==e?e:-1)>(null!==(t=this.processedEventEpoch)&&void 0!==t?t:-1)}},{key:"markLayoutDirty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this.dirtyLayout||(this.dirtyLayout={oids:{},count:0}),this.dirtyLayout.oids[t.oid]||(this.dirtyLayout.oids[t.oid]=t,this.dirtyLayout.count++),t===this&&(e=t.oid+"#"+e),this.dirtyLayout.lastKey=e,this.bracket&&this.bracket.markLayoutDirty(e,t),this.parent&&this.parent.markLayoutDirty(e,t)}},{key:"removeLayoutDirty",value:function(e,t){var r=this;this.dirtyLayout&&(t?t.forEach((function(e){r.dirtyLayout.oids[e]&&(r.dirtyLayout.count--,delete r.dirtyLayout.oids[e])})):this.dirtyLayout.oids[e.oid]&&(this.dirtyLayout.count--,delete this.dirtyLayout.oids[e.oid]),0===this.dirtyLayout.count&&(this.dirtyLayout=!1)),this.bracket&&this.bracket.removeLayoutDirty(e,t),this.parent&&this.parent.removeLayoutDirty(e,t)}},{key:"getDirtyLayout",value:function(){return this.dirtyLayout}},{key:"shouldCalculateChildren",value:function(){if(a.d.isDefined(this.val("calculateChildren")))return this.val("calculateChildren");if(!this.isIncluded()||this.isDomIsland()&&!this.hasDom())return!1;var e=!1!==this.dirtyLayout,t=this.hasEventDirty(),r=this.hasDom(),n=this.isVisible(),i="active"===this.currentStatus||e||n&&t||this.isNowVisible||r&&t;return this.currentStatus=void 0,i}},{key:"getFirstChild",value:function(){return this.getChildren()[0]}},{key:"hasChildren",value:function(){return this.getChildren().length>0}},{key:"findChildren",value:function(e){return this.getChildren().filter((function(t){return t.type===e}))}},{key:"getLastChild",value:function(){return this.getChildren()[this.allChildrenList.length-1]}},{key:"getChild",value:function(e){return"number"==typeof e?this.getChildren()[e]:this.findChild(e)}},{key:"getChildIndex",value:function(e){return this.getChildren().indexOf(e)}},{key:"getChildrenOids",value:function(){return this.getChildren().map((function(e){return e.oid})).join(" ")}},{key:"findChild",value:function(e){return this.getChildren().find((function(t){return t.type===e}))}},{key:"findLastChild",value:function(e){return this.getChildren().findLast((function(t){return t.type===e}))}},{key:"getChildByOid",value:function(e){return this.getChildren(),this.allChildrenMap[e]}},{key:"getParentValue",value:function(e){var t;return null===(t=this.parent)||void 0===t?void 0:t.val(e)}},{key:"pval",value:function(e){return this.getParentValue(e)}},{key:"getParentValueAtMyIndex",value:function(e){var t=this.getParentValue(e);if(Array.isArray(t)){var r,n=null===(r=this.getParent())||void 0===r?void 0:r.getChildIndex(this);if("number"==typeof n)return t[n]}return t}},{key:"getLoadedItems",value:function(e){return this.val(a.d.getLoadTargetName(e))}},{key:"delVal",value:function(e){this.markLayoutDirty("del-".concat(e)),e.startsWith("_")?delete this[e.slice(1)]:delete this.actualValues[e]}},{key:"val",value:function(e,t){var r=this.actualValues,n=this.lastActualValues;return e=l.g.getTargetName(e),2===arguments.length?(n[e]=r[e],t!==r[e]&&(r[e]=t,this.markLayoutDirty("val-".concat(e))),this):r[e]}},{key:"lastVal",value:function(e){return this.lastActualValues[e]}},{key:"setActual",value:function(e,t){this.targetValues[e]&&(this.targetValues[e].actual=t)}},{key:"floorVal",value:function(e){var t;return Math.floor(null!==(t=this.val(e))&&void 0!==t?t:0)}},{key:"getDomParent",value:function(){return this.val("domParent")||T.X.findParentByTarget(this,"domHolder",!0)}},{key:"getDomHolder",value:function(){var e=this.val("domHolder");if(e&&!0!==e&&this.$dom!==e)return e;var t=this.getDomParent();return t?t.$dom:null}},{key:"bug",value:function(){return[{visible:this.isVisible()},{visibilityStatus:this.visibilityStatus},{hasDom:this.hasDom()},{x:this.getX()},{y:this.getY()},{width:this.getWidth()},{height:this.getHeight()},{activeTargetList:this.activeTargetList},{updatingTargetList:this.updatingTargetList},{updatingChildren:this.updatingChildrenMap?S(this.updatingChildrenMap.keys()):[]},{activeChildren:this.activeChildrenMap?S(this.activeChildrenMap.keys()):[]},{children:this.getChildren()},{targetValues:this.targetValues},{actualValues:this.actualValues}]}},{key:"logTree",value:function(){a.d.logTree(this)}},{key:"isVisible",value:function(){return this.val("isVisible")}},{key:"makeVisible",value:function(){this.val("isVisible",!0),this.targets.isVisible=!0}},{key:"makeInvisible",value:function(){this.val("isVisible",!1),this.targets.isVisible=!1}},{key:"managesOwnScroll",value:function(){return a.d.isDefined(this.val("managesOwnScroll"))?!!this.val("managesOwnScroll"):!!(this.allTargetMap.onScroll||this.allTargetMap.onScrollLeft||this.allTargetMap.onScrollTop||this.allTargetMap.onWindowScroll)}},{key:"calcVisibility",value:function(){return a.d.calcVisibility(this)}},{key:"validateVisibilityInParent",value:function(){return a.d.isDefined(this.val("validateVisibilityInParent"))?this.val("validateVisibilityInParent"):this.parent.managesOwnScroll()}},{key:"hasDomHolderChanged",value:function(){return!this.reuseDomDefinition()&&this.getDomHolder()&&this.getDomHolder().exists()&&this.$dom.parent()!==this.getDomHolder().element}},{key:"hasBaseElementChanged",value:function(){return!!this.hasDom()&&this.getBaseElement()!==this.$dom.getTagName()}},{key:"mount",value:function(e){return k.v.mount(this,e),this}},{key:"unmount",value:function(){var e;this.hasDom()&&this.val("sourceDom")&&this.domState&&k.v.restoreDomState(this.$dom.element,this.domState),null===(e=this.parent)||void 0===e||e.removeChild(this)}},{key:"hasDom",value:function(){return!!this.$dom&&this.$dom.exists()}},{key:"isDomIsland",value:function(){return this.val("domIsland")}},{key:"getRealParent",value:function(){return this.parent}},{key:"getContentHeight",value:function(){return this.contentHeight}},{key:"getContentWidth",value:function(){return this.contentWidth}},{key:"useContentWidth",value:function(){return w.a.useContentWidth(this)}},{key:"useContentHeight",value:function(){return w.a.useContentHeight(this)}},{key:"getBaseWidth",value:function(){var e;return null!==(e=this.val("baseWidth"))&&void 0!==e?e:this.getWidth()}},{key:"getBaseHeight",value:function(){var e;return null!==(e=this.val("baseHeight"))&&void 0!==e?e:this.getHeight()}},{key:"getMinWidth",value:function(){var e;return null!==(e=this.val("minWidth"))&&void 0!==e?e:Math.min(this.getWidth(),this.getBaseWidth())}},{key:"getTopBaseHeight",value:function(){var e;return null!==(e=this.val("topBaseHeight"))&&void 0!==e?e:0}},{key:"getContainerOverflowMode",value:function(){var e;return null!==(e=this.val("containerOverflowMode"))&&void 0!==e?e:"auto"}},{key:"getItemOverflowMode",value:function(){var e=this.targets.itemOverflowMode;if(void 0!==e)return"function"==typeof e?e.call(this):e;var t=this.val("itemOverflowMode");return void 0!==t?t:"auto"}},{key:"getUIDepth",value:function(){for(var e=0,t=this.parent;t;)e++,t=t.parent;return e}},{key:"canBeAnimated",value:function(e){return s.u.isGpuPreferred(e)&&!1!==this.actualValues.webAnimation}},{key:"isTextOnly",value:function(){return a.d.isDefined(this.val("textOnly"))?this.val("textOnly"):"string"!=typeof this.getHtml()||!this.getHtml().trim().startsWith("<")}},{key:"getHtml",value:function(){return this.val("html")}},{key:"isInFlow",value:function(){return!a.d.isDefined(this.val("isInFlow"))||this.val("isInFlow")}},{key:"canHandleEvent",value:function(e){return!!this.allTargetMap[e]}},{key:"preventDefault",value:function(){return a.d.isDefined(this.val("preventDefault"))?this.val("preventDefault"):this.getParentValue("preventDefault")||!1}},{key:"canDeleteDom",value:function(){return a.d.isDefined(this.val("canDeleteDom"))?this.val("canDeleteDom"):!this.reuseDomDefinition()}},{key:"requiresDom",value:function(){return a.d.isDefined(this.val("requiresDom"))?this.val("requiresDom"):this.reuseDomDefinition()}},{key:"excludeStyling",value:function(){return!1===this.targets.styling}},{key:"getBracketThreshold",value:function(){return this.val("bracketThreshold")}},{key:"getBracketSize",value:function(){return this.val("bracketSize")}},{key:"shouldBeBracketed",value:function(){return a.d.isDefined(this.val("shouldBeBracketed"))?this.val("shouldBeBracketed"):this.getChildren().length>this.getBracketThreshold()}},{key:"isIncluded",value:function(){return this.val("isIncluded")}},{key:"canHaveDom",value:function(){return!(this.targets.$dom&&!this.val("$dom"))&&this.val("canHaveDom")}},{key:"requiresDomRelocation",value:function(){return a.d.isDefined(this.val("requiresDomRelocation"))?this.val("requiresDomRelocation"):!a.d.isDefined(this.tfMap.x)&&!a.d.isDefined(this.tfMap.y)}},{key:"getBaseElement",value:function(){var e;return this.val("baseElement")||this.val("element")||(null===(e=this.$dom)||void 0===e||null===(e=e.element)||void 0===e||null===(e=e.tagName)||void 0===e?void 0:e.toLowerCase())}},{key:"getOpacity",value:function(){return this.val("opacity")}},{key:"getCenterX",value:function(){return(this.parent.getWidth()-this.getWidth())/2}},{key:"getCenterY",value:function(){return(this.parent.getHeight()-this.getHeight())/2}},{key:"getX",value:function(){return this.val("x")}},{key:"getY",value:function(){return this.val("y")}},{key:"getZ",value:function(){return this.val("z")}},{key:"getPerspective",value:function(){return this.val("perspective")}},{key:"getRotate",value:function(){return this.val("rotate")}},{key:"getRotateX",value:function(){return this.val("rotateX")}},{key:"getRotateY",value:function(){return this.val("rotateY")}},{key:"getRotateZ",value:function(){return this.val("rotateZ")}},{key:"getScale",value:function(){return this.val("scale")}},{key:"getScaleX",value:function(){return this.val("scaleX")}},{key:"getScaleY",value:function(){return this.val("scaleY")}},{key:"getScaleZ",value:function(){return this.val("scaleZ")}},{key:"getSkewX",value:function(){return this.val("skewX")}},{key:"getSkewY",value:function(){return this.val("skewY")}},{key:"getSkewZ",value:function(){return this.val("skewZ")}},{key:"getMeasuringScale",value:function(){var e;return null!==(e=this.val("measuringScale"))&&void 0!==e?e:1}},{key:"getZIndex",value:function(){return this.val("zIndex")}},{key:"getTopMargin",value:function(){return this.val("topMargin")}},{key:"getLeftMargin",value:function(){return this.val("leftMargin")}},{key:"getRightMargin",value:function(){var e;return this.val("rightMargin")+(null!==(e=this.getParentValue("gap"))&&void 0!==e?e:0)}},{key:"getBottomMargin",value:function(){var e;return this.val("bottomMargin")+(null!==(e=this.getParentValue("gap"))&&void 0!==e?e:0)}},{key:"getWidth",value:function(){return a.d.isDefined(this.targets.width)||a.d.isDefined(this.targetValues.width)?this.val("width"):a.d.isDefined(this.targets.dim)||a.d.isDefined(this.targetValues.dim)?this.val("dim"):this.val("width")}},{key:"getHeight",value:function(){return a.d.isDefined(this.targets.height)||a.d.isDefined(this.targetValues.height)?this.val("height"):a.d.isDefined(this.targets.dim)||a.d.isDefined(this.targetValues.dim)?this.val("dim"):this.val("height")}},{key:"getScrollTop",value:function(){return this.val("scrollTop")}},{key:"getScrollLeft",value:function(){return this.val("scrollLeft")}},{key:"getCss",value:function(){return this.val("css")}},{key:"getStyle",value:function(){return this.val("style")}},{key:"getBackground",value:function(){return this.val("background")}},{key:"getBackgroundColor",value:function(){return this.val("backgroundColor")}},{key:"getAttributes",value:function(){return this.val("attributes")}},{key:"getInputValue",value:function(){return this.hasDom()?this.$dom.value():void 0}},{key:"isFormControl",value:function(){var e,t=this.getBaseElement();return"input"===t||"select"===t||"textarea"===t||(null===(e=this.$dom)||void 0===e||null===(e=e.element)||void 0===e?void 0:e.isContentEditable)}},{key:"isOverflowHidden",value:function(){return"hidden"===this.val("overflow")}},{key:"reuseDomDefinition",value:function(){return this.val("reuseDomDefinition")}}],i&&E(r.prototype,i),o&&E(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,o}(m)},144:function(e,t,r){r.d(t,{a:function(){return p}});var n=r(129),i=r(956),a=r(432),o=r(142),l=r(185),s=r(210),u=r(736);function c(e){return c="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},c(e)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||f(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 h(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=f(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function f(e,t){if(e){if("string"==typeof e)return v(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g(n.key),n)}}function g(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}var p=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,c=[{key:"shouldMeasureHeightFromDom",value:function(t){return!1!==t.val("heightFromDom")&&(!t.excludeDefaultStyling()&&!n.d.isDefined(t.targetValues.height)&&!t.val("heightFromDom")&&!e.isHeightDefined(t)&&!t.hasChildren()||t.val("heightFromDom"))}},{key:"shouldMeasureWidthFromDom",value:function(t){return!1!==t.val("widthFromDom")&&(!t.excludeDefaultStyling()&&!t.reuseDomDefinition()&&!t.val("widthFromDom")&&!n.d.isDefined(t.targetValues.width)&&!e.isWidthDefined(t)&&!t.hasChildren()||t.val("widthFromDom"))}},{key:"isHeightDefined",value:function(e){var t;return e.isTargetImperative("height")||!!e.allTargetMap.height||!!e.allTargetMap.dim||n.d.isDefined(null===(t=e.targets.style)||void 0===t?void 0:t.height)}},{key:"isWidthDefined",value:function(e){var t;return e.isTargetImperative("width")||!!e.allTargetMap.width||!!e.allTargetMap.dim||n.d.isDefined(null===(t=e.targets.style)||void 0===t?void 0:t.width)}},{key:"isXDefined",value:function(e){return!!e.allTargetMap.x||!!e.targetValues.x}},{key:"isYDefined",value:function(e){return!!e.allTargetMap.y||!!e.targetValues.y}},{key:"useContentWidth",value:function(t){return!e.isWidthDefined(t)&&!t.val("widthFromDom")&&t.getContentWidth()>0}},{key:"useContentHeight",value:function(t){return!e.isHeightDefined(t)&&!t.val("heightFromDom")&&t.getContentHeight()>0}},{key:"createDom",value:function(e){e.$dom=new l.J,e.$dom.create(e.getBaseElement())}},{key:"patchDom",value:function(e){e.$dom.ensureId(e.oid),e.$dom.attr("tgjs","true"),e.getHtml()&&(e.isTextOnly()?e.$dom.text(e.getHtml()):e.$dom.html(e.getHtml())),e.setLastUpdate("html")}},{key:"initStyleMaps",value:function(e){e.domHeightTimestamp=0,e.domWidthTimestamp=0,e.tfMap={},e.styleMap={};var t,r=h(e.allStyleTargetMap);try{for(r.s();!(t=r.n()).done;){var i=d(t.value,1)[0];n.d.isDefined(e.val(i))&&e.addToStyleTargetList(i)}}catch(e){r.e(e)}finally{r.f()}}},{key:"getTransformValue",value:function(e,t){var r;return"x"===t?r=Math.floor(e.getX()):"y"===t?r=Math.floor(e.getY()):a.u.transformMap[t]&&(r=a.u.rotate3D[t]?e.val(t):a.u.scaleMap[t]?n.d.formatNum(e.val(t),2):e.floorVal(t)),r}},{key:"fixStyle",value:function(t){if(t.styleTargetMap){var r,i=!1,o=h(t.styleTargetMap);try{for(o.s();!(r=o.n()).done;){var l=d(r.value,1)[0];if(!t.isKeyAnimating(l))if(a.u.transformMap[l]){var s=e.getTransformValue(t,l);t.tfMap[l]!==s&&(t.tfMap[l]=s,i=!0)}else if("dim"===l){var u=Math.floor(t.val("dim"));t.styleMap.height===u&&t.$dom.getStyleValue("height")===u||(t.styleMap.height=u,t.$dom.height(u)),t.styleMap.width===u&&t.$dom.getStyleValue("width")===u||(t.styleMap.width=u,t.$dom.width(u))}else if("width"===l){var c=Math.floor(t.getWidth());t.styleMap.width===c&&t.$dom.getStyleValue("width")===c||(t.styleMap.width=c,t.$dom.width(c))}else if("height"===l){var f=Math.floor(t.getHeight());t.styleMap.height===f&&t.$dom.getStyleValue("height")===f||(t.styleMap.height=f,t.$dom.height(f))}else a.u.styleWithUnitMap[l]?n.d.isDefined(t.val(l))&&t.styleMap[l]!==t.val(l)&&(t.$dom.style(l,n.d.isNumber(t.val(l))?"".concat(t.val(l),"px"):t.val(l)),t.styleMap[l]=t.val(l)):n.d.isDefined(t.val(l))&&t.styleMap[l]!==t.val(l)&&(t.$dom.style(l,"".concat(t.val(l))),t.styleMap[l]=t.val(l))}}catch(e){o.e(e)}finally{o.f()}i&&t.$dom.transform(e.getTransformString(t,t.tfMap)),t.styleTargetMap.clear()}}},{key:"setWidthFromDom",value:function(e){var t=e.domWidthTimestamp,r=e.getParent(),i=e.getDomParent(),a=!1;if((0,o.EI)().needsRerender(e)&&(e.isTextOnly()?e.$dom.text(e.getHtml()):e.$dom.html(e.getHtml()),a=!0),a||r&&t<=r.getDimLastUpdate()||i&&t<=i.getDimLastUpdate()){e.$dom.width("auto");var l=e.$dom.width();l=l>0&&e.getHtml()?l+1:l,e.domWidthTimestamp=n.d.now(),e.val("width",l),(l>0||0===l&&e.lastVal("width")>0)&&e.addToStyleTargetList("width"),e.markLayoutDirty("width"),(0,o.fB)().schedule(15,"resize")}}},{key:"setHeightFromDom",value:function(e){var t=e.domHeightTimestamp,r=e.getParent(),i=e.getDomParent(),a=!1;if((0,o.EI)().needsRerender(e)&&(e.isTextOnly()?e.$dom.text(e.getHtml()):e.$dom.html(e.getHtml()),a=!0),a||r&&t<=r.getDimLastUpdate()||i&&t<=i.getDimLastUpdate()){e.$dom.height("auto");var l=e.$dom.height();e.domHeightTimestamp=n.d.now(),e.val("height",l),(l>0||0===l&&e.lastVal("height")>0)&&e.addToStyleTargetList("height"),e.markLayoutDirty("height"),(0,o.fB)().schedule(15,"resize")}}},{key:"easingMorph",value:function(t,r,n,i,a,o){var l=t.getTargetEasing(r),s=l?u.G.easingFunction(l):void 0,c=s?s(t.getTargetStepPercent(r,a,o)):t.getTargetStepPercent(r,a,o);return e.morph(r,n,i,c)}},{key:"morph",value:function(e,t,r,n){if(a.u.colorMap[i.g.getTargetName(e)]){var o=s.I.color2Integers(r),l=t?s.I.color2Integers(t):s.I.color2Integers("#fff");if(o&&l){var u=Math.floor(o[0]*n+l[0]*(1-n)),c=Math.floor(o[1]*n+l[1]*(1-n)),d=Math.floor(o[2]*n+l[2]*(1-n));return"rgb(".concat(u,",").concat(c,",").concat(d,")")}return r}return"number"==typeof r?t+(r-t)*n:r}},{key:"fixAsyncStyle",value:function(e){if(e.asyncStyleTargetMap){var t,r=h(e.asyncStyleTargetMap);try{var i=function(){var r=d(t.value,1)[0];if("style"===r){var i=e.getStyle();n.d.isDefined(i)&&e.styleMap.style!==i&&(e.$dom.setStyleByMap(i),i.height&&e.val("height",parseInt(i.height,10)),i.width&&e.val("width",parseInt(i.width,10)),e.styleMap.style=i)}else if("attributes"===r){var o=e.getAttributes();n.d.isDefined(o)&&e.styleMap.attributes!==o&&(Object.keys(o).forEach((function(t){e.$dom.attr(t,o[t])})),e.styleMap.attributes=o)}else if("css"===r){var l=e.getCss();e.$dom.css()!==l&&e.$dom.css(l)}else a.u.attributeTargetMap[r]?e.$dom.attr(r,e.val(r)):n.d.isDefined(e.val(r))&&e.styleMap[r]!==e.val(r)&&(e.$dom.style(r,"".concat(e.val(r))),e.styleMap[r]=e.val(r))};for(r.s();!(t=r.n()).done;)i()}catch(e){r.e(e)}finally{r.f()}e.asyncStyleTargetMap.clear()}}},{key:"getTransformBaseFromActualValues",value:function(e){var t={},r=a.u.transformMap;for(var i in e.actualValues)if(r[i]){var o=e.actualValues[i];n.d.isDefined(o)&&(t[i]=o)}return t}},{key:"num",value:function(e,t){var r=Number(e);return Number.isFinite(r)?r:t}},{key:"shouldUseImplicitTransformOrder",value:function(e){if(e.val("useTargetTransformOrder"))return!0;var t=e.originalTargetNames||[],r=function(e){return e.some((function(e){return t.indexOf(e)>=0}))},n=0;return r(["perspective"])&&n++,r(["translateX","translateY","translateZ","x","y","z"])&&n++,(r(["rotateX","rotateY","rotateZ"])||r(["rotate3DX"])&&r(["rotate3DY"])&&r(["rotate3DZ"])&&r(["rotate3DAngle"]))&&n++,r(["skewX","skewY","skew"])&&n++,(r(["scaleX","scaleY","scaleZ"])||r(["scale3DX"])&&r(["scale3DY"])&&r(["scale3DZ"]))&&n++,n>1}},{key:"buildImplicitTransformOrderMap",value:function(e){var t=function(t){return e.indexOf(t)>=0},r=function(t){var r,n=1/0,i=h(t);try{for(i.s();!(r=i.n()).done;){var a=r.value,o=e.indexOf(a);o>=0&&o<n&&(n=o)}}catch(e){i.e(e)}finally{i.f()}return n},n=t("translateX")||t("translateY")||t("translateZ"),i=t("x")||t("y")||t("z"),a=t("rotate3DX")&&t("rotate3DY")&&t("rotate3DZ")&&t("rotate3DAngle"),o=t("scale3DX")&&t("scale3DY")&&t("scale3DZ"),l=t("skewX")&&t("skewY"),s=[];if(t("perspective")&&s.push({group:"perspective",order:r(["perspective"]),outputs:["perspective"]}),n?s.push({group:"translate",order:r(["translateX","translateY","translateZ"]),outputs:["translateX","translateY","translateZ"].filter(t)}):i&&s.push({group:"translate",order:r(["x","y","z"]),outputs:["translate3d"]}),a)s.push({group:"rotate",order:r(["rotate3DX","rotate3DY","rotate3DZ","rotate3DAngle"]),outputs:["rotate3d"]});else{var u=["rotateX","rotateY","rotateZ","rotate"],c=u.filter(t);c.length&&s.push({group:"rotate",order:r(u),outputs:c})}if(l)s.push({group:"skew",order:r(["skewX","skewY"]),outputs:["skew"]});else{var d=["skewX","skewY"].filter(t);d.length&&s.push({group:"skew",order:r(["skewX","skewY"]),outputs:d})}if(o)s.push({group:"scale",order:r(["scale3DX","scale3DY","scale3DZ"]),outputs:["scale3d"]});else{var f=["scaleX","scaleY","scaleZ","scale"],v=f.filter(t);v.length&&s.push({group:"scale",order:r(f),outputs:v})}var y={perspective:0,translate:1,rotate:2,skew:3,scale:4};s.sort((function(e,t){var r,n,i=Number.isFinite(e.order)?e.order:1/0,a=Number.isFinite(t.order)?t.order:1/0;return i!==a?i-a:(null!==(r=y[e.group])&&void 0!==r?r:999)-(null!==(n=y[t.group])&&void 0!==n?n:999)}));var g=s.flatMap((function(e){return e.outputs})),p={};return g.forEach((function(e,t){return p[e]=t})),p}},{key:"getTransformString",value:function(t,r){for(var i={},o={},l=n.d.isDefined(r.translateX)||n.d.isDefined(r.translateY)||n.d.isDefined(r.translateZ),s=0,u=Object.keys(r);s<u.length;s++){var c=u[s];if(!i[c])switch(c){case"translateX":case"translateY":case"translateZ":null!==r[c]&&(o[c]="".concat(c,"(").concat(e.num(r[c],0),"px)"),i[c]=!0);break;case"x":case"y":case"z":if(l){i.x=i.y=i.z=!0;break}var d="".concat(e.num(r.x,0),"px"),h="".concat(e.num(r.y,0),"px"),f="".concat(e.num(r.z,0),"px");o.translate3d="translate3d(".concat(d,", ").concat(h,", ").concat(f,")"),i.x=i.y=i.z=!0;break;case"rotate":case"rotateX":case"rotateY":case"rotateZ":case"rotate3DX":case"rotate3DY":case"rotate3DZ":case"rotate3DAngle":n.d.isDefined(r.rotate3DX)&&n.d.isDefined(r.rotate3DY)&&n.d.isDefined(r.rotate3DZ)&&n.d.isDefined(r.rotate3DAngle)?(o.rotate3d="rotate3d(".concat(e.num(r.rotate3DX,0),", ").concat(e.num(r.rotate3DY,0),", ").concat(e.num(r.rotate3DZ,0),", ").concat(e.num(r.rotate3DAngle,0),"deg)"),i.rotate3DX=i.rotate3DY=i.rotate3DZ=i.rotate3DAngle=!0):null!==r[c]&&(o[c]="".concat(c,"(").concat(e.num(r[c],0),"deg)"),i[c]=!0);break;case"scale":case"scaleX":case"scaleY":case"scaleZ":case"scale3DX":case"scale3DY":case"scale3DZ":var v,y,g;n.d.isDefined(r.scale3DX)&&n.d.isDefined(r.scale3DY)&&n.d.isDefined(r.scale3DZ)?(o.scale3d="scale3d(".concat(Number(null!==(v=r.scale3DX)&&void 0!==v?v:1),", ").concat(Number(null!==(y=r.scale3DY)&&void 0!==y?y:1),", ").concat(Number(null!==(g=r.scale3DZ)&&void 0!==g?g:1),")"),i.scale3DX=i.scale3DY=i.scale3DZ=!0):(o[c]="".concat(c,"(").concat(e.num(r[c],1),")"),i[c]=!0);break;case"skewX":case"skewY":var p,m;if(n.d.isDefined(r.skewX)&&n.d.isDefined(r.skewY))o.skew="skew(".concat(Number(null!==(p=r.skewX)&&void 0!==p?p:0),"deg, ").concat(Number(null!==(m=r.skewY)&&void 0!==m?m:0),"deg)"),i.skewX=i.skewY=!0;else if(null!==r[c]){var b;o[c]="".concat(c,"(").concat(Number(null!==(b=r[c])&&void 0!==b?b:0),"deg)"),i[c]=!0}break;case"perspective":o[c]="perspective(".concat(e.num(r.perspective,0),"px)"),i.perspective=!0}}var T={},w=t.val("transformOrder");Array.isArray(w)&&w.length?w.forEach((function(e,t){T[e]=t})):e.shouldUseImplicitTransformOrder(t)&&(t.implicitTransformOrderVersion!==t.targetsVersion&&(t.implicitTransformOrderMap=e.buildImplicitTransformOrderMap(t.originalTargetNames),t.implicitTransformOrderVersion=t.targetsVersion),T=t.implicitTransformOrderMap),Object.keys(T).length||(T=a.u.transformOrder);var k=Object.keys(o).sort((function(e,t){var r,n;return(null!==(r=T[e])&&void 0!==r?r:999)-(null!==(n=T[t])&&void 0!==n?n:999)})).map((function(e){return o[e]}));return k.join(" ")}},{key:"calcAbsolutePositionFromDom",value:function(e){if(e.hasDom()){var t=e.$dom.getBoundingClientRect(),r=Math.floor(t.left),n=Math.floor(t.top);r===Math.floor(e.absX)&&n===Math.floor(e.absY)||(e.absX=t.left,e.absY=t.top,e.markLayoutDirty("islandAbsXY"))}}}],(r=null)&&y(t.prototype,r),c&&y(t,c),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,c}()},129:function(e,t,r){r.d(t,{d:function(){return h}});var n=r(142),i=r(956),a=r(432);function o(e){return o="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},o(e)}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(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 s(e,t){if(e){if("string"==typeof e)return u(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function d(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var h=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,u=[{key:"calcVisibility",value:function(t){var r,n=t.getRealParent();if((null===(r=null==n?void 0:n.targets.onVisibleChildrenChange)||void 0===r||!r)&&t.isVisible()&&(t.isTargetUpdating(t.allTargetMap.x)||t.isTargetUpdating(t.allTargetMap.y)))return!0;var i=(t.getDomParent().getMeasuringScale()||1)*t.getMeasuringScale(),a=t.absX,o=t.absY,l=e.isDefined(t.getWidth())?i*t.getWidth():0,s=e.isDefined(t.getHeight())?i*t.getHeight():0;t.visibilityStatus||(t.visibilityStatus={});var u=t.visibilityStatus,c=this.getVisibilityClipRect(t.getParent());return c?(u.right=a-20<=c.r,u.left=a+l+20>=c.x,u.bottom=o-t.getTopMargin()-20<=c.b,u.top=o+s+20>=c.y,u.clipX=c.x,u.clipY=c.y,u.clipR=c.r,u.clipB=c.b,u.parent=c.source,u.isVisible=u.left&&u.right&&u.top&&u.bottom):(u.right=!0,u.left=!0,u.bottom=!0,u.top=!0,u.clipX=void 0,u.clipY=void 0,u.clipR=void 0,u.clipB=void 0,u.parent="none",u.isVisible=!0),u.x=a,u.y=o,u.width=l,u.height=s,t.actualValues.isVisible=u.isVisible,u.isVisible}},{key:"getVisibilityClipRect",value:function(e){for(var t=null;e&&e!==(0,n.Bt)();){if(this.shouldClipByAncestor(e)){var r=this.getAncestorViewportRect(e);if((t=t?this.intersectVisibilityRects(t,r):r).r<=t.x||t.b<=t.y)break}e=e.getParent()}return t}},{key:"shouldClipByAncestor",value:function(e){return e.managesOwnScroll()}},{key:"getAncestorViewportRect",value:function(e){var t,r,n=(null===(t=e.$dom)||void 0===t?void 0:t.getScrollLeft())||0,i=(null===(r=e.$dom)||void 0===r?void 0:r.getScrollTop())||0;return{x:e.absX+n,y:e.absY+i,r:e.absX+n+e.getWidth(),b:e.absY+i+e.getHeight(),source:e}}},{key:"intersectVisibilityRects",value:function(e,t){return{x:Math.max(e.x,t.x),y:Math.max(e.y,t.y),r:Math.min(e.r,t.r),b:Math.min(e.b,t.b),source:t.source}}},{key:"updateClipRect",value:function(e){var t=e.getParent(),r=(null==t?void 0:t.visibilityClipRect)||null;if(this.shouldClipByAncestor(e)){var n=this.getLocalViewportRect(e);e.visibilityClipRect=r?this.intersectVisibilityRects(r,n):n}else e.visibilityClipRect=r;return e.visibilityClipRect}},{key:"contains",value:function(e,t){var r;return!(!e||!t||e!==t&&t.getDomParent()!==e&&(null===(r=t.getDomParent())||void 0===r?void 0:r.getDomParent())!==e)}},{key:"list2map",value:function(t,r){return t.reduce((function(t,n){return t[n.oid]=e.isDefined(r)?r:n,t}),{})}},{key:"getDeepList",value:function(e){var t=[];return function e(r){if(r&&r.hasChildren()){var n=r.getChildren();t.push.apply(t,l(n)),n.forEach(e)}}(e),t}},{key:"areEqual",value:function(e,t,r){return r?JSON.stringify(e)===JSON.stringify(t):e===t}},{key:"momentum",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.002,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:100,a=t-e,o=r<10?Math.abs(a)/10:Math.abs(a)/r,l=o/n,s=Math.pow(o,2)/(2*n);s>i&&(s=i);var u=a>0?a+s:a-s;return{distance:Math.round(u)/5,duration:Math.round(l),momentumDistance:s}}},{key:"isDefined",value:function(e){return null!=e}},{key:"isNumber",value:function(e){return"number"==typeof e&&!isNaN(e)}},{key:"limit",value:function(t,r,n){return t=(t=(t=e.isDefined(t)?t:r)>n?n:t)<r?r:t}},{key:"capitalizeFirstLetter",value:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},{key:"getLoadTargetName",value:function(e){return"load-".concat(e)}},{key:"formatNum",value:function(e,t){return e?parseFloat(e.toString()).toFixed(t):0}},{key:"now",value:function(){return performance.now()}},{key:"log",value:function(e){return!0===e?console.log:function(){}}},{key:"distance",value:function(e,t,r,n){return Math.sqrt(Math.pow(r-e,2)+Math.pow(n-t,2))}},{key:"getFullLink",value:function(t){if(e.isDefined(t)){if(!t.startsWith("http")){var r=window.location.protocol;r+=r.endsWith(":")?"//":"://";var n="".concat(r).concat(window.location.hostname);t=t.startsWith("/")?n+t:"".concat(n,"/").concat(t)}return t.endsWith("/")?t.slice(0,-1):t}}},{key:"isStringBooleanOrNumber",value:function(e){var t=o(e);return"string"===t||"boolean"===t||"number"===t}},{key:"logTree",value:function(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,n.Bt)(),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=s(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}((0,n.zw)().calcChildren(r));try{for(a.s();!(t=a.n()).done;){var o=t.value,l=o.isVisible()?i+"| ":i+"x ";"BI"===o.type?console.log("".concat(l).concat(o.oid," v:").concat(o.isVisible()," x:").concat(Math.floor(o.getX())," y:").concat(Math.floor(o.getY()),", absX:").concat(Math.floor(o.absX),", absY:").concat(Math.floor(o.absY)," n-e-s:").concat(Math.floor(o.viewport.yNorth),"-").concat(Math.floor(o.viewport.yEast),"-").concat(Math.floor(o.viewport.ySouth)," w:").concat(Math.floor(o.getBaseWidth())," ww:").concat(Math.floor(o.getContentWidth())," h:").concat(Math.floor(o.getBaseHeight())," hh:").concat(Math.floor(o.getContentHeight()))):console.log("".concat(l).concat(o.oid," v:").concat(o.isVisible()," x:").concat(Math.floor(o.getX())," y:").concat(Math.floor(o.getY())," absX:").concat(Math.floor(o.absX),", absY:").concat(Math.floor(o.absY)," w:").concat(Math.floor(o.getWidth())," h:").concat(Math.floor(o.getHeight())," hc:").concat(Math.floor(o.getContentHeight()))),o.hasChildren()&&"exampleItem"!==o.type&&e.logTree(o,l)}}catch(e){a.e(e)}finally{a.f()}}},{key:"logBranch",value:function(e){for(var t=[];e;)t.unshift(e),e=e.bracket?e.bracket:e.getParent();for(var r=1;r<t.length;r++){var i=t[r-1],a=t[r];if((0,n.zw)().getChildren(i).indexOf(a)<0){console.log("branch is not valid: "+i.oid+", "+a.oid);break}}console.log(t.map((function(e){return e.oid})))}},{key:"handleValueChange",value:function(t,r){var n=t.targets[r];n||(r=i.g.getTargetName(r),n=t.targets[r]);var a=t.val(r),l=t.lastVal(r);return"object"===o(n)&&"function"==typeof n.onValueChange&&(!e.areEqual(a,l,n.deepEquality)&&(n.onValueChange.call(t,a,l,t.getTargetCycle(r)),t.setTargetMethodName(r,"onValueChange")),!0)}},{key:"scheduleExecution",value:function(t,r){var n=t.getTargetInterval(r),i=e.now();if(n<=0)return 0;if(t.isTargetImperative(r)&&0===t.getTargetStep(r))return t.setScheduleTimeStamp(r,i),0;var a=t.getScheduleTimeStamp(r);if(e.isDefined(a)){var o=i-a;return Math.max(n-o,0)}return t.setScheduleTimeStamp(r,i),n}},{key:"runTargetValue",value:function(t,r,o,l,s){var u=i.g.getTargetName(o);return a.u.allEventMap[u]?"function"==typeof r.value?r.value.call(t,(0,n.kQ)().getCurrentOriginalEvent(),l,s):e.isDefined(r.value)?r.value:r:t.val("___".concat(o))?"function"==typeof r.value?r.value.call(t,t.val("___".concat(o)),l,s):e.isDefined(r.value)?r.value:r:"function"==typeof r.value?r.value.call(t,l,s):e.isDefined(r.value)?r.value:r}},{key:"mergeTargets",value:function(t,r){var n,i=r.targets,a=r.originalTargetNames,o=t.targets,l=[];a.forEach((function(t){e.isDefined(o[t])||l.push(t)})),(n=t.originalTargetNames).push.apply(n,l),l.forEach((function(e){var r=t.originalTargetNames.indexOf(e);o[e]=i[e],t.processNewTarget(e,r)}))}}],(r=null)&&c(t.prototype,r),u&&c(t,u),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,u}()},432:function(e,t,r){r.d(t,{u:function(){return y}});var n,i=r(142),a=r(129),o=r(956);function l(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e){return d="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},d(e)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,v(n.key),n)}}function f(e,t,r){return(t=v(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}var y=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,n=[{key:"defaultActualValues",value:function(){return{x:0,y:0,width:0,height:0,leftMargin:0,rightMargin:0,topMargin:0,bottomMargin:0,opacity:1,scale:1,scrollLeft:0,scrollTop:0,borderRadius:0,children:[],isInFlow:!0,element:"div",canHaveDom:!0,isIncluded:!0,bracketThreshold:40,bracketSize:2,preventDefault:void 0,canDeleteDom:void 0}}},{key:"toCanonicalKey",value:function(t){var r,n=String(t),i=n.toLowerCase();return null!==(r=e.attributesToTargets[i])&&void 0!==r?r:n}},{key:"isLifeCycleMethod",value:function(t){return e.lifecycleMethodSet.has(t)||e.lifecyclePatterns.step.test(t)||e.lifecyclePatterns.end.test(t)}},{key:"isGpuPreferred",value:function(t){return!!e.gpuTargetMap[o.g.getTargetName(t)]}},{key:"isTransformKey",value:function(t){return!!e.transformMap[t]}}],(r=null)&&h(t.prototype,r),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();n=y,f(y,"transformOrder",{perspective:0,translateX:1,translateY:1,translateZ:1,translate:1,translate3d:1,rotate:2,rotateX:2,rotateY:2,rotateZ:2,rotate3d:2,skew:3,skewX:3,skewY:3,scale:4,scaleX:4,scaleY:4,scaleZ:4,scale3DX:4,scale3DY:4,scale3DZ:4}),f(y,"defaultTargetStyles",{position:"absolute",left:0,top:0,zIndex:1}),f(y,"transformMap",{x:!0,y:!0,z:!0,translateX:!0,translateY:!0,translateZ:!0,perspective:!0,rotate:!0,rotateX:!0,rotateY:!0,rotateZ:!0,rotate3DX:!0,rotate3DY:!0,rotate3DZ:!0,rotate3DAngle:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,scale3DX:!0,scale3DY:!0,scale3DZ:!0,skew:!0,skewX:!0,skewY:!0}),f(y,"dimMap",{width:!0,height:!0,dim:!0}),f(y,"styleWithUnitMap",{width:!0,height:!0,fontSize:!0,lineHeight:!0,borderRadius:!0,padding:!0,paddingLeft:!0,paddingRight:!0,paddingTop:!0,paddingBottom:!0,left:!0,top:!0,right:!0,bottom:!0,wordSpacing:!0,letterSpacing:!0}),f(y,"colorMap",{color:!0,backgroundColor:!0,borderColor:!0,background:!0}),f(y,"styleTargetMap",c(c(c(c({},n.transformMap),n.styleWithUnitMap),n.colorMap),{},{dim:!0,color:!0,opacity:!0,zIndex:!0,border:!0,borderTop:!0,borderLeft:!0,borderRight:!0,borderBottom:!0})),f(y,"gpuTargetMap",c(c({},n.transformMap),{},{color:!0,backgroundColor:!0,borderColor:!0,opacity:!0,width:!0,height:!0})),f(y,"asyncStyleTargetMap",{position:!0,css:!0,style:!0,textAlign:!0,boxSizing:!0,transformStyle:!0,transformOrigin:!0,attributes:!0,justifyContent:!0,flexDirection:!0,alignItems:!0,display:!0,cursor:!0,fontFamily:!0,overflow:!0,overflowX:!0,overflowY:!0,textDecoration:!0,boxShadow:!0,fontWeight:!0,willChange:!0,backgroundImage:!0,backgroundSize:!0,flexWrap:!0,userSelect:!0,outline:!0,backfaceVisibility:!0,filter:!0}),f(y,"scaleMap",{scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,scale3DX:!0,scale3DY:!0,scale3DZ:!0}),f(y,"rotate3D",{rotate3DX:!0,rotate3DY:!0,rotate3DZ:!0}),f(y,"attributeTargetMap",{lang:!0,autoFocus:!0,placeholder:!0,autoComplete:!0,name:!0,type:!0,src:!0,href:!0,method:!0,size:!0,value:!0,maxLength:!0,minLength:!0,max:!0,min:!0,readonly:!0,required:!0,alt:!0,disabled:!0,action:!0,accept:!0,selected:!0,rows:!0,cols:!0,tabIndex:!0,role:!0,ariaLabel:!0,ariaCurrent:!0,ariaPressed:!0}),f(y,"mustExecuteTargets",{width:!0,height:!0,heightFromDom:!0,widthFromDom:!0,fetch:!0,fetchImage:!0,isVisible:!0,canDeleteDom:!0}),f(y,"ignoreRerun",{isVisible:!0}),f(y,"ignoreTargetMethodNameMap",{isVisible:!0}),f(y,"cssFunctionMap",{skew:{x:0,y:0},translate3d:{x:0,y:0,z:0},rotate3d:{x:0,y:0,z:0,a:0},scale3d:{x:0,y:0,z:0}}),f(y,"bypassInitialProcessingTargetMap",{onChildrenChange:!0,onVisibleChildrenChange:!0,onPageClose:!0}),f(y,"controlTargetMap",{defaultStyling:!0,styling:!0,reuseDomDefinition:!0,useWindowFrame:!0,canDeleteDom:!0,onDomEvent:!0,canHaveDom:!0}),f(y,"events",{mouseStart:{pointerdown:{eventName:"mousedown",inputType:"pointer",eventType:"start",order:2,windowEvent:!1,queue:!0,rateLimit:0},mousedown:{eventName:"mousedown",inputType:"mouse",eventType:"start",order:3,windowEvent:!1,queue:!0,rateLimit:0}},mouseEnd:{pointerup:{eventName:"mouseup",inputType:"pointer",eventType:"end",order:2,windowEvent:!1,queue:!0,rateLimit:0},mouseup:{eventName:"mouseup",inputType:"mouse",eventType:"end",order:3,windowEvent:!1,queue:!0,rateLimit:0}},clickEvents:{click:{eventName:"click",inputType:"mouse",eventType:"click",order:1,windowEvent:!1,queue:!1,rateLimit:0}},touchStart:{touchstart:{eventName:"touchstart",inputType:"touch",eventType:"start",order:1,windowEvent:!1,queue:!0,rateLimit:0}},touchEnd:{touchend:{eventName:"touchend",inputType:"touch",eventType:"end",order:1,windowEvent:!1,queue:!0,rateLimit:0}},cancelEvents:{touchcancel:{eventName:"touchcancel",inputType:"touch",eventType:"cancel",order:1,windowEvent:!1,queue:!0,rateLimit:0},pointercancel:{eventName:"mousecancel",inputType:"pointer",eventType:"cancel",order:2,windowEvent:!1,queue:!0,rateLimit:0}},windowEvents:{keyup:{eventName:"key",inputType:"",eventType:"key",order:1,windowEvent:!0,queue:!0,rateLimit:50},keydown:{eventName:"keydown",inputType:"",eventType:"keydown",order:1,windowEvent:!0,queue:!0,rateLimit:50},blur:{eventName:"blur",inputType:"mouse",eventType:"cancel",order:2,windowEvent:!0,queue:!0,rateLimit:0},resize:{eventName:"resize",inputType:"",eventType:"resize",order:1,windowEvent:!0,queue:!0,rateLimit:50},orientationchange:{eventName:"resize",inputType:"",eventType:"resize",order:1,windowEvent:!0,queue:!0,rateLimit:50},scroll:{eventName:"scroll",inputType:"",eventType:"scroll",order:1,windowEvent:!0,queue:!0,rateLimit:50}},containerScroll:{scroll:{eventName:"scroll",inputType:"",eventType:"scroll",order:1,windowEvent:!1,queue:!0,rateLimit:50}},inputEvents:{input:{eventName:"input",inputType:"",eventType:"input",order:1,windowEvent:!1,queue:!0,rateLimit:50}},changeEvents:{change:{eventName:"change",inputType:"",eventType:"change",order:1,windowEvent:!1,queue:!0,rateLimit:0}},submitEvents:{submit:{eventName:"submit",inputType:"form",eventType:"submit",order:1,windowEvent:!1,queue:!0,rateLimit:0}},popState:{popstate:{eventName:"popstate",inputType:"",eventType:"popstate",order:1,windowEvent:!0,queue:!0,rateLimit:0}},leaveEvents:{pointerleave:{eventName:"mouseleave",inputType:"pointer",eventType:"leave",order:2,windowEvent:!1,queue:!0,rateLimit:0},mouseleave:{eventName:"mouseleave",inputType:"mouse",eventType:"leave",order:3,windowEvent:!1,queue:!0,rateLimit:0}},enterEvents:{pointerenter:{eventName:"mouseenter",inputType:"pointer",eventType:"enter",order:2,windowEvent:!1,queue:!0,rateLimit:0},mouseenter:{eventName:"mouseenter",inputType:"mouse",eventType:"enter",order:3,windowEvent:!1,queue:!0,rateLimit:0}},moveEvents:{touchmove:{eventName:"touchmove",inputType:"touch",eventType:"move",order:1,windowEvent:!1,queue:!0,rateLimit:50},pointermove:{eventName:"mousemove",inputType:"pointer",eventType:"move",order:2,windowEvent:!1,queue:!0,rateLimit:50},mousemove:{eventName:"mousemove",inputType:"mouse",eventType:"move",order:3,windowEvent:!1,queue:!0,rateLimit:50}},documentDragEvents:{pointermove:{eventName:"mousemove",inputType:"pointer",eventType:"move",order:2,windowEvent:!1,queue:!0,rateLimit:50,capture:!0},mousemove:{eventName:"mousemove",inputType:"mouse",eventType:"move",order:3,windowEvent:!1,queue:!0,rateLimit:50,capture:!0},touchmove:{eventName:"touchmove",inputType:"touch",eventType:"move",order:1,windowEvent:!1,queue:!0,rateLimit:50,capture:!0},pointerup:{eventName:"mouseup",inputType:"pointer",eventType:"end",order:2,windowEvent:!1,queue:!0,rateLimit:0,capture:!0},mouseup:{eventName:"mouseup",inputType:"mouse",eventType:"end",order:3,windowEvent:!1,queue:!0,rateLimit:0,capture:!0},touchend:{eventName:"touchend",inputType:"touch",eventType:"end",order:1,windowEvent:!1,queue:!0,rateLimit:0,capture:!0},pointercancel:{eventName:"mousecancel",inputType:"pointer",eventType:"cancel",order:2,windowEvent:!1,queue:!0,rateLimit:0,capture:!0},touchcancel:{eventName:"touchcancel",inputType:"touch",eventType:"cancel",order:1,windowEvent:!1,queue:!0,rateLimit:0,capture:!0}},wheelEvents:{wheel:{eventName:"wheel",inputType:"",eventType:"wheel",order:1,windowEvent:!1,queue:!0,rateLimit:50},mousewheel:{eventName:"wheel",inputType:"",eventType:"wheel",order:1,windowEvent:!1,queue:!0,rateLimit:50}}}),f(y,"attributesToTargets",{onstart:"onStart",onend:"onEnd",onkey:"onKey",onkeydown:"onKeyDown",onanykey:"onAnyKey",onclick:"onClick",onanyclick:"onAnyClick",onhover:"onHover",onswipe:"onSwipe",onanyswipe:"onAnySwipe",onpinch:"onPinch",onenter:"onEnter",onleave:"onLeave",onblur:"onBlur",onfocus:"onFocus",onscroll:"onScroll",onscrollleft:"onScrollLeft",onscrolltop:"onScrollTop",onwindowscroll:"onWindowScroll",onpopstate:"onPopState",onchange:"onChange",oninput:"onInput",onsubmit:"onSubmit",onvisible:"onVisible",oninvisible:"oInVisible",onresize:"onResize",textalign:"textAlign",preventdefault:"preventDefault",translatex:"translateX",translatey:"translateY",translatez:"translateZ",rotate3dx:"rotate3DX",rotate3dy:"rotate3DY",rotate3dz:"rotate3DZ",rotate3dangle:"rotate3DAngle",scale3dx:"scale3DX",scale3dy:"scale3DY",scale3dz:"scale3DZ",skewx:"skewX",skewy:"skewY",lineheight:"lineHeight",fontsize:"fontSize",borderradius:"borderRadius",letterspacing:"letterSpacing",backgroundcolor:"backgroundColor",backgroundimage:"backgroundImage",backgroundsize:"backgroundSize",bordertop:"borderTop",borderleft:"borderLeft",borderright:"borderRight",borderbottom:"borderBottom",boxsizing:"boxSizing",transformstyle:"transformStyle",transformorigin:"transformOrigin",justifycontent:"justifyContent",flexdirection:"flexDirection",flexwrap:"flexWrap",alignitems:"alignItems",fontfamily:"fontFamily",overflowx:"overflowX",overflowy:"overflowY",textdecoration:"textDecoration",boxshadow:"boxShadow",fontweight:"fontWeight",willchange:"willChange",domholder:"domHolder",shouldcalculatechildtargets:"shouldCalculateChildTargets",domparent:"domParent",containeroverflowmode:"containerOverflowMode",itemoverflowmode:"itemOverflowMode",onvisiblechildrenchange:"onVisibleChildrenChange",onchildrenchange:"onChildrenChange",isvisible:"isVisible",isinflow:"isInFlow",basewidth:"baseWidth",baseheight:"baseHeight",paddingleft:"paddingLeft",paddingright:"paddingRight",paddingtop:"paddingTop",paddingbottom:"paddingBottom",userselect:"userSelect",arialabel:"ariaLabel",ariacurrent:"ariaCurrent",ariapressed:"ariaPressed",tabindex:"tabIndex",backfacevisibility:"backfaceVisibility"}),f(y,"targetToEventsMapping",{onStart:["touchStart","mouseStart"],onEnd:[],onKey:[],onKeyDown:[],onAnyKey:[],onBlur:[],onFocus:[],onClick:["clickEvents","touchStart","mouseStart"],onAnyClick:["clickEvents","touchStart","mouseStart"],onHover:["moveEvents"],onSwipe:["touchStart","mouseStart"],onAnySwipe:["touchStart","mouseStart"],onPinch:["touchStart"],onEnter:["enterEvents"],onLeave:["leaveEvents"],onScroll:["touchStart","mouseStart","wheelEvents"],onScrollLeft:["touchStart","mouseStart","wheelEvents"],onScrollTop:["touchStart","mouseStart","wheelEvents"],onWindowScroll:["containerScroll"],onPopState:["popState"],onChange:["changeEvents"],onInput:["inputEvents"],onSubmit:["submitEvents"]}),f(y,"internalEventMap",{onDomEvent:function(e){return e.hasDomNow},onVisible:function(e){return e.isNowVisible},onInVisible:function(e){return e.isNowInvisible},onResize:function(e){var t=e.getDimLastUpdate();if(!t)return!1;var r=e.getParent(),n=(0,i.S9)(),a=r?r.getDimLastUpdate():0;return(a>n?a:n)>t}}),f(y,"allEventMap",{onStart:function(e){return(0,i.kQ)().isStartEvent()&&(0,i.kQ)().isStartHandler(e)},onEnd:function(e){return(0,i.kQ)().isEndEvent()&&(0,i.kQ)().isEndHandler(e)},onAnySwipe:function(){return(0,i.kQ)().isSwipeEvent()&&a.d.isDefined((0,i.kQ)().swipeStartX)},onHover:function(e){return(0,i.kQ)().isMoveEvent()&&(0,i.kQ)().isHoverHandler(e)},onClick:function(e){return(0,i.kQ)().isClickEvent()&&(0,i.kQ)().isClickHandler(e)},onAnyClick:function(){return(0,i.kQ)().isClickEvent()},onEnter:function(e){return(0,i.kQ)().isEnterHandler(e)},onLeave:function(e){return(0,i.kQ)().isLeaveHandler(e)},onSwipe:function(e){return(0,i.kQ)().isSwipeHandler(e)&&(0,i.kQ)().isSwipeEvent()&&a.d.isDefined((0,i.kQ)().swipeStartX)},onFocus:function(e){return(0,i.kQ)().onFocus(e)},onBlur:function(e){return(0,i.kQ)().onBlur(e)},onPinch:function(e){return(0,i.kQ)().isPinchHandler(e)},onKey:function(e){return"key"===(0,i.kQ)().getEventType()&&(0,i.kQ)().currentKey&&(0,i.kQ)().currentHandlers.focus===e&&(0,i.kQ)().currentHandlers.justFocused!==e},onKeyDown:function(e){return"keydown"===(0,i.kQ)().getEventType()&&(0,i.kQ)().currentKey&&(0,i.kQ)().currentHandlers.focus===e&&(0,i.kQ)().currentHandlers.justFocused!==e},onAnyKey:function(){return"key"===(0,i.kQ)().getEventType()&&(0,i.kQ)().currentKey},onScroll:function(e){return(0,i.kQ)().isScrollLeftHandler(e)&&(0,i.kQ)().deltaX()||(0,i.kQ)().isScrollTopHandler(e)&&(0,i.kQ)().deltaY()},onScrollTop:function(e){return"horizontal"!==(0,i.kQ)().getOrientation()&&(0,i.kQ)().isScrollTopHandler(e)&&(0,i.kQ)().deltaY()},onScrollLeft:function(e){return"vertical"!==(0,i.kQ)().getOrientation()&&(0,i.kQ)().isScrollLeftHandler(e)&&(0,i.kQ)().deltaX()},onWindowScroll:function(){return"scroll"===(0,i.kQ)().getEventType()},onPopState:function(){return"popstate"===(0,i.kQ)().getEventType()},onChange:function(e){return"change"===(0,i.kQ)().getEventType()&&(0,i.kQ)().isFormHandler(e)},onInput:function(e){return"input"===(0,i.kQ)().getEventType()&&(0,i.kQ)().isFormHandler(e)},onSubmit:function(){return"submit"===(0,i.kQ)().getEventType()}}),f(y,"excludedTargetKeys",new Set(["originalTargetName","originalTModel","activateNextTarget","invokerTarget","invokerTModel","active","addChildAction","childAction","fetchAction"])),f(y,"lifecycleCallbackSet",new Set(["onComplete","onValueChange","onImperativeEnd","onImperativeStep","onStepsEnd","onSuccess","onError"])),f(y,"lifecycleCoreSet",new Set(["value","steps","cycles","enabledOn","loop","interval"])),f(y,"lifecycleMethodSet",new Set([].concat(l(n.lifecycleCallbackSet),l(n.lifecycleCoreSet)))),f(y,"lifecyclePatterns",{step:/^on[A-Za-z]+Step$/,end:/^on[A-Za-z]+End$/}),f(y,"eventSet",new Set([].concat(l(Object.keys(n.allEventMap)),l(Object.keys(n.internalEventMap))))),f(y,"styleSet",new Set([].concat(l(Object.keys(n.styleTargetMap)),l(Object.keys(n.asyncStyleTargetMap)),l(Object.keys(n.attributeTargetMap))))),f(y,"reservedKeywordSet",new Set([].concat(l(n.styleSet),l(Object.keys(n.defaultActualValues())),l(Object.keys(n.allEventMap)),l(Object.keys(n.internalEventMap)),l(Object.keys(n.mustExecuteTargets)),["html","isInFlow","domHolder","domParent","gap","widthFromDom","heightFromDom","requiresDom","preventDefault","canDeleteDom","textOnly","styling","$dom","defaultStyling","reuseDomDefinition","canHaveDom","excludeXYCalc","excludeX","excludeY","containerOverflowMode","itemOverflowMode","baseElement","element","otype","calculateChildren","domIsland","bracketThreshold","bracketSize","shouldBeBracketed","sourceDom"]))),f(y,"activationKeywordSet",new Set(["originalTModel","originalTargetName","activateNextTarget"]))},985:function(e,t,r){r.d(t,{j:function(){return b}});var n=r(956),i=r(347),a=r(432),o=r(528),l=r(129),s=r(515),u=r(736),c=r(142);function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}(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 h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function f(e){return f="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},f(e)}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e,t,r){return(t=m(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,m(n.key),n)}}function m(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:t+""}var b=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,h=[{key:"prepareTarget",value:function(e,t){n.g.currentTargetName=t,n.g.currentTModel=e,e.isExecuted(t)&&e.getTargetCycles(t)>1&&(e.getTargetCycle(t)<e.getTargetCycles(t)-1?e.incrementTargetCycle(t):e.resetTargetCycle(t),e.resetTargetStep(t),e.resetTargetInitialValue(t))}},{key:"executeDeclarativeTarget",value:function(t,r){var i=n.g.getTargetName(r);t.allTargetMap[i]=r,e.resolveTargetValue(t,r),e.updateTarget(t,t.targetValues[r],r,!1)}},{key:"assignImperativeTargetValue",value:function(e,t,r,i){var a;e.targetValues[t]=e.targetValues[t]||n.g.emptyValue();var o=e.targetValues[t];return o.isImperative=!0,o.originalTargetName=r,o.originalTModel=i,(null===(a=e.animatingMap)||void 0===a?void 0:a.has(t))&&e.getTargetSteps(t)>0&&(0,c.s)().cancelKey(e,t),o}},{key:"executeImperativeTarget",value:function(t,r,o,s,u,c,d,h){var v,g=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1;if("string"==typeof r){var p=n.g.getTargetName(r);r=r.endsWith("+")?r:r+"+",t.allTargetMap[p]=r}if(i.D.isListTarget(o)){var m=l.d.isDefined(o.steps)?o.steps:s,b=l.d.isDefined(o.interval)?o.interval:u,T=l.d.isDefined(o.easing)?o.easing:c,w=l.d.isDefined(o.cycles)?o.cycles:g;v=e.assignImperativeTargetValue(t,r,d,h),e.assignListTarget(t,r,v,o.list,o.list[0],m,b,T,w)}else{if(i.D.isTargetSpecObject(o)){var k=i.D.getValueStepsCycles(t,r,o),S=k[0],M=k[1],D=k[2],E=k[3],C=k[4];return s=l.d.isDefined(M)?M:s,u=l.d.isDefined(D)?D:u,c=l.d.isDefined(E)?E:c,g=l.d.isDefined(C)?C:g,void e.executeImperativeTarget(t,r,S,s,u,c,d,h,g)}if(i.D.isObjectTarget(r,o)){var _=a.u.cssFunctionMap[r]?y(y({},a.u.cssFunctionMap[r]),o):o;Object.keys(_).forEach((function(r){var n=_[r],a=s,o=u,v=c,y=g;if("object"===f(n)&&!i.D.isListTarget(n)){var p=i.D.getValueStepsCycles(t,r,_[r]);n=p[0],a=l.d.isDefined(p[1])?p[1]:s,o=l.d.isDefined(p[2])?p[2]:u,v=l.d.isDefined(p[3])?p[3]:c,y=l.d.isDefined(p[4])?p[4]:g}e.executeImperativeTarget(t,r,n,a,o,v,d,h,y)}))}else if("object"!==f(o)||i.D.isListTarget(o))v=e.assignImperativeTargetValue(t,r,d,h,g),e.assignSingleTarget(v,o,void 0,s,g,u,c),v.step=0,v.cycle=0;else{var x=i.D.getValueStepsCycles(t,r,o);o!==x[0]?(o=x[0],s=l.d.isDefined(x[1])?x[1]:s,u=l.d.isDefined(x[2])?x[2]:u,c=l.d.isDefined(x[3])?x[3]:c,g=l.d.isDefined(x[4])?x[4]:g,e.executeImperativeTarget(t,r,o,s,u,c,d,h,g)):(v=e.assignImperativeTargetValue(t,r,d,h,g),e.assignSingleTarget(v,o,void 0,s,g,u,c),v.step=0,v.cycle=0)}}v&&(e.updateTarget(t,v,r,!0),t.isTargetDone(r)&&n.g.shouldActivateNextTarget(t,r))}},{key:"updateTarget",value:function(t,r,n,i){t.setLastUpdate(n),0===t.getTargetSteps(n)&&e.snapActualToTarget(t,n),r.executionFlag=!0,r.executionCount++,t.addToStyleTargetList(n,i),t.setTargetMethodName(n,"value");var o=e.calculateTargetStatus(t,r,n);t.setTargetStatus(n,o),!a.u.ignoreRerun[n]&&t.shouldScheduleRun(n)&&(0,c.fB)().schedule(1,"updateTarget2-"+t.oid+"-"+n)}},{key:"calculateTargetStatus",value:function(e,t,r){var n,i=e.getValueListPointer(r),a=e.getTargetCycle(r),o=e.getTargetCycles(r),l=e.getTargetStep(r),s=e.getTargetSteps(r);return t.snapAnimation?"done":l<s||Array.isArray(t.valueList)&&i<t.valueList.length-1?"updating":e.isTargetInLoop(r)||a<o-1?"active":null!==(n=e.targets[r])&&void 0!==n&&n.fetchAction&&!(0,c.qI)().isLoadingSuccessful(e,r)?"fetching":"done"}},{key:"assignListTarget",value:function(e,t,r,n,i,a,o,s,c){r.valueList=n,r.stepList=Array.isArray(a)?a:l.d.isDefined(a)&&a>0?[a]:[1],r.intervalList=Array.isArray(o)?o:l.d.isDefined(o)?[o||8]:[8],r.easingList=Array.isArray(s)?s:l.d.isDefined(s)?[s]:[u.G.LINEAR],r.cycles=c,r.valuePointer=1,r.value=n[1],r.initialValue=i,r.steps=r.stepList[0],r.interval=r.intervalList[0],r.easing=r.easingList[0],r.step=0,r.snapAnimation=!1,e.val(t,i),e.setActual(t,i)}},{key:"assignSingleTarget",value:function(e,t,r,n,i,a,o){delete e.valueList,delete e.stepList,delete e.intervalList,delete e.easingList,l.d.isDefined(e.valuePointer)&&(e.valuePointer=0),e.initialValue=r,e.lastValue=e.value,e.value=t,e.steps=n||0,e.cycles=i||1,e.interval=a||0,e.easing=o,e.snapAnimation=!1}},{key:"snapActualToTarget",value:function(e,t){var r=e.targetValues[t].value,n="function"==typeof r?r.call(e):r;if(e.val(t)!==n)return e.hasValidAnimation()&&e.canBeAnimated(t)?void s.T.overrideAnimatedKeyWithSnap(e,t,n):(e.val(t,n),e.setActual(t,n),void l.d.handleValueChange(e,t))}},{key:"resolveTargetValue",value:function(t,r){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.getTargetCycle(r);if(!i.D.isIntervalTarget(t.targets[r])||1!==s){var u=!t.targetValues[r]&&l.d.isDefined(t.targets[r].initialValue)?t.targets[r].initialValue:void 0,h=i.D.getValueStepsCycles(t,r,t.targets[r],s),v=h[0],y=h[1]||0,g=h[2]||0,p=h[3],m=h[4]||1,b=t.targetValues[r]||n.g.emptyValue();t.targetValues[r]=b;var T=l.d.isDefined(p)?p:l.d.isDefined(t.targets[r].easing)?t.targets[r].easing:void 0;if(i.D.isIntervalTarget(v))e.assignSingleTarget(b,void 0,u,0,2,v.interval,T);else if(i.D.isChildTarget(r,v))t.addChild(v),e.assignSingleTarget(b,v,void 0,0,m,g,T);else if(i.D.isChildrenTarget(r,v))(Array.isArray(v)?v:v?[v]:[]).forEach((function(e){t.addChild(e),n.g.markAddChild(t,n.g.currentTargetName,t.addedChildren[t.addedChildren.length-1].child)})),e.assignSingleTarget(b,v,void 0,0,m,g,T);else if(i.D.isChildObjectTarget(r,t.targets[r])){var w=new o.c(r,t.targets[r]);t.addChild(w);var k=Object.fromEntries(Object.entries(v).filter((function(e){var t=d(e,1)[0];return!a.u.excludedTargetKeys.has(t)})));e.assignSingleTarget(b,k,void 0,0,m,g,T)}else if("object"===f(v)&&!0===v.asChild){var S=new o.c(r,v);t.addChild(S),e.assignSingleTarget(b,v,void 0,0,m,g,T)}else if(i.D.isFetchTarget(r,v))e.assignSingleTarget(b,v,void 0,0,m,g,T),(0,c.qI)().fetch(t,v);else if(i.D.isFetchImageTarget(r,v))e.assignSingleTarget(b,v,void 0,0,m,g,T),(0,c.qI)().fetchImage(t,v);else if(i.D.isListTarget(v))e.assignListTarget(t,r,b,v.list,v.list[0],y,g,T,m);else{var M,D;y>0&&!l.d.areEqual(t.val(r),v,null!==(M=null===(D=t.targets[r])||void 0===D?void 0:D.deepEquality)&&void 0!==M&&M)&&t.resetTargetStep(r),e.assignSingleTarget(b,v,u,y,m,g,T)}}}}],(r=null)&&p(t.prototype,r),h&&p(t,h),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,h}()},347:function(e,t,r){r.d(t,{D:function(){return d}});var n=r(956),i=r(432),a=r(129),o=r(528),l=r(736);function s(e){return s="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},s(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function c(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}var d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,c=[{key:"isPlainObject",value:function(e){return!!e&&"object"===s(e)&&!Array.isArray(e)&&e.constructor===Object}},{key:"hasLifecycle",value:function(e){for(var t in e)if("function"==typeof e[t]&&i.u.isLifeCycleMethod(t))return!0;return!1}},{key:"hasTargetSuffix",value:function(e){return/\${1,2}$/.test(e)||e.startsWith("_")}},{key:"isTargetKey",value:function(e){return e=n.g.getTargetName(e),i.u.reservedKeywordSet.has(e)}},{key:"scoreChild",value:function(t){var r=0,n=0;for(var a in t){var o=t[a];if(!i.u.defaultTargetStyles[a]&&!i.u.excludedTargetKeys.has(a)&&"active"!==a){if(e.hasTargetSuffix(a))return!0;if(this.hasLifecycle(o))return!0;e.isTargetKey(a)?r++:i.u.activationKeywordSet.has(a)||"function"==typeof t[a]||n++}}return r-n>=1}},{key:"classifyEntry",value:function(t,r){return e.isPlainObject(r)?e.isTargetKey(t)?"target2":"originalTModel"===t?"target3":r instanceof o.c?"children":e.isListTarget(r)||e.isFetchTarget(t,r)||e.isFetchImageTarget(t,r)?"target4":this.hasLifecycle(r)?"target5":this.scoreChild(r)?"children":"target6":"target1"}},{key:"isTargetSpecObject",value:function(e){return!(!e||"object"!==s(e)||Array.isArray(e)||Object.getPrototypeOf(e)!==Object.prototype)&&(Object.prototype.hasOwnProperty.call(e,"value")||Object.prototype.hasOwnProperty.call(e,"steps")||Object.prototype.hasOwnProperty.call(e,"interval")||Object.prototype.hasOwnProperty.call(e,"easing")||Object.prototype.hasOwnProperty.call(e,"cycles"))}},{key:"isChildrenTarget",value:function(e,t){return("children"===n.g.getTargetName(e)||"addChildren"===n.g.getTargetName(e))&&"object"===s(t)}},{key:"isChildTarget",value:function(e,t){return"child"===n.g.getTargetName(e)&&"object"===s(t)}},{key:"isChildObjectTarget",value:function(t,r){return"children"===e.classifyEntry(t,r)}},{key:"isListTarget",value:function(e){return"object"===s(e)&&null!==e&&Array.isArray(e.list)}},{key:"isFetchTarget",value:function(e,t){return!("fetch"!==n.g.getTargetName(e)||"string"!=typeof t&&!Array.isArray(t)&&(!t||"object"!==s(t)||"string"!=typeof t.url))}},{key:"isFetchImageTarget",value:function(e,t){return"fetchImage"===n.g.getTargetName(e)&&t&&("string"==typeof t||Array.isArray(t))}},{key:"isObjectTarget",value:function(t,r){return"style"!==n.g.getTargetName(t)&&"object"===s(r)&&null!==r&&!Array.isArray(r)&&Object.getPrototypeOf(r)===Object.prototype&&!e.isTargetSpecObject(r)}},{key:"isIntervalTarget",value:function(e){return!(!e||"object"!==s(e))&&(!(!e.isInterval||!a.d.isDefined(e.interval))||a.d.isDefined(e.interval)&&!a.d.isDefined(e.loop)&&!a.d.isDefined(e.steps)&&!a.d.isDefined(e.cycles))}},{key:"isPrimitiveArray",value:function(e){return!!Array.isArray(e)&&e.every((function(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e}))}},{key:"isValueStepsCycleArray",value:function(t){if(!Array.isArray(t)||0===t.length||t.length>5)return!1;if("number"!=typeof t[0]&&"string"!=typeof t[0]&&!e.isListTarget(t[0]))return!1;if(t.length>=2&&"number"!=typeof t[1])return!1;if(t.length>=3&&"number"!=typeof t[2])return!1;if(t.length>=4){var r=t[3],n="number"==typeof r,i="string"==typeof r&&l.G.easeMap.has(r);if(!n&&!i)return!1}if(5===t.length){var a=t[3],o=t[4];if("string"!=typeof a||!l.G.easeMap.has(a))return!1;if("number"!=typeof o)return!1}return e.isListTarget(t[0])||t.length>=2}},{key:"getValueStepsCycles",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.targets[r],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.getTargetCycle(r),o=n&&n.valueOnly,l=t.val(r),u=null,c=0,d=0,h=void 0,f=1,v=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return"function"==typeof e?e.call.apply(e,[t].concat(n)):e};return function n(y){if(Array.isArray(y))return g=y,o||!e.isValueStepsCycleArray(g)?[g,c,d,h,f]:(u=g[0],c=g.length>=2?g[1]:c,d=g.length>=3?g[2]:d,g.length>=4&&("string"==typeof g[3]?(h=g[3],f=g.length>=5?g[4]:f):f=g[3]),[u,c,d,h,f]);var g;if("object"===s(y)&&null!==y&&Object.getPrototypeOf(y)===Object.prototype){var p=a.d.runTargetValue(t,y,r,i,l);return e.isPrimitiveArray(p)&&(a.d.isDefined(y.steps)||a.d.isDefined(y.interval)||a.d.isDefined(y.easing)||a.d.isDefined(y.cycles))?(u={list:p},c=a.d.isDefined(y.steps)?v(y.steps,i):0,d=a.d.isDefined(y.interval)?v(y.interval,i):8,h=a.d.isDefined(y.easing)?v(y.easing,i):h,f=a.d.isDefined(y.cycles)?v(y.cycles,i,t.getTargetCycles(r)):1,[u,c,d,h,f]):"object"===s(p)&&a.d.isDefined(p.value)&&a.d.isDefined(p.steps)?n(p):(u=p,c=a.d.isDefined(y.steps)?v(y.steps,i):0,d=a.d.isDefined(y.interval)?v(y.interval,i):0,h=a.d.isDefined(y.easing)?v(y.easing,i):h,f=a.d.isDefined(y.cycles)?v(y.cycles,i,t.getTargetCycles(r)):1,Array.isArray(u)?n(u):[u,c,d,h,f])}return"function"==typeof y?n(y.call(t,i,l)):[y,c,d,h,f]}(n)}}],(r=null)&&u(t.prototype,r),c&&u(t,c),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,c}()},956:function(e,t,r){r.d(t,{g:function(){return f}});var n=r(142),i=r(129),a=r(432);function o(e){return o="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},o(e)}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(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 s(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=u(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,o=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(l)throw a}}}}function u(e,t){if(e){if("string"==typeof e)return c(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function h(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,u=[{key:"emptyValue",value:function(){return{value:void 0,actual:void 0,step:0,steps:0,cycle:0,valuePointer:0,cycles:1,interval:0,initialValue:void 0,scheduleTimeStamp:void 0,lastUpdate:0,updateCount:0,completeCount:0,completeTime:0,executionCount:0,status:"",executionFlag:!1,isImperative:!1,originalTargetName:void 0,easing:void 0,creationTime:i.d.now()}}},{key:"getTargetName",value:function(e){if(e){for(var t=e.startsWith("_")?1:0,r=e.length;r>t&&"$"===e[r-1];)r--;return"+"===e[r-1]&&r--,e.slice(t,r)}}},{key:"bindTarget",value:function(t,r,i,o,l){var s=t.targets[r],u=void 0!==i?t.getLastUpdate(i):void 0,c=function(){return void 0!==i?t.getLastUpdate(i):void 0},d=function(){var e=c();return(void 0!==u||void 0!==e)&&(void 0===u&&void 0!==e||e!==u)};s.originalTargetName=e.currentTargetName,s.originalTModel=e.currentTModel;var h=r.startsWith("_")?r.slice(1):r,f=!(!o||!o.endsWith("$"));if(!s.activateNextTarget){var v;if(f)v=o;else for(var y=t.originalTargetNames,g=l+1;g<y.length;g++){var p=y[g];if(p.endsWith("$$")){v=p;break}}v&&(s.activateNextTarget=v)}Object.keys(s).forEach((function(o){var l=s[o];if("value"===o||"function"==typeof l&&a.u.isLifeCycleMethod(o)){if(l.__isBoundTargetMethod)return;var f=function(){var s;a.u.lifecycleCoreSet.has(o)||(e.currentTargetName=r,e.currentTModel=t),this.key=h,this.value=this.val(h),this.prevTargetValue=function(){if(i)return(0,n.qI)().isLoading(t,i)?(0,n.qI)().getLoadingItemValue(t,i,r):t.targetValues[i]?t.targetValues[i].actual:t.val(i)}(),this.isPrevTargetUpdated=d;var f="function"==typeof l?l.apply(this,arguments):l;return u=null!==(s=c())&&void 0!==s?s:u,f};f.__isBoundTargetMethod=!0,s[o]=f}}))}},{key:"shouldActivateNextTarget",value:function(t,r){var i,a,o,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!(l>4)&&t){var c="update"===(arguments.length>5&&void 0!==arguments[5]?arguments[5]:"complete"),d=!c;if(t.isTargetImperative(r)){var h=t.targetValues[r],f=h.originalTModel,v=h.originalTargetName;return e.shouldActivateNextTarget(f,v,l+1,s,!0,"update"),void(d&&(e.cleanupTarget(t,r),e.isTargetFullyCompleted(t,r)&&e.shouldActivateNextTarget(f,v,l+1,s,!0,"complete")))}var y=t.targets[r],g=t.targetValues[r];if(y&&g){var p=y.activateNextTarget,m=null!==(i=null==p?void 0:p.endsWith("$$"))&&void 0!==i&&i,b=y.fetchAction;if(!c||!m){var T=!1,w=!1;if(p){if(m){var k,S,M=null!==(k=null===(S=t.targetValues[p])||void 0===S?void 0:S.triggeredByCompleteCount)&&void 0!==k?k:0;g.completeCount>M&&(w=!0)}else{var D,E=null!==(D=g.nextTargetUpdateCount)&&void 0!==D?D:0;w=g.updateCount>E}if(!m&&0===s&&(w||u)||m&&w){var C=!!m&&e.arePreviousTargetsComplete(t,p);if(b)if(m)!0===C?(e.activateTargetOnce(t,p),T=!0,e.clearPendingTargets(t,r),t.targetValues[p].triggeredByCompleteCount=g.completeCount):e.markPendingTargets(t,r);else for(;(0,n.qI)().isNextLoadingItemSuccessful(t,r);)t.activatedTargets.indexOf(p)>=0?t.activatedTargets.push(p):e.activateTarget(t,p),(0,n.qI)().nextActiveItem(t,r),T=!0;else m?!0===C?(t.removeFromActiveTargets(p),e.activateTarget(t,p),T=!0,e.clearPendingTargets(t,r),t.targetValues[p].triggeredByCompleteCount=g.completeCount):e.markPendingTargets(t,r):m||(t.activatedTargets.indexOf(p)>=0&&!t.isTargetUpdating(r)?t.activatedTargets.push(p):(e.activateTarget(t,p),T=!0))}else d&&t.isTargetDone(p)&&e.cleanupTarget(t,p)}T&&(m||(g.nextTargetUpdateCount=g.updateCount));var _=p&&null!==(a=null===(o=t.targetValues[p])||void 0===o?void 0:o.completeCount)&&void 0!==a?a:0,x=!!m&&g.completeCount<=_;if(!T&&d)if(p&&x&&!b)e.shouldActivateNextTarget(t,p,l,s+1,u,"complete");else if(!p){var L=y.originalTModel,O=y.originalTargetName;L&&O&&e.shouldActivateNextTarget(L,O,l+1,s,u,"complete")}d&&e.cleanupTarget(t,r)}}}}},{key:"markPendingTargets",value:function(e,t){(e.pendingTargets||(e.pendingTargets=new Set)).add(t)}},{key:"clearPendingTargets",value:function(e,t){var r=e.pendingTargets;r&&(r.delete(t),0===r.size&&(e.pendingTargets=void 0))}},{key:"cleanupTarget",value:function(t,r){if(!t.isTargetComplete(r)&&e.isTargetFullyCompleted(t,r)){t.setTargetComplete(r);var i=t.targets[r];if("function"==typeof(null==i?void 0:i.onComplete)&&(i.onComplete.call(t),t.setTargetMethodName(r,"onComplete")),(null==i?void 0:i.fetchAction)&&(0,n.qI)().isLoadingComplete(t,r)){var a=t.fetchActionTargetList.indexOf(r);a>=0&&t.fetchActionTargetList.splice(a,1),i.fetchAction=!1}e.bubbleInvokerCompletion(t,r)}}},{key:"bubbleInvokerCompletion",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Set,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(t&&r){var o="".concat(t.oid,":").concat(r);if(!(n.has(o)||a>4)){n.add(o);var l=t.targetValues[r];if(l){var s,u,c=function(t,r){if(t&&r){var o="".concat(t.oid,":").concat(r);i.has(o)||(i.add(o),e.cleanupTarget(t,r)),e.bubbleInvokerCompletion(t,r,n,i,a+1)}};c(l.originalTModel,l.originalTargetName),t.isTargetImperative(r)||(c(l.invokerTModel,l.invokerTargetName),c(null===(s=t.targets[r])||void 0===s?void 0:s.originalTModel,null===(u=t.targets[r])||void 0===u?void 0:u.originalTargetName))}}}}},{key:"activateTargetOnce",value:function(t,r){var n,i,a=(n=t.targetValues)[r]||(n[r]=e.emptyValue()),o=null!==(i=a.activationTime)&&void 0!==i?i:0;if(o>0&&o>=t.getLastUpdate(r))return!1;a.activationTime=t.getLastUpdate(r)+.001,t.activateTarget(r)}},{key:"activateTarget",value:function(e,t){e.activateTarget(t)}},{key:"isTModelComplete",value:function(t){var r,i,a,o,l;if(!t)return!1;var s=t.state();return!(null!==(r=s.updatingTargetList)&&void 0!==r&&r.length)&&!(null!==(i=s.activeTargetList)&&void 0!==i&&i.length)&&!(null!==(a=s.activatedTargets)&&void 0!==a&&a.length)&&!t.hasAnimatingTargets()&&e.isFetchingComplete(t)&&!t.hasAnimatingChildren()&&!t.hasUpdatingChildren()&&!t.hasActiveChildren()&&!(null!==(o=s.lastChildrenUpdate)&&void 0!==o&&null!==(o=o.deletions)&&void 0!==o&&o.length)&&!(null!==(l=s.lastChildrenUpdate)&&void 0!==l&&null!==(l=l.additions)&&void 0!==l&&l.length)&&!t.pausedBatch&&!(0,n.EI)().needsReattach(t)}},{key:"isFetchingComplete",value:function(e){var t=e.state().fetchActionTargetList;if(!t)return!0;var r,i=s(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(!(0,n.qI)().isLoadingSuccessful(e,a))return!1}}catch(e){i.e(e)}finally{i.f()}return!0}},{key:"isTargetFullyCompleted",value:function(t,r){var n=!t.isTargetUpdating(r)&&!0===t.isTargetCompleteDeep(r);return n&&!t.isTargetImperative(r)&&(n=!t.hasUpdatingImperativeTargets(r)),n&&r.endsWith("$$")&&(n=!0===e.arePreviousTargetsComplete(t,r)),n}},{key:"arePreviousTargetsComplete",value:function(t,r){for(var n=t.functionTargetNames.findIndex((function(e){return r===e}))-1;n>=0;n--){var i=t.functionTargetNames[n];if(!t.isTargetImperative(i)){if(t.activatedTargets.indexOf(i)>=0)return"activated targets";if(t.hasUpdatingImperativeTargets(i))return t.oid+"."+i+": "+t.getUpdatingImperativeTargets(i);if(!0!==t.isTargetCompleteDeep(i)){var a,o,s=l(null!==(a=null===(o=t.activeChildrenMap)||void 0===o?void 0:o.values())&&void 0!==a?a:[]);return t.oid+"."+i+" ==> "+t.getTargetStatus(i)+", "+t.isTargetCompleteDeep(i)+":: "+s.map((function(e){return e.oid+":"+e.hasAnyUpdates()}))+", "+l(e.getUpdatingChildren(t,i).keys())}}}return!0}},{key:"isTargetCompleteDeep",value:function(t,r){var i=t.targets[r];if(i){var l,s,u,c=o(i.value);if(a.u.controlTargetMap[r])return!0;if(!i.fetchAction&&("string"===c||"number"===c||"boolean"===c))return!0;if((0,n.EI)().needsReattach(t))return"needs Reattach";if(t.canHaveDom()&&!t.hasDom())return"no dom";if(!t.isTargetComplete(r)&&!t.isTargetDone(r))return"not done";if((null===(l=i.childAction)||void 0===l?void 0:l.length)>0&&e.getUpdatingChildren(t,r).size>0)return"updating children";if((null===(s=i.childAction)||void 0===s?void 0:s.length)>0&&e.getActiveChildren(t).size>0)return"active children";if((null===(u=i.childAction)||void 0===u?void 0:u.length)>0&&!0!==e.areTargetChildrenComplete(i.childAction))return"incomplete children";if(i.fetchAction&&!(0,n.qI)().isLoadingSuccessful(t,r))return"incomplete loading"}return!0}},{key:"areTargetChildrenComplete",value:function(t){if(!t)return!0;var r,i=s(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a.isVisible()||!a.visibilityStatus){if(n.qw.tmodelIdMap[a.oid]&&!e.isTModelComplete(a))return!1;if(a.hasChildren()&&!e.areTargetChildrenComplete(a.getChildren()))return!1}}}catch(e){i.e(e)}finally{i.f()}return!0}},{key:"getUpdatingChildren",value:function(e,t){var r,n,i,a,o=new Map;return[].concat(l(null!==(r=null===(n=e.updatingChildrenMap)||void 0===n?void 0:n.values())&&void 0!==r?r:[]),l(null!==(i=null===(a=e.animatingChildrenMap)||void 0===a?void 0:a.values())&&void 0!==i?i:[])).filter((function(e){return e.isVisible()||!e.visibilityStatus})).forEach((function(e){var r,n,i=s([].concat(l(null!==(r=e.updatingTargetList)&&void 0!==r?r:[]),l(e.animatingMap?l(e.animatingMap.keys()):[])));try{for(i.s();!(n=i.n()).done;){var a,u,c=n.value;if(null===(a=e.targetValues[c])||void 0===a||!a.snapAnimation)if(e.isTargetImperative(c)){var d,h=null===(d=e.targetValues[c])||void 0===d?void 0:d.originalTargetName;if(h===t)o.set(e.oid,e);else if(h){var f,v;(null===(v=(null===(f=e.targetValues[c])||void 0===f?void 0:f.originalTModel).targets[h])||void 0===v?void 0:v.originalTargetName)===t&&o.set(e.oid,e)}}else(null===(u=e.targets[c])||void 0===u?void 0:u.invokerTargetName)===t&&o.set(e.oid,e)}}catch(e){i.e(e)}finally{i.f()}})),o}},{key:"getActiveChildren",value:function(e){var t,r,n=new Map;return l(null!==(t=null===(r=e.activeChildrenMap)||void 0===r?void 0:r.values())&&void 0!==t?t:[]).filter((function(e){return e.isVisible()||!e.visibilityStatus})).forEach((function(e){e.activeTargetList.length&&n.set(e.oid,e)})),n}},{key:"activateSingleTarget",value:function(e,t){e.targets[t]&&e.canTargetBeActivated(t)&&(e.isTargetEnabled(t)?e.activateTarget(t):e.addToActiveTargets(t))}},{key:"markChildAction",value:function(e,t,r){var n=e.targets[t];"object"===o(n)&&(n.childAction?n.childAction.includes(r)||n.childAction.push(r):n.childAction=[r])}},{key:"markAddChild",value:function(e,t,r){var n=e.targets[t];"object"===o(n)&&(n.addChildAction?n.addChildAction.includes(r)||n.addChildAction.push(r):n.addChildAction=[r])}},{key:"markFetchAction",value:function(t){if(t){var r=e.currentTargetName,n=t.targets[r];"object"===o(n)&&(n.fetchAction=!0,t.fetchActionTargetList.includes(r)||t.fetchActionTargetList.push(r))}}},{key:"wrapTarget",value:function(t,r,n){return a.u.controlTargetMap[n]||(t.targets[n]={value:r,originalTargetName:e.currentTargetName,originalTModel:e.currentTModel},r=t.targets[n]),r}},{key:"resetBeforeDeletion",value:function(e){var t;e.updatingTargetList.length=0,e.activeTargetList.length=0,null===(t=e.animatingMap)||void 0===t||t.clear(),e.clearUpdatingChildren(),e.clearActiveChildren(),e.clearAnimatingChildren(),(0,n.zw)().domIslandSet.delete(e),delete n.qw.tmodelIdMap[e.oid]}},{key:"getOriginalNames",value:function(e,t){var r,n,i,a,o,l;return e.isTargetImperative(t)?(r=null===(i=e.targetValues[t])||void 0===i?void 0:i.originalTModel,n=null===(a=e.targetValues[t])||void 0===a?void 0:a.originalTargetName):(r=null===(o=e.targets[t])||void 0===o?void 0:o.originalTModel,n=null===(l=e.targets[t])||void 0===l?void 0:l.originalTargetName),{originalTModel:r,originalTargetName:n}}},{key:"resetTargetPipelineState",value:function(t,r){var n,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set;if(t&&r){var o=t.targets[r];e.resetSingleTargetState(t,r),null!==(n=o.childAction)&&void 0!==n&&n.length&&(o.childAction.forEach((function(t){t&&e.resetTargetChildState(t,a)})),o.childAction=[]),null!==(i=o.addChildAction)&&void 0!==i&&i.length&&(o.addChildAction.forEach((function(t){t&&e.resetTargetChildState(t,a)})),o.addChildAction=[]);var l=null==o?void 0:o.activateNextTarget;if(l){var s=t.targets[l];s&&(l.endsWith("$")||!1!==s.active)&&e.resetTargetPipelineState(t,l,a)}}}},{key:"resetTargetChildState",value:function(t,r){var n="".concat(t.oid);if(!r.has(n)){r.add(n);for(var i=Object.keys(t.targetValues),a=0;a<i.length;a++){var o,l,s=i[a],u=t.targets[s];e.resetSingleTargetState(t,s),null!=u&&null!==(o=u.childAction)&&void 0!==o&&o.length&&(u.childAction.forEach((function(t){t&&e.resetTargetChildState(t,r)})),u.childAction=[]),null!=u&&null!==(l=u.addChildAction)&&void 0!==l&&l.length&&(u.addChildAction.forEach((function(t){t&&e.resetTargetChildState(t,r)})),u.addChildAction=[])}}}},{key:"resetSingleTargetState",value:function(t,r){var n=t.targetValues[r];n&&(n.completeCount=0,n.triggeredByCompleteCount=0,n.resetFlag=!0,n.nextTargetUpdateCount=0,n.status="complete"),t.cancelAnimation(),t.activatedTargets.length=0,t.removeFromActiveTargets(r),t.removeFromAnimatingMap(r),t.removeFromUpdatingTargets(r),e.clearPendingTargets(t,r)}}],(r=null)&&d(t.prototype,r),u&&d(t,u),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,u}()},675:function(e,t,r){r.d(t,{L:function(){return l}});var n=r(144);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 a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}var l=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.xNext=0,this.xNorth=0,this.xWest=0,this.xEast=0,this.xSouth=0,this.scrollLeft=0,this.scrollTop=0,this.absX=0,this.absY=0,this.xOverflowReset=0,this.xOverflowLimit=0,this.yNext=0,this.yNorth=0,this.yWest=0,this.yEast=0,this.ySouth=0,this.container=void 0,this.time=0},(t=[{key:"setCurrentChild",value:function(e){this.currentChild=e}},{key:"setLocation",value:function(){var e=this.currentChild;e.targets.excludeXYCalc||(e.x=this.xNext+e.getLeftMargin(),e.y=this.yNext+e.getTopMargin())}},{key:"isOverflow",value:function(){return"BI"!==this.currentChild.type&&(!("always"!==this.container.getContainerOverflowMode()&&"always"!==this.currentChild.getItemOverflowMode()&&("auto"!==this.container.getContainerOverflowMode()||"auto"!==this.currentChild.getItemOverflowMode()||this.currentChild.useContentWidth()||!this.checkChildOverflow()))||void 0)}},{key:"checkChildOverflow",value:function(){var e=this.currentChild.getMinWidth();return this.currentChild.x+e+this.currentChild.getLeftMargin()>this.xOverflowLimit}},{key:"overflow",value:function(){this.xNext=this.scrollLeft-this.xOverflowReset,this.yNext=Math.max(this.currentChild.getRealParent().viewport.ySouth,this.ySouth)}},{key:"appendNewLine",value:function(){var e=this.currentChild,t=e.getMeasuringScale(),r=e.getHeight()*t+this.currentChild.getTopMargin()+this.currentChild.getBottomMargin();this.xNext=this.scrollLeft-this.xOverflowReset;var n=this.yNext+r+e.val("appendNewLine");this.yEast=this.yNext,this.xSouth=this.xNext,this.ySouth=Math.max(this.ySouth,n),this.yEast=this.ySouth,this.yNext=this.ySouth,e.getRealParent().viewport.xEast=Math.max(e.getRealParent().viewport.xEast,this.xEast),e.getRealParent().viewport.ySouth=Math.max(e.getRealParent().viewport.ySouth,this.ySouth)}},{key:"computeBoundary",value:function(e,t){var r,n,i,a,o,l,s=e.getMeasuringScale(),u=e.getBaseWidth()*s,c=e.getBaseHeight()*s;return"layout"===t?(r=e.x,n=e.y,i=r-e.getLeftMargin(),a=r+u+e.getRightMargin(),o=n-e.getTopMargin(),l=n+c+e.getBottomMargin()):"absolute"===t?(r=e.absX-this.absX,n=e.absY-this.absY,i=r,a=r+u+e.getRightMargin(),o=n,l=n+c+e.getBottomMargin()):(i=r=e.getX(),a=r+u,o=n=e.getY(),l=n+c),{left:i,top:o,right:a,bottom:l}}},{key:"nextLocation",value:function(){var e=this.currentChild,t=e.getMeasuringScale(),r=e.getTopBaseHeight()*t,i=e.getHeight()*t+this.currentChild.getTopMargin()+this.currentChild.getBottomMargin(),a="always"===e.getItemOverflowMode()&&n.a.isWidthDefined(this.container)?this.container.getWidth():e.getBaseWidth()*t+this.currentChild.getLeftMargin()+this.currentChild.getRightMargin();if("BI"!==e.type&&"BI"===this.container.type){var o=this.computeBoundary(e,"layout"),l=this.computeBoundary(e,"animated");i=Math.max(i,o.bottom-l.top,l.bottom-o.top,o.bottom-o.top,l.bottom-l.top),a=Math.max(a,o.right-l.left,l.right-o.left,o.right-o.left,l.right-l.left)}var s=this.yNext+i;if(this.xNext+=a,e.isDomIsland()&&e.hasDom()){var u=this.computeBoundary(e,"absolute");s=u.bottom,this.xNext=u.right,this.xWest=u.left,this.yWest=u.top}this.yNext+=r,this.xSouth=this.xNext,this.yEast=this.yNext,this.xEast=Math.max(this.xNext,this.xEast),this.ySouth=Math.max(s,this.ySouth),e.getRealParent().viewport.xEast=Math.max(e.getRealParent().viewport.xEast,this.xEast),e.getRealParent().viewport.ySouth=Math.max(e.getRealParent().viewport.ySouth,this.ySouth)}}])&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.d=function(e,t){for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{$Dom:function(){return $Dom.J},AnimationManager:function(){return AnimationManager._},AnimationUtil:function(){return AnimationUtil.T},App:function(){return App.qw},Bracket:function(){return Bracket.d},BracketGenerator:function(){return BracketGenerator.M},ColorUtil:function(){return ColorUtil.I},DomInit:function(){return DomInit.v},Easing:function(){return Easing.G},Moves:function(){return Moves},SearchUtil:function(){return SearchUtil.X},TModel:function(){return TModel.c},TModelUtil:function(){return TModelUtil.a},TUtil:function(){return TUtil.d},TargetData:function(){return TargetData.u},TargetExecutor:function(){return TargetExecutor.j},TargetParser:function(){return TargetParser.D},TargetUtil:function(){return TargetUtil.g},fetch:function(){return App.hd},fetchImage:function(){return App.aK},getAnimationManager:function(){return App.s},getDomTModelById:function(){return App.UR},getEvents:function(){return App.kQ},getLoader:function(){return App.qI},getLocationManager:function(){return App.zw},getManager:function(){return App.EI},getPager:function(){return App.cI},getResizeLastUpdate:function(){return App.S9},getRunScheduler:function(){return App.fB},getScreenHeight:function(){return App.c$},getScreenWidth:function(){return App.r5},getTModelById:function(){return App.iP},getTargetManager:function(){return App.HJ},getVisibles:function(){return App.U$},isRunning:function(){return App.W_},tApp:function(){return App.E_},tRoot:function(){return App.Bt}});var App=__webpack_require__(142),TModel=__webpack_require__(528),TUtil=__webpack_require__(129);function _typeof(e){return _typeof="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},_typeof(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Moves=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"bounce",value:function(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.yStart,i=void 0===n?void 0:n,a=r.xStart,o=void 0===a?(0,App.r5)()/2:a,l=r.widthStart,s=void 0===l?50:l,u=r.heightStart,c=void 0===u?50:u,d=r.bFactor,h=void 0===d?.6:d,f=r.cFactor,v=void 0===f?.2:f,y=r.rotationStart,g=void 0===y?0:y,p=r.rIncrement,m=void 0===p?360:p,b=Math.max(10,(t-e)*h),T=TUtil.d.isDefined(i)?[i,e]:[e],w=[o],k=[s],S=[c],M=[g];Math.abs(0|b)>1;){T.push(t),T.push(t-b);var D=s*(1+v),E=c*(1-v);k.push(D),k.push(s),S.push(E),S.push(c),w.push(o-(D-s)/2),w.push(o),M.push(M[M.length-1]+m),b*=h,m*=.8,v*=h}w.push(o),T.push(t),k.push(s),S.push(c);var C=M[M.length-1]%360;return C>0&&C<360&&M.push(360),{x:{list:w},y:{list:T},width:{list:k},height:{list:S},rotate:{list:M}}}},{key:"bounceSimple",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.from,i=void 0===n?void 0:n,a=r.to,o=void 0===a?void 0:a,l=r.widthStart,s=void 0===l?void 0:l,u=r.heightStart,c=void 0===u?void 0:u,d=r.xStart,h=void 0===d?void 0:d,f=r.yStart,v=void 0===f?void 0:f,y=r.bFactor,g=void 0===y?.5:y,p=r.cFactor,m=void 0===p?.7:p;i=TUtil.d.isDefined(i)?i:t.getY()-70,o=TUtil.d.isDefined(o)?o:t.getY(),s=TUtil.d.isDefined(s)?s:t.getWidth(),c=TUtil.d.isDefined(c)?c:t.getHeight(),v=TUtil.d.isDefined(v)?v:t.getY(),h=TUtil.d.isDefined(h)?h:t.getX();return e.bounce(i,o,{yStart:v,xStart:h,widthStart:s,heightStart:c,bFactor:g,cFactor:m,rIncrement:0})}},{key:"shake",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.getWidth(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.getHeight(),i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=i.bFactor,o=void 0===a?.6:a,l=i.cFactor,s=void 0===l?.3:l,u=i.strength,c=void 0===u?20:u,d=(t.getParentValue("width")-r)/2,h=t.getY(),f=r,v=n,y=e.bounce(h-c,h,{xStart:d,widthStart:f,heightStart:v,bFactor:o,cFactor:s});return{x:y.x,width:y.width}}},{key:"spiral",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.startAngle,r=void 0===t?0:t,n=e.endAngle,i=void 0===n?360:n,a=e.angleStep,o=void 0===a?18:a,l=e.x,s=void 0===l?0:l,u=e.y,c=void 0===u?0:u,d=e.width,h=void 0===d?100:d,f=e.height,v=void 0===f?100:f,y=[],g=[],p=[],m=r;m<=i;m+=o){var b=m*(Math.PI/180);y.push(Math.floor(s+h*Math.cos(b))),g.push(Math.floor(c+v*Math.sin(b))),p.push(90+m)}return{x:{list:y},y:{list:g},rotate:{list:p}}}}])}();_defineProperty(Moves,"shakeMap",{});var SearchUtil=__webpack_require__(745),TargetData=__webpack_require__(432),TargetUtil=__webpack_require__(956),TargetParser=__webpack_require__(347),TModelUtil=__webpack_require__(144),DomInit=__webpack_require__(728),$Dom=__webpack_require__(185),Bracket=__webpack_require__(901),BracketGenerator=__webpack_require__(780),ColorUtil=__webpack_require__(210),Easing=__webpack_require__(736),TargetExecutor=__webpack_require__(985),AnimationManager=__webpack_require__(580),AnimationUtil=__webpack_require__(515);window.TargetJS=__webpack_exports__})();
|