@aurigma/ui-framework
Version:
A platform which allows building print product personalization editors based on Aurigma's Customer's Canvas.
66 lines (64 loc) • 1.66 MB
JavaScript
!function(e){function t(t){for(var n,i,o=t[0],a=t[1],s=0,l=[];s<o.length;s++)i=o[s],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&l.push(r[i][0]),r[i]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(u&&u(t);l.length;)l.shift()()}var n={},r={52:0};function i(e){return a.p+"dynamic."+({0:"vendors~au-widget-canvas~au-widget-datasheet~au-widget-design-editor",1:"au-option-filtered-list-group~au-option-filtered-single-list",2:"au-widget-3d-viewer~au-widget-mockup-3d-viewer",3:"au-widget-image-carousel~au-widget-slider",4:"vendors~au-widget-pim-ajax~au-widget-pim-design-selector",5:"au-option-checkbox-group",6:"au-option-filtered-list-group",7:"au-option-filtered-single-list",8:"au-option-image-list",9:"au-option-image-list-compact",10:"au-option-radio-group",11:"au-option-radio-group-compact",12:"au-option-text",13:"au-widget-3d-viewer",14:"au-widget-ajax",15:"au-widget-asset-storage-ajax",16:"au-widget-button",17:"au-widget-canvas",18:"au-widget-cart",19:"au-widget-checkbox",20:"au-widget-color-picker",21:"au-widget-color-selector",22:"au-widget-data-driven-editor",23:"au-widget-datasheet",24:"au-widget-design-editor",25:"au-widget-dnd-controller",26:"au-widget-finish-button",27:"au-widget-finish-group",28:"au-widget-function-trigger",29:"au-widget-gallery",30:"au-widget-group",31:"au-widget-help",32:"au-widget-html",33:"au-widget-image-carousel",34:"au-widget-input-text",35:"au-widget-item-list",36:"au-widget-mockup-3d-viewer",37:"au-widget-option",38:"au-widget-order",39:"au-widget-pantone-color-picker",40:"au-widget-pim-ajax",41:"au-widget-pim-design-selector",42:"au-widget-pim-option",43:"au-widget-pim-options",44:"au-widget-preflight",45:"au-widget-preview-mockup-slider",46:"au-widget-slider",47:"au-widget-static-text",48:"au-widget-steps",49:"au-widget-template-editor",50:"au-widget-uploader",51:"au-widget-variant-selector",53:"vendors~au-widget-datasheet",54:"vendors~au-widget-design-editor",55:"vendors~au-widget-mockup-3d-viewer"}[e]||e)+".eitc8cq1ck.js"}if("function"==typeof i){var o=i;i=function(){try{if("function"!=typeof patchAurigmaEditorUrl)throw new Error("WebpackRequireFrom: 'patchAurigmaEditorUrl' is not a function or not available at runtime. See https://github.com/agoldis/webpack-require-from#troubleshooting");var e=patchAurigmaEditorUrl(o.apply(this,arguments));if(!e||"string"!=typeof e)throw new Error("WebpackRequireFrom: 'patchAurigmaEditorUrl' does not return string. See https://github.com/agoldis/webpack-require-from#troubleshooting");return e}catch(t){return console.error(t),o.apply(this,arguments)}}}function a(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var o=new Promise((function(t,i){n=r[e]=[t,i]}));t.push(n[2]=o);var s,l=document.createElement("script");l.charset="utf-8",l.timeout=120,a.nc&&l.setAttribute("nonce",a.nc),l.src=i(e);var c=new Error;s=function(t){l.onerror=l.onload=null,clearTimeout(u);var n=r[e];if(0!==n){if(n){var i=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+i+": "+o+")",c.name="ChunkLoadError",c.type=i,c.request=o,n[1](c)}r[e]=void 0}};var u=setTimeout((function(){s({type:"timeout",target:l})}),12e4);l.onerror=l.onload=s,document.head.appendChild(l)}return Promise.all(t)},a.m=e,a.c=n,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="EDITOR_BASE_PATHimports/es5/",a.oe=function(e){throw console.error(e),e};var s=window.multistep_editor_jsonpFunction=window.multistep_editor_jsonpFunction||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var c=0;c<s.length;c++)t(s[c]);var u=l;a(a.s=296)}([function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"i",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"k",(function(){return h})),n.d(t,"h",(function(){return d})),n.d(t,"j",(function(){return p})),n.d(t,"f",(function(){return f}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function u(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function p(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function f(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}Object.create,Object.create},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(0),i=n(102),o=n(14),a=n(265),s=n(37);function l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function c(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var u=function(){function e(){}return e._appendToHead=function(e){document.getElementsByTagName("head")[0].appendChild(e)},e._attachEventHandlers=function(e,t,n){e.readyState?e.onreadystatechange=function(){"load"!==e.readyState&&"loaded"!==e.readyState&&"complete"!==e.readyState||"function"==typeof t&&(e.onreadystatechange=null,t())}:(e.onload=function(){"function"==typeof t&&t()},e.onerror=function(){"function"==typeof n&&n(arguments)})},e.initWebComponentsReadyPromise=function(){var e=window;return e.webComponentsReadyPromise||(e.webComponentsReadyPromise=new Promise((function(t){return e.WebComponents?setTimeout((function(){t(!0)})):document.addEventListener("WebComponentsReady",(function(){t(!0)}))}))),e.webComponentsReadyPromise},e.loadScript=function(e,t,n,r){var i;e.toLowerCase().endsWith("au.editor.js")&&(null===(i=window.Aurigma)||void 0===i?void 0:i.UIFramework)&&n();var o=document.createElement("script");o.id=t,o.type="text/javascript",this._attachEventHandlers(o,n,r),this._appendToHead(o),o.src=e},e.loadScriptAsync=function(t,n){return l(this,void 0,void 0,(function(){return c(this,(function(r){switch(r.label){case 0:return[4,new Promise((function(r,i){e.loadScript(t,n,r,i)}))];case 1:return[2,r.sent()]}}))}))},e.loadLink=function(e,t,n,r,i){var o=document.createElement("link");o.type=t||"",o.rel=n,this._attachEventHandlers(o,r,i),this._appendToHead(o),o.href=e},e.loadLinkAsync=function(t,n,r){return l(this,void 0,void 0,(function(){return c(this,(function(i){switch(i.label){case 0:return[4,new Promise((function(i,o){e.loadLink(t,n,r,i,o)}))];case 1:return[2,i.sent()]}}))}))},e.loadHtml=function(e,t,n,r){void 0===t&&(t=function(){}),void 0===n&&(n=function(){}),void 0===r&&(r=!0);var i=new XMLHttpRequest;i.onload=function(){var e,i;this.status>=200&&this.status<=300?(r&&(e=this.response,(i=document.createElement("template")).setAttribute("style","display: none;"),i.innerHTML=e,document.head.appendChild(i.content)),t&&t(this.response)):n&&n(this.response)},i.onerror=function(){n&&n()},i.open("get",e,!0),i.send()},e.loadHtmlAsync=function(t,n){return void 0===n&&(n=!0),l(this,void 0,void 0,(function(){return c(this,(function(r){switch(r.label){case 0:return[4,new Promise((function(r,i){e.loadHtml(t,r,i,n)}))];case 1:return[2,r.sent()]}}))}))},e.loadJson=function(e){return new Promise((function(t,n){var r=new XMLHttpRequest;r.onload=function(){200===this.status?t(JSON.parse(this.response)):404!==this.status&&500!==this.status||n(this.response)},r.open("get",e,!0),r.send()}))},e.load=function(e,t,n,r){var i=this.addTimestampToUrl(e);if(/\.js$/gi.test(e))this.loadScript(e,"",t,n);else if(/\.css$|\.scss$|\.less$/gi.test(e))this.loadLink(r?e:i,"text/css","stylesheet",t,n);else{if(!/\.html$|\.htm$/gi.test(e))throw"bad url: "+e;this.loadHtml(r?e:i,t,n)}},e.loadAsync=function(t,n){return l(this,void 0,void 0,(function(){return c(this,(function(r){switch(r.label){case 0:return[4,new Promise((function(r,i){e.load(t,r,i,n)}))];case 1:return[2,r.sent()]}}))}))},e.appendLoadAnimation=function(e,t){try{var n=["display:flex","align-items:center","justify-content:center","width:100%","height:100%","background-color:rgba(255, 255, 255, 0.9)","color: #666666;","position:absolute","z-index:600"];return e.style.position="relative",e.innerHTML='\n <div style="'.concat(n.join(";"),'">\n <au-preloader style="position: relative !important; z-index: 601;" message="').concat(t,'"></au-preloader>\n <div style="').concat(n.join(";"),'">\n <span style="top: 32px;position: relative;">').concat(t,"</span>\n </div>\n </div>"),e.firstElementChild}catch(r){throw"Failed to attach loader element"}},e.toggleLoadAnimation=function(e,t){try{t?(e.removeAttribute("hidden"),e.style.display="flex"):(e.setAttribute("hidden","true"),e.style.display="none")}catch(n){console.warn("Failed to toggle loader element")}},e.concatAndResolveUrl=function(e,t){return e.replace(/\/$/,"")+"/"+t.replace(/^\//,"")},e.addTimestampToUrl=function(e){return e+(-1===e.indexOf("?")?"?":"&")+"t="+Date.now()},e}(),h=u,d=n(46),p=function(){function e(){}var t;return e.DeepMerge=function(t,n){var r=function(e){return e&&"object"==typeof e};return r(t)&&r(n)?(Object.keys(n).forEach((function(i){var o=t[i],a=n[i];Array.isArray(o)&&Array.isArray(a)?t[i]=a:r(o)&&r(a)?t[i]=e.DeepMerge(Object.assign({},o),a):t[i]=a})),t):n},e.propertyEnsure=function(t,n,r){return e.isNullOrUndefined(t[n])?t[n]=r:t[n]},e.valueEnsure=function(t,n){return e.isNullOrUndefined(t)?n:t},e.valueEnsureMerge=function(e,t){var n=this.valueEnsure(e,t);return Object.assign(t,n)},e.isNullOrUndefined=function(t){return e.isNull(t)||e.isUndefined(t)},e.isUndefined=function(t){return e.typeofCheck(t,"undefined")},e.isNotUndefined=function(t){return!e.isUndefined(t)},e.isNull=function(e){return null===e},e.isNotNullOrUndefined=function(t){return!e.isNullOrUndefined(t)},e.isLengthEqual=function(t,n){return e.isNotNullOrUndefined(t)&&e.isNotNullOrUndefined(n)&&t.length===n.length},e.isEmptyStrOrArray=function(t){return!!e.isNullOrUndefined(t)||0===t.length},e.isEmptyString=function(t){return e.isEmptyStrOrArray(t)},e.isEmptyArray=function(t){return e.isEmptyStrOrArray(t)},e.isNotEmptyArray=function(t){return!e.isEmptyArray(t)},e.clone=function(e){return Object.assign({},e)},e.objectDeepValue=function(t,n){if(e.isObject(t)){for(var r=0,i=(n=n.replace(/\[([^\]]+)\]/gi,".$1").split(".")).length;r<i;r++)if(t=t[t instanceof Array?+n[r]:n[r]],e.isUndefined(t))return null;return t}return null},e.isObjectNotEmpty=function(t){return e.isNotNullOrUndefined(t)&&Object.keys(t).length>0},e.isObject=function(e){return!(!e||"object"!=typeof e||e instanceof Array)},e.isString=function(e){return"string"==typeof e},e.arrayDiffByName=function(t,n){return e.arrayDiff(t,n,(function(e,t){return e.name===t.name}),(function(e,t){return JSON.stringify(e)!==JSON.stringify(t)}))},e.arrayDiff=function(t,n,r,i){void 0===r&&(r=function(e,t){return e===t}),void 0===i&&(i=function(e,t){return!1});var o=[],a=[],s=[],l=[],c=[];t.forEach((function(t){var i=n.find((function(e){return r(t,e)}));e.isNotUndefined(i)?s.push(t):a.push(t)})),n.forEach((function(n){var i=t.find((function(e){return r(e,n)}));e.isUndefined(i)&&o.push(n)}));var u=[];return s.forEach((function(t,o){var a;o!==(a=n.indexOf(t))&&-1!==a&&c.push({from:o,to:a,item:t});var s=n.find((function(e){return r(t,e)&&i(t,e)}));e.isNotUndefined(s)&&(u.push(o),l.push(t))})),u.forEach((function(e){s.splice(e,1)})),{added:o,removed:a,updated:l,noChange:s,indexChanged:c}},e.JSONStringifyQuotes=function(e){return JSON.stringify(e).replace(/['"]+/gi,"")},e.objectEquals=function(t,n){return e.JSONStringifyQuotes(t)===e.JSONStringifyQuotes(n)},e.tryParseJson=function(e){try{return JSON.parse(e)}catch(t){return e}},e.typeofCheck=function(e,t){return typeof e===t},e.createTemplateDocument=function(e){var t=document.createElement("template");return t.innerHTML=e,t.content},e.createNodeFromString=function(t){return e.createTemplateDocument(t).firstChild.cloneNode(!0)},e.trimAndLowerString=function(e){return e?e.replace(/\s+/g,"").toLocaleLowerCase():null},e.isFunction=function(e){var t={}.toString.call(e);return e&&("[object Function]"===t||"[object AsyncFunction]"===t)},e.isPromise=function(e){return e&&"[object Promise]"===Object.prototype.toString.call(e)},e.isAsyncFunction=function(e){return!!(e&&e.constructor&&e.constructor.name)&&"AsyncFunction"===e.constructor.name},e.recursiveJob=function(t,n,r,i){void 0===r&&(r=null),0===t.length?i(r):n(t.shift(),r).then((function(r){e.recursiveJob(t,n,r,i)})).catch((function(e){i(null,e)}))},e.recursiveJobPromise=function(t,n){var r=Array.prototype.slice.call(t);return new Promise((function(t,i){e.recursiveJob(r,n,null,(function(e,n){n?i(n):t(e)}))}))},e.functionWrapperConstructor=function(t){var n=this;switch(!0){case Array.isArray(t):return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.recursiveJobPromise(t,(function(e,i){return Promise.resolve(e.apply(n.jsonParamsFetcher.scope,0===t.indexOf(e)?r:[i]))}))};case this.isFunction(t):return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return t.apply(n.jsonParamsFetcher.scope,e)};default:return function(e){return Promise.resolve()}}},e.objectPropertyFind=function(e,t){var n=!1,r=function(e){switch(!0){case Array.isArray(e):for(var i=0;i<e.length&&!n;i++)r(e[i]);break;case e instanceof Object:var o=Object.keys(e);for(i=0;i<o.length&&!n;i++)r(o[i]),r(e[o[i]]);break;default:t(e)&&(n=!0)}};return r(e),n},e.isNum=function(e){return/^\d+$/.test(e)},e.addTimestampToURL=function(t,n){if(void 0===n&&(n=!0),e.isNotNullOrUndefined(t)){var r=new URL(t);if(""!==r.search&&!1===n)return t;var i=""===r.search?"?":"&",o=(new Date).getTime().toString();return t+(i+"t=")+o.slice(0,o.length-4)+"."+o.slice(o.length-4)}},e.findDataInResponse=function(t,n){try{e.isEmptyString(n)&&(n="response");var r=e.tryParseJson(t);return e.typeofCheck(r,"string")?r:new Function("response","return ".concat(n))(r)}catch(i){console.error(i.message,i.stack)}return""},e.guid=function(){var e=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},e.getPatchedUrl=function(e){return window.patchAurigmaEditorUrl("EDITOR_BASE_PATH".concat(e))},e.__setAuWizard=function(t){e.__auWizard=t},e.getWizardElement=function(){return e.__auWizard||document.querySelector("au-wizard")},e.loadJson=function(e){return e.toLowerCase().startsWith("https://")||e.toLowerCase().startsWith("http://")||(e=this.getPatchedUrl(e)),new Promise((function(t,n){var r=new XMLHttpRequest;r.onload=function(){this.status>=200&&this.status<=300?t(JSON.parse(this.response)):n(this.response)},r.onerror=function(){n()},r.open("get",e,!0),r.send()}))},e.cloneFromDriver=function(e){if("object"!=typeof e)return e;if(!e)return e;var t=e instanceof Array?[]:{};for(var n in e)e.hasOwnProperty(n)&&(t[n]=this.cloneFromDriver(e[n]));return t},e.sessionGuid=function(){return this._timestamp.toString()},e.getOrDefault=function(t,n){try{var r=e.jsonParamsFetcher.scope,i=Object.keys(r),o=Object.values(r),a=new Function(i.join(","),"return ".concat(t,";")).apply(r,o);return void 0===a||"undefined"===a?n:a}catch(s){return n}},e.isNullableArray=function(e){return e.every((function(e){return null===e}))},e.isEmptyObject=function(e){return null==e||0===Object.keys(e).length||""===e},e.isSafari=function(){var e=navigator.userAgent.toLowerCase();return e.search(/safari/)>0&&-1===e.search(/chrome/)},e.getBrowser=function(){var e=window,t=e.navigator.userAgent.toLowerCase();switch(!0){case t.indexOf("edge")>-1:return"edge";case t.indexOf("opr")>-1&&!!e.opr:return"opera";case t.indexOf("chrome")>-1&&!!e.chrome:return"chrome";case t.indexOf("trident")>-1:return"ie";case t.indexOf("firefox")>-1:return"firefox";case t.indexOf("safari")>-1:return"safari";default:return"other"}},e.findParent=function(e,t){if(!e)return null;for(var n=e,r=null,i=!0;i;)(r=n.parentNode||n.host)?(t(r)&&(i=!1),n=r):i=!1;return r},e.IsTrue=function(e){return!0===e||"true"===e},e.readFromLocalStorage=function(e){return localStorage.getItem(e)},e.writeToLocalStorage=function(t,n){e.isObject(n)||Array.isArray(n)?localStorage.setItem(t,JSON.stringify(n)):localStorage.setItem(t,n)},e.setTimeoutWrapper=function(e,t,n){return Object(r.b)(this,void 0,void 0,(function(){var i,o;return Object(r.e)(this,(function(r){switch(r.label){case 0:i=function(){return new Promise((function(e){setTimeout((function(){e()}),t)}))},o=0,r.label=1;case 1:return o<n?[4,i()]:[3,4];case 2:r.sent(),r.label=3;case 3:return o++,[3,1];case 4:return[2,e()]}}))}))},e.getDocumentCustomStyles=function(){return function(e,t,n){var i,o;void 0===t&&(t=document.body),void 0===n&&(n=void 0);var a=window.getComputedStyle(t,n),s={};try{for(var l=Object(r.k)(e),c=l.next();!c.done;c=l.next()){var u=c.value,h=a.getPropertyValue(u);h&&(s[u]=h)}}catch(d){i={error:d}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}return s}(function(e){var t,n,i,o,a,s;void 0===e&&(e=document.styleSheets);var l=[];try{for(var c=Object(r.k)(Array.from(e)),u=c.next();!u.done;u=c.next()){var h=u.value;try{try{for(var d=(i=void 0,Object(r.k)(Array.from(h.cssRules))),p=d.next();!p.done;p=d.next()){var f=p.value;try{try{for(var g=(a=void 0,Object(r.k)(Array.from(f.style))),m=g.next();!m.done;m=g.next()){var v=m.value;(v.startsWith("--au")||v.startsWith("--theme"))&&-1===l.indexOf(v)&&l.push(v)}}catch(_){a={error:_}}finally{try{m&&!m.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}}catch(y){}}}catch(b){i={error:b}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}}catch(y){}}}catch(A){t={error:A}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return l}(),document.documentElement)},e.loadHtml=function(e){return Object(r.b)(this,void 0,void 0,(function(){return Object(r.e)(this,(function(t){return[2,new Promise((function(t,n){h.loadHtml(e,(function(e){return t(e)}),(function(e){return n(e)}),!1)}))]}))}))},e.containsAll=function(e,t){var n,o,a=[],s=!0;try{for(var l=Object(r.k)(t),c=l.next();!c.done;c=l.next()){var u=c.value;-1===e.indexOf(u)&&(s=!1,a.push(u))}}catch(h){n={error:h}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}return new i.a(s,a)},e.objectUndefinedFind=function(e,t){var n=[],r=function(e,i){switch(!0){case Array.isArray(e):for(var o=0;o<e.length;o++)r(e[o],e);break;case e instanceof Object:var a=Object.keys(e);for(o=0;o<a.length;o++)r(a[o],e),r(e[a[o]],e);break;default:t(e)&&n.push(e)}};return r(e,null),n},e.undefinedCriterion=function(e){return void 0===e||"undefined"===e||"string"==typeof e&&e.indexOf("undefined")>-1},e.strAndTruncate=function(e){return JSON.stringify(e).replace(/['"]+/gi,"")},e.ensureArray=function(e){return Array.isArray(e)?e:null!=e?[e]:[]},e.ensureStartsWith=function(e,t){return e.startsWith(t)?e:t+e},e.ensureEndsWith=function(e,t){return e.endsWith(t)?e:e+t},e.removeTrailingSlash=function(e){return e.endsWith("/")?e.slice(0,-1):e},e.isNullOrEmptyString=function(e){return null==e||""===e||"string"==typeof e&&""===e.trim()},e.parseJwt=function(e){var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(atob(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(n)},e.deepSearch=function(t,n,r){if(null==t)return null;if(t.hasOwnProperty(n)&&!0===r(n,t[n]))return t;for(var i=Object.keys(t),o=0;o<i.length;o++){var a=t[i[o]];if("object"==typeof a&&null!=a){var s=e.deepSearch(t[i[o]],n,r);if(null!==s)return s}}return null},e.isMobile=function(){return window.innerWidth<769},e.executeTimeout=function(e,t){t.forEach((function(t){return setTimeout(e,t)}))},e.applyMixins=function(e,t){t.forEach((function(t){Object.getOwnPropertyNames(t.prototype).forEach((function(n){"constructor"!==n&&(e.prototype[n]=t.prototype[n])}))}))},e.openFullscreen=function(e){e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()},e.closeFullscreen=function(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},e.getSafeName=function(e){var t="";return t="string"==typeof e?e:e.title||e.name,(t=this.computeValue(t)).replace(/[^a-z0-9]/g,(function(e){var t=e.charCodeAt(0);return 32===t?"-":t>=65&&t<=90?"_"+e.toLowerCase():"__"+("000"+t.toString(16)).slice(-4)}))},e.computeValue=function(e){if(-1!==e.indexOf("{{")&&-1!==e.indexOf("}}")){var t=new o.a,n={value:e,vars:this.jsonParamsFetcher.head};return n[o.a.SCOPE_HEAD_KEY]=this.jsonParamsFetcher.head,t.process(n,this.jsonParamsFetcher.scope).value}return e},e.computeFunction=function(t){return Object(r.b)(this,void 0,void 0,(function(){var n,i,a,s;return Object(r.e)(this,(function(r){switch(r.label){case 0:n=new o.a,i={func:t,vars:this.jsonParamsFetcher.head},a=n.process(i,this.jsonParamsFetcher.scope),s=e.functionWrapperConstructor(a.func),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,s()];case 2:return[2,r.sent()];case 3:return r.sent(),[2,!0];case 4:return[2]}}))}))},e.getNameOrTitle=function(e){return this.computeValue(e.name||e.title)},e.downloadFilesAsZip=function(e){return Object(r.b)(this,void 0,void 0,(function(){var t,n,i;return Object(r.e)(this,(function(o){switch(o.label){case 0:return t=new a,n=function(e){return Object(r.b)(this,void 0,void 0,(function(){var n,i,o,a;return Object(r.e)(this,(function(r){switch(r.label){case 0:return[4,fetch(e.url)];case 1:return[4,r.sent().blob()];case 2:return n=r.sent(),-1===(i=e.filename).indexOf(".")&&(o=e.url.split("."),a=o[o.length-1],e.url.endsWith(a)&&(i+="."+a)),t.file(i,n),[2]}}))}))},[4,Promise.all(e.map((function(e){return n(e)})))];case 1:return o.sent(),[4,t.generateAsync({type:"blob"})];case 2:return i=o.sent(),[2,URL.createObjectURL(i)]}}))}))},e.downloadFile=function(t,n,i){return void 0===i&&(i=!1),Object(r.b)(this,void 0,void 0,(function(){var o,a,s;return Object(r.e)(this,(function(r){switch(r.label){case 0:return(o=document.createElement("a")).setAttribute("style","position:absolute; top: -99999px; left: -99999px"),document.body.appendChild(o),i?(e.isMobile()||(o.target="_blank"),o.href=t,[3,5]):[3,1];case 1:return r.trys.push([1,4,,5]),[4,fetch(t)];case 2:return[4,r.sent().blob()];case 3:return a=r.sent(),o.href=URL.createObjectURL(a),[3,5];case 4:return s=r.sent(),e.isMobile()||(o.target="_blank"),o.href=t,console.error(s),[3,5];case 5:return o.download=n,o.dispatchEvent(new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1})),document.body.removeChild(o),[2]}}))}))},e.addCssStyles=function(e,t,n){var r=document.createElement("style"),i="style_"+t;r.type="text/css",r.id=i,r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e));var o=n.querySelectorAllShadow?n.querySelectorAllShadow("style#"+i):n.querySelectorAll("style#"+i);o&&o.length>0&&o.forEach((function(e){return e.remove()})),n.shadowRoot?n.shadowRoot.append(r):n.append(r)},e.maybeGet=function(e){var t=e();return null==t?s.Maybe.nothing():s.Maybe.just(t)},t=e,e.instanceGuid=t.guid(),e.CC_SCRIPT_RELATIVE_PATH="Resources/Generated/IframeApi.js",e._timestamp=Date.now(),Object(r.c)([Object(d.b)("JsonVariablesWidgetFetcherService"),Object(r.g)("design:type",Object)],e,"jsonParamsFetcher",void 0),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return a}));var r=n(0);function i(e,t){return function(n){if(n.is?e=n.is:n.is=e,!customElements.get(e)){t&&Object.defineProperty(n,"template",{get:function(){var e=document.createElement("template");return e.innerHTML=t,e}});try{customElements.define(e,n)}catch(r){throw"can't define ".concat(e," ").concat(r)}}}}function o(e){return function(t,n){!function(e,t,n){e.constructor.hasOwnProperty("properties")||Object.defineProperty(e.constructor,"properties",{value:{},configurable:!0});var i=Object(r.a)(Object(r.a)({},e.constructor.properties[t]),n);if(!i.type){var o=window.Reflect;o&&o.hasMetadata&&o.getMetadata&&o.hasMetadata("design:type",e,t)?i.type=o.getMetadata("design:type",e,t):console.error("A type could not be found for ".concat(t,". ")+"Set a type or configure Metadata Reflection API support.")}e.constructor.properties[t]=i}(t,n,e)}}function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,n){t.constructor.hasOwnProperty("observers")||Object.defineProperty(t.constructor,"observers",{value:[]}),t.constructor.observers.push("".concat(n,"(").concat(e.join(","),")"))}}function s(e){return function(t){return function(n,r){Object.defineProperty(n,r,{get:function(){return e(this.shadowRoot,t)},enumerable:!0,configurable:!0})}}}n(298),s((function(e,t){return e.querySelector(t)})),s((function(e,t){return e.querySelectorAll(t)}))},function(e,t,n){"use strict";(function(e,r,i){var o=n(156);const{toString:a}=Object.prototype,{getPrototypeOf:s}=Object,l=(c=Object.create(null),e=>{const t=a.call(e);return c[t]||(c[t]=t.slice(8,-1).toLowerCase())});var c;const u=e=>(e=e.toLowerCase(),t=>l(t)===e),h=e=>t=>typeof t===e,{isArray:d}=Array,p=h("undefined"),f=u("ArrayBuffer"),g=h("string"),m=h("function"),v=h("number"),_=e=>null!==e&&"object"==typeof e,y=e=>{if("object"!==l(e))return!1;const t=s(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},b=u("Date"),A=u("File"),w=u("Blob"),x=u("FileList"),O=u("URLSearchParams"),[S,C,E,P]=["ReadableStream","Request","Response","Headers"].map(u);function T(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),d(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(r=0;r<o;r++)a=i[r],t.call(null,e[a],a,e)}}function k(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const M="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:e,j=e=>!p(e)&&e!==M,I=(z="undefined"!=typeof Uint8Array&&s(Uint8Array),e=>z&&e instanceof z);var z;const L=u("HTMLFormElement"),R=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),D=u("RegExp"),N=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};T(n,((n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)})),Object.defineProperties(e,r)},B="abcdefghijklmnopqrstuvwxyz",F="0123456789",H={DIGIT:F,ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+F},U=u("AsyncFunction"),V=(W="function"==typeof r,q=m(M.postMessage),W?r:q?(K=`axios@${Math.random()}`,G=[],M.addEventListener("message",(({source:e,data:t})=>{e===M&&t===K&&G.length&&G.shift()()}),!1),e=>{G.push(e),M.postMessage(K,"*")}):e=>setTimeout(e));var W,q,K,G;const Y="undefined"!=typeof queueMicrotask?queueMicrotask.bind(M):void 0!==i&&i.nextTick||V;t.a={isArray:d,isArrayBuffer:f,isBuffer:function(e){return null!==e&&!p(e)&&null!==e.constructor&&!p(e.constructor)&&m(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||m(e.append)&&("formdata"===(t=l(e))||"object"===t&&m(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&f(e.buffer),t},isString:g,isNumber:v,isBoolean:e=>!0===e||!1===e,isObject:_,isPlainObject:y,isReadableStream:S,isRequest:C,isResponse:E,isHeaders:P,isUndefined:p,isDate:b,isFile:A,isBlob:w,isRegExp:D,isFunction:m,isStream:e=>_(e)&&m(e.pipe),isURLSearchParams:O,isTypedArray:I,isFileList:x,forEach:T,merge:function e(){const{caseless:t}=j(this)&&this||{},n={},r=(r,i)=>{const o=t&&k(n,i)||i;y(n[o])&&y(r)?n[o]=e(n[o],r):y(r)?n[o]=e({},r):d(r)?n[o]=r.slice():n[o]=r};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&T(arguments[i],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(T(t,((t,r)=>{n&&m(t)?e[r]=Object(o.a)(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;const l={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],r&&!r(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==n&&s(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:l,kindOfTest:u,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(d(e))return e;let t=e.length;if(!v(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:L,hasOwnProperty:R,hasOwnProp:R,reduceDescriptors:N,freezeMethods:e=>{N(e,((t,n)=>{if(m(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];m(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return d(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:k,global:M,isContextDefined:j,ALPHABET:H,generateString:(e=16,t=H.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&m(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(_(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=d(e)?[]:{};return T(e,((e,t)=>{const o=n(e,r+1);!p(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:U,isThenable:e=>e&&(_(e)||m(e))&&m(e.then)&&m(e.catch),setImmediate:V,asap:Y}}).call(this,n(53),n(200).setImmediate,n(124))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(100);n(22);
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
const i=function(e){let t;return t="function"==typeof e?e:i.Class(e),e._legacyForceObservedAttributes&&(t.prototype._legacyForceObservedAttributes=e._legacyForceObservedAttributes),customElements.define(t.is,t),t};i.Class=r.a},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return g})),n(22);var r=n(8),i=(n(9),n(150)),o=n(18);
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
function a(e){return"slot"===e.localName}let s=class{static getFlattenedNodes(e){const t=Object(r.a)(e);return a(e)?t.assignedNodes({flatten:!0}):Array.from(t.childNodes).map((e=>a(e)?Object(r.a)(e).assignedNodes({flatten:!0}):[e])).reduce(((e,t)=>e.concat(t)),[])}constructor(e,t){this._shadyChildrenObserver=null,this._nativeChildrenObserver=null,this._connected=!1,this._target=e,this.callback=t,this._effectiveNodes=[],this._observer=null,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){a(this._target)?this._listenSlots([this._target]):Object(r.a)(this._target).children&&(this._listenSlots(Object(r.a)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,(e=>{this._processMutations(e)})):(this._nativeChildrenObserver=new MutationObserver((e=>{this._processMutations(e)})),this._nativeChildrenObserver.observe(this._target,{childList:!0}))),this._connected=!0}disconnect(){a(this._target)?this._unlistenSlots([this._target]):Object(r.a)(this._target).children&&(this._unlistenSlots(Object(r.a)(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null)),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,o.c.run((()=>this.flush())))}_processMutations(e){this._processSlotMutations(e),this.flush()}_processSlotMutations(e){if(e)for(let t=0;t<e.length;t++){let n=e[t];n.addedNodes&&this._listenSlots(n.addedNodes),n.removedNodes&&this._unlistenSlots(n.removedNodes)}}flush(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush(),this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords()),this._scheduled=!1;let e={target:this._target,addedNodes:[],removedNodes:[]},t=this.constructor.getFlattenedNodes(this._target),n=Object(i.a)(t,this._effectiveNodes);for(let i,o=0;o<n.length&&(i=n[o]);o++)for(let t,n=0;n<i.removed.length&&(t=i.removed[n]);n++)e.removedNodes.push(t);for(let i,o=0;o<n.length&&(i=n[o]);o++)for(let n=i.index;n<i.index+i.addedCount;n++)e.addedNodes.push(t[n]);this._effectiveNodes=t;let r=!1;return(e.addedNodes.length||e.removedNodes.length)&&(r=!0,this.callback.call(this._target,e)),r}_listenSlots(e){for(let t=0;t<e.length;t++){let n=e[t];a(n)&&n.addEventListener("slotchange",this._boundSchedule)}}_unlistenSlots(e){for(let t=0;t<e.length;t++){let n=e[t];a(n)&&n.removeEventListener("slotchange",this._boundSchedule)}}};n(41),n(34);
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
const l=Element.prototype,c=l.matches||l.matchesSelector||l.mozMatchesSelector||l.msMatchesSelector||l.oMatchesSelector||l.webkitMatchesSelector,u=function(e,t){return c.call(e,t)};class h{constructor(e){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(e),this.node=e}observeNodes(e){return new s(this.node,e)}unobserveNodes(e){e.disconnect()}notifyObserver(){}deepContains(e){if(Object(r.a)(this.node).contains(e))return!0;let t=e,n=e.ownerDocument;for(;t&&t!==n&&t!==this.node;)t=Object(r.a)(t).parentNode||Object(r.a)(t).host;return t===this.node}getOwnerRoot(){return Object(r.a)(this.node).getRootNode()}getDistributedNodes(){return"slot"===this.node.localName?Object(r.a)(this.node).assignedNodes({flatten:!0}):[]}getDestinationInsertionPoints(){let e=[],t=Object(r.a)(this.node).assignedSlot;for(;t;)e.push(t),t=Object(r.a)(t).assignedSlot;return e}importNode(e,t){let n=this.node instanceof Document?this.node:this.node.ownerDocument;return Object(r.a)(n).importNode(e,t)}getEffectiveChildNodes(){return s.getFlattenedNodes(this.node)}queryDistributedElements(e){let t=this.getEffectiveChildNodes(),n=[];for(let r,i=0,o=t.length;i<o&&(r=t[i]);i++)r.nodeType===Node.ELEMENT_NODE&&u(r,e)&&n.push(r);return n}get activeElement(){let e=this.node;return void 0!==e._activeElement?e._activeElement:e.activeElement}}function d(e,t){for(let n=0;n<t.length;n++){let r=t[n];Object.defineProperty(e,r,{get:function(){return this.node[r]},configurable:!0})}}class p{constructor(e){this.event=e}get rootTarget(){return this.path[0]}get localTarget(){return this.event.target}get path(){return this.event.composedPath()}}h.prototype.cloneNode,h.prototype.appendChild,h.prototype.insertBefore,h.prototype.removeChild,h.prototype.replaceChild,h.prototype.setAttribute,h.prototype.removeAttribute,h.prototype.querySelector,h.prototype.querySelectorAll,h.prototype.parentNode,h.prototype.firstChild,h.prototype.lastChild,h.prototype.nextSibling,h.prototype.previousSibling,h.prototype.firstElementChild,h.prototype.lastElementChild,h.prototype.nextElementSibling,h.prototype.previousElementSibling,h.prototype.childNodes,h.prototype.children,h.prototype.classList,h.prototype.textContent,h.prototype.innerHTML;let f=h;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){class e extends window.ShadyDOM.Wrapper{}Object.getOwnPropertyNames(h.prototype).forEach((t=>{"activeElement"!=t&&(e.prototype[t]=h.prototype[t])})),d(e.prototype,["classList"]),f=e,Object.defineProperties(p.prototype,{localTarget:{get(){const e=this.event.currentTarget,t=e&&g(e).getOwnerRoot(),n=this.path;for(let r=0;r<n.length;r++){const e=n[r];if(g(e).getOwnerRoot()===t)return e}},configurable:!0},path:{get(){return window.ShadyDOM.composedPath(this.event)},configurable:!0}})}else!function(e,t){for(let n=0;n<t.length;n++){let r=t[n];e[r]=function(){return this.node[r].apply(this.node,arguments)}}}(h.prototype,["cloneNode","appendChild","insertBefore","removeChild","replaceChild","setAttribute","removeAttribute","querySelector","querySelectorAll"]),d(h.prototype,["parentNode","firstChild","lastChild","nextSibling","previousSibling","firstElementChild","lastElementChild","nextElementSibling","previousElementSibling","childNodes","children","classList"]),function(e,t){for(let n=0;n<t.length;n++){let r=t[n];Object.defineProperty(e,r,{get:function(){return this.node[r]},set:function(e){this.node[r]=e},configurable:!0})}}(h.prototype,["textContent","innerHTML","className"]);const g=function(e){if((e=e||document)instanceof f)return e;if(e instanceof p)return e;let t=e.__domApi;return t||(t=e instanceof Event?new p(e):new f(e),e.__domApi=t),t}},function(e,t,n){"use strict";n.d(t,"b",(function(){return j.a})),n.d(t,"a",(function(){return I}));var r=n(84),i=(n(4),n(192),n(22),n(85)),o=n(70),a=n(153),s=n(9),l=n(8),c=n(101);
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
const u=Object(a.a)(Object(o.b)(Object(i.a)(HTMLElement)));customElements.get("dom-bind")||customElements.define("dom-bind",class extends u{static get observedAttributes(){return["mutable-data"]}constructor(){if(super(),s.m)throw new Error("strictTemplatePolicy: dom-bind not allowed");this.root=null,this.$=null,this.__children=null}attributeChangedCallback(e,t,n,r){this.mutableData=!0}connectedCallback(){Object(c.a)()||(this.style.display="none"),this.render()}disconnectedCallback(){this.__removeChildren()}__insertChildren(){Object(l.a)(Object(l.a)(this).parentNode).insertBefore(this.root,this)}__removeChildren(){if(this.__children)for(let e=0;e<this.__children.length;e++)this.root.appendChild(this.__children[e])}render(){let e;if(!this.__children){if(e=e||this.querySelector("template"),!e){let t=new MutationObserver((()=>{if(e=this.querySelector("template"),!e)throw new Error("dom-bind requires a <template> child");t.disconnect(),this.render()}));return void t.observe(this,{childList:!0})}this.root=this._stampTemplate(e),this.$=this.root.$,this.__children=[];for(let e=this.root.firstChild;e;e=e.nextSibling)this.__children[this.__children.length]=e;this._enableProperties()}this.__insertChildren(),this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}}),n(295);var h=n(51),d=n(34),p=n(41),f=n(18),g=n(10),m=n(59);
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
class v extends h.a{static get is(){return"dom-if"}static get template(){return null}static get properties(){return{if:{type:Boolean,observer:"__debounceRender"},restamp:{type:Boolean,observer:"__debounceRender"},notifyDomChange:{type:Boolean}}}constructor(){super(),this.__renderDebouncer=null,this._lastIf=!1,this.__hideTemplateChildren__=!1,this.__template,this._templateInfo}__debounceRender(){this.__renderDebouncer=d.a.debounce(this.__renderDebouncer,f.c,(()=>this.__render())),Object(p.a)(this.__renderDebouncer)}disconnectedCallback(){super.disconnectedCallback();const e=Object(l.a)(this).parentNode;e&&(e.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||Object(l.a)(e).host)||this.__teardownInstance()}connectedCallback(){super.connectedCallback(),Object(c.a)()||(this.style.display="none"),this.if&&this.__debounceRender()}__ensureTemplate(){if(!this.__template){const e=this;let t=e._templateInfo?e:Object(l.a)(e).querySelector("template");if(!t){let e=new MutationObserver((()=>{if(!Object(l.a)(this).querySelector("template"))throw new Error("dom-if requires a <template> child");e.disconnect(),this.__render()}));return e.observe(this,{childList:!0}),!1}this.__template=t}return!0}__ensureInstance(){let e=Object(l.a)(this).parentNode;if(this.__hasInstance()){let t=this.__getInstanceNodes();if(t&&t.length&&Object(l.a)(this).previousSibling!==t[t.length-1])for(let n,r=0;r<t.length&&(n=t[r]);r++)Object(l.a)(e).insertBefore(n,this)}else{if(!e)return!1;if(!this.__ensureTemplate())return!1;this.__createAndInsertInstance(e)}return!0}render(){Object(p.b)()}__render(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren(),s.o&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)}__hasInstance(){}__getInstanceNodes(){}__createAndInsertInstance(e){}__teardownInstance(){}_showHideChildren(){}}const _=s.c?class extends v{constructor(){super(),this.__instance=null,this.__syncInfo=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.templateInfo.childNodes}__createAndInsertInstance(e){const t=this.__dataHost||this;if(s.m&&!this.__dataHost)throw new Error("strictTemplatePolicy: template owner not trusted");const n=t._bindTemplate(this.__template,!0);n.runEffects=(e,t,n)=>{let r=this.__syncInfo;if(this.if)r&&(this.__syncInfo=null,this._showHideChildren(),t=Object.assign(r.changedProps,t)),e(t,n);else if(this.__instance)if(r||(r=this.__syncInfo={runEffects:e,changedProps:{}}),n)for(const i in t){c