text: window.PolymerGestures={},function(e){var t=!1,n=document.createElement("meta");if(n.createShadowRoot){var r=n.createShadowRoot(),i=document.createElement("span");r.appendChild(i),n.addEventListener("testpath",function(e){e.path&&(t=e.path[0]===i),e.stopPropagation()});var o=new CustomEvent("testpath",{bubbles:!0});document.head.appendChild(n),i.dispatchEvent(o),n.parentNode.removeChild(n),r=i=null}n=null;var s={shadow:function(e){return e?e.shadowRoot||e.webkitShadowRoot:void 0},canTarget:function(e){return e&&Boolean(e.elementFromPoint)},targetingShadow:function(e){var t=this.shadow(e);return this.canTarget(t)?t:void 0},olderShadow:function(e){var t=e.olderShadowRoot;if(!t){var n=e.querySelector("shadow");n&&(t=n.olderShadowRoot)}return t},allShadows:function(e){for(var t=[],n=this.shadow(e);n;)t.push(n),n=this.olderShadow(n);return t},searchRoot:function(e,t,n){var r,i;return e?(r=e.elementFromPoint(t,n),r?i=this.targetingShadow(r):e!==document&&(i=this.olderShadow(e)),this.searchRoot(i,t,n)||r):void 0},owner:function(e){if(!e)return document;for(var t=e;t.parentNode;)t=t.parentNode;return t.nodeType!=Node.DOCUMENT_NODE&&t.nodeType!=Node.DOCUMENT_FRAGMENT_NODE&&(t=document),t},findTarget:function(e){if(t&&e.path&&e.path.length)return e.path[0];var n=e.clientX,r=e.clientY,i=this.owner(e.target);return i.elementFromPoint(n,r)||(i=document),this.searchRoot(i,n,r)},findTouchAction:function(e){var n;if(t&&e.path&&e.path.length){for(var r=e.path,i=0;i<r.length;i++)if(n=r[i],n.nodeType===Node.ELEMENT_NODE&&n.hasAttribute("touch-action"))return n.getAttribute("touch-action")}else for(n=e.target;n;){if(n.nodeType===Node.ELEMENT_NODE&&n.hasAttribute("touch-action"))return n.getAttribute("touch-action");n=n.parentNode||n.host}return"auto"},LCA:function(e,t){if(e===t)return e;if(e&&!t)return e;if(t&&!e)return t;if(!t&&!e)return document;if(e.contains&&e.contains(t))return e;if(t.contains&&t.contains(e))return t;var n=this.depth(e),r=this.depth(t),i=n-r;for(i>=0?e=this.walk(e,i):t=this.walk(t,-i);e&&t&&e!==t;)e=e.parentNode||e.host,t=t.parentNode||t.host;return e},walk:function(e,t){for(var n=0;e&&t>n;n++)e=e.parentNode||e.host;return e},depth:function(e){for(var t=0;e;)t++,e=e.parentNode||e.host;return t},deepContains:function(e,t){var n=this.LCA(e,t);return n===e},insideNode:function(e,t,n){var r=e.getBoundingClientRect();return r.left<=t&&t<=r.right&&r.top<=n&&n<=r.bottom},path:function(e){var n;if(t&&e.path&&e.path.length)n=e.path;else{n=[];for(var r=this.findTarget(e);r;)n.push(r),r=r.parentNode||r.host}return n}};e.targetFinding=s,e.findTarget=s.findTarget.bind(s),e.deepContains=s.deepContains.bind(s),e.insideNode=s.insideNode}(window.PolymerGestures),function(){function e(e){return"html /deep/ "+t(e)}function t(e){return'[touch-action="'+e+'"]'}function n(e){return"{ -ms-touch-action: "+e+"; touch-action: "+e+";}"}var r=["none","auto","pan-x","pan-y",{rule:"pan-x pan-y",selectors:["pan-x pan-y","pan-y pan-x"]},"manipulation"],i="",o="string"==typeof document.head.style.touchAction,s=!window.ShadowDOMPolyfill&&document.head.createShadowRoot;if(o){r.forEach(function(r){String(r)===r?(i+=t(r)+n(r)+"\n",s&&(i+=e(r)+n(r)+"\n")):(i+=r.selectors.map(t)+n(r.rule)+"\n",s&&(i+=r.selectors.map(e)+n(r.rule)+"\n"))});var a=document.createElement("style");a.textContent=i,document.head.appendChild(a)}}(),function(e){var t=["bubbles","cancelable","view","detail","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","pageX","pageY"],n=[!1,!1,null,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0],r=function(){return function(){}},i={preventTap:r,makeBaseEvent:function(e,t){var n=document.createEvent("Event");return n.initEvent(e,t.bubbles||!1,t.cancelable||!1),n.preventTap=i.preventTap(n),n},makeGestureEvent:function(e,t){t=t||Object.create(null);for(var n,r=this.makeBaseEvent(e,t),i=0,o=Object.keys(t);i<o.length;i++)n=o[i],r[n]=t[n];return r},makePointerEvent:function(e,r){r=r||Object.create(null);for(var i,o=this.makeBaseEvent(e,r),s=0;s<t.length;s++)i=t[s],o[i]=r[i]||n[s];o.buttons=r.buttons||0;var a=0;return a=r.pressure?r.pressure:o.buttons?.5:0,o.x=o.clientX,o.y=o.clientY,o.pointerId=r.pointerId||0,o.width=r.width||0,o.height=r.height||0,o.pressure=a,o.tiltX=r.tiltX||0,o.tiltY=r.tiltY||0,o.pointerType=r.pointerType||"",o.hwTimestamp=r.hwTimestamp||0,o.isPrimary=r.isPrimary||!1,o._source=r._source||"",o}};e.eventFactory=i}(window.PolymerGestures),function(e){function t(){if(n){var e=new Map;return e.pointers=r,e}this.keys=[],this.values=[]}var n=window.Map&&window.Map.prototype.forEach,r=function(){return this.size};t.prototype={set:function(e,t){var n=this.keys.indexOf(e);n>-1?this.values[n]=t:(this.keys.push(e),this.values.push(t))},has:function(e){return this.keys.indexOf(e)>-1},"delete":function(e){var t=this.keys.indexOf(e);t>-1&&(this.keys.splice(t,1),this.values.splice(t,1))},get:function(e){var t=this.keys.indexOf(e);return this.values[t]},clear:function(){this.keys.length=0,this.values.length=0},forEach:function(e,t){this.values.forEach(function(n,r){e.call(t,n,this.keys[r],this)},this)},pointers:function(){return this.keys.length}},e.PointerMap=t}(window.PolymerGestures),function(e){var t,n=["bubbles","cancelable","view","detail","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","buttons","pointerId","width","height","pressure","tiltX","tiltY","pointerType","hwTimestamp","isPrimary","type","target","currentTarget","which","pageX","pageY","timeStamp","preventTap","tapPrevented","_source"],r=[!1,!1,null,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0,0,0,0,0,0,"",0,!1,"",null,null,0,0,0,0,function(){},!1],i="undefined"!=typeof SVGElementInstance,o=e.eventFactory,s={IS_IOS:!1,pointermap:new e.PointerMap,requiredGestures:new e.PointerMap,eventMap:Object.create(null),eventSources:Object.create(null),eventSourceList:[],gestures:[],dependencyMap:{down:{listeners:0,index:-1},up:{listeners:0,index:-1}},gestureQueue:[],registerSource:function(e,t){var n=t,r=n.events;r&&(r.forEach(function(e){n[e]&&(this.eventMap[e]=n[e].bind(n))},this),this.eventSources[e]=n,this.eventSourceList.push(n))},registerGesture:function(e,t){var n=Object.create(null);n.listeners=0,n.index=this.gestures.length;for(var r,i=0;i<t.exposes.length;i++)r=t.exposes[i].toLowerCase(),this.dependencyMap[r]=n;this.gestures.push(t)},register:function(e,t){for(var n,r=this.eventSourceList.length,i=0;r>i&&(n=this.eventSourceList[i]);i++)n.register.call(n,e,t)},unregister:function(e){for(var t,n=this.eventSourceList.length,r=0;n>r&&(t=this.eventSourceList[r]);r++)t.unregister.call(t,e)},down:function(e){this.requiredGestures.set(e.pointerId,t),this.fireEvent("down",e)},move:function(e){e.type="move",this.fillGestureQueue(e)},up:function(e){this.fireEvent("up",e),this.requiredGestures.delete(e.pointerId)},cancel:function(e){e.tapPrevented=!0,this.fireEvent("up",e),this.requiredGestures.delete(e.pointerId)},addGestureDependency:function(e,t){var n=e._pgEvents;if(n&&t)for(var r,i,o,s=Object.keys(n),a=0;a<s.length;a++)o=s[a],n[o]>0&&(r=this.dependencyMap[o],i=r?r.index:-1,t[i]=!0)},eventHandler:function(n){var r=n.type;if("touchstart"===r||"mousedown"===r||"pointerdown"===r||"MSPointerDown"===r)if(n._handledByPG||(t={}),this.IS_IOS){var i=n;if("touchstart"===r){var o=n.changedTouches[0];i={target:n.target,clientX:o.clientX,clientY:o.clientY,path:n.path}}for(var s,a=n.path||e.targetFinding.path(i),c=0;c<a.length;c++)s=a[c],this.addGestureDependency(s,t)}else this.addGestureDependency(n.currentTarget,t);if(!n._handledByPG){var u=this.eventMap&&this.eventMap[r];u&&u(n),n._handledByPG=!0}},listen:function(e,t){for(var n,r=0,i=t.length;i>r&&(n=t[r]);r++)this.addEvent(e,n)},unlisten:function(e,t){for(var n,r=0,i=t.length;i>r&&(n=t[r]);r++)this.removeEvent(e,n)},addEvent:function(e,t){e.addEventListener(t,this.boundHandler)},removeEvent:function(e,t){e.removeEventListener(t,this.boundHandler)},makeEvent:function(e,t){var n=o.makePointerEvent(e,t);return n.preventDefault=t.preventDefault,n.tapPrevented=t.tapPrevented,n._target=n._target||t.target,n},fireEvent:function(e,t){var n=this.makeEvent(e,t);return this.dispatchEvent(n)},cloneEvent:function(e){for(var t,o=Object.create(null),s=0;s<n.length;s++)t=n[s],o[t]=e[t]||r[s],("target"===t||"relatedTarget"===t)&&i&&o[t]instanceof SVGElementInstance&&(o[t]=o[t].correspondingUseElement);return o.preventDefault=function(){e.preventDefault()},o},dispatchEvent:function(e){var t=e._target;if(t){t.dispatchEvent(e);var n=this.cloneEvent(e);n.target=t,this.fillGestureQueue(n)}},gestureTrigger:function(){for(var e,t,n=0;n<this.gestureQueue.length;n++)if(e=this.gestureQueue[n],t=e._requiredGestures)for(var r,i,o=0;o<this.gestures.length;o++)t[o]&&(r=this.gestures[o],i=r[e.type],i&&i.call(r,e));this.gestureQueue.length=0},fillGestureQueue:function(e){this.gestureQueue.length||requestAnimationFrame(this.boundGestureTrigger),e._requiredGestures=this.requiredGestures.get(e.pointerId),this.gestureQueue.push(e)}};s.boundHandler=s.eventHandler.bind(s),s.boundGestureTrigger=s.gestureTrigger.bind(s),e.dispatcher=s,e.activateGesture=function(e,t){var n=t.toLowerCase(),r=s.dependencyMap[n];if(r){var i=s.gestures[r.index];if(e._pgListeners||(s.register(e),e._pgListeners=0),i){var o,a=i.defaultActions&&i.defaultActions[n];switch(e.nodeType){case Node.ELEMENT_NODE:o=e;break;case Node.DOCUMENT_FRAGMENT_NODE:o=e.host;break;default:o=null}a&&o&&!o.hasAttribute("touch-action")&&o.setAttribute("touch-action",a)}e._pgEvents||(e._pgEvents={}),e._pgEvents[n]=(e._pgEvents[n]||0)+1,e._pgListeners++}return Boolean(r)},e.addEventListener=function(t,n,r,i){r&&(e.activateGesture(t,n),t.addEventListener(n,r,i))},e.deactivateGesture=function(e,t){var n=t.toLowerCase(),r=s.dependencyMap[n];return r&&(e._pgListeners>0&&e._pgListeners--,0===e._pgListeners&&s.unregister(e),e._pgEvents&&(e._pgEvents[n]>0?e._pgEvents[n]--:e._pgEvents[n]=0)),Boolean(r)},e.removeEventListener=function(t,n,r,i){r&&(e.deactivateGesture(t,n),t.removeEventListener(n,r,i))}}(window.PolymerGestures),function(e){var t=e.dispatcher,n=t.pointermap,r=25,i=[0,1,4,2],o=0,s=/Linux.*Firefox\//i,a=function(){if(s.test(navigator.userAgent))return!1;try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}(),c={POINTER_ID:1,POINTER_TYPE:"mouse",events:["mousedown","mousemove","mouseup"],exposes:["down","up","move"],register:function(e){t.listen(e,this.events)},unregister:function(e){e!==document&&t.unlisten(e,this.events)},lastTouches:[],isEventSimulatedFromTouch:function(e){for(var t,n=this.lastTouches,i=e.clientX,o=e.clientY,s=0,a=n.length;a>s&&(t=n[s]);s++){var c=Math.abs(i-t.x),u=Math.abs(o-t.y);if(r>=c&&r>=u)return!0}},prepareEvent:function(e){var n=t.cloneEvent(e);if(n.pointerId=this.POINTER_ID,n.isPrimary=!0,n.pointerType=this.POINTER_TYPE,n._source="mouse",!a){var r=e.type,s=i[e.which]||0;"mousedown"===r?o|=s:"mouseup"===r&&(o&=~s),n.buttons=o}return n},mousedown:function(r){if(!this.isEventSimulatedFromTouch(r)){var i=(n.has(this.POINTER_ID),this.prepareEvent(r));i.target=e.findTarget(r),n.set(this.POINTER_ID,i.target),t.down(i)}},mousemove:function(e){if(!this.isEventSimulatedFromTouch(e)){var r=n.get(this.POINTER_ID);if(r){var i=this.prepareEvent(e);i.target=r,0===(a?i.buttons:i.which)?(a||(o=i.buttons=0),t.cancel(i),this.cleanupMouse(i.buttons)):t.move(i)}}},mouseup:function(r){if(!this.isEventSimulatedFromTouch(r)){var i=this.prepareEvent(r);i.relatedTarget=e.findTarget(r),i.target=n.get(this.POINTER_ID),t.up(i),this.cleanupMouse(i.buttons)}},cleanupMouse:function(e){0===e&&n.delete(this.POINTER_ID)}};e.mouseEvents=c}(window.PolymerGestures),function(e){var t=e.dispatcher,n=(e.targetFinding.allShadows.bind(e.targetFinding),t.pointermap),r=(Array.prototype.map.call.bind(Array.prototype.map),2500),i=25,o=200,s=20,a=!1,c={IS_IOS:!1,events:["touchstart","touchmove","touchend","touchcancel"],exposes:["down","up","move"],register:function(e,n){(this.IS_IOS?n:!n)&&t.listen(e,this.events)},unregister:function(e){this.IS_IOS||t.unlisten(e,this.events)},scrollTypes:{EMITTER:"none",XSCROLLER:"pan-x",YSCROLLER:"pan-y"},touchActionToScrollType:function(e){var t=e,n=this.scrollTypes;return t===n.EMITTER?"none":t===n.XSCROLLER?"X":t===n.YSCROLLER?"Y":"XY"},POINTER_TYPE:"touch",firstTouch:null,isPrimaryTouch:function(e){return this.firstTouch===e.identifier},setPrimaryTouch:function(e){(0===n.pointers()||1===n.pointers()&&n.has(1))&&(this.firstTouch=e.identifier,this.firstXY={X:e.clientX,Y:e.clientY},this.firstTarget=e.target,this.scrolling=null,this.cancelResetClickCount())},removePrimaryPointer:function(e){e.isPrimary&&(this.firstTouch=null,this.firstXY=null,this.resetClickCount())},clickCount:0,resetId:null,resetClickCount:function(){var e=function(){this.clickCount=0,this.resetId=null}.bind(this);this.resetId=setTimeout(e,o)},cancelResetClickCount:function(){this.resetId&&clearTimeout(this.resetId)},typeToButtons:function(e){var t=0;return("touchstart"===e||"touchmove"===e)&&(t=1),t},findTarget:function(t,r){if("touchstart"===this.currentTouchEvent.type){if(this.isPrimaryTouch(t)){var i={clientX:t.clientX,clientY:t.clientY,path:this.currentTouchEvent.path,target:this.currentTouchEvent.target};return e.findTarget(i)}return e.findTarget(t)}return n.get(r)},touchToPointer:function(e){var n=this.currentTouchEvent,r=t.cloneEvent(e),i=r.pointerId=e.identifier+2;r.target=this.findTarget(e,i),r.bubbles=!0,r.cancelable=!0,r.detail=this.clickCount,r.buttons=this.typeToButtons(n.type),r.width=e.webkitRadiusX||e.radiusX||0,r.height=e.webkitRadiusY||e.radiusY||0,r.pressure=e.webkitForce||e.force||.5,r.isPrimary=this.isPrimaryTouch(e),r.pointerType=this.POINTER_TYPE,r._source="touch";var o=this;return r.preventDefault=function(){o.scrolling=!1,o.firstXY=null,n.preventDefault()},r},processTouches:function(e,t){var r=e.changedTouches;this.currentTouchEvent=e;for(var i,o,s=0;s<r.length;s++)i=r[s],o=this.touchToPointer(i),"touchstart"===e.type&&n.set(o.pointerId,o.target),n.has(o.pointerId)&&t.call(this,o),("touchend"===e.type||e._cancel)&&this.cleanUpPointer(o)},shouldScroll:function(t){if(this.firstXY){var n,r=e.targetFinding.findTouchAction(t),i=this.touchActionToScrollType(r);if("none"===i)n=!1;else if("XY"===i)n=!0;else{var o=t.changedTouches[0],s=i,a="Y"===i?"X":"Y",c=Math.abs(o["client"+s]-this.firstXY[s]),u=Math.abs(o["client"+a]-this.firstXY[a]);n=c>=u}return n}},findTouch:function(e,t){for(var n,r=0,i=e.length;i>r&&(n=e[r]);r++)if(n.identifier===t)return!0},vacuumTouches:function(e){var t=e.touches;if(n.pointers()>=t.length){var r=[];n.forEach(function(e,n){if(1!==n&&!this.findTouch(t,n-2)){var i=e;r.push(i)}},this),r.forEach(function(e){this.cancel(e),n.delete(e.pointerId)},this)}},touchstart:function(e){this.vacuumTouches(e),this.setPrimaryTouch(e.changedTouches[0]),this.dedupSynthMouse(e),this.scrolling||(this.clickCount++,this.processTouches(e,this.down))},down:function(e){t.down(e)},touchmove:function(e){if(a)e.cancelable&&this.processTouches(e,this.move);else if(this.scrolling){if(this.firstXY){var t=e.changedTouches[0],n=t.clientX-this.firstXY.X,r=t.clientY-this.firstXY.Y,i=Math.sqrt(n*n+r*r);i>=s&&(this.touchcancel(e),this.scrolling=!0,this.firstXY=null)}}else null===this.scrolling&&this.shouldScroll(e)?this.scrolling=!0:(this.scrolling=!1,e.preventDefault(),this.processTouches(e,this.move))},move:function(e){t.move(e)},touchend:function(e){this.dedupSynthMouse(e),this.processTouches(e,this.up)},up:function(n){n.relatedTarget=e.findTarget(n),t.up(n)},cancel:function(e){t.cancel(e)},touchcancel:function(e){e._cancel=!0,this.processTouches(e,this.cancel)},cleanUpPointer:function(e){n["delete"](e.pointerId),this.removePrimaryPointer(e)},dedupSynthMouse:function(t){var n=e.mouseEvents.lastTouches,i=t.changedTouches[0];if(this.isPrimaryTouch(i)){var o={x:i.clientX,y:i.clientY};n.push(o);var s=function(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}.bind(null,n,o);setTimeout(s,r)}}},u=Event.prototype.stopImmediatePropagation||Event.prototype.stopPropagation;document.addEventListener("click",function(t){var n=t.clientX,r=t.clientY,o=function(e){var t=Math.abs(n-e.x),o=Math.abs(r-e.y);return i>=t&&i>=o},s=e.mouseEvents.lastTouches.some(o),a=e.targetFinding.path(t);if(s){for(var l=0;l<a.length;l++)if(a[l]===c.firstTarget)return;t.preventDefault(),u.call(t)}},!0),e.touchEvents=c}(window.PolymerGestures),function(e){var t=e.dispatcher,n=t.pointermap,r=window.MSPointerEvent&&"number"==typeof window.MSPointerEvent.MSPOINTER_TYPE_MOUSE,i={events:["MSPointerDown","MSPointerMove","MSPointerUp","MSPointerCancel"],register:function(e){t.listen(e,this.events)},unregister:function(e){e!==document&&t.unlisten(e,this.events)},POINTER_TYPES:["","unavailable","touch","pen","mouse"],prepareEvent:function(e){var n=e;return n=t.cloneEvent(e),r&&(n.pointerType=this.POINTER_TYPES[e.pointerType]),n._source="ms",n},cleanup:function(e){n["delete"](e)},MSPointerDown:function(r){var i=this.prepareEvent(r);i.target=e.findTarget(r),n.set(r.pointerId,i.target),t.down(i)},MSPointerMove:function(e){var r=n.get(e.pointerId);if(r){var i=this.prepareEvent(e);i.target=r,t.move(i)}},MSPointerUp:function(r){var i=this.prepareEvent(r);i.relatedTarget=e.findTarget(r),i.target=n.get(i.pointerId),t.up(i),this.cleanup(r.pointerId)},MSPointerCancel:function(r){var i=this.prepareEvent(r);i.relatedTarget=e.findTarget(r),i.target=n.get(i.pointerId),t.cancel(i),this.cleanup(r.pointerId)}};e.msEvents=i}(window.PolymerGestures),function(e){var t=e.dispatcher,n=t.pointermap,r={events:["pointerdown","pointermove","pointerup","pointercancel"],prepareEvent:function(e){var n=t.cloneEvent(e);return n._source="pointer",n},register:function(e){t.listen(e,this.events)},unregister:function(e){e!==document&&t.unlisten(e,this.events)},cleanup:function(e){n["delete"](e)},pointerdown:function(r){var i=this.prepareEvent(r);i.target=e.findTarget(r),n.set(i.pointerId,i.target),t.down(i)},pointermove:function(e){var r=n.get(e.pointerId);if(r){var i=this.prepareEvent(e);i.target=r,t.move(i)}},pointerup:function(r){var i=this.prepareEvent(r);i.relatedTarget=e.findTarget(r),i.target=n.get(i.pointerId),t.up(i),this.cleanup(r.pointerId)},pointercancel:function(r){var i=this.prepareEvent(r);i.relatedTarget=e.findTarget(r),i.target=n.get(i.pointerId),t.cancel(i),this.cleanup(r.pointerId)}};e.pointerEvents=r}(window.PolymerGestures),function(e){var t=e.dispatcher,n=window.navigator;window.PointerEvent?t.registerSource("pointer",e.pointerEvents):n.msPointerEnabled?t.registerSource("ms",e.msEvents):(t.registerSource("mouse",e.mouseEvents),void 0!==window.ontouchstart&&t.registerSource("touch",e.touchEvents));var r=navigator.userAgent,i=r.match(/iPad|iPhone|iPod/)&&"ontouchstart"in window;t.IS_IOS=i,e.touchEvents.IS_IOS=i,t.register(document,!0)}(window.PolymerGestures),function(e){var t=e.dispatcher,n=e.eventFactory,r=new e.PointerMap,i={events:["down","move","up"],exposes:["trackstart","track","trackx","tracky","trackend"],defaultActions:{track:"none",trackx:"pan-y",tracky:"pan-x"},WIGGLE_THRESHOLD:4,clampDir:function(e){return e>0?1:-1},calcPositionDelta:function(e,t){var n=0,r=0;return e&&t&&(n=t.pageX-e.pageX,r=t.pageY-e.pageY),{x:n,y:r}},fireTrack:function(e,t,r){var i=r,o=this.calcPositionDelta(i.downEvent,t),s=this.calcPositionDelta(i.lastMoveEvent,t);if(s.x)i.xDirection=this.clampDir(s.x);else if("trackx"===e)return;if(s.y)i.yDirection=this.clampDir(s.y);else if("tracky"===e)return;var a={bubbles:!0,cancelable:!0,trackInfo:i.trackInfo,relatedTarget:t.relatedTarget,pointerType:t.pointerType,pointerId:t.pointerId,_source:"track"};"tracky"!==e&&(a.x=t.x,a.dx=o.x,a.ddx=s.x,a.clientX=t.clientX,a.pageX=t.pageX,a.screenX=t.screenX,a.xDirection=i.xDirection),"trackx"!==e&&(a.dy=o.y,a.ddy=s.y,a.y=t.y,a.clientY=t.clientY,a.pageY=t.pageY,a.screenY=t.screenY,a.yDirection=i.yDirection);var c=n.makeGestureEvent(e,a);i.downTarget.dispatchEvent(c)},down:function(e){if(e.isPrimary&&("mouse"===e.pointerType?1===e.buttons:!0)){var t={downEvent:e,downTarget:e.target,trackInfo:{},lastMoveEvent:null,xDirection:0,yDirection:0,tracking:!1};r.set(e.pointerId,t)}},move:function(e){var t=r.get(e.pointerId);if(t){if(!t.tracking){var n=this.calcPositionDelta(t.downEvent,e),i=n.x*n.x+n.y*n.y;i>this.WIGGLE_THRESHOLD&&(t.tracking=!0,t.lastMoveEvent=t.downEvent,this.fireTrack("trackstart",e,t))}t.tracking&&(this.fireTrack("track",e,t),this.fireTrack("trackx",e,t),this.fireTrack("tracky",e,t)),t.lastMoveEvent=e}},up:function(e){var t=r.get(e.pointerId);t&&(t.tracking&&this.fireTrack("trackend",e,t),r.delete(e.pointerId))}};t.registerGesture("track",i)}(window.PolymerGestures),function(e){var t=e.dispatcher,n=e.eventFactory,r={HOLD_DELAY:200,WIGGLE_THRESHOLD:16,events:["down","move","up"],exposes:["hold","holdpulse","release"],heldPointer:null,holdJob:null,pulse:function(){var e=Date.now()-this.heldPointer.timeStamp,t=this.held?"holdpulse":"hold";this.fireHold(t,e),this.held=!0},cancel:function(){clearInterval(this.holdJob),this.held&&this.fireHold("release"),this.held=!1,this.heldPointer=null,this.target=null,this.holdJob=null},down:function(e){e.isPrimary&&!this.heldPointer&&(this.heldPointer=e,this.target=e.target,this.holdJob=setInterval(this.pulse.bind(this),this.HOLD_DELAY))},up:function(e){this.heldPointer&&this.heldPointer.pointerId===e.pointerId&&this.cancel()},move:function(e){if(this.heldPointer&&this.heldPointer.pointerId===e.pointerId){var t=e.clientX-this.heldPointer.clientX,n=e.clientY-this.heldPointer.clientY;t*t+n*n>this.WIGGLE_THRESHOLD&&this.cancel()}},fireHold:function(e,t){var r={bubbles:!0,cancelable:!0,pointerType:this.heldPointer.pointerType,pointerId:this.heldPointer.pointerId,x:this.heldPointer.clientX,y:this.heldPointer.clientY,_source:"hold"};t&&(r.holdTime=t);var i=n.makeGestureEvent(e,r);this.target.dispatchEvent(i)}};t.registerGesture("hold",r)}(window.PolymerGestures),function(e){var t=e.dispatcher,n=e.eventFactory,r=new e.PointerMap,i={events:["down","up"],exposes:["tap"],down:function(e){e.isPrimary&&!e.tapPrevented&&r.set(e.pointerId,{target:e.target,buttons:e.buttons,x:e.clientX,y:e.clientY})},shouldTap:function(e,t){var n=!0;return"mouse"===e.pointerType&&(n=1^e.buttons&&1&t.buttons),n&&!e.tapPrevented},up:function(t){var i=r.get(t.pointerId);if(i&&this.shouldTap(t,i)){var o=e.targetFinding.LCA(i.target,t.relatedTarget);if(o){var s=n.makeGestureEvent("tap",{bubbles:!0,cancelable:!0,x:t.clientX,y:t.clientY,detail:t.detail,pointerType:t.pointerType,pointerId:t.pointerId,altKey:t.altKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,shiftKey:t.shiftKey,_source:"tap"});o.dispatchEvent(s)}}r.delete(t.pointerId)}};n.preventTap=function(e){return function(){e.tapPrevented=!0,r.delete(e.pointerId)}},t.registerGesture("tap",i)}(window.PolymerGestures),function(e){var t=e.dispatcher,n=e.eventFactory,r=new e.PointerMap,i=180/Math.PI,o={events:["down","up","move","cancel"],exposes:["pinchstart","pinch","pinchend","rotate"],defaultActions:{pinch:"none",rotate:"none"},reference:{},down:function(t){if(r.set(t.pointerId,t),2==r.pointers()){var n=this.calcChord(),i=this.calcAngle(n);this.reference={angle:i,diameter:n.diameter,target:e.targetFinding.LCA(n.a.target,n.b.target)},this.firePinch("pinchstart",n.diameter,n)}},up:function(e){var t=r.get(e.pointerId),n=r.pointers();if(t){if(2===n){var i=this.calcChord();this.firePinch("pinchend",i.diameter,i)}r.delete(e.pointerId)}},move:function(e){r.has(e.pointerId)&&(r.set(e.pointerId,e),r.pointers()>1&&this.calcPinchRotate())},cancel:function(e){this.up(e)},firePinch:function(e,t,r){var i=t/this.reference.diameter,o=n.makeGestureEvent(e,{bubbles:!0,cancelable:!0,scale:i,centerX:r.center.x,centerY:r.center.y,_source:"pinch"});this.reference.target.dispatchEvent(o)},fireRotate:function(e,t){var r=Math.round((e-this.reference.angle)%360),i=n.makeGestureEvent("rotate",{bubbles:!0,cancelable:!0,angle:r,centerX:t.center.x,centerY:t.center.y,_source:"pinch"});this.reference.target.dispatchEvent(i)},calcPinchRotate:function(){var e=this.calcChord(),t=e.diameter,n=this.calcAngle(e);t!=this.reference.diameter&&this.firePinch("pinch",t,e),n!=this.reference.angle&&this.fireRotate(n,e)},calcChord:function(){var e=[];r.forEach(function(t){e.push(t)});for(var t,n,i,o=0,s={a:e[0],b:e[1]},a=0;a<e.length;a++)for(var c=e[a],u=a+1;u<e.length;u++){var l=e[u];t=Math.abs(c.clientX-l.clientX),n=Math.abs(c.clientY-l.clientY),i=t+n,i>o&&(o=i,s={a:c,b:l})}return t=Math.abs(s.a.clientX+s.b.clientX)/2,n=Math.abs(s.a.clientY+s.b.clientY)/2,s.center={x:t,y:n},s.diameter=o,s},calcAngle:function(e){var t=e.a.clientX-e.b.clientX,n=e.a.clientY-e.b.clientY;return(360+Math.atan2(n,t)*i)%360}};t.registerGesture("pinch",o)}(window.PolymerGestures),function(e){"use strict";function t(e,t){if(!e)throw new Error("ASSERT: "+t)}function n(e){return e>=48&&57>=e}function r(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&" ᠎             　﻿".indexOf(String.fromCharCode(e))>0}function i(e){return 10===e||13===e||8232===e||8233===e}function o(e){return 36===e||95===e||e>=65&&90>=e||e>=97&&122>=e}function s(e){return 36===e||95===e||e>=65&&90>=e||e>=97&&122>=e||e>=48&&57>=e}function a(e){return"this"===e}function c(){for(;z>Q&&r(K.charCodeAt(Q));)++Q}function u(){var e,t;for(e=Q++;z>Q&&(t=K.charCodeAt(Q),s(t));)++Q;return K.slice(e,Q)}function l(){var e,t,n;return e=Q,t=u(),n=1===t.length?Y.Identifier:a(t)?Y.Keyword:"null"===t?Y.NullLiteral:"true"===t||"false"===t?Y.BooleanLiteral:Y.Identifier,{type:n,value:t,range:[e,Q]}}function h(){var e,t,n=Q,r=K.charCodeAt(Q),i=K[Q];switch(r){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:return++Q,{type:Y.Punctuator,value:String.fromCharCode(r),range:[n,Q]};default:if(e=K.charCodeAt(Q+1),61===e)switch(r){case 37:case 38:case 42:case 43:case 45:case 47:case 60:case 62:case 124:return Q+=2,{type:Y.Punctuator,value:String.fromCharCode(r)+String.fromCharCode(e),range:[n,Q]};case 33:case 61:return Q+=2,61===K.charCodeAt(Q)&&++Q,{type:Y.Punctuator,value:K.slice(n,Q),range:[n,Q]}}}return t=K[Q+1],i===t&&"&|".indexOf(i)>=0?(Q+=2,{type:Y.Punctuator,value:i+t,range:[n,Q]}):"<>=!+-*%&|^/".indexOf(i)>=0?(++Q,{type:Y.Punctuator,value:i,range:[n,Q]}):void b({},W.UnexpectedToken,"ILLEGAL")}function d(){var e,r,i;if(i=K[Q],t(n(i.charCodeAt(0))||"."===i,"Numeric literal must start with a decimal digit or a decimal point"),r=Q,e="","."!==i){for(e=K[Q++],i=K[Q],"0"===e&&i&&n(i.charCodeAt(0))&&b({},W.UnexpectedToken,"ILLEGAL");n(K.charCodeAt(Q));)e+=K[Q++];i=K[Q]}if("."===i){for(e+=K[Q++];n(K.charCodeAt(Q));)e+=K[Q++];i=K[Q]}if("e"===i||"E"===i)if(e+=K[Q++],i=K[Q],("+"===i||"-"===i)&&(e+=K[Q++]),n(K.charCodeAt(Q)))for(;n(K.charCodeAt(Q));)e+=K[Q++];else b({},W.UnexpectedToken,"ILLEGAL");return o(K.charCodeAt(Q))&&b({},W.UnexpectedToken,"ILLEGAL"),{type:Y.NumericLiteral,value:parseFloat(e),range:[r,Q]}}function f(){var e,n,r,o="",s=!1;for(e=K[Q],t("'"===e||'"'===e,"String literal must starts with a quote"),n=Q,++Q;z>Q;){if(r=K[Q++],r===e){e="";break}if("\\"===r)if(r=K[Q++],r&&i(r.charCodeAt(0)))"\r"===r&&"\n"===K[Q]&&++Q;else switch(r){case"n":o+="\n";break;case"r":o+="\r";break;case"t":o+="	";break;case"b":o+="\b";break;case"f":o+="\f";break;case"v":o+="";break;default:o+=r}else{if(i(r.charCodeAt(0)))break;o+=r}}return""!==e&&b({},W.UnexpectedToken,"ILLEGAL"),{type:Y.StringLiteral,value:o,octal:s,range:[n,Q]}}function p(e){return e.type===Y.Identifier||e.type===Y.Keyword||e.type===Y.BooleanLiteral||e.type===Y.NullLiteral}function v(){var e;return c(),Q>=z?{type:Y.EOF,range:[Q,Q]}:(e=K.charCodeAt(Q),40===e||41===e||58===e?h():39===e||34===e?f():o(e)?l():46===e?n(K.charCodeAt(Q+1))?d():h():n(e)?d():h())}function m(){var e;return e=Z,Q=e.range[1],Z=v(),Q=e.range[1],e}function g(){var e;e=Q,Z=v(),Q=e}function b(e,n){var r,i=Array.prototype.slice.call(arguments,2),o=n.replace(/%(\d)/g,function(e,n){return t(n<i.length,"Message reference must be in range"),i[n]});throw r=new Error(o),r.index=Q,r.description=o,r}function y(e){b(e,W.UnexpectedToken,e.value)}function _(e){var t=m();(t.type!==Y.Punctuator||t.value!==e)&&y(t)}function E(e){return Z.type===Y.Punctuator&&Z.value===e}function w(e){return Z.type===Y.Keyword&&Z.value===e}function P(){var e=[];for(_("[");!E("]");)E(",")?(m(),e.push(null)):(e.push(tt()),E("]")||_(","));return _("]"),J.createArrayExpression(e)}function O(){var e;return c(),e=m(),e.type===Y.StringLiteral||e.type===Y.NumericLiteral?J.createLiteral(e):J.createIdentifier(e.value)}function T(){var e,t;return e=Z,c(),(e.type===Y.EOF||e.type===Y.Punctuator)&&y(e),t=O(),_(":"),J.createProperty("init",t,tt())}function C(){var e=[];for(_("{");!E("}");)e.push(T()),E("}")||_(",");return _("}"),J.createObjectExpression(e)}function x(){var e;return _("("),e=tt(),_(")"),e}function I(){var e,t,n;return E("(")?x():(e=Z.type,e===Y.Identifier?n=J.createIdentifier(m().value):e===Y.StringLiteral||e===Y.NumericLiteral?n=J.createLiteral(m()):e===Y.Keyword?w("this")&&(m(),n=J.createThisExpression()):e===Y.BooleanLiteral?(t=m(),t.value="true"===t.value,n=J.createLiteral(t)):e===Y.NullLiteral?(t=m(),t.value=null,n=J.createLiteral(t)):E("[")?n=P():E("{")&&(n=C()),n?n:void y(m()))}function S(){var e=[];if(_("("),!E(")"))for(;z>Q&&(e.push(tt()),!E(")"));)_(",");return _(")"),e}function A(){var e;return e=m(),p(e)||y(e),J.createIdentifier(e.value)}function k(){return _("."),A()}function L(){var e;return _("["),e=tt(),_("]"),e}function M(){var e,t,n;for(e=I();;)if(E("["))n=L(),e=J.createMemberExpression("[",e,n);else if(E("."))n=k(),e=J.createMemberExpression(".",e,n);else{if(!E("("))break;t=S(),e=J.createCallExpression(e,t)}return e}function N(){var e,t;return Z.type!==Y.Punctuator&&Z.type!==Y.Keyword?t=et():E("+")||E("-")||E("!")?(e=m(),t=N(),t=J.createUnaryExpression(e.value,t)):w("delete")||w("void")||w("typeof")?b({},W.UnexpectedToken):t=et(),t}function j(e){var t=0;if(e.type!==Y.Punctuator&&e.type!==Y.Keyword)return 0;switch(e.value){case"||":t=1;break;case"&&":t=2;break;case"==":case"!=":case"===":case"!==":t=6;break;case"<":case">":case"<=":case">=":case"instanceof":t=7;break;case"in":t=7;break;case"+":case"-":t=9;break;case"*":case"/":case"%":t=11}return t}function D(){var e,t,n,r,i,o,s,a;if(s=N(),t=Z,n=j(t),0===n)return s;for(t.prec=n,m(),i=N(),r=[s,t,i];(n=j(Z))>0;){for(;r.length>2&&n<=r[r.length-2].prec;)i=r.pop(),o=r.pop().value,s=r.pop(),e=J.createBinaryExpression(o,s,i),r.push(e);t=m(),t.prec=n,r.push(t),e=N(),r.push(e)}for(a=r.length-1,e=r[a];a>1;)e=J.createBinaryExpression(r[a-1].value,r[a-2],e),a-=2;return e}function R(){var e,t,n;return e=D(),E("?")&&(m(),t=R(),_(":"),n=R(),e=J.createConditionalExpression(e,t,n)),e}function F(){var e,t;return e=m(),e.type!==Y.Identifier&&y(e),t=E("(")?S():[],J.createFilter(e.value,t)}function V(){for(;E("|");)m(),F()}function B(){c(),g();var e=tt();e&&(","===Z.value||"in"==Z.value&&e.type===X.Identifier?q(e):(V(),"as"===Z.value?H(e):J.createTopLevel(e))),Z.type!==Y.EOF&&y(Z)}function H(e){m();var t=m().value;J.createAsExpression(e,t)}function q(e){var t;","===Z.value&&(m(),Z.type!==Y.Identifier&&y(Z),t=m().value),m();var n=tt();V(),J.createInExpression(e.name,t,n)}function G(e,t){return J=t,K=e,Q=0,z=K.length,Z=null,$={labelSet:{}},B()}var Y,U,X,W,K,Q,z,J,Z,$;Y={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8},U={},U[Y.BooleanLiteral]="Boolean",U[Y.EOF]="<end>",U[Y.Identifier]="Identifier",U[Y.Keyword]="Keyword",U[Y.NullLiteral]="Null",U[Y.NumericLiteral]="Numeric",U[Y.Punctuator]="Punctuator",U[Y.StringLiteral]="String",X={ArrayExpression:"ArrayExpression",BinaryExpression:"BinaryExpression",CallExpression:"CallExpression",ConditionalExpression:"ConditionalExpression",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",Identifier:"Identifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ThisExpression:"ThisExpression",UnaryExpression:"UnaryExpression"},W={UnexpectedToken:"Unexpected token %0",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared"};
  var et=M,tt=R;e.esprima={parse:G}}(this),function(e){"use strict";function t(e,t,r,i){var o;try{if(o=n(e),o.scopeIdent&&(r.nodeType!==Node.ELEMENT_NODE||"TEMPLATE"!==r.tagName||"bind"!==t&&"repeat"!==t))throw Error("as and in can only be used within <template bind/repeat>")}catch(s){return void console.error("Invalid expression syntax: "+e,s)}return function(e,t,n){var r=o.getBinding(e,i,n);return o.scopeIdent&&r&&(t.polymerExpressionScopeIdent_=o.scopeIdent,o.indexIdent&&(t.polymerExpressionIndexIdent_=o.indexIdent)),r}}function n(e){var t=m[e];if(!t){var n=new u;esprima.parse(e,n),t=new h(n),m[e]=t}return t}function r(e){this.value=e,this.valueFn_=void 0}function i(e){this.name=e,this.path=Path.get(e)}function o(e,t,n){this.computed="["==n,this.dynamicDeps="function"==typeof e||e.dynamicDeps||this.computed&&!(t instanceof r),this.simplePath=!this.dynamicDeps&&(t instanceof i||t instanceof r)&&(e instanceof o||e instanceof i),this.object=this.simplePath?e:c(e),this.property=!this.computed||this.simplePath?t:c(t)}function s(e,t){this.name=e,this.args=[];for(var n=0;n<t.length;n++)this.args[n]=c(t[n])}function a(){throw Error("Not Implemented")}function c(e){return"function"==typeof e?e:e.valueFn()}function u(){this.expression=null,this.filters=[],this.deps={},this.currentPath=void 0,this.scopeIdent=void 0,this.indexIdent=void 0,this.dynamicDeps=!1}function l(e){this.value_=e}function h(e){if(this.scopeIdent=e.scopeIdent,this.indexIdent=e.indexIdent,!e.expression)throw Error("No expression found.");this.expression=e.expression,c(this.expression),this.filters=e.filters,this.dynamicDeps=e.dynamicDeps}function d(e){return String(e).replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})}function f(e,t){for(;e[y]&&!Object.prototype.hasOwnProperty.call(e,t);)e=e[y];return e}function p(e){switch(e){case"":return!1;case"false":case"null":case"true":return!0}return isNaN(Number(e))?!1:!0}function v(){}var m=Object.create(null);r.prototype={valueFn:function(){if(!this.valueFn_){var e=this.value;this.valueFn_=function(){return e}}return this.valueFn_}},i.prototype={valueFn:function(){if(!this.valueFn_){var e=(this.name,this.path);this.valueFn_=function(t,n){return n&&n.addPath(t,e),e.getValueFrom(t)}}return this.valueFn_},setValue:function(e,t){return 1==this.path.length&&(e=f(e,this.path[0])),this.path.setValueFrom(e,t)}},o.prototype={get fullPath(){if(!this.fullPath_){var e=this.object instanceof o?this.object.fullPath.slice():[this.object.name];e.push(this.property instanceof i?this.property.name:this.property.value),this.fullPath_=Path.get(e)}return this.fullPath_},valueFn:function(){if(!this.valueFn_){var e=this.object;if(this.simplePath){var t=this.fullPath;this.valueFn_=function(e,n){return n&&n.addPath(e,t),t.getValueFrom(e)}}else if(this.computed){var n=this.property;this.valueFn_=function(t,r,i){var o=e(t,r,i),s=n(t,r,i);return r&&r.addPath(o,[s]),o?o[s]:void 0}}else{var t=Path.get(this.property.name);this.valueFn_=function(n,r,i){var o=e(n,r,i);return r&&r.addPath(o,t),t.getValueFrom(o)}}}return this.valueFn_},setValue:function(e,t){if(this.simplePath)return this.fullPath.setValueFrom(e,t),t;var n=this.object(e),r=this.property instanceof i?this.property.name:this.property(e);return n[r]=t}},s.prototype={transform:function(e,t,n,r,i){var o=n[this.name],s=e;if(o)s=void 0;else if(o=s[this.name],!o)return void console.error("Cannot find function or filter: "+this.name);if(r?o=o.toModel:"function"==typeof o.toDOM&&(o=o.toDOM),"function"!=typeof o)return void console.error("Cannot find function or filter: "+this.name);for(var a=i||[],u=0;u<this.args.length;u++)a.push(c(this.args[u])(e,t,n));return o.apply(s,a)}};var g={"+":function(e){return+e},"-":function(e){return-e},"!":function(e){return!e}},b={"+":function(e,t){return e+t},"-":function(e,t){return e-t},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"<":function(e,t){return t>e},">":function(e,t){return e>t},"<=":function(e,t){return t>=e},">=":function(e,t){return e>=t},"==":function(e,t){return e==t},"!=":function(e,t){return e!=t},"===":function(e,t){return e===t},"!==":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t}};u.prototype={createUnaryExpression:function(e,t){if(!g[e])throw Error("Disallowed operator: "+e);return t=c(t),function(n,r,i){return g[e](t(n,r,i))}},createBinaryExpression:function(e,t,n){if(!b[e])throw Error("Disallowed operator: "+e);switch(t=c(t),n=c(n),e){case"||":return this.dynamicDeps=!0,function(e,r,i){return t(e,r,i)||n(e,r,i)};case"&&":return this.dynamicDeps=!0,function(e,r,i){return t(e,r,i)&&n(e,r,i)}}return function(r,i,o){return b[e](t(r,i,o),n(r,i,o))}},createConditionalExpression:function(e,t,n){return e=c(e),t=c(t),n=c(n),this.dynamicDeps=!0,function(r,i,o){return e(r,i,o)?t(r,i,o):n(r,i,o)}},createIdentifier:function(e){var t=new i(e);return t.type="Identifier",t},createMemberExpression:function(e,t,n){var r=new o(t,n,e);return r.dynamicDeps&&(this.dynamicDeps=!0),r},createCallExpression:function(e,t){if(!(e instanceof i))throw Error("Only identifier function invocations are allowed");var n=new s(e.name,t);return function(e,t,r){return n.transform(e,t,r,!1)}},createLiteral:function(e){return new r(e.value)},createArrayExpression:function(e){for(var t=0;t<e.length;t++)e[t]=c(e[t]);return function(t,n,r){for(var i=[],o=0;o<e.length;o++)i.push(e[o](t,n,r));return i}},createProperty:function(e,t,n){return{key:t instanceof i?t.name:t.value,value:n}},createObjectExpression:function(e){for(var t=0;t<e.length;t++)e[t].value=c(e[t].value);return function(t,n,r){for(var i={},o=0;o<e.length;o++)i[e[o].key]=e[o].value(t,n,r);return i}},createFilter:function(e,t){this.filters.push(new s(e,t))},createAsExpression:function(e,t){this.expression=e,this.scopeIdent=t},createInExpression:function(e,t,n){this.expression=n,this.scopeIdent=e,this.indexIdent=t},createTopLevel:function(e){this.expression=e},createThisExpression:a},l.prototype={open:function(){return this.value_},discardChanges:function(){return this.value_},deliver:function(){},close:function(){}},h.prototype={getBinding:function(e,t,n){function r(){if(a)return a=!1,s;c.dynamicDeps&&o.startReset();var n=c.getValue(e,c.dynamicDeps?o:void 0,t);return c.dynamicDeps&&o.finishReset(),n}function i(n){return c.setValue(e,n,t),n}if(n)return this.getValue(e,void 0,t);var o=new CompoundObserver,s=this.getValue(e,o,t),a=!0,c=this;return new ObserverTransform(o,r,i,!0)},getValue:function(e,t,n){for(var r=c(this.expression)(e,t,n),i=0;i<this.filters.length;i++)r=this.filters[i].transform(e,t,n,!1,[r]);return r},setValue:function(e,t,n){for(var r=this.filters?this.filters.length:0;r-->0;)t=this.filters[r].transform(e,void 0,n,!0,[t]);return this.expression.setValue?this.expression.setValue(e,t):void 0}};var y="@"+Math.random().toString(36).slice(2);v.prototype={styleObject:function(e){var t=[];for(var n in e)t.push(d(n)+": "+e[n]);return t.join("; ")},tokenList:function(e){var t=[];for(var n in e)e[n]&&t.push(n);return t.join(" ")},prepareInstancePositionChanged:function(e){var t=e.polymerExpressionIndexIdent_;if(t)return function(e,n){e.model[t]=n}},prepareBinding:function(e,n,r){var i=Path.get(e);{if(p(e)||!i.valid)return t(e,n,r,this);if(1==i.length)return function(e,t,n){if(n)return i.getValueFrom(e);var r=f(e,i[0]);return new PathObserver(r,i)}}},prepareInstanceModel:function(e){var t=e.polymerExpressionScopeIdent_;if(t){var n=e.templateInstance?e.templateInstance.model:e.model,r=e.polymerExpressionIndexIdent_;return function(e){return _(n,e,t,r)}}}};var _="__proto__"in{}?function(e,t,n,r){var i={};return i[n]=t,i[r]=void 0,i[y]=e,i.__proto__=e,i}:function(e,t,n,r){var i=Object.create(e);return Object.defineProperty(i,n,{value:t,configurable:!0,writable:!0}),Object.defineProperty(i,r,{value:void 0,configurable:!0,writable:!0}),Object.defineProperty(i,y,{value:e,configurable:!0,writable:!0}),i};e.PolymerExpressions=v,v.getExpression=n}(this),Polymer={version:"0.5.3"},"function"==typeof window.Polymer&&(Polymer={}),function(e){function t(e,t){return t=t||[],t.map||(t=[t]),e.apply(this,t.map(r))}function n(e,n,r){var i;switch(arguments.length){case 0:return;case 1:i=null;break;case 2:i=n.apply(this);break;default:i=t(r,n)}o[e]=i}function r(e){return o[e]}function i(e,n){HTMLImports.whenImportsReady(function(){t(n,e)})}var o={};e.marshal=r,e.modularize=n,e.using=i}(window),window.WebComponents||(window.WebComponents||(WebComponents={flush:function(){},flags:{log:{}}},Platform=WebComponents,CustomElements={useNative:!0,ready:!0,takeRecords:function(){},"instanceof":function(e,t){return e instanceof t}},HTMLImports={useNative:!0},addEventListener("HTMLImportsLoaded",function(){document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))}),ShadowDOMPolyfill=null,wrap=unwrap=function(e){return e}),window.HTMLImports=window.HTMLImports||{flags:{}},function(e){function t(e,t){t=t||p,r(function(){o(e,t)},t)}function n(e){return"complete"===e.readyState||e.readyState===g}function r(e,t){if(n(t))e&&e();else{var i=function(){("complete"===t.readyState||t.readyState===g)&&(t.removeEventListener(b,i),r(e,t))};t.addEventListener(b,i)}}function i(e){e.target.__loaded=!0}function o(e,t){function n(){a==c&&e&&e()}function r(e){i(e),a++,n()}var o=t.querySelectorAll("link[rel=import]"),a=0,c=o.length;if(c)for(var u,l=0;c>l&&(u=o[l]);l++)s(u)?r.call(u,{target:u}):(u.addEventListener("load",r),u.addEventListener("error",r));else n()}function s(e){return h?e.__loaded||e.import&&"loading"!==e.import.readyState:e.__importParsed}function a(e){for(var t,n=0,r=e.length;r>n&&(t=e[n]);n++)c(t)&&u(t)}function c(e){return"link"===e.localName&&"import"===e.rel}function u(e){var t=e.import;t?i({target:e}):(e.addEventListener("load",i),e.addEventListener("error",i))}var l="import",h=Boolean(l in document.createElement("link")),d=Boolean(window.ShadowDOMPolyfill),f=function(e){return d?ShadowDOMPolyfill.wrapIfNeeded(e):e},p=f(document),v={get:function(){var e=HTMLImports.currentScript||document.currentScript||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null);return f(e)},configurable:!0};Object.defineProperty(document,"_currentScript",v),Object.defineProperty(p,"_currentScript",v);var m=/Trident/.test(navigator.userAgent),g=m?"complete":"interactive",b="readystatechange";h&&(new MutationObserver(function(e){for(var t,n=0,r=e.length;r>n&&(t=e[n]);n++)t.addedNodes&&a(t.addedNodes)}).observe(document.head,{childList:!0}),function(){if("loading"===document.readyState)for(var e,t=document.querySelectorAll("link[rel=import]"),n=0,r=t.length;r>n&&(e=t[n]);n++)u(e)}()),t(function(){HTMLImports.ready=!0,HTMLImports.readyTime=(new Date).getTime(),p.dispatchEvent(new CustomEvent("HTMLImportsLoaded",{bubbles:!0}))}),e.IMPORT_LINK_TYPE=l,e.useNative=h,e.rootDocument=p,e.whenReady=t,e.isIE=m}(HTMLImports),function(){var e=document.createElement("style");e.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; } \n";var t=document.querySelector("head");t.insertBefore(e,t.firstChild)}(Platform)),function(e){"use strict";function t(){function e(e){t=e}if("function"!=typeof Object.observe||"function"!=typeof Array.observe)return!1;var t=[],n={},r=[];return Object.observe(n,e),Array.observe(r,e),n.id=1,n.id=2,delete n.id,r.push(1,2),r.length=0,Object.deliverChangeRecords(e),5!==t.length?!1:"add"!=t[0].type||"update"!=t[1].type||"delete"!=t[2].type||"splice"!=t[3].type||"splice"!=t[4].type?!1:(Object.unobserve(n,e),Array.unobserve(r,e),!0)}function n(){if("undefined"!=typeof chrome&&chrome.app&&chrome.app.runtime)return!1;if("undefined"!=typeof navigator&&navigator.getDeviceStorage)return!1;try{var e=new Function("","return true;");return e()}catch(t){return!1}}function r(e){return+e===e>>>0&&""!==e}function i(e){return+e}function o(e){return e===Object(e)}function s(e,t){return e===t?0!==e||1/e===1/t:G(e)&&G(t)?!0:e!==e&&t!==t}function a(e){if(void 0===e)return"eof";var t=e.charCodeAt(0);switch(t){case 91:case 93:case 46:case 34:case 39:case 48:return e;case 95:case 36:return"ident";case 32:case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return t>=97&&122>=t||t>=65&&90>=t?"ident":t>=49&&57>=t?"number":"else"}function c(){}function u(e){function t(){if(!(d>=e.length)){var t=e[d+1];return"inSingleQuote"==f&&"'"==t||"inDoubleQuote"==f&&'"'==t?(d++,r=t,p.append(),!0):void 0}}for(var n,r,i,o,s,u,l,h=[],d=-1,f="beforePath",p={push:function(){void 0!==i&&(h.push(i),i=void 0)},append:function(){void 0===i?i=r:i+=r}};f;)if(d++,n=e[d],"\\"!=n||!t(f)){if(o=a(n),l=K[f],s=l[o]||l["else"]||"error","error"==s)return;if(f=s[0],u=p[s[1]]||c,r=void 0===s[2]?n:s[2],u(),"afterPath"===f)return h}}function l(e){return W.test(e)}function h(e,t){if(t!==Q)throw Error("Use Path.get to retrieve path objects");for(var n=0;n<e.length;n++)this.push(String(e[n]));q&&this.length&&(this.getValueFrom=this.compiledGetValueFromFn())}function d(e){if(e instanceof h)return e;if((null==e||0==e.length)&&(e=""),"string"!=typeof e){if(r(e.length))return new h(e,Q);e=String(e)}var t=z[e];if(t)return t;var n=u(e);if(!n)return J;var t=new h(n,Q);return z[e]=t,t}function f(e){return r(e)?"["+e+"]":'["'+e.replace(/"/g,'\\"')+'"]'}function p(t){for(var n=0;$>n&&t.check_();)n++;return B&&(e.dirtyCheckCycleCount=n),n>0}function v(e){for(var t in e)return!1;return!0}function m(e){return v(e.added)&&v(e.removed)&&v(e.changed)}function g(e,t){var n={},r={},i={};for(var o in t){var s=e[o];(void 0===s||s!==t[o])&&(o in e?s!==t[o]&&(i[o]=s):r[o]=void 0)}for(var o in e)o in t||(n[o]=e[o]);return Array.isArray(e)&&e.length!==t.length&&(i.length=e.length),{added:n,removed:r,changed:i}}function b(){if(!et.length)return!1;for(var e=0;e<et.length;e++)et[e]();return et.length=0,!0}function y(){function e(e){t&&t.state_===ot&&!r&&t.check_(e)}var t,n,r=!1,i=!0;return{open:function(n){if(t)throw Error("ObservedObject in use");i||Object.deliverChangeRecords(e),t=n,i=!1},observe:function(t,r){n=t,r?Array.observe(n,e):Object.observe(n,e)},deliver:function(t){r=t,Object.deliverChangeRecords(e),r=!1},close:function(){t=void 0,Object.unobserve(n,e),nt.push(this)}}}function _(e,t,n){var r=nt.pop()||y();return r.open(e),r.observe(t,n),r}function E(){function e(t,o){t&&(t===r&&(i[o]=!0),a.indexOf(t)<0&&(a.push(t),Object.observe(t,n)),e(Object.getPrototypeOf(t),o))}function t(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.object!==r||i[n.name]||"setPrototype"===n.type)return!1}return!0}function n(n){if(!t(n)){for(var r,i=0;i<s.length;i++)r=s[i],r.state_==ot&&r.iterateObjects_(e);for(var i=0;i<s.length;i++)r=s[i],r.state_==ot&&r.check_()}}var r,i,o=0,s=[],a=[],c={objects:a,get rootObject(){return r},set rootObject(e){r=e,i={}},open:function(t){s.push(t),o++,t.iterateObjects_(e)},close:function(){if(o--,!(o>0)){for(var e=0;e<a.length;e++)Object.unobserve(a[e],n),P.unobservedCount++;s.length=0,a.length=0,r=void 0,i=void 0,rt.push(this),Z===this&&(Z=null)}}};return c}function w(e,t){return Z&&Z.rootObject===t||(Z=rt.pop()||E(),Z.rootObject=t),Z.open(e,t),Z}function P(){this.state_=it,this.callback_=void 0,this.target_=void 0,this.directObserver_=void 0,this.value_=void 0,this.id_=ct++}function O(e){P._allObserversCount++,lt&&ut.push(e)}function T(){P._allObserversCount--}function C(e){P.call(this),this.value_=e,this.oldObject_=void 0}function x(e){if(!Array.isArray(e))throw Error("Provided object is not an Array");C.call(this,e)}function I(e,t){P.call(this),this.object_=e,this.path_=d(t),this.directObserver_=void 0}function S(e){P.call(this),this.reportChangesOnOpen_=e,this.value_=[],this.directObserver_=void 0,this.observed_=[]}function A(e){return e}function k(e,t,n,r){this.callback_=void 0,this.target_=void 0,this.value_=void 0,this.observable_=e,this.getValueFn_=t||A,this.setValueFn_=n||A,this.dontPassThroughSet_=r}function L(e,t,n){for(var r={},i={},o=0;o<t.length;o++){var s=t[o];ft[s.type]?(s.name in n||(n[s.name]=s.oldValue),"update"!=s.type&&("add"!=s.type?s.name in r?(delete r[s.name],delete n[s.name]):i[s.name]=!0:s.name in i?delete i[s.name]:r[s.name]=!0)):(console.error("Unknown changeRecord type: "+s.type),console.error(s))}for(var a in r)r[a]=e[a];for(var a in i)i[a]=void 0;var c={};for(var a in n)if(!(a in r||a in i)){var u=e[a];n[a]!==u&&(c[a]=u)}return{added:r,removed:i,changed:c}}function M(e,t,n){return{index:e,removed:t,addedCount:n}}function N(){}function j(e,t,n,r,i,o){return bt.calcSplices(e,t,n,r,i,o)}function D(e,t,n,r){return n>t||e>r?-1:t==n||r==e?0:n>e?r>t?t-n:r-n:t>r?r-e:t-e}function R(e,t,n,r){for(var i=M(t,n,r),o=!1,s=0,a=0;a<e.length;a++){var c=e[a];if(c.index+=s,!o){var u=D(i.index,i.index+i.removed.length,c.index,c.index+c.addedCount);if(u>=0){e.splice(a,1),a--,s-=c.addedCount-c.removed.length,i.addedCount+=c.addedCount-u;var l=i.removed.length+c.removed.length-u;if(i.addedCount||l){var n=c.removed;if(i.index<c.index){var h=i.removed.slice(0,c.index-i.index);Array.prototype.push.apply(h,n),n=h}if(i.index+i.removed.length>c.index+c.addedCount){var d=i.removed.slice(c.index+c.addedCount-i.index);Array.prototype.push.apply(n,d)}i.removed=n,c.index<i.index&&(i.index=c.index)}else o=!0}else if(i.index<c.index){o=!0,e.splice(a,0,i),a++;var f=i.addedCount-i.removed.length;c.index+=f,s+=f}}}o||e.push(i)}function F(e,t){for(var n=[],o=0;o<t.length;o++){var s=t[o];switch(s.type){case"splice":R(n,s.index,s.removed.slice(),s.addedCount);break;case"add":case"update":case"delete":if(!r(s.name))continue;var a=i(s.name);if(0>a)continue;R(n,a,[s.oldValue],1);break;default:console.error("Unexpected record type: "+JSON.stringify(s))}}return n}function V(e,t){var n=[];return F(e,t).forEach(function(t){return 1==t.addedCount&&1==t.removed.length?void(t.removed[0]!==e[t.index]&&n.push(t)):void(n=n.concat(j(e,t.index,t.index+t.addedCount,t.removed,0,t.removed.length)))}),n}var B=e.testingExposeCycleCount,H=t(),q=n(),G=e.Number.isNaN||function(t){return"number"==typeof t&&e.isNaN(t)},Y="__proto__"in{}?function(e){return e}:function(e){var t=e.__proto__;if(!t)return e;var n=Object.create(t);return Object.getOwnPropertyNames(e).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}),n},U="[$_a-zA-Z]",X="[$_a-zA-Z0-9]",W=new RegExp("^"+U+"+"+X+"*$"),K={beforePath:{ws:["beforePath"],ident:["inIdent","append"],"[":["beforeElement"],eof:["afterPath"]},inPath:{ws:["inPath"],".":["beforeIdent"],"[":["beforeElement"],eof:["afterPath"]},beforeIdent:{ws:["beforeIdent"],ident:["inIdent","append"]},inIdent:{ident:["inIdent","append"],0:["inIdent","append"],number:["inIdent","append"],ws:["inPath","push"],".":["beforeIdent","push"],"[":["beforeElement","push"],eof:["afterPath","push"]},beforeElement:{ws:["beforeElement"],0:["afterZero","append"],number:["inIndex","append"],"'":["inSingleQuote","append",""],'"':["inDoubleQuote","append",""]},afterZero:{ws:["afterElement","push"],"]":["inPath","push"]},inIndex:{0:["inIndex","append"],number:["inIndex","append"],ws:["afterElement"],"]":["inPath","push"]},inSingleQuote:{"'":["afterElement"],eof:["error"],"else":["inSingleQuote","append"]},inDoubleQuote:{'"':["afterElement"],eof:["error"],"else":["inDoubleQuote","append"]},afterElement:{ws:["afterElement"],"]":["inPath","push"]}},Q={},z={};h.get=d,h.prototype=Y({__proto__:[],valid:!0,toString:function(){for(var e="",t=0;t<this.length;t++){var n=this[t];e+=l(n)?t?"."+n:n:f(n)}return e},getValueFrom:function(e){for(var t=0;t<this.length;t++){if(null==e)return;e=e[this[t]]}return e},iterateObjects:function(e,t){for(var n=0;n<this.length;n++){if(n&&(e=e[this[n-1]]),!o(e))return;t(e,this[n])}},compiledGetValueFromFn:function(){var e="",t="obj";e+="if (obj != null";for(var n,r=0;r<this.length-1;r++)n=this[r],t+=l(n)?"."+n:f(n),e+=" &&\n     "+t+" != null";e+=")\n";var n=this[r];return t+=l(n)?"."+n:f(n),e+="  return "+t+";\nelse\n  return undefined;",new Function("obj",e)},setValueFrom:function(e,t){if(!this.length)return!1;for(var n=0;n<this.length-1;n++){if(!o(e))return!1;e=e[this[n]]}return o(e)?(e[this[n]]=t,!0):!1}});var J=new h("",Q);J.valid=!1,J.getValueFrom=J.setValueFrom=function(){};var Z,$=1e3,et=[],tt=H?function(){return function(e){return Promise.resolve().then(e)}}():function(){return function(e){et.push(e)}}(),nt=[],rt=[],it=0,ot=1,st=2,at=3,ct=1;P.prototype={open:function(e,t){if(this.state_!=it)throw Error("Observer has already been opened.");return O(this),this.callback_=e,this.target_=t,this.connect_(),this.state_=ot,this.value_},close:function(){this.state_==ot&&(T(this),this.disconnect_(),this.value_=void 0,this.callback_=void 0,this.target_=void 0,this.state_=st)},deliver:function(){this.state_==ot&&p(this)},report_:function(e){try{this.callback_.apply(this.target_,e)}catch(t){P._errorThrownDuringCallback=!0,console.error("Exception caught during observer callback: "+(t.stack||t))}},discardChanges:function(){return this.check_(void 0,!0),this.value_}};var ut,lt=!H;P._allObserversCount=0,lt&&(ut=[]);var ht=!1;e.Platform=e.Platform||{},e.Platform.performMicrotaskCheckpoint=function(){if(!ht&&lt){ht=!0;var t,n,r=0;do{r++,n=ut,ut=[],t=!1;for(var i=0;i<n.length;i++){var o=n[i];o.state_==ot&&(o.check_()&&(t=!0),ut.push(o))}b()&&(t=!0)}while($>r&&t);B&&(e.dirtyCheckCycleCount=r),ht=!1}},lt&&(e.Platform.clearObservers=function(){ut=[]}),C.prototype=Y({__proto__:P.prototype,arrayObserve:!1,connect_:function(){H?this.directObserver_=_(this,this.value_,this.arrayObserve):this.oldObject_=this.copyObject(this.value_)},copyObject:function(e){var t=Array.isArray(e)?[]:{};for(var n in e)t[n]=e[n];return Array.isArray(e)&&(t.length=e.length),t},check_:function(e){var t,n;if(H){if(!e)return!1;n={},t=L(this.value_,e,n)}else n=this.oldObject_,t=g(this.value_,this.oldObject_);return m(t)?!1:(H||(this.oldObject_=this.copyObject(this.value_)),this.report_([t.added||{},t.removed||{},t.changed||{},function(e){return n[e]}]),!0)},disconnect_:function(){H?(this.directObserver_.close(),this.directObserver_=void 0):this.oldObject_=void 0},deliver:function(){this.state_==ot&&(H?this.directObserver_.deliver(!1):p(this))},discardChanges:function(){return this.directObserver_?this.directObserver_.deliver(!0):this.oldObject_=this.copyObject(this.value_),this.value_}}),x.prototype=Y({__proto__:C.prototype,arrayObserve:!0,copyObject:function(e){return e.slice()},check_:function(e){var t;if(H){if(!e)return!1;t=V(this.value_,e)}else t=j(this.value_,0,this.value_.length,this.oldObject_,0,this.oldObject_.length);return t&&t.length?(H||(this.oldObject_=this.copyObject(this.value_)),this.report_([t]),!0):!1}}),x.applySplices=function(e,t,n){n.forEach(function(n){for(var r=[n.index,n.removed.length],i=n.index;i<n.index+n.addedCount;)r.push(t[i]),i++;Array.prototype.splice.apply(e,r)})},I.prototype=Y({__proto__:P.prototype,get path(){return this.path_},connect_:function(){H&&(this.directObserver_=w(this,this.object_)),this.check_(void 0,!0)},disconnect_:function(){this.value_=void 0,this.directObserver_&&(this.directObserver_.close(this),this.directObserver_=void 0)},iterateObjects_:function(e){this.path_.iterateObjects(this.object_,e)},check_:function(e,t){var n=this.value_;return this.value_=this.path_.getValueFrom(this.object_),t||s(this.value_,n)?!1:(this.report_([this.value_,n,this]),!0)},setValue:function(e){this.path_&&this.path_.setValueFrom(this.object_,e)}});var dt={};S.prototype=Y({__proto__:P.prototype,connect_:function(){if(H){for(var e,t=!1,n=0;n<this.observed_.length;n+=2)if(e=this.observed_[n],e!==dt){t=!0;break}t&&(this.directObserver_=w(this,e))}this.check_(void 0,!this.reportChangesOnOpen_)},disconnect_:function(){for(var e=0;e<this.observed_.length;e+=2)this.observed_[e]===dt&&this.observed_[e+1].close();this.observed_.length=0,this.value_.length=0,this.directObserver_&&(this.directObserver_.close(this),this.directObserver_=void 0)},addPath:function(e,t){if(this.state_!=it&&this.state_!=at)throw Error("Cannot add paths once started.");var t=d(t);if(this.observed_.push(e,t),this.reportChangesOnOpen_){var n=this.observed_.length/2-1;this.value_[n]=t.getValueFrom(e)}},addObserver:function(e){if(this.state_!=it&&this.state_!=at)throw Error("Cannot add observers once started.");if(this.observed_.push(dt,e),this.reportChangesOnOpen_){var t=this.observed_.length/2-1;this.value_[t]=e.open(this.deliver,this)}},startReset:function(){if(this.state_!=ot)throw Error("Can only reset while open");this.state_=at,this.disconnect_()},finishReset:function(){if(this.state_!=at)throw Error("Can only finishReset after startReset");return this.state_=ot,this.connect_(),this.value_},iterateObjects_:function(e){for(var t,n=0;n<this.observed_.length;n+=2)t=this.observed_[n],t!==dt&&this.observed_[n+1].iterateObjects(t,e)},check_:function(e,t){for(var n,r=0;r<this.observed_.length;r+=2){var i,o=this.observed_[r],a=this.observed_[r+1];if(o===dt){var c=a;i=this.state_===it?c.open(this.deliver,this):c.discardChanges()}else i=a.getValueFrom(o);t?this.value_[r/2]=i:s(i,this.value_[r/2])||(n=n||[],n[r/2]=this.value_[r/2],this.value_[r/2]=i)}return n?(this.report_([this.value_,n,this.observed_]),!0):!1}}),k.prototype={open:function(e,t){return this.callback_=e,this.target_=t,this.value_=this.getValueFn_(this.observable_.open(this.observedCallback_,this)),this.value_},observedCallback_:function(e){if(e=this.getValueFn_(e),!s(e,this.value_)){var t=this.value_;this.value_=e,this.callback_.call(this.target_,this.value_,t)}},discardChanges:function(){return this.value_=this.getValueFn_(this.observable_.discardChanges()),this.value_},deliver:function(){return this.observable_.deliver()},setValue:function(e){return e=this.setValueFn_(e),!this.dontPassThroughSet_&&this.observable_.setValue?this.observable_.setValue(e):void 0},close:function(){this.observable_&&this.observable_.close(),this.callback_=void 0,this.target_=void 0,this.observable_=void 0,this.value_=void 0,this.getValueFn_=void 0,this.setValueFn_=void 0}};var ft={add:!0,update:!0,"delete":!0},pt=0,vt=1,mt=2,gt=3;N.prototype={calcEditDistances:function(e,t,n,r,i,o){for(var s=o-i+1,a=n-t+1,c=new Array(s),u=0;s>u;u++)c[u]=new Array(a),c[u][0]=u;for(var l=0;a>l;l++)c[0][l]=l;for(var u=1;s>u;u++)for(var l=1;a>l;l++)if(this.equals(e[t+l-1],r[i+u-1]))c[u][l]=c[u-1][l-1];else{var h=c[u-1][l]+1,d=c[u][l-1]+1;c[u][l]=d>h?h:d}return c},spliceOperationsFromEditDistances:function(e){for(var t=e.length-1,n=e[0].length-1,r=e[t][n],i=[];t>0||n>0;)if(0!=t)if(0!=n){var o,s=e[t-1][n-1],a=e[t-1][n],c=e[t][n-1];o=c>a?s>a?a:s:s>c?c:s,o==s?(s==r?i.push(pt):(i.push(vt),r=s),t--,n--):o==a?(i.push(gt),t--,r=a):(i.push(mt),n--,r=c)}else i.push(gt),t--;else i.push(mt),n--;return i.reverse(),i},calcSplices:function(e,t,n,r,i,o){var s=0,a=0,c=Math.min(n-t,o-i);if(0==t&&0==i&&(s=this.sharedPrefix(e,r,c)),n==e.length&&o==r.length&&(a=this.sharedSuffix(e,r,c-s)),t+=s,i+=s,n-=a,o-=a,n-t==0&&o-i==0)return[];if(t==n){for(var u=M(t,[],0);o>i;)u.removed.push(r[i++]);return[u]}if(i==o)return[M(t,[],n-t)];for(var l=this.spliceOperationsFromEditDistances(this.calcEditDistances(e,t,n,r,i,o)),u=void 0,h=[],d=t,f=i,p=0;p<l.length;p++)switch(l[p]){case pt:u&&(h.push(u),u=void 0),d++,f++;break;case vt:u||(u=M(d,[],0)),u.addedCount++,d++,u.removed.push(r[f]),f++;break;case mt:u||(u=M(d,[],0)),u.addedCount++,d++;break;case gt:u||(u=M(d,[],0)),u.removed.push(r[f]),f++}return u&&h.push(u),h},sharedPrefix:function(e,t,n){for(var r=0;n>r;r++)if(!this.equals(e[r],t[r]))return r;return n},sharedSuffix:function(e,t,n){for(var r=e.length,i=t.length,o=0;n>o&&this.equals(e[--r],t[--i]);)o++;return o},calculateSplices:function(e,t){return this.calcSplices(e,0,e.length,t,0,t.length)},equals:function(e,t){return e===t}};var bt=new N,yt=e;"undefined"!=typeof exports&&("undefined"!=typeof module&&module.exports&&(yt=exports=module.exports),yt=exports),yt.Observer=P,yt.Observer.runEOM_=tt,yt.Observer.observerSentinel_=dt,yt.Observer.hasObjectObserve=H,yt.ArrayObserver=x,yt.ArrayObserver.calculateSplices=function(e,t){return bt.calculateSplices(e,t)},yt.ArraySplice=N,yt.ObjectObserver=C,yt.PathObserver=I,yt.CompoundObserver=S,yt.Path=h,yt.ObserverTransform=k}("undefined"!=typeof global&&global&&"undefined"!=typeof module&&module?global:this||window),function(){"use strict";function e(e){for(;e.parentNode;)e=e.parentNode;return"function"==typeof e.getElementById?e:null}function t(e,t,n){var r=e.bindings_;return r||(r=e.bindings_={}),r[t]&&n[t].close(),r[t]=n}function n(e,t,n){return n}function r(e){return null==e?"":e}function i(e,t){e.data=r(t)}function o(e){return function(t){return i(e,t)}}function s(e,t,n,i){return n?void(i?e.setAttribute(t,""):e.removeAttribute(t)):void e.setAttribute(t,r(i))}function a(e,t,n){return function(r){s(e,t,n,r)}}function c(e){switch(e.type){case"checkbox":return _;case"radio":case"select-multiple":case"select-one":return"change";case"range":if(/Trident|MSIE/.test(navigator.userAgent))return"change";default:return"input"}}function u(e,t,n,i){e[t]=(i||r)(n)}function l(e,t,n){return function(r){return u(e,t,r,n)}}function h(){}function d(e,t,n,r){function i(){n.setValue(e[t]),n.discardChanges(),(r||h)(e),Platform.performMicrotaskCheckpoint()}var o=c(e);return e.addEventListener(o,i),{close:function(){e.removeEventListener(o,i),n.close()},observable_:n}}function f(e){return Boolean(e)}function p(t){if(t.form)return b(t.form.elements,function(e){return e!=t&&"INPUT"==e.tagName&&"radio"==e.type&&e.name==t.name});var n=e(t);if(!n)return[];var r=n.querySelectorAll('input[type="radio"][name="'+t.name+'"]');return b(r,function(e){return e!=t&&!e.form})}function v(e){"INPUT"===e.tagName&&"radio"===e.type&&p(e).forEach(function(e){var t=e.bindings_.checked;t&&t.observable_.setValue(!1)})}function m(e,t){var n,i,o,s=e.parentNode;s instanceof HTMLSelectElement&&s.bindings_&&s.bindings_.value&&(n=s,i=n.bindings_.value,o=n.value),e.value=r(t),n&&n.value!=o&&(i.observable_.setValue(n.value),i.observable_.discardChanges(),Platform.performMicrotaskCheckpoint())}function g(e){return function(t){m(e,t)}}var b=Array.prototype.filter.call.bind(Array.prototype.filter);Node.prototype.bind=function(e,t){console.error("Unhandled binding to Node: ",this,e,t)},Node.prototype.bindFinished=function(){};var y=n;Object.defineProperty(Platform,"enableBindingsReflection",{get:function(){return y===t},set:function(e){return y=e?t:n,e},configurable:!0}),Text.prototype.bind=function(e,t,n){if("textContent"!==e)return Node.prototype.bind.call(this,e,t,n);if(n)return i(this,t);var r=t;return i(this,r.open(o(this))),y(this,e,r)},Element.prototype.bind=function(e,t,n){var r="?"==e[e.length-1];if(r&&(this.removeAttribute(e),e=e.slice(0,-1)),n)return s(this,e,r,t);var i=t;return s(this,e,r,i.open(a(this,e,r))),y(this,e,i)};var _;!function(){var e=document.createElement("div"),t=e.appendChild(document.createElement("input"));t.setAttribute("type","checkbox");var n,r=0;t.addEventListener("click",function(){r++,n=n||"click"}),t.addEventListener("change",function(){r++,n=n||"change"});var i=document.createEvent("MouseEvent");i.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),t.dispatchEvent(i),_=1==r?"change":n}(),HTMLInputElement.prototype.bind=function(e,n,i){if("value"!==e&&"checked"!==e)return HTMLElement.prototype.bind.call(this,e,n,i);this.removeAttribute(e);var o="checked"==e?f:r,s="checked"==e?v:h;if(i)return u(this,e,n,o);var a=n,c=d(this,e,a,s);return u(this,e,a.open(l(this,e,o)),o),t(this,e,c)},HTMLTextAreaElement.prototype.bind=function(e,t,n){if("value"!==e)return HTMLElement.prototype.bind.call(this,e,t,n);if(this.removeAttribute("value"),n)return u(this,"value",t);var i=t,o=d(this,"value",i);return u(this,"value",i.open(l(this,"value",r))),y(this,e,o)},HTMLOptionElement.prototype.bind=function(e,t,n){if("value"!==e)return HTMLElement.prototype.bind.call(this,e,t,n);if(this.removeAttribute("value"),n)return m(this,t);var r=t,i=d(this,"value",r);return m(this,r.open(g(this))),y(this,e,i)
  },HTMLSelectElement.prototype.bind=function(e,n,r){if("selectedindex"===e&&(e="selectedIndex"),"selectedIndex"!==e&&"value"!==e)return HTMLElement.prototype.bind.call(this,e,n,r);if(this.removeAttribute(e),r)return u(this,e,n);var i=n,o=d(this,e,i);return u(this,e,i.open(l(this,e))),t(this,e,o)}}(this),function(e){"use strict";function t(e){if(!e)throw new Error("Assertion failed")}function n(e){for(var t;t=e.parentNode;)e=t;return e}function r(e,t){if(t){for(var r,i="#"+t;!r&&(e=n(e),e.protoContent_?r=e.protoContent_.querySelector(i):e.getElementById&&(r=e.getElementById(t)),!r&&e.templateCreator_);)e=e.templateCreator_;return r}}function i(e){return"template"==e.tagName&&"http://www.w3.org/2000/svg"==e.namespaceURI}function o(e){return"TEMPLATE"==e.tagName&&"http://www.w3.org/1999/xhtml"==e.namespaceURI}function s(e){return Boolean(R[e.tagName]&&e.hasAttribute("template"))}function a(e){return void 0===e.isTemplate_&&(e.isTemplate_="TEMPLATE"==e.tagName||s(e)),e.isTemplate_}function c(e,t){var n=e.querySelectorAll(V);a(e)&&t(e),L(n,t)}function u(e){function t(e){HTMLTemplateElement.decorate(e)||u(e.content)}c(e,t)}function l(e,t){Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}function h(e){var t=e.ownerDocument;if(!t.defaultView)return t;var n=t.templateContentsOwner_;if(!n){for(n=t.implementation.createHTMLDocument("");n.lastChild;)n.removeChild(n.lastChild);t.templateContentsOwner_=n}return n}function d(e){if(!e.stagingDocument_){var t=e.ownerDocument;if(!t.stagingDocument_){t.stagingDocument_=t.implementation.createHTMLDocument(""),t.stagingDocument_.isStagingDocument=!0;var n=t.stagingDocument_.createElement("base");n.href=document.baseURI,t.stagingDocument_.head.appendChild(n),t.stagingDocument_.stagingDocument_=t.stagingDocument_}e.stagingDocument_=t.stagingDocument_}return e.stagingDocument_}function f(e){var t=e.ownerDocument.createElement("template");e.parentNode.insertBefore(t,e);for(var n=e.attributes,r=n.length;r-->0;){var i=n[r];D[i.name]&&("template"!==i.name&&t.setAttribute(i.name,i.value),e.removeAttribute(i.name))}return t}function p(e){var t=e.ownerDocument.createElement("template");e.parentNode.insertBefore(t,e);for(var n=e.attributes,r=n.length;r-->0;){var i=n[r];t.setAttribute(i.name,i.value),e.removeAttribute(i.name)}return e.parentNode.removeChild(e),t}function v(e,t,n){var r=e.content;if(n)return void r.appendChild(t);for(var i;i=t.firstChild;)r.appendChild(i)}function m(e){H?e.__proto__=HTMLTemplateElement.prototype:l(e,HTMLTemplateElement.prototype)}function g(e){e.setModelFn_||(e.setModelFn_=function(){e.setModelFnScheduled_=!1;var t=T(e,e.delegate_&&e.delegate_.prepareBinding);w(e,t,e.model_)}),e.setModelFnScheduled_||(e.setModelFnScheduled_=!0,Observer.runEOM_(e.setModelFn_))}function b(e,t,n,r){if(e&&e.length){for(var i,o=e.length,s=0,a=0,c=0,u=!0;o>a;){var s=e.indexOf("{{",a),l=e.indexOf("[[",a),h=!1,d="}}";if(l>=0&&(0>s||s>l)&&(s=l,h=!0,d="]]"),c=0>s?-1:e.indexOf(d,s+2),0>c){if(!i)return;i.push(e.slice(a));break}i=i||[],i.push(e.slice(a,s));var f=e.slice(s+2,c).trim();i.push(h),u=u&&h;var p=r&&r(f,t,n);i.push(null==p?Path.get(f):null),i.push(p),a=c+2}return a===o&&i.push(""),i.hasOnePath=5===i.length,i.isSimplePath=i.hasOnePath&&""==i[0]&&""==i[4],i.onlyOneTime=u,i.combinator=function(e){for(var t=i[0],n=1;n<i.length;n+=4){var r=i.hasOnePath?e:e[(n-1)/4];void 0!==r&&(t+=r),t+=i[n+3]}return t},i}}function y(e,t,n,r){if(t.hasOnePath){var i=t[3],o=i?i(r,n,!0):t[2].getValueFrom(r);return t.isSimplePath?o:t.combinator(o)}for(var s=[],a=1;a<t.length;a+=4){var i=t[a+2];s[(a-1)/4]=i?i(r,n):t[a+1].getValueFrom(r)}return t.combinator(s)}function _(e,t,n,r){var i=t[3],o=i?i(r,n,!1):new PathObserver(r,t[2]);return t.isSimplePath?o:new ObserverTransform(o,t.combinator)}function E(e,t,n,r){if(t.onlyOneTime)return y(e,t,n,r);if(t.hasOnePath)return _(e,t,n,r);for(var i=new CompoundObserver,o=1;o<t.length;o+=4){var s=t[o],a=t[o+2];if(a){var c=a(r,n,s);s?i.addPath(c):i.addObserver(c)}else{var u=t[o+1];s?i.addPath(u.getValueFrom(r)):i.addPath(r,u)}}return new ObserverTransform(i,t.combinator)}function w(e,t,n,r){for(var i=0;i<t.length;i+=2){var o=t[i],s=t[i+1],a=E(o,s,e,n),c=e.bind(o,a,s.onlyOneTime);c&&r&&r.push(c)}if(e.bindFinished(),t.isTemplate){e.model_=n;var u=e.processBindingDirectives_(t);r&&u&&r.push(u)}}function P(e,t,n){var r=e.getAttribute(t);return b(""==r?"{{}}":r,t,e,n)}function O(e,n){t(e);for(var r=[],i=0;i<e.attributes.length;i++){for(var o=e.attributes[i],s=o.name,c=o.value;"_"===s[0];)s=s.substring(1);if(!a(e)||s!==j&&s!==M&&s!==N){var u=b(c,s,e,n);u&&r.push(s,u)}}return a(e)&&(r.isTemplate=!0,r.if=P(e,j,n),r.bind=P(e,M,n),r.repeat=P(e,N,n),!r.if||r.bind||r.repeat||(r.bind=b("{{}}",M,e,n))),r}function T(e,t){if(e.nodeType===Node.ELEMENT_NODE)return O(e,t);if(e.nodeType===Node.TEXT_NODE){var n=b(e.data,"textContent",e,t);if(n)return["textContent",n]}return[]}function C(e,t,n,r,i,o,s){for(var a=t.appendChild(n.importNode(e,!1)),c=0,u=e.firstChild;u;u=u.nextSibling)C(u,a,n,r.children[c++],i,o,s);return r.isTemplate&&(HTMLTemplateElement.decorate(a,e),o&&a.setDelegate_(o)),w(a,r,i,s),a}function x(e,t){var n=T(e,t);n.children={};for(var r=0,i=e.firstChild;i;i=i.nextSibling)n.children[r++]=x(i,t);return n}function I(e){var t=e.id_;return t||(t=e.id_=Y++),t}function S(e,t){var n=I(e);if(t){var r=t.bindingMaps[n];return r||(r=t.bindingMaps[n]=x(e,t.prepareBinding)||[]),r}var r=e.bindingMap_;return r||(r=e.bindingMap_=x(e,void 0)||[]),r}function A(e){this.closed=!1,this.templateElement_=e,this.instances=[],this.deps=void 0,this.iteratedValue=[],this.presentValue=void 0,this.arrayObserver=void 0}var k,L=Array.prototype.forEach.call.bind(Array.prototype.forEach);e.Map&&"function"==typeof e.Map.prototype.forEach?k=e.Map:(k=function(){this.keys=[],this.values=[]},k.prototype={set:function(e,t){var n=this.keys.indexOf(e);0>n?(this.keys.push(e),this.values.push(t)):this.values[n]=t},get:function(e){var t=this.keys.indexOf(e);if(!(0>t))return this.values[t]},"delete":function(e){var t=this.keys.indexOf(e);return 0>t?!1:(this.keys.splice(t,1),this.values.splice(t,1),!0)},forEach:function(e,t){for(var n=0;n<this.keys.length;n++)e.call(t||this,this.values[n],this.keys[n],this)}});"function"!=typeof document.contains&&(Document.prototype.contains=function(e){return e===this||e.parentNode===this?!0:this.documentElement.contains(e)});var M="bind",N="repeat",j="if",D={template:!0,repeat:!0,bind:!0,ref:!0,"if":!0},R={THEAD:!0,TBODY:!0,TFOOT:!0,TH:!0,TR:!0,TD:!0,COLGROUP:!0,COL:!0,CAPTION:!0,OPTION:!0,OPTGROUP:!0},F="undefined"!=typeof HTMLTemplateElement;F&&!function(){var e=document.createElement("template"),t=e.content.ownerDocument,n=t.appendChild(t.createElement("html")),r=n.appendChild(t.createElement("head")),i=t.createElement("base");i.href=document.baseURI,r.appendChild(i)}();var V="template, "+Object.keys(R).map(function(e){return e.toLowerCase()+"[template]"}).join(", ");document.addEventListener("DOMContentLoaded",function(){u(document),Platform.performMicrotaskCheckpoint()},!1),F||(e.HTMLTemplateElement=function(){throw TypeError("Illegal constructor")});var B,H="__proto__"in{};"function"==typeof MutationObserver&&(B=new MutationObserver(function(e){for(var t=0;t<e.length;t++)e[t].target.refChanged_()})),HTMLTemplateElement.decorate=function(e,n){if(e.templateIsDecorated_)return!1;var r=e;r.templateIsDecorated_=!0;var a=o(r)&&F,c=a,l=!a,d=!1;if(a||(s(r)?(t(!n),r=f(e),r.templateIsDecorated_=!0,a=F,d=!0):i(r)&&(r=p(e),r.templateIsDecorated_=!0,a=F)),!a){m(r);var g=h(r);r.content_=g.createDocumentFragment()}return n?r.instanceRef_=n:l?v(r,e,d):c&&u(r.content),!0},HTMLTemplateElement.bootstrap=u;var q=e.HTMLUnknownElement||HTMLElement,G={get:function(){return this.content_},enumerable:!0,configurable:!0};F||(HTMLTemplateElement.prototype=Object.create(q.prototype),Object.defineProperty(HTMLTemplateElement.prototype,"content",G)),l(HTMLTemplateElement.prototype,{bind:function(e,t,n){if("ref"!=e)return Element.prototype.bind.call(this,e,t,n);var r=this,i=n?t:t.open(function(e){r.setAttribute("ref",e),r.refChanged_()});return this.setAttribute("ref",i),this.refChanged_(),n?void 0:(this.bindings_?this.bindings_.ref=t:this.bindings_={ref:t},t)},processBindingDirectives_:function(e){return this.iterator_&&this.iterator_.closeDeps(),e.if||e.bind||e.repeat?(this.iterator_||(this.iterator_=new A(this)),this.iterator_.updateDependencies(e,this.model_),B&&B.observe(this,{attributes:!0,attributeFilter:["ref"]}),this.iterator_):void(this.iterator_&&(this.iterator_.close(),this.iterator_=void 0))},createInstance:function(e,t,n){t?n=this.newDelegate_(t):n||(n=this.delegate_),this.refContent_||(this.refContent_=this.ref_.content);var r=this.refContent_;if(null===r.firstChild)return U;var i=S(r,n),o=d(this),s=o.createDocumentFragment();s.templateCreator_=this,s.protoContent_=r,s.bindings_=[],s.terminator_=null;for(var a=s.templateInstance_={firstNode:null,lastNode:null,model:e},c=0,u=!1,l=r.firstChild;l;l=l.nextSibling){null===l.nextSibling&&(u=!0);var h=C(l,s,o,i.children[c++],e,n,s.bindings_);h.templateInstance_=a,u&&(s.terminator_=h)}return a.firstNode=s.firstChild,a.lastNode=s.lastChild,s.templateCreator_=void 0,s.protoContent_=void 0,s},get model(){return this.model_},set model(e){this.model_=e,g(this)},get bindingDelegate(){return this.delegate_&&this.delegate_.raw},refChanged_:function(){this.iterator_&&this.refContent_!==this.ref_.content&&(this.refContent_=void 0,this.iterator_.valueChanged(),this.iterator_.updateIteratedValue(this.iterator_.getUpdatedValue()))},clear:function(){this.model_=void 0,this.delegate_=void 0,this.bindings_&&this.bindings_.ref&&this.bindings_.ref.close(),this.refContent_=void 0,this.iterator_&&(this.iterator_.valueChanged(),this.iterator_.close(),this.iterator_=void 0)},setDelegate_:function(e){this.delegate_=e,this.bindingMap_=void 0,this.iterator_&&(this.iterator_.instancePositionChangedFn_=void 0,this.iterator_.instanceModelFn_=void 0)},newDelegate_:function(e){function t(t){var n=e&&e[t];if("function"==typeof n)return function(){return n.apply(e,arguments)}}if(e)return{bindingMaps:{},raw:e,prepareBinding:t("prepareBinding"),prepareInstanceModel:t("prepareInstanceModel"),prepareInstancePositionChanged:t("prepareInstancePositionChanged")}},set bindingDelegate(e){if(this.delegate_)throw Error("Template must be cleared before a new bindingDelegate can be assigned");this.setDelegate_(this.newDelegate_(e))},get ref_(){var e=r(this,this.getAttribute("ref"));if(e||(e=this.instanceRef_),!e)return this;var t=e.ref_;return t?t:e}});var Y=1;Object.defineProperty(Node.prototype,"templateInstance",{get:function(){var e=this.templateInstance_;return e?e:this.parentNode?this.parentNode.templateInstance:void 0}});var U=document.createDocumentFragment();U.bindings_=[],U.terminator_=null,A.prototype={closeDeps:function(){var e=this.deps;e&&(e.ifOneTime===!1&&e.ifValue.close(),e.oneTime===!1&&e.value.close())},updateDependencies:function(e,t){this.closeDeps();var n=this.deps={},r=this.templateElement_,i=!0;if(e.if){if(n.hasIf=!0,n.ifOneTime=e.if.onlyOneTime,n.ifValue=E(j,e.if,r,t),i=n.ifValue,n.ifOneTime&&!i)return void this.valueChanged();n.ifOneTime||(i=i.open(this.updateIfValue,this))}e.repeat?(n.repeat=!0,n.oneTime=e.repeat.onlyOneTime,n.value=E(N,e.repeat,r,t)):(n.repeat=!1,n.oneTime=e.bind.onlyOneTime,n.value=E(M,e.bind,r,t));var o=n.value;return n.oneTime||(o=o.open(this.updateIteratedValue,this)),i?void this.updateValue(o):void this.valueChanged()},getUpdatedValue:function(){var e=this.deps.value;return this.deps.oneTime||(e=e.discardChanges()),e},updateIfValue:function(e){return e?void this.updateValue(this.getUpdatedValue()):void this.valueChanged()},updateIteratedValue:function(e){if(this.deps.hasIf){var t=this.deps.ifValue;if(this.deps.ifOneTime||(t=t.discardChanges()),!t)return void this.valueChanged()}this.updateValue(e)},updateValue:function(e){this.deps.repeat||(e=[e]);var t=this.deps.repeat&&!this.deps.oneTime&&Array.isArray(e);this.valueChanged(e,t)},valueChanged:function(e,t){Array.isArray(e)||(e=[]),e!==this.iteratedValue&&(this.unobserve(),this.presentValue=e,t&&(this.arrayObserver=new ArrayObserver(this.presentValue),this.arrayObserver.open(this.handleSplices,this)),this.handleSplices(ArrayObserver.calculateSplices(this.presentValue,this.iteratedValue)))},getLastInstanceNode:function(e){if(-1==e)return this.templateElement_;var t=this.instances[e],n=t.terminator_;if(!n)return this.getLastInstanceNode(e-1);if(n.nodeType!==Node.ELEMENT_NODE||this.templateElement_===n)return n;var r=n.iterator_;return r?r.getLastTemplateNode():n},getLastTemplateNode:function(){return this.getLastInstanceNode(this.instances.length-1)},insertInstanceAt:function(e,t){var n=this.getLastInstanceNode(e-1),r=this.templateElement_.parentNode;this.instances.splice(e,0,t),r.insertBefore(t,n.nextSibling)},extractInstanceAt:function(e){for(var t=this.getLastInstanceNode(e-1),n=this.getLastInstanceNode(e),r=this.templateElement_.parentNode,i=this.instances.splice(e,1)[0];n!==t;){var o=t.nextSibling;o==n&&(n=t),i.appendChild(r.removeChild(o))}return i},getDelegateFn:function(e){return e=e&&e(this.templateElement_),"function"==typeof e?e:null},handleSplices:function(e){if(!this.closed&&e.length){var t=this.templateElement_;if(!t.parentNode)return void this.close();ArrayObserver.applySplices(this.iteratedValue,this.presentValue,e);var n=t.delegate_;void 0===this.instanceModelFn_&&(this.instanceModelFn_=this.getDelegateFn(n&&n.prepareInstanceModel)),void 0===this.instancePositionChangedFn_&&(this.instancePositionChangedFn_=this.getDelegateFn(n&&n.prepareInstancePositionChanged));for(var r=new k,i=0,o=0;o<e.length;o++){for(var s=e[o],a=s.removed,c=0;c<a.length;c++){var u=a[c],l=this.extractInstanceAt(s.index+i);l!==U&&r.set(u,l)}i-=s.addedCount}for(var o=0;o<e.length;o++)for(var s=e[o],h=s.index;h<s.index+s.addedCount;h++){var u=this.iteratedValue[h],l=r.get(u);l?r.delete(u):(this.instanceModelFn_&&(u=this.instanceModelFn_(u)),l=void 0===u?U:t.createInstance(u,void 0,n)),this.insertInstanceAt(h,l)}r.forEach(function(e){this.closeInstanceBindings(e)},this),this.instancePositionChangedFn_&&this.reportInstancesMoved(e)}},reportInstanceMoved:function(e){var t=this.instances[e];t!==U&&this.instancePositionChangedFn_(t.templateInstance_,e)},reportInstancesMoved:function(e){for(var t=0,n=0,r=0;r<e.length;r++){var i=e[r];if(0!=n)for(;t<i.index;)this.reportInstanceMoved(t),t++;else t=i.index;for(;t<i.index+i.addedCount;)this.reportInstanceMoved(t),t++;n+=i.addedCount-i.removed.length}if(0!=n)for(var o=this.instances.length;o>t;)this.reportInstanceMoved(t),t++},closeInstanceBindings:function(e){for(var t=e.bindings_,n=0;n<t.length;n++)t[n].close()},unobserve:function(){this.arrayObserver&&(this.arrayObserver.close(),this.arrayObserver=void 0)},close:function(){if(!this.closed){this.unobserve();for(var e=0;e<this.instances.length;e++)this.closeInstanceBindings(this.instances[e]);this.instances.length=0,this.closeDeps(),this.templateElement_.iterator_=void 0,this.closed=!0}}},HTMLTemplateElement.forAllTemplatesFrom_=c}(this),function(e){"use strict";function t(e){return void 0!==d[e]}function n(){a.call(this),this._isInvalid=!0}function r(e){return""==e&&n.call(this),e.toLowerCase()}function i(e){var t=e.charCodeAt(0);return t>32&&127>t&&-1==[34,35,60,62,63,96].indexOf(t)?e:encodeURIComponent(e)}function o(e){var t=e.charCodeAt(0);return t>32&&127>t&&-1==[34,35,60,62,96].indexOf(t)?e:encodeURIComponent(e)}function s(e,s,a){function c(e){y.push(e)}var u=s||"scheme start",l=0,h="",g=!1,b=!1,y=[];e:for(;(e[l-1]!=p||0==l)&&!this._isInvalid;){var _=e[l];switch(u){case"scheme start":if(!_||!v.test(_)){if(s){c("Invalid scheme.");break e}h="",u="no scheme";continue}h+=_.toLowerCase(),u="scheme";break;case"scheme":if(_&&m.test(_))h+=_.toLowerCase();else{if(":"!=_){if(s){if(p==_)break e;c("Code point not allowed in scheme: "+_);break e}h="",l=0,u="no scheme";continue}if(this._scheme=h,h="",s)break e;t(this._scheme)&&(this._isRelative=!0),u="file"==this._scheme?"relative":this._isRelative&&a&&a._scheme==this._scheme?"relative or authority":this._isRelative?"authority first slash":"scheme data"}break;case"scheme data":"?"==_?(query="?",u="query"):"#"==_?(this._fragment="#",u="fragment"):p!=_&&"	"!=_&&"\n"!=_&&"\r"!=_&&(this._schemeData+=i(_));break;case"no scheme":if(a&&t(a._scheme)){u="relative";continue}c("Missing scheme."),n.call(this);break;case"relative or authority":if("/"!=_||"/"!=e[l+1]){c("Expected /, got: "+_),u="relative";continue}u="authority ignore slashes";break;case"relative":if(this._isRelative=!0,"file"!=this._scheme&&(this._scheme=a._scheme),p==_){this._host=a._host,this._port=a._port,this._path=a._path.slice(),this._query=a._query;break e}if("/"==_||"\\"==_)"\\"==_&&c("\\ is an invalid code point."),u="relative slash";else if("?"==_)this._host=a._host,this._port=a._port,this._path=a._path.slice(),this._query="?",u="query";else{if("#"!=_){var E=e[l+1],w=e[l+2];("file"!=this._scheme||!v.test(_)||":"!=E&&"|"!=E||p!=w&&"/"!=w&&"\\"!=w&&"?"!=w&&"#"!=w)&&(this._host=a._host,this._port=a._port,this._path=a._path.slice(),this._path.pop()),u="relative path";continue}this._host=a._host,this._port=a._port,this._path=a._path.slice(),this._query=a._query,this._fragment="#",u="fragment"}break;case"relative slash":if("/"!=_&&"\\"!=_){"file"!=this._scheme&&(this._host=a._host,this._port=a._port),u="relative path";continue}"\\"==_&&c("\\ is an invalid code point."),u="file"==this._scheme?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!=_){c("Expected '/', got: "+_),u="authority ignore slashes";continue}u="authority second slash";break;case"authority second slash":if(u="authority ignore slashes","/"!=_){c("Expected '/', got: "+_);continue}break;case"authority ignore slashes":if("/"!=_&&"\\"!=_){u="authority";continue}c("Expected authority, got: "+_);break;case"authority":if("@"==_){g&&(c("@ already seen."),h+="%40"),g=!0;for(var P=0;P<h.length;P++){var O=h[P];if("	"!=O&&"\n"!=O&&"\r"!=O)if(":"!=O||null!==this._password){var T=i(O);null!==this._password?this._password+=T:this._username+=T}else this._password="";else c("Invalid whitespace in authority.")}h=""}else{if(p==_||"/"==_||"\\"==_||"?"==_||"#"==_){l-=h.length,h="",u="host";continue}h+=_}break;case"file host":if(p==_||"/"==_||"\\"==_||"?"==_||"#"==_){2!=h.length||!v.test(h[0])||":"!=h[1]&&"|"!=h[1]?0==h.length?u="relative path start":(this._host=r.call(this,h),h="",u="relative path start"):u="relative path";continue}"	"==_||"\n"==_||"\r"==_?c("Invalid whitespace in file host."):h+=_;break;case"host":case"hostname":if(":"!=_||b){if(p==_||"/"==_||"\\"==_||"?"==_||"#"==_){if(this._host=r.call(this,h),h="",u="relative path start",s)break e;continue}"	"!=_&&"\n"!=_&&"\r"!=_?("["==_?b=!0:"]"==_&&(b=!1),h+=_):c("Invalid code point in host/hostname: "+_)}else if(this._host=r.call(this,h),h="",u="port","hostname"==s)break e;break;case"port":if(/[0-9]/.test(_))h+=_;else{if(p==_||"/"==_||"\\"==_||"?"==_||"#"==_||s){if(""!=h){var C=parseInt(h,10);C!=d[this._scheme]&&(this._port=C+""),h=""}if(s)break e;u="relative path start";continue}"	"==_||"\n"==_||"\r"==_?c("Invalid code point in port: "+_):n.call(this)}break;case"relative path start":if("\\"==_&&c("'\\' not allowed in path."),u="relative path","/"!=_&&"\\"!=_)continue;break;case"relative path":if(p!=_&&"/"!=_&&"\\"!=_&&(s||"?"!=_&&"#"!=_))"	"!=_&&"\n"!=_&&"\r"!=_&&(h+=i(_));else{"\\"==_&&c("\\ not allowed in relative path.");var x;(x=f[h.toLowerCase()])&&(h=x),".."==h?(this._path.pop(),"/"!=_&&"\\"!=_&&this._path.push("")):"."==h&&"/"!=_&&"\\"!=_?this._path.push(""):"."!=h&&("file"==this._scheme&&0==this._path.length&&2==h.length&&v.test(h[0])&&"|"==h[1]&&(h=h[0]+":"),this._path.push(h)),h="","?"==_?(this._query="?",u="query"):"#"==_&&(this._fragment="#",u="fragment")}break;case"query":s||"#"!=_?p!=_&&"	"!=_&&"\n"!=_&&"\r"!=_&&(this._query+=o(_)):(this._fragment="#",u="fragment");break;case"fragment":p!=_&&"	"!=_&&"\n"!=_&&"\r"!=_&&(this._fragment+=_)}l++}}function a(){this._scheme="",this._schemeData="",this._username="",this._password=null,this._host="",this._port="",this._path=[],this._query="",this._fragment="",this._isInvalid=!1,this._isRelative=!1}function c(e,t){void 0===t||t instanceof c||(t=new c(String(t))),this._url=e,a.call(this);var n=e.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,"");s.call(this,n,null,t)}var u=!1;if(!e.forceJURL)try{var l=new URL("b","http://a");l.pathname="c%20d",u="http://a/c%20d"===l.href}catch(h){}if(!u){var d=Object.create(null);d.ftp=21,d.file=0,d.gopher=70,d.http=80,d.https=443,d.ws=80,d.wss=443;var f=Object.create(null);f["%2e"]=".",f[".%2e"]="..",f["%2e."]="..",f["%2e%2e"]="..";var p=void 0,v=/[a-zA-Z]/,m=/[a-zA-Z0-9\+\-\.]/;c.prototype={get href(){if(this._isInvalid)return this._url;var e="";return(""!=this._username||null!=this._password)&&(e=this._username+(null!=this._password?":"+this._password:"")+"@"),this.protocol+(this._isRelative?"//"+e+this.host:"")+this.pathname+this._query+this._fragment},set href(e){a.call(this),s.call(this,e)},get protocol(){return this._scheme+":"},set protocol(e){this._isInvalid||s.call(this,e+":","scheme start")},get host(){return this._isInvalid?"":this._port?this._host+":"+this._port:this._host},set host(e){!this._isInvalid&&this._isRelative&&s.call(this,e,"host")},get hostname(){return this._host},set hostname(e){!this._isInvalid&&this._isRelative&&s.call(this,e,"hostname")},get port(){return this._port},set port(e){!this._isInvalid&&this._isRelative&&s.call(this,e,"port")},get pathname(){return this._isInvalid?"":this._isRelative?"/"+this._path.join("/"):this._schemeData},set pathname(e){!this._isInvalid&&this._isRelative&&(this._path=[],s.call(this,e,"relative path start"))},get search(){return this._isInvalid||!this._query||"?"==this._query?"":this._query},set search(e){!this._isInvalid&&this._isRelative&&(this._query="?","?"==e[0]&&(e=e.slice(1)),s.call(this,e,"query"))},get hash(){return this._isInvalid||!this._fragment||"#"==this._fragment?"":this._fragment},set hash(e){this._isInvalid||(this._fragment="#","#"==e[0]&&(e=e.slice(1)),s.call(this,e,"fragment"))},get origin(){var e;if(this._isInvalid||!this._scheme)return"";switch(this._scheme){case"data":case"file":case"javascript":case"mailto":return"null"}return e=this.host,e?this._scheme+"://"+e:""}};var g=e.URL;g&&(c.createObjectURL=function(){return g.createObjectURL.apply(g,arguments)},c.revokeObjectURL=function(e){g.revokeObjectURL(e)}),e.URL=c}}(this),function(e){function t(e){o.textContent=r++,i.push(e)}function n(){for(;i.length;)i.shift()()}var r=0,i=[],o=document.createTextNode("");new(window.MutationObserver||JsMutationObserver)(n).observe(o,{characterData:!0}),e.endOfMicrotask=t,Platform.endOfMicrotask=t}(Polymer),function(e){function t(){s||(s=!0,n(function(){s=!1,r.data&&console.group("flush"),Platform.performMicrotaskCheckpoint(),r.data&&console.groupEnd()}))}var n=e.endOfMicrotask,r=window.WebComponents?WebComponents.flags.log:{},i=document.createElement("style");i.textContent="template {display: none !important;} /* injected by platform.js */";var o=document.querySelector("head");o.insertBefore(i,o.firstChild);var s;if(Observer.hasObjectObserve)t=function(){};else{var a=125;window.addEventListener("WebComponentsReady",function(){t();var n=function(){"hidden"===document.visibilityState?e.flushPoll&&clearInterval(e.flushPoll):e.flushPoll=setInterval(t,a)};"string"==typeof document.visibilityState&&document.addEventListener("visibilitychange",n),n()})}if(window.CustomElements&&!CustomElements.useNative){var c=Document.prototype.importNode;Document.prototype.importNode=function(e,t){var n=c.call(this,e,t);return CustomElements.upgradeAll(n),n}}e.flush=t,Platform.flush=t}(window.Polymer),function(e){function t(e){var t=new URL(e.ownerDocument.baseURI);return t.search="",t.hash="",t}function n(e,t,n,i){return e.replace(i,function(e,i,o,s){var a=o.replace(/["']/g,"");return a=r(t,a,n),i+"'"+a+"'"+s})}function r(e,t,n){if(t&&"/"===t[0])return t;if(t&&"#"===t[0])return t;var r=new URL(t,e);return n?r.href:i(r.href)}function i(e){var n=t(document.documentElement),r=new URL(e,n);return r.host===n.host&&r.port===n.port&&r.protocol===n.protocol?o(n,r):e}function o(e,t){for(var n=e.pathname,r=t.pathname,i=n.split("/"),o=r.split("/");i.length&&i[0]===o[0];)i.shift(),o.shift();for(var s=0,a=i.length-1;a>s;s++)o.unshift("..");var c=t.href.slice(-1)===d?d:t.hash;return o.join("/")+t.search+c}var s={resolveDom:function(e,n){n=n||t(e),this.resolveAttributes(e,n),this.resolveStyles(e,n);var r=e.querySelectorAll("template");if(r)for(var i,o=0,s=r.length;s>o&&(i=r[o]);o++)i.content&&this.resolveDom(i.content,n)},resolveTemplate:function(e){this.resolveDom(e.content,t(e))},resolveStyles:function(e,t){var n=e.querySelectorAll("style");if(n)for(var r,i=0,o=n.length;o>i&&(r=n[i]);i++)this.resolveStyle(r,t)},resolveStyle:function(e,n){n=n||t(e),e.textContent=this.resolveCssText(e.textContent,n)},resolveCssText:function(e,t,r){return e=n(e,t,r,a),n(e,t,r,c)},resolveAttributes:function(e,t){e.hasAttributes&&e.hasAttributes()&&this.resolveElementAttributes(e,t);var n=e&&e.querySelectorAll(l);if(n)for(var r,i=0,o=n.length;o>i&&(r=n[i]);i++)this.resolveElementAttributes(r,t)},resolveElementAttributes:function(e,i){i=i||t(e),u.forEach(function(t){var o,s=e.attributes[t],c=s&&s.value;c&&c.search(h)<0&&(o="style"===t?n(c,i,!1,a):r(i,c),s.value=o)})}},a=/(url\()([^)]*)(\))/g,c=/(@import[\s]+(?!url\())([^;]*)(;)/g,u=["href","src","action","style","url"],l="["+u.join("],[")+"]",h="{{.*}}",d="#";e.urlResolver=s}(Polymer),function(e){function t(e){this.cache=Object.create(null),this.map=Object.create(null),this.requests=0,this.regex=e}var n=Polymer.endOfMicrotask;t.prototype={extractUrls:function(e,t){for(var n,r,i=[];n=this.regex.exec(e);)r=new URL(n[1],t),i.push({matched:n[0],url:r.href});return i},process:function(e,t,n){var r=this.extractUrls(e,t),i=n.bind(null,this.map);this.fetch(r,i)},fetch:function(e,t){var n=e.length;if(!n)return t();for(var r,i,o,s=function(){0===--n&&t()},a=0;n>a;a++)r=e[a],o=r.url,i=this.cache[o],i||(i=this.xhr(o),i.match=r,this.cache[o]=i),i.wait(s)},handleXhr:function(e){var t=e.match,n=t.url,r=e.response||e.responseText||"";this.map[n]=r,this.fetch(this.extractUrls(r,n),e.resolve)},xhr:function(e){this.requests++;var t=new XMLHttpRequest;return t.open("GET",e,!0),t.send(),t.onerror=t.onload=this.handleXhr.bind(this,t),t.pending=[],t.resolve=function(){for(var e=t.pending,n=0;n<e.length;n++)e[n]();t.pending=null},t.wait=function(e){t.pending?t.pending.push(e):n(e)},t}},e.Loader=t}(Polymer),function(e){function t(){this.loader=new r(this.regex)}var n=e.urlResolver,r=e.Loader;t.prototype={regex:/@import\s+(?:url)?["'\(]*([^'"\)]*)['"\)]*;/g,resolve:function(e,t,n){var r=function(r){n(this.flatten(e,t,r))}.bind(this);this.loader.process(e,t,r)},resolveNode:function(e,t,n){var r=e.textContent,i=function(t){e.textContent=t,n(e)};this.resolve(r,t,i)},flatten:function(e,t,r){for(var i,o,s,a=this.loader.extractUrls(e,t),c=0;c<a.length;c++)i=a[c],o=i.url,s=n.resolveCssText(r[o],o,!0),s=this.flatten(s,t,r),e=e.replace(i.matched,s);return e},loadStyles:function(e,t,n){function r(){o++,o===s&&n&&n()}for(var i,o=0,s=e.length,a=0;s>a&&(i=e[a]);a++)this.resolveNode(i,t,r)}};var i=new t;e.styleResolver=i}(Polymer),function(e){function t(e,t){return e&&t&&Object.getOwnPropertyNames(t).forEach(function(n){var r=Object.getOwnPropertyDescriptor(t,n);r&&(Object.defineProperty(e,n,r),"function"==typeof r.value&&(r.value.nom=n))}),e}function n(e){for(var t=e||{},n=1;n<arguments.length;n++){var i=arguments[n];try{for(var o in i)r(o,i,t)}catch(s){}}return t}function r(e,t,n){var r=i(t,e);Object.defineProperty(n,e,r)}function i(e,t){if(e){var n=Object.getOwnPropertyDescriptor(e,t);return n||i(Object.getPrototypeOf(e),t)}}e.extend=t,e.mixin=n,Platform.mixin=n}(Polymer),function(e){function t(e,t,r){return e?e.stop():e=new n(this),e.go(t,r),e}var n=function(e){this.context=e,this.boundComplete=this.complete.bind(this)};n.prototype={go:function(e,t){this.callback=e;var n;t?(n=setTimeout(this.boundComplete,t),this.handle=function(){clearTimeout(n)}):(n=requestAnimationFrame(this.boundComplete),this.handle=function(){cancelAnimationFrame(n)})},stop:function(){this.handle&&(this.handle(),this.handle=null)},complete:function(){this.handle&&(this.stop(),this.callback.call(this.context))}},e.job=t}(Polymer),function(e){function t(e,t,n){var r="string"==typeof e?document.createElement(e):e.cloneNode(!0);if(r.innerHTML=t,n)for(var i in n)r.setAttribute(i,n[i]);return r}var n={};HTMLElement.register=function(e,t){n[e]=t},HTMLElement.getPrototypeForTag=function(e){var t=e?n[e]:HTMLElement.prototype;return t||Object.getPrototypeOf(document.createElement(e))};var r=Event.prototype.stopPropagation;Event.prototype.stopPropagation=function(){this.cancelBubble=!0,r.apply(this,arguments)};var i=DOMTokenList.prototype.add,o=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){for(var e=0;e<arguments.length;e++)i.call(this,arguments[e])},DOMTokenList.prototype.remove=function(){for(var e=0;e<arguments.length;e++)o.call(this,arguments[e])},DOMTokenList.prototype.toggle=function(e,t){1==arguments.length&&(t=!this.contains(e)),t?this.add(e):this.remove(e)},DOMTokenList.prototype.switch=function(e,t){e&&this.remove(e),t&&this.add(t)};var s=function(){return Array.prototype.slice.call(this)},a=window.NamedNodeMap||window.MozNamedAttrMap||{};NodeList.prototype.array=s,a.prototype.array=s,HTMLCollection.prototype.array=s,e.createDOM=t}(Polymer),function(e){function t(e){var i=t.caller,s=i.nom,a=i._super;a||(s||(s=i.nom=n.call(this,i)),s||console.warn("called super() on a method not installed declaratively (has no .nom property)"),a=r(i,s,o(this)));var c=a[s];return c?(c._super||r(c,s,a),c.apply(this,e||[])):void 0}function n(e){for(var t=this.__proto__;t&&t!==HTMLElement.prototype;){for(var n,r=Object.getOwnPropertyNames(t),i=0,o=r.length;o>i&&(n=r[i]);i++){var s=Object.getOwnPropertyDescriptor(t,n);if("function"==typeof s.value&&s.value===e)return n}t=t.__proto__}}function r(e,t,n){var r=i(n,t,e);return r[t]&&(r[t].nom=t),e._super=r}function i(e,t,n){for(;e;){if(e[t]!==n&&e[t])return e;e=o(e)}return Object}function o(e){return e.__proto__}e.super=t}(Polymer),function(e){function t(e){return e}function n(e,t){var n=typeof t;return t instanceof Date&&(n="date"),r[n](e,t)}var r={string:t,undefined:t,date:function(e){return new Date(Date.parse(e)||Date.now())},"boolean":function(e){return""===e?!0:"false"===e?!1:!!e},number:function(e){var t=parseFloat(e);return 0===t&&(t=parseInt(e)),isNaN(t)?e:t},object:function(e,t){if(null===t)return e;try{return JSON.parse(e.replace(/'/g,'"'))}catch(n){return e}},"function":function(e,t){return t}};e.deserializeValue=n}(Polymer),function(e){var t=e.extend,n={};n.declaration={},n.instance={},n.publish=function(e,n){for(var r in e)t(n,e[r])},e.api=n}(Polymer),function(e){var t={async:function(e,t,n){Polymer.flush(),t=t&&t.length?t:[t];var r=function(){(this[e]||e).apply(this,t)}.bind(this),i=n?setTimeout(r,n):requestAnimationFrame(r);return n?i:~i},cancelAsync:function(e){0>e?cancelAnimationFrame(~e):clearTimeout(e)},fire:function(e,t,n,r,i){var o=n||this,t=null===t||void 0===t?{}:t,s=new CustomEvent(e,{bubbles:void 0!==r?r:!0,cancelable:void 0!==i?i:!0,detail:t});return o.dispatchEvent(s),s},asyncFire:function(){this.async("fire",arguments)},classFollows:function(e,t,n){t&&t.classList.remove(n),e&&e.classList.add(n)},injectBoundHTML:function(e,t){var n=document.createElement("template");n.innerHTML=e;var r=this.instanceTemplate(n);return t&&(t.textContent="",t.appendChild(r)),r}},n=function(){},r={};t.asyncMethod=t.async,e.api.instance.utils=t,e.nop=n,e.nob=r}(Polymer),function(e){var t=window.WebComponents?WebComponents.flags.log:{},n="on-",r={EVENT_PREFIX:n,addHostListeners:function(){var e=this.eventDelegates;
  t.events&&Object.keys(e).length>0&&console.log("[%s] addHostListeners:",this.localName,e);for(var n in e){var r=e[n];PolymerGestures.addEventListener(this,n,this.element.getEventHandler(this,this,r))}},dispatchMethod:function(e,n,r){if(e){t.events&&console.group("[%s] dispatch [%s]",e.localName,n);var i="function"==typeof n?n:e[n];i&&i[r?"apply":"call"](e,r),t.events&&console.groupEnd(),Polymer.flush()}}};e.api.instance.events=r,e.addEventListener=function(e,t,n,r){PolymerGestures.addEventListener(wrap(e),t,n,r)},e.removeEventListener=function(e,t,n,r){PolymerGestures.removeEventListener(wrap(e),t,n,r)}}(Polymer),function(e){var t={copyInstanceAttributes:function(){var e=this._instanceAttributes;for(var t in e)this.hasAttribute(t)||this.setAttribute(t,e[t])},takeAttributes:function(){if(this._publishLC)for(var e,t=0,n=this.attributes,r=n.length;(e=n[t])&&r>t;t++)this.attributeToProperty(e.name,e.value)},attributeToProperty:function(t,n){var t=this.propertyForAttribute(t);if(t){if(n&&n.search(e.bindPattern)>=0)return;var r=this[t],n=this.deserializeValue(n,r);n!==r&&(this[t]=n)}},propertyForAttribute:function(e){var t=this._publishLC&&this._publishLC[e];return t},deserializeValue:function(t,n){return e.deserializeValue(t,n)},serializeValue:function(e,t){return"boolean"===t?e?"":void 0:"object"!==t&&"function"!==t&&void 0!==e?e:void 0},reflectPropertyToAttribute:function(e){var t=typeof this[e],n=this.serializeValue(this[e],t);void 0!==n?this.setAttribute(e,n):"boolean"===t&&this.removeAttribute(e)}};e.api.instance.attributes=t}(Polymer),function(e){function t(e,t){return e===t?0!==e||1/e===1/t:o(e)&&o(t)?!0:e!==e&&t!==t}function n(e,t){return void 0===t&&null===e?t:null===t||void 0===t?e:t}var r=window.WebComponents?WebComponents.flags.log:{},i={object:void 0,type:"update",name:void 0,oldValue:void 0},o=Number.isNaN||function(e){return"number"==typeof e&&isNaN(e)},s={createPropertyObserver:function(){var e=this._observeNames;if(e&&e.length){var t=this._propertyObserver=new CompoundObserver(!0);this.registerObserver(t);for(var n,r=0,i=e.length;i>r&&(n=e[r]);r++)t.addPath(this,n),this.observeArrayValue(n,this[n],null)}},openPropertyObserver:function(){this._propertyObserver&&this._propertyObserver.open(this.notifyPropertyChanges,this)},notifyPropertyChanges:function(e,t,n){var r,i,o={};for(var s in t)if(r=n[2*s+1],i=this.observe[r]){var a=t[s],c=e[s];this.observeArrayValue(r,c,a),o[i]||(void 0!==a&&null!==a||void 0!==c&&null!==c)&&(o[i]=!0,this.invokeMethod(i,[a,c,arguments]))}},invokeMethod:function(e,t){var n=this[e]||e;"function"==typeof n&&n.apply(this,t)},deliverChanges:function(){this._propertyObserver&&this._propertyObserver.deliver()},observeArrayValue:function(e,t,n){var i=this.observe[e];if(i&&(Array.isArray(n)&&(r.observe&&console.log("[%s] observeArrayValue: unregister observer [%s]",this.localName,e),this.closeNamedObserver(e+"__array")),Array.isArray(t))){r.observe&&console.log("[%s] observeArrayValue: register observer [%s]",this.localName,e,t);var o=new ArrayObserver(t);o.open(function(e){this.invokeMethod(i,[e])},this),this.registerNamedObserver(e+"__array",o)}},emitPropertyChangeRecord:function(e,n,r){if(!t(n,r)&&(this._propertyChanged(e,n,r),Observer.hasObjectObserve)){var o=this._objectNotifier;o||(o=this._objectNotifier=Object.getNotifier(this)),i.object=this,i.name=e,i.oldValue=r,o.notify(i)}},_propertyChanged:function(e){this.reflect[e]&&this.reflectPropertyToAttribute(e)},bindProperty:function(e,t,r){if(r)return void(this[e]=t);var i=this.element.prototype.computed;if(i&&i[e]){var o=e+"ComputedBoundObservable_";return void(this[o]=t)}return this.bindToAccessor(e,t,n)},bindToAccessor:function(e,n,r){function i(t,n){u[o]=t;var r=u[a];r&&"function"==typeof r.setValue&&r.setValue(t),u.emitPropertyChangeRecord(e,t,n)}var o=e+"_",s=e+"Observable_",a=e+"ComputedBoundObservable_";this[s]=n;var c=this[o],u=this,l=n.open(i);if(r&&!t(c,l)){var h=r(c,l);t(l,h)||(l=h,n.setValue&&n.setValue(l))}i(l,c);var d={close:function(){n.close(),u[s]=void 0,u[a]=void 0}};return this.registerObserver(d),d},createComputedProperties:function(){if(this._computedNames)for(var e=0;e<this._computedNames.length;e++){var t=this._computedNames[e],n=this.computed[t];try{var r=PolymerExpressions.getExpression(n),i=r.getBinding(this,this.element.syntax);this.bindToAccessor(t,i)}catch(o){console.error("Failed to create computed property",o)}}},registerObserver:function(e){return this._observers?void this._observers.push(e):void(this._observers=[e])},closeObservers:function(){if(this._observers){for(var e=this._observers,t=0;t<e.length;t++){var n=e[t];n&&"function"==typeof n.close&&n.close()}this._observers=[]}},registerNamedObserver:function(e,t){var n=this._namedObservers||(this._namedObservers={});n[e]=t},closeNamedObserver:function(e){var t=this._namedObservers;return t&&t[e]?(t[e].close(),t[e]=null,!0):void 0},closeNamedObservers:function(){if(this._namedObservers){for(var e in this._namedObservers)this.closeNamedObserver(e);this._namedObservers={}}}};e.api.instance.properties=s}(Polymer),function(e){var t=window.WebComponents?WebComponents.flags.log:{},n={instanceTemplate:function(e){HTMLTemplateElement.decorate(e);for(var t=this.syntax||!e.bindingDelegate&&this.element.syntax,n=e.createInstance(this,t),r=n.bindings_,i=0;i<r.length;i++)this.registerObserver(r[i]);return n},bind:function(e,t,n){var r=this.propertyForAttribute(e);if(r){var i=this.bindProperty(r,t,n);return Platform.enableBindingsReflection&&i&&(i.path=t.path_,this._recordBinding(r,i)),this.reflect[r]&&this.reflectPropertyToAttribute(r),i}return this.mixinSuper(arguments)},_recordBinding:function(e,t){this.bindings_=this.bindings_||{},this.bindings_[e]=t},bindFinished:function(){this.makeElementReady()},asyncUnbindAll:function(){this._unbound||(t.unbind&&console.log("[%s] asyncUnbindAll",this.localName),this._unbindAllJob=this.job(this._unbindAllJob,this.unbindAll,0))},unbindAll:function(){this._unbound||(this.closeObservers(),this.closeNamedObservers(),this._unbound=!0)},cancelUnbindAll:function(){return this._unbound?void(t.unbind&&console.warn("[%s] already unbound, cannot cancel unbindAll",this.localName)):(t.unbind&&console.log("[%s] cancelUnbindAll",this.localName),void(this._unbindAllJob&&(this._unbindAllJob=this._unbindAllJob.stop())))}},r=/\{\{([^{}]*)}}/;e.bindPattern=r,e.api.instance.mdv=n}(Polymer),function(e){function t(e){return e.hasOwnProperty("PolymerBase")}function n(){}var r={PolymerBase:!0,job:function(e,t,n){if("string"!=typeof e)return Polymer.job.call(this,e,t,n);var r="___"+e;this[r]=Polymer.job.call(this,this[r],t,n)},"super":Polymer.super,created:function(){},ready:function(){},createdCallback:function(){this.templateInstance&&this.templateInstance.model&&console.warn("Attributes on "+this.localName+" were data bound prior to Polymer upgrading the element. This may result in incorrect binding types."),this.created(),this.prepareElement(),this.ownerDocument.isStagingDocument||this.makeElementReady()},prepareElement:function(){return this._elementPrepared?void console.warn("Element already prepared",this.localName):(this._elementPrepared=!0,this.shadowRoots={},this.createPropertyObserver(),this.openPropertyObserver(),this.copyInstanceAttributes(),this.takeAttributes(),void this.addHostListeners())},makeElementReady:function(){this._readied||(this._readied=!0,this.createComputedProperties(),this.parseDeclarations(this.__proto__),this.removeAttribute("unresolved"),this.ready())},attributeChangedCallback:function(e){"class"!==e&&"style"!==e&&this.attributeToProperty(e,this.getAttribute(e)),this.attributeChanged&&this.attributeChanged.apply(this,arguments)},attachedCallback:function(){this.cancelUnbindAll(),this.attached&&this.attached(),this.hasBeenAttached||(this.hasBeenAttached=!0,this.domReady&&this.async("domReady"))},detachedCallback:function(){this.preventDispose||this.asyncUnbindAll(),this.detached&&this.detached(),this.leftView&&this.leftView()},parseDeclarations:function(e){e&&e.element&&(this.parseDeclarations(e.__proto__),e.parseDeclaration.call(this,e.element))},parseDeclaration:function(e){var t=this.fetchTemplate(e);if(t){var n=this.shadowFromTemplate(t);this.shadowRoots[e.name]=n}},fetchTemplate:function(e){return e.querySelector("template")},shadowFromTemplate:function(e){if(e){var t=this.createShadowRoot(),n=this.instanceTemplate(e);return t.appendChild(n),this.shadowRootReady(t,e),t}},lightFromTemplate:function(e,t){if(e){this.eventController=this;var n=this.instanceTemplate(e);return t?this.insertBefore(n,t):this.appendChild(n),this.shadowRootReady(this),n}},shadowRootReady:function(e){this.marshalNodeReferences(e)},marshalNodeReferences:function(e){var t=this.$=this.$||{};if(e)for(var n,r=e.querySelectorAll("[id]"),i=0,o=r.length;o>i&&(n=r[i]);i++)t[n.id]=n},onMutation:function(e,t){var n=new MutationObserver(function(e){t.call(this,n,e),n.disconnect()}.bind(this));n.observe(e,{childList:!0,subtree:!0})}};n.prototype=r,r.constructor=n,e.Base=n,e.isBase=t,e.api.instance.base=r}(Polymer),function(e){function t(e){return e.__proto__}function n(e,t){var n="",r=!1;t&&(n=t.localName,r=t.hasAttribute("is"));var i=WebComponents.ShadowCSS.makeScopeSelector(n,r);return WebComponents.ShadowCSS.shimCssText(e,i)}var r=(window.WebComponents?WebComponents.flags.log:{},window.ShadowDOMPolyfill),i="element",o="controller",s={STYLE_SCOPE_ATTRIBUTE:i,installControllerStyles:function(){var e=this.findStyleScope();if(e&&!this.scopeHasNamedStyle(e,this.localName)){for(var n=t(this),r="";n&&n.element;)r+=n.element.cssTextForScope(o),n=t(n);r&&this.installScopeCssText(r,e)}},installScopeStyle:function(e,t,n){var n=n||this.findStyleScope(),t=t||"";if(n&&!this.scopeHasNamedStyle(n,this.localName+t)){var r="";if(e instanceof Array)for(var i,o=0,s=e.length;s>o&&(i=e[o]);o++)r+=i.textContent+"\n\n";else r=e.textContent;this.installScopeCssText(r,n,t)}},installScopeCssText:function(e,t,i){if(t=t||this.findStyleScope(),i=i||"",t){r&&(e=n(e,t.host));var s=this.element.cssTextToScopeStyle(e,o);Polymer.applyStyleToScope(s,t),this.styleCacheForScope(t)[this.localName+i]=!0}},findStyleScope:function(e){for(var t=e||this;t.parentNode;)t=t.parentNode;return t},scopeHasNamedStyle:function(e,t){var n=this.styleCacheForScope(e);return n[t]},styleCacheForScope:function(e){if(r){var t=e.host?e.host.localName:e.localName;return a[t]||(a[t]={})}return e._scopeStyles=e._scopeStyles||{}}},a={};e.api.instance.styles=s}(Polymer),function(e){function t(e,t){if("string"!=typeof e){var n=t||document._currentScript;if(t=e,e=n&&n.parentNode&&n.parentNode.getAttribute?n.parentNode.getAttribute("name"):"",!e)throw"Element name could not be inferred."}if(o(e))throw"Already registered (Polymer) prototype for element "+e;i(e,t),r(e)}function n(e,t){c[e]=t}function r(e){c[e]&&(c[e].registerWhenReady(),delete c[e])}function i(e,t){return u[e]=t||{}}function o(e){return u[e]}function s(e,t){if("string"!=typeof t)return!1;var n=HTMLElement.getPrototypeForTag(t),r=n&&n.constructor;return r?CustomElements.instanceof?CustomElements.instanceof(e,r):e instanceof r:!1}var a=e.extend,c=(e.api,{}),u={};e.getRegisteredPrototype=o,e.waitingForPrototype=n,e.instanceOfType=s,window.Polymer=t,a(Polymer,e),WebComponents.consumeDeclarations&&WebComponents.consumeDeclarations(function(e){if(e)for(var n,r=0,i=e.length;i>r&&(n=e[r]);r++)t.apply(null,n)})}(Polymer),function(e){var t={resolveElementPaths:function(e){Polymer.urlResolver.resolveDom(e)},addResolvePathApi:function(){var e=this.getAttribute("assetpath")||"",t=new URL(e,this.ownerDocument.baseURI);this.prototype.resolvePath=function(e,n){var r=new URL(e,n||t);return r.href}}};e.api.declaration.path=t}(Polymer),function(e){function t(e,t){var n=new URL(e.getAttribute("href"),t).href;return"@import '"+n+"';"}function n(e,t){if(e){t===document&&(t=document.head),c&&(t=document.head);var n=r(e.textContent),i=e.getAttribute(a);i&&n.setAttribute(a,i);var o=t.firstElementChild;if(t===document.head){var s="style["+a+"]",u=document.head.querySelectorAll(s);u.length&&(o=u[u.length-1].nextElementSibling)}t.insertBefore(n,o)}}function r(e,t){t=t||document,t=t.createElement?t:t.ownerDocument;var n=t.createElement("style");return n.textContent=e,n}function i(e){return e&&e.__resource||""}function o(e,t){return m?m.call(e,t):void 0}var s=(window.WebComponents?WebComponents.flags.log:{},e.api.instance.styles),a=s.STYLE_SCOPE_ATTRIBUTE,c=window.ShadowDOMPolyfill,u="style",l="@import",h="link[rel=stylesheet]",d="global",f="polymer-scope",p={loadStyles:function(e){var t=this.fetchTemplate(),n=t&&this.templateContent();if(n){this.convertSheetsToStyles(n);var r=this.findLoadableStyles(n);if(r.length){var i=t.ownerDocument.baseURI;return Polymer.styleResolver.loadStyles(r,i,e)}}e&&e()},convertSheetsToStyles:function(e){for(var n,i,o=e.querySelectorAll(h),s=0,a=o.length;a>s&&(n=o[s]);s++)i=r(t(n,this.ownerDocument.baseURI),this.ownerDocument),this.copySheetAttributes(i,n),n.parentNode.replaceChild(i,n)},copySheetAttributes:function(e,t){for(var n,r=0,i=t.attributes,o=i.length;(n=i[r])&&o>r;r++)"rel"!==n.name&&"href"!==n.name&&e.setAttribute(n.name,n.value)},findLoadableStyles:function(e){var t=[];if(e)for(var n,r=e.querySelectorAll(u),i=0,o=r.length;o>i&&(n=r[i]);i++)n.textContent.match(l)&&t.push(n);return t},installSheets:function(){this.cacheSheets(),this.cacheStyles(),this.installLocalSheets(),this.installGlobalStyles()},cacheSheets:function(){this.sheets=this.findNodes(h),this.sheets.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)})},cacheStyles:function(){this.styles=this.findNodes(u+"["+f+"]"),this.styles.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)})},installLocalSheets:function(){var e=this.sheets.filter(function(e){return!e.hasAttribute(f)}),t=this.templateContent();if(t){var n="";if(e.forEach(function(e){n+=i(e)+"\n"}),n){var o=r(n,this.ownerDocument);t.insertBefore(o,t.firstChild)}}},findNodes:function(e,t){var n=this.querySelectorAll(e).array(),r=this.templateContent();if(r){var i=r.querySelectorAll(e).array();n=n.concat(i)}return t?n.filter(t):n},installGlobalStyles:function(){var e=this.styleForScope(d);n(e,document.head)},cssTextForScope:function(e){var t="",n="["+f+"="+e+"]",r=function(e){return o(e,n)},s=this.sheets.filter(r);s.forEach(function(e){t+=i(e)+"\n\n"});var a=this.styles.filter(r);return a.forEach(function(e){t+=e.textContent+"\n\n"}),t},styleForScope:function(e){var t=this.cssTextForScope(e);return this.cssTextToScopeStyle(t,e)},cssTextToScopeStyle:function(e,t){if(e){var n=r(e);return n.setAttribute(a,this.getAttribute("name")+"-"+t),n}}},v=HTMLElement.prototype,m=v.matches||v.matchesSelector||v.webkitMatchesSelector||v.mozMatchesSelector;e.api.declaration.styles=p,e.applyStyleToScope=n}(Polymer),function(e){var t=(window.WebComponents?WebComponents.flags.log:{},e.api.instance.events),n=t.EVENT_PREFIX,r={};["webkitAnimationStart","webkitAnimationEnd","webkitTransitionEnd","DOMFocusOut","DOMFocusIn","DOMMouseScroll"].forEach(function(e){r[e.toLowerCase()]=e});var i={parseHostEvents:function(){var e=this.prototype.eventDelegates;this.addAttributeDelegates(e)},addAttributeDelegates:function(e){for(var t,n=0;t=this.attributes[n];n++)this.hasEventPrefix(t.name)&&(e[this.removeEventPrefix(t.name)]=t.value.replace("{{","").replace("}}","").trim())},hasEventPrefix:function(e){return e&&"o"===e[0]&&"n"===e[1]&&"-"===e[2]},removeEventPrefix:function(e){return e.slice(o)},findController:function(e){for(;e.parentNode;){if(e.eventController)return e.eventController;e=e.parentNode}return e.host},getEventHandler:function(e,t,n){var r=this;return function(i){e&&e.PolymerBase||(e=r.findController(t));var o=[i,i.detail,i.currentTarget];e.dispatchMethod(e,n,o)}},prepareEventBinding:function(e,t){if(this.hasEventPrefix(t)){var n=this.removeEventPrefix(t);n=r[n]||n;var i=this;return function(t,r,o){function s(){return"{{ "+e+" }}"}var a=i.getEventHandler(void 0,r,e);return PolymerGestures.addEventListener(r,n,a),o?void 0:{open:s,discardChanges:s,close:function(){PolymerGestures.removeEventListener(r,n,a)}}}}}},o=n.length;e.api.declaration.events=i}(Polymer),function(e){var t=["attribute"],n={inferObservers:function(e){var t,n=e.observe;for(var r in e)"Changed"===r.slice(-7)&&(t=r.slice(0,-7),this.canObserveProperty(t)&&(n||(n=e.observe={}),n[t]=n[t]||r))},canObserveProperty:function(e){return t.indexOf(e)<0},explodeObservers:function(e){var t=e.observe;if(t){var n={};for(var r in t)for(var i,o=r.split(" "),s=0;i=o[s];s++)n[i]=t[r];e.observe=n}},optimizePropertyMaps:function(e){if(e.observe){var t=e._observeNames=[];for(var n in e.observe)for(var r,i=n.split(" "),o=0;r=i[o];o++)t.push(r)}if(e.publish){var t=e._publishNames=[];for(var n in e.publish)t.push(n)}if(e.computed){var t=e._computedNames=[];for(var n in e.computed)t.push(n)}},publishProperties:function(e,t){var n=e.publish;n&&(this.requireProperties(n,e,t),this.filterInvalidAccessorNames(n),e._publishLC=this.lowerCaseMap(n));var r=e.computed;r&&this.filterInvalidAccessorNames(r)},filterInvalidAccessorNames:function(e){for(var t in e)this.propertyNameBlacklist[t]&&(console.warn('Cannot define property "'+t+'" for element "'+this.name+'" because it has the same name as an HTMLElement property, and not all browsers support overriding that. Consider giving it a different name.'),delete e[t])},requireProperties:function(e,t){t.reflect=t.reflect||{};for(var n in e){var r=e[n];r&&void 0!==r.reflect&&(t.reflect[n]=Boolean(r.reflect),r=r.value),void 0!==r&&(t[n]=r)}},lowerCaseMap:function(e){var t={};for(var n in e)t[n.toLowerCase()]=n;return t},createPropertyAccessor:function(e,t){var n=this.prototype,r=e+"_",i=e+"Observable_";n[r]=n[e],Object.defineProperty(n,e,{get:function(){var e=this[i];return e&&e.deliver(),this[r]},set:function(n){if(t)return this[r];var o=this[i];if(o)return void o.setValue(n);var s=this[r];return this[r]=n,this.emitPropertyChangeRecord(e,n,s),n},configurable:!0})},createPropertyAccessors:function(e){var t=e._computedNames;if(t&&t.length)for(var n,r=0,i=t.length;i>r&&(n=t[r]);r++)this.createPropertyAccessor(n,!0);var t=e._publishNames;if(t&&t.length)for(var n,r=0,i=t.length;i>r&&(n=t[r]);r++)e.computed&&e.computed[n]||this.createPropertyAccessor(n)},propertyNameBlacklist:{children:1,"class":1,id:1,hidden:1,style:1,title:1}};e.api.declaration.properties=n}(Polymer),function(e){var t="attributes",n=/\s|,/,r={inheritAttributesObjects:function(e){this.inheritObject(e,"publishLC"),this.inheritObject(e,"_instanceAttributes")},publishAttributes:function(e){var r=this.getAttribute(t);if(r)for(var i,o=e.publish||(e.publish={}),s=r.split(n),a=0,c=s.length;c>a;a++)i=s[a].trim(),i&&void 0===o[i]&&(o[i]=void 0)},accumulateInstanceAttributes:function(){for(var e,t=this.prototype._instanceAttributes,n=this.attributes,r=0,i=n.length;i>r&&(e=n[r]);r++)this.isInstanceAttribute(e.name)&&(t[e.name]=e.value)},isInstanceAttribute:function(e){return!this.blackList[e]&&"on-"!==e.slice(0,3)},blackList:{name:1,"extends":1,constructor:1,noscript:1,assetpath:1,"cache-csstext":1}};r.blackList[t]=1,e.api.declaration.attributes=r}(Polymer),function(e){var t=e.api.declaration.events,n=new PolymerExpressions,r=n.prepareBinding;n.prepareBinding=function(e,i,o){return t.prepareEventBinding(e,i,o)||r.call(n,e,i,o)};var i={syntax:n,fetchTemplate:function(){return this.querySelector("template")},templateContent:function(){var e=this.fetchTemplate();return e&&e.content},installBindingDelegate:function(e){e&&(e.bindingDelegate=this.syntax)}};e.api.declaration.mdv=i}(Polymer),function(e){function t(e){if(!Object.__proto__){var t=Object.getPrototypeOf(e);e.__proto__=t,r(t)&&(t.__proto__=Object.getPrototypeOf(t))}}var n=e.api,r=e.isBase,i=e.extend,o=window.ShadowDOMPolyfill,s={register:function(e,t){this.buildPrototype(e,t),this.registerPrototype(e,t),this.publishConstructor()},buildPrototype:function(t,n){var r=e.getRegisteredPrototype(t),i=this.generateBasePrototype(n);this.desugarBeforeChaining(r,i),this.prototype=this.chainPrototypes(r,i),this.desugarAfterChaining(t,n)},desugarBeforeChaining:function(e,t){e.element=this,this.publishAttributes(e,t),this.publishProperties(e,t),this.inferObservers(e),this.explodeObservers(e)},chainPrototypes:function(e,n){this.inheritMetaData(e,n);var r=this.chainObject(e,n);return t(r),r},inheritMetaData:function(e,t){this.inheritObject("observe",e,t),this.inheritObject("publish",e,t),this.inheritObject("reflect",e,t),this.inheritObject("_publishLC",e,t),this.inheritObject("_instanceAttributes",e,t),this.inheritObject("eventDelegates",e,t)},desugarAfterChaining:function(e,t){this.optimizePropertyMaps(this.prototype),this.createPropertyAccessors(this.prototype),this.installBindingDelegate(this.fetchTemplate()),this.installSheets(),this.resolveElementPaths(this),this.accumulateInstanceAttributes(),this.parseHostEvents(),this.addResolvePathApi(),o&&WebComponents.ShadowCSS.shimStyling(this.templateContent(),e,t),this.prototype.registerCallback&&this.prototype.registerCallback(this)},publishConstructor:function(){var e=this.getAttribute("constructor");e&&(window[e]=this.ctor)},generateBasePrototype:function(e){var t=this.findBasePrototype(e);if(!t){var t=HTMLElement.getPrototypeForTag(e);t=this.ensureBaseApi(t),a[e]=t}return t},findBasePrototype:function(e){return a[e]},ensureBaseApi:function(e){if(e.PolymerBase)return e;var t=Object.create(e);return n.publish(n.instance,t),this.mixinMethod(t,e,n.instance.mdv,"bind"),t},mixinMethod:function(e,t,n,r){var i=function(e){return t[r].apply(this,e)};e[r]=function(){return this.mixinSuper=i,n[r].apply(this,arguments)}},inheritObject:function(e,t,n){var r=t[e]||{};t[e]=this.chainObject(r,n[e])},registerPrototype:function(e,t){var n={prototype:this.prototype},r=this.findTypeExtension(t);r&&(n.extends=r),HTMLElement.register(e,this.prototype),this.ctor=document.registerElement(e,n)},findTypeExtension:function(e){if(e&&e.indexOf("-")<0)return e;var t=this.findBasePrototype(e);return t.element?this.findTypeExtension(t.element.extends):void 0}},a={};s.chainObject=Object.__proto__?function(e,t){return e&&t&&e!==t&&(e.__proto__=t),e}:function(e,t){if(e&&t&&e!==t){var n=Object.create(t);e=i(n,e)}return e},n.declaration.prototype=s}(Polymer),function(e){function t(e){return document.contains(e)?u:c}function n(){return c.length?c[0]:u[0]}function r(e){o.waitToReady=!0,Polymer.endOfMicrotask(function(){HTMLImports.whenReady(function(){o.addReadyCallback(e),o.waitToReady=!1,o.check()})})}function i(e){if(void 0===e)return void o.ready();var t=setTimeout(function(){o.ready()},e);Polymer.whenReady(function(){clearTimeout(t)})}var o={wait:function(e){e.__queue||(e.__queue={},s.push(e))},enqueue:function(e,n,r){var i=e.__queue&&!e.__queue.check;return i&&(t(e).push(e),e.__queue.check=n,e.__queue.go=r),0!==this.indexOf(e)},indexOf:function(e){var n=t(e).indexOf(e);return n>=0&&document.contains(e)&&(n+=HTMLImports.useNative||HTMLImports.ready?c.length:1e9),n},go:function(e){var t=this.remove(e);t&&(e.__queue.flushable=!0,this.addToFlushQueue(t),this.check())},remove:function(e){var n=this.indexOf(e);if(0===n)return t(e).shift()},check:function(){var e=this.nextElement();return e&&e.__queue.check.call(e),this.canReady()?(this.ready(),!0):void 0},nextElement:function(){return n()},canReady:function(){return!this.waitToReady&&this.isEmpty()},isEmpty:function(){for(var e,t=0,n=s.length;n>t&&(e=s[t]);t++)if(e.__queue&&!e.__queue.flushable)return;return!0},addToFlushQueue:function(e){a.push(e)},flush:function(){if(!this.flushing){this.flushing=!0;for(var e;a.length;)e=a.shift(),e.__queue.go.call(e),e.__queue=null;this.flushing=!1}},ready:function(){var e=CustomElements.ready;CustomElements.ready=!1,this.flush(),CustomElements.useNative||CustomElements.upgradeDocumentTree(document),CustomElements.ready=e,Polymer.flush(),requestAnimationFrame(this.flushReadyCallbacks)},addReadyCallback:function(e){e&&l.push(e)},flushReadyCallbacks:function(){if(l)for(var e;l.length;)(e=l.shift())()},waitingFor:function(){for(var e,t=[],n=0,r=s.length;r>n&&(e=s[n]);n++)e.__queue&&!e.__queue.flushable&&t.push(e);return t},waitToReady:!0},s=[],a=[],c=[],u=[],l=[];e.elements=s,e.waitingFor=o.waitingFor.bind(o),e.forceReady=i,e.queue=o,e.whenReady=e.whenPolymerReady=r}(Polymer),function(e){function t(e){return Boolean(HTMLElement.getPrototypeForTag(e))}function n(e){return e&&e.indexOf("-")>=0}var r=e.extend,i=e.api,o=e.queue,s=e.whenReady,a=e.getRegisteredPrototype,c=e.waitingForPrototype,u=r(Object.create(HTMLElement.prototype),{createdCallback:function(){this.getAttribute("name")&&this.init()},init:function(){this.name=this.getAttribute("name"),this.extends=this.getAttribute("extends"),o.wait(this),this.loadResources(),this.registerWhenReady()},registerWhenReady:function(){this.registered||this.waitingForPrototype(this.name)||this.waitingForQueue()||this.waitingForResources()||o.go(this)},_register:function(){n(this.extends)&&!t(this.extends)&&console.warn("%s is attempting to extend %s, an unregistered element or one that was not registered with Polymer.",this.name,this.extends),this.register(this.name,this.extends),this.registered=!0},waitingForPrototype:function(e){return a(e)?void 0:(c(e,this),this.handleNoScript(e),!0)},handleNoScript:function(e){this.hasAttribute("noscript")&&!this.noscript&&(this.noscript=!0,Polymer(e))},waitingForResources:function(){return this._needsResources},waitingForQueue:function(){return o.enqueue(this,this.registerWhenReady,this._register)},loadResources:function(){this._needsResources=!0,this.loadStyles(function(){this._needsResources=!1,this.registerWhenReady()}.bind(this))}});i.publish(i.declaration,u),s(function(){document.body.removeAttribute("unresolved"),document.dispatchEvent(new CustomEvent("polymer-ready",{bubbles:!0}))}),document.registerElement("polymer-element",{prototype:u})}(Polymer),function(e){function t(e,t){e?(document.head.appendChild(e),r(t)):t&&t()}function n(e,n){if(e&&e.length){for(var r,i,o=document.createDocumentFragment(),s=0,a=e.length;a>s&&(r=e[s]);s++)i=document.createElement("link"),i.rel="import",i.href=r,o.appendChild(i);t(o,n)}else n&&n()}var r=e.whenReady;e.import=n,e.importElements=t}(Polymer),function(){var e=document.createElement("polymer-element");e.setAttribute("name","auto-binding"),e.setAttribute("extends","template"),e.init(),Polymer("auto-binding",{createdCallback:function(){this.syntax=this.bindingDelegate=this.makeSyntax(),Polymer.whenPolymerReady(function(){this.model=this,this.setAttribute("bind",""),this.async(function(){this.marshalNodeReferences(this.parentNode),this.fire("template-bound")})}.bind(this))},makeSyntax:function(){var e=Object.create(Polymer.api.declaration.events),t=this;e.findController=function(){return t.model};var n=new PolymerExpressions,r=n.prepareBinding;return n.prepareBinding=function(t,i,o){return e.prepareEventBinding(t,i,o)||r.call(n,t,i,o)},n}})}();